I have developed a testServlet and deployed it in sun app server and it doesn't work. I used the sun app server deploy tool to deploy it in sun app server. I open the console, navigate to the deployed web application and click launch and I don't see my servlet. I followed the documentation to deploy it and it didn't throw any error after deployment. I have WEB-INF in the war file. If I deploy this in apache tomcat, it works. One difference I noticed is that the web.xml file is different. The deployment tool creates the web.xml by itself and I have no control on it. I tried using �asadmin deploydir� command to deploy the folder and it says the deployment is successful. But other than that the experience is the same as above. Any help appreciated. Thanks
A good starting point is to first try isolate the problem. See if your request is hitting the web server by checking the web server logs. If you are not hitting the webserver, then maybe the url is wrong or something like that. If you hit the webserver, then see if there are any errors in the web server logs or if the request is getting through to the app server.
I thank you Sir, for coming forward. I found what the problem is. In order to go to the page I would open the admin console and click the launch link. Then it would go to an error page. It went to the correct page when I typed the url-pattern after the context root. So the correct url is http://localhost:<port#>/<context-root>/<url-pattern> I guess the sun documentation is little confusing.
[ January 12, 2006: Message edited by: PradeepPillai Pradeep ]
[ January 12, 2006: Message edited by: PradeepPillai Pradeep ] [ January 12, 2006: Message edited by: PradeepPillai Pradeep ]
Joined: Jul 24, 2003
You are most welcome, glad you were able to get it working.