Re: Place .ini conf file inside the war package.

2010-12-07 Thread srd.pl

Thank's guys. I am now loading the properties file, but in order to provide
changes in the file i need to restart the webservice on tomcat. I'll at the
appach commons closer for that. 
-- 
View this message in context: 
http://old.nabble.com/Place-.ini-conf-file-inside-the-war-package.-tp30366628p30394403.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Step by Step Guide – Install Jakarta on Windows 20 03 and 2008 Server

2010-12-07 Thread Gabriel Pedersen
These Step by Step Guides covers the installation of Apache Tomcat Connector
Jakarta on Windows 2003 and 2008 Server. In these guides Jakarta are used by
Nordic Edge products to integrate with Windows IIS to enable Single Sign-On
to SAML applications or other Nordic Edge products but the guides are
helpful in any cases when installing the Tomcat Connector Jakarta on Windows
Server.

http://support.nordicedge.se/step-by-step-guide-install-jakarta-on-windows-2008-server/

http://support.nordicedge.se/step-by-step-guide-install-jakarta-on-windows-2003-server/


Re: Tomcat dying on its own

2010-12-07 Thread Rainer Jung

On 06.12.2010 23:36, Guillaume Carbonneau wrote:

On Mon, Dec 6, 2010 at 2:25 PM, Konstantin Kolinko
knst.koli...@gmail.com  wrote:

2010/12/6 Guillaume Carbonneauguillaume.carbonn...@gmail.com:

Hi everyone,
My tomcat server seems to die on its own without leaving any backtrace...

The  last info I get in the logs are :
Dec 3, 2010 6:11:35 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8077
Dec 3, 2010 6:11:36 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Dec 3, 2010 6:11:36 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8077

Running The Apache Tomcat 6.0 (6.0.29)
Linux Oracle Red hat : 2.6.18-194.el5
java version 1.6.0_21

This has happened more than once and will occur even if there is no
traffic. restarting brings it back up but it has proven to be
unreliable...



At least, it is not a sudden death.

Tomcat can be shut down by sending a certain string to port 8005 on
localhost (see the first lines of server.xml),  -  normal shutdown
or by sending a system signal that causes JVM to exit, or by calling
System.exit().
-  shutdown hook perform the shutdown

You can install a Listener and print a stacktrace when the stop event
happens.  The stack traces for the normal shutdown sequence and for
the shutdown hook will be different.

The Linux out-of-memory killer was already mentioned.

BTW, you are not alone: such a thread happens here every 4-6 months.

Best regards,
Konstantin Kolinko

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




I seem to have solved the problem at least temporarily through this solution :
I installed the latest JDK on the deployed machine and ran tomcat
through catalina.sh debug, then run
No crash so far so good.


When starting Tomcat interactively you should be aware that some shells 
kill all child processes when you log out (or get logged out 
automatically). There's nohup though.


I'm not sure what kind of signal is used then, so I can't tell whether 
the orderly shutdown messages in your logs contradict that theory or not.


Regards,

Rainer

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



Re: java thread open after Tomcat shutting down

2010-12-07 Thread pix_siro

I solved writing a simple script to shutting down tomacat and kill the java
process:

# stop tomcat
su - primelife -c /usr/local/apache-tomcat-7.0.4/bin; ./shutdown.sh
/dev/null 21

# give application 5 seconds to stop itself
sleep 2

# if application is still running kill it anyway
app_pid=$(ps axuw | grep -v grep | grep /usr/local/apache-tomcat-7.0.4/bin
| awk '{print $2}')
[[ x${app_pid}x == xx ]] || kill -9 ${app_pid} /dev/null 21

Thanks.


markt-2 wrote:
 
 On 03/12/2010 18:36, pix_siro wrote:
 
 Hi all,
 I'm working on Ubuntu 9.10, I have implemented a Java application and I
 have
 installed it on Tomcat 7.0.4 with a WAR file. When I shut down Tomcat
 with
 the command ./shutdown.sh, a java thread remains open. Notice that
 application have a connection with a postgres db but the connections are
 correctly closed. Someone know why?
 With the command ps ax | grep java I have the thread's specifications:
 
 That is the process, not the specific Java thread. Take a thread dump to
 see what threads are still running. You want the non-daemon one.
 
 Mark
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/java-thread-open-after-Tomcat-shutting-down-tp30366568p30394888.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Setting listings=true on a per context basis

2010-12-07 Thread Fergus McMenemie

Beginner Question!

I have a c:/tomcat/conf/catalina/localhost/vendoraDocs.xml which
contains two lines:-

Context docBase=D:\vendora\Docs
/Context

The defaultServlet as defined within c:/tomcat/conf/web.xml
has listings=false which suites fine for most cases. But for vendora
I need listings=true. How do I turn listings on for just this one
context?

Thanks in advance.
-- 
==
Fergus McMenemieEmail:fer...@twig.me.uk
==

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



Re: java thread open after Tomcat shutting down

2010-12-07 Thread Pid
On 12/7/10 10:13 AM, pix_siro wrote:
 
 I solved writing a simple script to shutting down tomacat and kill the java
 process:
 
 # stop tomcat
 su - primelife -c /usr/local/apache-tomcat-7.0.4/bin; ./shutdown.sh
 /dev/null 21
 
 # give application 5 seconds to stop itself
 sleep 2
 
 # if application is still running kill it anyway
 app_pid=$(ps axuw | grep -v grep | grep /usr/local/apache-tomcat-7.0.4/bin
 | awk '{print $2}')
 [[ x${app_pid}x == xx ]] || kill -9 ${app_pid} /dev/null 21
 
 Thanks.

You've treated the symptom.  What was the actual problem?

If you stop an application, or Tomcat and the catalina.out logfile
contains warnings about threads still running, you'll have an idea of
what's wrong.  (Which is why we asked for more information.)

Alternatively, ignore the problem and any other side-effects it might have.


p


 markt-2 wrote:

 On 03/12/2010 18:36, pix_siro wrote:

 Hi all,
 I'm working on Ubuntu 9.10, I have implemented a Java application and I
 have
 installed it on Tomcat 7.0.4 with a WAR file. When I shut down Tomcat
 with
 the command ./shutdown.sh, a java thread remains open. Notice that
 application have a connection with a postgres db but the connections are
 correctly closed. Someone know why?
 With the command ps ax | grep java I have the thread's specifications:

 That is the process, not the specific Java thread. Take a thread dump to
 see what threads are still running. You want the non-daemon one.

 Mark

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



 



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: java thread open after Tomcat shutting down

2010-12-07 Thread pix_siro

You're right but for the moment this is not my priority. Anyway I post the
lines of code in the catalina.out logfile with errors:

3-dic-2010 11.32.05 org.apache.catalina.loader.WebappClassLoader
clearReferencesJdbc
GRAVE: The web application [/OverEncrypt] registered the JBDC driver
[org.postgresql.Driver] but failed to unregister it when the web application
was stopped. To prevent a memory leak, the JDBC Driver has been forcibly
unregistered.
3-dic-2010 11.32.05 org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
GRAVE: The web application [/OverEncrypt] appears to have started a thread
named [pool-1-thread-1] but has failed to stop it. This is very likely to
create a memory leak.

I think the second GRAVE error is that significant.


Pid * wrote:
 
 On 12/7/10 10:13 AM, pix_siro wrote:
 
 I solved writing a simple script to shutting down tomacat and kill the
 java
 process:
 
 # stop tomcat
 su - primelife -c /usr/local/apache-tomcat-7.0.4/bin; ./shutdown.sh
 /dev/null 21
 
 # give application 5 seconds to stop itself
 sleep 2
 
 # if application is still running kill it anyway
 app_pid=$(ps axuw | grep -v grep | grep
 /usr/local/apache-tomcat-7.0.4/bin
 | awk '{print $2}')
 [[ x${app_pid}x == xx ]] || kill -9 ${app_pid} /dev/null 21
 
 Thanks.
 
 You've treated the symptom.  What was the actual problem?
 
 If you stop an application, or Tomcat and the catalina.out logfile
 contains warnings about threads still running, you'll have an idea of
 what's wrong.  (Which is why we asked for more information.)
 
 Alternatively, ignore the problem and any other side-effects it might
 have.
 
 
 p
 
 
 markt-2 wrote:

 On 03/12/2010 18:36, pix_siro wrote:

 Hi all,
 I'm working on Ubuntu 9.10, I have implemented a Java application and I
 have
 installed it on Tomcat 7.0.4 with a WAR file. When I shut down Tomcat
 with
 the command ./shutdown.sh, a java thread remains open. Notice that
 application have a connection with a postgres db but the connections
 are
 correctly closed. Someone know why?
 With the command ps ax | grep java I have the thread's specifications:

 That is the process, not the specific Java thread. Take a thread dump to
 see what threads are still running. You want the non-daemon one.

 Mark

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



 
 
 
  
  
 

-- 
View this message in context: 
http://old.nabble.com/java-thread-open-after-Tomcat-shutting-down-tp30366568p30395039.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



configure the web.xml file to display the index.jsp page of a web application

2010-12-07 Thread pix_siro

Hi all,
I'm working on Ubuntu 9.10 where I have installed Tomcat 7. I have a problem
with following web.xml file: the program work fine but when I try to connect
to localhost:8080/OverEncrypt I can not show any page even if I set
index.jsp.

The folder configuration is the following:
$CATALINA_HOME/webapps/OverEncrypt/WEB-INF with classes and lib folder;
$CATALINA_HOME/webapps/OverEncrypt/WEB-INF/web.xml;
$CATALINA_HOME/webapps/OverEncrypt/index.jsp the page that I want show on
the browser;

What should I change to display the page index.jsp?

?xml version=1.0 encoding=UTF-8?
web-app xmlns=http://java.sun.com/xml/ns/javaee;

  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

  xsi:schemaLocation=http://java.sun.com/xml/ns/javaee

  http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd;

  version=3.0

  metadata-complete=true
display-nameOverEncrypt/display-name
servlet
servlet-namemilton/servlet-name
   
servlet-classcom.bradmcevoy.http.MiltonServlet/servlet-class
init-param
   
param-nameresource.factory.factory.class/param-name
   
param-valueunibg.overencrypt.Initializer/param-value
/init-param
init-param
   
param-nameauthentication.handler.classes/param-name
   
param-valuecom.bradmcevoy.http.http11.auth.BasicAuthHandler/param-value
/init-param
init-param
param-namenot.found.url/param-name
param-value/404.jsp/param-value
/init-param
init-param
param-namefilter_0/param-name
   
param-valuecom.bradmcevoy.http.DebugFilter/param-value
/init-param
load-on-startup0/load-on-startup
/servlet

