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=5134>.
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=5134

problems using the manager app from within a java app

           Summary: problems using the manager app from within a java app
           Product: Tomcat 4
           Version: 4.0 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I would like to use the manager app from a java program to ease administration.
I am using the SecureSourceViewer class from the O'Reilly Java Networking book
as a template. The class uses the DialogAuthenticator class from the same book
to pop up a dialog window to enter username and password. I am referring to thes
classes because the examples can be downloaded from the web:

http://ibiblio.org/javafaq/books/jnp2e/examples/07/index.html

Trying to load all deployed servlets using list works fine in a browser, but
from the above class the program fails because it cannot get an inputStream from
the server any idea why? 

Here is the stacktrace: 

 java -cp classes SecureSourceViewer http://localhost:8080/manager/list
java.io.FileNotFoundException: http://localhost:8080/manager/list
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:560)
        at java.net.URL.openStream(URL.java:816)
        at SecureSourceViewer.main(SecureSourceViewer.java:17)
java.io.FileNotFoundException: http://localhost:8080/manager/list

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

Reply via email to