You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by jakma <kr...@jadeva.de> on 2013/06/26 12:59:32 UTC
Re: Tomee/Openejb can't seem to find jsp precompiled servlet class
Hi Romain,
i have the same Problem as mentioned above. I use apache-tomee-plus-1.5.2
and try to deploy a WAR, following Error (first) occures:
Jun 26, 2013 11:49:15 AM org.apache.tomee.catalina.TomcatWebAppBuilder
startInternal
SEVERE: Unable to deploy collapsed ear in war
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/TestEAR]
org.apache.openejb.OpenEJBException: Unable to load servlet class:
de.test.ear: de.test.ear
at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1983)
at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1750)
at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:344)
at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:379)
at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:884)
at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1111)
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)
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:1114)
at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
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:722)
Caused by: java.lang.ClassNotFoundException: de.test.ear
at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:140)
at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:73)
at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1976)
... 22 more
When i have the TomEE in Eclipse as a Tomcat 7, it works without any errors.
But when I use TomEE outside of Eclipse, ill get a long Errorlist: Log
(Pastebin) <http://pastebin.com/3yeVpPTP> Its ca. Line 160-280.
I do not see, how you solved the Problem here, it should be fixed in 1.5.2 -
but I am working with this version. I also tried a Snapshot from 1.6.0, but
same issue.
Thanks in advance,
Tina
--
View this message in context: http://openejb.979440.n4.nabble.com/Tomee-Openejb-can-t-seem-to-find-jsp-precompiled-servlet-class-tp4660481p4663942.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Tomee/Openejb can't seem to find jsp precompiled servlet class
Posted by jakma <kr...@jadeva.de>.
You made my day! Thank you! Mistook the Problem completely :/
--
View this message in context: http://openejb.979440.n4.nabble.com/Tomee-Openejb-can-t-seem-to-find-jsp-precompiled-servlet-class-tp4660481p4663961.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Tomee/Openejb can't seem to find jsp precompiled servlet class
Posted by Romain Manni-Bucau <rm...@gmail.com>.
<servlet-class>de.test.xml</servlet-class> is correct?
isn't it <servlet-class>de.test.xml.TestXMLServlet</servlet-class>?
*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/6/26 jakma <kr...@jadeva.de>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID"
> version="3.0">
> <display-name>TestXMLServlet</display-name>
> <welcome-file-list>
> <welcome-file>index.jsp</welcome-file>
> </welcome-file-list>
> <servlet>
> <display-name>TestXMLServlet</display-name>
> <servlet-name>TestXMLServlet</servlet-name>
> <servlet-class>de.test.xml</servlet-class>
> </servlet>
> </web-app>
>
> I dont see anything that doesnt belong there plus: non that is incorrect.
> Also - what confuses me the most - if i run it in Eclipse in a TomEE
> (registered as Tomcat 7) Server it works without Problems. Only if I want
> to
> run in it the same TomEE outside of Eclipse. All those Errors occure. Maybe
> a Library Problem? I copied some around but with no Effect.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Tomee-Openejb-can-t-seem-to-find-jsp-precompiled-servlet-class-tp4660481p4663954.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: Tomee/Openejb can't seem to find jsp precompiled servlet class
Posted by jakma <kr...@jadeva.de>.
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID"
version="3.0">
<display-name>TestXMLServlet</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<servlet>
<display-name>TestXMLServlet</display-name>
<servlet-name>TestXMLServlet</servlet-name>
<servlet-class>de.test.xml</servlet-class>
</servlet>
</web-app>
I dont see anything that doesnt belong there plus: non that is incorrect.
Also - what confuses me the most - if i run it in Eclipse in a TomEE
(registered as Tomcat 7) Server it works without Problems. Only if I want to
run in it the same TomEE outside of Eclipse. All those Errors occure. Maybe
a Library Problem? I copied some around but with no Effect.
--
View this message in context: http://openejb.979440.n4.nabble.com/Tomee-Openejb-can-t-seem-to-find-jsp-precompiled-servlet-class-tp4660481p4663954.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Tomee/Openejb can't seem to find jsp precompiled servlet class
Posted by Romain Manni-Bucau <rm...@gmail.com>.
hmm, isnt it just a typo in web.xml?
*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/6/26 jakma <kr...@jadeva.de>
> Yes you are right. I understood in previous Posts, that it was fixed for
> the
> Sample in 1.5.2 already. I made a sample for you:
>
> Sample2 <http://www.file-upload.net/download-7761702/Sample2.7z.html>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Tomee-Openejb-can-t-seem-to-find-jsp-precompiled-servlet-class-tp4660481p4663948.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: Tomee/Openejb can't seem to find jsp precompiled servlet class
Posted by jakma <kr...@jadeva.de>.
Yes you are right. I understood in previous Posts, that it was fixed for the
Sample in 1.5.2 already. I made a sample for you:
Sample2 <http://www.file-upload.net/download-7761702/Sample2.7z.html>
--
View this message in context: http://openejb.979440.n4.nabble.com/Tomee-Openejb-can-t-seem-to-find-jsp-precompiled-servlet-class-tp4660481p4663948.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Tomee/Openejb can't seem to find jsp precompiled servlet class
Posted by Romain Manni-Bucau <rm...@gmail.com>.
the sample works with the snapshot (1.6.0-SNAPSHOT)
*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/6/26 jakma <kr...@jadeva.de>
> It happens aswell with the Sample shown by mommymutya Feb 01, 2013;
> 4:34am. I
> cannot post my EAR (or also tested just with WAR), because of restrictions
> by my company. But if needed, I'm gonna build small example out of the big
> one, which I can post.
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Tomee-Openejb-can-t-seem-to-find-jsp-precompiled-servlet-class-tp4660481p4663944.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: Tomee/Openejb can't seem to find jsp precompiled servlet class
Posted by jakma <kr...@jadeva.de>.
It happens aswell with the Sample shown by mommymutya Feb 01, 2013; 4:34am. I
cannot post my EAR (or also tested just with WAR), because of restrictions
by my company. But if needed, I'm gonna build small example out of the big
one, which I can post.
--
View this message in context: http://openejb.979440.n4.nabble.com/Tomee-Openejb-can-t-seem-to-find-jsp-precompiled-servlet-class-tp4660481p4663944.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Tomee/Openejb can't seem to find jsp precompiled servlet class
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,
Do you have a sample showing it?
Le 26 juin 2013 13:16, "jakma" <kr...@jadeva.de> a écrit :
> Hi Romain,
> i have the same Problem as mentioned above. I use apache-tomee-plus-1.5.2
> and try to deploy a WAR, following Error (first) occures:
>
> Jun 26, 2013 11:49:15 AM org.apache.tomee.catalina.TomcatWebAppBuilder
> startInternal
> SEVERE: Unable to deploy collapsed ear in war
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/TestEAR]
> org.apache.openejb.OpenEJBException: Unable to load servlet class:
> de.test.ear: de.test.ear
> at
>
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1983)
> at
>
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1750)
> at
>
> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:344)
> at
>
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:379)
> at
>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:884)
> at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1111)
> 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)
> 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:1114)
> at
>
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
> 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:722)
> Caused by: java.lang.ClassNotFoundException: de.test.ear
> at
> org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:140)
> at
> org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:73)
> at
>
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1976)
> ... 22 more
>
>
> When i have the TomEE in Eclipse as a Tomcat 7, it works without any
> errors.
> But when I use TomEE outside of Eclipse, ill get a long Errorlist: Log
> (Pastebin) <http://pastebin.com/3yeVpPTP> Its ca. Line 160-280.
>
> I do not see, how you solved the Problem here, it should be fixed in 1.5.2
> -
> but I am working with this version. I also tried a Snapshot from 1.6.0, but
> same issue.
>
> Thanks in advance,
> Tina
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Tomee-Openejb-can-t-seem-to-find-jsp-precompiled-servlet-class-tp4660481p4663942.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>