AW: HowTo forward user name from apache via mod_jk to tomcat

2007-04-20 Thread Peter Neu
Hello,

yeah, I thought of this too. But I only get a null value for
request.getRemoteUser(). Any idea what could be wrong? My mod_jk
version is mod_jk 1.2.19.

Cheers,
Pete




 -Ursprüngliche Nachricht-
 Von: Christopher Schultz [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 19. April 2007 18:28
 An: Tomcat Users List
 Betreff: Re: HowTo forward user name from apache via mod_jk to tomcat
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Rainer,
 
 Rainer Jung wrote:
  In this case, why not simply use (mini test jsp):
 
  User: %=request.getRemoteUser()%
 
 Oh, hey, that's a lot better. No config or anything ;) I didn't realize
 that REMOTE_USER was already being forwarded without further
 configuration.
 
 Thanks for the clarification.
 
 - -chris
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iD8DBQFGJ5if9CaO5/Lv0PARAuDBAJ9Ilu2xZ0YW4FVQU44GAqEE5ag2TwCgoNeJ
 eiNNp0sUwrpwkZyYdl9ZyPs=
 =jHP3
 -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]



-
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: performance with apache and tomcat

2007-04-20 Thread Peter Crowther
 From: Eqbal [mailto:[EMAIL PROTECTED] 
 What causes any performance overhead in using apache 
 with Tomcat, considering they will be on the same 
 server? 

Each request must be (at least minimally) processed by Apache, the request 
forwarded over the JK connector to Tomcat, Tomcat processing must occur, the 
response must be forwarded back over the JK connector to Apache and then sent 
to the client.  With a pure Tomcat setup, the Apache and JK stages are not 
present.
 
- 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]

Re: Wildcard for server alias?

2007-04-20 Thread Pid

Jeremy Cowgar wrote:
Is it possible to do a wildcard on the server alias? I have something 
like username.hostname.com instead of hostname.com/~username/ ... I have 
a wildcard in DNS so I do not define each host. In the current apache 
version of the app, I have ServerAlias *.hostname.com which works great.


Can I do something similar w/Tomcat?

Thanks,

Jeremy


Not exactly, but if you set the your app to run on the default virtual 
host, then all traffic will be directed there.



p


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






smime.p7s
Description: S/MIME Cryptographic Signature


Re: problems configuring mod_jk

2007-04-20 Thread Rainer Jung
Please post the log parts (debug log level) which appear when starting 
apache. Those are the lines that show, how mod_jk parses your 
workers.properties, and which internal objects it generates out of it.


-
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: Tomcat5 and Linux-HA

2007-04-20 Thread Gaël Lams

Hi,


Is it possible to configure Tomcat5 in a Linux cluster (Linux-HA (Heartbeat 2). 
 I want to configure it on SLES10.  I have already checked the Tomcat FAQ at 
Tomcat.apache.org, the How to at that location, Googling it returns nothing on 
the subject.  If a config/setup doc exists I cannot find it.



I don't see why it would not be possible. I didn't yet had to
configure a cluster on SLES10 but in the past I configured a few
clusters on the (at that time called) SUSe professional:
- the services in cluster where apache, mysql, mailman, qmail, 
and I really see no reason why tomcat would not work (it's just a
demon like the others)
- the cluster were low costs, i.e implemented with Linux-HA and drdb
(to synchornise the partitions between the nodes)

I've to say that I never used Yast for this configuration (I've
nothing against Yast, I just don't trust it for that kind of
complex set-up): drdb and linux-ha were compiled from source

But the point is: did you try it? From what I remember, Linux-HA has a
good documentation and a good community behind it. Just start to
- implement Linux-HA, configuring for instance apache's httpd (you
will for sure find several how-to just by googling), just to
understand how it works
- then install tomcat and configure Linux-HA to manage this new resource

Try to implement it and if/when you have a problem, just ask.

Kind regards,

Gael

-
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: JasperException: Array index out of range

2007-04-20 Thread Gabor Konrad
Hi Rashmi!


 StandardWrapperValve[action]: Servlet.service() for servlet action threw 
 exception
 org.apache.jasper.JasperException: Array index out of range: 0

indicates that there's some code that is accessing the wrong index of
an Array , either the index is less than 0 or greater than or equal to
the size of the Array.
Check your code.


Did you see the call stack trace? It doesn't contains any call of my program. 

How could I index out of array's range in my program?



GKonrad




Re : connection_pool_size seems not to have any incidence

2007-04-20 Thread boulot BOULOT
Thanks for your help.

This is what I get in the mod_jk.log :

[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] wc_create_worker::jk_worker.c 
(144): about to create instance server1-instance1 of ajp13
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] wc_create_worker::jk_worker.c 
(157): about to validate and init server1-instance1
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_validate::jk_ajp_common.c 
(1985): worker server1-instance1 contact is 'server1.bi1.local:8009'
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2112): setting endpoint options:
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2115): keepalive:1
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2119): timeout:  5
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2123): buffer size:  0
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2127): pool timeout: 100
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2131): connect timeout:  0
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2135): reply timeout:1
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2139): prepost timeout:  0
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2143): recovery options: 0
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2147): retries:  1
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] ajp_init::jk_ajp_common.c 
(2151): max packet size:  8192
[Fri Apr 20 10:59.18 2007] [9661:19648] [debug] 
ajp_create_endpoint_cache::jk_ajp_common.c (2022): setting connection pool size 
to 1 with min 1

So the connection_pool_size seems to be set to 1 (min 1) but when I check (on 
my webserver) the connections from my webserver to the server1-instance1 
(netstat -an | grep server1_IP:8009 | grep ESTABLISHED | wc -l) I get more 
than 20.

Do I check the bad informations ? What do you suggest me to look for ?

Regards,

Benoit.


De : Rainer Jung [EMAIL PROTECTED]:
A pool size of 1 for a thread count of 20 per process is somewhat 
strange. But OK, you could insist on this wish. Yes, it should be 
configurable like that.

Start apache with JkLogLevel debug and check the log file about messages 
concerning the pool size. You don't need to produce any traffic for 
these messages.

Regards,

Rainer

boulot BOULOT wrote:
 Hi,
 
 I have some Application Servers (tomcat) and 1 web server (httpd apache). 
 (Linux RedHtat 3)
 Apache works with the worker mpm.
 There is an Apache Tomcat connector to link the web server to the ASs.
 I'm trying to limit the number of connection from the web server to the ASs, 
 using the worker.properties item connection_pool_size.
 
 For example, I set the following properties in the httpd.conf :
 
 IfModule worker.c
 ServerLimit 20
 StartServers20
 MaxClients400
 MinSpareThreads 40
 MaxSpareThreads100
 ThreadsPerChild 20
 MaxRequestsPerChild  0
 /IfModule
 
 And set, in the workers.properties of the web server, for all the ASs :
 
 worker.server_name.connection_pool_size=1
 
 So, there should be at the maximum, 20 connections (20 worker.httpd process * 
 connection_pool_size = 20) from the apache web server to each AS, but in 
 fact, I saw up to 30 connections from the web server to each AS.
 
 Did I understand well how it works ? Why does the connection_pool_size 
 doesn't work ?
 
 Thanks, 
 
 Benoit.

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








  
___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

Sometimes ClassNotFoundException

2007-04-20 Thread Dirschnabel. Stefan
Hi,

I have to integrate a web application in Tomcat. I am not working that long 
with Tomcat so it could be a very trivial problem...
The whole application seems almost to work (you can log in the application etc) 
but accessing some jsp's I get ClassNotFoundExceptions like the following. It's 
strange, some pages work, some do not.

 
Part of the logfile:
20.04.2007 09:16:22 org.apache.catalina.core.ApplicationContext log
SCHWERWIEGEND: Error loading WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
 com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
java.lang.ClassNotFoundException: 
com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)

20.04.2007 09:16:22 org.apache.catalina.core.StandardWrapperValve invoke
SCHWERWIEGEND: Allocate exception for servlet 
com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
java.lang.ClassNotFoundException: 
com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)


Mit freundlichen Grüßen / Best Regards
Stefan Dirschnabel


SEEBURGER AG 
Headquarters:
Edisonstraße 1 
D-75015 Bretten 
Tel.: 0 72 52/96-0 
Fax: 0 72 52/96- 
Internet: http://www.seeburger.de 
e-mail: [EMAIL PROTECTED] 

Vorstand:
Bernd Seeburger, Axel Haas, Michael Kleeberg

Vorsitzender des Aufsichtsrats:
Dr. Franz Scherer

Handelsregister:
HRB 240708 Mannheim


Tomcat 5.5 Connection Pooling problem

2007-04-20 Thread dimos
Hi,
I am trying to setup JDBC connection pooling in Tomcat
5.5 using DB2 database and IBM RAD 7.0 IDE. Although
The setup described in JNDI Resources
HOW-TO(http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html)
for creating JDBC Datasources did work, I would like
to work with real connection pooling, which means not
declaring datasources into the /META-INF/context.xml
file of each web app but having them as

GlobalNamingResources

into /conf/server.xml and accessing them through

ResourceLink

references from /conf/context.xml (or
/conf/catalina/localhost/ROOT.xml). However I am stuck
with Exception

javax.naming.NameNotFoundException: Name jdbc is not
bound in this Context

. Even if I add an:

resource-env-ref
description
/description

resource-env-ref-namejdbc/DB2T/resource-env-ref-name

resource-env-ref-typejavax.sql.DataSource/resource-env-ref-type
/resource-env-ref

record in my /WEB-INF/web.xml I get a

javax.naming.NamingException: Cannot create resource
instance

Exception.

Does anyone have an idea how to resolve this?
Here are my configurations:

-/conf/server.xml---

Server port=8005 shutdown=SHUTDOWN
 
  !-- Global JNDI resources --
  GlobalNamingResources
 
   Resource name=jdbc/DB2T auth=Container
   type=javax.sql.DataSource removeAbandoned=true
 
factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
   removeAbandonedTimeout=30 maxActive=100
   maxIdle=30 maxWait=1 username=id
   password=pass
   driverClassName=com.ibm.db2.jcc.DB2Driver
   url=jdbc:db2://ip-addrr:port/dbname/
  /GlobalNamingResources



--/conf/context.xml--

!-- The contents of this file will be loaded for each
web application --
Context
 
!-- Default set of monitored resources --
WatchedResourceWEB-INF/web.xml/WatchedResource
   
WatchedResourceMETA-INF/context.xml/WatchedResource
   
ResourceLink name=jdbc/DB2T global=jdbc/DB2T 
type=javax.sql.DataSource/
/Context



I also try to get the resource with java code like
this:

DataSource ds;
InitialContext DSCtx = new InitialContext();
ds = (DataSource)
DSCtx.lookup(java:/comp/env/jdbc/DB2T); 



PS: When I start the tomcat and hit
http://localhost:8080 I can't get the default page
although every web app I run loads without problems.
Do you think this has a relation with the above problem?

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.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]



Ideal JVM params for 64-bit?

2007-04-20 Thread Darren Kukulka
Hi Tomcaters!

 

Just a quick query relating to Tomcat 5.5.20 on Win2K3 with SUN JVM
1.5.0_10 (64-bit)

 

What are the ideal JVM GC parameter settings for a system with two
dual-core processors and 4GB RAM (of which we've allocated a little over
3GB to the JVM)?  Sometimes Tomcat pauses for a long time when OldGen
gets close to full to perform a full GC... my JConsole session tends to
drop out, although I can re-establish a session less than a minute
later...users logged into the application experience no response which
then returns to normal once the GC is finished.

 

Cheers,

 

Darren K

 



Connaught wins RoSPA Gold Award for fourth year running

Considerate Contractor Gold Award in 2006

Partnering Contractor of the Year Award in 2005

Please visit our website to see a full list of Connaught?s Registered Companies 
www.connaught.plc.uk/Investors/Registered-Companies
 
Disclaimer: 

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete this message. 



Connaught plc, Head Office 01392 444546 


Starting Tomcat 5.5.23 gives error in localhost.xxxx-xx-xx.log

2007-04-20 Thread Gupta, Medhavi \(GE Healthcare\)

 Hi,
 
 I have tomcat 5.5.23 binary distribution Windows executable.
 Environmental variable  JAVA_HOME is set to C:\Program
 Files\Java\jre1.5.0_06. When I try to start the Tomcat Service, I see
 the below error in localhost.-xx-xx.log file. I am not able to
 understand what can be the reason for this? Am I missing something. In
 Apache tomcat properties under Java , Java Virtual Machine is set to
 C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll.
 
 Apr 20, 2007 2:43:54 PM org.apache.catalina.core.ApplicationContext
 log
 INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
 [org.apache.webapp.balancer.RuleChain:
 [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
 News / Redirect URL: http://www.cnn.com],
 [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
 name: paramName / Target param value: paramValue / Redirect URL:
 http://www.yahoo.com],
 [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
 http://jakarta.apache.org]]
 Apr 20, 2007 2:43:54 PM org.apache.catalina.core.StandardContext
 listenerStart
 SEVERE: Error configuring application listener of class
 listeners.ContextListener
 java.lang.ClassFormatError: Extra bytes at the end of class file
 listeners/ContextListener
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at
 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappC
 lassLoader.java:1812)
   at
 org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoad
 er.java:866)
   at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad
 er.java:1319)
   at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad
 er.java:1198)
   at
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext
 .java:3677)
   at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:41
 83)
   at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.
 java:759)
   at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739
 )
   at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at
 org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java
 :904)
   at
 org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.ja
 va:867)
   at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
   at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
   at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
 310)
   at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycle
 Support.java:119)
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
   at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
   at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at
 org.apache.catalina.core.StandardService.start(StandardService.java:45
 0)
   at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at
 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
   at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 Apr 20, 2007 2:43:54 PM org.apache.catalina.core.StandardContext
 listenerStart
 SEVERE: Error configuring application listener of class
 listeners.SessionListener
 java.lang.ClassFormatError: Extra bytes at the end of class file
 listeners/SessionListener
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at
 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappC
 lassLoader.java:1812)
   at
 org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoad
 er.java:866)
   at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad
 er.java:1319)
   at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad
 er.java:1198)
   at
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext
 .java:3677)
   at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:41
 83)
   at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.
 java:759)
   at
 

Re: Sometimes ClassNotFoundException

2007-04-20 Thread David Smith
I've seen this before... typically because the jsp (InventoryStatus.jsp
in your case) failed to compile.  Look further up the logs for the first
error message in the request process.

--David

Dirschnabel. Stefan wrote:
 Hi,

 I have to integrate a web application in Tomcat. I am not working that long 
 with Tomcat so it could be a very trivial problem...
 The whole application seems almost to work (you can log in the application 
 etc) but accessing some jsp's I get ClassNotFoundExceptions like the 
 following. It's strange, some pages work, some do not.

  
 Part of the logfile:
 20.04.2007 09:16:22 org.apache.catalina.core.ApplicationContext log
 SCHWERWIEGEND: Error loading WebappClassLoader
   delegate: false
   repositories:
 /WEB-INF/classes/
 -- Parent Classloader:
 [EMAIL PROTECTED]
  com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
 java.lang.ClassNotFoundException: 
 com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
   at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
 
 20.04.2007 09:16:22 org.apache.catalina.core.StandardWrapperValve invoke
 SCHWERWIEGEND: Allocate exception for servlet 
 com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
 java.lang.ClassNotFoundException: 
 com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
   at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
 

 Mit freundlichen Grüßen / Best Regards
 Stefan Dirschnabel


 SEEBURGER AG 
 Headquarters:
 Edisonstraße 1 
 D-75015 Bretten 
 Tel.: 0 72 52/96-0 
 Fax: 0 72 52/96- 
 Internet: http://www.seeburger.de 
 e-mail: [EMAIL PROTECTED] 

 Vorstand:
 Bernd Seeburger, Axel Haas, Michael Kleeberg

 Vorsitzender des Aufsichtsrats:
 Dr. Franz Scherer

 Handelsregister:
 HRB 240708 Mannheim
   


-
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: AW: HowTo forward user name from apache via mod_jk to tomcat

2007-04-20 Thread David Smith
I've fixed getting user info from apache by adding
tomcatAuthentication=false to the connector config in server.xml. 

--David

Peter Neu wrote:
 Hello,

 yeah, I thought of this too. But I only get a null value for
 request.getRemoteUser(). Any idea what could be wrong? My mod_jk
 version is mod_jk 1.2.19.

 Cheers,
 Pete




 -Ursprüngliche Nachricht-
 Von: Christopher Schultz [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 19. April 2007 18:28
 An: Tomcat Users List
 Betreff: Re: HowTo forward user name from apache via mod_jk to tomcat

 Rainer,

 Rainer Jung wrote:
  In this case, why not simply use (mini test jsp):
 
  User: %=request.getRemoteUser()%
 Oh, hey, that's a lot better. No config or anything ;) I didn't realize
 that REMOTE_USER was already being forwarded without further
 configuration.

 Thanks for the clarification.

 -chris


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



AW: Sometimes ClassNotFoundException

2007-04-20 Thread Dirschnabel. Stefan
Hm ... I deleted the logfiles and reproduced the error multiple times, but the 
exception I showed you is the first I get. Furthermore, if it would be a 
compile failure the error messages would appear randomly, wouldn't they? But 
always exactly the same .jsp's can be found/ not found.

Stefan Dirschnabel


-Ursprüngliche Nachricht-
Von: David Smith [mailto:[EMAIL PROTECTED] 

I've seen this before... typically because the jsp (InventoryStatus.jsp
in your case) failed to compile.  Look further up the logs for the first
error message in the request process.

--David

Dirschnabel. Stefan wrote:
 Hi,

 I have to integrate a web application in Tomcat. I am not working that long 
 with Tomcat so it could be a very trivial problem...
 The whole application seems almost to work (you can log in the application 
 etc) but accessing some jsp's I get ClassNotFoundExceptions like the 
 following. It's strange, some pages work, some do not.

  
 Part of the logfile:
 20.04.2007 09:16:22 org.apache.catalina.core.ApplicationContext log
 SCHWERWIEGEND: Error loading WebappClassLoader
   delegate: false
   repositories:
 /WEB-INF/classes/
 -- Parent Classloader:
 [EMAIL PROTECTED]
  com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
 java.lang.ClassNotFoundException: 
 com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
   at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
 
 20.04.2007 09:16:22 org.apache.catalina.core.StandardWrapperValve invoke
 SCHWERWIEGEND: Allocate exception for servlet 
 com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
 java.lang.ClassNotFoundException: 
 com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
   at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
 

 Mit freundlichen Grüßen / Best Regards
 Stefan Dirschnabel


 SEEBURGER AG 
 Headquarters:
 Edisonstraße 1 
 D-75015 Bretten 
 Tel.: 0 72 52/96-0 
 Fax: 0 72 52/96- 
 Internet: http://www.seeburger.de 
 e-mail: [EMAIL PROTECTED] 

 Vorstand:
 Bernd Seeburger, Axel Haas, Michael Kleeberg

 Vorsitzender des Aufsichtsrats:
 Dr. Franz Scherer

 Handelsregister:
 HRB 240708 Mannheim
   


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



SEEBURGER AG 
Headquarters:
Edisonstraße 1 
D-75015 Bretten 
Tel.: 0 72 52/96-0 
Fax: 0 72 52/96- 
Internet: http://www.seeburger.de 
e-mail: [EMAIL PROTECTED] 

Vorstand:
Bernd Seeburger, Axel Haas, Michael Kleeberg

Vorsitzender des Aufsichtsrats:
Dr. Franz Scherer

Handelsregister:
HRB 240708 Mannheim


Can't create jdbc resource in context.xml

2007-04-20 Thread Glen Vermeylen

Hello everybody,

I'm trying to move a global jdbc resource out of server.xml so it is
application specific. Following is the server.xml (which works fine)

?xml version=1.0 encoding=UTF-8?
Server port=8005 shutdown=SHUTDOWN
   Listener className=org.apache.catalina.core.AprLifecycleListener/
   Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
   Listener className=
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/
   Listener className=
org.apache.catalina.storeconfig.StoreConfigLifecycleListener/
   GlobalNamingResources
   Resource auth=Container driverClassName=com.mysql.jdbc.Driver
maxActive=10 maxIdle=1 maxWait=1 name=jdbc/sandwiches
password=tomcat type=javax.sql.DataSource
url=jdbc:mysql://192.168.16.39:3306/sandwiches?autoReconnect=true
username=tomcat/
   /GlobalNamingResources
   Service name=Catalina
   Connector acceptCount=100 connectionTimeout=2
disableUploadTimeout=true enableLookups=false maxHttpHeaderSize=8192
maxSpareThreads=75 maxThreads=150 minSpareThreads=25 port=8080
redirectPort=8443/
   Connector enableLookups=false port=8009 protocol=AJP/1.3
redirectPort=8443/
   Engine defaultHost=laocalhost name=Catalina
   Realm className=org.apache.catalina.realm.DataSourceRealm
dataSourceName=jdbc/sandwiches debug=99 roleNameCol=role
userCredCol=password userNameCol=user userRoleTable=userroles
userTable=users/
   Host appBase=webapps autoDeploy=true name=localhost
unpackWARs=true xmlNamespaceAware=false xmlValidation=false
   /Host
   /Engine
   /Service
/Server

What I did was remove the the GlobalNamingResources and Realm  elements
from server.xml and put them inside
$CATALINA_HOME/conf/Catalina/localhost/esandwich.xml (don't mind the weird
name :) ), but I keep getting the error
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

esandwich.xml:
Context docBase=c:/workspace/esandwich/WebContent/ reloadable=true
crosscontext=true
   Resource name=jdbc/sandwiches auth=Container driverClassName=
com.mysql.jdbc.Driver
   password=tomcat type=javax.sql.DataSource
   url=jdbc:mysql://192.168.16.39:3306/sandwiches?autoReconnect=true
   username=tomcat /


   Realm className=org.apache.catalina.realm.DataSourceRealm
   dataSourceName=jdbc/sandwiches debug=99 roleNameCol=role
   userCredCol=password userNameCol=user userRoleTable=userroles
   userTable=users /
/Context

I believe the problem lies witht he Resource element because if only move
the realm element to the esandwich.xml and leave the
GlobalNamingResourcesResource./... in server.xml everything still
works. We've been searching for a few hours now and can't find the solution.
Any help would be highly appreciated.

web.xml:
?xml version=1.0 encoding=UTF-8?
web-app id=WebApp_ID version=2.4
   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;
   display-nameesandwich/display-name
   listener
   listener-class
   org.springframework.web.context.ContextLoaderListener
   /listener-class
   /listener
   servlet
   servlet-namedispatcher/servlet-name
   servlet-class
   org.springframework.web.servlet.DispatcherServlet
   /servlet-class
   /servlet
   servlet-mapping
   servlet-namedispatcher/servlet-name
   url-pattern/app/*/url-pattern
   /servlet-mapping
   welcome-file-list
   welcome-fileindex.jsp/welcome-file
   /welcome-file-list
   login-config
   auth-methodFORM/auth-method
   form-login-config
   form-login-page/login.html/form-login-page
   form-error-page/loginError.html/form-error-page
   /form-login-config
   /login-config

   security-constraint
   web-resource-collection
   web-resource-namedefault/web-resource-name
   url-pattern/app/*/url-pattern
   http-methodPOST/http-method
   http-methodGET/http-method
   /web-resource-collection
   auth-constraint
   descriptioneveryone can log in/description
   role-name*/role-name
   /auth-constraint
   /security-constraint

   security-role
   descriptionThe Only Secure Role/description
   role-nameadmin/role-name
   /security-role

/web-app


Many thanks in advance,
Glen.


AW: Sometimes ClassNotFoundException

2007-04-20 Thread Dirschnabel. Stefan
All jsp's are in this directory (the one which work and the ones which don't):
webapps\spoke\app_AutoID\jsp\InventoryStatus.jsp

The web.xml:
webapps\spoke\WEB-INF\web.xml:

I am sorry man, but because of internal restrictions I am not allowed to paste 
the whole files (would be pretty much too) - I have to check this with my 
superior first :/ . Perhaps you would just tell me the interesting parts and I 
will paste these


Stefan Dirschnabel


-Ursprüngliche Nachricht-
Von: Martin Gainty [mailto:[EMAIL PROTECTED] 

Please post the jsps,servlets web.xml and directory structure as well
Martin--

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, April 20, 2007 7:36 AM
Subject: Re: Sometimes ClassNotFoundException


 I've seen this before... typically because the jsp (InventoryStatus.jsp
 in your case) failed to compile.  Look further up the logs for the first
 error message in the request process.

 --David

 Dirschnabel. Stefan wrote:
 Hi,

 I have to integrate a web application in Tomcat. I am not working that 
 long with Tomcat so it could be a very trivial problem...
 The whole application seems almost to work (you can log in the 
 application etc) but accessing some jsp's I get ClassNotFoundExceptions 
 like the following. It's strange, some pages work, some do not.


 Part of the logfile:
 20.04.2007 09:16:22 org.apache.catalina.core.ApplicationContext log
 SCHWERWIEGEND: Error loading WebappClassLoader
   delegate: false
   repositories:
 /WEB-INF/classes/
 -- Parent Classloader:
 [EMAIL PROTECTED]
  com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
 java.lang.ClassNotFoundException: 
 com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
 at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
 
 20.04.2007 09:16:22 org.apache.catalina.core.StandardWrapperValve invoke
 SCHWERWIEGEND: Allocate exception for servlet 
 com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
 java.lang.ClassNotFoundException: 
 com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
 at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
 

 Mit freundlichen Grüßen / Best Regards
 Stefan Dirschnabel


 SEEBURGER AG
 Headquarters:
 Edisonstraße 1
 D-75015 Bretten
 Tel.: 0 72 52/96-0
 Fax: 0 72 52/96-
 Internet: http://www.seeburger.de
 e-mail: [EMAIL PROTECTED]

 Vorstand:
 Bernd Seeburger, Axel Haas, Michael Kleeberg

 Vorsitzender des Aufsichtsrats:
 Dr. Franz Scherer

 Handelsregister:
 HRB 240708 Mannheim



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



SEEBURGER AG 
Headquarters:
Edisonstraße 1 
D-75015 Bretten 
Tel.: 0 72 52/96-0 
Fax: 0 72 52/96- 
Internet: http://www.seeburger.de 
e-mail: [EMAIL PROTECTED] 

Vorstand:
Bernd Seeburger, Axel Haas, Michael Kleeberg

Vorsitzender des Aufsichtsrats:
Dr. Franz Scherer

Handelsregister:
HRB 240708 Mannheim


Re: AW: HowTo forward user name from apache via mod_jk to tomcat

2007-04-20 Thread Rainer Jung
Ah, OK, that completes the picture. I checked in tomcat code, that the 
forwarded info is being used, but I saw, that only if some boolean flag 
is not set. I didn't have the time to check where that flag comes from, 
but your last post perfectly fits. So having that to false enables one 
to read the user forwarded by mod_jk in the default servlet way without 
using additional env vars.


David Smith wrote:

I've fixed getting user info from apache by adding
tomcatAuthentication=false to the connector config in server.xml. 


--David

Peter Neu wrote:

Hello,

yeah, I thought of this too. But I only get a null value for
request.getRemoteUser(). Any idea what could be wrong? My mod_jk
version is mod_jk 1.2.19.

Cheers,
Pete





-Ursprüngliche Nachricht-
Von: Christopher Schultz [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 19. April 2007 18:28
An: Tomcat Users List
Betreff: Re: HowTo forward user name from apache via mod_jk to tomcat


Rainer,

Rainer Jung wrote:

In this case, why not simply use (mini test jsp):

User: %=request.getRemoteUser()%

Oh, hey, that's a lot better. No config or anything ;) I didn't realize
that REMOTE_USER was already being forwarded without further
configuration.

Thanks for the clarification.


-
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: Jasper compiler very slow

2007-04-20 Thread Rashmi Rubdi

Hi Anthony,

I exaggerated the less than 1 second on first load, I noticed that
some other pages take from 2 to 5 seconds to load on first compile in
the development environment.

Because of this first-time delay, it is important for me to
pre-compile the JSPs , in order to  maintain a higher user experience
expectations -- because people don't wait for more than 1 second for a
web page to load.

Well, one could say that this is only a *first time* delay, but my
production server is shut-down often so when I redeploy, it's almost
like first time compile every day, that's why there's a need to
pre-compile for prod.

-Rashmi

On 4/20/07, Berglas, Anthony [EMAIL PROTECTED] wrote:

Thanks for the replies.

But I suspect that there is something very odd going on, and possibly
preventable.  There is just no way that any reasonably written code
could take that long to compile JSP.  I have checked that it is CPU
bound.  Maybe there is some O(n^4) algorithm in there, but I cannot
imagine what.

Anthony



-
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: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

2007-04-20 Thread David Kerber
I did some more testing, and discovered an error in my OP.  See inline 
below...


I already have a message into the makers of the jni package I'm using 
with my standalone app to see if they have any input on this.


David Smith wrote:


And where is the class that can't find HttpServletRequest?  If in the
common/endorsed folder, try moving it to your WEB-INF/lib (just to test
 

Originally, I had the jar's with the classes in question in the 
jar/lib/ext folder, because they apparently need to be there for a 
standalone app that uses jni to access some of the classes in these same 
jars.  If I *move* them from the lib/ext folder into the web-inf/lib 
folder, then my web app works fine, but my standalone app fails.  What I 
had initially done when writing my op was to copy the jars, so that they 
existed in both lib/ext, and in web-inf/lib, and my web app doesn't like 
that, though my standalone app works ok. 


a theory).  I suspect your startup parameters essentially added the
common/endorsed folder to the system classloader which puts it above the
 

My tomcat startup does specify the common/endorsed folders.  Can I take 
that out if I don't have anything of mine in there?  Or can I do 
something with common or shared to tell the tomcat to use the classes 
from lib/ext?



common classloader where HttpServletRequest would be.  If your class is
in the System classloader it won't see the servlet api at all.

See http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
 

I've read that several times in the past, but it's kind of short on the 
information I need.  I'll look again...



--David

David Kerber wrote:
 


Running tomcat 5.5.15 on Windows server 2003.

Why would I get the subject error when I'm deep into my code, and not
near the top when I first use it?  I'm getting this in a class that is
buried several layers deep in a utility jar file.  The servlet that
calls this class is working fine, I get no compile errors, I am
importing the proper class, and my startup env vars are set to:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5
-Dcatalina.base=c:\TomcatClients\EddSrv
-Djava.endorsed.dirs=C:\Program Files\Apache Software
Foundation\Tomcat 5.5\common\endorsed

Here is the code snippet at issue, and the line where I'm getting the
error.  This is in a utility .jar file in web-inf/lib

import javax.servlet.http.HttpServletRequest;
...
  public static int updateDb( HttpServletRequest request ) {
  HttpSessionsession;
   


error line:
   


  session = request.getSession();

This is being called from a class in my .war file:

  rslt = TCfgHose.updateDb( request );


It works fine in dev mode in Eclipse, but fails when deployed.  What
am I missing?  Do I need to put out a jdk after all?  Or is there a
problem with passing a HttpServletRequest out of the webapp and into a
utility .jar?

Dave
   





-
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: I get this error message while starting tomcat

2007-04-20 Thread David Smith
Seems pretty straight forward -- the user/host/password combo you
provided isn't valid on your mysql server.  Keep in mind mysql doesn't
just check username and password, it also checks where you are logging
in from (the host).  You can test the login credentials by using the
mysql command line client from a command shell on your system.

--David

peri wrote:
 Hi,
 I'm a new user on tomcat. I'm using tomcat on my local machine for some
 application. I use tomcat version 4.1 MySql version 4.1.22 as database and
 eclipse 3.2 as ide. while I start tomcat on eclipse I got this error
 messsage:
 INFO: Initializing, config='ApplicationResources', returnNull=true
 19-Apr-2007 23:00:16 org.apache.struts.action.ActionServlet
 initModuleDataSources
 SEVERE: Initializing application data source musiccollecton
 org.apache.commons.dbcp.SQLNestedException: Cannot create
 PoolableConnectionFactory (Access denied for user
 'theDatabaseUserN'@'localhost' (using password: YES))
   at
 org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)
   at
 org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:959)
   at
 org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1087)
   at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
   at javax.servlet.GenericServlet.init(GenericServlet.java:212)
   at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:879)
   at 
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:767)
   at
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3483)
   at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3709)
   at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:776)
   at 
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:759)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:537)
   at
 org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260)
   at org.apache.catalina.core.StandardHost.install(StandardHost.java:730)
   at
 org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:625)
   at 
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:374)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:784)
   at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:330)
   at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1155)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:696)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1147)
   at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:310)
   at 
 org.apache.catalina.core.StandardService.start(StandardService.java:449)
   at 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2212)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:458)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:345)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:150)
 Caused by: java.sql.SQLException: Access denied for user
 'theDatabaseUserN'@'localhost' (using password: YES)
   at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)
   at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:798)
   at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3700)
   at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1203)
   at com.mysql.jdbc.Connection.createNewIO(Connection.java:2572)
   at com.mysql.jdbc.Connection.init(Connection.java:1485)
   at
 com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
   at
 org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
   at
 org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
   at
 org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1247)
   at
 org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1221)
   ... 32 more
 Could anyone help me to solve this exception. Before installing MySQL I
 didn't get this error messge.
 Thank you very much
 Perihan
   


-
To start a new topic, e-mail: 

Re: JasperException: Array index out of range

