webapp servlet vers web services

2011-04-27 Thread Robert.Jenkin
Hi all,

Not sure where to direct this question.. I thought I try here...

In a webapp you have a servlet where by means of servlet mapping we can direct 
all traffic, example

  servlet-mapping
servlet-nameInitServlet/servlet-name
url-pattern//url-pattern
  /servlet-mapping

If I understand spec correctly and this being the only mapping, it will become 
the default and all requests will be routed to the servlet.

I also have a bunch of web services which when called do not route to the 
servlet. My question; is there something like the idea of serlvet for web 
services that will route all requests into a common location and from there let 
the application farm it out to the correct web service.  The reason I ask is I 
like to isolate some security and business logic in to one location and have 
that entered first by the web service call and then pass along to correct 
service.

I could extend a base object for each web service but that would prevent adding 
external web services from source to the system without making modifications to 
those sources.

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


This mail was sent via Mail-SeCure System.




webservice handler

2011-04-27 Thread Robert.Jenkin
Thanks for the input people

I have added a soap handler and works well... does require a minor change to 
all webservices to specify the annotation HandlerChain... I believe this can be 
done in code at start up and not coded in the actual service.

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


This mail was sent via Mail-SeCure System.




axis

2011-03-14 Thread Robert.Jenkin
Does tomcat include the apache axis or do I have to download and install 
separately?


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


This mail was sent via Mail-SeCure System.




RE: console with when running as service

2011-03-09 Thread Robert.Jenkin
I have not tried this... but I will give it a try..

You can have the startup.bat registered as a service and redirect output to a 
text file. This will give you a text file showing the console window output

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: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Wednesday, March 09, 2011 9:41 AM
To: Tomcat Users List
Subject: RE: console with when running as service

 From: Zbynek Vavros [mailto:zbynek_vav...@cz.ibm.com] 
 Subject: console with when running as service

 is it possible to setup Tomcat service in a way that it will display
 console window after service start, same as when started using bat file?
 I mean window to which standart outputs and errors are redirected

You keep asking the same question, and you apparently don't understand what a 
Windows service is for.  Services are meant to run in the background, and 
normally start *before any user logs in*.  Unless there's a logged-in user, 
there cannot be any console windows.  On newer versions of Windows (Vista and 
later), having a service interact with the desktop is mind-bogglingly painful 
experience.

If you want a console window, run Tomcat from the startup.bat script.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
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.



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



RE: console with when running as service

2011-03-09 Thread Robert.Jenkin
Also as a possible enhancement to tomcat.. add a service command to the service 
app to show is output window

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: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Wednesday, March 09, 2011 9:41 AM
To: Tomcat Users List
Subject: RE: console with when running as service

 From: Zbynek Vavros [mailto:zbynek_vav...@cz.ibm.com] 
 Subject: console with when running as service

 is it possible to setup Tomcat service in a way that it will display
 console window after service start, same as when started using bat file?
 I mean window to which standart outputs and errors are redirected

You keep asking the same question, and you apparently don't understand what a 
Windows service is for.  Services are meant to run in the background, and 
normally start *before any user logs in*.  Unless there's a logged-in user, 
there cannot be any console windows.  On newer versions of Windows (Vista and 
later), having a service interact with the desktop is mind-bogglingly painful 
experience.

If you want a console window, run Tomcat from the startup.bat script.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
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.



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



RE: console with when running as service

2011-03-09 Thread Robert.Jenkin
There is a window version of tail tailforwin32.sourceforge.net


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: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Wednesday, March 09, 2011 9:52 AM
To: Tomcat Users List
Subject: RE: console with when running as service

 From: robert.jen...@surecomp.com [mailto:robert.jen...@surecomp.com] 
 Subject: RE: console with when running as service

 You can have the startup.bat registered as a service and 
 redirect output to a text file.

Somewhat pointless, since that's exactly what the Tomcat service does by 
default.

 This will give you a text file showing the console window output

It's always possible to use some Windows equivalent of tail (is there one?) to 
look at any text-formatted log file.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
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.



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



RE: Issue with oralce drive under tomcat 7

2011-02-24 Thread Robert.Jenkin
We have classes for oracle, Microsoft, and db2 and each class is specific to 
the vendor. I have inherited the code. I also question why class name are 
different and why removing ojdbc6.jar from app\lib worked.

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: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Wednesday, February 23, 2011 6:15 PM
To: Tomcat Users List
Subject: Re: Issue with oralce drive under tomcat 7

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

On 2/22/2011 9:24 PM, Caldarale, Charles R wrote:
 From: robert.jen...@surecomp.com [mailto:robert.jen...@surecomp.com] 
 Subject: Issue with oralce drive under tomcat 7
 
 Caused by: java.lang.ClassCastException: 
 oracle.jdbc.driver.OracleResultSetMetaData
 cannot be cast to oracle.jdbc.OracleResultSetMetaData
 
 This is frequently caused by having the JDBC driver jar in more than one 
 location.  If you're using Tomcat's DBCP capability, the jar must be in 
 Tomcat's lib directory - only.  If you're doing your own connection pooling 
 (or none at all), the jar should be in the webapp's WEB-INF/lib directory - 
 only.  Make sure the jar is not also in some other location, such as jre/lib, 
 or the endorsed directory.

Odd that the class names are different... and that your suggestion
worked. Copy/paste error?

Robert, may I ask why you were casting to an Oracle-specific interface
in the first place?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1llP8ACgkQ9CaO5/Lv0PAE0wCcCP0Bbq0GmdDJBeOG3Z6ksPoP
dHEAnj01yUcjYwrHqXYqo6RlZP3PQhwM
=vi8b
-END PGP SIGNATURE-

-
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.


RE: Issue with oralce drive under tomcat 7

2011-02-23 Thread Robert.Jenkin
Chuck,

Your are correct.. I removed the ojdbc6.jar from by app\lib folder and it 
worked. Thanks

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: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Tuesday, February 22, 2011 9:25 PM
To: Tomcat Users List
Subject: RE: Issue with oralce drive under tomcat 7

 From: robert.jen...@surecomp.com [mailto:robert.jen...@surecomp.com] 
 Subject: Issue with oralce drive under tomcat 7

 Caused by: java.lang.ClassCastException: 
 oracle.jdbc.driver.OracleResultSetMetaData
 cannot be cast to oracle.jdbc.OracleResultSetMetaData

This is frequently caused by having the JDBC driver jar in more than one 
location.  If you're using Tomcat's DBCP capability, the jar must be in 
Tomcat's lib directory - only.  If you're doing your own connection pooling (or 
none at all), the jar should be in the webapp's WEB-INF/lib directory - only.  
Make sure the jar is not also in some other location, such as jre/lib, or the 
endorsed directory.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
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.



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



loading an xsl file in javascript

2011-02-23 Thread Robert.Jenkin
Hello,

Via javascript I am loading xsl's from tomcat to client. My javascript code was 
the following...

   // sort the xml using xsl stylesheet
   xsl.load(reportwriter/xsl/treesort.xsl);
   xml.loadXML(xml.transformNode(xsl));

   // Load XSL
   xsl.load(reportwriter/xsl/tree.xsl);

This resulted in the following error...

Error: The stylesheet does not contain a document element.  The stylesheet may 
be empty, or it may not be a well-formed XML document.

I modified the code to the following

   // sort the xml using xsl stylesheet
alert(getUrl() + /reportwriter/xsl/treesort.xsl);
   xsl.load(getUrl() + /reportwriter/xsl/treesort.xsl);
   xml.loadXML(xml.transformNode(xsl));

   // Load XSL
alert(getUrl() + /reportwriter/xsl/tree.xsl);
   xsl.load(getUrl() + /reportwriter/xsl/tree.xsl);

the alert show the following

https://localhost:7443/Reporting/reportwriter/xsl/treesort.xls (I never get to 
the second alert)

If I cut/paste the url into browser url line it loads and displays without 
issue. However,  when I run my webapp I still get the following error

Error: The stylesheet does not contain a document element.  The stylesheet may 
be empty, or it may not be a well-formed XML document.

So it appears the stylesheet is loading a blank file. Any ideas? Is there 
something different I need to do with tomcat to load these?

My webapp directory structure is the following

Within tomcat webapps folder I have

Reporting
Logs
META-INF
reportwriter
images
pages
reports
scripts
xml
xsl - this is where the two xsl files are stored
WEB-INF

This is the contents of treesort.xsl

?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xsl:output method=xml version=1.0 encoding=UTF-8 indent=yes/

xsl:template match=menu
xsl:copy
xsl:for-each select=menuItem
xsl:sort select=@title/
xsl:copy
xsl:copy-of 
select=@*/
xsl:for-each 
select=menuItem

xsl:sort select=@title/

xsl:copy-of select=./
/xsl:for-each
/xsl:copy
/xsl:for-each
/xsl:copy
/xsl:template

/xsl:stylesheet

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


This mail was sent via Mail-SeCure System.




RE: loading an xsl file in javascript

2011-02-23 Thread Robert.Jenkin
Hi

The code is correct we first load the xsl and transform xml using the xsl.

I like also to point out that the code as it stands is working without issue 
with weblogic 10 and websphere 7. The issue is after the xsl.load() method is 
called the xsl is blank.

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: rob.kob...@gmail.com [mailto:rob.kob...@gmail.com] On Behalf Of Rob Koberg
Sent: Wednesday, February 23, 2011 9:51 AM
To: Tomcat Users List
Cc: Robert Jenkin
Subject: Re: loading an xsl file in javascript

           // sort the xml using xsl stylesheet
 alert(getUrl() + /reportwriter/xsl/treesort.xsl);
           xsl.load(getUrl() + /reportwriter/xsl/treesort.xsl);
-^

           xml.loadXML(xml.transformNode(xsl));
-^


           // Load XSL
 alert(getUrl() + /reportwriter/xsl/tree.xsl);
           xsl.load(getUrl() + /reportwriter/xsl/tree.xsl);

Unless it is a typo, you are transforming your xml before you load it.

You might want to check out Sarissa for client side transforms.

best,
-Rob

This mail was sent via Mail-SeCure System.



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



RE: loading an xsl file in javascript

2011-02-23 Thread Robert.Jenkin
More clairification... 


xml.loadXML(xml.transformNode(xsl)); if transforming the xml using the xml 
already loaded.. so the source xml is from the target object

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: rob.kob...@gmail.com [mailto:rob.kob...@gmail.com] On Behalf Of Rob Koberg
Sent: Wednesday, February 23, 2011 9:51 AM
To: Tomcat Users List
Cc: Robert Jenkin
Subject: Re: loading an xsl file in javascript

           // sort the xml using xsl stylesheet
 alert(getUrl() + /reportwriter/xsl/treesort.xsl);
           xsl.load(getUrl() + /reportwriter/xsl/treesort.xsl);
-^

           xml.loadXML(xml.transformNode(xsl));
-^


           // Load XSL
 alert(getUrl() + /reportwriter/xsl/tree.xsl);
           xsl.load(getUrl() + /reportwriter/xsl/tree.xsl);

Unless it is a typo, you are transforming your xml before you load it.

You might want to check out Sarissa for client side transforms.

best,
-Rob

This mail was sent via Mail-SeCure System.



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



RE: loading an xsl file in javascript

2011-02-23 Thread Robert.Jenkin
=localhost_access_log. suffix=.txt
   pattern=%h %l %u %t quot;%rquot; %s %b resolveHosts=false/

  /Host


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: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Wednesday, February 23, 2011 10:09 AM
To: Tomcat Users List
Subject: RE: loading an xsl file in javascript

 From: robert.jen...@surecomp.com [mailto:robert.jen...@surecomp.com]
 Subject: loading an xsl file in javascript

 Via javascript I am loading xsl's from tomcat to client.

Tomcat version?  JVM version?  Platform?  Tomcat logs?  AccessLogValve enabled? 
 Fiddler2 shows what?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.




-
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.



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



RE: loading an xsl file in javascript

2011-02-23 Thread Robert.Jenkin
The license expired is a different application we have...

Localhost_access_log has this 127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] GET 
/Reporting/reportwriter/xsl/treesort.xsl HTTP/1.1 200 564


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: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Wednesday, February 23, 2011 10:46 AM
To: Tomcat Users List
Subject: RE: loading an xsl file in javascript 

 From: robert.jen...@surecomp.com [mailto:robert.jen...@surecomp.com] 
 Subject: RE: loading an xsl file in javascript 

 Platform is Windows 7 32bit
 Using CATALINA_BASE:   C:\Downloads\tomcat-7\apache-tomcat-7.0.6
 Using JRE_HOME:C:\Development\Java\jdk1.6.0_18\jre

Thank you.

 Localhost_acess_log

Note that there are *no* requests for treesort.xsl, so it looks like either the 
browser cached it, or your JavaScript is failing to issue the request.

 Localhost log

 Feb 23, 2011 10:24:03 AM org.apache.catalina.core.ApplicationContext log
 SEVERE: StandardWrapper.Throwable
 java.lang.RuntimeException: License Has Expired, Process Terminated 
 (Expiration Date: 20110131)
 Feb 23, 2011 10:24:03 AM org.apache.catalina.core.StandardContext 
 loadOnStartup
 SEVERE: Servlet /allMATCHWeb threw load() exception
 java.lang.RuntimeException: License Has Expired, Process Terminated 
 (Expiration Date: 20110131)

Looks a tad suspicious, don't you think?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
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.



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



Issue with oralce drive under tomcat 7

2011-02-22 Thread Robert.Jenkin
();
  }
  HashMapString, Class types = new HashMapString, Class();
  Connection cn = null;
  ResultSet rs = null;
DatabaseMetaData meta = null;
  try {
cn = getConnection(databaseName, 
Configuration.getUsername(), Configuration.getPassword());

if (oracle.equals(dbtype)) {
Statement stmt = cn.createStatement();
  rs = stmt.executeQuery(SELECT * from 
+tableName);
  // Get the ResultSet meta data
  OracleResultSetMetaData rmd = 
(OracleResultSetMetaData)rs.getMetaData(); // this is the line of the error
  if (rmd == null) {
throw new RuntimeException(ResultSet meta data 
is not available for the Oracle table [+tableName+]);
  }
  else {

int columnCount = rmd.getColumnCount();

for(int i=1; i=columnCount; i++) {
  String name = 
rmd.getColumnName(i).toLowerCase();
  int type = rmd.getColumnType(i);
  setType(types, name, type);
}
  }
}


The only difference between the environments (from a code perspective) is how a 
database connection is obtained. The following shows that code (the difference 
is detected by a properties file container entry)

Connection conn = null;
DataSource ds = null;
if (LanguageHelper.allMATCH) {
  conn = APIWrapper.getConnection(sDatabase);
}
else {
  conn = APIWrapper.getConnection();
}
if (conn != null) return conn;
Context ctx = new InitialContext();
ctx.addToEnvironment(SetBigStringTryClob, true);
if 
(Configuration.getContainer().toLowerCase().equals(tomcat)) {
  Context envContext = 
(Context)ctx.lookup(java:/comp/env);
  ds = (DataSource)envContext.lookup(jdbc/ + 
sDatabase);
  conn = ds.getConnection();
} else {
  ds = (DataSource)ctx.lookup(jdbc/ + sDatabase);
  conn = ds.getConnection(sUsername, sPassword);
}

Has anyone seen this type of issue before?

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


This mail was sent via Mail-SeCure System.




follow on delpoying a war and starting application

2011-02-01 Thread Robert.Jenkin
 
implementation=com.surecomp.allMATCH.client.webservices.PauseService 
url-pattern=/PauseService/
  endpoint name=CustomerServiceServlethttp 
implementation=com.surecomp.allMATCH.client.webservices.CustomerService 
url-pattern=/CustomerService/
  endpoint name=MatchingLogicServiceServlethttp 
implementation=com.surecomp.allMATCH.client.webservices.MatchingLogicService 
url-pattern=/MatchingLogicService/
  endpoint name=MessageServiceServlethttp 
implementation=com.surecomp.allMATCH.client.webservices.MessageService 
url-pattern=/MessageService/
  endpoint name=LicenseUsageServiceServlethttp 
implementation=com.surecomp.allMATCH.client.webservices.LicenseUsageService 
url-pattern=/LicenseUsageService/
  endpoint name=UsersServiceServlethttp 
implementation=com.surecomp.allMATCH.client.webservices.UsersService 
url-pattern=/UsersService/
  endpoint name=HelpServiceServlethttp 
implementation=com.surecomp.allMATCH.client.webservices.HelpService 
url-pattern=/HelpService/
  endpoint name=LogServiceServlethttp 
implementation=com.surecomp.allMATCH.client.webservices.LogService 
url-pattern=/LogService/
  endpoint name=ReasonCodeServiceServlethttp 
implementation=com.surecomp.allMATCH.client.webservices.ReasonCodeService 
url-pattern=/ReasonCodeService/
  endpoint name=SupportEmailServiceServlethttp 
implementation=com.surecomp.allMATCH.client.webservices.SupportEmailService 
url-pattern=/SupportEmailService/
  endpoint name=NewPasswordServiceServlethttp 
implementation=com.surecomp.allMATCH.client.webservices.NewPasswordService 
url-pattern=/NewPasswordService/
  endpoint name=LearnedServiceServlethttp 
implementation=com.surecomp.allMATCH.client.webservices.LearnedService 
url-pattern=/LearnedService/
  endpoint name=CommentsServiceServlethttp 
implementation=com.surecomp.allMATCH.client.webservices.CommentsService 
url-pattern=/CommentsService/
  endpoint name=LogoutServiceServlethttp 
implementation=com.surecomp.allMATCH.client.webservices.LogoutService 
url-pattern=/LogoutService/
/endpoints

For each web service I had to map the servlet name ie. 
LearnedExceptionServiceServlethttp to the actual class name ie. 
com.surecomp.allMATCH.client.webservices.LearnedService and indicate the 
url-pattern for the web service /LogoutService.

The url-pattern is the name used by IE/Firefox to call the web service.

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


This mail was sent via Mail-SeCure System.




help setting up connection pool with sql server

2011-02-01 Thread Robert.Jenkin
Hello all... hope all is well


I am trying to configure a connection pool with Tomcat 7 and Sql Server 2005

I am getting the following error message when Tomcat starts

Feb 1, 2011 10:38:16 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 1, 2011 10:38:16 AM com.sun.xml.ws.transport.http.servlet.WSServletDelegate
init
INFO: WSSERVLET14: JAX-WS servlet initializing
Configuration loaded from the file: [C:\Downloads\tomcat-7\apache-tomcat-7.0.6\
ebapps\allMATCHWeb\allmatch.properties]
java.lang.UnsupportedOperationException: Not supported by BasicDataSource
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataS
urce.java:1062)
at com.surecomp.allMATCH.Microsoft.getConnection(Microsoft.java:95)
at com.surecomp.allMATCH.Microsoft.OpenSqlSingle(Microsoft.java:146)
at com.surecomp.allMATCH.client.InitServlet.verifyDatabaseVersion(InitS
rvlet.java:574)
at com.surecomp.allMATCH.client.InitServlet.init(InitServlet.java:178)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper
java:1133)

