0 Replies Latest reply on Jul 26, 2002 7:41 PM by Joe Simone

    J2EE.jar in classpath causes file not found exception

    Joe Simone Newbie

      I am trying to add a sendMail method to my session bean, if put J2ee.jar after the JBoss jars on my classpath, I get a runtime exception. Either JBoss 3.0 or 3.0.1RC1.

      If I add J2EE.jar to my classpath - I do this so I can compile in the JavaMail API - I get the following:

      run.test_8:
      [java] java.io.FileNotFoundException: C:\java\jboss-3.0.0_tomcat-4.0.3\config\security.properties (The system canno
      t find the path specified)
      [java] at java.io.FileInputStream.open(Native Method)
      [java] at java.io.FileInputStream.(FileInputStream.java:59)
      [java] at java.io.FileInputStream.(FileInputStream.java:90)
      [java] at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42)
      [java] at com.sun.enterprise.iiop.POAEJBORB.(POAEJBORB.java:78)
      [java] at java.lang.Class.forName0(Native Method)
      [java] at java.lang.Class.forName(Class.java:190)
      [java] at org.omg.CORBA.ORB.create_impl(ORB.java:279)
      [java] at org.omg.CORBA.ORB.init(ORB.java:323)
      [java] at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
      [java] at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
      [java] at com.sun.enterprise.naming.SerialInitContextFactory.(SerialInitContextFactory.java:31)
      [java] at java.lang.Class.newInstance0(Native Method)
      [java] at java.lang.Class.newInstance(Class.java:232)
      [java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:647)
      [java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:241)
      [java] at javax.naming.InitialContext.init(InitialContext.java:217)
      [java] at javax.naming.InitialContext.(InitialContext.java:173)
      [java] at com.highnotes.ebu.client.test.Test_8.main(Test_8.java:55)
      [java] java.io.FileNotFoundException: C:\java\jboss-3.0.0_tomcat-4.0.3\config\ejb.properties (The system cannot fin
      d the path specified)
      [java] at java.io.FileInputStream.open(Native Method)
      [java] at java.io.FileInputStream.(FileInputStream.java:59)
      [java] at java.io.FileInputStream.(FileInputStream.java:90)
      [java] at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42)
      [java] at com.sun.enterprise.iiop.J2EEInitializer.(J2EEInitializer.java:54)
      [java] at java.lang.Class.newInstance0(Native Method)
      [java] at java.lang.Class.newInstance(Class.java:232)
      [java] at com.sun.corba.ee.internal.Interceptors.PIORB.registerORBInitializers(PIORB.java:377)
      [java] at com.sun.corba.ee.internal.Interceptors.PIORB.parseProperties(PIORB.java:347)
      [java] at com.sun.corba.ee.internal.TxPOA.TxPIORB.parseProperties(TxPIORB.java:116)
      [java] at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:461)
      [java] at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:156)
      [java] at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:336)
      [java] at org.omg.CORBA.ORB.init(ORB.java:324)
      [java] at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
      [java] at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
      [java] at com.sun.enterprise.naming.SerialInitContextFactory.(SerialInitContextFactory.java:31)
      [java] at java.lang.Class.newInstance0(Native Method)
      [java] at java.lang.Class.newInstance(Class.java:232)
      [java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:647)
      [java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:241)
      [java] at javax.naming.InitialContext.init(InitialContext.java:217)
      [java] at javax.naming.InitialContext.(InitialContext.java:173)
      [java] at com.highnotes.ebu.client.test.Test_8.main(Test_8.java:55)

      [java] Warning: unable to read transaction.interoperability config property
      [java] java.io.FileNotFoundException: C:\java\jboss-3.0.0_tomcat-4.0.3\config\security.properties (The system canno
      t find the path specified)
      [java] at java.io.FileInputStream.open(Native Method)
      [java] at java.io.FileInputStream.(FileInputStream.java:59)
      [java] at java.io.FileInputStream.(FileInputStream.java:90)
      [java] at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42)
      [java] at com.sun.enterprise.iiop.security.SecurityMechanismSelector.(SecurityMechanismSelector.java:10
      2)
      [java] at com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLSocketFactory.java:211)
      [java] at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:73)
      [java] at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:68)
      [java] at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:70)
      [java] at com.sun.corba.ee.internal.corba.InitialNamingClient.locateObject(InitialNamingClient.java:769)
      [java] at com.sun.corba.ee.internal.corba.InitialNamingClient.getIORUsingHostInfo(InitialNamingClient.java:597)

      [java] at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveCorbaloc(InitialNamingClient.java:573)
      [java] at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingORBInitRef(InitialNamingClient.java:5
      44)
      [java] at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:
      1080)
      [java] at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.ja
      va:981)
      [java] at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:2425)
      [java] at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:52)
      [java] at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:345)
      [java] at com.highnotes.ebu.client.test.Test_8.main(Test_8.java:58)
      [java] javax.naming.CommunicationException: Can't find SerialContextProvider
      [java] at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:63)
      [java] at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:345)
      [java] at com.highnotes.ebu.client.test.Test_8.main(Test_8.java:58)

      What's going on?

      kind regards,
      joe