|
-
October 6th, 1999, 01:03 AM
#1
Java Web Server
I'm having problems chaining servlets in JWS. But to solve that I must solve this: how to configure a simple servlet in JWS. I've been using JSDK to test servlets ie. servletrunner but I'm not having much luck with JWS. What is the proper way of configuring a simple servlet in JWS?
Here are the steps i've taken:
1. I copied the class file of my servlet in the 'servlets' subdirectory in JWS
2. I added the servlet in the 'Servlets' configure panel. I added the name 'FormBrat' and the classname 'FormBrat'(not FormBrat.class).
3. Under the Servlet Aliases in the 'Setup" configure panel, I added '/FormBrat' under 'Alias' and 'FormBrat' under 'Servlet Invoked'
Now..what is the properway to call it? I tried http://localhost:8080/servlet/FormBrat..and it did not find it. I even manually 'loaded' it in the configuration but it could not find it! (How can it not find it if I placed it in the servlet subdirectory??) Do I have to set CLASSPATH for this? The 'counter' servlet that came with the JWS works just fine and its class file is LOCATED in the servlets subdirectory. I even tried deleting the counter.class file from the subdirectory and manually loading it. It couldnt find it as expected but it said 'cannot load local code Counter'?
With my servlet it couldnt find it but it did not mention anything about local code. HELP...CONFUSED
Thanks
Dino
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|