2007-04-20 Thread Rashmi Rubdi

Hi Gabor,

Yes I did look at the full stack track you've posted. Is this stack
trace only from the JSP page?

Please look in the log files for additional stack trace, if there are any.

Otherwise this may be a Tomcat bug, and you can file a bug report on Bugzilla.

-Rashmi

On 4/20/07, Gabor Konrad [EMAIL PROTECTED] wrote:

Hi Rashmi!


 StandardWrapperValve[action]: Servlet.service() for servlet action threw 
exception
 org.apache.jasper.JasperException: Array index out of range: 0

indicates that there's some code that is accessing the wrong index of
an Array , either the index is less than 0 or greater than or equal to
the size of the Array.
Check your code.


Did you see the call stack trace? It doesn't contains any call of my program.

How could I index out of array's range in my program?



GKonrad





-
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: AW: Sometimes ClassNotFoundException

2007-04-20 Thread David Smith
No  it would be very reproduceable if the jsp isn't compiling for 
some reason.  I've seen this error when importing jsps that don't 
compile/aren't found using the c:import url=/InventoryStatus.jsp / 
tag.  Can you verify that InventoryStatus.jsp is in the webapp or 
optionally if using precompiled jsps that the Inventory_jsp.class is 
available in the webapp?


--David

Dirschnabel. Stefan wrote:


Hm ... I deleted the logfiles and reproduced the error multiple times, but the 
exception I showed you is the first I get. Furthermore, if it would be a 
compile failure the error messages would appear randomly, wouldn't they? But 
always exactly the same .jsp's can be found/ not found.

Stefan Dirschnabel


-Ursprüngliche Nachricht-
Von: David Smith [mailto:[EMAIL PROTECTED] 


I've seen this before... typically because the jsp (InventoryStatus.jsp
in your case) failed to compile.  Look further up the logs for the first
error message in the request process.

--David

Dirschnabel. Stefan wrote:
 


Hi,

I have to integrate a web application in Tomcat. I am not working that long 
with Tomcat so it could be a very trivial problem...
The whole application seems almost to work (you can log in the application etc) 
but accessing some jsp's I get ClassNotFoundExceptions like the following. It's 
strange, some pages work, some do not.


Part of the logfile:
20.04.2007 09:16:22 org.apache.catalina.core.ApplicationContext log
SCHWERWIEGEND: Error loading WebappClassLoader
 delegate: false
 repositories:
   /WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
java.lang.ClassNotFoundException: 
com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)

20.04.2007 09:16:22 org.apache.catalina.core.StandardWrapperValve invoke
SCHWERWIEGEND: Allocate exception for servlet 
com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
java.lang.ClassNotFoundException: 
com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)


Mit freundlichen Grüßen / Best Regards
Stefan Dirschnabel


SEEBURGER AG 
Headquarters:
Edisonstraße 1 
D-75015 Bretten 
Tel.: 0 72 52/96-0 
Fax: 0 72 52/96- 
Internet: http://www.seeburger.de 
e-mail: [EMAIL PROTECTED] 


Vorstand:
Bernd Seeburger, Axel Haas, Michael Kleeberg

Vorsitzender des Aufsichtsrats:
Dr. Franz Scherer

Handelsregister:
HRB 240708 Mannheim
 
   




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



SEEBURGER AG 
Headquarters:
Edisonstraße 1 
D-75015 Bretten 
Tel.: 0 72 52/96-0 
Fax: 0 72 52/96- 
Internet: http://www.seeburger.de 
e-mail: [EMAIL PROTECTED] 


Vorstand:
Bernd Seeburger, Axel Haas, Michael Kleeberg

Vorsitzender des Aufsichtsrats:
Dr. Franz Scherer

Handelsregister:
HRB 240708 Mannheim
 




-
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: Sometimes ClassNotFoundException

2007-04-20 Thread Martin Gainty

Please post the jsps,servlets web.xml and directory structure as well
Martin--

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: David Smith [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, April 20, 2007 7:36 AM
Subject: Re: Sometimes ClassNotFoundException



I've seen this before... typically because the jsp (InventoryStatus.jsp
in your case) failed to compile.  Look further up the logs for the first
error message in the request process.

--David

Dirschnabel. Stefan wrote:

Hi,

I have to integrate a web application in Tomcat. I am not working that 
long with Tomcat so it could be a very trivial problem...
The whole application seems almost to work (you can log in the 
application etc) but accessing some jsp's I get ClassNotFoundExceptions 
like the following. It's strange, some pages work, some do not.



Part of the logfile:
20.04.2007 09:16:22 org.apache.catalina.core.ApplicationContext log
SCHWERWIEGEND: Error loading WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
 com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
java.lang.ClassNotFoundException: 
com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)


20.04.2007 09:16:22 org.apache.catalina.core.StandardWrapperValve invoke
SCHWERWIEGEND: Allocate exception for servlet 
com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
java.lang.ClassNotFoundException: 
com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)



Mit freundlichen Grüßen / Best Regards
Stefan Dirschnabel


SEEBURGER AG
Headquarters:
Edisonstraße 1
D-75015 Bretten
Tel.: 0 72 52/96-0
Fax: 0 72 52/96-
Internet: http://www.seeburger.de
e-mail: [EMAIL PROTECTED]

Vorstand:
Bernd Seeburger, Axel Haas, Michael Kleeberg

Vorsitzender des Aufsichtsrats:
Dr. Franz Scherer

Handelsregister:
HRB 240708 Mannheim




-
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: JasperException: Array index out of range

2007-04-20 Thread Rashmi Rubdi

I also noticed Struts in the stack trace and it could be a bug in Struts also.

-Rashmi

On 4/20/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:

Hi Gabor,

Yes I did look at the full stack track you've posted. Is this stack
trace only from the JSP page?

Please look in the log files for additional stack trace, if there are any.

Otherwise this may be a Tomcat bug, and you can file a bug report on Bugzilla.

-Rashmi

On 4/20/07, Gabor Konrad [EMAIL PROTECTED] wrote:
 Hi Rashmi!


  StandardWrapperValve[action]: Servlet.service() for servlet action threw 
exception
  org.apache.jasper.JasperException: Array index out of range: 0

 indicates that there's some code that is accessing the wrong index of
 an Array , either the index is less than 0 or greater than or equal to
 the size of the Array.
 Check your code.


 Did you see the call stack trace? It doesn't contains any call of my program.

 How could I index out of array's range in my program?



 GKonrad






-
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: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

2007-04-20 Thread David Smith
JAVA_HOME/lib/ext is in the bootstrap classloader (top-most, above 
System).  Given your need for running this code standalone and in a 
webapp, I think a refactoring is in order.  The parts that have to live 
in JAVA_HOME/lib/ext should not refer to the servlet api.  They should 
just return data to classes in your webapp which intern handle the 
servlet api stuff.  That should get you out of your classloader problem.


--David


David Kerber wrote:

I did some more testing, and discovered an error in my OP.  See inline 
below...


I already have a message into the makers of the jni package I'm using 
with my standalone app to see if they have any input on this.


David Smith wrote:


And where is the class that can't find HttpServletRequest?  If in the
common/endorsed folder, try moving it to your WEB-INF/lib (just to test
 

Originally, I had the jar's with the classes in question in the 
jar/lib/ext folder, because they apparently need to be there for a 
standalone app that uses jni to access some of the classes in these 
same jars.  If I *move* them from the lib/ext folder into the 
web-inf/lib folder, then my web app works fine, but my standalone app 
fails.  What I had initially done when writing my op was to copy the 
jars, so that they existed in both lib/ext, and in web-inf/lib, and my 
web app doesn't like that, though my standalone app works ok.



a theory).  I suspect your startup parameters essentially added the
common/endorsed folder to the system classloader which puts it above the
 

My tomcat startup does specify the common/endorsed folders.  Can I 
take that out if I don't have anything of mine in there?  Or can I do 
something with common or shared to tell the tomcat to use the classes 
from lib/ext?



common classloader where HttpServletRequest would be.  If your class is
in the System classloader it won't see the servlet api at all.

See http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
 

I've read that several times in the past, but it's kind of short on 
the information I need.  I'll look again...



--David

David Kerber wrote:
 


Running tomcat 5.5.15 on Windows server 2003.

Why would I get the subject error when I'm deep into my code, and not
near the top when I first use it?  I'm getting this in a class that is
buried several layers deep in a utility jar file.  The servlet that
calls this class is working fine, I get no compile errors, I am
importing the proper class, and my startup env vars are set to:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5
-Dcatalina.base=c:\TomcatClients\EddSrv
-Djava.endorsed.dirs=C:\Program Files\Apache Software
Foundation\Tomcat 5.5\common\endorsed

Here is the code snippet at issue, and the line where I'm getting the
error.  This is in a utility .jar file in web-inf/lib

import javax.servlet.http.HttpServletRequest;
...
  public static int updateDb( HttpServletRequest request ) {
  HttpSessionsession;
  


error line:
  



  session = request.getSession();

This is being called from a class in my .war file:

  rslt = TCfgHose.updateDb( request );


It works fine in dev mode in Eclipse, but fails when deployed.  What
am I missing?  Do I need to put out a jdk after all?  Or is there a
problem with passing a HttpServletRequest out of the webapp and into a
utility .jar?

Dave
  






-
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: I get this error message while starting tomcat

2007-04-20 Thread Orlando Reis

And don't forget to use the -h flag to specify the host you are connecting
to on mysql command line.

That might be different, having a FQDN or localhost.

Try logging on your mysql database and very the mysql.user and mysql.dbtables.

Orlando

On 4/20/07, David Smith [EMAIL PROTECTED] wrote:


Seems pretty straight forward -- the user/host/password combo you
provided isn't valid on your mysql server.  Keep in mind mysql doesn't
just check username and password, it also checks where you are logging
in from (the host).  You can test the login credentials by using the
mysql command line client from a command shell on your system.

--David

peri wrote:
 Hi,
 I'm a new user on tomcat. I'm using tomcat on my local machine for some
 application. I use tomcat version 4.1 MySql version 4.1.22 as database
and
 eclipse 3.2 as ide. while I start tomcat on eclipse I got this error
 messsage:
 INFO: Initializing, config='ApplicationResources', returnNull=true
 19-Apr-2007 23:00:16 org.apache.struts.action.ActionServlet
 initModuleDataSources
 SEVERE: Initializing application data source musiccollecton
 org.apache.commons.dbcp.SQLNestedException: Cannot create
 PoolableConnectionFactory (Access denied for user
 'theDatabaseUserN'@'localhost' (using password: YES))
   at
 org.apache.commons.dbcp.BasicDataSource.createDataSource(
BasicDataSource.java:1225)
   at
 org.apache.commons.dbcp.BasicDataSource.setLogWriter(
BasicDataSource.java:959)
   at
 org.apache.struts.action.ActionServlet.initModuleDataSources(
ActionServlet.java:1087)
   at org.apache.struts.action.ActionServlet.init(ActionServlet.java
:472)
   at javax.servlet.GenericServlet.init(GenericServlet.java:212)
   at
 org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:879)
   at org.apache.catalina.core.StandardWrapper.load(
StandardWrapper.java:767)
   at
 org.apache.catalina.core.StandardContext.loadOnStartup(
StandardContext.java:3483)
   at
 org.apache.catalina.core.StandardContext.start(StandardContext.java
:3709)
   at
 org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:776)
   at org.apache.catalina.core.ContainerBase.addChild(
ContainerBase.java:759)
   at org.apache.catalina.core.StandardHost.addChild(
StandardHost.java:537)
   at
 org.apache.catalina.core.StandardHostDeployer.install(
StandardHostDeployer.java:260)
   at org.apache.catalina.core.StandardHost.install(StandardHost.java
:730)
   at
 org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:625)
   at org.apache.catalina.startup.HostConfig.deployApps(
HostConfig.java:374)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java
:784)
   at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:330)
   at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
:1155)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java
:696)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
:1147)
   at org.apache.catalina.core.StandardEngine.start(
StandardEngine.java:310)
   at org.apache.catalina.core.StandardService.start(
StandardService.java:449)
   at org.apache.catalina.core.StandardServer.start(
StandardServer.java:2212)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:458)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:345)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
 sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:150)
 Caused by: java.sql.SQLException: Access denied for user
 'theDatabaseUserN'@'localhost' (using password: YES)
   at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)
   at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:798)
   at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3700)
   at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1203)
   at com.mysql.jdbc.Connection.createNewIO(Connection.java:2572)
   at com.mysql.jdbc.Connection.init(Connection.java:1485)
   at
 com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:266)
   at
 org.apache.commons.dbcp.DriverConnectionFactory.createConnection(
DriverConnectionFactory.java:38)
   at
 org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(
PoolableConnectionFactory.java:294)
   at
 org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(
BasicDataSource.java:1247)
   at
 

Exception opening directory server connection

2007-04-20 Thread Aurélien Allienne

Hi,

I want to use JNDIRealm.

I write this in the server.xml :

 Realm className=org.apache.catalina.realm.JNDIRealm
debug=99
connectionName=uid=tomcat,ou=xx,dc=xx,dc=fr
connectionPassword=g72jfacc
connectionURL=ldap://ldapmasta:1389;
userBase=ou=people,dc=xx,dc=fr
userSearch=(uid={0})
roleBase=ou=appli,dc=xx,dc=fr
roleName=cn
roleSearch=(uniqueMember={0})
roleSubtree=true
/

Before that, I makes an authentification sso by LDAP and according to the
user group, I grant or not the accesses. So I want to use Realm

I don't know if my configuration is corectly but I have this error

WARNING: Exception performing authentication
javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid
Credentials]
   at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2985)
   at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
   at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2732)
   at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2646)
   at com.sun.jndi.ldap.LdapCtx.init(LdapCtx.java:283)
   at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java
:175)
   at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java
:193)
   at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(
LdapCtxFactory.java:136)
   at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(
LdapCtxFactory.java:66)
   at javax.naming.spi.NamingManager.getInitialContext(
NamingManager.java:667)
   at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java
:247)
   at javax.naming.InitialContext.init(InitialContext.java:223)
   at javax.naming.InitialContext.init(InitialContext.java:197)
   at javax.naming.directory.InitialDirContext.init(
InitialDirContext.java:82)
   at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:1575)
   at org.apache.catalina.realm.JNDIRealm.start(JNDIRealm.java:1664)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
:1006)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
:443)
   at org.apache.catalina.core.StandardService.start(
StandardService.java:448)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java
:700)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Apr 20, 2007 1:51:23 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  Exception opening directory server connection:
javax.naming.CommunicationException: localhost:389 [Root exception is
java.net.ConnectException: Connection refused]
   at org.apache.catalina.realm.JNDIRealm.start(JNDIRealm.java:1666)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
:1006)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
:443)
   at org.apache.catalina.core.StandardService.start(
StandardService.java:448)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java
:700)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)


However in my code, it is never specified: localhost:389 :\

Can you help me?

Cordially

Aurelien Allienne


Re: problems configuring mod_jk

2007-04-20 Thread Faheem Mitha



On Fri, 20 Apr 2007, Rainer Jung wrote:

Please post the log parts (debug log level) which appear when starting 
apache. Those are the lines that show, how mod_jk parses your 
workers.properties, and which internal objects it generates out of it.


Hi Rainer,

Ok, thanks for your help. This is the portion of the log generated by 
mod_jk, which I presume is what is relevant. The formatting is not 
optimal, but I can try to wrap it if desired.


Faheem.

***

