Tomcat CVS Versions

2005-03-14 Thread Lionel Farbos
Hi,

I'd want to get the latest version of TC4.1 Manager.
Where is it ? jakarta-tomcat-4.0 ? (is yes, which tag) ?

I search within http://jakarta.apache.org/site/cvsindex.html
If I am right :
jakarta-tomcat is for TC3.2 and TC3.3
jakarta-tomcat-4.0 is for TC4.0 (and TC 4.1?)
jakarta-tomcat-5 is for TC5.0 and TC5.5
jakarta-tomcat-catalina is for TC5.0 ?

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



RE: Using hibernate

2005-03-14 Thread Allistair Crossley
We use straight JDBC and Hibernate on our intranet. JDBC is used for where 
speed is needed, like hitting the database for nav functions etc... but 
Hibernate for pure intranet based applications like holiday forms or purchase 
ordering, because it's nice to persist/unpersist complex application model 
objects without worrying about all the SQL hassle to do this, and speed is not 
an absolute, though saying this Hibernate does not visibly slow anything down 
at all, it's actually v. quick and easy. Initial learning curve but once you're 
in it's good stuff to use, and boasts being the most widely used ORM on any 
platform, so there's good support (part of Jboss now too I believe).

That's my 2p.

Allistair.

 -Original Message-
 From: Larry Meadors [mailto:[EMAIL PROTECTED]
 Sent: 14 March 2005 04:18
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: Using hibernate
 
 
 I have used straight JDBC, Hibernate, and iBATIS. 
 
 For me, the sweet spot is iBATIS. It provides very near the
 performance of JDBC, without the complexity.
 
 IMO, I will use ORM when database vendors support it directly, not
 when I have to wrap my database in a ORM layer.
 
 Larry
 
 
 On Sun, 13 Mar 2005 20:00:08 +0200, haim [EMAIL PROTECTED] wrote:
  We are planing to use object/relational persistence and 
 query service
  like  hibernate or Castor JDO.
  Does anyone have any recomaidations for the above?
  Does anyone has good/bad experience using similar technologies?
  
  Thanks
  Haim
  
  
 -
  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]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Re: starting tomcat from eclipse

2005-03-14 Thread t.n.a.
I am using sysdeo as well (sorry I didn't point it out more clearly). 
Something in my deployment descriptor seems to make it break.

Amrish Bharatiya wrote:
I am using sysdeo tomcat integration plugin for eclipse. it flawlessly
integrates into eclipse. you can try this out. it is avaliable at
http://www.sysdeo.com/eclipse/tomcatPlugin.html
Regards,
Amrish

On Sat, 12 Mar 2005 15:17:59 +0100, t.n.a. [EMAIL PROTECTED] wrote:
 

I thought I had solved the problem by removing a faulty CLASSPATH 
environment variable, but no: still the same problem. I am at a loss, so 
any help is much appreciated.
My config is jdk1.5/eclipse3.0.1/spindle 
v.???/tomcatPluginV3/tomcat5.5.7/Win2k.
This is what I see in the console window when I try to start tomcat. The 
project klapa9 is a tapestry project and uses cayenne and jtds. 
cayenne.jar is in WEB-INF/lib and jtds was added as an external .jar. A 
similar setup seems to work flawlessly on linux.


0 [main] INFO http11.Http11Protocol  - Initializing Coyote HTTP/1.1 on 
http-8080
15 [main] INFO startup.Catalina  - Initialization processed in 1625 ms
406 [main] INFO core.StandardService  - Starting service Catalina
437 [main] INFO core.StandardEngine  - Starting Servlet Engine: Apache 
Tomcat/5.5.7
484 [main] INFO core.StandardHost  - XML validation disabled
1453 [main] ERROR [localhost].[/klapa9]  - Exception starting filter 
redirect
java.lang.NoClassDefFoundError: javax/servlet/Filter
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
   at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1247)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
   at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:211)
   at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
   at 
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:79)
   at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3508)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4079)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
   at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
   [snip]
---

Btw, these are my web.xml and klapa9.xml files, respectively, if it 
helps anything:

web-app
   display-nameklapa9/display-name
   filter
   filter-nameredirect/filter-name
   filter-classorg.apache.tapestry.RedirectFilter/filter-class
   /filter
   filter-mapping
   filter-nameredirect/filter-name
   url-pattern//url-pattern
   /filter-mapping
   servlet
   servlet-nameklapa9/servlet-name
   
servlet-classorg.apache.tapestry.ApplicationServlet/servlet-class
   load-on-startup1/load-on-startup
   /servlet
   servlet-mapping
   servlet-nameklapa9/servlet-name
   url-pattern/app/url-pattern
   /servlet-mapping
/web-app

Context path=/klapa9 reloadable=false 
docBase=D:/posao/klapa9/context debug=6 
workDir=D:/posao/klapa9/radni/

Sorry for the long post, just trying to provide relevant information.
Tomislav
-
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: Idle servlet won't restart

2005-03-14 Thread Nat Titman
Mark Winslow wrote:
Hi,
What happens when you try to get an image?  What, if
any, error messages do you get?
If you retrieve the image directly, an empty page is returned. The error 
log records the following exception:

DBImageViewer: could not retrieve image: java.sql.SQLException: No 
operations allowed after connection closed.

Connection was closed due to the following exception:
** BEGIN NESTED EXCEPTION **
java.sql.SQLException
MESSAGE: Communication link failure: java.io.EOFException, underlying 
cause: null

** BEGIN NESTED EXCEPTION **
java.io.EOFException
STACKTRACE:
java.io.EOFException
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1394)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1538)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1929)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1167)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1278)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1224)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2244)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2192)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
at shared.DBImageViewer.doGet(DBImageViewer.java:86)
A previous poster's suggestion that the database connection could have 
timed out seems like a good direction to investigate, the database is up 
and running because other content from the database appears on the page. 
However, that's from the JSPs, not from this servlet, so the DB 
connection in the servlet looks like the best place to start.

Thanks,
Nat.
--- Nat Titman [EMAIL PROTECTED] wrote:
Hi,
I'm using Tomcat 5.5.3 running as part of an Apache
webserver on Fedora 
Core 1.

My webapps are supported by a servlet which serves
gif images stored in 
a database, it's mapped to the URL pattern
/servlet/image by the 
following XML which is inside the web-app tag of
the web.xml files for 
two webapps, including ROOT.

servlet
servlet-nameDBImageViewer/servlet-name
   
servlet-classshared.DBImageViewer/servlet-class
/servlet

servlet-mapping
servlet-nameDBImageViewer/servlet-name
url-pattern/servlet/image/url-pattern
/servlet-mapping
My problem is that after leaving the webapps
overnight and returning to 
the site, the image servlet appears to have stopped.
While the two 
webapps run fine, the servlet doesn't function until
Tomcat is restarted.

Is there some setting or configuration I'm missing
which would cause the 
servlet to restart after it has 'idled off', or have
I put the servlet 
mapping in the wrong place?

Any advice would help greatly,
Thanks,
Nat.

--
Nat Titman
Developer
MitchellConnerSearson
3-5 High Pavement
The Lace Market
Nottingham  NG1 1HF
Tel +44 (0)115 959 6455
Fax +44 (0)115 959 6456
Direct +44 (0)115 959 6462
www.choosemcs.co.uk
Confidentiality: This e-mail and its attachments are intended
for the above named only and may be confidential. If they have
come to you in error you must take no action based on them,
nor must you copy or show them to anyone; please reply to this
e-mail and highlight the error.
Security Warning: Please note that this e-mail has been
created in the knowledge that Internet e-mail is not a 100%
secure communications medium. We advise that you understand
and observe this lack of security when e-mailing us.
Viruses: Although we have taken steps to ensure that this
e-mail and attachments are free from any virus, we advise that
in keeping with good computing practice the recipient should
ensure they are actually virus free.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


forwarding from HTTPS to HTTP

2005-03-14 Thread Wizard of OS
Hi,
I am trying to implement SSL for Tomcat 5.0.30 Java 1.4 latest for 
selected sites only.

I configured a url path pattern: /jsp/login.jsp
logging onto this site, SSL works, redirecting to /jsp/index.jsp still 
uses SSL :-(
Requesting java actions are comepletely igonored like 
/controller?action=LoginAction

I would really appreciate if you could help folks.
thx anyway
Mike
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


OT - Beware of Firefox + HTML Validator Extension

2005-03-14 Thread Harry Mantheakis
I thought I should share this with any web-app developers on this list.

I recently installed the HTML Validator extension in Firefox. This caused
me no-end of troubles because HTML Validator (on Windows XP) was firing
off rogue secondary requests (!) whenever I was selecting any of my form
submit buttons.

Then I read this blog entry, and realised who the culprit was:

http://ronin.keyboardsamurais.de/evil_firefox_extensions.html

I uninstalled the HTML Validator extension and everything was fine again.

Kudos to the LiveHTTPHeaders extension which showed the double requests
being generated - though at first it made me think I had a faulty mouse!

http://livehttpheaders.mozdev.org/

HTH somebody who may be pulling their hair out.

Harry Mantheakis
London, UK


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



Validator 0.5.5 doesn't have this bug anymore (Re: OT - Beware of Firefox + HTML Validator Extension)

2005-03-14 Thread Christoph Kutzinski
Good point,
I stumbled upon this, too. Thinking this was a Firefox bug, I even filed 
a bug report against it.

Note: The latest version of HTML Validator (0.5.5) fixed this bug. At 
least no more problems in my case.

greetings,
Christoph
Harry Mantheakis wrote:
I thought I should share this with any web-app developers on this list.
I recently installed the HTML Validator extension in Firefox. This caused
me no-end of troubles because HTML Validator (on Windows XP) was firing
off rogue secondary requests (!) whenever I was selecting any of my form
submit buttons.
Then I read this blog entry, and realised who the culprit was:
http://ronin.keyboardsamurais.de/evil_firefox_extensions.html
I uninstalled the HTML Validator extension and everything was fine again.
Kudos to the LiveHTTPHeaders extension which showed the double requests
being generated - though at first it made me think I had a faulty mouse!
http://livehttpheaders.mozdev.org/
HTH somebody who may be pulling their hair out.
Harry Mantheakis
London, 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]


