• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Issue with Deployment

 
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are most welcome, glad you were able to get it working.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic