I think that it's not enough that the jar file is in your servlet dir, I
guess the path to the jar file has also to be set in jserv.properties
with the wrapper.classpath directive. With java a jar file has to be in
the CLASSPATH itself, not only the diretory path to it, e.g.
CLASSPATH=/usr/local/jserv/servlets/Myservlet.jar.
Hope that helps.
By,
Alex Packwood wrote:
>
> I am trying to get a servlet to run using JServ b2 with Apache 1.3.4 on NT4
> (sp 3).
>
> I can get the status and configuration of JServ using
> http://127.0.0.1/jserv/, but I am now trying to run my own servlet called
> MapServlet. I have set up the properties files as per the 'How to install
> servlets' instructions, including using an alias called map
> servlet.map.code=MapServlet). I have a jar file called MapServlet.jar in
> the servlets directory containing this class which does not belong to a
> package.
>
> When I try to run the servlet (http://host/servlets/map/) I get the 'URL
> Not Found' error in the browser and the following error in the
> mod_jserv.log file:
>
> [06/04/1999 12:05:37:519] (ERROR) ajp11: Servlet Error:
> NoClassDefFoundError: MapServlet
>
> I have tried placing this class in a package and using proper paths etc.
> but I get the same error, except the packages name appears before the
> class.
>
> Thanks,
> Alex Packwood.
>
> ----------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html/>
> Problems?: [EMAIL PROTECTED]
--
Guenther Wieser
creative-it/Guenther Wieser Software KEG
Student of Telematik at Graz University of Technology
http://www.creative-it.com mailto:[EMAIL PROTECTED]
-> In A World Without Walls And Fences, Who Needs Windows And Gates? <-
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]