cancel
Showing results for 
Search instead for 
Did you mean: 

Error creating bean with name 'rmiAuthenticationService'

blackout
Champ in-the-making
Champ in-the-making
Hi,

I'm having problems running Alfresco 2.0.0 Preview.

First of all, my configuration:
  • Windows XP Home

  • JDK 1.5.0 (no other JVM installed)

  • MySQL - 5.0.18-nt

  • Apache Tomcat 5.5.17
Second, what I downloaded: alfresco-community-war-2.0.0Preview.tar.gz (Platform indipendent package)

Third, what I did: unpacked the alfresco.war file into …Tomcat 5.5\webapps, used the database scripts with phpMyAdmin to create the database, started Tomcat, then the error.

Last but not least, the error:
12:16:07,074 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rmiAuthenticationService' defined in class path resource [alfresco/authentication-services-context.xml]: Initialization of bean failed; nested exception is 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: Software
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: Software
   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:460)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
   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 org.springframework.remoting.rmi.RmiServiceExporter.afterPropertiesSet(RmiServiceExporter.java:246)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   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:294)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
   java.net.MalformedURLException: no protocol: Software
   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:460)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
   at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.MalformedURLException: no protocol: Software
   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:1538)
   at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
   at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
   … 9 more

I heard about a virtual tomcat to have the WCM feature working, I didn't configure anything like that (I don't really need that feature, but I suppose is needed to have Alfresco 2.0 working correctly).

Can anyone tell me how to fix that?

Thanks Smiley Very Happy
4 REPLIES 4

richmitc
Champ in-the-making
Champ in-the-making
I had a problem that MAY be related.  At least, the error thread is similar.  See here…

http://forums.alfresco.com/viewtopic.php?t=4718&highlight=

My problem had to do with the "server" being unknown on the network even to itself.  Try pinging on the server itself, to itself, by what you believe is its DNS name.  See what IP address it goes to.  If it is not the IP address for your connection, you know.

Again, this may not be the same problem I had.  All the best…

blackout
Champ in-the-making
Champ in-the-making
I read that thread previously, and I didn't understand your problem very well Smiley Very Happy…for hostname/host resolution problem you mean that the Alfresco server was on a remote machine, am I right? 'Cause I'm working locally (http://localhost:8080/alfresco/ to be more clear). Anyway, which options did you activate in log4j settings?

Thanks anyway for your interest Smiley Very Happy

richmitc
Champ in-the-making
Champ in-the-making
Concerning the log4j options, I had set the springframework ones to debug.  (Sorry, I don't have access to the file right here to check exactly.)  I looked at your error thread and that might work for you as well.

Concerning the hostname thing….  It is tough for me to advise you under Windows though I will try below.  However, I believe you need to deal with this because I'm pretty sure that rmi is NOT using localhost.  Try this (and/or look at the firewall comment below)…

Click Start->Control Panel->Network Connection->your local connection

Click on the support tab

Read the IP address

Click Start->Control Panel->System

Click on the Computer Name tab and Full computer name

Open a Command Prompt

Type "ping YourFullComputerNameFromAbove"

See if the IP address is the one from above.  If not, that is your problem.  You would need to edit C:\Windows\System32\Drivers\etc\hosts to include your IP address and host name.  Note, this is hard to keep up with if your IP address is being assigned by DHCP versus static.  I switched mine back to static.

Wait, before doing any of this, check your firewall.  If you have the Windows firewall or some other firewall turned on, you will need to have the appropriate ports open.  In this case, I believe the defaults are 1098 and 1099.  You can search for "firewall" and/or "ports" in the forum and/or Wiki to confirm that.  IF appropriate for you case, you could always turn off you firewall.  Don't do that, of course, if that is not appropriate.

I hope the above helps.

blackout
Champ in-the-making
Champ in-the-making
I checked with ping, the hostname resolution is correct, I also tried to launch Alfrescco with the firewall down, it's still not working.