Difference between running bootstrap.jar and catalina.bat

2009-05-13 Thread Jan Horký
Hi, I have problem with running my app. When I run Tomcat 5.5 | 6.0 by java -jar bootstrap.jar start It works fine, but when I try run it by catalina.bat or install as servise I got some class found problems. Shortly... Some features of application is based on jaxb1 and I need there web servise w

Re: General errors in virtual host setup

2009-05-13 Thread Dave Filchak
Dave Filchak wrote: Dave Filchak wrote: I am going to step away from this for about an hour to get a break and something to eat. Just a bit before I do: tomcat was installed as a service and when I restart the service, I get these errors. However, when I go to /opt/tomcat/bin/shutdown.sh and

Re: General errors in virtual host setup

2009-05-13 Thread Dave Filchak
Dave Filchak wrote: I am going to step away from this for about an hour to get a break and something to eat. Just a bit before I do: tomcat was installed as a service and when I restart the service, I get these errors. However, when I go to /opt/tomcat/bin/shutdown.sh and then startup.sh, I d

Re: Connector for diameter protocol

2009-05-13 Thread Bill Barker
"kramasundar" wrote in message news:23519306.p...@talk.nabble.com... > > Hi, > > I am trying to port our existing plain old java diameter ( > http://en.wikipedia.org/wiki/Diameter_(protocol) Diameter wiki page ) > server > on top of tomcat. > > I am new to J2EE/Tomcat. > > Since Diameter is qui

Re: General errors in virtual host setup

2009-05-13 Thread Dave Filchak
I am going to step away from this for about an hour to get a break and something to eat. Just a bit before I do: tomcat was installed as a service and when I restart the service, I get these errors. However, when I go to /opt/tomcat/bin/shutdown.sh and then startup.sh, I do not appear to get

RE: Page not completing loading - ideas?

2009-05-13 Thread Martin Gainty
Andre can you display contents of $CATALINA_HOME/conf/web.xml localXsltFile globalXsltFile http://tomcat.apache.org/tomcat-5.5-doc/default-servlet.html Bon Chance, Martin Gainty __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/

Re: General errors in virtual host setup

2009-05-13 Thread Dave Filchak
Dave Filchak wrote: André Warnier wrote: Dave Filchak wrote: When I ran the url and said that it timed out ... what it actually eventually popped up was: Bad Gateway The proxy server received an invalid response from an upstream server. Maybe this gives us a hint? To me, it just makes it

RE: Page not completing loading - ideas?

2009-05-13 Thread Caldarale, Charles R
> From: Andre-John Mas [mailto:andrejohn@gmail.com] > Subject: Page not completing loading - ideas? > > Does anyone have any ideas of how to go about analysing the issue? I'd start with a Wireshark capture/trace on the client workstation to see exactly what's going on over the network. If y

RE: General errors in virtual host setup

2009-05-13 Thread Caldarale, Charles R
> From: Dave Filchak [mailto:sub...@zuka.net] > Subject: Re: General errors in virtual host setup > > No chance that these missing ports are caused by the firewall? Not likely; they should still show up in netstat. > These are all internal ... yes? No - only the shutdown port is internal (127.0

RE: General errors in virtual host setup

2009-05-13 Thread Caldarale, Charles R
> From: Dave Filchak [mailto:sub...@zuka.net] > Subject: Re: General errors in virtual host setup > > Well the exodus app does use a database but the connection stuff > is in an environment.xml file. Then exodus must be managing its own connections. You likely do not need a element for that w

RE: General errors in virtual host setup

2009-05-13 Thread Caldarale, Charles R
> From: Dave Filchak [mailto:sub...@zuka.net] > Subject: Re: General errors in virtual host setup > > SEVERE: Catalina.start > LifecycleException: Protocol handler initialization failed: > java.net.BindException: Address already in use:8080 This looks like you already have a Tomcat instance runn

Re: General errors in virtual host setup

2009-05-13 Thread Dave Filchak
Caldarale, Charles R wrote: From: Dave Filchak [mailto:sub...@zuka.net] Subject: Re: General errors in virtual host setup OK .. I have moved it into our web directory at /web/exodus.zuka.net/docs/ROOT/ And what did you set the exodus.zuka.net appBase to? It should be "/web/exodus.zuka.

RE: General errors in virtual host setup

2009-05-13 Thread Caldarale, Charles R
> From: Dave Filchak [mailto:sub...@zuka.net] > Subject: Re: General errors in virtual host setup > > OK .. I have moved it into our web directory at > /web/exodus.zuka.net/docs/ROOT/ And what did you set the exodus.zuka.net appBase to? It should be "/web/exodus.zuka.net/docs". > Humm ... I h

Re: General errors in virtual host setup

2009-05-13 Thread Dave Filchak
André Warnier wrote: Dave Filchak wrote: When I ran the url and said that it timed out ... what it actually eventually popped up was: Bad Gateway The proxy server received an invalid response from an upstream server. Maybe this gives us a hint? To me, it just makes it even more confusing.

Re: Tomcat not closing threads

2009-05-13 Thread rad muthu
Chetan, We had similar issue with Sun solaris and weblogic. My system admin found out there is a socket read errors are going on . He used snoop command in solaris. After tuning the TCP parameters the issue got resolved. You might also need to something like that. Thanks Krish On Wed, May 1

Re: General errors in virtual host setup

2009-05-13 Thread Dave Filchak
Caldarale, Charles R wrote: O.k., then leave the extra element there. However, redefine its appBase to be somewhere else; it doesn't have to be under the Tomcat directory tree, and it *must not* be under any other appBase. 2) Do you want the exodus webapp to be the default webapp for

Re: General errors in virtual host setup

2009-05-13 Thread Dave Filchak
André Warnier wrote: Dave Filchak wrote: When I ran the url and said that it timed out ... what it actually eventually popped up was: Bad Gateway The proxy server received an invalid response from an upstream server. Maybe this gives us a hint? To me, it just makes it even more confusing.

Page not completing loading - ideas?

2009-05-13 Thread Andre-John Mas
Hi, We recently encountered an issue on one of our integration machines, where a fews pages will not finish loading (actually it will, but only after around 4 minutes), and this is not even a large page. The same tomcat and web application work fine on the local development workstation an

RE: General errors in virtual host setup

2009-05-13 Thread Caldarale, Charles R
> From: Dave Filchak [mailto:sub...@zuka.net] > Subject: Re: General errors in virtual host setup > > > It's really, really bad form to write into the webapps directory; > > you need to move the logging area to somewhere else. > > Can I simply change the path? I would expect so. > > 1) Do you ex

Re: General errors in virtual host setup

2009-05-13 Thread Dave Filchak
Indeed, strange. There is also port 8005 missing, which should be the Tomcat shutdown connector. Where is it ? I see it here: Sorry ... ignore this comment. At one point in the past we had changed this port as part of an attempt at better security. I just did not read close enough t

Re: Preventing OutOfMemoryError: Java heap space

2009-05-13 Thread Kees Jan Koster
Dear Todd, I'm not sure I can use session counting, as my session size is not consistent. I could try to estimate the size of each session, and keep a global counter, but that seems like a lot of work. JMX offers quite a bit of insight in what your GC is doing. You could implement throttling

Re: General errors in virtual host setup

2009-05-13 Thread André Warnier
Dave Filchak wrote: When I ran the url and said that it timed out ... what it actually eventually popped up was: Bad Gateway The proxy server received an invalid response from an upstream server. Maybe this gives us a hint? To me, it just makes it even more confusing. ;-) Please confirm, t

Re: General errors in virtual host setup

2009-05-13 Thread André Warnier
Dave Filchak wrote: André Warnier wrote: Dave Filchak wrote: netstat -an | grep LISTEN tcp0 0 66.207.212.58:800.0.0.0:* LISTEN Apache, listening on just one IP address ? tcp0 0 :::8009 :::* LISTEN Ok, that seems to be the f

Re: General errors in virtual host setup

2009-05-13 Thread Dave Filchak
André Warnier wrote: Dave Filchak wrote: netstat -an | grep LISTEN tcp0 0 66.207.212.58:800.0.0.0:* LISTEN Apache, listening on just one IP address ? tcp0 0 :::8009 :::* LISTEN Ok, that seems to be the first AJP connector t

Re: General errors in virtual host setup

2009-05-13 Thread André Warnier
By the way, the missing 8005 listening port probably explains this previous exception : May 13, 2009 3:02:39 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) I beli

Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-13 Thread Pantvaidya, Vishwajit
My setup is tomcat 5.5.17 + mod_jk 1.2.15 + httpd 2.2.2. I am using AJP1.3. Every 2-3 days with no major load, tomcat throws the error: "SEVERE: All threads (200) are currently busy, waiting..." I have been monitoring my tomcat TP-Processor thread behavior over extended time intervals and observ

Re: General errors in virtual host setup

2009-05-13 Thread Dave Filchak
When I ran the url and said that it timed out ... what it actually eventually popped up was: Bad Gateway The proxy server received an invalid response from an upstream server. Maybe this gives us a hint? Dave - To unsubscrib

Re: General errors in virtual host setup

2009-05-13 Thread André Warnier
Dave Filchak wrote: netstat -an | grep LISTEN tcp0 0 66.207.212.58:800.0.0.0:* LISTEN Apache, listening on just one IP address ? tcp0 0 :::8009 :::* LISTEN Ok, that seems to be the first AJP connector tcp0 0

Re: General errors in virtual host setup

2009-05-13 Thread Dave Filchak
Caldarale, Charles R wrote: From: Dave Filchak [mailto:sub...@zuka.net] Subject: General errors in virtual host setup This reflected the paths in the new server. It's generally bad form for a webapp to know where it's deployed, indicating some degree of laziness or ignorance on the part

Re: General errors in virtual host setup

2009-05-13 Thread Dave Filchak
André Warnier wrote: Dave Filchak wrote: André Warnier wrote: Something doesn't square : this : Dave Filchak wrote: Ok, so we assume your tomcat's CATALINA_HOME and CATALINA_BASE are both /usr/opt/tomcat, and below that you have directories like - bin - conf - webapps - logs right ? Cor

