RE: How to monitor RAM Usage

2003-11-15 Thread Nathan Mcminn
I just put them in a simple jsp page as scriptlets.  That way I can view
the mem usage from wherever I happen to be.

Like this in your jsp page

%out.println(Runtime.getRuntime().totalMemory());%/



Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

 -Original Message-
 From: neal cabage [mailto:[EMAIL PROTECTED] 
 Sent: Friday, November 14, 2003 5:31 PM
 To: Tomcat Users List
 Subject: RE: How to monitor RAM Usage
 
 
 Thanks. How do I issue such a command?  Command line, etc?
  
 Neal
 
 
 Nathan Mcminn [EMAIL PROTECTED] wrote:
 Neal,
 
 This will get you the total amount of memory available to the 
 JVM tomcat is running in:
 Runtime.getRuntime().totalMemory()
 
 And this will get you the amount free
 Runtime.getRuntime().freeMemory()
 
 
 Nathan McMinn
 Application Developer
 NequalsOne - HealthCare marketing tools 
 mailto:[EMAIL PROTECTED]  http://www.NequalsOne.com 
 
  
 -Original Message-
  
 From: neal cabage [mailto:[EMAIL PROTECTED]
  Sent: Friday, November 14, 2003 1:07 PM
  To: Tomcat Users List
  Subject: How to monitor RAM Usage
  
  
  
  Does anyone know how I can montior RAM usage/availability on
  Tomcat at any given time? 
  
  I'm currently having a problem wherein Tomcat crashes about
  once per week and gives the error Java.error.OutOfMemory but 
  I can't see any diagnostics by which to establish any 
  patterns. I also can't find this information on the Apache 
  site, after having looked for 1/2 hour. 
  
  Any thoughts/info would be greatly appreciates.
  
  Thanks.
  
  Neal
  
  
  
  
  -
  Do you Yahoo!?
  Protect your identity with Yahoo! Mail AddressGuard
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 Do you Yahoo!?
 Protect your identity with Yahoo! Mail AddressGuard
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to monitor RAM Usage

2003-11-14 Thread Nathan Mcminn
Neal,

This will get you the total amount of memory available to the JVM tomcat
is running in:
Runtime.getRuntime().totalMemory()

And this will get you the amount free
Runtime.getRuntime().freeMemory()


Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

 -Original Message-
 From: neal cabage [mailto:[EMAIL PROTECTED] 
 Sent: Friday, November 14, 2003 1:07 PM
 To: Tomcat Users List
 Subject: How to monitor RAM Usage
 
 
 
 Does anyone know how I can montior RAM usage/availability on 
 Tomcat at any given time?  
 
 I'm currently having a problem wherein Tomcat crashes about 
 once per week and gives the error Java.error.OutOfMemory  but 
 I can't see any diagnostics by which to establish any 
 patterns. I also can't find this information on the Apache 
 site, after having looked for 1/2 hour. 
 
 Any thoughts/info would be greatly appreciates.
 
 Thanks.
 
 Neal
 
  
 
 
 -
 Do you Yahoo!?
 Protect your identity with Yahoo! Mail AddressGuard
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSP Debugging: Eclipse vs. IntelliJIDEA: integration with Tomcat

2003-11-06 Thread Nathan Mcminn
I've been using IDEA for the past 6 months or so, and I really like it.
It makes it pretty easy to have multiple versions of Tomcat to debug
with.  The setup is straightforward, and I just like the IDE in general.
It also makes refactoring SO easy.  Before IDEA, I was using Jbuilder,
and had good experiences with it as well.  But with Jbuilder, it was the
little details that pissed me off.  Limited refactoring facilities, and
for some reason the scroll wheel on my mouse wouldn't work (I know that
is nitpicky as hell, but it bugged me ;-).  Haven't used Eclipse, but I
hear good things.  I believe it is based on IBM's Websphere Studio, so
if you think you may have to do battle with Websphere, it couldn't hurt
to know the IDE.


Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

 -Original Message-
 From: Don Jones [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, November 05, 2003 9:44 AM
 To: Tomcat Users List
 Subject: JSP Debugging: Eclipse vs. IntelliJIDEA: integration 
 with Tomcat
 
 
 Has anyone compared Eclipse vs. IDEA plus others as far as 
 Tomcat integration and overall JSP web app development/debugging?
  
 Don Jones
 Madison WI, USA
 
   -Original Message- 
   From: Harry Mantheakis 
 [mailto:[EMAIL PROTECTED] 
   Sent: Wed 
 11/5/2003 9:38 AM 
   To: Tomcat Users List 
   Cc: 
   Subject: Re: best way to debug JSP's ???
   
   
 
 
The very best thing to do with JSPs is never put any 
 Java code into
them. If you can avoid that, and always use taglibs 
 or other JSP
directives, etc. then you'll be much better off.
   
   I second the use of tag libraries. Also, with a decent 
 IDE (such as Eclipse)
   you can refactor the code in your tab libraries without 
 breaking your JSPs.
   
   Harry Mantheakis
   London
   
   
   
   
 -
   To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
   
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: detect WML or HTML

2003-11-04 Thread Nathan Mcminn
You may be able to discern this using the User-Agent header in the HTTP
request.  From there it is just a matter of serving the appropriate
content, or redirecting.


Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

 -Original Message-
 From: Stefan Moghadam [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 04, 2003 4:30 AM
 To: [EMAIL PROTECTED]
 Subject: detect WML or HTML
 
 
 Does anyone have ideas on how to detect WML or HTML browsers 
 from the same 
 site and redirect the user to the same directory using JSP ?  
 I would greatly 
 appreciate the help.  Thanks.
 
 
 
 Stefan Moghadam
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat won't start

2003-11-03 Thread Nathan Mcminn
The problem posted below appears to be caused by Tomcat not being able
to find catalina.jar.  This file should be (and is) located in
catalina_home/server/lib.  Anybody know why Tomcat would have problems
finding it?

 
 One of our servers running Tomcat as started experiencing an 
 odd problem.  Tomcat will not start, it is complaining about 
 not being able to find some classes.  The problem started 
 shortly after applying some updates using YAST.  The 
 exception it throws is shown below.  We are running Tomcat 
 4.1.24 on JDK 1.4.1-b21 on SUSE 8.  We have another server 
 with a very similar config that works perfectly (only 
 difference is the distribution it runs on, RH vs SUSE)  I 
 have checked CATALINA_HOME and JAVA_HOME and they both point 
 to the correct locations.  I modified catalina.sh to display 
 the CLASSPATH it uses when starting catalina and included it 
 as well.  There are a couple references to this problem in 
 the mailing list archives, but it was never answered.
 
 JAVA_HOME=/usr/lib/java
 CATALINA_HOME=/opt/jakarta 
 CLASSPATH=/usr/lib/java/lib/tools.jar:/opt/jakarta/bin/bootstrap.jar
 
 Any ideas?
 
 ERROR reading /opt/jakarta/conf/server.xml
 At Line 5 /Server/Listener/ 
 className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0
 
 Catalina.start: java.lang.ClassNotFoundException: 
 org.apache.catalina.mbeans.ServerLifecycleListener
 java.lang.ClassNotFoundException: 
 org.apache.catalina.mbeans.ServerLifecycleListener
 
 
 Nathan McMinn
 Application Developer
 NequalsOne - HealthCare marketing tools 
 mailto:[EMAIL PROTECTED]  http://www.NequalsOne.com 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat won't start

2003-11-03 Thread Nathan Mcminn
I don't think that is the problem.  The startup script has no problem
reading JAVA_HOME or CATALINA_HOME.  It is only after bootstrap.jar is
executed and the server.xml file is read that the problem occurs.  It is
almost like the classloader that is being used cannot see catalina.jar
in /server/lib.  Is there any way to determine what classpaths are
available to the classloader at that point?


Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

 -Original Message-
 From: Giorgio Franceschetti [mailto:[EMAIL PROTECTED] 
 Sent: Monday, November 03, 2003 10:42 AM
 To: Tomcat Users List
 Subject: Re: Tomcat won't start
 
 
 I have had a similar problema, but on win XP. The problem was 
 due to the 
 fact that I had set the JAVA_HOME and the CATALINA_HOME as session 
 variable and not like system ones.
 Don't know if this is the case, but
 Good luck!
 Giorgio
 
 Nathan Mcminn wrote:
 
 The problem posted below appears to be caused by Tomcat not 
 being able 
 to find catalina.jar.  This file should be (and is) located in 
 catalina_home/server/lib.  Anybody know why Tomcat would 
 have problems 
 finding it?
 
  
   
 
 One of our servers running Tomcat as started experiencing an
 odd problem.  Tomcat will not start, it is complaining about 
 not being able to find some classes.  The problem started 
 shortly after applying some updates using YAST.  The 
 exception it throws is shown below.  We are running Tomcat 
 4.1.24 on JDK 1.4.1-b21 on SUSE 8.  We have another server 
 with a very similar config that works perfectly (only 
 difference is the distribution it runs on, RH vs SUSE)  I 
 have checked CATALINA_HOME and JAVA_HOME and they both point 
 to the correct locations.  I modified catalina.sh to display 
 the CLASSPATH it uses when starting catalina and included it 
 as well.  There are a couple references to this problem in 
 the mailing list archives, but it was never answered.
 
 JAVA_HOME=/usr/lib/java
 CATALINA_HOME=/opt/jakarta
 CLASSPATH=/usr/lib/java/lib/tools.jar:/opt/jakarta/bin/bootstrap.jar
 
 Any ideas?
 
 ERROR reading /opt/jakarta/conf/server.xml
 At Line 5 /Server/Listener/
 className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0
 
 Catalina.start: java.lang.ClassNotFoundException:
 org.apache.catalina.mbeans.ServerLifecycleListener
 java.lang.ClassNotFoundException: 
 org.apache.catalina.mbeans.ServerLifecycleListener
 
 
 Nathan McMinn
 Application Developer
 NequalsOne - HealthCare marketing tools
 mailto:[EMAIL PROTECTED]  http://www.NequalsOne.com 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Applets and SSL

2003-11-03 Thread Nathan Mcminn
You may want to make sure that the client machine has JSSE (Secure
Sockets Extensions), or that you are making it available.  What JVM is
installed on the client?


Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

 -Original Message-
 From: Gregor Kovac( [mailto:[EMAIL PROTECTED] 
 Sent: Monday, November 03, 2003 1:53 PM
 To: [EMAIL PROTECTED]
 Subject: Applets and SSL
 
 
 Hi!
 
 I have a working webapp that uses one applet to send some 
 data back to 
 server. It does wor as expected only on plain HTTP 8080 or 80 
 port. But if I turn on the 8443 (SSL) and try to load a JSP 
 page that has an 
 applet embedded inside I get a ClassNotFoundException on the client 
 side's plugin Console.
 
 Anyone getting this one too? How to solve it?
 
 Best regards,
   Kovi
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Installing jakarta on linux RH9

2003-11-03 Thread Nathan Mcminn
The newest version (4.1.29) should be fine.  If I recall, however, there
was a problem with Sun's Java Virtual Machine, and RH9, which used an
incompatible threading library.  


Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

 -Original Message-
 From: LEONARDO MARTINEZ [mailto:[EMAIL PROTECTED] 
 Sent: Monday, November 03, 2003 4:00 PM
 To: Tomcat Users List
 Subject: Installing jakarta on linux RH9
 
 
 Hi!
 
 I need install a web server on RH9 that support jsp, it's web 
 server is a jakarta Tomcat but I don't know da version to 
 install, maybe v 4.1.29 ?? PLZ send a answer
 
 (sorry, I'm not a native english, im spanish)
 
 LOL
 BR
 SONNIC
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat won't start

2003-10-31 Thread Nathan Mcminn
One of our servers running Tomcat as started experiencing an odd
problem.  Tomcat will not start, it is complaining about not being able
to find some classes.  The problem started shortly after applying some
updates using YAST.  The exception it throws is shown below.  We are
running Tomcat 4.1.24 on JDK 1.4.1-b21 on SUSE 8.  We have another
server with a very similar config that works perfectly (only difference
is the distribution it runs on, RH vs SUSE)  I have checked
CATALINA_HOME and JAVA_HOME and they both point to the correct
locations.  I modified catalina.sh to display the CLASSPATH it uses when
starting catalina and included it as well.  There are a couple
references to this problem in the mailing list archives, but it was
never answered.

JAVA_HOME=/usr/lib/java
CATALINA_HOME=/opt/jakarta
CLASSPATH=/usr/lib/java/lib/tools.jar:/opt/jakarta/bin/bootstrap.jar

Any ideas?

ERROR reading /opt/jakarta/conf/server.xml
At Line 5 /Server/Listener/
className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0

Catalina.start: java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.ServerLifecycleListener
java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.ServerLifecycleListener


Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: GIF

2003-10-31 Thread Nathan Mcminn
They didn't exactly give it up, the patent expired.


Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

 -Original Message-
 From: Pike [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 31, 2003 11:09 AM
 To: Tomcat Users List
 Subject: OT: GIF
 
 
 Hi
 
  You can generate jpegs and pngs but not gifs because the gif image
  format is
  commercial. I think you must have a license to create gif images.
 
 rumour is the GIF license is free again. Compuserve gave it up. Free 
 software
 will (in time) be able to support it again ... if they wish...
 
 I can't really confirm that rumour though. anyone ?
 
 cu
 *pike
 
 =
 Microsoft: HOWTO: Read the Fucking Manual
 
 This article demonstrates how to read the fucking manual 
 http://radio.weblogs.com/0001263/junk/Q209354%20-%20HOWTO.html



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Compensating for applet security restrictions

2003-07-03 Thread Nathan McMinn



You may want to investigate using HTTP to handle 
your transfer. You could download the file that your applet needs with 
HTTPClient, and have another JSP page that takes the file back from the applet 
and saves it on the server using HTTPClient and FileUpload. That at least 
gives you rudimentary file open/save functionality that doesn't involve the 
local filesystem that the applet is running on. If for some reason you 
can't use HTTPClient, you can do the same thing with HttpUrlConnection. 
Keep in mind when talking to a server with your applet that you have to 
reference the server EXACTLY like you referenced it in your EMBED or OBJECT tag. 
i.e. If the applet was downloaded from 127.0.0.1 you have to connect to the 
server by that IP, if it was dowloaded from www.myserver.com then you have to connect 
using the FQDN.

--Nathan McMinn


  - Original Message - 
  From: 
  Susan Hoddinott 
  
  To: Tomcat Users List 
  Sent: Thursday, July 03, 2003 12:35 
  AM
  Subject: Compensating for applet security 
  restrictions
  
  Hello,
  
  I currently have a JSP with an APPLET tag (including EMBED and OBJECT 
  references) which runs a JAR file located on my server. The program runs 
  fine but because the APPLET is run by the Java plug-in whenever it needs to 
  read or write data it attempts to read or write the data from or on the client 
  machine, which is clearly inappropriate. I do not want to use servlets 
  as I would like to distribute the APPLET and program when I have finished and 
  do not want to assume servlet support.
  
  The jar file first program is a JApplet and this creates a JFrame using a 
  normal class file. All other programs are normal classes (i.e. 
  non-applets). I want to use the graphics environments on the client 
  machine as my own web server does not have an installed graphics 
  environment.
  
  I have been investigating URLConnections, Sockets, Proxy Servers and RMI 
  and have been left feeling confused as I am unclear which is the best approach 
  and all seem very complicated to overcome what seems to be a simple 
  problem. Furthermore, all examples seem to use a single text file 
  whereas I want to default all IO to the server rather than the client. 
  Does anyone know a solution for this problem?
  
  Regards,Susan Hoddinotthttp://www.hexworx.com
  
  
  
  

  -To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: 
[EMAIL PROTECTED]


Re: Tomcat security?

2003-07-03 Thread Nathan McMinn
When was the last time Tomcat had a published exploit?

On a related note, these kind of contests are fairly common, and usually
don't produce any kind of real activity.

--Nathan

- Original Message -
From: Eugene Lee [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 10:51 AM
Subject: Tomcat security?


 Anyone want to discuss hardening Tomcat servers?

 Hacking Contest Threatens Web Sites

 By George V. Hulme, InformationWeek
 Updated Wednesday, July 2, 2003, 3:00 PM EDT

 A hacking contest slated for this weekend could produce a rash
 of Web-site defacements worldwide, according to a warning issued
 Wednesday by security companies and government Internet security
 groups.  The hacker defacement contest is expected to kick off
 on Sunday. The contest supposedly will award free hosting
 services, Web mail, unlimited E-mail forwarding, and a domain
 name of choice for the triumphant hackers, according to a Web
 site promoting the contest.

 ...

 More details at:

 http://www.internetweek.com/story/showArticle.jhtml?articleID=10818014


 --
 Eugene Lee
 http://www.coxar.pwp.blueyonder.co.uk/

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat security?

2003-07-03 Thread Nathan McMinn
Any idea what it was and/or what versions it affected?

- Original Message - 
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 11:13 AM
Subject: Re: Tomcat security?


 
 AFAIK, November 2002.
 
 John
 
 On Thu, 3 Jul 2003 11:14:26 -0500, Nathan McMinn [EMAIL PROTECTED] 
 wrote:
 
  When was the last time Tomcat had a published exploit?
 
  On a related note, these kind of contests are fairly common, and 
  usually
  don't produce any kind of real activity.
 
  --Nathan
 
  - Original Message -
  From: Eugene Lee [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, July 03, 2003 10:51 AM
  Subject: Tomcat security?
 
 
  Anyone want to discuss hardening Tomcat servers?
 
  Hacking Contest Threatens Web Sites
 
  By George V. Hulme, InformationWeek
  Updated Wednesday, July 2, 2003, 3:00 PM EDT
 
  A hacking contest slated for this weekend could produce a rash
  of Web-site defacements worldwide, according to a warning issued
  Wednesday by security companies and government Internet security
  groups.  The hacker defacement contest is expected to kick off
  on Sunday. The contest supposedly will award free hosting
  services, Web mail, unlimited E-mail forwarding, and a domain
  name of choice for the triumphant hackers, according to a Web
  site promoting the contest.
 
  ...
 
  More details at:
 
  http://www.internetweek.com/story/showArticle.jhtml?articleID=10818014
 
 
  --
  Eugene Lee
  http://www.coxar.pwp.blueyonder.co.uk/
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -- 
 Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat security?

2003-07-03 Thread Nathan McMinn
What do you mean stored in the clear?  Are you referring to
tomcat-users.xml?  Personally, I use a MySQL database to hold auth
information for a JDBC Realm, and store them digested.  As an additional
layer of security, the user account that is used to access the DB for the
realm is only granted read access and only to the required user and roles
tables.

- Original Message -
From: Mark W. Webb [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 1:55 PM
Subject: Re: Tomcat security?


 I can't believe that passwords for SSL are stored in the clear.  That
 places all responsibility of security to the OS, which may not be a good
 idea.  What happened to defense-in-depth ??

 Nathan McMinn wrote:

 When was the last time Tomcat had a published exploit?
 
 On a related note, these kind of contests are fairly common, and
usually
 don't produce any kind of real activity.
 
 --Nathan
 
 - Original Message -
 From: Eugene Lee [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, July 03, 2003 10:51 AM
 Subject: Tomcat security?
 
 
 
 
 Anyone want to discuss hardening Tomcat servers?
 
 Hacking Contest Threatens Web Sites
 
 By George V. Hulme, InformationWeek
 Updated Wednesday, July 2, 2003, 3:00 PM EDT
 
 A hacking contest slated for this weekend could produce a rash
 of Web-site defacements worldwide, according to a warning issued
 Wednesday by security companies and government Internet security
 groups.  The hacker defacement contest is expected to kick off
 on Sunday. The contest supposedly will award free hosting
 services, Web mail, unlimited E-mail forwarding, and a domain
 name of choice for the triumphant hackers, according to a Web
 site promoting the contest.
 
 ...
 
 More details at:
 
 http://www.internetweek.com/story/showArticle.jhtml?articleID=10818014
 
 
 --
 Eugene Lee
 http://www.coxar.pwp.blueyonder.co.uk/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



repost: JSP Compile Fails

2003-07-02 Thread Nathan McMinn
I recently upgraded to tomcat 4.1.24 from 4.1.18.  After performing this upgrade, 
whenever I try to deploy a new version of a JSP page on the server, the compile fails. 
 I have tracked this down to this bit of the stack trace:

Caused by: java.io.IOException: CreateProcess: javac.exe -classpath
D:\Tomcat418\bin\bootstrap.jar;D:\Tomcat418\webapps\wwxchange\WEB-INF\lib\Li
nearBarCode.jar;D:\Tomcat418\webapps\wwxchange\WEB-INF\lib\WWXchange.jar;D:\
Tomcat418\shared\classes;D:\Tomcat418\common\classes;D:\Tomcat418\common\lib
\activation.jar;D:\Tomcat418\common\lib\ant.jar;D:\Tomcat418\common\lib\comm
ons-collections.jar;D:\Tomcat418\common\lib\commons-dbcp.jar;D:\Tomcat418\co
mmon\lib\commons-httpclient-2.0-beta1.jar;D:\Tomcat418\common\lib\commons-lo
gging-api.jar;D:\Tomcat418\common\lib\commons-logging.jar;D:\Tomcat418\commo
n\lib\commons-pool.jar;D:\Tomcat418\common\lib\Commons.jar;D:\Tomcat418\comm
on\lib\EJOB.jar;D:\Tomcat418\common\lib\ftpbean.jar;D:\Tomcat418\common\lib\
jakarta-poi-1.10.0-dev-20030222.jar;D:\Tomcat418\common\lib\jasper-compiler.
jar;D:\Tomcat418\common\lib\jasper-runtime.jar;D:\Tomcat418\common\lib\mail.
jar;D:\Tomcat418\common\lib\mm.mysql-2.0.14-bin.jar;D:\Tomcat418\common\lib\
naming-common.jar;D:\Tomcat418\common\lib\naming-factory.jar;D:\Tomcat418\co
?

It seems like ant is truncating the classpath.  Does this need to be posted to the ant 
mailing list?  If not, the only workaround I can find is to unpack jars to the 
common/classes directory, thus shortening the classpath.  Does anybody know a 
cleaner way to handle this?

--Nathan McMinn


Re: repost: JSP Compile Fails

2003-07-02 Thread Nathan McMinn
There are no spaces.  The system runs on win2k, and the install path for
tomcat is d:\tomcat418.  I don;'t think this is a problem related to ant bug
10499 (spaces in install path), I think it is something different.  It
appears as though the classpath ant is trying to use is simply too long.


- Original Message -
From: Tom Cole [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 8:44 AM
Subject: Re: repost: JSP Compile Fails


 Spaces in your install path for Tomcat will cause ANT to fail.
  You should reinstall with a new path that does not include spaces.

 - Original Message -
 From: Nathan McMinn [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, July 02, 2003 9:41 AM
 Subject: repost: JSP Compile Fails


 I recently upgraded to tomcat 4.1.24 from 4.1.18.  After performing this
 upgrade, whenever I try to deploy a new version of a JSP page on the
server,
 the compile fails.  I have tracked this down to this bit of the stack
trace:

 Caused by: java.io.IOException: CreateProcess: javac.exe -classpath

D:\Tomcat418\bin\bootstrap.jar;D:\Tomcat418\webapps\wwxchange\WEB-INF\lib\Li

nearBarCode.jar;D:\Tomcat418\webapps\wwxchange\WEB-INF\lib\WWXchange.jar;D:\

Tomcat418\shared\classes;D:\Tomcat418\common\classes;D:\Tomcat418\common\lib

\activation.jar;D:\Tomcat418\common\lib\ant.jar;D:\Tomcat418\common\lib\comm

ons-collections.jar;D:\Tomcat418\common\lib\commons-dbcp.jar;D:\Tomcat418\co

mmon\lib\commons-httpclient-2.0-beta1.jar;D:\Tomcat418\common\lib\commons-lo

gging-api.jar;D:\Tomcat418\common\lib\commons-logging.jar;D:\Tomcat418\commo

n\lib\commons-pool.jar;D:\Tomcat418\common\lib\Commons.jar;D:\Tomcat418\comm

on\lib\EJOB.jar;D:\Tomcat418\common\lib\ftpbean.jar;D:\Tomcat418\common\lib\

jakarta-poi-1.10.0-dev-20030222.jar;D:\Tomcat418\common\lib\jasper-compiler.

jar;D:\Tomcat418\common\lib\jasper-runtime.jar;D:\Tomcat418\common\lib\mail.

jar;D:\Tomcat418\common\lib\mm.mysql-2.0.14-bin.jar;D:\Tomcat418\common\lib\

naming-common.jar;D:\Tomcat418\common\lib\naming-factory.jar;D:\Tomcat418\co
 ?

 It seems like ant is truncating the classpath.  Does this need to be
posted
 to the ant mailing list?  If not, the only workaround I can find is to
 unpack jars to the common/classes directory, thus shortening the
classpath.
 Does anybody know a cleaner way to handle this?

 --Nathan McMinn



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: repost: JSP Compile Fails

2003-07-02 Thread Nathan McMinn
Worked like a charm.  You rock!

--Nathan McMinn

- Original Message -
From: Matthew Mamet [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 9:03 AM
Subject: RE: repost: JSP Compile Fails


 Nathan,
 I ran into this problem when Tomcat was trying to use a diff JVM then the
 one I specified in JAVA_HOME.
 I had a JRE installed at one point, then later installed the SDK. Tomcat
was
 using the sdk as it's JAVA_HOME, but was getting confused and pointing to
 the JRE from the first install.

 In the Registry, go to
 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat
 4.1\Parameters
 Check the value of JVM Library - and make sure it is pointing to
 JAVA_HOME\jre\bin\client\jvm.dll
 Where java_home is the java_home that Tomcat picked during it's Installer
 process.

 Hope this helps.

 -Original Message-
 From: Nathan McMinn [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 02, 2003 10:06 AM
 To: Tomcat Users List
 Subject: Re: repost: JSP Compile Fails


 There are no spaces.  The system runs on win2k, and the install path for
 tomcat is d:\tomcat418.  I don;'t think this is a problem related to ant
bug
 10499 (spaces in install path), I think it is something different.  It
 appears as though the classpath ant is trying to use is simply too long.


 - Original Message -
 From: Tom Cole [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, July 02, 2003 8:44 AM
 Subject: Re: repost: JSP Compile Fails


  Spaces in your install path for Tomcat will cause ANT to fail.  You
  should reinstall with a new path that does not include spaces.
 
  - Original Message -
  From: Nathan McMinn [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, July 02, 2003 9:41 AM
  Subject: repost: JSP Compile Fails
 
 
  I recently upgraded to tomcat 4.1.24 from 4.1.18.  After performing
  this upgrade, whenever I try to deploy a new version of a JSP page on
  the
 server,
  the compile fails.  I have tracked this down to this bit of the stack
 trace:
 
  Caused by: java.io.IOException: CreateProcess: javac.exe -classpath
 

D:\Tomcat418\bin\bootstrap.jar;D:\Tomcat418\webapps\wwxchange\WEB-INF\lib\Li
 

nearBarCode.jar;D:\Tomcat418\webapps\wwxchange\WEB-INF\lib\WWXchange.jar;D:\
 

Tomcat418\shared\classes;D:\Tomcat418\common\classes;D:\Tomcat418\common\lib
 

\activation.jar;D:\Tomcat418\common\lib\ant.jar;D:\Tomcat418\common\lib\comm
 

ons-collections.jar;D:\Tomcat418\common\lib\commons-dbcp.jar;D:\Tomcat418\co
 

mmon\lib\commons-httpclient-2.0-beta1.jar;D:\Tomcat418\common\lib\commons-lo
 

gging-api.jar;D:\Tomcat418\common\lib\commons-logging.jar;D:\Tomcat418\commo
 

n\lib\commons-pool.jar;D:\Tomcat418\common\lib\Commons.jar;D:\Tomcat418\comm
 

on\lib\EJOB.jar;D:\Tomcat418\common\lib\ftpbean.jar;D:\Tomcat418\common\lib\
 

jakarta-poi-1.10.0-dev-20030222.jar;D:\Tomcat418\common\lib\jasper-compiler.
 

jar;D:\Tomcat418\common\lib\jasper-runtime.jar;D:\Tomcat418\common\lib\mail.
 

jar;D:\Tomcat418\common\lib\mm.mysql-2.0.14-bin.jar;D:\Tomcat418\common\lib\
 

naming-common.jar;D:\Tomcat418\common\lib\naming-factory.jar;D:\Tomcat418\co
  ?
 
  It seems like ant is truncating the classpath.  Does this need to be
 posted
  to the ant mailing list?  If not, the only workaround I can find is to
  unpack jars to the common/classes directory, thus shortening the
 classpath.
  Does anybody know a cleaner way to handle this?
 
  --Nathan McMinn
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: error running javac.exe

2003-07-01 Thread Nathan McMinn
Doing some digging, I came up with a thread on a resin mailing list that
details problems that can occur when the classpath is too long.  It appears
that this is the case here.  Notice below that the classpath is truncated.
Now the question is, does anyone know a workaround for this?

Caused by: java.io.IOException: CreateProcess: javac.exe -classpath
D:\Tomcat418\bin\bootstrap.jar;D:\Tomcat418\webapps\wwxchange\WEB-INF\lib\Li
nearBarCode.jar;D:\Tomcat418\webapps\wwxchange\WEB-INF\lib\WWXchange.jar;D:\
Tomcat418\shared\classes;D:\Tomcat418\common\classes;D:\Tomcat418\common\lib
\activation.jar;D:\Tomcat418\common\lib\ant.jar;D:\Tomcat418\common\lib\comm
ons-collections.jar;D:\Tomcat418\common\lib\commons-dbcp.jar;D:\Tomcat418\co
mmon\lib\commons-httpclient-2.0-beta1.jar;D:\Tomcat418\common\lib\commons-lo
gging-api.jar;D:\Tomcat418\common\lib\commons-logging.jar;D:\Tomcat418\commo
n\lib\commons-pool.jar;D:\Tomcat418\common\lib\Commons.jar;D:\Tomcat418\comm
on\lib\EJOB.jar;D:\Tomcat418\common\lib\ftpbean.jar;D:\Tomcat418\common\lib\
jakarta-poi-1.10.0-dev-20030222.jar;D:\Tomcat418\common\lib\jasper-compiler.
jar;D:\Tomcat418\common\lib\jasper-runtime.jar;D:\Tomcat418\common\lib\mail.
jar;D:\Tomcat418\common\lib\mm.mysql-2.0.14-bin.jar;D:\Tomcat418\common\lib\
naming-common.jar;D:\Tomcat418\common\lib\naming-factory.jar;D:\Tomcat418\co
?



I've been running Tomcat 4.1.24 on my system (win2k pro) for a while now.
Today I tried to add a new JSP page, and whenever I try to view it, I get
the trace listed below.  This does not occur with any other jsp pages in the
system, only the newest one (Index.jsp).  Anybody know how to fix this?

error running javac.exe compiler
 at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExtern
alCompile(DefaultCompilerAdapter.java:455)
 at
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.
java:81)
 at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:840)
 at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
 at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
73)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
90)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:551)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at

Startup parameters

2003-01-17 Thread Nathan McMinn
OK, one quick question that I'm sure anybody here but me can answer.

I am running Tomcat as a service on windows 2000 server.  I want to set some
JVM parameters when tomcat starts (things like -server, -Xmx, -Xms, etc).
Where would I go about making these changes?  I've looked through the
catalina.bat file, but is this even executed when tomcat is run as a
service?  according to the services applet in the control panel, the service
runs tomcat.exe.  Does this in turn call the startup script? Or do I need to
pass the parameters using -jvm_option to tomcat.exe?  As an aside, is there
anything that can be done to optimize tomcat for execution on a
multi-processor system?

--Nathan McMinn



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Startup parameters

2003-01-17 Thread Nathan McMinn
Wow, Thanks folks.

On a slightly different note, has anyone had any luck using a PCI SSL
accelerator card with Tomcat 4.0.6 in a standalone configuration?

- Original Message -
From: Hari Venkatesan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, January 17, 2003 4:37 PM
Subject: RE: Startup parameters


Setting the parameters in Catalina.bat would not work if you run Tomcat
as a service since you service is calling tomcat.exe directly and not
startup.bat or Catalina.bat.

But to test out before you start the service you can put the values in
CATALINA_OPTS = -Xms128m -Xmx258 etc and run Catalina.bat. You can also
set the values as Environment Variables and forget about changing it in
Catalina.bat

To Run it as service and with the parameters follow the link

http://www.mattkelli.com/tech/tomcat/ntservice.htm

Hope this helps

Hari

-Original Message-
From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 5:22 PM
To: Tomcat Users List
Subject: Startup parameters

OK, one quick question that I'm sure anybody here but me can answer.

I am running Tomcat as a service on windows 2000 server.  I want to set
some
JVM parameters when tomcat starts (things like -server, -Xmx, -Xms,
etc).
Where would I go about making these changes?  I've looked through the
catalina.bat file, but is this even executed when tomcat is run as a
service?  according to the services applet in the control panel, the
service
runs tomcat.exe.  Does this in turn call the startup script? Or do I
need to
pass the parameters using -jvm_option to tomcat.exe?  As an aside, is
there
anything that can be done to optimize tomcat for execution on a
multi-processor system?

--Nathan McMinn



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: JDBC Connection pooling

2003-01-16 Thread Nathan McMinn
He he, I'd love to move to 4.1.18, but I get the most bizzare problems when
I try to do it.

see http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_20456477.html
for details if you are interested.

--Nathan McMinn

 Nathan McMinn wrote:
  When trying to get a connection pool set up, tomcat spits this exception
  back out.  Nowhere in the code do I reference this class.  Can anyone
point
  me to a good HOWTO on connection pooling in tomcat 4.0.6?
 
  TyrexDataSourceFactory:  Cannot create DataSource, Exception
  java.lang.ClassNotFoundException: org.hsql.jdbcDriver
 

 I had the same experience: it seemed as though Tyrex had the hypersonic
 db hard-coded, so that any attempt to specifiy a different jdbc driver
 was simply ignored.
 The solution was to move to TC 4.1.x, which uses the jakarta-commons
 DBCP stuff in place of Tyrex, and which works fine.

 HTH,

 Martin



 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: mod_jk apache2 tomcat4.1.8

2003-01-16 Thread Nathan McMinn
Bill,

I've done the same search for some tomcat-specific tuning tips, to no avail.
I'll wager that alot of the folks on this list could use that.  If you come
up with anything, please share.

Thanks,
Nathan McMinn

- Original Message -
From: Bill [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 5:01 AM
Subject: Re: mod_jk apache2 tomcat4.1.8


 Well I seem to have gotten this to work...I think.

 Now the page renders but takes FOREVER to do soit took the same
 webapp 330.98s to render using a lan connection while it takes less than
 2s to render the live version over the Internet.  I knew using mod_jk
 would be slower, but is it really that slow?  (I do understand there are
 other factors involved but the boxes are running almost identical
 configurations and the slower box has twice the memory of the other.
 The difference is just too staggering.)

 I thought I saw someone mention a performance tuning guide for
 tomcat being available but a web search didnt find it.  If someone could
 point me to that resource or if you have an idea why this app has
 suddenly become ridiculously slow, I'd appreciate the help.

 thx

 -b


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: mod_jk apache2 tomcat4.1.8

2003-01-16 Thread Nathan McMinn
Thanks! Any word on a release date for the book?

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 10:31 AM
Subject: RE: mod_jk apache2 tomcat4.1.8



 Check the list for yesterday or Tuesday.  Remy is co-authoring, along with
 Peter Lin, a book on that exact subject, not that I think it is the
problem
 in Bill's case.  Remy also posted a chapter from the book to the list for
 review.

 John


  -Original Message-
  From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 16, 2003 11:24 AM
  To: Tomcat Users List
  Subject: Re: mod_jk apache2 tomcat4.1.8
 
 
  Bill,
 
  I've done the same search for some tomcat-specific tuning
  tips, to no avail.
  I'll wager that alot of the folks on this list could use
  that.  If you come
  up with anything, please share.
 
  Thanks,
  Nathan McMinn
 
  - Original Message -
  From: Bill [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, January 16, 2003 5:01 AM
  Subject: Re: mod_jk apache2 tomcat4.1.8
 
 
   Well I seem to have gotten this to work...I think.
  
   Now the page renders but takes FOREVER to do soit took the same
   webapp 330.98s to render using a lan connection while it
  takes less than
   2s to render the live version over the Internet.  I knew
  using mod_jk
   would be slower, but is it really that slow?  (I do
  understand there are
   other factors involved but the boxes are running almost identical
   configurations and the slower box has twice the memory of the other.
   The difference is just too staggering.)
  

 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




JDBC Connection pooling

2003-01-15 Thread Nathan McMinn
When trying to get a connection pool set up, tomcat spits this exception
back out.  Nowhere in the code do I reference this class.  Can anyone point
me to a good HOWTO on connection pooling in tomcat 4.0.6?

TyrexDataSourceFactory:  Cannot create DataSource, Exception
java.lang.ClassNotFoundException: org.hsql.jdbcDriver



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: JDBC Connection pooling

2003-01-15 Thread Nathan McMinn
Any suggestions on what in particular to look for?  I know the classloader
that is spitting up on itself is the webapp classloader, because the
exception doesn't occur until I attempt to access this application. Is that
correct?

- Original Message -
From: David Boyer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 2:27 PM
Subject: Re: JDBC Connection pooling


 For this particular error, the Tomcat classloader documentation would
 probably be your best bet.

  [EMAIL PROTECTED] 01/15/03 02:24PM 
 When trying to get a connection pool set up, tomcat spits this
 exception
 back out.  Nowhere in the code do I reference this class.  Can anyone
 point
 me to a good HOWTO on connection pooling in tomcat 4.0.6?

 TyrexDataSourceFactory:  Cannot create DataSource, Exception
 java.lang.ClassNotFoundException: org.hsql.jdbcDriver



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: JDBC Connection pooling

2003-01-15 Thread Nathan McMinn
That is where the tyrex jars are, problem is, I don't use HypersonicSQL,
which is the jar file tyrex is looking for.  If I put the hypersonicSQL jars
there, it attempts to connect to a non-existent database.  I found what was
causing that problem, and I have a new one (Progress!!).  Now whenever I
attempt to get a connection from the pool, I get

javax.naming.NamingException: Cannot create resource instance

pretty vague, isn't it?

Below is the XML from the relevant server and web.xml files.  Maybe this
will help.

I have this chunk of xml in the web.xml file for the application

resource-ref
  descriptionwwxchange/description
  res-ref-namejdbc/wwxchange/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref

which is in turn, described by this context

 Context path=/wwxchange docBase=wwxchange
debug=5 reloadable=true crossContext=true

  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_DBTest_log. suffix=.txt
 timestamp=true/

 Resource name=jdbc/wwxchange scope=Shareable
   type=javax.sql.DataSource/
 ResourceParams name=jdbc/wwxchange

   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 nameurl/name
 valuejdbc:odbc:www_ship_2/value
   /parameter
   parameter
 namemaxActive/name
 value10/value
   /parameter
   parameter
 namemaxWait/name
 value5000/value
   /parameter
   parameter
 namedriverClassName/name
 valuesun.jdbc.odbc.JdbcOdbcDriver/value
   /parameter
   parameter
 namemaxIdle/name
 value2/value
   /parameter
 /ResourceParams

  /Context
- Original Message -
From: David Boyer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 3:01 PM
Subject: Re: JDBC Connection pooling


 The error you mention suggests Tyrex cannot find the hsql jdbc driver.
 The Class Loader How-To would suggest putting the hsql jar(s) in
 $TOMCAT_HOME/common/lib to make them available to both Tomcat's JNDI
 provider and your web applications. Isn't that where you have the Tyrex
 jars?

  [EMAIL PROTECTED] 01/15/03 02:44PM 
 Any suggestions on what in particular to look for?  I know the
 classloader
 that is spitting up on itself is the webapp classloader, because the
 exception doesn't occur until I attempt to access this application. Is
 that
 correct?

 - Original Message -
 From: David Boyer [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, January 15, 2003 2:27 PM
 Subject: Re: JDBC Connection pooling


  For this particular error, the Tomcat classloader documentation
 would
  probably be your best bet.
 
   [EMAIL PROTECTED] 01/15/03 02:24PM 
  When trying to get a connection pool set up, tomcat spits this
  exception
  back out.  Nowhere in the code do I reference this class.  Can
 anyone
  point
  me to a good HOWTO on connection pooling in tomcat 4.0.6?
 
  TyrexDataSourceFactory:  Cannot create DataSource, Exception
  java.lang.ClassNotFoundException: org.hsql.jdbcDriver
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]






--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: JDBC Connection pooling

2003-01-15 Thread Nathan McMinn
Here is a complete stack trace of the exception

javax.naming.NamingException: Cannot create resource instance
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:167)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:311)
at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
at javax.naming.InitialContext.lookup(InitialContext.java:354)
at wwxchange.utility.DBPoolAccess.init(DBPoolAccess.java:28)
at wwxchange.beans.UserAcctBean.loadProfile(UserAcctBean.java:103)
at org.apache.jsp.Login$jsp._jspService(Login$jsp.java:149)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:531)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
at java.lang.Thread.run(Thread.java:536)

- Original Message -
From: Nathan McMinn [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 3:19 PM
Subject: Re: JDBC Connection pooling


 That is where the tyrex jars are, problem is, I don't use HypersonicSQL,
 which is the jar file tyrex is looking for.  If I put the hypersonicSQL
jars
 there, it attempts to connect to a non-existent database

JDBC connection pooling, update

2003-01-15 Thread Nathan McMinn
First, thanks to those that pointed me in the right direction.  I just have
one more problem with connection pooling. Now when I request a connection
from the connection pool, I get the following exception:

java.sql.SQLException: No suitable driver

pretty standard exception, not really that confusing.  What IS confusing, is
why this exception kicks out, when I clearly define the driver to use in the
server.xml file.  It is supposed to be defined in the driverClassName
parameter, correct?

  ResourceParams name=jdbc/wwxchange

parameter
  namedriverClassName/name
  valuesun.jdbc.odbc.JdbcOdbcDriver/value
/parameter
parameter
  nameurl/name
  valuejdbc:odbc:www_ship_2/value
/parameter
parameter
  namemaxActive/name
  value10/value
/parameter
parameter
  namemaxWait/name
   value5000/value
/parameter
parameter
  namemaxIdle/name
  value2/value
/parameter
  /ResourceParams



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: stack trace error when viewing html source, but the display in browser is good.

2003-01-15 Thread Nathan McMinn
Could you send the stack trace?

- Original Message -
From: Paul Tomsic [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 1:17 PM
Subject: stack trace error when viewing html source, but the display in
browser is good.


 Has anyone ever seen the expected results in a browser
 from their servlet, but when you view source, there is
 a stack trace?

 Not sure what would be causing this, but here's how
 we're generating output to the browser:

 public void printPage(HttpServletResponse response) {
   response.setContentType(text/html);
   // get content is a method that simply returns
   // a byte array of the content to send to the
   // browser
   byte[] b = getContent();

   ServletOutputStream out =
 response.getOutputStream();
   out.write(b);

   ...
 }

 if I do a System.out.println(new String(b));
 then that output shows me exactly what I see in the
 browser, but when I view source on it in the browser,
 I get a stacktrace.

 Any thoughts on this strange behaviour?

 Thank you,
 Paul



 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com

 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: stack trace error when viewing html source, but the display inbrowser is good.

2003-01-15 Thread Nathan McMinn
Is it possible that the response.getOutputStream() method is returning a
null?

- Original Message -
From: Paul Tomsic [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 3:28 PM
Subject: Re: stack trace error when viewing html source, but the display
inbrowser is good.


 yes, what I'm saying is that our servlet is actually
 sending the output to the browser, but when you view
 source of that output in the browser, it displays a
 stacktrace.  The browser, however, is showing what we
 expect (the desired HTML).
 Here's the stackTrace:
 (I've removed the html,head,title tags, and
 DisplayTemplateAction.java line 26 is the code that I
 put into my original msg. where it does a
 ServletOutputStream.write(byte[]) and if I system.out
 the byte array, it shows the desired html)

 Apache Tomcat/4.1.12 - Error report
 HTTP Status 500 - type Exception report
 message description
 The server encountered an internal error () that
 prevented it from fulfilling this request.
 exception java.lang.NullPointerException
 at

com.cappsdigital.actions.DisplayTemplateAction.perform(DisplayTemplateAction
.java:26)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
 at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
 at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
 at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
 at java.lang.Thread.run(Thread.java:491)


 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com

 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




REPOST 4.1.18 installation problems

2003-01-14 Thread Nathan McMinn

  After installing tomcat 4.1.18 on windows 2000, I get the following
  exception trying to access my web application.  This app worked fine
with
  4.0.6.  I have also included my web.xml file for this application.
Thanks
  in advance.
 
  org.apache.jasper.JasperException: org/apache/xerces/framework/XMLParser
  at
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
  48)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
  FilterChain.java:247)
  at
 

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
  ain.java:193)
  at
 

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
  va:260)
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(StandardPipeline.java:643)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
 

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
  va:191)
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(StandardPipeline.java:643)
  at
 

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
  .java:550)
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(StandardPipeline.java:641)
  at
 

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
  46)
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(StandardPipeline.java:641)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
  at
 

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
  )
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(StandardPipeline.java:643)
  at
 

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
  java:170)
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(StandardPipeline.java:641)
  at
 

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
  )
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(StandardPipeline.java:641)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
 

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
  :174)
  at
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(StandardPipeline.java:643)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
  at
 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
  at
 

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
  ction(Http11Protocol.java:386)
  at
 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
  at
 

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
  a:530)
  at java.lang.Thread.run(Thread.java:536)
  ?xml version=1.0 encoding=ISO-8859-1?!DOCTYPE web-appPUBLIC
  -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;web-appmime-mapping
  extensionjs/extension  mime-typetext/javascript/mime-type
  /mime-mapping  welcome-file-list
  welcome-fileLogin.jsp/welcome-file  /welcome-file-list
  security-constraint  display-nameWWEX Security
  Constraint/display-name  web-resource-collection
  web-resource-nameWorldwide Express/web-resource-name  !-- Define
the
  context-relative URL(s) to be protected --
  url-pattern/*/url-pattern  /web-resource-collection
  auth-constraint !-- Anyone with one of the listed roles may
  access this area -- role-nameuser/role-name
  /auth-constraint  user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint/security-constraintlogin-config
  auth-methodBASIC/auth-method  realm-nameWorldwide
  Express/realm-name/login-config/web-app
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL 

Fw: REPOST 4.1.18 installation problems

2003-01-14 Thread Nathan McMinn
After some experimenting, I have discovered that it is a bean that is behind
this problem.  If I remove the bean reference, the error goes away (but then
of course, other things in the application do not work).  Does anybody have
any idea what could be behind this?

- Original Message -
From: Nathan McMinn [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 14, 2003 11:10 AM
Subject: REPOST 4.1.18 installation problems



   After installing tomcat 4.1.18 on windows 2000, I get the following
   exception trying to access my web application.  This app worked fine
 with
   4.0.6.  I have also included my web.xml file for this application.
 Thanks
   in advance.
  
   org.apache.jasper.JasperException:
org/apache/xerces/framework/XMLParser
   at
  
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
   48)
   at
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  
 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
   FilterChain.java:247)
   at
  
 

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
   ain.java:193)
   at
  
 

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
   va:260)
   at
  
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
   eNext(StandardPipeline.java:643)
   at
  
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
  
 

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
   va:191)
   at
  
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
   eNext(StandardPipeline.java:643)
   at
  
 

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
   .java:550)
   at
  
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
   eNext(StandardPipeline.java:641)
   at
  
 

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
   46)
   at
  
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
   eNext(StandardPipeline.java:641)
   at
  
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
  
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
   at
  
 

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
   )
   at
  
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
   eNext(StandardPipeline.java:643)
   at
  
 

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
   java:170)
   at
  
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
   eNext(StandardPipeline.java:641)
   at
  
 

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
   )
   at
  
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
   eNext(StandardPipeline.java:641)
   at
  
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
  
 

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
   :174)
   at
  
 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
   eNext(StandardPipeline.java:643)
   at
  
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at
  
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
   at
  
 

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
   ction(Http11Protocol.java:386)
   at
  
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
   at
  
 

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
   a:530)
   at java.lang.Thread.run(Thread.java:536)
   ?xml version=1.0 encoding=ISO-8859-1?!DOCTYPE web-appPUBLIC
   -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;web-appmime-mapping
   extensionjs/extension  mime-typetext/javascript/mime-type
   /mime-mapping  welcome-file-list
   welcome-fileLogin.jsp/welcome-file  /welcome-file-list
   security-constraint  display-nameWWEX Security
   Constraint/display-name  web-resource-collection
   web-resource-nameWorldwide Express/web-resource-name  !-- Define
 the
   context-relative URL(s) to be protected --
   url-pattern/*/url-pattern  /web-resource

Realms

2003-01-14 Thread Nathan McMinn
I have JDBC realms configured connecting to an ODBC database.  This works in
most cases.  However, many times, the server rejects the first login attempt
with the following exception.  Has anyone seen this before?

2003-01-13 07:38:44 JDBCRealm[Standalone]: Exception performing
authentication
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Function sequence
error
 at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
 at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
 at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:2564)
 at
sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.ja
va:214)
 at
sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQuery(JdbcOdbcPreparedStateme
nt.java:89)
 at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:445)
 at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:394)
 at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe
nticator.java:161)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:525)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
 at java.lang.Thread.run(Thread.java:536)



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: 4.1.18 installation problems

2003-01-13 Thread Nathan McMinn
I forgot to mention that this error occurs while trying to access any jsp
page within the application


 Hi all,

 After installing tomcat 4.1.18 on windows 2000, I get the following
 exception trying to access my web application.  This app worked fine with
 4.0.6.  I have also included my web.xml file for this application.  Thanks
 in advance.

 org.apache.jasper.JasperException: org/apache/xerces/framework/XMLParser
 at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
 48)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:260)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:191)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
 at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
 .java:550)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:641)
 at

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
 46)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:641)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
 )
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
 at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
 java:170)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:641)
 at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
 )
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:641)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
 :174)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
 at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
 ction(Http11Protocol.java:386)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
 at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
 a:530)
 at java.lang.Thread.run(Thread.java:536)
 ?xml version=1.0 encoding=ISO-8859-1?!DOCTYPE web-appPUBLIC
 -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;web-appmime-mapping
 extensionjs/extension  mime-typetext/javascript/mime-type
 /mime-mapping  welcome-file-list
 welcome-fileLogin.jsp/welcome-file  /welcome-file-list
 security-constraint  display-nameWWEX Security
 Constraint/display-name  web-resource-collection
 web-resource-nameWorldwide Express/web-resource-name  !-- Define the
 context-relative URL(s) to be protected --
 url-pattern/*/url-pattern  /web-resource-collection
 auth-constraint !-- Anyone with one of the listed roles may
 access this area -- role-nameuser/role-name
 /auth-constraint  user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint/security-constraintlogin-config
 auth-methodBASIC/auth-method  realm-nameWorldwide
 Express/realm-name/login-config/web-app



 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




4.1.18 installation problems

2003-01-12 Thread Nathan McMinn
Hi all,

After installing tomcat 4.1.18 on windows 2000, I get the following
exception trying to access my web application.  This app worked fine with
4.0.6.  I have also included my web.xml file for this application.  Thanks
in advance.

org.apache.jasper.JasperException: org/apache/xerces/framework/XMLParser
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:550)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:536)
?xml version=1.0 encoding=ISO-8859-1?!DOCTYPE web-appPUBLIC
-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;web-appmime-mapping
extensionjs/extension  mime-typetext/javascript/mime-type
/mime-mapping  welcome-file-list
welcome-fileLogin.jsp/welcome-file  /welcome-file-list
security-constraint  display-nameWWEX Security
Constraint/display-name  web-resource-collection
web-resource-nameWorldwide Express/web-resource-name  !-- Define the
context-relative URL(s) to be protected --
url-pattern/*/url-pattern  /web-resource-collection
auth-constraint !-- Anyone with one of the listed roles may
access this area -- role-nameuser/role-name
/auth-constraint  user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint/security-constraintlogin-config
auth-methodBASIC/auth-method  realm-nameWorldwide
Express/realm-name/login-config/web-app



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Installation woes

