Re: Multiple struts action servlet mapping 404ing behind Apache with Tomcat 7.0.6

2011-02-02 Thread André Warnier
Forum Accounts wrote: I'm looking for a way to allow us to rename our .do struts extensions to something else, without having to do them all at once. Tomcat 7.0.6, jdk1.6, solaris 10, behind Apache 2.2.10, struts 1.1. Multiple struts action servlet mappings (*.do and *.foo) seems to do what we w

Multiple struts action servlet mapping 404ing behind Apache with Tomcat 7.0.6

2011-02-02 Thread Forum Accounts
I'm looking for a way to allow us to rename our .do struts extensions to something else, without having to do them all at once. Tomcat 7.0.6, jdk1.6, solaris 10, behind Apache 2.2.10, struts 1.1. Multiple struts action servlet mappings (*.do and *.foo) seems to do what we want when going through t

Tomcat Service configuration for running sites

2011-02-02 Thread Conway Liu
Hi,   Thanks to all who answered my previous post regarding running Tomcat with IIS7.   I am still quite confused about the whole thing, so I think I should try to forget about IIS for the time being, and concentrate first on how to get Tomcat service to serve a java website sitting physically ou

Re: It makes problem when we use JSTL with 1.3 class to build on Oracle JDK6.

2011-02-02 Thread Donggyu A. Lee
So sorry to everyone. I missed something about that. Oracle JDK6 compiler to support 1.3 class seems to be perfect. Very very sorry. Happy New Lunner Year. I'm very stupid. -- - To unsubscribe, e-mail: users-unsubscr...@tomcat

Re: Missing something with custom tags.

2011-02-02 Thread Bill Davidson
On 2/2/2011 2:33 PM, Mark Thomas wrote: >Please don't. This is a community that discusses issues *on the mailing >list* so everyone can benefit from reading the archives. Yep. Besides, someone already gave the correct answer, though it seems like a subtle and odd error. Now if I could just find

Re: Trouble with connection timeout settings

2011-02-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 laredotornado, On 2/2/2011 11:23 AM, laredotornado wrote: > You mean set timeouts at the database level? I would do it at the query level. The JDBC API has overloaded methods for Statement.executeQuery and friends that all take timeouts. It's possib

Re: Get the following error: NoClassDefFoundError: org/apache/log4j/Logger

2011-02-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/2/2011 8:44 AM, Caldarale, Charles R wrote: >> From: henry human [mailto:henry_hu...@yahoo.de] >> Subject: Get the following error: NoClassDefFoundError: >> org/apache/log4j/Logger > >> I get the following error when I try to call a sma

Re: Optimize CPU Hogging Tomcat 6

2011-02-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jan, On 2/2/2011 8:21 AM, jan gestre wrote: > I already made those changes similar to what is mentioned here --> > http://spiralbound.net/blog/2008/03/17/rhel-system-configuration-changes-for-oracle-10g, > it appears that the changes improved the perf

Re: Unregistering context mbean twice

2011-02-02 Thread Konstantin Kolinko
2011/2/3 : > Sorry. I forgot give the exact version. It happens on both 7.0.4 and 7.0.6. > I cannot say about 7.0.6, but with the current sources I do not observe any problems. You may try to build a version by your own, or wait for 7.0.7 -- I think it will be tagged & built soon. > Hope some

RE: Is it possible for a web application to populate the global JNDI namespace?

2011-02-02 Thread Jason Pringle
> -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Wednesday, February 02, 2011 1:59 PM > To: Tomcat Users List > Subject: Re: Is it possible for a web application to populate the > global JNDI namespace? > > On 02/02/2011 20:47, Jason Pringle wrote: > > > > Can a w

Re: OutOfMemory issue

2011-02-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Aparna, On 2/2/2011 2:41 AM, Aparna1 V wrote: > JSP buffer over flow I don't know of any JSP buffers that can overflow, unless you are using some kind of try/catch tag library that needs to buffer the entire (huge) content that you are generating. I

Re: Missing something with custom tags.

2011-02-02 Thread Mark Thomas
On 02/02/2011 22:25, Martin Gainty wrote: > > need to see the tld declaration for your tags There is none. It is implicit. You need to read the JSP spec. > and the Java class declared for the tag It is a tag file - there is none. Again, you need to read the JSP spec. > pls ping me offline Ple

RE: Missing something with custom tags.

2011-02-02 Thread Martin Gainty
need to see the tld declaration for your tags and the Java class declared for the tag pls ping me offline Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorg

Re: Missing something with custom tags.

2011-02-02 Thread Bill Davidson
On 2/2/2011 2:17 PM, Konstantin Kolinko wrote: >I think you are bumping into JavaBeans capitalization rules. Rename >your attribute to be "xname" or "xxName". That worked! Thanks! I think that's a pretty weird thing. - To unsu

Re: Missing something with custom tags.

2011-02-02 Thread Bill Davidson
On 2/2/2011 2:17 PM, Konstantin Kolinko wrote: >I think you are bumping into JavaBeans capitalization rules. Rename >your attribute to be "xname" or "xxName". That worked. Weird. - To unsubscribe, e-mail: users-unsubscr...@tom

Re: Missing something with custom tags.

2011-02-02 Thread Konstantin Kolinko
2011/2/3 Bill Davidson : > Unable to find setter method for attribute: xName error. I think you are bumping into JavaBeans capitalization rules. Rename your attribute to be "xname" or "xxName". IIRC, setXName( ) means that the property name is "XName", not "xName". More details should be in the

Missing something with custom tags.

2011-02-02 Thread Bill Davidson
version "1.6.0_20", Java(TM) SE Runtime Environment (build 1.6.0_20-b02), Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode) Tomcat: 6.0.26 I'm having trouble with a custom tag and I've tried to reduce the problem to its most basic form: /WEB-INF/tags/example.tag: <%@tag %> <%@a

Re: Is it possible for a web application to populate the global JNDI namespace?

2011-02-02 Thread Mark Thomas
On 02/02/2011 20:47, Jason Pringle wrote: > > Can a web application populate the global JNDI namespace? No. > I am looking for a possible workaround to create shared connection pools > without modifying server.xml (ie placing entries in .../>). JMX is probably your best bet but I don't think

RE: Unregistering context mbean twice

2011-02-02 Thread Ming_Chang
Sorry. I forgot give the exact version. It happens on both 7.0.4 and 7.0.6. Ming -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Wednesday, February 02, 2011 1:13 PM To: Tomcat Users List Subject: Re: Unregistering context mbean twice 2011/2/3 : > I ho

Re: Unregistering context mbean twice

2011-02-02 Thread Konstantin Kolinko
2011/2/3 : > I hope someone can help me with the problem I have with undeploying a webapp. > We recently upgrade from 5.5 to 7 What exact version of Tomcat 7 (x.y.z)? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.o

Unregistering context mbean twice

2011-02-02 Thread Ming_Chang
Hi, There, I hope someone can help me with the problem I have with undeploying a webapp. We recently upgrade from 5.5 to 7 and whenever I undeploy our web app, I will get an exception like this: Feb 1, 2011 4:27:13 PM org.apache.catalina.util.LifecycleMBeanBase unregister WARNING: Failed to unr

Is it possible for a web application to populate the global JNDI namespace?

2011-02-02 Thread Jason Pringle
Can a web application populate the global JNDI namespace? I am looking for a possible workaround to create shared connection pools without modifying server.xml (ie placing entries in ). If a web application could populate into the global namespace, then I could devise a WAR which defined the d

Re: apache question

2011-02-02 Thread Dave Evans
Probably yes. On Wed, Feb 2, 2011 at 11:24 AM, Lava Saleem wrote: > so that means I already have apache httpd but I need to install mod_jk > connector correct? > > > On Wed, Feb 2, 2011 at 1:19 PM, Dave Evans wrote: > >> In centos the file /etc/httpd/conf/httpd.conf should be the >> configuratio

Re: apache question

2011-02-02 Thread Lava Saleem
so that means I already have apache httpd but I need to install mod_jk connector correct? On Wed, Feb 2, 2011 at 1:19 PM, Dave Evans wrote: > In centos the file /etc/httpd/conf/httpd.conf should be the > configuration for the Apache HTTP Server. For information on that > configuration please wr

Re: apache question

2011-02-02 Thread Dave Evans
In centos the file /etc/httpd/conf/httpd.conf should be the configuration for the Apache HTTP Server. For information on that configuration please write to the apache users list. One quick tip, assuming you have no virtual hosts set up, the DocumentRoot directive will tell you where to put your htm

Re: apache question

2011-02-02 Thread Lava Saleem
Hi everyone, I'm sorry for not providing the system informations earlier, the linux I'm using is centos 2.6.18 and the apache tomcat is 7.0.4 java is 1.6.0_22 I know the difference between apache tomcat and apache httpd, I need to configure apache httpd to server as a proxy, I just want to know

