Re: Memory usage with multiple instances of tomcat

2007-08-09 Thread Peter Sparkes
Thank you Chuck and Chris for your help and advice. I will definitely be 
reading your refs Chris


Regards
Peter
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: How to avoide delete context.xml - 6.0.14

2007-08-09 Thread hans.mader
This is application related logging on application unload (struts plugin):

 com.magnasteyr.josf.InitLog4JPlugin ... try to clean up FileHandles for 
 context [XJOSF]
 com.magnasteyr.josf.InitLog4JPlugin ... Clean up FileHandles finished for 
 context [XJOSF]


Now I used the manager application for INSTALL UNDEPLOY INSTALL in my ANT 
scripts,
and I configured the context with  the antiJARLocking, antiResourceLocking 
attributes ( both true).

It works!!! 

The first thing is, that the server makes a copy of the context.xml into the 
conf/Catalina/localhost/,
and if you place a new WAR file into webapps, a reload will be done, but the 
context.xml would not be deleted...

The second thing could depend on app-related stuff (file locking), because with 
the locking flags I could 
undeploy and deploy properly.

Thanks for your assistance.

Regards, Hans.

-Ursprüngliche Nachricht-
Von: Hassan Schroeder [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 08. August 2007 16:49
An: Tomcat Users List
Betreff: Re: How to avoide delete context.xml - 6.0.14


On 8/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi Hassan,

 I did exactly that way you described to me,
 but the 2nd deployment still dosn't work properly.

You might want to create a very simple WAR file and see if it behaves
the same way...

 The only way that works (not always) is to delete the WAR file manually,
 wait until the webapp is undeployed and then place the war file again.

 INFO: Undeploying context [/xjosf]
 com.magnasteyr.josf.InitLog4JPlugin ... try to clean up FileHandles for 
 context [XJOSF]
 com.magnasteyr.josf.InitLog4JPlugin ... Clean up FileHandles finished for 
 context [XJOSF]

Those two lines make me wonder -- since you're running Windows,
you might look at antiJARLocking and antiResourceLocking here:

http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

My feeling is that this is more likely app-related than config-related
at this point; if you can create a WAR file reproducing the problem
(without proprietary material/external dependencies)  I'll be happy
to try it.

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






Diese Nachricht ist ausschliesslich fuer den oben bezeichneten Adressaten 
bestimmt und enthaelt moeglicherweise vertrauliche Informationen. Sollten Sie 
nicht der oben bezeichnete Adressat sein oder diese Nachricht irrtuemlich 
erhalten haben, ersuchen wir Sie, diese Nachricht nicht weiterzugeben, zu 
kopieren oder im Vertrauen darauf zu handeln, sondern den Absender zu 
verstaendigen und diese Nachricht samt allfaelliger Anlagen sofort zu loeschen. 
Vielen Dank.

This message is intended only for use by the named addressee and may contain 
privileged and/or confidential information. If you are not the named addressee, 
you should not disseminate, copy, or take any action in reliance on it. If you 
have received this message in error, please immediately notify the sender of 
this message and delete this message and any attachment. Thank you.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 6.0.13 MySQL DBCP Example

2007-08-09 Thread David Smith

Ok... tomcat 6.0.13

1. I would merge the Context  / element from server.xml to your 
context.xml file and remove the Context element from your server.xml.  
Placing this element in server.xml is not recommended anymore as it 
means a restart of tomcat to deploy/undeploy webapps.  Also having the 
Context definition in two places for one webapp will undoubtedly cause 
problems with one overriding the other.


2. Trim any spaces in the element attributes.  I saw an extraneous space 
in the driverClassName attribute below.


3. It's not recommended you add autoReconnect=true to the mysql db url.  
It has it's uses, but not in a database pool.  Instead, use a 
validationQuery attribute in your Resource element to test and validate 
connections before your app borrows them.


4. I'm assuming the mysql-connector-java-*.jar file is stored in the 
$CATALINA_HOME/lib folder and not present in your webapp's WEB-INF/lib 
folder.


Let us know what happens.  If it still doesn't work, let us see the new 
context.xml file and be sure there isn't a Context ... element in the 
server.xml.


--David

G M wrote:

I've been trying for days now to establish a jdbc resource for mysql in
tomcat 6.0.13

To whom it may correspond:

I get the following error

Unable to get connection, DataSource invalid:
org.apache.tomcat.dbcp.dbcp.SQLNestedException
: Cannot create JDBC driver of class '' for connect URL 'null'


I have the driver mysql-connector-java-5.0.6-bin.jar copied to
$CATALINA_HOME/lib

My application web.xml looks like this: (exactly as the example)

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd 
version=2.4
  descriptionMySQL Test App/description
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/TestDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
/web-app

In
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.htmlthere
is this instruction:

Add this in between the /Context tag of the examples context and the
  

/Host tag closing the localhost definition. If there is no such tag, you
can add one as illustrated in the 
Contexthttp://tomcat.apache.org/tomcat-6.0-doc/config/context.htmland
Host http://tomcat.apache.org/tomcat-6.0-doc/config/host.htmlconfiguration 
references, and  repeated below for your convenience.




In my own opinion this is quite ambiguous. After several search in the mail
repositories. I have this as my server.xml configuration (i deleted the
comments for easy reading)

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=on /
  Listener className=org.apache.catalina.core.JasperListener /
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener className=
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
  /GlobalNamingResources

  Service name=Catalina

Connector port=8080 protocol=HTTP/1.1
   connectionTimeout=2
   redirectPort=8443 /
Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /
 Engine name=Catalina defaultHost=localhost

  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/

  Host name=localhost  appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

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


Resource name=jdbc/TestDB auth=Container type=
javax.sql.DataSource
   maxActive=100 maxIdle=30 maxWait=1
   username=gabo password=huevos driverClassName=
com.mysql.jdbc.Driver 

url=jdbc:mysql://localhost:3306/javatest?autoReconnect=true/

/Context
  /Host
/Engine
  /Service
/Server

In my own opinion the problem is with server.xml, should I add something to
context.xml?
Any comment, hint or tip would be greatly appreciated.

Regards

Gabriel

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can not get Tomcat5 to listen to JPDA port

2007-08-09 Thread mikael . gustafsson
Hi, 

I am running Tomcat 5.5 (5.5.23-0jpp.1.0.4.el5) on Red Hat Enterprise 5 
and can not get Tomcat to listen to port 8000 using JPDA. Searching the 
mailing list archive did not hint to any solution.

I have verified that the actual call to the JVM includes the documented 
parameters -Xdebug and -Xrunjdwp (see below). Tomcat starts fine and all 
the webapps works properly. The problem is that netstat does not show any 
process listening on port 8000. We have the same problem on another 
machine running Fedora Core 6. 

Starting tomcat using jpda start results in the following running 
process:

/etc/alternatives/java_sdk/bin/java -Xdebug 
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n 
-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
 
-Djava.endorsed.dirs=/usr/share/tomcat5/common/endorsed -classpath 
/etc/alternatives/java_sdk/lib/tools.jar:/usr/share/tomcat5/bin/bootstrap.jar:/usr/share/tomcat5/bin/commons-logging-api.jar:/usr/share/java/mx4j/mx4j-impl.jar:/usr/share/java/mx4j/mx4j-jmx.jar
 
-Dcatalina.base=/usr/share/tomcat5 -Dcatalina.home=/usr/share/tomcat5 
-Djava.io.tmpdir=/usr/share/tomcat5/temp 
org.apache.catalina.startup.Bootstrap start

No errors message occurrs in the catalina.out log file. 

I use jpda-based debugging successfully on another machine running Tomcat 
4.1.30 on a much older Red Hat release.

Since no one else seem to have this problem I assume that am I missing 
something? 

Best regards,
Mikael Gustafsson


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat native.

2007-08-09 Thread Leon Rosenberg
On 8/8/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
 Alec Bickerton wrote:
  Hi,
 
  I've only recently returned to using tomcat since tomcat 4.0.1 and I
  note that things have moved on somewhat. I'm currently working with
  the Tomcat 5.5.xx line. I would like to know is :
 
  What exactly is the advantage of using the tomcat-native library?
 no longer having maxThreads==maxConnections, with the native library you
 can have more open connections than you have threads in Tomcat

Can't you do the same with NIO connector without relying on c code?
Leon
.
 Also, for SSL you can use openSSL, much faster than Java SSL

 Filip
 
 
  I work with some fairly large Linux cluster, that typically have more
  than 2 tomcat instances for physical server. These machines have a
  large number of request and use a significant amount of RAM as you'd
  expect.
 
  The Web page states.
  Advanced IO functionality, OS level functionality and Native process
  handling .
 
  Which is all very good, but it doesn't tell me what I need to know in
  order the convince the people higher up the food chain, to at using it.
  From the testing I've done, performance difference is marginal at best
  and memory usage is virtually the same as without.
 
  What real world impact will this have on applications that don't use
  OpenSSL, but do need lots of thread and lots of memory.
 
  Regards,
  Alec
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat and path with pound sign (#) - ClassNotFoundException

2007-08-09 Thread Hassan Schroeder
On 8/8/07, Markus Schiegl [EMAIL PROTECTED] wrote:

 Has anybody been able to start a tomcat server from such a directory?

I copied a working installation from /usr/local/apache-tomcat-6.0.13
to /usr/local/apache-tomcat#6.0.13, set CATALINA_HOME and got this:

 ./bin/catalina.sh run
Using CATALINA_BASE:   /usr/local/apache-tomcat#6.0.13
Using CATALINA_HOME:   /usr/local/apache-tomcat#6.0.13
Using CATALINA_TMPDIR: /usr/local/apache-tomcat#6.0.13/temp
Using JRE_HOME:   /usr/local/jdk1.6.0_02/jre
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)

So it seems a genuine limitation...

HTH,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Status

2007-08-09 Thread Leon Rosenberg
www.nagios.org

On 8/8/07, Andrew Hole [EMAIL PROTECTED] wrote:
 Hi!

 Exists some tool to monitor more than one instance of Tomcat in the same
 server?
 Lambda Probe is an excellent tool, but only monitoring instance where is
 installled.

 In a simple way I want to have a web page showing tomcat status and some
 other information:

 Tomcat1 - Status Running
 Tomcat2 - Status Stopped
 -...


 Thanks a lot


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: 6.0.13 MySQL DBCP Example

2007-08-09 Thread Caldarale, Charles R
 From: David Smith [mailto:[EMAIL PROTECTED] 
 Subject: Re: 6.0.13 MySQL DBCP Example
 
 1. I would merge the Context  / element from server.xml to your 
 context.xml file and remove the Context element from your 
 server.xml.  

Just a point of clarification: the context.xml above refers to the one
in your webapp's META-INF directory, not the global one in Tomcat's conf
directory.

 - Chuck


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

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Can not get Tomcat5 to listen to JPDA port

2007-08-09 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Subject: Can not get Tomcat5 to listen to JPDA port
 
 I am running Tomcat 5.5 (5.5.23-0jpp.1.0.4.el5) on Red Hat 
 Enterprise 5 and can not get Tomcat to listen to port 8000
 using JPDA. 

Try running it with a real Tomcat distribution, not a 3rd-party
repackaged mess.

What JDK are you using?  You may need to install a real one of that, as
well.

Does JPDA work on something simpler on the same platform?

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can not get Tomcat5 to listen to JPDA port

2007-08-09 Thread Gregor Schneider
I have an original Tomcat-version (5.5) running here on Debian Edge,
and my JPDA-startup-script reads as:

#!/bin/sh
export JPDA_ADDRESS=8787
export JPDA_TRANSPORT=dt_socket
/home/tomcat/www/bin/catalina.sh jpda start


Try this (run it as user tomcat), but first change the default port
8787 to 8000 and let us know if it works.

If not, please also post the output of netstat -lnp

Btw. my catalina.sh is the original one.

Cheers

Gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SSLProtocol, TLS and Internet Explorer

2007-08-09 Thread Henderson,Nathan
We are having a problem with our Standalone tomcat Server SSL Connectors
and viewing servlets in Internet Explorer 7on Windows Vista.

With the original config in the server.xml and SSLProtocol set to SSL
It works fine on IE6, and IE7 on XP.  It does not work on IE7 on Windows
Vista.

When the protocol is set to TLS, it works in IE7 on Vista, but not IE6.

You can get around this by in IE7 turning off the Use TLS 1.0 option
on IE, or turning this option on in IE6.  We do not feel this workaround
is sufficient for our needs.

We want a way to not have to make these changes.  I seriously think it
has to do with the Java we are using because of what I have seen in the
Tomcat docs.

The encryption/decryption protocol to be used on this socket. It is not
recommended to change this value if you are using Sun's JVM. It is
reported that IBM's 1.4.1 implementation of the TLS protocol is not
compatible with some popular browsers. In this case, use the value SSL.

We are using IBM Java 1.5.0
java version 1.5.0
Java(TM) 2 Runtime Environment, Standard Edition (build
pxi32dev-20060511 (SR2))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32
j9vmxi3223-20060504 (JIT enabled)
J9VM - 20060501_06428_lHdSMR
JIT  - 20060428_1800_r8
GC   - 20060501_AA)
JCL  - 20060511a
And Tomcat 5.5.20
Here is the Server.xml for the connector

Connector address=XXX.XX.XXX.XX port=443
maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=SSL
   keystoreFile=/usr/local/bin/ice/sslcerts/.keystore
   keystorePass=changeme algorithm=IbmX509 /

Would we be able to fix this problem, by going Sun Java and redoing
keystores and certificates?  Would this allow the TLS Protocol to work
for all browsers?

Thanks in advance for the help!





RE: Tomcat 5.5.17 source code

2007-08-09 Thread Caldarale, Charles R
 From: ROOKIE [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat 5.5.17 source code
 
 Can someone tell where from where I can download Tomcat 
 5.5.17 source code. 

Use the archives link from the Tomcat home page to get here:
http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.17/src/

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5.17 source code

2007-08-09 Thread ROOKIE
Hi,

Can someone tell where from where I can download Tomcat 5.5.17 source code. 

The download page provides only 5.5.23 source code and I am new to SVN so could 
not figure it out from the root repository.

I use this version and I need to do a small patch on that.

Thanks,
Vinod




   
Ready
 for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat native.

2007-08-09 Thread Filip Hanik - Dev Lists

Leon Rosenberg wrote:

On 8/8/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
  

Alec Bickerton wrote:


Hi,

I've only recently returned to using tomcat since tomcat 4.0.1 and I
note that things have moved on somewhat. I'm currently working with
the Tomcat 5.5.xx line. I would like to know is :

What exactly is the advantage of using the tomcat-native library?
  

no longer having maxThreads==maxConnections, with the native library you
can have more open connections than you have threads in Tomcat



Can't you do the same with NIO connector without relying on c code?
Leon
  

yes, but not in Tomcat 5.5, we don't have the NIO connector until 6

Filip

.
  

Also, for SSL you can use openSSL, much faster than Java SSL

Filip


I work with some fairly large Linux cluster, that typically have more
than 2 tomcat instances for physical server. These machines have a
large number of request and use a significant amount of RAM as you'd
expect.

The Web page states.
Advanced IO functionality, OS level functionality and Native process
handling .

Which is all very good, but it doesn't tell me what I need to know in
order the convince the people higher up the food chain, to at using it.
From the testing I've done, performance difference is marginal at best
and memory usage is virtually the same as without.

What real world impact will this have on applications that don't use
OpenSSL, but do need lots of thread and lots of memory.

Regards,
Alec

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problems with SSL

2007-08-09 Thread Peter Crowther
 From: Dario Hernan [mailto:[EMAIL PROTECTED] 
 java.lang.ClassNotFoundException: SSL not found in
[...]
 parent=gnu.gcj.runtime.SystemClassLoader

Install and use the Sun JDK, not Gnu.  As I recall, the Gnu
implementation doesn't contain the Sun SSL classes that Tomcat expects.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



WebDAV, DefaultServlet, and Permissions

2007-08-09 Thread Robert J. Carr
I'm using the WebDAV servlet in tomcat 5.5.22 and I'm having some
issues that I was hoping I could get sorted out.  First of all, I'm
seeing reams and reams of these in the logs:

Aug 8, 2007 5:15:30 PM org.apache.catalina.core.ApplicationContext log
INFO: webdav: DefaultServlet.doPut: couldn't delete temporary file: null

They seem to happen on every access ... lists, puts, etc.  Ideas?  Are
they benign and should I just turn down the log level?

The second problem is much more involved, so please bear with me.  I
have started tomcat as myself, say 'jack'.  The user 'jack' is a
memeber of the group 'hill'.  The user 'jill' is also a member of the
group 'hill'.  In web.xml I have specified a dav folder of /webdav.
That folder is owned by 'jack' and group writable by 'hill' (755).
Inside of /webdav I have two folders:

drwxrwxr-x  2 jack hill  4096 Aug  1 14:01 f1
drwxrwxr-x  2 jill hill 69632 Aug  8 17:15 f2

As user 'jack', on the server, I can create (or touch) a file in both
folders 'f1' and 'f2'.  If I remotely mount the file system with
WebDAV, I can also write to the folder 'f1', but now I can't write to
'f2'.  Mounting with Finder on Mac gives me a strange (and incorrect)
error (talking about filenames being to long), and using sitecopy I
get a 409 (conflict) error.

I understand that Java doesn't deal with permissions, but shouldn't it
just try to write the file and respond to what the OS tells it can be
done?  Or is something else going on?  Are my two problems related?
Is this a problem in DefaultServlet in general?

Thanks for taking a look!

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat giving JDK Precedence Over JARs in WAR

2007-08-09 Thread david2

I have a web application that uses commons XML (xml-apis-1.3.03.jar).  The
usage of javax.xml.xpath.XPathFactory.newInstance() works fine in the
Eclipse debugger, but when the code is packaged into a WAR and deployed to
Tomcat, I get a NullPointerException when
javax.xml.xpath.XPathFactory.newInstance() is called:



java.lang.NullPointerException
at
javax.xml.xpath.XPathFactoryFinder._newFactory(XPathFactoryFinder.java:222)
at
javax.xml.xpath.XPathFactoryFinder.newFactory(XPathFactoryFinder.java:143)
at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:185)
at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:99)
at
com.myorg.myapp.ws.notification.impl.ExtnMessagePatternFilter.accepts(ExtnMessagePatternFilter.java:69)
at
org.apache.muse.ws.notification.impl.FilterCollection.accepts(FilterCollection.java:64)
at
com.myorg.myapp.ws.notification.impl.BufferedSubscriptionManager.publish(BufferedSubscriptionManager.java:73)
at
com.myorg.myapp.ws.notification.impl.NewsNotificationProducer.publish(NewsNotificationProducer.java:38)
at
org.apache.muse.ws.notification.impl.SimpleNotificationProducer.publish(SimpleNotificationProducer.java:420)
at com.myorg.myapp.ws.handler.DDSHandler.run(DDSHandler.java:304)
at
com.myorg.commons.util.reactor.ReactorAdapter.run(ReactorAdapter.java:19)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)



