Re: HOW TO detect what app server you're running in

2011-10-26 Thread Pid *
On 26 Oct 2011, at 12:47, Konstantin Kolinko wrote: > Note, that this method is unreliable. > > 1) The actual value can be configured by server administrator. > 2) There are 3-rd party repackaged distributions of Tomcat, which > may/should change the value. > > It would be better to rely on prese

Rollback in Tomcat7 under parallel deployment

2011-10-26 Thread Ellecer Valencia
Hi, If I'm using parallel deployment in Tomcat 7, and now have 2 webapps /webapps/ROOT##001.war /webapps/ROOT##002.war and then get problems in the new version and want to rollback to ROOT##001.war. If I delete the more recent version by doing rm /tomcat/webapps/ROOT##002.war What happens to

RE: "path" attribute in {myapp}/META-INF/context.xml always not work!

2011-10-26 Thread Caldarale, Charles R
> From: jilen [mailto:jilen.zh...@gmail.com] > Subject: Re: "path" attribute in {myapp}/META-INF/context.xml always not work! > So far as i understand, i have two choice to make my own > app as root app > 1. replace the ROOT dir in the appBase with my own app The strongly recommended way. > 2.

RE: cannot read complete HTTP request body. It reads only 8192 characters

2011-10-26 Thread Anantaneni Harish
Please help on this. Thanks and Regards, Harish -Original Message- From: Anantaneni Harish Sent: Wednesday, October 26, 2011 3:01 PM To: Tomcat Users List Subject: RE: cannot read complete HTTP request body. It reads only 8192 characters Thanks for your response. The issue is on the f

Re: "path" attribute in {myapp}/META-INF/context.xml always not work!

2011-10-26 Thread jilen
On 10/27/2011 09:46 AM, Caldarale, Charles R wrote: From: jilen [mailto:jilen.zh...@gmail.com] Subject: "path" attribute in {myapp}/META-INF/context.xml always not work! name and path attribute are override with the war name So these attribute are not work. Is tomcat supposed to do that? Yes; re

RE: "path" attribute in {myapp}/META-INF/context.xml always not work!

2011-10-26 Thread Caldarale, Charles R
> From: jilen [mailto:jilen.zh...@gmail.com] > Subject: "path" attribute in {myapp}/META-INF/context.xml always not work! > name and path attribute are override with the war name > So these attribute are not work. > Is tomcat supposed to do that? Yes; read the doc: http://tomcat.apache.org/tom

Re: "path" attribute in {myapp}/META-INF/context.xml always not work!

2011-10-26 Thread jilen
Tomcat: 7.0.22 OS:linux Java: OpenJDK 1.6-23 in org.apache.catalina.startup.HostConfig.deployWAR(ContextName, File, String) i found some code like these context.setName(cn.getName()); context.setPath(cn.getPath()); context.setWebappVersion(cn.getVersion()); context.setDocBase(file); ... nam

"path" attribute in {myapp}/META-INF/context.xml always not work!

2011-10-26 Thread jilen
in org.apache.catalina.startup.HostConfig.deployWAR(ContextName, File, String) i found some code like these context.setName(cn.getName()); context.setPath(cn.getPath()); context.setWebappVersion(cn.getVersion()); context.setDocBase(file); ... name and path attribute are override with the war na

Re: BUILD FAILED apache-tomcat-7.0.22-src build.xml (lines 2211, 2313) ...

2011-10-26 Thread Albretch Mueller
well I got the same error. I think I will have follow Chucks advice when I have a little more time. I will let you know how it all went then thing is that while using the 1.6 version that comes with knoppix I was getting other kinds of errors relation to ant, so I will have to install 1.6 from s

BUILD FAILED: apache-tomcat-7.0.22-src/build.xml ...

2011-10-26 Thread Albretch Mueller
while trying to compile apache-tomcat-7.0.22 sources I am getting an error I don't quite understand ~ why is this happening? ~ how can I fix this problem? ~ lbrtchx ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ... BUILD FAILED /media/sda7/inst/java/j

RE: JAR replaced in lib not seen in Eclipse projects

2011-10-26 Thread Savoy, Melinda
I have a project in my workspace for this specific JAR and there I have the source files. I exported the project to a JAR into the server's lib directory. When debugging I put a breakpoint in the source file and when the program hits that breakpoint the .class file comes up and I step thru the

Re: JAR replaced in lib not seen in Eclipse projects

2011-10-26 Thread Konstantin Kolinko
2011/10/26 Savoy, Melinda : > I made updates on 2 files in a JAR file that I replaced in the lib directory > of my tomcat server.  All my projects in my eclipse workspace reference the > Apache Tomcat v6.0 [Apache Tomcat v6.0] library in my build path.  However > when I am debugging my app the o

JAR replaced in lib not seen in Eclipse projects

2011-10-26 Thread Savoy, Melinda
I made updates on 2 files in a JAR file that I replaced in the lib directory of my tomcat server. All my projects in my eclipse workspace reference the Apache Tomcat v6.0 [Apache Tomcat v6.0] library in my build path. However when I am debugging my app the old files I modified in my jar are st

RE: s

2011-10-26 Thread Caldarale, Charles R
> From: Kobe [mailto:r...@mailcity.com] > Subject: Re: s > Is it possible to make it say what library it missing? It's missing the one you built. (You did build the APR .so file, didn't you?) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is t

RE: s

2011-10-26 Thread Caldarale, Charles R
> From: Kobe [mailto:r...@mailcity.com] > Subject: Re: s > I changed the paths to standard locations (using > LD_LIBRARY_PATH). So where is your .so file actually located? You need to include that directory in LD_LIBRARY_PATH. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTH

Re: ThreadLocal Memory Leak Protection - Executor threadRenewalDelay questions

2011-10-26 Thread Mark Thomas
On 26/10/2011 16:55, Rohit Kelapure wrote: > Is this because we are never quite sure as to when *all* of the > threads in the pool have been renewed ? I assume so, yes. > 2. Does the thread renewal approach scale under load (i.e. all threads > in the pool busy servicing requests and CPU close to

RE: HOW TO detect what app server you're running in

2011-10-26 Thread Bob DeRemer
Good to know, thanks -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Wednesday, October 26, 2011 7:47 AM To: Tomcat Users List Subject: Re: HOW TO detect what app server you're running in Note, that this method is unreliable. 1) The actual value can be

ThreadLocal Memory Leak Protection - Executor threadRenewalDelay questions

2011-10-26 Thread Rohit Kelapure
* Reposting from the dev list as advised * Dear All, After going through the thread renewal code in /tomcat-8.0.x/java/org/apache/tomcat/util/threads/TaskQueue.java , /tomcat-8.0.x/java/org/apache/tomcat/util/threads/ThreadPoolExecutor.java and the bug (Improve ThreadLocal memory leak clean-up) h

Re: s

2011-10-26 Thread Kobe
Is it possible to make it say what library it missing? many thanks for your help. Kobe wrote: > > i think its shortening long path for display with "..." > I changed the paths to standard locations (using LD_LIBRARY_PATH). > I still get the same error: > > > Oct 26, 2011 8:48:12 AM org.apache

Re: s

2011-10-26 Thread Kobe
i think its shortening long path for display with "..." I changed the paths to standard locations (using LD_LIBRARY_PATH). I still get the same error: Oct 26, 2011 8:48:12 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal

tomcat6-differences between setup version(.exe) and zip version

2011-10-26 Thread Josh Ho
Dears Setup version had installed on my windows2008 server and worked fine. Now I wanna use zip version to replace it. Otherwise I don't know if there are any differences between both. I tried to compare both and found following differences. - setup version - installed as service in servi

Re: How to configure Tomcat 7 manager webapp into an subpath?

2011-10-26 Thread André Warnier
Roland Schmitt wrote: Yes the comment markers are removed. And i have also restarted the tomcat after updating xml files. We believe only what we see with our own eyes. ;-) Copy and paste the contents of the file here, so that we can have a look. (overwrite the passwords of course) repeat : d

Re: RE: How to configure Tomcat 7 manager webapp into an subpath?

2011-10-26 Thread Roland Schmitt
Yes the comment markers are removed. And i have also restarted the tomcat after updating xml files. Original-Nachricht > Datum: Wed, 26 Oct 2011 08:38:28 -0500 > Von: "Caldarale, Charles R" > An: Tomcat Users List > Betreff: RE: How to configure Tomcat 7 manager webapp into an

RE: How to configure Tomcat 7 manager webapp into an subpath?

2011-10-26 Thread Caldarale, Charles R
> From: Roland Schmitt [mailto:roland-schm...@gmx.de] > Subject: Re: How to configure Tomcat 7 manager webapp into an subpath? > The user is added in the tomcat7\conf\tomcat-users.xml And are the comment markers removed? Did you restart Tomcat after updating the .xml file? - Chuck THIS COM

Re: How to configure Tomcat 7 manager webapp into an subpath?

2011-10-26 Thread Roland Schmitt
Thanks now localhost/manager redirects to the manager app. But after typing in username + password the access to the manager app doesnt't work i get the 401 authorization required page. The user is added in the tomcat7\conf\tomcat-users.xml best regards Roland Original-Nachricht ---

Re: s

2011-10-26 Thread Daniel Mikusa
I see "java.library.path" is set to "/opt/asdasdasd/app/bin/../lib", which looks a little funky. Have you tried setting it to "/opt/asdasdasd/app/lib"? I'm assuming this is the location of the compiled library files, please confirm. Dan On Wed, 2011-10-26 at 04:30 -0700, Kobe wrote: > i have t

Re: How to configure Tomcat 7 manager webapp into an subpath?

2011-10-26 Thread Konstantin Kolinko
2011/10/26 Roland Schmitt : > I have configure the tomcat webroot outside of the tomcat directory. > But then the tomcat managment application isn't accessible any more. > I have then tried to create an subcontext /manager which should allow access > to the manager application. But localhost/manag

How to configure Tomcat 7 manager webapp into an subpath?

2011-10-26 Thread Roland Schmitt
I have configure the tomcat webroot outside of the tomcat directory. But then the tomcat managment application isn't accessible any more. I have then tried to create an subcontext /manager which should allow access to the manager application. But localhost/manager doesn't show any content. How ca

Re: WG: Application Re-Deployment leads to OutOfMemoryException - Tomcat 7.22

2011-10-26 Thread Roland Schmitt
Thanks found an leak with your document in log4j, updating to version 1.2.16 fixed the problem. > Von: Mark Thomas > An: Tomcat Users List > Gesendet: 16:06 Dienstag, 25.Oktober 2011 > Betreff: Re: Application Re-Deployment leads to OutOfMemoryException - > Tomcat 7.22 > > On 25/10/2011 14:5

Re: HOW TO detect what app server you're running in

2011-10-26 Thread Konstantin Kolinko
Note, that this method is unreliable. 1) The actual value can be configured by server administrator. 2) There are 3-rd party repackaged distributions of Tomcat, which may/should change the value. It would be better to rely on presence of certain features that you are going to use, or let the user

s

2011-10-26 Thread Kobe
i have tomcat6 with APR connector built for jdk6. When i start server I get unsatisfied link error. I try static linking for APR but no luck. can anyone help me plz... 16-Dec-2010 16:13:27 org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which al

Re: Handling of CometEvents regarding order (Tomcat 6 and 7)

2011-10-26 Thread Mark Thomas
On 25/10/2011 10:57, Willem Fibbe wrote: > Now for my questions: 1 - Can anybody confirm this lifecycle? If I > read the AIO documentation, a typical lifecycle would be: Begin -> > Read -> ... -> Error or End That would be my expectation. > However: - in Tomcat 6 I get the CometEnd twice. I thin