You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by mikle <dm...@hotmail.com> on 2014/06/11 07:30:38 UTC

Drop-in war for TomEE+ generates exception

I have Tomcat 7.0.41 installed locally for testing (I am using this specific
version since it's the highest Tomcat version my host (mochahost) provides).

I got an exception when starting tomcat after I installed it and was
wondering what it means and if it is benign. It seems to work so far, but I
haven't started testing any JEE6 apps yet, so I can't be sure.

Below I detail how I installed the war, and what the exception was :

---

I tried to find all the documentation I could on the webapp.

On the download page, I found the drop-in war section, which said :
"Drop-in WARs
A version of Apache OpenEJB that can be dropped into any Tomcat 7.x install
effectively creating your own Apache TomEE Web Profile or Apache TomEE
Plus."
http://tomee.apache.org/downloads.html

So I was certain that the war would work with Tomcat 7.0.41 (since this
stated it works with any 7.x tomcat install).

---

I went to the Documentation page at
http://tomee.apache.org/documentation.html and found "Install TomEE using
the drop-in WAR".

Following this doc : (1) I shutdown tomcat, (2) dropped
tomee-plus-webapp-1.6.0.2.war into the apache-tomcat-7.0.41\webapps
directory. I then (3) renamed tomee-plus-webapp-1.6.0.2.war to tomee.war. I
then (4) edited tomcat-users.xml in apache-tomcat-7.0.41\conf, and (5) I
added <role rolename="tomee-admin" />, and then added tomee-admin to the
roles of my current admin user (e.g.: 

<user
    username="myuser"
    password="mypass"
   
roles="manager-gui,manager-script,manager-jmx,manager-status,tomee-admin"/>

I then started tomcat, and the console spit out this exception :

Jun 11, 2014 1:16:12 AM org.apache.catalina.core.ContainerBase
addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngin
e[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:87
7)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)

        at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1113)
        at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
.java:1671)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError:
org/apache/tomcat/util/descriptor/Xml
ErrorHandler
        at
org.apache.tomee.loader.TomEEJarScanner.tldConfig(TomEEJarScanner.jav
a:378)
        at
org.apache.tomee.loader.TomEEJarScanner.scan(TomEEJarScanner.java:201
)
        at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:277)
        at
org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:5
67)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
        at
org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5269)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 10 more

Jun 11, 2014 1:16:12 AM org.apache.catalina.startup.HostConfig
deployDirectory
SEVERE: Error deploying web application directory
C:\apache-tomcat-7.0.41\webapp
s\examples
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catal
ina.LifecycleException: Failed to start component
[StandardEngine[Catalina].Stan
dardHost[localhost].StandardContext[/examples]]
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:904)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)

        at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1113)
        at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
.java:1671)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Unknown Source)

Thanks,

-mikle



--
View this message in context: http://openejb.979440.n4.nabble.com/Drop-in-war-for-TomEE-generates-exception-tp4669985.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Drop-in war for TomEE+ generates exception

Posted by Marco de Booij <ma...@debooy.eu>.
Thanks for the reply. I will stick to the all-in-one package of tomee 
and tomcat.

op 12-06-14 20:36, Romain Manni-Bucau schreef:
> Hi
>
> globally yes. If Tomcat version is not compatible with TomEE then it will
> not work
>
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-06-12 20:31 GMT+02:00 Marco de Booij <ma...@debooy.eu>:
>
>> Sorry to break in but I have been reading this week about the drop-in war
>> on your blog and the tomee site. I was wondering if I could use it with the
>> Tomcat installation of Debian. If I understand well your reply you tell us
>> not to use upgrading Tomcat can 'break' Tomee. Am I right?
>>
>> Regards,
>>
>> Marco
>>
>> op 12-06-14 01:04, Romain Manni-Bucau schreef:
>>
>>   Hi
>>> tomee 1.6.x doesn't work well with tomcat 7.0.41 so not sure it worthes
>>> trying it.
>>>
>>> Normally best to keep tomee and underlying tomcat version aligned.
>>>
>>>
>>>
>>> Romain Manni-Bucau
>>> Twitter: @rmannibucau
>>> Blog: http://rmannibucau.wordpress.com/
>>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>> Github: https://github.com/rmannibucau
>>>
>>>
>>> 2014-06-11 16:57 GMT+02:00 Andy Gumbrecht <ag...@tomitribe.com>:
>>>
>>>


