Hi all, I need help in deploying my servlets on Linux server.I have in built Tomcat 5. I created a WEB-INF/classes structure and put my .class files in it. I am trying to run the basic HelloWorld Servlet with the url as my website's id followed by/servlet/HelloWorld but it's not working. I don't know what's going wrong. I am absolutely new in this "LINUX DEPLOYMENT" field.
That your url has "servlet/" in it tells me that you're probably using an older book or tutorial that relies on the invoker servlet for deploying your servlet.
The invoker has been taken out of commission in newer versions of Tomcat. Now, you must add a servlet entry and a servlet mapping to your deployment descriptor (web.xml).
hey Ben Souther, Thanks a lot for the reply.I really appreciate it.I am trying to deploy my servlet that way because that was mentioned in my site's documentation. I am going through the link you have given.It has lots of info.
hi all, I wanted help in deploying JSP pages also. I posted this question in JSP's thread,but got a reply that it was a "Cross-Post" and my post was closed.So I had to include everything here... I am trying to deploy my JSP pages on my server,my simple jsp page has only <% int i=4; %> Hello! The count is now <%= i %>
but still it's not working.In the browser I can see only "Hello!The count is now " so I don't know what's going wrong.
My server has included JAVA,and tomcat 5.I haven't yet set any env variables.
hey Bear Bibeault Thanks for your reply. I tried it again. The view source looks like this.I know it looks bad and and is hard to read but had to paste it as it is to give an idea.