RE: General errors in virtual host setup

2009-05-13 Thread Caldarale, Charles R
> From: Dave Filchak [mailto:sub...@zuka.net] > Subject: General errors in virtual host setup > > This reflected the paths in the new server. It's generally bad form for a webapp to know where it's deployed, indicating some degree of laziness or ignorance on the part of the webapp developer. H

Re: General errors in virtual host setup

2009-05-13 Thread André Warnier
Dave Filchak wrote: André Warnier wrote: Something doesn't square : this : Dave Filchak wrote: Ok, so we assume your tomcat's CATALINA_HOME and CATALINA_BASE are both /usr/opt/tomcat, and below that you have directories like - bin - conf - webapps - logs right ? Correct. and this :

Re: General errors in virtual host setup

2009-05-13 Thread Dave Filchak
André Warnier wrote: Something doesn't square : this : Dave Filchak wrote: Ok, so we assume your tomcat's CATALINA_HOME and CATALINA_BASE are both /usr/opt/tomcat, and below that you have directories like - bin - conf - webapps - logs right ? Correct. and this : Starting Razuna Tomc

Re: General errors in virtual host setup

2009-05-13 Thread André Warnier
Something doesn't square : this : Dave Filchak wrote: Ok, so we assume your tomcat's CATALINA_HOME and CATALINA_BASE are both /usr/opt/tomcat, and below that you have directories like - bin - conf - webapps - logs right ? Correct. and this : Starting Razuna Tomcat: Using CATALINA_BAS

Re: General errors in virtual host setup

2009-05-13 Thread Dave Filchak
André Warnier wrote: Trying to provide some limited help peppered across your message.. First I created a war file of the site pages using java -cvf exodus.war * That was more likely "jar -cvf exodus.war *", right ? Errr ... yes correct. I then put the war file inside my webapps direct

Re: [OT] Performance with many small requests

2009-05-13 Thread Andre-John Mas
On 13-May-2009, at 09:16, David kerber wrote: Christopher Schultz wrote: ... Since a String object is immutable, one should always use a StringBuffer (preferably a StringBuilder, these days) when you are constructing strings in a piecemeal fashion, then convert to String when complete. Thi

