Re: Defining JDBC resource and AutoDeploy

2011-09-29 Thread Tim Watts
Try: * conf/Catalina/localhost/mywebapp.xml OR * webapps/mywebapp/META-INF/context.xml OR * If you put it in GlobalNamingResources then you have to add a to . See the Configuration documentation. http://tomcat.apache.org/tomcat-5.5-doc/config/context.html has a

Defining JDBC resource and AutoDeploy

2011-09-29 Thread Arttu Tanner
OS: Linux / CentOS / 2.6.18-028stab092.1 Tomcat: 5.5.23 I have simple XML-RPC -WebApp, that uses MySQL database. Currently I have defined the JDBC resource in server.xml inside the -tags as follows: In the WebApp the connection is formed like this: DataSource ds =(DataSource)ctx.lookup(

Re: Problems with ImageIO

2011-09-29 Thread Nubile
I saw this problem while loading a TGA reader. I was able to first resolve the problem by disabling JreMemoryLeakPreventionListener, but a better solution seems to be to put a static initializer in my webapp code that forces the container to re-scan for reader implementations once the webapp class

Re: Apache Tomcat 5.5.34 Question (UNCLASSIFIED)

2011-09-29 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Harold, On 9/22/2011 11:51 AM, BARRON, HAROLD H CTR DISA EE wrote: Classification: UNCLASSIFIED Thank god none of this is classified. I might have to write a plan of action to temporarily mitigate this issue until th

Re: Apache Tomcat 5.5.34 Question (UNCLASSIFIED)

2011-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Harold, On 9/22/2011 11:51 AM, BARRON, HAROLD H CTR DISA EE wrote: > Classification: UNCLASSIFIED Thank god none of this is classified. > I might have to write a plan of action to temporarily mitigate > this issue until the update is posted. I just

Re: Tomcat 7.0.6 FIN_WAIT2 Connections and Connection Keep-Alive

2011-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 wr, On 9/29/2011 4:49 PM, rapponcape wrote: >> Aha, the client is using HTTP 1.0 and not 1.1. This could be one >> reason for Tomcat closing the connection. See below. > > When I reconfigure and put Apache in front of Tomcat and use a > jkmount with

Re: Should Form Authentication Valve restore request body on a PUT?

2011-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nicholas, On 9/29/2011 3:37 PM, Nicholas Sushkin wrote: > In Tomcat 6, Form Authentication valve restores the original > request after a POST with successful authentication and redirect is > followed by the client's GET. In case of the POST, the valve

Re: Tomcat 7.0.6 FIN_WAIT2 Connections and Connection Keep-Alive

2011-09-29 Thread rapponcape
Thanks for your reply. Followup > > 7.0.6 was not ment for production use. Start with the latest 7.0 release. > Will attempt to test with latest stable 7.0.21 > > Aha, the client is using HTTP 1.0 and not 1.1. This could be one reason > for Tomcat closing the connection. See below. > When

Re: problem configuring tomcat7 in ubuntu 10.04

2011-09-29 Thread Hassan Schroeder
On Thu, Sep 29, 2011 at 1:26 PM, Anisha Karki wrote: > I read that but its not clear on how to manage directories in ubuntu i.e > Where should tomcat be placed ? Anywhere you want -- it's your server. > and what is the command to run the tomcat server ? Excerpted quote from the documentation: "

Re: problem configuring tomcat7 in ubuntu 10.04

2011-09-29 Thread Anisha Karki
I read that but its not clear on how to manage directories in ubuntu i.e Where should tomcat be placed ? and what is the command to run the tomcat server ? On Thu, Sep 29, 2011 at 2:46 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Anisha Karki [mailto:karki.ani...@gmail.

RE: problem configuring tomcat7 in ubuntu 10.04

2011-09-29 Thread Caldarale, Charles R
> From: Anisha Karki [mailto:karki.ani...@gmail.com] > Subject: Re: problem configuring tomcat7 in ubuntu 10.04 > I downloaded tomcat 7.0.0 That would be a serious error; the current version is 7.0.21. 7.0.0 never got beyond beta. > Is there any documentation or step by step explanation on ho

Should Form Authentication Valve restore request body on a PUT?

2011-09-29 Thread Nicholas Sushkin
In Tomcat 6, Form Authentication valve restores the original request after a POST with successful authentication and redirect is followed by the client's GET. In case of the POST, the valve also restores the original request's body. However, it doesn't do that for a PUT. If I am not mistaken, it

Re: problem configuring tomcat7 in ubuntu 10.04

2011-09-29 Thread Anisha Karki
Hi, I downloaded tomcat 7.0.0 unzipped it and kept in /user/local/tomcat7/. Now i dont know how to proceed further in ubuntu. In windows i started tomcat by running the executable files. But in ubuntu i am stuck. Is there any documentation or step by step explanation on how to configure and make t

Re: problem configuring tomcat7 in ubuntu 10.04

2011-09-29 Thread Piotr Pawlowski
Please explain exactly what would you like to achieve. To install Tomcat you need to download it from tomcat.apache.org , untar archive and start it by running $tomcat_path/bin/catalina.sh start . Best Regards -- Piotr Pawlowski GOYELLO System Administrator __

problem configuring tomcat7 in ubuntu 10.04

2011-09-29 Thread Anisha Karki
Hi, I am new to both tomcat 7 and ubuntu. How can i configure tomcat server in ubuntu 10.04 ? I am novice to ubuntu and tomcat so It would be nice if anyone could explain in detail. (I tried but could not configure.) Regards, Anisha Karki

Re: Logging properties of attributes in the HttpSession

2011-09-29 Thread Richard Sayre
Ahh yes I just discovered it when you replied: http://static.springsource.org/spring-security/site/docs/3.0.x/apidocs/org/springframework/security/web/servletapi/SecurityContextHolderAwareRequestFilter.html Thanks Rich On Thu, Sep 29, 2011 at 3:19 PM, Christopher Schultz wrote: > -BEGIN PG

Re: Logging properties of attributes in the HttpSession

2011-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rich, On 9/29/2011 12:18 PM, Richard Sayre wrote: > Thanks, I'm trying to log the user name. I am not using Tomcat > for authentication and I need that info in my access logs. So, that means that %u isn't an option, then? :( > Perhaps I will creat

Re: Tomcat 7.0.6 FIN_WAIT2 Connections and Connection Keep-Alive

2011-09-29 Thread Rainer Jung
On 29.09.2011 18:28, rapponcape wrote: > Tomcat version 7.0.6 listening on local machine 10.3.4.7 and accepting > incoming POST connections from 4 remote machines, 10.12.5.10[2-5]. > Configured in standalone mode, using HTTP connector. 7.0.6 was not ment for production use. Start with the latest 7

Tomcat 7.0.6 FIN_WAIT2 Connections and Connection Keep-Alive

2011-09-29 Thread rapponcape
Tomcat version 7.0.6 listening on local machine 10.3.4.7 and accepting incoming POST connections from 4 remote machines, 10.12.5.10[2-5]. Configured in standalone mode, using HTTP connector. Remote machines are sending constant stream of POST messages...~100 kbit/sec. All POST traffic is accepted

Re: connection pooling configuration for DB2 in tomcat

2011-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Krish, On 9/28/2011 5:51 PM, rad muthu wrote: > I am looking for DB2 connection pooling configuration used in DB2. http://lmgtfy.com/?q=DB2+connection+pooling+configuration+used+in+DB2 http://catb.org/~esr/faqs/smart-questions.html - -chris -B

Re: Logging properties of attributes in the HttpSession

2011-09-29 Thread Richard Sayre
Thanks, I'm trying to log the user name. I am not using Tomcat for authentication and I need that info in my access logs. Perhaps I will create a new attribute to hold that value rather than accessing the object I have in session and calling toString. On that note if I know the username, is it

Re: Tomcat 7 :: Tomcat-Native

2011-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lunita, On 9/29/2011 12:02 PM, Lunita wrote: > The steps I followed to compile are, configure, make and make > install. I see the libtcnative and its liks at > $CATALINA_HOME/lib/. > > /opt/apr-1.4.2/lib/ apr.explibapr-1.a > libapr-1.la

Re: Logging properties of attributes in the HttpSession

2011-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rich, On 9/29/2011 9:18 AM, Richard Sayre wrote: > I am logging all local host access using the following config: > > directory="logs" prefix="localhost_access_log." suffix=".txt" > pattern='%h %l %u %{userObject}s %t "%r" %s %b' > resolveHosts="f

Re: Tomcat 7 :: Tomcat-Native

2011-09-29 Thread Lunita
Hi Chris, The steps I followed to compile are, configure, make and make install. I see the libtcnative and its liks at $CATALINA_HOME/lib/. /opt/apr-1.4.2/lib/ apr.explibapr-1.a libapr-1.lalibapr-1.so libapr-1.so.0 libapr-1.so.0.4.2 pkgconfig/ I added the /opt/

Re: Seeking tips on multi-host, multi-context deployments

2011-09-29 Thread Sam Hokin
HUGE apologies, Pid! I had no idea that a changed subject would keep my email in a previous thread. I saw no visible connection to your thread, I didn't know that my email client (Thunderbird) would pass the reference to your thread back in the email header. I'll be sure to start a fresh thread

Re: [OT] Regarding missing requst parameter infos in RequestFacade

2011-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sharun, Marking OT because this is almost certainly not a Tomcat issue, but Cocoon configuration or something else. On 9/29/2011 9:27 AM, Sharun superstar wrote: > I am using cocoon 2.1.9 as my web application frame work on tomcat > 6.0.33 I'm on Co

Re: Tomcat 7 :: Tomcat-Native

2011-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lunita, On 9/29/2011 11:12 AM, Lunita wrote: > I'm trying to set up APR SSL, and at catalina.out is: > > INFO: An older version 1.1.20 of the APR based Apache Tomcat Native > library is installed, while Tomcat recommends a minimum version of > 1.1.22

Re: catalina_pid file contains +1 pid number instead of correct pid

2011-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raghu, On 9/29/2011 1:30 AM, Raghu GS wrote: >>> I have recently enabled catalina_pid functionality using >>> environment variable. The PID file got created and contains +1 >>> PID number. So, when you look at the PID file you get, say "1235" but whe

Re: Using namespaces within XML documents produced from JSPXs

2011-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 9/29/2011 4:43 AM, Paul Wilson wrote: > On 29 September 2011 09:28, Konstantin Kolinko > wrote: >> >> The following will work for you: >> >> > xmlns:bar="path/to/bar/ns" /> > > > Unfortunately (this is the first thing I tried), the cli

Tomcat 7 :: Tomcat-Native

2011-09-29 Thread Lunita
Hi all, I'm trying to set up APR SSL, and at catalina.out is: INFO: An older version 1.1.20 of the APR based Apache Tomcat Native library is installed, while Tomcat recommends a minimum version of 1.1.22 Sep 29, 2011 5:07:40 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR b

Re: Regarding missing requst parameter infos in RequestFacade

2011-09-29 Thread Sharun superstar
On Thu, Sep 29, 2011 at 3:27 PM, Sharun superstar < saravanan.nedunchezhi...@gmail.com> wrote: > Hi, >I am using cocoon 2.1.9 as my web application frame work on tomcat > 6.0.33 > > I get strange problem that I get request object and also able to get values > of > querystring and sessionid fro

Regarding missing requst parameter infos in RequestFacade

2011-09-29 Thread Sharun superstar
Hi, I am using cocoon 2.1.9 as my web application frame work on tomcat 6.0.33 I get strange problem that I get request object and also able to get values of querystring and sessionid from the request object. (RequestFacade) But when try to get request-parameter using the same object it some ti

Logging properties of attributes in the HttpSession

2011-09-29 Thread Richard Sayre
Hi, I am logging all local host access using the following config: The userObject HttpSession attribute is a Java Object and right now it is logging it by calling its toString method. I wanted to log a specific property of that object (userId) so I tried %{userObject.userId}s but that did n

Re: Seeking tips on multi-host, multi-context deployments

2011-09-29 Thread Mark Thomas
On 28/09/2011 19:25, Sam Hokin wrote: > (2) Dell 1950 8-CPU servers running Fedora 14 Linux 2.6.35, one with 2 > GB RAM and one with 4 GB RAM That seems low but if it works for you... > (2) Tomcat 7.0.16 instances, one on each server, running clustered > contexts in "distributable" mode, under Su

Re: Accessing Tomcat manager app

2011-09-29 Thread Konstantin Kolinko
2011/9/29 krishnaroopa senthilkumar : > Great!.. Thanks a lot. I included manager-gui role and able to access. > > Next thing, I had a war file insight.war and placed it under webapps folders > I am able to access as "http://localhost:8080/insight/index.html > But i need to access  it directly as h

Re: Accessing Tomcat manager app

2011-09-29 Thread krishnaroopa senthilkumar
Great!.. Thanks a lot. I included manager-gui role and able to access. Next thing, I had a war file insight.war and placed it under webapps folders I am able to access as "http://localhost:8080/insight/index.html But i need to access it directly as http://localhost:8080/index.html Heard that nee

Re: Using namespaces within XML documents produced from JSPXs

2011-09-29 Thread Paul Wilson
On 29 September 2011 09:28, Konstantin Kolinko wrote: > > The following will work for you: > > > > > Unfortunately (this is the first thing I tried), the client won't accept the namespace being bound on the element itself, and requires that it be bound on the XML's root tag. Looks like I'm

Re: [OT] Tomcat on its own SVN repository?

2011-09-29 Thread Francis GALIEGUE
On Thu, Sep 29, 2011 at 10:35, Konstantin Kolinko wrote: [...] > > No. Why? If it ain't broken do not fix it. > Depends on the point of view, I guess :) SVN is broken to my eyes... > The project has 10+ years of history, and all its versions are > related. Also we sometimes copy code from other

Re: Accessing Tomcat manager app

2011-09-29 Thread Konstantin Kolinko
2011/9/29 krishnaroopa senthilkumar : > Hi > > I have installed tom cat 7.0.21 > I have changed the tomcat-users.xml file as below > > > > > > > The manager-script role gives access only to the "text" interface of manager (used by scripts connecting remotely). See web.xml file of the manager

Re: [OT] Tomcat on its own SVN repository?

2011-09-29 Thread Olivier Lamy
If you need a git clone use: https://github.com/apache/ and search clone started with tomcat 2011/9/29 Francis GALIEGUE : > Hello list, > > I was trying to get the source code in order to implement my own idea > of a remote address valve (as mentioned in a previous thread). > > But I use git-svn,

Re: [OT] Tomcat on its own SVN repository?

2011-09-29 Thread Konstantin Kolinko
2011/9/29 Francis GALIEGUE : > Hello list, > > I was trying to get the source code in order to implement my own idea > of a remote address valve (as mentioned in a previous thread). > > But I use git-svn, and discovered that Tomcat is on a repository with > 1M+ changes on it! git svn clone is there

Accessing Tomcat manager app

2011-09-29 Thread krishnaroopa senthilkumar
Hi I have installed tom cat 7.0.21 I have changed the tomcat-users.xml file as below Still I am not able to access the manager app. Thanks for your time -- regards KRS

Re: Using namespaces within XML documents produced from JSPXs

2011-09-29 Thread Konstantin Kolinko
2011/9/29 Paul Wilson : > On 28 September 2011 18:11, Konstantin Kolinko wrote: > > This is what isn't working on Tomcat 6.0.32 for me. Note additionally that " > http://www.w2.org/2000/svg"; should be a taglib uri too to fully mirror my > example. Perhaps I'm being too optimistic that the namespac

[OT] Tomcat on its own SVN repository?

2011-09-29 Thread Francis GALIEGUE
Hello list, I was trying to get the source code in order to implement my own idea of a remote address valve (as mentioned in a previous thread). But I use git-svn, and discovered that Tomcat is on a repository with 1M+ changes on it! git svn clone is therefore woefully impractical. Is there any p

Re: Using namespaces within XML documents produced from JSPXs

2011-09-29 Thread Paul Wilson
On 28 September 2011 18:11, Konstantin Kolinko wrote: > > 1) I replaced opening svg tag with: > > http://www.w3.org/2000/svg"; > width="450" height="500" viewBox="0 0 450 500" > xmlns:c="http://java.sun.com/jsp/jstl/core"; > xmlns:fn="http://java.sun.com/jsp/jstl/functions"; > xmlns