cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Virtual Tomcat

harsha
Champ in-the-making
Champ in-the-making
Hi ,

I am working with SVN to deploy Alfresco source ,I installed all the things correctly but, when I start Virtual it is giving the following error.


M
ay 20, 2008 2:59:18 PM org.springframework.jmx.export.MBeanExporter afterPropertiesSet
INFO: Registering beans for JMX exposure on startup
java.lang.reflect.InvocationTargetException
        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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: org.springframework.remoting.RemoteAccessException: Cannot access remote service [rmi://localhost:50500/authentication]; nested
s 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: 5.5.23/server/classes/
        at org.springframework.remoting.rmi.RmiClientInterceptorUtils.convertRmiAccessException(RmiClientInterceptorUtils.java:177)
        at org.springframework.remoting.rmi.RmiClientInterceptor.doInvoke(RmiClientInterceptor.java:347)
        at org.springframework.remoting.rmi.RmiClientInterceptor.invoke(RmiClientInterceptor.java:259)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
        at $Proxy0.authenticate(Unknown Source)
        at org.alfresco.catalina.host.AVMHost.init(AVMHost.java:401)
        at org.alfresco.catalina.host.AVMHost.start(AVMHost.java:686)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        … 6 more
Caused by: 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: 5.5.23/server/classes/
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:325)
        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:126)
        at org.springframework.remoting.rmi.RmiInvocationWrapper_Stub.invoke(Unknown Source)
        at org.springframework.remoting.rmi.RmiClientInterceptor.doInvoke(RmiClientInterceptor.java:400)
        at org.springframework.remoting.rmi.RmiClientInterceptor.doInvoke(RmiClientInterceptor.java:344)
        … 17 more
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
        java.net.MalformedURLException: no protocol: 5.5.23/server/classes/
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:282)
        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: 5.5.23/server/classes/
        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)
        at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:290)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:279)
        … 6 more
2 REPLIES 2

stevewickii
Champ in-the-making
Champ in-the-making
I am having the same problem with Alfresco 2.9.0B build 683.

Please Help.

stevewickii
Champ in-the-making
Champ in-the-making
Shew!  Figured it out.

The problem is on the Server side, not in the Virtual Server.  The Virtual Server makes a request to authenticate with the Alfresco Server via RMI.  The Server tries to convert all of the entries in the PATH into URLs (This is Sun's RMI code).  If the entries in the PATH contain spaces, then new URL(entry) throws a MalformedURLException.

I moved my Alfresco folder from C:\Documents and Settings\swick\Desktop to C:\, and the problem disappeared.

Here's the PATH my Server was trying to convert:


file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/classes/ file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/alfresco-catalina-virtual.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/catalina-ant-jmx.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/catalina-ant.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/catalina-cluster.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/catalina-optional.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/catalina-storeconfig.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/catalina.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/commons-modeler-2.0.1.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/hibernate-3.2.1.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/servlets-default.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/servlets-invoker.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/servlets-ssi.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/servlets-webdav.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/spring-2.0.2.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/tomcat-ajp.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/tomcat-apr.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/tomcat-coyote.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/tomcat-http.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/tomcat-jkstatus-ant.jar file:/C:/Documents and Settings/swick/Desktop/WCM POC/alfresco/virtual-tomcat/server/lib/tomcat-util.jar

I also posted this issue and solution to the Alfresco JIRA as http://issues.alfresco.com/browse/ALFCOM-1708

Hope this helps.