[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] do_shm_open::jk_shm.c (295): 
Truncated shared memory to 28800
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] do_shm_open::jk_shm.c (327): 
Initialized shared memory size=28800 free=28672 addr=0x2af709b07000
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] do_shm_open_lock::jk_shm.c 
(234): Opened shared memory lock /var/log/apache2/jk-runtime-status.lock
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] init_jk::mod_jk.c (2355): 
Initialized shm:/var/log/apache2/jk-runtime-status
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (361): rule map size is 0
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] build_worker_map::jk_worker.c 
(236): creating worker ajp13
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] wc_create_worker::jk_worker.c 
(141): about to create instance ajp13 of ajp13
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] wc_create_worker::jk_worker.c 
(154): about to validate and init ajp13
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] ajp_validate::jk_ajp_common.c 
(1842): worker ajp13 contact is 'localhost:8009'
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] ajp_init::jk_ajp_common.c 
(1965): setting endpoint options:
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] ajp_init::jk_ajp_common.c 
(1968): keepalive:0
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] ajp_init::jk_ajp_common.c 
(1972): timeout:  -1
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] ajp_init::jk_ajp_common.c 
(1976): buffer size:  0
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] ajp_init::jk_ajp_common.c 
(1980): pool timeout: 0
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] ajp_init::jk_ajp_common.c 
(1984): connect timeout:  0
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] ajp_init::jk_ajp_common.c 
(1988): reply timeout:0
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] ajp_init::jk_ajp_common.c 
(1992): prepost timeout:  0
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] ajp_init::jk_ajp_common.c 
(1996): recovery options: 0
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] ajp_init::jk_ajp_common.c 
(2000): retries:  2
[Fri Apr 20 11:14:40 2007] [32052:9664] [debug] 
ajp_create_endpoint_cache::jk_ajp_common.c (1879): setting connection pool size 
to 25 with min 12
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] do_shm_open::jk_shm.c (295): 
Truncated shared memory to 28800
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] do_shm_open::jk_shm.c (327): 
Initialized shared memory size=28800 free=28672 addr=0x2af705d23000
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] do_shm_open_lock::jk_shm.c 
(234): Opened shared memory lock /var/log/apache2/jk-runtime-status.lock
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] init_jk::mod_jk.c (2355): 
Initialized shm:/var/log/apache2/jk-runtime-status
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (361): rule map size is 0
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] build_worker_map::jk_worker.c 
(236): creating worker ajp13
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] wc_create_worker::jk_worker.c 
(141): about to create instance ajp13 of ajp13
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] wc_create_worker::jk_worker.c 
(154): about to validate and init ajp13
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] ajp_validate::jk_ajp_common.c 
(1842): worker ajp13 contact is 'localhost:8009'
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] ajp_init::jk_ajp_common.c 
(1965): setting endpoint options:
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] ajp_init::jk_ajp_common.c 
(1968): keepalive:0
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] ajp_init::jk_ajp_common.c 
(1972): timeout:  -1
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] ajp_init::jk_ajp_common.c 
(1976): buffer size:  0
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] ajp_init::jk_ajp_common.c 
(1980): pool timeout: 0
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] ajp_init::jk_ajp_common.c 
(1984): connect timeout:  0
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] ajp_init::jk_ajp_common.c 
(1988): reply timeout:0
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] ajp_init::jk_ajp_common.c 
(1992): prepost timeout:  0
[Fri Apr 20 11:14:40 2007] [32053:9664] [debug] ajp_init::jk_ajp_common.c 
(1996): recovery options: 0
[Fri Apr 20 11:14:40 

Re: Wildcard for server alias?

2007-04-20 Thread Jeremy Cowgar

Thanks, that will do the trick!

Jeremy

On Apr 20, 2007, at 3:10 AM, Pid wrote:


Jeremy Cowgar wrote:
Is it possible to do a wildcard on the server alias? I have  
something like username.hostname.com instead of hostname.com/ 
~username/ ... I have a wildcard in DNS so I do not define each  
host. In the current apache version of the app, I have ServerAlias  
*.hostname.com which works great.

Can I do something similar w/Tomcat?
Thanks,
Jeremy


Not exactly, but if you set the your app to run on the default  
virtual host, then all traffic will be directed there.



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



How Do i catch HTTP Status 503 Error?

2007-04-20 Thread risky57

Im getting a HTTP Status 503 Error occurring every other time i start and
stop Tomcat Embedded and launch a browser.


I have been told that HTTP Status 503 error is due to overload.


does anyone know how to catch this error?


i would like to check if this error is to occur, if it is, then do not open
the browser, if it is not then continue to open browser.

any help would be appreciated.
-- 
View this message in context: 
http://www.nabble.com/How-Do-i-catch-HTTP-Status-503-Error--tf3617819.html#a10101808
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: Starting Tomcat 5.5.23 gives error in localhost.xxxx-xx-xx.log

2007-04-20 Thread Caldarale, Charles R
 From: Gupta, Medhavi (GE Healthcare) 
 [mailto:[EMAIL PROTECTED] 
 Subject: Starting Tomcat 5.5.23 gives error in 
 localhost.-xx-xx.log
 
  I have tomcat 5.5.23 binary distribution Windows executable.
 
  java.lang.ClassFormatError: Extra bytes at the end of class file
  listeners/ContextListener

The usual cause of the above is corrupted jar files, often due to using
a Windows FTP client in ASCII (rather than binary) mode to move them.
The Windows FTP client likes to convert any 0x0A bytes (line feed) into
0x0A 0x0D pairs (line feed, carriage return).  Try reinstalling Tomcat
without doing any FTP transfers.

 - 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 deployment question

2007-04-20 Thread Caldarale, Charles R
 From: Lakshmi Venkataraman [mailto:[EMAIL PROTECTED] 
 Subject: RE: Tomcat deployment question
 
 When tomcat is started and starts reading htdocs.xml,
 I get the following message:
  Warning: a docBase w:\INM\Apache\htdocs\htdocs inside the 
 host appBase has been defined and will be ignored.

Again, the docBase attribute in a Context element should only be used
when the webapp is located completely outside of Tomcat's directory
structure.  If the webapp is under appBase, you don't need (or want) a
docBase 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: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

2007-04-20 Thread David Smith
The easy way in my opinion is to abstract the common stuff to a 
superclass and then subclass to servlet vs. standalone.  The servlet 
subclass goes in WEB-INF/lib, the standalone subclasses can be in the 
standalone application jar.




--David

David Kerber wrote:


David Smith wrote:

JAVA_HOME/lib/ext is in the bootstrap classloader (top-most, above 
System).  Given your need for running this code standalone and in a 
webapp, I think a refactoring is in order.  The parts that have to 
live in JAVA_HOME/lib/ext should not refer to the servlet api.  They 
should just return data to classes in your webapp which intern handle 
the servlet api stuff.  That should get you out of your classloader 
problem.




Hmm.  Good thought.  Please let me clarify my situation and ask for 
your comments:
What I have is classes that represent general types of equipment.  
Some of the methods for each equipment class are used from the webapp 
for managemnt and configuration purposes, and other methods are used 
from the standalone app for runtime purposes.  There are a few utility 
methods that are used both places, but not many.  I thought I was 
being smart by combining all aspects of each type of equipment into a 
single class, but you seem to be saying that I should split each 
equipment class into two classes, one for management/configuration, 
and one for runtime.  Is that interpretation correct?


Dave



--David


David Kerber wrote:

I did some more testing, and discovered an error in my OP.  See 
inline below...


I already have a message into the makers of the jni package I'm 
using with my standalone app to see if they have any input on this.


David Smith wrote:


And where is the class that can't find HttpServletRequest?  If in the
common/endorsed folder, try moving it to your WEB-INF/lib (just to 
test
 

Originally, I had the jar's with the classes in question in the 
jar/lib/ext folder, because they apparently need to be there for a 
standalone app that uses jni to access some of the classes in these 
same jars.  If I *move* them from the lib/ext folder into the 
web-inf/lib folder, then my web app works fine, but my standalone 
app fails.  What I had initially done when writing my op was to copy 
the jars, so that they existed in both lib/ext, and in web-inf/lib, 
and my web app doesn't like that, though my standalone app works ok.



a theory).  I suspect your startup parameters essentially added the
common/endorsed folder to the system classloader which puts it 
above the
 

My tomcat startup does specify the common/endorsed folders.  Can I 
take that out if I don't have anything of mine in there?  Or can I 
do something with common or shared to tell the tomcat to use the 
classes from lib/ext?


common classloader where HttpServletRequest would be.  If your 
class is

in the System classloader it won't see the servlet api at all.

See http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
 

I've read that several times in the past, but it's kind of short on 
the information I need.  I'll look again...



--David

David Kerber wrote:
 


Running tomcat 5.5.15 on Windows server 2003.

Why would I get the subject error when I'm deep into my code, and not
near the top when I first use it?  I'm getting this in a class 
that is

buried several layers deep in a utility jar file.  The servlet that
calls this class is working fine, I get no compile errors, I am
importing the proper class, and my startup env vars are set to:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 
5.5

-Dcatalina.base=c:\TomcatClients\EddSrv
-Djava.endorsed.dirs=C:\Program Files\Apache Software
Foundation\Tomcat 5.5\common\endorsed

Here is the code snippet at issue, and the line where I'm getting the
error.  This is in a utility .jar file in web-inf/lib

import javax.servlet.http.HttpServletRequest;
...
  public static int updateDb( HttpServletRequest request ) {
  HttpSessionsession;
 


error line:
  





  session = request.getSession();

This is being called from a class in my .war file:

  rslt = TCfgHose.updateDb( request );


It works fine in dev mode in Eclipse, but fails when deployed.  What
am I missing?  Do I need to put out a jdk after all?  Or is there a
problem with passing a HttpServletRequest out of the webapp and 
into a

utility .jar?

Dave







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



Sometimes ClassNotFoundException [SOLVED]

2007-04-20 Thread Dirschnabel. Stefan
Ok, I found the mistake at last. Problems were wrong servlet mappings (to not 
existing pre compiled jsp's) in the web.xml because of a mistake in the build 
script. Big thx for all help

Stefan


-Ursprüngliche Nachricht-
Von: David Smith [mailto:[EMAIL PROTECTED] 

No  it would be very reproduceable if the jsp isn't compiling for 
some reason.  I've seen this error when importing jsps that don't 
compile/aren't found using the c:import url=/InventoryStatus.jsp / 
tag.  Can you verify that InventoryStatus.jsp is in the webapp or 
optionally if using precompiled jsps that the Inventory_jsp.class is 
available in the webapp?

--David

Dirschnabel. Stefan wrote:

Hm ... I deleted the logfiles and reproduced the error multiple times, but the 
exception I showed you is the first I get. Furthermore, if it would be a 
compile failure the error messages would appear randomly, wouldn't they? But 
always exactly the same .jsp's can be found/ not found.

Stefan Dirschnabel


-Ursprüngliche Nachricht-
Von: David Smith [mailto:[EMAIL PROTECTED] 

I've seen this before... typically because the jsp (InventoryStatus.jsp
in your case) failed to compile.  Look further up the logs for the first
error message in the request process.

--David

Dirschnabel. Stefan wrote:
  

Hi,

I have to integrate a web application in Tomcat. I am not working that long 
with Tomcat so it could be a very trivial problem...
The whole application seems almost to work (you can log in the application 
etc) but accessing some jsp's I get ClassNotFoundExceptions like the 
following. It's strange, some pages work, some do not.

 
Part of the logfile:
20.04.2007 09:16:22 org.apache.catalina.core.ApplicationContext log
SCHWERWIEGEND: Error loading WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
 com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
java.lang.ClassNotFoundException: 
com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
  at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)

20.04.2007 09:16:22 org.apache.catalina.core.StandardWrapperValve invoke
SCHWERWIEGEND: Allocate exception for servlet 
com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
java.lang.ClassNotFoundException: 
com.seeburger.rfid.web.jsps.app_AutoID.jsp.InventoryStatus_jsp
  at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)


Mit freundlichen Grüßen / Best Regards
Stefan Dirschnabel


SEEBURGER AG 
Headquarters:
Edisonstraße 1 
D-75015 Bretten 
Tel.: 0 72 52/96-0 
Fax: 0 72 52/96- 
Internet: http://www.seeburger.de 
e-mail: [EMAIL PROTECTED] 

Vorstand:
Bernd Seeburger, Axel Haas, Michael Kleeberg

Vorsitzender des Aufsichtsrats:
Dr. Franz Scherer

Handelsregister:
HRB 240708 Mannheim
  




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



SEEBURGER AG 
Headquarters:
Edisonstraße 1 
D-75015 Bretten 
Tel.: 0 72 52/96-0 
Fax: 0 72 52/96- 
Internet: http://www.seeburger.de 
e-mail: [EMAIL PROTECTED] 

Vorstand:
Bernd Seeburger, Axel Haas, Michael Kleeberg

Vorsitzender des Aufsichtsrats:
Dr. Franz Scherer

Handelsregister:
HRB 240708 Mannheim
  



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



SEEBURGER AG 
Headquarters:
Edisonstraße 1 
D-75015 Bretten 
Tel.: 0 72 52/96-0 
Fax: 0 72 52/96- 
Internet: http://www.seeburger.de 
e-mail: [EMAIL PROTECTED] 

Vorstand:
Bernd Seeburger, Axel Haas, Michael Kleeberg

Vorsitzender des Aufsichtsrats:
Dr. Franz Scherer

Handelsregister:
HRB 240708 Mannheim


RE: Tomcat 5.5 Connection Pooling problem

2007-04-20 Thread Propes, Barry L
that last block of code looks correct.

I could send you my xml file config offline, FWIW, but just be warned I am 
using 4.1.31.

-Original Message-
From: dimos [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 4:45 AM
To: users@tomcat.apache.org
Subject: Tomcat 5.5 Connection Pooling problem


Hi,
I am trying to setup JDBC connection pooling in Tomcat
5.5 using DB2 database and IBM RAD 7.0 IDE. Although
The setup described in JNDI Resources
HOW-TO(http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html)
for creating JDBC Datasources did work, I would like
to work with real connection pooling, which means not
declaring datasources into the /META-INF/context.xml
file of each web app but having them as

GlobalNamingResources

into /conf/server.xml and accessing them through

ResourceLink

references from /conf/context.xml (or
/conf/catalina/localhost/ROOT.xml). However I am stuck
with Exception

javax.naming.NameNotFoundException: Name jdbc is not
bound in this Context

. Even if I add an:

resource-env-ref
description
/description

resource-env-ref-namejdbc/DB2T/resource-env-ref-name

resource-env-ref-typejavax.sql.DataSource/resource-env-ref-type
/resource-env-ref

record in my /WEB-INF/web.xml I get a

javax.naming.NamingException: Cannot create resource
instance

Exception.

Does anyone have an idea how to resolve this?
Here are my configurations:

-/conf/server.xml---

Server port=8005 shutdown=SHUTDOWN
 
  !-- Global JNDI resources --
  GlobalNamingResources
 
   Resource name=jdbc/DB2T auth=Container
   type=javax.sql.DataSource removeAbandoned=true
 
factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
   removeAbandonedTimeout=30 maxActive=100
   maxIdle=30 maxWait=1 username=id
   password=pass
   driverClassName=com.ibm.db2.jcc.DB2Driver
   url=jdbc:db2://ip-addrr:port/dbname/
  /GlobalNamingResources



--/conf/context.xml--

!-- The contents of this file will be loaded for each
web application --
Context
 
!-- Default set of monitored resources --
WatchedResourceWEB-INF/web.xml/WatchedResource
   
WatchedResourceMETA-INF/context.xml/WatchedResource
   
ResourceLink name=jdbc/DB2T global=jdbc/DB2T 
type=javax.sql.DataSource/
/Context



I also try to get the resource with java code like
this:

DataSource ds;
InitialContext DSCtx = new InitialContext();
ds = (DataSource)
DSCtx.lookup(java:/comp/env/jdbc/DB2T); 



PS: When I start the tomcat and hit
http://localhost:8080 I can't get the default page
although every web app I run loads without problems.
Do you think this has a relation with the above problem?

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.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]


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



Configure JNDIRealm (LDAP) without using roles

2007-04-20 Thread piloupy GOTTAPIL

Hi,

I'd like to apply a security constraint for a webapp through a LDAP
server. But I don't want to take account of eventual roles associated
with a user.

Here is a part of my web.xml :

### web.xml : BEGIN ###
!-- Security constraints --
 security-constraint
   web-resource-collection
 web-resource-nameMyApp/web-resource-name
 descriptionAuthenticated users (LDAP)/description
 url-pattern/*/url-pattern
 http-methodGET/http-method
 http-methodPOST/http-method
 http-methodPUT/http-method
 http-methodDELETE/http-method
   /web-resource-collection
   auth-constraint
   /auth-constraint
 /security-constraint

 login-config
   auth-methodFORM/auth-method
   realm-nameMyApp Protected Area/realm-name
   form-login-config
 form-login-page/login.html/form-login-page
 form-error-page/autherr.html/form-error-page
   /form-login-config
 /login-config
### web.xml : END ###

As you can see, there's no role specified in the auth-constraint
tag, and there's no security-role declared, as I precisely don't
want to check roles to access to my webapp.

Here's a part of my context.xml :

### context.xml : BEGIN ###
 Realm className=org.apache.catalina.realm.JNDIRealm debug=99
 connectionName=xxx
 connectionPassword=xxx
 connectionURL=ldap://company.com:389;
 userBase=ou=people,dc=company,dc=com
 userSearch=(uid={0})
 /
### context.xml : END ###

Here's the login.html file :

### login.html : BEGIN ###
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;
html
head
titleLogin Page/title
/head
body
h1Login to My Web Application/h1
p
If you have been issued a username and password, key them in here now!
/p
form method=POST action=j_security_check
Username : input type=text size=15 maxlength=25
name=j_usernamebrbr
Password : input type=password size=15 maxlength=25
name=j_passwordbrbr
input value=Login type=submitnbsp;nbsp;nbsp;nbsp;input
value=Clear type=reset
/form
/body
/html
### login.html : END ###

As you can see, I've put the j_security_check action, and the
j_username  j_password variables.

The user/password test is correctly checked, and passed, but there's
something wrong because the role doesn't match or something, but I
don't want and I don't need to check roles. How can I achieve it ?

Here's an extract of my log file, that shows that the authentification
succeeds :
### log : BEGIN ###
DEBUG http-8080-Processor23
org.apache.catalina.authenticator.FormAuthenticator - Authenticating
username 'toto'
DEBUG http-8080-Processor23
org.apache.catalina.authenticator.FormAuthenticator - Authentication
of 'toto' was successful
### log : END ###

Thanks in advance,

piloupy

-
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: Ideal JVM params for 64-bit?

2007-04-20 Thread Per Johnsson
 
There is a good documentation about this at:

http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html

Its for Java 6 but I think it's appliable for Java 1.5 also.

I made some test running 1.6_u1 with the: -XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode and it's a lot slower but the gc is more stable.

Also when I tried the -XX:MaxGCPauseMillis=500 the result was muchs
slower so I rather live with the pause than running so slow.

Mor info about ergonomics at:
http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html

We did upgrade to java 1.6u1 which was a very good performance booster,
try that.

/Per Jonsson





-Original Message-
From: Darren Kukulka [mailto:[EMAIL PROTECTED] 
Sent: den 20 april 2007 11:52
To: Tomcat Users List
Subject: Ideal JVM params for 64-bit?

Hi Tomcaters!

 

Just a quick query relating to Tomcat 5.5.20 on Win2K3 with SUN JVM
1.5.0_10 (64-bit)

 

What are the ideal JVM GC parameter settings for a system with two
dual-core processors and 4GB RAM (of which we've allocated a little over
3GB to the JVM)?  Sometimes Tomcat pauses for a long time when OldGen
gets close to full to perform a full GC... my JConsole session tends to
drop out, although I can re-establish a session less than a minute
later...users logged into the application experience no response which
then returns to normal once the GC is finished.

 

Cheers,

 

Darren K

 



Connaught wins RoSPA Gold Award for fourth year running

Considerate Contractor Gold Award in 2006

Partnering Contractor of the Year Award in 2005

Please visit our website to see a full list of Connaught?s Registered
Companies www.connaught.plc.uk/Investors/Registered-Companies
 
Disclaimer: 

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete this
message. 



Connaught plc, Head Office 01392 444546 


This e-mail and the information it contains may be privileged and/or
confidential.  It is for the intended addressee(s) only.
The unauthorised use, disclosure or copying of this e-mail, or any information 
it contains, is prohibited. 
If you are not an intended recipient, please contact the sender and delete the 
material from your computer.




-
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: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

2007-04-20 Thread David Kerber

Thanks for the suggestion!


David Smith wrote:

The easy way in my opinion is to abstract the common stuff to a 
superclass and then subclass to servlet vs. standalone.  The servlet 
subclass goes in WEB-INF/lib, the standalone subclasses can be in the 
standalone application jar.




--David

David Kerber wrote:


David Smith wrote:

JAVA_HOME/lib/ext is in the bootstrap classloader (top-most, above 
System).  Given your need for running this code standalone and in a 
webapp, I think a refactoring is in order.  The parts that have to 
live in JAVA_HOME/lib/ext should not refer to the servlet api.  They 
should just return data to classes in your webapp which intern 
handle the servlet api stuff.  That should get you out of your 
classloader problem.





Hmm.  Good thought.  Please let me clarify my situation and ask for 
your comments:
What I have is classes that represent general types of equipment.  
Some of the methods for each equipment class are used from the webapp 
for managemnt and configuration purposes, and other methods are used 
from the standalone app for runtime purposes.  There are a few 
utility methods that are used both places, but not many.  I thought I 
was being smart by combining all aspects of each type of equipment 
into a single class, but you seem to be saying that I should split 
each equipment class into two classes, one for 
management/configuration, and one for runtime.  Is that 
interpretation correct?


Dave



--David


David Kerber wrote:

I did some more testing, and discovered an error in my OP.  See 
inline below...


I already have a message into the makers of the jni package I'm 
using with my standalone app to see if they have any input on this.


David Smith wrote:


And where is the class that can't find HttpServletRequest?  If in the
common/endorsed folder, try moving it to your WEB-INF/lib (just to 
test
 

Originally, I had the jar's with the classes in question in the 
jar/lib/ext folder, because they apparently need to be there for a 
standalone app that uses jni to access some of the classes in these 
same jars.  If I *move* them from the lib/ext folder into the 
web-inf/lib folder, then my web app works fine, but my standalone 
app fails.  What I had initially done when writing my op was to 
copy the jars, so that they existed in both lib/ext, and in 
web-inf/lib, and my web app doesn't like that, though my standalone 
app works ok.



a theory).  I suspect your startup parameters essentially added the
common/endorsed folder to the system classloader which puts it 
above the
 

My tomcat startup does specify the common/endorsed folders.  Can I 
take that out if I don't have anything of mine in there?  Or can I 
do something with common or shared to tell the tomcat to use the 
classes from lib/ext?


common classloader where HttpServletRequest would be.  If your 
class is

in the System classloader it won't see the servlet api at all.

See http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
 

I've read that several times in the past, but it's kind of short on 
the information I need.  I'll look again...



--David

David Kerber wrote:
 


Running tomcat 5.5.15 on Windows server 2003.

Why would I get the subject error when I'm deep into my code, and 
not
near the top when I first use it?  I'm getting this in a class 
that is

buried several layers deep in a utility jar file.  The servlet that
calls this class is working fine, I get no compile errors, I am
importing the proper class, and my startup env vars are set to:

-Dcatalina.home=C:\Program Files\Apache Software 
Foundation\Tomcat 5.5

-Dcatalina.base=c:\TomcatClients\EddSrv
-Djava.endorsed.dirs=C:\Program Files\Apache Software
Foundation\Tomcat 5.5\common\endorsed

Here is the code snippet at issue, and the line where I'm getting 
the

error.  This is in a utility .jar file in web-inf/lib

import javax.servlet.http.HttpServletRequest;
...
  public static int updateDb( HttpServletRequest request ) {
  HttpSessionsession;
 


error line:
  






  session = request.getSession();

This is being called from a class in my .war file:

  rslt = TCfgHose.updateDb( request );


It works fine in dev mode in Eclipse, but fails when deployed.  What
am I missing?  Do I need to put out a jdk after all?  Or is there a
problem with passing a HttpServletRequest out of the webapp and 
into a

utility .jar?

Dave






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



Administration Tomcat

2007-04-20 Thread jean-louis . mateo
Tomcat : 5.5.23
Java  :


Hi everybody,

i've downloaded the apache-tomcat-5.5.23-admin.zip file to administrate my
tomcat server.
Now i've an admin directory under %CATALINA-HOME%/webapps.
But when I try to access it through http://localhost:8080/admin I get the
following message:

The admin.login_jsp servlet is not available

There's no jsp files under the admin directory.
What's wrong ?

Many thanks

Best Regards



Jean-Louis Matéo



-
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: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

2007-04-20 Thread David Smith
And where is the class that can't find HttpServletRequest?  If in the
common/endorsed folder, try moving it to your WEB-INF/lib (just to test
a theory).  I suspect your startup parameters essentially added the
common/endorsed folder to the system classloader which puts it above the
common classloader where HttpServletRequest would be.  If your class is
in the System classloader it won't see the servlet api at all.

See http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

--David

David Kerber wrote:
 Running tomcat 5.5.15 on Windows server 2003.

 Why would I get the subject error when I'm deep into my code, and not
 near the top when I first use it?  I'm getting this in a class that is
 buried several layers deep in a utility jar file.  The servlet that
 calls this class is working fine, I get no compile errors, I am
 importing the proper class, and my startup env vars are set to:

 -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5
 -Dcatalina.base=c:\TomcatClients\EddSrv
 -Djava.endorsed.dirs=C:\Program Files\Apache Software
 Foundation\Tomcat 5.5\common\endorsed

 Here is the code snippet at issue, and the line where I'm getting the
 error.  This is in a utility .jar file in web-inf/lib

 import javax.servlet.http.HttpServletRequest;
 ...
public static int updateDb( HttpServletRequest request ) {
HttpSessionsession;
  error line:
session = request.getSession();

 This is being called from a class in my .war file:

rslt = TCfgHose.updateDb( request );


 It works fine in dev mode in Eclipse, but fails when deployed.  What
 am I missing?  Do I need to put out a jdk after all?  Or is there a
 problem with passing a HttpServletRequest out of the webapp and into a
 utility .jar?

 Dave




 -
 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: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

2007-04-20 Thread David Kerber

David Smith wrote:

JAVA_HOME/lib/ext is in the bootstrap classloader (top-most, above 
System).  Given your need for running this code standalone and in a 
webapp, I think a refactoring is in order.  The parts that have to 
live in JAVA_HOME/lib/ext should not refer to the servlet api.  They 
should just return data to classes in your webapp which intern handle 
the servlet api stuff.  That should get you out of your classloader 
problem.



Hmm.  Good thought.  Please let me clarify my situation and ask for your 
comments: 

What I have is classes that represent general types of equipment.  Some 
of the methods for each equipment class are used from the webapp for 
managemnt and configuration purposes, and other methods are used from 
the standalone app for runtime purposes.  There are a few utility 
methods that are used both places, but not many.  I thought I was being 
smart by combining all aspects of each type of equipment into a single 
class, but you seem to be saying that I should split each equipment 
class into two classes, one for management/configuration, and one for 
runtime.  Is that interpretation correct?


Dave



--David


David Kerber wrote:

I did some more testing, and discovered an error in my OP.  See 
inline below...


I already have a message into the makers of the jni package I'm using 
with my standalone app to see if they have any input on this.


David Smith wrote:


And where is the class that can't find HttpServletRequest?  If in the
common/endorsed folder, try moving it to your WEB-INF/lib (just to test
 

Originally, I had the jar's with the classes in question in the 
jar/lib/ext folder, because they apparently need to be there for a 
standalone app that uses jni to access some of the classes in these 
same jars.  If I *move* them from the lib/ext folder into the 
web-inf/lib folder, then my web app works fine, but my standalone app 
fails.  What I had initially done when writing my op was to copy the 
jars, so that they existed in both lib/ext, and in web-inf/lib, and 
my web app doesn't like that, though my standalone app works ok.



a theory).  I suspect your startup parameters essentially added the
common/endorsed folder to the system classloader which puts it above 
the
 

My tomcat startup does specify the common/endorsed folders.  Can I 
take that out if I don't have anything of mine in there?  Or can I do 
something with common or shared to tell the tomcat to use the classes 
from lib/ext?



common classloader where HttpServletRequest would be.  If your class is
in the System classloader it won't see the servlet api at all.

See http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
 

I've read that several times in the past, but it's kind of short on 
the information I need.  I'll look again...



--David

David Kerber wrote:
 


Running tomcat 5.5.15 on Windows server 2003.

Why would I get the subject error when I'm deep into my code, and not
near the top when I first use it?  I'm getting this in a class that is
buried several layers deep in a utility jar file.  The servlet that
calls this class is working fine, I get no compile errors, I am
importing the proper class, and my startup env vars are set to:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5
-Dcatalina.base=c:\TomcatClients\EddSrv
-Djava.endorsed.dirs=C:\Program Files\Apache Software
Foundation\Tomcat 5.5\common\endorsed

Here is the code snippet at issue, and the line where I'm getting the
error.  This is in a utility .jar file in web-inf/lib

import javax.servlet.http.HttpServletRequest;
...
  public static int updateDb( HttpServletRequest request ) {
  HttpSessionsession;
 


error line:
  




  session = request.getSession();

This is being called from a class in my .war file:

  rslt = TCfgHose.updateDb( request );


It works fine in dev mode in Eclipse, but fails when deployed.  What
am I missing?  Do I need to put out a jdk after all?  Or is there a
problem with passing a HttpServletRequest out of the webapp and into a
utility .jar?

Dave






-
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: Administration Tomcat

2007-04-20 Thread David Smith
Move the admin webapp to server/webapps right along side the manager and 
host-manager webapps.  Also make sure the provided admin.xml is in the 
%CATALINA_HOME%/conf/Catalina/localhost directory.


--David

[EMAIL PROTECTED] wrote:


Tomcat : 5.5.23
Java  :


Hi everybody,

i've downloaded the apache-tomcat-5.5.23-admin.zip file to administrate my
tomcat server.
Now i've an admin directory under %CATALINA-HOME%/webapps.
But when I try to access it through http://localhost:8080/admin I get the
following message:

The admin.login_jsp servlet is not available

There's no jsp files under the admin directory.
What's wrong ?

Many thanks

Best Regards



Jean-Louis Matéo



-
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: Administration Tomcat

2007-04-20 Thread Propes, Barry L
I've never been able to get this to work. I believe I've got the roles and 
tomcat-users xml file properly configured, but I always get invalid password.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 10:48 AM
To: users@tomcat.apache.org
Subject: Administration Tomcat
Importance: High


Tomcat : 5.5.23
Java  :


Hi everybody,

i've downloaded the apache-tomcat-5.5.23-admin.zip file to administrate my
tomcat server.
Now i've an admin directory under %CATALINA-HOME%/webapps.
But when I try to access it through http://localhost:8080/admin I get the
following message:

The admin.login_jsp servlet is not available

There's no jsp files under the admin directory.
What's wrong ?

Many thanks

Best Regards



Jean-Louis Matéo



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



Réf. : Re: Administration Tomcat

2007-04-20 Thread jean-louis . mateo

Thank you very much David, it's OK

Best regards






   
  David Smith   
   
  [EMAIL PROTECTED] Pour :   Tomcat Users List 
users@tomcat.apache.org
  u   cc : 
   
   Objet :  Re: Administration 
Tomcat  
  20/04/2007 18:02  
   
  Veuillez  
   
  répondre à
   
  Tomcat Users 
   
  List 
   

   

   



Move the admin webapp to server/webapps right along side the manager and
host-manager webapps.  Also make sure the provided admin.xml is in the
%CATALINA_HOME%/conf/Catalina/localhost directory.

--David

[EMAIL PROTECTED] wrote:

Tomcat : 5.5.23
Java  :


Hi everybody,

i've downloaded the apache-tomcat-5.5.23-admin.zip file to administrate my
tomcat server.
Now i've an admin directory under %CATALINA-HOME%/webapps.
But when I try to access it through http://localhost:8080/admin I get the
following message:

The admin.login_jsp servlet is not available

There's no jsp files under the admin directory.
What's wrong ?

Many thanks

Best Regards



Jean-Louis Matéo



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



Réf. : RE: Administration Tomcat

2007-04-20 Thread jean-louis . mateo

Hello Barry,


i did just the way David said to me and it's OK ; the user and password I
gave were: admin , admin. It's the default values.


Bye






  
  Propes, Barry L 
  
  [EMAIL PROTECTED] Pour :   Tomcat Users List 
users@tomcat.apache.org  
  igroup.com cc :  
  
  Objet :  RE: Administration 
Tomcat  
  20/04/2007 18:16  
  
  Veuillez répondre à   
  
  Tomcat Users List   
  

  

  



I've never been able to get this to work. I believe I've got the roles and
tomcat-users xml file properly configured, but I always get invalid
password.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 10:48 AM
To: users@tomcat.apache.org
Subject: Administration Tomcat
Importance: High


Tomcat : 5.5.23
Java  :


Hi everybody,

i've downloaded the apache-tomcat-5.5.23-admin.zip file to administrate my
tomcat server.
Now i've an admin directory under %CATALINA-HOME%/webapps.
But when I try to access it through http://localhost:8080/admin I get the
following message:

The admin.login_jsp servlet is not available

There's no jsp files under the admin directory.
What's wrong ?

Many thanks

Best Regards



Jean-Louis Matéo



-
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: Réf. : RE: Administration Tomcat

2007-04-20 Thread Propes, Barry L
ok, thanks.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 11:19 AM
To: Tomcat Users List
Subject: Réf. : RE: Administration Tomcat



Hello Barry,


i did just the way David said to me and it's OK ; the user and password I
gave were: admin , admin. It's the default values.


Bye






  
  Propes, Barry L 
  
  [EMAIL PROTECTED] Pour :   Tomcat Users List 
users@tomcat.apache.org  
  igroup.com cc :  
  
  Objet :  RE: Administration 
Tomcat  
  20/04/2007 18:16  
  
  Veuillez répondre à   
  
  Tomcat Users List   
  

  

  



I've never been able to get this to work. I believe I've got the roles and
tomcat-users xml file properly configured, but I always get invalid
password.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 10:48 AM
To: users@tomcat.apache.org
Subject: Administration Tomcat
Importance: High


Tomcat : 5.5.23
Java  :


Hi everybody,

i've downloaded the apache-tomcat-5.5.23-admin.zip file to administrate my
tomcat server.
Now i've an admin directory under %CATALINA-HOME%/webapps.
But when I try to access it through http://localhost:8080/admin I get the
following message:

The admin.login_jsp servlet is not available

There's no jsp files under the admin directory.
What's wrong ?

Many thanks

Best Regards



Jean-Louis Matéo



-
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: Administration Tomcat

2007-04-20 Thread David Short
I just got it to work.  

Here's what you need to do:

1) Unzip the file to a temporary directory (temp_dir).
2) Copy the %temp_dir%\conf\catalina\localhost\admin.xml file to
%tomcat_home%\conf\Catalina\localhost directory.
3) Copy the %temp_dir%\server\webapps\admin directory to the
%tomcat_home%\server\webapps directory.  Notice the server\webapps not
\webapps.
4) Restart Tomcat and it should work.

-Original Message-
From: Propes, Barry L [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 20, 2007 9:17 AM
To: Tomcat Users List
Subject: RE: Administration Tomcat

I've never been able to get this to work. I believe I've got the roles and
tomcat-users xml file properly configured, but I always get invalid
password.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 10:48 AM
To: users@tomcat.apache.org
Subject: Administration Tomcat
Importance: High


Tomcat : 5.5.23
Java  :


Hi everybody,

i've downloaded the apache-tomcat-5.5.23-admin.zip file to administrate my
tomcat server.
Now i've an admin directory under %CATALINA-HOME%/webapps.
But when I try to access it through http://localhost:8080/admin I get the
following message:

The admin.login_jsp servlet is not available

There's no jsp files under the admin directory.
What's wrong ?

Many thanks

Best Regards



Jean-Louis Matéo



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



Réf. : RE: Administration Tomcat

2007-04-20 Thread jean-louis . mateo

many thanks

Best Regards






   
  David Short 
   
  [EMAIL PROTECTED] Pour :   'Tomcat Users List' 
users@tomcat.apache.org
  om  cc : 
   
   Objet :  RE: Administration 
Tomcat  
  20/04/2007 18:21  
   
  Veuillez  
   
  répondre à
   
  Tomcat Users 
   
  List 
   

   

   



I just got it to work.

Here's what you need to do:

1) Unzip the file to a temporary directory (temp_dir).
2) Copy the %temp_dir%\conf\catalina\localhost\admin.xml file to
%tomcat_home%\conf\Catalina\localhost directory.
3) Copy the %temp_dir%\server\webapps\admin directory to the
%tomcat_home%\server\webapps directory.  Notice the server\webapps not
\webapps.
4) Restart Tomcat and it should work.

-Original Message-
From: Propes, Barry L [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 9:17 AM
To: Tomcat Users List
Subject: RE: Administration Tomcat

I've never been able to get this to work. I believe I've got the roles and
tomcat-users xml file properly configured, but I always get invalid
password.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 10:48 AM
To: users@tomcat.apache.org
Subject: Administration Tomcat
Importance: High


Tomcat : 5.5.23
Java  :


Hi everybody,

i've downloaded the apache-tomcat-5.5.23-admin.zip file to administrate my
tomcat server.
Now i've an admin directory under %CATALINA-HOME%/webapps.
But when I try to access it through http://localhost:8080/admin I get the
following message:

The admin.login_jsp servlet is not available

There's no jsp files under the admin directory.
What's wrong ?

Many thanks

Best Regards



Jean-Louis Matéo



-
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: Administration Tomcat

2007-04-20 Thread Martin Gainty

Good Afternoon David--

Ive implemented admin package at least a dozen times so having a script to 
perform this is certainly helpful..Thanks for suggesting a solution to 
automate this common procedure..


Thanks again,
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: David Short [EMAIL PROTECTED]

To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Friday, April 20, 2007 12:21 PM
Subject: RE: Administration Tomcat


I just got it to work.

Here's what you need to do:

1) Unzip the file to a temporary directory (temp_dir).
2) Copy the %temp_dir%\conf\catalina\localhost\admin.xml file to
%tomcat_home%\conf\Catalina\localhost directory.
3) Copy the %temp_dir%\server\webapps\admin directory to the
%tomcat_home%\server\webapps directory.  Notice the server\webapps not
\webapps.
4) Restart Tomcat and it should work.

-Original Message-
From: Propes, Barry L [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 9:17 AM
To: Tomcat Users List
Subject: RE: Administration Tomcat

I've never been able to get this to work. I believe I've got the roles and
tomcat-users xml file properly configured, but I always get invalid
password.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 10:48 AM
To: users@tomcat.apache.org
Subject: Administration Tomcat
Importance: High


Tomcat : 5.5.23
Java  :


Hi everybody,

i've downloaded the apache-tomcat-5.5.23-admin.zip file to administrate my
tomcat server.
Now i've an admin directory under %CATALINA-HOME%/webapps.
But when I try to access it through http://localhost:8080/admin I get the
following message:

The admin.login_jsp servlet is not available

There's no jsp files under the admin directory.
What's wrong ?

Many thanks

Best Regards



Jean-Louis Matéo



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



java.util.ConcurrentModificationException

2007-04-20 Thread Jayson Enriquez
In regards to 

Bug#: 

29056 http://issues.apache.org/bugzilla/show_bug.cgi?id=29056  

 

WARNING: Error registering contexts

java.util.ConcurrentModificationException

at
java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)

at java.util.HashMap$EntryIterator.next(HashMap.java:824)

at java.util.HashMap.putAllForCreate(HashMap.java:424)

at java.util.HashMap.clone(HashMap.java:656)

at
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)

at
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:160
3)

at
mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)

at
mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)

at
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)

at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:153
7)

at
org.apache.catalina.core.StandardService.start(StandardService.java:489)

at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)

at
org.apache.catalina.startup.Catalina.start(Catalina.java:556)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

 

It doesn't show me how to extract jmxri.jar in a Windows environment.
Can anyone direct me to how I can extract this file over the old one? I
occasionally, receive an error message from my stdout.log file and my
https site is down.

 

I have already extracted the jmri file, I just don't know where to put
it.

 

Your assistance will be appreciated.

 

Thank you

 

 

Thank you



 

Jayson Enriquez CHDP

 



Re: problems configuring mod_jk

2007-04-20 Thread Mladen Turk

Faheem Mitha wrote:


Ok, thanks for your help. This is the portion of the log generated by 
mod_jk, which I presume is what is relevant. The formatting is not 
optimal, but I can try to wrap it if desired.




The server wide directives:
JkWorkersFile, etc must not be defined inside VirtualHost
Put those in root.

Regards,
Mladen.

-
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: java.util.ConcurrentModificationException

2007-04-20 Thread Robert Harper
Try jar -h at the command line or WinZip will know how to extract it. You
should have access to jar.exe if you installed a JDK.

Robert S. Harper
Senior Engineer
Information Access Technology, Inc.
1100 East 6600 South, Suite 300
Salt Lake City Utah USA 84121-7411
(801)265-8800 Ext. 255 
FAX (801)265-8880
 

This e-mail is intended only for the addressee and may contain confidential
and/or privileged information. Any review, retransmission, or action taken
upon this information by persons other than the intended recipient is
prohibited by law. If you received this communication in error, please
contact us immediately at 801-265-8800. Although this e-mail and any
attachments are believed to be free of any virus or other defect, it is the
responsibility of the recipient to ensure that anything received or opened
is virus free. No responsibility is accepted by IAT for any loss or damage
in the event that such a virus or defect exists.
-Original Message-
From: Jayson Enriquez [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 20, 2007 11:09 AM
To: users@tomcat.apache.org
Subject: java.util.ConcurrentModificationException

In regards to 

Bug#: 

29056 http://issues.apache.org/bugzilla/show_bug.cgi?id=29056  

 

WARNING: Error registering contexts

java.util.ConcurrentModificationException

at
java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)

at java.util.HashMap$EntryIterator.next(HashMap.java:824)

at java.util.HashMap.putAllForCreate(HashMap.java:424)

at java.util.HashMap.clone(HashMap.java:656)

at
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)

at
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:160
3)

at
mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)

at
mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)

at
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)

at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:153
7)

at
org.apache.catalina.core.StandardService.start(StandardService.java:489)

at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)

at
org.apache.catalina.startup.Catalina.start(Catalina.java:556)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

 

It doesn't show me how to extract jmxri.jar in a Windows environment.
Can anyone direct me to how I can extract this file over the old one? I
occasionally, receive an error message from my stdout.log file and my
https site is down.

 

I have already extracted the jmri file, I just don't know where to put
it.

 

Your assistance will be appreciated.

 

Thank you

 

 

Thank you



 

Jayson Enriquez CHDP

 




-
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: java.util.ConcurrentModificationException

2007-04-20 Thread Jayson Enriquez

I have already extracted the files. Now, where do I place these files
(folders)?

-Original Message-
From: Robert Harper [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 20, 2007 10:16 AM
To: 'Tomcat Users List'
Subject: RE: java.util.ConcurrentModificationException

Try jar -h at the command line or WinZip will know how to extract it.
You
should have access to jar.exe if you installed a JDK.

Robert S. Harper
Senior Engineer
Information Access Technology, Inc.
1100 East 6600 South, Suite 300
Salt Lake City Utah USA 84121-7411
(801)265-8800 Ext. 255 
FAX (801)265-8880
 

This e-mail is intended only for the addressee and may contain
confidential
and/or privileged information. Any review, retransmission, or action
taken
upon this information by persons other than the intended recipient is
prohibited by law. If you received this communication in error, please
contact us immediately at 801-265-8800. Although this e-mail and any
attachments are believed to be free of any virus or other defect, it is
the
responsibility of the recipient to ensure that anything received or
opened
is virus free. No responsibility is accepted by IAT for any loss or
damage
in the event that such a virus or defect exists.
-Original Message-
From: Jayson Enriquez [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 20, 2007 11:09 AM
To: users@tomcat.apache.org
Subject: java.util.ConcurrentModificationException

In regards to 

Bug#: 

29056 http://issues.apache.org/bugzilla/show_bug.cgi?id=29056  

 

WARNING: Error registering contexts

java.util.ConcurrentModificationException

at
java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)

at java.util.HashMap$EntryIterator.next(HashMap.java:824)

at java.util.HashMap.putAllForCreate(HashMap.java:424)

at java.util.HashMap.clone(HashMap.java:656)

at
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)

at
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:160
3)

at
mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)

at
mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)

at
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)

at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:153
7)

at
org.apache.catalina.core.StandardService.start(StandardService.java:489)

at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)

at
org.apache.catalina.startup.Catalina.start(Catalina.java:556)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

 

It doesn't show me how to extract jmxri.jar in a Windows environment.
Can anyone direct me to how I can extract this file over the old one? I
occasionally, receive an error message from my stdout.log file and my
https site is down.

 

I have already extracted the jmri file, I just don't know where to put
it.

 

Your assistance will be appreciated.

 

Thank you

 

 

Thank you



 

Jayson Enriquez CHDP

 




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



Using a DataSource from Tomcat to DB2.

2007-04-20 Thread Fargusson.Alan
One more try at this.  I have been working on getting a DataSource to work with 
DB2.  At this point I am using a DataSource I configured with the admin web 
page.

I have a new question.  I found that I am getting an inconsistent result.  I 
get one of two results, without changing anything.  One result is a No 
suitable driver, and the other is a java.lang.NullPointerException.  The 
null pointer exception happens in the DB2Driver, which looks like Tomcat found 
the driver.  But the first case looks like Tomcat didn't find the driver.  This 
leads me to believe that there is a bug in Tomcat.  Does that seem like a 
logical conclusion?


From catalina.out:

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '
' for connect URL 'null'
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:780)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:540)
at DSServlet.connect(DSServlet.java:108)
at DSServlet.doGet(DSServlet.java:38)
...

Then one of the following:

Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:773)

Caused by: java.lang.NullPointerException
at java.util.StringTokenizer.init(StringTokenizer.java:146)
at com.ibm.db2.jcc.DB2Driver.acceptsURL(DB2Driver.java:248)
at java.sql.DriverManager.getDriver(DriverManager.java:232)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:773)

-
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't create jdbc resource in context.xml

2007-04-20 Thread Rashmi Rubdi

Hello Glen,

What is the version of Tomcat? I'm asking for the version because the
JNDI Datasource configuration is different for different version of
Tomcat. The one for 4.x is different from the one for 6.x for example.

-Rashmi

-
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: java.util.ConcurrentModificationException

2007-04-20 Thread Robert Harper
[quote]
Download the news mx4j 2.1.1 http://mx4j.sourceforge.net/
and copy mx4j.jar to your catalina.home/bin. Then delete existing
jmx.jar and move mx4j.jar to jmx.jar.
[/quote]

In my case Catalina.home = C:\Program Files\Apache\Tomcat5.0. So I would
apply the patch to C:\Program Files\Apache\Tomcat5.0\bin

If you have your environment set up, you can do this from the command line
by

Copy [source_folder]\mx4j.jar %catalina_home%\bin\jmx.jar.

Robert S. Harper
Senior Engineer
Information Access Technology, Inc.
1100 East 6600 South, Suite 300
Salt Lake City Utah USA 84121-7411
(801)265-8800 Ext. 255 
FAX (801)265-8880
 

This e-mail is intended only for the addressee and may contain confidential
and/or privileged information. Any review, retransmission, or action taken
upon this information by persons other than the intended recipient is
prohibited by law. If you received this communication in error, please
contact us immediately at 801-265-8800. Although this e-mail and any
attachments are believed to be free of any virus or other defect, it is the
responsibility of the recipient to ensure that anything received or opened
is virus free. No responsibility is accepted by IAT for any loss or damage
in the event that such a virus or defect exists.

-Original Message-
From: Jayson Enriquez [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 20, 2007 11:20 AM
To: Tomcat Users List
Subject: RE: java.util.ConcurrentModificationException


I have already extracted the files. Now, where do I place these files
(folders)?

-Original Message-
From: Robert Harper [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 20, 2007 10:16 AM
To: 'Tomcat Users List'
Subject: RE: java.util.ConcurrentModificationException

Try jar -h at the command line or WinZip will know how to extract it.
You
should have access to jar.exe if you installed a JDK.

Robert S. Harper
Senior Engineer
Information Access Technology, Inc.
1100 East 6600 South, Suite 300
Salt Lake City Utah USA 84121-7411
(801)265-8800 Ext. 255 
FAX (801)265-8880
 

This e-mail is intended only for the addressee and may contain
confidential
and/or privileged information. Any review, retransmission, or action
taken
upon this information by persons other than the intended recipient is
prohibited by law. If you received this communication in error, please
contact us immediately at 801-265-8800. Although this e-mail and any
attachments are believed to be free of any virus or other defect, it is
the
responsibility of the recipient to ensure that anything received or
opened
is virus free. No responsibility is accepted by IAT for any loss or
damage
in the event that such a virus or defect exists.
-Original Message-
From: Jayson Enriquez [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 20, 2007 11:09 AM
To: users@tomcat.apache.org
Subject: java.util.ConcurrentModificationException

In regards to 

Bug#: 

29056 http://issues.apache.org/bugzilla/show_bug.cgi?id=29056  

 

WARNING: Error registering contexts

java.util.ConcurrentModificationException

at
java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)

at java.util.HashMap$EntryIterator.next(HashMap.java:824)

at java.util.HashMap.putAllForCreate(HashMap.java:424)

at java.util.HashMap.clone(HashMap.java:656)

at
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)

at
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:160
3)

at
mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)

at
mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)

at
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)

at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:153
7)

at
org.apache.catalina.core.StandardService.start(StandardService.java:489)

at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)

at
org.apache.catalina.startup.Catalina.start(Catalina.java:556)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

 

It doesn't show me how to extract jmxri.jar in a Windows environment.
Can anyone direct me to how I can extract this file over the old one? I
occasionally, receive an error message from my stdout.log file and my
https site is down.

 

I have already extracted the jmri file, I just don't know where to put
it.

 

Your assistance will be appreciated.

 

Thank you

 

 

Thank you



 

Jayson Enriquez CHDP

 




-
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 configuring mod_jk

2007-04-20 Thread Faheem Mitha



On Fri, 20 Apr 2007, Mladen Turk wrote:


Faheem Mitha wrote:


Ok, thanks for your help. This is the portion of the log generated by 
mod_jk, which I presume is what is relevant. The formatting is not optimal, 
but I can try to wrap it if desired.




The server wide directives:
JkWorkersFile, etc must not be defined inside VirtualHost
Put those in root.


Hi,

The relevant section of the apache config file follows. As you can see, 
everything in currently inside VirtualHost.


What directives can be safely left inside VirtualHost?

The documentation clearly states that

You can use the JkMount directive at the top level or inside 
VirtualHost sections of your httpd.conf file. Does everything else have 
to be outside?


Thanks for pointing this out. It is so easy to miss the obvious.

  Faheem.

**

VirtualHost 152.3.172.60:443
ServerName dulcicore.dulci.org
# Sample mod_jk configuration
# for Apache 2
#
# for all commands/options available see the manual
# provided in libapache-mod-jk-doc package.

# The location where mod_jk will find the workers definitions

JkWorkersFile   /etc/libapache2-mod-jk/workers.properties

# The location where mod_jk is going to place its log file

JkLogFile   /var/log/apache2/mod_jk.log

# The log level:
# - info log will contain standard mod_jk activity (default).
# - warn log will contain non fatal error reports.
# - error log will contain also error reports.
# - debug log will contain all information on mod_jk activity
# - trace log will contain all tracing information on mod_jk activity

JkLogLevel debug

# Assign specific URLs to Tomcat. In general the structure of a
# JkMount directive is: JkMount [URL prefix] [Worker name]

# send all requests ending in .jsp to ajp13_worker
JkMount /* ajp13_worker
#JkMount /* ajp13_worker
# send all requests ending /servlet to ajp13_worker
#JkMount /*/servlet/ ajp13_worker

# JkUnmount directive acts as an opposite to JkMount and blocks access
# to a particular URL. The purpose is to be able to filter out the
# particular content types from mounted context.

# do not send requests ending with .gif to ajp13_worker
#JkUnMount /servlet/*.gif ajp13_worker


# JkMount / JkUnMount directives can also be used inside VirtualHost
# sections of your httpd.conf file.
/VirtualHost


-
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: java.util.ConcurrentModificationException

2007-04-20 Thread Jayson Enriquez
Thanks Robert. I'll give that a try.

-Original Message-
From: Robert Harper [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 20, 2007 10:40 AM
To: 'Tomcat Users List'
Subject: RE: java.util.ConcurrentModificationException

[quote]
Download the news mx4j 2.1.1 http://mx4j.sourceforge.net/
and copy mx4j.jar to your catalina.home/bin. Then delete existing
jmx.jar and move mx4j.jar to jmx.jar.
[/quote]

In my case Catalina.home = C:\Program Files\Apache\Tomcat5.0. So I would
apply the patch to C:\Program Files\Apache\Tomcat5.0\bin

If you have your environment set up, you can do this from the command
line
by

Copy [source_folder]\mx4j.jar %catalina_home%\bin\jmx.jar.

Robert S. Harper
Senior Engineer
Information Access Technology, Inc.
1100 East 6600 South, Suite 300
Salt Lake City Utah USA 84121-7411
(801)265-8800 Ext. 255 
FAX (801)265-8880
 

This e-mail is intended only for the addressee and may contain
confidential
and/or privileged information. Any review, retransmission, or action
taken
upon this information by persons other than the intended recipient is
prohibited by law. If you received this communication in error, please
contact us immediately at 801-265-8800. Although this e-mail and any
attachments are believed to be free of any virus or other defect, it is
the
responsibility of the recipient to ensure that anything received or
opened
is virus free. No responsibility is accepted by IAT for any loss or
damage
in the event that such a virus or defect exists.

-Original Message-
From: Jayson Enriquez [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 20, 2007 11:20 AM
To: Tomcat Users List
Subject: RE: java.util.ConcurrentModificationException


I have already extracted the files. Now, where do I place these files
(folders)?

-Original Message-
From: Robert Harper [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 20, 2007 10:16 AM
To: 'Tomcat Users List'
Subject: RE: java.util.ConcurrentModificationException

Try jar -h at the command line or WinZip will know how to extract it.
You
should have access to jar.exe if you installed a JDK.

Robert S. Harper
Senior Engineer
Information Access Technology, Inc.
1100 East 6600 South, Suite 300
Salt Lake City Utah USA 84121-7411
(801)265-8800 Ext. 255 
FAX (801)265-8880
 

This e-mail is intended only for the addressee and may contain
confidential
and/or privileged information. Any review, retransmission, or action
taken
upon this information by persons other than the intended recipient is
prohibited by law. If you received this communication in error, please
contact us immediately at 801-265-8800. Although this e-mail and any
attachments are believed to be free of any virus or other defect, it is
the
responsibility of the recipient to ensure that anything received or
opened
is virus free. No responsibility is accepted by IAT for any loss or
damage
in the event that such a virus or defect exists.
-Original Message-
From: Jayson Enriquez [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 20, 2007 11:09 AM
To: users@tomcat.apache.org
Subject: java.util.ConcurrentModificationException

In regards to 

Bug#: 

29056 http://issues.apache.org/bugzilla/show_bug.cgi?id=29056  

 

WARNING: Error registering contexts

java.util.ConcurrentModificationException

at
java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)

at java.util.HashMap$EntryIterator.next(HashMap.java:824)

at java.util.HashMap.putAllForCreate(HashMap.java:424)

at java.util.HashMap.clone(HashMap.java:656)

at
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)

at
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:160
3)

at
mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)

at
mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)

at
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)

at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:153
7)

at
org.apache.catalina.core.StandardService.start(StandardService.java:489)

at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)

