I understand the issues and recommendations being made. But, possibly a little 
more detail in the app is needed.

The web pages provided with the app are static and created in English. Upon 
starting the web app new pages are created that are language based. When 
deployed the war is always exploded so that access to the scripts, styles, 
pages, etc. is available to the web app to make new ones and or modify existing 
ones. 

Data for the web pages is provided by means of web services where the client 
browser IE/Firefox makes calls to web services for data (loading/saving) and 
business logic.

Currently the same WAR produced by Ant build script is used in Websphere 7 and 
WebLogic 11g without issue or modifications needed. 

We have a customer that has asked me to support Tomcat (assume the cost of 
Webshere/Weblogic is an issue).

Having provide a brief description of system. I have tried the following.

I have modified the InitServlet class (removed everything). The following is 
the complete code of InitServlet

package com.surecomp.allMATCH.client;

import javax.servlet.ServletException;
import javax.servlet.ServletInputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class InitServlet extends javax.servlet.http.HttpServlet implements 
javax.servlet.Servlet {

public void destroy() {
}

public void init() throws ServletException {
        System.out.println("Loaded");
}

}

I have compiled it and placed the class file into 
C:\Downloads\tomcat-7\apache-tomcat-7.0.6\webapps\allMATCHWeb\WEB-INF\classes\com\surecomp\allMATCH\client
 and I expected to see the System.out.println either on the screen or in some 
log file. I do not see it anywhere.


Sincerely,

Robert Jenkin
Surecomp Services, Inc.
2 Hudson Place, 4th Floor
Hoboken, NJ 07030
Skype: robert.jenkin
Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537
http://www.Surecomp.com


-----Original Message-----
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Friday, January 28, 2011 4:00 PM
To: Tomcat Users List
Subject: Re: deploying a war file and starting the application

On 28/01/2011 20:54, Caldarale, Charles R wrote:
>> From: robert.jen...@surecomp.com [mailto:robert.jen...@surecomp.com] 
>> Subject: RE: deploying a war file and starting the application
> 
>> I make reference to getRealPath to load a property file.
> 
> It's definitely a bad thing to do.  You should be using 
> ServletContext#getResourceAsStream(). 

+1. That will also mean you app will work (well, that part of it at
least) as an exploded directory or as a WAR file.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


This mail was sent via Mail-SeCure System.

Reply via email to