I'm trying to use jar: URL to upload WAR through Tomcat Manager,
but it seems it doesn't work. With following URL,
http://localhost:8080/manager/deploy?path=/sample&war=jar:file:/var/tmp/sample.war!/
I get "OK - Deployed..." result as output, but nothing is actually
deployed, and I see following exception thrown in logfile:
INFO: Manager: install: Installing web application at '/sample' from 'jar:file:/var/tmp/sample.war!/'
java.io.FileNotFoundException: jar:file:/var/tmp/sample.war! (No such file or directory)
Am I doing something wrong, or does it mean Manager HOWTO document
(/tomcat-docs/manager-howto.html) is not in sync with implementation?
At least, I believe it shouldn't return "OK" as there is exception
thrown and deployment did fail.
Now, that being said, I did look into ManagerServlet.java source, and
has an impression that nothing except for "/abs/path" or "file:/abs/path"
is actually supported for both "war=" and "config=" parameter due to
use of
java.io.File object.
Is my finding correct? And assuming it's not implemented, will the patch
to make it support any URL be accepted if I submit one? I'm asking because
I already modified the source so it'll support any URL as a parameter.
Best Regards,
--
012345678901234567890123456789012345678901234567890123456789012345678901234
Taisuke Yamada <<tyamadajp@(protected)>>
Message to my public address may not be handled in a timely manner.
Message to my "SPAM honeypot" address will be registered as a SPAM.
For a direct contact, please use my private address on my namecard.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)