You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by ejbchuckles <mc...@llnl.gov> on 2013/11/16 00:33:58 UTC

tomee 1.5.2 deployment problem

Our project is planning to migrate from tomcat to tomcatee and when I tried
to deploy our struts2 based war file I got the deployment error shown
following shown at the bottom of this post.  So I downloaded the example
struts application and got it worked immediately. But what I discovered
after some tinkering around this that along as the struts example is
deployed, i can successfully deploy our application and if I remove the
struts example the deployment error comes back. So I'm guessing I'm having a
classpath issue. I tried adding some of the jars in the example that our war
didn't have like jstl and taglibs but didn't fix the problem
any suggestions?
thanks in advance


org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/nepedia]]
	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.deployWAR(HostConfig.java:977)
	at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	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:744)
Caused by: org.apache.tomee.catalina.TomEERuntimeException:
org.apache.openejb.OpenEJBException: Cannot unmarshall the JSP tag library
definition file:
jar:file:/usr/local/etc/apache-tomee-plus-1.5.2/webapps/nepedia/WEB-INF/lib/standard-1.1.2.jar!/META-INF/fmt-1_0.tld:
Unable to create context
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1903)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1073)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1033)
	at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:124)
	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:5179)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 10 more
Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the JSP
tag library definition file:
jar:file:/usr/local/etc/apache-tomee-plus-1.5.2/webapps/nepedia/WEB-INF/lib/standard-1.1.2.jar!/META-INF/fmt-1_0.tld:
Unable to create context
	at
org.apache.openejb.config.ReadDescriptors.readTldTaglib(ReadDescriptors.java:739)
	at
org.apache.openejb.config.DeploymentLoader.addTagLibraries(DeploymentLoader.java:1139)
	at
org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:878)
	at
org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:699)
	at
org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:189)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1901)
	... 17 more
Caused by: javax.xml.bind.JAXBException: Unable to create context
 - with linked exception:
[java.lang.reflect.InvocationTargetException]
	at javax.xml.bind.ContextFinder.find(ContextFinder.java:133)
	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:65)
	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:56)
	at
org.apache.openejb.jee.JAXBContextFactory.newInstance(JAXBContextFactory.java:93)
	at org.apache.openejb.jee.JaxbJavaee.getContext(JaxbJavaee.java:87)
	at org.apache.openejb.jee.JaxbJavaee.unmarshalTaglib(JaxbJavaee.java:200)
	at
org.apache.openejb.config.ReadDescriptors.readTldTaglib(ReadDescriptors.java:735)
	... 22 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at javax.xml.bind.ContextFinder.find(ContextFinder.java:131)
	... 28 more
Caused by: java.lang.ClassCastException:
org.apache.openejb.jee.TldTaglib$JaxbAccessorF_icon cannot be cast to
com.sun.xml.bind.v2.runtime.reflect.Accessor
	at
com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.instanciate(OptimizedAccessorFactory.java:151)
	at
com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:143)
	at
com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:213)
	at
com.sun.xml.bind.v2.runtime.property.ArrayProperty.<init>(ArrayProperty.java:29)
	at
com.sun.xml.bind.v2.runtime.property.ArrayERProperty.<init>(ArrayERProperty.java:48)
	at
com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.<init>(ArrayElementProperty.java:60)
	at
com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.<init>(ArrayElementNodeProperty.java:22)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at
com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:88)
	at
com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:135)
	at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:465)
	at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:299)
	at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103)
	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81)
	... 33 more





--
View this message in context: http://openejb.979440.n4.nabble.com/tomee-1-5-2-deployment-problem-tp4666194.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: tomee 1.5.2 deployment problem

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

Maybe try 1.6.0 (currently under vote), i think it is a known issue
Le 16 nov. 2013 08:16, "ejbchuckles" <mc...@llnl.gov> a écrit :

> Our project is planning to migrate from tomcat to tomcatee and when I tried
> to deploy our struts2 based war file I got the deployment error shown
> following shown at the bottom of this post.  So I downloaded the example
> struts application and got it worked immediately. But what I discovered
> after some tinkering around this that along as the struts example is
> deployed, i can successfully deploy our application and if I remove the
> struts example the deployment error comes back. So I'm guessing I'm having
> a
> classpath issue. I tried adding some of the jars in the example that our
> war
> didn't have like jstl and taglibs but didn't fix the problem
> any suggestions?
> thanks in advance
>
>
> org.apache.catalina.LifecycleException: Failed to start component
>
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/nepedia]]
>         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.deployWAR(HostConfig.java:977)
>         at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         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:744)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> org.apache.openejb.OpenEJBException: Cannot unmarshall the JSP tag library
> definition file:
>
> jar:file:/usr/local/etc/apache-tomee-plus-1.5.2/webapps/nepedia/WEB-INF/lib/standard-1.1.2.jar!/META-INF/fmt-1_0.tld:
> Unable to create context
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1903)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1073)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1033)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:124)
>         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:5179)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 10 more
> Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the JSP
> tag library definition file:
>
> jar:file:/usr/local/etc/apache-tomee-plus-1.5.2/webapps/nepedia/WEB-INF/lib/standard-1.1.2.jar!/META-INF/fmt-1_0.tld:
> Unable to create context
>         at
>
> org.apache.openejb.config.ReadDescriptors.readTldTaglib(ReadDescriptors.java:739)
>         at
>
> org.apache.openejb.config.DeploymentLoader.addTagLibraries(DeploymentLoader.java:1139)
>         at
>
> org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:878)
>         at
>
> org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:699)
>         at
> org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:189)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1901)
>         ... 17 more
> Caused by: javax.xml.bind.JAXBException: Unable to create context
>  - with linked exception:
> [java.lang.reflect.InvocationTargetException]
>         at javax.xml.bind.ContextFinder.find(ContextFinder.java:133)
>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:65)
>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:56)
>         at
>
> org.apache.openejb.jee.JAXBContextFactory.newInstance(JAXBContextFactory.java:93)
>         at org.apache.openejb.jee.JaxbJavaee.getContext(JaxbJavaee.java:87)
>         at
> org.apache.openejb.jee.JaxbJavaee.unmarshalTaglib(JaxbJavaee.java:200)
>         at
>
> org.apache.openejb.config.ReadDescriptors.readTldTaglib(ReadDescriptors.java:735)
>         ... 22 more
> Caused by: java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at javax.xml.bind.ContextFinder.find(ContextFinder.java:131)
>         ... 28 more
> Caused by: java.lang.ClassCastException:
> org.apache.openejb.jee.TldTaglib$JaxbAccessorF_icon cannot be cast to
> com.sun.xml.bind.v2.runtime.reflect.Accessor
>         at
>
> com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.instanciate(OptimizedAccessorFactory.java:151)
>         at
>
> com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:143)
>         at
>
> com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:213)
>         at
>
> com.sun.xml.bind.v2.runtime.property.ArrayProperty.<init>(ArrayProperty.java:29)
>         at
>
> com.sun.xml.bind.v2.runtime.property.ArrayERProperty.<init>(ArrayERProperty.java:48)
>         at
>
> com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.<init>(ArrayElementProperty.java:60)
>         at
>
> com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.<init>(ArrayElementNodeProperty.java:22)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at
>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>         at
>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>         at
>
> com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:88)
>         at
>
> com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:135)
>         at
>
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:465)
>         at
>
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:299)
>         at
> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103)
>         at
> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81)
>         ... 33 more
>
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/tomee-1-5-2-deployment-problem-tp4666194.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>