at
org.apache.catalina.startup.Catalina.start(Catalina.java:556)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

 

It doesn't show me how to extract jmxri.jar in a Windows environment.
Can anyone direct me to how I can extract this file over the old one? I
occasionally, receive an error message from my stdout.log file and my
https site is down.

 

I have already extracted the jmri file, I just don't know where to put
it.

 

Your assistance will be appreciated.

 

Thank you

 

 

Thank you



 

Jayson Enriquez CHDP

 





Instantiating jsp custom tags outside the tag scope itself ?

2007-04-20 Thread Laurent Perez

Hi

I'm trying to understand if I'm doing something inherently wrong in my
current code, which is working, but which may give me troubles later
on :

I have a custom jsp tag, and instead of writing its rendering logic
inside its doStartTag/doEndTag methods (I'm using JSP 1.2, not 2.x), I
let its doStartTag/doEndTag methods delegate to another class, a
dedicated renderer (I'm passing it the PageContext object, too).

This renderer then instantiantes new tags, like Tag tag = new Tag();
tag.setPageContext(ctx); (...) tag.doStartTag; tag.doEndTag() (...),
basically I have a chain of renderers.

It works, but is there something very, very wrong with this approach ?
My tag usage within my renderer class follows the Tag lifecycle, i.e I
always call tag.recycle(); at the end.

Thanks for any input !
laurent


--
a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com
- Mobile world, technology and more/a

-
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 configuring mod_jk

2007-04-20 Thread Mladen Turk

Faheem Mitha wrote:



On Fri, 20 Apr 2007, Mladen Turk wrote:


Faheem Mitha wrote:


Ok, thanks for your help. This is the portion of the log generated by 
mod_jk, which I presume is what is relevant. The formatting is not 
optimal, but I can try to wrap it if desired.




The server wide directives:
JkWorkersFile, etc must not be defined inside VirtualHost
Put those in root.


Hi,

The relevant section of the apache config file follows. As you can see, 
everything in currently inside VirtualHost.


What directives can be safely left inside VirtualHost?



So, have you tried to put the JkWorkersFile outside
the vhost?

Regards,
Mladen.

-
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: performance with apache and tomcat

2007-04-20 Thread Gregor Schneider

It always depends on...

if the focus is on the servlets (meaning around 70% of the requests
are satisfied by your servlets), maybe you want to give a
tomcat-only-setup a try.
however, if the focus is on static / php / perl-content an less than
50% of the requests are satisfied by servlets, i'd put apache httpd in
front and connect to tomcat with mod_jk.

there was one security-issue with mod_jk, however, that was one in the
past few years i know of and it was fixed. however, you could also use
mod_proxy in conjunction with mod_proxy_ajp to connect to tomcat,
however, i'd do it the apache way with mod_jk2.

again, serving static / php / perl-content, for performance-reasons
apache httpd should be your choice (or maybe squid, but that's a
different story)

we are running two hardware-loadbalanced servers each having
apache-httpd / mod_jk2 / tomcat 55-setup, and it runs like charm.

cheers

greg
--
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 configuring mod_jk

2007-04-20 Thread Faheem Mitha



On Fri, 20 Apr 2007, Mladen Turk wrote:


So, have you tried to put the JkWorkersFile outside the vhost?


I've moved everything outside except the JkMount stuff. The worker is now 
seen, and I'm now seeing a different error message, so that's progress. 
Thanks very much for your help.


 Faheem.

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



Connecting Tomcat 6.0.10 with Apache 2.2.4 using mod_jk-2.2.4

2007-04-20 Thread Khalil
Hi,

I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using mod_jk-2.2.4. 
The traffic seems to be flowing correctly to Tomcat on port 8080 from apache 
through the connector. Tomcat and Apache reside on the same machine.

I want to force apache to drop prot 8080. Since we're behined a firewall,  port 
8080 is closed and also will be confusing to the users. 

I have read and re-read the docs on http://tomcat.apache.org/connectors-doc and 
googled for few hours now but I am just unable to do it. I must be missing 
something?

Here is what I have done:

I have placed these lines in apache's httpd.conf:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile C:\Program Files\Apache Software 
Foundation\Apache2.2\conf\workers.properties
JkLogFile C:\Program Files\Apache Software 
Foundation\Apache2.2\logs\mod_jk.log
JkLogLevel info
VirtualHost ip_address:80
JkMount /* loadbalancer
JkMount /match2020 loadbalancer
JkMount /match2020/* loadbalancer
/VirtualHost

Workers.properties file looks like this:

worker.list=loadbalancer
# First tomcat server
# 
worker.tomcat1.port=8009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.sticky_session=1
worker.loadbalancer.balance_workers=tomcat1
#worker.loadbalancer.balance_workers=tomcat2, tomcat4, tomcat1, tomcat3

I added the following connector to server.xml in Tomcat

Connector port=8009 protocol=AJP/1.3 redirectPort=8443 
enableLookups=true/

Thanks

Ken

RE: performance with apache and tomcat

2007-04-20 Thread Caldarale, Charles R
 From: Gregor Schneider [mailto:[EMAIL PROTECTED] 
 Subject: Re: performance with apache and tomcat
 
 i'd do it the apache way with mod_jk2.
 
 we are running two hardware-loadbalanced servers each having
 apache-httpd / mod_jk2 / tomcat 55-setup, and it runs like charm.

You do realize that mod_jk2 has not been supported for nigh on two years
now, don't you?  Pretty much everything mod_jk2 did has been backported
into recent versions of mod_jk.

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



Apache and Tomcat CPU Usage 100% with mod_jk

2007-04-20 Thread Joe L
I've been searching all over the internet for similar problems.  I'm running 
this on Windows XP to start.
 It's a Pentium 4 3.6 GHz with 1 GB RAM.  I'm using Apache 2.2.4, Tomcat 
5.5.20, and mod_jk 1.2.21.

Here is a portion of my httpd.conf (If you need more to answer my question 
please ask):
#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.2/ for detailed information.
# In particular, see 
# http://httpd.apache.org/docs/2.2/mod/directives.html
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with / (or drive:/ for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with /, the value of ServerRoot is prepended -- so logs/foo.log
# with ServerRoot set to C:/Program Files/Apache Software 
Foundation/Apache2.2 will be interpreted by the
# server as C:/Program Files/Apache Software 
Foundation/Apache2.2/logs/foo.log.
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., c:/apache instead of c:\apache).
# If a drive letter is omitted, the drive on which Apache.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths, however, to avoid
# confusion.
#

# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum  number of requests a server process serves
ThreadsPerChild 250
MaxRequestsPerChild  0

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot C:/Program Files/Apache Software Foundation/Apache2.2

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the VirtualHost
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so

which version of isapi_redirect.dll to use

2007-04-20 Thread Swaroop George

I have a Windows 2003 machine running IIS 6.0. I need to be able to
reverse proxy this to another machine running Tomcat. Which version of
isapi_redirect.dll should I use?

-
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: Connecting Tomcat 6.0.10 with Apache 2.2.4 using mod_jk-2.2.4

2007-04-20 Thread Mladen Turk

Khalil wrote:

Hi,

I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using mod_jk-2.2.4.
I have read and re-read the docs on http://tomcat.apache.org/connectors-doc and 
googled


If you did all that you claim you would read from:
http://tomcat.apache.org/connectors-doc/news/20041100.html
that JK2 is unsupported from year 2004.

BTW, how did you load mod_jk-2.2.4 in apache 2.2.4 without making
apache crash? I must admit I never try that, but hey, those binaries
were out there before Apache 2.2 was created ;)



LoadModule jk_module modules/mod_jk.so
JkWorkersFile C:\Program Files\Apache Software 
Foundation\Apache2.2\conf\workers.properties


Those are directives for mod_jk 1.2.x
Download the latest stable version from:
http://tomcat.apache.org/download-connectors.cgi

Regards,
Mladen.

-
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: which version of isapi_redirect.dll to use

2007-04-20 Thread Mladen Turk

Swaroop George wrote:

I have a Windows 2003 machine running IIS 6.0. I need to be able to
reverse proxy this to another machine running Tomcat. Which version of
isapi_redirect.dll should I use?


Stable version of course ;)
http://tomcat.apache.org/download-connectors.cgi

Regards,
Mladen

-
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: Connecting Tomcat 6.0.10 with Apache 2.2.4 using mod_jk-2.2.4

2007-04-20 Thread Khalil
Sorry for the confusion. I meant to say JK 1.2.22 which is packaged in a 
file called mod_jk-apache-2.2.4.so  which I downloaded form 
http://apache.osuosl.org/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.22/


My problem is I want to drop 8080 form the url. How do I do that?

- Original Message - 
From: Mladen Turk [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, April 20, 2007 2:17 PM
Subject: Re: Connecting Tomcat 6.0.10 with Apache 2.2.4 using mod_jk-2.2.4



Khalil wrote:

Hi,

I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using 
mod_jk-2.2.4.
I have read and re-read the docs on 
http://tomcat.apache.org/connectors-doc and googled


If you did all that you claim you would read from:
http://tomcat.apache.org/connectors-doc/news/20041100.html
that JK2 is unsupported from year 2004.

BTW, how did you load mod_jk-2.2.4 in apache 2.2.4 without making
apache crash? I must admit I never try that, but hey, those binaries
were out there before Apache 2.2 was created ;)



LoadModule jk_module modules/mod_jk.so
JkWorkersFile C:\Program Files\Apache Software 
Foundation\Apache2.2\conf\workers.properties


Those are directives for mod_jk 1.2.x
Download the latest stable version from:
http://tomcat.apache.org/download-connectors.cgi

Regards,
Mladen.

-
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: performance with apache and tomcat

2007-04-20 Thread Gregor Schneider

argl - sorry, chuck, you're right: the 2 just dropped from my
fingers, i'm talking about mod_jk (this one:
http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html)

thanks for the correction!

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



Force Apache to drop port 8080 when forwarding to Tomcat 6.0.10 using mod_jk-1.2.22

2007-04-20 Thread Khalil
Hi,

I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using mod_jk-1.2.22. 
The traffic seems to be flowing correctly to Tomcat on port 8080 from apache 
through the connector. Tomcat and Apache reside on the same machine.

I want to force apache to drop prot 8080 form the url when it forwards to 
tomcat since we're behined a firewall and port 8080 is closed.

For example, when I type in the browser: http://somehost/match2020/  apache 
forwadrs to tomcat and the url is changed to http://somhost:8080/match2020/. I 
want to get rid of 8080 form the url and just be on port 80.
. 

I have read and re-read the docs on http://tomcat.apache.org/connectors-doc and 
googled for few hours now but I am just unable to do it. I must be missing 
something?

Here is what I have done:

I have placed these lines in apache's httpd.conf:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile C:\Program Files\Apache Software 
Foundation\Apache2.2\conf\workers.properties
JkLogFile C:\Program Files\Apache Software 
Foundation\Apache2.2\logs\mod_jk.log
JkLogLevel info
VirtualHost ip_address:80
JkMount /* loadbalancer
JkMount /match2020 loadbalancer
JkMount /match2020/* loadbalancer
/VirtualHost

Workers.properties file looks like this:

worker.list=loadbalancer
# First tomcat server
# 
worker.tomcat1.port=8009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.sticky_session=1
worker.loadbalancer.balance_workers=tomcat1
#worker.loadbalancer.balance_workers=tomcat2, tomcat4, tomcat1, tomcat3

I added the following connector to server.xml in Tomcat

Connector port=8009 protocol=AJP/1.3 redirectPort=8443 
enableLookups=true/

Regards
Khalil

Tomcat + jk + Apache httpd on Windows 2003 Very Slow

2007-04-20 Thread Avi Flax

Hi, I'd appreciate some tips here! This is my first Tomcat install,
and I'm new to Java in general.

My setup:

Windows Server 2003, Web Edition, Service Pack 2
32-bit X86 CPU, 2 GB RAM
Apache httpd 2.0.59
mod_jk 1.2.22 for Win32
Apache Tomcat/5.5.23
Sun JVM 1.5.0_09-b01

My problem is that requests which run through mod_jk to httpd respond
very slowly: about 10 seconds to load the Tomcat Status page. If I
access the page directly from Tomcat at port 8080, it's less than a
second.

I've tried lots of different settings, like switching between
JkAutoAlias and JkMount, different JkLogLevels, and other things. I
feel that I must be missing something.

I tried looking at the various log files, and the only thing that
caught my eye was in localhost.log:

Apr 20, 2007 3:55:15 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Apr 20, 2007 3:55:15 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Apr 20, 2007 3:55:15 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Apr 20, 2007 3:55:15 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Apr 20, 2007 3:55:20 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
Apr 20, 2007 3:55:21 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 20, 2007 3:55:21 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Apr 20, 2007 3:55:21 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 20, 2007 3:55:21 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()

It looks to me that the web app might be initializing for each request.

If anyone has any ideas, or troubleshooting tips, it'd be greatly appreciated.

Thanks!

--
Avi Flax
Web Services Architect
arc90 | http://arc90.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 + jk + Apache httpd on Windows 2003 Very Slow

2007-04-20 Thread Khalil

Avi,

Take a look at this article 
http://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_jk


Regards,
Khalil

- Original Message - 
From: Avi Flax [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Friday, April 20, 2007 3:23 PM
Subject: Tomcat + jk + Apache httpd on Windows 2003 Very Slow



Hi, I'd appreciate some tips here! This is my first Tomcat install,
and I'm new to Java in general.

My setup:

Windows Server 2003, Web Edition, Service Pack 2
32-bit X86 CPU, 2 GB RAM
Apache httpd 2.0.59
mod_jk 1.2.22 for Win32
Apache Tomcat/5.5.23
Sun JVM 1.5.0_09-b01

My problem is that requests which run through mod_jk to httpd respond
very slowly: about 10 seconds to load the Tomcat Status page. If I
access the page directly from Tomcat at port 8080, it's less than a
second.

I've tried lots of different settings, like switching between
JkAutoAlias and JkMount, different JkLogLevels, and other things. I
feel that I must be missing something.

I tried looking at the various log files, and the only thing that
caught my eye was in localhost.log:

Apr 20, 2007 3:55:15 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Apr 20, 2007 3:55:15 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Apr 20, 2007 3:55:15 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Apr 20, 2007 3:55:15 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Apr 20, 2007 3:55:20 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
Apr 20, 2007 3:55:21 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 20, 2007 3:55:21 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Apr 20, 2007 3:55:21 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 20, 2007 3:55:21 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()

It looks to me that the web app might be initializing for each request.

If anyone has any ideas, or troubleshooting tips, it'd be greatly 
appreciated.


Thanks!

--
Avi Flax
Web Services Architect
arc90 | http://arc90.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]




-
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 + jk + Apache httpd on Windows 2003 Very Slow

2007-04-20 Thread Avi Flax

Thanks Khalil. I've just read through the article, and it looks good.
But I'm pretty sure that my setup matches the one described there, as
far as I can tell. And it doesn't say anything about way slow
performance with JK. I think I may need some troubleshooting tips.

Thanks!
Avi

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



Session across multiple hosts?

2007-04-20 Thread Jeremy Cowgar

Greetings!

I have domain.com and my app uses hosts under that domain, like  
abc.domain.com, def.domain.com... When the user logs in, the session  
is valid only on domain.com... How can I make that session also valid  
under the other hostnames?


Thanks,

Jeremy


-
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: Apache and Tomcat CPU Usage 100% with mod_jk

2007-04-20 Thread Joe L
I found the solution here: 
http://issues.apache.org/bugzilla/show_bug.cgi?id=40909

- Original Message 
From: Joe L [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Friday, April 20, 2007 3:08:07 PM
Subject: Apache and Tomcat CPU Usage 100% with mod_jk

I've been searching all over the internet for similar problems.  I'm running 
this on Windows XP to start.
 It's a Pentium 4 3.6 GHz with 1 GB RAM.  I'm using Apache 2.2.4, Tomcat 
5.5.20, and mod_jk 1.2.21.

Here is a portion of my httpd.conf (If you need more to answer my question 
please ask):
#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.2/ for detailed information.
# In particular, see 
# http://httpd.apache.org/docs/2.2/mod/directives.html
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with / (or drive:/ for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with /, the value of ServerRoot is prepended -- so logs/foo.log
# with ServerRoot set to C:/Program Files/Apache Software 
Foundation/Apache2.2 will be interpreted by the
# server as C:/Program Files/Apache Software 
Foundation/Apache2.2/logs/foo.log.
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., c:/apache instead of c:\apache).
# If a drive letter is omitted, the drive on which Apache.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths, however, to avoid
# confusion.
#

# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum  number of requests a server process serves
ThreadsPerChild 250
MaxRequestsPerChild  0

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot C:/Program Files/Apache Software Foundation/Apache2.2

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the VirtualHost
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module 

Re: problems configuring mod_jk

2007-04-20 Thread Rainer Jung
Thanks Mladen, and sorry for jumping in that late: yes JkWorkersFile is 
global. Most others can be used in VHosts, but for Apache 2.0 most of 
this was completed only recently in version 1.2.20. Before 1.2.20 (you 
are using 1.2.18) some things worked in vhosts (like JkMount) even 
before, but JkWorkersFile remains to be global.


Regards,

Rainer

Faheem Mitha wrote:



On Fri, 20 Apr 2007, Mladen Turk wrote:


So, have you tried to put the JkWorkersFile outside the vhost?


I've moved everything outside except the JkMount stuff. The worker is 
now seen, and I'm now seeing a different error message, so that's 
progress. Thanks very much for your help.


-
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 + jk + Apache httpd on Windows 2003 Very Slow

2007-04-20 Thread Rainer Jung
If you can reproduce your problem without high load, you can use 
JkLogLevel debug to understand, which of the steps take the most time. 
This might give an idea about the root cause.


The log contains time stamps and you can post log parts around the 
moments, where you seem to loose most of the 10 seconds.


Regards,

Rainer

Avi Flax wrote:

Thanks Khalil. I've just read through the article, and it looks good.
But I'm pretty sure that my setup matches the one described there, as
far as I can tell. And it doesn't say anything about way slow
performance with JK. I think I may need some troubleshooting tips.

Thanks!
Avi


-
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: Force Apache to drop port 8080 when forwarding to Tomcat 6.0.10 using mod_jk-1.2.22

2007-04-20 Thread Mladen Turk

Khalil wrote:

Hi,

I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using mod_jk-1.2.22. 
The traffic seems to be flowing correctly to Tomcat on port 8080 from apache 
through the connector. Tomcat and Apache reside on the same machine.

I want to force apache to drop prot 8080 form the url when it forwards to 
tomcat since we're behined a firewall and port 8080 is closed.

For example, when I type in the browser: http://somehost/match2020/  apache 
forwadrs to tomcat and the url is changed to http://somhost:8080/match2020/. I 
want to get rid of 8080 form the url and just be on port 80.



What happens if you access the
/examples/servlets/servlet/RequestInfoExample
What is displayed for Remote Address

Are you still see port 8080, if that is what you are
trying to ask us?

I'm not the native English speaker, but I think I understand
that language a lot. However your entire question is unclear,
and I have no idea what the problem is,
and what do you mean by 'dropping ports'.

Regards,
Mladen.

-
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: Force Apache to drop port 8080 when forwarding to Tomcat 6.0.10 using mod_jk-1.2.22

2007-04-20 Thread Rainer Jung
I've also got problems to understand the question. I guess, he is 
getting back responses with links (or redirects) which have an appended 
port 8080, although he is starting with port 80. If so, it sounds a 
little like a bug in his webapp.


Khalil: can you please comment?

Mladen Turk wrote:

Khalil wrote:

Hi,

I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using 
mod_jk-1.2.22. The traffic seems to be flowing correctly to Tomcat on 
port 8080 from apache through the connector. Tomcat and Apache reside 
on the same machine.


I want to force apache to drop prot 8080 form the url when it forwards 
to tomcat since we're behined a firewall and port 8080 is closed.


For example, when I type in the browser: http://somehost/match2020/  
apache forwadrs to tomcat and the url is changed to 
http://somhost:8080/match2020/. I want to get rid of 8080 form the url 
and just be on port 80.




What happens if you access the
/examples/servlets/servlet/RequestInfoExample
What is displayed for Remote Address

Are you still see port 8080, if that is what you are
trying to ask us?

I'm not the native English speaker, but I think I understand
that language a lot. However your entire question is unclear,
and I have no idea what the problem is,
and what do you mean by 'dropping ports'.

Regards,
Mladen.

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



--
--
kippdata
informationstechnologie GmbH   Tel: 0228 98549 -0
Bornheimer Str. 33aFax: 0228 98549 -50
53111 Bonn www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann
===
kippdata
informationstechnologie GmbH   Tel: +49 228 98549 -0
Bornheimer Str. 33aFax: +49 228 98549 -50
D-53111 Bonn   www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann

-
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: Force Apache to drop port 8080 when forwarding to Tomcat 6.0.10 using mod_jk-1.2.22

2007-04-20 Thread Khalil
Yes, exactly. When I type this url in the browser: 
examples/servlets/servlet/RequestInfoExample


I still see port 8080 in the url. I want all the urls in my webapp not to 
include 8080. Please tell me if you still don't understand.


Thank you!

- Original Message - 
From: Rainer Jung [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, April 20, 2007 4:27 PM
Subject: Re: Force Apache to drop port 8080 when forwarding to Tomcat 6.0.10 
using mod_jk-1.2.22



I've also got problems to understand the question. I guess, he is getting 
back responses with links (or redirects) which have an appended port 8080, 
although he is starting with port 80. If so, it sounds a little like a bug 
in his webapp.


Khalil: can you please comment?

Mladen Turk wrote:

Khalil wrote:

Hi,

I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using 
mod_jk-1.2.22. The traffic seems to be flowing correctly to Tomcat on 
port 8080 from apache through the connector. Tomcat and Apache reside on 
the same machine.


I want to force apache to drop prot 8080 form the url when it forwards 
to tomcat since we're behined a firewall and port 8080 is closed.


For example, when I type in the browser: http://somehost/match2020/ 
apache forwadrs to tomcat and the url is changed to 
http://somhost:8080/match2020/. I want to get rid of 8080 form the url 
and just be on port 80.




What happens if you access the
/examples/servlets/servlet/RequestInfoExample
What is displayed for Remote Address

Are you still see port 8080, if that is what you are
trying to ask us?

I'm not the native English speaker, but I think I understand
that language a lot. However your entire question is unclear,
and I have no idea what the problem is,
and what do you mean by 'dropping ports'.

Regards,
Mladen.

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



--
--
kippdata
informationstechnologie GmbH   Tel: 0228 98549 -0
Bornheimer Str. 33aFax: 0228 98549 -50
53111 Bonn www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann
===
kippdata
informationstechnologie GmbH   Tel: +49 228 98549 -0
Bornheimer Str. 33aFax: +49 228 98549 -50
D-53111 Bonn   www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann

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



Class-loading problem in tomcat when using commons digester

2007-04-20 Thread Srinivas V.
One of the servlets in my webapp parses and constructs objects based on XML
configuration using the Commons-digester. This happens in the servlet's
init. The code to parse the XML and construct objects works fine when I
invoke it from a standalone app. However when I invoke the same code from
within a webapp, my webapp fails when digester tries to construct objects
based on the XML spec. I'm not sure why this is happenning because the class
that is causing the problem is in my WEB-INF/classes. So its definitely
available to the webapp class-loader. I guess at some point during the XML
parsing, the class-loader is changing (??). And that class-loader doesn't
have WEB-INF/classes in its search-list.

Hoping someone has seen this before or can help me with this ?

  thanks

  Srinivas


Re: Force Apache to drop port 8080 when forwarding to Tomcat 6.0.10 using mod_jk-1.2.22

2007-04-20 Thread Johnny Kewl


Hi Khalil,

I cant see anything wrong off hand, and I cant think of how this 
configuration can cause this behaviour...
The only way I can see this happening is that there is an HTML page in 
apache that is redirecting to 8080
Or if the programmer who made the webApp did a redirect to another page in 
tomcat and hard coded the port


For any of this to even work there must still be a connector in tomcat set 
to 8080 (server.xml) for direct access to tomcat.


First change that connector to another free port say 8081 (if that is free) 
and run tomcat by itself... ie http://whatever:8081

If it breaks you have found your problem in tomcat...

If it still works as tomcat standalone then take the 8080 connector out 
completely
Then if the apache complains you will probably find the offending web 
page...


Otherwise what you are saying is actually impossible as you can see 
apache is talking to tomcat on port 8009... and even then the incoming url 
has to be set to 8080 so I'm thinking someone new to tomcat thought they 
had to redirect to 8080, and didnt understand the connectors and actually 
redirected a web page to 8080.


Have fun

- Original Message - 
From: Khalil [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, April 20, 2007 10:09 PM
Subject: Force Apache to drop port 8080 when forwarding to Tomcat 6.0.10 
using mod_jk-1.2.22



Hi,

I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using 
mod_jk-1.2.22. The traffic seems to be flowing correctly to Tomcat on port 
8080 from apache through the connector. Tomcat and Apache reside on the same 
machine.


I want to force apache to drop prot 8080 form the url when it forwards to 
tomcat since we're behined a firewall and port 8080 is closed.


For example, when I type in the browser: http://somehost/match2020/  apache 
forwadrs to tomcat and the url is changed to http://somhost:8080/match2020/. 
I want to get rid of 8080 form the url and just be on port 80.

.

I have read and re-read the docs on http://tomcat.apache.org/connectors-doc 
and googled for few hours now but I am just unable to do it. I must be 
missing something?


Here is what I have done:

I have placed these lines in apache's httpd.conf:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile C:\Program Files\Apache Software 
Foundation\Apache2.2\conf\workers.properties
JkLogFile C:\Program Files\Apache Software 
Foundation\Apache2.2\logs\mod_jk.log

JkLogLevel info
VirtualHost ip_address:80
   JkMount /* loadbalancer
   JkMount /match2020 loadbalancer
   JkMount /match2020/* loadbalancer
/VirtualHost

Workers.properties file looks like this:

worker.list=loadbalancer
# First tomcat server
# 
worker.tomcat1.port=8009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.sticky_session=1
worker.loadbalancer.balance_workers=tomcat1
#worker.loadbalancer.balance_workers=tomcat2, tomcat4, tomcat1, tomcat3

I added the following connector to server.xml in Tomcat

Connector port=8009 protocol=AJP/1.3 redirectPort=8443 
enableLookups=true/


Regards
Khalil 



-
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: Force Apache to drop port 8080 when forwarding to Tomcat 6.0.10 using mod_jk-1.2.22

2007-04-20 Thread Johnny Kewl


Actually... on a second look, the configuration doesnt look right either...
I mean you clearly NOT load balancing you just trying to use a JK 
connector... the worker should just look something like this

# BEGIN workers.properties

# Definition for Ajp13 worker

worker.list=ajp13

worker.ajp13.port=8009

worker.ajp13.host=localhost

worker.ajp13.type=ajp13

# END workers.properties



- Original Message - 
From: Khalil [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, April 20, 2007 10:09 PM
Subject: Force Apache to drop port 8080 when forwarding to Tomcat 6.0.10 
using mod_jk-1.2.22



Hi,

I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using 
mod_jk-1.2.22. The traffic seems to be flowing correctly to Tomcat on port 
8080 from apache through the connector. Tomcat and Apache reside on the same 
machine.


I want to force apache to drop prot 8080 form the url when it forwards to 
tomcat since we're behined a firewall and port 8080 is closed.


For example, when I type in the browser: http://somehost/match2020/  apache 
forwadrs to tomcat and the url is changed to http://somhost:8080/match2020/. 
I want to get rid of 8080 form the url and just be on port 80.

.

I have read and re-read the docs on http://tomcat.apache.org/connectors-doc 
and googled for few hours now but I am just unable to do it. I must be 
missing something?


Here is what I have done:

I have placed these lines in apache's httpd.conf:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile C:\Program Files\Apache Software 
Foundation\Apache2.2\conf\workers.properties
JkLogFile C:\Program Files\Apache Software 
Foundation\Apache2.2\logs\mod_jk.log

JkLogLevel info
VirtualHost ip_address:80
   JkMount /* loadbalancer
   JkMount /match2020 loadbalancer
   JkMount /match2020/* loadbalancer
/VirtualHost

Workers.properties file looks like this:

worker.list=loadbalancer
# First tomcat server
# 
worker.tomcat1.port=8009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.sticky_session=1
worker.loadbalancer.balance_workers=tomcat1
#worker.loadbalancer.balance_workers=tomcat2, tomcat4, tomcat1, tomcat3

I added the following connector to server.xml in Tomcat

Connector port=8009 protocol=AJP/1.3 redirectPort=8443 
enableLookups=true/


Regards
Khalil 



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