DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13205>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13205

Tomcat Web Application Manager; config parameter is not null.





------- Additional Comments From [EMAIL PROTECTED]  2002-10-14 05:15 -------
I'm also seeing this same problem with the HTMLManagerServlet.

I typed "/foo" into the "Path:" field, and 
"file:/home/jasonb/jakarta-tomcat-4.1.9/foo" into the "WAR URL:" field, and
submitted the form by clicking the "Install" submit button.

Here's the relevant portion of the log & stack trace:

2002-10-13 21:53:37 HTMLManager: install: Installing context configuration at ''
 from 'file:/home/jasonb/jakarta-tomcat-4.1.9/foo'
2002-10-13 21:53:37 HTMLManager: ManagerServlet.configure[]
java.net.MalformedURLException: no protocol: 
        at java.net.URL.<init>(URL.java:579)
        at java.net.URL.<init>(URL.java:476)
        at java.net.URL.<init>(URL.java:425)
        at org.apache.catalina.servlets.ManagerServlet.install(ManagerServlet.ja
va:611)
        at org.apache.catalina.servlets.HTMLManagerServlet.install(HTMLManagerSe
rvlet.java:175)
        at org.apache.catalina.servlets.HTMLManagerServlet.doGet(HTMLManagerServ
let.java:136)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

And here's the URL in my browser after I submitted the form to deploy
a web application (a dir named "foo"):

http://localhost/manager/html/install?path=&installPath=%2Ffoo&installConfig=&installWar=file%3A%2Fhome%2Fjasonb%2Fjakarta-tomcat-4.1.9%2Ffoo

Notice the "installConfig=&" in there.  That means that Tomcat will store an
empty, but non-null String for the "installConfig" parameter, which the
HTMLManagerServlet sends to the ManagerServlet (its superclass).
ManagerServlet expects this parameter to either be null or be a useable URL
String with which to create a URL object.

The fix for this is either to have HTMLManagerServlet's install() method check
for empty but non-null parameter values and make them null before passing
them to the ManagerServlet, or have the ManagerServlet's install() method
check for both null and empty String values.  Either way should work.

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

Reply via email to