1 Reply Latest reply on Dec 27, 2007 10:11 AM by jaikiran pai

    Cannot install JBoss on Windows

    Jose Espinoza Newbie

      Hi,

      I have been trying to install jboss-4.2.2.GA with jdk1.5.0_12 on Windows XP sp2 station and all the times i got a message like this:

      "javax.naming.NoInitialContextException: Cannot instantiate class: oracle.j2ee.rmi.RMIInitialContextFactory"

      I have Oracle SOA Suite (OC4J) already installed in the machine, but it's not running at the same time when i try to install JBoss.
      What do you think?, it's a configuration theme?

      Here is a part of the bootstrap activities logged and as you will see appears the message related to the Oracle class....

      2007-12-27 10:48:32,154 DEBUG [org.jboss.system.ServiceController] starting service jboss:service=WebService
      2007-12-27 10:48:32,154 DEBUG [org.jboss.web.WebService] Starting jboss:service=WebService
      2007-12-27 10:48:32,170 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Running
      2007-12-27 10:48:32,170 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Disabled, waiting for notification
      2007-12-27 10:48:32,170 DEBUG [org.jboss.web.WebServer] Started server: ServerSocket[addr=/127.0.0.1,port=0,localport=8083]
      2007-12-27 10:48:32,185 DEBUG [org.jboss.web.WebService] Started WebServer with address: /127.0.0.1:8083
      2007-12-27 10:48:32,185 DEBUG [org.jboss.web.WebService] Started jboss:service=WebService
      2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss:service=WebService dependent components: []
      2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] starting service jboss:service=Naming
      2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] waiting in start jboss:service=Naming on jboss:service=NamingBeanImpl
      2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] starting service jboss.system:type=Log4jService,service=Logging
      2007-12-27 10:48:32,185 DEBUG [org.jboss.logging.Log4jService] Starting jboss.system:type=Log4jService,service=Logging
      2007-12-27 10:48:32,185 DEBUG [org.jboss.logging.Log4jService] Started jboss.system:type=Log4jService,service=Logging
      2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.system:type=Log4jService,service=Logging dependent components: []
      2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] starting service jboss.rmi:type=RMIClassLoader
      2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.rmi:type=RMIClassLoader dependent components: []
      2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] starting service jboss:service=WebService
      2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] Ignoring start request for service: jboss:service=WebService
      2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] starting service jboss:service=NamingBeanImpl
      2007-12-27 10:48:32,185 DEBUG [org.jnp.server.NamingBeanImpl] Using NamingServer: org.jnp.server.NamingServer@3a1834
      2007-12-27 10:48:32,185 DEBUG [org.jnp.server.NamingBeanImpl] Installed global NamingServer: org.jnp.server.NamingServer@3a1834
      2007-12-27 10:48:32,201 WARN [org.jboss.system.ServiceController] Problem starting service jboss:service=NamingBeanImpl
      javax.naming.NoInitialContextException: Cannot instantiate class: oracle.j2ee.rmi.RMIInitialContextFactory [Root exception is java.lang.ClassNotFoundException: No ClassLoaders found for: oracle.j2ee.rmi.RMIInitialContextFactory]
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
      at javax.naming.InitialContext.init(InitialContext.java:223)
      at javax.naming.InitialContext.(InitialContext.java:175)
      at org.jnp.server.NamingBeanImpl.start(NamingBeanImpl.java:123)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:508)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: oracle.j2ee.rmi.RMIInitialContextFactory
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:242)
      at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
      ... 54 more
      2007-12-27 10:48:32,201 DEBUG [org.jboss.system.ServiceController] starting service jboss:service=Naming
      2007-12-27 10:48:32,201 DEBUG [org.jboss.system.ServiceController] waiting in start jboss:service=Naming on jboss:service=NamingBeanImpl
      2007-12-27 10:48:32,201 DEBUG [org.jboss.system.ServiceController] starting service jboss:service=JNDIView
      2007-12-27 10:48:32,201 DEBUG [org.jboss.naming.JNDIView] Starting jboss:service=JNDIView
      2007-12-27 10:48:32,201 DEBUG [org.jboss.naming.JNDIView] Started jboss:service=JNDIView
      2007-12-27 10:48:32,201 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss:service=JNDIView dependent components: []
      2007-12-27 10:48:32,201 DEBUG [org.jboss.system.ServiceController] starting service jboss.security:service=SecurityConfig
      2007-12-27 10:48:32,201 DEBUG [org.jboss.security.plugins.SecurityConfig] Starting jboss.security:service=SecurityConfig
      2007-12-27 10:48:32,201 DEBUG [org.jboss.security.plugins.SecurityConfig] Installed JAAS Configuration service=jboss.security:service=XMLLoginConfig, config=org.jboss.security.auth.login.XMLLoginConfigImpl@1b4c1d7
      2007-12-27 10:48:32,201 DEBUG [org.jboss.security.plugins.SecurityConfig] Started jboss.security:service=SecurityConfig
      2007-12-27 10:48:32,201 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.security:service=SecurityConfig dependent components: []
      2007-12-27 10:48:32,201 DEBUG [org.jboss.system.ServiceController] starting service jboss.security:service=XMLLoginConfig
      2007-12-27 10:48:32,201 DEBUG [org.jboss.security.auth.login.XMLLoginConfig] Starting jboss.security:service=XMLLoginConfig
      2007-12-27 10:48:32,201 DEBUG [org.jboss.security.auth.login.XMLLoginConfigImpl] Try loading config as XML, url=file:/E:/disk_c/compartido/JBoss/jboss-4.2.2.GA/server/default/conf/login-config.xml
      2007-12-27 10:48:32,357 DEBUG [org.jboss.security.auth.login.XMLLoginConfig] Started jboss.security:service=XMLLoginConfig
      2007-12-27 10:48:32,357 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.security:service=XMLLoginConfig dependent components: []
      2007-12-27 10:48:32,357 DEBUG [org.jboss.system.ServiceController] starting service jboss.security:service=JaasSecurityManager
      2007-12-27 10:48:32,357 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Starting jboss.security:service=JaasSecurityManager
      2007-12-27 10:48:32,357 DEBUG [org.jboss.security.SecurityAssociation] Using ThreadLocal: false
      2007-12-27 10:48:32,373 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Starting failed jboss.security:service=JaasSecurityManager
      javax.naming.NoInitialContextException: Cannot instantiate class: oracle.j2ee.rmi.RMIInitialContextFactory [Root exception is java.lang.ClassNotFoundException: No ClassLoaders found for: oracle.j2ee.rmi.RMIInitialContextFactory]
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)

      any thoughts will be appreciated
      Jose

        • 1. Re: Cannot install JBoss on Windows
          jaikiran pai Master

          Do you have any jndi.properties file in your classpath (containing reference to this oracle.j2ee.rmi.RMIInitialContextFactory class)? If so remove that from the classpath. JBoss looks for the default jndi context entries from the jndi.properties file present in %JBOSS_HOME%/server/< serverName>/conf folder (in your case E:/disk_c/compartido/JBoss/jboss-4.2.2.GA/server/default/conf folder).

          Maybe you have a jndi.properties file in your classpath which is causing this problem.