RE: How to debug Error: listenerStart?

2009-04-03 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: How to debug Error: listenerStart? > To close out this thread Or maybe not. > I've reopened bug > https://issues.apache.org/bugzilla/show_bug.cgi?id=34110 > and attached a war file which demonstrates the problem. I downloaded your a.war file into my T

RE: Tomcat 6.0.18 fresh install on Windows Server 2003: java.lang.Exception: Socket bind failed

2009-04-03 Thread Caldarale, Charles R
> From: Manoj Punjabi [mailto:kawi...@gmail.com] > Subject: Tomcat 6.0.18 fresh install on Windows Server 2003: > java.lang.Exception: Socket bind failed > > the Tomcat logs are showing the dreaded "Socket bind failed" error. You seem to be fixated on the HTTP port, when the errors appear to be

Tomcat 6.0.18 fresh install on Windows Server 2003: java.lang.Exception: Socket bind failed

2009-04-03 Thread Manoj Punjabi
Hello, I'm trying a fresh install of Tomcat 6.0.18 on Windows Server 2003 R2 enterprise edition with SP2. After selecting "Full install" and default port 8080 in the installation steps, the Tomcat logs are showing the dreaded "Socket bind failed" error. It doesn't seem to be because some other app

Re: Tomcat 5 and UTF-8

2009-04-03 Thread Markus Schönhaber
Christopher Schultz: > The problem is when the web server sends a response, it sends it using a > particular character set (let's just say UTF8 for argument's sake). If > you also report that the character set is UTF8 in the META tags, then > it's only valid if the client saves the file to the dis

Re: Tomcat 5 and UTF-8

2009-04-03 Thread André Warnier
Hi. One of my preferred subjects... 1) as per the HTTP specs, the server should send a Content-Type header along with any response to a browser. If the response is of the general type "text", then this Content-Type header should also contain a charset attribute, indicating the character set

Re: Session Replication in Cluster

2009-04-03 Thread Mark Thomas
Roy McMorran wrote: > János Löbb wrote: >> >> If You look the >>values<< created by the session earlier with >> ...node1, than You will see the same values after fail over with >> ...node2. A new session would not know about them. >> >> To verify it You can use the supplied SessionExmaple webapp.

Re: Illegal access: this web application instance has been stoppedalready

2009-04-03 Thread Mikolaj Rydzewski
Christopher Schultz wrote: On 4/2/2009 4:49 PM, Mikolaj Rydzewski wrote: I observe almost identical exceptions when I redeploy webapplication that uses quartz scheduler. It looks like after webapp's instance has been undeployed, background quartz thread wants to do something and then exceptio

Re: Tomcat and UTF-8, or should I say charsets ?

2009-04-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/3/2009 11:38 AM, André Warnier wrote: > But, guess what, my name in that email appears as > > Name: AndréWarnier I suspect this is careless use of whatever emailing library is being used. MoinMoin appears to use Python, a language and

Re: Which user executes JSP in Tomcat?

2009-04-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raga, On 4/3/2009 6:11 AM, raga2 wrote: > Running tomcat on linux. I've written a simple JSP script to create a > directory and a file. When I run it via tomcat, the code runs fine, no > errors, but the directory nor the file get created where I speci

Re: Illegal access: this web application instance has been stoppedalready

2009-04-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mikolaj, On 4/2/2009 4:49 PM, Mikolaj Rydzewski wrote: > Caldarale, Charles R wrote: >> Whatever you're doing is attempting multiple stops of your webapp. > I observe almost identical exceptions when I redeploy webapplication > that uses quartz schedu

Re: Tomcat 5 and UTF-8

2009-04-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oscar, On 4/2/2009 1:30 PM, Je suis la poubelle wrote: > On Fri, Mar 27, 2009 at 5:34 PM, Christopher Schultz > wrote: >> While it's not a terrible idea to specify the encoding in both places, >> you should consider the possibility that the META tag

Re: acceptCount in Tomcat 5.x and 6.x?

2009-04-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim, On 4/2/2009 11:37 AM, Jim Goodspeed wrote: > Can you tell me where in Apache I would configure the number of AJP > connections? I'm using Apache 2.2.10 to load balance tomcat using > mod_proxy. I think the number of AJP connections would be equ

Re: Session Replication in Cluster

2009-04-03 Thread Roy McMorran
János Löbb wrote: If You look the >>values<< created by the session earlier with ...node1, than You will see the same values after fail over with ...node2. A new session would not know about them. To verify it You can use the supplied SessionExmaple webapp. OK, trying that. So, using an

