Craig:
--- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
> Reginald Braithwaite-Lee wrote:
>
> > 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.
> >
>
> I don't know anything about JWS in particular, but are you building
> your
> JAR file correctly? Inside the JAR, you have to reflect the same
> directory
> structure (matching the package structure) that would be there if the
> classes
> were not packed into a JAR file.
I am using Codewarrior, which does this automatically for me. Opening
the .jar in WinZip, I see thatthe paths are being set correctly. Also,
when I build .jar files and putthem inthe classpath, the classes within
packages are loaded correctly.
The problem comes when I try to use them in Servlet Beans. Something
aboutthe way Java Web Server loads beans seems to break :-(
Thanks!
=====
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