This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes How to run Servlets with Weblogic 6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to run Servlets with Weblogic 6.1" Watch "How to run Servlets with Weblogic 6.1" New topic
Author

How to run Servlets with Weblogic 6.1

Padmaja Prasad
Ranch Hand

Joined: Nov 14, 2001
Posts: 76
Hi,
I wish to create one web page with HTML + Java servlets & JDBC.
I have compiled my servlet & put the class file in the folder
"C:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\Classes"
and the HTML file in the folder "C:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp". I have modified the "web.xml" file as per the instructions. The problem is I can open the HTML page from the webserver, but I couldn't run the servlet. It is giving some error message like "Error 404: Could not locate the URL". I have specified the path in the HTML as
"http//localhost ort/servletname"
Can anyone help me how to come out of this problem?
Thnx
Kala
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

You're better off packaging up the app in a WAR file and using the WLS console app to load it. Within the WAR, the html and JSPs goe at the root (assuming simple naming) and the servlet and support classes go in the WEB-INF/classes (or WEB-INF/lib, if JAR'ed). WAR form is a standard for J2EE regardless of what brand of server you use.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to run Servlets with Weblogic 6.1
 
Similar Threads
how to set up weblogic for servlet
Depricated API Error pls help
Depricated API Error pls help
Depricated API error please help
new, need help!!!