2003-01-09 Thread Nathan McMinn
Unfortunately, when you run the bat file, it opens another terminal window,
that closes when tomcat exits.  And since it doesn't start up all the way,
there aren't even any log files to check.

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 4:32 PM
Subject: Re: Installation woes


 Open a terminal window yourself first, then run
 %CATALINA_HOME%/bin/startup.bat.  Now you should be able to see the error
 message without the window disappearing on you.  Also, make sure the
 JAVA_HOME points to the top level directory of your JDK (C:\jdk1.3
 instead of C:\jdk1.3\bin for instance).

 Also, I don't know if things have changed with the more recent versions,
 but I seem to remember there being problems with the installations in
 previous versions, and it was generally recommended to just download the
 binary release (sufficient unless you want to take a look at and/or tweak
 the source code), unzip, and set the environment variables.  You could
 always give that a try to see if things work better.

 HTH,
 -Jeff





 Nathan McMinn [EMAIL PROTECTED]
 01/08/03 04:22 PM
 Please respond to Tomcat Users List


 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:Re: Installation woes


 I added it, and it appears to be using the correct jdk.  However, now the
 damn thing won't start.  And it closes the terminal window before I can
 retreive the error message.

 - Original Message -
 From: Tam, Michael [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, January 08, 2003 4:13 PM
 Subject: RE: Installation woes


  Nathan,
 
 Adding JAVA_HOME as environment variable under Sys. Properties should
  work.  Where did you add your JAVA_HOME variable i.e. as User variable
 or
  System variable??  It should be under System Variable.  I am running XP
 Home
  on my notebook and it works for me.
 
  Hope this help.
 
  Michael
 
  -Original Message-
  From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 08, 2003 1:50 PM
  To: Tomcat Users List
  Subject: Re: Installation woes
 
 
  John,
 
  Here's the kicker, running SET from the command line (win xp)
 doesn't
  list JAVA_HOME as an existing env var, neither does sys properties -
  advanced - environment variables.  Is there somewhere else to look for
 it?
 
  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Wednesday, January 08, 2003 3:41 PM
  Subject: RE: Installation woes
 
 
  
   Change the JAVA_HOME environment variable to point to the JDK you want
 to
   use.
  
   John
  
  
-Original Message-
From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 4:39 PM
To: Tomcat Users List
Subject: Installation woes
   
   
When installing Tomcat 4.1.18, during the installation, it
autodetects the
jdk install location.  Is there any way to override this?  If
not, how do
you change the jdk that tomcat uses?  It is automatically
using an older jdk
that Jbuilder installed, and I don't want it to use this one.
   
--Nathan McMinn
   
   
   
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
   
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 



 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]







--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Installation woes

2003-01-09 Thread Nathan McMinn
Thanks!

- Original Message -
From: Larry Meadors [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 4:27 PM
Subject: Re: Installation woes


 Go to the $CATALINA_HOME/bin directory and run

   catalina run

 The terminal will stay after it dies.

 Larry

  [EMAIL PROTECTED] 01/08/03 15:23 PM 
 I added it, and it appears to be using the correct jdk.  However, now
 the
 damn thing won't start.  And it closes the terminal window before I can
 retreive the error message.

 - Original Message -
 From: Tam, Michael [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, January 08, 2003 4:13 PM
 Subject: RE: Installation woes


  Nathan,
 
 Adding JAVA_HOME as environment variable under Sys. Properties
 should
  work.  Where did you add your JAVA_HOME variable i.e. as User variable
 or
  System variable??  It should be under System Variable.  I am running
 XP
 Home
  on my notebook and it works for me.
 
  Hope this help.
 
  Michael
 
  -Original Message-
  From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 08, 2003 1:50 PM
  To: Tomcat Users List
  Subject: Re: Installation woes
 
 
  John,
 
  Here's the kicker, running SET from the command line (win xp)
 doesn't
  list JAVA_HOME as an existing env var, neither does sys properties -
  advanced - environment variables.  Is there somewhere else to look
 for
 it?
 
  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Wednesday, January 08, 2003 3:41 PM
  Subject: RE: Installation woes
 
 
  
   Change the JAVA_HOME environment variable to point to the JDK you
 want
 to
   use.
  
   John
  
  
-Original Message-
From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 4:39 PM
To: Tomcat Users List
Subject: Installation woes
   
   
When installing Tomcat 4.1.18, during the installation, it
autodetects the
jdk install location.  Is there any way to override this?  If
not, how do
you change the jdk that tomcat uses?  It is automatically
using an older jdk
that Jbuilder installed, and I don't want it to use this one.
   
--Nathan McMinn
   
   
   
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
   
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Startup Error

2003-01-09 Thread Nathan McMinn
First, thanks to everyone for all the help.  I just have one more question.
When starting tomcat (4.1.18 on win xp, jdk 1.4.1_01).  I receive this error
message:

WebappClassLoader:
validateJarFile(C:\TomcatTest\webapps\wwxchange\WEB-INF\lib\s
ervlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/servlet/Servlet.class

Has anyone ever seen this before?

-Nathan McMinn



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Startup Error

2003-01-09 Thread Nathan McMinn
DOH! thanks

- Original Message -
From: Donie Kelly [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, January 09, 2003 7:41 AM
Subject: RE: Startup Error


 Try removing the servlet.jar from you WEB-INF/lib directory as it's
already
 in the tomcat/common/lib directory

 Donie

 -Original Message-
 From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
 Sent: 09 January 2003 13:47
 To: Tomcat Users List
 Subject: Startup Error

 First, thanks to everyone for all the help.  I just have one more
question.
 When starting tomcat (4.1.18 on win xp, jdk 1.4.1_01).  I receive this
error
 message:

 WebappClassLoader:
 validateJarFile(C:\TomcatTest\webapps\wwxchange\WEB-INF\lib\s
 ervlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
Offending
 class: javax/servlet/Servlet.class

 Has anyone ever seen this before?

 -Nathan McMinn



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Repost: Double Login

2003-01-08 Thread Nathan McMinn
Hi all,

Some of you had been kind enough to assist with this issue I posted
previously.  I had thought it was fixed, but it has appeared again.  Any
ideas?


I recently switched a web application from a memory realm to a JDBC realm
for authentication.  After making the switch, the web app now requires that
users log in twice.  The app is running with SSL, and using Basic
authentication.  The Login.jsp page listed in the XML below as the welcome
file simply sets up session objects, etc.  The first login occurs before the
Login.jsp page will load.  Once all of the session setup is complete, the
Login.jsp page forwards the user to the application's main menu.  It is at
this point that the system asks for another login.  Has anyone seen this
behavior before? I've already searched Google, JGuru, etc etc.  This is the
current web.xml for the application having the problem.  Any help would be
greatly appreciated.

Thanks..
Nathan McMinn

web-app

mime-mapping
  extensionjs/extension
  mime-typetext/javascript/mime-type
/mime-mapping

  welcome-file-list
welcome-fileLogin.jsp/welcome-file
  /welcome-file-list

security-constraint
  display-nameWWEX Security Constraint/display-name
  web-resource-collection
 web-resource-nameDELETED/web-resource-name
 !-- Define the context-relative URL(s) to be protected --
 url-pattern/*/url-pattern
  /web-resource-collection
  auth-constraint
 !-- Anyone with one of the listed roles may access this area --
 role-nameuser/role-name
  /auth-constraint
  user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
/security-constraint

login-config
  auth-methodBASIC/auth-method
  realm-nameDELETED/realm-name
/login-config

/web-app



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Repost: Double Login

2003-01-08 Thread Nathan McMinn
Nope, it is just HTTP BASIC authentication, running over SSL.  And there is
no magic url or domain trickery going on.  The really unusual part is that
with a memory realm, I didn't have this problem.  It only popped up after
switching to a JDBC Realm.

- Original Message -
From: Troy J. Kelley [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 8:23 AM
Subject: RE: Repost: Double Login


 Are you using cookies or URL re-writing for session identifier?

 Are you doing anything funky with domain names or other such trickery
 which would cause your cookie to not be available upon doing the
 forward?

 -Troy

 -Original Message-
 From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 9:07 AM
 To: [EMAIL PROTECTED]
 Subject: Repost: Double Login

 Hi all,

 Some of you had been kind enough to assist with this issue I posted
 previously.  I had thought it was fixed, but it has appeared again.  Any
 ideas?


 I recently switched a web application from a memory realm to a JDBC
 realm
 for authentication.  After making the switch, the web app now requires
 that
 users log in twice.  The app is running with SSL, and using Basic
 authentication.  The Login.jsp page listed in the XML below as the
 welcome
 file simply sets up session objects, etc.  The first login occurs before
 the
 Login.jsp page will load.  Once all of the session setup is complete,
 the
 Login.jsp page forwards the user to the application's main menu.  It is
 at
 this point that the system asks for another login.  Has anyone seen this
 behavior before? I've already searched Google, JGuru, etc etc.  This is
 the
 current web.xml for the application having the problem.  Any help would
 be
 greatly appreciated.

 Thanks..
 Nathan McMinn

 web-app

 mime-mapping
   extensionjs/extension
   mime-typetext/javascript/mime-type
 /mime-mapping

   welcome-file-list
 welcome-fileLogin.jsp/welcome-file
   /welcome-file-list

 security-constraint
   display-nameWWEX Security Constraint/display-name
   web-resource-collection
  web-resource-nameDELETED/web-resource-name
  !-- Define the context-relative URL(s) to be protected --
  url-pattern/*/url-pattern
   /web-resource-collection
   auth-constraint
  !-- Anyone with one of the listed roles may access this area
 --
  role-nameuser/role-name
   /auth-constraint
   user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
 /security-constraint

 login-config
   auth-methodBASIC/auth-method
   realm-nameDELETED/realm-name
 /login-config

 /web-app



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Repost: Double Login

2003-01-08 Thread Nathan McMinn
Oh, I am running 4.0.6, using the JDBC - ODBC bridge, and the database is a
D3 MultiValue system (legacy system).

And after checking the logs, I find a copy of this error trace for every
login

java.sql.SQLException: [Microsoft][ODBC Driver Manager] Function sequence
error
 at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
 at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
 at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3104)
 at
sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.ja
va:214)
 at
sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQuery(JdbcOdbcPreparedStateme
nt.java:89)
 at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:377)
 at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:326)
 at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe
nticator.java:161)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:506)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
 at java.lang.Thread.run(Thread.java:536)