jk2 for Apache2 and Tomcat 4

2005-03-14 Thread Paul Puschmann
Hi,

we want to use Apache2 (2.0.53) as a frontend for out Tomcat (4.1.31)
and don't get the right configuration for our jk2 (2.0.4).
This all runs with Java 1.4.2_06 on Debian Sarge x86.

We want to serve two or three different applications through our
apache2. Each one gets its own VirtualHost and ssl-keys and -rules.
These three application all run on (the) one tomcat.

Now I use the following configs, that I picked from some howto-pages:

Apache2:
# inside workers.properties:

[shm]
file=/var/log/apache2/shm.file
size=1048576

[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

[channel.un:/usr/share/tomcat4/work/jk2.socket]
tomcatId=localhost:8009
debug=0

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[status:status]

[uri:/status/*]
worker1=status:status

# my.domain.de as a substitute for our real dns-name
[uri:my.domain.de:443/*.jsp]
worker1=ajp13:localhost:8009


# mod_jk2.conf:
JkSet config.file /etc/apache2/workers2.properties


# inside the virtual-host:
Location /*
JkUriSet worker ajp13:localhost:8009
/Location

Directory /*/WEB-INF/*
AllowOverride None
Deny from all
/Directory


My problem is now to create the different workers an the entries in the
VirtualHost.

Yes, I did search in google, but most of the stuff used jk1 oder was
about compiling jk2.

Any help appreciated,

kind regards, Paul



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



Re: jk2 for Apache2 and Tomcat 4

2005-03-14 Thread Mladen Turk
Paul Puschmann wrote:
Hi,
we want to use Apache2 (2.0.53) as a frontend for out Tomcat (4.1.31)
and don't get the right configuration for our jk2 (2.0.4).
This all runs with Java 1.4.2_06 on Debian Sarge x86.
Do not use JK2. Use JK instead.
See:
http://jakarta.apache.org/tomcat/connectors-doc/news/20041100.html#20041115.1
JK2 is not supported, neither it will be.
Reasons are many, but the main is that mod_jk is simply a better
product then mod_jk2 ever was.
Regards,
Mladen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Servlet Streaming file to client: Can't override file name

2005-03-14 Thread Jon Wingfield
What happens in FireFox if you do this:
response.setHeader(Content-Disposition, attachment;
filename=\ + theFile.getName() + \);
The relevant spec is here:
http://www.ietf.org/rfc/rfc2183.txt
And for the definition of 'value' it references:
http://www.ietf.org/rfc/rfc2045.txt
The filename parameter must be quoted if it contains spaces.
Jon
Mark Leone wrote:
Thanks. That's exactly what I needed, and it did the trick. Firefox 
browser just grabs the first non-whitespace part of the name, but in IE 
the entire name shows up. Thanks again.

-Mark
Chris Hyzer wrote:
Servlet Streaming file to client: Can't override
file name
123049 by: Mark Leone
  

Its an HTTP header you are looking for, try this:
response.setHeader(Content-Disposition, attachment;
filename= + theFile.getName());
Chris

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


Re: jk2 for Apache2 and Tomcat 4

2005-03-14 Thread Paul Puschmann
Mladen Turk wrote:
 Paul Puschmann wrote:
 
 Hi,

 we want to use Apache2 (2.0.53) as a frontend for out Tomcat (4.1.31)
 and don't get the right configuration for our jk2 (2.0.4).
 This all runs with Java 1.4.2_06 on Debian Sarge x86.

 
 Do not use JK2. Use JK instead.
 See:
 http://jakarta.apache.org/tomcat/connectors-doc/news/20041100.html#20041115.1
 
 
 JK2 is not supported, neither it will be.
 Reasons are many, but the main is that mod_jk is simply a better
 product then mod_jk2 ever was.

Okay,
I didn't notice this at all. Thanks!

Well, i should have some tries now with jk1 (1.2.5). Oh, and I have to
use Apache now instead of Apache2, of course.

If you have some hints or howto's regarding my problem...

Paul


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



RE: jk2 for Apache2 and Tomcat 4

2005-03-14 Thread Dale, Matt

1.2.6 is the latest and should work with Apache 2 so you don't have to go back 
to apache 1.

Ta
Matt

-Original Message-
From: Paul Puschmann [mailto:[EMAIL PROTECTED]
Sent: 14 March 2005 12:28
To: Tomcat Users List
Subject: Re: jk2 for Apache2 and Tomcat 4


Mladen Turk wrote:
 Paul Puschmann wrote:
 
 Hi,

 we want to use Apache2 (2.0.53) as a frontend for out Tomcat (4.1.31)
 and don't get the right configuration for our jk2 (2.0.4).
 This all runs with Java 1.4.2_06 on Debian Sarge x86.

 
 Do not use JK2. Use JK instead.
 See:
 http://jakarta.apache.org/tomcat/connectors-doc/news/20041100.html#20041115.1
 
 
 JK2 is not supported, neither it will be.
 Reasons are many, but the main is that mod_jk is simply a better
 product then mod_jk2 ever was.

Okay,
I didn't notice this at all. Thanks!

Well, i should have some tries now with jk1 (1.2.5). Oh, and I have to
use Apache now instead of Apache2, of course.

If you have some hints or howto's regarding my problem...

Paul


-
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: jk2 for Apache2 and Tomcat 4

2005-03-14 Thread Paul Puschmann
Dale, Matt wrote:
 1.2.6 is the latest and should work with Apache 2 so you don't have to go 
 back to apache 1.
 
 Ta
 Matt
Okay, but I don't get jk1 for apache2 as a ready debian-package.
I prefer ready-built packages, because otherwise I could miss some
important compiling options or get some version-dependancy-errors or such.

Thank you for your advice,

Paul


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



Re: Configuration Problem in Tomcat for HTTPS

2005-03-14 Thread suryadevara dushyanth
I have modified the server.xml and removed the
comments for ssl connector on port 8443. I generated a
self signed certificate in the path of java_home. This
is the procedure given in
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html.

After modifying the server.xml for testing I typed in
https:/Localhost:8443 which should give me the same
tomcat home page but it says page cannot be displayed.

Thanks
Dushyanth


--- Bill Barker [EMAIL PROTECTED] wrote:
 Urm, not really enough info here to help you.  Of
 course I'm assuming that 
 you've already read 

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html.
  Beyond 
 that, you can try setting your logging category
 (log4j/java.util.logging 
 config) for 'org.apache.tomcat.net.jsse' to DEBUG to
 increase the number of 
 messages.
 
 suryadevara dushyanth [EMAIL PROTECTED] wrote
 in message 

news:[EMAIL PROTECTED]
  Hi,
  I am trying to configure my Tomcat with https
 support.
  I tried in two versions of tomcat.
 
  Tomcat 5
  I followed the process as given by the
 documentation
  but https is not working as i typed in the url
  https://localhost:8443; I am getting page not
  available.
 
  Tomcat 4.1.29
 
  I followed the process and modified the server.xml
  file by uncommenting the 8443 port. When i start
 my
  tomcat server it is shutting down and it does not
  start. I tried it through Tomcat Admin page but it
  says resource requested not available.
 
  Please help me out as I have to host my
 application in
  Tomcat using HTTPS port. And I am under a tight
  deadline for hosting this application.
 
  Thanks  Regards
  Dushyanth
 
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com 
 
 
 
 

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: jk2 for Apache2 and Tomcat 4

2005-03-14 Thread Francois JEANMOUGIN


 Okay, but I don't get jk1 for apache2 as a ready debian-package.
 I prefer ready-built packages, because otherwise I could miss some
 important compiling options or get some version-dependancy-errors or such.

It is an open bug in debian. For a reason I don't know, they made a
correlation between jk version and apache version. I built my own mod_jk for
apache2 and it is quite easy. You can try to send one more mail to the debian
devs, perhaps they will finally build one.

François.

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



Re: Configuration Problem in Tomcat for HTTPS

2005-03-14 Thread Antony Paul
If you followed instruction in the tomcat docs the key will be stored
in the users home directory. In windows it will be in c:\documents and
settings\username\.keystore . By default Tomcat looks at this
location for the key.
Are you getting any error in logs ?.



On Mon, 14 Mar 2005 05:09:27 -0800 (PST), suryadevara dushyanth
[EMAIL PROTECTED] wrote:
 I have modified the server.xml and removed the
 comments for ssl connector on port 8443. I generated a
 self signed certificate in the path of java_home. This
 is the procedure given in
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html.
 
 After modifying the server.xml for testing I typed in
 https:/Localhost:8443 which should give me the same
 tomcat home page but it says page cannot be displayed.
 
 Thanks
 Dushyanth
 
 --- Bill Barker [EMAIL PROTECTED] wrote:
  Urm, not really enough info here to help you.  Of
  course I'm assuming that
  you've already read
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html.
   Beyond
  that, you can try setting your logging category
  (log4j/java.util.logging
  config) for 'org.apache.tomcat.net.jsse' to DEBUG to
  increase the number of
  messages.
 
  suryadevara dushyanth [EMAIL PROTECTED] wrote
  in message
 
 news:[EMAIL PROTECTED]
   Hi,
   I am trying to configure my Tomcat with https
  support.
   I tried in two versions of tomcat.
  
   Tomcat 5
   I followed the process as given by the
  documentation
   but https is not working as i typed in the url
   https://localhost:8443; I am getting page not
   available.
  
   Tomcat 4.1.29
  
   I followed the process and modified the server.xml
   file by uncommenting the 8443 port. When i start
  my
   tomcat server it is shutting down and it does not
   start. I tried it through Tomcat Admin page but it
   says resource requested not available.
  
   Please help me out as I have to host my
  application in
   Tomcat using HTTPS port. And I am under a tight
   deadline for hosting this application.
  
   Thanks  Regards
   Dushyanth
  
  
   __
   Do You Yahoo!?
   Tired of spam?  Yahoo! Mail has the best spam
  protection around
   http://mail.yahoo.com
 
 
 
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



driver not found ?

2005-03-14 Thread Philippe Couas
Hi, 
 
I search to connect with Sun Odbc driver to  my Datasource configured in
tomcat 
javax.servlet.ServletException: Cannot create JDBC driver of class '' for
connect URL 'null', cause: No suitable driver
What is wrong ?
 
Thanks
Philippe
 
 
server.xml
  ResourceParams name=jdbc/Agi  
  parameter  
   namedriverClassName/name
   valuesun.jdbc.odbc.JdbcOdbc/value   
  /parameter 
   
  parameter  
   nameurl/name
   valuejdbc:odbc://localhost/AGI/value
  /parameter 


RE: [QUAR]SSL tomcat support

2005-03-14 Thread Sweeney, Bill


 Start with:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html

 Then, this page details the procedure for you to set your systems up
using keytool:
http://java.sun.com/webservices/docs/1.1/tutorial/doc/WebAppSecurity5.ht
ml

 To use the keystore generated with keytool you will need to extract
and convert the client key and cert to a PFX:
http://mark.foster.cc/kb/openssl-keytool.html


server should know his clients...
 To set Tomcat up to require client certificates set 
clientAuth=true  in the server.xml definition for the SSL connector.

- wjs

 

-Original Message-
From: Shahin Hadjikuliev [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 11, 2005 8:45 AM
To: tomcat-user@jakarta.apache.org
Subject: [QUAR]SSL tomcat support

Hi , list!
I want to configure tomcat running on https, main purpose is that:
server should know his clients (only specified clients can user server)
I want to achieve it with certificates


I have read some documentation on java.sun.com
http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebAppSecurity6.ht
m

but it doesnt sufficient for me, can anybody tell me more info about
this


Thanx a lot

-
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: driver not found ?

2005-03-14 Thread Parsons Technical Services
Philippe,
Watch the list and please answer questions asked as the information needed 
to help you has not been included in your email.

Please tell us the version of Tomcat.
What Operating System are you using?
Please post the server.xml, web.xml and context.xml or appname.xml
This may make a big email but too much information is better that too 
little.

Thank You,
Doug
- Original Message - 
From: Philippe Couas [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, March 14, 2005 9:13 AM
Subject: driver not found ?


Hi,
I search to connect with Sun Odbc driver to  my Datasource configured in
tomcat
javax.servlet.ServletException: Cannot create JDBC driver of class '' for
connect URL 'null', cause: No suitable driver
What is wrong ?
Thanks
Philippe
server.xml
 ResourceParams name=jdbc/Agi
 parameter
  namedriverClassName/name
  valuesun.jdbc.odbc.JdbcOdbc/value
 /parameter
 parameter
  nameurl/name
  valuejdbc:odbc://localhost/AGI/value
 /parameter

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


Re: jk2 for Apache2 and Tomcat 4

2005-03-14 Thread Sbastien GALLET
Paul Puschmann a écrit :
Dale, Matt wrote:
 

1.2.6 is the latest and should work with Apache 2 so you don't have to go back 
to apache 1.
Ta
Matt
   

Okay, but I don't get jk1 for apache2 as a ready debian-package.
I prefer ready-built packages, because otherwise I could miss some
important compiling options or get some version-dependancy-errors or such.
 

I've made one for my personal use.
Let me know if you want it
Thank you for your advice,
Paul
 

Sebastien
-
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: Scoping of JNDI Resources?

2005-03-14 Thread Hassan Schroeder
J Malcolm wrote:
I've actually got my realms defined per host. That's not the problem. The
problem is that the datasources for the various realms must be declared
globally (apparently). 

I'm assuming that any datasource that is defined globally is accessible to
any Tomcat app that knows the datasource name, right?  This means that the
realm authentication db for one host is accessible to any other host that
might be able to determine the datasource name. 
Ah, OK, this isn't a problem I've had to deal with, but:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/globalresources.html
:: I would read this:
The GlobalNamingResources element defines the global JNDI
resources for the Server.
These resources are listed in the server's global JNDI resource
context. This context is distinct from the per-web-application
JNDI contexts described in the JNDI Resources HOW-TO. The resources
defined in this element are not visible in the per-web-application
contexts unless you explicitly link them with ResourceLink
elements.
:: as refuting the above concern...
But I don't have time to test that theory right now :-)
HTH!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: jk2 for Apache2 and Tomcat 4

2005-03-14 Thread Paul Puschmann
Sébastien GALLET wrote:
 Paul Puschmann a écrit :
 
 Dale, Matt wrote:
  

 1.2.6 is the latest and should work with Apache 2 so you don't have
 to go back to apache 1.

 Ta
 Matt
   

 Okay, but I don't get jk1 for apache2 as a ready debian-package.
 I prefer ready-built packages, because otherwise I could miss some
 important compiling options or get some version-dependancy-errors or
 such.
  

 I've made one for my personal use.
 
 Let me know if you want it
 
Hi Sébastien,

this would be great. My system is Sarge on x86, using the newest Apache2
(2.0.53).

I'd like to test it. Big mails are no problem for me (and hopefully not
for my provider).

Paul


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



TomCat Proxied by WebServer´s

2005-03-14 Thread Acácio Furtado Costa
HI List.
 
Does anyone know if is it possible to use two Webserver´s (Proxies, one 
external and other internal) connected to multiples TomCat application Server´s 
(Grouped in Cluster) ? Better , Is it possible to have two connectors in 
operation at same time connected in same group of TomCat server´s?
 
Cause, we´ll need to provide access to external user´s by Webserver (Proxy 1) 
placed in DMZ and  will provide access to internal user´s by Webserver (Proxy2) 
placed inside of our network but the Application nodes (tomCat 5.0.x)  are in 
the same cluster (grouped by).
 
Figure  to  Ilustrate the situation
 
 
  BY++ +-+  
  +--+
+-+  ++ 
  By
Internet  -Firewall  --- Webserver1 ---  
Firewall   Tomcat Nodes in Cluster 1,2,3   --  Webserver2  
 Internal User´s
  ++ +-+
+---+
+-+ ++

 

External User´s DMZ 
  
Internal Network 

 


Other Server´s in the  Internal 
network -Oracle DB, Crystal Reports, WebDav Files


used by J2EE aplication´s  
Aplication Monitor, Email , LDAP

 

 

 

Thanks in advance

 

Acacio Furtado Costa
GIA - Magnesita S/A
*  [EMAIL PROTECTED]

 


Restriction of pages?

2005-03-14 Thread Chris Cherrett
Hi 

I would like to restrict access to certain pages within a webapp to certain IP 
addesses but not to the whole webapp. What is the best way to do this or do I 
need to take another approach?

Thanks
-- 
Chris Cherrett

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



RE: Too many open files exception

2005-03-14 Thread George Sexton
Most likely, you are not properly closing resources like files and such, and
a change in the Garbage collection is hurting you.

My advice would be to run findbugs and fix any issues it points out.

http://findbugs.sourceforge.net/


George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Moderate Extremist [mailto:[EMAIL PROTECTED] 
 Sent: Friday, March 11, 2005 5:38 AM
 To: tomcat-user@jakarta.apache.org
 Subject: Too many open files exception
 
 A coworker of mine had a Tomcat-driven site switched over to JVM 1.4.2
 from JVM 1.3.1.  He got an email from the client about two hours later
 saying they were getting a bunch of errors:
 
 Internal Servlet Error:
 
 javax.servlet.ServletException: common.cException: common.cException:
 java.io.FileNotFoundException: 
 /space/icrp/WEB-INF/icrp.properties (Too
 many open files)
 at
 org.apache.jasper.runtime.PageContextImpl.handlePageException(
 PageContextImpl.java:461)
 at
 _0002ferror_0002ejsperror_jsp_5._jspService(_0002ferror_0002ej
 sperror_jsp_5.java:187)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 ...
 Root cause:
 
 common.cException: common.cException: common.cException:
 java.io.FileNotFoundException: 
 /space/icrp/WEB-INF/icrp.properties (Too
 many open files)
 at common.cUtils.closeConnections(cUtils.java:871)
 at
 _0002ferror_0002ejsperror_jsp_5._jspService(_0002ferror_0002ej
 sperror_jsp_5.java:177)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 ...
 
 After he got the email he restarted the site only to have it 
 behave in a
 similar fashion over half an hour later.  We scoured online 
 with the above
 Java error msg to no avail.
 
 My initial thought was to peruse the Apache logs to see if there were
 entries that correlated to when the crashes occured and what were the
 resulting message; this is what I found:
 
 143.65.99.20 - - [07/Mar/2005:20:38:51 -0500] GET 
 /wizsearch.jsp?add=...
 HTTP/1.1 500 612 http://www...; Mozilla/4.0 (compatible; MSIE 6.0;
 Windows NT 5.1)
 217.44.173.38 - - [07/Mar/2005:20:38:51 -0500] GET
 /abstract.jsp?SID=67466ProjectID=164428 HTTP/1.1 500 612
 http://www.../projectlist.jsp?SID=67466ShowCart=false; Mozilla/5.0
 (Macintosh; U; PPC Mac OS X; en-gb) AppleWebKit/125.5.5 (KHTML, like
 Gecko) Safari/125.12
 212.174.145.126 - - [07/Mar/2005:20:38:51 -0500] GET / 
 HTTP/1.1 500 607
 - Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5)
 Gecko/20041107 Firefox/1.0
 169.142.1.1 - - [07/Mar/2005:20:38:51 -0500] GET 
 /servlet/search/?CSO=5.5
 HTTP/1.1 302 448 http://www.google.com/search?q=...; Mozilla/4.0
 (compatible; MSIE 6.0; Windows 98)
 
 62.128.179.3 - - [08/Mar/2005:08:23:57 -0500] GET 
 /error.jsp?SID=68030
 HTTP/1.1 500 612 http://www.../projectlist.jsp?SID=68030; 
 Mozilla/4.0
 (compatible; MSIE 6.0; Windows NT 5.0)
 62.128.179.2 - - [08/Mar/2005:08:23:57 -0500] GET 
 /error.jsp?SID=68031
 HTTP/1.0 500 600 http://www.../wizsearch.jsp?add=...; Mozilla/4.0
 (compatible; MSIE 6.0; Windows NT 5.0)
 
 [Mon Mar  7 20:38:51 2005] [info] [client 169.142.1.1] 
 (32)Broken pipe:
 client stopped connection before rflush completed
 [Mon Mar  7 20:38:51 2005] [info] [client 217.44.173.38] 
 (32)Broken pipe:
 client stopped connection before rflush completed
 [Mon Mar  7 20:38:51 2005] [info] [client 143.65.99.20] 
 (32)Broken pipe:
 client stopped connection before rflush completed
 [Mon Mar  7 20:38:51 2005] [info] [client 212.174.145.126] (32)Broken
 pipe: client stopped connection before rflush completed
 
 [Tue Mar  8 08:23:57 2005] [info] [client 62.128.179.3] 
 (32)Broken pipe:
 client stopped connection before rflush completed
 [Tue Mar  8 08:23:57 2005] [info] [client 62.128.179.2] 
 (32)Broken pipe:
 client stopped connection before rflush completed
 
 I found out the rflush message normally meant that a user 
 has pressed
 the browser's stop button, but to have the same messages appear
 simultaneously 25-30 times from the same 2-4 IPs seems kind 
 of fishy.  I
 did a nslookup and I don't think those IPs belong to indexing 
 services.
 Has anyone seen anything like this, and if so, what does this 
 mean?  What
 kind of problems normally manifest itself through Too many 
 open files
 messages?  And is this really a Tomcat problem, Apache problem, or a
 problem caused by
 something else?
 
 BTW this site is currently using Apache 1.3.26 and Tomcat 
 3.2.4; would we
 be able to get rid of this issue if we started using Apache 
 2.0.xx and/or
 a new version of Tomcat?
 
 Thanks
 
 --
 
 
 Joe Tseng
 
 I can be Googled.  Therefore I am.
 
 
 
 -
 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: DataSource using Commons libraries 5.5.7

2005-03-14 Thread sven morales
Hi,
   I am not exactly sure what you meant by you don't
have to do that ?  For example, how would a class
differentiate between
org.apache.commons.dbcp.BasicDataSourceFactory and
org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
without doing anything? Off course the import
declarations have to be changed and classes recompiled
for classes using them directly.   My usage of it was
container manage and requires reformatting Resource
therefore I don't have the need for recompilations. 
Perhaps a new DTD will help clarify what should be in
the context.xml file.  
   My comments were more of heads-up to people doing
a conversion to the newer 5.5.7 and newer.

aka_sergio

--- QM [EMAIL PROTECTED] wrote:

 On Sun, Mar 13, 2005 at 11:56:02PM -0800, sven
 morales wrote:
 :   Tomcat 5.5.x and newer have repackaged the
 commons
 : libraries into naming-xxx.jar files and it is
 probably
 : causing lots of headache to people doing a
 conversion
 : from older distro.
 
 I don't see the problem.
 
 Chances are, this was done such that Tomcat could
 use one version of the
 libraries while webapps run within Tomcat can use
 other versions.  In
 other words, package renaming (when done properly)
 is one way to address
 version skew in a shared environment.
 
 Are you renaming your package imports to reflect the
 Tomcat-renamed
 packages?  You shouldn't have to do that.
 
 -QM
 
 -- 
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 

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




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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



ENC: TomCat Proxied by WebServer´s - correction

2005-03-14 Thread Acácio Furtado Costa


HI List.
 
Does anyone know if is it possible to use two Webserver´s (Proxies, one 
external and other internal) connected to multiples TomCat application Server´s 
(Grouped in Cluster) ?

 Better , Is it possible to have two connectors (AJP) in operation at same time 
connected in same group of TomCat server´s? 
 
Cause, we´ll need to provide access to external user´s by Webserver 
(Proxy 1) placed in DMZ and  will provide access to internal user´s by 
Webserver (Proxy2) placed in internal network and the Application nodes (tomCat 
5.0.x)  are in the same cluster (grouped by).
 
Figure  to  Ilustrate the situation
 
 ==  ==      
=   == 
Internet ---Firewall --- Webserver1 --- Firewall --- Tomcat Nodes in 
Cluster 1,2,3 --- Webserver2---Internal
 ==  ==      
=   ==  user´s
External User´s  DMZ   Internal 
Network 
 


Other Server´s in the 
Internal network -  Oracle DB, Crystal Reports, WebDav Files. Email, LDAP, 
Aplication Monitor


Thanks in advance


Acacio Furtado Costa
GIA - Magnesita S/A
*  [EMAIL PROTECTED]

 

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



Re: DataSource using Commons libraries 5.5.7

2005-03-14 Thread QM
On Mon, Mar 14, 2005 at 08:55:35AM -0800, sven morales wrote:
:I am not exactly sure what you meant by you don't
: have to do that ?  For example, how would a class
: differentiate between
: org.apache.commons.dbcp.BasicDataSourceFactory and
: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
: without doing anything?

That's the idea -- it won't have to. =)

Tomcat repackaged the classes to essentially give itself private copies.
In turn, if your code was using those classes, simply include the proper
JAR files in WEB-INF/lib and you're done.  Developer code shouldn't rely
on the Tomcat-specific classes.



: My usage of it was
: container manage and requires reformatting Resource
: therefore I don't have the need for recompilations. 

Now I see what you mean.  I originally thought your code was
directly calling the (now-repackaged) classes.

-QM



-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Restriction of pages?

2005-03-14 Thread QM
On Mon, Mar 14, 2005 at 08:50:10AM -0700, Chris Cherrett wrote:
: I would like to restrict access to certain pages within a webapp to certain 
IP 
: addesses but not to the whole webapp. What is the best way to do this or do I 
: need to take another approach?

You don't state what version of Tomcat you run; but if it's 4.1 or later
(maybe 4.0 and later?) you can take advantage of servlet filters.
They're part of the servlet spec (2.3 and later) so using them won't tie
you to Tomcat.

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Restriction of pages?

2005-03-14 Thread Chris Cherrett
Tomcat 5.028.

Will that do amd is your solution the only one?

Thanks

On March 14, 2005 10:28 am, QM wrote:
 On Mon, Mar 14, 2005 at 08:50:10AM -0700, Chris Cherrett wrote:
 : I would like to restrict access to certain pages within a webapp to
 : certain IP addesses but not to the whole webapp. What is the best way to
 : do this or do I need to take another approach?

 You don't state what version of Tomcat you run; but if it's 4.1 or later
 (maybe 4.0 and later?) you can take advantage of servlet filters.
 They're part of the servlet spec (2.3 and later) so using them won't tie
 you to Tomcat.

 -QM

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



RE: Scoping of JNDI Resources?

2005-03-14 Thread J Malcolm
Hassan,

Thank you so much.  I figured there had to be some sort of answer for that.
This makes sense.

I really appreciate the help.

Jerry

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 14, 2005 9:00 AM
To: Tomcat Users List
Subject: Re: Scoping of JNDI Resources?

J Malcolm wrote:
 I've actually got my realms defined per host. That's not the problem. The
 problem is that the datasources for the various realms must be declared
 globally (apparently). 

 I'm assuming that any datasource that is defined globally is accessible to
 any Tomcat app that knows the datasource name, right?  This means that the
 realm authentication db for one host is accessible to any other host that
 might be able to determine the datasource name. 

Ah, OK, this isn't a problem I've had to deal with, but:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/globalresources.html


:: I would read this:

 The GlobalNamingResources element defines the global JNDI
 resources for the Server.

 These resources are listed in the server's global JNDI resource
 context. This context is distinct from the per-web-application
 JNDI contexts described in the JNDI Resources HOW-TO. The resources
 defined in this element are not visible in the per-web-application
 contexts unless you explicitly link them with ResourceLink
 elements.

:: as refuting the above concern...

But I don't have time to test that theory right now :-)

HTH!
-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

   dream.  code.



-
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 CVS Versions

2005-03-14 Thread Mark Thomas
I can't speak for TC3 but for a complete build of 4.0.x from CVS you need:
jakarta-servletapi-4 (HEAD tag)
jakarta-tomcat-4 (tomcat_40_ tag)
jakarta-tomcat-connectors (HEAD tag) (not sure about this one)
For 4.1.x you need:
jakarta-servletapi-4 (HEAD tag)
jakarta-tomcat-4 (HEAD tag)
jakarta-tomcat-connectors (HEAD tag)
jakarta-tomcat-jasper (tomcat_4_branch tag)
For 5.0.x you need:
jakarta-servletapi-5 (HEAD tag)
jakarta-tomcat-5 (TOMCAT_5_0 tag)
jakarta-tomcat-catalina (TOMCAT_5_0 tag)
jakarta-tomcat-connectors (TOMCAT_5_0 tag)
jakarta-tomcat-jasper (TOMCAT_5_0 tag)
For 5.5.x you need:
jakarta-servletapi-5 (HEAD tag)
jakarta-tomcat-5 (HEAD tag)
jakarta-tomcat-catalina (HEAD tag)
jakarta-tomcat-connectors (HEAD tag)
jakarta-tomcat-jasper (HEAD tag)
Lionel Farbos wrote:
Hi,
I'd want to get the latest version of TC4.1 Manager.
Where is it ? jakarta-tomcat-4.0 ? (is yes, which tag) ?
I search within http://jakarta.apache.org/site/cvsindex.html
If I am right :
jakarta-tomcat is for TC3.2 and TC3.3
jakarta-tomcat-4.0 is for TC4.0 (and TC 4.1?)
jakarta-tomcat-5 is for TC5.0 and TC5.5
jakarta-tomcat-catalina is for TC5.0 ?
-
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: Configuration Problem in Tomcat for HTTPS

2005-03-14 Thread suryadevara dushyanth
No I am not getting any errors in logs.


--- Antony Paul [EMAIL PROTECTED] wrote:
 If you followed instruction in the tomcat docs the
 key will be stored
 in the users home directory. In windows it will be
 in c:\documents and
 settings\username\.keystore . By default Tomcat
 looks at this
 location for the key.
 Are you getting any error in logs ?.
 
 
 
 On Mon, 14 Mar 2005 05:09:27 -0800 (PST),
 suryadevara dushyanth
 [EMAIL PROTECTED] wrote:
  I have modified the server.xml and removed the
  comments for ssl connector on port 8443. I
 generated a
  self signed certificate in the path of java_home.
 This
  is the procedure given in
 

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html.
  
  After modifying the server.xml for testing I typed
 in
  https:/Localhost:8443 which should give me the
 same
  tomcat home page but it says page cannot be
 displayed.
  
  Thanks
  Dushyanth
  
  --- Bill Barker [EMAIL PROTECTED] wrote:
   Urm, not really enough info here to help you. 
 Of
   course I'm assuming that
   you've already read
  
 

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html.
Beyond
   that, you can try setting your logging category
   (log4j/java.util.logging
   config) for 'org.apache.tomcat.net.jsse' to
 DEBUG to
   increase the number of
   messages.
  
   suryadevara dushyanth [EMAIL PROTECTED]
 wrote
   in message
  
 

news:[EMAIL PROTECTED]
Hi,
I am trying to configure my Tomcat with https
   support.
I tried in two versions of tomcat.
   
Tomcat 5
I followed the process as given by the
   documentation
but https is not working as i typed in the url
https://localhost:8443; I am getting page not
available.
   
Tomcat 4.1.29
   
I followed the process and modified the
 server.xml
file by uncommenting the 8443 port. When i
 start
   my
tomcat server it is shutting down and it does
 not
start. I tried it through Tomcat Admin page
 but it
says resource requested not available.
   
Please help me out as I have to host my
   application in
Tomcat using HTTPS port. And I am under a
 tight
deadline for hosting this application.
   
Thanks  Regards
Dushyanth
   
   
   
 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
   protection around
http://mail.yahoo.com
  
  
  
  
  
 

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
  
  
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 -- 
 rgds
 Antony Paul
 http://www.geocities.com/antonypaul24/
 

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Tomcat 5.5.7+JRockit = windows service won't start

2005-03-14 Thread BB Commish
Hi,
I am running Tomcat 5.5.7 with the JRockit 1.5.0 jdk. Everything is fine if 
I start TC using the startup.bat approach but installing it as a Windows 
service presents an issue (XP Home). I have tried using the Tomcat.exe 
installer and by modifying the provided service.bat file (modified to point 
to the jrockit jvm.dll) to install the service. The service gets installed 
ok but will not start - the following message is displayed:

The Tomcat5 service could not be started.
A service specific error occurred: 0.
Perhaps the Tomcat5.exe process manager is trying to send sun jvm specific 
parameters to the jrockit jvm? I have tried stripping down the service.bat 
to the minimum but no change in results. Any suggestions would be 
appreciated.

Thanks,
Brad

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


Re: Tomcat 5.5.7+JRockit = windows service won't start

2005-03-14 Thread Mark Thomas
Perhaps you could try looking in the registry to see what parameters 
have been set there and if they are compatible with the JRockit JVM?

Mark
BB Commish wrote:
Hi,
I am running Tomcat 5.5.7 with the JRockit 1.5.0 jdk. Everything is fine 
if I start TC using the startup.bat approach but installing it as a 
Windows service presents an issue (XP Home). I have tried using the 
Tomcat.exe installer and by modifying the provided service.bat file 
(modified to point to the jrockit jvm.dll) to install the service. The 
service gets installed ok but will not start - the following message is 
displayed:

The Tomcat5 service could not be started.
A service specific error occurred: 0.
Perhaps the Tomcat5.exe process manager is trying to send sun jvm 
specific parameters to the jrockit jvm? I have tried stripping down the 
service.bat to the minimum but no change in results. Any suggestions 
would be appreciated.

Thanks,
Brad

-
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 freezes when accessing db after several queries

2005-03-14 Thread Larry Johnson
Hi all,

I've encountered a rather strange error that I need some help
getting to the bottom of. Recently I lost the hard drive on one of my tomcat
application servers. I've since reinstalled and set everything on the
effected machine to mirror the configuration of my other app servers (which
are working fine). However, now when I access the webapp on this server
tomcat seems to freeze (like it's waiting for something) after several
queries to the database are executed. After this happens I am unable to
shutdown tomcat without finding the process number and terminating it using
kill -9 as shutdown.sh fails to halt execution. This seems pretty strange to
me since one, the problem occurs without any errors appearing in
catalina.out or the localhost_log files and two the webapp is able to access
the DB with several queries before it encounters any problems. Does anyone
have any ideas what may be causing this to happen?

Thanks in advance,

Larry 

Here's some info about my runtime environment:

OS: Redhat 9
Tomcat: 5.0.28
JVM: 1.5.02
DB: Oracle 9i

Here's the JDBC connection pool XML I'm using:

?xml version='1.0' encoding='utf-8'? 
Context docBase=/opt/tomcat/webapps/jupiter path= cookies=false
workDir=work/Catalina/localhost/jupiter 
  Resource auth=Container description=Oracle datasource pool.  See
server.xml file. name=jdbc/EnvictusDB type=javax.sql.DataSource/ 
  ResourceParams name=jdbc/EnvictusDB 
parameter 
  namefactory/name 
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value 
/parameter 
parameter 
  namepassword/name 
  value3nv1ctus/value 
/parameter 
parameter 
  nameurl/name 
  valuejdbc:oracle:thin:@11.10.10.1:1521:dbname/value 
/parameter 
parameter 
  namedriverClassName/name 
  valueoracle.jdbc.driver.OracleDriver/value 
/parameter 
parameter 
  namemaxActive/name 
  value0/value 
/parameter 
parameter 
  namemaxIdle/name 
  value40/value 
/parameter 
parameter 
  namemaxWait/name 
  value15000/value 
/parameter 
parameter 
  nameusername/name 
  valueenvictus/value 
/parameter 
parameter  
  nameremoveAbandoned/name  
  valuetrue/value  
/parameter   
parameter  
  nameremovedAbandonedTimeout/name  
  value60/value  
/parameter  
  /ResourceParams 
/Context




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



RE: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-14 Thread David Tonhofer, m-plify S.A.
Well, I'm running that configuration in 5.5.7, yes.
Holds water so far. But this has been done by directly
editing server.xml - so it's not really a self-contained
webapp configuration.
Best regards,
-- David
--On Thursday, March 10, 2005 9:48 AM -0500 Phillip Qin [EMAIL PROTECTED] 
wrote:
Very useful info. Thx. Have you actually tested your configure in
tc5.5.7/.8, i.e. Tomcat Manager app deploy/redeploy etc.?

-Original Message-
From: David Tonhofer, m-plify S.A. [mailto:[EMAIL PROTECTED]
Sent: March 10, 2005 5:55 AM
To: Tomcat Users List
Subject: Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x
Juste pour info:
I have written up my DataSourceRealm with DBCP that I got working before
02:00 this night (eww) into the DBCP Twiki. Not the best place, but hey,
might be useful:
http://wiki.apache.org/jakarta-commons/DBCP
Enjoy,
-- David
--On Wednesday, March 09, 2005 8:40 PM -0800 alexander dosher
[EMAIL PROTECTED] wrote:
Hassan Schroeder makes my day:
How about something like:
  (the correct answer)
YES, thank you.  i had a resourceName instead of a dataSourceName in
my DataSourceRealm, left over from trying to use a UserDatabaseRealm,
which i didn't really understand and isn't even in the docs anymore
anyway. duh.  *and* this method *is* reopening connections, which
JDBCRealm didn't. yay!
   dream.  code.
no, thank you. had an awk dream once. i don't recommend it.  ;-)
--alex.

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


Redhat Tomcat support

2005-03-14 Thread Trice, Jim
All,
   I'm relatively new to Tomcat support. Has any had any experience with
RedHat support for Tomcat? We're currently running Tomcat 4.1 and would have
to upgrade to 5.5 to get support from RedHat. Is it worth it?
 
Jim

 

 

James H. Trice

Haas TCM, Inc.

[EMAIL PROTECTED]

(512) 519-3955

 



Re: Redhat Tomcat support

2005-03-14 Thread QM
On Mon, Mar 14, 2005 at 03:57:28PM -0600, Trice, Jim wrote:
:I'm relatively new to Tomcat support. Has any had any experience with
: RedHat support for Tomcat? We're currently running Tomcat 4.1 and would have
: to upgrade to 5.5 to get support from RedHat. Is it worth it?

I've never used RedHat's Tomcat support.  One question to ask yourself,
though, is whether you need support beyond the mailing list and your own
RD.  

True, there's no guarantee the list will solve any and all questions
you send in; but if you follow the list (to keep note of trends, bugs,
and general advice) and are conservative about upgrades (to avoid being
the first to encounter a bug) then maybe you'll do alright on your own.

(Well, it also helps to keep up with the servlet spec and follow best
practices for J2EE development, but that goes for any container ;)

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Tomcat 5.5.7+JRockit = windows service won't start

2005-03-14 Thread Dominik Drzewiecki

 Perhaps the Tomcat5.exe process manager is trying to send sun jvm
 specific parameters to the jrockit jvm? 

Indeed, it does. Tomcat5w.exe passes -Xrs to the jvm and you can do
nothing about it as it is hardcoded.

See Bugzilla Bug 33777:
http://issues.apache.org/bugzilla/show_bug.cgi?id=33777

regz
/dd



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



Re: Redhat Tomcat support

2005-03-14 Thread QM
On Mon, Mar 14, 2005 at 03:57:28PM -0600, Trice, Jim wrote:
: [snip]
: RedHat support for Tomcat? We're currently running Tomcat 4.1 and would have
: to upgrade to 5.5 to get support from RedHat. Is it worth it?

by the way, in response to your question Is it worth it? -- did you
mean RedHat's Tomcat Support or just upgrading from 4.1 - 5.5?

The upgrade has several benefits, including all of the new servlet spec
2.4/JSP 2.0 features.  That, and sticking with a recent release
increases your chances of list-based support (because you'd be running
the same version as most other list members).

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



LDAP Realm issues

2005-03-14 Thread William Stranathan
I opened a bug on this a couple of weeks ago, but it hasn't been
touched.  Maybe other folks have seen this behavior...

I'm using the LDAP realm for AAA in my application.  However, the LDAP
server it connects to drops stale sessions after a pretty short time. 
Evidently, Tomcat tries to keep connections open so it doesn't have to
connect later on.  Unfortunately, this causes authentication failures
because the host it wants to connect with is no longer there (er...the
connection isn't, anyhow).  After one failure, Tomcat drops the
connection, the user tries again, and gets in.  But 5 minutes later,
the next user will have to try again.

Here's the stack trace that get's logged:

2005-03-11 08:33:47 JNDIRealm[/iso]:   Searching for billybob
2005-03-11 08:33:47 JNDIRealm[/iso]:   base:
ou=users,dc=mycompany,dc=com  filter:
((objectClass=appUser)(uid=billybob))
2005-03-11 08:33:47 JNDIRealm[/iso]: Exception performing authentication
javax.naming.CommunicationException: Request: 7 cancelled; remaining
name 'ou=users,dc=mycompany,dc=com'
at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:60)
at com.sun.jndi.ldap.Connection.readReply(Connection.java:405)
at com.sun.jndi.ldap.LdapClient.getSearchReply(LdapClient.java:611)
at com.sun.jndi.ldap.LdapClient.search(LdapClient.java:534)
at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1944)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1806)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
at 
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
at 
javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
at 
org.apache.catalina.realm.JNDIRealm.getUserBySearch(JNDIRealm.java:1074)
at org.apache.catalina.realm.JNDIRealm.getUser(JNDIRealm.java:967)
at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:916)
at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:809)
at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:235)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

2005-03-11 08:33:47 JNDIRealm[/iso]: Closing directory context

Any magic undocumented setting that will work around this?

Thanks,
Will

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



Re: Configuration Problem in Tomcat for HTTPS

2005-03-14 Thread Jason Bainbridge
On Mon, 14 Mar 2005 12:04:55 -0800 (PST), suryadevara dushyanth
[EMAIL PROTECTED] wrote:
 No I am not getting any errors in logs.

Where exactly is your .keystore? You are best putting it somewhere
simple and then referencing it with the parameter keystoreFile in the
connector for the SSL.

As a previous poster stated the default place for the .keystore to be
created and looked for by tomcat is in a user's home directory so say
for example if you were running it as a service under LocalSystem
(something you shouldn't do for security reasons) then LocalSystem
wouldn't find the .keystore.

Following those tutorials has always worked first go for me so
carefully step through what is written there and see if you forgot
something.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



RE: Why so much virtual memory?

2005-03-14 Thread Montz, James C. (James Tower)
On a related note, It would appear to me that java is not adhering to
the -Xmx option;

I have several instances that report using 3-4X RSS Memory what -Xmx is
set to.

For example,
Instance1:
 CATALINA_OPTS=-sqerver -Xms64m -Xmx128m
  PS Ouput: 
USER%CPU%MEMVSZ RSS
instanc10.7 8.9 509284  343636

Running on Redhat ES3 U4, Sun J2SDK 1.4.2_04

Anyone seen similar behaviour, tomcat or Java issue?, explanations?

-Original Message-
From: David Causse [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 11, 2005 11:45 AM
To: Tomcat Users List
Subject: Re: Why so much virtual memory?

Mark Winslow wrote:

I start Tomcat 5.5.7 and it immediately reports about 450 megabytes of 
virtual memory usage in the linux app top.  Is this normal?  Is it just

allocating it or is it really using it?  It takes about 1 to 2 seconds 
to start and there's no way an application can write 450 megs of disk 
memory in that time period, or at least I don't think it can.

I'm asking because I'm wondering what my memory requirements are going 
to be for a collocated server I'm setting up.  The ISP charges more for

more memory.
 I'm looking at 512 megs, but can pay about 50% more and get 1024.

If Tomcat could run more efficiently without having to put things in 
virtual memory, I may want to pay the extra money.

Thanks.

  

IMHO you don't have to worry about memory.
You should not look at VIRT but only RES or %MEM (linux ps).

Memory management with is very difficult to tune well, you'll need to
test a lot of arguments.
If you don't run into OutOfMemory exception you don't have to worry,
unused memory is wasted memory.

David.


-
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: Redhat Tomcat support

2005-03-14 Thread Phillip Qin
Agree. Whether O/S is Red hat or Debian, I also download tc from apache site
and install it.

-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: March 14, 2005 5:05 PM
To: Tomcat Users List
Subject: Re: Redhat Tomcat support


On Mon, Mar 14, 2005 at 03:57:28PM -0600, Trice, Jim wrote:
:I'm relatively new to Tomcat support. Has any had any experience with
: RedHat support for Tomcat? We're currently running Tomcat 4.1 and would
have
: to upgrade to 5.5 to get support from RedHat. Is it worth it?

I've never used RedHat's Tomcat support.  One question to ask yourself,
though, is whether you need support beyond the mailing list and your own
RD.  

True, there's no guarantee the list will solve any and all questions you
send in; but if you follow the list (to keep note of trends, bugs, and
general advice) and are conservative about upgrades (to avoid being the
first to encounter a bug) then maybe you'll do alright on your own.

(Well, it also helps to keep up with the servlet spec and follow best
practices for J2EE development, but that goes for any container ;)

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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


!DSPAM:42360a7889998607353539!


Re: Why so much virtual memory?

2005-03-14 Thread QM
On Mon, Mar 14, 2005 at 04:12:16PM -0600, Montz, James C. (James Tower) wrote:
: On a related note, It would appear to me that java is not adhering to
: the -Xmx option;
: 
: I have several instances that report using 3-4X RSS Memory what -Xmx is
: set to.

Keep in mind, -Xmx and -Xms are options for the heap.  In turn, the heap
is the raw memory space where the JVM creates objects. 

The JVM often uses more memory than the heap for its internal
housekeeping and such.  I don't recall having seen it use as much as 3-4
times the heap allocation, but I suppose it's possible.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: tomcat freezes when accessing db after several queries

2005-03-14 Thread George Sexton
Look for something like this:

Try {
statement.execUupdate(some statement);
} catch (SQLException se){
}


Make sure that the catch has:

conn.rollback();

In JDBC, a failed update leaves the underlying record locked until it is
rolled back.



George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Larry Johnson [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 14, 2005 2:39 PM
 To: tomcat-user@jakarta.apache.org
 Subject: tomcat freezes when accessing db after several queries
 
 Hi all,
 
   I've encountered a rather strange error that I need some help
 getting to the bottom of. Recently I lost the hard drive on 
 one of my tomcat
 application servers. I've since reinstalled and set everything on the
 effected machine to mirror the configuration of my other app 
 servers (which
 are working fine). However, now when I access the webapp on 
 this server
 tomcat seems to freeze (like it's waiting for something) after several
 queries to the database are executed. After this happens I am 
 unable to
 shutdown tomcat without finding the process number and 
 terminating it using
 kill -9 as shutdown.sh fails to halt execution. This seems 
 pretty strange to
 me since one, the problem occurs without any errors appearing in
 catalina.out or the localhost_log files and two the webapp is 
 able to access
 the DB with several queries before it encounters any 
 problems. Does anyone
 have any ideas what may be causing this to happen?
 
 Thanks in advance,
 
 Larry 
 
 Here's some info about my runtime environment:
 
 OS: Redhat 9
 Tomcat: 5.0.28
 JVM: 1.5.02
 DB: Oracle 9i
 
 Here's the JDBC connection pool XML I'm using:
 
 ?xml version='1.0' encoding='utf-8'? 
 Context docBase=/opt/tomcat/webapps/jupiter path= cookies=false
 workDir=work/Catalina/localhost/jupiter 
   Resource auth=Container description=Oracle datasource pool.  See
 server.xml file. name=jdbc/EnvictusDB 
 type=javax.sql.DataSource/ 
   ResourceParams name=jdbc/EnvictusDB 
 parameter 
   namefactory/name 
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value 
 /parameter 
 parameter 
   namepassword/name 
   value3nv1ctus/value 
 /parameter 
 parameter 
   nameurl/name 
   valuejdbc:oracle:thin:@11.10.10.1:1521:dbname/value 
 /parameter 
 parameter 
   namedriverClassName/name 
   valueoracle.jdbc.driver.OracleDriver/value 
 /parameter 
 parameter 
   namemaxActive/name 
   value0/value 
 /parameter 
 parameter 
   namemaxIdle/name 
   value40/value 
 /parameter 
 parameter 
   namemaxWait/name 
   value15000/value 
 /parameter 
 parameter 
   nameusername/name 
   valueenvictus/value 
 /parameter 
 parameter  
   nameremoveAbandoned/name  
   valuetrue/value  
 /parameter   
 parameter  
   nameremovedAbandonedTimeout/name  
   value60/value  
 /parameter  
   /ResourceParams 
 /Context
 
 
 
 
 -
 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 freezes when accessing db after several queries

2005-03-14 Thread William Stranathan
Also, make sure you have a finally block that always closes the
connection so the connection is returned to the pool.

Will Stranathan


On Mon, 14 Mar 2005 15:27:29 -0700, George Sexton
[EMAIL PROTECTED] wrote:
 Look for something like this:
 
 Try {
 statement.execUupdate(some statement);
 } catch (SQLException se){
 }
 
 Make sure that the catch has:
 
 conn.rollback();
 
  -Original Message-
  From: Larry Johnson [mailto:[EMAIL PROTECTED]
  Subject: tomcat freezes when accessing db after several queries
 
  Hi all,
 
I've encountered a rather strange error that I need some help
  getting to the bottom of. Recently I lost the hard drive on
  one of my tomcat
  application servers. I've since reinstalled and set everything on the
  effected machine to mirror the configuration of my other app
  servers (which
  are working fine). However, now when I access the webapp on
  this server
  tomcat seems to freeze (like it's waiting for something) after several
  queries to the database are executed. After this happens I am

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



Re: Configuration Problem in Tomcat for HTTPS

2005-03-14 Thread Sanjeev Srivastava
Hi Dushyanth,

Have you created server.keystore, also are you
specifing the right path in server.xml for the
server.keystore. Check this, your problem will be
solved.


In case of any problem, do let me know...

Cheers!,
Sanjeev


 --- suryadevara dushyanth [EMAIL PROTECTED]
wrote: 
 No I am not getting any errors in logs.
 
 
 --- Antony Paul [EMAIL PROTECTED] wrote:
  If you followed instruction in the tomcat docs the
  key will be stored
  in the users home directory. In windows it will be
  in c:\documents and
  settings\username\.keystore . By default Tomcat
  looks at this
  location for the key.
  Are you getting any error in logs ?.
  
  
  
  On Mon, 14 Mar 2005 05:09:27 -0800 (PST),
  suryadevara dushyanth
  [EMAIL PROTECTED] wrote:
   I have modified the server.xml and removed the
   comments for ssl connector on port 8443. I
  generated a
   self signed certificate in the path of
 java_home.
  This
   is the procedure given in
  
 

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html.
   
   After modifying the server.xml for testing I
 typed
  in
   https:/Localhost:8443 which should give me the
  same
   tomcat home page but it says page cannot be
  displayed.
   
   Thanks
   Dushyanth
   
   --- Bill Barker [EMAIL PROTECTED] wrote:
Urm, not really enough info here to help you. 
  Of
course I'm assuming that
you've already read
   
  
 

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html.
 Beyond
that, you can try setting your logging
 category
(log4j/java.util.logging
config) for 'org.apache.tomcat.net.jsse' to
  DEBUG to
increase the number of
messages.
   
suryadevara dushyanth [EMAIL PROTECTED]
  wrote
in message
   
  
 

news:[EMAIL PROTECTED]
 Hi,
 I am trying to configure my Tomcat with
 https
support.
 I tried in two versions of tomcat.

 Tomcat 5
 I followed the process as given by the
documentation
 but https is not working as i typed in the
 url
 https://localhost:8443; I am getting page
 not
 available.

 Tomcat 4.1.29

 I followed the process and modified the
  server.xml
 file by uncommenting the 8443 port. When i
  start
my
 tomcat server it is shutting down and it
 does
  not
 start. I tried it through Tomcat Admin page
  but it
 says resource requested not available.

 Please help me out as I have to host my
application in
 Tomcat using HTTPS port. And I am under a
  tight
 deadline for hosting this application.

 Thanks  Regards
 Dushyanth



  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best
 spam
protection around
 http://mail.yahoo.com
   
   
   
   
   
  
 

-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
   
   
  
 __
   Do You Yahoo!?
   Tired of spam?  Yahoo! Mail has the best spam
  protection around
   http://mail.yahoo.com
   
  
 

-
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
   
   
  
  
  -- 
  rgds
  Antony Paul
  http://www.geocities.com/antonypaul24/
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 

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

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



RE: tomcat freezes when accessing db after several queries

2005-03-14 Thread Larry Johnson
I've checked my code and verified that both these measures are implemented
where I query the db. However, I don't think my problem has to do with the
code itself because I'm running versions identical to that of the problem
machine on my other app servers and those are running without a hitch. 

Larry

-Original Message-
From: William Stranathan [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 14, 2005 5:35 PM
To: Tomcat Users List
Subject: Re: tomcat freezes when accessing db after several queries

Also, make sure you have a finally block that always closes the
connection so the connection is returned to the pool.

Will Stranathan


On Mon, 14 Mar 2005 15:27:29 -0700, George Sexton
[EMAIL PROTECTED] wrote:
 Look for something like this:
 
 Try {
 statement.execUupdate(some statement);
 } catch (SQLException se){
 }
 
 Make sure that the catch has:
 
 conn.rollback();
 
  -Original Message-
  From: Larry Johnson [mailto:[EMAIL PROTECTED]
  Subject: tomcat freezes when accessing db after several queries
 
  Hi all,
 
I've encountered a rather strange error that I need some help
  getting to the bottom of. Recently I lost the hard drive on
  one of my tomcat
  application servers. I've since reinstalled and set everything on the
  effected machine to mirror the configuration of my other app
  servers (which
  are working fine). However, now when I access the webapp on
  this server
  tomcat seems to freeze (like it's waiting for something) after several
  queries to the database are executed. After this happens I am

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



Session listener

2005-03-14 Thread Christian Rebollar
I used weblogic and HttpSessionListener interface, and
when I closed browser weblogic invalidated the session
and the listener class catch it, but with tomcat
didn't happen the same, the session died until
timeout. There is a way to do it or it can't be done??

thx

_
Do You Yahoo!?
La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. 
http://net.yahoo.com.mx

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



Re: Session listener

2005-03-14 Thread Ben Souther
How could weblogic know that you closed your browser?


On Mon, 2005-03-14 at 17:57, Christian Rebollar wrote:
 I used weblogic and HttpSessionListener interface, and
 when I closed browser weblogic invalidated the session
 and the listener class catch it, but with tomcat
 didn't happen the same, the session died until
 timeout. There is a way to do it or it can't be done??
 
 thx
 
 _
 Do You Yahoo!?
 La mejor conexin a internet y 25MB extra a tu correo por $100 al mes. 
 http://net.yahoo.com.mx
 
 -
 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: Session listener

2005-03-14 Thread Christian Rebollar
I don't know, but when I closed the browser the
listener class catch sessionDestroyed event. 

--- Ben Souther [EMAIL PROTECTED] wrote:
 How could weblogic know that you closed your
 browser?
 
 
 On Mon, 2005-03-14 at 17:57, Christian Rebollar
 wrote:
  I used weblogic and HttpSessionListener interface,
 and
  when I closed browser weblogic invalidated the
 session
  and the listener class catch it, but with tomcat
  didn't happen the same, the session died until
  timeout. There is a way to do it or it can't be
 done??
  
  thx
  
 

_
  Do You Yahoo!?
  La mejor conexión a internet y 25MB extra a tu
 correo por $100 al mes. http://net.yahoo.com.mx
  
 

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

_
Do You Yahoo!?
La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. 
http://net.yahoo.com.mx

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



RE: Redhat Tomcat support

2005-03-14 Thread Benson Margulies
Personally, I've never gotten anything from Redhat but a bill. Their
support agreement is a masterpiece of extracting the maximum money for
the minimum in actual support. Pretty much anything you might actually
need help with is carefully excluded. 

-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 14, 2005 5:07 PM
To: Tomcat Users List
Subject: Re: Redhat Tomcat support

On Mon, Mar 14, 2005 at 03:57:28PM -0600, Trice, Jim wrote:
: [snip]
: RedHat support for Tomcat? We're currently running Tomcat 4.1 and
would have
: to upgrade to 5.5 to get support from RedHat. Is it worth it?

by the way, in response to your question Is it worth it? -- did you
mean RedHat's Tomcat Support or just upgrading from 4.1 - 5.5?

The upgrade has several benefits, including all of the new servlet spec
2.4/JSP 2.0 features.  That, and sticking with a recent release
increases your chances of list-based support (because you'd be running
the same version as most other list members).

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.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: Redhat Tomcat support

2005-03-14 Thread Trice, Jim


All,
Thanks for the feedback. I'm coming from an environment that was more SUN
than anything else and my experience with Redhat support has been very
limited. This helps.
Jim
-Original Message-
From: Benson Margulies [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 14, 2005 5:43 PM
To: Tomcat Users List
Subject: RE: Redhat Tomcat support

Personally, I've never gotten anything from Redhat but a bill. Their
support agreement is a masterpiece of extracting the maximum money for
the minimum in actual support. Pretty much anything you might actually
need help with is carefully excluded. 



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



Re: Validator 0.5.5 doesn't have this bug anymore (Re: OT - Beware of Firefox + HTML Validator Extension)

2005-03-14 Thread phil campaigne
Christoph Kutzinski wrote:
Good point,
I stumbled upon this, too. Thinking this was a Firefox bug, I even 
filed a bug report against it.

Note: The latest version of HTML Validator (0.5.5) fixed this bug. At 
least no more problems in my case.

greetings,
Christoph
Harry Mantheakis wrote:
I thought I should share this with any web-app developers on this list.
I recently installed the HTML Validator extension in Firefox. This 
caused
me no-end of troubles because HTML Validator (on Windows XP) was 
firing
off rogue secondary requests (!) whenever I was selecting any of my form
submit buttons.

Then I read this blog entry, and realised who the culprit was:
http://ronin.keyboardsamurais.de/evil_firefox_extensions.html
I uninstalled the HTML Validator extension and everything was fine 
again.

Kudos to the LiveHTTPHeaders extension which showed the double 
requests
being generated - though at first it made me think I had a faulty mouse!

http://livehttpheaders.mozdev.org/
HTH somebody who may be pulling their hair out.
Harry Mantheakis
London, 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]

I couldn't even install the latest version of Firefox on RH 8.0 because 
it couldn't find some libraries.  I googled the problem and found a post 
stating that some of the contributing developers weren't developing on a 
fresh image and were inposing specific file permissions on those who 
downloaded firefox.  Does this make sense?  I just left it at that and 
continued to use an older version.
Phil


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


Re: Tomcat 5.5.7+JRockit = windows service won't start

2005-03-14 Thread BB Commish
 Perhaps the Tomcat5.exe process manager is trying to send sun jvm
 specific parameters to the jrockit jvm?
Indeed, it does. Tomcat5w.exe passes -Xrs to the jvm and you can do
nothing about it as it is hardcoded.
See Bugzilla Bug 33777:
http://issues.apache.org/bugzilla/show_bug.cgi?id=33777
Thanks Dominik. I am surprised the developers would hardcode a non-standard 
-X parameter. And looking at the bugzilla entry I am stunned that they don't 
seem to be planning for a fix. Is the source for the Tomcat5.exe available 
somewhere to look at?

Brad

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


getting started

2005-03-14 Thread Kemin Zhou
Dear Friends,
I am trying to get started with tomcat 5.5.7 which is the most stable 
release.  I have spent a lot time on reading the documents.  Here I am 
trying to get some pointer.  First let me introduce myself, I have a lot 
of experience
using the RedHat linux.  Right now my system is RedHat 9.0.  I updated a 
lot of things on this machine
such as Apache, Ant 1.6, JDK SE 1.5, gcc 3.3, gtk   So my 
environment is bit recent.  My kernel is
2.4.20-8. 

First question which is better, the source or the binary?  I could build 
the tomcat easily by doing the simple
download of the build.xml into a directory.  At the shell

#ant
will build the whole tomcat system.  What do I do to go to the next 
step: install the binaries into the proper
places in the system, such as /usr/local/tomcat?  I came from the 
classical make tradition, where you simple

#make
#make install
Is there such a thing with ant?  Does anyone have any idea for the 
location of documents or the sort concerning what to do after building 
tomcat? I don't seem to see anything in the source directory?

On the binary download branch, I could follow the instruction from 
tomcat web page.

Any comments or help is appreciated.
Kemin



Over 1000 threads running in production

2005-03-14 Thread Guillaume Lahitette
Hello Tomcat'oids,

This is Tomcat 4.1.26 on Linux with JDK 1.4.1_03, load balanced accross 2 
servers by a BigIP device. User base is around 50.

Our operations team discovered over 1000 java threads running on each 
production server. It appears that about 20 threads are added
to this count every hour.

Can someone clarify:
  a.. how are threads open? Is it 1 thread per HTTP request? Can I monitor this 
/ gather more details?
  b.. how and when are threads closed? garbage collected?
  c.. are threads re-used / pooled?
  d.. how to tune the number of threads Tomcat uses appropriately?
  e.. Any known issues with our setup?
Any other recommendations, best practices and war stories are greatly 
appreciated!

Many thanks in advance.
Guillaume


JK2 URI configuration

2005-03-14 Thread Ian Franco
I can't figure out, or find any documentation on how to map a uri in
workers2.properties to something other than its webapp directory name.
 For instance, I want to make the directory
$CATALINA_BASE/webapps/mywebappv2.0.23 respond as though it were
$CATALINA_BASE/webapps/mywebapp.  I'm certain that this is not
difficult, but I cannot find documentation on this.  Any help would be
much appreciated.

Thanks

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



Re: getting started

2005-03-14 Thread Antony Paul
You can find Linux packages at JPackage.org. 


On Mon, 14 Mar 2005 17:22:53 -0800, Kemin Zhou [EMAIL PROTECTED] wrote:
 Dear Friends,
 
 I am trying to get started with tomcat 5.5.7 which is the most stable
 release.  I have spent a lot time on reading the documents.  Here I am
 trying to get some pointer.  First let me introduce myself, I have a lot
 of experience
 using the RedHat linux.  Right now my system is RedHat 9.0.  I updated a
 lot of things on this machine
 such as Apache, Ant 1.6, JDK SE 1.5, gcc 3.3, gtk   So my
 environment is bit recent.  My kernel is
 2.4.20-8.
 
 First question which is better, the source or the binary?  I could build
 the tomcat easily by doing the simple
 download of the build.xml into a directory.  At the shell
 
 #ant
 will build the whole tomcat system.  What do I do to go to the next
 step: install the binaries into the proper
 places in the system, such as /usr/local/tomcat?  I came from the
 classical make tradition, where you simple
 
 #make
 #make install
 
 Is there such a thing with ant?  Does anyone have any idea for the
 location of documents or the sort concerning what to do after building
 tomcat? I don't seem to see anything in the source directory?
 
 On the binary download branch, I could follow the instruction from
 tomcat web page.
 
 Any comments or help is appreciated.
 
 Kemin
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



RE: Over 1000 threads running in production

2005-03-14 Thread Caldarale, Charles R
 From: Guillaume Lahitette [mailto:[EMAIL PROTECTED]
 Subject: Over 1000 threads running in production
 
 Our operations team discovered over 1000 java threads running 
 on each production server. It appears that about 20 threads
 are added to this count every hour.

Since no one else seems to be reporting this kind of problem, odds are it's a 
bug in one or more of the applications you're running under Tomcat.  There's an 
off chance it could be a problem in the JRE, since you're using a level that's 
been out of date and unsupported for quite some time.

The number of threads Tomcat uses to service requests is controlled by the 
maxProcessors parameter of the Connector element you're using; for 4.1, the 
default value is 20, and it would be very, very unusual to ever need to set it 
to much over 100.  Since you don't seem to be aware of this configuration 
parameter, you're probably using the default.

Other than a few created for internal purposes by Tomcat and the JVM itself, 
additional threads must come from the applications.  I would be highly 
suspicious of some piece of code kicking off a thread and then losing track of 
it and the thread not having any logic to terminate itself when it's no longer 
needed.

   e.. Any known issues with our setup?

Can't tell unless you pass on the .xml files.

 - Chuck


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

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



RE: Tomcat 5.5.7+JRockit = windows service won't start

2005-03-14 Thread Caldarale, Charles R
 From: BB Commish [mailto:[EMAIL PROTECTED]
 Subject: Re: Tomcat 5.5.7+JRockit = windows service won't start
 
 Thanks Dominik. I am surprised the developers would hardcode 
 a non-standard -X parameter.

By definition _all_ -X parameters are non-standard, but there are quite a few 
you simply can't avoid using (-Xmx being the obvious example).  It would seem 
like JRockit took the wrong turn here, since -Xrs has been used to reduce JVM 
signal usage for many, many years.

As someone else suggested, why don't you simply edit the registry entry 
generated by the installer and change the -Xrs to -Xnohup?

 - Chuck


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

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



Tomcat 5.0.28 http not redirecting to https with Struts

2005-03-14 Thread ADNAN TARIQ
---BeginMessage---

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