I search of the internet seems to indicate that using getConnection with 
username/passwords params is not support, I doubt that to be the cause.

My context.xml is the following

Resource name=jdbc/system
  auth=Container
  type=javax.sql.DataSource
  driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
  url= jdbc:sqlserver://allmatch-test:1433;databaseName=system;
  username=sa
  password=sa12
  maxActive=20
  maxIdle=30
  maxWait=-1
/
Resource name=jdbc/sureus33xxx
  auth=Container
  type=javax.sql.DataSource
  driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
  url= jdbc:sqlserver://allmatch-test:1433;databaseName=sureus33xxx;
  username=sa
  password=sa12
  maxActive=20
  maxIdle=30
  maxWait=-1
/

My web.xml resource information is the following

RESOURCE-REF
RES-REF-NAMEjdbc/system/RES-REF-NAME
RES-TYPEjavax.sql.DataSource/RES-TYPE
RES-AUTHContainer/RES-AUTH
/RESOURCE-REF
RESOURCE-REF
RES-REF-NAMEjdbc/sureus33xxx/RES-REF-NAME
RES-TYPEjavax.sql.DataSource/RES-TYPE
RES-AUTHContainer/RES-AUTH
/RESOURCE-REF

My code connects via the following logic

  Context ctx = new InitialContext();
  DataSource ds = 
(DataSource)ctx.lookup(java:/comp/env/jdbc/ + sDatabase.toLowerCase());
  conn = ds.getConnection(sUsername, sPassword);


One question I do have is if getConnection works what username/password should 
I provide... I would be providing a tomcat username/password my 
tomcat-users.xml is the following

?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=manager-gui /
  role rolename=manager-script /
  role rolename=manager-jmx /
  role rolename=manager-status /
  role rolename=standard /
  role rolename=admin-gui /
  role rolename=admin-script /
  user username=tomcat password=tomcat 
roles=admin-gui,admin-script,standard,manager-script,manager-gui,manager-jmx,manager-status/
/tomcat-users


Thanks in advance for any insight and assistenance you may be able to provide...

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


This mail was sent via Mail-SeCure System.




help setting up connection pool with sql server

2011-02-01 Thread Robert.Jenkin
Update: I have amended the code not to supply a username/password to 
getConnection since it is not supported. I have gotten past that point. But  
now it is reporting the following;

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of cla
ss 'com.microsoft.sqlserver.jdbc.SQLServerDriver' for connect URL ' jdbc:sqlserv
er://allmatch-test:1433;databaseName=system;'
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(B
asicDataSource.java:1452)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
aSource.java:1371)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSo
urce.java:1044)
at com.surecomp.allMATCH.Microsoft.getConnection(Microsoft.java:95)
at com.surecomp.allMATCH.Microsoft.OpenSqlSingle(Microsoft.java:146)

the following jar was  added to tomcat\lib prior to starting tomcat

sqljdbc.jar - which is the Microsoft sql server driver

Original Posting:

Hello all... hope all is well


I am trying to configure a connection pool with Tomcat 7 and Sql Server 2005

I am getting the following error message when Tomcat starts

Feb 1, 2011 10:38:16 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 1, 2011 10:38:16 AM com.sun.xml.ws.transport.http.servlet.WSServletDelegate
init
INFO: WSSERVLET14: JAX-WS servlet initializing
Configuration loaded from the file: [C:\Downloads\tomcat-7\apache-tomcat-7.0.6\
ebapps\allMATCHWeb\allmatch.properties]
java.lang.UnsupportedOperationException: Not supported by BasicDataSource
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataS
urce.java:1062)
at com.surecomp.allMATCH.Microsoft.getConnection(Microsoft.java:95)
at com.surecomp.allMATCH.Microsoft.OpenSqlSingle(Microsoft.java:146)
at com.surecomp.allMATCH.client.InitServlet.verifyDatabaseVersion(InitS
rvlet.java:574)
at com.surecomp.allMATCH.client.InitServlet.init(InitServlet.java:178)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper
java:1133)

I search of the internet seems to indicate that using getConnection with 
username/passwords params is not support, I doubt that to be the cause.

My context.xml is the following

Resource name=jdbc/system
  auth=Container
  type=javax.sql.DataSource
  driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
  url= jdbc:sqlserver://allmatch-test:1433;databaseName=system;
  username=sa
  password=sa12
  maxActive=20
  maxIdle=30
  maxWait=-1
/
Resource name=jdbc/sureus33xxx
  auth=Container
  type=javax.sql.DataSource
  driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
  url= jdbc:sqlserver://allmatch-test:1433;databaseName=sureus33xxx;
  username=sa
  password=sa12
  maxActive=20
  maxIdle=30
  maxWait=-1
/

My web.xml resource information is the following

RESOURCE-REF
RES-REF-NAMEjdbc/system/RES-REF-NAME
RES-TYPEjavax.sql.DataSource/RES-TYPE
RES-AUTHContainer/RES-AUTH
/RESOURCE-REF
RESOURCE-REF
RES-REF-NAMEjdbc/sureus33xxx/RES-REF-NAME
RES-TYPEjavax.sql.DataSource/RES-TYPE
RES-AUTHContainer/RES-AUTH
/RESOURCE-REF

My code connects via the following logic

  Context ctx = new InitialContext();
  DataSource ds = 
(DataSource)ctx.lookup(java:/comp/env/jdbc/ + sDatabase.toLowerCase());
  conn = ds.getConnection(sUsername, sPassword);


One question I do have is if getConnection works what username/password should 
I provide... I would be providing a tomcat username/password my 
tomcat-users.xml is the following

?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=manager-gui /
  role rolename=manager-script /
  role rolename=manager-jmx /
  role rolename=manager-status /
  role rolename=standard /
  role rolename=admin-gui /
  role rolename=admin-script /
  user username=tomcat password=tomcat 
roles=admin-gui,admin-script,standard,manager-script,manager-gui,manager-jmx,manager-status/
/tomcat-users


Thanks in advance for any insight and assistenance you may be able to provide...

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


This mail was sent via Mail-SeCure System.




help setting up connection pool with sql server

