File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Migrated to tomcat 5

 
Tontang Bei
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How have you upgraded from Tomcat 4 to Tomcat 5 ?
 
Tontang Bei
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to deploy the applications again in Tomcat 5 .
 
Tontang Bei
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how?
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tontang Bei:
how?


The same way you deployed your applications in Tomcat 4.
 
Tontang Bei
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tontang Bei
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic