Hi All,
what could be reason for following ? i want to run ofbiz through eclipse. I am able to run it from outside. i am getting following error while i am trying to Run ofbiz from eclipse.i just checked out ofbiz through SVN and tried to run it as java application. > it is throwing below error. > > Set OFBIZ_HOME to - F:/workspace/ofbiz > Admin socket not configured; set to port 0 > Exception in thread "main" java.lang.ExceptionInInitializerError > at org.ofbiz.base.util.Debug.<clinit>(Debug.java:101) > at > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:57) > at org.ofbiz.base.start.Start.initStartLoaders(Start.java:257) > at org.ofbiz.base.start.Start.init(Start.java:96) > at org.ofbiz.base.start.Start.main(Start.java:412) > Caused by: java.util.MissingResourceException: Can't find bundle for base > name cache, locale en_US > at > java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521) > at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260) > at java.util.ResourceBundle.getBundle(ResourceBundle.java:715) > at > org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:226) > at > org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:222) > at org.ofbiz.base.util.cache.UtilCache.<init>(UtilCache.java:181) > at org.ofbiz.base.util.UtilProperties.<clinit>(UtilProperties.java:61) > ... 5 more > Please guide. > Thanks > -- Abhijeet Pandey |
You will need to set the ofbiz.home JVM argument. Something like
-Dofbiz.home=<Name of ofbiz folder> Thanks, Raj Abhijeet Pandey wrote: > Hi All, > > what could be reason for following ? > > i want to run ofbiz through eclipse. I am able to run it from outside. i am > getting following error while i am trying to Run ofbiz from eclipse.i just > checked out ofbiz through SVN and tried to run it as java application. > > >> it is throwing below error. >> >> Set OFBIZ_HOME to - F:/workspace/ofbiz >> Admin socket not configured; set to port 0 >> Exception in thread "main" java.lang.ExceptionInInitializerError >> at org.ofbiz.base.util.Debug.<clinit>(Debug.java:101) >> at >> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:57) >> at org.ofbiz.base.start.Start.initStartLoaders(Start.java:257) >> at org.ofbiz.base.start.Start.init(Start.java:96) >> at org.ofbiz.base.start.Start.main(Start.java:412) >> Caused by: java.util.MissingResourceException: Can't find bundle for base >> name cache, locale en_US >> at >> java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521) >> at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260) >> at java.util.ResourceBundle.getBundle(ResourceBundle.java:715) >> at >> org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:226) >> at >> org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:222) >> at org.ofbiz.base.util.cache.UtilCache.<init>(UtilCache.java:181) >> at org.ofbiz.base.util.UtilProperties.<clinit>(UtilProperties.java:61) >> ... 5 more >> > > > > > >> Please guide. >> > > > > > >> Thanks >> >> > > > > |
In reply to this post by Abhijeet Pandey
You will need to set the ofbiz.home JVM argument. Something like
-Dofbiz.home=<ofbiz folder path> Thanks, Raj Abhijeet Pandey wrote: > Hi All, > > what could be reason for following ? > > i want to run ofbiz through eclipse. I am able to run it from outside. i am > getting following error while i am trying to Run ofbiz from eclipse.i just > checked out ofbiz through SVN and tried to run it as java application. > > >> it is throwing below error. >> >> Set OFBIZ_HOME to - F:/workspace/ofbiz >> Admin socket not configured; set to port 0 >> Exception in thread "main" java.lang.ExceptionInInitializerError >> at org.ofbiz.base.util.Debug.<clinit>(Debug.java:101) >> at >> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:57) >> at org.ofbiz.base.start.Start.initStartLoaders(Start.java:257) >> at org.ofbiz.base.start.Start.init(Start.java:96) >> at org.ofbiz.base.start.Start.main(Start.java:412) >> Caused by: java.util.MissingResourceException: Can't find bundle for base >> name cache, locale en_US >> at >> java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521) >> at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260) >> at java.util.ResourceBundle.getBundle(ResourceBundle.java:715) >> at >> org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:226) >> at >> org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:222) >> at org.ofbiz.base.util.cache.UtilCache.<init>(UtilCache.java:181) >> at org.ofbiz.base.util.UtilProperties.<clinit>(UtilProperties.java:61) >> ... 5 more >> > > > > > >> Please guide. >> > > > > > >> Thanks >> >> > > > > |
In reply to this post by rajsaini
HI ,
Thanks for this . It worked .i set the class path in eclipse while defining the configuration. It is giving some other exception now after few seconds. Here is is --> what could be the reason for this , Plz guide. 18677 (main) [ GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : Created Dispatcher for: RMIDispatcher org.ofbiz.base.start.StartupException: Cannot start() org.ofbiz.service.rmi.RmiServiceContainer (Unable to bind RMIDispatcher to RMI (RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/Java/jdk1.5.0_08/lib/tools.jar)) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:91) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) at org.ofbiz.base.start.Start.startServer(Start.java:323) at org.ofbiz.base.start.Start.start(Start.java:327) at org.ofbiz.base.start.Start.main(Start.java:413) org.ofbiz.base.container.ContainerException: Unable to bind RMIDispatcher to RMI (RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/Java/jdk1.5.0_08/lib/tools.jar) at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:142) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) at org.ofbiz.base.start.Start.startServer(Start.java:323) at org.ofbiz.base.start.Start.start(Start.java:327) at org.ofbiz.base.start.Start.main(Start.java:413) java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/Java/jdk1.5.0_08/lib/tools.jar at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240) at sun.rmi.transport.Transport$1.run(Transport.java:153) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) at java.lang.Thread.run(Thread.java:595) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343) at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) at java.rmi.Naming.rebind(Naming.java:160) at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) at org.ofbiz.base.start.Start.startServer(Start.java:323) at org.ofbiz.base.start.Start.start(Start.java:327) at org.ofbiz.base.start.Start.main(Start.java:413) Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/Java/jdk1.5.0_08/lib/tools.jar at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240) at sun.rmi.transport.Transport$1.run(Transport.java:153) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) at java.lang.Thread.run(Thread.java:595) Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.5.0_08/lib/tools.jar at java.net.URL.<init>(URL.java:567) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:747) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) ... 9 more org.ofbiz.base.container.ContainerException: Unable to bind RMIDispatcher to RMI (RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/Java/jdk1.5.0_08/lib/tools.jar) at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:142) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) at org.ofbiz.base.start.Start.startServer(Start.java:323) at org.ofbiz.base.start.Start.start(Start.java:327) at org.ofbiz.base.start.Start.main(Start.java:413) java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/Java/jdk1.5.0_08/lib/tools.jar at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240) at sun.rmi.transport.Transport$1.run(Transport.java:153) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) at java.lang.Thread.run(Thread.java:595) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343) at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) at java.rmi.Naming.rebind(Naming.java:160) at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) at org.ofbiz.base.start.Start.startServer(Start.java:323) at org.ofbiz.base.start.Start.start(Start.java:327) at org.ofbiz.base.start.Start.main(Start.java:413) Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/Java/jdk1.5.0_08/lib/tools.jar at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240) at sun.rmi.transport.Transport$1.run(Transport.java:153) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) at java.lang.Thread.run(Thread.java:595) Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.5.0_08/lib/tools.jar at java.net.URL.<init>(URL.java:567) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:747) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) ... 9 more java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/Java/jdk1.5.0_08/lib/tools.jar at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240) at sun.rmi.transport.Transport$1.run(Transport.java:153) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) at java.lang.Thread.run(Thread.java:595) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343) at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) at java.rmi.Naming.rebind(Naming.java:160) at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) at org.ofbiz.base.start.Start.startServer(Start.java:323) at org.ofbiz.base.start.Start.start(Start.java:327) at org.ofbiz.base.start.Start.main(Start.java:413) Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/Java/jdk1.5.0_08/lib/tools.jar at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240) at sun.rmi.transport.Transport$1.run(Transport.java:153) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) at java.lang.Thread.run(Thread.java:595) Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.5.0_08/lib/tools.jar at java.net.URL.<init>(URL.java:567) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:747) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) ... 9 more 19271 (OFBiz_Shutdown_Hook) [ ContainerLoader.java:102:INFO ] Shutting down containers 19287 (OFBiz_Shutdown_Hook) [ CatalinaContainer.java:601:ERROR] ---- exception report ---------------------------------------------------------- Exception: org.apache.catalina.LifecycleException Message: Embedded service has not yet been started ---- stack trace --------------------------------------------------------------- LifecycleException: Embedded service has not yet been started org.apache.catalina.startup.Embedded.stop(Embedded.java:849) org.ofbiz.catalina.container.CatalinaContainer.stop(CatalinaContainer.java:598) org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:108) org.ofbiz.base.start.Start.shutdownServer(Start.java:309) org.ofbiz.base.start.Start.access$000(Start.java:52) org.ofbiz.base.start.Start$1.run(Start.java:286) -------------------------------------------------------------------------------- 19287 (OFBiz_Shutdown_Hook) [ JavaMailContainer.java:153:INFO ] stop JavaMail poller 19287 (OFBiz_Shutdown_Hook) [ ServiceDispatcher.java:179:INFO ] De-Registering dispatcher: RMIDispatcher 19287 (OFBiz_Shutdown_Hook) [ ServiceDispatcher.java:693:INFO ] Shutting down the service engine... 19287 (OFBiz_Shutdown_Hook) [ JobPoller.java:149:INFO ] Destroying thread pool... 19287 (OFBiz_Shutdown_Hook) [ JobManager.java:453:INFO ] JobManager: Stopped Scheduler Thread. Please let me know the reason and solution for the same. Thanks, Abhijeet Pandey > > > On Wed, Aug 5, 2009 at 11:52 AM, Raj Saini <[hidden email]> wrote: > >> You will need to set the ofbiz.home JVM argument. Something like >> -Dofbiz.home=<Name of ofbiz folder> >> >> Thanks, >> >> Raj >> >> >> Abhijeet Pandey wrote: >> >>> Hi All, >>> >>> what could be reason for following ? >>> >>> i want to run ofbiz through eclipse. I am able to run it from outside. i >>> am >>> getting following error while i am trying to Run ofbiz from eclipse.i >>> just >>> checked out ofbiz through SVN and tried to run it as java application. >>> >>> >>> >>>> it is throwing below error. >>>> >>>> Set OFBIZ_HOME to - F:/workspace/ofbiz >>>> Admin socket not configured; set to port 0 >>>> Exception in thread "main" java.lang.ExceptionInInitializerError >>>> at org.ofbiz.base.util.Debug.<clinit>(Debug.java:101) >>>> at >>>> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:57) >>>> at org.ofbiz.base.start.Start.initStartLoaders(Start.java:257) >>>> at org.ofbiz.base.start.Start.init(Start.java:96) >>>> at org.ofbiz.base.start.Start.main(Start.java:412) >>>> Caused by: java.util.MissingResourceException: Can't find bundle for >>>> base >>>> name cache, locale en_US >>>> at >>>> >>>> java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521) >>>> at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260) >>>> at java.util.ResourceBundle.getBundle(ResourceBundle.java:715) >>>> at >>>> >>>> org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:226) >>>> at >>>> >>>> org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:222) >>>> at org.ofbiz.base.util.cache.UtilCache.<init>(UtilCache.java:181) >>>> at >>>> org.ofbiz.base.util.UtilProperties.<clinit>(UtilProperties.java:61) >>>> ... 5 more >>>> >>>> >>> >>> >>> >>> >>> >>> >>>> Please guide. >>>> >>>> >>> >>> >>> >>> >>> >>> >>>> Thanks >>>> >>>> >>>> >>> >>> >>> >>> >>> >> >> > > > -- > Abhijeet Pandey > -- Abhijeet Pandey |
You have space in your JDK install path. It is advised to install your
JDK to location which does not have spaces. Thanks, Raj Abhijeet Pandey wrote: > HI , > > Thanks for this . It worked . > i set the class path in eclipse while defining the configuration. > It is giving some other exception now after few seconds. > > Here is is --> what could be the reason for this , Plz guide. > > 18677 (main) [ GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : > Created Dispatcher for: RMIDispatcher > org.ofbiz.base.start.StartupException: Cannot start() > org.ofbiz.service.rmi.RmiServiceContainer (Unable to bind > RMIDispatcher to RMI (RemoteException occurred in server thread; > nested exception is: > java.rmi.UnmarshalException: error unmarshalling arguments; nested > exception is: > java.net.MalformedURLException: no protocol: > Files/Java/jdk1.5.0_08/lib/tools.jar)) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:91) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > at org.ofbiz.base.start.Start.startServer(Start.java:323) > at org.ofbiz.base.start.Start.start(Start.java:327) > at org.ofbiz.base.start.Start.main(Start.java:413) > org.ofbiz.base.container.ContainerException: Unable to bind > RMIDispatcher to RMI (RemoteException occurred in server thread; > nested exception is: > java.rmi.UnmarshalException: error unmarshalling arguments; nested > exception is: > java.net.MalformedURLException: no protocol: > Files/Java/jdk1.5.0_08/lib/tools.jar) > at > org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:142) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > at org.ofbiz.base.start.Start.startServer(Start.java:323) > at org.ofbiz.base.start.Start.start(Start.java:327) > at org.ofbiz.base.start.Start.main(Start.java:413) > java.rmi.ServerException: RemoteException occurred in server thread; > nested exception is: > java.rmi.UnmarshalException: error unmarshalling arguments; nested > exception is: > java.net.MalformedURLException: no protocol: > Files/Java/jdk1.5.0_08/lib/tools.jar > at > sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240) > at sun.rmi.transport.Transport$1.run(Transport.java:153) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:149) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) > at java.lang.Thread.run(Thread.java:595) > at > sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) > at > sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343) > at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) > at java.rmi.Naming.rebind(Naming.java:160) > at > org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > at org.ofbiz.base.start.Start.startServer(Start.java:323) > at org.ofbiz.base.start.Start.start(Start.java:327) > at org.ofbiz.base.start.Start.main(Start.java:413) > Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; > nested exception is: > java.net.MalformedURLException: no protocol: > Files/Java/jdk1.5.0_08/lib/tools.jar > at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > at > sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240) > at sun.rmi.transport.Transport$1.run(Transport.java:153) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:149) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) > at java.lang.Thread.run(Thread.java:595) > Caused by: java.net.MalformedURLException: no protocol: > Files/Java/jdk1.5.0_08/lib/tools.jar > at java.net.URL.<init>(URL.java:567) > at java.net.URL.<init>(URL.java:464) > at java.net.URL.<init>(URL.java:413) > at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:747) > at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > at > sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > at > java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544) > at > java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) > at > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) > ... 9 more > org.ofbiz.base.container.ContainerException: Unable to bind > RMIDispatcher to RMI (RemoteException occurred in server thread; > nested exception is: > java.rmi.UnmarshalException: error unmarshalling arguments; nested > exception is: > java.net.MalformedURLException: no protocol: > Files/Java/jdk1.5.0_08/lib/tools.jar) > at > org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:142) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > at org.ofbiz.base.start.Start.startServer(Start.java:323) > at org.ofbiz.base.start.Start.start(Start.java:327) > at org.ofbiz.base.start.Start.main(Start.java:413) > java.rmi.ServerException: RemoteException occurred in server thread; > nested exception is: > java.rmi.UnmarshalException: error unmarshalling arguments; nested > exception is: > java.net.MalformedURLException: no protocol: > Files/Java/jdk1.5.0_08/lib/tools.jar > at > sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240) > at sun.rmi.transport.Transport$1.run(Transport.java:153) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:149) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) > at java.lang.Thread.run(Thread.java:595) > at > sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) > at > sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343) > at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) > at java.rmi.Naming.rebind(Naming.java:160) > at > org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > at org.ofbiz.base.start.Start.startServer(Start.java:323) > at org.ofbiz.base.start.Start.start(Start.java:327) > at org.ofbiz.base.start.Start.main(Start.java:413) > Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; > nested exception is: > java.net.MalformedURLException: no protocol: > Files/Java/jdk1.5.0_08/lib/tools.jar > at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > at > sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240) > at sun.rmi.transport.Transport$1.run(Transport.java:153) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:149) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) > at java.lang.Thread.run(Thread.java:595) > Caused by: java.net.MalformedURLException: no protocol: > Files/Java/jdk1.5.0_08/lib/tools.jar > at java.net.URL.<init>(URL.java:567) > at java.net.URL.<init>(URL.java:464) > at java.net.URL.<init>(URL.java:413) > at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:747) > at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > at > sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > at > java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544) > at > java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) > at > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) > ... 9 more > java.rmi.ServerException: RemoteException occurred in server thread; > nested exception is: > java.rmi.UnmarshalException: error unmarshalling arguments; nested > exception is: > java.net.MalformedURLException: no protocol: > Files/Java/jdk1.5.0_08/lib/tools.jar > at > sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240) > at sun.rmi.transport.Transport$1.run(Transport.java:153) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:149) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) > at java.lang.Thread.run(Thread.java:595) > at > sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) > at > sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343) > at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) > at java.rmi.Naming.rebind(Naming.java:160) > at > org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > at org.ofbiz.base.start.Start.startServer(Start.java:323) > at org.ofbiz.base.start.Start.start(Start.java:327) > at org.ofbiz.base.start.Start.main(Start.java:413) > Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; > nested exception is: > java.net.MalformedURLException: no protocol: > Files/Java/jdk1.5.0_08/lib/tools.jar > at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > at > sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240) > at sun.rmi.transport.Transport$1.run(Transport.java:153) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:149) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) > at java.lang.Thread.run(Thread.java:595) > Caused by: java.net.MalformedURLException: no protocol: > Files/Java/jdk1.5.0_08/lib/tools.jar > at java.net.URL.<init>(URL.java:567) > at java.net.URL.<init>(URL.java:464) > at java.net.URL.<init>(URL.java:413) > at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:747) > at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > at > sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > at > java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544) > at > java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) > at > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) > ... 9 more > 19271 (OFBiz_Shutdown_Hook) [ ContainerLoader.java:102:INFO ] > Shutting down containers > 19287 (OFBiz_Shutdown_Hook) [ CatalinaContainer.java:601:ERROR] > ---- exception report > ---------------------------------------------------------- > Exception: org.apache.catalina.LifecycleException > Message: Embedded service has not yet been started > ---- stack trace > --------------------------------------------------------------- > LifecycleException: Embedded service has not yet been started > org.apache.catalina.startup.Embedded.stop(Embedded.java:849) > org.ofbiz.catalina.container.CatalinaContainer.stop(CatalinaContainer.java:598) > org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:108) > org.ofbiz.base.start.Start.shutdownServer(Start.java:309) > org.ofbiz.base.start.Start.access$000(Start.java:52) > org.ofbiz.base.start.Start$1.run(Start.java:286) > -------------------------------------------------------------------------------- > > 19287 (OFBiz_Shutdown_Hook) [ JavaMailContainer.java:153:INFO ] stop > JavaMail poller > 19287 (OFBiz_Shutdown_Hook) [ ServiceDispatcher.java:179:INFO ] > De-Registering dispatcher: RMIDispatcher > 19287 (OFBiz_Shutdown_Hook) [ ServiceDispatcher.java:693:INFO ] > Shutting down the service engine... > 19287 (OFBiz_Shutdown_Hook) [ JobPoller.java:149:INFO ] > Destroying thread pool... > 19287 (OFBiz_Shutdown_Hook) [ JobManager.java:453:INFO ] > JobManager: Stopped Scheduler Thread. > > > > Please let me know the reason and solution for the same. > > > Thanks, > > Abhijeet Pandey > > > > > > On Wed, Aug 5, 2009 at 11:52 AM, Raj Saini <[hidden email] > <mailto:[hidden email]>> wrote: > > You will need to set the ofbiz.home JVM argument. Something > like -Dofbiz.home=<Name of ofbiz folder> > > Thanks, > > Raj > > > Abhijeet Pandey wrote: > > Hi All, > > what could be reason for following ? > > i want to run ofbiz through eclipse. I am able to run it > from outside. i am > getting following error while i am trying to Run ofbiz > from eclipse.i just > checked out ofbiz through SVN and tried to run it as java > application. > > > > it is throwing below error. > > Set OFBIZ_HOME to - F:/workspace/ofbiz > Admin socket not configured; set to port 0 > Exception in thread "main" > java.lang.ExceptionInInitializerError > at org.ofbiz.base.util.Debug.<clinit>(Debug.java:101) > at > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:57) > at > org.ofbiz.base.start.Start.initStartLoaders(Start.java:257) > at org.ofbiz.base.start.Start.init(Start.java:96) > at org.ofbiz.base.start.Start.main(Start.java:412) > Caused by: java.util.MissingResourceException: Can't > find bundle for base > name cache, locale en_US > at > java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521) > at > java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260) > at > java.util.ResourceBundle.getBundle(ResourceBundle.java:715) > at > org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:226) > at > org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:222) > at > org.ofbiz.base.util.cache.UtilCache.<init>(UtilCache.java:181) > at > org.ofbiz.base.util.UtilProperties.<clinit>(UtilProperties.java:61) > ... 5 more > > > > > > > > > Please guide. > > > > > > > > > Thanks > > > > > > > > > > > > > -- > Abhijeet Pandey > > > > > -- > Abhijeet Pandey |
Free forum by Nabble | Edit this page |