Any idea what might be going wrong here?

Thanks,
-David
-- 
View this message in context: 
http://www.nabble.com/Tomcat-giving-JDK-Precedence-Over-JARs-in-WAR-tf4243247.html#a12074492
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat giving JDK Precedence Over JARs in WAR

2007-08-09 Thread Gregor Schneider
1st, it would help if you let us know which Tomcat / Eclipse-Version...

Anyways, it should work if you do the following:

- Copy your xml-apis-1.3.03.jar into your application's
WEB-INF/lib-directory, so that your application's classloader can find
the corrosponding classes.
Tomcat (at least until Tomcat 5.5) does not come with commons xml

Cheers

Gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with SSL

2007-08-09 Thread Dario Hernan
I'm use the IBM JDK on RedHat Enterprise Linux 5


On 8/9/07, Peter Crowther [EMAIL PROTECTED] wrote:
  From: Dario Hernan [mailto:[EMAIL PROTECTED]
  java.lang.ClassNotFoundException: SSL not found in
 [...]
  parent=gnu.gcj.runtime.SystemClassLoader

 Install and use the Sun JDK, not Gnu.  As I recall, the Gnu
 implementation doesn't contain the Sun SSL classes that Tomcat expects.

 - Peter

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat giving JDK Precedence Over JARs in WAR

2007-08-09 Thread david2

Gregor,

I am using the following:

Tomcat 5.5.20
Xalan 2.7.0
Eclipse 3.2.2 
JDK build 1.6.0-b105

I already include xml-apis-1.3.03.jar in the WAR's WEB-INF/lib-directory. 
However, while I need the class javax.xml.xpath.XPathFactory contained in
xml-apis-1.3.03.jar, this class also occurs in the SDK's rt.jar.

How can you be sure of which jar gets used by Tomcat for a WAR produced in a
Maven build?

-David



Gregor Schneider wrote:
 
 1st, it would help if you let us know which Tomcat / Eclipse-Version...
 
 Anyways, it should work if you do the following:
 
 - Copy your xml-apis-1.3.03.jar into your application's
 WEB-INF/lib-directory, so that your application's classloader can find
 the corrosponding classes.
 Tomcat (at least until Tomcat 5.5) does not come with commons xml
 
 Cheers
 
 Gregor
 -- 
 what's puzzlin' you, is the nature of my game
 gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-giving-JDK-Precedence-Over-JARs-in-WAR-tf4243247.html#a12075436
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with SSL

2007-08-09 Thread Hassan Schroeder
On 8/9/07, Dario Hernan [EMAIL PROTECTED] wrote:
 I'm use the IBM JDK on RedHat Enterprise Linux 5

You might /want/ to, but your error message says otherwise :-)

Check your JAVA_HOME and PATH statements; or run `java -version`
and see what you get.

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat giving JDK Precedence Over JARs in WAR

2007-08-09 Thread Gregor Schneider
david,

 I already include xml-apis-1.3.03.jar in the WAR's WEB-INF/lib-directory.

are you saying that the jar containing the said class is in your
WEB-INF/lib-directory already and you get that NullPointer?

On which OS are you running? Is it possible, that you have set an
environment-variable like JAVA_ENDORSED? This overwrites the default
XML-handling

In your logs, is there a root-cause for that exception you posted?

If all that doesn't give you a clue, start Tomcat in JPDA-mode,
connect remotely with your Eclipse-debugger and set a breakpoint at

com.myorg.myapp.ws.notification.impl.BufferedSubscriptionManager.publish(BufferedSubscriptionManager.java:73)

Then check the variables which are null but ought to be set, maybe
that gives you a figure.

HTH

Gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with SSL

2007-08-09 Thread Dario Hernan
This is the output of the PATH
echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

And the JAVA_HOME
echo JAVA_HOME
JAVA_HOME

the JAVA_HOME is not setting and in the PATH there isn't something about java
but in the tomcat5.conf I have this line,
JAVA_HOME=/usr/lib/jvm/jre-1.5.0-ibm/bin/java
Is possible that tomcat is taking the java config from another site?



On 8/9/07, Hassan Schroeder [EMAIL PROTECTED] wrote:
 On 8/9/07, Dario Hernan [EMAIL PROTECTED] wrote:
  I'm use the IBM JDK on RedHat Enterprise Linux 5

 You might /want/ to, but your error message says otherwise :-)

 Check your JAVA_HOME and PATH statements; or run `java -version`
 and see what you get.

 --
 Hassan Schroeder  [EMAIL PROTECTED]

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problems with SSL

2007-08-09 Thread Caldarale, Charles R
 From: Dario Hernan [mailto:[EMAIL PROTECTED] 
 Subject: Re: Problems with SSL
 
 echo $PATH
 /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:
 /sbin:/bin:/usr/sbin:/usr/bin:/root/bin

That tells us nothing.

 echo JAVA_HOME

That should be:
echo $JAVA_HOME

Also do:

java -version

as previously requested, just to be sure.  You could also try
deinstalling the GNU version, just to be safe.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with SSL

2007-08-09 Thread Dario Hernan
[EMAIL PROTECTED] ~]# java -version
java version 1.5.0
Java(TM) 2 Runtime Environment, Standard Edition (build pxi32dev-20070201 (SR4))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32
j9vmxi3223-20070201 (JIT enabled)
J9VM - 20070131_11312_lHdSMR
JIT  - 20070109_1805ifx1_r8
GC   - 200701_09)
JCL  - 20070126


On 8/9/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:
  From: Dario Hernan [mailto:[EMAIL PROTECTED]
  Subject: Re: Problems with SSL
 
  echo $PATH
  /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:
  /sbin:/bin:/usr/sbin:/usr/bin:/root/bin

 That tells us nothing.

  echo JAVA_HOME

 That should be:
 echo $JAVA_HOME

 Also do:

 java -version

 as previously requested, just to be sure.  You could also try
 deinstalling the GNU version, just to be safe.

  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat giving JDK Precedence Over JARs in WAR

2007-08-09 Thread Filip Hanik - Dev Lists
javax.xml and the whole endorsed fiasco is very tricky. What I would 
suggest is to simply ditch your additional XML libraries and use the 
ones that come with the JDK


saves you a lot of head ache and time

Filip

Gregor Schneider wrote:

david,

  

I already include xml-apis-1.3.03.jar in the WAR's WEB-INF/lib-directory.



are you saying that the jar containing the said class is in your
WEB-INF/lib-directory already and you get that NullPointer?

On which OS are you running? Is it possible, that you have set an
environment-variable like JAVA_ENDORSED? This overwrites the default
XML-handling

In your logs, is there a root-cause for that exception you posted?

If all that doesn't give you a clue, start Tomcat in JPDA-mode,
connect remotely with your Eclipse-debugger and set a breakpoint at

com.myorg.myapp.ws.notification.impl.BufferedSubscriptionManager.publish(BufferedSubscriptionManager.java:73)

Then check the variables which are null but ought to be set, maybe
that gives you a figure.

HTH

Gregor
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Certificate for Tomcat JVM and CAS

2007-08-09 Thread Lisa Tan
I don't know if this is a right list to ask this question. I tried to
configure shibboleth which uses Tomcat with CAS authentication. I received
an error: Unable to validate ProxyTicketValidator

I did google search on this topic and understood the reason causing this
problem is Tomcat JVM doesn't trust the SSL cert of the CAS server. Since I
am still in the testing stage, I can't get a CA certificate but the
self-signed certificate.

If my understanding is correct, the self signed certificate via openssl
doesn't have jks format but Tomcat JVM only accept jks format certificate.

I am just wondering if any one can give me some instruction how to create a
self-signed certificate and private key which can be used or imported to
both Tomcat JVM and CAS server.

Thanks,

Lisa



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat giving JDK Precedence Over JARs in WAR

2007-08-09 Thread Gregor Schneider
as to what i understood, david thinks he's using the ones coming with
jdk 1.6, however, they are giving a nullpointer.

therefore, it has to be checked if tomcat uses the endorsed mechanism
using it's very own libraries. seems as in this very case something is
in eclipse's classpath what's missing in the application-classpath
within tomcat.

gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat and path with pound sign (#) - ClassNotFoundException

2007-08-09 Thread Propes, Barry L
isn't that likely because in some languages like PHP, Python and Perl the # is 
to comment out a line, and it will invariably break the code?
Because I thought some on this list were integrating Tomcat with those 
languages.

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 09, 2007 7:58 AM
To: Tomcat Users List
Subject: Re: Tomcat and path with pound sign (#) -
ClassNotFoundException


On 8/8/07, Markus Schiegl [EMAIL PROTECTED] wrote:

 Has anybody been able to start a tomcat server from such a directory?

I copied a working installation from /usr/local/apache-tomcat-6.0.13
to /usr/local/apache-tomcat#6.0.13, set CATALINA_HOME and got this:

 ./bin/catalina.sh run
Using CATALINA_BASE:   /usr/local/apache-tomcat#6.0.13
Using CATALINA_HOME:   /usr/local/apache-tomcat#6.0.13
Using CATALINA_TMPDIR: /usr/local/apache-tomcat#6.0.13/temp
Using JRE_HOME:   /usr/local/jdk1.6.0_02/jre
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)

So it seems a genuine limitation...

HTH,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Http Header Cache-Control

2007-08-09 Thread gerocoma-forophp
Hi again.

I'm still working on this issue. I installed a filter
to all my servlets and now it's working very good. No
problem with that.

This server is running apache and is connected to
tomcat through mod_jk. Since the tomcat applications
are doing OK with the no-cache header, now I'm
configuring apache to add that header to my php
applications. 

While I was testing, I discovered that the headers
configured inside apache's httpd.conf were also been
applied to the tomcat apps...

Therefore, now I know that this issue could be
completely solved by just configuring apache.


Gerardo.


--- Nathan Hook [EMAIL PROTECTED] escribió:

 There have been at least 3 different highly
 intelligent people so far that 
 have urged you to implement this behavior with a
 Filter.  After this email 
 there are going to be 4 (but still only 3 highly
 intelligent) people that 
 urge you to use a Filter for what you're trying to
 accomplish.
 
 There are many reasons for using a Filter.
 
 1.)  It is APPLICATION behavior that requires your
 pages not to be cached.  
 Not server behavior.  Meaning, that if you take your
 application and install 
 it on a different server it will not behave
 correctly.
 
 2.)  META Tags for controlling cache behavior DO NOT
 WORK.  The reason that 
 they don't work is that the servers between your
 application and your 
 browser only look at the header values of a request
 for caching.  They 
 (being the intermediary servers) do not inspect the
 actual message itself to 
 read the META Tags.  Finally the browser itself
 almost always looks at the 
 header cache values instead of the META Tags.
 
 Whew...
 
 3.) Using a Filter you can program different logic
 for different caching 
 strategies for different media types.  For example,
 the JSP itself might not 
 ever want to be cached, but images on the other
 hand...we would only want 
 them requested once and then be cached.  Just and
 example.
 
 So, to finish up this email...
 
 Use a filter, it just works.
 
 
 public class CacheControlFilter implements Filter
 {
   public void init(FilterConfig config) {}
   public void destroy() {}
 
   public void doFilter(ServletRequest request,
 ServletResponse response, 
 FilterChain filterChain) throws IOException,
 ServletException
   {
   httpResponse.addHeader(Cache-Control,
 no-chache, no-store, 
 must-revalidate, max-age=0, proxy-revalidate,
 no-transform, pre-check=0, 
 post-check=0, private);
   filterChain.doFilter(request, response);
   }
 }
 
 
 
 Original Message Follows
 From: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org,
 [EMAIL PROTECTED]
 Subject: Re: Http Header Cache-Control
 Date: Fri, 27 Jul 2007 09:17:54 -0500 (CDT)
 
 Hi,
 
 
 I'm still studying this problem. While checking the
 HTML SPEC

(http://www.w3.org/TR/html4/struct/global.html#h-7.4.4),
   I find the following:
 
 ---
 META and HTTP headers
 
 The http-equiv attribute can be used in place of the
 name attribute and has a special significance when
 documents are retrieved via the Hypertext Transfer
 Protocol (HTTP). HTTP servers may use the property
 name specified by the http-equiv attribute to create
 an [RFC822]-style header in the HTTP response.
 Please
 see the HTTP specification ([RFC2616]) for details
 on
 valid HTTP headers.
 
 The following sample META declaration:
 META http-equiv=Expires content=Tue, 20 Aug 1996
 14:25:27 GMT
 
 will result in the HTTP header:
 Expires: Tue, 20 Aug 1996 14:25:27 GMT
 
 --
 
 Therefore, I'm confused. What's the exact meaning
 of:
 HTTP servers may use the property name specified by
 the http-equiv attribute to create an [RFC822]-style
 header in the HTTP response.
 
 Does this means that Tomcat is ignoring this may
 part of the specification?
 
 I actually tried to add that meta tags in my
 document
 but still not getting that in the hppt header.
 
 
 Thanks.
 
 
 --- [EMAIL PROTECTED] escribió:
 
   I've got a great link for solving this problem.
 Take
   a
   look at it. Hope that helps somebody.
  
  
  

http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html
  
  
  
  
   --- Christopher Schultz
   [EMAIL PROTECTED]
   escribió:
  
To whom it may concern,
   
[EMAIL PROTECTED] wrote:
 Something is wrong with that mod_jk version,
 by
the way. The most
 recent release of mod_jk is 1.2.23.

 Well, the installation file that I found in
 the
server is named:
 mod_jk-3.3-ap20.so, that's why I assumed that
version.
   
Strange. You must have some odd packaged
 version
   of
apache + mod_jk that
has its own (confusing) version number.
   
 This [filter] method looks really cool, any
 way,
does somebody knows
 another solution. I read about configuring
   apache
http.conf and/or
 installing the headers module.
   

Re: Http Header Cache-Control

2007-08-09 Thread Gregor Schneider
I think you misread your test-results.

We performed the same tests here, and the result was, that, if you
pass requests via mod_jk to Tomcat as a worker, Apache HTTPD did
definately not create / touch any headers but uses the ones returned
from the worker (Tomcat) via mod_jk.

Versions:

Tomcat 5.5
Apache 2.2
mod_jk 1.2.19

all running on Debian 4.0 (Sarge)

However, we didn't specify the JK-directives in httpd.conf but we have
own config-files for each of our domains which are included in
httpd.conf

Maybe Rainer (one of the maintainers of mod_jk) is able to shed some
light upon our heads...

Rainer?

Gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with SSL

2007-08-09 Thread Dario Hernan
I changed the file /etc/bin/dtomcat5 and put there the JAVA_HOME
correctly, now when I start the tomcat, it use the correct jvm
ps ax |grep tomcat
 9122 ?Sl 0:05 /usr/lib/jvm/jre-1.5.0-ibm/bin/java
-Dcatalina.ext.dirs=/usr/share/tomcat5/shared/lib:/usr/share/tomcat5/common/lib
-Dcatalina.ext.dirs=/usr/share/tomcat5/shared/lib:/usr/share/tomcat5/common/lib
-Djava.endorsed.dirs=/usr/share/tomcat5/common/endorsed -classpath
/usr/lib/jvm/jre-1.5.0-ibm/lib/tools.jar:/usr/share/tomcat5/bin/bootstrap.jar:/usr/share/tomcat5/bin/commons-logging-api.jar:/usr/share/java/mx4j/mx4j-impl.jar:/usr/share/java/mx4j/mx4j-jmx.jar
-Dcatalina.base=/usr/share/tomcat5 -Dcatalina.home=/usr/share/tomcat5
-Djava.io.tmpdir=/usr/share/tomcat5/temp
org.apache.catalina.startup.Bootstrap

But, on the log file appear some errors.
I attached the log file.
Thanks for your advice.





On 8/9/07, Dario Hernan [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] ~]# java -version
 java version 1.5.0
 Java(TM) 2 Runtime Environment, Standard Edition (build pxi32dev-20070201 
 (SR4))
 IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32
 j9vmxi3223-20070201 (JIT enabled)
 J9VM - 20070131_11312_lHdSMR
 JIT  - 20070109_1805ifx1_r8
 GC   - 200701_09)
 JCL  - 20070126


 On 8/9/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:
   From: Dario Hernan [mailto:[EMAIL PROTECTED]
   Subject: Re: Problems with SSL
  
   echo $PATH
   /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:
   /sbin:/bin:/usr/sbin:/usr/bin:/root/bin
 
  That tells us nothing.
 
   echo JAVA_HOME
 
  That should be:
  echo $JAVA_HOME
 
  Also do:
 
  java -version
 
  as previously requested, just to be sure.  You could also try
  deinstalling the GNU version, just to be safe.
 
   - 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 start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

/etc/profile: line 31: 1: Permission denied
Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
09-ago-2007 15:29:20 org.apache.coyote.http11.Http11BaseProtocol pause
INFORMACIàN: Pausing Coyote HTTP/1.1 on http-8081
09-ago-2007 15:29:20 org.apache.catalina.connector.Connector pause
GRAVE: Protocol handler pause failed
java.lang.NullPointerException
at org.apache.catalina.connector.Connector.pause(Connector.java:1032)
at 
org.apache.catalina.core.StandardService.stop(StandardService.java:489)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
09-ago-2007 15:29:20 org.apache.catalina.connector.Connector pause
GRAVE: Protocol handler pause failed
java.lang.NullPointerException
at org.apache.jk.server.JkMain.pause(JkMain.java:679)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:163)
at org.apache.catalina.connector.Connector.pause(Connector.java:1032)
at 
org.apache.catalina.core.StandardService.stop(StandardService.java:489)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
09-ago-2007 15:29:21 org.apache.catalina.core.StandardService stop
INFORMACIàN: Parando servicio Catalina
09-ago-2007 15:29:21 org.apache.catalina.core.ApplicationContext log
INFORMACIàN: SessionListener: contextDestroyed()
09-ago-2007 15:29:21 org.apache.catalina.core.ApplicationContext 

Re: Http Header Cache-Control

2007-08-09 Thread gerocoma-forophp
Apache is not overwritting my tomcat headers. Apache
is only appending more headers.

I added something like this:

Directory /my/httpd/docs/folder/
Header append TODOS_LOS_ARCHIVOS todos los
archivos
Files *.php
 Header append Cache-Control no-store,
no-cache, must-revalidate
 Header append SOLO_PHP todos los php
/Files
/Directory

And now, the pages generated by the servlets of my
webapp have ALSO the TODOS_LOS_ARCHIVOS header.
Moreover, they are in a completely different path.

I'm using:

apache 1.3.23
tomcat 4.0
how can i know my mod_jk version?


Hope to make this clear. ;-)


--- Gregor Schneider [EMAIL PROTECTED] escribió:

 I think you misread your test-results.
 
 We performed the same tests here, and the result
 was, that, if you
 pass requests via mod_jk to Tomcat as a worker,
 Apache HTTPD did
 definately not create / touch any headers but uses
 the ones returned
 from the worker (Tomcat) via mod_jk.
 
 Versions:
 
 Tomcat 5.5
 Apache 2.2
 mod_jk 1.2.19
 
 all running on Debian 4.0 (Sarge)
 
 However, we didn't specify the JK-directives in
 httpd.conf but we have
 own config-files for each of our domains which are
 included in
 httpd.conf
 
 Maybe Rainer (one of the maintainers of mod_jk) is
 able to shed some
 light upon our heads...
 
 Rainer?
 
 Gregor
 -- 
 what's puzzlin' you, is the nature of my game
 gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 



  

¡Sé un mejor asador!
Aprende todo sobre asados.  
http://mx.yahoo.com/promos/mejorasador.html

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with SSL

2007-08-09 Thread Hassan Schroeder
On 8/9/07, Dario Hernan [EMAIL PROTECTED] wrote:
 I changed the file /etc/bin/dtomcat5 and put there the JAVA_HOME
 correctly, now when I start the tomcat, it use the correct jvm

That's progress :-)

 But, on the log file appear some errors.

Is this a Tomcat that was bundled with RedHat, as it appears? If so,
you would save yourself a lot of time (and headaches) by removing it
and re-installing  via a tar file from the actual Tomcat download site.

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat and path with pound sign (#) - ClassNotFoundException

2007-08-09 Thread Markus Schiegl
Hi,

you're right about # as a special char for different programming
languages. but nevertheless the # sign is a valid character for
directory and file names (in contrast to * or / for example) for unix
and windows. If it's wise to use it is another question but sometimes
it's just beyond your control.

The same problem (# in directory name) and error message
(ClassNotFoundException) happens with Windows XP. Confirms my suspicion
this beeing a Java and/or Tomcat issue.

kind regards,
   Markus

Propes, Barry L wrote:
 isn't that likely because in some languages like PHP, Python and Perl the # 
 is to comment out a line, and it will invariably break the code?
 Because I thought some on this list were integrating Tomcat with those 
 languages.
 
 -Original Message-
 From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 09, 2007 7:58 AM
 To: Tomcat Users List
 Subject: Re: Tomcat and path with pound sign (#) -
 ClassNotFoundException
 
 
 On 8/8/07, Markus Schiegl [EMAIL PROTECTED] wrote:
 
 Has anybody been able to start a tomcat server from such a directory?
 
 I copied a working installation from /usr/local/apache-tomcat-6.0.13
 to /usr/local/apache-tomcat#6.0.13, set CATALINA_HOME and got this:
 
 ./bin/catalina.sh run
 Using CATALINA_BASE:   /usr/local/apache-tomcat#6.0.13
 Using CATALINA_HOME:   /usr/local/apache-tomcat#6.0.13
 Using CATALINA_TMPDIR: /usr/local/apache-tomcat#6.0.13/temp
 Using JRE_HOME:   /usr/local/jdk1.6.0_02/jre
 java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)
 
 So it seems a genuine limitation...
 
 HTH,

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with SSL

2007-08-09 Thread Dario Hernan
Yes, I installed it through yum installer, are there difference
between it and tar file?

On 8/9/07, Hassan Schroeder [EMAIL PROTECTED] wrote:
 On 8/9/07, Dario Hernan [EMAIL PROTECTED] wrote:
  I changed the file /etc/bin/dtomcat5 and put there the JAVA_HOME
  correctly, now when I start the tomcat, it use the correct jvm

 That's progress :-)

  But, on the log file appear some errors.

 Is this a Tomcat that was bundled with RedHat, as it appears? If so,
 you would save yourself a lot of time (and headaches) by removing it
 and re-installing  via a tar file from the actual Tomcat download site.

 --
 Hassan Schroeder  [EMAIL PROTECTED]

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problems with SSL

2007-08-09 Thread Caldarale, Charles R
 From: Dario Hernan [mailto:[EMAIL PROTECTED] 
 Subject: Re: Problems with SSL
 
 Yes, I installed it through yum installer, are there difference
 between it and tar file?

Yes, the .tar file works.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat and path with pound sign (#) - ClassNotFoundException

2007-08-09 Thread Alexey Solofnenko
Try running bash -x catalina.sh run to see if Java is started 
correctly. If it is not, try running the same command from a normal 
directory, and run the same command yourself without using scripts 
provided with Tomcat.


- Alexey.

Markus Schiegl wrote:

Hi,

you're right about # as a special char for different programming
languages. but nevertheless the # sign is a valid character for
directory and file names (in contrast to * or / for example) for unix
and windows. If it's wise to use it is another question but sometimes
it's just beyond your control.

The same problem (# in directory name) and error message
(ClassNotFoundException) happens with Windows XP. Confirms my suspicion
this beeing a Java and/or Tomcat issue.

kind regards,
   Markus

Propes, Barry L wrote:
  

isn't that likely because in some languages like PHP, Python and Perl the # is 
to comment out a line, and it will invariably break the code?
Because I thought some on this list were integrating Tomcat with those 
languages.

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 09, 2007 7:58 AM
To: Tomcat Users List
Subject: Re: Tomcat and path with pound sign (#) -
ClassNotFoundException


On 8/8/07, Markus Schiegl [EMAIL PROTECTED] wrote:



Has anybody been able to start a tomcat server from such a directory?
  

I copied a working installation from /usr/local/apache-tomcat-6.0.13
to /usr/local/apache-tomcat#6.0.13, set CATALINA_HOME and got this:



./bin/catalina.sh run
  

Using CATALINA_BASE:   /usr/local/apache-tomcat#6.0.13
Using CATALINA_HOME:   /usr/local/apache-tomcat#6.0.13
Using CATALINA_TMPDIR: /usr/local/apache-tomcat#6.0.13/temp
Using JRE_HOME:   /usr/local/jdk1.6.0_02/jre
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)

So it seems a genuine limitation...

HTH,



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  


--

Alexey N. Solofnenko http://trelony.cjb.net/
Pleasant Hill, CA (GMT-8 usually)


smime.p7s
Description: S/MIME Cryptographic Signature


RE: Tomcat 5.5.20 application context set using Path?

2007-08-09 Thread Caldarale, Charles R
 From: Vigorito, Nicholas E. [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat 5.5.20 application context set using Path?
 
 I have a web app that is located outside the webapps 
 directory. Put the context file app_name.xml in the
 conf/Catalina/localhost directory. The context has a
 docBase attribute that points to the directory and has
 a path attribute.

You were o.k. up to that point.  The path attribute must not be used;
instead, insure that the name of the file containing your Context
element is the path you wish to use for your webapp.  Recent versions of
Tomcat got rid of the redundancy and ambiguity of the path attribute.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Http Header Cache-Control

2007-08-09 Thread Rainer Jung

Yes, that's true:

if you use mod_jk and try to change headers via Apache config and 
mod_headers, you are able to add headers, but not to change or remove 
the ones coming from tomcat via mod_jk. mod_headers and mod_jk do not 
interoperate nicely.


In general this will not give a good solution, so a Tomcat servlet 
filter is preferred in this situation. You must be careful not to end up 
with inconsistent headers.


Regards,

Rainer

P.S.: mod_jk version: on Linux/Unix you can do strings my_mod_jk_file | 
fgrep 1.2.' or you can look at the info level log message during startup:


[Mon Aug 06 17:20:36.186 2007] [6568:2806630656] [info] 
init_jk::mod_jk.c (2775): mod_jk/1.2.25 initialized


(but I'm not really sure since which version this exists).

or you look at the head of the status worker output,

or ... :)


[EMAIL PROTECTED] wrote:

Apache is not overwritting my tomcat headers. Apache
is only appending more headers.

I added something like this:

Directory /my/httpd/docs/folder/
Header append TODOS_LOS_ARCHIVOS todos los
archivos
Files *.php
 Header append Cache-Control no-store,
no-cache, must-revalidate
 Header append SOLO_PHP todos los php
/Files
/Directory

And now, the pages generated by the servlets of my
webapp have ALSO the TODOS_LOS_ARCHIVOS header.
Moreover, they are in a completely different path.

I'm using:

apache 1.3.23
tomcat 4.0
how can i know my mod_jk version?


Hope to make this clear. ;-)


--- Gregor Schneider [EMAIL PROTECTED] escribió:


I think you misread your test-results.

We performed the same tests here, and the result
was, that, if you
pass requests via mod_jk to Tomcat as a worker,
Apache HTTPD did
definately not create / touch any headers but uses
the ones returned
from the worker (Tomcat) via mod_jk.

Versions:

Tomcat 5.5
Apache 2.2
mod_jk 1.2.19

all running on Debian 4.0 (Sarge)

However, we didn't specify the JK-directives in
httpd.conf but we have
own config-files for each of our domains which are
included in
httpd.conf

Maybe Rainer (one of the maintainers of mod_jk) is
able to shed some
light upon our heads...

Rainer?

Gregor


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Testing Tomcat - HELP

2007-08-09 Thread Dean Lonsdale
Does anyone know how to verify whether Tomcat is operational using a 
browser or other wise !!!

Help appreciated ...many thanks 



Regards / Cordialement / Mit freundlichen Grüßen

-- 

 
Dean Lonsdale
 
Dean Lonsdale/UK/IBM
 
[EMAIL PROTECTED]
 
Systems Architect
IBM Systems  Technology Group
Senior Accredited IT Specialist
Tivoli Certified Consultant

IBM UK Ltd, Washway Road, Manchester
 
Ext: 07834 252463
Mobex: 264328
 
+44 (0)1253 731299
View the Systems Group website at 
http://w3-03.ibm.com/systemstechnology/index.html 






Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







Re: Tomcat and path with pound sign (#) - ClassNotFoundException

2007-08-09 Thread Markus Schiegl
Hi Alexey,

yes it does (see message thread and different logs). i've checked with
set -x and even the actual process call with ps and truss/strace.
same problem if I call java directly - okay it does not log to
catalina.out but to stdout...

Somewhere the road while watching the truss output the open-syscalls use
the wrong/truncated directory.

thanks and kind regards,
   Markus

Alexey Solofnenko wrote:
 Try running bash -x catalina.sh run to see if Java is started
 correctly. If it is not, try running the same command from a normal
 directory, and run the same command yourself without using scripts
 provided with Tomcat.
 
 - Alexey.
 
 Markus Schiegl wrote:
 Hi,

 you're right about # as a special char for different programming
 languages. but nevertheless the # sign is a valid character for
 directory and file names (in contrast to * or / for example) for unix
 and windows. If it's wise to use it is another question but sometimes
 it's just beyond your control.

 The same problem (# in directory name) and error message
 (ClassNotFoundException) happens with Windows XP. Confirms my suspicion
 this beeing a Java and/or Tomcat issue.

 kind regards,
Markus

 Propes, Barry L wrote:
  
 isn't that likely because in some languages like PHP, Python and Perl
 the # is to comment out a line, and it will invariably break the code?
 Because I thought some on this list were integrating Tomcat with
 those languages.

 -Original Message-
 From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 09, 2007 7:58 AM
 To: Tomcat Users List
 Subject: Re: Tomcat and path with pound sign (#) -
 ClassNotFoundException


 On 8/8/07, Markus Schiegl [EMAIL PROTECTED] wrote:


 Has anybody been able to start a tomcat server from such a directory?
   
 I copied a working installation from /usr/local/apache-tomcat-6.0.13
 to /usr/local/apache-tomcat#6.0.13, set CATALINA_HOME and got this:


 ./bin/catalina.sh run
   
 Using CATALINA_BASE:   /usr/local/apache-tomcat#6.0.13
 Using CATALINA_HOME:   /usr/local/apache-tomcat#6.0.13
 Using CATALINA_TMPDIR: /usr/local/apache-tomcat#6.0.13/temp
 Using JRE_HOME:   /usr/local/jdk1.6.0_02/jre
 java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at
 org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)

 So it seems a genuine limitation...

 HTH,
 

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
   
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Testing Tomcat - HELP

2007-08-09 Thread Partha Goswami
for Linux/ Solaris/UNix, go to bin folder where Tomcat Installed already,
then,

 # ./startup.sh
Then point your browser, to
http://yourhost/domain name.com:8080

It will install, in 8080 port by default..

let me know, if you have any question..
Thanks
On 8/10/07, Dean Lonsdale [EMAIL PROTECTED] wrote:


 Does anyone know how to verify whether Tomcat is operational using a
 browser or other wise !!!

 Help appreciated ...many thanks



 Regards / Cordialement / Mit freundlichen Grüßen

 --  [image: IBM]   *Dean Lonsdale*   *Dean 
 Lonsdale/UK/IBM*Dean+Lonsdale/UK/IBM
   [EMAIL PROTECTED] [EMAIL PROTECTED]   Systems Architect
 IBM Systems  Technology Group
 Senior Accredited IT Specialist
 Tivoli Certified Consultant

 IBM UK Ltd, Washway Road, Manchester   Ext: 07834 252463
 Mobex: 264328   +44 (0)1253 731299 View the Systems Group website at
 http://w3-03.ibm.com/systemstechnology/index.html



  --

 *
 *

 *Unless stated otherwise above:
 IBM United Kingdom Limited - Registered in England and Wales with number
 741598.
 Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
 *









-- 
Regards
Partha Goswami
Solaris/Open solaris User Group
www.solaris-user-group.org


RE: Problems with SSL

2007-08-09 Thread Caldarale, Charles R
 From: Dario Hernan [mailto:[EMAIL PROTECTED] 
 Subject: Re: Problems with SSL
 
 -Dcatalina.ext.dirs=/usr/share/tomcat5/shared/lib:/usr/share/t
 omcat5/common/lib
 -Dcatalina.ext.dirs=/usr/share/tomcat5/shared/lib:/usr/share/t
 omcat5/common/lib

Why do you have that property specified twice?  For that matter, why do
you have it specified at all?

 -classpath /usr/lib/jvm/jre-1.5.0-ibm/lib/tools.jar:
 /usr/share/tomcat5/bin/bootstrap.jar:
 /usr/share/tomcat5/bin/commons-logging-api.jar:
 /usr/share/java/mx4j/mx4j-impl.jar:
 /usr/share/java/mx4j/mx4j-jmx.jar

Typically, the only thing needed on the -classpath is bootstrap.jar; you
certainly don't need tools.jar anymore.  Why are the other jars there?
The MX4J classes are not needed with a true JRE 5 implementation.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Testing Tomcat - HELP

2007-08-09 Thread Partha Goswami

 or Linux/ Solaris/UNix, go to bin folder where Tomcat Installed already,
then,

 # ./startup.sh

this one for starting Tomcat,,,



On 8/10/07, Partha Goswami [EMAIL PROTECTED] wrote:

 for Linux/ Solaris/UNix, go to bin folder where Tomcat Installed already,
 then,

  # ./startup.sh
 Then point your browser, to
 http://yourhost/domain name.com:8080

 It will install, in 8080 port by default..

 let me know, if you have any question..
 Thanks
 On 8/10/07, Dean Lonsdale  [EMAIL PROTECTED] wrote:
 
 
  Does anyone know how to verify whether Tomcat is operational using a
  browser or other wise !!!
 
  Help appreciated ...many thanks
 
 
 
  Regards / Cordialement / Mit freundlichen Grüßen
 
  --  [image: IBM]   *Dean Lonsdale*   *Dean 
  Lonsdale/UK/IBM*Dean+Lonsdale/UK/IBM
[EMAIL PROTECTED] [EMAIL PROTECTED]   Systems Architect
  IBM Systems  Technology Group
  Senior Accredited IT Specialist
  Tivoli Certified Consultant
 
  IBM UK Ltd, Washway Road, Manchester   Ext: 07834 252463
  Mobex: 264328   +44 (0)1253 731299 View the Systems Group website at
  http://w3-03.ibm.com/systemstechnology/index.html
 
 
 
   --
 
  *
  *
 
  *Unless stated otherwise above:
  IBM United Kingdom Limited - Registered in England and Wales with number
  741598.
  Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
  3AU*
 
 
 
 
 
 
 


 --
 Regards
 Partha Goswami
 Solaris/Open solaris User Group
 www.solaris-user-group.org




-- 
Regards
Partha Goswami
Solaris/Open solaris User Group
www.solaris-user-group.org


RE: Tomcat 5.5.20 application context set using Path?

2007-08-09 Thread Caldarale, Charles R
 From: Vigorito, Nicholas E. [mailto:[EMAIL PROTECTED] 
 Subject: RE: Tomcat 5.5.20 application context set using Path?
 
 Actually, having the path attribute is more flexible. You can then
 specify something like /a/b/c which you cannot do with a filename.

Not correct; use the name a#b#c.xml if you want a multi-level path.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat and path with pound sign (#) - ClassNotFoundException

2007-08-09 Thread Markus Schiegl
Hi all,

just to close the topic on this mailing list:

As jetty suffers from exactly the same problem i'm rather confident this
is not a tomcat problem but part of the java classloader and its
implementation. Next - and last - stop for confirmation: Sun :-)

kind regards,
   Markus

Alexey Solofnenko wrote:
 Try running bash -x catalina.sh run to see if Java is started
 correctly. If it is not, try running the same command from a normal
 directory, and run the same command yourself without using scripts
 provided with Tomcat.
 
 - Alexey.
 
 Markus Schiegl wrote:
 Hi,

 you're right about # as a special char for different programming
 languages. but nevertheless the # sign is a valid character for
 directory and file names (in contrast to * or / for example) for unix
 and windows. If it's wise to use it is another question but sometimes
 it's just beyond your control.

 The same problem (# in directory name) and error message
 (ClassNotFoundException) happens with Windows XP. Confirms my suspicion
 this beeing a Java and/or Tomcat issue.

 kind regards,
Markus

 Propes, Barry L wrote:
  
 isn't that likely because in some languages like PHP, Python and Perl
 the # is to comment out a line, and it will invariably break the code?
 Because I thought some on this list were integrating Tomcat with
 those languages.

 -Original Message-
 From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 09, 2007 7:58 AM
 To: Tomcat Users List
 Subject: Re: Tomcat and path with pound sign (#) -
 ClassNotFoundException


 On 8/8/07, Markus Schiegl [EMAIL PROTECTED] wrote:


 Has anybody been able to start a tomcat server from such a directory?
   
 I copied a working installation from /usr/local/apache-tomcat-6.0.13
 to /usr/local/apache-tomcat#6.0.13, set CATALINA_HOME and got this:


 ./bin/catalina.sh run
   
 Using CATALINA_BASE:   /usr/local/apache-tomcat#6.0.13
 Using CATALINA_HOME:   /usr/local/apache-tomcat#6.0.13
 Using CATALINA_TMPDIR: /usr/local/apache-tomcat#6.0.13/temp
 Using JRE_HOME:   /usr/local/jdk1.6.0_02/jre
 java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at
 org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)

 So it seems a genuine limitation...

 HTH,
 

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
   
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat listening on port, but get timeout in browser

2007-08-09 Thread David Doughty
Made sure there were no other processes using the port before starting
this time; also serving static htm page as welcome page; still seeing
same problem! 
  Thanks,
  David D.

Juan Ignacio Garzón wrote:
 Are you entering to a static or dynamic (ie servlet, jsp) page? Maybe
 its a database timeout, or the application you are running is too
 heavy (a performance bug).

 Try entering a static page in order to discard an application /
 database problem.

 2007/8/8, David Doughty [EMAIL PROTECTED]:
   
   I've got a Tomcat installation that is acting strange, and not being
 much of a Tomcat geek, I'm feeling a bit lost.  We just rebuilt the java
 application it's supposed to be serving, and restarted Tomcat.  It appears
 (from 'ps' and the log files) to start up just fine; netstat shows a
 process listening on the port (8080); but when we point a browser to the
 port, we get a timeout.  There isn't another app listening on
 that port; no errors in the tomcat logs or /var/log/messages...
   We've tried going back to older code, up to newer code, and always get the 
 same result.
   Any suggestions?  Tomcat 4 on Redhat 7; Coyote connector by itself (ie. no 
 webserver).
  Thanks,
  David D.
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat listening on port, but get timeout in browser

2007-08-09 Thread Partha Goswami
I think, you should download latest version, then it will work fine..



On 8/10/07, David Doughty [EMAIL PROTECTED] wrote:

 Made sure there were no other processes using the port before starting
 this time; also serving static htm page as welcome page; still seeing
 same problem!
   Thanks,
   David D.

 Juan Ignacio Garzón wrote:
  Are you entering to a static or dynamic (ie servlet, jsp) page? Maybe
  its a database timeout, or the application you are running is too
  heavy (a performance bug).
 
  Try entering a static page in order to discard an application /
  database problem.
 
  2007/8/8, David Doughty [EMAIL PROTECTED]:
 
I've got a Tomcat installation that is acting strange, and not being
  much of a Tomcat geek, I'm feeling a bit lost.  We just rebuilt the
 java
  application it's supposed to be serving, and restarted Tomcat.  It
 appears
  (from 'ps' and the log files) to start up just fine; netstat shows a
  process listening on the port (8080); but when we point a browser to
 the
  port, we get a timeout.  There isn't another app listening on
  that port; no errors in the tomcat logs or /var/log/messages...
We've tried going back to older code, up to newer code, and always
 get the same result.
Any suggestions?  Tomcat 4 on Redhat 7; Coyote connector by itself
 (ie. no webserver).
   Thanks,
   David D.
 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Regards
Partha Goswami
Solaris/Open solaris User Group
www.solaris-user-group.org


RE: Tomcat 5.5.20 application context set using Path?

2007-08-09 Thread Vigorito, Nicholas E.
Thanks! 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg] On Behalf Of Caldarale, Charles R
Sent: Thursday, August 09, 2007 3:24 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.20 application context set using Path?

 From: Vigorito, Nicholas E. [mailto:[EMAIL PROTECTED]
 Subject: RE: Tomcat 5.5.20 application context set using Path?
 
 Actually, having the path attribute is more flexible. You can then 
 specify something like /a/b/c which you cannot do with a filename.

Not correct; use the name a#b#c.xml if you want a multi-level path.

 - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat and path with pound sign (#) - ClassNotFoundException

2007-08-09 Thread Alexey Solofnenko
In ANT we are using our own URL encoding, because Java one does not 
[always] work correctly in some cases. I guess it could be happening 
here too (possibly when creating new URLClassLoaderes). Anyway, there 
are Tomcat sources available. Feel free fixing them and submitting the 
patch.


See 
http://www.cenqua.com/fisheye/demo/browse/ant/src/main/org/apache/tools/ant/launch/Locator.java 
.


- Alexey.

Markus Schiegl wrote:

Hi Alexey,

yes it does (see message thread and different logs). i've checked with
set -x and even the actual process call with ps and truss/strace.
same problem if I call java directly - okay it does not log to
catalina.out but to stdout...

Somewhere the road while watching the truss output the open-syscalls use
the wrong/truncated directory.

thanks and kind regards,
   Markus

Alexey Solofnenko wrote:
  

Try running bash -x catalina.sh run to see if Java is started
correctly. If it is not, try running the same command from a normal
directory, and run the same command yourself without using scripts
provided with Tomcat.

- Alexey.

Markus Schiegl wrote:


Hi,

you're right about # as a special char for different programming
languages. but nevertheless the # sign is a valid character for
directory and file names (in contrast to * or / for example) for unix
and windows. If it's wise to use it is another question but sometimes
it's just beyond your control.

The same problem (# in directory name) and error message
(ClassNotFoundException) happens with Windows XP. Confirms my suspicion
this beeing a Java and/or Tomcat issue.

kind regards,
   Markus

Propes, Barry L wrote:
 
  

isn't that likely because in some languages like PHP, Python and Perl
the # is to comment out a line, and it will invariably break the code?
Because I thought some on this list were integrating Tomcat with
those languages.

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 09, 2007 7:58 AM
To: Tomcat Users List
Subject: Re: Tomcat and path with pound sign (#) -
ClassNotFoundException


On 8/8/07, Markus Schiegl [EMAIL PROTECTED] wrote:

   


Has anybody been able to start a tomcat server from such a directory?
  
  

I copied a working installation from /usr/local/apache-tomcat-6.0.13
to /usr/local/apache-tomcat#6.0.13, set CATALINA_HOME and got this:

   


./bin/catalina.sh run
  
  

Using CATALINA_BASE:   /usr/local/apache-tomcat#6.0.13
Using CATALINA_HOME:   /usr/local/apache-tomcat#6.0.13
Using CATALINA_TMPDIR: /usr/local/apache-tomcat#6.0.13/temp
Using JRE_HOME:   /usr/local/jdk1.6.0_02/jre
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)

So it seems a genuine limitation...

HTH,



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  


--

Alexey N. Solofnenko http://trelony.cjb.net/
Pleasant Hill, CA (GMT-8 usually)


smime.p7s
Description: S/MIME Cryptographic Signature


MOD_JK TEST

2007-08-09 Thread Dean Lonsdale
Hi guys

Can anyone let me know of a test to prove whether the mod_jk is working 
between Apache and Tomcat please ?

many thanks 

Regards / Cordialement / Mit freundlichen Grüßen

-- 

 
Dean Lonsdale
 
Dean Lonsdale/UK/IBM
 
[EMAIL PROTECTED]
 
Systems Architect
IBM Systems  Technology Group
Senior Accredited IT Specialist
Tivoli Certified Consultant

IBM UK Ltd, Washway Road, Manchester
 
Ext: 07834 252463
Mobex: 264328
 
+44 (0)1253 731299
View the Systems Group website at 
http://w3-03.ibm.com/systemstechnology/index.html 






Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







Re: Testing Tomcat - HELP

2007-08-09 Thread hanasaki
telnet to the port its running on or hit it with the browser.

Dean Lonsdale wrote:
 
 Does anyone know how to verify whether Tomcat is operational using a
 browser or other wise !!!
 
 Help appreciated ...many thanks
 
 
 
 
 Regards / Cordialement / Mit freundlichen Grüßen
 
 -- 
 IBM   *Dean Lonsdale* _Dean Lonsdale/UK/IBM_ 
 mailto:Dean
 Lonsdale/UK/IBM  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   Systems Architect
 IBM Systems  Technology Group
 Senior Accredited IT Specialist
 Tivoli Certified Consultant
 
 IBM UK Ltd, Washway Road, Manchester  Ext: 07834 252463
 Mobex: 264328 +44 (0)1253 731299
 View the Systems Group website at
 http://w3-03.ibm.com/systemstechnology/index.html
 
 
 
 
 
 
 
 /
 /
 
 /Unless stated otherwise above:
 IBM United Kingdom Limited - Registered in England and Wales with number
 741598.
 Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU/
 
 
 
 
 
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat listening on port, but get timeout in browser

2007-08-09 Thread David Doughty
Thanks, but not an option.   Customer won't go to new version. - David D.
Partha Goswami wrote:
 I think, you should download latest version, then it will work fine..

   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat listening on port, but get timeout in browser

2007-08-09 Thread Partha Goswami
humm.. yes. then, cheack if any other process, running on the port.

On 8/10/07, David Doughty [EMAIL PROTECTED] wrote:

 Thanks, but not an option.   Customer won't go to new version. - David D.
 Partha Goswami wrote:
  I think, you should download latest version, then it will work fine..
 
 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Regards
Partha Goswami
Solaris/Open solaris User Group
www.solaris-user-group.org


Re: Tomcat listening on port, but get timeout in browser

2007-08-09 Thread David Doughty
Already checked for other processes; loading static welcome page, too. 
Weird, isn't it?
  Thanks,
  - David D.
Partha Goswami wrote:
 humm.. yes. then, cheack if any other process, running on the port.

 On 8/10/07, David Doughty [EMAIL PROTECTED] wrote:
   
 Thanks, but not an option.   Customer won't go to new version. - David D.
 Partha Goswami wrote:
 
 I think, you should download latest version, then it will work fine..
   

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MOD_JK TEST

2007-08-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dean,

Dean Lonsdale wrote:
 Can anyone let me know of a test to prove whether the mod_jk is working
 between Apache and Tomcat please ?

Do you need something other than a smoke test? Generally, you can
demonstrate that mod_jk is working by attempting to request a page. If
you get the page... it's working!

- -chris

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

iD8DBQFGu3vN9CaO5/Lv0PARAqV7AJ9c8cOfQy5A0/YhQywF0cL37cJibwCfVt0J
RWYTvNgWpS5lWCscplKJaUw=
=Om2K
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MOD_JK TEST

2007-08-09 Thread Partha Goswami
hi,
is ur tomcat working ? can u view it throgh browser?


On 8/10/07, Dean Lonsdale [EMAIL PROTECTED] wrote:


 Hi guys

 Can anyone let me know of a test to prove whether the mod_jk is working
 between Apache and Tomcat please ?

 many thanks

 Regards / Cordialement / Mit freundlichen Grüßen

 --  [image: IBM]   *Dean Lonsdale*   *Dean 
 Lonsdale/UK/IBM*Dean+Lonsdale/UK/IBM
   [EMAIL PROTECTED] [EMAIL PROTECTED]   Systems Architect
 IBM Systems  Technology Group
 Senior Accredited IT Specialist
 Tivoli Certified Consultant

 IBM UK Ltd, Washway Road, Manchester   Ext: 07834 252463
 Mobex: 264328   +44 (0)1253 731299 View the Systems Group website at
 http://w3-03.ibm.com/systemstechnology/index.html



  --

 *
 *

 *Unless stated otherwise above:
 IBM United Kingdom Limited - Registered in England and Wales with number
 741598.
 Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
 *









-- 
Regards
Partha Goswami
Solaris/Open solaris User Group
www.solaris-user-group.org


connection reset by peer

2007-08-09 Thread Yair Zohar

Hello,
I'm using tomcat5.5.23 on a Fedora 5 kernel: 2.6.20-1.2320.fc5.
I redirect port 80 to 8080 by running by root:

iptables -t nat -A OUTPUT -d localhost -p tcp --dport 80 -j REDIRECT 
--to-ports 8080
iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth0 -j REDIRECT 
--to-port 8080


Sometimes (quite often) I get connection reset by peer, in the middle of 
page loading.


It looks like that when running wget (although it happens also using 
firefox and ie):


Connecting to ard.huji.ac.il|132.64.50.50|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

0% [ ] 2,555 --.--K/s

23:43:29 (169.02 KB/s) - Read error at byte 271959 (Connection reset by 
peer).Retrying.


it happens each time in a different stage of the page download.
It happens mainly (or only) on large pages (~45 bytes).

the server is inside inside a firewall, the error occurs when trying to 
access it from outside the firewall,

I couldn't reproduce the error from inside the firewall.

Can someone help with that ?
Yair.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat listening on port, but get timeout in browser

2007-08-09 Thread Hassan Schroeder
On 8/9/07, David Doughty [EMAIL PROTECTED] wrote:
 Already checked for other processes; loading static welcome page, too.

Can you telnet to that port? And are you absolutely sure no one did
anything to your iptables or whatever firewall might be running? I'd
log into the system and try to telnet to localhost 8080, as well.

If your logs show normal Connector startup messages but nothing
else, maybe you could enable the RequestDumper valve to see if there's
anything useful there.

You could also  start it up under truss, or install LambdaProbe and
see what that tells you.

/me finishes throwing out straws :-)
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat listening on port, but get timeout in browser

2007-08-09 Thread PTS

/me finishes throwing out straws :-)
--
Hassan Schroeder  [EMAIL PROTECTED]



Since Hassan has run out I have a few. What IF Tomcat is starting OK but 
there is no page to serve at the URL you are going to? IF the server is 
starting fine but the app is not deploying then where would you be? Are 
there any other apps running? Can you build a small test app with static 
pages?


Just a few crazy notions.

Doug 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Certificate for Tomcat JVM and CAS

2007-08-09 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. This is known as thread hijacking and to many of the
list archiving services and mail clients used by list subscribers this
makes your new message appear as part of the old thread. This makes it
harder for other users to find relevant information when searching the
lists.

It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Thanks,

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat listening on port, but get timeout in browser

2007-08-09 Thread David Smith
Maybe I'm being too picky in the language, but I'm not entirely clear 
from your posts if the failure is just on jsps and servlets or across 
the board (jsps, servlets, html, images, styles, javascript, etc., 
...).  Your original post implied the problem was across the board.


I ask just to be clear where the problem is -- possible 
connector/firewall issue or something funny with servlets/jsps hanging 
-- possibly waiting on some back end resource.  Can you turn on the 
access log valve or request dumper valve to see that tomcat is actually 
receiving the request in your logs?


--David

David Doughty wrote:
Already checked for other processes; loading static welcome page, too. 
Weird, isn't it?

  Thanks,
  - David D.
Partha Goswami wrote:
  

humm.. yes. then, cheack if any other process, running on the port.

On 8/10/07, David Doughty [EMAIL PROTECTED] wrote:
  


Thanks, but not an option.   Customer won't go to new version. - David D.
Partha Goswami wrote:

  

I think, you should download latest version, then it will work fine..
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat Issue with HPUX

2007-08-09 Thread pkt

HI All
  I and running tomcat on HPUX machine. The problem is that on HP machine
the maximum thread per process allowed is 65 ( default), so i configured max
thread count in server.xml to 60. I used JMeter to check the behavior when
there is enough load on tomcat. What i have observed is that even though i
configured its maxthread count not to exceed 60 it is reaching 65 and as
soon as it goes beyond 65 tomcat throws OutOfMemoryError. After this the
thread are killed ( probably by the OS) and then the thread count comes back
to around 27 but tomcat does not process any new request any more. What i
was expecting is that once the threads are killed and thread count comes
back to 27 it should again start processing new request.

One option is that to increase the max thread per process limit of HP to
high value, but administrators are not very convinced with this idea

Any pointers on this issue. 

Thanks and Regards
Pankaj Tiwari
-- 
View this message in context: 
http://www.nabble.com/Tomcat-Issue-with-HPUX-tf4246754.html#a12085566
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]