Re: General errors in virtual host setup

2009-05-13 Thread André Warnier
Trying to provide some limited help peppered across your message.. Dave Filchak wrote: A few days ago, a number of you helped me get tomcat up and running with the example files shipped with the default install of tomcat. Just as a reminder, I am on CentOS 5.4/64 bit system using jdk1.6.1_13, a

General errors in virtual host setup

2009-05-13 Thread Dave Filchak
A few days ago, a number of you helped me get tomcat up and running with the example files shipped with the default install of tomcat. Just as a reminder, I am on CentOS 5.4/64 bit system using jdk1.6.1_13, apache tomcat 6.0.18. I was going through this exercise because I was given a tomcat ba

Different resources for different user roles

2009-05-13 Thread Claudio80
Hi All, I have a web application that communicate with a DB2 Database. There are multiple users that need to authenitcate them before using the application. Each user has just a role and the are 3 roles. I need to access to a DB2 database using those 3 different roles in order to limite the acc

Re: Tomcat not closing threads

2009-05-13 Thread Chetan Chheda
I guess I need to ask my question again. Im primarily an HP-UX administrator and recently inherited this web based application ... We are having some issues in accomodating additional user load/functionality. While a part of the team is looking at optimizing code, I am responsible for infrastru

RE: Preventing OutOfMemoryError: Java heap space

2009-05-13 Thread Peter Crowther
> From: André Warnier [mailto:a...@ice-sa.com] > Thanks, Chuck and Peter, for the clarifications on OOM. > I believe that unconsciously, with my "large object > reservation" theory, > I was vaguely remembering something I had read some time in the past. > So I searched Google for "java +parachute +

Re: tomcat close_wait state and proxy error when connecting to my web application

2009-05-13 Thread orahi001
Rainer Jung-3 wrote: > > On 12.05.2009 23:26, orahi001 wrote: >> Hi, >> >> I have apache web server running on one box as a proxy server >> tomcat running on another box. >> >> The apache server connects to application server (tomcat) via proxy >> passthru >> parameter. The server running tomc

Re: Preventing OutOfMemoryError: Java heap space

2009-05-13 Thread André Warnier
Thanks, Chuck and Peter, for the clarifications on OOM. I believe that unconsciously, with my "large object reservation" theory, I was vaguely remembering something I had read some time in the past. So I searched Google for "java +parachute +memory" and this is something I found : http://mail-

RE: Tomcat Cluster Deployment without WAR

2009-05-13 Thread Peter Crowther
> From: Alexander Diedler [mailto:adied...@tecracer.de] > WatchDir is F:\inetpub\wwwroot if there is something changed, > it should be deployed to all other cluster nodes. If you're on Windows, why not use the built-in file replication to replicate changes between the nodes rather than use Tom

Tomcat Cluster Deployment without WAR

2009-05-13 Thread Alexander Diedler
Hello, It is possible to make a Cluster Deployment without WAR Files? WatchDir is F:\inetpub\wwwroot if there is something changed, it should be deployed to all other cluster nodes. Mit freundlichen Grüßen tecRacer GmbH & Co. KG Alexander Diedler Softwareentwicklung und Netzwerksicherhe

RE: Form Based Authentication creates user session before it is authenticated?

2009-05-13 Thread Martin Gainty
http://www.cafesoft.com/products/cams/tomcat-security.html if you are asking how to overcome Man-in-the-middle fraudulent manipulation based on basic authentication? and or Man-in-the middle fraudulent manipulation based on Form-based authentication which uses j_username

Re: How to configure Tomcat 6.0 with JAAS?

