Surprising auto-(un)deploy behavior

2009-03-30 Thread Rainer Frey (Inxmail GmbH)
Hi, I just noticed a surprising behavior change between Tomcat 5.0 and Tomcat 6.0.18 regarding auto-undeployment of war files. I use both versions in default configuration, which means autoDeploy and unpackWARs are both true. (I don't think this matters much, but I tried this with Mac OS X and

Re: SEVERE: Null component Catalina:type=DataSource

2009-03-30 Thread Alexandr Khlystov
I was wrong, deployment method matters but it is not the root cause, root cause is the Sun Application Server *.jar: appserv-rt.jar; if it is included into mywebapp/WEB-INF/lib directory cause the JNDI to fail, I don't why yet. But problem definetely in this *.jar. We use it because customer insta

WebApp configuration best practice?

2009-03-30 Thread Josh McDonald
Hi guys, First, apologies if this is off-topic for the Tomcat list! If so, where should I ask it? My question is simple (I hope). What's the best practice when: 1) you're distributing a .war file 2) the app needs some simple configuration information 3) it will likely be deployed onto shared host

RE: org.apache.catalina.connector.Response causing OOM error

2009-03-30 Thread Caldarale, Charles R
> From: chessknightt [mailto:chessknig...@yahoo.com] > Subject: org.apache.catalina.connector.Response causing OOM error > running JDK 1.6.0_07 on Tomcat 5.5.26 on a RedHat kernel 2.6 Thanks for providing the environment info. One more item: 32- or 64-bit JVM? > Is there a known Tomcat bug caus

org.apache.catalina.connector.Response causing OOM error

2009-03-30 Thread chessknightt
Hi All, My very 1st posting to the group. We have a web application that is running JDK 1.6.0_07 on Tomcat 5.5.26 on a RedHat kernel 2.6 and we see time and again OutOfMemory errors. When analyzing the resulted .hprof file we see the following class hierarchy a major reason for the OutOfMemory:

Re: Hosting Recommendations.

2009-03-30 Thread Ben Stringer
Hi Wesley, I've used Rimuhosting for a few years now. Their customer service is good, and they have Java devs on staff, so they know what they are doing. I've had one issue in that time (I rebooted my host and it didn't come back up) and they had the issue fixed within a few hours. I would recom

Re: Replicated context is failing...or not ?

2009-03-30 Thread Filip Hanik - Dev Lists
remove the 'docBase' attribute from context.xml Filip János Löbb wrote: Hi, 3 machines, - pathsrv1, raid2b, reptile - Macs with OSX 10.5.6. Apache 2.2.9 mod_jk 1.2.26 and Tomcat 6.0.18. Every machine has one Tomcat instance and they form a cluster. Pathsrv1 act as a reverse proxy, so the

Re: Replicated context is failing...or not ?

2009-03-30 Thread Filip Hanik - Dev Lists
János Löbb wrote: On Mar 29, 2009, at 8:58 PM, Caldarale, Charles R wrote: From: János Löbb [mailto:janos.l...@yale.edu] Subject: Replicated context is failing...or not ? Mar 29, 2009 11:59:47 AM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /usr/local/apache-tomc

Re: Hosting Recommendations.

2009-03-30 Thread Ken Bowen
Check out http://www.eapps.com. You can start with virtual hosting which looks/feels entirely like your own machine, and scale up to dedicated servers. I've always had quite good response from them to my questions. --Ken On Mar 30, 2009, at 4:09 PM, Wesley Acheson wrote: On Mon, Mar 30, 2009

Re: Hosting Recommendations.

2009-03-30 Thread Kerry Jacabson
Hi, I would recommend webappcabaret.com They also have a free trial.   From: Wesley Acheson To: Tomcat Users List Sent: Monday, March 30, 2009 12:41:13 PM Subject: Hosting Recommendations. Hi is there any hosting recommendations. I've found online that rimu

RE: mod_jk : recovery_options

2009-03-30 Thread Jorge Medina
I did not get any response to my questions, but from previous messages (posted by Rainer Jung) I believe that using the default values for "retry" and "recovery_options" may produce the unexpected result I was having. I changed the "recovery_options" on my AJP workers to value "27". So far I have

Re: Hosting Recommendations.

2009-03-30 Thread Wesley Acheson
On Mon, Mar 30, 2009 at 9:51 PM, Martin Gainty wrote: > depends on what they provide and what your business requirements are > > Shopping Carts are nice..FTP access > some of the more archaic sites have IIS only or Apache only..but if your'e > only doing static content..then either one will do >

Re: Slow servlet response under WinXP Pro

2009-03-30 Thread Tommy Pham
- Original Message > From: Tommy Pham > To: Tomcat Users List > Sent: Monday, March 30, 2009 12:23:54 PM > Subject: Re: Slow servlet response under WinXP Pro > > Hi Jon, > > > - Original Message > > From: "jo...@catholic-doc.org" > > To: users@tomcat.apache.org > > Sent

Hosting Recommendations.

2009-03-30 Thread Wesley Acheson
Hi is there any hosting recommendations. I've found online that rimuhost seemed to be recommended. Does anyone use that and what you think of it? Regards, Wesley Acheson

Re: Slow servlet response under WinXP Pro

2009-03-30 Thread Wesley Acheson
Can you not use these instructions to exclude the directories in question http://service1.symantec.com/SUPPORT/ent-gate.nsf/docid/2002072314000354?Open&docid=2003033115550554&nsf=ent-gate.nsf&view=docid Regards, Wes On Mon, Mar 30, 2009 at 9:23 PM, Tommy Pham wrote: > > Hi Jon, > > > - Or

Re: configuring tomcat with apache and eclipse.

2009-03-30 Thread Wesley Acheson
On Mon, Mar 30, 2009 at 9:16 PM, Gregor Schneider wrote: > > Maybe the he's too lazy to login every time? Who knows... > Thats pretty much it :) Seriously though when doing HTML work just making small incremental changes to the markup thats being served, It can be a real pain. But yes I'm lazy

Re: configuring tomcat with apache and eclipse.

2009-03-30 Thread Wesley Acheson
On Mon, Mar 30, 2009 at 8:52 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Gregor Schneider [mailto:rc4...@googlemail.com] > > Subject: Re: configuring tomcat with apache and eclipse. > > > > I'm understanding this scenario in such a way that there's a > > test/dev-enviro

Re: Slow servlet response under WinXP Pro

2009-03-30 Thread Tommy Pham
Hi Jon, - Original Message > From: "jo...@catholic-doc.org" > To: users@tomcat.apache.org > Sent: Monday, March 30, 2009 11:45:37 AM > Subject: Slow servlet response under WinXP Pro > > Hello! > > I am working on a servlet application.  It is a data entry application > that reads da

Re: configuring tomcat with apache and eclipse.

2009-03-30 Thread Gregor Schneider
Chuck, On Mon, Mar 30, 2009 at 8:52 PM, Caldarale, Charles R wrote: > > Perhaps, but then why would the OP be concerned about losing session > information when updating with Eclipse, if this were only for > test/development? > Maybe the he's too lazy to login every time? Who knows... >> So ca

RE: Replicated context is failing...or not ?

2009-03-30 Thread Martin Gainty
Have you tried the Tribes Cluster configuration without using NIOConnector ? System properties: org.apache.tomcat.util. net.NioSelectorShared If true, use a shared selector for servlet write/read. If not specified, the default value of true will be used. http://www.mbaworld.com/docs/config/

RE: configuring tomcat with apache and eclipse.

2009-03-30 Thread Caldarale, Charles R
> From: Gregor Schneider [mailto:rc4...@googlemail.com] > Subject: Re: configuring tomcat with apache and eclipse. > > I'm understanding this scenario in such a way that there's a > test/dev-environment that being a 1:1-copy of the > production-environment. Makes sense, IMHO. Perhaps, but then wh

Re: Slow servlet response under WinXP Pro

2009-03-30 Thread Gregor Schneider
Jon, On Mon, Mar 30, 2009 at 8:45 PM, wrote: > > There is no native JDBC driver for Navision, so I have to use the ODBC > version. > ODBC is usually already a show-stopper on Java > I think I may have found the problem, but I do not know how to fix it. All > of our systems (including the produ

Re: configuring tomcat with apache and eclipse.

2009-03-30 Thread Gregor Schneider
Chuck, actually Nirvana is a pretty good place but for serialized / de-serialized sessions ;) Anyway: On Mon, Mar 30, 2009 at 8:38 PM, Caldarale, Charles R wrote: > > Are you saying you run a production Tomcat under Eclipse?  That's insane. > I'm understanding this scenario in such a way that

Slow servlet response under WinXP Pro

2009-03-30 Thread JOman
Hello! I am working on a servlet application. It is a data entry application that reads data from a Navision database, and writes data to MySQL. Here is the setup: WinXP Pro with Service Pack 3 (dev. box) / Windows 2003 Server (prod. box) Apache 2.2.11 Tomcat 6.0.18 MySQL 5.1.30 MySQL Connect

Re: Tomcat service won't start

2009-03-30 Thread Gregor Schneider
Sergio, please do the following: - remove (rename) your catalina.out and try to start Tomcat with /etc/init.d/tomcat5 start (or whatever name your startup-script has) After that, the log-file should hopefully be a bit shorter. I'm a bit puzzled since your having quote /some/ errors in the previ

RE: configuring tomcat with apache and eclipse.

2009-03-30 Thread Caldarale, Charles R
> From: Wesley Acheson [mailto:wesley.ache...@gmail.com] > Subject: Re: configuring tomcat with apache and eclipse. > > Okay but as far as I know when you make any trivial change > in eclipse, It builds an entire WAR file and restarts its > tomcat instance Are you saying you run a production To

RE: configuring tomcat with apache and eclipse.

2009-03-30 Thread Caldarale, Charles R
> From: Gregor Schneider [mailto:rc4...@googlemail.com] > Subject: Re: configuring tomcat with apache and eclipse. > > otherwise serialization / de-serialization of > session-data might end up somewhere in Nirvana. But wait, nirvana is a good place - where we'd all like to end up. Perhaps you m

RE: Forwarding from one Context to another

2009-03-30 Thread behofmann
Chuck, I made some modifications to my relative paths and everything is now working. Thanks again for your help. Brandon Caldarale, Charles R wrote: > >> From: behofmann [mailto:behofm...@gmail.com] >> Subject: Re: Forwarding from one Context to another >> >> The complete path should be /de

Re: Tomcat service won't start

2009-03-30 Thread Sergio Belkin
2009/3/30 Gregor Schneider : > Since you're not using an original Tomcat-download but a pre-packaged version: > > - Did you do an "emerge" recently? No, I didn't. It's weird :( > > - What gives "netstat -lnp"? Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address

RE: Replicated context is failing...or not ?

2009-03-30 Thread Caldarale, Charles R
> From: János Löbb [mailto:janos.l...@yale.edu] > Subject: Re: Replicated context is failing...or not ? > > I am looking into it, but for the first glance I see no other > contexts hanging around. It won't be another , it will be an error in an existing one, such as specifying a path or docBase

Re: configuring tomcat with apache and eclipse.

2009-03-30 Thread Gregor Schneider
Wes, On Mon, Mar 30, 2009 at 7:23 PM, Wesley Acheson wrote: > > It was because of the SSL stuff I haven't learnt how to set up SSL with > tomcat. > I'm curious: What's the benefit having Tomcat run in SSL-mode for Servlet / JDP-development? > Okay but as far as I know when you make any trivial

Re: configuring tomcat with apache and eclipse.

2009-03-30 Thread Wesley Acheson
Hi Yassine, Gregor, mailing list readers. It was because of the SSL stuff I haven't learnt how to set up SSL with tomcat. Okay but as far as I know when you make any trivial change in eclipse, It builds an entire WAR file and restarts its tomcat instance which means lost sessions really annoying

Re: configuring tomcat with apache and eclipse.

2009-03-30 Thread Gregor Schneider
On Mon, Mar 30, 2009 at 6:35 PM, Yassine wrote: > if i were you i would use only eclipse + tomcat for my development and > when ever i want to > test some Apache related configurations i will then do the > configurations manually. > > afaik there is nothing (plug in) that takes care of Apache web

Re: Tomcat service won't start

2009-03-30 Thread Gregor Schneider
Since you're not using an original Tomcat-download but a pre-packaged version: - Did you do an "emerge" recently? - What gives "netstat -lnp"? - What's the Centos-package-maintainer's oppinion on that? Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 7

Re: configuring tomcat with apache and eclipse.

2009-03-30 Thread Yassine
I'm not sure why you would want to have Apache configured in eclipse? if i were you i would use only eclipse + tomcat for my development and when ever i want to test some Apache related configurations i will then do the configurations manually. afaik there is nothing (plug in) that takes care of

Re: configuring tomcat with apache and eclipse.

2009-03-30 Thread Wesley Acheson
Can anyone tell me if they know of another list where I can ask my questions. I thought tomcat would be most appropiate as its 2/4 tomcat 1/4 apache and 1/4 eclipse. On Fri, Mar 27, 2009 at 11:54 PM, Wesley Acheson wrote: > Hi all, > > I wish to launch tomcat from eclipse either using the conf

Re: virtual hosts

2009-03-30 Thread André Warnier
Bart Ophelders wrote: Sorry if I was somewhat unclear. What I would like to accomplish is the following: If someone types start.test.example.com it should refer to a certain page. If someone types hello.test.example.com it should refer to the same page. I would like the user to be able to type

Re: Replicated context is failing...or not ?

2009-03-30 Thread János Löbb
On Mar 29, 2009, at 8:58 PM, Caldarale, Charles R wrote: From: János Löbb [mailto:janos.l...@yale.edu] Subject: Replicated context is failing...or not ? Mar 29, 2009 11:59:47 AM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /usr/local/apache-tomcat-6.0.18/webapps/R

Re: How2 Disable PUT response in OPTIONS method

2009-03-30 Thread Mark Thomas
joeweder wrote: > I have PUTs disabled but they are still being published as supported in > response to the OPTIONS method. Which is correct as per the HTTP spec. > Allow: GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS > Server: Apache-Coyote/1.1 > > Actually doing a PUT returns a 403. But "in-hou

Re: read variables from server.xml / runtime info of Connector thread pool status?

2009-03-30 Thread Mark Thomas
Dan Armbrust wrote: > Is there a way to get the values of variables from the server.xml file > from a webapp running within tomcat? JMX. > Specifically, my webapp would like to know what the current value of > the Connector acceptCount. > > Even more specifically, my webapp is serving pages, and

How2 Disable PUT response in OPTIONS method

2009-03-30 Thread joeweder
I have PUTs disabled but they are still being published as supported in response to the OPTIONS method. Allow: GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS Server: Apache-Coyote/1.1 Actually doing a PUT returns a 403. But "in-house" security scanner just looks at response from the OPTIONS metho

read variables from server.xml / runtime info of Connector thread pool status?

2009-03-30 Thread Dan Armbrust
Is there a way to get the values of variables from the server.xml file from a webapp running within tomcat? Specifically, my webapp would like to know what the current value of the Connector acceptCount. Even more specifically, my webapp is serving pages, and answering SOAP requests. I need to p

RE: Error JSP don`t support on tomcat 6.0

2009-03-30 Thread aquesi
Hello! I try the hello.jsp in /webapps/geoserver and work! But in /webapps/geoserver/data/www dont't work. Also I add this sentences in catalina.policy and It don't work. // The permissions granted to Geoserver grant codebase "file:${catalina.home}/webapps/geoserver/-" { permissi

Re: A problem with tomcat 6.0.18

2009-03-30 Thread Paulo Vitor
if I change the property end from Integer to Long, than works. On Mon, Mar 30, 2009 at 10:21 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Paulo Vitor [mailto:foxpv...@gmail.com] > > Subject: Re: A problem with tomcat 6.0.18 > > > > in other app I get one error little di

RE: A problem with tomcat 6.0.18

2009-03-30 Thread Caldarale, Charles R
> From: Paulo Vitor [mailto:foxpv...@gmail.com] > Subject: Re: A problem with tomcat 6.0.18 > > in other app I get one error little different bu referent the same > class. > > java.lang.ClassCastException: java.lang.Integer cannot be cast to > java.lang.Long > org.apache.el.lang.ELSupport.c

Re: A problem with tomcat 6.0.18

2009-03-30 Thread Paulo Vitor
Hi, in other app I get one error little different bu referent the same class. java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long org.apache.el.lang.ELSupport.compare(ELSupport.java:81) org.apache.el.parser.AstGreaterThan.getValue(AstGreaterThan.java:45

RE: Forwarding from one Context to another

2009-03-30 Thread Caldarale, Charles R
> From: behofmann [mailto:behofm...@gmail.com] > Subject: Re: Forwarding from one Context to another > > The complete path should be /dev/jsp/index.jsp. Correct? I believe so. > Unfortunately, I get a blank page in my browser and the page properties > show /filter/jsp/index.jsp which is the ori

RE: Help setting jforum and Apache->Tomcat connector

2009-03-30 Thread Caldarale, Charles R
> From: Chandler_Kiril [mailto:k.to...@abv.bg] > Subject: Help setting jforum and Apache->Tomcat connector > > I have a problem while I am trying to run jforum and connect apache- > tomcat with mod_jk connector. Unless you really need httpd for something useful (just serving static content isn't

Re: virtual hosts

2009-03-30 Thread Yassine
so you mean in the same machine you will be hosting different domains test1.example.com test2.example.com test3.example.com ...?? and you want to avoid having a conflict when someone is accessing other domains example test1, test2, ... ? actually if this is your case there is no problem at all,

RE: virtual hosts

2009-03-30 Thread Bart Ophelders
I 'm trying to set up an OpenID provider for testing purposes. Since we only have one machine, there are more applications running, and maybe there could be some conflicts. I'm not sure. -Bart > Date: Mon, 30 Mar 2009 14:07:38 +0200 > Subject: Re: virtual hosts > From: elas...@users.sourceforge

Re: SEVERE: Null component Catalina:type=DataSource

2009-03-30 Thread Alexandr Khlystov
Hi, Yassine. As you can see at http://ovservice.org/tomcatConf.PNG - There are no any folders in /conf/ directory. I've followed your instructions, and this error doesn't appear. The difference was in the way of deploying, before the *.war deployment, I just copied the /war/ content via file ma

Re: virtual hosts

2009-03-30 Thread Yassine
Hi Bart, I'm not aware of any other way to do it. I only wanted to know whats wrong with setting that sub domain (test.example.com) as the default host? are we missing some information that needs to be taken care of? Yassine On Mon, Mar 30, 2009 at 1:59 PM, Bart Ophelders wrote: > > I don't

RE: virtual hosts

2009-03-30 Thread Bart Ophelders
I don't like to put it as default, but if there is no other way.. Thanks! -Bart > Date: Mon, 30 Mar 2009 12:39:42 +0100 > From: p...@pidster.com > To: users@tomcat.apache.org > Subject: Re: virtual hosts > > Bart Ophelders wrote: > > Thanks for the quick response! > > > > Isn't it possible to

RE: virtual hosts

2009-03-30 Thread Bart Ophelders
Sorry if I was somewhat unclear. What I would like to accomplish is the following: If someone types start.test.example.com it should refer to a certain page. If someone types hello.test.example.com it should refer to the same page. I would like the user to be able to type anything before the tes

Re: virtual hosts

2009-03-30 Thread Pid
Bart Ophelders wrote: > Thanks for the quick response! > > Isn't it possible to do something like this: > > Not quite like that. Will result in all traffic that arrives at IPs specified in your Connectors, but that does not conform to another Host/Alias definition being delivered to t

RE: virtual hosts

2009-03-30 Thread Bart Ophelders
Thanks for the quick response! Isn't it possible to do something like this: -Bart Ophelders > Date: Mon, 30 Mar 2009 12:36:09 +0200 > Subject: Re: virtual hosts > From: elas...@users.sourceforge.net > To: users@tomcat.apache.org > > Hi, > > i hope i undertstood what you mean if so, look for

Re: virtual hosts

2009-03-30 Thread Pid
Bart Ophelders wrote: > Hi, > > I would like to know if it is possible to let tomcat redirect ANY url ending > with for example test.example.com to a certain webapp. It's not clear what you mean. URLs normally *start* with a domain, rather than end with it. If you mean can I assign "*.domain.c

Re: virtual hosts

2009-03-30 Thread Yassine
Hi, i hope i undertstood what you mean if so, look for the loadbalancer application shipped with tomcat which does something similar. On Mon, Mar 30, 2009 at 12:29 PM, Bart Ophelders wrote: > > Hi, > > I would like to know if it is possible to let tomcat redirect ANY url ending > with for exa

virtual hosts

2009-03-30 Thread Bart Ophelders
Hi, I would like to know if it is possible to let tomcat redirect ANY url ending with for example test.example.com to a certain webapp. Thanks in advance! -Bart Ophelders

Re: Help setting jforum and Apache->Tomcat connector

2009-03-30 Thread Yassine
Hi Chandler, try this jk.conf instead you was missing to jkMount your application and you need to create a new worker that handles request for "/jforum" call it jfworker and use it in the jkMount line as shown here: JkWorkersFile /etc/tomcat5/base/workers.properties JkLogFile /v

Re: SEVERE: Null component Catalina:type=DataSource

2009-03-30 Thread Yassine
Hi Alexandr, this may not solve your problem but could help to identify it, please do the following: - shutdown tomcat - remove any previously created "youApplicationName".xml file in the $CATALINA_HOME/conf/Catalina/localhost/"youApplicationName".xml it seems to me that when tomcat starts it doe