The specific probelm I am experiencing is as follows:

My directory structure for my class files is :
C:\work\jt\tomcat\webapps\jd\WEB-INF\classes

within this directory I have a package which right now
consists of one class file. The class file follows the
correct directory stucture as noted in the
specification.  The specific structure of this package
is:
C:\work\jt\tomcat\webapps\jd\WEB-INF\classes\com\javaexchange\dbConnectionBroker

My goal is to add a new class file to this package:
I am trying to add a class called HttpServletJXGB to
this package. 

Now my class files which are not part of this package
(which reside in the 
C:\work\jt\tomcat\webapps\jd\WEB-INF\classes) are
going to extend the HttpServletJXGB class.  However
when I try to implement them with this setup I get the
following error:
Error: 500
Location: /jd/dbConnection
Internal Servlet Error:

java.lang.NullPointerException
        at java.lang.ClassLoader.resolveClass0(Native Method)
        at java.lang.ClassLoader.resolveClass(Unknown Source)

etc......

I thought perhaps there was a problem with my
servlets, but if I move the HttpServletJXGB file to
the C:\work\jt\tomcat\webapps\jd\WEB-INF\classes
directory, everything works o.k.  I have determined
that the classes can't find the HttpServletJXGB class
if they are placed in the packeage directory.  I've
tried adding the location of HttpServletJXGB to the
classpath, but that doesn't work either.


Thanks,
   -Amos

 

--- Filip Hanik <[EMAIL PROTECTED]> wrote:
> read the servlet specification. it tells you about
> the WAR structure and how
> it works.
> if you have a specific question, post it with a more
> detailed example
> 
> Filip
> 
> ~
> Namaste - I bow to the divine in you
> ~
> Filip Hanik
> Software Architect
> [EMAIL PROTECTED]
> www.filip.net
> 
> >-----Original Message-----
> >From: A.L. [mailto:[EMAIL PROTECTED]]
> >Sent: Thursday, August 23, 2001 11:33 AM
> >To: [EMAIL PROTECTED]
> >Subject: Directory Structure Question
> >
> >
> >
> >I have a number of servlet class files which I
> would
> >like to put in a separate folder from the rest of
> the
> >servlet files.  This folder could be called
> >parent_classes because these are simply parent
> classes
> >of the servlets. Will Tomcat allow me to do this?
> If
> >so, how can I get this to work?  I am currently
> >getting different errors depending on my setup.
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> >http://phonecard.yahoo.com/
> >
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Reply via email to