aspose file tools*
The moose likes Other Java Products and Servers and the fly likes Issue with Deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Issue with Deployment" Watch "Issue with Deployment" New topic
Author

Issue with Deployment

PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 184
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

Joined: Jul 24, 2003
Posts: 84
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.


Don Morgan, Founder
www.DeveloperAdvantage.com - FREE Audiobooks for Software Developers
PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 184
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

Joined: Jul 24, 2003
Posts: 84
You are most welcome, glad you were able to get it working.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue with Deployment