2009-05-13 Thread David Hoffer
Thanks, if possible could you/someone send some examples of how to configure JAAS with JBoss? I have it working with Tomcat but need the minimum configuration to do the same for JBoss. Note, I have a servlet that at startup sets the JAAS configuration, i.e. Configuration.setConfiguration(configur

Re: [OT] Performance with many small requests

2009-05-13 Thread David kerber
Christopher Schultz wrote: ... Since a String object is immutable, one should always use a StringBuffer (preferably a StringBuilder, these days) when you are constructing strings in a piecemeal fashion, then convert to String when complete. This advice is good when constructing a long str

Re: IE + Flash + mod_jk issue

2009-05-13 Thread Stephen More
On Tue, May 12, 2009 at 4:58 PM, Rainer Jung wrote: > On 12.05.2009 22:33, Stephen More wrote: >> I have a flash application ( Macromedia Breeze Presentation ) that is >> working fine when I access it directly from tomcat's port 8080. >> >> When I access it through apache using mod_jk, IE loads so

Re: [OT] Performance with many small requests

2009-05-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 5/12/2009 5:03 PM, Caldarale, Charles R wrote: >> From: David kerber [mailto:dcker...@verizon.net] Subject: Re: >> Performance with many small requests >> >> When (what java version) did those string operation optimizations >> happen? Sun

RE: ClassLoader issues in multithreaded webapp ? TC5.0

2009-05-13 Thread Caldarale, Charles R
> From: katepl [mailto:klin...@poczta.fm] > Subject: ClassLoader issues in multithreaded webapp ? TC5.0 > > I'm using 5.0.28 (with java5 patch) What's the "java5 patch"? Note that Tomcat 5.0 is deprecated. Can you reproduce the problem on a supported level? I don't recall having seen these sy

RE: Form Based Authentication creates user session before it is authenticated?

2009-05-13 Thread Caldarale, Charles R
> From: umeshkavade [mailto:umeshkav...@yahoo.co.in] > Subject: Re: Form Based Authentication creates user session before it > is authenticated? > > P.S: BTW, is Tomcat planning to resolve this vulnerability in near > future? I'll bite: what "vulnerability" are you referring to? - Chuck THIS

RE: Preventing OutOfMemoryError: Java heap space

2009-05-13 Thread Caldarale, Charles R
> From: Todd Hivnor [mailto:spambox_98...@yahoo.com] > Subject: Re: Preventing OutOfMemoryError: Java heap space > > In my tests, as the RAM becomes depleted, the server > response becomes slower and slower. That's because you're going through garbage collections at an ever increasing frequency

Connector for diameter protocol

2009-05-13 Thread kramasundar
Hi, I am trying to port our existing plain old java diameter ( http://en.wikipedia.org/wiki/Diameter_(protocol) Diameter wiki page ) server on top of tomcat. I am new to J2EE/Tomcat. Since Diameter is quite different from HTTP it is bit difficult to get started with doing things. As far as i ha

Re: Preventing OutOfMemoryError: Java heap space

2009-05-13 Thread Rainer Jung
On 13.05.2009 08:07, Peter Crowther wrote: >> From: André Warnier [...@ice-sa.com] would it not be easier to catch >> the OOM exception and then return a "sorry, server overloaded" page >> to the browser ? > > At that point, it's too late. A thread, somewhere in the system, > tried to allocate so

Re: tomcat close_wait state and proxy error when connecting to my web application

2009-05-13 Thread Rainer Jung
On 12.05.2009 23:26, orahi001 wrote: > Hi, > > I have apache web server running on one box as a proxy server > tomcat running on another box. > > The apache server connects to application server (tomcat) via proxy passthru > parameter. The server running tomcat was recently rebooted. When it cam

Re: How to create a virtual host with war file without beeing created aROOT dir?

2009-05-13 Thread raistlink
Thank you for your answers, the versions is apache-tomcat-6.0.16, sorry. I'll try to make the things as you say. Thanks!! awarnier wrote: > > Caldarale, Charles R wrote: >>> From: raistlink [mailto:ela...@gmail.com] >>> Subject: How to create a virtual host with war file without beeing >>> c

RE: Preventing OutOfMemoryError: Java heap space

2009-05-13 Thread Peter Crowther
> From: Todd Hivnor [mailto:spambox_98...@yahoo.com] > One challenge with Peter's suggestion of tracking the > number of sessions myself is that I have a collection > of webapps. So I can't just set up a shared static counter; > I need a counter which works across multiple webapps. > The only way I