Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 24, 2012, 03:01:22 AM

Pages: [1]   Go Down
  Print  
Author Topic: Need help with Tomcat 7 config (on my Windows PC) for backup of my LP site  (Read 1747 times)
DocDJ
Newbie
*
Offline Offline

Posts: 1


« on: May 29, 2011, 07:12:42 AM »

I am running an http server and a tomcat server on my home PC, so I can use it for prototyping apps to be installed on LP. I am having some problems getting tomcat properly configured. 

I have Tomcat 7 running as a Windows 7 server and I get the Tomcat “welcome” screen when I go to “localhost:8080”, but when I try “localhost:8080/Fedweb” I get the 404 error and the message “The requested resource (/Fedweb/) is not available”

Here is my setup:
Server.xml has the Tomcat default. I have NOT put any Context data there as this is “frowned upon” by Tomcat.
I have inserted context information into the context.html file as follows:
<Context  docBase="E:\Fedweb" path="" reloadable="true" crossContext="true">
</Context>
 
My folder structures are as follows:
E:\Fedweb             has all the folders & files as found on Lunarpages, including the index.html file

E:\tomcat\conf  has server.xml and context.xml

I hope you can tell me what I am doing wrong as I am a complete “newbie” to Tomcat.

Logged
MarianO
Guest
« Reply #1 on: June 02, 2011, 05:08:49 AM »

Hello,

If you've created the servlet under /Fedweb please ensure that this path is mapped in the web.xml . I personally recommend using .war files for deployment. If you're developing your code using Eclipse SDK you should read this post : http://www.ibm.com/developerworks/opensource/library/os-eclipse-tomcat/index.html and ensure that web.xml is mapping your subfolder. After that export the war file and deploy it in the Tomcat manager. I hope this helps.

 - Marian
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: