tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject open HTTP connection failed
Date Mon, 15 Sep 2003 01:57:05 GMT
Hi all.
My environment is j2sdk4 and TC404. I am trying to implement SUN/Marty
hall's WebClient for administering host, port and requests. The code
uses's SocketUtil. e.g.
Socket client = new Socket(host, port);
protected void handleConnection(Socket client){
PrintWriter out = SocketUtil.getWriter(client);
BufferedReader in = SocketUtil.getReader(client);
I'm not sure whether this is TC4 or a java related problem, but all java
code compiles to class file okay.
My path is $CATALINA_HOME/webapps/examples/
In the server.xml I've uncommented the example Context, like this:
<Connector className="...Ajp13Connector" ...etc...>
<Connector className="org.apache.catalina.connector,http.HttpConnector
   port="8080" minprocessors="3" maxProcessors="10"
   enableLookups="true" acceptCount="3" debug="0"/>
<Engine jvmRoute="blurb" name="blurb" defaultHost="localHost" debug="2">
   <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
   <Context path=/examples" docBase="examples" 
      debug="0" reloadable="true" crossContext="true">
In my TC log, I've this error:
"GET /examples/com/omh/utilities/WebClient.class HTTP/1.1" 404 675
On the java console, I have these errors (they tend to be very long and
load: class com.omh.utilities.WebClient not com.omh.utilities.WebClient	at
sun.applet.AppletClassLoader.findClass(Unknown Source)	at Source)
...etc...Caused by: open HTTP connection failed.	at
sun.applet.AppletClassLoader.getBytes(Unknown Source)	at
sun.applet.AppletClassLoader.access$100(Unknown Source)

Other demo and example servlets and jsp that come with the standard
install work find. Other stuff I put in examples work find as well.
Is this a TC setup error on my part???

View raw message