• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

servlets in Weblogic 6.1

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have written one simple servelet and I want to deploy the same
in Weblogic 6.1.
I have mapped it in web.xml file

<web-app>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<servlet-mapping>
<servlet-name>HelloWorldServlet</servlet-name>
<url-pattern>/main</url-pattern>
</servlet-mapping>
<error-page>
<error-code>404</error-code>
<location>/error.jsp</location>
</error-page>
</web-app>

and trying to access with the
following url
http://localhost:7001/main --> It says file not found.
Do I need to create web application before accessing servlets, If so how to create it?
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd check out this book: Java Servlet Programming, 2nd Edition by Jason Hunter It' provides detailed information on building and deploying servlets.

Also, here is the weblogic documentation on servlets:Programming WebLogic HTTP Servlets
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

where did you deployed it??
Create a folder under applications folder on the domain you have created and place it using the web structure directory then access it using:
http://localhost:7001/%context%/main

where %context% is the name of the folder you have created under applications directory, this should work.
 
What are you doing? You are supposed to be reading this tiny ad!
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic