This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Recognizing a servlet

 
Paul Ackermann
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the WebLogic documentation: Assembling and Configuring Web Applications.
 
Paul Ackermann
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic