tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schlichtherle <christian-b...@schlichtherle.de>
Subject Re: Log exceptions
Date Fri, 30 Aug 2013 06:50:35 GMT
Ok, here's my resolution to this mess:

I changed the packaging of my EJB JARs from EAR to WAR and added the following sections to
the web.xml:

    <message-destination-ref>
        <message-destination-ref-name>net.java.trueupdate.agent.impl.javaee.UpdateAgentBuilderBean/destination</message-destination-ref-name>
        <message-destination-type>javax.jms.Queue</message-destination-type>
        <mapped-name>jms/TrueUpdate Manager</mapped-name>
        <injection-target>
            <injection-target-class>net.java.trueupdate.agent.impl.javaee.UpdateAgentBuilderBean</injection-target-class>
            <injection-target-name>destination</injection-target-name>
        </injection-target>
    </message-destination-ref>
    <message-destination-ref>
        <message-destination-ref-name>net.java.trueupdate.manager.impl.javaee.UpdateManagerBean/destination</message-destination-ref-name>
        <message-destination-type>javax.jms.Queue</message-destination-type>
        <mapped-name>jms/TrueUpdate Agent</mapped-name>
        <injection-target>
            <injection-target-class>net.java.trueupdate.manager.impl.javaee.UpdateManagerBean</injection-target-class>
            <injection-target-name>destination</injection-target-name>
        </injection-target>
    </message-destination-ref>

Now it finally works - finally!

I tried to make this work with an EAR, but no, it doesn't work. Honestly I think the EAR packaging
in TomEE+ is completely broken: Ignored configuration in application.xml (still!), ArrayIndexOutOfBounds
exceptions when you put the EAR into the webapps folder instead of the apps folder and also,
you can't see an EAR when you use the Tomcat tools to list your web apps, simply because it's
not a web app, which makes it harder to manage for administrators.

Anyway, I have this stuff working now with a WAR. Thank you very much for your help, Romain!

Best regards,
Christian Schlichtherle

Am 29.08.2013 um 16:28 schrieb Romain Manni-Bucau <rmannibucau@gmail.com>:

> should be "fixed" now but not sure tomcat is 100% on this particular point
> 
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
> 
> 
> 
> 2013/8/29 Christian Schlichtherle <christian@schlichtherle.de>
> 
>> On another note: After I've installed the application listener and the
>> java agent using the TomEE interface (not very intuitive BTW), I got these
>> log entries:
>> 
>> …
>> Aug 29, 2013 4:02:24 PM org.apache.catalina.core.ContainerBase
>> addChildInternal
>> SEVERE: ContainerBase.addChild: start:
>> org.apache.catalina.LifecycleException: Failed to start component
>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/examples]]
>>        at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>>        at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>>        at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>>        at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>>        at
>> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
>>        at
>> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
>>        at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>        at
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>        at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>        at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>        at java.lang.Thread.run(Thread.java:724)
>> Caused by: org.apache.tomee.catalina.TomEERuntimeException:
>> org.apache.openejb.OpenEJBException: Cannot unmarshall the JSP tag library
>> definition file:
>> file:/Users/christian/sandbox/apache-tomcat-7.0.42/webapps/examples/WEB-INF/jsp/debug-taglib.tld:
>> Unexpected XML value "TAGDEPENDENT" for enum
>> org.apache.openejb.jee.BodyContent, expected [tagdependent, JSP, empty,
>> scriptless]
>>        at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1953)
>>        at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1025)
>>        at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:985)
>>        at
>> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>>        at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>        at
>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>        at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>>        at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>>        ... 11 more
>> Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the JSP
>> tag library definition file:
>> file:/Users/christian/sandbox/apache-tomcat-7.0.42/webapps/examples/WEB-INF/jsp/debug-taglib.tld:
>> Unexpected XML value "TAGDEPENDENT" for enum
>> org.apache.openejb.jee.BodyContent, expected [tagdependent, JSP, empty,
>> scriptless]
>>        at
>> org.apache.openejb.config.ReadDescriptors.readTldTaglib(ReadDescriptors.java:801)
>>        at
>> org.apache.openejb.config.DeploymentLoader.addTagLibraries(DeploymentLoader.java:1216)
>>        at
>> org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:942)
>>        at
>> org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:753)
>>        at
>> org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:196)
>>        at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1951)
>>        ... 18 more
>> Caused by: javax.xml.bind.UnmarshalException: Unexpected XML value
>> "TAGDEPENDENT" for enum org.apache.openejb.jee.BodyContent, expected
>> [tagdependent, JSP, empty, scriptless]
>>        at
>> org.metatype.sxc.jaxb.RuntimeContext.validationError(RuntimeContext.java:390)
>>        at
>> org.metatype.sxc.jaxb.RuntimeContext.validationError(RuntimeContext.java:379)
>>        at
>> org.metatype.sxc.jaxb.RuntimeContext.unexpectedEnumValue(RuntimeContext.java:325)
>>        at
>> org.apache.openejb.jee.BodyContent$JAXB.parseBodyContent(BodyContent$JAXB.java:54)
>>        at org.apache.openejb.jee.Tag$JAXB._read(Tag$JAXB.java:182)
>>        at org.apache.openejb.jee.Tag$JAXB.readTag(Tag$JAXB.java:58)
>>        at
>> org.apache.openejb.jee.TldTaglib$JAXB._read(TldTaglib$JAXB.java:220)
>>        at
>> org.apache.openejb.jee.TldTaglib$JAXB.read(TldTaglib$JAXB.java:310)
>>        at
>> org.apache.openejb.jee.TldTaglib$JAXB.read(TldTaglib$JAXB.java:49)
>>        at org.apache.openejb.sxc.Sxc.unmarshall(Sxc.java:168)
>>        at org.apache.openejb.sxc.Sxc.unmarhsal(Sxc.java:159)
>>        at
>> org.apache.openejb.sxc.TldTaglibXml.unmarshal(TldTaglibXml.java:44)
>>        at
>> org.apache.openejb.config.ReadDescriptors.readTldTaglib(ReadDescriptors.java:797)
>>        ... 23 more
>> 
>> Aug 29, 2013 4:02:24 PM org.apache.catalina.startup.HostConfig
>> deployDirectory
>> SEVERE: Error deploying web application directory
>> /Users/christian/sandbox/apache-tomcat-7.0.42/webapps/examples
>> java.lang.IllegalStateException: ContainerBase.addChild: start:
>> org.apache.catalina.LifecycleException: Failed to start component
>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/examples]]
>>        at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
>>        at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>>        at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>>        at
>> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
>>        at
>> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
>>        at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>        at
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>        at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>        at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>        at java.lang.Thread.run(Thread.java:724)
>> …
>> 
>> 


Mime
View raw message