How to deploy a servlet in weblogic 7.0

I am using Weblogic server to execute servlets. I copied the servlet’s class file in the following path “c:/bea/user_projects/mydomain/applications/DefaultWebApp/Web-INF/classes folder. The servlet class resides in a package called examples. I created web.xml file in which I included the following lines :-

HelloWorldServlet examples.HelloWorldServlet HelloWorldServlet Hello First.jsp ]]>

After this I deployed the file and tried to execute the servlet through the following path :- http://hostname:7001/DefaultWebApp/Hello

I am getting 404 (file not found) error.

I am new to weblogic can please some one help me.

1 comment
Comment actions Permalink

It should be just http://hostname:7001/Hello: default application is bound to "/" root path.


Please sign in to leave a comment.