3 Replies Latest reply on Aug 15, 2003 2:29 AM by bbbear

    I get "FileNotFoundException" when trying to run or shutdown

    cw1057 Newbie

      After installing and configuring jboss 320, i can operate it successfully, including run, deploy ear files, shutdown, etc. But I get "java.io.FileNotFoundException: ...\config\security.properties and ejb.properties" when trying to run or shutdown jboss in win 2k with j2sdk 1.4.1_01 after few operations.
      It still can't work even i reinstall jboss 320 or update to 321. The only way i can do is to reinstall my win 2k to make it work, but soon it hang again!

        • 1. Re: I get "FileNotFoundException" when trying to run or shut
          Juha Lindfors Master

          Are you installing other J2EE servers on that machine (J2EE RI, SunONE etc?)

          • 2. Re: I get "FileNotFoundException" when trying to run or shut
            cw1057 Newbie

            i got it!
            In order to compile servlet with ant, i put Sun's j2ee.jar into %JAVA_HOME%/jre/lib/ext/.
            After removing the file and setting classpath to the file in other directory instead, the jboss works correctly!

            • 3. Re: I get "FileNotFoundException" when trying to run or shut
              bbbear Newbie

              Hi,

              I get this exception also when I start JBOSS3.2.1, however, I've tried many ways, including yours, still to no avail. I was wondering what cause this exception? Any idea??

              Below is part of the start-up info from the console.

              p/s: I'm using JBOSS 3.2.1 with JDK 1.4.1_04

              Thanks

              Regards,
              bb

              --------------------------------------------------------------------

              16:00:35,776 INFO [LocalJBossServerDomain] Starting
              16:00:35,786 INFO [LocalJBossServerDomain] Started
              16:00:35,786 INFO [NamingService] Starting
              16:00:35,806 INFO [NamingService] Starting jnp server
              16:00:35,996 INFO [NamingService] Started jnpPort=1099, rmiPort=0, backlog=50, bindAddress=null, Client SocketFactory=null, Server SocketFactory=null
              16:00:36,417 ERROR [STDERR] java.io.FileNotFoundException: C:\JBOSS3\bin\config\security.properties (The system cannot find the path specified)16:00:36,437 ERROR [STDERR] at java.io.FileInputStream.open(Native Method)
              16:00:36,447 ERROR [STDERR] at java.io.FileInputStream.(FileInputStream.java:103)
              16:00:36,447 ERROR [STDERR] at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:56)
              16:00:36,457 ERROR [STDERR] at com.sun.enterprise.iiop.POAEJBORB.(POAEJBORB.java:83)
              16:00:36,457 ERROR [STDERR] at java.lang.Class.forName0(Native Method)
              16:00:36,467 ERROR [STDERR] at java.lang.Class.forName(Class.java:217)
              16:00:36,467 ERROR [STDERR] at org.omg.CORBA.ORB.create_impl(ORB.java:295)
              16:00:36,477 ERROR [STDERR] at org.omg.CORBA.ORB.init(ORB.java:336)
              16:00:36,477 ERROR [STDERR] at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:140)
              16:00:36,487 ERROR [STDERR] at com.sun.enterprise.util.ORBManager.init(ORBManager.java:69)
              16:00:36,487 ERROR [STDERR] at com.sun.enterprise.naming.SerialInitContextFactory.(SerialInitContextFactory.java:35)
              16:00:36,497 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              16:00:36,497 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              16:00:36,507 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              16:00:36,507 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
              16:00:36,517 ERROR [STDERR] at java.lang.Class.newInstance0(Class.java:306)
              16:00:36,517 ERROR [STDERR] at java.lang.Class.newInstance(Class.java:259)
              16:00:36,527 ERROR [STDERR] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
              16:00:36,527 ERROR [STDERR] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
              16:00:36,537 ERROR [STDERR] at javax.naming.InitialContext.init(InitialContext.java:219)
              16:00:36,537 ERROR [STDERR] at javax.naming.InitialContext.(InitialContext.java:175)
              16:00:36,557 ERROR [STDERR] at org.jboss.naming.NamingService.startService(NamingService.java:160)
              16:00:36,567 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
              16:00:36,577 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              16:00:36,577 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              16:00:36,587 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              16:00:36,587 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
              16:00:36,597 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
              16:00:36,607 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
              16:00:36,607 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
              16:00:36,617 ERROR [STDERR] at $Proxy0.start(Unknown Source)
              16:00:36,617 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:392)
              16:00:36,627 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
              16:00:36,627 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              16:00:36,637 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
              16:00:36,637 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
              16:00:36,647 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
              16:00:36,657 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
              16:00:36,657 ERROR [STDERR] at $Proxy5.start(Unknown Source)
              16:00:36,667 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
              16:00:36,667 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
              16:00:36,677 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
              16:00:36,677 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
              16:00:36,687 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
              16:00:36,687 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              16:00:36,697 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              16:00:36,707 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              16:00:36,707 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
              16:00:36,717 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
              16:00:36,727 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
              16:00:36,727 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
              16:00:36,737 ERROR [STDERR] at $Proxy6.deploy(Unknown Source)
              16:00:36,737 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:365)
              16:00:36,747 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)
              16:00:36,747 ERROR [STDERR] at org.jboss.Main.boot(Main.java:150)
              16:00:36,757 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:388)
              16:00:36,757 ERROR [STDERR] at java.lang.Thread.run(Thread.java:536)