The problem i have met

2006-03-31 Thread Jay
I am pretty new to tomcat.  I recently read a post  
http://marc.theaimsgroup.com/?l=tomcat-userm=114372017420869w=2 which 
solved a problem I have been having for tomcat 5.5 also.  I thank that 
person for posting the solution.  I also read some of the responses from 
what appear to be the tomcat developers and was very dissappointed.  I 
also think that is a usability problem for newbs.  like tomcat team 
wants tomcat to only be usable for advanced users to me.  This frankly 
dissapoints me.




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



FW: HTTP Status 404 and SEVERE: Error deploying configuration descriptor balancer.xml

2009-10-01 Thread jay
 

Hi all 

 

I have install and start tomcat5.5, and in my tomcat5.5/webapps have a
symlink to my page as follows :

j...@ibm:~$ ls -l  /var/lib/tomcat5.5/webapps/

lrwxrwxrwx 1 root root   42 2009-10-01 22:57 mysite -
/usr/lib/school/services/ mysite

But  when I input http://localhost:8180 / mysite /  to browser,it's show the
error msg as follow:

HTTP Status 404 - 

  _  

type Status report

message 

description The requested resource () is not available.

  _  

Apache Tomcat/5.5

Then I check the log in /var/log/tomcat5.5/ catalina.2009-10-01.log , I find
the error msg as follows :

 

 

 

Oct 1, 2009 11:19:24 PM org.apache.catalina.startup.HostConfig
deployDescriptor

SEVERE: Error deploying configuration descriptor balancer.xml

java.io.FileNotFoundException:
/etc/tomcat5.5/Catalina/localhost/balancer.xml (No such file or directory)

 at java.io.FileInputStream.open(Native Method)

 at java.io.FileInputStream.init(FileInputStream.java:106)

 at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1544)

 at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:583)

 at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553
)

 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)

 at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)

 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)

 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:120)

 at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
1306)

 at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1570)

 at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1579)

 at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.java:1559)

   at java.lang.Thread.run(Thread.java:619)

 

 

 

Is it cause that I can't see the webadmin page ?

 

 

 

Any ideas?



Cheers,

jay

 

 

 



How to set tomcat policy setting ?

2009-10-01 Thread jay
Hi :

How to set tomcat policy setting ?

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.10
DISTRIB_CODENAME=intrepid
DISTRIB_DESCRIPTION=Ubuntu 8.10

 

 

jay



SEVERE: Error getConfigured

2009-10-01 Thread jay
Hi all :

When I restart tomcat , I find the error msg as follows in my tomcat log :

 

 

Oct 2, 2009 11:45:51 AM org.apache.catalina.startup.ContextConfig
processDefaultWebConfig

SEVERE: Occurred at line 87 column 14

Oct 2, 2009 11:45:51 AM org.apache.catalina.startup.ContextConfig start

SEVERE: Marking this application unavailable due to previous error(s)

Oct 2, 2009 11:45:51 AM org.apache.catalina.core.StandardContext start

SEVERE: Error getConfigured

Oct 2, 2009 11:45:51 AM org.apache.catalina.core.StandardContext start

SEVERE: Context [/test] startup failed due to previous errors

Oct 2, 2009 11:45:51 AM org.apache.coyote.http11.Http11BaseProtocol start

INFO: Starting Coyote HTTP/1.1 on http-8180

Oct 2, 2009 11:45:51 AM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:8009

Oct 2, 2009 11:45:51 AM org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/27  config=null

Oct 2, 2009 11:45:51 AM org.apache.catalina.storeconfig.StoreLoader load

INFO: Find registry server-registry.xml at classpath resource

Oct 2, 2009 11:45:51 AM org.apache.catalina.startup.Catalina start

INFO: Server startup in 934 ms

 

What's wrong with my tomcat ?

 

 

 

Jay 



RE: SEVERE: Error getConfigured

2009-10-02 Thread jay
Hi andre
I have input a testpage(/test/hello.jsp) in /var/lib/tomcat5.5/webapps/, and
the page is can shown in the browser


jay
-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Friday, October 02, 2009 4:13 PM
To: Tomcat Users List
Subject: Re: SEVERE: Error getConfigured

andre wrote:
 Hello :
 
 When I start tomcat ,I find the error msg in my tomcat log . what's wrong
 with my tomcat ?
 
Apologies to the list, it seems that I started another thread by mistake.
Jay, please respond to the list, not to me.

About your Tomcat :
It looks like your Tomcat package is broken.  Tomcat expects to find a 
series of webapps (manager, host-manager, admin,..) and does not find 
them.  So it complains.
Maybe you manually deleted some applications in the /webapps directory, 
without telling Tomcat properly about it.
I suggest that you de-install your Tomcat package, and also the 
Tomcat-webapps package if any, and also the war application which you 
added later.
(Also delete the Tomcat logfiles in /var/log/tomcat???
Then, re-install Tomcat (and maybe Tomcat-webapps) cleanly.

Then, fist verify that Tomcat is working, before you add anything else.
If there is another problem then, post another message to this list.

About your application's war-file : this is not part of Tomcat, and 
probably nobody here knows this application.
If there is a problem with it, you should contact the makers of that 
application.

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


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



tomcat webapps can't start

2009-10-02 Thread jay
)

   at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1546)

   at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:583)

   at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553
)

   at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)

   at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)

   at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)

   at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:120)

   at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
1306)

   at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1570)

   at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1579)

   at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.java:1559)

   at java.lang.Thread.run(Thread.java:636)

Oct 2, 2009 8:33:03 PM org.apache.tomcat.util.digester.Digester fatalError

SEVERE: Parse Fatal Error at line -1 column -1: Premature end of file.

org.xml.sax.SAXParseException: Premature end of file.

   at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)

   at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)

   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)

   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)

   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)

   at
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source)

   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)

   at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1546)

   at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:583)

   at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553
)

   at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)

   at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)

   at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)

   at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:120)

   at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
1306)

   at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1570)

   at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1579)

   at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.java:1559)

   at java.lang.Thread.run(Thread.java:636)

Oct 2, 2009 8:33:03 PM org.apache.catalina.startup.HostConfig
deployDescriptor

SEVERE: Error deploying configuration descriptor balancer.xml

org.xml.sax.SAXParseException: Premature end of file.

   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)

   at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1546)

   at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:583)

   at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553
)

   at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)

   at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)

   at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)

   at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:120)

   at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
1306)

   at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1570)

   at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1579)

   at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.java:1559)

   at java.lang.Thread.run(Thread.java:636)

 

 

thanks  regards,

jay



RE: tomcat webapps can't start

2009-10-02 Thread jay
Hi Peter
I find the fille (/etc/tomcat5.5/Catalina/localhost/balancer.xml) ,but the
balancer.xml is empty . 
How to Fix the XML ?

Can you give me more hint about the problem ?

Thatnks  regards,
Jay 

-Original Message-
From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com]
On Behalf Of Peter Crowther
Sent: Friday, October 02, 2009 8:43 PM
To: Tomcat Users List
Subject: Re: tomcat webapps can't start

2009/10/2 jay uniojnqoif...@gmail.com:
 I am input my site in /var/lib/tomcat/webapps , I am using tomcat5.5 , os
 :ubuntu 8.10

 But I can't see my page in browser  and I find some error msg in my tomcat
 log
[...]
 SEVERE: Error deploying configuration descriptor balancer.xml

 org.xml.sax.SAXParseException: Premature end of file.
[...]

Fix the XML issue in balancer.xml and try again.

- Peter

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


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



SEVERE: Error listenerStart

2009-10-02 Thread jay
t.java:120)

   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

   at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)

   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

   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:57
)

   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)

   at java.lang.reflect.Method.invoke(Method.java:616)

   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)

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

   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)

   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)

   at java.lang.reflect.Method.invoke(Method.java:616)

   at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)

Oct 2, 2009 9:03:37 PM org.apache.catalina.core.StandardContext start

SEVERE: Error listenerStart

Oct 2, 2009 9:03:37 PM org.apache.catalina.core.StandardContext start

SEVERE: Context [/perfsonar-clmp] startup failed due to previous errors

Oct 2, 2009 9:03:37 PM org.apache.catalina.core.StandardContext start

SEVERE: Error listenerStart

Oct 2, 2009 9:03:37 PM org.apache.catalina.core.StandardContext start

 

 

What's mean about the error  ? 

 

Any ideas where and how to look?

 

jay



tomcat5.5 can't start

2009-10-12 Thread jay
Hi all  :

I have some problem with tomcat .

I have install tomcat5.5 , 

root@ ibm:/tmp# dpkg --get-selections | grep tomcat5.5

libtomcat5.5-java   install

tomcat5.5   install

then I using /etc/init.d/tomcat5.5 start to start tomcat,

r...@ibm:/tmp# /etc/init.d/tomcat5.5 start

 * Starting Tomcat servlet engine tomcat5.5
[ OK ]

But when I to check the tomcat ,I find tomcat didn't start .

 

I have modify /etc/default/tomcat5.5 ,set 

TOMCAT5_SECURITY=no

And my /var/log/tomcat5.5/ is empty .

What's problem with my tomcat ?

 

Cheers,

jay

 



Logging configuration in Tomcat

2009-01-11 Thread Jay
OS : RedHat Linux 
 
Tomcat version : 5.5.20
 
Am able to configure the logging level at individual war files, by referring to 
log4j.properties in web.xml.
 
Could someone let me know, how to configure the logging level  also the file 
appender type at global level, please ?
 
Thanks
 
 


  

RE: Logging configuration in Tomcat

2009-01-11 Thread Jay
Chuck 
 
Thank you for the reply. This is what I was looking for.
 
My actual problem is that, as it is, catalina.out is growing and I want it to 
be rolled once its size reaches the specified limit. In simple words, I want 
something like, RollingFileAppender.
 
Could you let me know, how to specify the file size  no of counts for 
catalina.out, please ?
 
Thanks

--- On Sun, 1/11/09, Caldarale, Charles R chuck.caldar...@unisys.com wrote:

From: Caldarale, Charles R chuck.caldar...@unisys.com
Subject: RE: Logging configuration in Tomcat
To: Tomcat Users List users@tomcat.apache.org
Date: Sunday, January 11, 2009, 11:28 AM

 From: Jay [mailto:difficult...@yahoo.com]
 Subject: Logging configuration in Tomcat

 Could someone let me know, how to configure the logging level
  also the file appender type at global level, please ?

Not sure what you mean for at global level; if you're asking
about Tomcat's internal logging, that's configured in
conf/logging.properties, which normally uses JULI.  If you want to change that,
look here:
http://tomcat.apache.org/tomcat-5.5-doc/logging.html

 - Chuck


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

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




  

RE: Logging configuration in Tomcat

2009-01-12 Thread Jay
Chuck
 
There are many web apps. Log4j logger is used in all web apps  there are 
no system.out  or system.err

If I configure log4j at each web app level using log4j.properties, am abile to 
achive log file rotation but, this requires one log file per web application.
 
What I am interested is one log file for all web apps - say catalina,out  this 
file should be rotated based on size, which should be configurable.
 
Am not Ok with catalina.out being rotated once in a day or once in a month.
 
Could you let me know, how to achieve my requirement, please ?
 
Thanks

--- On Sun, 1/11/09, Caldarale, Charles R chuck.caldar...@unisys.com wrote:

From: Caldarale, Charles R chuck.caldar...@unisys.com
Subject: RE: Logging configuration in Tomcat
To: Tomcat Users List users@tomcat.apache.org
Date: Sunday, January 11, 2009, 10:34 PM

 From: Jay [mailto:difficult...@yahoo.com]
 Subject: RE: Logging configuration in Tomcat

 My actual problem is that, as it is, catalina.out is growing

Sounds like your webapps are using System.out or System.err for their logging,
which is poor practice.  They should be using a proper logging mechanism, not
just splattering print statements wherever they feel like it.

You should be able to address that with the swallowOutput attribute of the
Context element:
http://wiki.apache.org/tomcat/FAQ/Logging#Q6
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

Set the attribute in conf/context.xml if you want it to apply to all webapps.

 - Chuck


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

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




  

RE: Logging configuration in Tomcat

2009-01-13 Thread Jay
Hello
 
As we are not providing any log4j configuration for individual web app, I 
guess, Tomcat is directing all the log4j log messages in the code to system.out 
which in turn is being written to catalina.out
 
Agree that it may not be a good idea to direct log messages from all web apps 
to a same log file. But, our requirement is that there should be a single file.
Considering all these, is there a way to achieve rolling for catalina.out, 
based on size ?
 
Thanks

--- On Mon, 1/12/09, Caldarale, Charles R chuck.caldar...@unisys.com wrote:

From: Caldarale, Charles R chuck.caldar...@unisys.com
Subject: RE: Logging configuration in Tomcat
To: Tomcat Users List users@tomcat.apache.org
Date: Monday, January 12, 2009, 6:41 PM

 From: Jay [mailto:difficult...@yahoo.com]
 Subject: RE: Logging configuration in Tomcat

 There are many web apps. Log4j logger is used in all web apps
  there are no system.out  or system.err

Then where is your catalina.out usage coming from?  Tomcat does not itself put
anything in catalina.out; data in there appears only because the Tomcat startup
script redirects System.out and System.err to that file.

 If I configure log4j at each web app level using
 log4j.properties, am abile to achive log file rotation but,
 this requires one log file per web application.

Which really, really is what you need.  Lumping them all together will create
serious grief, as other posters have already pointed out.

 What I am interested is one log file for all web apps

A bad idea.  You could just merge the log files after they've been
generated.

 - Chuck


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

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




  

RE: Logging configuration in Tomcat

2009-01-13 Thread Jay
Ok. What I am asking is, is there a mechanism to roll catalina.out based on 
size of the file. 

Thanks

--- On Tue, 1/13/09, Caldarale, Charles R chuck.caldar...@unisys.com wrote:
From: Caldarale, Charles R chuck.caldar...@unisys.com
Subject: RE: Logging configuration in Tomcat
To: Tomcat Users List users@tomcat.apache.org
Date: Tuesday, January 13, 2009, 11:29 AM

 From: Jay [mailto:difficult...@yahoo.com]
 Subject: RE: Logging configuration in Tomcat

 I guess, Tomcat is directing all the log4j log messages
 in the code to system.out which in turn is being written
 to catalina.out

You laboring under a misconception - Tomcat doesn't interact with log4j at
all; where the messages go is entirely dependent on your log4j configuration. 
If you've configured (or misconfigured) log4j to output to System.out (a bad
idea), then log4j messages will go to catalina.out due to the redirection in the
Tomcat startup scripts.  There's nothing in Tomcat that can fix your log4j
config - that's up to you.

 - Chuck


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

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




  

RE: Logging configuration in Tomcat

2009-01-25 Thread Jay
Chuck
 
Finally I got it working. 
 
As I had said, there were no System.out in my web apps code. They are log4j 
statements with proper syntax. Just that no log4j configuration is done for 
each web app. Because of this, tomcat was directing log messages to stdout 
which was further getting written to catalina.out.
 
Now, I wrote a simple java program, which will redirect stdout  stderr to a 
print stream which is directed by log4j to a rotating file appender.
 
Thus the problem is solved.
 
Thanks for your help.


--- On Tue, 1/13/09, Caldarale, Charles R chuck.caldar...@unisys.com wrote:

From: Caldarale, Charles R chuck.caldar...@unisys.com
Subject: RE: Logging configuration in Tomcat
To: Tomcat Users List users@tomcat.apache.org
Date: Tuesday, January 13, 2009, 1:13 PM

 From: Jay [mailto:difficult...@yahoo.com]
 Subject: RE: Logging configuration in Tomcat

 Ok. What I am asking is, is there a mechanism to roll
 catalina.out based on size of the file.

You're missing the point.  If you configure log4j properly AND your webapps
do not make direct use of System.out and System.err, there will never be
anything written to catalina.out.  You need to fix your log4j config so it
doesn't use System.out but rather a specific file appender that will rotate
based on size.  You'll need to look at the log4j documentation to figure out
how to do that - this has nothing to do with Tomcat.

 - Chuck


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

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




  

RE: Logging configuration in Tomcat

2009-01-25 Thread Jay





Chuck
 
Finally I got it working. 
 
As I had said, there were no System.out in my web apps code. They are log4j 
statements with proper syntax. Just that no log4j configuration is done for 
each web app. Because of this, tomcat was directing log messages to stdout 
which was further getting written to catalina.out.
 
Now, I wrote a simple java program, which will redirect stdout  stderr to a 
print stream which is directed by log4j to a rotating file appender.
 
Thus the problem is solved.
 
Thanks for your help.


--- On Tue, 1/13/09, Caldarale, Charles R chuck.caldar...@unisys.com wrote:

From: Caldarale, Charles R chuck.caldar...@unisys.com
Subject: RE: Logging configuration in Tomcat
To: Tomcat Users List users@tomcat.apache.org
Date: Tuesday, January 13, 2009, 1:13 PM

 From: Jay [mailto:difficult...@yahoo.com]
 Subject: RE: Logging configuration in Tomcat

 Ok. What I am asking is, is there a mechanism to roll
 catalina.out based on size of the file.

You're missing the point.  If you configure log4j properly AND your webapps
do not make direct use of System.out and System.err, there will never be
anything written to catalina.out.  You need to fix your log4j config so it
doesn't use System.out but rather a specific file appender that will rotate
based on size.  You'll need to look at the log4j documentation to figure out
how to do that - this has nothing to do with Tomcat.

 - Chuck


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

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




  

RE: Logging configuration in Tomcat

2009-01-25 Thread Jay


--- On Tue, 1/13/09, Caldarale, Charles R chuck.caldar...@unisys.com wrote:

From: Caldarale, Charles R chuck.caldar...@unisys.com
Subject: RE: Logging configuration in Tomcat
To: Tomcat Users List users@tomcat.apache.org
Date: Tuesday, January 13, 2009, 11:29 AM

 From: Jay [mailto:difficult...@yahoo.com]
 Subject: RE: Logging configuration in Tomcat

 I guess, Tomcat is directing all the log4j log messages
 in the code to system.out which in turn is being written
 to catalina.out

You laboring under a misconception - Tomcat doesn't interact with log4j at
all; where the messages go is entirely dependent on your log4j
 configuration. 
If you've configured (or misconfigured) log4j to output to System.out (a bad
idea), then log4j messages will go to catalina.out due to the redirection in the
Tomcat startup scripts.  There's nothing in Tomcat that can fix your log4j
config - that's up to you.

 - Chuck


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

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




  

Re: Tomcat server 4.1.31 out of memory issue

2013-10-29 Thread Jay

 Hi,
 
 I am using the Tomcat 4.1.31. Recently some new enhancement has resulted in 
 out of memory issue. Now whenever we start the server the server memory 
 becomes 0 within few mins hence no memory is available for application. 
 
 Please provide help of procedure to clear the memory currently every time I 
 start the server it always results in out of memory issue.
 
 We tried to increase heap size but could not be of any help. We are trying to 
 increase the permgen space. Could you please help to clear server memory on 
 start of tomcat.
 
 Sent from jay's iPhone

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



Re: Tomcat server 4.1.31 out of memory issue

2013-10-29 Thread Jay
Hi Mark, 

Thanks for the info, but the tomcat 4.1.31 comes with the SAS portal vendor 
product we are using hence we cannot upgrade the server. I will upload the 
stack trace.
Thanks
Jay

Sent from jay's iPhone

 On Oct 29, 2013, at 4:35 PM, Mark Thomas ma...@apache.org wrote:
 
 On 29/10/2013 07:09, Jay wrote:
 
 Hi,
 
 I am using the Tomcat 4.1.31. Recently some new enhancement has resulted 
 in out of memory issue. Now whenever we start the server the server memory 
 becomes 0 within few mins hence no memory is available for application. 
 
 Please provide help of procedure to clear the memory currently every time 
 I start the server it always results in out of memory issue.
 
 We tried to increase heap size but could not be of any help. We are trying 
 to increase the permgen space. Could you please help to clear server memory 
 on start of tomcat.
 
 Sent from jay's iPhone
 
 1. When reporting an error that generates a stack trace, please provide
 the stack trace. There are several possible causes of an out of memory
 error and the stack trace will tell us which it is.
 
 2. Tomcat 4.1.31 is over 9 years old. Support for all 4.1.x stopped over
 4 years ago in June 2009. You really, really, need to upgrade to a
 supported version.
 
 Mark
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

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



Re: Tomcat server 4.1.31 out of memory issue

2013-10-29 Thread Jay
I have already tried removing the enhancement and restarting. The sever still 
has the out of memory issue on startup. 

Tomcat logs shows different exception related to product. Hence it's difficult 
to really to understand what caused out of memory issue.

Sent from jay's iPhone

 On Oct 30, 2013, at 12:31 AM, André Warnier a...@ice-sa.com wrote:
 
 Jay wrote:
 Hi,
 
 I am using the Tomcat 4.1.31. Recently some new enhancement has resulted 
 in out of memory issue. Now whenever we start the server the server memory 
 becomes 0 within few mins hence no memory is available for application.
 
 It looks to me like the diagnosis is rather easy here : apparently, A) before 
 this last enhancement it did  not run out of memory, and B) after the 
 enhancement it does.
 B - A = enhancement.
 So why do you not ask the author of enhancement why it makes tomcat run out 
 of memory, and what his recommendation is to avoid this ?
 
 Please provide help of procedure to clear the memory currently every time 
 I start the server it always results in out of memory issue.
 
 Remove enhancement ?
 
 We tried to increase heap size but could not be of any help. We are trying 
 to increase the permgen space. Could you please help to clear server memory 
 on start of tomcat.
 
 http://lmgtfy.com/?q=java+permgen+space  ?
 
 What do the tomcat logs say ?
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

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



Tomcat 7.0.37 issue on our Sun Sparc

2014-02-24 Thread Jay
We newly installed Solaris 10 with all default settings on our Sun Sparc
machine (sun4u sparc SUNW,UltraAX-i2 64-bit sparcv9 kernel modules).

The OS Version: SunOS hostname 5.10 Generic_147147-26 sun4u sparc
SUNW,UltraAX-i2.

The Java in the environment:
java version 1.6.0_37
Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
Java HotSpot(TM) Client VM (build 20.12-b01, mixed mode, sharing)

We downloaded the  apache-tomcat-7.0.37.tar.gz and just unpack it into /tmp.
Then we started the Tomcat server using ./startup.sh.
It was working ok after starting and we can see the Tomcat page on Web
Browser at the port 8080. 
But The Tomcat stopped internally itself after several hours (looks
randomly) without reason.

We couldn't find this issue in the FAQ Known issues. 
Is anyone aware about this issue? Can you please provide any clues?

Thanks, 
Jay 

