This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue with Deployment

 
PradeepPillai Pradeep
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have developed a test Servlet 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
 
Don Morgan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
PradeepPillai Pradeep
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Don Morgan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are most welcome, glad you were able to get it working.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic