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