servlet-mapping
servlet-namemilton/servlet-name
url-pattern/*/url-pattern
/servlet-mapping

session-config
session-timeout30/session-timeout
/session-config

welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list

/web-app
-- 
View this message in context: 
http://old.nabble.com/configure-the-web.xml-file-to-display-the-index.jsp-page-of-a-web-application-tp30395063p30395063.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



JMX.mbean.unregistered - Stopping Coyote

2010-12-07 Thread Christoph Kukulies
I'm trying to figure out why my apache2/tomcat5.5 combo isn't working 
any longer since some update

I did on my debian 5.0.6 machine.

I have three connetors on port 8080, 8081 and 8082 between apache2 and 
tomcat5.5 to serve some
VirtualHosts. None of the Vhosts is working (they are all giving an 
empty page in the browser, no code
and the apache log shows an error 400 (which should be redirected and 
rewritten withing the Virtual Hosts sections).


I enabled log4j logging and I'm seeing in the log:

DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=GlobalRequestProcessor,name=http-8080 type : 
JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=GlobalRequestProcessor,name=http-8080 type : 
JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=Mapper,port=8081 type : JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=Mapper,port=8081 type : JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=ProtocolHandler,port=8081 type : JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=ProtocolHandler,port=8081 type : JMX.mbean.unregistered
INFO main org.apache.coyote.http11.Http11BaseProtocol - Stopping Coyote 
HTTP/1.1 on http-8081
DEBUG http-8081-Processor1 org.apache.tomcat.util.threads.ThreadPool - 
Terminate
DEBUG http-8081-Processor2 org.apache.tomcat.util.threads.ThreadPool - 
Terminate
DEBUG http-8081-Processor3 org.apache.tomcat.util.threads.ThreadPool - 
Terminate



I'm not sure whether this is the cause of the malfunction but it was the 
only thing I could pinpoint.


--
Christoph P.U. Kukulies


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



Re: JMX.mbean.unregistered - Stopping Coyote

2010-12-07 Thread André Warnier

Christoph Kukulies wrote:
I'm trying to figure out why my apache2/tomcat5.5 combo isn't working 
any longer since some update

I did on my debian 5.0.6 machine.


What did you update ?
What kind of connector is supposed to be used between Apache httpd and Tomcat ? 
(mod_proxy_http, mod_proxy_ajp, mod_jk ?)

Where are the virtual Hosts defined ? in the httpd or the tomcat configuration, 
or both ?





I have three connetors on port 8080, 8081 and 8082 between apache2 and 
tomcat5.5 to serve some
VirtualHosts. None of the Vhosts is working (they are all giving an 
empty page in the browser, no code
and the apache log shows an error 400 (which should be redirected and 
rewritten withing the Virtual Hosts sections).


I enabled log4j logging and I'm seeing in the log:

DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=GlobalRequestProcessor,name=http-8080 type : 
JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=GlobalRequestProcessor,name=http-8080 type : 
JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=Mapper,port=8081 type : JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=Mapper,port=8081 type : JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=ProtocolHandler,port=8081 type : JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=ProtocolHandler,port=8081 type : JMX.mbean.unregistered
INFO main org.apache.coyote.http11.Http11BaseProtocol - Stopping Coyote 
HTTP/1.1 on http-8081
DEBUG http-8081-Processor1 org.apache.tomcat.util.threads.ThreadPool - 
Terminate
DEBUG http-8081-Processor2 org.apache.tomcat.util.threads.ThreadPool - 
Terminate
DEBUG http-8081-Processor3 org.apache.tomcat.util.threads.ThreadPool - 
Terminate



I'm not sure whether this is the cause of the malfunction but it was the 
only thing I could pinpoint.





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



Re: java thread open after Tomcat shutting down

2010-12-07 Thread Pid
On 12/7/10 10:38 AM, pix_siro wrote:
 GRAVE: The web application [/OverEncrypt] appears to have started a thread
 named [pool-1-thread-1] but has failed to stop it. This is very likely to
 create a memory leak.
 
 I think the second GRAVE error is that significant.

That'll be the one.

Ensure that thread is stopped properly and your issue will probably go away.


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


FORM based authentication with MD5 encrypted password

2010-12-07 Thread mike lan
Hello everyone,
is there a way to do FORM based authentication in tomcat
but with MD5 encrypted password ?

thanks


Re: JMX.mbean.unregistered - Stopping Coyote

2010-12-07 Thread Christoph Kukulies

Am 07.12.2010 12:01, schrieb André Warnier:

Christoph Kukulies wrote:
I'm trying to figure out why my apache2/tomcat5.5 combo isn't working 
any longer since some update

I did on my debian 5.0.6 machine.


What did you update ?


It's a couple of months back and I did some apt-get update/upgrade  over 
all and after that my tomcat5.5 was screwed.
I also wonder why this jmx stuff was there (I removed the jmx related 
jars from the bin and lib directory

and now the listeners keep up running.

The VirtualHosts are defined in the httpd.conf on the apache side and 
I'm using direct connectors there (is that mod_proxy_http?).


VirtualHost *
ServerName www.mysite3.de
DocumentRoot /usr/share/tomcat5.5-webapps/ROOT/
ScriptAlias /Perl/   /home/www/mysite3.de/Perl/
Directory /
   Options FollowSymLinks
   AllowOverride None
   Allow from all
/Directory
Directory /usr/share/tomcat5.5-webapps/ROOT/
  Options FollowSymLinks
  AllowOverride None
  Allow from all
/Directory


# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
ServerSignature Off
SetEnvIf Request_URI \/opencms\/* redirect

# Redirect all request to non-existing file in the export directory
# to OpenCms which will generate the files on the fly
  RewriteEngine on
# Redirection for static export
  RewriteCond %{REQUEST_URI}  ^/export/(.*)  [NC]
  RewriteCond 
%{DOCUMENT_ROOT}%{REQUEST_FILENAME}   !-f
  RewriteCond 
%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html !-f
  RewriteRule .* 
http://127.0.0.1:8082/opencms/handle404?exporturi=%{REQUEST_URI}%{QUERY_STRING} 
[P]


# Redirect all 404 errors to OpenCms
 ErrorDocument 404   /system/shared/handle404.html
# Basic proxy rules
 ProxyPreserveHost On
 RedirectPermanent /opencms/   http://www.mysite3.de/
 ProxyPass /opencms/   !
 ProxyPass /resources/ !
 ProxyPass /export/!
 ProxyPass /skins/ !
 ProxyPass  /syscp/ !
 ProxyPass /   http://127.0.0.1:8082/opencms/
 ProxyPassReverse  /   http://127.0.0.1:8082/opencms/
 ProxyPass /webdav/ http://127.0.0.1:8082/webdav/
 ProxyPassReverse /webdav http://127.0.0.1:8082/webdav/
/VirtualHost

server.xml:

!-- Define a non-SSL HTTP/1.1 Connector on port 8180 --
Connector port=8080 maxHttpHeaderSize=8192
proxyName=cms.mysite1.de
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8081 maxHttpHeaderSize=8192
proxyName=www.mysite2.de
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8082 maxHttpHeaderSize=8192
 proxyName=www.mysite3.de
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   /
What kind of connector is supposed to be used between Apache httpd and 
Tomcat ? (mod_proxy_http, mod_proxy_ajp, mod_jk ?)
Where are the virtual Hosts defined ? in the httpd or the tomcat 
configuration, or both ?


See above.
I'm using the ROOT directory for the OpenCMS content management system.
I'm wondering why http://www.mysite3.de:808[012]/admin is available at all.
maybe the admin package gets into the way?








I have three connetors on port 8080, 8081 and 8082 between apache2 
and tomcat5.5 to serve some
VirtualHosts. None of the Vhosts is working (they are all giving an 
empty page in the browser, no code
and the apache log shows an error 400 (which should be redirected and 
rewritten withing the Virtual Hosts sections).


I enabled log4j logging and I'm seeing in the log:

DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=GlobalRequestProcessor,name=http-8080 type : 
JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=GlobalRequestProcessor,name=http-8080 type : 
JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=Mapper,port=8081 type : JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=Mapper,port=8081 type : JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=ProtocolHandler,port=8081 type : JMX.mbean.unregistered
DEBUG main org.apache.catalina.connector.MapperListener - Handle 
Catalina:type=ProtocolHandler,port=8081 type : JMX.mbean.unregistered
INFO main org.apache.coyote.http11.Http11BaseProtocol - Stopping 
Coyote HTTP/1.1 on http-8081
DEBUG http-8081-Processor1 

Re: Setting listings=true on a per context basis

2010-12-07 Thread Mark Thomas

On 07/12/2010 10:27, Fergus McMenemie wrote:


Beginner Question!

I have a c:/tomcat/conf/catalina/localhost/vendoraDocs.xml which
contains two lines:-

Context docBase=D:\vendora\Docs
/Context

The defaultServlet as defined within c:/tomcat/conf/web.xml
has listings=false which suites fine for most cases. But for vendora
I need listings=true. How do I turn listings on for just this one
context?


Redefine the default servlet in your webapp and set listings=true.

Mark



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



Re: FORM based authentication with MD5 encrypted password

2010-12-07 Thread Mark Thomas

On 07/12/2010 11:14, mike lan wrote:

Hello everyone,
is there a way to do FORM based authentication in tomcat
but with MD5 encrypted password ?


Yes. Read the realm docs for details.

Mark



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



Re: Tomcat dying on its own

2010-12-07 Thread Ronald Klop




Op dinsdag, 7 december 2010 09:52 schreef Rainer Jung rainer.j...@kippdata.de:


 
On 06.12.2010 23:36, Guillaume Carbonneau wrote:

 On Mon, Dec 6, 2010 at 2:25 PM, Konstantin Kolinko
 knst.koli...@gmail.com  wrote:
 2010/12/6 Guillaume Carbonneauguillaume.carbonn...@gmail.com:
 Hi everyone,
 My tomcat server seems to die on its own without leaving any backtrace...

 The  last info I get in the logs are :
 Dec 3, 2010 6:11:35 PM org.apache.coyote.http11.Http11Protocol pause
 INFO: Pausing Coyote HTTP/1.1 on http-8077
 Dec 3, 2010 6:11:36 PM org.apache.catalina.core.StandardService stop
 INFO: Stopping service Catalina
 Dec 3, 2010 6:11:36 PM org.apache.coyote.http11.Http11Protocol destroy
 INFO: Stopping Coyote HTTP/1.1 on http-8077

 Running The Apache Tomcat 6.0 (6.0.29)
 Linux Oracle Red hat : 2.6.18-194.el5
 java version 1.6.0_21

 This has happened more than once and will occur even if there is no
 traffic. restarting brings it back up but it has proven to be
 unreliable...


 At least, it is not a sudden death.

 Tomcat can be shut down by sending a certain string to port 8005 on
 localhost (see the first lines of server.xml),  -  normal shutdown
 or by sending a system signal that causes JVM to exit, or by calling
 System.exit().
 -  shutdown hook perform the shutdown

 You can install a Listener and print a stacktrace when the stop event
 happens.  The stack traces for the normal shutdown sequence and for
 the shutdown hook will be different.

 The Linux out-of-memory killer was already mentioned.

 BTW, you are not alone: such a thread happens here every 4-6 months.

 Best regards,
 Konstantin Kolinko

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



 I seem to have solved the problem at least temporarily through this solution :
 I installed the latest JDK on the deployed machine and ran tomcat
 through catalina.sh debug, then run
 No crash so far so good.

When starting Tomcat interactively you should be aware that some shells kill all child 
processes when you log out (or get logged out automatically). There's nohup 
though.

I'm not sure what kind of signal is used then, so I can't tell whether the 
orderly shutdown messages in your logs contradict that theory or not.

Regards,

Rainer






Nohup stands for 'no hup', so the signal is HUP and that means HANG-UP as in 
disconnect your modem. Only the modem is replaced with ssh nowadays.

Ronald.



what ist $CATALINA_HOME/server ? (debian)

2010-12-07 Thread Christoph Kukulies

In seeking what screwed my installation I'm stumbling across a directory
/usr/share/tomcat5.5/server

/usr/share/tomcat5.5# find server
server
server/classes
server/webapps
server/webapps/host-manager
server/webapps/host-manager/manager.xml
server/webapps/host-manager/host-manager.xml
server/webapps/host-manager/WEB-INF
server/webapps/host-manager/WEB-INF/lib
server/webapps/host-manager/WEB-INF/lib/catalina-host-manager.jar
server/webapps/host-manager/WEB-INF/web.xml
server/webapps/host-manager/images
server/webapps/host-manager/images/void.gif
server/webapps/host-manager/images/docs.gif
server/webapps/host-manager/images/code.gif
server/webapps/host-manager/images/fix.gif
server/webapps/host-manager/images/add.gif
server/webapps/host-manager/images/design.gif
server/webapps/host-manager/images/asf-logo.gif
server/webapps/host-manager/images/tomcat.gif
server/webapps/host-manager/images/update.gif
server/webapps/admin
server/webapps/admin/server
server/webapps/admin/admin.css
server/webapps/admin/tree-control-test.css
server/webapps/admin/service
server/webapps/admin/WEB-INF
server/webapps/admin/WEB-INF/struts-config.xml
server/webapps/admin/WEB-INF/struts-tiles.tld
server/webapps/admin/WEB-INF/struts-html.tld
server/webapps/admin/WEB-INF/lib
server/webapps/admin/WEB-INF/lib/commons-digester.jar
server/webapps/admin/WEB-INF/lib/commons-collections3.jar
server/webapps/admin/WEB-INF/lib/commons-beanutils.jar
server/webapps/admin/WEB-INF/lib/struts.jar
server/webapps/admin/WEB-INF/lib/catalina-admin.jar
server/webapps/admin/WEB-INF/controls.tld
server/webapps/admin/WEB-INF/struts-logic.tld
server/webapps/admin/WEB-INF/struts-bean.tld
server/webapps/admin/WEB-INF/struts-nested.tld
server/webapps/admin/WEB-INF/web.xml
server/webapps/admin/realm
server/webapps/admin/context
server/webapps/admin/users
server/webapps/admin/images
server/webapps/admin/images/Thumbs.db
server/webapps/admin/images/folder_16_pad.gif
server/webapps/admin/images/EnvironmentEntries.gif
server/webapps/admin/images/Mailsession.gif
server/webapps/admin/images/handledownlast.gif
server/webapps/admin/images/Connector.gif
server/webapps/admin/images/linelastnode.gif
server/webapps/admin/images/Realm.gif
server/webapps/admin/images/LoginBackgroundTile.gif
server/webapps/admin/images/Login.jpg
server/webapps/admin/images/handlerightmiddle.gif
server/webapps/admin/images/Groups.gif
server/webapps/admin/images/handledownmiddle.gif
server/webapps/admin/images/ResourceLink.gif
server/webapps/admin/images/Valve.gif
server/webapps/admin/images/Logger.gif
server/webapps/admin/images/PaperTexture.gif
server/webapps/admin/images/Service.gif
server/webapps/admin/images/Datasource.gif
server/webapps/admin/images/Context.gif
server/webapps/admin/images/handlerightlast.gif
server/webapps/admin/images/linevertical.gif
server/webapps/admin/images/linemiddlenode.gif
server/webapps/admin/images/Roles.gif
server/webapps/admin/images/Users.gif
server/webapps/admin/images/DefaultContext.gif
server/webapps/admin/images/BlueTile.gif
server/webapps/admin/images/Host.gif
server/webapps/admin/images/Server.gif
server/webapps/admin/images/TomcatBanner.jpg
server/webapps/admin/admin.xml
server/webapps/admin/valve
server/webapps/admin/host
server/webapps/admin/connector
server/webapps/admin/resources
server/webapps/manager
server/webapps/manager/manager.xml
server/webapps/manager/status.xsd
server/webapps/manager/WEB-INF
server/webapps/manager/WEB-INF/lib
server/webapps/manager/WEB-INF/lib/commons-fileupload.jar
server/webapps/manager/WEB-INF/lib/catalina-manager.jar
server/webapps/manager/WEB-INF/lib/commons-io.jar
server/webapps/manager/WEB-INF/web.xml
server/webapps/manager/images
server/webapps/manager/images/void.gif
server/webapps/manager/images/docs.gif
server/webapps/manager/images/code.gif
server/webapps/manager/images/fix.gif
server/webapps/manager/images/add.gif
server/webapps/manager/images/design.gif
server/webapps/manager/images/asf-logo.gif
server/webapps/manager/images/tomcat.gif
server/webapps/manager/images/update.gif
server/webapps/manager/xform.xsl
server/webapps/manager/manager-howto.html
server/webapps/manager/html-manager-howto.html
server/lib
server/lib/catalina-optional.jar
server/lib/catalina.jar
server/lib/tomcat-util.jar
server/lib/servlets-default.jar
server/lib/servlets-webdav.jar
server/lib/servlets-invoker.jar
server/lib/tomcat-apr.jar
server/lib/servlets-cgi.renametojar
server/lib/catalina-ant-jmx.jar
server/lib/servlets-ssi.renametojar
server/lib/tomcat-http.jar
server/lib/catalina-ant.jar
server/lib/catalina-storeconfig.jar
server/lib/catalina-cluster.jar
server/lib/commons-modeler.jar
server/lib/tomcat-ajp.jar
server/lib/tomcat-jkstatus-ant.jar
server/lib/tomcat-coyote.jar


What is this? Some Debian specific stuff? Or the way Debian thinks it 
has to be? How can I get rid of it?


--
Christoph P.U. Kukulies


-
To unsubscribe, e-mail: 

Re: Setting listings=true on a per context basis

2010-12-07 Thread Fergus McMenemie
Mark, Thanks for the prompt reply, After lots of surfing the next I had
tried adjusting
c:/tomcat/conf/catalina/localhost/vendoraDocs.xml as follows:-

servlet
  servlet-nameVendorAlistings/servlet-name
  servlet-classorg.apache.catalina.servlets.DefaultServlet
/servlet-class
  init-param
param-namelistings/param-name
param-valuefalse/param-value
/init-param
  load-on-startup1/load-on-startup
  /servlet

servlet-mapping
  servlet-nameVendorAlistings/servlet-name
  url-pattern//url-pattern
  /servlet-mapping

Context docBase=D:\vendora\Docs
  /Context

But tomcat just ignored the context.

On Tue, 07 Dec 2010 11:24:45 +, Mark Thomas ma...@apache.org wrote:
 On 07/12/2010 10:27, Fergus McMenemie wrote:

 Beginner Question!

 I have a c:/tomcat/conf/catalina/localhost/vendoraDocs.xml which
 contains two lines:-

 Context docBase=D:\vendora\Docs
 /Context

 The defaultServlet as defined within c:/tomcat/conf/web.xml
 has listings=false which suites fine for most cases. But for vendora
 I need listings=true. How do I turn listings on for just this one
 context?
 
 Redefine the default servlet in your webapp and set listings=true.
 
 Mark
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org

-- 
==
Fergus McMenemieEmail:fer...@twig.me.uk
Techmore Limited,   Phone:(UK) 07721 376021
Old Stables, Far End,   Home: (UK) 01522 810839
Boothby Graffoe, Lincoln,
LN5 0LG, England

Unix/Mac/Intranets/WWW  Analyst Programmer
==

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



Quick question on version number

2010-12-07 Thread Norman Wills

Hi Folks, 

I was taking a look at a Tomcat 5.0.30 server for a client and checked out the 
security pages at tomcat.apache.org for updates and such. I had a quick 
question 
about the '.SVN' portion of the label Fixed in Apache Tomcat 5.5.25, 5.0.SVN 
on the security pages for 5.x.

What  is meant by 5.0.SVN aside from something related to SVN repos? Are  
there fixes in SVN which aren't part of a release? Also, does the  version 
change on the error pages if this is the case?

I'm sorry for all of the questions - any help is greatly appreciated.

Thank you,
Norman


  

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



RE: what ist $CATALINA_HOME/server ? (debian)

2010-12-07 Thread Caldarale, Charles R
 From: Christoph Kukulies [mailto:k...@kukulies.org] 
 Subject: what ist $CATALINA_HOME/server ? (debian)

 In seeking what screwed my installation I'm stumbling across a directory
 /usr/share/tomcat5.5/server

Nothing wrong with that.

 What is this? Some Debian specific stuff?

No, it's part of every Tomcat 5.5 distribution.  Debian may have modified it.

 How can I get rid of it?

You don't want to get rid of it, unless you choose to make your life much 
simpler by removing the Debian Tomcat packages and going with a real Tomcat 
download from tomcat.apache.org.

 - Chuck


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

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



Re: Quick question on version number

2010-12-07 Thread Mark Thomas

On 07/12/2010 13:29, Norman Wills wrote:


Hi Folks,

I was taking a look at a Tomcat 5.0.30 server for a client and checked out the
security pages at tomcat.apache.org for updates and such. I had a quick question
about the '.SVN' portion of the label Fixed in Apache Tomcat 5.5.25, 5.0.SVN
on the security pages for 5.x.

What  is meant by 5.0.SVN aside from something related to SVN repos?


It means it has been fixed in the SVN repo for that release branch.


Are there fixes in SVN which aren't part of a release?

Yes, where the fixed version is 5.0.SVN


Also, does the  version change on the error pages if this is the case?
Yes. If there is another 5.0.x release (there won't be by the way) then 
it would change.


Also note:
Vulnerabilities fixed in Tomcat 5.5.26 onwards have not been assessed 
to determine if they are present in the 5.0.x branch.


Mark



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



Re: Tomcat dying on its own

2010-12-07 Thread Rainer Jung

On 07.12.2010 12:27, Ronald Klop wrote:

Op dinsdag, 7 december 2010 09:52 schreef Rainer Jung
rainer.j...@kippdata.de:

On 06.12.2010 23:36, Guillaume Carbonneau wrote:



When starting Tomcat interactively you should be aware that some
shells kill all child processes when you log out (or get logged out
automatically). There's nohup though.

I'm not sure what kind of signal is used then, so I can't tell whether
the orderly shutdown messages in your logs contradict that theory or not.



Nohup stands for 'no hup', so the signal is HUP and that means HANG-UP
as in disconnect your modem. Only the modem is replaced with ssh nowadays.


Of course. Think before write. And yes, the HUP signal calls the 
shutdown hook of the JVM, so Tomcat will shut down orderly when 
receiving HUP. Result: it could also have been logout or auto-logout 
from the shell.


Regards,

Rainer

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



RE: Setting listings=true on a per context basis

2010-12-07 Thread Caldarale, Charles R
 From: Fergus McMenemie [mailto:fer...@twig.me.uk] 
 Subject: Re: Setting listings=true on a per context basis

 After lots of surfing the next I had tried adjusting
 c:/tomcat/conf/catalina/localhost/vendoraDocs.xml as follows:-

Sorry, you got the wrong place.  The servlet settings go in your webapp's 
WEB-INF/web.xml file, not in the Tomcat-specific file containing the Context 
element.  Reading the servlet spec is a prerequisite for using any Java EE 
container.

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



RE: Setting listings=true on a per context basis

2010-12-07 Thread Fergus McMenemie
Thanks for the response. Other than reading the 300 page servlet
spec is there a quicker way to accomplish what I want. 

Further, are you saying that use of catalina/localhost/vendoraDocs.xml
is a tomcat only solution.

How do I best standup a set of vendor supplied HTML docs and
files for browsing through tomcat. It is not worth setting up
IIS for, as we already using tomcat for other purposes.

Regards  

On Tue, 7 Dec 2010 07:57:21 -0600, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: Fergus McMenemie [mailto:fer...@twig.me.uk] 
 Subject: Re: Setting listings=true on a per context basis
 
 After lots of surfing the next I had tried adjusting
 c:/tomcat/conf/catalina/localhost/vendoraDocs.xml as follows:-
 
 Sorry, you got the wrong place.  The servlet settings go in your
 webapp's WEB-INF/web.xml file, not in the Tomcat-specific file
containing
 the Context element.  Reading the servlet spec is a prerequisite for
 using any Java EE container.
 
  - 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.

-- 
==
Fergus McMenemieEmail:fer...@twig.me.uk
Techmore Limited,   Phone:(UK) 07721 376021
Old Stables, Far End,   Home: (UK) 01522 810839
Boothby Graffoe, Lincoln,
LN5 0LG, England

Unix/Mac/Intranets/WWW  Analyst Programmer
==

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



Re: Step by Step Guide – Install Jakarta on Windows 2003 and 2008 Server

2010-12-07 Thread Ognjen Blagojevic

Hi Gabriel,


These Step by Step Guides covers the installation of Apache Tomcat Connector
Jakarta on Windows 2003 and 2008 Server.


The name you chose for your product is confusing. IANAL, but I also 
think it is against the Apache License. Please read guidelines [1], 
section What is the 'confusing similarity' or 'likelihood of confusion' 
test?


I think that proper naming would be: *FooBarSomething* Connector for 
Apache Tomcat, but I recommend checking that on appropriate place [2]. 
Note that 'Jakarta' is a Top Level Project on ASF and it used to be 
umbrella project for Tomcat - which brings even more to the confusion.


-Ognjen

[1] http://www.apache.org/foundation/marks/
[2] http://www.apache.org/legal/

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



RE: Setting listings=true on a per context basis

2010-12-07 Thread Caldarale, Charles R
 From: Fergus McMenemie [mailto:fer...@twig.me.uk] 
 Subject: RE: Setting listings=true on a per context basis

 Other than reading the 300 page servlet spec is there 
 a quicker way to accomplish what I want. 

My response told you exactly where to make the updates.

Regardless, the spec is an easy read (at least the 2.5 version is; 3.0 is a bit 
more difficult).

 Further, are you saying that use of 
 catalina/localhost/vendoraDocs.xml
 is a tomcat only solution.

That file, and its contents, are unique to Tomcat.  Every container vendor has 
their own container-specific mechanism for configuration items that are outside 
the spec.  This is exactly why servlet mappings don't go in there, but rather 
in the spec-defined location.

 How do I best standup a set of vendor supplied HTML docs and
 files for browsing through tomcat. It is not worth setting up
 IIS for, as we already using tomcat for other purposes.

What you're doing is fine; just put the servlet declarations in the right 
place - as documented in the earlier response.  Create a WEB-INF/web.xml file 
in the document tree and have at it.

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



Re: Setting listings=true on a per context basis

2010-12-07 Thread André Warnier

Fergus McMenemie wrote:

Thanks for the response. Other than reading the 300 page servlet
spec is there a quicker way to accomplish what I want. 


Further, are you saying that use of catalina/localhost/vendoraDocs.xml
is a tomcat only solution.

How do I best standup a set of vendor supplied HTML docs and
files for browsing through tomcat. It is not worth setting up
IIS for, as we already using tomcat for other purposes.


What is the platform (O.S.) ?
What is the intended Tomcat version ?
Is it already installed ?
If yes, what was the origin of the installed Tomcat package ?


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



RE: Setting listings=true on a per context basis

2010-12-07 Thread Fergus McMenemie
Charles,

So the servlet declaration goes in tomcat/conf/web.xml
can the rest of the stuff stay in 
   tomcat/conf/Catalina/localhost/vendorAdocs.xml ?

Thanks Fergus.

On Tue, 7 Dec 2010 08:36:13 -0600, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: Fergus McMenemie [mailto:fer...@twig.me.uk] 
 Subject: RE: Setting listings=true on a per context basis
 
 Other than reading the 300 page servlet spec is there 
 a quicker way to accomplish what I want.
 
 My response told you exactly where to make the updates.
 
 Regardless, the spec is an easy read (at least the 2.5 version is; 3.0
is
 a bit more difficult).
 
 Further, are you saying that use of 
 catalina/localhost/vendoraDocs.xml
 is a tomcat only solution.
 
 That file, and its contents, are unique to Tomcat.  Every container
vendor
 has their own container-specific mechanism for configuration items that
are
 outside the spec.  This is exactly why servlet mappings don't go in
 there, but rather in the spec-defined location.
 
 How do I best standup a set of vendor supplied HTML docs and
 files for browsing through tomcat. It is not worth setting up
 IIS for, as we already using tomcat for other purposes.
 
 What you're doing is fine; just put the servlet declarations in the
 right place - as documented in the earlier response.  Create a
 WEB-INF/web.xml file in the document tree and have at it.
 
  - 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.

-- 
==
Fergus McMenemieEmail:fer...@twig.me.uk
==

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



Re: Setting listings=true on a per context basis

2010-12-07 Thread André Warnier

Fergus McMenemie wrote:

On Tue, 07 Dec 2010 15:37:33 +0100, André Warnier a...@ice-sa.com wrote:

Fergus McMenemie wrote:

Thanks for the response. Other than reading the 300 page servlet
spec is there a quicker way to accomplish what I want. 


Further, are you saying that use of catalina/localhost/vendoraDocs.xml
is a tomcat only solution.

How do I best standup a set of vendor supplied HTML docs and
files for browsing through tomcat. It is not worth setting up
IIS for, as we already using tomcat for other purposes.


What is the platform (O.S.) ?

Windows server 2008 64bit

What is the intended Tomcat version ?

5.5.27

Is it already installed ?

Yep and running


If yes, what was the origin of the installed Tomcat package ?

Autonomy


Sorry, maybe my question was confusing.
I meant, where did your Tomcat come from ?
Did it come together with this Autonomy application package ?

Assuming that Tomcat itself would be installed in a directory such as C:\Tomcat, under 
that directory you should find a sub-directory named conf, in which you will find a file 
named server.xml.
Can you paste the content of that file here, after removing the comments and sensitive 
information such as passwords ?


That would give us a basic idea of where things are, on your system.


Next question : would you be comfortable with accessing that documentation via a URL such 
as http://yourhost.yourdomain.com/docs; ?

(or if not, tell us how you would like it to be)



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



RE: Questions about installing APR

2010-12-07 Thread Aggarwal, Ajay
One more question. I was thinking of compiling it on a different machine
(call it my build machine) and then copying the necessary files on to
the target machines. These target machines are running the same (linux)
OS as my build machine.

But on my build machine I want to use --prefix=/build/export/mypath and
then copy the necessary files to /usr/lib of the target machines.

I see following files under /build/export/mypath/lib folder of my build
machine. Do I need to copy everything to /usr/lib of target machines?
Including pkgconfig folder?

./lib:
libtcnative-1.a  libtcnative-1.la*  libtcnative-1.so@
libtcnative-1.so.0@  libtcnative-1.so.0.1.16*  pkgconfig/

The reason I ask is because pkgconfig/tcnative-1.pc file contains
paths relative to the prefix I used on my build machine. But this prefix
is not relevant for target machines. What is the pkgconfig folder used
for?

-Ajay

-Original Message-
From: Aggarwal, Ajay [mailto:ajay.aggar...@stratus.com] 

Thanks for your help. That worked.

-Original Message-
From: Mark Eggers [mailto:its_toas...@yahoo.com] 

In RedHat-based Linux distributions (maybe in others), you'll need to
install 
the development packages as well as the base packages.

Look for:

apr-devel
apr-util-devel

and install.

Then you can do a configure with:

./configure --with-apr=/usr

since the apr-1-config (at least that's what it's called on Fedora 14)
is in 
/usr/bin.

. . . . just my two cents.

/mde/


- Original Message 
From: Aggarwal, Ajay ajay.aggar...@stratus.com

My OS is centos 5.5, which has APR 1.2.7 pre-installed on it.

# rpm -qa | grep apr

apr-1.2.7-11.el5_3.1

apr-util-1.2.7-11.el5



I am using Tomcat version 6.0.20 and I located tomcat-native.tar.gz
under tomcat/bin folder. I extracted the contents and now I am in
tomcat/bin/tomcat-native-1.1.16-src/jni/native directory. I have the
configure script here.



./configure fails

Error: configure: error: APR could not be located.
Please use the --with-apr option.



Not sure why I get above error since I have the apr RPM installed
(version 1.2.7). I double check for these shared libraries under
/usr/lib and they are all there

ls /usr/lib/libapr*

/usr/lib/libapr-1.so.0  /usr/lib/libapr-1.so.0.2.7
/usr/lib/libaprutil-1.so.0  /usr/lib/libaprutil-1.so.0.2.7



I tried ./configure --with-apr=/usr/lib , but that fails too

Error: checking for APR... configure: error: the --with-apr parameter is
incorrect. It must specify an install prefix, a build directory, or an
apr-config file.



So I downloaded APR version 1.4.2 and compiled and installed it with a
different prefix=/tmp/myapr



Now ./configure --with-apr=/tmp/myapr works fine and I see following
line when I start tomcat

Loaded APR based Apache Tomcat Native library 1.1.16.

APR capabilities: IPv6 [true], sendfile [true], accept filters [false],
random [true].



But I have couple of questions:

1) Is it ok to compile JNI wrapper with APR 1.4.2, but run it with APR
1.2.7 (like I explained above)?

2) Is it ok to use ARP 1.2.7? Or is it strongly recommended to use the
latest version, i.e. APR 1.4.2?



-Ajay



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



RE: Setting listings=true on a per context basis

2010-12-07 Thread Caldarale, Charles R
 From: Fergus McMenemie [mailto:fer...@twig.me.uk] 
 Subject: RE: Setting listings=true on a per context basis

 So the servlet declaration goes in tomcat/conf/web.xml

No.  The conf/web.xml file contains settings shared by *all* webapps.  The 
servlet declaration for a particular webapp goes in that webapp's 
WEB-INF/web.xml file, in the directory where the webapp resides; if it doesn't 
exist, create it.

 can the rest of the stuff stay in 
 tomcat/conf/Catalina/localhost/vendorAdocs.xml ?

That is one of the acceptable locations for the Context element.

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



RE: Setting listings=true on a per context basis

2010-12-07 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com] 
 Subject: Re: Setting listings=true on a per context basis

 in which you will find a file named server.xml.
 Can you paste the content of that file here, after removing 
 the comments and sensitive information such as passwords ?

 That would give us a basic idea of where things are, on 
 your system.

I don't think any of that is relevant to the question at hand, which is how to 
enable directory listings on a per-webapp basis.

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



Re: what ist $CATALINA_HOME/server ? (debian)

2010-12-07 Thread Konstantin Kolinko
2010/12/7 Caldarale, Charles R chuck.caldar...@unisys.com:

 What is this? Some Debian specific stuff?

 No, it's part of every Tomcat 5.5 distribution.  Debian may have modified it.


+1.

In TC 5.5 there were separate server, common and shared
directories. In TC6+ all those are replaced by a single lib one.
(And those administrative webapps were moved to webapps folder where
all the other web applications live).

More information is here:
[1] http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
[2] http://tomcat.apache.org/migration.html

You can get youself a fresh copy of TC 5.5 from [3] and compare.

[3] http://tomcat.apache.org/download-55.cgi


Best regards,
Konstantin Kolinko

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



Issues on startup for tomcat 5.5 on RHEL 5.5

2010-12-07 Thread Jason Pyeron
I am not sure what happened but something changed in the last week and now
tomcat does not want to start up. All my googling points to a selinux or
permission problem. I have reviewed audit.log and verified that the tomcat user
can write, modify and delete file in the directoy. Any suggestion would be
appreciated.

The permissions on /usr/share/tomcat5/conf/ are 775 and owned by root.tomcat.

cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)

cat /var/log/tomcat5/catalina.out
Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp Using JRE_HOME:
Dec 7, 2010 10:13:35 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm
/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk
-1.6.0.0.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:
/lib:/usr/lib
Dec 7, 2010 10:13:35 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 7, 2010 10:13:35 AM
org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 502 ms Dec 7, 2010 10:13:35 AM
org.apache.naming.NamingContext lookup
WARNING: Unexpected exception resolving reference
java.io.IOException: IOException writing to
/usr/share/tomcat5/conf/tomcat-users.xml.new
at
org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:554)
at
org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUser
DatabaseFactory.java:104)
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java
:140)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at
org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingCon
textBindingsEnumeration.java:113)
at
org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnu
meration.java:71)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalR
esourcesLifecycleListener.java:137)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalR
esourcesLifecycleListener.java:109)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(Globa
lResourcesLifecycleListener.java:81)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja
va:120)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:693)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Dec 7, 2010 10:13:35 AM
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans
SEVERE: Exception processing Global JNDI Resources
javax.naming.NamingException: IOException writing to
/usr/share/tomcat5/conf/tomcat-users.xml.new
at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at
org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingCon
textBindingsEnumeration.java:113)
at
org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnu
meration.java:71)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalR
esourcesLifecycleListener.java:137)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalR
esourcesLifecycleListener.java:109)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(Globa
lResourcesLifecycleListener.java:81)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja
va:120)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:693)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
at 

Re: what ist $CATALINA_HOME/server ? (debian)

2010-12-07 Thread Christoph Kukulies

Am 07.12.2010 16:15, schrieb Konstantin Kolinko:

2010/12/7 Caldarale, Charles Rchuck.caldar...@unisys.com:

What is this? Some Debian specific stuff?

No, it's part of every Tomcat 5.5 distribution.  Debian may have modified it.


+1.

In TC 5.5 there were separate server, common and shared
directories. In TC6+ all those are replaced by a single lib one.
(And those administrative webapps were moved to webapps folder where
all the other web applications live).

More information is here:
[1] http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
[2] http://tomcat.apache.org/migration.html

You can get youself a fresh copy of TC 5.5 from [3] and compare.

[3] http://tomcat.apache.org/download-55.cgi

Thanks.
Can be found any instructions to build your own 
/etc/init.d/tomcat_startup script.

catalina.sh seems to have provisions for it but I don't see a hook where to
put in the user (e.g. tomcat55 or tomcat6) catalina runs under.

--
Christoph P.U. Kukulies


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



Re: Tomcat dying on its own

2010-12-07 Thread Guillaume Carbonneau
On Tue, Dec 7, 2010 at 12:52 AM, Rainer Jung rainer.j...@kippdata.de wrote:
 On 06.12.2010 23:36, Guillaume Carbonneau wrote:

 On Mon, Dec 6, 2010 at 2:25 PM, Konstantin Kolinko
 knst.koli...@gmail.com  wrote:

 2010/12/6 Guillaume Carbonneauguillaume.carbonn...@gmail.com:

 Hi everyone,
 My tomcat server seems to die on its own without leaving any
 backtrace...

 The  last info I get in the logs are :
 Dec 3, 2010 6:11:35 PM org.apache.coyote.http11.Http11Protocol pause
 INFO: Pausing Coyote HTTP/1.1 on http-8077
 Dec 3, 2010 6:11:36 PM org.apache.catalina.core.StandardService stop
 INFO: Stopping service Catalina
 Dec 3, 2010 6:11:36 PM org.apache.coyote.http11.Http11Protocol destroy
 INFO: Stopping Coyote HTTP/1.1 on http-8077

 Running The Apache Tomcat 6.0 (6.0.29)
 Linux Oracle Red hat : 2.6.18-194.el5
 java version 1.6.0_21

 This has happened more than once and will occur even if there is no
 traffic. restarting brings it back up but it has proven to be
 unreliable...


 At least, it is not a sudden death.

 Tomcat can be shut down by sending a certain string to port 8005 on
 localhost (see the first lines of server.xml),  -  normal shutdown
 or by sending a system signal that causes JVM to exit, or by calling
 System.exit().
 -  shutdown hook perform the shutdown

 You can install a Listener and print a stacktrace when the stop event
 happens.  The stack traces for the normal shutdown sequence and for
 the shutdown hook will be different.

 The Linux out-of-memory killer was already mentioned.

 BTW, you are not alone: such a thread happens here every 4-6 months.

 Best regards,
 Konstantin Kolinko

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



 I seem to have solved the problem at least temporarily through this
 solution :
 I installed the latest JDK on the deployed machine and ran tomcat
 through catalina.sh debug, then run
 No crash so far so good.

 When starting Tomcat interactively you should be aware that some shells kill
 all child processes when you log out (or get logged out automatically).
 There's nohup though.

 I'm not sure what kind of signal is used then, so I can't tell whether the
 orderly shutdown messages in your logs contradict that theory or not.

 Regards,

 Rainer

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



Thanks for the advice. I started it in a screen tho so it should be fine.

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



Re: Step by Step Guide – Install Jakarta on Windows 2003 and 2008 Server

2010-12-07 Thread Mark Thomas
On 07/12/2010 14:35, Ognjen Blagojevic wrote:
 Hi Gabriel,
 
 These Step by Step Guides covers the installation of Apache Tomcat
 Connector
 Jakarta on Windows 2003 and 2008 Server.
 
 The name you chose for your product is confusing. IANAL, but I also
 think it is against the Apache License. Please read guidelines [1],
 section What is the 'confusing similarity' or 'likelihood of confusion'
 test?

Yes that name is infringing. The issue is being handled off-list with
the necessary ASF trademarks/legal folks having been made aware.

Mark

 
 I think that proper naming would be: *FooBarSomething* Connector for
 Apache Tomcat, but I recommend checking that on appropriate place [2].
 Note that 'Jakarta' is a Top Level Project on ASF and it used to be
 umbrella project for Tomcat - which brings even more to the confusion.
 
 -Ognjen
 
 [1] http://www.apache.org/foundation/marks/
 [2] http://www.apache.org/legal/
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 


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



Re: Questions about installing APR

2010-12-07 Thread Mark Eggers
man pkg-config

From the description of pkg-config:

The  pkg-config  program  is  used  to retrieve information about installed
libraries in the system.  It is typically used to compile and link  against
one or more libraries.  

In short, you don't need to copy the .pc files over.

. . . . just my two cents.

/mde/


- Original Message 
From: Aggarwal, Ajay ajay.aggar...@stratus.com
To: Tomcat Users List users@tomcat.apache.org
Sent: Tue, December 7, 2010 6:57:19 AM
Subject: RE: Questions about installing APR 

One more question. I was thinking of compiling it on a different machine
(call it my build machine) and then copying the necessary files on to
the target machines. These target machines are running the same (linux)
OS as my build machine.

But on my build machine I want to use --prefix=/build/export/mypath and
then copy the necessary files to /usr/lib of the target machines.

I see following files under /build/export/mypath/lib folder of my build
machine. Do I need to copy everything to /usr/lib of target machines?
Including pkgconfig folder?

./lib:
libtcnative-1.a  libtcnative-1.la*  libtcnative-1.so@
libtcnative-1.so.0@  libtcnative-1.so.0.1.16*  pkgconfig/

The reason I ask is because pkgconfig/tcnative-1.pc file contains
paths relative to the prefix I used on my build machine. But this prefix
is not relevant for target machines. What is the pkgconfig folder used
for?

-Ajay

-Original Message-
From: Aggarwal, Ajay [mailto:ajay.aggar...@stratus.com] 

Thanks for your help. That worked.

-Original Message-
From: Mark Eggers [mailto:its_toas...@yahoo.com] 

In RedHat-based Linux distributions (maybe in others), you'll need to
install 
the development packages as well as the base packages.

Look for:

apr-devel
apr-util-devel

and install.

Then you can do a configure with:

./configure --with-apr=/usr

since the apr-1-config (at least that's what it's called on Fedora 14)
is in 
/usr/bin.

. . . . just my two cents.

/mde/


- Original Message 
From: Aggarwal, Ajay ajay.aggar...@stratus.com

My OS is centos 5.5, which has APR 1.2.7 pre-installed on it.

# rpm -qa | grep apr

apr-1.2.7-11.el5_3.1

apr-util-1.2.7-11.el5



I am using Tomcat version 6.0.20 and I located tomcat-native.tar.gz
under tomcat/bin folder. I extracted the contents and now I am in
tomcat/bin/tomcat-native-1.1.16-src/jni/native directory. I have the
configure script here.



./configure fails

Error: configure: error: APR could not be located.
Please use the --with-apr option.



Not sure why I get above error since I have the apr RPM installed
(version 1.2.7). I double check for these shared libraries under
/usr/lib and they are all there

ls /usr/lib/libapr*

/usr/lib/libapr-1.so.0  /usr/lib/libapr-1.so.0.2.7
/usr/lib/libaprutil-1.so.0  /usr/lib/libaprutil-1.so.0.2.7



I tried ./configure --with-apr=/usr/lib , but that fails too

Error: checking for APR... configure: error: the --with-apr parameter is
incorrect. It must specify an install prefix, a build directory, or an
apr-config file.



So I downloaded APR version 1.4.2 and compiled and installed it with a
different prefix=/tmp/myapr



Now ./configure --with-apr=/tmp/myapr works fine and I see following
line when I start tomcat

Loaded APR based Apache Tomcat Native library 1.1.16.

APR capabilities: IPv6 [true], sendfile [true], accept filters [false],
random [true].



But I have couple of questions:

1) Is it ok to compile JNI wrapper with APR 1.4.2, but run it with APR
1.2.7 (like I explained above)?

2) Is it ok to use ARP 1.2.7? Or is it strongly recommended to use the
latest version, i.e. APR 1.4.2?



-Ajay



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


  

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



class not found in tomcat's JARs (in $CATALINA_HOME/lib)

2010-12-07 Thread frank


Hi Experts:
I have read class not found in FAQ and class loader howto of 
tomcat6, unfortunately, they don't resolve my problem.

I set CATALINA_BASE and CATALINA_HOME to my directory like:

CATALINA_BASE=/usr/share/mydir
CATALINA_HOME=/usr/share/mydir

then link subdirs (conf/, bin/ ...)of tomcat6 to $CATALINA_HOME, 
the lib/ points to /usr/share/tomcat6/lib. IMO, 
tomcat6-servlet-2.5-api.jar, tomcat6-jsp-2.1-api-6.0.26.jar, 
tomcat6-el-2.1-api-6.0.26.jar should be automatically be found since 
they are located at $CATALINA_HOME/lib/. In fact this doesn't work, I 
got errors (see paste at bottom). However, if I added full path of these 
JARs to classpath, things worked. I am puzzled, why common class loader 
doesn't get these files? thank you.



*type* Exception report

*message*

*description* _The server encountered an internal error () that 
prevented it from fulfilling this request._


*exception*

org.apache.jasper.JasperException: javax.servlet.ServletException: 
java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagSupport

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

*root cause*

javax.servlet.ServletException: java.lang.NoClassDefFoundError: 
javax/servlet/jsp/tagext/TagSupport

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.index_jsp._jspService(index_jsp.java:1349)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

*root cause*

java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagSupport
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:634)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
java.net.URLClassLoader.access$000(URLClassLoader.java:73)
java.net.URLClassLoader$1.run(URLClassLoader.java:212)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:205)
java.lang.ClassLoader.loadClass(ClassLoader.java:321)
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
java.lang.ClassLoader.loadClass(ClassLoader.java:266)
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:634)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
java.net.URLClassLoader.access$000(URLClassLoader.java:73)
java.net.URLClassLoader$1.run(URLClassLoader.java:212)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:205)
java.lang.ClassLoader.loadClass(ClassLoader.java:321)
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
java.lang.ClassLoader.loadClass(ClassLoader.java:266)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1431)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)

org.apache.jsp.index_jsp._jspx_meth_fmt_005fsetBundle_005f0(index_jsp.java:1361)
org.apache.jsp.index_jsp._jspService(index_jsp.java:61)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

*root cause*

java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagSupport
java.net.URLClassLoader$1.run(URLClassLoader.java:217)

enforcing SSL only for external clients

2010-12-07 Thread Aggarwal, Ajay
My tomcat application (running on a linux host) has 2 types of clients.
Local clients coming on localhost (127.0.0.1) and external clients
coming on external interfaces. I want to enforce use of SSL only for
external clients. How do I do that? If I use security-constraint I am
assuming it will apply to both local as well as external clients.

 

-Ajay



Re: JMX.mbean.unregistered - Stopping Coyote

2010-12-07 Thread Pid
On 12/7/10 11:22 AM, Christoph Kukulies wrote:
 I also wonder why this jmx stuff was there (I removed the jmx related
 jars from the bin and lib directory
 and now the listeners keep up running.

Which jars did you remove?


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: enforcing SSL only for external clients

2010-12-07 Thread André Warnier

Aggarwal, Ajay wrote:

My tomcat application (running on a linux host) has 2 types of clients.
Local clients coming on localhost (127.0.0.1)


that sounds strange, unless the clients are really programs running on the same machine as 
the server.


 and external clients

coming on external interfaces. I want to enforce use of SSL only for
external clients. How do I do that? If I use security-constraint I am
assuming it will apply to both local as well as external clients.


I think you need to describe your network setup a bit more in detail.
For example, is this machine connected directly to the Internet with an interface having a 
public IP address, or is there something in-between ?

Draw us a picture maybe ?




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



Re: class not found in tomcat's JARs (in $CATALINA_HOME/lib)

2010-12-07 Thread Mark Eggers
Out of curiosity, couldn't you use the information in RUNNING.txt under 
Advanced Configuration - Multiple Tomcat Instances to meet your requirements?

. . . just a thought.

/mde/

- Original Message 
From: frank fr...@cloud.com


Hi Experts:
I have read class not found in FAQ and class loader howto of tomcat6, 
unfortunately, they don't resolve my problem.
I set CATALINA_BASE and CATALINA_HOME to my directory like:

CATALINA_BASE=/usr/share/mydir
CATALINA_HOME=/usr/share/mydir

then link subdirs (conf/, bin/ ...)of tomcat6 to $CATALINA_HOME, the lib/ 
points to /usr/share/tomcat6/lib. IMO, tomcat6-servlet-2.5-api.jar, 
tomcat6-jsp-2.1-api-6.0.26.jar, tomcat6-el-2.1-api-6.0.26.jar should be 
automatically be found since they are located at $CATALINA_HOME/lib/. In fact 
this doesn't work, I got errors (see paste at bottom). However, if I added full 
path of these JARs to classpath, things worked. I am puzzled, why common class 
loader doesn't get these files? thank you.


  

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



RE: enforcing SSL only for external clients

2010-12-07 Thread Aggarwal, Ajay
Yes local clients are programs running on the same machine as the server and 
they access my application over the localhost IP, i.e. 127.0.0.1. Whereas 
external clients access my application over external interface, i.e. public IP. 
And yes, this machine running the server is connected directly to the internet 
with an interface having a public IP.

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Tuesday, December 07, 2010 2:27 PM
To: Tomcat Users List
Subject: Re: enforcing SSL only for external clients

Aggarwal, Ajay wrote:
 My tomcat application (running on a linux host) has 2 types of clients.
 Local clients coming on localhost (127.0.0.1)

that sounds strange, unless the clients are really programs running on the same 
machine as 
the server.

  and external clients
 coming on external interfaces. I want to enforce use of SSL only for
 external clients. How do I do that? If I use security-constraint I am
 assuming it will apply to both local as well as external clients.
 
I think you need to describe your network setup a bit more in detail.
For example, is this machine connected directly to the Internet with an 
interface having a 
public IP address, or is there something in-between ?
Draw us a picture maybe ?




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


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



Re: class not found in tomcat's JARs (in $CATALINA_HOME/lib)

2010-12-07 Thread Pid
On 12/7/10 5:59 PM, frank wrote:
 
 Hi Experts:
 I have read class not found in FAQ and class loader howto of
 tomcat6, unfortunately, they don't resolve my problem.
 I set CATALINA_BASE and CATALINA_HOME to my directory like:
 
 CATALINA_BASE=/usr/share/mydir
 CATALINA_HOME=/usr/share/mydir
 
 then link subdirs (conf/, bin/ ...)of tomcat6 to $CATALINA_HOME, the
 lib/ points to /usr/share/tomcat6/lib. IMO,
 tomcat6-servlet-2.5-api.jar, tomcat6-jsp-2.1-api-6.0.26.jar,
 tomcat6-el-2.1-api-6.0.26.jar should be automatically be found since
 they are located at $CATALINA_HOME/lib/. In fact this doesn't work, I
 got errors (see paste at bottom). However, if I added full path of these
 JARs to classpath, things worked. I am puzzled, why common class loader
 doesn't get these files? thank you.

These are not jars shipped with ASF released Tomcat.

I suspect you're using a repackaged version; I'm not sure how much
impact that will have, but thenhaven't indicated how these new
directories are referenced during an attempt to start a Tomcat instance.


p


 *type* Exception report
 
 *message*
 
 *description* _The server encountered an internal error () that
 prevented it from fulfilling this request._
 
 *exception*
 
 org.apache.jasper.JasperException: javax.servlet.ServletException:
 java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagSupport
 
 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
 
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
 *root cause*
 
 javax.servlet.ServletException: java.lang.NoClassDefFoundError:
 javax/servlet/jsp/tagext/TagSupport
 
 org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
 
 
 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
 
 org.apache.jsp.index_jsp._jspService(index_jsp.java:1349)
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
 *root cause*
 
 java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagSupport
 java.lang.ClassLoader.defineClass1(Native Method)
 java.lang.ClassLoader.defineClass(ClassLoader.java:634)
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
 java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
 java.net.URLClassLoader.access$000(URLClassLoader.java:73)
 java.net.URLClassLoader$1.run(URLClassLoader.java:212)
 java.security.AccessController.doPrivileged(Native Method)
 java.net.URLClassLoader.findClass(URLClassLoader.java:205)
 java.lang.ClassLoader.loadClass(ClassLoader.java:321)
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
 java.lang.ClassLoader.loadClass(ClassLoader.java:266)
 java.lang.ClassLoader.defineClass1(Native Method)
 java.lang.ClassLoader.defineClass(ClassLoader.java:634)
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
 java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
 java.net.URLClassLoader.access$000(URLClassLoader.java:73)
 java.net.URLClassLoader$1.run(URLClassLoader.java:212)
 java.security.AccessController.doPrivileged(Native Method)
 java.net.URLClassLoader.findClass(URLClassLoader.java:205)
 java.lang.ClassLoader.loadClass(ClassLoader.java:321)
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
 java.lang.ClassLoader.loadClass(ClassLoader.java:266)
 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1431)
 
 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
 
 org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128)
 org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
 
 org.apache.jsp.index_jsp._jspx_meth_fmt_005fsetBundle_005f0(index_jsp.java:1361)
 
 org.apache.jsp.index_jsp._jspService(index_jsp.java:61)
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
 

Re: what ist $CATALINA_HOME/server ? (debian)

2010-12-07 Thread Juha Laiho
On 7.12.2010 18:45, Christoph Kukulies wrote:
 Can be found any instructions to build your own
 /etc/init.d/tomcat_startup script.
 catalina.sh seems to have provisions for it but I don't see a hook where to
 put in the user (e.g. tomcat55 or tomcat6) catalina runs under.

No need to have a hook there: catalina.sh should be run using the
account you wish to use to run your Tomcat.
-- 
..Juha

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



Re: what ist $CATALINA_HOME/server ? (debian)

2010-12-07 Thread g f
Did you aptitude install tomcat6?
If so why not modify the init.d script that came with that.
If not perhaps you want to try to use the debs.
apt-get install tomcat6
G

On Tue, Dec 7, 2010 at 1:45 PM, Juha Laiho juha.la...@iki.fi wrote:

 On 7.12.2010 18:45, Christoph Kukulies wrote:
  Can be found any instructions to build your own
  /etc/init.d/tomcat_startup script.
  catalina.sh seems to have provisions for it but I don't see a hook where
 to
  put in the user (e.g. tomcat55 or tomcat6) catalina runs under.

 No need to have a hook there: catalina.sh should be run using the
 account you wish to use to run your Tomcat.
 --
 ..Juha

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




Re: enforcing SSL only for external clients

2010-12-07 Thread André Warnier

Aggarwal, Ajay wrote:

Yes local clients are programs running on the same machine as the server and they access 
my application over the localhost IP, i.e. 127.0.0.1. Whereas external clients access my 
application over external interface, i.e. public IP. And yes, this machine running the 
server is connected directly to the internet with an interface having a 
public IP.



Allright then.

I'm doing a bit of guesswork here, because I have never used this myself.
And also, apart from a cryptic reference in the Connector documentation, there does not 
seem to be documentation for this.


You will probably need 2 separate Connectors, one for HTTP and the other for 
HTTPS.

You probably need to set the useIPVHosts attribute inside your Connector tags to 
true. (see http://tomcat.apache.org/tomcat-6.0-doc/config/http.html).


This may help for the next part : 
http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html
but it does not talk about IP-based virtual hosts, only about name-based ones, so I will 
continue to guess.


You will probably need to define 2 separate Host sections, each one with its name 
attribute set to the respective IP address which you want it to respond to.


Each one should also have its own appBase pointing to a distinct webapps 
directory.
And inside these 2 webapps directories, you will need a separate copy of your 
application.
In one you will set the configuration (in WEB-INF/web.xml) to not require SSL, and in the 
other to require it.


Alternatively to the above, you may find a way to achieve this by using the 
URLRewriteFilter, see http://www.tuckey.org/urlrewrite/


Note : that attribute useIPVHosts of the Connector seems to be the only place where 
IP-based V-hosts are mentioned in the online documentation.

But I found some links which may be helpful in Google when searching for :
tomcat useIPVHosts





-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Tuesday, December 07, 2010 2:27 PM

To: Tomcat Users List
Subject: Re: enforcing SSL only for external clients

Aggarwal, Ajay wrote:

My tomcat application (running on a linux host) has 2 types of clients.
Local clients coming on localhost (127.0.0.1)


that sounds strange, unless the clients are really programs running on the same machine as 
the server.


  and external clients

coming on external interfaces. I want to enforce use of SSL only for
external clients. How do I do that? If I use security-constraint I am
assuming it will apply to both local as well as external clients.


I think you need to describe your network setup a bit more in detail.
For example, is this machine connected directly to the Internet with an interface having a 
public IP address, or is there something in-between ?

Draw us a picture maybe ?




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


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





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



RE: enforcing SSL only for external clients

2010-12-07 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com] 
 Subject: Re: enforcing SSL only for external clients

 You will probably need 2 separate Connectors, one for HTTP and 
 the other for HTTPS.

I think that's true.

 You probably need to set the useIPVHosts attribute inside your 
 Connector tags to true.

Probably not necessary, nor are multiple Host elements.

How about just setting the address attribute for the port 80 Connector to 
127.0.0.1, and the port 443 Connector to the public IP address, and *do 
not* set transport-guarantee to CONFIDENTIAL in the web.xml files.  

 - Chuck


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


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



RE: enforcing SSL only for external clients

2010-12-07 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com] 
 Subject: Re: enforcing SSL only for external clients

 And, while we are at it, how about IP-based VHosts ?
 Are they described anywhere in the docs ? 

Not that I can find, other than the attribute description for the Connector 
elements which you already pointed out.

 - Chuck


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


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



Re: Issues on startup for tomcat 5.5 on RHEL 5.5

2010-12-07 Thread Konstantin Kolinko
2010/12/7 Jason Pyeron jpye...@pdinc.us:

 The permissions on /usr/share/tomcat5/conf/ are 775 and owned by root.tomcat.

It is a bad idea to have the configuration files world-readable.

Especially tomcat-uses.xml and server.xml.


 java.io.IOException: IOException writing to
 /usr/share/tomcat5/conf/tomcat-users.xml.new

What you do not understand in the above message?
Tomcat saves the file to a new name, then renames it.

BTW, it is possible to set readonly=true on the UserDatabase entry
in server.xml and Tomcat won't try to write that file. (In Tomcat 6+
readonly flag is true by default).

 cat /etc/tomcat5/tomcat-users.xml

This file is not in /usr/share/tomcat5/conf/

Best regards,
Konstantin Kolinko

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



TOMCAT be in Hung state?

2010-12-07 Thread Karthik Nanjangude
Hi

Spec

a) JDK 1.6

b) 2 Web Server Tomcat 5.0.20 (on same O/s with different Startup /shutdown 
portsshare the same  RAM / CPU Processor]

c) O/s Linux Red hat  [ Linux DTVMS1 2.6.18-128.1.10.el5PAE #1 SMP Wed Apr 29 
14:24:53 EDT 2009 i686 i686 i386 GNU/Linux ]


1.   RHEL AS 4U6

2.   8*2 GB RAM

3.   4 Processors


JAVA_OPTS=-Xms256m -Xmx512m

Problem: Tomcat is not responding every 45 days
1)  Stops writing  Catalina.out,
2)  Not  responding with  any of the  jsp pages of the Application,
3)  No exceptions raised.

and needs restart  to over come the situation.

 Can any body tell me under what circumstances can a TOMCAT be in Hung state?


with regards

N.S.Karthik