Re: Drop-in war for TomEE+ generates exception

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

globally yes. If Tomcat version is not compatible with TomEE then it will
not work



Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-06-12 20:31 GMT+02:00 Marco de Booij <ma...@debooy.eu>:

> Sorry to break in but I have been reading this week about the drop-in war
> on your blog and the tomee site. I was wondering if I could use it with the
> Tomcat installation of Debian. If I understand well your reply you tell us
> not to use upgrading Tomcat can 'break' Tomee. Am I right?
>
> Regards,
>
> Marco
>
> op 12-06-14 01:04, Romain Manni-Bucau schreef:
>
>  Hi
>>
>> tomee 1.6.x doesn't work well with tomcat 7.0.41 so not sure it worthes
>> trying it.
>>
>> Normally best to keep tomee and underlying tomcat version aligned.
>>
>>
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>> 2014-06-11 16:57 GMT+02:00 Andy Gumbrecht <ag...@tomitribe.com>:
>>
>>
>

Re: Drop-in war for TomEE+ generates exception

Posted by Marco de Booij <ma...@debooy.eu>.
Sorry to break in but I have been reading this week about the drop-in 
war on your blog and the tomee site. I was wondering if I could use it 
with the Tomcat installation of Debian. If I understand well your reply 
you tell us not to use upgrading Tomcat can 'break' Tomee. Am I right?

Regards,

Marco

op 12-06-14 01:04, Romain Manni-Bucau schreef:
> Hi
>
> tomee 1.6.x doesn't work well with tomcat 7.0.41 so not sure it worthes
> trying it.
>
> Normally best to keep tomee and underlying tomcat version aligned.
>
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-06-11 16:57 GMT+02:00 Andy Gumbrecht <ag...@tomitribe.com>:
>


Re: Drop-in war for TomEE+ generates exception

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

tomee 1.6.x doesn't work well with tomcat 7.0.41 so not sure it worthes
trying it.

Normally best to keep tomee and underlying tomcat version aligned.



Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-06-11 16:57 GMT+02:00 Andy Gumbrecht <ag...@tomitribe.com>:

> Mobile, so can't check right now, but there is a class not found error in
> there that suggests a jar is missing.
> --
> Andy Gumbrecht http://www.tomitribe.com
> TomEE treibt Tomitribe!
> Sent from my mobile device. Please excuse my brevity.
>
> On June 11, 2014 6:36:01 AM GMT+01:00, mikle <dm...@hotmail.com> wrote:
> >Here is the System status page output by the way :
> >
> >System Status
> >status NONE
> >isListenerInstalled    false
> >isAgentInstalled       false
> >catalinaConfDir        c:\apache-tomcat-7.0.41\conf
> >catalinaLibDir c:\apache-tomcat-7.0.41\lib
> >catalinaBinDir c:\apache-tomcat-7.0.41\bin
> >catalinaShFile c:\apache-tomcat-7.0.41\bin\catalina.sh
> >catalinaBatFile        c:\apache-tomcat-7.0.41\bin\catalina.bat
> >openEJBLibDir  c:\apache-tomcat-7.0.41\webapps\tomee\lib
> >openEJBTomcatLoaderJar
> >c:\apache-tomcat-7.0.41\webapps\tomee\lib\tomee-loader-1.6.0.2.jar
> >openEJBJavaagentJar
> >c:\apache-tomcat-7.0.41\webapps\tomee\lib\openejb-javaagent-4.6.0.2.jar
> >catalinaHomeDir        c:\apache-tomcat-7.0.41
> >catalinaBaseDir        c:\apache-tomcat-7.0.41
> >serverXmlFile  c:\apache-tomcat-7.0.41\conf\server.xml
> >
> >Installer
> >catalinaHome    c:\apache-tomcat-7.0.41
> >catalinaBase     c:\apache-tomcat-7.0.41
> >serverXmlFile    c:\apache-tomcat-7.0.41\conf\server.xml
> >
> >
> >
> >--
> >View this message in context:
> >
> http://openejb.979440.n4.nabble.com/Drop-in-war-for-TomEE-generates-exception-tp4669985p4669986.html
> >Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Re: Drop-in war for TomEE+ generates exception

