1 Reply Latest reply on May 28, 2004 9:47 AM by Junjie Du

    About namingservice

    Junjie Du Newbie

      Hi,I have a problem when make some change to the source file. I rename source file NamingServer.java in package "org.jnp.server" to MyNamingServer.java and change type "NamingServer" in source file Main.java to "MyNamingServer". I recompile the source file of JBoss3.2.3 and it suceeds, but when I run the JBoss, there are the following exceptions.

      Can someone help me?
      Thanks in advance
      Regards, Du

      2004-05-26 14:22:08,968 INFO [org.jboss.naming.NamingService] Starting jnp server
      2004-05-26 14:22:08,984 INFO [STDOUT] this is du's naming server!
      2004-05-26 14:22:08,984 INFO [STDOUT] this is du's naming server!
      2004-05-26 14:22:09,031 ERROR [org.jboss.naming.NamingService] Starting failed
      java.rmi.StubNotFoundException: Stub class not found: org.jnp.server.MyNamingServer_Stub; nested exception is:
       java.lang.ClassNotFoundException: No ClassLoaders found for: org.jnp.server.MyNamingServer_Stub
       at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:98)
       at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:55)
       at sun.rmi.server.UnicastServerRef.setSkeleton(UnicastServerRef.java:179)
       at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:142)
       at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:129)
       at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:275)
       at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:206)
       at org.jnp.server.Main.initJnpInvoker(Main.java:379)
       at org.jnp.server.Main.start(Main.java:252)
       at org.jboss.naming.NamingService.startService(NamingService.java:172)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
       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:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:394)
       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:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy4.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
       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:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
       at org.jboss.Main.boot(Main.java:150)
       at org.jboss.Main$1.run(Main.java:395)
       at java.lang.Thread.run(Thread.java:534)
      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jnp.server.MyNamingServer_Stub
       at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:241)
       at org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLoader3.java:169)
       at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:123)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
       at sun.rmi.server.RemoteProxy.loadClassFromClass(RemoteProxy.java:191)
       at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:93)
       ... 45 more