140.211.11.130

2008-10-30 Thread Philippe Couas
Hi,
 
My UNIX logs give me trace  OU_PKTS_DROP DST=140.211.11.130 .
It seems that is apache foundation ?
Why ?
 
Regards
Philippe
 
 


RE: antioJarLocking not working

2008-10-30 Thread Caldarale, Charles R
> From: James Ravn [mailto:[EMAIL PROTECTED]
> Subject: Re: antioJarLocking not working
>
> jruby-rack makes a call to the ServletContext's getRootPath() method

No such animal; perhaps you mean getRealPath()?

> It looks like this is returning the erroneous "/temp-appname"
> which doesn't exist.

Works fine for me; after setting antiResourceLocking, the expression
getServletConfig().getServletContext().getRealPath("")
returns
C:\apache-tomcat-6.0.18\temp\2-sample
which is exactly what it's defined to do:

"Returns a String containing the real path for a given virtual path. For 
example, the path '/index.html' returns the absolute file path on the server's 
filesystem would be served by a request for 
'http://host/contextPath/index.html', where contextPath is the context path of 
this ServletContext."

Note that any usage of getRealPath() is rather suspect, since there's no 
guarantee it will return anything useful; better to use getResourceAsStream() 
when I/O access is needed.

 - Chuck


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

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



Re: Clustering in tomcat

2008-10-30 Thread Sanjeev Verma
For session replication to happen in a cluster, all attributes stored in
the session object should be serializable - that is why you are seeing
the exception you see below.

On Thu, 2008-10-30 at 03:40 -0700, kashif_tomcat wrote:
> Thanks Filip...
> 
> i have got out of that problem... after adding clustering port in iptable. 
> 
> now i am getting another exception and following is detail.
> 
> 
> when i add  tag in web.xml of my applicatoin and start
> tomcat. then after login my application crashs and i get following exception
> in logs.
> 
> 
> 2008-10-30 21:19:43,812 INFO [com.vopium.controller.LoginController -
> handleControllerRequest] - Exception during LoginProcess setAttribute:
> Non-serializable attribute
> com.framework.exceptions.BaseRunTimeException
> at
> org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1295)
> at
> org.apache.catalina.ha.session.DeltaSession.setAttribute(DeltaSession.java:567)
> at
> org.apache.catalina.ha.session.DeltaSession.setAttribute(DeltaSession.java:551)
> at
> org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130)
> at
> com.vopium.controller.LoginController.handleControllerRequest(Unknown
> Source)
> at
> com.framework.controllers.BaseController.handleRequestInternal(Unknown
> Source)
> at
> org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
> at
> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
> at
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
> at
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
> at
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
> at
> org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at com.vopium.portal.utilities.URLFilter.doFilter(Unknown Source)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:209)
> at
> org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:347)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> at
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
> at
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
> at
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
> at
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
> at java.lang.Thread.run(Thread.java:619)
> 2008-10-30 21:19:43,829 INFO [com.vopium.interceptors.SecurityInterceptor -
> preHandle] - request.getRemoteAddr() 192.168.0.82   request.getRemoteHost()
> 192.168.0.82   /vopium/dashboard.htm
> 2008-10-30 21:19:43,830 INFO [com.vopium.interceptors.SecurityInterceptor -
> preHandle] - Session Not Found So Redirecting to Login and requested uri is
> /vopium/dashboard.htm
> 
> 
> and when i don,t add  tag in web.xml of my application then
> application logins successfully but when  tomcat 1 is down then session
> doesn't move to tomcat 2 and at that time application crash with same
> behavior and throws following msg in logs of tomcat 2 (catalina.out). 
> 
> 
> 
> 2008-10-30 20:34:51,126 INFO [com.vopium.interceptors.SecurityInterceptor -
> preHandle] - request.getRemoteAddr() 192.168.0.82   request.getRemoteHost()
> 192.168.0.82   /vopium/balanceandpaymentshistory.htm
> 2008-10-30 20:34:51,127 INFO [com.vopium.interceptors.SecurityInterceptor -
> preHan

Re: Sticky Session AND session duplication?

2008-10-30 Thread Sanjeev Verma
Hi Greg:

Please see below for my comments.

Regards
Sanjeev

On Thu, 2008-10-30 at 15:58 -0700, Greg Dick wrote:
> Hi,
> 
> I know that for typical web applications one of these approaches is 
> generally enough to achieve load balancing across nodes in a cluster, 
> but we here with an ICEfaces application would find it useful to do 
> both.
 Not sure if I understand this correctly, but neither of the
above (Sticky Session AND session duplication) cater to load balancing
in a cluster -> for that, you need to configure a load balancer in front
of tomcat, something like apache webserver for example, that will field
all incoming requests and then distribute them amongst the multiple
servers in your cluster. Session duplication (or replication) is more to
ensure that if a node in your cluster goes down, your client app does
not lose its session state since the cluster has the state replicated on
other nodes. Sticky session is to ensure that once a session is
established on one server, all future requests will go to the same
server. This is more for the purposes of efficiency. 

>  Session duplication to ensure the spreading around of session 
> information, and sticky sessions to ensure all the blocking web 
> connections from a single user get directed to the same node, until that 
> node fails. An asynchronous ICEfaces application can have two 
> connections to a server from a browser at the same time and it wont do 
> to have these load balanced to separate nodes of the cluster. 
 Can an ICEFaces application have two SESSIONS from the same
browser? I do not know ICEFaces but I do not think it can, and having
two connections is different from two sessions. If it is just two (or
multiple) connections, and your cluster is setup for sticky session,
then the request should only go the server that the browser is sticky
with.
> 
> Various sorts of documentation hint that these operations are mutually 
> exclusive and 
> we have found that it doesn't work in practice but we just wanted to 
> find if someone could either confirm that this is not supported, or that we 
> have our configuration wrong/understanding botched, or something.
> 
> Any help would be appreciated.
HTH!
> Greg
> 
> 
> 
> -
> 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: Logging

2008-10-30 Thread Caldarale, Charles R
> From: Mohit Anchlia [mailto:[EMAIL PROTECTED]
> Subject: Re: Logging
>
> But I quite didn't understand what tomcat-juli.jar is
> and how it will help with this issue.

The tomcat-juli.jar provides the APIs that core Tomcat code calls; in the 
standard distribution, this is a streamlined and renamed version of 
commons-logging.  Building in the extras replaces the guts of tomcat-juli.jar 
with the full commons-logging, but still with the classes renamed to match what 
Tomcat code expects.

You could look at at extra.xml to see how that's done.

 - Chuck


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

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



Re: Version 6.0.18 of Tomcat -- Web.xml file and file/directory structure

2008-10-30 Thread David Smith
Strip your web.xml file down to this:



http://java.sun.com/xml/ns/javaee";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
   version="2.5">


  Servlet and JSP Examples. Hello World Test

HelloWorld Test


Test
Test



Test
/Test




And it should work if you access http://localhost:8080/Test/Test --
obviously replacing localhost:8080 with whatever you normally use to get
to your tomcat service.  You don't have all those filters, listeners and
other servlets in your webapp, so don't include them.  Later on when you
get some footing in building servlets, you should make sure all your
classes are in packages as well.

--David

John Byrne wrote:
> David, and everyone else,
>
> Here is the file layout:
> C:\tomcat\apache-tomcat-6.0.18\webapps\Test\WEB-INF\web.xml
> C:\tomcat\apache-tomcat-6.0.18\webapps\Test\WEB-INF\lib
> C:\tomcat\apache-tomcat-6.0.18\webapps\Test\WEB-INF\classes\Test.class
>
> (I've also attached a zip file with the Test Directory in it.  The root
> to this directory is the same as above)
>
> Attached is my web.xml file.  (It is the same xml file that comes with
> the distribution except the added code below.)
>
> The only thing I added was:
> 
>
> 
> Test
> Test
> 
>
> 
> Test
> /Test
> 
> )
>
>
> John Byrne
> Support Network for Battered Women
> 1257 Tasman Dr. Suite C
> Sunnyvale, CA
> 94089
>  
> (408) 541-6100 x 138
> Fax: (408) 541-
>
> -Original Message-
> From: David Smith [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 30, 2008 3:53 PM
> To: Tomcat Users List
> Subject: Re: Version 6.0.18 of Tomcat
>
>   
>> However, I get an error in
>> the users log specifying a class is not found. Is this my Test.class
>> file it can't find?  
>> 
> Nope.  The class not found is listeners.SessionListener.  Can you post
> Test/WEB-INF/web.xml?  Also can you post some info regarding your file
> layout?
>
>   
>> The container itself doesn't "start" either.  In the Tomcat output
>> window it says:
>> 
> The container started fine.  Your web application didn't start because
> of the error not finding listeners.SessionListener..
>
> --David
>
> John Byrne wrote:
>   
>> I've tried for 2 days now to get my own HelloWorld program working
>> 
> with
>   
>> Apache Tomcat.  I have the exact same structure that the examples and
>> ROOT containers in the distribution have.  However, I get an error in
>> the users log specifying a class is not found. Is this my Test.class
>> file it can't find?  
>>
>>  
>>
>> Oct 30, 2008 2:25:21 PM org.apache.catalina.core.StandardContext
>> listenerStart
>>
>> SEVERE: Error configuring application listener of class
>> listeners.SessionListener
>>
>> java.lang.ClassNotFoundException: listeners.SessionListener
>>
>> at
>>
>> 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
>   
>> .java:1387)
>>
>> at
>>
>> 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
>   
>> .java:1233)
>>
>> at
>>
>> 
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j
>   
>> ava:3786)
>>
>> at
>>
>> 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4342
>   
>> )
>>
>> at
>>
>> 
> org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:124
>   
>> 7)
>>
>> at
>>
>> 
> org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.
>   
>> java:604)
>>
>> at
>>
>> 
> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.
>   
>> java:129)
>>
>> at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>
>> at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>
>> at
>>
>> 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
>   
>> tionFilterChain.java:290)
>>
>> at
>>
>> 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
>   
>> erChain.java:206)
>>
>> at
>>
>> 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
>   
>> e.java:233)
>>
>> at
>>
>> 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
>   
>> e.java:191)
>>
>> at
>>
>> 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
>   
>> Base.java:525)
>>
>> at
>>
>> 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
>   
>> :128)
>>
>> at
>>
>> 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
>   
>> :102)
>>
>> at
>>
>> 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
>   

RE: Sticky Session AND session duplication?

2008-10-30 Thread Martin Gainty

Hi Greg
makes perfect sense to deliver the same look&feel but more importantly 
maintaining same performance characteristics Does IceSoft have a configurable 
option to direct the client to the same webappserver as a previous browser 
session?
Advantages of icesoft over using (Load-Balance) lbfactor from jk 
worker.properties
Advantages over GenerationX
Thanks
Martin 
__ 
Disclaimer and confidentiality note 
Everything 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. 


> Date: Thu, 30 Oct 2008 15:58:58 -0700
> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> Subject: Sticky Session AND session duplication?
> 
> Hi,
> 
> I know that for typical web applications one of these approaches is 
> generally enough to achieve load balancing across nodes in a cluster, 
> but we here with an ICEfaces application would find it useful to do 
> both. Session duplication to ensure the spreading around of session 
> information, and sticky sessions to ensure all the blocking web 
> connections from a single user get directed to the same node, until that 
> node fails. An asynchronous ICEfaces application can have two 
> connections to a server from a browser at the same time and it wont do 
> to have these load balanced to separate nodes of the cluster. 
> 
> Various sorts of documentation hint that these operations are mutually 
> exclusive and 
> we have found that it doesn't work in practice but we just wanted to 
> find if someone could either confirm that this is not supported, or that we 
> have our configuration wrong/understanding botched, or something.
> 
> Any help would be appreciated.
> Greg
> 
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
You live life beyond your PC. So now Windows goes beyond your PC.
http://clk.atdmt.com/MRT/go/115298556/direct/01/

Re: Version 6.0.18 of Tomcat -- Web.xml file and file/directory structure

2008-10-30 Thread Mark Thomas
Martin Gainty wrote:
> Good Evening John-
> 
> in /WEB-INF/web.xml make sure your listener is configured in e.g.
> 
> listeners.SessionListener
> 

No. Completely wrong.

The whole point is that Tomcat *can't* find a listener that is already
configured in web.xml.

>> Attached is my web.xml file.  (It is the same xml file that comes with
>> the distribution except the added code below.)

That is probably the root cause of your problems. You should not be copying
any of the existing web.xml files to start a new webapp. Use a clean
web.xml as a starting point.

Mark