Re: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

2009-04-03 Thread Ken Bowen
This is clearly a GWT configuration problem. I'm not terribly expert, but when I struggled with GWT issues, I got lots of good help from the GWT list at http://groups.google.com/group/Google-Web-Toolkit?hl=en&lnk=sg Start by searching the archives. I pretty sure there have been lot

Re: [OT] Tomcat error: It is not available the ServletAction

2009-04-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 4/2/2009 3:27 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Tomcat error: It is not available the ServletAction >> >> I think the reason Xerces works within the applicati

Re: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

2009-04-03 Thread oumar ndiaye
I recompiled the server code with a system.out.println at the very beginning, but nothing gets printed. Apparently the server code is not being entered, which seem to suggest that Tomcat is not connecting the client call to the server. Any ideas as to why the same work in hosted mode and not on to

Re: Session Replication in Cluster

2009-04-03 Thread Roy McMorran
János Löbb wrote: If You look the >>values<< created by the session earlier with ...node1, than You will see the same values after fail over with ...node2. A new session would not know about them. To verify it You can use the supplied SessionExmaple webapp. It is like passing a baby among

Re: Session Replication in Cluster

2009-04-03 Thread Roy McMorran
Caldarale, Charles R wrote: From: Roy McMorran [mailto:mcmor...@mdibl.org] Subject: Re: Session Replication in Cluster If the session ID changes from "ABC123.node1" to "ABC123.node2", then you will start a new session at the browser. No, you get a new *cookie* at the browser; the session

Re: Session Replication in Cluster

2009-04-03 Thread János Löbb
On Apr 3, 2009, at 3:31 PM, Roy McMorran wrote: Mark Thomas wrote: Roy McMorran wrote: Is it the expected behavior then, that the 2nd part of the session ID changes after a failover, and a new cookie is set? Yes OK, please bear with me here, I may be just showing my ignorance with

RE: Session Replication in Cluster

2009-04-03 Thread Caldarale, Charles R
> From: Roy McMorran [mailto:mcmor...@mdibl.org] > Subject: Re: Session Replication in Cluster > > If the session ID changes from "ABC123.node1" to "ABC123.node2", then > you will start a new session at the browser. No, you get a new *cookie* at the browser; the session is something only the ser

Re: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

2009-04-03 Thread Ken Bowen
If you are running a plain Tomcat downloaded from Apache, and if you haven't changed it's logging, it will write to ${TOMCAT_HOME}/logs/ catalina.out, where ${TOMCAT_HOME} is the place you installed Tomcat. If you are running Tomcat from an IDE, say Eclipse, it usually will write out in the

Re: Session Replication in Cluster

2009-04-03 Thread Roy McMorran
Mark Thomas wrote: Roy McMorran wrote: Is it the expected behavior then, that the 2nd part of the session ID changes after a failover, and a new cookie is set? Yes OK, please bear with me here, I may be just showing my ignorance with respect to Tomcat and web applications in gen

Re: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

2009-04-03 Thread oumar ndiaye
Thanks Ken,I will try that. Where will system.out write to in the Tomcat server? On host mode it write to the eclipse console, but I don't where to look on Tomcat server. On Fri, Apr 3, 2009 at 3:04 PM, Ken Bowen wrote: > I don't think this is a Tomcat error. > The java.lang.IndexOutOfBoundsExce

Re: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

2009-04-03 Thread Ken Bowen
I don't think this is a Tomcat error. The java.lang.IndexOutOfBoundsException might be due to an initialization failure: The GWT test harness may be setting something up for you which is not dealt with when you run it directly in Tomcat. Also, does your web.xml contain servlet specs identic

nsapi_redirector with Sun Java System Web Server 7.0?

2009-04-03 Thread Andy Wang
Has anyone used the nsapi redirectory to connect SJSWS 7.0 with Tomcat? I noted that the documentation all still refers to 6.0, but the README on the binaries page is somewhat encouraging: # nsapi_redirector-1.2.28-sjsws6.1sp11.so is for Sun Java System Web Server (aka Netscape Enterprise Server)

Re: How to debug Error: listenerStart?

2009-04-03 Thread Dan Armbrust
To close out this thread, I've reopened bug https://issues.apache.org/bugzilla/show_bug.cgi?id=34110 and attached a war file which demonstrates the problem. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additio

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

