In addition to this... That's the weblogic specific way to register a
servlet. When I used weblogic I noticed that it will read a web
application's web.xml file and process it accordingly. ie. it will process
the servlet and servletmapping definitions so you can configure this stuff
in an application server independant fashion.
Am I wrong?
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Liz
> Stanley
> Sent: Thursday, July 20, 2000 5:24 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Weblogic/Servlet problem
>
>
> If you are registering a servlet called MyServlet in package
> com.mycompany.somedirectory in WebLogic, the weblogic.properties
> file will have an entry along these lines:
>
> # My Servlet
> weblogic.httpd.register.MyServlet=com.mycompany.somedirectory.MyServlet
>
> Then, assuming that WebLogic is listening on port 7001, your
> servlet url would be something like:
>
> http://www.myweblogicserver.com:7001/MyServlet
>
> So, if you have not registered it correctly or are not typing in
> the url correctly, that could be why WebLogic doesn't find it.
>
> Another problem could be that the directory your servlet is in is
> not in the WEBLOGIC_CLASSPATH (not the same thing as the java
> classpath.) For example, I always compile my classes in a
> directory called /classes under ~/weblogic using the following command:
>
> javac - d ~/classes MyServlet.java
>
> So, that classes directory needs to be in the WebLogic classpath.
> That can be modified in the startWebLogic.sh (or
> startWebLogic.cmd on NT) file in your ~/weblogic directory.
>
> Hope that helps!!
>
> Liz
> [EMAIL PROTECTED]
> http://www.gymell.com
>
>
> "A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology." <[EMAIL PROTECTED]> wrote:
> > Morning!
>
> I am running Weblogic 5.x and I am trying to run a test servlet for the
> first time. The server does not recognize where I put the
> servlet. I thought
> I added the location to the classpath correctly, and also added
> the entry to
> the Weblogic.properties files. But it still does not work......any
> suggestions?
>
> Thanks!
>
> Mark
>
> __________________________________________________________________
> _________
> 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
>
> __________________________________________________________________
> _________
> 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
>
___________________________________________________________________________
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