>>
>> The only thing I added was:
>> 
>>
>> 
>> Test
>> Test
>> 
>>
>> 
>> Test
>> /Test
>> 
>> )
>>
>>
>> John Byrne
>> Support Network for Battered Women
>> 1257 Tasman Dr. Suite C
>> Sunnyvale, CA
>> 94089
>>  
>> (408) 541-6100 x 138
>> Fax: (408) 541-
>>
>> -Original Message-
>> From: David Smith [mailto:[EMAIL PROTECTED] 
>> Sent: Thursday, October 30, 2008 3:53 PM
>> To: Tomcat Users List
>> Subject: Re: Version 6.0.18 of Tomcat
>>
>>> However, I get an error in
>>> the users log specifying a class is not found. Is this my Test.class
>>> file it can't find?  
>> Nope.  The class not found is listeners.SessionListener.  Can you post
>> Test/WEB-INF/web.xml?  Also can you post some info regarding your file
>> layout?
>>
>>> The container itself doesn't "start" either.  In the Tomcat output
>>> window it says:
>> The container started fine.  Your web application didn't start because
>> of the error not finding listeners.SessionListener..
>>
>> --David
>>
>> John Byrne wrote:
>>> I've tried for 2 days now to get my own HelloWorld program working
>> with
>>> Apache Tomcat.  I have the exact same structure that the examples and
>>> ROOT containers in the distribution have.  However, I get an error in
>>> the users log specifying a class is not found. Is this my Test.class
>>> file it can't find?  
>>>
>>>  
>>>
>>> Oct 30, 2008 2:25:21 PM org.apache.catalina.core.StandardContext
>>> listenerStart
>>>
>>> SEVERE: Error configuring application listener of class
>>> listeners.SessionListener
>>>
>>> java.lang.ClassNotFoundException: listeners.SessionListener
>>>
>>> at
>>>
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
>>> .java:1387)
>>>
>>> at
>>>
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
>>> .java:1233)
>>>
>>> at
>>>
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j
>>> ava:3786)
>>>
>>> at
>>>
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4342
>>> )
>>>
>>> at
>>>
>> org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:124
>>> 7)
>>>
>>> at
>>>
>> org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.
>>> java:604)
>>>
>>> at
>>>
>> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.
>>> java:129)
>>>
>>> at
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>>
>>> at
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>
>>> at
>>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
>>> tionFilterChain.java:290)
>>>
>>> at
>>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
>>> erChain.java:206)
>>>
>>> at
>>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
>>> e.java:233)
>>>
>>> at
>>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
>>> e.java:191)
>>>
>>> at
>>>
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
>>> Base.java:525)
>>>
>>> at
>>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
>>> :128)
>>>
>>> at
>>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
>>> :102)
>>>
>>> at
>>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
>>> java:109)
>>>
>>> at
>>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
>>> 86)
>>>
>>> at
>>>
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
>>> 5)
>>>
>>> at
>>>
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
>>> Http11Protocol.java:583)
>>>
>>> at
>>>
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>> at java.lang.Thread.run(Unknown Source)
>>>
>>>  
>>>
>>>  
>>>
>>> The container itself doesn't "start" either.  In the Tomcat output
>>> window it says:
>>>
>>> Oct 30, 2008 3:07:50 PM org.apache.catalina.core.StandardContext start
>>>
>>> SEVERE: Error listenerStart
>>>
>>> Oct 30, 2008 3:07:50 PM org.apache.catalina.core.StandardContext start
>>>

RE: Version 6.0.18 of Tomcat -- Web.xml file and file/directory structure

2008-10-30 Thread Caldarale, Charles R
> From: John Byrne [mailto:[EMAIL PROTECTED]
> Subject: RE: Version 6.0.18 of Tomcat -- Web.xml file and
> file/directory structure
>
> Attached is my web.xml file.

Your web.xml file is completely wrong for your test application.  All of those 
extra filters, listeners, and servlets which aren't present in the lib or 
classes directories will not allow your webapp to load.  The WEB-INF/web.xml 
must describe just what's in your webapp, nothing more.

 - Chuck


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

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



RE: Version 6.0.18 of Tomcat -- Web.xml file and file/directory structure

2008-10-30 Thread Martin Gainty

Good Evening John-

in /WEB-INF/web.xml make sure your listener is configured in e.g.

listeners.SessionListener


Keep up the good work
Martin 
__ 
Disclaimer and confidentiality note 
Everything 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. 


> Subject: RE: Version 6.0.18 of Tomcat -- Web.xml file and file/directory 
> structure
> Date: Thu, 30 Oct 2008 16:28:18 -0700
> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> 
> 
> David, and everyone else,
> 
> Here is the file layout:
> C:\tomcat\apache-tomcat-6.0.18\webapps\Test\WEB-INF\web.xml
> C:\tomcat\apache-tomcat-6.0.18\webapps\Test\WEB-INF\lib
> C:\tomcat\apache-tomcat-6.0.18\webapps\Test\WEB-INF\classes\Test.class
> 
> (I've also attached a zip file with the Test Directory in it.  The root
> to this directory is the same as above)
> 
> Attached is my web.xml file.  (It is the same xml file that comes with
> the distribution except the added code below.)
> 
> The only thing I added was:
> 
> 
> 
> Test
> Test
> 
> 
> 
> Test
> /Test
> 
> )
> 
> 
> John Byrne
> Support Network for Battered Women
> 1257 Tasman Dr. Suite C
> Sunnyvale, CA
> 94089
>  
> (408) 541-6100 x 138
> Fax: (408) 541-
> 
> -Original Message-
> From: David Smith [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 30, 2008 3:53 PM
> To: Tomcat Users List
> Subject: Re: Version 6.0.18 of Tomcat
> 
> >
> > However, I get an error in
> > the users log specifying a class is not found. Is this my Test.class
> > file it can't find?  
> Nope.  The class not found is listeners.SessionListener.  Can you post
> Test/WEB-INF/web.xml?  Also can you post some info regarding your file
> layout?
> 
> > The container itself doesn't "start" either.  In the Tomcat output
> > window it says:
> The container started fine.  Your web application didn't start because
> of the error not finding listeners.SessionListener..
> 
> --David
> 
> John Byrne wrote:
> > I've tried for 2 days now to get my own HelloWorld program working
> with
> > Apache Tomcat.  I have the exact same structure that the examples and
> > ROOT containers in the distribution have.  However, I get an error in
> > the users log specifying a class is not found. Is this my Test.class
> > file it can't find?  
> >
> >  
> >
> > Oct 30, 2008 2:25:21 PM org.apache.catalina.core.StandardContext
> > listenerStart
> >
> > SEVERE: Error configuring application listener of class
> > listeners.SessionListener
> >
> > java.lang.ClassNotFoundException: listeners.SessionListener
> >
> > at
> >
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
> > .java:1387)
> >
> > at
> >
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
> > .java:1233)
> >
> > at
> >
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j
> > ava:3786)
> >
> > at
> >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4342
> > )
> >
> > at
> >
> org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:124
> > 7)
> >
> > at
> >
> org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.
> > java:604)
> >
> > at
> >
> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.
> > java:129)
> >
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> >
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> > tionFilterChain.java:290)
> >
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> > erChain.java:206)
> >
> > at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> > e.java:233)
> >
> > at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> > e.java:191)
> >
> > at
> >
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
> > Base.java:525)
> >
> > at
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> > :128)
> >
> > at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> > :102)
> >
> > at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> > java:109)
> >
> > at
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
> > 86)
> >
> > at
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
> >

RE: Logging

2008-10-30 Thread Martin Gainty

Mohit-

the configuration as well as the specifics of how to setup log handlers for 
logging.properties are located at
http://tomcat.apache.org/tomcat-6.0-doc/logging.html

HTH
Martin 
__ 
Disclaimer and confidentiality note 
Everything 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. 


> Date: Thu, 30 Oct 2008 16:19:33 -0700
> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> Subject: Re: Logging
> 
> I think I remember now. But I quite didn't understand what
> tomcat-juli.jar is and how it will help with this issue. Any reference
> would be helpful.
> 
> On Thu, Oct 30, 2008 at 4:07 PM, Caldarale, Charles R
> <[EMAIL PROTECTED]> wrote:
> >> From: Mohit Anchlia [mailto:[EMAIL PROTECTED]
> >> Subject: Re: Logging
> >>
> >> Thanks ..but I don't see that reply from Filip. Could you please give
> >> that to me.
> >
> > Look in the archives for your threads.  The main page:
> > http://marc.info/?l=tomcat-user
> >
> > This month:
> > http://marc.info/?l=tomcat-user&r=1&b=200810&w=2
> >
> > Your thread:
> > http://marc.info/?t=9623276701&r=1&w=2
> >
> > You should be able to figure out which one Filip sent by yourself...
> >
> >  - Chuck
> >
> >
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
> > MATERIAL and is thus for use only by the intended recipient. If you 
> > received this in error, please contact the sender and delete the e-mail and 
> > its attachments from all computers.
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Stay organized with simple drag and drop from Windows Live Hotmail.
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_102008

Re: Logging

2008-10-30 Thread Mohit Anchlia
I think I remember now. But I quite didn't understand what
tomcat-juli.jar is and how it will help with this issue. Any reference
would be helpful.

On Thu, Oct 30, 2008 at 4:07 PM, Caldarale, Charles R
<[EMAIL PROTECTED]> wrote:
>> From: Mohit Anchlia [mailto:[EMAIL PROTECTED]
>> Subject: Re: Logging
>>
>> Thanks ..but I don't see that reply from Filip. Could you please give
>> that to me.
>
> Look in the archives for your threads.  The main page:
> http://marc.info/?l=tomcat-user
>
> This month:
> http://marc.info/?l=tomcat-user&r=1&b=200810&w=2
>
> Your thread:
> http://marc.info/?t=9623276701&r=1&w=2
>
> You should be able to figure out which one Filip sent by yourself...
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
> MATERIAL and is thus for use only by the intended recipient. If you received 
> this in error, please contact the sender and delete the e-mail and its 
> attachments from all computers.
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Sticky Session AND session duplication?

2008-10-30 Thread Mark Thomas
Greg Dick wrote:
> Hi,
> 
> I know that for typical web applications one of these approaches is
> generally enough to achieve load balancing across nodes in a cluster,
> but we here with an ICEfaces application would find it useful to do
> both. Session duplication to ensure the spreading around of session
> information, and sticky sessions to ensure all the blocking web
> connections from a single user get directed to the same node, until that
> node fails. An asynchronous ICEfaces application can have two
> connections to a server from a browser at the same time and it wont do
> to have these load balanced to separate nodes of the cluster.
> Various sorts of documentation hint that these operations are mutually
> exclusive and we have found that it doesn't work in practice but we just
> wanted to find if someone could either confirm that this is not
> supported, or that we have our configuration wrong/understanding
> botched, or something.

Sticky sessions and session replication can be used at the same time. There
is no reason why they should not work. They do for me.

Mark



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



RE: Logging

2008-10-30 Thread Caldarale, Charles R
> From: Mohit Anchlia [mailto:[EMAIL PROTECTED]
> Subject: Re: Logging
>
> Thanks ..but I don't see that reply from Filip. Could you please give
> that to me.

Look in the archives for your threads.  The main page:
http://marc.info/?l=tomcat-user

This month:
http://marc.info/?l=tomcat-user&r=1&b=200810&w=2

Your thread:
http://marc.info/?t=9623276701&r=1&w=2

You should be able to figure out which one Filip sent by yourself...

 - Chuck


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

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



Re: Version 6.0.18 of Tomcat

2008-10-30 Thread David Smith
>
> However, I get an error in
> the users log specifying a class is not found. Is this my Test.class
> file it can't find?  
Nope.  The class not found is listeners.SessionListener.  Can you post
Test/WEB-INF/web.xml?  Also can you post some info regarding your file
layout?

> The container itself doesn't "start" either.  In the Tomcat output
> window it says:
The container started fine.  Your web application didn't start because
of the error not finding listeners.SessionListener..

--David

John Byrne wrote:
> I've tried for 2 days now to get my own HelloWorld program working with
> Apache Tomcat.  I have the exact same structure that the examples and
> ROOT containers in the distribution have.  However, I get an error in
> the users log specifying a class is not found. Is this my Test.class
> file it can't find?  
>
>  
>
> Oct 30, 2008 2:25:21 PM org.apache.catalina.core.StandardContext
> listenerStart
>
> SEVERE: Error configuring application listener of class
> listeners.SessionListener
>
> java.lang.ClassNotFoundException: listeners.SessionListener
>
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
> .java:1387)
>
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
> .java:1233)
>
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j
> ava:3786)
>
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4342
> )
>
> at
> org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:124
> 7)
>
> at
> org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.
> java:604)
>
> at
> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.
> java:129)
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:290)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:206)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:233)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java:191)
>
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
> Base.java:525)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :128)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :102)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:109)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
> 86)
>
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
> 5)
>
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> Http11Protocol.java:583)
>
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>
> at java.lang.Thread.run(Unknown Source)
>
>  
>
>  
>
> The container itself doesn't "start" either.  In the Tomcat output
> window it says:
>
> Oct 30, 2008 3:07:50 PM org.apache.catalina.core.StandardContext start
>
> SEVERE: Error listenerStart
>
> Oct 30, 2008 3:07:50 PM org.apache.catalina.core.StandardContext start
>
> SEVERE: Context [/Test] startup failed due to previous errors
>
>  
>
> When I click on the /Test container in the manager it replies:
>
> type Status report
>
> message 
>
> description The requested resource () is not available.
>
> I even tried putting the libraries in the examples directory in my own
> Test lib directory.
>
>  
>
> I've run out of things to try.  Is there something else I can test the
> system with?
>
>  
>
> Any help would be greatly appreciated.  
>
>  
>
>  
>
> John Byrne
>
> Support Network for Battered Women
>
> 1257 Tasman Dr. Suite C
>
> Sunnyvale, CA
>
> 94089
>
>  
>
> (408) 541-6100 x 138
>
> Fax: (408) 541-
>
>  
>
>
>   


-
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: Logging

2008-10-30 Thread Mohit Anchlia
Thanks ..but I don't see that reply from Filip. Could you please give
that to me.


On Thu, Oct 30, 2008 at 2:19 PM, Mark Thomas <[EMAIL PROTECTED]> wrote:
> Mohit Anchlia wrote:
>> I added log4j.xml in classes dir in .war and log4j.jar in WEB-INF/lib
>> dir in .war. This helped me in getting the logs in app.log, but didn't
>> stop logs in catalina.out
>
> Because you haven't configured Tomcat to use log4j for its internal
> logging. Filip gave you the steps to do this previously in this thread.
>
> Mark
>
>>
>> On Wed, Oct 29, 2008 at 2:50 AM, Mark Thomas <[EMAIL PROTECTED]> wrote:
>>> Mohit Anchlia wrote:
 ?xml version="1.0" encoding="UTF-8"?>
 

 http://jakarta.apache.org/log4j/";
 debug="false">
 

>>> class="org.apache.log4j.DailyRollingFileAppender">
   
   
   
   
  
   

>>> class="org.apache.log4j.DailyRollingFileAppender">
   
   
   
   
  
   



 



 

 
>>> What steps did you follow to enable log4j logging?
>>>
>>> Mark
>>>
>>>
>>>
>>> -
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> -
>> 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]



Sticky Session AND session duplication?

