----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Anil
Since you haven't posted your config or log files it is hard to get much
info. I will asume you are running Linux.
To make your classfile visible to JServ they have to be set to +r to the
owner of apache. For instance my apache httpd runs as user wwwrun (set in
httpd.conf) so I change my permissions on my classfiles to that user:
chown wwwrun myclassfile.class
chmod 700 myclassfile.class
Also ensure the directories have relevant permssions set.
Chris
On Tue, 29 Aug 2000 10:06:26 +0530, Noone Anil Kumar wrote:
>----------------------------------------------------------------
>BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>WHEN YOU POST, include all relevant version numbers, log files,
>and configuration files. Don't make us guess your problem!!!
>----------------------------------------------------------------
>
>Chris,
>
>>>>Now it could be that the class not being
>>>>>found is in a jar which your JVM cannot read (I had that before)
>
> I did set in classpath for all the jar's .
>
>>>>Also ensure all your classes are
>>>>>accessible to your Jserv.. ie you the owner of hte process had read
>>>>permissions to the classfiles.ie you the owner of hte process had read
>>>>>permissions to the classfiles.
>
>Can you elaborate bit more. i.e where should i set the read permission for JVM???
>
>>>>>It maybe useful to post a little more info as stated below.
>
>This is the mod_jserv.log stmt:
>where MarsDm is only my servlet is a sub class of "Dm" abstract Servlet.
>
>[29/08/2000 04:23:33:148] (ERROR) ajp12: Servlet Error: NoClassDefFoundError: MarsDm
>
>Thanks,
>Anil
>
>Brevsville Administrator wrote:
>
>> ----------------------------------------------------------------
>> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>> WHEN YOU POST, include all relevant version numbers, log files,
>> and configuration files. Don't make us guess your problem!!!
>> ----------------------------------------------------------------
>>
>> Anil
>>
>> Your error has a very specific meaning. it means the class you are
>> attempting to load cannot be found. This means the class is not neither in
>> the classpath nor the wapper. Now it could be that the class not being
>> found is in a jar which your JVM cannot read (I had that before) or the
>> class your servlet is relying on cannot be found. So have a look in your
>> logs to determine if it is the actual servlet that is not being found or
>> maybe one of the classes it requires. Also ensure all your classes are
>> accessible to your Jserv.. ie you the owner of hte process had read
>> permissions to the classfiles.
>>
>> It maybe useful to post a little more info as stated below.
>>
>> Chris
>>
>> On Mon, 28 Aug 2000 20:02:17 +0530, Noone Anil Kumar wrote:
>>
>> >----------------------------------------------------------------
>> >BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>> >WHEN YOU POST, include all relevant version numbers, log files,
>> >and configuration files. Don't make us guess your problem!!!
>> >----------------------------------------------------------------
>> >
>> >Chris
>> >
>> >Yes, i did reply after trying the same: I tried in both ways i.e setting the
>> >classpath, wrapper.classpath.
>> >But i am getting the same error
>> >
>> >Anil-
>> >
>> >Brevsville Administrator wrote:
>> >
>> >> ----------------------------------------------------------------
>> >> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>> >> WHEN YOU POST, include all relevant version numbers, log files,
>> >> and configuration files. Don't make us guess your problem!!!
>> >> ----------------------------------------------------------------
>> >>
>> >> Because you have to read the documentation that comes with jServ and it
>> >> will tell u.
>> >>
>> >> Trust me and save yourself the agro... add your class to the classpath.
>> >>
>> >> Chris
>> >>
>> >> On Mon, 28 Aug 2000 19:31:04 +0530, Noone Anil Kumar wrote:
>> >>
>> >> >----------------------------------------------------------------
>> >> >BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>> >> >WHEN YOU POST, include all relevant version numbers, log files,
>> >> >and configuration files. Don't make us guess your problem!!!
>> >> >----------------------------------------------------------------
>> >> >
>> >> >Hi ,
>> >> >
>> >> >If So how am i able to run example servlet(IsItWorking-working fine) from the
>> >> >same directory??.
>> >> >
>> >> >-Anil
>> >> >
>> >> >Brevsville Administrator wrote:
>> >> >
>> >> >> ----------------------------------------------------------------
>> >> >> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>> >> >> WHEN YOU POST, include all relevant version numbers, log files,
>> >> >> and configuration files. Don't make us guess your problem!!!
>> >> >> ----------------------------------------------------------------
>> >> >>
>> >> >> Anil
>> >> >>
>> >> >> This error indicates that the calss you are trying to load is not found in
>> >> >> your classpath nor your wrapper.classpath.
>> >> >>
>> >> >> Chris
>> >> >>
>> >> >> On Mon, 28 Aug 2000 18:08:50 +0530, Noone Anil Kumar wrote:
>> >> >>
>> >> >> >----------------------------------------------------------------
>> >> >> >BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>> >> >> >WHEN YOU POST, include all relevant version numbers, log files,
>> >> >> >and configuration files. Don't make us guess your problem!!!
>> >> >> >----------------------------------------------------------------
>> >> >> >
>> >> >> >Hi ,
>> >> >> >
>> >> >> >I am working on Apache Webserver:1.3.9 & Jserv 1.1.2 -WinNT , and i am
>> >> >> >getting "NoClassDefFoundError" while i am running my servlet.
>> >> >> >Here is the way that i did configure jserv:
>> >> >> >
>> >> >> >
>> >> >> >The zone will use the servlets mount .
>> >> >> >
>> >> >> > ApJServMount /servlets /servlets
>> >> >> >
>> >> >> >2.. Edit jserv.properties by adding servlets to the list of servlet
>> >> >> >zones.
>> >> >> >
>> >> >> > zones=servlets
>> >> >> >
>> >> >> > 3. Edit jserv.properties by adding the absolute path to the
>> >> >> >servlet.properties
>> >> >> > file.
>> >> >> >
>> >> >> > servlets.properties=c:\programfiles\jserv\conf\servlets.properties
>> >> >> >
>> >> >> >
>> >> >> >4. Edit servlets.properties with the path to the servlets repository.
>> >> >> >
>> >> >> > repositories=D:\san\hpstmgmt\webroot\servlets
>> >> >> >
>> >> >> > 5. Finally add the IsItWorking.class file or a simple HelloWorld
>> >> >> >servlet to
>> >> >> > the servlets repository at;
>> >> >> >
>> >> >> > d:\san\hpstmgmt\webroot\servlets
>> >> >> >
>> >> >> >6. Test the URL s;
>> >> >> >
>> >> >> > http://127.0.0.1/servlets/IsItWorking
>> >> >> > http://machinename/IsItWorking
>> >> >> > http://###.###.###.###/servlets/IsItWorking
>> >> >> > (where ###.###.###.### is the machines assigned IP by the
>> >> >> >workgroup)
>> >> >> >
>> >> >> >The example "IsItWorking " working fine. But ,when i tried to run my own
>> >> >> >
>> >> >> >servlet(is a subclass of other abstract servlet-
>> >> >> >both are in same repository ) it's giving "NoClassDefFoundError"
>> >> >> >Can you help me out where i am doing mistake???
>> >> >> >
>> >> >> >Thanks in advance,
>> >> >> >Anil
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >--
>> >> >> >--------------------------------------------------------------
>> >> >> >Please read the FAQ! <http://java.apache.org/faq/>
>> >> >> >To subscribe: [EMAIL PROTECTED]
>> >> >> >To unsubscribe: [EMAIL PROTECTED]
>> >> >> >Search Archives:
>> >> >> ><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
>> >> >> >Problems?: [EMAIL PROTECTED]
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> --------------------------------------------------------------
>> >> >> Please read the FAQ! <http://java.apache.org/faq/>
>> >> >> To subscribe: [EMAIL PROTECTED]
>> >> >> To unsubscribe: [EMAIL PROTECTED]
>> >> >> Search Archives:
>> >> >> <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
>> >> >> Problems?: [EMAIL PROTECTED]
>> >> >
>> >> >--
>> >> >
>> >> >
>> >> >################################################################################
>> >> >
>> >> > NOONE ANIL KUMAR
>> >> >
>> >> > WORKING AT : | STAYS AT :
>> >> > |
>> >> >Hewlett Packard, | 262/a, 10th main
>> >> >India Software Operations, | Mathikere,
>> >> >30, Cunningham Road, | Bangalore - 560 054
>> >> >Bangalore - 560 052, India | India
>> >> >Tel : (91)(80)2899294/ |
>> >> > 5/6/7/8/9 |
>> >> >Extn : 1847 |
>> >> >email : [EMAIL PROTECTED] |
>> >> > |
>> >> >################################################################################
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >--
>> >> >--------------------------------------------------------------
>> >> >Please read the FAQ! <http://java.apache.org/faq/>
>> >> >To subscribe: [EMAIL PROTECTED]
>> >> >To unsubscribe: [EMAIL PROTECTED]
>> >> >Search Archives:
>> >> ><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
>> >> >Problems?: [EMAIL PROTECTED]
>> >> >
>> >>
>> >> --
>> >> --------------------------------------------------------------
>> >> Please read the FAQ! <http://java.apache.org/faq/>
>> >> To subscribe: [EMAIL PROTECTED]
>> >> To unsubscribe: [EMAIL PROTECTED]
>> >> Search Archives:
>> >> <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
>> >> Problems?: [EMAIL PROTECTED]
>> >
>> >--
>> >
>> >
>> >################################################################################
>> > NOONE ANIL KUMAR
>> >
>> > WORKING AT : | STAYS AT :
>> > |
>> >Hewlett Packard, | 262/a, 10th main
>> >India Software Operations, | Mathikere,
>> >30, Cunningham Road, | Bangalore - 560 054
>> >Bangalore - 560 052, India | India
>> >Tel : (91)(80)2899294/ |
>> > 5/6/7/8/9 |
>> >Extn : 1847 |
>> >email : [EMAIL PROTECTED] |
>> > |
>> >################################################################################
>> >
>> >
>> >
>> >
>> >--
>> >--------------------------------------------------------------
>> >Please read the FAQ! <http://java.apache.org/faq/>
>> >To subscribe: [EMAIL PROTECTED]
>> >To unsubscribe: [EMAIL PROTECTED]
>> >Search Archives:
>> ><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
>> >Problems?: [EMAIL PROTECTED]
>> >
>>
>> --
>> --------------------------------------------------------------
>> Please read the FAQ! <http://java.apache.org/faq/>
>> To subscribe: [EMAIL PROTECTED]
>> To unsubscribe: [EMAIL PROTECTED]
>> Search Archives:
>> <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
>> Problems?: [EMAIL PROTECTED]
>
>--
>
>
>################################################################################
> NOONE ANIL KUMAR
>
> WORKING AT : | STAYS AT :
> |
>Hewlett Packard, | 262/a, 10th main
>India Software Operations, | Mathikere,
>30, Cunningham Road, | Bangalore - 560 054
>Bangalore - 560 052, India | India
>Tel : (91)(80)2899294/ |
> 5/6/7/8/9 |
>Extn : 1847 |
>email : [EMAIL PROTECTED] |
> |
>################################################################################
>
>
>
>
>--
>--------------------------------------------------------------
>Please read the FAQ! <http://java.apache.org/faq/>
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>Search Archives:
><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
>Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]