Re: apache question

2011-02-02 Thread André Warnier
Lava Saleem wrote: I'm using linux box that has already apache tomcat I can see there is httpd in /etc but I don't see apache beside apache tomcat in the /opt I also need to upload my html file in apache or like you said coyote where and how to do that ? Lava, you have not told us which ver

Re: apache question

2011-02-02 Thread Dave Evans
The answers to these questions may help us help you: What linux distribution and version are you using? If you point your browser at http://localhost/ what happens? If you "ls /etc/init.d/ " what files do you see? Tomcat can be configured to serve html files. Some people prefer a dedicated http s

Re: apache question

2011-02-02 Thread Lava Saleem
I'm using linux box that has already apache tomcat I can see there is httpd in /etc but I don't see apache beside apache tomcat in the /opt I also need to upload my html file in apache or like you said coyote where and how to do that ? On Wed, Feb 2, 2011 at 7:40 AM, Ognjen Blagojevic < ognjen.d

RE: Cannot connect to tomcat 5.5.23 on RedHat Linux

2011-02-02 Thread Caldarale, Charles R
> From: Sanford Stein [mailto:sanford.st...@cybertools.biz] > Subject: Cannot connect to tomcat 5.5.23 on RedHat Linux > After updating to Red Hat's latest version of tomcat 5 Unfortunate that you're not using a real Tomcat from tomcat.apache.org. >   at gnu.java.net.PlainSocketImpl.connect(lib

Re: Cannot connect to tomcat 5.5.23 on RedHat Linux

2011-02-02 Thread Konstantin Kolinko
2011/2/2 Sanford Stein > > After updating to Red Hat's latest version of tomcat 5 What version (x.y.z) of Tomcat is that? >    at gnu.java.net.PlainSocketImpl.connect(libgcj.so.7rh) GNU's Java isn't usable. Throw it away. You may search the list archives for "libgcj" --

Re: Trouble with connection timeout settings

2011-02-02 Thread Mark Thomas
On 02/02/2011 16:23, laredotornado wrote: > > You mean set timeouts at the database level? Yes. > What if the Tomcat thread is > hung for some other reason? Then you have an application bug to fix. > Is there any setting that will cause Tomcat to > kill a thread if that thread is "stuck"? - D

Re: CLOSE_WAIT

2011-02-02 Thread André Warnier
Peter Crowther wrote: On 2 February 2011 10:24, Bw57899 wrote: Install an application in apache tomcat (6.0.29) in dev env on Solaris 10 with no issue. But after move to production, there are always about 50 ~ 100 CLOSE_WAIT on port 1521. The application need connect an Oracle database which

Re: Trouble with connection timeout settings

2011-02-02 Thread laredotornado
You mean set timeouts at the database level? What if the Tomcat thread is hung for some other reason? Is there any setting that will cause Tomcat to kill a thread if that thread is "stuck"? - Dave Mark Thomas wrote: > > On 02/02/2011 15:22, laredotornado wrote: >> >> Hi, >> >> We're using

Re: how to refresh connection pool before it gets completely busy

2011-02-02 Thread Konstantin Kolinko
2011/2/1 Rhonny David : > http://commons.apache.org/dbcp/mail-lists.html http://commons.apache.org/dbcp/configuration.html Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For addit

Re: CLOSE_WAIT

2011-02-02 Thread Peter Crowther
On 2 February 2011 10:24, Bw57899 wrote: > Install an application in apache tomcat (6.0.29) in dev env on Solaris 10 > with no issue. > > But after move to production, there are always about 50 ~ 100 CLOSE_WAIT on > port 1521. The application need connect an Oracle database which is on > another

Re: Trouble with connection timeout settings

2011-02-02 Thread Mark Thomas
On 02/02/2011 15:22, laredotornado wrote: > > Hi, > > We're using Tomcat 6.0.24. We would like Tomcat to kill stuck threads after > a certain period of time, but Tomcat doesn't appear to be doing this. > Specifically, when the database doesn't return results, the connections just > build up. H

Re: Tomcat 7.0.6 won't shutdown via SCM on Windows 2003 R2

2011-02-02 Thread Konstantin Kolinko
2011/2/1 Konstantin Kolinko : > See my comment in > https://issues.apache.org/jira/browse/DAEMON-195 > > -- I think reconfiguring the service will solve the issue. > Update: To resolve this Tomcat shutdown behaviour was changed to avoid calling System.exit(). This will be in 6.0.32, 7.0.7. Tomcat

Trouble with connection timeout settings

2011-02-02 Thread laredotornado
Hi, We're using Tomcat 6.0.24. We would like Tomcat to kill stuck threads after a certain period of time, but Tomcat doesn't appear to be doing this. Specifically, when the database doesn't return results, the connections just build up. Here are our settings in workers.properties worker.list

Re: apache question

2011-02-02 Thread jan gestre
On Wed, Feb 2, 2011 at 9:40 PM, Ognjen Blagojevic wrote: > Hi Lava, > > On 1.2.2011 19:35, Lava Saleem wrote: >> >> yeah I have read what you quote before but my question is that >> I need to set apache httpd  as a proxy and I'm not sure if it buildin >> within >> the apache tomcat and what about

Re: Optimize CPU Hogging Tomcat 6

2011-02-02 Thread Brett Delle Grazie
Hi, On 2 February 2011 13:21, jan gestre wrote: > Hi Olaf and Brett, > > I already made those changes similar to what is mentioned here --> > http://spiralbound.net/blog/2008/03/17/rhel-system-configuration-changes-for-oracle-10g, > it appears that the changes improved the performance, the syste

RE: Get the following error: NoClassDefFoundError: org/apache/log4j/Logger

2011-02-02 Thread Caldarale, Charles R
> From: henry human [mailto:henry_hu...@yahoo.de] > Subject: Get the following error: NoClassDefFoundError: > org/apache/log4j/Logger > I get the following error when I try to call a smal java > application(hello friends!) which i placed in a jar file. > the application has the log4j.jar in its

Re: apache question

2011-02-02 Thread Ognjen Blagojevic
Hi Lava, On 1.2.2011 19:35, Lava Saleem wrote: yeah I have read what you quote before but my question is that I need to set apache httpd as a proxy and I'm not sure if it buildin within the apache tomcat and what about the mod_jk do I need to download it ? Apache Tomcat comes packaged with HT

Re: how to refresh connection pool before it gets completely busy

2011-02-02 Thread Ognjen Blagojevic
Hi Rhonny, Can anyone help how we can achieve this , that connection pool refreshes before all connections get busy? You might want to check jdbc-pool, which sovles some of the problems with dbcp: http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html Regards, Ognjen

Re: Optimize CPU Hogging Tomcat 6

2011-02-02 Thread jan gestre
On Wed, Feb 2, 2011 at 5:19 PM, Brett Delle Grazie wrote: > Hi Jan, > > On 2 February 2011 06:41, Olaf Tomczak wrote: >> Jan, >> >> The limit of open files on linux/unix systems for normal users may be >> quite low by default (for example 1024). From my experience, this may >> lead to "Too many o

RE: cannot access welcome page on Windows Server 2003 R2 SP2

2011-02-02 Thread Philip Anil-QBW348
I do understand that ' A "default web page" does not "camp on" any particular port.'. I was describing what I saw in the IIS inetmgr GUI. It shows default web page...port 80 I selected it and chose Delete. -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Tues

CLOSE_WAIT

2011-02-02 Thread Bw57899
Install an application in apache tomcat (6.0.29) in dev env on Solaris 10 with no issue. But after move to production, there are always about 50 ~ 100 CLOSE_WAIT on port 1521. The application need connect an Oracle database which is on another server. So what can I do to check the problem? Re

Get the following error: NoClassDefFoundError: org/apache/log4j/Logger

2011-02-02 Thread henry human
Hi I get the following error when I try to call a smal java application(hello friends!) which i placed in a jar file. the application has the log4j.jar in its lib directory (and classpath) and calls the log4j.logger like this: private static final Logger LOGGER = Logger.getLogger(Hello.class); It

Re: Optimize CPU Hogging Tomcat 6

2011-02-02 Thread Brett Delle Grazie
Hi Jan, On 2 February 2011 06:41, Olaf Tomczak wrote: > Jan, > > The limit of open files on linux/unix systems for normal users may be > quite low by default (for example 1024). From my experience, this may > lead to "Too many open files" errors during high load even if your > application is work

Re: How to serve .net and java websites on Windows 2008 with IIS7 and Tomcat

2011-02-02 Thread Rainer Frey
On Wednesday 02 February 2011 01:51:51 Jordan Michaels wrote: Please don't top post. > On 02/01/2011 04:38 PM, Conway Liu wrote: > > It seems like the Tomcat service only serves applications from one > > location ($CATALINA_HOME) No. you can have * webapps with a document path outside $CATALINA_