|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
Exception on deploymentI tried to create a simple remoting application to evaluate Lingo. I have added the lingo jar, the basic spring jars and the activemq jar to the classpath. Any ideas if there's something I'm doing wrong from the Lingo side of things?
Thanks On deployment of the war to JBoss 5 AS, this is what I see: 15:51:51,815 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1d55b9f: defining beans [client,server,serverImpl,jmsFactory,exampleDestination]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@d01167 15:51:51,908 INFO [DefaultListableBeanFactory] Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1d55b9f: defining beans [client,server,serverImpl,jmsFactory,exampleDestination]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@d01167 15:51:51,908 ERROR [DispatcherServlet] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'client' defined in ServletContext resource [/WEB-INF/mylingo-servlet.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/FutureTask at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) . . . . . . at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553) at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781) at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205) at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405) at org.jboss.Main.boot(Main.java:209) at org.jboss.Main$1.run(Main.java:547) Here are the relevant xml (on the server side), .. the client xml doesn't really do anything: <?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <display-name>SpringWebApp</display-name> <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet-mapping> <servlet-name>simple</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> <servlet> <servlet-name>simple</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/simple-servlet.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> <welcome-file>/myfile.jsp</welcome-file> </welcome-file-list> <login-config> <auth-method>BASIC</auth-method> </login-config> </web-app> mylingo-servlet.xml <?xml version="1.0" encoding="UTF-8"?> <!-- START SNIPPET: spring --> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <!-- client side proxy--> <bean id="client" class="org.logicblaze.lingo.jms.JmsProxyFactoryBean"> <property name="serviceInterface" value="com.vgb.lingoremoting.service.EchoService"/> <property name="connectionFactory" ref="jmsFactory"/> <property name="destination" ref="exampleDestination"/> </bean> <!-- the server side --> <bean id="server" class="org.logicblaze.lingo.jms.JmsServiceExporter"> <property name="service" ref="serverImpl"/> <property name="serviceInterface" value="com.vgb.lingoremoting.service.EchoService"/> <property name="connectionFactory" ref="jmsFactory"/> <property name="destination" ref="exampleDestination"/> </bean> <!-- the actual implementation of the service - which is only made public for testing purposes --> <bean id="serverImpl" class="com.vgb.lingoremoting.service.EchoServiceImpl" singleton="true"/> <!-- JMS ConnectionFactory to use --> <bean id="jmsFactory" class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="brokerURL" value="vm://localhost"/> </bean> <bean id="exampleDestination" class="org.apache.activemq.command.ActiveMQQueue"> <constructor-arg index="0" value="test.org.logicblaze.lingo.example"/> </bean> </beans> <!-- END SNIPPET: spring --> |
| Free embeddable forum powered by Nabble | Forum Help |