tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Louis MONTEIRO <jean-louis.monte...@atosorigin.com>
Subject Re: Strange exception with Tomcat plugin
Date Thu, 30 Jul 2009 21:09:40 GMT

Hi Christian,

I guess you have a jms api in your WEB-INF/lib (from your webapp).
Can you check please or give us the WEB-INF/lib content ?
May be you have a dependency which is not provided ?

Hope it helps
Jean-Louis


Christian Kaps wrote:
> 
> Hi,
> 
> I get a strange exception testing the OpenEJB Tomcat plugin.
> 
> Exception: class org.apache.openejb.OpenEJBException: Deployment 'JMSBean'
> has message listener interface javax.jms.MessageListener but this MDB
> container only supports interface javax.jms.MessageListener
> 
> Here is the log:
> 2009-07-30 18:43:12,617 - INFO  - openejb.home = D:\Tools\Tomcat
> 2009-07-30 18:43:12,617 - INFO  - openejb.base =
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
> 2009-07-30 18:43:13,163 - INFO  - Using
> 'openejb.provider.default=org.apache.openejb.tomcat'
> 2009-07-30 18:43:13,179 - INFO  - Configuring Service(id=Tomcat Security
> Service, type=SecurityService, provider-id=Tomcat Security Service)
> 2009-07-30 18:43:13,179 - INFO  - Configuring Service(id=Default
> Transaction Manager, type=TransactionManager, provider-id=Default
> Transaction Manager)
> 2009-07-30 18:43:13,179 - INFO  - Configuring Service(id=My DataSource,
> type=Resource, provider-id=Default JDBC Database)
> 2009-07-30 18:43:13,179 - INFO  - Configuring Service(id=My Unmanaged
> DataSource, type=Resource, provider-id=Default JDBC Database)
> 2009-07-30 18:43:13,179 - INFO  - Configuring Service(id=My JMS Resource
> Adapter, type=Resource, provider-id=Default JMS Resource Adapter)
> 2009-07-30 18:43:13,179 - INFO  - Configuring Service(id=My JMS Connection
> Factory, type=Resource, provider-id=Default JMS Connection Factory)
> 2009-07-30 18:43:13,179 - INFO  - Configuring Service(id=My CMP Container,
> type=Container, provider-id=Default CMP Container)
> 2009-07-30 18:43:13,179 - INFO  - Configuring Service(id=My BMP Container,
> type=Container, provider-id=Default BMP Container)
> 2009-07-30 18:43:13,179 - INFO  - Configuring Service(id=My Stateful
> Container, type=Container, provider-id=Default Stateful Container)
> 2009-07-30 18:43:13,179 - INFO  - Configuring Service(id=My Stateless
> Container, type=Container, provider-id=Default Stateless Container)
> 2009-07-30 18:43:13,195 - INFO  - Configuring Service(id=My MDB Container
> , type=Container, provider-id=Default MDB Container)
> 2009-07-30 18:43:13,195 - INFO  - Using
> 'openejb.deployments.classpath=true'
> 2009-07-30 18:43:13,195 - INFO  - Using
> 'openejb.deployments.classpath.filter.systemapps=false'
> 2009-07-30 18:43:13,492 - INFO  - Found EjbModule in classpath:
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\openejb\lib\openejb-core-3.1.1.jar
> 2009-07-30 18:43:13,507 - INFO  - Found ClientModule in classpath:
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\openejb\lib\openejb-client-3.1.1.jar
> 2009-07-30 18:43:13,507 - INFO  - Found ClientModule in classpath:
> D:\Tools\Tomcat\bin\bootstrap.jar
> 2009-07-30 18:43:13,523 - INFO  - Found ClientModule in classpath:
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\openejb\lib\xml-resolver-1.2.jar
> 2009-07-30 18:43:13,554 - INFO  - Beginning load:
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\openejb\lib\openejb-core-3.1.1.jar
> 2009-07-30 18:43:13,695 - INFO  - Beginning load:
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\openejb\lib\openejb-client-3.1.1.jar
> 2009-07-30 18:43:13,695 - INFO  - Beginning load:
> D:\Tools\Tomcat\bin\bootstrap.jar
> 2009-07-30 18:43:13,710 - INFO  - Beginning load:
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\openejb\lib\xml-resolver-1.2.jar
> 2009-07-30 18:43:13,726 - INFO  - Configuring enterprise application:
> classpath.ear
> 2009-07-30 18:43:13,773 - WARN  - No application-client.xml found assuming
> annotations present: classpath.ear, module: openejb-client-3.1.1.jar
> 2009-07-30 18:43:13,773 - WARN  - No application-client.xml found assuming
> annotations present: classpath.ear, module: bootstrap.jar
> 2009-07-30 18:43:13,773 - WARN  - No application-client.xml found assuming
> annotations present: classpath.ear, module: xml-resolver-1.2.jar
> 2009-07-30 18:43:15,038 - INFO  - Enterprise application "classpath.ear"
> loaded.
> 2009-07-30 18:43:15,038 - INFO  - Creating TransactionManager(id=Default
> Transaction Manager)
> 2009-07-30 18:43:15,179 - INFO  - Creating SecurityService(id=Tomcat
> Security Service)
> 2009-07-30 18:43:15,210 - INFO  - Creating Resource(id=My DataSource)
> 2009-07-30 18:43:15,241 - INFO  - Creating Resource(id=My Unmanaged
> DataSource)
> 2009-07-30 18:43:15,257 - INFO  - Creating Resource(id=My JMS Resource
> Adapter)
> 2009-07-30 18:43:15,757 - INFO  - Creating Resource(id=My JMS Connection
> Factory)
> 2009-07-30 18:43:15,757 - INFO  - Creating ConnectionManager for
> Resource(id=My JMS Connection Factory)
> 2009-07-30 18:43:15,804 - INFO  - Creating Container(id=My CMP Container)
> 2009-07-30 18:43:15,835 - INFO  - Creating Container(id=My BMP Container)
> 2009-07-30 18:43:15,851 - INFO  - Creating Container(id=My Stateful
> Container)
> 2009-07-30 18:43:15,929 - INFO  - Creating Container(id=My Stateless
> Container)
> 2009-07-30 18:43:15,929 - INFO  - Creating Container(id=My MDB Container )
> 2009-07-30 18:43:15,991 - INFO  - Assembling app: classpath.ear
> 2009-07-30 18:43:16,147 - INFO  - Using
> 'openejb.jndiname.format={deploymentId}{interfaceType.openejbLegacyName}'
> 2009-07-30 18:43:16,194 - INFO  -
> Jndi(name=openejb/ConfigurationInfoBusinessRemote) -->
> Ejb(deployment-id=openejb/ConfigurationInfo)
> 2009-07-30 18:43:16,194 - INFO  -
> Jndi(name=openejb/DeployerBusinessRemote) -->
> Ejb(deployment-id=openejb/Deployer)
> 2009-07-30 18:43:16,194 - INFO  - Jndi(name=MEJB) -->
> Ejb(deployment-id=MEJB)
> 2009-07-30 18:43:16,210 - INFO  - Created
> Ejb(deployment-id=openejb/ConfigurationInfo,
> ejb-name=openejb/ConfigurationInfo, container=My Stateless Container)
> 2009-07-30 18:43:16,210 - INFO  - Created Ejb(deployment-id=MEJB,
> ejb-name=MEJB, container=My Stateless Container)
> 2009-07-30 18:43:16,210 - INFO  - Created
> Ejb(deployment-id=openejb/Deployer, ejb-name=openejb/Deployer,
> container=My Stateless Container)
> 2009-07-30 18:43:16,210 - INFO  - Deployed Application(path=classpath.ear)
> 2009-07-30 18:43:16,897 - INFO  - Importing a Tomcat Resource with id
> 'UserDatabase' of type 'org.apache.catalina.UserDatabase'.
> 2009-07-30 18:43:16,897 - INFO  - Creating Resource(id=UserDatabase)
> 2009-07-30 18:43:17,491 - INFO  - Configuring enterprise application:
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ROOT
> 2009-07-30 18:43:17,507 - INFO  - Enterprise application
> "D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ROOT"
> loaded.
> 2009-07-30 18:43:17,507 - INFO  - Assembling app:
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ROOT
> 2009-07-30 18:43:17,507 - INFO  - Deployed
> Application(path=D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ROOT)
> 2009-07-30 18:43:21,475 - INFO  - Found ejb module EjbModule in war /chat
> 2009-07-30 18:43:21,475 - INFO  - Configuring enterprise application:
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\chat
> 2009-07-30 18:43:21,522 - INFO  - Configuring Service(id=FlexTopic,
> type=Resource, provider-id=Default Topic)
> 2009-07-30 18:43:21,522 - INFO  - Auto-creating a Resource with id
> 'FlexTopic' of type 'javax.jms.Topic for 'JMSBean'.
> 2009-07-30 18:43:21,522 - INFO  - Creating Resource(id=FlexTopic)
> 2009-07-30 18:43:21,553 - INFO  - Configuring
> PersistenceUnit(name=activemq,
> provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
> 2009-07-30 18:43:21,553 - INFO  - Adjusting PersistenceUnit activemq
> <jta-data-source> to Resource ID 'My DataSource' from 'null'
> 2009-07-30 18:43:21,553 - INFO  - Adjusting PersistenceUnit activemq
> <non-jta-data-source> to Resource ID 'My Unmanaged DataSource' from 'null'
> 2009-07-30 18:43:21,568 - INFO  - Enterprise application
> "D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\chat"
> loaded.
> 2009-07-30 18:43:21,568 - INFO  - Assembling app:
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\chat
> 2009-07-30 18:43:21,584 - INFO  - PersistenceUnit(name=activemq,
> provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
> 2009-07-30 18:43:22,240 - INFO  - Undeploying app:
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\chat
> 2009-07-30 18:43:22,240 - ERROR - Unable to deploy collapsed ear in war
> /chat: Exception: Creating application failed:
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\chat:
> Error deploying 'JMSBean'.  Exception: class
> org.apache.openejb.OpenEJBException: Deployment 'JMSBean' has message
> listener interface javax.jms.MessageListener but this MDB container only
> supports interface javax.jms.MessageListener: Deployment 'JMSBean' has
> message listener interface javax.jms.MessageListener but this MDB
> container only supports interface javax.jms.MessageListener
> org.apache.openejb.OpenEJBException: Creating application failed:
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\chat:
> Error deploying 'JMSBean'.  Exception: class
> org.apache.openejb.OpenEJBException: Deployment 'JMSBean' has message
> listener interface javax.jms.MessageListener but this MDB container only
> supports interface javax.jms.MessageListener: Deployment 'JMSBean' has
> message listener interface javax.jms.MessageListener but this MDB
> container only supports interface javax.jms.MessageListener
> 	at
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:658)
> 	at
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:442)
> 	at
> org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.start(TomcatWebAppBuilder.java:249)
> 	at
> org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:58)
> 	at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4239)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> 	at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Caused by: org.apache.openejb.OpenEJBException: Error deploying 'JMSBean'. 
> Exception: class org.apache.openejb.OpenEJBException: Deployment 'JMSBean'
> has message listener interface javax.jms.MessageListener but this MDB
> container only supports interface javax.jms.MessageListener: Deployment
> 'JMSBean' has message listener interface javax.jms.MessageListener but
> this MDB container only supports interface javax.jms.MessageListener
> 	at
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:594)
> 	... 18 more
> Caused by: org.apache.openejb.OpenEJBException: Deployment 'JMSBean' has
> message listener interface javax.jms.MessageListener but this MDB
> container only supports interface javax.jms.MessageListener
> 	at org.apache.openejb.core.mdb.MdbContainer.deploy(MdbContainer.java:120)
> 	at
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:591)
> 	... 18 more
> 2009-07-30 18:43:24,115 - INFO  - Configuring enterprise application:
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\openejb
> 2009-07-30 18:43:24,115 - INFO  - Enterprise application
> "D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\openejb"
> loaded.
> 2009-07-30 18:43:24,115 - INFO  - Assembling app:
> D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\openejb
> 2009-07-30 18:43:24,115 - INFO  - Deployed
> Application(path=D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\openejb)
> 
> This log is from deploying the app with eclipse wtp tomcat plugin. The
> same error occurs however when is start the tomcat standalone. The OpenEJB
> version is the latest from your website.
> 
> Whats is wrong with this?
> 
> Greetings,
> Christian
> 
> 

-- 
View this message in context: http://www.nabble.com/Strange-exception-with-Tomcat-plugin-tp24744215p24747359.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message