2008-10-30 Thread Greg Dick

Hi,

I know that for typical web applications one of these approaches is 
generally enough to achieve load balancing across nodes in a cluster, 
but we here with an ICEfaces application would find it useful to do 
both. Session duplication to ensure the spreading around of session 
information, and sticky sessions to ensure all the blocking web 
connections from a single user get directed to the same node, until that 
node fails. An asynchronous ICEfaces application can have two 
connections to a server from a browser at the same time and it wont do 
to have these load balanced to separate nodes of the cluster. 

Various sorts of documentation hint that these operations are mutually exclusive and 
we have found that it doesn't work in practice but we just wanted to 
find if someone could either confirm that this is not supported, or that we 
have our configuration wrong/understanding botched, or something.


Any help would be appreciated.
Greg



-
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: antioJarLocking not working

2008-10-30 Thread James Ravn
> From: Aaron Axelsen <[EMAIL PROTECTED]>
> To: Tomcat Users List 
> Date: Sun, 31 Aug 2008 14:39:46 -0500
> Subject: Re: antioJarLocking not working
> I tried sticking the jars there - but it did not seem to make any
> difference.
>
> Let me recap on what we are trying to accomplish.
>
> The instructor for the course is using the NetBeans 6.5 IDE for ruby
> development.  The students would then create a war file for deployment
> on tomcat 6.  The students will upload the war folder to a deploy
> folder, from which a scheduled script will copy the war files into the
> tomcat document root for deployment.
>
> With just antijarlocking set, the jruby and complete jars are still
> locked my tomcat, and re-deployment of the jar fails until a complete
> server restart.
>
> Antiresource locking does solve the issue of the jar's being locked,
> however when set to true, whenever the application is loaded, tomcat
> looks in %CATALINA_HOME%\temp-appname for the files, which does not
> exist.  If I manually copy files into that folder from the temp folder,
> things work as expected.  If we can just figure out how to get that
> folder correctly populated (or get tomcat looking in the right place)
> everything would be working correctly.
>
> If anyone has any thoughts or ideas, please share!

I did some quick digging, because I'm experiencing the same problem.
When antiResourceLocking="true" on winNT, it expands the application
into "/temp/#-appname". But when the application runs (jruby/rack in
this case), it thinks the application is in "/temp-appname" and a file
not found error happens.

jruby-rack makes a call to the ServletContext's getRootPath() method
in loader/jruby/rack/servlet_helper.rb#real_path. It looks like this
is returning the erroneous "/temp-appname" which doesn't exist.

Isn't getRootPath() handled by Tomcat? If so, it seems like a tomcat bug...

I'm not sure a work-around for this, other than don't use antiResourceLocking.

-- 
James S. Ravn

-
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: Convenient web application configuration.

2008-10-30 Thread br1

Hi,


Caldarale, Charles R wrote:
> 
>> From: br1 [mailto:[EMAIL PROTECTED]
>> Subject: Re: Convenient web application configuration.
>>
>> The easiest way is to place Context and the different
>> Resource elements into each Tomcat's server.xml file.
> 
> Certainly not "easiest" by any definition of the term that I'm familiar
> with, especially in a production environment. 
> 

It probably depends on requirements. I am familiar calling it the "easiest"
and I manage production environments.


Caldarale, Charles R wrote:
> 
> 1) Restart of Tomcat (not just the webapp) required when *any* changes are
> needed.
> 

It just takes a few seconds, and *any* change is done first in the
development environment. When the test environment is happy, the production
one is just restarted once.
Also, do you mean "deploy a webapp under Windows without restarting Tomcat"?



Caldarale, Charles R wrote:
> 
> 2) Sysadmins don't like app developers mucking with server configurations.
> 


Absolutely! I did not mean this at all. 
I mean that some sysadmins are happy to waste their time to fix these
details themselves for exactly this reason.
And they don't like app developers deciding the app path, nor they like app
developers decide where their log files should go or where, for instance, a
full text index should stay. The list is long, and no one forgot database
connections.


Caldarale, Charles R wrote:
> 
> 3) Doesn't bundle the webapp-specific configuration with the webapp.
> 


Making the webapp point to a development or production database is not
specific to the webapp at all. It is specific to the environment (the
"context") that the webapp is running on. Same applies to other resources as
I mentioned above. 
Another reason you want to do it: you want connection pooling at the Tomcat
instance level, and you use a global JNDI resource, that means "edit the
server.xml". (Thunder here)



Caldarale, Charles R wrote:
> 
> 4) Error prone due to the manual editing required.
> 
>  - Chuck
> 


Just like any other file the sysadmin edits.. also see point (1).
In no case I was suggesting an app developer to edit files, other than the
development environment.

br1

-- 
View this message in context: 
http://www.nabble.com/Convenient-web-application-configuration.-tp20244034p20256710.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Version 6.0.18 of Tomcat

2008-10-30 Thread John Byrne
I've tried for 2 days now to get my own HelloWorld program working with
Apache Tomcat.  I have the exact same structure that the examples and
ROOT containers in the distribution have.  However, I get an error in
the users log specifying a class is not found. Is this my Test.class
file it can't find?  

 

Oct 30, 2008 2:25:21 PM org.apache.catalina.core.StandardContext
listenerStart

SEVERE: Error configuring application listener of class
listeners.SessionListener

java.lang.ClassNotFoundException: listeners.SessionListener

at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1387)

at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1233)

at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j
ava:3786)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4342
)

at
org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:124
7)

at
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.
java:604)

at
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.
java:129)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:233)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)

at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:525)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:128)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
86)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
5)

at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:583)

at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

at java.lang.Thread.run(Unknown Source)

 

 

The container itself doesn't "start" either.  In the Tomcat output
window it says:

Oct 30, 2008 3:07:50 PM org.apache.catalina.core.StandardContext start

SEVERE: Error listenerStart

Oct 30, 2008 3:07:50 PM org.apache.catalina.core.StandardContext start

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

 

When I click on the /Test container in the manager it replies:

type Status report

message 

description The requested resource () is not available.

I even tried putting the libraries in the examples directory in my own
Test lib directory.

 

I've run out of things to try.  Is there something else I can test the
system with?

 

Any help would be greatly appreciated.  

 

 

John Byrne

Support Network for Battered Women

1257 Tasman Dr. Suite C

Sunnyvale, CA

94089

 

(408) 541-6100 x 138

Fax: (408) 541-

 



Re: Problem to install APR Tomcat Native Library

2008-10-30 Thread Rainer Jung
[EMAIL PROTECTED] schrieb:
> Yes, it is set to something like
> LD_LIBRARY_PATH=/opt/app/libtcnative/lib:/opt/app/apr/lib:$LD_LIBRARY_PATH
> 
> 
> The files are all world readable and even owned by the user running
> Tomcat.
> 
> I just want to mention that I compiled both libs with another prefix
> than where I have copied them to now - because those directories
> don't exist on the build machine and I don't have root permissions.
> But that shouldn't matter since I include the locations of the libs
> in the LD_LIBRARY_PATH?
> 
> Is it not possible to get Tomcat to log some more details about
> loading these libs? Could be interesting to see some
> UnsatisfiedLinkError or so.

On Solaris you can use truss:

truss -f -o OUTPUTFILE TOMCATSTARTSCRIPT

It will e.g. show, which shared object files were tried to load and from
which places.

Regards,

Rainer

-
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: JSVC vs standard startup / shutdown scripts

2008-10-30 Thread David Smith
Right.  This is very much the same way other services like Apache httpd
do things.  The privileged process is there to catch signals and open
ports for listening.  The unprivileged process does the actual work.

--David