2009-04-03 Thread oumar ndiaye
Please Help, I just tested my gwt app with RPC on host mode it works fine. When I deployed the app to Tomcat it does not work. I get the \ following message when the client issue a RPC call to the server: "The call failed on the server; see server log for details\ " . When I looked at the logs of

RE: Tomcat 6.0.18 examples recompile ok but dont work!!

2009-04-03 Thread Caldarale, Charles R
> From: mdunford [mailto:martin.dunf...@gmail.com] > Subject: RE: Tomcat 6.0.18 examples recompile ok but dont work!! > > > javac -cp ../../../../lib/servlet-api.jar HelloWorldExample.java > > I tried this. No luck. Do you get any errors on the javac? Did you get any errors from javac when you

Re: ROOT options -- FYI Success+Steps

2009-04-03 Thread Ken Bowen
Just to let you know that this worked out just fine. Even though the renaming to ROOT.war appears easier, I'm not sure it really is. For the record, I've made this work on my development machine (Mac OS X 5.6) with Java 1.5 and Tomcat 6.0.18 (a vanilla download from Apache). Here were my s

RE: Tomcat 6.0.18 examples recompile ok but dont work!!

2009-04-03 Thread mdunford
>> I go and recompile HelloWorldExample >> javac HelloWorldExample.java > javac -cp ../../../../lib/servlet-api.jar HelloWorldExample.java I tried this. No luck. >I've done the same thing on my 6.0.18 installation, and it works fine. Do you have a JAVA_HOME or >JRE_HOME environment variabl

RE: Context and swallowOutput

2009-04-03 Thread Edward Bicker
Ok, got it...Thanks for quick response... /Ed -Original Message- >From: "Caldarale, Charles R" >Sent: Apr 3, 2009 10:50 AM >To: Tomcat Users List >Subject: RE: Context and swallowOutput > >> From: Caldarale, Charles R >> Subject: RE: Context and swallowOutput >> >> Strictly speaking, th

Tomcat and UTF-8, or should I say charsets ?

2009-04-03 Thread André Warnier
Hi. I just experienced something which somehow contains a delicious piece of irony for those who remember the numerous discussions on this list with topics related to the proper encoding of URLs, POST submission parameters etc.. Having forgotten my user-id and password for the Tomcat (FAQ) W

RE: Context and swallowOutput

2009-04-03 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: Context and swallowOutput > > Strictly speaking, the "Catalina" in the above is also no fixed; it is > actually the name of the element, but there's rarely any > reason to change it. Sorry; as Mark T pointed out, "Catalina" is actually the name of the

RE: Context and swallowOutput

2009-04-03 Thread Caldarale, Charles R
> From: Edward Bicker [mailto:g...@travelin.com] > Subject: RE: Context and swallowOutput > > When you say conf/Catalina/[host]/[appName].xml what are you refering > to when you say .../host/ ? The value of the name attribute for the under which the webapp is deployed. For a default Tom

Re: Context and swallowOutput

2009-04-03 Thread Mark Thomas
Edward Bicker wrote: > Charles, > When you say conf/Catalina/[host]/[appName].xml what are you refering to > when you say .../host/ ? What do you want us to add as /host/ / Can > you give example? It is the host name as defined in server.xml (and Catalina is the engine name) Mark >

RE: Context and swallowOutput

2009-04-03 Thread Edward Bicker
Charles, When you say conf/Catalina/[host]/[appName].xml what are you refering to when you say .../host/ ? What do you want us to add as /host/ / Can you give example? /Ed -Original Message- >From: "Caldarale, Charles R" >Sent: Apr 3, 2009 10:16 AM >To: Tomcat Users List >Sub

Re: And even further into the black magic of logging configuration within tomcat...

2009-04-03 Thread Dan Armbrust
On Thu, Apr 2, 2009 at 9:55 PM, Caldarale, Charles R wrote: >> From: Dan Armbrust [mailto:daniel.armbrust.l...@gmail.com] >> Subject: And even further into the black magic of logging configuration >> within tomcat... >> >> So, why didn't log4j try to find the log4j.properties >> file for the secon

RE: Context and swallowOutput

2009-04-03 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Context and swallowOutput > > Is it as simple as : > Yes. However, to avoid modifying the webapp structure, I would put the above in conf/Catalina/[host]/[appName].xml, rather than in the webapp's META-INF/context.xml. - Chuck THIS

Context and swallowOutput

2009-04-03 Thread André Warnier
Hi. Triggered by a recent comment by Chuck, I would like to use the "swallowOutput" attribute of the element, in a specific way : I am using an external webapp for which I do not have the source code. This webapp currently does not include a META-INF subdirectory nor then of course a context

RE: date and time in log

2009-04-03 Thread Caldarale, Charles R
> From: Laura Bartolomé [mailto:la...@secways.com] > Subject: date and time in log > > when tomcat write errors in stdout it doesn't write date and time... Tomcat does not write to System.out or System.err (other than some esoteric debugging stuff). The default logging configuration does write

RE: Which user executes JSP in Tomcat?

2009-04-03 Thread Caldarale, Charles R
> From: raga2 [mailto:ragabo...@gmail.com] > Subject: Re: Which user executes JSP in Tomcat? > > ps -aef tells me it's root running tomcat. That's a really bad thing to do. You should be running Tomcat under a userid that does not give it the privilege to scribble anywhere in the file system.

Re: Which user executes JSP in Tomcat?

2009-04-03 Thread André Warnier
Jens Kapitza wrote: BTW, is the script right? do all sub-dirs exist? Is the path absolut? any exceptions in the server log? (log/catalina.out) I'll add this : is Tomcat running under a security manager ? (have a look at things like /etc/init.d/tomcat5.5 and /etc/default/tomcat5.5) Anyway, a

Re: Restarting Tomcat from Ant

2009-04-03 Thread Mighty Tornado
This worked: On Fri, Apr 3, 2009 at 7:19 AM, Gregor Schneider wrote: > How about > > > > Rgds > > Gregor > -- > just because your paranoid, doesn't mean they're not after you... > gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 > gpgp-key available > @ http://pgpkeys.pca.dfn.de:11371

Re: Session Replication in Cluster

