Hello!

I am trying to build a servlet bean which uses classes in a package.
The simplest example would be a one class servlet derived from
HttpServlet, but which is in my own package (com.yell-it-out.servlets).

e.g. the servlet itself is class com.yell-it-out.servlets.MyServlet.

When I build a .jar file and drop the .jar in the servletbeans
subdirectory, I cannot install the bean using the administration tool:
JWS complains that it cannot find the class in the .jar.

Also, if I build an example where the servlet class is not in a package
but it makes use of a class which is in the package, I can install the
bean with JWS' administration tool. However, when I invoke the servlet
a ClassNotFound exception is thrown. I strongly suspect the two issues
are related.

For example, the servlet class is MyServlet, but it calls a method in
com.yell-it-out.servlets.UtilClass.

I understand that I can place com.yell-it-out.servlets.UtilClass in a
separate .jar file somewhere in the classpath (such as JWS' lib
directory). But I am trying to put both MyServlet and
com.yell-it-out.servlets.UtilClass in the same .jar file.

Is there a way to install a servlet bean where the servlet class is in
a package? Is there a way for that class to invoke methods of classes
which are in packages?

I would strongly prefer to have everything in the sam .jar file and not
have to build separate library files if possible.

Thanks in advance... This is KILLING me...


=====
Reginald Braithwaite-Lee
http://www.yell-it-out.com/opportunities/shiplist1099.html
[EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://messenger.yahoo.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to