Posted by Andy Gumbrecht <ag...@tomitribe.com>.
Mobile, so can't check right now, but there is a class not found error in there that suggests a jar is missing.
-- 
Andy Gumbrecht http://www.tomitribe.com
TomEE treibt Tomitribe!
Sent from my mobile device. Please excuse my brevity.

On June 11, 2014 6:36:01 AM GMT+01:00, mikle <dm...@hotmail.com> wrote:
>Here is the System status page output by the way :
>
>System Status
>status	NONE
>isListenerInstalled	false
>isAgentInstalled	false
>catalinaConfDir	c:\apache-tomcat-7.0.41\conf
>catalinaLibDir	c:\apache-tomcat-7.0.41\lib
>catalinaBinDir	c:\apache-tomcat-7.0.41\bin
>catalinaShFile	c:\apache-tomcat-7.0.41\bin\catalina.sh
>catalinaBatFile	c:\apache-tomcat-7.0.41\bin\catalina.bat
>openEJBLibDir	c:\apache-tomcat-7.0.41\webapps\tomee\lib
>openEJBTomcatLoaderJar
>c:\apache-tomcat-7.0.41\webapps\tomee\lib\tomee-loader-1.6.0.2.jar
>openEJBJavaagentJar
>c:\apache-tomcat-7.0.41\webapps\tomee\lib\openejb-javaagent-4.6.0.2.jar
>catalinaHomeDir	c:\apache-tomcat-7.0.41
>catalinaBaseDir	c:\apache-tomcat-7.0.41
>serverXmlFile	c:\apache-tomcat-7.0.41\conf\server.xml
>
>Installer
>catalinaHome    c:\apache-tomcat-7.0.41
>catalinaBase     c:\apache-tomcat-7.0.41
>serverXmlFile    c:\apache-tomcat-7.0.41\conf\server.xml
>
>
>
>--
>View this message in context:
>http://openejb.979440.n4.nabble.com/Drop-in-war-for-TomEE-generates-exception-tp4669985p4669986.html
>Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Drop-in war for TomEE+ generates exception

Posted by mikle <dm...@hotmail.com>.
Here is the System status page output by the way :

System Status
status	NONE
isListenerInstalled	false
isAgentInstalled	false
catalinaConfDir	c:\apache-tomcat-7.0.41\conf
catalinaLibDir	c:\apache-tomcat-7.0.41\lib
catalinaBinDir	c:\apache-tomcat-7.0.41\bin
catalinaShFile	c:\apache-tomcat-7.0.41\bin\catalina.sh
catalinaBatFile	c:\apache-tomcat-7.0.41\bin\catalina.bat
openEJBLibDir	c:\apache-tomcat-7.0.41\webapps\tomee\lib
openEJBTomcatLoaderJar
c:\apache-tomcat-7.0.41\webapps\tomee\lib\tomee-loader-1.6.0.2.jar
openEJBJavaagentJar
c:\apache-tomcat-7.0.41\webapps\tomee\lib\openejb-javaagent-4.6.0.2.jar
catalinaHomeDir	c:\apache-tomcat-7.0.41
catalinaBaseDir	c:\apache-tomcat-7.0.41
serverXmlFile	c:\apache-tomcat-7.0.41\conf\server.xml

Installer
catalinaHome    c:\apache-tomcat-7.0.41
catalinaBase     c:\apache-tomcat-7.0.41
serverXmlFile    c:\apache-tomcat-7.0.41\conf\server.xml



--
View this message in context: http://openejb.979440.n4.nabble.com/Drop-in-war-for-TomEE-generates-exception-tp4669985p4669986.html
Sent from the OpenEJB User mailing list archive at Nabble.com.