Hi ,
I downloaded alfresco-community-3.4b.exe and i installed that . and i downloaded alfresco sdk and i imported some samples from sdk into eclipse and i tried to run that. But i am getting some exceptions
Exception in thread "main" org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'avmRemoteService' defined in class path resource [alfresco/remote-services-context.xml]: Invocation of init method failed; nested exception is java.rmi.server.ExportException: Listen failed on port: 50501; nested exception is:
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1401)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:512)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 90)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:287 )
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:557)
at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:842)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:416)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:139)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:83)
at org.alfresco.sample.jcr.MixedExample.main(MixedExa mple.java:49)
Caused by: java.rmi.server.ExportException: Listen failed on port: 50501; nested exception is:
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
at sun.rmi.transport.tcp.TCPTransport.listen(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.exportObject(Un known Source)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unk nown Source)
at sun.rmi.transport.LiveRef.exportObject(Unknown Source)
at sun.rmi.server.UnicastServerRef.exportObject(Unkno wn Source)
at java.rmi.server.UnicastRemoteObject.exportObject(U nknown Source)
at java.rmi.server.UnicastRemoteObject.exportObject(U nknown Source)
at org.springframework.remoting.rmi.RmiServiceExporte r.prepare(RmiServiceExporter.java:280)
at org.springframework.remoting.rmi.RmiServiceExporte r.afterPropertiesSet(RmiServiceExporter.java:227)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1460)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1398)
... 12 more
Caused by: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.cre ateServerSocket(Unknown Source)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.cre ateServerSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket( Unknown Source)
... 23 more