PS. Here is the output from catalina.out:
##
Feb 19, 2014 12:14:37 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/usr/jdk/instances/jdk1.6.0/jre/lib/sparc/client:/usr/jdk/instances/jdk1.6.0
/jre/lib/sparc:/usr/jdk/instances/jdk1.6.0/jre/../lib/sparc:/usr/jdk/package
s/lib/sparc:/lib:/usr/lib
Feb 19, 2014 12:14:40 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [http-bio-8080]
Feb 19, 2014 12:14:40 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [ajp-bio-8009]
Feb 19, 2014 12:14:40 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 4968 ms
Feb 19, 2014 12:14:40 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Feb 19, 2014 12:14:40 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
Feb 19, 2014 12:14:40 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/tmp/apache-tomcat-7.0.37/webapps/ROOT
Feb 19, 2014 12:14:42 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/tmp/apache-tomcat-7.0.37/webapps/docs
Feb 19, 2014 12:14:43 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/tmp/apache-tomcat-7.0.37/webapps/examples
Feb 19, 2014 12:14:44 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/tmp/apache-tomcat-7.0.37/webapps/host-manager
Feb 19, 2014 12:14:44 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/tmp/apache-tomcat-7.0.37/webapps/manager
Feb 19, 2014 12:14:45 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [http-bio-8080]
Feb 19, 2014 12:14:45 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [ajp-bio-8009]
Feb 19, 2014 12:14:45 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4826 ms
Feb 19, 2014 7:05:26 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler [http-bio-8080]
Feb 19, 2014 7:05:26 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler [ajp-bio-8009]
Feb 19, 2014 7:05:26 PM org.apache.catalina.core.StandardService
stopInternal
INFO: Stopping service Catalina
Feb 19, 2014 7:05:26 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler [http-bio-8080]
Feb 19, 2014 7:05:26 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler [ajp-bio-8009]
Feb 19, 2014 7:05:26 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler [http-bio-8080]
Feb 19, 2014 7:05:26 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler [ajp-bio-8009]
##



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



RE: Tomcat 7.0.37 issue on our Sun Sparc

2014-02-24 Thread Jay
Hi Mark, 

Thank you for a quick response.
It looks the Tomcat 7.0.37 is ok with Solaris 10 on other Sun Sparc machine
... could it be hardware related?
Do you have any suggestion for us to capture that possible Shutdown command
and/or possible SIGTERM? 

Thanks,
Jay

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Monday, February 24, 2014 12:41 PM
To: Tomcat Users List
Subject: Re: Tomcat 7.0.37 issue on our Sun Sparc

On 24/02/2014 17:36, Jay wrote:
 We newly installed Solaris 10 with all default settings on our Sun 
 Sparc machine (sun4u sparc SUNW,UltraAX-i2 64-bit sparcv9 kernel modules).
 
 The OS Version: SunOS hostname 5.10 Generic_147147-26 sun4u sparc 
 SUNW,UltraAX-i2.
 
 The Java in the environment:
 java version 1.6.0_37
 Java(TM) SE Runtime Environment (build 1.6.0_37-b06) Java HotSpot(TM) 
 Client VM (build 20.12-b01, mixed mode, sharing)
 
 We downloaded the  apache-tomcat-7.0.37.tar.gz and just unpack it into
/tmp.
 Then we started the Tomcat server using ./startup.sh.
 It was working ok after starting and we can see the Tomcat page on Web 
 Browser at the port 8080.
 But The Tomcat stopped internally itself after several hours (looks
 randomly) without reason.

Nope. Not possible. Tomcat does not decide to shut itself down on a whim.
That looks like a clean shut down so either:
- something connected to the shut down port and sent the shut down
  command
- something sent a SIGTERM to the Tomcat process.

Mark


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



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



RE: Tomcat 7.0.37 issue on our Sun Sparc

2014-02-25 Thread Jay
Hi Chris, 

Thanks for your comments and suggestion.

The other files in the logs don't seem to have more useful info:
catalina.2014-02-19.log
host-manager.2014-02-19.log
localhost.2014-02-19.log
localhost_access_log.2014-02-19.txt
manager.2014-02-19.log

JVM looks ok and doesn't seems crashed. We can restart the Tomcat without 
problem.

Thanks,
Jay



-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Tuesday, February 25, 2014 12:41 AM
To: Tomcat Users List
Subject: Re: Tomcat 7.0.37 issue on our Sun Sparc

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jay,

On 2/24/14, 1:42 PM, Jay wrote:
 Hi Mark,
 
 Thank you for a quick response. It looks the Tomcat 7.0.37 is ok with 
 Solaris 10 on other Sun Sparc machine ... could it be hardware 
 related? Do you have any suggestion for us to capture that possible 
 Shutdown command and/or possible SIGTERM?

Was there any output in any other log files under CATALINA_BASE/logs?

Hardware problems usually end with a disastrous JVM crash: you'll get a Java 
dump with both Java and native dumps, etc. On Solaris, I usually see BUS ERROR 
or something else similarly awful-sounding but more mundane in reality.

If you have a choice, you might want to upgrade both Java and Tomcat:
both versions you mentioned are quite old.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTDCzXAAoJEBzwKT+lPKRY89QP/0KLvuVZgbI6TTixqsr7jrMI
FM5yS+cx5WoS1XBwxP8l5bxtFmAFnaB+DMW6XRUyap2Yl8s+5kFkRiDUcy+ET3jh
B6TZ7L4oCz4vGdhnRtxJv010gi2CIQFiRfOZiAVy9V2XIL+jhtFxVJT72ZX7eHgl
iFfXobcAoYeEQlI/BZRTazfzIR0g/l3w/ORbyxGcFc+OYYLxj1M9EDX0Dk1bmzRy
IU2WSc7VqC9uOnt5wPFQvoAGdG43I18Cb2PlbG3nDzm82WqI2l0A5225wObhl5ub
LhMbTWL0FgHv84lMQXgDGT9UbWQ5U56V6rl5A++mR0qZHCQC1AdyiJzVWoyo5Fqq
ZrTJWdhCXA1tvJ/pNUUmNKyHnhIPNOecHoFEFuZ9obLHfalEbyoj/A8hg/i67evD
yWz/kEu9CnpY4Ex+1Ky9M48ZG/Lk/C5pGY+8SH+sr8lyUyu+qjnlT9cR06KdL4f+
CHcGTQ+kSOEp6ld0kJoJJCIttcZR3C1MCT6Twhipdb5p9CgX41LIPlBqBi30ItJn
d/S7Rr8lkv3LSY2JHYhbntdft2U66sARYHC2lyrUT0Up/cWlKDhr7gCS3EaLCpqt
v1lWT1jiYuTR6QGJR0K2Dc3SwsijULI8dmNlnP8cF+/Yq8B8bvlPze/ZtYnZoJ8D
aziO9WdHSunTob0UjFcB
=Lebz
-END PGP SIGNATURE-

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



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



RE: Tomcat 7.0.37 issue on our Sun Sparc

2014-02-26 Thread Jay
Hi Konstantin,

Thank you for the info!

Jay

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Tuesday, February 25, 2014 6:08 PM
To: Tomcat Users List
Subject: Re: Tomcat 7.0.37 issue on our Sun Sparc

2014-02-24 22:42 GMT+04:00 Jay mx...@live.com:
 Hi Mark,

 Thank you for a quick response.
 It looks the Tomcat 7.0.37 is ok with Solaris 10 on other Sun Sparc 
 machine ... could it be hardware related?
 Do you have any suggestion for us to capture that possible Shutdown 
 command and/or possible SIGTERM?


1. In the FAQ
http://wiki.apache.org/tomcat/FAQ/Linux_Unix#Q3
- Tomcat dies after I log out!

2. By the way,
 We downloaded the  apache-tomcat-7.0.37.tar.gz and just unpack it into
/tmp.

In some system configurations the files in /tmp and/or in /var/tmp are
deleted after reboot.

3. It was not Shutdown command, because Tomcat 7 prints the following log
message when that happens:
A valid shutdown command was received via the shutdown port.

Best regards,
Konstantin Kolinko

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



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



Tomcat 7.0.52 issue on our Sun Sparc with SunOS 5.10

2014-02-27 Thread Jay
Hello,

We newly installed Solaris 10 with all default settings on our Sun Sparc
machine (sun4u sparc SUNW,UltraAX-i2 64-bit sparcv9 kernel modules).
The OS Version: SunOS hostname 5.10 Generic_147147-26 sun4u sparc
SUNW,UltraAX-i2.

We downloaded and installed JDK packages as follows:
jdk-7u51-solaris-sparc.z
jdk-7u51-solaris-sparcv9.z

The Java in the environment:
java version 1.7.0_51
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)

We downloaded the  apache-tomcat-7.0.52.tar.gz and just unpacked it in
/export/home/tester.
Then we started the Tomcat server just using ./startup.sh without change of
any default settings.
The Tomcat is started ok listening at 8080 and we can see the Tomcat main
page on Web Browser at the port 8080. 
But there is SEVERE error in the logs as follows:
  org.apache.catalina.core.StandardContext listenerStart
  SEVERE: Error configuring application listener of class
websocket.drawboard.DrawboardContextListener

Is anyone aware about this issue? is it a configuration issue or environment
issue? 
Will this issue affect the basic Tomcat functions?
Can you please provide any clues or check points?

Thanks,
Jay 

PS. Here are the outputs from the logs:
#
# cat catalina.out
Feb 27, 2014 4:23:18 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: /usr/jdk/packages/lib/sparc:/lib:/usr/lib
Feb 27, 2014 4:23:21 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [http-bio-8080]
Feb 27, 2014 4:23:22 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [ajp-bio-8009]
Feb 27, 2014 4:23:22 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 6354 ms
Feb 27, 2014 4:23:22 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Feb 27, 2014 4:23:22 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.52
Feb 27, 2014 4:23:22 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/export/home/tester/apache-tomcat-7.0.52/webapps/manager
Feb 27, 2014 4:23:26 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/export/home/tester/apache-tomcat-7.0.52/webapps/docs
Feb 27, 2014 4:23:27 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/export/home/tester/apache-tomcat-7.0.52/webapps/examples
Feb 27, 2014 4:23:31 PM org.apache.catalina.core.StandardContext
startInternal
SEVERE: Error listenerStart
Feb 27, 2014 4:23:31 PM org.apache.catalina.core.StandardContext
startInternal
SEVERE: Context [/examples] startup failed due to previous errors
Feb 27, 2014 4:23:31 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/export/home/tester/apache-tomcat-7.0.52/webapps/ROOT
Feb 27, 2014 4:23:32 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/export/home/tester/apache-tomcat-7.0.52/webapps/host-manager
Feb 27, 2014 4:23:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [http-bio-8080]
Feb 27, 2014 4:23:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [ajp-bio-8009]
Feb 27, 2014 4:23:32 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10763 ms
#
# cat localhost.2014-02-27.log
Feb 27, 2014 4:23:31 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Error configuring application listener of class
websocket.drawboard.DrawboardContextListener
java.lang.ClassNotFoundException:
websocket.drawboard.DrawboardContextListener
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1718)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1569)
at
org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceMan
ager.java:529)
at
org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(Def
aultInstanceManager.java:511)
at
org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceM
anager.java:139)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
4888)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:
5467)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:9
01)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877

RE: Tomcat 7.0.52 issue on our Sun Sparc with SunOS 5.10

2014-02-28 Thread Jay
Hi Konstantin,

Thanks. it did cut the name during the unpacking.
I unpacked it using  gunzip -c apache-tomcat-7.0.52.tar.gz |tar xvf -  and
there was no warning or error.

The original tar.gz file contains:
DrawboardContextListener.class
DrawboardContextListener.java

But after unpacked, their names are cut as follows:
-rw-r--r--   1 root root 890 Feb 13 02:29
DrawboardContextListener.c
-rw-r--r--   1 root root1346 Feb 13 02:31
DrawboardContextListener.j

Best Regards,
Jay

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Thursday, February 27, 2014 5:13 PM
To: Tomcat Users List
Subject: Re: Tomcat 7.0.52 issue on our Sun Sparc with SunOS 5.10

2014-02-28 1:56 GMT+04:00 Jay mx...@live.com:
 Hello,

 We newly installed Solaris 10 with all default settings on our Sun 
 Sparc machine (sun4u sparc SUNW,UltraAX-i2 64-bit sparcv9 kernel modules).
 The OS Version: SunOS hostname 5.10 Generic_147147-26 sun4u sparc 
 SUNW,UltraAX-i2.

 We downloaded and installed JDK packages as follows:
 jdk-7u51-solaris-sparc.z
 jdk-7u51-solaris-sparcv9.z

 The Java in the environment:
 java version 1.7.0_51
 Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 
 Client VM (build 24.51-b03, mixed mode, sharing)

 We downloaded the  apache-tomcat-7.0.52.tar.gz and just unpacked it in 
 /export/home/tester.
 Then we started the Tomcat server just using ./startup.sh without 
 change of any default settings.
 The Tomcat is started ok listening at 8080 and we can see the Tomcat 
 main page on Web Browser at the port 8080.
 But there is SEVERE error in the logs as follows:
   org.apache.catalina.core.StandardContext listenerStart
   SEVERE: Error configuring application listener of class 
 websocket.drawboard.DrawboardContextListener

 Is anyone aware about this issue? is it a configuration issue or 
 environment issue?
 Will this issue affect the basic Tomcat functions?
 Can you please provide any clues or check points?

 Thanks,
 Jay

 PS. Here are the outputs from the logs:
()
 INFO: Deploying web application directory  
/export/home/tester/apache-tomcat-7.0.52/webapps/examples
(...)
 java.lang.ClassNotFoundException:
 websocket.drawboard.DrawboardContextListener


Does the following class file exist in your installation?
/export/home/tester/apache-tomcat-7.0.52/webapps/examples/WEB-INF/classes/we
bsocket/drawboard/DrawboardContextListener.class

I have checked, that it is present in apache-tomcat-7.0.52.tar.gz, but may
be you had trouble unpacking it.  The *.tar.gz file requires GNU Tar (as
mentioned in README file on the download page), because of some long file
names.

You can download apache-tomcat-7.0.52.zip instead.

Best regards,
Konstantin Kolinko

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



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



Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS 5.10

2014-03-03 Thread Jay
Hello,

We newly installed Solaris 10 with all default settings on our Sun Sparc
machine (sun4u sparc SUNW,UltraAX-i2 64-bit sparcv9 kernel modules).
The OS Version: SunOS hostname 5.10 Generic_147147-26 sun4u sparc
SUNW,UltraAX-i2.

We downloaded and installed JDK packages as follows:
jdk-7u51-solaris-sparc.z
jdk-7u51-solaris-sparcv9.z

The Java in the environment:
java version 1.7.0_51
Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) Client
VM (build 24.51-b03, mixed mode, sharing)

We downloaded the  apache-tomcat-7.0.52.tar.gz and just unpacked it in
/export/home/tester.
Then we started the Tomcat server just using ./startup.sh without change of
any default settings.
The Tomcat is started ok listening at 8080 and we can see the Tomcat main
page on Web Browser at the port 8080. 
But after several hours it stops itself without obvious reason (not manually
killed). and 
It seems it was not a Shutdown command as there is no message of A valid
shutdown command was received via the shutdown port. in the log.

Is anyone aware about this issue?
Is it a configuration issue or environment issue? 

Can you please provide any clues or check points?

Thanks,
Jay 

PS. Here are the outputs from the logs:
#
# cat catalina.out
Feb 28, 2014 4:12:09 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: /usr/jdk/packages/lib/sparc:/lib:/usr/lib
Feb 28, 2014 4:12:12 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [http-bio-8080]
Feb 28, 2014 4:12:12 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [ajp-bio-8009]
Feb 28, 2014 4:12:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 5782 ms
Feb 28, 2014 4:12:12 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Feb 28, 2014 4:12:12 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.52
Feb 28, 2014 4:12:12 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/export/home/tester/apache-tomcat-7.0.52/webapps/manager
Feb 28, 2014 4:12:16 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/export/home/tester/apache-tomcat-7.0.52/webapps/docs
Feb 28, 2014 4:12:17 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/export/home/tester/apache-tomcat-7.0.52/webapps/examples
Feb 28, 2014 4:12:21 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/export/home/tester/apache-tomcat-7.0.52/webapps/ROOT
Feb 28, 2014 4:12:21 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/export/home/tester/apache-tomcat-7.0.52/webapps/host-manager
Feb 28, 2014 4:12:22 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [http-bio-8080]
Feb 28, 2014 4:12:22 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [ajp-bio-8009]
Feb 28, 2014 4:12:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10031 ms
Mar 01, 2014 2:00:50 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler [http-bio-8080]
Mar 01, 2014 2:00:50 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler [ajp-bio-8009]
Mar 01, 2014 2:00:50 AM org.apache.catalina.core.StandardService
stopInternal
INFO: Stopping service Catalina
Mar 01, 2014 2:00:50 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler [http-bio-8080]
Mar 01, 2014 2:00:50 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler [ajp-bio-8009]
Mar 01, 2014 2:00:50 AM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler [http-bio-8080]
Mar 01, 2014 2:00:50 AM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler [ajp-bio-8009]

#
# cat localhost.2014-02-28.log
Feb 28, 2014 4:12:21 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Feb 28, 2014 4:12:21 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Feb 28, 2014 4:12:21 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener:
attributeAdded('org.apache.jasper.compiler.TldLocationsCache',
'org.apache.jasper.compiler.TldLocationsCache@19a2df9')

#
# cat localhost.2014-03-01.log
Mar 01, 2014 2:00:50 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Mar 01, 2014 2:00:50 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener

RE: Tomcat 7.0.52 issue on our Sun Sparc with SunOS 5.10

2014-03-03 Thread Jay
Hi Chris,

This is a tar issue and we can work out.
Actually We have a real issue on the Tomcat stopping itself - I just reported 
again with the new version 7.052.
 Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS 5.10.

Thanks,
Jay

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Monday, March 03, 2014 5:33 PM
To: Tomcat Users List
Subject: Re: Tomcat 7.0.52 issue on our Sun Sparc with SunOS 5.10

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jay,

On 2/28/14, 4:09 PM, Jay wrote:
 Hi Konstantin,
 
 Thanks. it did cut the name during the unpacking. I unpacked it using 
  gunzip -c apache-tomcat-7.0.52.tar.gz |tar xvf -  and there was no 
 warning or error.
 
 The original tar.gz file contains: DrawboardContextListener.class 
 DrawboardContextListener.java
 
 But after unpacked, their names are cut as follows: -rw-r--r--   1
 root root 890 Feb 13 02:29 DrawboardContextListener.c 
 -rw-r--r--   1 root root1346 Feb 13 02:31 
 DrawboardContextListener.j

Are you using gnu tar or Sun tar? I think you'd better use Gnu tar, otherwise 
weird things can happen.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTFQMcAAoJEBzwKT+lPKRYF7MP/0JpoHn6teRvdVIbGK+PEMyo
x7HMxxDSWKq12KLRYPdwADuyYUjLjn0bLShh6ejB2AZD51TNiXiMsGS/isrqbe1O
2Fjzfl4SrH2BcWp5rOdu+PTtckka2m9fcWnLGZt1PBztqP0NwIkru2X598aU3rby
+MWeSbo+BkgDjFxGQdb47ybYEZ6MdqkBHrjjfOfDNH+Wvl4LL+IZ+tk+xDku/nkS
EbgpcKEPQjcxka2U3YaqBGJHODsVKK0d9tb6wphyBSBuhnqEvrTZOatmH7wDWFRe
Qbws25U5BPKy3c6PSLKnjoV97Fkgitm8ecjNa7wL+IouqaBUFZfv9Y1EYYpV0ItN
5be898tj6DOBHVR+DH9hvaPnTfSOEr1TU8+P6vqPqJDNHyobT5uefKFFCBH8nfrg
VLSwAwT65i6zWa3tI7iyeea7vD3DEUq6NKq24Qxmu85ny3tDUZWk3vvjLgVJDJra
71M6Jhaiq5U7WW0tjkSPgFEG4yZvVy2bWi/E9JeL1bZez3ZKHTc9OX2XHls+Y5y4
TGiGWMAOX1ULqL40f/9vYU6EJtv+2W/oxsXWS9Z/QGBLHDQWhpFgxBzs4mM9qL86
O+0/TLaqGjWbzAN5lNMahgOFdyc+ZZVy09i8PUAQTi1c2Y1RiUGuFylVrqC318KI
nTXhJlo0xlSYzaWG4rB7
=i47K
-END PGP SIGNATURE-

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



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



RE: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS 5.10

2014-03-04 Thread Jay
Hi Konstantin,

For your questions:

1. What is different with regards to similar question that you asked a week
ago?
A: As you suggested, we upgraded to the latest Java version and the latest
Tmocat 7.x.

2. Have you read the FAQ that I mentioned?
http://wiki.apache.org/tomcat/FAQ/Linux_Unix#Q3
A: yes. In our situation, after started the Tomcat runs from hours to a day
then stops randomly no matter if logout or terminating from the terminal.

3. Are you using nohup?
A: Not yet. will try. 
It seems the issue only on this Sun Sparc platform and Tomcat 7 seems ok
without using nohup on other Sun Sparc machines. 

Do you have suggestion where we can capture the stop reason?

Thanks,
Jay

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Monday, March 03, 2014 5:29 PM
To: Tomcat Users List
Subject: Re: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS
5.10

2014-03-03 21:29 GMT+04:00 Jay mx...@live.com:
 Hello,

 We newly installed Solaris 10 with all default settings on our Sun 
 Sparc machine (sun4u sparc SUNW,UltraAX-i2 64-bit sparcv9 kernel modules).
 The OS Version: SunOS hostname 5.10 Generic_147147-26 sun4u sparc 
 SUNW,UltraAX-i2.

 We downloaded and installed JDK packages as follows:
 jdk-7u51-solaris-sparc.z
 jdk-7u51-solaris-sparcv9.z

 The Java in the environment:
 java version 1.7.0_51
 Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 
 Client VM (build 24.51-b03, mixed mode, sharing)

 We downloaded the  apache-tomcat-7.0.52.tar.gz and just unpacked it in 
 /export/home/tester.
 Then we started the Tomcat server just using ./startup.sh without 
 change of any default settings.
 The Tomcat is started ok listening at 8080 and we can see the Tomcat 
 main page on Web Browser at the port 8080.
 But after several hours it stops itself without obvious reason (not 
 manually killed). and It seems it was not a Shutdown command as there 
 is no message of A valid shutdown command was received via the 
 shutdown port. in the log.

 Is anyone aware about this issue?
 Is it a configuration issue or environment issue?

 Can you please provide any clues or check points?

 Thanks,
 Jay

 PS. Here are the outputs from the logs:
 #
 # cat catalina.out
 Feb 28, 2014 4:12:09 PM org.apache.catalina.core.AprLifecycleListener 
 init
 INFO: The APR based Apache Tomcat Native library which allows optimal 
 performance in production environments was not found on the
 java.library.path: /usr/jdk/packages/lib/sparc:/lib:/usr/lib
 Feb 28, 2014 4:12:12 PM org.apache.coyote.AbstractProtocol init
 INFO: Initializing ProtocolHandler [http-bio-8080] Feb 28, 2014 
 4:12:12 PM org.apache.coyote.AbstractProtocol init
 INFO: Initializing ProtocolHandler [ajp-bio-8009] Feb 28, 2014 
 4:12:12 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 5782 ms Feb 28, 2014 4:12:12 PM 
 org.apache.catalina.core.StandardService
 startInternal
 INFO: Starting service Catalina
 Feb 28, 2014 4:12:12 PM org.apache.catalina.core.StandardEngine
 startInternal
 INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 Feb 28, 2014 
 4:12:12 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory 
 /export/home/tester/apache-tomcat-7.0.52/webapps/manager
 Feb 28, 2014 4:12:16 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory 
 /export/home/tester/apache-tomcat-7.0.52/webapps/docs
 Feb 28, 2014 4:12:17 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory 
 /export/home/tester/apache-tomcat-7.0.52/webapps/examples
 Feb 28, 2014 4:12:21 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory 
 /export/home/tester/apache-tomcat-7.0.52/webapps/ROOT
 Feb 28, 2014 4:12:21 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory 
 /export/home/tester/apache-tomcat-7.0.52/webapps/host-manager
 Feb 28, 2014 4:12:22 PM org.apache.coyote.AbstractProtocol start
 INFO: Starting ProtocolHandler [http-bio-8080] Feb 28, 2014 4:12:22 
 PM org.apache.coyote.AbstractProtocol start
 INFO: Starting ProtocolHandler [ajp-bio-8009] Feb 28, 2014 4:12:22 
 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 10031 ms
 Mar 01, 2014 2:00:50 AM org.apache.coyote.AbstractProtocol pause
 INFO: Pausing ProtocolHandler [http-bio-8080] Mar 01, 2014 2:00:50 
 AM org.apache.coyote.AbstractProtocol pause
 INFO: Pausing ProtocolHandler [ajp-bio-8009] Mar 01, 2014 2:00:50 AM 
 org.apache.catalina.core.StandardService
 stopInternal
 INFO: Stopping service Catalina
 Mar 01, 2014 2:00:50 AM org.apache.coyote.AbstractProtocol stop
 INFO: Stopping ProtocolHandler [http-bio-8080] Mar 01, 2014 2:00:50 
 AM org.apache.coyote.AbstractProtocol stop
 INFO: Stopping ProtocolHandler [ajp-bio-8009] Mar

RE: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS 5.10

2014-03-06 Thread Jay
Case update:

Started Tomcat using nohup ./startup.sh
###
...
Mar 04, 2014 10:23:34 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [http-bio-8080]
Mar 04, 2014 10:23:34 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [ajp-bio-8009]
Mar 04, 2014 10:23:34 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10369 ms
###

It has been running 2 days and it is still alive now.
As tested, it could stops itself from about half day to several days
randomly ... event it looks so far so good but we are still watching.

If nohup does work, can you please give us some clues regarding the
questions?
As Tomcat launches daemons after starting,  what is actual difference
between using nohup and not?
Normally, Tomcat can be started without using nohup on Linux and Unix
including Solaris ... what would be the possible specific reason that we
have to use nohup in our env.?

If the Tomcat is use as embedded in other product, what would be the affects
if it has to be started with nohup?

Thanks,
Jay

-Original Message-
From: Jay [mailto:mx...@live.com] 
Sent: Tuesday, March 04, 2014 10:22 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS
5.10

Hi Konstantin,

For your questions:

1. What is different with regards to similar question that you asked a week
ago?
A: As you suggested, we upgraded to the latest Java version and the latest
Tmocat 7.x.

2. Have you read the FAQ that I mentioned?
http://wiki.apache.org/tomcat/FAQ/Linux_Unix#Q3
A: yes. In our situation, after started the Tomcat runs from hours to a day
then stops randomly no matter if logout or terminating from the terminal.

3. Are you using nohup?
A: Not yet. will try. 
It seems the issue only on this Sun Sparc platform and Tomcat 7 seems ok
without using nohup on other Sun Sparc machines. 

Do you have suggestion where we can capture the stop reason?

Thanks,
Jay

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
Sent: Monday, March 03, 2014 5:29 PM
To: Tomcat Users List
Subject: Re: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS
5.10

2014-03-03 21:29 GMT+04:00 Jay mx...@live.com:
 Hello,

 We newly installed Solaris 10 with all default settings on our Sun 
 Sparc machine (sun4u sparc SUNW,UltraAX-i2 64-bit sparcv9 kernel modules).
 The OS Version: SunOS hostname 5.10 Generic_147147-26 sun4u sparc 
 SUNW,UltraAX-i2.

 We downloaded and installed JDK packages as follows:
 jdk-7u51-solaris-sparc.z
 jdk-7u51-solaris-sparcv9.z

 The Java in the environment:
 java version 1.7.0_51
 Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 
 Client VM (build 24.51-b03, mixed mode, sharing)

 We downloaded the  apache-tomcat-7.0.52.tar.gz and just unpacked it in 
 /export/home/tester.
 Then we started the Tomcat server just using ./startup.sh without 
 change of any default settings.
 The Tomcat is started ok listening at 8080 and we can see the Tomcat 
 main page on Web Browser at the port 8080.
 But after several hours it stops itself without obvious reason (not 
 manually killed). and It seems it was not a Shutdown command as there 
 is no message of A valid shutdown command was received via the 
 shutdown port. in the log.

 Is anyone aware about this issue?
 Is it a configuration issue or environment issue?

 Can you please provide any clues or check points?

 Thanks,
 Jay

 PS. Here are the outputs from the logs:
 #
 # cat catalina.out
 Feb 28, 2014 4:12:09 PM org.apache.catalina.core.AprLifecycleListener
 init
 INFO: The APR based Apache Tomcat Native library which allows optimal 
 performance in production environments was not found on the
 java.library.path: /usr/jdk/packages/lib/sparc:/lib:/usr/lib
 Feb 28, 2014 4:12:12 PM org.apache.coyote.AbstractProtocol init
 INFO: Initializing ProtocolHandler [http-bio-8080] Feb 28, 2014
 4:12:12 PM org.apache.coyote.AbstractProtocol init
 INFO: Initializing ProtocolHandler [ajp-bio-8009] Feb 28, 2014
 4:12:12 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 5782 ms Feb 28, 2014 4:12:12 PM 
 org.apache.catalina.core.StandardService
 startInternal
 INFO: Starting service Catalina
 Feb 28, 2014 4:12:12 PM org.apache.catalina.core.StandardEngine
 startInternal
 INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 Feb 28, 2014
 4:12:12 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory 
 /export/home/tester/apache-tomcat-7.0.52/webapps/manager
 Feb 28, 2014 4:12:16 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory 
 /export/home/tester/apache-tomcat-7.0.52/webapps/docs
 Feb 28, 2014 4:12:17 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory 
 /export/home

RE: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS 5.10

2014-03-06 Thread Jay
Thanks André for your explanations!

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Thursday, March 06, 2014 12:34 PM
To: Tomcat Users List
Subject: Re: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS
5.10

Jay wrote:
 Case update:
 
 Started Tomcat using nohup ./startup.sh
 ###
 ...
 Mar 04, 2014 10:23:34 AM org.apache.coyote.AbstractProtocol start
 INFO: Starting ProtocolHandler [http-bio-8080] Mar 04, 2014 10:23:34 
 AM org.apache.coyote.AbstractProtocol start
 INFO: Starting ProtocolHandler [ajp-bio-8009] Mar 04, 2014 10:23:34 
 AM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 10369 ms
 ###
 
 It has been running 2 days and it is still alive now.
 As tested, it could stops itself from about half day to several days 
 randomly ... event it looks so far so good but we are still watching.
 
 If nohup does work, can you please give us some clues regarding the 
 questions?
 As Tomcat launches daemons after starting,

No, it doesn't.

  what is actual difference
 between using nohup and not?
 Normally, Tomcat can be started without using nohup on Linux and Unix 
 including Solaris ... what would be the possible specific reason that 
 we have to use nohup in our env.?

There is apparently some fundamental misunderstanding there on your part.

Normally, on Unix/Linux systems, daemon programs are launched via system
startup scripts, which live in directories such as /etc/rc2.d (which
actually are links to files in a directory /etc/init.d or similar).
These startup scripts are run by an init program, which *does* run them so
as to daemonise the corresponding programs. (*)

But when you run Tomcat's startup.sh script from a console window, you are
not using this init program, and there is nothing which insures that the
corresponding program that you start (in this case, a java JVM) is
daemonised.
So when you disconnect your console (or logout), the running program gets
killed (by a SIGHUP signal sent by the OS).
*Unless* you start the program under nohup, which is specifically designed
to catch (and
ignore) this SIGHUP signal, and leave the started program running even after
you disconnect its console.

The real solution, if you intend to have Tomcat running as a daemon, would
be to create an appropriate startup script in the appropriate directory.  If
you need to create it from scratch, either take one of the existing ones
(see Apache httpd for example) and modify it, or ask someone for such a
script appropriate for Tomcat under Solaris.

(*) Note: each Unix/Linux version varies a bit as to where these startup
scripts are located, and I don't remember for Solaris.  It may be
/sbin/init.d/rc.d or similar). Do a man init to find out.


 
 If the Tomcat is use as embedded in other product, what would be the 
 affects if it has to be started with nohup?
 
 Thanks,
 Jay
 
 -Original Message-
 From: Jay [mailto:mx...@live.com]
 Sent: Tuesday, March 04, 2014 10:22 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 7.0.52 stops after hours on our Sun Sparc with 
 SunOS
 5.10
 
 Hi Konstantin,
 
 For your questions:
 
 1. What is different with regards to similar question that you asked a 
 week ago?
 A: As you suggested, we upgraded to the latest Java version and the 
 latest Tmocat 7.x.
 
 2. Have you read the FAQ that I mentioned?
 http://wiki.apache.org/tomcat/FAQ/Linux_Unix#Q3
 A: yes. In our situation, after started the Tomcat runs from hours to 
 a day then stops randomly no matter if logout or terminating from the
terminal.
 
 3. Are you using nohup?
 A: Not yet. will try. 
 It seems the issue only on this Sun Sparc platform and Tomcat 7 seems 
 ok without using nohup on other Sun Sparc machines.
 
 Do you have suggestion where we can capture the stop reason?
 
 Thanks,
 Jay
 
 -Original Message-
 From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
 Sent: Monday, March 03, 2014 5:29 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 7.0.52 stops after hours on our Sun Sparc with 
 SunOS
 5.10
 
 2014-03-03 21:29 GMT+04:00 Jay mx...@live.com:
 Hello,

 We newly installed Solaris 10 with all default settings on our Sun 
 Sparc machine (sun4u sparc SUNW,UltraAX-i2 64-bit sparcv9 kernel
modules).
 The OS Version: SunOS hostname 5.10 Generic_147147-26 sun4u sparc 
 SUNW,UltraAX-i2.

 We downloaded and installed JDK packages as follows:
 jdk-7u51-solaris-sparc.z
 jdk-7u51-solaris-sparcv9.z

 The Java in the environment:
 java version 1.7.0_51
 Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 
 Client VM (build 24.51-b03, mixed mode, sharing)

 We downloaded the  apache-tomcat-7.0.52.tar.gz and just unpacked it 
 in /export/home/tester.
 Then we started the Tomcat server just using ./startup.sh without 
 change of any default settings.
 The Tomcat is started ok listening at 8080 and we can see the Tomcat 
 main page on Web Browser at the port 8080.
 But after several

RE: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS 5.10

2014-03-07 Thread Jay
Update: 
It has been running ok more than 3 days after using nohup ./startup.sh

Correction: 
Instead of the misleading Daemon, I actually meant that Tomcat starts by
./startup.sh with following parameters: 
###
/usr/bin/java
-Djava.util.logging.config.file=/home/tester/apache-tomcat-7.0.52/conf/loggi
ng.properties 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.endorsed.dirs=/home/tester/apache-tomcat-7.0.52/endorsed 
-classpath
/home/tester/apache-tomcat-7.0.52/bin/bootstrap.jar:/home/tester/apache-tomc
at-7.0.52/bin/tomcat-juli.jar 
-Dcatalina.base=/home/tester/apache-tomcat-7.0.52 
-Dcatalina.home=/home/tester/apache-tomcat-7.0.52 
-Djava.io.tmpdir=/home/tester/apache-tomcat-7.0.52/temp
org.apache.catalina.startup.Bootstrap start
###
Tomcat instance launches its background processes which seems to detached
from the console/terminal (Please correct if it is not right phrase.) 
As normally, those backend processes keep alive event the user logout or
disconnect from the console/terminal where the Tomcat instance was launched.
(this was what I meant)
Actually, we start Tomcat just using ./startup.sh on Linux the same way as
we started it on this SunOS and it never stops on Linux unless stopping it
using shutdown. 
As we know many people also start the Tomcat as this way on their Linux and
Solaris machines without this issue.

Questions:
1. As Tomcat gives a message of A valid shutdown command was received via
the shutdown port. in the log when it receives the signal from a Shutdown
command. 
What message can we see in the log when the Tomcat receives the SIGHUP
and/or SIGTERM, etc. that stops the Tomcat?

2. When Tomcat receives the SIGHUP and/or SIGTERM, will Tomcat stop
immediately or Tomcat would stop itself after a half day or several days
randomly?

3. If there are multiple users connected to the Solaris with the
consoles/terminals, would the Tomcat receives the SIGHUP and/or SIGTERM when
any of user logs out and/or disconnected from the Solaris?

4. Will the Solaris send the SIGHUP and/or SIGTERM to the Tomcat immediately
just the user logged out and/or terminated from the Solaris? 
  or Solaris would wait and then sent the SIGHUP and/or SIGTERM to the
Tomcat after a half day or several days randomly?

Thanks,
Jay

-Original Message-
From: Jay [mailto:mx...@live.com] 
Sent: Thursday, March 06, 2014 2:22 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS
5.10

Thanks André for your explanations!

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Sent: Thursday, March 06, 2014 12:34 PM
To: Tomcat Users List
Subject: Re: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS
5.10

Jay wrote:
 Case update:
 
 Started Tomcat using nohup ./startup.sh
 ###
 ...
 Mar 04, 2014 10:23:34 AM org.apache.coyote.AbstractProtocol start
 INFO: Starting ProtocolHandler [http-bio-8080] Mar 04, 2014 10:23:34 
 AM org.apache.coyote.AbstractProtocol start
 INFO: Starting ProtocolHandler [ajp-bio-8009] Mar 04, 2014 10:23:34 
 AM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 10369 ms
 ###
 
 It has been running 2 days and it is still alive now.
 As tested, it could stops itself from about half day to several days 
 randomly ... event it looks so far so good but we are still watching.
 
 If nohup does work, can you please give us some clues regarding the 
 questions?
 As Tomcat launches daemons after starting,

No, it doesn't.

  what is actual difference
 between using nohup and not?
 Normally, Tomcat can be started without using nohup on Linux and Unix 
 including Solaris ... what would be the possible specific reason that 
 we have to use nohup in our env.?

There is apparently some fundamental misunderstanding there on your part.

Normally, on Unix/Linux systems, daemon programs are launched via system
startup scripts, which live in directories such as /etc/rc2.d (which
actually are links to files in a directory /etc/init.d or similar).
These startup scripts are run by an init program, which *does* run them so
as to daemonise the corresponding programs. (*)

But when you run Tomcat's startup.sh script from a console window, you are
not using this init program, and there is nothing which insures that the
corresponding program that you start (in this case, a java JVM) is
daemonised.
So when you disconnect your console (or logout), the running program gets
killed (by a SIGHUP signal sent by the OS).
*Unless* you start the program under nohup, which is specifically designed
to catch (and
ignore) this SIGHUP signal, and leave the started program running even after
you disconnect its console.

The real solution, if you intend to have Tomcat running as a daemon, would
be to create an appropriate startup script in the appropriate directory.  If
you need

RE: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS 5.10

2014-03-07 Thread Jay
Thanks Chris for answering all the questions!

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Friday, March 07, 2014 3:36 PM
To: Tomcat Users List
Subject: Re: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS 5.10

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jay,

On 3/7/14, 1:46 PM, Jay wrote:
 Tomcat instance launches its background processes which seems to 
 detached from the console/terminal (Please correct if it is not right 
 phrase.)

Here is the misunderstanding: Tomcat's scripts launch Tomcat in the 
background, but it does not disconnect from the terminal. When you kill the 
terminal (i.e. log out), a signal is sent to all processes bound to the 
terminal that says terminal hung up -- that's why its called SIGHUP Hang UP 
from the old days when terminals were things like telephone lines that could be 
off-hook on on-hook.

When the JVM receives this process on Solaris (and not all Solarises, not all 
versions, not all configurations), the JVM quits.

Using nohup does in fact divorce the JVM from the terminal so that when the 
terminal exits (because you logged-out), the SIGHUP does not kill the JVM.

 As normally, those backend processes keep alive event the user logout 
 or disconnect from the console/terminal where the Tomcat instance was 
 launched. (this was what I meant)

Normal for you is abnormal for others. Solaris is a very old time-sharing 
system and the SIGHUP thing was designed to kill processes when the remote user 
went-away. If you want them to not to die, you have to explicitly use nohup. 
I'm sorry that this is the case on your system, but apparently, its required.

There's nothing the Tomcat team can do to change this.

 Actually, we start Tomcat just using ./startup.sh on Linux the same 
 way as we started it on this SunOS and it never stops on Linux unless 
 stopping it using shutdown.

Different environment. Different kernel. Different userspace.
Different shell. Different everything. Ever heard the term GNU's Not UNIX? 
Well, guess what? Solaris /is/ UNIX, and GNU/Linux isn't that.
They may smell the same, but they are very different.

 As we know many people also start the Tomcat as this way on their 
 Linux and Solaris machines without this issue.

Ev-e-ry siiistem's different, er-e-ry sistem's god. If a 
system's wasted, in your neighborhood...

 Questions: 1. As Tomcat gives a message of A valid shutdown command 
 was received via the shutdown port. in the log when it receives the 
 signal from a Shutdown command. What message can we see in the log 
 when the Tomcat receives the SIGHUP and/or SIGTERM, etc. that stops 
 the Tomcat?

Tomcat cannot receive the signal, only the JVM can. You'll see that the 
connectors are shut down gracefully, etc. and the server stops.
So, basically, exactly what you have already observed.

 2. When Tomcat receives the SIGHUP and/or SIGTERM, will Tomcat stop 
 immediately or Tomcat would stop itself after a half day or several 
 days randomly?

Tomcat will shut down as fast as it can. So, immediately.

 3. If there are multiple users connected to the Solaris with the 
 consoles/terminals, would the Tomcat receives the SIGHUP and/or 
 SIGTERM when any of user logs out and/or disconnected from the 
 Solaris?

It should only be tied to the terminal that was used to launch it.
But, Solaris might have complicated rules for parent-process inheritance when a 
process's parent dies. It may be re-inherited several times before it's 
eventually killed.

 4. Will the Solaris send the SIGHUP and/or SIGTERM to the Tomcat 
 immediately just the user logged out and/or terminated from the 
 Solaris? or Solaris would wait and then sent the SIGHUP and/or SIGTERM 
 to the Tomcat after a half day or several days randomly?

It should happen immediately.

You should really be asking your administrator about this. We are not Solaris 
experts.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTGi26AAoJEBzwKT+lPKRY8wEP/RDHlc0KHIAFeS3Za5kPODBv
BUOm75wt96sDDFok0qITPV7WDp3Mstb8mnz0Be6+0TONpx6CPqXj4LtfD7aR/Bas
BdTJWPuaXUeOE+BoejCl23+jADCwHccE1S3KJE5nno8TZ7yjDWxV6BN3krkyY6Bk
wV52ITPWM56Uecyzz2voXDgsypS6WUIAHPHOkAJNMsumDQnTaQZqTDJZ0f1s0YVD
9VXcQ6CqGquijw81PhcA4f64U9gb0+cBxupKayl2Sx6sGSlw9F/3QrM88iMBEuY3
xNm/g9bBKzxjMyDDAuhU67fP2HeUNDzpeWn6ZpNOTQ7kar+wyyqDcKaaOxPb1CQ7
ef7Zb/o0355syi2l7JT5V7FNp3HxXMkFxtQRVvXLEh4kKw0c4RMV+iz3Vf5pWvQL
9pffQHBu1p1lUZk5vvMqxyGN/d6GRahwMQMImuTK52GOW0VK5J9TkGthEbg4UIXE
uwL5Z+nCbMGYVT+Zheij6Uq4WyDpyyoy7WHF3JSzhw0I64TOXEnH1MTwmjQ6orgt
qyd9tShHnk/gTGOEBvvGZuikbPTMt2WAZW95UEIXMUaLupqAz+NLcAepvNYfpUpB
NSJNf4meCwdBydVeZ1WHXRxn5ADDgR3dPpP5IdZf1dBZ8lBQP4Wo+RC8/TKBGhsn
jE7p9Y1RounMVJk1TSdL
=ykQx
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr

Multiple SSL Virtual Hosts on Port 443 - Tomcat 5.5.12

2005-10-20 Thread Jay Thompson


I am trying to configure tomcat 5.5.12 for multiple virtual hosts on port 
443. SSL works fine

if I set server.xml to listen for all IPs on port 443...

connection port=443
   blah
   blah/

However, if I try to configure to listen to a specific IP address on port 
443...


connection port=443
   address=111.112.113.114
   blah
   blah/

It doesn't work. Tomcat starts just fine. No errors. A run of netstat shows 
the server listening
on port 443 for the applicable IP address, but when I try to access the 
site with a browser, it
fails (IE reports Page cannot be displayed, Firefox reports Refused 
connection).


By the way...I get the same behavior if I use Apache as the server. When I 
set httpd.conf as...


Listen 443

It works fine, but if I set httpd.conf as...

Listen 111.112.113.114:443

I get the same behavior I got with tomcat.

Any ideas?




---
Jay Thompson
Support Systems Analyst, Sr.
Northern Arizona University
School of Forestry
[EMAIL PROTECTED]
(928) 523-8033


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



Re: Tomcat 5.5.12 - Why does app undeploy when war file deleted

2005-10-21 Thread Jay Thompson


OK...I've answered my own question...but just in case someone else needs 
the answer...


...the Tomcat 4 Host attribute named liveDeploy has been renamed 
autoDeploy in Tomcat 5,
and the Tomcat 4 attribute named autoDeploy has been renamed 
deployOnStartup in Tomcat 5.

(from www.onjava.com).

So, to stop the behavior, I needed to change the host lines that read:...

unpackWARs=true
autoDeploy=true

to read...

unpackWARs=true
autoDeploy=false
deployOnStartup=true

Note: You have to explicitly set autoDeploy to false  because it defaults 
to true unless
specified otherwise (I left the unpackWARs line in there just so it's clear 
what to set).


With these settings, war files deploy only on startup...then, later, if the 
war files are removed,

the deployed application stays.

Jay



At 07:42 AM 10/21/2005, Jay wrote:

I have been running Tomcat 4.x for about a year. When I wish to deploy a 
war file, I...


- Copy the war file to it where it belongs (keeping original war file on 
another storage server)

- Restart Tomcat
- Wait for successful deployment
- Delete war file  (to save disk space on tomcat server)

Now, when I use the same approach under Tomcat 5.5.12, as soon as I delete the
war file, Tomcat undeploys the application. Is there a way to config TC 
5.x to not do this?




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



---
Jay Thompson
Support Systems Analyst, Sr.
Northern Arizona University
School of Forestry
[EMAIL PROTECTED]
(928) 523-8033


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



Servlet Filter Not Intercepting?