2011-02-01 Thread Robert.Jenkin
Update: problem found and corrected.. now working... caused by a leading space 
in the url setting url= 
jdbc:sqlserver://allmatch-test:1433;databaseName=system;

Update: I have amended the code not to supply a username/password to 
getConnection since it is not supported. I have gotten past that point. But  
now it is reporting the following;

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of cla
ss 'com.microsoft.sqlserver.jdbc.SQLServerDriver' for connect URL ' jdbc:sqlserv
er://allmatch-test:1433;databaseName=system;'
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(B
asicDataSource.java:1452)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
aSource.java:1371)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSo
urce.java:1044)
at com.surecomp.allMATCH.Microsoft.getConnection(Microsoft.java:95)
at com.surecomp.allMATCH.Microsoft.OpenSqlSingle(Microsoft.java:146)

the following jar was  added to tomcat\lib prior to starting tomcat

sqljdbc.jar - which is the Microsoft sql server driver

Original Posting:

Hello all... hope all is well


I am trying to configure a connection pool with Tomcat 7 and Sql Server 2005

I am getting the following error message when Tomcat starts

Feb 1, 2011 10:38:16 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 1, 2011 10:38:16 AM com.sun.xml.ws.transport.http.servlet.WSServletDelegate
init
INFO: WSSERVLET14: JAX-WS servlet initializing
Configuration loaded from the file: [C:\Downloads\tomcat-7\apache-tomcat-7.0.6\
ebapps\allMATCHWeb\allmatch.properties]
java.lang.UnsupportedOperationException: Not supported by BasicDataSource
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataS
urce.java:1062)
at com.surecomp.allMATCH.Microsoft.getConnection(Microsoft.java:95)
at com.surecomp.allMATCH.Microsoft.OpenSqlSingle(Microsoft.java:146)
at com.surecomp.allMATCH.client.InitServlet.verifyDatabaseVersion(InitS
rvlet.java:574)
at com.surecomp.allMATCH.client.InitServlet.init(InitServlet.java:178)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper
java:1133)

I search of the internet seems to indicate that using getConnection with 
username/passwords params is not support, I doubt that to be the cause.

My context.xml is the following

Resource name=jdbc/system
  auth=Container
  type=javax.sql.DataSource
  driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
  url= jdbc:sqlserver://allmatch-test:1433;databaseName=system;
  username=sa
  password=sa12
  maxActive=20
  maxIdle=30
  maxWait=-1
/
Resource name=jdbc/sureus33xxx
  auth=Container
  type=javax.sql.DataSource
  driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
  url= jdbc:sqlserver://allmatch-test:1433;databaseName=sureus33xxx;
  username=sa
  password=sa12
  maxActive=20
  maxIdle=30
  maxWait=-1
/

My web.xml resource information is the following

RESOURCE-REF
RES-REF-NAMEjdbc/system/RES-REF-NAME
RES-TYPEjavax.sql.DataSource/RES-TYPE
RES-AUTHContainer/RES-AUTH
/RESOURCE-REF
RESOURCE-REF
RES-REF-NAMEjdbc/sureus33xxx/RES-REF-NAME
RES-TYPEjavax.sql.DataSource/RES-TYPE
RES-AUTHContainer/RES-AUTH
/RESOURCE-REF

My code connects via the following logic

  Context ctx = new InitialContext();
  DataSource ds = 
(DataSource)ctx.lookup(java:/comp/env/jdbc/ + sDatabase.toLowerCase());
  conn = ds.getConnection(sUsername, sPassword);


One question I do have is if getConnection works what username/password should 
I provide... I would be providing a tomcat username/password my 
tomcat-users.xml is the following

?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=manager-gui /
  role rolename=manager-script /
  role rolename=manager-jmx /
  role rolename=manager-status /
  role rolename=standard /
  role rolename=admin-gui /
  role rolename=admin-script /
  user username=tomcat password=tomcat 
roles=admin-gui,admin-script,standard,manager-script,manager-gui,manager-jmx,manager-status/
/tomcat-users


Thanks in advance for any insight and assistenance you may be able to provide...

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


This mail was sent via Mail-SeCure System.




ssl application

2011-02-01 Thread Robert.Jenkin
Hello all...

I have configured ssl on tomcat 7 and I am able to access my application via 
ssl and non-ssl. What I am trying to figure out is how to configure tomcat so 
that my application is only available via ssl. Is there a way to do this? I 
have read the tomcat 7 document on ssl, but, did not take note of anything 
indicating how to do this.

Thanks

Bob Jenkin

This mail was sent via Mail-SeCure System.




RE: ssl application

2011-02-01 Thread Robert.Jenkin
Thad,

Worked like a charm... thanks..

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: Thad Humphries [mailto:thad.humphr...@gmail.com] 
Sent: Tuesday, February 01, 2011 1:38 PM
To: Tomcat Users List
Subject: Re: ssl application

While doing some SSL research last week, I stumbled on this:
https://confluence.sakaiproject.org/display/DOC/Sakai+Admin+Guide+-+Advanced+Tomcat++%28and+Apache%29+Configuration

If you wish to secure the entire tomcat installation (which can be done
regardless of how you provide SSL), add the following to
TOMCAT_HOME/conf/web.xml inside the web-app tags:

!-- redirect all traffic to the SSL port --
security-constraint
  web-resource-collection