2009-04-03 Thread Roy McMorran
Mark Thomas wrote: Roy McMorran wrote: Thanks Mark, Is it the expected behavior then, that the 2nd part of the session ID changes after a failover, and a new cookie is set? Yes Mark Interesting. I am certain I saw the other behavior (both parts of the session ID were preserved

Re: Session Replication in Cluster

2009-04-03 Thread Mark Thomas
Roy McMorran wrote: > Mark Thomas wrote: >> >> Nope. The job of that valve is to change the route - exactly what you >> are seeing. >> >> > Thanks Mark, > > Is it the expected behavior then, that the 2nd part of the session ID > changes after a failover, and a new cookie is set? Yes Mark -

Re: Session Replication in Cluster

2009-04-03 Thread Roy McMorran
Mark Thomas wrote: Nope. The job of that valve is to change the route - exactly what you are seeing. Thanks Mark, Is it the expected behavior then, that the 2nd part of the session ID changes after a failover, and a new cookie is set? Thanks, Roy -- Roy McMorran Systems Administrator M

Re: Session Replication in Cluster

2009-04-03 Thread Mark Thomas
Roy McMorran wrote: > Hi Jorge, thanks for the reply. > > Actually no, these are the access logs from the Tomcat cluster members; > you can view the corresponding AccessLogValve entries in the server.xml > files referenced below. > > I included those logs for illustration, but I have confirmed th

Re: Session Replication in Cluster

2009-04-03 Thread Roy McMorran
Hi Jorge, thanks for the reply. Actually no, these are the access logs from the Tomcat cluster members; you can view the corresponding AccessLogValve entries in the server.xml files referenced below. I included those logs for illustration, but I have confirmed that those are the actual sessi

RE: Which user executes JSP in Tomcat?

2009-04-03 Thread Ilya Kazakevich
Which code exactly you use to create directory? -Original Message- From: raga2 [mailto:ragabo...@gmail.com] Sent: Friday, April 03, 2009 2:44 PM To: users@tomcat.apache.org Subject: Re: Which user executes JSP in Tomcat? Thanks guys for the reply. ps -aef tells me it's root running to

Re: Restarting Tomcat from Ant

2009-04-03 Thread Gregor Schneider
How about Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi --

Re: Which user executes JSP in Tomcat?

2009-04-03 Thread Jens Kapitza
BTW, is the script right? do all sub-dirs exist? Is the path absolut? any exceptions in the server log? (log/catalina.out) --- Jens Kapitza - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands,

RE: Which user executes JSP in Tomcat?

2009-04-03 Thread Ilya Kazakevich
Which user tomcat runs at? BTW, you do not need JSP to create directory and file. JSP is for template tasks only. Use simple servlet instead. -Original Message- From: raga2 [mailto:ragabo...@gmail.com] Sent: Friday, April 03, 2009 2:11 PM To: users@tomcat.apache.org Subject: Which user

Re: IPv6 configuration for tomcat 6

2009-04-03 Thread Akshay Mirajkar
I have put the ipv6 address in two places in server.xml. Those are: exception that i am getting is: Apr 3, 2009 11:32:34 AM org.apache.catalina.tribes.transport.ReceiverBase bind INFO: Unable to bind server socket to:/fc00:10:112:107:0:0:0:236:4299 throwing error

Re: Which user executes JSP in Tomcat?

2009-04-03 Thread raga2
Thanks guys for the reply. ps -aef tells me it's root running tomcat. I'm using tomcat 5.5 and Java 1.5.0 Update 16. If it's root running, then why doesn't the directories get created anywhere? Something I'm doing wrong. Thanks for your replies again. Pid-2 wrote: > > raga2 wrote: >> H

Re: Which user executes JSP in Tomcat?

2009-04-03 Thread Pid
raga2 wrote: > Hello, > > Running tomcat on linux. I've written a simple JSP script to create a > directory and a file. When I run it via tomcat, the code runs fine, no > errors, but the directory nor the file get created where I specified. I have > a feeling it's some sort of permission issue. A

Re: Which user executes JSP in Tomcat?

2009-04-03 Thread Jimmy Phillips
It'll be the user that starts tomcat in the first place. Jim From: raga2 To: users@tomcat.apache.org Sent: Friday, April 3, 2009 11:11:19 AM Subject: Which user executes JSP in Tomcat? Hello, Running tomcat on linux. I've written a simple JSP script to cre

Which user executes JSP in Tomcat?

2009-04-03 Thread raga2
Hello, Running tomcat on linux. I've written a simple JSP script to create a directory and a file. When I run it via tomcat, the code runs fine, no errors, but the directory nor the file get created where I specified. I have a feeling it's some sort of permission issue. Any help is welcome, pret

Re: How to debug Error: listenerStart?

2009-04-03 Thread André Warnier
Caldarale, Charles R wrote: From: Dan Armbrust [mailto:daniel.armbrust.l...@gmail.com] Subject: Re: How to debug Error: listenerStart? There is obviously some interaction going on between my webapp and tomcat's logging system that I don't know about. Many Tomcat components associated with a sp

Re: Tomcat 5 and UTF-8

2009-04-03 Thread André Warnier
Gregor Schneider wrote: And it's getting really nuts, when it comes to UTF-8: Talking about UTF-8 with or without BOM? Even the specs are not clear about that. Actually, a UTF-8 stream should /never/ need a BOM, because there is no byte-order, UTF-8 being by definition byte-oriented. The only

Re: tomcat 6 session replication issues

2009-04-03 Thread Jimmy Phillips
I had a look at the Cluster Receiver object reference, and I'm pretty sure it must be the local address where to listen to incoming data. Since the multicast route is set on the eth1 interface, I use the relative IP address (10.x). >From the documentation: address: The address (network interfa

date and time in log

2009-04-03 Thread Laura Bartolomé
just a little question... when tomcat write errors in stdout it doesn't write date and time... well we are interesting in time of each error... how can we enabled this?? it could be?? Thanks... Laura PD: W2003 Server + Tomcat 6 + java 1.5.7 :)

Re: CPU 100% and restart...

2009-04-03 Thread Mark Thomas
Laura Bartolomé wrote: > ps! sorry... > > it's a Windows 2003 Server with Tomcat 6 and java 1.5.7 > > I don't think the application was delivering a big file but I'll take a > look on this When you next see this issue. Take a thread dump, wait 10 seconds, take another thread dump, wait 10 se

Re: CPU 100% and restart...

2009-04-03 Thread Laura Bartolomé
ps! sorry... it's a Windows 2003 Server with Tomcat 6 and java 1.5.7 I don't think the application was delivering a big file but I'll take a look on this Pid escribió: > Laura Bartolomé wrote: > >> Hi again >> >> A few minutes ago we have these problems in our server: >> >> The CPU usage

Re: acceptCount in Tomcat 5.x and 6.x?

2009-04-03 Thread Mark Thomas
Jim Goodspeed wrote: > Does the acceptCount setting that is part of the AJP connector in the > server.xml file still exist in Tomcat 5.x and Tomcat 6.x? > > I see a lot of references to it in Tomcat 4.x, but I have not run across it > in 5 or 6. We have this setting defined in our tomcat 6 instal