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 java.net's SocketUtil. e.g.
(NetworkClient.java)
Socket client = new Socket(host, port);
handleConnection(client);
...
protected void handleConnection(Socket client){
PrintWriter out = SocketUtil.getWriter(client);
BufferedReader in = SocketUtil.getReader(client);
...
etc
...
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:
(server.xml)
<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">
<Logger...>
<Realm...>
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
<Valve...>
<Logger...>
<Context path=/examples" docBase="examples"
debug="0" reloadable="true" crossContext="true">
</Context>
...
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
tedious):
load: class com.omh.utilities.WebClient not
found.java.lang.ClassNotFoundException: com.omh.utilities.WebClient at
sun.applet.AppletClassLoader.findClass(Unknown Source) at
sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
...etc...Caused by: java.io.IOException: open HTTP connection failed. at
sun.applet.AppletClassLoader.getBytes(Unknown Source) at
sun.applet.AppletClassLoader.access$100(Unknown Source)
...etc...
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???
TIA
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]