Re: war deploy

2005-05-23 Thread Lionel Farbos
On Fri, 20 May 2005 22:52:08 +0200
Pfingstl Gernot [EMAIL PROTECTED] wrote:

 How can I depoly a war to a path like '/x/y'?
 
You can't deploy in a path like this (on several levels) :
you can deploy 
x.war in /x
ROOT.war in /
but nothing in /x/y

You can search more details in the archive (recently I saw an answer for this) 
...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



war deploy

2005-05-20 Thread Pfingstl Gernot
How can I depoly a war to a path like '/x/y'?

If I name the war x#y.war (and unpackWar=false) and put a 
/META-INF/context.xml into the war, I get a work/Catalina/localhost/x#y 
directory. Calling localhost/x/y in the browser causes a directory 
work/Catalina/localhost/x_y will be created. In the manager app there are 
listed 2 apps (x#y and x/y)!!

Thx, Gernot


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: war deploy

2005-05-20 Thread Pfingstl Gernot
Sorry - I forgot to say: I'm using tc 5.5.9

-Ursprüngliche Nachricht-
Von: Pfingstl Gernot 
Gesendet: Freitag, 20. Mai 2005 22:52
An: Tomcat User (E-Mail)
Betreff: war deploy


How can I depoly a war to a path like '/x/y'?

If I name the war x#y.war (and unpackWar=false) and put a 
/META-INF/context.xml into the war, I get a work/Catalina/localhost/x#y 
directory. Calling localhost/x/y in the browser causes a directory 
work/Catalina/localhost/x_y will be created. In the manager app there are 
listed 2 apps (x#y and x/y)!!

Thx, Gernot


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



WAR deploy problem

2004-10-05 Thread Chris Ward

Hi all,

I've been using the manager application to deploy/undeploy my webapp.

I've put the context descriptor file (context.xml) in my META-INF
dir and everything *seems* to run just fine.  

However, in the console window I'm getting a lot on noise - starting
with this... (note, my context is called hal)



...
...
INFO: Processing Context configuration file URL
file:C:\intranet\webserver\jakarta-tomca
t-5.0.28\conf\Catalina\localhost\hal.xml
04-Oct-2004 11:48:39 org.apache.commons.digester.Digester
endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.
java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
...
...




I thought this looked like invalid XML in the context.xml but I've 
checked it with XML Spy and even removed the bulk of it as a test.

Any ideas?

Many thanks,
Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat 4.1.10: war deploy in default context not working.

2002-09-11 Thread gabriele . garuglieri

For anyone interested,
this is a bug.
Refer to
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12521

HTML Manager cannot deploy war file with path=/
Regards,  Gabriele.




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




tomcat 4.1.10: war deploy in default context not working.

2002-09-09 Thread gabriele . garuglieri

Hi all,
Environment:
 tomcat 4.1.10
 ant 1.5
 solaris 2.8
 JDK 1.4.0_01

I have an application that to work must be deployed in the default
context /.
It is working fine both when i define it with app.xml into webapps
and when i load it dynamically using the manager install command.
The following managers commands:
 install
 remove
 start
 stop
 reload
using path=/ to refer to default context act correctly on the
application.

The problem is that i cannot deploy a war file of the same application
when using default context.

My deploy task is
 deploy url=${manager.url}
  username=${manager.username}
  password=${manager.password}
  path=/
  war=file://${dist.home}/${deploy.app.name}.war/

and i receive the message
 [mdeploy] OK - Installed application at context path /

If a use manager list command i see:

[list] OK - Listed applications for virtual host localhost
[list]
/:running:0:/prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/manager/.war
[list] /manager:running:0:/usr/local/tomcat-4.1/server/webapps/manager
[list] /admin:running:0:/usr/local/tomcat-4.1/server/webapps/admi

In the server.xml file i find now the generated entry:
Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true charsetMapperClass
=org.apache.catalina.util.CharsetMapper cookies=true crossContext
=false debug=0 displayName=Infoviabilita docBase
=/prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/manager/.war
mapperClass=org.apache.catalina.core.StandardContextMapper path=/
privileged=false reloadable=false swallowOutput=false useNaming
=true wrapperClass=org.apache.catalina.core.StandardWrapper
/Context

In the log i see:
2002-09-09 15:16:27 StandardWrapper[/manager:Manager]: Loading container
servlet Manager
2002-09-09 15:16:27 Manager: init: Associated with Deployer 'localhost'
2002-09-09 15:16:27 Manager: init: Global resources are available
2002-09-09 15:16:27 Manager: deploy: Deploying web application at '/'
2002-09-09 15:16:27 Manager: Uploading WAR file to
/prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/manager/.war
2002-09-09 15:16:30 Manager: Extracting XML file to
/prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/manager/.xml
2002-09-09 15:16:30 StandardHost[localhost]: Installing web application at
context path / from URL
jar:file:/prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/manager/.war!/
2002-09-09 15:16:30 WebappLoader[/]: Deploying class repositories to work
directory /prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/_
2002-09-09 15:16:32 WebappLoader[/]: Deploy class files /WEB-INF/classes to
/prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/_/WEB-INF/classes
2002-09-09 15:16:32 StandardManager[/]: Seeding random number generator
class java.security.SecureRandom
2002-09-09 15:16:32 StandardManager[/]: Seeding of random number generator
has been completed
2002-09-09 15:16:32 StandardWrapper[/:default]: Loading container servlet
default
2002-09-09 15:16:32 StandardWrapper[/:invoker]: Loading container servlet
invoker

Up to now everything looks good but...

If i refer the application as usual via browser i get:
HTTP Status 500 - No Context configured to process this request

If i try to undeploy the app using the manager undeploy command i get:
[undeploy] FAIL - No context exists for path /

The odd thing is that now i use manager install i see:
[install] OK - Installed application at context path /

and if i list i see (?!):
[list] OK - Listed applications for virtual host localhost
[list]
/:running:0:/prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/manager/.war
[list] /manager:running:0:/usr/local/tomcat-4.1/server/webapps/manager
[list] /:running:0:/prd/iv00/devel/infoviabilita-1.1/build
[list] /admin:running:0:/usr/local/tomcat-4.1/server/webapps/admin

You see the miracle? I have TWO application installed at default
context, one working (that installed with install comand) and one not
working (that installed with the deploy command).

The only way to get rid of that
/:running:0:/prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/manager/.war
context-not-context is to stop tomcat and manually delete the entry
from web.xml.

Obviously if instead of using path=/ i use any other valid context
to deploy, everything works ok. Well, it works in the sense that
tomcat acts correctly with the application, the app itself won't run
because it's not written to run in a context different from / and
its web.xml is not yet complete to have it run from a war file, but
at least i see the app is there.

Is this a bug or am i doing something really odd?

My best regards,  Gabriele.


[EMAIL PROTECTED]
055-420 2832
388-9473323



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: tomcat 4.1.10: war deploy in default context not working.

2002-09-09 Thread gabriele . garuglieri

Pls,
anybody listening?
This problem is a real show stopper for us.
Can someone tell me if it's a real bug or something wrong that i'm doing?

Thanks,  Gabriele.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]