web-resource-nameAutomatic SLL Forwarding/web-resource-name
url-pattern/*/url-pattern
  /web-resource-collection
  user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
/security-constraint

It worked for me (Linux, Tomcat 6.0.30, JRE 1.5.0_22).

On Tue, Feb 1, 2011 at 1:31 PM, robert.jen...@surecomp.com wrote:

 Hello all...

 I have configured ssl on tomcat 7 and I am able to access my application
 via ssl and non-ssl. What I am trying to figure out is how to configure
 tomcat so that my application is only available via ssl. Is there a way to
 do this? I have read the tomcat 7 document on ssl, but, did not take note of
 anything indicating how to do this.

 Thanks

 Bob Jenkin

 This mail was sent via Mail-SeCure System.





-- 
Hell hath no limits, nor is circumscrib'd In one self-place; but where we
are is hell, And where hell is, there must we ever be --Christopher
Marlowe, *Doctor Faustus* (v, 121-24)

This mail was sent via Mail-SeCure System.


RE: deploying a war file and starting the application

2011-01-31 Thread Robert.Jenkin
)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

Is it a requirement for tomcat that a web service implements Servlet?

Can someone point me to a tomcat web service document or a working example. 
Have found several on line that do not work (at least with tomcat 7)...

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: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Friday, January 28, 2011 2:54 PM
To: Tomcat Users List
Subject: Re: deploying a war file and starting the application

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Robert,

On 1/28/2011 1:09 PM, robert.jen...@surecomp.com wrote:
 I have downloaded and configured Tomcat 7. All appears to be working.

Glad to hear it!

 I have deployed a war file that currently works with WebSphere 7 and
 WebLogic 11g.

 The first issue I had was with url-pattern. It appears that Tomcat
 requires they start with a slash (/). I made the change and I no longer
 receive any errors while starting Tomcat.

This is a spec requirement, not a Tomcat requirement. Other containers
may be more lenient.

 The following image shows the startup window and that my war is being
 deployed. Within the webapps directory a directory containing my webapp
 is created.

Images are stripped from posts to the list. Can you post it somewhere
online and give us a link? Or, just copy/paste any relevant content from
your screen?

 My initial servlet is called InitServlet and it is marked as
 load-on-startup (please see following image) .

Ditto.

 I have two questions

 1)  If I type http://localhost:7080/allMATCHWeb in to a browser
 shouldn’t see this login.html page? I don’t… however I can access it by
  http://localhost:7080/allMATCHWeb/login.html

You'll have to provide your web.xml for us to know when you need
authentication challenges. Are you using container-managed authentication?

 2)  The load-on-start InitServlet class is not being executed as I
 have no logs generated or any other startup items handled, any ideas?

Again, including web.xml should help. Note that using an InitServlet
hasn't been recommended since the addition of the ServletContextListener
interface a long time ago.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1DHsYACgkQ9CaO5/Lv0PBhSQCeNtR93FGfQecpwJ/n02ioUhpP
x2MAn2WmpQ0vzJ3YAbrMQrE9SnMmOq++
=WYyb
-END PGP SIGNATURE-

-
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.


Re: deploying a war file and starting the application

2011-01-31 Thread Robert.Jenkin
Christopher

I got everthing working 

Sent from my iPhone

On Jan 31, 2011, at 5:03 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Robert,
 
 On 1/31/2011 9:09 AM, robert.jen...@surecomp.com wrote:
 I am trying to figure out why my web services do not work in Tomcat.
 
 The following shows my web service code in eclipse
 
 package com.surecomp.allMATCH.client.webservices;
 
 import javax.jws.*;
 
 import com.surecomp.allMATCH.client.IReasonCode;
 import com.surecomp.allMATCH.client.businesslogic.ReasonCode;
 
 @WebService(serviceName=ReasonCodeService)
 public class ReasonCodeService implements IReasonCode {
 
 [snip]
 
  servlet
servlet-nameReasonCodeServiceServlethttp/servlet-name

 servlet-classcom.surecomp.allMATCH.client.webservices.ReasonCodeService/servlet-class
load-on-startup0/load-on-startup
  /servlet
 
 You are trying to deploy a class that is not a servlet. A servlet must
 inherit from javax.servlet.Servlet. Are these supposed to be web
 services that are deployed into some kind of web services container? If
 so, you don't want to configure them in web.xml. Instead, you have to
 configure them according to the web service container you are trying to use.
 
 What web service container are you trying to use? You mentioned earlier
 in the thread that WebSphere and WebLogic servers were working well.
 Perhaps that's because they provide their own web service containers
 while Tomcat does not?
 
 When Tomcat starts each web service throws the following error. I understand 
 that loadonstart value of zero is default and not needed. Again, the 
 war/web.xml is generated by eclipse.
 
 INFO: Marking servlet ReasonCodeServiceServlethttp as unavailable
 Jan 31, 2011 8:53:13 AM org.apache.catalina.core.StandardContext 
 loadOnStartup
 SEVERE: Servlet /allMATCHWeb threw load() exception
 java.lang.ClassCastException: 
 com.surecomp.allMATCH.client.webservices.ReasonCodeService cannot be cast to 
 javax.servlet.Servlet
at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
 
 That's because ReasonCodeService (and presumably all your other
 services) do not inherit from javax.servlet.Servlet.
 
 Is it a requirement for tomcat that a web service implements Servlet?
 
 Tomcat does not provide any kind of web service container. For that,
 you'll need Apache Axis or any number of other fine web service containers.
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAk1HMWwACgkQ9CaO5/Lv0PCaagCglQvsqA/7dA+7tuuZe8f2BKDI
 d+UAn1gDeUruhgCcVjfdY07dxXDLsi48
 =EzXN
 -END PGP SIGNATURE-
 
 -
 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.



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



deploying a war file and starting the application

2011-01-28 Thread Robert.Jenkin
Hello all, hope all of you are having a good day..

I have downloaded and configured Tomcat 7. All appears to be working.

I have deployed a war file that currently works with WebSphere 7 and WebLogic 
11g.

The first issue I had was with url-pattern. It appears that Tomcat requires 
they start with a slash (/). I made the change and I no longer receive any 
errors while starting Tomcat.

The following image shows the startup window and that my war is being deployed. 
Within the webapps directory a directory containing my webapp is created.

[cid:image001.png@01CBBEEA.D5E12D40]

My initial servlet is called InitServlet and it is marked as load-on-startup 
(please see following image) .

[cid:image002.png@01CBBEEB.02716910]

During startup of my servlet I generate log files and these logs files should 
appear in C:\Downloads\tomcat-7\apache-tomcat-7.0.6\webapps\allMATCHWeb\logs on 
my local disk. After Tomcat is started I am able to access the manager and 
admin applications. Also within my web.xml I have a welcome file setup (see 
image below)

[cid:image003.png@01CBBEEB.59FBD760]

I have two questions


1)  If I type http://localhost:7080/allMATCHWeb in to a browser shouldn't 
see this login.html page? I don't... however I can access it by  
http://localhost:7080/allMATCHWeb/login.html

2)  The load-on-start InitServlet class is not being executed as I have no 
logs generated or any other startup items handled, any ideas?

I have reviewed the Tomcat logs and have not found any errors or warning 
messages indicating any issue with class loading, security access, etc.

Thanks in advance for any help/assistance you may be able to provide.

Bob Jenkin


This mail was sent via Mail-SeCure System.




RE: deploying a war file and starting the application

2011-01-28 Thread Robert.Jenkin
Christopher,

Thanks for your assistance.

Here is my web.xml

?xml version='1.0' encoding='UTF-8'?
web-app xmlns=http://java.sun.com/xml/ns/javaee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=2.5 
id=web-app_1
  display-nameallMATCHWeb/display-name
  servlet
servlet-nameInitServlet/servlet-name
servlet-classcom.surecomp.allMATCH.client.InitServlet/servlet-class
load-on-startup1/load-on-startup
  /servlet
  servlet-mapping
servlet-nameInitServlet/servlet-name
url-pattern/InitServlet/url-pattern
  /servlet-mapping
  welcome-file-list
welcome-file/login.html/welcome-file
  /welcome-file-list
/web-app


This is the InitServlet class declaration  
public class InitServlet extends javax.servlet.http.HttpServlet 
implements javax.servlet.Servlet, Internationalizable 

This is the start of init() method

public void init() throws ServletException {
synchronized (this) {
if (initialized || initializing) return;
initializing = true;
}
logger = new Logging();
contextPath = getServletContext().getRealPath(/);
contextPath = getPathWithSeparator(contextPath);
oLoaderStatic = new LoaderStatic();
try {
String sLogging = Configuration.getLogging(); 
Date date = new Date();
SimpleDateFormat formatter = new SimpleDateFormat(MMdd);
logger.setapplicationSegment(allMATCHWeb);
logger.setSite(Logging.Client);

logger.LogSetup(Configuration.getLoggingLocation().concat(//allMATCHWeb_ + 
formatter.format(date) + .log),sLogging);
logger.log(Configuration loaded from the file: 
[+Configuration.getPropertiesLocation()+]);
} catch (Throwable th) {
th.printStackTrace();
System.out.println(Error initializing logger.);
try {
logger.log(Error initializing logger.,th);
logger.close();
}
catch (Throwable t) {}
return;
}


Again, thanks for any insight or assistance...
 
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: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Friday, January 28, 2011 2:54 PM
To: Tomcat Users List
Subject: Re: deploying a war file and starting the application

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Robert,

On 1/28/2011 1:09 PM, robert.jen...@surecomp.com wrote:
 I have downloaded and configured Tomcat 7. All appears to be working.

Glad to hear it!

 I have deployed a war file that currently works with WebSphere 7 and
 WebLogic 11g.
 
 The first issue I had was with url-pattern. It appears that Tomcat
 requires they start with a slash (/). I made the change and I no longer
 receive any errors while starting Tomcat.

This is a spec requirement, not a Tomcat requirement. Other containers
may be more lenient.

 The following image shows the startup window and that my war is being
 deployed. Within the webapps directory a directory containing my webapp
 is created.

Images are stripped from posts to the list. Can you post it somewhere
online and give us a link? Or, just copy/paste any relevant content from
your screen?

 My initial servlet is called InitServlet and it is marked as
 load-on-startup (please see following image) .

Ditto.

 I have two questions
 
 1)  If I type http://localhost:7080/allMATCHWeb in to a browser
 shouldn’t see this login.html page? I don’t… however I can access it by
  http://localhost:7080/allMATCHWeb/login.html

You'll have to provide your web.xml for us to know when you need
authentication challenges. Are you using container-managed authentication?

 2)  The load-on-start InitServlet class is not being executed as I
 have no logs generated or any other startup items handled, any ideas?

Again, including web.xml should help. Note that using an InitServlet
hasn't been recommended since the addition of the ServletContextListener
interface a long time ago.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1DHsYACgkQ9CaO5/Lv0PBhSQCeNtR93FGfQecpwJ/n02ioUhpP
x2MAn2WmpQ0vzJ3YAbrMQrE9SnMmOq++
=WYyb
-END PGP SIGNATURE-

-
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.


RE: deploying a war file and starting the application

2011-01-28 Thread Robert.Jenkin
Mark,

That’s for input.. the initservlet is just a means to initialize the 
application. The writing of a log file is not to a directory within tomcat. It 
is a directory outside of the environment. This information (the directory 
location) is supplied via property file. Which I doubt is being loaded.

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 3:13 PM
To: Tomcat Users List
Subject: Re: deploying a war file and starting the application

On 28/01/2011 20:03, robert.jen...@surecomp.com wrote:
 Christopher,
 
 Thanks for your assistance.
 
 Here is my web.xml
 
 ?xml version='1.0' encoding='UTF-8'?
 web-app xmlns=http://java.sun.com/xml/ns/javaee; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=2.5 
 id=web-app_1

That does not look quite right to me. I'd normally expect to see the
following:

web-app xmlns=http://java.sun.com/xml/ns/javaee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
  version=2.5

Tomcat is usually pretty tolerant of that sort of thing but worth
checking anyway.

   display-nameallMATCHWeb/display-name
   servlet
 servlet-nameInitServlet/servlet-name
 servlet-classcom.surecomp.allMATCH.client.InitServlet/servlet-class
 load-on-startup1/load-on-startup
   /servlet
   servlet-mapping
 servlet-nameInitServlet/servlet-name
 url-pattern/InitServlet/url-pattern
   /servlet-mapping

That looks OK. Not the recommended way to do things, but it should work.

   welcome-file-list
 welcome-file/login.html/welcome-file

As per the Servlet specification, welcome files should not have leading
'/' characters.

   /welcome-file-list
 /web-app
 
 
 This is the InitServlet class declaration  
   public class InitServlet extends javax.servlet.http.HttpServlet 
 implements javax.servlet.Servlet, Internationalizable 
   
 This is the start of init() method
 
 public void init() throws ServletException {
 synchronized (this) {
   if (initialized || initializing) return;
   initializing = true;
 }
   logger = new Logging();
   contextPath = getServletContext().getRealPath(/);

getRealPath() is not guaranteed to return a file system path. Also
writing log files inside the web app is usually a bad idea since you
lose the logs when the app is undeployed.


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.


RE: deploying a war file and starting the application

2011-01-28 Thread Robert.Jenkin
Mark,

I made the change regarding web-app in the web.xml and same results. The piece 
I find most interesting is the lack of information. If tomcat is not able to 
load my class (initservlet) or an error has occurred in the class I would 
expect some type of logging indicating an error.  

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 3:13 PM
To: Tomcat Users List
Subject: Re: deploying a war file and starting the application

On 28/01/2011 20:03, robert.jen...@surecomp.com wrote:
 Christopher,
 
 Thanks for your assistance.
 
 Here is my web.xml
 
 ?xml version='1.0' encoding='UTF-8'?
 web-app xmlns=http://java.sun.com/xml/ns/javaee; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=2.5 
 id=web-app_1

That does not look quite right to me. I'd normally expect to see the
following:

web-app xmlns=http://java.sun.com/xml/ns/javaee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
  version=2.5

Tomcat is usually pretty tolerant of that sort of thing but worth
checking anyway.

   display-nameallMATCHWeb/display-name
   servlet
 servlet-nameInitServlet/servlet-name
 servlet-classcom.surecomp.allMATCH.client.InitServlet/servlet-class
 load-on-startup1/load-on-startup
   /servlet
   servlet-mapping
 servlet-nameInitServlet/servlet-name
 url-pattern/InitServlet/url-pattern
   /servlet-mapping

That looks OK. Not the recommended way to do things, but it should work.

   welcome-file-list
 welcome-file/login.html/welcome-file

As per the Servlet specification, welcome files should not have leading
'/' characters.

   /welcome-file-list
 /web-app
 
 
 This is the InitServlet class declaration  
   public class InitServlet extends javax.servlet.http.HttpServlet 
 implements javax.servlet.Servlet, Internationalizable 
   
 This is the start of init() method
 
 public void init() throws ServletException {
 synchronized (this) {
   if (initialized || initializing) return;
   initializing = true;
 }
   logger = new Logging();
   contextPath = getServletContext().getRealPath(/);

getRealPath() is not guaranteed to return a file system path. Also
writing log files inside the web app is usually a bad idea since you
lose the logs when the app is undeployed.


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.


RE: deploying a war file and starting the application

2011-01-28 Thread Robert.Jenkin
Chuck,

I understand the ServletConextListener and will investigate the recommendation 
to see if ServletConextListener is compatible with WebSphere 7 and WebLogic 11g 
as well and if it is I will make the change.

I make reference to getRealPath to load a property file. I have not had issue 
with this in other environments, not to say this is not a bad thing to do.

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: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Friday, January 28, 2011 3:36 PM
To: Tomcat Users List
Subject: RE: deploying a war file and starting the application

 From: robert.jen...@surecomp.com [mailto:robert.jen...@surecomp.com] 
 Subject: RE: deploying a war file and starting the application

 the initservlet is just a means to initialize the application.

Which, as Chris S noted earlier, should be done by a ServletContextListener, 
not a servlet.

 The writing of a log file is not to a directory within tomcat.

That's good.  Why do you have a reference to ServletContext#getRealPath()?  
That's very, very risky.

 - Chuck 


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


This mail was sent via Mail-SeCure System.


RE: deploying a war file and starting the application

2011-01-28 Thread Robert.Jenkin
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.


RE: deploying a war file and starting the application

2011-01-28 Thread Robert.Jenkin
FINE: Sending application start events
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'Compression Filter'
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'Set Character Encoding'
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'Timing filter'
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'Request Dumper Filter'
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters

Manager.2011-01-28.log contains

Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Jan 28, 2011 4:22:54 PM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'CSRF'




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:15 PM
To: Tomcat Users List
Subject: Re: deploying a war file and starting the application

On 28/01/2011 21:12, robert.jen...@surecomp.com wrote:
 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.

web.xml is located where?

What is in the Tomcat log files?

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.


RE: deploying a war file and starting the application

2011-01-28 Thread Robert.Jenkin
Well after playing with web.xml I got my app up and partly working in Tomcat 7.

When I go to http://localhost:7080/allMATCHWeb the default page is loaded. My 
properties file is loaded and language based webpages generated, etc.

Now my issue seems to be with web services. Again the web.xml contains the 
following for each webservice.

  servlet
servlet-nameMessageServiceServlethttp/servlet-name

servlet-classcom.surecomp.allMATCH.client.webservices.MessageService/servlet-class
load-on-startup0/load-on-startup
  /servlet

  servlet-mapping
servlet-nameMessageServiceServlethttp/servlet-name
url-patternMessageService/url-pattern
  /servlet-mapping

Now, these work for webshpere and weblogic, so I am assuming (bad thing I know) 
that the same would work for Tomcat.

The log file is producing the following when deploying the services.

INFO: Marking servlet MessageServiceServlethttp as unavailable
Jan 28, 2011 5:59:40 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /allMATCHWeb threw load() exception
java.lang.ClassCastException: 
com.surecomp.allMATCH.client.webservices.MessageService cannot be cast to 
javax.servlet.Servlet
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:996)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4741)
at 
org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5062)
at 
org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5057)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Jan 28, 2011 5:59:40 PM org.apache.catalina.core.ApplicationContext log

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: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Friday, January 28, 2011 2:54 PM
To: Tomcat Users List
Subject: Re: deploying a war file and starting the application

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Robert,

On 1/28/2011 1:09 PM, robert.jen...@surecomp.com wrote:
 I have downloaded and configured Tomcat 7. All appears to be working.

Glad to hear it!

 I have deployed a war file that currently works with WebSphere 7 and
 WebLogic 11g.
 
 The first issue I had was with url-pattern. It appears that Tomcat
 requires they start with a slash (/). I made the change and I no longer
 receive any errors while starting Tomcat.

This is a spec requirement, not a Tomcat requirement. Other containers
may be more lenient.

 The following image shows the startup window and that my war is being
 deployed. Within the webapps directory a directory containing my webapp
 is created.

Images are stripped from posts to the list. Can you post it somewhere
online and give us a link? Or, just copy/paste any relevant content from
your screen?

 My initial servlet is called InitServlet and it is marked as
 load-on-startup (please see following image) .

Ditto.

 I have two questions
 
 1)  If I type http://localhost:7080/allMATCHWeb in to a browser
 shouldn’t see this login.html page? I don’t… however I can access it by
  http://localhost:7080/allMATCHWeb/login.html

You'll have to provide your web.xml for us to know when you need
authentication challenges. Are you using container-managed authentication?

 2)  The load-on-start InitServlet class is not being executed as I
 have no logs generated or any other startup items handled, any ideas?

Again, including web.xml should help. Note that using an InitServlet
hasn't been recommended since the addition of the ServletContextListener
interface a long time ago.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1DHsYACgkQ9CaO5/Lv0PBhSQCeNtR93FGfQecpwJ/n02ioUhpP
x2MAn2WmpQ0vzJ3YAbrMQrE9SnMmOq++
=WYyb
-END PGP SIGNATURE-

-
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.