2008-01-01 Thread Jay Liu
Hi all,

 

I'm having a problem with filters. I setup filter to block access to a
resource unless the user is authenticated.

 

I've noticed that the resource is accessed then the filter kicks in and then
loads.

 

I thought filters were supposed to intercept the request before the resource
is accessed?

 

Is there something wrong with my xml configuration?

 

Thanks,

Jay



RE: Servlet Filter Not Intercepting?

2008-01-01 Thread Jay Liu
Thanks Martin,

The thing is, I only have one filter, and I believe the XML is specified
correctly. The behavior is something like:

Request - target runs - filter kicks in and I see the filter page.

I know the target gets a request because I see in the apache log a null
pointer exception. 

I feel like there is something fundamental missing in my understanding of
either filters, request/response, forward/redirect or dochain.

I'll read the IBM link now.

Thanks again,
Jay

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 01, 2008 4:46 PM
To: Tomcat Users List
Subject: RE: Servlet Filter Not Intercepting?


2 things1) the order of filter-mapping DOES matter in web.xmlin other words
1st lexically is the first filter to fire 2)any pre-initialisation of the
filter should be accomplished in the init() method()
check out this link from
ibmhttp://www.ibm.com/developerworks/java/library/j-tomcat/
Martin__Disclaimer and
confidentiality noteEverything in this e-mail and any attachments relates to
the official business of Sender. This transmission is of a confidential
nature and Sender does not endorse distribution to any party other than
intended recipient. Sender does not necessarily endorse content contained
within this transmission. From: [EMAIL PROTECTED] To: users@tomcat.apache.org
Subject: Servlet Filter Not Intercepting? Date: Tue, 1 Jan 2008 15:36:21
-0500  Hi all,I'm having a problem with filters. I setup filter to
block access to a resource unless the user is authenticated.I've
noticed that the resource is accessed then the filter kicks in and then
loads.I thought filters were supposed to intercept the request
before the resource is accessed?Is there something wrong with my
xml configuration?Thanks,  Jay 
_
Share life as it happens with the new Windows Live.
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_122007


-
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: Servlet Filter Not Intercepting?

2008-01-02 Thread Jay Liu
Thanks Marcus.

Here's my filter setup. I just created it fresh in netbeans so I'd be
surprised if there is a problem.

I woke up this morning, realizing I forgot to turn off invoking the
resource. Would that matter?

filter
filter-nameUserFilter/filter-name
filter-classstore.filters.UserFilter/filter-class
/filter
filter-mapping
filter-nameUserFilter/filter-name
servlet-nameCheckout/servlet-name
/filter-mapping
servlet
servlet-nameCheckout/servlet-name
 
servlet-classcom.inifim.commerce.store.servlets.transactions.Checkout/ser
vlet-class
/servlet

I only have one filter right now.

Thanks again,
Jay

-Original Message-
From: Milanez, Marcus [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 02, 2008 5:21 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RES: Servlet Filter Not Intercepting?

Hi,

Yes, filters atre supposed to intercept a requets just before it is
accessed. Could you please post your filter config written in your web.xml
file?

Yours,

Marcus Milanez
http://sumatrablog.wordpress.com

-Mensagem original-
De: Jay Liu [mailto:[EMAIL PROTECTED] 
Enviada em: terça-feira, 1 de janeiro de 2008 18:36
Para: users@tomcat.apache.org
Assunto: Servlet Filter Not Intercepting?

Hi all,

 

I'm having a problem with filters. I setup filter to block access to a
resource unless the user is authenticated.

 

I've noticed that the resource is accessed then the filter kicks in and then
loads.

 

I thought filters were supposed to intercept the request before the resource
is accessed?

 

Is there something wrong with my xml configuration?

 

Thanks,

Jay


-
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: Servlet Filter Not Intercepting?

2008-01-03 Thread Jay Liu
Hi,

servlet-mapping
servlet-nameCheckout/servlet-name
url-pattern/Checkout/url-pattern
/servlet-mapping

That's the only mapping I have for it. I will try the url pattern.


The checkout servlet gets invoked, (I see a null pointer thrown from it)
then it gets redirected to the filter. 

I saw an example somewhere that had the mappings altered. That's all.

Thanks again,
Jay
-Original Message-
From: Milanez, Marcus [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 03, 2008 6:30 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RES: Servlet Filter Not Intercepting?

Hi Jay,

Your configuration seems to be fine.. Is your Checkout servlet ever invoked,
cause you haven't posted your servlet-mapping tags. Have you tried mapping
your filter using url-patterns, instead of servlet-name ? And only one more
question, what do you mean by 'turn off invonking the resource' ?

Yours,

Marcus Milanez


-Mensagem original-
De: Jay Liu [mailto:[EMAIL PROTECTED] 
Enviada em: quinta-feira, 3 de janeiro de 2008 01:49
Para: 'Tomcat Users List'
Assunto: RE: Servlet Filter Not Intercepting?

Thanks Marcus.

Here's my filter setup. I just created it fresh in netbeans so I'd be
surprised if there is a problem.

I woke up this morning, realizing I forgot to turn off invoking the
resource. Would that matter?

filter
filter-nameUserFilter/filter-name
filter-classstore.filters.UserFilter/filter-class
/filter
filter-mapping
filter-nameUserFilter/filter-name
servlet-nameCheckout/servlet-name
/filter-mapping
servlet
servlet-nameCheckout/servlet-name
 
servlet-classcom.inifim.commerce.store.servlets.transactions.Checkout/ser
vlet-class
/servlet

I only have one filter right now.

Thanks again,
Jay

-Original Message-
From: Milanez, Marcus [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 02, 2008 5:21 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RES: Servlet Filter Not Intercepting?

Hi,

Yes, filters atre supposed to intercept a requets just before it is
accessed. Could you please post your filter config written in your web.xml
file?

Yours,

Marcus Milanez
http://sumatrablog.wordpress.com

-Mensagem original-
De: Jay Liu [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 1 de janeiro de 2008 18:36
Para: users@tomcat.apache.org
Assunto: Servlet Filter Not Intercepting?

Hi all,

 

I'm having a problem with filters. I setup filter to block access to a
resource unless the user is authenticated.

 

I've noticed that the resource is accessed then the filter kicks in and then
loads.

 

I thought filters were supposed to intercept the request before the resource
is accessed?

 

Is there something wrong with my xml configuration?

 

Thanks,

Jay


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



jk_isapi_plugin.c (1374): error while adding request headers

2008-03-24 Thread Jay Rutten
I am trying to connect IIS 6.0 and Tomcat 5.5 using
isapi_redirect.1.2.26. I consistently get the following message in my
log:

 

[Mon Mar 24 21:11:31.013 2008] [920:1608] [error] jk_isapi_plugin.c
(1374): error while adding request headers

 

My workers.properties contain:

 

# runtimes have a single entry point

worker.list=runtime1,jkstatus

#runtime basics define the basic configuration of all runtimes

worker.runtimebasic.type=ajp13

worker.runtimebasic.host=ord-iqrtdev

worker.runtimebasic.lbfactor=1

#define the real runtime instances

worker.runtime1.port=8319

worker.runtime1.reference=worker.runtimebasic



worker.jkstatus.type=status

 

My uriworkmap.properties contains:

 

# runtimes are accessed through the single webapp

/inquiragw/*=runtime1

 

# for jk status 

/jkmanager=jkstatus

 

The result is either a 500 or a single line on the page:

 

The parameter is incorrect.

 

(I would love to know what parameter it is referring to!)

 

From the line of code specified in the message, it is clear the
AddHeader or SetHeader is failing and the request is not even getting to
Tomcat.  Any ideas why the 2 methods would be failing or how I could
hunt this down? Unfortunately, I do not have access to MSVC so I cannot
rebuild the dll.

 

Any help would be greatly appreciated!

Jay

 

 



RE: jk_isapi_plugin.c (1374): error while adding request headers

2008-03-25 Thread Jay Rutten
Logging level is at debug. It appears from the log that everything is
ok, but I then I get the header error below. Here are several lines
above the error:

[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_worker.c (241):
creating worker jkstatus
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_worker.c (145):
about to create instance jkstatus of status
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_worker.c (158):
about to validate and init jkstatus
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_status.c (3608):
Status worker 'jkstatus' is read/write and has css '(null)', prefix
'worker', name space 'jk:', xml name space
'xmlns:jk=http://tomcat.apache.org;', document type '(null)'
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_status.c (3659):
Status worker 'jkstatus' has good rating for '000f' and bad rating
for '00ff1010'
[Mon Mar 24 21:11:31.013 2008] [920:1608] [info] jk_isapi_plugin.c
(1783): isapi_redirect/1.2.26 initialized
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_isapi_plugin.c
(1199): Filter started
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_uri_worker_map.c
(682): Attempting to map URI '/localhost/inquiragw/ui.jsp' from 2 maps
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_uri_worker_map.c
(503): Attempting to map context URI '/inquiragw/*=runtime1' source
'uriworkermap'
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_uri_worker_map.c
(503): Attempting to map context URI '/jkmanager=jkstatus' source
'uriworkermap'
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_uri_worker_map.c
(503): Attempting to map context URI '/inquiragw/*=runtime1' source
'uriworkermap'
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_uri_worker_map.c
(516): Found a wildchar match '/inquiragw/*=runtime1'
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_isapi_plugin.c
(1277): check if [/inquiragw/ui.jsp] points to the web-inf directory
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_isapi_plugin.c
(1294): [/inquiragw/ui.jsp] is a servlet url - should redirect to
runtime1
[Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_isapi_plugin.c
(1336): fowarding escaped URI [/inquiragw/ui.jsp]
[Mon Mar 24 21:11:31.013 2008] [920:1608] [error] jk_isapi_plugin.c
(1374): error while adding request headers

This happens for all URLs, including /jkmanager (i.e. jkstatus worker).

-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2008 1:53 AM
To: Tomcat Users List
Subject: Re: jk_isapi_plugin.c (1374): error while adding request
headers

Mark Thomas wrote:
 Jay Rutten wrote:
 The result is either a 500 or a single line on the page:
 The parameter is incorrect.

 (I would love to know what parameter it is referring to!)

 From the line of code specified in the message, it is clear the
 AddHeader or SetHeader is failing and the request is not even getting
to
 Tomcat.  Any ideas why the 2 methods would be failing or how I could
 hunt this down? Unfortunately, I do not have access to MSVC so I
cannot
 rebuild the dll.

 Any help would be greatly appreciated!
 
 Turn up the logging level. debug should tell you what you want to
know.
 You'll need to edit the registry. See 
 http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html

In addition to Mark's recommendation: is this happening for every URL? 
Does it also happen for jkstatus?

-
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: jk_isapi_plugin.c (1374): error while adding request headers

2008-03-25 Thread Jay Rutten
 contact is 'ord-iqrtdev:8319'
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2380): setting endpoint options:
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2383): keepalive:0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2387): timeout:  0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2391): buffer size:  0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2395): pool timeout: 0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2399): connect timeout:  0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2403): reply timeout:0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2407): prepost timeout:  0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2411): recovery options: 0
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2415): retries:  2
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2419): max packet size:  8192
[Mon Mar 24 21:11:30.997 2008] [920:1608] [debug] jk_ajp_common.c
(2288): setting connection pool size to 250 with min 125


-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2008 8:53 AM
To: Tomcat Users List
Subject: Re: jk_isapi_plugin.c (1374): error while adding request
headers

Jay Rutten wrote:
 Logging level is at debug. It appears from the log that everything is
 ok, but I then I get the header error below. Here are several lines
 above the error:

The log snippet doesn't contain the init of the worker runtime1, but I 
assume, you checked that.

...
 [Mon Mar 24 21:11:31.013 2008] [920:1608] [info] jk_isapi_plugin.c
 (1783): isapi_redirect/1.2.26 initialized
 [Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_isapi_plugin.c
 (1199): Filter started
 [Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_uri_worker_map.c
 (682): Attempting to map URI '/localhost/inquiragw/ui.jsp' from 2 maps
 [Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_uri_worker_map.c
 (503): Attempting to map context URI '/inquiragw/*=runtime1' source
 'uriworkermap'
 [Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_uri_worker_map.c
 (503): Attempting to map context URI '/jkmanager=jkstatus' source
 'uriworkermap'
 [Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_uri_worker_map.c
 (503): Attempting to map context URI '/inquiragw/*=runtime1' source
 'uriworkermap'
 [Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_uri_worker_map.c
 (516): Found a wildchar match '/inquiragw/*=runtime1'
...
 [Mon Mar 24 21:11:31.013 2008] [920:1608] [debug] jk_isapi_plugin.c
 (1336): fowarding escaped URI [/inquiragw/ui.jsp]
 [Mon Mar 24 21:11:31.013 2008] [920:1608] [error] jk_isapi_plugin.c
 (1374): error while adding request headers
 
 This happens for all URLs, including /jkmanager (i.e. jkstatus
worker).
 
 -Original Message-
 From: Rainer Jung [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 25, 2008 1:53 AM
 To: Tomcat Users List
 Subject: Re: jk_isapi_plugin.c (1374): error while adding request
 headers
 
 Mark Thomas wrote:
 Jay Rutten wrote:
 The result is either a 500 or a single line on the page:
 The parameter is incorrect.

 (I would love to know what parameter it is referring to!)

 From the line of code specified in the message, it is clear the
 AddHeader or SetHeader is failing and the request is not even
getting
 to
 Tomcat.  Any ideas why the 2 methods would be failing or how I could
 hunt this down? Unfortunately, I do not have access to MSVC so I
 cannot
 rebuild the dll.

 Any help would be greatly appreciated!
 Turn up the logging level. debug should tell you what you want to
 know.
 You'll need to edit the registry. See 
 http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html
 
 In addition to Mark's recommendation: is this happening for every URL?

 Does it also happen for jkstatus?

And what did you set in the registry resp. in the isapi properties file?

-
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: BASIC authentication to DIGEST authentication

2006-03-08 Thread Jay Burgess
Mark,

Thanks for the quick (and useful) reply.  I'll dig through those issues and see
if any of them apply.  And hopefully I can find a solution that doesn't involve
a TC upgrade, as I can't do that at this point.

Thanks again.

Jay

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 4:38 PM
To: Tomcat Users List
Subject: Re: BASIC authentication to DIGEST authentication

Jay Burgess wrote:
 Given that I've got BASIC authentication working for my webapp using cleartext
 passwords, shouldn't I simply be able to change my auth-method from BASIC 
 to
 DIGEST in login-config and it should start working using digest
authentication? 
 
 It's not, obviously, but I've seen previous posts in this group that say 
 things
 like clear text + DIGEST - works!, so I think it's doable.  I'm using TC
 5.0.19 by the way.

Yes, it should just work. However, there have been a bunch of fixes in
this area. You may hit any of the following bugs/missing features:

http://issues.apache.org/bugzilla/show_bug.cgi?id=9851
http://issues.apache.org/bugzilla/show_bug.cgi?id=37132
http://issues.apache.org/bugzilla/show_bug.cgi?id=31198
5.5.5 Add DIGEST authentication support to the JDBC and DataSource
realms. Supports both digested and cleartext passwords. (markt)
http://issues.apache.org/bugzilla/show_bug.cgi?id=32137
http://issues.apache.org/bugzilla/show_bug.cgi?id=31592

If you want to digest the passwords in tomcat-users.xml (or wherever
you store them) then a little more work is required and you may hit
more problems.

Mark


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







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



RE: Working flow of Authentication

2006-03-13 Thread Jay Burgess
Having just looked into the same thing, I found the following two articles to be
 an extremely useful introduction:

http://www.rassoc.com/gregr/weblog/stories/2002/07/09/webServicesSecurityHttpDigestAuthenticationWithoutActiveDirectory.html
http://www.xml.com/lpt/a/2003/12/17/dive.html

And as Mark indicates, RFC 2617 is ultimately the definitive reference. 

Jay

| Jay Burgess [Vertical Technology Group]
| http://www.vtgroup.com/


-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 13, 2006 12:41 PM
To: Tomcat Users List
Subject: Re: Working flow of Authentication

Jeyabalan, Prakash wrote:
 Could any one pls get me the detail in flow of Digest Authentication.

http://www.ietf.org/rfc/rfc2617.txt?number=2617

Mark

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






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



RE: Somewhat OT: Multiple auth methods in one webapp?

2006-03-16 Thread Jay Burgess
Frank,

I pursued a very similar exercise last week. I have a webapp using BASIC
authentication and wanted to add in an RSS interface that used DIGEST
authentication.  Unfortunately, I never could figure out how to do this in a
single webapp.  I figured I'd chime in, though, as I think it'd be a nice
feature if it's not already possible.

Jay

| Jay Burgess [Vertical Technology Group]
| http://www.vtgroup.com/


-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 16, 2006 11:38 AM
To: tomcat-user@jakarta.apache.org
Subject: Somewhat OT: Multiple auth methods in one webapp?

Hello... I marked this Somewhat OT because what I'm trying to accomplish
would ultimately be running in Websphere.  However, I would like to
develop it under Tomcat as I've always done, and it's also a general
webapp question...

I have an existing webapp that uses form-based authentication.  Now I'm
being asked to expose some Web Services from it, and I'm thinking of using
AXIS.  However, one of our requirements is that HTTP be secured with basic
auth.

Ideally I would like to add AXIS to my existing webapp, but it doesn't
seem possible to use both auth forms in a single webapp.  In a perfect
world I could continue to secure the user-accessible app with form-based
auth, but secure just the path to the AXIS-based services via basic auth. 
I'm thinking the only way is to have a second webapp, but can anyone think
of another solution?  Thanks!

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

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






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



RE: return (HexUtils.convert(md.digest())) in RealmBase

2006-03-22 Thread Jay Burgess
I think this is the right answer:

digest() returns a sequence of bytes.  Depending on the values of the individual
bytes, if you were to try and convert it to String, you can end up with
non-printable characters, etc. 

I'm assuming that HexUtils.convert() turns each 4 bits of each byte into a hex
character, so that you end up with a proper String representation of the digest
that can be sent as part of a URL.

Jay

| Jay Burgess [Vertical Technology Group]
| http://www.vtgroup.com/


-Original Message-
From: Alessandro Colantoni [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 22, 2006 12:12 PM
To: Tomcat Users List
Subject: return (HexUtils.convert(md.digest())) in RealmBase

Hi All!
I saw that both method Digest(..) and digest(..) in RealmBase return (
HexUtils.convert(md.digest())) and not just
md.digest().toString.

My problem is that user table is maintained by another application developed
in an other technology.
My application uses this table just to authenticate.
The password of user table is encrypted with an algorithm I've been done.
I wrote a MessageDigestSpi for that algorithm, I wrote my provider, I
registered it and everything looks work fine.
Except that of course if I do:
 RealmBase.Digest(myCredentials,myAlgorithm);

I get a result different from doing
MessageDigest md = MessageDigest.getInstance(myAlgorithm);
md.update(myCredentials.getBytes());
md.digest().toString;

but the same result of
 MessageDigest md = MessageDigest.getInstance(myAlgorithm);
 md.update(myCredentials.getBytes());
HexUtils.convert(md.digest())

So the problem is that the other application stores without using the
HexUtils.convert method
but when tomcat authenticates it uses it.

One solution could be write a Realm class that extends the JDBCRealm (the
one I'm using) and overwrite these methods.
But I'm afraid that in different versions of Tomcat (i don't want link to
one) could be different signature of these methods.
There's another solution?
At least avoiding overwriting these very important methods?

And just for curiosity, why HexUtils.convert has been utilized?

Thanks in advance for help and have a nice springtime
Alessandro





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



No Suitable Driver

2006-05-16 Thread Jay Wallhaus

I keep getting the following error:

javax.servlet.ServletException: Unable to get connection, DataSource
invalid: java.sql.SQLException: No suitable driver
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(
PageContextImpl.java :825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(
PageContextImpl.java:758)
org.apache.jsp.TryDB_jsp._jspService(TryDB_jsp.java:113)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java :94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java :292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

I am using Tomcat 5.0.28, JSDK 1.4.2_08 and MySQL 5.0.20a.

Here is a list of what I can think of that I have tried and nothing resolves
the no suitable driver error:
1) Made sure that mysql-connector-java-3.1.12-bin.jar contains the JDBC
driver.
2) I have tried putting the MySQL JAR ( mysql-connector-java-3.1.12-bin.jar)
in WEB-INF/lib, common/lib and shared/lib.
3) I have tried putting the MySQL JAR ZIP file
mysql-connector-java-3.1.12.zip in WEB-INF/lib, common/lib and shared/lib
4) I have placed % Class.forName(com.mysql.jdbc.Driver); % in the JSP
page.
5) I changed localhost in the URL connection string to 127.0.0.1.
6) I added the MySQL server port 3306 to the URL connection string.
7) I have tried using another MySQL Jar
mysql-connector-java-5.0.0-beta-bin.jar.
8) I have completely uninstalled Tomcat 5.0.28 and reinstalled it.
9) I have completely uninstalled MySQL and reinstalled it, resetting up the
database.
10) I have triple checked the database privileges, login ID (wroxuser),
password (wrox), table (products).

Any suggestions for resolving the No suitable driver problem would be
greatly appreciated.


FW: modJK with and without load balancer

2006-05-24 Thread Raman, Jay
 

 

Is there a difference between the following 2 configurations of
workers.properties?

 

In the first case it is a load balanced configuration with only one
worker

The second case is not a load balanced configuration.

 

When there is only one worker does modJK treat it as if it is the second
case?

Are there performance advantages in the second case?

 

Jay

 

 

 

# Load balancer with 1 worker

worker.list=loadbalancer

worker.router.host=lxdnp636.acme.com

worker.router.port=8009

worker.router.type=ajp13

worker.router.lbfactor=1

worker.router.cache_timeout=120

worker.router.socket_keepalive=1

worker.router.socket_timeout=60

worker.router.disabled=True

worker.loadbalancer.type=lb

worker.loadbalancer.sticky_session=1

worker.loadbalancer.balanced_workers=router

#

# No load balancer

# 

worker.list=router

worker.router.host=lxdnp636.acme.com

worker.router.port=8009

worker.router.type=ajp13

worker.router.lbfactor=1

worker.router.cache_timeout=120

worker.router.socket_keepalive=1

worker.router.socket_timeout=60

worker.router.disabled=True



FW: modJK errors

2006-05-24 Thread Raman, Jay
 

I have the following environment 

Solaris servers running Apache web server 

modJK 1.2.x

Intel servers running RedHat Linux AS 3 update 5

 

Load test directly on Tomcat has not produced any issues.

 

However with modJK we see the site humming along fine even under load
and sometimes when there is no load, the site seems to freeze with the
following mod_jk errors.

 

[Mon May 22 08:14:41 2006] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (961): Can't receive the
response message from tomcat, network problems or tomcat is down
(151.116.4.77:8009), err=-131

 [Mon May 22 08:14:41 2006] [error] ajp_get_reply::jk_ajp_common.c
(1503): Tomcat is down or refused connection. No response has been sent
to the client (yet)

 

Any ideas on where to start debugging this issue?

 

The workers.properties file has a loadbalancer with 1 enabled worker and
3 disabled workers.

 

 

Thanks

Jay

 



mod_jk error

2006-05-24 Thread Raman, Jay
Environment: 

Apache 2.0.54 running on Solaris

modJK 1.2.14 running on Solaris 

Tomcat 5.0.28 running on RedHat Linux AS 3

Workers.properties file:

 

worker.list=router

worker.router.host=lxdnp636.acme.com

worker.router.port=8009

worker.router.type=ajp13

worker.router.lbfactor=1

worker.router.cache_timeout=120

worker.router.socket_keepalive=1

worker.router.socket_timeout=60

worker.router.disabled=True

 

Every 4 or 5 hours we see the following error in mod_jk log.

 

[Wed May 24 21:10:00 2006] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (961): Can't receive the
response message from tomcat, network problems or tomcat is down
(151.116.4.77:8009), err=-131

 

When this happens, no response comes back when hitting the web server
URL

However if you hit the Tomcat URL results come back instantaneously.

 

This is not related to load since it happens even at 2 am when there is
no load.

 

Any help will be greatly appreciated!

 

Things become alright after 5 or 10 minutes!

 

Broadcom Ethernet NIC with tg3 driver

Solution slightly improved with the older unsupported bcm5700 driver.

 

 

 

Jay

 



RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Jay Burgess
I'm coming into this discussion late, so ignore this if it's offbase, but it
looks like you are using absolute paths for both appBase and docBase:

Host name=localhost appBase=/usr/local/tomcat/webapps

Context path=/smsinfo docBase=/usr/local/tomcat/webapps/smsinfo

The docBase docs say You may specify an absolute pathname for this directory or
WAR file, or a pathname that is relative to the appBase directory of the owning
Host.

Shouldn't you be using a relative path for docBase, not an absolute one?

Jay

| Jay Burgess [Vertical Technology Group]
| http://www.vtgroup.com/

-Original Message-
From: Allen Williams [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 3:34 PM
To: Tomcat Users List
Subject: RE: More (Unending) Resource Not Found/ Directory Problems

Oooo-kay.  I went and (re)read the document you suggested, did
change docbase in the Context element to docBase (which I did
miss until you pointed it out), and the same thing still hap-
pens.  Evidently, there's no way to tell tomcat how many times
I've read the documentation;-)

I know this is bound to be some stupid little thing I've missed
(I actually had high hopes with the docbase-docBase change),
but I don't know what it is.

 -Original Message-
 From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 4:11 PM
 To: Tomcat Users List
 Subject: Re: More (Unending) Resource Not Found/ Directory Problems
 
 
 On 5/25/06, Allen Williams [EMAIL PROTECTED] wrote:
  Are the absolute paths like
  http://localhost:8080/smsinfo;
  or like /usr/local/tomcat/webapps/smsinfo?
 
 File system paths, your second choice :-)
 
  Also, I assume by docBase you mean the docbase attribute in the Context
  element.
 
 Sweet mother of -- no, I mean docBase, which, if you *read* the
 Fine Documentation at
 http://tomcat.apache.org/tomcat-5.5-doc/config/context.html,
 you'll see is spelled exactly that way *AND IS CASE SENSITIVE*.
 
 OK? Go through your configuration and *look closely* at each element
 and attribute and *check them against the doc*. It'll save you a lot of
 unneccessary frustration. Really. :-)
 
 -- 
 Hassan Schroeder  [EMAIL PROTECTED]
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: More (Unending) Resource Not Found/ Directory Problems

2006-05-25 Thread Jay Burgess
The reason I commented is that I noticed in one of your previous posts a log
error like:

Document base /usr/local/tomcat/webapps/usr/local/tomcat/webapps/smsinfo does
not exist or is not a readable directory.  

Since this message contains the string /usr/local/tomcat/webapps twice, I
thought maybe it was concatenating an absolute appBase with an absolute docBase,
when it should be concatenating an absolute appBase with a relative docBase.

Can you check the same log and see what the error looks like now?

Jay

| Jay Burgess [Vertical Technology Group]
| http://www.vtgroup.com/


-Original Message-
From: Allen Williams [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 4:03 PM
To: Tomcat Users List
Subject: RE: More (Unending) Resource Not Found/ Directory Problems

Thanks.  This all started when I went from a Debian package install to
a more vanilla Linux install.  Under the Debian apt package install,
it put everything into /usr/share/, and everything worked fine until I
tried to install an Ajp13 connector, whereupon it was recommended I do
the vanilla install.  I put the vanilla install into /usr/local (seemed
to make more sense for some reason than /usr/share), and since then my
(very simple, just to get started) app doesn't work.  As you can see from
this thread, it's like it can't find the top-level app directory (which,
of course, I've put under /usr/local/tomcat/webapps).  When I try to access
it, I get a message in my browser that says The requested resource
(/smsinfo/) is not available.

Actually, at the moment, I am back to a relative path for docBase.

Is there anyway to set a higher debug level or something so that maybe
tomcat will print out how he is trying to resolve paths, etc.?

 -Original Message-
 From: Jay Burgess [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 25, 2006 4:53 PM
 To: users@tomcat.apache.org
 Subject: RE: More (Unending) Resource Not Found/ Directory Problems
 
 
 I'm coming into this discussion late, so ignore this if it's 
 offbase, but it
 looks like you are using absolute paths for both appBase and docBase:
 
 Host name=localhost appBase=/usr/local/tomcat/webapps
 
 Context path=/smsinfo docBase=/usr/local/tomcat/webapps/smsinfo
 
 The docBase docs say You may specify an absolute pathname for 
 this directory or
 WAR file, or a pathname that is relative to the appBase directory 
 of the owning
 Host.
 
 Shouldn't you be using a relative path for docBase, not an absolute one?
 
 Jay
 
 | Jay Burgess [Vertical Technology Group]
 | http://www.vtgroup.com/
 
 -Original Message-
 From: Allen Williams [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, May 25, 2006 3:34 PM
 To: Tomcat Users List
 Subject: RE: More (Unending) Resource Not Found/ Directory Problems
 
 Oooo-kay.  I went and (re)read the document you suggested, did
 change docbase in the Context element to docBase (which I did
 miss until you pointed it out), and the same thing still hap-
 pens.  Evidently, there's no way to tell tomcat how many times
 I've read the documentation;-)
 
 I know this is bound to be some stupid little thing I've missed
 (I actually had high hopes with the docbase-docBase change),
 but I don't know what it is.
 
  -Original Message-
  From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
  Sent: Thursday, May 25, 2006 4:11 PM
  To: Tomcat Users List
  Subject: Re: More (Unending) Resource Not Found/ Directory Problems
  
  
  On 5/25/06, Allen Williams [EMAIL PROTECTED] wrote:
   Are the absolute paths like
   http://localhost:8080/smsinfo;
   or like /usr/local/tomcat/webapps/smsinfo?
  
  File system paths, your second choice :-)
  
   Also, I assume by docBase you mean the docbase attribute in 
 the Context
   element.
  
  Sweet mother of -- no, I mean docBase, which, if you *read* the
  Fine Documentation at
  http://tomcat.apache.org/tomcat-5.5-doc/config/context.html,
  you'll see is spelled exactly that way *AND IS CASE SENSITIVE*.
  
  OK? Go through your configuration and *look closely* at each element
  and attribute and *check them against the doc*. It'll save you a lot of
  unneccessary frustration. Really. :-)
  
  -- 
  Hassan Schroeder  [EMAIL PROTECTED]
  
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



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



Some advice on apache tomcat

2009-11-16 Thread Anthony Jay
Hi,
   I am in need of some advice. My current setup is a web application
   running on Jboss which serves static and dynamic content, jsp,
   servlets and xml on two non load balanced servers (hot spare using
   mysql replication). It currently uses Http Basic Authentication over
   SSL. This has been fine to date but since I dont use any of EJB or
   related features I think that it is overkill for my application, as
   well as being unflexible w.r.t. deployment and content management as
   the whole site is deployed as a single EAR. Initially it was
   fantastic as it was simple and easy to maintain but now every change
   requires a full build.

I am researching porting my site to Apache 2.2 and Tomcat, and hope to
gain the following.
1. Serve the static content from apache e.g. images, clips sound, text
files etc.
2. Install a CMS to offload content managment to others and also blog
functionality, Wordpress seems to be the tool of choice for ease of
usage and widespread usage, this seems to work fine in my test
environment.
3. Maintain current servlet and jsp (including xml) functionality on
tomcat. Instead of one super application I can deploy servlets as
seperate applications and update them seperately.
4. Use connectors such as mod_jk to load balance and provide failover. I
already have heartbeat and mod_jk installed on in high availabilty mode
using workers in a test environment and this is working as expected.
(Apache 2.2 and tomcat 6 running on centos 5.3).

At this point I have hit a brick wall w.r.t. what to do next. I have
been researching this for the past two weeks and the more I learn the
more I seem to be confused. There is so much documentation on some
things but almost none on others. I always fear that if there is nobody
asking questions about a certain topic it either means that a) There are
no problems using the technology or b) Nobody is using it at all.

My main issue now is about how the authentication works between Tomcat
and Apache.
I would like to use both Form based and http basic authentication on
protected resources running on both apache and tomcat.
i.e. Form based for humans and httpbasic for XML requests over ssl.
I have a user database in mysql containing username and password, roles
are in another table but these could be merged if required.

I also am confused by mod_jk and mod_proxy_ajp, they, seem to have much
feature overlap. mod_proxy_ajp in my view suffers terribly from the
missing *.jsp wildcard capability but has a much simpler configuration
and better future prospects as it is bundled with apache 2.2.

In terms of authentication, which should I use, mod_auth_mysql and
mod_auth_dbm (or mod_auth_form in future or something else?) and why?

In terms of single sign on how can I make the user experience seamless
between static content-managed pages and jsp/servlets? Will mod_jk
handle sso? This does not seem clear to me in all the pages I read. If I
configure form based auth in a login.jsp page will this be relayed to
apache after a redirect?

What is best practise and what should I be doing? If there is some hard
to find documentation out there with pointers and tips I would
appreciate a few links. Expert advice is appreciated.
Tony




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



RE: Some advice on apache tomcat

2009-11-16 Thread Anthony Jay
Hi Neil,
   Thanks for the comments, I really appreciate hearing from someone
   that has actual production experience using these technologies!

To answer your question below, I *could* have all my servlets in one
webapp but that would not be my preference. For example I would like the
capability be able to update a single servlet that serves XML without
affecting any other user interations with the server, or, more
realistically, to completely deploy a new application inluding
jsp/servlets into Tomcat as a customer beta and keep current
applications unaffected. (We have several new applications under
development!)
In addition Some servlets need http basic, some form based auth and
others not even ssl at all!

So from your mail I understand that you only use apache to serve static
pages that are not protected, thereby needing no authentication and
therefore you can contain all your Auth using Tomcat. This is good, how
do you handle ssl? Does Apache terminate any SSL, all ssl or only static
pages?

Tony


On Mon, 16 Nov 2009 12:24 -0600, Neil Aggarwal
n...@jammconsulting.com wrote:
 Anthony:
 
  I am researching porting my site to Apache 2.2 and Tomcat, and hope to
  gain the following.
  1. Serve the static content from apache e.g. images, clips sound, text
  files etc.
 
 I do that will all of my JSP apps.  I set up Apache on the
 front end and use mod_jk to push JSP/servlet stuff into Tomcat.
 It works very well and scales nicely.
 
  2. Install a CMS to offload content managment to others and also blog
  functionality, Wordpress seems to be the tool of choice for ease of
  usage and widespread usage, this seems to work fine in my test
  environment.
 
 That should be no problem.  Wordpress is just a php app in front
 of MySQL.
 
  3. Maintain current servlet and jsp (including xml) functionality on
  tomcat. Instead of one super application I can deploy servlets as
  seperate applications and update them seperately.
 
 Are you talking about having multiple service in one webapp or
 servlets in different webapps?
 
  4. Use connectors such as mod_jk to load balance and provide 
  failover.
 
 Like you said, this works very well.
 
  My main issue now is about how the authentication works between Tomcat
  and Apache.
  I would like to use both Form based and http basic authentication on
  protected resources running on both apache and tomcat.
  i.e. Form based for humans and httpbasic for XML requests over ssl.
  I have a user database in mysql containing username and 
  password, roles
  are in another table but these could be merged if required.
 
 I put all protected info in Tomcat and only use Apache for
 sending public content.  If there is a static file that
 needs protecting, I use a servlet that checks if they are
 logged in and then opens and streams the file back to the
 user.  It works well.
 
  In terms of single sign on how can I make the user experience seamless
  between static content-managed pages and jsp/servlets?
 
 If you use one webapp with multiple servlets and serve
 your protected static content from Tomcat, SSO is very
 easy.
 
 I hope this helps,
   Neil
 
 --
 Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
 Host your tomcat app on a CentOS VPS for only $25/month!
 Unmetered bandwidth, 7 day no risk trial, Google Checkout
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

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



Re: Java Out of Heap Issue

2009-11-16 Thread Anthony Jay
What I have found works well in some circumstances where you do not have
a profiler to hand.
1. Look for static declarations in your code that point to singletons or
collection objects. They might just grow and grow
2. You may not be using third party libs correctly, e.g. Not closing
connections, performing cleanup etc. RTFM just in case.
3. Perform amputations on your code if possible i.e. replace methods
with dummy invocations. You will *eventually* find the source of
festering objects that are not being gc'd. 
Tony 

On Mon, 16 Nov 2009 15:54 -0800, Elli Albek e...@sustainlane.com
wrote:
 You can try getting an object dump from a profiler and see which
 objects are the source of memory starvation. Simple JSPs are very
 unlikely to cause memory starvation, but you mentioned “application
 code”, which implies that you have more than simple JSPs.
 
 A few things you want to cross off your performance check list, which
 will not solve your problem, but are generally necessary:
 1. JVM -server option, just in case
 2. Disable session persistence
 3. If you application does not use sessions, disable them for all JSPs
 (typical place to do it is header JSP include)
 4. Force session termination, no long running sessions.
 5. Remove all apps that you do not need. Tomcat comes with a few built
 in apps and those are not trivial to find. Make sure conf/Catalina and
 all its sub directories contain only apps that you need. Host manager
 and such should be deleted. Same with war files.
 
 What you describe in your memory graph is a simple memory leak.
 Generally, I would look in that order:
 1.  Sessions
 2.  Application code
 3.  Other webapps
 
 1 and 3 are easy to deal with. If you don’t need sessions make sure
 they are not created at all. If you do, force session termination
 after a few minutes in master web.xml or other XML files. Notice that
 one file can define a value and another can overwrite it, so you have
 to make sure all are checked.
 
 If that does not work, application code is the next candidate. You can
 start with an object dump with a profiler or a simple code review/step
 through in a debugger.
 
 E
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

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



Re: Some advice on apache tomcat

2009-11-16 Thread Anthony Jay
Thanks. Squid may be a contender but I need the CMS and blogging that
comes with apache/php. Although maybe someday our traffic may get to the
point where we will need squid to keep up! Now that would be a good
problem to have! Thanks for the pointer. 

On Mon, 16 Nov 2009 15:36 -0800, Elli Albek e...@sustainlane.com
wrote:
 You can also look at squid to serve static files and load balance. So
 squid fronts tomcat and your other apps. Squid can serve your static
 files as well. All you have to do it make sure your static files
 return a cache header like max-age, and squid will serve them without
 going to the origin (tomcat). Squid can also load balance tomcats and
 route requests for multiple origins based on some rules. We have squid
 doing virtual hosting of tomcats that run different apps, as well as
 serving static content and caching dynamic content.
 
 The down sides vs apache:
 1. Not as many plugins and options
 2. The configuration rules are simpler and more widely
 known/understood in apache
 3. Hard to rewrite URLs. Not impossible, but mod rewrite is much much
 easier to deal with. Actually any manipulation of the request/response
 is less than trivial on squid.
 
 If you go for squid, 2.7 and above. Earlier versions are not as good
 for reverse proxing.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

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



Re: Some advice on apache tomcat

2009-11-16 Thread Anthony Jay
Thank you very much for your informative comments. 
In terms of breaking an application into single servlets, I agree that
there would need to be strong reasons for doing it, and the clear one
that springs to mind is the requirement to have different authn methods
for each, None, Form, and http basic. But I take your point on board.

I really want to leverage as much flexibility between apache and tomcat
but keep the dependencies and configuration to a minimum. I dream of a
time where I can be lazy in the future. (Fat chance)
Is there a lack of form-based authentication module (production ready)
for apache or am I just really bad at finding things?
I would really like to force apache to do as much as possible of the ssl
and authn and leave tomcat to handle the actual work!
Regards,
Tony 

On Mon, 16 Nov 2009 21:07 +, Pid p...@pidster.com wrote:
 On 16/11/2009 17:53, Anthony Jay wrote:
  Hi,
  I am in need of some advice. My current setup is a web application
  running on Jboss which serves static and dynamic content, jsp,
  servlets and xml on two non load balanced servers (hot spare using
  mysql replication). It currently uses Http Basic Authentication over
  SSL. This has been fine to date but since I dont use any of EJB or
  related features I think that it is overkill for my application, as
  well as being unflexible w.r.t. deployment and content management as
  the whole site is deployed as a single EAR. Initially it was
  fantastic as it was simple and easy to maintain but now every change
  requires a full build.
 
  I am researching porting my site to Apache 2.2 and Tomcat, and hope to
  gain the following.
  1. Serve the static content from apache e.g. images, clips sound, text
  files etc.
  2. Install a CMS to offload content managment to others and also blog
  functionality, Wordpress seems to be the tool of choice for ease of
  usage and widespread usage, this seems to work fine in my test
  environment.
  
  3. Maintain current servlet and jsp (including xml) functionality on
  tomcat. Instead of one super application I can deploy servlets as
  seperate applications and update them seperately.
 
 One servlet per application probably isn't an optimal solution.
 Breaking a single large app into smaller components may be worth it - 
 very much depends on your application.
 
  4. Use connectors such as mod_jk to load balance and provide failover. I
  already have heartbeat and mod_jk installed on in high availabilty mode
  using workers in a test environment and this is working as expected.
  (Apache 2.2 and tomcat 6 running on centos 5.3).
 
  At this point I have hit a brick wall w.r.t. what to do next. I have
  been researching this for the past two weeks and the more I learn the
  more I seem to be confused.
 
 What are you confused about?
 
  There is so much documentation on some
  things but almost none on others. I always fear that if there is nobody
  asking questions about a certain topic it either means that a) There are
  no problems using the technology or b) Nobody is using it at all.
 
 There are lots of questions about mod_jk on this list each week.
 Sometimes they're even different ones.  ;)
 
  My main issue now is about how the authentication works between Tomcat
  and Apache.
 
 It's one way, Tomcat, as an 'inner' component, can defer to 
 authentication set at the outer level in Apache HTTPD.
 See the tomcatAuthentication attribute of the AJP connector.
 
   http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html
 
 Tomcat can't pass it's authenticated principal up to HTTPD.
 
 
  I would like to use both Form based and http basic authentication on
  protected resources running on both apache and tomcat.
 
 You would probably need to seperate those parts into separate 
 applications as FORM and BASIC can only be set once in each web.xml.
 
 (You can of course duplicate the same class or jar in differently 
 configured web apps.)
 
  i.e. Form based for humans and httpbasic for XML requests over ssl.
  I have a user database in mysql containing username and password, roles
  are in another table but these could be merged if required.
 
  I also am confused by mod_jk and mod_proxy_ajp, they, seem to have much
  feature overlap. mod_proxy_ajp in my view suffers terribly from the
  missing *.jsp wildcard capability but has a much simpler configuration
  and better future prospects as it is bundled with apache 2.2.
 
 They offer similar, largely overlapping functionality, you choose one or 
 the other.
 
 mod_proxy_ajp can of course handle *.jsp, when combined with 
 mod_rewrite and the [P] proxy rewrite command.
 
   RewriteRule   ^/(.+)\.jsp(.+)?   ajp://tomcathost/$1.jsp$2   [P,L]
 
  In terms of authentication, which should I use, mod_auth_mysql and
  mod_auth_dbm (or mod_auth_form in future or something else?) and why?
 
 Up to you.
 
  In terms of single sign on how can I make the user experience seamless
  between static content

Re: Some advice on apache tomcat

2009-11-17 Thread Anthony Jay
Yep, I had come accross mod_auth_cookie, but its current status is
questionable and people seem to have moved on to other things. I am just
trying to find out what those other things are! Best practises etc. It
would be  nice to conduct a poll to find out what people are actually
using. I am accepting that almost everyone else knows more than
me
Tony

On Tue, 17 Nov 2009 10:02 +, Pid p...@pidster.com wrote:
 On 16/11/2009 22:07, André Warnier wrote:
  Anthony Jay wrote:
 
  My main issue now is about how the authentication works between Tomcat
  and Apache.
  That's the only one I can readily answer.
  It is extremely simple with mod_jk.
  If the user is authenticated at the Apache level, mod_jk will pass this
  on to the Tomcat server via AJP.
  The only thing to do, is set the 'tomcatAuthentication=false'
  attribute in Tomcat's AJP Connector, and Tomcat will just believe the
  user-id sent by Apache and mod_jk.
  I don't know if, or how, mod_proxy_ajp handles the same thing.
 
 
  In terms of authentication, which should I use, mod_auth_mysql and
  mod_auth_dbm (or mod_auth_form in future or something else?) and why?
 
  There are many many possibilities for this under Apache httpd. Just pick
  the one that you like best, on its own merits.
  They all basically in the end result in the HTTP request being
  authenticated at the Apache httpd level (iow to have a user-id), and
  that's what you want.
 
  What you then do with it under Tomcat is another story, but that is also
  your choice.
 
  In terms of single sign on how can I make the user experience seamless
  between static content-managed pages and jsp/servlets? Will mod_jk
  handle sso? This does not seem clear to me in all the pages I read. If I
  configure form based auth in a login.jsp page will this be relayed to
  apache after a redirect?
 
  No, but why would it be ?
  Ah, if you want to do the authentication in Tomcat rather than in
  Apache, but still use it in Apache ?
  There are ways, but you'll need to write your own Apache (httpd)
  authentication module. You could then define a dummy servlet in Tomcat,
  which just echoes the authenticated user-id (as gotten via
  getRemoteUser() e.g.). Then in Apache httpd, you would make a
  side-request (oherwise known as a sub-request) to this Tomcat webapp
  to get the user-id, and use it to authenticate the current request in
  Apache.
  But that is a complicated scheme, probably only worth it if you find
  some Tomcat authentication method that does not exist in Apache httpd,
  which is unlikely.
 
 
  What is best practise and what should I be doing? If there is some hard
  to find documentation out there with pointers and tips I would
  appreciate a few links.
 
  To read in the Apache httpd docs :
  http://httpd.apache.org/docs/2.2/howto/auth.html
 
  Also, personally I would recommend having a look around here :
  http://cpan.uwinnipeg.ca/search?query=apache%3A%3Aauthmode=dist
  This is the Perl library. Even if you do not intend to do anything with
  Perl, the documentation of many of these modules is a goldmine of
  information about how things work.
 
  Expert advice is appreciated.
  You just got it.
  ;-)
 
 There used to be a mod_auth_cookie module that had form auth 
 capabilities, but it wasn't ever in the main distro, it was listed in 
 the related modules site.
 
 I used a variant of it in a HTTPD 1.3 install many years ago, so I can't 
 vouch for its current status.  GIYF.
 
 
 p
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

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



Re: Some advice on apache tomcat

2009-11-19 Thread Anthony Jay
Hi,
 I have failed to come up with a solution to link Apache 2.2 and Tomcat
 6 using mod_jk / mod_proxy_ajp in a way that satisfies my requirements.
 (Seamless form based authentication, CMS using wordpress etc.) I can
 get 98% there but the last 2% is the blocker and I am running out of
 options. I was very surprised that others have not done this before but
 then again I suppose every solution is different! (Many thanks to the
 replies for my earlier question, I don't think a non custom solution
 exists for it!)

So to move forward I think that I will scrap putting the static content
on apache and serve it all from tomcat. I might use apache to handle SSL
and loadbalance.
My question is what is the recommended wordpress replacement that I can
use on Tomcat to provide content management via database as well as
providing blogging capability? I looked at quercus php enabler for
tomcat but it seems to have a commerical license. openCMS looks
promising (but no blogging) any recommendations?

Tony

On Tue, 17 Nov 2009 10:02 +, Pid p...@pidster.com wrote:
 On 16/11/2009 22:07, André Warnier wrote:
  Anthony Jay wrote:
 
  My main issue now is about how the authentication works between Tomcat
  and Apache.
  That's the only one I can readily answer.
  It is extremely simple with mod_jk.
  If the user is authenticated at the Apache level, mod_jk will pass this
  on to the Tomcat server via AJP.
  The only thing to do, is set the 'tomcatAuthentication=false'
  attribute in Tomcat's AJP Connector, and Tomcat will just believe the
  user-id sent by Apache and mod_jk.
  I don't know if, or how, mod_proxy_ajp handles the same thing.
 
 
  In terms of authentication, which should I use, mod_auth_mysql and
  mod_auth_dbm (or mod_auth_form in future or something else?) and why?
 
  There are many many possibilities for this under Apache httpd. Just pick
  the one that you like best, on its own merits.
  They all basically in the end result in the HTTP request being
  authenticated at the Apache httpd level (iow to have a user-id), and
  that's what you want.
 
  What you then do with it under Tomcat is another story, but that is also
  your choice.
 
  In terms of single sign on how can I make the user experience seamless
  between static content-managed pages and jsp/servlets? Will mod_jk
  handle sso? This does not seem clear to me in all the pages I read. If I
  configure form based auth in a login.jsp page will this be relayed to
  apache after a redirect?
 
  No, but why would it be ?
  Ah, if you want to do the authentication in Tomcat rather than in
  Apache, but still use it in Apache ?
  There are ways, but you'll need to write your own Apache (httpd)
  authentication module. You could then define a dummy servlet in Tomcat,
  which just echoes the authenticated user-id (as gotten via
  getRemoteUser() e.g.). Then in Apache httpd, you would make a
  side-request (oherwise known as a sub-request) to this Tomcat webapp
  to get the user-id, and use it to authenticate the current request in
  Apache.
  But that is a complicated scheme, probably only worth it if you find
  some Tomcat authentication method that does not exist in Apache httpd,
  which is unlikely.
 
 
  What is best practise and what should I be doing? If there is some hard
  to find documentation out there with pointers and tips I would
  appreciate a few links.
 
  To read in the Apache httpd docs :
  http://httpd.apache.org/docs/2.2/howto/auth.html
 
  Also, personally I would recommend having a look around here :
  http://cpan.uwinnipeg.ca/search?query=apache%3A%3Aauthmode=dist
  This is the Perl library. Even if you do not intend to do anything with
  Perl, the documentation of many of these modules is a goldmine of
  information about how things work.
 
  Expert advice is appreciated.
  You just got it.
  ;-)
 
 There used to be a mod_auth_cookie module that had form auth 
 capabilities, but it wasn't ever in the main distro, it was listed in 
 the related modules site.
 
 I used a variant of it in a HTTPD 1.3 install many years ago, so I can't 
 vouch for its current status.  GIYF.
 
 
 p
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

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



Basic and Form Authentication

2009-11-30 Thread Anthony Jay
Hi,
  Is is possible to have an application that serves content protected by
  BASIC and FORM based auth?
i.e.
JSP protected by FORM
Servlets that process XML use http BASIC?

I could deploy seperate apps for each type but I would then lose access
to application specific information e.g. Singletons and Statics, which
will cause big problems.

Any words of wisdom?

Tony

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



Re: Basic and Form Authentication

2009-12-01 Thread Anthony Jay
Thanks all for your comments, I do appreciate the expert assistance.
As I suspected I will have to split the webapp into seperate apps based
on the authentication method required.
Seems like a funny way to arrange an application but such is life.
As for cross application communication I will have to revisit our own
code to see if there are static/singleton services that can be
re-engineered and decoupled.
In terms of hacking code to fudge application access, this would be low
on my list, I would not like to alter or maintain security related code. 
Many thanks again.
(Much head scratching to continue)
Tony

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Anthony,

On 11/30/2009 4:53 AM, Anthony Jay wrote:
   Is is possible to have an application that serves content protected by
   BASIC and FORM based auth?

As Mark points out, the servlet spec says not in the same webapp.
Tomcat implements the servlet specification and no more, so you are out
of luck, there.

 I could deploy seperate apps for each type but I would then lose access
 to application specific information e.g. Singletons and Statics, which
 will cause big problems.

I would strongly advise you to separate your webapps: one webapp for
your XML-based API and the other for human interaction. Don't forget
that your human UI could make use of the XML API behind the scenes. This
is typically called drinking your own Cool-Aid.

If it's possible for you to do so, you could put your shared
singleton/static classes into a shared ClassLoader. What kinds of things
are you using that you would need to share across webapps? Could those
things be converted into services that both webapps could share?

Note that an XML service whose URL contains a jsessionid parameter will
be associated with the indicated session. You could use such a URL to
avoid the FORM authentication (but getting the session id is, of course,
an issue unresolved by this).

Finally, you could go out on your own and implement your own
authentication mechanism. Securityfilter is a simple, filter-based
authentication and authorization mechanism that you could hack-up to do
this type of thing. Actually, you could use it out-of-the-box and just
use a Filter configured /in front/ of it to trick sf into trusting a
Principal configured by your Filter (which comes from the request's HTTP
AUTH data).

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

iEYEARECAAYFAksUHsEACgkQ9CaO5/Lv0PD/jACeKCyBSKRnZtnso5EzEPROUMXO
i74An09m3QZY0GTl47KplbdCSu/NG1wr
=t+z3
-END PGP SIGNATURE-

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



Re: Basic and Form Authentication

2009-12-01 Thread Anthony Jay
Hi,
 Thanks for the great advice.

On placing singletons etc in jar libraries in tommcat /lib directory,
that would be a very simple hack that could keep code pretty much as is.
Thank you for that suggestion, it may well be a runner, I didnt think
that was possible.

In terms of fronting everything with apache, I am currently doing this
already via mod_jk (loadbalancing to 2 tomcats), although I might use
mod_proxy_ajp in future as it is now bundled with apache2.  However, I
could not find any viable implementation for form based authentication,
although there is one in the pipeline but may not be available in a
stable form for many months to come. That was a big disappointment!

Many thanks,
Tony  



Peter Crowther wrote:
 2009/12/1 Anthony Jay anthony...@fastmail.fm:
 As for cross application communication I will have to revisit our own
 code to see if there are static/singleton services that can be
 re-engineered and decoupled.
 
 This may be one of the few appropriate times where you may want to put
 code for the singletons (and all the classes that might be referenced
 by your singletons) in common/lib.  It's not an ideal solution, but it
 may save you considerable effort as those classes will then be loaded
 by a single classloader, rather than the per-webapp classloaders.
 
Or then, this may be a case where you want to explore front-ending these 
applications with an Apache httpd server, linked to Tomcat via an AJP 
connector.
There is considerably more flexibility in Apache httpd regarding AAA 
(since for one it is not bound by the servlet spec), and once a request 
is authenticated, Apache and the connector will happily pass this 
authenticated id to Tomcat.  And you would have to change nothing to 
your servlet-engine side code, singletons and all.

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



Contexts and Path and Authentication

2009-12-09 Thread Anthony Jay
Hi All,
   I am having tremendous difficulty configuring contexts on tomcat.
I've had to split my perfectly working application into two applications
as the jsp now requires Form based authentication and the XML components
require Http Basic authentication as before. As I've learned the very
hard way I cannot do both within the same application without writing my
own security plumbing.
So I've taken peoples advice and made one war file formauth.war with all
jsp and related servlets which uses form based auth and also created
basicauth.war which contains all xml servlet configuration, I put the
common libs into tomcat/lib directory (to handle Statics and singletons
and DB stuff)  Two apps, two authentication mechanisms. Messy but I
could see no other way.

My jsps etc are contained on the path /secure/xxx and /secure/yyy as
well as /public/*
But my XML URL pattern for servlets is
/secure/xml/* and /xml/* which are declared in web.xml

Individually each war when deployed seem to work fine except for the
uri/path configuration.
i.e. URL prepended with /formauth/ or /basicauth/ prefixes. 
Currently this works:
/formauth/secure/yyy  --Form based auth
/formauth/secure/xxx  --Form based auth
/formauth/public/  --Form based auth
/basicauth/secure/xml/  --basic auth
/basicauth/xml/  --basic auth
etc.
Which is not what I want, the application must work as before. 

/secure/yyy  --Form based auth
/secure/xxx  --Form based auth
/public/  --Form based auth
/secure/xml/  --basic auth
/xml/  --basic auth

I need to remove the /formauth/ and /basicauth/ directories and my pain
will subside. From everything that I have read this SHOULD be possible
when configuring the context element.
My issue now is that trying to overlap the contexts will not work for
me. 
I can only get one war to work at at time (as default context) using
Server.xml
Context docBase=formauth path=/  when war is deployed in the
webapps folder.
I have tried 
Context docBase=formauth path=secure/xxx/
and many different combinations but I can never remove the /formauth/ or
/basicauth/ prefixes except when one is set as default, but then I
cannot configure the other context.

A little advice here should go a long way as I've read
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
and related pages and posts about a fifty times as well as sample
setups. I'm really pulling my hair out now.this is taking me
waay too long.
There are many brownie points going for this one.

Tony

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



Re: Contexts and Path and Authentication

2009-12-09 Thread Anthony Jay
Many thanks Chuck and Ken for the tip. I am surprised that the solution
is a 'hack' rather than configuration, but kinda glad that I wasn't
losing my marbles.
URL Rewriting is probably going to be the easiest way out, I am
considering using mod_jk on the apache side so I could get away with
using it there, but its always nice to 'hit' tomcat directly and get the
same result.
maybe someday Ill write a patch/plugin/filter/gizmo that will allow form
and basic on same app and present it to the world...
Then again form/basic auth on apache side isnt too far away.
I feel like I am hitting a brick wall with my head more often than I
should be
(Any other tips welcome!)
Regards,
Tony

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



Re: Contexts and Path and Authentication

2009-12-09 Thread Anthony Jay
Hi,
   FYI just hit another stumbling block which may be of interest to
   other users.
UrlRewriteFilter will not forward any of my requests, even to the sample
demo rule for /rewrite-status/ itself! It will, however, redirect
perfectly well (when type is changed to type=redirect) meaning that I
have installed the filter properly.
Other persons seem to be having issues with UrlRewriteFilter and Tomcat
6 (see the google groups posts for some unresolved issues)
In addition UrlRewriteFilter cannot forward outside of its application
context without changing Context configuration.
http://tinyurl.com/3q9fa9
Interesting.
Tony

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



Re: Contexts and Path and Authentication

2009-12-10 Thread Anthony Jay
What's the problem with doing:

  /xml/-- basic auth
  /xml/secure/ -- basic auth

TonyI cannot change URL as this is a working application and XML
consumers must notice no difference.

Then this bit of the app can be deployed as xml.war and the other as 
ROOT.war.  Modifying your URL namespaces would seem to be a logical 
improvement.
TonyNo doubt about that but this is what I have to work with/Tony

If needs be, you can redirect /secure/xml/ requests from the ROOT app to 
the xml app.

TonyAs mentioned I'm having difficulty with UrlRewriteFilter and
Tomcat 6/Tony

Thanks for the input, all ideas are most welcome!
Tony
/Tony



On 09/12/2009 21:07, Anthony Jay wrote:
 Hi All,
 I am having tremendous difficulty configuring contexts on tomcat.
 I've had to split my perfectly working application into two applications
 as the jsp now requires Form based authentication and the XML components
 require Http Basic authentication as before. As I've learned the very
 hard way I cannot do both within the same application without writing my
 own security plumbing.
 So I've taken peoples advice and made one war file formauth.war with all
 jsp and related servlets which uses form based auth and also created
 basicauth.war which contains all xml servlet configuration, I put the
 common libs into tomcat/lib directory (to handle Statics and singletons
 and DB stuff)  Two apps, two authentication mechanisms. Messy but I
 could see no other way.

 My jsps etc are contained on the path /secure/xxx and /secure/yyy as
 well as /public/*
 But my XML URL pattern for servlets is
 /secure/xml/* and /xml/* which are declared in web.xml

 Individually each war when deployed seem to work fine except for the
 uri/path configuration.
 i.e. URL prepended with /formauth/ or /basicauth/ prefixes.
 Currently this works:
 /formauth/secure/yyy  --Form based auth
 /formauth/secure/xxx  --Form based auth
 /formauth/public/  --Form based auth
 /basicauth/secure/xml/  --basic auth
 /basicauth/xml/  --basic auth
 etc.
 Which is not what I want, the application must work as before.

 /secure/yyy  --Form based auth
 /secure/xxx  --Form based auth
 /public/  --Form based auth
 /secure/xml/  --basic auth
 /xml/  --basic auth

What's the problem with doing:

  /xml/-- basic auth
  /xml/secure/ -- basic auth

Then this bit of the app can be deployed as xml.war and the other as 
ROOT.war.  Modifying your URL namespaces would seem to be a logical 
improvement.

If needs be, you can redirect /secure/xml/ requests from the ROOT app to 
the xml app.


p

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



Re: Basic and Form Authentication

2009-12-10 Thread Anthony Jay
yes, I was aware of this, as mentioned on a previous mail, but as its
neither production ready nor complete it would be a huge risk.
I am beginning to think that I am attempting the impossible...
After several weeks banging my head against a wall (I have a sore neck)
I am giving this one more day then giving up ;-(
Regards,
Tony

Hi.
I got some (as yet partial) answers on this on the Apache httpd forum.
Check out this :
http://httpd.apache.org/docs/trunk/mod/mod_auth_form.html

In summary, and subject to more confirmation by the Apache developers :
A series of new Apache modules is due to appear in Apache 2.4 (the next 
production release version).  They include mod_session and 
mod_auth_form, which should provide a generic form-based authentication 
framework.
These modules are currently available in the test version of Apache 
(2.34).  I do not know yet if they are, or can be, back-ported for 
Apache 2.2.14, the current production version.

But all in all, it seems that this provides the as-yet missing standard 
form-based authentication framework which would be needed by the 
original poster on this thread, if he wanted to resolve his issue by 
using an httpd front-end (which he uses anyway for other purposes right 
now).

Well, at least it would be a start.  It remains to be seen in detail how 
one would set this up under Apache httpd.

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



Re: Contexts and Path and Authentication

2009-12-10 Thread Anthony Jay
SOLVED
Also the issue with Multiple Authentication Mechanisms
My head is sore from banging it against a wall but I THINK that I have
come up with a rather elegant solution.
Well its a bit obvious in one way but I suppose I had to go through all
the pain first. There was alot of pain.
Just to reiterate my issue : How to get Tomcat to use Http basic and 
http form authentication in same application.

I have 
/secure/xml/** servlets that need basic auth
/xml/** servlets that need NO auth
/secure/.jsp that need FORM auth
/ssl/xxx.jsp that needs NO AUTH
/ standard web content that is public etc.
All working together as ONE application

This stemmed from an app that was using http basic and the user/jsp
stuff had to be converted to Form based auth for security reasons and
obviously the b2b xml stuff could not change URLS or auth mechanisms
being hard coded on the client side in our customers apps.


SOLUTION
apache
SSL termination
mod_auth_mysql http basic ONLY on servlet urls using LocationMatch
directives
mod_jk forwarding jsp and servlets to tomcat

tomcat
configured for FORM based auth
ignored unprotected content.
Application deployed as ROOT.war (no messing around with contexts or
path)

So the apache acts as a http filter on servlets that require http basic
and ignores everything else.
Tomcat uses form based authn to protected all jsp pages that require it
and ignores those that dont.

Rather happy with this solution as I can offload images/etc to apache, I
get loadbalancing from mod_jk and high availability.

Im sure there are a few speedbumps along the way but 90% sure this will
work. (Note the 10% reserved for experience)

Tony



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



Re: Basic and Form Authentication

2009-12-11 Thread Anthony Jay
Hi all,
   Winners never quit and quitters never win
See.
http://marc.info/?l=tomcat-userm=126047599208053w=2
Thanks for the assistance!!!
Tony

Anthony Jay wrote:
 yes, I was aware of this, as mentioned on a previous mail, but as its
 neither production ready nor complete it would be a huge risk.
 I am beginning to think that I am attempting the impossible...
 After several weeks banging my head against a wall (I have a sore neck)
 I am giving this one more day then giving up ;-(

On this list, we dislike it when people give up.
Give us all a feeling of failure.
Come on, a bit of perseverance may be the key.

What about my other post of yesterday, on the thread :
Re: Contexts and Path and Authentication
?
Does at least the initial description match what you would need ?

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



Re: Contexts and Path and Authentication

2009-12-11 Thread Anthony Jay
Excellent. Now I have an elegant plan B in case my current
apache-mod_auth_mysql-tomcat-form-based-authentication solution proves
impractical.
http://marc.info/?l=tomcat-userm=126047599208053w=2
Regards,
Tony

Christopher Schultz wrote:
 
 securityfilter (http://securityfilter.sourceforge.net) can be tricked
 into doing this. Although the standard operating procedure is to map sf
 to all URLs (i.e. url-pattern/*/url-pattern), one can choose to map
 it to different patterns and deploy it /twice/:
 
 filter
 filter-nameSecurity Filter BASIC/filter-name
   filter-classorg.securityfilter.filter.SecurityFilter/filter-class
   init-param
  param-nameconfig/param-name
  param-value/WEB-INF/securityfilter-basic.xml/param-value
   /init-param
 /filter
 
 filter
 filter-nameSecurity Filter FORM/filter-name
   filter-classorg.securityfilter.filter.SecurityFilter/filter-class
   init-param
  param-nameconfig/param-name
  param-value/WEB-INF/securityfilter-form.xml/param-value
   /init-param
 /filter
 
 ...

I did not know that securityfilter handled both Basic and Form 
authentication.  Is that recent ?

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



Re: problem with tomcat-native 1.1.14 and tomcat 6

2009-06-22 Thread Jay M

I am trying to compile the tomcat-native-1.1.14 from Ubuntu, am getting the
message

:/usr/local/tomcat/bin/tomcat-native-1.1.14-src/jni/native$ sudo ./configure
--with-apr=/usr/local/apr --with-ssl=/usr
--with-java-home=/usr/lib/jvm/java-6-sun/
[sudo] password for vijay:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.1.14
checking for chosen layout... tcnative
checking for APR... yes
  setting CC to gcc
  setting CPP to gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for JDK location (please wait)... /usr/lib/jvm/java-6-sun/
checking Java platform... checking Java platform...
checking for sablevm... NONE
  adding -I/usr/lib/jvm/java-6-sun//include to TCNATIVE_PRIV_INCLUDES
checking os_type directory...  linux
  adding -I/usr/lib/jvm/java-6-sun//include/linux to
TCNATIVE_PRIV_INCLUDES
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for OpenSSL library... using openssl from /usr/lib and /usr/include
checking OpenSSL library version... not compatible
checking for OpenSSL DSA support... no
  setting TCNATIVE_LDFLAGS to -lssl -lcrypto
  adding -DHAVE_OPENSSL to CFLAGS
  setting TCNATIVE_LIBS to 
  setting TCNATIVE_LIBS to  /usr/local/apr/lib/libapr-1.la -lrt -lcrypt 
-lpthread -ldl
configure: creating ./config.status
config.status: creating tcnative.pc
config.status: creating Makefile
config.status: executing default commands


When starting the Server i am getting the Log INFO that failed to start
SSLEngine.

Message shown below.

Jun 22, 2009 6:00:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
Jun 22, 2009 6:00:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Jun 22, 2009 6:00:57 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Failed to initialize the SSLEngine.
Jun 22, 2009 6:00:58 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Jun 22, 2009 6:00:58 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-443
Jun 22, 2009 6:00:58 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 881 ms
Jun 22, 2009 6:00:58 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 22, 2009 6:00:58 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18


Mihai COSTACHE wrote:
 
 
 
 Hi,
 
 i have a working tomcat 6.0.14 and now i want to use tomcat-native
 beacause it use openssl and not java-ssl
 
 so .. 
 1) i installed tomcat-native 1.1.10 
 2) i edited server.xml (added SSLCertificateFile, SSLCertificateKeyFile,
 SSLPassword and SSLProtocol=TLSv1 to HTTPS Connector ... for HTTP
 Connector
 nothing has changed)
 3) started tomcat again ... no error .. but not tcp sockets (for 8080
 and 8443 ports)
 
 only this i have in catalina.out
 
 --
 Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener
 init
 INFO: Loaded Apache Tomcat Native library 1.1.10.
 Jan 23, 2008 7:29:12 PM org.apache.catalina.core.AprLifecycleListener
 init
 INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
 [false], random [true].
 ---
 
 the tomcat is running but it doesn't listen on any port !!!
 
 ---
 bin/bash /sbin/runscript.sh /etc/init.d/tomcat-6 start
 tomcat2736 58.8  3.3 675280 34696 pts/0Sl   19:50   0:02
 \_ /opt/sun-jdk-1.6.0.03/bin/java -server -Xms256M -Xmx512M
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
 -Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties
 -classpath
 /usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.6.0.03/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar
 -Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/
 -Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap
 start
 --
 
 some help would be musch appreciated !!!
 
 thanks
 Mihai
 
 
 
 
 
  
 

-- 
View this message in context: 
http://www.nabble.com/problem-with-tomcat-native-1.1.10-and-tomcat-6.0.14-tp15048117p24153602.html
Sent from the Tomcat - User mailing list archive at Nabble.com.



Re: problem with tomcat-native 1.1.14 and tomcat 6

2009-06-22 Thread Jay M

Hi Chris,

I have done all those configuration in my server.xml and it given below,

Do you have any idea about highlighted message showing up given in previous
post while trying to install tomcat-native-1.1.14.  

 Connector 
port=80 
connectionTimeout=2 
redirectPort=443 
enableLookups=false 
acceptCount=100
bufferSize=8192 
maxThreads=750  
noCompressionUserAgents=gozilla, traviata
compression=force
useSendfile=false
compressableMimeType=text/html,
text/xml,
text/css,
text/plain,
text/javascript,
application/javascript,
application/x-javascript /

Connector port=443 maxHttpHeaderSize=8192
maxThreads=150
enableLookups=false disableUploadTimeout=true
acceptCount=100 scheme=https secure=true
SSLEnabled=true 

SSLCertificateFile=${catalina.base}/conf/ssl/server.crt

SSLCertificateKeyFile=${catalina.base}/conf/ssl/server.key /


Christopher Schultz-2 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Vijay,
 
 On 6/22/2009 3:14 PM, Jay M wrote:
 I am trying to compile the tomcat-native-1.1.14 from Ubuntu, am getting
 the
 message
 
 Any reason to use tomcat-native-1.1.14 instead of tomcat-native-1.1.16?
 
 When starting the Server i am getting the Log INFO that failed to start
 SSLEngine.
 
 Message shown below.
 
 Jun 22, 2009 6:00:57 PM org.apache.catalina.core.AprLifecycleListener
 init
 INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
 Jun 22, 2009 6:00:57 PM org.apache.catalina.core.AprLifecycleListener
 init
 INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
 [false], random [true].
 Jun 22, 2009 6:00:57 PM org.apache.catalina.core.AprLifecycleListener
 lifecycleEvent
 INFO: Failed to initialize the SSLEngine.
 
 Perhaps you have not set up your keystore, etc. correctly.
 
 You need a Connector like this:
 
 Connector
port=8443 minSpareThreads=5 maxSpareThreads=75
enableLookups=true disableUploadTimeout=true
acceptCount=100  maxThreads=200
scheme=https secure=true SSLEnabled=true
SSLCertificateFile=/usr/local/ssl/server.crt
SSLCertificateKeyFile=/usr/local/ssl/server.pem
clientAuth=false sslProtocol=TLS/
 
 See http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html for more info.
 
 Please post your configuration if the above info doesn't help.
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAko/39IACgkQ9CaO5/Lv0PBErQCeMzyqRHm+oERUjieJnxYcHROh
 e6MAnAuanbrv4jJeANxcevFrU/e+1G+g
 =DVO+
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/problem-with-tomcat-native-1.1.10-and-tomcat-6.0.14-tp15048117p24158614.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: problem with tomcat-native 1.1.14 and tomcat 6

2009-06-24 Thread Jay M

Opps!!!

I forgot to post how i resolved the issue.

Actually i haven't installed the libssl-dev libraries.

I just gone through the link https://help.ubuntu.com/community/OpenSSL and
then i checked whether everything fine about the openssl lib, at that point
i realized that i haven't installed libssl-dev libraries.

Thank you guys

Chears !!!



Mladen Turk-3 wrote:
 
 Jay M wrote:
 I am trying to compile the tomcat-native-1.1.14 from Ubuntu, am getting
 the
 message
 
 
 Like Charles suggested try with 1.1.16
 
 checking for OpenSSL library... using openssl from /usr/lib and
 /usr/include
 checking OpenSSL library version... not compatible
 checking for OpenSSL DSA support... no
 
 This certainly doesn't look good.
 It seems that openssl is  0.9.8b
 
 Regards
 -- 
 ^(TM)
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/problem-with-tomcat-native-1.1.10-and-tomcat-6.0.14-tp15048117p24181290.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

2006-06-28 Thread Jay Burgess
Can you include your Connector definition so we can take a look?

Jay
http://www.vtgroup.com/


-Original Message-
From: Erik Matthew Brakke [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 1:48 PM
To: Tomcat Users List
Subject: Re: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

Hi,

Someone asked that I try Firefox to see if it was a certificate issue with 
MSIE.  I'm still having the same issue with Firefox: no response at all from 
Tomcat 5.5.17 over the HTTPS connector.  HTTP is fine.  Netstat shows 
established connection by TCP/IP, just no response from TC.

I've tried:
changing ports between 443 and 8443,
explicit path for .keystore,
switching from TLS to SSL,
explicit keystore type (JKS),
explicit keystore password (changeit),

any more ideas?

Thanks
E


- Original Message - 
From: Erik Brakke [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Friday, June 23, 2006 2:52 PM
Subject: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat


 Hi,

 I have set up standalone Tomcat 5.5.17 on Windows 2000 + J2EE 5 JDK  and 
 get the default ROOT webapp.  I cannot access the ROOT webapp  using 
 HTTPS.

 I set up SSL using the HOW-TO: generate a self-signed JKS .keystore  file 
 and enabled the HTTPS connector in server.xml.

 I'll open https://localhost:8443 in my browser, it connects (I can see  it 
 established with netstat), the browser states it is opening the  page, but 
 Tomcat does not respond, I do not get a certificate warning  or the ROOT 
 webapp.

 I can't find any errors in /logs.  The access log shows activity on  HTTP 
 but nothings shows for HTTPS.

 I have tried changing ports between 443 and 8443,
 tried explicit path for .keystore,
 tried switching from TLS to SSL.

 Any ideas?  I tried upping logging to debug in server.xml but still no 
 error messages.

 THANKS!!
 Erik


 -
 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: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

2006-06-28 Thread Jay Burgess
I'm not an expert in this, but I thought I'd compare your setup with our working
setup and see if I could spot any differences. A couple of observations:

* Have you tried using a keystoreFile location that doesn't contain spaces? 
I've gotten bitten in other apps where a space in the path isn't handled 
correctly.

* Do you have lines like the following in stdout.log?

  INFO: Initializing Coyote HTTP/1.1 on port 443
  INFO: Starting Coyote HTTP/1.1 on port 443

* I've also got debug=9 set in my Connector definition, but I'm not sure if
that really adds any logging or not.

Jay
http://www.vtgroup.com/
 

-Original Message-
From: Erik Matthew Brakke [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 2:12 PM
To: Tomcat Users List
Subject: Re: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

Hi, its the default connector statement in server.xml, but I've tried adding 
the arguments: keystoreFile, keystorePass, keystoreType.

Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150
minSpareThreads=25 maxSpareThreads=75 enableLookups=false
disableUploadTimeout=true acceptCount=100 scheme=https
secure=true clientAuth=false sslProtocol=TLS
keystoreFile=C:\Documents and Settings\Administrator\.keystore
keystorePass=changeit keystoreType=JKS /

Thanks!
E

- Original Message - 
From: Jay Burgess [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, June 28, 2006 1:55 PM
Subject: RE: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat


 Can you include your Connector definition so we can take a look?

 Jay
 http://www.vtgroup.com/


 -Original Message-
 From: Erik Matthew Brakke [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 28, 2006 1:48 PM
 To: Tomcat Users List
 Subject: Re: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

 Hi,

 Someone asked that I try Firefox to see if it was a certificate issue with
 MSIE.  I'm still having the same issue with Firefox: no response at all 
 from
 Tomcat 5.5.17 over the HTTPS connector.  HTTP is fine.  Netstat shows
 established connection by TCP/IP, just no response from TC.

 I've tried:
 changing ports between 443 and 8443,
 explicit path for .keystore,
 switching from TLS to SSL,
 explicit keystore type (JKS),
 explicit keystore password (changeit),

 any more ideas?

 Thanks
 E


 - Original Message - 
 From: Erik Brakke [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Friday, June 23, 2006 2:52 PM
 Subject: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat


 Hi,

 I have set up standalone Tomcat 5.5.17 on Windows 2000 + J2EE 5 JDK  and
 get the default ROOT webapp.  I cannot access the ROOT webapp  using
 HTTPS.

 I set up SSL using the HOW-TO: generate a self-signed JKS .keystore  file
 and enabled the HTTPS connector in server.xml.

 I'll open https://localhost:8443 in my browser, it connects (I can see 
 it
 established with netstat), the browser states it is opening the  page, 
 but
 Tomcat does not respond, I do not get a certificate warning  or the ROOT
 webapp.

 I can't find any errors in /logs.  The access log shows activity on  HTTP
 but nothings shows for HTTPS.

 I have tried changing ports between 443 and 8443,
 tried explicit path for .keystore,
 tried switching from TLS to SSL.

 Any ideas?  I tried upping logging to debug in server.xml but still no
 error messages.

 THANKS!!
 Erik


 -
 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: web.xml missing

2006-06-30 Thread Jay Burgess
This may not be your problem, but I've seen the same missing web.xml problem
before when trying to deploy and startup after a failed undeploy.  The undeploy
failed because one of my webapp files in the Tomcat directory was locked and
couldn't be deleted (either by me in a text editor, or sometimes by Tomcat,
which I've never been able to explain.)

Jay
http://www.vtgroup.com/
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 30, 2006 8:55 AM
To: users@tomcat.apache.org
Subject: web.xml missing 

I have web.xml linked to the webapps/Root/WEB-INF folder in Tomcat but it
does not get recognized when I try to build a war file.  The WAR file
process completes but I do not get a working war file.  Any ideas?

Jun 30, 2006 9:01:48 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Jun 30, 2006 9:01:49 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1181 ms
Jun 30, 2006 9:01:49 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 30, 2006 9:01:49 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
Jun 30, 2006 9:01:49 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jun 30, 2006 9:01:49 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Jun 30, 2006 9:01:49 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program
Files\Apache Software Foundation\Tomcat 5.0
\conf\Catalina\localhost\admin.xml
Jun 30, 2006 9:01:50 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Jun 30, 2006 9:01:50 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Jun 30, 2006 9:01:50 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
Jun 30, 2006 9:01:51 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program
Files\Apache Software Foundation\Tomcat 5.0
\conf\Catalina\localhost\balancer.xml
Jun 30, 2006 9:01:51 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program
Files\Apache Software Foundation\Tomcat 5.0
\conf\Catalina\localhost\manager.xml
Jun 30, 2006 9:01:51 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /struts-blank from URL
file:C:/Program Files/Apache Software Foundation/Tomcat 5.0
/webapps/struts-blank
Jun 30, 2006 9:01:52 AM org.apache.struts.tiles.TilesPlugin
initDefinitionsFactory
INFO: Tiles definition factory loaded for module ''.
Jun 30, 2006 9:01:52 AM org.apache.struts.validator.ValidatorPlugIn
initResources
INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
Jun 30, 2006 9:01:52 AM org.apache.struts.validator.ValidatorPlugIn
initResources
INFO: Loading validation rules file from '/WEB-INF/validation.xml'
Jun 30, 2006 9:01:52 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /struts-examples from URL
file:C:/Program Files/Apache Software Foundation/Tomcat 5.0
/webapps/struts-examples
Jun 30, 2006 9:01:53 AM org.apache.struts.validator.ValidatorPlugIn
initResources
INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
Jun 30, 2006 9:01:53 AM org.apache.struts.validator.ValidatorPlugIn
initResources
INFO: Loading validation rules file from
'/WEB-INF/validator/validation.xml'
Jun 30, 2006 9:01:54 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /jsp-examples from URL
file:C:\Program Files\Apache Software Foundation\Tomcat 5.0
\webapps\jsp-examples
Jun 30, 2006 9:01:54 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /LoginAction from URL
file:C:\Program Files\Apache Software Foundation\Tomcat 5.0
\webapps\LoginAction
Jun 30, 2006 9:01:54 AM org.apache.catalina.startup.ContextConfig
applicationConfig
INFO: Missing application web.xml, using defaults only
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/LoginAction]
Jun 30, 2006 9:01:54 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path  from URL file:C:\Program
Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT
Jun 30, 2006 9:01:55 AM org.apache.struts.tiles.TilesPlugin
initDefinitionsFactory
INFO: Tiles definition factory loaded for module ''.
Jun 30, 2006 9:01:55 AM org.apache.struts.validator.ValidatorPlugIn
initResources
INFO: Loading validation rules file from '/WEB-INF/validator

Typo: Apache Tomcat 7 Configuration Reference

2011-04-22 Thread Jay, Michael
There appears to be an error in a diagram in The Context Container. 

http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Environment_Entries

env-entry
  env-entry-namemaxExemptions/param-name   
  env-entry-value10/env-entry-value
  env-entry-typejava.lang.Integer/env-entry-type
/env-entry

If this is the wrong forum, please let me know. 

mj

Michael Jay
Smathers Libraries IT
Suite 1250
2124 Waldo Road
Gainesville, FL 32609

em...@ufl.edu
352.273.2678






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



problem with missing library(s)--google app engine

2011-05-06 Thread Jay, Michael
I am trying to write a web app to do authentication through google. My 
development environment is eclipse with the google GAE and jetty. I get no 
compile time errors--and I copied the web module folder (named *war* in 
eclipse) manually into webapps in tomcat. No .war file involved. The app runs 
in the dev server but via tomcat the following error occurs, even though the 
.jar files are in the WEB-INF/lib folder in my app in tomcat. Any ideas? Some 
fundamental tomcat configuration setting? Tomcat is attempting to run the 
proper servlet based on the web.xml file.

One of the files in the lib folder is appengine-api-1.0-sdk-1.4.3.jar

eclipse likes my import statement:

import com.google.appengine.api.users.*;

This package is in the .jar. User is a class in the package. createLoginURL() 
is a method in the UserServiceFactory class, also in the package. And yet, live 
in tomcat . . . 

error:

com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package 
'user' or call 'CreateLoginURL()' was not found.
com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:98)
com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:50)

com.google.appengine.api.users.UserServiceImpl.makeSyncCall(UserServiceImpl.java:123)

com.google.appengine.api.users.UserServiceImpl.createLoginURL(UserServiceImpl.java:62)
googleOID.splash.doGet(splash.java:34)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

Library visibility seems to be the most common error I enounter so I assume I'm 
missing something elementary.

--michael

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



Static Resources - Runtime Problems

2011-05-24 Thread Jay, Michael
I'm finding that whether I use a redirect() or a forward() to a static 
resource, my server goes crazy. 

  at 
org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:572)
  at 
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)
  at 
org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:572)
  at 
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)

Above is output to the console many times. Then the pattern below repeats until 
I stop the application with the Tomcat Manager.

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
 at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
 at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
 at edu.ufl.uflib.hr.web.HRSurveyLogin.doGet(HRSurveyLogin.java:180)

I must be overlooking something very basic. 

The catalina log simply says:

May 24, 2011 8:33:35 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 461 instance(s) to be deallocated
May 24, 2011 8:33:36 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 461 instance(s) to be deallocated
May 24, 2011 8:33:37 AM org.apache.catalina.core.StandardWrapper unload

Can anyone help?

mj

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



RE: Static Resources - Runtime Problems

2011-05-24 Thread Jay, Michael
I apologize for the insufficient data.  The goal is to foward the user to 
google.com to login and on successful authentication, reveal the original page 
desired. The original author used a .jsp that simply produces itself. But 
that's a separate issue--I think. I've not been able to capture an exception 
when attempting to forward(). Tomcat seems to go into a loop of some kind.--mj

OS: Windows 7 Enterprise (6.1.7600)
Tomcat: 7.0.12
IE: 8.0.7600.16385

The initial servlet  . . . 

//  source file HRSurveyLogin.java

package edu.ufl.uflib.hr.web;

//  external libraries
import java.io.*;
import java.lang.*;
import java.util.*;

import javax.servlet.*;
import javax.servlet.http.*;

import org.openid4java.*;
import org.openid4java.association.*;
import org.openid4java.discovery.*;
import org.openid4java.consumer.*;
import org.openid4java.message.*;
import org.openid4java.message.ax.*;

public class HRSurveyLogin extends HttpServlet
{ 
//   attributes
 String discoveryTargetURL; //  
userSuppliedString (discovery endpoint)
 String verifierServlet;//  
openid.return_to (our verification servlet)
 String assocHandle;//  
openid.assoc_handle
 
 AuthRequest authentication;//  object 
with auth data
 ConsumerManager manager;   //  
directing openid4java object
 DiscoveryInformation discoveryData;//  after 
association
List discoveryDoc;  //  
xrds response doc (xml--why a list?)
 FetchRequest fetcher;  //  
attribute getter
 
 PrintWriter outstream; //  not used
 
 RequestDispatcher home;//  control 
transfer mechanism
 RequestDispatcher debug;
 RequestDispatcher test;
 
 ServletContext context;//  this 
app's memory area
 
/*
*   
*
*   populate the openid4java tools here and prepare the 
*
*   authentication request here during intit()  
*
*   
*
*/

public void init() throws ServletException
{
//  prepare openid4java objects
//  TODO: use real ip address
//  verifierServlet = 
http://128.227.254.84:8080/hrsurvey/verify;; 
discoveryTargetURL = https://www.google.com/accounts/o8/id;;
verifierServlet = http://localhost:8080/hrsurvey/verify;;  


manager = new ConsumerManager();

context = this.getServletContext();

try
{
//  prepare control transfer mechanism
debug = context.getRequestDispatcher(/error);
home = context.getRequestDispatcher(/hrsurvey.htm);
}

catch(Exception error)
{
System.out.println(problem initializing dispatchers:  
+ error.getMessage());
}   

try
{
//  perform discovery
discoveryDoc = manager.discover(discoveryTargetURL);

}

catch(Exception error)
{
System.out.println(problem during discovery);
System.out.println(error.getMessage());
}
 
//  handshake and get real endpoint address
//  TODO: catch errors here--see documentation
discoveryData = manager.associate(discoveryDoc); 
 
try
{
//  build authentication request and obtain shared secret
authentication = manager.authenticate(discoveryData, 
verifierServlet);
assocHandle = authentication.getHandle();   
}

catch (Exception error)
{
System.out.println( problem with authentication!!! + 
error.getMessage());
}   

try
{   //  add e-mail request to url
fetcher = FetchRequest.createFetchRequest();
fetcher.addAttribute(email, 

RE: Static Resources - Runtime Problems

2011-05-24 Thread Jay, Michael
I appreciate you trying to be helpful rather than otherwise. The current state 
of the code is simply an exploration, a debugging exercise, though one that is 
causing a lot of frustration and costing a lot of time.  I'm not sure how to 
get the full trace. It goes beyond what I can capture in the console window and 
it doesn't appear in catalina.log--many more lines appear in the console. 
Perhaps tweaking the shortcut that starts tomcat to pipe to a file? Any 
suggestions on how to get that data for you?

And  to answer Charles and Martin, no, I haven't mapped the .htm to anything. 
Since it is not a servlet I didn't know that was necessary. If I have a 
test.htm file in the context root of this web app, how would I configure the 
servlet and servlet-mapping elements? I don't want the user to be able to 
access the page directly, I want a servlet to forward to it under the right 
conditions.

I'll try again to isolate the error. 

mj

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Tuesday, May 24, 2011 2:23 PM
To: Tomcat Users List
Subject: Re: Static Resources - Runtime Problems

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael,

On 5/24/2011 10:47 AM, Jay, Michael wrote:
 I apologize for the insufficient data.  The goal is to foward the
 user to google.com to login and on successful authentication, reveal
 the original page desired. The original author used a .jsp that
 simply produces itself. But that's a separate issue--I think. I've
 not been able to capture an exception when attempting to forward().
 Tomcat seems to go into a loop of some kind.--mj

It looks more like the object graph has a /very/ long chain to get to
the real request object.

Can you post the /entire/ stack trace you get? What is the actual error?
Probably a StackOverflowException or something like that.

HttpServletRequestWrapper is a Servlet API class that can be used to
wrap a request object. AFAIK, Tomcat does not use this class for
anything unless you have explicitly configured Tomcat to attach a Filter
to incoming requests.

If you have many requests that forward to other resources that forward
to other resources that forward... and so on, the request can be
(inadvertently) wrapped multiple times.

I didn't see *any* filter definitions in your web.xml so your code must
be wrapping something at some point. A look at the full stack trace will
help a bit.

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

iEYEARECAAYFAk3b93gACgkQ9CaO5/Lv0PAMcQCfXhUBsPGd6zDcU1MiFhFc8ouj
xfAAnR+Zq+1gkkTQtVMS7xHZ/E7R1s+Q
=BwFT
-END PGP SIGNATURE-

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



RE: Static Resources - Runtime Problems

2011-05-24 Thread Jay, Michael
That was gnawing at the back of my mind a little bit. So how would you have an 
entry point servlet run at a simple address without consuming everything in 
that path? If the context is /hrsurvey and all the other servlets are mapped 
with that assumed as a prefix, can there not be anything mapped to /hrsurvey?

If I'm looking foolish here it's worth it. Under a lot of pressure to make 
something work that I've never looked at before. I appreciate the insight.

mj

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Tuesday, May 24, 2011 4:07 PM
To: Tomcat Users List
Subject: RE: Static Resources - Runtime Problems

 From: Jay, Michael [mailto:em...@ufl.edu] 
 Subject: RE: Static Resources - Runtime Problems

 I haven't mapped the .htm to anything.

Actually, you have:

   servlet-mapping
   servlet-nameHRSurveyLogin/servlet-name
   url-pattern//url-pattern
   /servlet-mapping  

That will send everything to HRSurveyLogin, including anything it redirects or 
forwards.  (Can you say, infinite loop?)

 - Chuck


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



RE: Static Resources - Runtime Problems

2011-05-24 Thread Jay, Michael
Thanks! 

-Original Message-
From: Bill Miller [mailto:millebi.subscripti...@gmail.com] 
Sent: Tuesday, May 24, 2011 4:32 PM
To: 'Tomcat Users List'
Subject: RE: Static Resources - Runtime Problems

Using a filter would insert the entry point of the Servlet into an entire path 
with the option of allowing/not allowing it to continue down the call chain.

--FilterA-FilterB-RealServlet
 |
 +-SomethingInteresting

FilterA will have the ability to examine the request and pass it to some other 
logic (SomethingInteresting) and also abort the passing to FilterB and the 
RealServlet if required. This means that a call to /a/b/wooHoo can be 
examined/processed at the /a level, and then the /a/b level before it finally 
arrives at /a/b/wooHoo.

Bill
-Original Message-
From: Jay, Michael [mailto:em...@ufl.edu] 
Sent: May 24, 2011 4:21 PM
To: 'Tomcat Users List'
Subject: RE: Static Resources - Runtime Problems

That was gnawing at the back of my mind a little bit. So how would you have an 
entry point servlet run at a simple address without consuming everything in 
that path? If the context is /hrsurvey and all the other servlets are mapped 
with that assumed as a prefix, can there not be anything mapped to /hrsurvey?

If I'm looking foolish here it's worth it. Under a lot of pressure to make 
something work that I've never looked at before. I appreciate the insight.

mj

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Tuesday, May 24, 2011 4:07 PM
To: Tomcat Users List
Subject: RE: Static Resources - Runtime Problems

 From: Jay, Michael [mailto:em...@ufl.edu] 
 Subject: RE: Static Resources - Runtime Problems

 I haven't mapped the .htm to anything.

Actually, you have:

   servlet-mapping
   servlet-nameHRSurveyLogin/servlet-name
   url-pattern//url-pattern
   /servlet-mapping  

That will send everything to HRSurveyLogin, including anything it redirects or 
forwards.  (Can you say, infinite loop?)

 - Chuck


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



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



Tomcat Connector for Sun ONE Web Server 7.0 and Tomcat 6.0.x

2012-09-19 Thread Jay Rao
Is there a Tomcat Connector for Sun ONE Web Server 7.0 and Tomcat 6.0.x
running on RedHat Linux 5.7 64-bit ?

If not, any idea on when will it would be available please ?


Re: Tomcat Connector for Sun ONE Web Server 7.0 and Tomcat 6.0.x

2012-09-26 Thread Jay Rao
Yup

Going the Apache Web Server route now. Also evaluating RedHat's JBoss EWS


On Wed, Sep 19, 2012 at 2:05 PM, Pid * p...@pidster.com wrote:

 On 19 Sep 2012, at 16:59, Hassan Schroeder hassan.schroe...@gmail.com
 wrote:

  On Wed, Sep 19, 2012 at 8:02 AM, Jay Rao jay...@gmail.com wrote:
  Is there a Tomcat Connector for Sun ONE Web Server 7.0 and Tomcat 6.0.x
  running on RedHat Linux 5.7 64-bit ?
 
  If not, any idea on when will it would be available please ?
 
  My guess: When dead, dreaming Cthulhu wakes in his house at
  R'lyeh and schedules a Tupperware party.

 LMAO

  I could be wrong, though.

 Or you could pay someone to create one.
 Or try the 6.x one that is the top result when you google sun one
 tomcat connector
 Or ditch Sun ONE and use something current.


 p


  --
  Hassan Schroeder  hassan.schroe...@gmail.com
  http://about.me/hassanschroeder
  twitter: @hassan
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 

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




Any examples of using the Web Services support (JSR 109)

2013-02-05 Thread Jay Mann

Hi,

Are there any examples of using the Web Services support (JSR 109)? We 
have a some web services we deploy to weblogic but i'd like to debug 
them locally using tomcat since weblogic is overkill for my laptop.


These webservices use jax-ws annotations and just have normal servlet 
definitions in the web.xml.   So i'm hoping they will work with the 
JSR-109 components, but i don't see even one example anywhere.


Thanks,

John

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



Problem in using multiple clusters in Tomcat 6.0.35

2013-03-07 Thread Jay Kakkad
[ version of tomcat : 6.0.35 , os version : RHEL 6.3 , Bit configuration : 
64bit ]

Hi,
I am having a requirement where I need to have the same Multicast Ip, but the 
cluster needs to be differentiated based on domain.For this we are using a 
domain interceptor DomainFilterInterceptor. So we have configured server.xml as 
follows:

Host name=localhost  appBase=webapps unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster 
channelSendOptions=8
Manager className=org.apache.catalina.ha.session.DeltaManager
expireSessionsOnShutdown=false
 notifyListenersOnReplication=true/
..
Membership className=org.apache.catalina.tribes.membership.McastService
address=228.0.0.4
domain=abc.com
port=45564
frequency=500
dropTime=3000 /
.
Interceptor 
className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/
Interceptor 
className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/
Interceptor 
className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/
Interceptor 
classname=org.apache.catalina.tribes.group.interceptors.DomainFilterInterceptor
 domain=abc.com/
..
/Channel
.
/Cluster
/Host

For this configuration we are getting the following error.

java.lang.NullPointerException
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at 
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)
at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
at 
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1356)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
 Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at org.apache.catalina.startup.Catalina.start(Catalina.java:582)
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:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Mar 5, 2013 2:32:32 PM org.apache.catalina.startup.Catalina load
WARNING: Catalina.start using conf/server.xml:
java.lang.NullPointerException
at 
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2806)
at 
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2832)
at 
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1359)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown 
Source)
at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
 Source)
at 

how to bounce tomcat remote?

2013-11-05 Thread Jay Vee
I need to bounce tomcat (run a stop, startup script) but from a remote
machine.

SSH will not work.

Tomcat runs as 'tomcat_user' and this user is not a ssh user so we cannot
ssh into a box using this user.

We have to ssh into the box with our exchange credentials and then $sudo su
- tomcat _user
to do the startup / shutdown.

Is there any other way to programatially stop/start comcat?  Ideally I
would like to do this with gradle but there is no plugin so far:

gradle tomcat plugin ( only works on a local tomcat, not a remote )
gradle cargo plugin ( does not have a task that will stop  restart tomcat)

Unfortunately gradle is a bit lacking at the moment, ideally a single call
to a gradle or ant task would be nice to bounce the server ( from a remote
machine ).

thanks


J.V.


how to reply

2013-11-06 Thread Jay Vee
I subscribed to this email list using the digest format; How do I freaking
reply now?

I see a reply to a previous response, to construct a reply I have to
cut-copy-paste into another message.  It's not easy.

Can you people install forum software already and get rid of the freaking
email list? cheez.


how to bounce tomcat remote?

2013-11-06 Thread Jay Vee
Threaded messaging key:
   indicates my original post
indicates a reply
   NO  indicates my reply to the reply.

On Nov 5, 2013, at 6:36 PM, Jay Vee jvsr...@gmail.com wrote:

 I need to bounce tomcat (run a stop, startup script) but from a remote
 machine.

 SSH will not work.

 Tomcat runs as 'tomcat_user' and this user is not a ssh user so we cannot
 ssh into a box using this user.

 We have to ssh into the box with our exchange credentials and then $sudo
su
 - tomcat _user
 to do the startup / shutdown.

Why does this not work?  Are you trying to automate the process in some
way?
  Yes of course, we are trying to automate the deployment of a .war, bounce
tomcat.
  This whole deployment pipeline thing just might catch on and we want to
jump on the
  band wagon just in case it does.

If so, maybe look at configuring SSH  sudo.  They are pretty flexible.
 For example,
you could enable key based authentication (i.e. password-less login) for
your SSH user and
configure sudo to allow your user to run the startup / shutdown scripts
without a password.
 With that you could do a one command restart.
  This is a no go.  I am not in the sys admin department.  If I ask them to
configure SSH  sudo
  they will freak no matter how rationale my argument is.  We have access
to the machines with
  out exchange/ldap login and then we sudo su to root.  So this is why I
posted the question.

 Is there any other way to programatially stop/start comcat?

There's the shutdown port (or perhaps System.exit() called from an app),
but that's just to
stop Tomcat.  Once it's stopped you'd need to start it again somehow.
  I will look up the shutdown port.  How would one programatically use the
shutdown port to shut
  tomcat down?

The solution you're looking for here is going to be external to Tomcat.
  Yes this is expected.  (bounce tomcat remote).  I am running a script on
another box and want to bounce tomcat
  with a script (ant/maven or something else)

Tomcat cannot restart
itself because once Tomcat's process exits, its code is no longer running.
 Thus there is
nothing to trigger it to start again.  You need something outside of
Tomcat like a script,
monitoring utility or service daemon to do a true restart.
  Yes, how would I do this? any other solutions?

Commons Daemon would be the first thing to check out since it's included
with Tomcat, but
there are tons of other options.

  https://commons.apache.org/proper/commons-daemon/
  Awesome, I will check that out.  But with commons-daemon, I would think I
still need ssh access
  as root to execute a script.

Dan

 Ideally I would like to do this with gradle but there is no plugin so
far:

 gradle tomcat plugin ( only works on a local tomcat, not a remote )
 gradle cargo plugin ( does not have a task that will stop  restart
tomcat)

 Unfortunately gradle is a bit lacking at the moment, ideally a single
call
 to a gradle or ant task would be nice to bounce the server ( from a
remote
 machine ).

 thanks


 J.V.


Configuring a JAASRealm

2006-03-30 Thread Jay Dickon Glanville
Is there a way that I can provide custom configuration information to
my JAASRealm?

The situation is this: I'm using a JAASRealm to authenticate against a
legacy database (I can't use the JDBCRealm as the password encoding is
non-standard).  As such, I'd like to be able to provide the JAASRealm
with some of the connection information (db-user-id, db-url, etc).

What is the best way to pass this information on to my JAASRealm's LoginModule?

Thanks.


--
Jay Dickon Glanville

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



is it possible to determin the requested resource when using realm authentication?

2006-03-31 Thread Jay Dickon Glanville
I believe that I already know the answer to this.  But, if possible,
it would be nice to have some confirmation.

I have an application that uses JAASRealm for authentication.  Within
my LoginModule class, is it possible to determine which resource the
user is currently trying to access?

My current interpretation of the documentation is that the
authentication module simply knows who you are and what your
credential (password) is.  Upon successful authentication, the module
returns with success/fail and the roles associated with that user. 
It's then up to the application itself to determine if the user's role
has access to the requested resource.  (this is usually declaratively
stated, either through the web.xml configuration, or the struts
configuration).

Is my interpretation of things correct?

Thanks.

--
Jay Dickon Glanville

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



newbie: tomcat partly works

2006-06-07 Thread Jay G. Scott

i have several problems, but i think i need to address them one at a time.

tomcat 5.5.17
java
java version 1.5.0_05
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Server VM (build 1.5.0_05-b05, mixed mode)

solaris 9
apache 1.3.29

problem:

i can't __SAVE__ a context PERMANENTLY.  if i click on save, and
then commit changes, it's there.  the stuff it finds does not work,
but it's found.  however, if i stop/start tomcat+apache, the
context i just made is not there.

i've tried changing many directories to mode 1777, in case it was
a permissions problem, didn't help.  i've looked at the log files,
and things don't look peachy but these things are HUGE.  which
one do you want to see?

also, when i stop/start things, many/all? configu .xml files
get backed up.  i'm thought that might be normal, but is it an
indication that something didn't work right?  why would it want
to copy my server.xml file?  doesn't make sense

j.

-
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 to save a context---save and commit changes not enough.

2006-06-12 Thread Jay G. Scott

greetings,

i go into the web-based admin tool, click localhost, create a new context,
type in the stuff, and save it.  it says save successful.  the context appears
under the localhost.  i click commit changes.  the context is still there.

if i stop/start tomcat, the context is gone.

is that normal?  how do i make it permanent?

i looked at the manager-howto.html, but if it's there i didn't see it.

tomcat-apache-5.5.17
apache-1.3.29
solaris 9

j.

-- 
Jay Scott   512-835-3553[EMAIL PROTECTED]
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div.   S224
University of Texas at Austin

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



is anyone seeing my posts? i need help.

2006-06-15 Thread Jay G. Scott

i've posted a couple of times.  i need help.  i can't tell if anyone
is seeing the posts, or no one is replying, or what.  would someone
at least acknowledge that the posts are getting in?

j.

-- 
Jay Scott   512-835-3553[EMAIL PROTECTED]
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div.   S224
University of Texas at Austin

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



can't save a context.

2006-06-15 Thread Jay G. Scott

okay.  i'm being seen.  thanks for that, at least.

i can't save a context.  I go to catalina- localhost-make a context
i put in the paths.
i click save, it says save successful.
i click commit changes.

i then try to use the context, on a file some vendor supplied, called
about.jsp.  it does not compile--that's another problem, but maybe
that'll help diagnose.

if i put a flat.html file of my own in that location, i can see that
file 100%.  so the context has taken, if you will.

i do a find /apache-tomcat-5.5.17 -name ibi_apps\*
and it does not show a ibi_apps.xml file.  it does show some others:
./work/Catalina/localhost/ibi_apps

if i start/stop tomcat, the context is gone.

how'd i install?  like this:
as root
mkdir /apache-tomcat-5.5.17
chown jgs:omssys /apache-tomcat-5.5.17

su - jgs
cd /

umask 022

gtar xf apache-tomcat-5.5.17.tar

gtar xf apache-tomcat-5.5.17-admin.tar
-

edited startup.sh, shutdown.sh, tomcat-users.xml.

the startup, shutdown i presume cannot be the problem--otherwise,
things wouldn't start at all, right?  i can start/stop and see
the processes when they're running.

solaris 9
java 1.5.0_07
tomcat 5.5.17
i had apache-1.3.29 but i can use another or leave it out

 ls -ld /apache-tomcat-5.5.17
drwxr-xr-x  11 jgs  omssys   512 Jun 15 16:26 /apache-tomcat-5.5.17

i have this same problem on another machine.  i'm inclined to think
it's a bug in 5.5.17  i'm grasping at straws.

thanks for whatever.

j.

-- 
Jay Scott   512-835-3553[EMAIL PROTECTED]
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div.   S224
University of Texas at Austin

-
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 save a context.--both work

2006-06-15 Thread Jay G. Scott
 
 ok...
 just for the sake of problem identifying: can you stop your tomcat
 go into webapps directory, create a new directory foo
 change into foo, create an empty WEB-INF directory.
 
 copy a plain html and a plain jsp file into webapps/foo, like foo.jsp
 and foo.html
 
 try http://host:port/foo/foo.html and  http://host:port/foo/foo.jsp
 and tell us what happens?

both of those work, no fuss, no muss, no making of contexts, just
doing them, both work.

it's remarkable to me that the jsp works, because in the other dirs,
the other contexts, that is, i get compile problems.  here, the .jsp
just works.

thanks.

j.


 
 regards
 Leon
 
 
 On 6/16/06, Jay G. Scott [EMAIL PROTECTED] wrote:
 
  okay.  i'm being seen.  thanks for that, at least.
 
  i can't save a context.  I go to catalina- localhost-make a context
  i put in the paths.
  i click save, it says save successful.
  i click commit changes.
 
  i then try to use the context, on a file some vendor supplied, called
  about.jsp.  it does not compile--that's another problem, but maybe
  that'll help diagnose.
 
  if i put a flat.html file of my own in that location, i can see that
  file 100%.  so the context has taken, if you will.
 
  i do a find /apache-tomcat-5.5.17 -name ibi_apps\*
  and it does not show a ibi_apps.xml file.  it does show some others:
  ./work/Catalina/localhost/ibi_apps
 
  if i start/stop tomcat, the context is gone.
 
  how'd i install?  like this:
  as root
  mkdir /apache-tomcat-5.5.17
  chown jgs:omssys /apache-tomcat-5.5.17
 
  su - jgs
  cd /
 
  umask 022
 
  gtar xf apache-tomcat-5.5.17.tar
 
  gtar xf apache-tomcat-5.5.17-admin.tar
  -
 
  edited startup.sh, shutdown.sh, tomcat-users.xml.
 
  the startup, shutdown i presume cannot be the problem--otherwise,
  things wouldn't start at all, right?  i can start/stop and see
  the processes when they're running.
 
  solaris 9
  java 1.5.0_07
  tomcat 5.5.17
  i had apache-1.3.29 but i can use another or leave it out
 
   ls -ld /apache-tomcat-5.5.17
  drwxr-xr-x  11 jgs  omssys   512 Jun 15 16:26 /apache-tomcat-5.5.17
 
  i have this same problem on another machine.  i'm inclined to think
  it's a bug in 5.5.17  i'm grasping at straws.
 
  thanks for whatever.
 
  j.
 
  --
  Jay Scott   512-835-3553[EMAIL PROTECTED]
  Head of Sun Support, Sr. Operating Systems Specialist
  Applied Research Labs, Computer Science Div.   S224
  University of Texas at Austin
 
  -
  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]
 


-- 
Jay Scott   512-835-3553[EMAIL PROTECTED]
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div.   S224
University of Texas at Austin

-
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 save a context.

2006-06-19 Thread Jay G. Scott
, create an empty WEB-INF directory.
 
  copy a plain html and a plain jsp file into webapps/foo, like foo.jsp
  and foo.html
 
  try http://host:port/foo/foo.html and  http://host:port/foo/foo.jsp
  and tell us what happens?
 
  regards
  Leon
 
 
  On 6/16/06, Jay G. Scott [EMAIL PROTECTED] wrote:
 
  okay.  i'm being seen.  thanks for that, at least.
 
  i can't save a context.  I go to catalina- localhost-make a context
  i put in the paths.
  i click save, it says save successful.
  i click commit changes.
 
  i then try to use the context, on a file some vendor supplied, called
  about.jsp.  it does not compile--that's another problem, but maybe
  that'll help diagnose.
 
  if i put a flat.html file of my own in that location, i can see that
  file 100%.  so the context has taken, if you will.
 
  i do a find /apache-tomcat-5.5.17 -name ibi_apps\*
  and it does not show a ibi_apps.xml file.  it does show some others:
  ./work/Catalina/localhost/ibi_apps
 
  if i start/stop tomcat, the context is gone.
 
  how'd i install?  like this:
  as root
  mkdir /apache-tomcat-5.5.17
  chown jgs:omssys /apache-tomcat-5.5.17
 
  su - jgs
  cd /
 
  umask 022
 
  gtar xf apache-tomcat-5.5.17.tar
 
  gtar xf apache-tomcat-5.5.17-admin.tar
  -
 
  edited startup.sh, shutdown.sh, tomcat-users.xml.
 
  the startup, shutdown i presume cannot be the problem--otherwise,
  things wouldn't start at all, right?  i can start/stop and see
  the processes when they're running.
 
  solaris 9
  java 1.5.0_07
  tomcat 5.5.17
  i had apache-1.3.29 but i can use another or leave it out
 
   ls -ld /apache-tomcat-5.5.17
  drwxr-xr-x  11 jgs  omssys   512 Jun 15 16:26 
  /apache-tomcat-5.5.17
 
  i have this same problem on another machine.  i'm inclined to think
  it's a bug in 5.5.17  i'm grasping at straws.
 
  thanks for whatever.
 
  j.
 
  --
  Jay Scott   512-835-3553[EMAIL PROTECTED]
  Head of Sun Support, Sr. Operating Systems Specialist
  Applied Research Labs, Computer Science Div.   S224
  University of Texas at Austin
 
  -
  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]
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-- 
Jay Scott   512-835-3553[EMAIL PROTECTED]
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div.   S224
University of Texas at Austin

-
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 save a context. 5.0.28 will save.

2006-06-19 Thread Jay G. Scott
okay.  some definite results.

5.5.17
solaris 9
29  java -version
java version 1.5.0_07
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)

this does not make a yourapp.xml file.  it further forgets all contexts
added via the web interface  when tomcat is restarted.


5.0.28
same for all the rest.

does ***NOT*** forget contexts.  the .xml file persists and the context
appears when expanded under catalina-localhost on the web page.


based on the above, i would say it's a bug at the 5.5.17 release, but
remember i'm completely unschooled in java (almost).

j.


[snip]

   ok...
   just for the sake of problem identifying: can you stop your tomcat
   go into webapps directory, create a new directory foo
   change into foo, create an empty WEB-INF directory.
  
   copy a plain html and a plain jsp file into webapps/foo, like foo.jsp
   and foo.html
  
   try http://host:port/foo/foo.html and  http://host:port/foo/foo.jsp
   and tell us what happens?
  
   regards
   Leon
  
  
   On 6/16/06, Jay G. Scott [EMAIL PROTECTED] wrote:
  
   okay.  i'm being seen.  thanks for that, at least.
  
   i can't save a context.  I go to catalina- localhost-make a context
   i put in the paths.
   i click save, it says save successful.
   i click commit changes.
  
   i then try to use the context, on a file some vendor supplied, called
   about.jsp.  it does not compile--that's another problem, but maybe
   that'll help diagnose.
  
   if i put a flat.html file of my own in that location, i can see that
   file 100%.  so the context has taken, if you will.
  
   i do a find /apache-tomcat-5.5.17 -name ibi_apps\*
   and it does not show a ibi_apps.xml file.  it does show some others:
   ./work/Catalina/localhost/ibi_apps
  
   if i start/stop tomcat, the context is gone.
  
   how'd i install?  like this:
   as root
   mkdir /apache-tomcat-5.5.17
   chown jgs:omssys /apache-tomcat-5.5.17
  
   su - jgs
   cd /
  
   umask 022
  
   gtar xf apache-tomcat-5.5.17.tar
  
   gtar xf apache-tomcat-5.5.17-admin.tar
   -
  
   edited startup.sh, shutdown.sh, tomcat-users.xml.
  
   the startup, shutdown i presume cannot be the problem--otherwise,
   things wouldn't start at all, right?  i can start/stop and see
   the processes when they're running.
  
   solaris 9
   java 1.5.0_07
   tomcat 5.5.17
   i had apache-1.3.29 but i can use another or leave it out
  
ls -ld /apache-tomcat-5.5.17
   drwxr-xr-x  11 jgs  omssys   512 Jun 15 16:26 
   /apache-tomcat-5.5.17
  
   i have this same problem on another machine.  i'm inclined to think
   it's a bug in 5.5.17  i'm grasping at straws.
  
   thanks for whatever.
  
   j.
  
   --
   Jay Scott   512-835-3553[EMAIL PROTECTED]
   Head of Sun Support, Sr. Operating Systems Specialist
   Applied Research Labs, Computer Science Div.   S224
   University of Texas at Austin
[snipt]

-- 
Jay Scott   512-835-3553[EMAIL PROTECTED]
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div.   S224
University of Texas at Austin

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



Re: mod_jk, symbol ap_null_cleanup: referenced symbol not found

2006-06-23 Thread Jay G. Scott
 
 
 i'm trying to get mod_jk to work.
 
 i configured apache thusly:
 
 
 set APVER=apache-1.3.36
 setenv CC gcc
 ./configure --prefix=/opt/depot/$APVER  \
 --enable-module=so  \
 --enable-module=info
 
 when i try to start apache, i get this error.
 
 Syntax error on line 2 of /opt/depot/apache-1.3.36/conf/tomcat/mod_jk.conf:
 Cannot load /opt/depot/apache-1.3.36/libexec/mod_jk.so into server:
 ld.so.1: /opt/depot/apache-1.3.36/bin/httpd:
 fatal:
 relocation error: file /opt/depot/apache-1.3.36/libexec/mod_jk.so:
 symbol ap_null_cleanup: referenced symbol not found
 
 
 if i do this instead:
 
 ./configure --prefix=/opt/depot/$APVER  \
 --enable-module=so  \
 --enable-module=info\
 --enable-shared=max
 
 Syntax error on line 205 of /opt/depot/apache-1.3.36/conf/httpd.conf:
 Cannot load /opt/depot/apache-1.3.36/libexec/mod_env.so into server:
 ld.so.1: /opt/depot/apache-1.3.36/bin/httpd:
 fatal:
 relocation error: file /opt/depot/apache-1.3.36/libexec/mod_env.so:
 symbol ap_palloc: referenced symbol not found
 
 
 i configure mod_jk.so like this:
 
 set GPACK=mod_jk.so-1.2.15
 ./configure --prefix=/opt/depot/$GPACK  \
 --with-apxs=/opt/depot/apache-1.3.36/bin/apxs
 
 
 
 so, how do you configure apache-1.3?
 how do you configure mod_jk?
 
 if i give mod_jk  --with-apache=DIR, which DIR do they mean?
 #  --with-apache=DIR  Build static Apache module. DIR is the pathname
 #to the Apache source directory.
 
 the source for apache-1.3.36?  or the apache-1.3 or -2.0 within the mod_jk 
 tree?
 

the answer was in the loader  i have both sun's and gnu's loaders on
the machine.  the configure scripts for apache and mod_jk were finding
different loaders.  i got rid of the gnu loader (binutils-2.15) and
used sun compilers and the sun loader and that got me going.

j.


 j.
 
 
 -- 
 Jay Scott 512-835-3553[EMAIL PROTECTED]
 Head of Sun Support, Sr. Operating Systems Specialist
 Applied Research Labs, Computer Science Div.   S224
 University of Texas at Austin
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-- 
Jay Scott   512-835-3553[EMAIL PROTECTED]
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div.   S224
University of Texas at Austin

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



  1   2   >