Ching-Hwa Yu wrote:
> 
> Here are my configuration and error files:
> 
[...]
> 
> I've tried putting the class file in both
> /usr/local/servlets/WebSearchServlet.class and
> /usr/local/servlets/com/fujo/servlets/WebSearchServlet.class calling it by
> using http://127.0.0.1/search/websearch?pn=1

I've tried to duplicate your environment here, but I can't reproduce the
error!

>From your description, the class file should be placed at
/usr/local/servlets/com/fujo/servlets/WebSearchServlet.class

Some things you should check:

1. Permissions on the all directories in the path to your class file to
ensure that the user apache is running as can access and read your class
file.

2. Ensure that you have packaged your class file correctly: there should
be a line "package com.fujo.servlets;" at the top of your java file.

Finally, you could try packaging your class in a jar file using 

jar c0f search.jar com/fujo/servlets/WebSearchServlet.class

and put "repositories=/usr/local/servlets/search.jar" in your
search.properties



Damian


----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to