aspose file tools*
The moose likes Tomcat and the fly likes Migrated to tomcat 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Migrated to tomcat 5" Watch "Migrated to tomcat 5" New topic
Author

Migrated to tomcat 5

Tontang Bei
Ranch Hand

Joined: Oct 21, 2006
Posts: 130
I got the bright idea of upgrading to Tomcat 5 from Tomcat 4 and now none of my servlets are available AGAIn!!! . Any thoughts? It seems all of them are unavailable. I have JDK1.5 installed. it this some kind of runtime issue or something? But all the servlets examples that come with Tomcat work though. I dont get it.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
How have you upgraded from Tomcat 4 to Tomcat 5 ?


Rahul Bhattacharjee
LinkedIn - Blog
Tontang Bei
Ranch Hand

Joined: Oct 21, 2006
Posts: 130
I downloaded the zip file from the apache website. I still havent deleted the old tomcat, though I don't believe that is the cause of it. I set the environment and everything to jdk 5. The example servlets of tomcat 5 work, but my applications seem to have lost touch with their servlets.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
You have to deploy the applications again in Tomcat 5 .
Tontang Bei
Ranch Hand

Joined: Oct 21, 2006
Posts: 130
how?
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Originally posted by Tontang Bei:
how?


The same way you deployed your applications in Tomcat 4.
Tontang Bei
Ranch Hand

Joined: Oct 21, 2006
Posts: 130
To deploy in tomcat All i did was place the application in the webapp folder. I didn't configure any web.xml as all my servlets are called from my jsp pages.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Originally posted by Tontang Bei:
To deploy in tomcat All i did was place the application in the webapp folder. I didn't configure any web.xml as all my servlets are called from my jsp pages.


Even if you call your servlets from jsp , still you have to map the servlets in web.xml.
Tontang Bei
Ranch Hand

Joined: Oct 21, 2006
Posts: 130
Is this true?. But even then my web.xml was configured though I just checked and only 1 of my servlets has a mention in the web.xml but all my servlets worked fine on tomcat 4. Im starting to think that tomcat 5 doesnt understand the path that is given inside Jsp's that calls the servlet. for example code like : ./servlet/data.SQLGateayServlet Can anyone confirm this? has this happened to anyone else?
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
I think you are using invoker servlet.In that case you do not need to configure your servlet in web.xml.

Invoker servlet is disabled by default.You can uncomment the invoker servlet in the web.xml which is available in the conf folder.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

see:
http://faq.javaranch.com/view?InvokerServlet


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Tontang Bei
Ranch Hand

Joined: Oct 21, 2006
Posts: 130
THANKYOU BOTH VERY VERY VERY MUCH!!! Its all good now. The link helped alot. "convention over configuration". hmmm....where have i heard that one before
[ April 30, 2007: Message edited by: Tontang Bei ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Migrated to tomcat 5