Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Deploying Spring web application in Tomcat 6

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am facing problem in deploying a spring application in Tomcat6. I was using Eclipse before to do the development. Now the web application is ready and I would like to deploy it in a separate Tomcat installation. All I did was,

copied the my web application root directory into the tomcat Webapps directory
started the tomcat server using startup.bat..
Opened the Management Console of Tomcat6. I am able to see my application listed there. but when I click on the link, its not opening any page.

Please note, I did nothing extra other than the steps mentioned above. Please let me know if any configurations have to be made.

TTGAdmin, is my root folder. Even if I give the url like this, "http:localhost:8080/TTGAdmin/index.html" or "http:localhost:8080/TTGAdmin/Login.jsp", it is saying, Resource not found.

P.S: I have the index page listed in my application's web.xml file.

Appreciate any help. Thanks in advance..!!
 
Ranch Hand
Posts: 349
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you able to deploy other web applications developed without Spring? Have you looked into the logs for any exceptions?
 
Arunkumar Pugalenthi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Anand,

Nothing in the logs. But I was able to solve the problem on my own. All of my JSPs and Resources were under Webcontents folder of my own application.. In order to resolve this, I did a WAR packaging of the app and put in Tomcat's webapps folder, instead of copy pasting the whole directory structure. Tomcat took care of everything and now, my site is accessible. On the extracted folder, I noticed that, the resources were available directly under my root folder, instead of my own, WebContents folder.

Thank you.
reply
    Bookmark Topic Watch Topic
  • New Topic