I did all of what you had suggested and still same problem  :/

>What you are doing looks correct. Can you try the following for me?
>
>http://127.0.0.1/search/com.fujo.servlets.WebSearchServlet
>
>What does it give you in the error log?

NoClassDefFoundError: com.fujo.servlets.WebSearchServlet

I also put the Hello.class file under the /usr/local/servlets directory and
that works so I know it's looking in the right directory.  All directories
are drwxr-x-rx in /usr/local/servlets/com/fujo/servlets/

>try http://127.0.0.1/search/WebSearchServlet?pn=1
>
>And put your WebSearchServlet.class in /usr/local/servlets

Same error

Are there any environment variables or anything I'm supposed to have set ?
I also compiled apache with the mod_jserv static without DS0.  Hello works
so that means everything else should work right ?  :)

Thanks for all the help so far,
Ching-Hwa Yu

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Damian
Fauth
Sent: Wednesday, April 14, 1999 10:46 PM
To: Java Apache Users
Subject: Re: Directories problem ...

[...]
>
> 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



----------------------------------------------------------------
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