----- Original Message -----
Cristian
I tried... it doesnt work.
But what does work is if you unpack the WAR to a location.
Create a context file with a DOC BASE
then
http://myserver:8080/manager/deploy?&config=file:/home/user1/webapps/context.xml&path=/UserX/Whatever
Then it will do it... but the hassle is you need to unpack the war.
Only way I could find that works..
BUT It just doesnt feel like a good thing to me...
Also remember that when you change the context to anything other than the
actual webapp name, there are other potential
problems, like you now hoping the guy that made it didnt hard code that in
their links.
I dont now what you doing, but I would rather try something like going with
the webappname, and then just saying to users
that if its not of this form.... USERNAME_WEBAPPNAME.WAR
it will not be deployed.
Then if you just go with the default deployment it will be
/User1_Accounting/blah
So can be done... but my gut is telling me you'd be better off changing the
scheme...
Also tomcat defaults to the webapp name... so if you have to manually
deploy, or its emailed to you and you want to drop it into webapps, what
ever1 does... then at most you just have to change the webapp name...
Thats why TC ignores the internal context path... "humans" know how to
change a file name ;)
I'd make it a convention... and a war in the user folder that does not carry
the prepended userid... is not deployed, but can be fixed by simply renaming
it.
Good Luck... hope your students like it :)
Sorry for my confusing terminology. I'll try to explain better.
I'm using Tomcat 6.0.16 and as as Jhonny said, I want to have multiple
WebApplications for each user in my server.
Each user could call applications using the browser in that way:
http://myserver:8080/user1/WebApp1
http://myserver:8080/user1/WebApp2
http://myserver:8080/user2/OtherWebApp1
http://myserver:8080/user2/OtherWebApp2 .
I've deployed one application in my folder using the manager using
this sentence:
http://myserver:8080/manager/deploy?path=/WebApp1&war=file:/home/user1/webapps/WebApp1.war
and this work fine, but, when i tried to deploy using the path
including username in the "path" it fails:
http://myserver:8080/manager/deploy?path=/user1/WebApp1&war=file:/home/user1/webapps/WebApp1.war
The returned error is:
FAIL - Failed to deploy application at context path /usuario1/hello
Any idea? I need to declare one context for each application?
Regards
Cristian
---------------------------------------------------------------------------
HARBOR: http://coolharbor.100free.com/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
---------------------------------------------------------------------------
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]