You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Meik Suchlich <Me...@brandad-systems.de> on 2012/11/08 07:08:37 UTC

Problem WAR-file-deployment tomcat 6.0.36

Hi,

I just changed the tomcat from 6.0.35 to 6.0.36, by simply changing the symlink from the apache-6.0.35 to the apache 6.0.36-folder and cleaning work-directory.
After that the deployment of warfiles fails with following Exception:

Nov 08, 2012 6:38:50 AM org.apache.catalina.startup.ContextConfig init
SEVERE: Exception fixing docBase for context [/testapp]
java.io.IOException: Unable to create the directory [/data/tomcat/webapps/testapp/WEB-INF/web.xml]
       at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:168)
       at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:886)
       at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1021)
       at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
       at org.apache.catalina.core.StandardContext.init(StandardContext.java:5707)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4449)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
       at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
       at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
       at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
       at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
       at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
       at org.apache.catalina.core.StandardService.start(StandardService.java:525)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
       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:601)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

If I switch back to 6.0.35 the warfile testapp.war will be deployed normally.

Greetings,
Meik




AW: Problem WAR-file-deployment tomcat 6.0.36

Posted by Meik Suchlich <Me...@brandad-systems.de>.
Hi,

I have jdk1.7.0_09 installed on an ubuntu vm (2.6.32-28-server ... x86_64 GNU/Linux Ubuntu 10.04.4 LTS)

Greetings,
Meik

Meik Suchlich
-- 
BRANDAD Systems AG
Gebhardtstraße 5 
90762 Fürth

Fon +49 (0) 911 756658 - 27 
Fax +49 (0) 911 756658 - 88 
www.brandad-systems.de

Vorstand: Joachim Stelzer
Vorsitzender des Aufsichtsrats: Dr. Ottheinz Jung-Senssfelder
Registergericht Fürth, Handelsregister-Nummer: HRB 11435

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.




-----Ursprüngliche Nachricht-----
Von: Meik Suchlich [mailto:Meik.Suchlich@brandad-systems.de] 
Gesendet: Donnerstag, 8. November 2012 07:09
An: users@tomcat.apache.org
Betreff: Problem WAR-file-deployment tomcat 6.0.36

Hi,

I just changed the tomcat from 6.0.35 to 6.0.36, by simply changing the symlink from the apache-6.0.35 to the apache 6.0.36-folder and cleaning work-directory.
After that the deployment of warfiles fails with following Exception:

Nov 08, 2012 6:38:50 AM org.apache.catalina.startup.ContextConfig init
SEVERE: Exception fixing docBase for context [/testapp]
java.io.IOException: Unable to create the directory [/data/tomcat/webapps/testapp/WEB-INF/web.xml]
       at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:168)
       at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:886)
       at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1021)
       at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
       at org.apache.catalina.core.StandardContext.init(StandardContext.java:5707)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4449)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
       at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
       at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
       at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
       at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
       at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
       at org.apache.catalina.core.StandardService.start(StandardService.java:525)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
       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:601)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

If I switch back to 6.0.35 the warfile testapp.war will be deployed normally.

Greetings,
Meik





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


AW: AW: Problem WAR-file-deployment tomcat 6.0.36

Posted by Meik Suchlich <Me...@brandad-systems.de>.
Hi,

we had an error in the call of the anttask for the creation of the warfile.
the webxml parameter was set with the Folder, where the web.xml is in not the web.xml itself.
This results not in an error but in the creation of Folder web.xml in the warfile.

Greetings,

Meik Suchlich




-----Ursprüngliche Nachricht-----
Von: Mark Thomas [mailto:markt@apache.org] 
Gesendet: Donnerstag, 8. November 2012 10:12
An: Tomcat Users List
Betreff: Re: AW: Problem WAR-file-deployment tomcat 6.0.36

On 08/11/2012 08:22, Meik Suchlich wrote:
> Hi,
> 
> that seems to be the cause. I check, why there is this empty folder which should not be created.
> But it works with tomcat-6.0.35. Why does this error not occur in the previous Version.
> Is it because of the bugfix ?

Yes. This looks like [1] as listed in [2].

Mark

[1] http://issues.apache.org/bugzilla/show_bug.cgi?id=53531
[2]
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: AW: Problem WAR-file-deployment tomcat 6.0.36

Posted by Mark Thomas <ma...@apache.org>.
On 08/11/2012 08:22, Meik Suchlich wrote:
> Hi,
> 
> that seems to be the cause. I check, why there is this empty folder which should not be created.
> But it works with tomcat-6.0.35. Why does this error not occur in the previous Version.
> Is it because of the bugfix ?

Yes. This looks like [1] as listed in [2].

Mark

[1] http://issues.apache.org/bugzilla/show_bug.cgi?id=53531
[2]
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


AW: Problem WAR-file-deployment tomcat 6.0.36

Posted by Meik Suchlich <Me...@brandad-systems.de>.
Hi,

that seems to be the cause. I check, why there is this empty folder which should not be created.
But it works with tomcat-6.0.35. Why does this error not occur in the previous Version.
Is it because of the bugfix ?


Thanks,
 Meik




-----Ursprüngliche Nachricht-----
Von: Konstantin Kolinko [mailto:knst.kolinko@gmail.com] 
Gesendet: Donnerstag, 8. November 2012 09:16
An: Tomcat Users List
Betreff: Re: Problem WAR-file-deployment tomcat 6.0.36

2012/11/8 Meik Suchlich <Me...@brandad-systems.de>:
> Hi,
>
> I just changed the tomcat from 6.0.35 to 6.0.36, by simply changing the symlink from the apache-6.0.35 to the apache 6.0.36-folder and cleaning work-directory.
> After that the deployment of warfiles fails with following Exception:
>
> Nov 08, 2012 6:38:50 AM org.apache.catalina.startup.ContextConfig init
> SEVERE: Exception fixing docBase for context [/testapp]
> java.io.IOException: Unable to create the directory [/data/tomcat/webapps/testapp/WEB-INF/web.xml]
>        at 
> org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:168)


It sounds as if your war file contains a directory "web.xml/" as well as a web.xml file. You cannot create a directory when a file with the same name already exists.

You can use "jar -t" to list the files contained in your archive.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem WAR-file-deployment tomcat 6.0.36

Posted by Konstantin Kolinko <kn...@gmail.com>.
2012/11/8 Meik Suchlich <Me...@brandad-systems.de>:
> Hi,
>
> I just changed the tomcat from 6.0.35 to 6.0.36, by simply changing the symlink from the apache-6.0.35 to the apache 6.0.36-folder and cleaning work-directory.
> After that the deployment of warfiles fails with following Exception:
>
> Nov 08, 2012 6:38:50 AM org.apache.catalina.startup.ContextConfig init
> SEVERE: Exception fixing docBase for context [/testapp]
> java.io.IOException: Unable to create the directory [/data/tomcat/webapps/testapp/WEB-INF/web.xml]
>        at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:168)


It sounds as if your war file contains a directory "web.xml/" as well
as a web.xml file. You cannot create a directory when a file with the
same name already exists.

You can use "jar -t" to list the files contained in your archive.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org