aspose file tools*
The moose likes Servlets and the fly likes Servlets on Weblogic Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets on Weblogic Server" Watch "Servlets on Weblogic Server" New topic
Author

Servlets on Weblogic Server

Rama Reddy
Greenhorn

Joined: Nov 11, 2001
Posts: 8
I am getting the 404 error ---
I installed the Weblogic 5.X app server and I am trying to test using a servlet example.
I did the following steps -
1. Installed the WEBLOGIC server.
2. In the weblogic.properties file I uncommented these two lines
weblogic.httpd.register.hello=\ examples.servlets.HelloWorldServlet
3. started the WLServer.
4.On the browser if I typed - http://localhost:7001/Hello
I am getting 404 error.
I checked the files"examples.servlets.HelloWorldServlet" and they are there.
5. Do I need to change the LAN settings.
6. I am using Windows 98.
Any help is very much appreciated.
Thanks
Rama
k swamy
Greenhorn

Joined: Jul 31, 2001
Posts: 14
weblogic.httpd.register.hello=\ examples.servlets.HelloWorldServlet
Call the servlet by http://localhost:7001/hello
Swamy
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15632
    
  15

Don't use the backslash in filepaths. Outside the Windows world, it's an escape character that give you problems. ESPECIALLY if you code something like:
funny.directory=C:\foo\bar\
because the trailing backslash will be interpreted as a line-continuation request. Use forward slashes. Even though you're running WebLogic under Windows, WebLogic is using Java's filename parsing rules. Look at some of the filepaths that the WebLogic setup program created in your weblogic.properties file for examples.


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: Servlets on Weblogic Server
 
Similar Threads
Weblogic 8.1 with Eclipse
Basic weblogic help
Struts in Weblogic 8.1
I am getting this message : "Error 404--Not Found" while starting an app by Weblogic
Weblogic Workshop 10.3 installed & browser page http://localhost:7001 not working