- Original Message -
From: Mike W-M [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 9:09 AM
Subject: Re: Repost: Double Login


 Just a few thoughts since it looks like the JDBC realm that's causing you
 the problem.
 (And you don't say what Tomcat version you're using.)

 When I setup my own JDBC realm (for form-based-authentication) I noticed
 that its error handling wasn't all that hot.  If the call errored (e.g.
 because I'd specified incorrect table or column names) it just looked like
a
 failed logon.  Maybe the first call is failing so the user's asked to log
on
 again?  (Tomcat 4.0.4)

 Also, what happens if you don't request the logon page first but request
 another protected page?  (You may get errors generated, but at least that
 means your request got through...)  How many times are you asked to
 authenticate then?  If it's only one then that points to something your
 logon page is doing, right?

 Mike.

 - Original Message -
 From: Nathan McMinn [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, January 08, 2003 2:26 PM
 Subject: Re: Repost: Double Login


 Nope, it is just HTTP BASIC authentication, running over SSL.  And there
is
 no magic url or domain trickery going on.  The really unusual part is that
 with a memory realm, I didn't have this problem.  It only popped up after
 switching to a JDBC Realm.

 - Original Message -
 From: Troy J. Kelley [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, January 08, 2003 8:23 AM
 Subject: RE: Repost: Double Login


  Are you using cookies or URL re-writing for session identifier?
 
  Are you doing anything funky with domain names or other such trickery
  which would cause your cookie to not be available upon doing the
  forward?
 
  -Troy
 
  -Original Message-
  From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 08, 2003 9:07 AM
  To: [EMAIL PROTECTED]
  Subject: Repost: Double Login
 
  Hi all,
 
  Some of you had been kind enough to assist with this issue I posted
  previously.  I had thought it was fixed

Installation woes

2003-01-08 Thread Nathan McMinn
When installing Tomcat 4.1.18, during the installation, it autodetects the
jdk install location.  Is there any way to override this?  If not, how do
you change the jdk that tomcat uses?  It is automatically using an older jdk
that Jbuilder installed, and I don't want it to use this one.

--Nathan McMinn



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Installation woes

2003-01-08 Thread Nathan McMinn
John,

Here's the kicker, running SET from the command line (win xp) doesn't
list JAVA_HOME as an existing env var, neither does sys properties -
advanced - environment variables.  Is there somewhere else to look for it?

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 3:41 PM
Subject: RE: Installation woes



 Change the JAVA_HOME environment variable to point to the JDK you want to
 use.

 John


  -Original Message-
  From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 08, 2003 4:39 PM
  To: Tomcat Users List
  Subject: Installation woes
 
 
  When installing Tomcat 4.1.18, during the installation, it
  autodetects the
  jdk install location.  Is there any way to override this?  If
  not, how do
  you change the jdk that tomcat uses?  It is automatically
  using an older jdk
  that Jbuilder installed, and I don't want it to use this one.
 
  --Nathan McMinn
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 

 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Installation woes

2003-01-08 Thread Nathan McMinn
I added it, and it appears to be using the correct jdk.  However, now the
damn thing won't start.  And it closes the terminal window before I can
retreive the error message.

- Original Message -
From: Tam, Michael [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 4:13 PM
Subject: RE: Installation woes


 Nathan,

Adding JAVA_HOME as environment variable under Sys. Properties should
 work.  Where did you add your JAVA_HOME variable i.e. as User variable or
 System variable??  It should be under System Variable.  I am running XP
Home
 on my notebook and it works for me.

 Hope this help.

 Michael

 -Original Message-
 From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 1:50 PM
 To: Tomcat Users List
 Subject: Re: Installation woes


 John,

 Here's the kicker, running SET from the command line (win xp) doesn't
 list JAVA_HOME as an existing env var, neither does sys properties -
 advanced - environment variables.  Is there somewhere else to look for
it?

 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, January 08, 2003 3:41 PM
 Subject: RE: Installation woes


 
  Change the JAVA_HOME environment variable to point to the JDK you want
to
  use.
 
  John
 
 
   -Original Message-
   From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, January 08, 2003 4:39 PM
   To: Tomcat Users List
   Subject: Installation woes
  
  
   When installing Tomcat 4.1.18, during the installation, it
   autodetects the
   jdk install location.  Is there any way to override this?  If
   not, how do
   you change the jdk that tomcat uses?  It is automatically
   using an older jdk
   that Jbuilder installed, and I don't want it to use this one.
  
   --Nathan McMinn
  
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Installation woes

2003-01-08 Thread Nathan McMinn
I understand this.  Usually, however, the Tomcat install process creates
this automagically.  When it autodetects the location of the jdk, it sets
the java home for you.  I think.  I went ahead and set the variable, and am
having a host of other problems now.  Thanks for the advice though.  If the
install routine is going to detect this, it really should detect all
available jdk's, and allow you to select which one to use.

--Nathan

- Original Message -
From: Bill [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 11:17 AM
Subject: Re: Installation woes


 Nathan

 Forgive me if I misunderstood, but it seems you believe this variable
 exists in the OS without creating it.  I cant speak with 100% accuracy
 as to winXP, but in previous versions of windoze, you create the
 variable, it doesnt exist until you do.  Go back to sys
 props--advanced--env variables and there should be a place for adding
 new env variables.


 On Wed, 2003-01-08 at 21:50, Nathan McMinn wrote:
  John,
 
  Here's the kicker, running SET from the command line (win xp)
doesn't
  list JAVA_HOME as an existing env var, neither does sys properties -
  advanced - environment variables.  Is there somewhere else to look for
it?
 
  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Wednesday, January 08, 2003 3:41 PM
  Subject: RE: Installation woes
 
 
  
   Change the JAVA_HOME environment variable to point to the JDK you want
to
   use.
  
   John
  
  
-Original Message-
From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 4:39 PM
To: Tomcat Users List
Subject: Installation woes
   
   
When installing Tomcat 4.1.18, during the installation, it
autodetects the
jdk install location.  Is there any way to override this?  If
not, how do
you change the jdk that tomcat uses?  It is automatically
using an older jdk
that Jbuilder installed, and I don't want it to use this one.
   
--Nathan McMinn
   
   
   
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
   
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
 
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 



 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Double Login?

2003-01-06 Thread Nathan McMinn
I recently switched a web application from a memory realm to a JDBC realm
for authentication.  After making the switch, the web app now requires that
users log in twice.  The app is running with SSL, and using Basic
authentication.  The Login.jsp page listed in the XML below as the welcome
file simply sets up session objects, etc.  The first login occurs before the
Login.jsp page will load.  Once all of the session setup is complete, the
Login.jsp page forwards the user to the application's main menu.  It is at
this point that the system asks for another login.  Has anyone seen this
behavior before? I've already searched Google, JGuru, etc etc.  This is the
current web.xml for the application having the problem.  Any help would be
greatly appreciated.

Thanks..
Nathan McMinn

web-app

mime-mapping
  extensionjs/extension
  mime-typetext/javascript/mime-type
/mime-mapping

  welcome-file-list
welcome-fileLogin.jsp/welcome-file
  /welcome-file-list

security-constraint
  display-nameWWEX Security Constraint/display-name
  web-resource-collection
 web-resource-nameDELETED/web-resource-name
 !-- Define the context-relative URL(s) to be protected --
 url-pattern/*/url-pattern
  /web-resource-collection
  auth-constraint
 !-- Anyone with one of the listed roles may access this area --
 role-nameuser/role-name
  /auth-constraint
  user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
/security-constraint

login-config
  auth-methodBASIC/auth-method
  realm-nameDELETED/realm-name
/login-config

/web-app



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]