You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pid <p...@pidster.com> on 2007/03/14 18:14:07 UTC

Multilevel webapp WAR won't start when packed

TC v6.0.10

I have a 'multi-level' path webapp that I'm deploying via a WAR.  The 
WAR is named "download#file.war".

If I permit the WAR to unpack, it will deploy.

If I instruct it to stay packed it will not deploy, throwing the 
exception below.  When I manually create the dir "download/file" the 
webapp will start from the packed WAR.

Bug, or expected behaviour, anyone?


p



java.lang.IllegalArgumentException: Document base 
/path/tp/host/webapps/download/file does not exist or is not a readable 
directory
         at 
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141)
         at 
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3941)
         at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4112)
         at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
         at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
         at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

Re: Multilevel webapp WAR won't start when packed

Posted by Pid <p...@pidster.com>.
Pid wrote:
> Caldarale, Charles R wrote:
>>> From: Pid [mailto:p@pidster.com] Subject: Multilevel webapp WAR won't 
>>> start when packed
>>>
>>> TC v6.0.10
>>>
>>> I have a 'multi-level' path webapp that I'm deploying via a WAR.  The 
>>> WAR is named "download#file.war".
>>>
>>> If I instruct it to stay packed it will not deploy, throwing the 
>>> exception below.
>>
>> What, if anything, gets created in Tomcat's work/Catalina/[host]
>> directory?  Is there a download, download/file, or download#file?
>>
>> Just to get more information, leave it packed but create a
>> dowload#file.xml file in conf/Catalina/[host] and let's see what
>> happens.
> 
> The download#file.xml gets created (correctly), in either case.
> Now this is popping up when it tries to unpack the WAR...
> 
> (there's no paths or docbase set in the context.xml)
> 
> 
> java.net.MalformedURLException: no !/ in spec
>         at java.net.URL.<init>(URL.java:601)
>         at java.net.URL.<init>(URL.java:464)
>         at java.net.URL.<init>(URL.java:413)
>         at 
> org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:885) 
> 
>         at 
> org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1008)
>         at 
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279) 
> 
>         at
> 
> etc

I've fiddled with it and the app works when deployed using a none # 
path.  It's 20Mb so i can't really submit it for testing, but i'll try 
and build a simple webapp to see if it's a generic fault.

p


>>  - Chuck
>>
>>
>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
>> MATERIAL and is thus for use only by the intended recipient. If you
>> received this in error, please contact the sender and delete the e-mail
>> and its attachments from all computers.
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 


Re: Multilevel webapp WAR won't start when packed

Posted by Pid <p...@pidster.com>.
Caldarale, Charles R wrote:
>> From: Pid [mailto:p@pidster.com] 
>> Subject: Multilevel webapp WAR won't start when packed
>>
>> TC v6.0.10
>>
>> I have a 'multi-level' path webapp that I'm deploying via a WAR.  The 
>> WAR is named "download#file.war".
>>
>> If I instruct it to stay packed it will not deploy, throwing the 
>> exception below.
> 
> What, if anything, gets created in Tomcat's work/Catalina/[host]
> directory?  Is there a download, download/file, or download#file?
> 
> Just to get more information, leave it packed but create a
> dowload#file.xml file in conf/Catalina/[host] and let's see what
> happens.

The download#file.xml gets created (correctly), in either case.
Now this is popping up when it tries to unpack the WAR...

(there's no paths or docbase set in the context.xml)


java.net.MalformedURLException: no !/ in spec
         at java.net.URL.<init>(URL.java:601)
         at java.net.URL.<init>(URL.java:464)
         at java.net.URL.<init>(URL.java:413)
         at 
org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:885)
         at 
org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1008)
         at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
         at

etc


>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


RE: Multilevel webapp WAR won't start when packed

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Pid [mailto:p@pidster.com] 
> Subject: Multilevel webapp WAR won't start when packed
> 
> TC v6.0.10
> 
> I have a 'multi-level' path webapp that I'm deploying via a WAR.  The 
> WAR is named "download#file.war".
> 
> If I instruct it to stay packed it will not deploy, throwing the 
> exception below.

What, if anything, gets created in Tomcat's work/Catalina/[host]
directory?  Is there a download, download/file, or download#file?

Just to get more information, leave it packed but create a
dowload#file.xml file in conf/Catalina/[host] and let's see what
happens.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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