Andrew Ralph Feller, afelle1 wrote:
> Thanks for the reply David!
>
> If you startup jsvc and do "ps axu | grep jsvc", you will find two processes
> with one being owned by root and the other by the non-root account.  The
> non-root process will actually handle the incoming requests, however the
> root process is needed to bind to port 443 since it is a privilege port.
>
>
> On 10/30/08 1:55 PM, "David Smith" <[EMAIL PROTECTED]> wrote:
>
>   
>>> I don't have any personal issue with moving to running Tomcat directly as
>>> the non-privileged account meant for Tomcat ...
>>>   
>> Just to clarify, jsvc runs tomcat as an unprivileged user as well.  One
>> advantage to jsvc is it allows tomcat to be run by itself without funky
>> iptables rules or a front-end server.  It's a simpler setup and overall
>> I'm a firm believer in simpler = better.
>>
>> --David
>>
>> Andrew Ralph Feller, afelle1 wrote:
>> 
>>> Thanks for the response Torsten!
>>>
>>> In our environment, the machines we have Tomcat running on strictly use
>>> Tomcat 6, APR for SSL support, and we load balance applications through an
>>> external load balancer.  We have been able to get by without brining HTTPD
>>> for things like mod_rewrite or any of the PAMs, so I would like to keep it
>>> as simple as possible.
>>>
>>> I don't have any personal issue with moving to running Tomcat directly as
>>> the non-privileged account meant for Tomcat, however I am curious about the
>>> trade offs especially related to security.
>>>
>>> Thanks!
>>>
>>> On 10/30/08 12:37 PM, "[EMAIL PROTECTED]"
>>> <[EMAIL PROTECTED]> wrote:
>>>
>>>   
>>>   
 Hi Andrew,

 We let all our Tomcats run on a non-privileged port and use some init 
 script
 using startup.sh/shutdown.sh, and have an Apache httpd forwarding requests
 with AJP.

 We then use Apache httpd for things like terminating SSL, do RADIUS or LDAP
 authentication, load balancing several Tomcat instances and so on.

 I think it is a good and common setup like that.

 Torsten

 -Original Message-
 From: Andrew Feller [mailto:[EMAIL PROTECTED]
 Sent: 30. oktober 2008 18:16
 To: users@tomcat.apache.org
 Cc: Brad Cupit
 Subject: JSVC vs standard startup / shutdown scripts

 QUESTION: What is the best practice for running Tomcat?  JSVC daemon or
 startup / shutdown scripts as a non-root user and forwarding HTTPS requests
 to a non-privileged port?

 While reading the Professional Apache Tomcat 6 (ISBN: 978-0-471-75361-2),
 they recommend running Tomcat to start it up using the startup script
 provided in the Tomcat binary and having your firewall forward requests 
 from
 HTTPS to a non-privileged port.  This is very interesting for two reasons:

1. The book never mentions JSVC, which the Tomcat documentation does
2. We believed using JSVC was the only way to run as a non-root user,
which doesn't seem to be the case now

 I would appreciate any feedback about the trade offs and why people choose
 one over the other.

 Thanks,
 Andrew

 -
 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: Convenient web application configuration.

2008-10-30 Thread Juha Laiho
Jason Cipriani wrote:
> I have a web application with a lot of configuration options, all
> currently stored as servlet initialization parameters in
> WEB-INF/web.xml. The parameters are site specific and are different
> for my development machine, the machines of the two other developers
> working on the project, and the production machine. I am the only
> developer working on the web application.

There's one conceptual issue you'll need to look at, namely
that of separation the environment-dependent configuration
from the environment-independent one. At the first, making the
distinction between the two can be problematic, and there may
well be bordercases - those you'll just need to decide.

With this strategy, I have applications that I can move trhough the
chain from development to testing to production without touching
the .war file contents -- and it's very rare to have a situation
where an application change would require a change in the
environment-dependent configuration.

> Similarly, I have a JDBC data source defined in META-INF/context.xml.
> The data source parameters are different for each machine. Is there
> some other way I can define data sources so that I don't have to
> maintain separate WAR files for each configuration?

Take the context.xml out of the webapp; it wasn't meant to be there.
With Tomcat, conf/Catalina/[hostname]/[appname].xml is a better
place. If there's something you can't place in that file, at least
create a variable in context.xml that does point to the external
resource (file, server, whatever). If you have multiple applications
dependent on some single, poolable resource (common database schema,
for example), it would be better to place the JDBC datasource definition
into server.xml, and put instead a  element into each
of the per-application context.xml files. That way, you'll have
a single pool serving the various applications (this of course
requires that all the applications play fair and do not leak; a sinlge
leaky application can starve other applications by hogging all
instances of a shared resource.

> Ideally I'd be able to put the settings in context.xml and web.xml
> somewhere outside of the web application directory, and leave them out
> of the web-app's local files, and so they wouldn't have to be packaged
> with the WAR and deploying the WAR wouldn't blow away existing
> configuration data.

web.xml can also be configurable -- but leave there the aspects of
configuration you'd otherwise put as fixed parameters into your
source code, to be determined at compile time.
-- 
..Juha

-
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: Logging

2008-10-30 Thread Mark Thomas
Mohit Anchlia wrote:
> I added log4j.xml in classes dir in .war and log4j.jar in WEB-INF/lib
> dir in .war. This helped me in getting the logs in app.log, but didn't
> stop logs in catalina.out

Because you haven't configured Tomcat to use log4j for its internal
logging. Filip gave you the steps to do this previously in this thread.

Mark

> 
> On Wed, Oct 29, 2008 at 2:50 AM, Mark Thomas <[EMAIL PROTECTED]> wrote:
>> Mohit Anchlia wrote:
>>> ?xml version="1.0" encoding="UTF-8"?>
>>> 
>>>
>>> http://jakarta.apache.org/log4j/";
>>> debug="false">
>>> 
>>>
>>>>> class="org.apache.log4j.DailyRollingFileAppender">
>>>   
>>>   
>>>   
>>>   
>>>  
>>>   
>>>
>>>>> class="org.apache.log4j.DailyRollingFileAppender">
>>>   
>>>   
>>>   
>>>   
>>>  
>>>   
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>> 
>>>
>>> 
>> What steps did you follow to enable log4j logging?
>>
>> Mark
>>
>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> 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: relation between Tomcat and Apache Commons

2008-10-30 Thread Caldarale, Charles R
> From: Andrew Ralph Feller, afelle1 [mailto:[EMAIL PROTECTED]
> Subject: Re: relation between Tomcat and Apache Commons
>
> it seems possible to run Tomcat on a non-privileged port with a
> non-root account and have requests for port 443 redirected to
> Tomcat's listening port.

Of course - but it requires additional configuration (e.g., iptables, 
firewall).  Using jsvc may be simpler and avoid dependencies external to 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: relation between Tomcat and Apache Commons

2008-10-30 Thread Andrew Ralph Feller, afelle1
Chuck,

I'm already following up on this on a different thread, however it seems
possible to run Tomcat on a non-privileged port with a non-root account and
have requests for port 443 redirected to Tomcat's listening port.  This way
Tomcat can run as non-root and no need to compile and use JSVC.  I haven't
done this yet, which is why I started the "JSVC vs startup / shutdown
scripts" thread.

Would love your $0.02,
A-


On 10/30/08 1:56 PM, "Caldarale, Charles R" <[EMAIL PROTECTED]>
wrote:

>> From: Petr Sumbera [mailto:[EMAIL PROTECTED]
>> Subject: Re: relation between Tomcat and Apache Commons
>> 
>> Btw I don't see any benefit using jsvc. Is somebody using it? Why?
> 
> Judging from the comments on this list, many people are using it.  The primary
> reason is to avoid running Tomcat as root (principle of least privilege) when
> using ports 80 and 443.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
Andrew R. Feller, Analyst
Information Technology Services
200 Fred Frey Building
Louisiana State University
Baton Rouge, LA 70803
(225) 578-3737 (Office)
(225) 578-6400 (Fax)


-
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: JSVC vs standard startup / shutdown scripts

2008-10-30 Thread Andrew Ralph Feller, afelle1
Thanks for the reply David!

If you startup jsvc and do "ps axu | grep jsvc", you will find two processes
with one being owned by root and the other by the non-root account.  The
non-root process will actually handle the incoming requests, however the
root process is needed to bind to port 443 since it is a privilege port.


On 10/30/08 1:55 PM, "David Smith" <[EMAIL PROTECTED]> wrote:

>> 
>> I don't have any personal issue with moving to running Tomcat directly as
>> the non-privileged account meant for Tomcat ...
> 
> Just to clarify, jsvc runs tomcat as an unprivileged user as well.  One
> advantage to jsvc is it allows tomcat to be run by itself without funky
> iptables rules or a front-end server.  It's a simpler setup and overall
> I'm a firm believer in simpler = better.
> 
> --David
> 
> Andrew Ralph Feller, afelle1 wrote:
>> Thanks for the response Torsten!
>> 
>> In our environment, the machines we have Tomcat running on strictly use
>> Tomcat 6, APR for SSL support, and we load balance applications through an
>> external load balancer.  We have been able to get by without brining HTTPD
>> for things like mod_rewrite or any of the PAMs, so I would like to keep it
>> as simple as possible.
>> 
>> I don't have any personal issue with moving to running Tomcat directly as
>> the non-privileged account meant for Tomcat, however I am curious about the
>> trade offs especially related to security.
>> 
>> Thanks!
>> 
>> On 10/30/08 12:37 PM, "[EMAIL PROTECTED]"
>> <[EMAIL PROTECTED]> wrote:
>> 
>>   
>>> Hi Andrew,
>>> 
>>> We let all our Tomcats run on a non-privileged port and use some init script
>>> using startup.sh/shutdown.sh, and have an Apache httpd forwarding requests
>>> with AJP.
>>> 
>>> We then use Apache httpd for things like terminating SSL, do RADIUS or LDAP
>>> authentication, load balancing several Tomcat instances and so on.
>>> 
>>> I think it is a good and common setup like that.
>>> 
>>> Torsten
>>> 
>>> -Original Message-
>>> From: Andrew Feller [mailto:[EMAIL PROTECTED]
>>> Sent: 30. oktober 2008 18:16
>>> To: users@tomcat.apache.org
>>> Cc: Brad Cupit
>>> Subject: JSVC vs standard startup / shutdown scripts
>>> 
>>> QUESTION: What is the best practice for running Tomcat?  JSVC daemon or
>>> startup / shutdown scripts as a non-root user and forwarding HTTPS requests
>>> to a non-privileged port?
>>> 
>>> While reading the Professional Apache Tomcat 6 (ISBN: 978-0-471-75361-2),
>>> they recommend running Tomcat to start it up using the startup script
>>> provided in the Tomcat binary and having your firewall forward requests from
>>> HTTPS to a non-privileged port.  This is very interesting for two reasons:
>>> 
>>>1. The book never mentions JSVC, which the Tomcat documentation does
>>>2. We believed using JSVC was the only way to run as a non-root user,
>>>which doesn't seem to be the case now
>>> 
>>> I would appreciate any feedback about the trade offs and why people choose
>>> one over the other.
>>> 
>>> Thanks,
>>> Andrew
>>> 
>>> -
>>> 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]
> 

-- 
Andrew R. Feller, Analyst
Information Technology Services
200 Fred Frey Building
Louisiana State University
Baton Rouge, LA 70803
(225) 578-3737 (Office)
(225) 578-6400 (Fax)


-
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: Convenient web application configuration.

2008-10-30 Thread Jason Cipriani
On Thu, Oct 30, 2008 at 8:22 AM, Pid <[EMAIL PROTECTED]> wrote:
> Is your build process automated, say with ant or maven?
> If so, it should be a relatively simple one-off job to configure
> multiple output war files from one codebase with several configurations.

I'm developing with Eclipse but could configure custom build steps
with ant. This solution would remove most of the inconvenience, but I
would still have to make 4 separate WARs available for distribution.
Not *too* big of a deal but I'd rather just distribute a single
archive.

On Thu, Oct 30, 2008 at 9:44 AM, Caldarale, Charles R
<[EMAIL PROTECTED]> wrote:
> Read the doc:
> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Context%20Parameters
...
> The  element must go inside a  element, but you can place 
> the  in conf/Catalina/[host]/[appName].xml rather than in the 
> webapp's META-INF/context.xml file.  Again, read the doc:
> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Introduction
>
> Your deployment script will need to copy the site-specific file containing 
> your  element to conf/Catalina/[host]/[appName].xml since that file 
> is removed when a webapp is undeployed.

Thanks for the advice and the doc link, this looks like the best
option. I was deploying the WAR through the Tomcat manager, I'll have
to change that (unless there's a way to configure custom deployment
steps through the manager?). Is there a way to keep it from being
removed when the app is undeployed?

On Thu, Oct 30, 2008 at 2:32 PM, br1 <[EMAIL PROTECTED]> wrote:
> The easiest way is to place Context and the different Resource elements into
> each Tomcat's server.xml file.
> Someone will tell you that it's not recommended, but it will just work.

That's not a bad idea, except it seems I can get around all of the
drawbacks Chuck mentioned with the low cost of putting the file in
conf/Catalina/[host]/[appName].xml instead. Although it's enticing,
since it's something I'd only have to set up once per server and not
think about again. For now this server is dedicated to a single web
application so restarting the server is not any worse than restarting
the web app.


Thanks for your replies,
Jason

-
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: JSVC vs standard startup / shutdown scripts

2008-10-30 Thread Torsten.Romer
> simpler = better

Fully agree. Keep it simple.

We however have to put an httpd in front in the DMZ anyway because our security 
people would never allow us to put any business logic there. And they want us 
to change protocol on the way to the application so the switch from HTTPS to 
AJP is good to calm them down.

Torsten

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: 30. oktober 2008 19:55
To: Tomcat Users List
Subject: Re: JSVC vs standard startup / shutdown scripts


>
> I don't have any personal issue with moving to running Tomcat directly as
> the non-privileged account meant for Tomcat ...

Just to clarify, jsvc runs tomcat as an unprivileged user as well.  One
advantage to jsvc is it allows tomcat to be run by itself without funky
iptables rules or a front-end server.  It's a simpler setup and overall
I'm a firm believer in simpler = better.

--David

Andrew Ralph Feller, afelle1 wrote:
> Thanks for the response Torsten!
>
> In our environment, the machines we have Tomcat running on strictly use
> Tomcat 6, APR for SSL support, and we load balance applications through an
> external load balancer.  We have been able to get by without brining HTTPD
> for things like mod_rewrite or any of the PAMs, so I would like to keep it
> as simple as possible.
>
> I don't have any personal issue with moving to running Tomcat directly as
> the non-privileged account meant for Tomcat, however I am curious about the
> trade offs especially related to security.
>
> Thanks!
>
> On 10/30/08 12:37 PM, "[EMAIL PROTECTED]"
> <[EMAIL PROTECTED]> wrote:
>
>   
>> Hi Andrew,
>>
>> We let all our Tomcats run on a non-privileged port and use some init script
>> using startup.sh/shutdown.sh, and have an Apache httpd forwarding requests
>> with AJP.
>>
>> We then use Apache httpd for things like terminating SSL, do RADIUS or LDAP
>> authentication, load balancing several Tomcat instances and so on.
>>
>> I think it is a good and common setup like that.
>>
>> Torsten
>>
>> -Original Message-
>> From: Andrew Feller [mailto:[EMAIL PROTECTED]
>> Sent: 30. oktober 2008 18:16
>> To: users@tomcat.apache.org
>> Cc: Brad Cupit
>> Subject: JSVC vs standard startup / shutdown scripts
>>
>> QUESTION: What is the best practice for running Tomcat?  JSVC daemon or
>> startup / shutdown scripts as a non-root user and forwarding HTTPS requests
>> to a non-privileged port?
>>
>> While reading the Professional Apache Tomcat 6 (ISBN: 978-0-471-75361-2),
>> they recommend running Tomcat to start it up using the startup script
>> provided in the Tomcat binary and having your firewall forward requests from
>> HTTPS to a non-privileged port.  This is very interesting for two reasons:
>>
>>1. The book never mentions JSVC, which the Tomcat documentation does
>>2. We believed using JSVC was the only way to run as a non-root user,
>>which doesn't seem to be the case now
>>
>> I would appreciate any feedback about the trade offs and why people choose
>> one over the other.
>>
>> Thanks,
>> Andrew
>>
>> -
>> 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: Problem to install APR Tomcat Native Library

2008-10-30 Thread Torsten.Romer
Yes, it is set to something like 
LD_LIBRARY_PATH=/opt/app/libtcnative/lib:/opt/app/apr/lib:$LD_LIBRARY_PATH

The files are all world readable and even owned by the user running Tomcat.

I just want to mention that I compiled both libs with another prefix than where 
I have copied them to now - because those directories don't exist on the build 
machine and I don't have root permissions. But that shouldn't matter since I 
include the locations of the libs in the LD_LIBRARY_PATH?

Is it not possible to get Tomcat to log some more details about loading these 
libs? Could be interesting to see some UnsatisfiedLinkError or so.

We have HTTP, HTTPS and AJP connectors on that Tomcat and what I understood 
from the documentation is that APR can improve the performance - which would be 
nice since the application is quite busy.

Thanks for all your help so far!

Torsten

-Original Message-
From: Andrew Ralph Feller, afelle1 [mailto:[EMAIL PROTECTED] 
Sent: 30. oktober 2008 18:51
To: Tomcat Users List
Subject: Re: Problem to install APR Tomcat Native Library


Torsten,

What is your LD_LIBRARY_PATH set to?  Is it something like this:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib

Are there world permissions for anyone to read this directory?

I know you mentioned that you front-end Tomcat with HTTPD and assumed your
use of APR is to free Tomcat from depending on HTTPD for HTTPS.

A-
On 10/30/08 12:41 PM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> Hi Martin,
> 
> It is Solaris SPARC. Would it help to copy shared libs into the JRE bin
> folder? I symlinked them into $JAVA_HOME/jre/lib/sparc but that didn't help
> either.
> 
> Torsten 
> 
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: 30. oktober 2008 18:34
> To: Tomcat Users List
> Subject: RE: Problem to install APR Tomcat Native Library
> 
> 
> pls follow Andrew's advice..if windows its probably a dll? so you'll want to
> copy apr-1.lib to %JRE_HOME%\bin
> 
> Martin 
> __
> Disclaimer and confidentiality note
> Everything 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.
> 
> 
>> Date: Thu, 30 Oct 2008 12:17:51 -0500
>> Subject: Re: Problem to install APR Tomcat Native Library
>> From: [EMAIL PROTECTED]
>> To: users@tomcat.apache.org
>> 
>> Torsten,
>> 
>> Have you updated your LD_LIBRARY_PATH to include APR lib?
>> 
>> A-
>> 
>> 
>> On 10/30/08 12:15 PM, "[EMAIL PROTECTED]"
>> <[EMAIL PROTECTED]> wrote:
>> 
>>> I am trying to install the APR Tomcat Native Library on a Solaris SPARC
>>> server.
>>> 
>>> Since it has only OpenSSL installed and no build system available, I
>>> compiled
>>> libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
>>> 
>>> I then copied the lib folders of both libs to the server, and added the
>>> paths
>>> to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
>>> 
>>> The message "The APR based Apache Tomcat Native library which allows optimal
>>> performance in production environments was not found [...]" and I can see
>>> the
>>> paths to both libs in the java.library.path.
>>> 
>>> I guess I have done something wrong. Any ideas? Can I change the logging
>>> level
>>> so I can get some more info in catalina.out?
>>> 
>>> Torsten
>>> 
>>> -
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>> 
>> -- 
>> Andrew R. Feller, Analyst
>> Information Technology Services
>> 200 Fred Frey Building
>> Louisiana State University
>> Baton Rouge, LA 70803
>> (225) 578-3737 (Office)
>> (225) 578-6400 (Fax)
>> 
>> 
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
> 
> _
> You live life beyond your PC. So now Windows goes beyond your PC.
> http://clk.atdmt.com/MRT/go/115298556/direct/01/
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
Andrew R. Feller, Analyst
Information Technology Services
200 Fred Frey Building
Louisiana State University
Baton Rouge, LA 70803
(225) 578-3737 (Office)
(225) 578-6400 (Fax)


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

Re: JSVC vs standard startup / shutdown scripts

2008-10-30 Thread David Smith
>
> I don't have any personal issue with moving to running Tomcat directly as
> the non-privileged account meant for Tomcat ...

Just to clarify, jsvc runs tomcat as an unprivileged user as well.  One
advantage to jsvc is it allows tomcat to be run by itself without funky
iptables rules or a front-end server.  It's a simpler setup and overall
I'm a firm believer in simpler = better.

--David

Andrew Ralph Feller, afelle1 wrote:
> Thanks for the response Torsten!
>
> In our environment, the machines we have Tomcat running on strictly use
> Tomcat 6, APR for SSL support, and we load balance applications through an
> external load balancer.  We have been able to get by without brining HTTPD
> for things like mod_rewrite or any of the PAMs, so I would like to keep it
> as simple as possible.
>
> I don't have any personal issue with moving to running Tomcat directly as
> the non-privileged account meant for Tomcat, however I am curious about the
> trade offs especially related to security.
>
> Thanks!
>
> On 10/30/08 12:37 PM, "[EMAIL PROTECTED]"
> <[EMAIL PROTECTED]> wrote:
>
>   
>> Hi Andrew,
>>
>> We let all our Tomcats run on a non-privileged port and use some init script
>> using startup.sh/shutdown.sh, and have an Apache httpd forwarding requests
>> with AJP.
>>
>> We then use Apache httpd for things like terminating SSL, do RADIUS or LDAP
>> authentication, load balancing several Tomcat instances and so on.
>>
>> I think it is a good and common setup like that.
>>
>> Torsten
>>
>> -Original Message-
>> From: Andrew Feller [mailto:[EMAIL PROTECTED]
>> Sent: 30. oktober 2008 18:16
>> To: users@tomcat.apache.org
>> Cc: Brad Cupit
>> Subject: JSVC vs standard startup / shutdown scripts
>>
>> QUESTION: What is the best practice for running Tomcat?  JSVC daemon or
>> startup / shutdown scripts as a non-root user and forwarding HTTPS requests
>> to a non-privileged port?
>>
>> While reading the Professional Apache Tomcat 6 (ISBN: 978-0-471-75361-2),
>> they recommend running Tomcat to start it up using the startup script
>> provided in the Tomcat binary and having your firewall forward requests from
>> HTTPS to a non-privileged port.  This is very interesting for two reasons:
>>
>>1. The book never mentions JSVC, which the Tomcat documentation does
>>2. We believed using JSVC was the only way to run as a non-root user,
>>which doesn't seem to be the case now
>>
>> I would appreciate any feedback about the trade offs and why people choose
>> one over the other.
>>
>> Thanks,
>> Andrew
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> 
>
>   


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



Tomcat 6.0.18 clustering

2008-10-30 Thread firefinger

Hello,
I would like to create a Tomcat 6.0.18. cluster with session replication 
based on JDBC store, and with WAR auto-deployment on tomcat instances.

The would be like this:

 Load Balancer
 /   \
 Cluster1  Cluster2
 / \/ \
 Tomcat1 Tomcat2  Tomcat3 Tomcat4

, where Cluster1 and Cluster2 are on different physical machines.

And I have some questions:
1. Is it possible to use  tag to configure Persistent Session 
Manager and  JDBC based Store (from the documentation it seems to me 
that  tag is only for "in-memory" replication)?
2. I wanted to change DeltaManager/Backup Manager to Persistent Manager 
with embeded  tag, but
unfortunately  "no rules found matching 
'Server/Service/Engine/Cluster/Manager/Store'."


channelSendOptions="8">

   
   
   


3. Are there XML Schemas against Tomcat configuration files? If yes 
please where?
4. Where should be the watchDir from which WAR is distributed to tomcat 
instances.
5. Finally, could You write basic steps who to configure JDBC based 
session persistent cluster with distributed WAR.


Thank You in advance for all the answers.

  



--
Wymysl wierszyk, wygraj cyfrowke!
Sprawdz >>> http://link.interia.pl/f1f5a


-
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: relation between Tomcat and Apache Commons

2008-10-30 Thread Caldarale, Charles R
> From: Petr Sumbera [mailto:[EMAIL PROTECTED]
> Subject: Re: relation between Tomcat and Apache Commons
>
> Btw I don't see any benefit using jsvc. Is somebody using it? Why?

Judging from the comments on this list, many people are using it.  The primary 
reason is to avoid running Tomcat as root (principle of least privilege) when 
using ports 80 and 443.

 - Chuck


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

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



RE: Convenient web application configuration.

2008-10-30 Thread Caldarale, Charles R
> From: br1 [mailto:[EMAIL PROTECTED]
> Subject: Re: Convenient web application configuration.
>
> The easiest way is to place Context and the different
> Resource elements into each Tomcat's server.xml file.

Certainly not "easiest" by any definition of the term that I'm familiar with, 
especially in a production environment.  Immediately obvious drawbacks:
1) Restart of Tomcat (not just the webapp) required when *any* changes are 
needed.
2) Sysadmins don't like app developers mucking with server configurations.
3) Doesn't bundle the webapp-specific configuration with the webapp.
4) Error prone due to the manual editing required.

 - Chuck


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

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



Re: Logging

2008-10-30 Thread Mohit Anchlia
I am wondering if someone could help me in identifying why I recieve
those extra logs. They just keep growing. Same messages in log4j log
file and catalina.out

On Wed, Oct 29, 2008 at 9:53 AM, Mohit Anchlia <[EMAIL PROTECTED]> wrote:
> I added log4j.xml in classes dir in .war and log4j.jar in WEB-INF/lib
> dir in .war. This helped me in getting the logs in app.log, but didn't
> stop logs in catalina.out
>
> On Wed, Oct 29, 2008 at 2:50 AM, Mark Thomas <[EMAIL PROTECTED]> wrote:
>> Mohit Anchlia wrote:
>>> ?xml version="1.0" encoding="UTF-8"?>
>>> 
>>>
>>> http://jakarta.apache.org/log4j/";
>>> debug="false">
>>> 
>>>
>>>>> class="org.apache.log4j.DailyRollingFileAppender">
>>>   
>>>   
>>>   
>>>   
>>>  
>>>   
>>>
>>>>> class="org.apache.log4j.DailyRollingFileAppender">
>>>   
>>>   
>>>   
>>>   
>>>  
>>>   
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>> 
>>>
>>> 
>>
>> What steps did you follow to enable log4j logging?
>>
>> Mark
>>
>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>

-
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: Convenient web application configuration.

2008-10-30 Thread br1


jason cipriani-2 wrote:
> 
> 
> Ideally I'd be able to put the settings in context.xml and web.xml
> somewhere outside of the web application directory, and leave them out
> of the web-app's local files, and so they wouldn't have to be packaged
> with the WAR and deploying the WAR wouldn't blow away existing
> configuration data.
> 
> 

Jason,

The easiest way is to place Context and the different Resource elements into
each Tomcat's server.xml file.
Someone will tell you that it's not recommended, but it will just work.

Hope it helps,
br1



-- 
View this message in context: 
http://www.nabble.com/Convenient-web-application-configuration.-tp20244034p20252816.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Problem to install APR Tomcat Native Library

2008-10-30 Thread Andrew Ralph Feller, afelle1
Torsten,

What is your LD_LIBRARY_PATH set to?  Is it something like this:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib

Are there world permissions for anyone to read this directory?

I know you mentioned that you front-end Tomcat with HTTPD and assumed your
use of APR is to free Tomcat from depending on HTTPD for HTTPS.

A-
On 10/30/08 12:41 PM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> Hi Martin,
> 
> It is Solaris SPARC. Would it help to copy shared libs into the JRE bin
> folder? I symlinked them into $JAVA_HOME/jre/lib/sparc but that didn't help
> either.
> 
> Torsten 
> 
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: 30. oktober 2008 18:34
> To: Tomcat Users List
> Subject: RE: Problem to install APR Tomcat Native Library
> 
> 
> pls follow Andrew's advice..if windows its probably a dll? so you'll want to
> copy apr-1.lib to %JRE_HOME%\bin
> 
> Martin 
> __
> Disclaimer and confidentiality note
> Everything 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.
> 
> 
>> Date: Thu, 30 Oct 2008 12:17:51 -0500
>> Subject: Re: Problem to install APR Tomcat Native Library
>> From: [EMAIL PROTECTED]
>> To: users@tomcat.apache.org
>> 
>> Torsten,
>> 
>> Have you updated your LD_LIBRARY_PATH to include APR lib?
>> 
>> A-
>> 
>> 
>> On 10/30/08 12:15 PM, "[EMAIL PROTECTED]"
>> <[EMAIL PROTECTED]> wrote:
>> 
>>> I am trying to install the APR Tomcat Native Library on a Solaris SPARC
>>> server.
>>> 
>>> Since it has only OpenSSL installed and no build system available, I
>>> compiled
>>> libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
>>> 
>>> I then copied the lib folders of both libs to the server, and added the
>>> paths
>>> to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
>>> 
>>> The message "The APR based Apache Tomcat Native library which allows optimal
>>> performance in production environments was not found [...]" and I can see
>>> the
>>> paths to both libs in the java.library.path.
>>> 
>>> I guess I have done something wrong. Any ideas? Can I change the logging
>>> level
>>> so I can get some more info in catalina.out?
>>> 
>>> Torsten
>>> 
>>> -
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>> 
>> -- 
>> Andrew R. Feller, Analyst
>> Information Technology Services
>> 200 Fred Frey Building
>> Louisiana State University
>> Baton Rouge, LA 70803
>> (225) 578-3737 (Office)
>> (225) 578-6400 (Fax)
>> 
>> 
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
> 
> _
> You live life beyond your PC. So now Windows goes beyond your PC.
> http://clk.atdmt.com/MRT/go/115298556/direct/01/
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
Andrew R. Feller, Analyst
Information Technology Services
200 Fred Frey Building
Louisiana State University
Baton Rouge, LA 70803
(225) 578-3737 (Office)
(225) 578-6400 (Fax)


-
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: Failed to install Tomcat5 service

2008-10-30 Thread Tradium

CAn some tell me how to enter the instructions below:

1) Start | Run and type cmd in the Open:  Click OK. 

I go to the start biutton, Run and type Open 

I get a DOS window and when I enter sc delete Tomcat5, it says "specified
service does not exist as an installed service"

But when I try to install it, I get the message Check for permissions nd
settings.

KSS



gchandrasekar wrote:
> 
> Fantastic Solution
> 
> I tried many forums and none was worked. Your solution really worked well.
> 
> Thanks and keep going well.
> 
> :)
> 
> Chandra 
> 
> 
> Hez wrote:
>> 
>> Hi!
>> 
>> The problem is resolved by deleting Tomcat5 service from Windows XP
>> and redo the Tomcat installation:
>> 
>> 1) Start | Run and type cmd in the Open:  Click OK.
>> 2) Type: sc delete Tomcat5
>> 3) Reboot the system
>> 
>> 
>> 
>> On 6/14/07, hezjing <[EMAIL PROTECTED]> wrote:
>>> Hi!
>>>
>>> I got this error when trying to install Tomcat 5.5.23 on Windows XP:
>>>
>>>Failed to install Tomcat5 service.
>>>Check your settings and permissions
>>>Ignore and continue anyway (not recommended)?
>>>
>>> the above error occurs with these status:
>>>..
>>>tomcat-users.xml written
>>>Remove folder: C:\Temp\confinstall
>>>Using Jvm: C:\Program Files\Java\jre1.5.0_11\bin\client\jvm.dll
>>>
>>> I abort the installation at this point.
>>>
>>> After searching the Google, I tried to set the environment variable
>>> TEMP and TMP to C:\Temp, but that doesn't help either.
>>>
>>> When I open the Services (Local) window, I see that there is a service
>>> named Apache Tomcat (Apache Tomcat 5.5.23 Server -
>>> http://tomcat.apache.org/"; ...
>>> I think this service is created but not being remove when I abort the
>>> Tomcat installation.
>>>
>>> Please help, thank you!
>>>
>>>
>>> --
>>>
>>> Hez
>>>
>> 
>> 
>> -- 
>> 
>> Hez
>> 
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Failed-to-install-Tomcat5-service-tp4789p20251992.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: JSVC vs standard startup / shutdown scripts

2008-10-30 Thread Andrew Ralph Feller, afelle1
Thanks for the response Torsten!

In our environment, the machines we have Tomcat running on strictly use
Tomcat 6, APR for SSL support, and we load balance applications through an
external load balancer.  We have been able to get by without brining HTTPD
for things like mod_rewrite or any of the PAMs, so I would like to keep it
as simple as possible.

I don't have any personal issue with moving to running Tomcat directly as
the non-privileged account meant for Tomcat, however I am curious about the
trade offs especially related to security.

Thanks!

On 10/30/08 12:37 PM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> Hi Andrew,
> 
> We let all our Tomcats run on a non-privileged port and use some init script
> using startup.sh/shutdown.sh, and have an Apache httpd forwarding requests
> with AJP.
> 
> We then use Apache httpd for things like terminating SSL, do RADIUS or LDAP
> authentication, load balancing several Tomcat instances and so on.
> 
> I think it is a good and common setup like that.
> 
> Torsten
> 
> -Original Message-
> From: Andrew Feller [mailto:[EMAIL PROTECTED]
> Sent: 30. oktober 2008 18:16
> To: users@tomcat.apache.org
> Cc: Brad Cupit
> Subject: JSVC vs standard startup / shutdown scripts
> 
> QUESTION: What is the best practice for running Tomcat?  JSVC daemon or
> startup / shutdown scripts as a non-root user and forwarding HTTPS requests
> to a non-privileged port?
> 
> While reading the Professional Apache Tomcat 6 (ISBN: 978-0-471-75361-2),
> they recommend running Tomcat to start it up using the startup script
> provided in the Tomcat binary and having your firewall forward requests from
> HTTPS to a non-privileged port.  This is very interesting for two reasons:
> 
>1. The book never mentions JSVC, which the Tomcat documentation does
>2. We believed using JSVC was the only way to run as a non-root user,
>which doesn't seem to be the case now
> 
> I would appreciate any feedback about the trade offs and why people choose
> one over the other.
> 
> Thanks,
> Andrew
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
Andrew R. Feller, Analyst
Information Technology Services
200 Fred Frey Building
Louisiana State University
Baton Rouge, LA 70803
(225) 578-3737 (Office)
(225) 578-6400 (Fax)


-
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: Problem to install APR Tomcat Native Library

2008-10-30 Thread Martin Gainty

yes I would do that..symlink is specific to your shell session and only works 
at shell command line or 
thru java shell out e.g. java.lang.Runtime.exec("shell call");

Viel Gluck
Martin 
__ 
Disclaimer and confidentiality note 
Everything 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. 


> Subject: RE: Problem to install APR Tomcat Native Library
> Date: Thu, 30 Oct 2008 18:41:49 +0100
> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> 
> Hi Martin,
> 
> It is Solaris SPARC. Would it help to copy shared libs into the JRE bin 
> folder? I symlinked them into $JAVA_HOME/jre/lib/sparc but that didn't help 
> either.
> 
> Torsten 
> 
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED] 
> Sent: 30. oktober 2008 18:34
> To: Tomcat Users List
> Subject: RE: Problem to install APR Tomcat Native Library
> 
> 
> pls follow Andrew's advice..if windows its probably a dll? so you'll want to 
> copy apr-1.lib to %JRE_HOME%\bin
> 
> Martin 
> __ 
> Disclaimer and confidentiality note 
> Everything 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. 
> 
> 
> > Date: Thu, 30 Oct 2008 12:17:51 -0500
> > Subject: Re: Problem to install APR Tomcat Native Library
> > From: [EMAIL PROTECTED]
> > To: users@tomcat.apache.org
> > 
> > Torsten,
> > 
> > Have you updated your LD_LIBRARY_PATH to include APR lib?
> > 
> > A-
> > 
> > 
> > On 10/30/08 12:15 PM, "[EMAIL PROTECTED]"
> > <[EMAIL PROTECTED]> wrote:
> > 
> > > I am trying to install the APR Tomcat Native Library on a Solaris SPARC
> > > server.
> > > 
> > > Since it has only OpenSSL installed and no build system available, I 
> > > compiled
> > > libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
> > > 
> > > I then copied the lib folders of both libs to the server, and added the 
> > > paths
> > > to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
> > > 
> > > The message "The APR based Apache Tomcat Native library which allows 
> > > optimal
> > > performance in production environments was not found [...]" and I can see 
> > > the
> > > paths to both libs in the java.library.path.
> > > 
> > > I guess I have done something wrong. Any ideas? Can I change the logging 
> > > level
> > > so I can get some more info in catalina.out?
> > > 
> > > Torsten
> > > 
> > > -
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > 
> > -- 
> > Andrew R. Feller, Analyst
> > Information Technology Services
> > 200 Fred Frey Building
> > Louisiana State University
> > Baton Rouge, LA 70803
> > (225) 578-3737 (Office)
> > (225) 578-6400 (Fax)
> > 
> > 
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> _
> You live life beyond your PC. So now Windows goes beyond your PC.
> http://clk.atdmt.com/MRT/go/115298556/direct/01/
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
When your life is on the goā€”take your life with you.
http://clk.atdmt.com/MRT/go/115298558/direct/01/

RE: Problem to install APR Tomcat Native Library

2008-10-30 Thread Torsten.Romer
Hi Martin,

It is Solaris SPARC. Would it help to copy shared libs into the JRE bin folder? 
I symlinked them into $JAVA_HOME/jre/lib/sparc but that didn't help either.

Torsten 

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: 30. oktober 2008 18:34
To: Tomcat Users List
Subject: RE: Problem to install APR Tomcat Native Library


pls follow Andrew's advice..if windows its probably a dll? so you'll want to 
copy apr-1.lib to %JRE_HOME%\bin

Martin 
__ 
Disclaimer and confidentiality note 
Everything 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. 


> Date: Thu, 30 Oct 2008 12:17:51 -0500
> Subject: Re: Problem to install APR Tomcat Native Library
> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> 
> Torsten,
> 
> Have you updated your LD_LIBRARY_PATH to include APR lib?
> 
> A-
> 
> 
> On 10/30/08 12:15 PM, "[EMAIL PROTECTED]"
> <[EMAIL PROTECTED]> wrote:
> 
> > I am trying to install the APR Tomcat Native Library on a Solaris SPARC
> > server.
> > 
> > Since it has only OpenSSL installed and no build system available, I 
> > compiled
> > libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
> > 
> > I then copied the lib folders of both libs to the server, and added the 
> > paths
> > to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
> > 
> > The message "The APR based Apache Tomcat Native library which allows optimal
> > performance in production environments was not found [...]" and I can see 
> > the
> > paths to both libs in the java.library.path.
> > 
> > I guess I have done something wrong. Any ideas? Can I change the logging 
> > level
> > so I can get some more info in catalina.out?
> > 
> > Torsten
> > 
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -- 
> Andrew R. Feller, Analyst
> Information Technology Services
> 200 Fred Frey Building
> Louisiana State University
> Baton Rouge, LA 70803
> (225) 578-3737 (Office)
> (225) 578-6400 (Fax)
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
You live life beyond your PC. So now Windows goes beyond your PC.
http://clk.atdmt.com/MRT/go/115298556/direct/01/

-
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: JSVC vs standard startup / shutdown scripts

2008-10-30 Thread Torsten.Romer
Hi Andrew,

We let all our Tomcats run on a non-privileged port and use some init script 
using startup.sh/shutdown.sh, and have an Apache httpd forwarding requests with 
AJP.

We then use Apache httpd for things like terminating SSL, do RADIUS or LDAP 
authentication, load balancing several Tomcat instances and so on.

I think it is a good and common setup like that.

Torsten

-Original Message-
From: Andrew Feller [mailto:[EMAIL PROTECTED] 
Sent: 30. oktober 2008 18:16
To: users@tomcat.apache.org
Cc: Brad Cupit
Subject: JSVC vs standard startup / shutdown scripts

QUESTION: What is the best practice for running Tomcat?  JSVC daemon or
startup / shutdown scripts as a non-root user and forwarding HTTPS requests
to a non-privileged port?

While reading the Professional Apache Tomcat 6 (ISBN: 978-0-471-75361-2),
they recommend running Tomcat to start it up using the startup script
provided in the Tomcat binary and having your firewall forward requests from
HTTPS to a non-privileged port.  This is very interesting for two reasons:

   1. The book never mentions JSVC, which the Tomcat documentation does
   2. We believed using JSVC was the only way to run as a non-root user,
   which doesn't seem to be the case now

I would appreciate any feedback about the trade offs and why people choose
one over the other.

Thanks,
Andrew

-
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: Problem to install APR Tomcat Native Library

2008-10-30 Thread Martin Gainty

pls follow Andrew's advice..if windows its probably a dll? so you'll want to 
copy apr-1.lib to %JRE_HOME%\bin

Martin 
__ 
Disclaimer and confidentiality note 
Everything 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. 


> Date: Thu, 30 Oct 2008 12:17:51 -0500
> Subject: Re: Problem to install APR Tomcat Native Library
> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> 
> Torsten,
> 
> Have you updated your LD_LIBRARY_PATH to include APR lib?
> 
> A-
> 
> 
> On 10/30/08 12:15 PM, "[EMAIL PROTECTED]"
> <[EMAIL PROTECTED]> wrote:
> 
> > I am trying to install the APR Tomcat Native Library on a Solaris SPARC
> > server.
> > 
> > Since it has only OpenSSL installed and no build system available, I 
> > compiled
> > libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
> > 
> > I then copied the lib folders of both libs to the server, and added the 
> > paths
> > to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
> > 
> > The message "The APR based Apache Tomcat Native library which allows optimal
> > performance in production environments was not found [...]" and I can see 
> > the
> > paths to both libs in the java.library.path.
> > 
> > I guess I have done something wrong. Any ideas? Can I change the logging 
> > level
> > so I can get some more info in catalina.out?
> > 
> > Torsten
> > 
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -- 
> Andrew R. Feller, Analyst
> Information Technology Services
> 200 Fred Frey Building
> Louisiana State University
> Baton Rouge, LA 70803
> (225) 578-3737 (Office)
> (225) 578-6400 (Fax)
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
You live life beyond your PC. So now Windows goes beyond your PC.
http://clk.atdmt.com/MRT/go/115298556/direct/01/

RE: Problem to install APR Tomcat Native Library

2008-10-30 Thread Torsten.Romer
Hi Andrew,

Yes, I did that. So both libapr and libtcnative are in the 
LD_LIBRARY_PATH/java.library.path that Tomcat includes in the message that it 
couldn't load the library.

I even included the OpenSSL libs in the path.

Torsten

-Original Message-
From: Andrew Ralph Feller, afelle1 [mailto:[EMAIL PROTECTED] 
Sent: 30. oktober 2008 18:18
To: Tomcat Users List
Subject: Re: Problem to install APR Tomcat Native Library


Torsten,

Have you updated your LD_LIBRARY_PATH to include APR lib?

A-


On 10/30/08 12:15 PM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> I am trying to install the APR Tomcat Native Library on a Solaris SPARC
> server.
> 
> Since it has only OpenSSL installed and no build system available, I compiled
> libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
> 
> I then copied the lib folders of both libs to the server, and added the paths
> to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
> 
> The message "The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found [...]" and I can see the
> paths to both libs in the java.library.path.
> 
> I guess I have done something wrong. Any ideas? Can I change the logging level
> so I can get some more info in catalina.out?
> 
> Torsten
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
Andrew R. Feller, Analyst
Information Technology Services
200 Fred Frey Building
Louisiana State University
Baton Rouge, LA 70803
(225) 578-3737 (Office)
(225) 578-6400 (Fax)


-
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: Problem to install APR Tomcat Native Library

2008-10-30 Thread Andrew Ralph Feller, afelle1
Torsten,

Have you updated your LD_LIBRARY_PATH to include APR lib?

A-


On 10/30/08 12:15 PM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> I am trying to install the APR Tomcat Native Library on a Solaris SPARC
> server.
> 
> Since it has only OpenSSL installed and no build system available, I compiled
> libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
> 
> I then copied the lib folders of both libs to the server, and added the paths
> to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
> 
> The message "The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found [...]" and I can see the
> paths to both libs in the java.library.path.
> 
> I guess I have done something wrong. Any ideas? Can I change the logging level
> so I can get some more info in catalina.out?
> 
> Torsten
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
Andrew R. Feller, Analyst
Information Technology Services
200 Fred Frey Building
Louisiana State University
Baton Rouge, LA 70803
(225) 578-3737 (Office)
(225) 578-6400 (Fax)


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



JSVC vs standard startup / shutdown scripts

2008-10-30 Thread Andrew Feller
QUESTION: What is the best practice for running Tomcat?  JSVC daemon or
startup / shutdown scripts as a non-root user and forwarding HTTPS requests
to a non-privileged port?

While reading the Professional Apache Tomcat 6 (ISBN: 978-0-471-75361-2),
they recommend running Tomcat to start it up using the startup script
provided in the Tomcat binary and having your firewall forward requests from
HTTPS to a non-privileged port.  This is very interesting for two reasons:

   1. The book never mentions JSVC, which the Tomcat documentation does
   2. We believed using JSVC was the only way to run as a non-root user,
   which doesn't seem to be the case now

I would appreciate any feedback about the trade offs and why people choose
one over the other.

Thanks,
Andrew


Problem to install APR Tomcat Native Library

2008-10-30 Thread Torsten.Romer
I am trying to install the APR Tomcat Native Library on a Solaris SPARC server.

Since it has only OpenSSL installed and no build system available, I compiled 
libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.

I then copied the lib folders of both libs to the server, and added the paths 
to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).

The message "The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found [...]" and I can see the 
paths to both libs in the java.library.path.

I guess I have done something wrong. Any ideas? Can I change the logging level 
so I can get some more info in catalina.out?

Torsten

-
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: relation between Tomcat and Apache Commons

2008-10-30 Thread Petr Sumbera


Rainer Jung-3 wrote:
> 
> Commons collections seems to be a relict and not really used.
> DBCP and pool is contained in tomcat-dbcp.jar. We ranem the packages in
> order to make to dbcp and pool classes independant of any webapp bundled
> dbcp or pool versions.
> 

And how about commons-daemon.jar in bin directory?

According to http://tomcat.apache.org/tomcat-6.0-doc/setup.html it is used
with jsvc only.

Btw I don't see any benefit using jsvc. Is somebody using it? Why?

Thanks,

Petr

-- 
View this message in context: 
http://www.nabble.com/relation-between-Tomcat-and-Apache-Commons-tp20145816p20251071.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Cookie problem in 5.5.26

2008-10-30 Thread Tim Funk
An extreme kludge is to create a Filter which creates a 
HttpServletRequestWrapper which overrides getCookies() with a custom 
implementation.


That custom implementation would read the headers, find the cookies and 
perform its own parsing mechanism to read the cookies.


-Tim

Mark Thomas wrote:

Stephen More wrote:

I see in version 5.5.26 there are "Cookie handling/parsing changes!"

5.5.25 and prior I was able to read cookie values that included colons:
   cookie-name: lastaccess cookie-value: 10/30/2008%2010:41:00%20AM

5.5.26 and after:
   cookie-name: lastaccess cookie-value: 10/30/2008%2010


Other threads are suggesting setVersion(1) when creating the cookie.
The problem is that I am not creating this cookie. It is being created
on a different system and I just need to read it.

How can I read this "3rd party" cookie-value in tomcat 5.5.26 and greater ?


Get the bug fixed in the system that is generating invalid cookie values?



-
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: Cookie problem in 5.5.26

2008-10-30 Thread Mark Thomas
Stephen More wrote:
> I see in version 5.5.26 there are "Cookie handling/parsing changes!"
> 
> 5.5.25 and prior I was able to read cookie values that included colons:
>cookie-name: lastaccess cookie-value: 10/30/2008%2010:41:00%20AM
> 
> 5.5.26 and after:
>cookie-name: lastaccess cookie-value: 10/30/2008%2010
> 
> 
> Other threads are suggesting setVersion(1) when creating the cookie.
> The problem is that I am not creating this cookie. It is being created
> on a different system and I just need to read it.
> 
> How can I read this "3rd party" cookie-value in tomcat 5.5.26 and greater ?

Get the bug fixed in the system that is generating invalid cookie values?

Mark



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



ProxyDirContext.lookup(String) using a lot of CPU time

2008-10-30 Thread Roberto Fasciolo

Hello,

While profiling my application running on tomcat 6.0 and wicket 1.3.5 I've
noticed that a lot of CPU time is used in this tomcat's method:
ProxyDirContext.lookup(String).

My guess is that the problem is due to the fact that wicket is deployed as a
servlet filter (mapped on /*) and when a request is received tomcat is
trying looking for everything mapped to that URL.

For example, if the request is for http://server/contextroot/pages/APage
tomcat immediately finds the WicketFilter that is mapped to /*, but then it
goes all the times through all the possible options for servlet (because
there are no servlets mapped to that URL and no static contents matching
that either).

I've raised this in the wicket mailing list and this is the answer I've got:


> this sounds like a bug in tomcat, why dont you take it to their list?
> the way that jetty works is that it installs a default catch-all servlet
> in order for filters to run at all, so you might have to do the same
> thing.
> 
(full thread available at:
http://www.nabble.com/Problem-with-using-wicket-as-a-filter-td20171597.html).

What do you think about this? Is there something I can do for avoding having
that method using almost all the CPU time used by my application?

Thanks,
-Roberto
-- 
View this message in context: 
http://www.nabble.com/ProxyDirContext.lookup%28String%29-using-a-lot-of-CPU-time-tp20249307p20249307.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Cookie problem in 5.5.26

2008-10-30 Thread Stephen More
I see in version 5.5.26 there are "Cookie handling/parsing changes!"

5.5.25 and prior I was able to read cookie values that included colons:
   cookie-name: lastaccess cookie-value: 10/30/2008%2010:41:00%20AM

5.5.26 and after:
   cookie-name: lastaccess cookie-value: 10/30/2008%2010


Other threads are suggesting setVersion(1) when creating the cookie.
The problem is that I am not creating this cookie. It is being created
on a different system and I just need to read it.

How can I read this "3rd party" cookie-value in tomcat 5.5.26 and greater ?


-Thanks
Steve More

-
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: Tomcat6+ISAPI+IIS+Integrated Authentication+Large User

2008-10-30 Thread Martin Gainty

Paul-

unless otherwise configured please re-xmit (or display inline) the latest of 
%WINDIR%/system32/LogFiles/W3SVC1/*.log

thx
Martin 
__ 
Disclaimer and confidentiality note 
Everything 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. 


> Date: Thu, 30 Oct 2008 07:13:37 -0700
> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> Subject: Re: Tomcat6+ISAPI+IIS+Integrated Authentication+Large User
> 
> 
> Hi
> 
> I've uploaded a fresh log which shows only an attempted connection from an
> affected user (DOMAIN\mbn)
> 
> A subsequent test with a 'normal' user produced a large log showing the
> successful connection.
> 
> Thanks
> Paul
> 
> Rainer Jung-3 wrote:
> > 
> > Scrumpy Jack schrieb:
> >> Hi
> >> I'm trying to resolve an issue with Integrated Authentication when a user
> >> with a large Group Membership tries to access a site served by Tomcat via
> >> IIS ISAPI Redirect.
> >> 
> >> For all other users, access is fine. For users with 70+ Windows groups,
> >> they
> >> are failing to be redirected and are getting a 500 error. Basic
> >> Authentication works fine.
> >> Can anyone point me in the direction of settings that increase buffer (?)
> >> settings related to Integrated Authentication? Any ideas as to where I
> >> should focus? (i.e. the ISAPI Filter config end, or Tomcat end?)
> > 
> > If you can easily reproduce on a test system, set log_level to trace and
> > reproduce with a single request. Then show us your log_file.
> > 
> > It is possible, that the informagtion gets forwarded via http headers.
> > The AJP protocol used between the isapi redirector and Tomcat needs to
> > send all http headers in a single AJP packet. The default maximum size
> > of the packet is 8KB. Recent versions of the redirector and of Tomcat
> > are able to use a higher value. But let's first check, if this is
> > actually the problem you are runnning into.
> > 
> > Regards,
> > 
> > Rainer
> > 
> > 
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> http://www.nabble.com/file/p20242376/Log%2BExcerpt.txt Log+Excerpt.txt 
> 
> http://www.nabble.com/file/p20247837/error_MaryBeth_isapi_redirect.log
> error_MaryBeth_isapi_redirect.log 
> -- 
> View this message in context: 
> http://www.nabble.com/Tomcat6%2BISAPI%2BIIS%2BIntegrated-Authentication%2BLarge-User-tp20049325p20247837.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Store, manage and share up to 5GB with Windows Live SkyDrive.
http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008

Re: Tomcat6+ISAPI+IIS+Integrated Authentication+Large User

2008-10-30 Thread Scrumpy Jack

Hi

I've uploaded a fresh log which shows only an attempted connection from an
affected user (DOMAIN\mbn)

A subsequent test with a 'normal' user produced a large log showing the
successful connection.

Thanks
Paul

Rainer Jung-3 wrote:
> 
> Scrumpy Jack schrieb:
>> Hi
>> I'm trying to resolve an issue with Integrated Authentication when a user
>> with a large Group Membership tries to access a site served by Tomcat via
>> IIS ISAPI Redirect.
>> 
>> For all other users, access is fine. For users with 70+ Windows groups,
>> they
>> are failing to be redirected and are getting a 500 error. Basic
>> Authentication works fine.
>> Can anyone point me in the direction of settings that increase buffer (?)
>> settings related to Integrated Authentication? Any ideas as to where I
>> should focus? (i.e. the ISAPI Filter config end, or Tomcat end?)
> 
> If you can easily reproduce on a test system, set log_level to trace and
> reproduce with a single request. Then show us your log_file.
> 
> It is possible, that the informagtion gets forwarded via http headers.
> The AJP protocol used between the isapi redirector and Tomcat needs to
> send all http headers in a single AJP packet. The default maximum size
> of the packet is 8KB. Recent versions of the redirector and of Tomcat
> are able to use a higher value. But let's first check, if this is
> actually the problem you are runnning into.
> 
> Regards,
> 
> Rainer
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
http://www.nabble.com/file/p20242376/Log%2BExcerpt.txt Log+Excerpt.txt 

http://www.nabble.com/file/p20247837/error_MaryBeth_isapi_redirect.log
error_MaryBeth_isapi_redirect.log 
-- 
View this message in context: 
http://www.nabble.com/Tomcat6%2BISAPI%2BIIS%2BIntegrated-Authentication%2BLarge-User-tp20049325p20247837.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Howto ip-protect a specific url in webapp?

2008-10-30 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Subject: Howto ip-protect a specific url in webapp?
>
> I can restrict the whole /foo by using valve in
> "/etc/tomcat5/Catalina/localhost/foo.xml" but howto protect
> only /foo/admin?

Either put the check in the servlet that handles /foo/admin, or write your own 
valve that extends the existing RemoteAddrValve.

 - Chuck


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

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



RE: Convenient web application configuration.

2008-10-30 Thread Caldarale, Charles R
> From: Jason Cipriani [mailto:[EMAIL PROTECTED]
> Subject: Convenient web application configuration.
>
> Is there a better place I can store site-specific
> configuration options?

Read the doc:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Context%20Parameters

> Is there some other way I can define data sources so
> that I don't have to maintain separate WAR files for
> each configuration?

The  element must go inside a  element, but you can place 
the  in conf/Catalina/[host]/[appName].xml rather than in the webapp's 
META-INF/context.xml file.  Again, read the doc:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Introduction

Your deployment script will need to copy the site-specific file containing your 
 element to conf/Catalina/[host]/[appName].xml since that file is 
removed when a webapp is undeployed.

 - Chuck


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

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



RE: Tomcat memory increasing without any activity on our webapp

2008-10-30 Thread Caldarale, Charles R
> From: Pierre Goupil [mailto:[EMAIL PROTECTED]
> Subject: Tomcat memory increasing without any activity on our webapp
>
> When we start it up without any surfing on it or without
> any activity of any kind, the JVM memory first goes to some
> level, then stays at this level for 5-10 minutes and after
> some times it keeps on growing up.
>
> BUT, if we set up this webapp as non-reloadable (on a dev
> machine), the memory just grows up in the beginning and
> then doesn't grow up anymore

There are many definitions of "memory"; which one are you referring to?

What does JConsole (or equivalent) say about heap usage?

What OS are you using?  Which JVM?  What are your Java heap size settings?

The thread that monitors webapps for potential reloading will create objects as 
it runs, and these won't go away until a garbage collection occurs.  In a 
lightly loaded system, that may not happen for several days.

 - Chuck


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

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



Tomcat memory increasing without any activity on our webapp

2008-10-30 Thread Pierre Goupil
Hello all,

We have a Spring webapp running in a Tomcat 5.5 (5.5.7 or 5.5.25 depending
upon the machines). When we start it up without any surfing on it or without
any activity of any kind, the JVM memory first goes to some level, then
stays at this level for 5-10 minutes and after some times it keeps on
growing up.

BUT, if we set up this webapp as non-reloadable (on a dev machine), the
memory just grows up in the beginning and then doesn't grow up anymore, as
one or at least me should expect.

Does anyone has an idea regarding the cause of this behavior ? Is there
anything we could do ?

Of course, our production environment is set up for non-reloadable webapps
but I see this behaviour as surprising.

Regards,

Pierre


-- 
Je n'ai pas de maƮtre, je suis le chaos.


Re: Convenient web application configuration.

2008-10-30 Thread Pid
Jason Cipriani wrote:
> I'm using Tomcat 6.0.18 on Windows XP SP3, Windows Server 2003, and
> Windows Vista (UAC disabled).
> 
> I have a web application with a lot of configuration options, all
> currently stored as servlet initialization parameters in
> WEB-INF/web.xml. The parameters are site specific and are different
> for my development machine, the machines of the two other developers
> working on the project, and the production machine. I am the only
> developer working on the web application.
> 
> My problem is that web.xml is part of the web application WAR file.
> Also web.xml differs for the 4 different machine the web application
> runs on. This means that every single time I make a release, I have to
> comment and uncomment blocks of parameters in web.xml, build 4
> separate WAR files customized for each machine, and make the 4
> separate WAR files available to each of the 4 people running the web
> application. This is very cumbersome and it seems unreasonably
> complicated, and has already led to a number of distribution mistakes
> on multiple occasions. Is there a better place I can store
> site-specific configuration options? Any suggestions would be helpful.
> 
> Similarly, I have a JDBC data source defined in META-INF/context.xml.
> The data source parameters are different for each machine. Is there
> some other way I can define data sources so that I don't have to
> maintain separate WAR files for each configuration?
> 
> Ideally I'd be able to put the settings in context.xml and web.xml
> somewhere outside of the web application directory, and leave them out
> of the web-app's local files, and so they wouldn't have to be packaged
> with the WAR and deploying the WAR wouldn't blow away existing
> configuration data.

Is your build process automated, say with ant or maven?
If so, it should be a relatively simple one-off job to configure
multiple output war files from one codebase with several configurations.

If not, I'd recommend you look into them (I prefer ant, but YMMV).

p



> Thanks,
> Jason
> 
> -
> 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: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-30 Thread Serge Fonville
If you have two completely separate installations, you should specify a
catalina home in the batch file that starts the instance, if just the config
an apps are separate, specify a catalina base in the startup fileAlso you
could use http://www.linuxjournal.com/article/8561 for a more step by step
approach to configuring multiple instances
You should be able to create a service for each instance (specify the
service name with the service.bat)
I found all the links so far by googling for 'tomcat multiple instances
windows' (without the quotes)

Regards,

Serge Fonville

On Thu, Oct 30, 2008 at 12:37 PM, dOE <[EMAIL PROTECTED]> wrote:

> Thanks for the reply Serge,
>
> On Win32 I have the CATALINA_HOME set to pont to where Tomcat is installed,
> and were server1 resides.  To configure CATALINA_BASE the same way, but
> pont
> to another directory that ONLY contains *conf*, *webapps*, *logs*, *temp*,
> and *work*?  What would need to be in the conf - *server.xml*, *web.xml*,
> and possibly *tomcat-users.xml*?
>
> On Thu, Oct 30, 2008 at 3:45 AM, Serge Fonville <[EMAIL PROTECTED]
> >wrote:
>
> > You can define a CATALINA_HOME/BASE in the startup file(catalina.bat/sh).
> > (all it does now is use the global environment variable because it isn't
> > specified inside the file)You could define a HOME1 and HOME2 variable,
> but
> > that would require a lot more changes inside the startup file.
> >
> > To be sure, specify it near the top (before used)
> > That way the alternate value only applies inside that instance
> >
> > Does this help?
> >
> > Regards,
> >
> > Serge Fonville
> >
> >
> > On Wed, Oct 29, 2008 at 8:16 PM, dOE <[EMAIL PROTECTED]> wrote:
> >
> >> Guys, please don't give up on me yet, I am going to go read up on the
> >> documentation tonight to see what else I need to do to get this site
> >> working.
> >>
> >> I think my focus will be more for the Win32 rather 'nix because it more
> of
> >> a
> >> priority.
> >>
> >> On Wed, Oct 29, 2008 at 2:17 PM, dOE <[EMAIL PROTECTED]> wrote:
> >>
> >> > Now this needs to be replicated on a Win32 system as well following
> this
> >> > how can this be done?  The service can not be started by a
> command-line
> >> > script (ideally).
> >> >
> >> >
> >> > On Wed, Oct 29, 2008 at 2:02 PM, Hassan Schroeder <
> >> > [EMAIL PROTECTED]> wrote:
> >> >
> >> >> On Wed, Oct 29, 2008 at 10:23 AM, dOE <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> > perhaps this is where my problem is at this stage.  I would need a
> >> >> > "Catalina_Home2" and have that pointing to *server2 *...? I am
> >> guessing,
> >> >> but
> >> >> > would this mean I need to edit every mention of Catalina_Home to
> >> >> > Catalina_Home2 in the *.properties files?
> >> >>
> >> >> No, just start the second instance from a shell with the appropriate
> >> >> value for CATALINA_HOME defined.
> >> >>
> >> >> --
> >> >> Hassan Schroeder  [EMAIL PROTECTED]
> >> >>
> >> >
> >> >
> >>
> >
> >
>


Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-30 Thread dOE
Thanks for the reply Serge,

On Win32 I have the CATALINA_HOME set to pont to where Tomcat is installed,
and were server1 resides.  To configure CATALINA_BASE the same way, but pont
to another directory that ONLY contains *conf*, *webapps*, *logs*, *temp*,
and *work*?  What would need to be in the conf - *server.xml*, *web.xml*,
and possibly *tomcat-users.xml*?

On Thu, Oct 30, 2008 at 3:45 AM, Serge Fonville <[EMAIL PROTECTED]>wrote:

> You can define a CATALINA_HOME/BASE in the startup file(catalina.bat/sh).
> (all it does now is use the global environment variable because it isn't
> specified inside the file)You could define a HOME1 and HOME2 variable, but
> that would require a lot more changes inside the startup file.
>
> To be sure, specify it near the top (before used)
> That way the alternate value only applies inside that instance
>
> Does this help?
>
> Regards,
>
> Serge Fonville
>
>
> On Wed, Oct 29, 2008 at 8:16 PM, dOE <[EMAIL PROTECTED]> wrote:
>
>> Guys, please don't give up on me yet, I am going to go read up on the
>> documentation tonight to see what else I need to do to get this site
>> working.
>>
>> I think my focus will be more for the Win32 rather 'nix because it more of
>> a
>> priority.
>>
>> On Wed, Oct 29, 2008 at 2:17 PM, dOE <[EMAIL PROTECTED]> wrote:
>>
>> > Now this needs to be replicated on a Win32 system as well following this
>> > how can this be done?  The service can not be started by a command-line
>> > script (ideally).
>> >
>> >
>> > On Wed, Oct 29, 2008 at 2:02 PM, Hassan Schroeder <
>> > [EMAIL PROTECTED]> wrote:
>> >
>> >> On Wed, Oct 29, 2008 at 10:23 AM, dOE <[EMAIL PROTECTED]> wrote:
>> >>
>> >> > perhaps this is where my problem is at this stage.  I would need a
>> >> > "Catalina_Home2" and have that pointing to *server2 *...? I am
>> guessing,
>> >> but
>> >> > would this mean I need to edit every mention of Catalina_Home to
>> >> > Catalina_Home2 in the *.properties files?
>> >>
>> >> No, just start the second instance from a shell with the appropriate
>> >> value for CATALINA_HOME defined.
>> >>
>> >> --
>> >> Hassan Schroeder  [EMAIL PROTECTED]
>> >>
>> >
>> >
>>
>
>


Re: Clustering in tomcat

2008-10-30 Thread Filip Hanik - Dev Lists

http://tomcat.apache.org/tomcat-6.0-doc/

look for "Cluster Basics"

Filip

kashif_tomcat wrote:

Thanks Filip...

i have got out of that problem... after adding clustering port in iptable. 


now i am getting another exception and following is detail.


when i add  tag in web.xml of my applicatoin and start
tomcat. then after login my application crashs and i get following exception
in logs.


2008-10-30 21:19:43,812 INFO [com.vopium.controller.LoginController -
handleControllerRequest] - Exception during LoginProcess setAttribute:
Non-serializable attribute
com.framework.exceptions.BaseRunTimeException
at
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1295)
at
org.apache.catalina.ha.session.DeltaSession.setAttribute(DeltaSession.java:567)
at
org.apache.catalina.ha.session.DeltaSession.setAttribute(DeltaSession.java:551)
at
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130)
at
com.vopium.controller.LoginController.handleControllerRequest(Unknown
Source)
at
com.framework.controllers.BaseController.handleRequestInternal(Unknown
Source)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.vopium.portal.utilities.URLFilter.doFilter(Unknown Source)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:209)
at
org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:347)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)
2008-10-30 21:19:43,829 INFO [com.vopium.interceptors.SecurityInterceptor -
preHandle] - request.getRemoteAddr() 192.168.0.82   request.getRemoteHost()
192.168.0.82   /vopium/dashboard.htm
2008-10-30 21:19:43,830 INFO [com.vopium.interceptors.SecurityInterceptor -
preHandle] - Session Not Found So Redirecting to Login and requested uri is
/vopium/dashboard.htm


and when i don,t add  tag in web.xml of my application then
application logins successfully but when  tomcat 1 is down then session
doesn't move to tomcat 2 and at that time application crash with same
behavior and throws following msg in logs of tomcat 2 (catalina.out). 




2008-10-30 20:34:51,126 INFO [com.vopium.interceptors.SecurityInterceptor -
preHandle] - request.getRemoteAddr() 192.168.0.82   request.getRemoteHost()
192.168.0.82   /vopium/balanceandpaymentshistory.htm
2008-10-30 20:34:51,127 INFO [com.vopium.interceptors.SecurityInterceptor -
preHandle] - Session Not Found So Redirecting to Login and requested uri is
/vopium/balanceandpaymentshistory.htm


i ll be thankful to you if u can tell me that is it configuration issue or
development issue? and wt to do to fix iit.  









Filip Hanik - Dev Lists wrote:
  

looks like your computer is not configured to allow mult

Re: Clustering in tomcat

2008-10-30 Thread kashif_tomcat

Thanks Filip...

i have got out of that problem... after adding clustering port in iptable. 

now i am getting another exception and following is detail.


when i add  tag in web.xml of my applicatoin and start
tomcat. then after login my application crashs and i get following exception
in logs.


2008-10-30 21:19:43,812 INFO [com.vopium.controller.LoginController -
handleControllerRequest] - Exception during LoginProcess setAttribute:
Non-serializable attribute
com.framework.exceptions.BaseRunTimeException
at
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1295)
at
org.apache.catalina.ha.session.DeltaSession.setAttribute(DeltaSession.java:567)
at
org.apache.catalina.ha.session.DeltaSession.setAttribute(DeltaSession.java:551)
at
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130)
at
com.vopium.controller.LoginController.handleControllerRequest(Unknown
Source)
at
com.framework.controllers.BaseController.handleRequestInternal(Unknown
Source)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.vopium.portal.utilities.URLFilter.doFilter(Unknown Source)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:209)
at
org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:347)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)
2008-10-30 21:19:43,829 INFO [com.vopium.interceptors.SecurityInterceptor -
preHandle] - request.getRemoteAddr() 192.168.0.82   request.getRemoteHost()
192.168.0.82   /vopium/dashboard.htm
2008-10-30 21:19:43,830 INFO [com.vopium.interceptors.SecurityInterceptor -
preHandle] - Session Not Found So Redirecting to Login and requested uri is
/vopium/dashboard.htm


and when i don,t add  tag in web.xml of my application then
application logins successfully but when  tomcat 1 is down then session
doesn't move to tomcat 2 and at that time application crash with same
behavior and throws following msg in logs of tomcat 2 (catalina.out). 



2008-10-30 20:34:51,126 INFO [com.vopium.interceptors.SecurityInterceptor -
preHandle] - request.getRemoteAddr() 192.168.0.82   request.getRemoteHost()
192.168.0.82   /vopium/balanceandpaymentshistory.htm
2008-10-30 20:34:51,127 INFO [com.vopium.interceptors.SecurityInterceptor -
preHandle] - Session Not Found So Redirecting to Login and requested uri is
/vopium/balanceandpaymentshistory.htm


i ll be thankful to you if u can tell me that is it configuration issue or
development issue? and wt to do to fix iit.  








Filip Hanik - Dev Lists wrote:
> 
> looks like your computer is not configured to allow multicast
> 
> Caused by: java.io.IOException: Operation not permitted
> at java.net.PlainDatagr

Convenient web application configuration.

2008-10-30 Thread Jason Cipriani
I'm using Tomcat 6.0.18 on Windows XP SP3, Windows Server 2003, and
Windows Vista (UAC disabled).

I have a web application with a lot of configuration options, all
currently stored as servlet initialization parameters in
WEB-INF/web.xml. The parameters are site specific and are different
for my development machine, the machines of the two other developers
working on the project, and the production machine. I am the only
developer working on the web application.

My problem is that web.xml is part of the web application WAR file.
Also web.xml differs for the 4 different machine the web application
runs on. This means that every single time I make a release, I have to
comment and uncomment blocks of parameters in web.xml, build 4
separate WAR files customized for each machine, and make the 4
separate WAR files available to each of the 4 people running the web
application. This is very cumbersome and it seems unreasonably
complicated, and has already led to a number of distribution mistakes
on multiple occasions. Is there a better place I can store
site-specific configuration options? Any suggestions would be helpful.

Similarly, I have a JDBC data source defined in META-INF/context.xml.
The data source parameters are different for each machine. Is there
some other way I can define data sources so that I don't have to
maintain separate WAR files for each configuration?

Ideally I'd be able to put the settings in context.xml and web.xml
somewhere outside of the web application directory, and leave them out
of the web-app's local files, and so they wouldn't have to be packaged
with the WAR and deploying the WAR wouldn't blow away existing
configuration data.

Thanks,
Jason

-
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: Tomcat6+ISAPI+IIS+Integrated Authentication+Large User

2008-10-30 Thread Scrumpy Jack

Hi

Unfortunately the log I've uploaded isn't quite what you asked for. We have
little access or control over the remote system, so this is just the start
of the log. There are too many accesses in between to isolate the point
where the failing user tries to connect - other than to say it doesn't even
appear to make it to the logs (The access time was recorded by the user, but
nothing appears in the ISAPI log at that time)

A second site with the same issue is trying to get a clean log with only the
failing user entry in it. This may come through in the next few days.

It does seem that the 8k http header limit is our most likely culprit. Are
you able to share how I increase this as that will be easy for me to have
tested? Am happy to test whatever values you recommend that will hopefully
confirm this is the right area to focus - I just haven't found a reference
to this setting anywhere.

Thanks
Paul


Rainer Jung-3 wrote:
> 
> Scrumpy Jack schrieb:
>> Hi
>> I'm trying to resolve an issue with Integrated Authentication when a user
>> with a large Group Membership tries to access a site served by Tomcat via
>> IIS ISAPI Redirect.
>> 
>> For all other users, access is fine. For users with 70+ Windows groups,
>> they
>> are failing to be redirected and are getting a 500 error. Basic
>> Authentication works fine.
>> Can anyone point me in the direction of settings that increase buffer (?)
>> settings related to Integrated Authentication? Any ideas as to where I
>> should focus? (i.e. the ISAPI Filter config end, or Tomcat end?)
> 
> If you can easily reproduce on a test system, set log_level to trace and
> reproduce with a single request. Then show us your log_file.
> 
> It is possible, that the informagtion gets forwarded via http headers.
> The AJP protocol used between the isapi redirector and Tomcat needs to
> send all http headers in a single AJP packet. The default maximum size
> of the packet is 8KB. Recent versions of the redirector and of Tomcat
> are able to use a higher value. But let's first check, if this is
> actually the problem you are runnning into.
> 
> Regards,
> 
> Rainer
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
http://www.nabble.com/file/p20242376/Log%2BExcerpt.txt Log+Excerpt.txt 
-- 
View this message in context: 
http://www.nabble.com/Tomcat6%2BISAPI%2BIIS%2BIntegrated-Authentication%2BLarge-User-tp20049325p20242376.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-30 Thread Serge Fonville
You can define a CATALINA_HOME/BASE in the startup file(catalina.bat/sh).
(all it does now is use the global environment variable because it isn't
specified inside the file)You could define a HOME1 and HOME2 variable, but
that would require a lot more changes inside the startup file.

To be sure, specify it near the top (before used)
That way the alternate value only applies inside that instance

Does this help?

Regards,

Serge Fonville

On Wed, Oct 29, 2008 at 8:16 PM, dOE <[EMAIL PROTECTED]> wrote:

> Guys, please don't give up on me yet, I am going to go read up on the
> documentation tonight to see what else I need to do to get this site
> working.
>
> I think my focus will be more for the Win32 rather 'nix because it more of
> a
> priority.
>
> On Wed, Oct 29, 2008 at 2:17 PM, dOE <[EMAIL PROTECTED]> wrote:
>
> > Now this needs to be replicated on a Win32 system as well following this
> > how can this be done?  The service can not be started by a command-line
> > script (ideally).
> >
> >
> > On Wed, Oct 29, 2008 at 2:02 PM, Hassan Schroeder <
> > [EMAIL PROTECTED]> wrote:
> >
> >> On Wed, Oct 29, 2008 at 10:23 AM, dOE <[EMAIL PROTECTED]> wrote:
> >>
> >> > perhaps this is where my problem is at this stage.  I would need a
> >> > "Catalina_Home2" and have that pointing to *server2 *...? I am
> guessing,
> >> but
> >> > would this mean I need to edit every mention of Catalina_Home to
> >> > Catalina_Home2 in the *.properties files?
> >>
> >> No, just start the second instance from a shell with the appropriate
> >> value for CATALINA_HOME defined.
> >>
> >> --
> >> Hassan Schroeder  [EMAIL PROTECTED]
> >>
> >
> >
>