Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » security.properties not found when creating InitialContext
security.properties not found when creating InitialContext [message #1212] Mon, 21 April 2003 15:59
Eclipse UserFriend
Originally posted by: tlindsay.sympatico.ca

I've noticed when I run a simple program inside the IDE that creates an
InitialContext, I get the error shown below in the console. This program
runs fine outside of the IDE. Does anybody know why this is happening?

Creating initial context
java.io.FileNotFoundException: C:\dev\sbs\toolset\config\security.properties
(The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utilit y.java:42)
at com.sun.enterprise.iiop.POAEJBORB.<clinit>(POAEJBORB.java:78)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:217)
at org.omg.CORBA.ORB.create_impl(ORB.java:295)
at org.omg.CORBA.ORB.init(ORB.java:336)
at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java :138)
at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
at
com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitContextF
actory.java:31)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:2 74)
at java.lang.Class.newInstance0(Class.java:306)
at java.lang.Class.newInstance(Class.java:259)
at javax.naming.spi.NamingManager.getInitialContext(NamingManag er.java:649)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext .java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:175)
at test.client.TestClient.main(TestClient.java:21)
java.io.FileNotFoundException: C:\dev\sbs\toolset\config\ejb.properties (The
system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utilit y.java:42)
at com.sun.enterprise.iiop.J2EEInitializer.<init>(J2EEInitializer.java:54)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:2 74)
at java.lang.Class.newInstance0(Class.java:306)
at java.lang.Class.newInstance(Class.java:259)
at
com.sun.corba.ee.internal.Interceptors.PIORB.registerORBInit ializers(PIORB.j
ava:377)
at
com.sun.corba.ee.internal.Interceptors.PIORB.parseProperties (PIORB.java:347)
at com.sun.corba.ee.internal.TxPOA.TxPIORB.parseProperties(TxPI ORB.java:116)
at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java: 461)
at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.j ava:156)
at
com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters( PIORB.java:336)
at org.omg.CORBA.ORB.init(ORB.java:337)
at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java :138)
at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
at
com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitContextF
actory.java:31)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:2 74)
at java.lang.Class.newInstance0(Class.java:306)
at java.lang.Class.newInstance(Class.java:259)
at javax.naming.spi.NamingManager.getInitialContext(NamingManag er.java:649)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext .java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:175)
at test.client.TestClient.main(TestClient.java:21)
Warning: unable to read transaction.interoperability config property
java.io.FileNotFoundException: C:\dev\sbs\toolset\config\security.properties
(The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utilit y.java:42)
at
com.sun.enterprise.iiop.security.SecurityMechanismSelector.<clinit >(Security
MechanismSelector.java:102)
at
com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo (IIOPSSLSocketFa
ctory.java:211)
at
com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection (ConnectionTable
..java:73)
at
com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection (ConnectionTable
..java:68)
at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPIm pl.java:70)
at
com.sun.corba.ee.internal.corba.InitialNamingClient.locateOb ject(InitialNami
ngClient.java:769)
at
com.sun.corba.ee.internal.corba.InitialNamingClient.getIORUs ingHostInfo(Init
ialNamingClient.java:597)
at
com.sun.corba.ee.internal.corba.InitialNamingClient.resolveC orbaloc(InitialN
amingClient.java:573)
at
com.sun.corba.ee.internal.corba.InitialNamingClient.resolveU singORBInitRef(I
nitialNamingClient.java:544)
at
com.sun.corba.ee.internal.corba.InitialNamingClient.cachedIn itialReferences(
InitialNamingClient.java:1080)
at
com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_ initial_referenc
es(InitialNamingClient.java:981)
at
com.sun.corba.ee.internal.corba.ORB.resolve_initial_referenc es(ORB.java:2425
)
at
com.sun.enterprise.naming.SerialContext.getProvider(SerialCo ntext.java:52)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext .java:120)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at test.client.TestClient.main(TestClient.java:28)
javax.naming.CommunicationException: Can't find SerialContextProvider
at
com.sun.enterprise.naming.SerialContext.getProvider(SerialCo ntext.java:63)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext .java:120)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at test.client.TestClient.main(TestClient.java:28)
Exception in thread "main"

--
Tony Lindsay
IT Consultant
Silver Bullet Solutions Inc
tlindsay@sbulletinc.com
416-919-2599



--
Tony Lindsay
IT Consultant
Silver Bullet Solutions Inc
tlindsay@sbulletinc.com
416-919-2599
Previous Topic:Configuring arguments for Launch Configuration
Next Topic:Re: src.zip
Goto Forum:
  


Current Time: Thu Dec 26 12:28:49 GMT 2024

Powered by FUDForum. Page generated in 0.02886 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top