aspose file tools*
The moose likes BEA/Weblogic and the fly likes Recognizing a servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Recognizing a servlet" Watch "Recognizing a servlet" New topic
Author

Recognizing a servlet

Paul Ackermann
Greenhorn

Joined: Dec 09, 2002
Posts: 3
I am new to Weblogic, and I can't get my browser to recognize my servlet. I know this is rather simplistic. Can somebody give me the basic steps?
I am getting the following error:
Error 404- Not Found
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
See the WebLogic documentation: Assembling and Configuring Web Applications.
Paul Ackermann
Greenhorn

Joined: Dec 09, 2002
Posts: 3
I checked it out, but it has not help.
I am receiving the message:
HTTP 405 - Resource not allowed
It seems the problem is in the web.xml
<servlet>
<servlet-name>Main</servlet-name>
<servlet-class>com.bradford.presentation.web.OBJ.classes.main.MainDispatcher</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Main</servlet-name>
<url-pattern>/Main</url-pattern>
</servlet-mapping>

I have a feeling that it has to do with servlet-class, but I checked the .ear file in the applications directory and it has the following entry:
WEB-INF\classes\com\bradford\presentation\web\OBJ\classes\main\MainDispatcher.class
This path matches what is in the web.xml, with the WEB-INF\classes in the beginning of the classpath
My url is http://localhost:7001/ObjectReference/Main
(I placed <context-root>ObjectReference</context-root> in the application.xml)
Any ideas?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Recognizing a servlet