Re: Tomcat 5.5 crashes after changing server IP

2011-12-12 Thread Pid
On 12/12/2011 00:29, sir...@8host.pl wrote: > One more log: > > 2011-12-12 00:52:15 org.apache.catalina.core.AprLifecycleListener init > INFO: The APR based Apache Tomcat Native library which allows optimal > performance in production environments was not found on the > java.library.path: > /usr/l

Re: Tomcat proxy configuration for serverside http requests

2011-12-12 Thread André Warnier
Dale Ogilvie wrote: Hi, Weird issue, perhaps someone can explain how this might be happening from a tomcat perspective... I have some CXF generated web service client code that calls a web service that operates on an IP whitelist. If I run this code from the shell as the tomcat owner us

Re: Tomcat 5.5 crashes after changing server IP

2011-12-12 Thread sirwiz
It is probly Tomcat + Xen (KVM) + Intel (?) releted problem. I really have no idea how you come to that conclusion. Like i said when i install Windows 8 on Xen machine, starts Virtuabox on it and new 32bit Centos, tomcat and my api works perfectly. It was running for a 2 years on AMD proceso

Re: Tomcat 5.5 crashes after changing server IP

2011-12-12 Thread André Warnier
sir...@8host.pl wrote: It is probly Tomcat + Xen (KVM) + Intel (?) releted problem. I really have no idea how you come to that conclusion. Like i said when i install Windows 8 on Xen machine, starts Virtuabox on it and new 32bit Centos, tomcat and my api works perfectly. It was running for

Re: Tomcat 5.5 crashes after changing server IP

2011-12-12 Thread Pid
On 12/12/2011 12:02, André Warnier wrote: > sir...@8host.pl wrote: It is probly Tomcat + Xen (KVM) + Intel (?) releted problem. >>> >>> I really have no idea how you come to that conclusion. >> >> Like i said when i install Windows 8 on Xen machine, starts Virtuabox >> on it and new 32bit Cent

Re: Tomcat proxy configuration for serverside http requests

2011-12-12 Thread Pid
On 12/12/2011 09:56, André Warnier wrote: > Dale Ogilvie wrote: >> Hi, >> >> >> >> Weird issue, perhaps someone can explain how this might be happening >> from a tomcat perspective... >> >> >> >> I have some CXF generated web service client code that calls a web >> service that operates on an I

Compatability Problem OSX to Windows 7 Port

2011-12-12 Thread Glyn Thomas
I am attempting to port a Tomcat/MySql application from OSX to Windows 7 (I previously ported it from Vista to OSX, so it shouldn't be as difficult as it sounds), and am having problems with back-compatibity on some queries. The application works correctly on OSX, with Tomcat 5.5, JRE 1.5.0 R12,

Re: Compatability Problem OSX to Windows 7 Port

2011-12-12 Thread Mikolaj Rydzewski
On Mon, 12 Dec 2011 08:07:31 -0500, Glyn Thomas wrote: The following test JSP shows the problem: Does the problem occur only in JSP? Are you able to run the query using regular SQL client? -- Mikolaj Rydzewski - To unsubs

Re: Compatability Problem OSX to Windows 7 Port

2011-12-12 Thread Glyn Thomas
Mikolaj, if I run the same query in the MySql client it works correctly (column names correctly aliased). Thanks Glyn On Mon, Dec 12, 2011 at 8:18 AM, Mikolaj Rydzewski wrote: > On Mon, 12 Dec 2011 08:07:31 -0500, Glyn Thomas wrote: > > The following test JSP shows the problem: >> > > Does the

Re: Tomcat memory allocation

2011-12-12 Thread Mark H. Wood
On Fri, Dec 09, 2011 at 02:52:23PM -, Martin O'Shea wrote: > Thanks for this Chuck. I realise now what is happening. I thought the > PermGen space was used in the heap when now I see it as just storing class > definitions. So I could reduce it below 128Mb if I choose. Is there a > default value

Cannot create JDBC driver of class error occurs when upgrading from tomcat-6.0.33 to tomcat 6.0.35

2011-12-12 Thread Charlotte Binns
Hi, I wonder if any one can offer me any assistance with a problem I am having as I am struggling to find the resolution to my issue. I am attempting to upgrade my tomcat version from tomcat 6.0.33 to tomcat 6.0.35. My server build is: Centos 5.5 32 bit Apache web server 2.2.21 PHP 5.3.8 mysql

RE: Cannot create JDBC driver of class error occurs when upgrading from tomcat-6.0.33 to tomcat 6.0.35

2011-12-12 Thread Caldarale, Charles R
> From: Charlotte Binns [mailto:charlotte.bi...@tate.org.uk] > Subject: Cannot create JDBC driver of class error occurs when upgrading from > tomcat-6.0.33 to tomcat 6.0.35 > I added all my configuration to server.xml/web.xml Exactly what did you change there? > and tomcat-users.xml Not suita

RE: Tomcat memory allocation

2011-12-12 Thread Jeffrey Janner
> -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Friday, December 09, 2011 10:35 AM > To: Tomcat Users List > Subject: RE: Tomcat memory allocation > > > From: Martin O'Shea [mailto:app...@dsl.pipex.com] > > Subject: RE: Tomcat memory allocation

RE: Cannot create JDBC driver of class error occurs when upgrading from tomcat-6.0.33 to tomcat 6.0.35

2011-12-12 Thread Charlotte Binns
Hi Chuck, Thank you so much for you quick response. For the server.xml I added quite a lot but this is exactly the same as my server.xml from 6.0.33. I have added the server.xml file but edited sensitive information from it. For the web.xml all I have added extra are the following lines:

path used for tc-natuve

2011-12-12 Thread André Warnier
Hi On a Debian Linux system, was running a Debian-pre-packaged Tomcat 5.5. We stopped this Tomcat 5.5, but did not remove the corresponding package(s). Then we installed an "official" Tomcat 6, downloaded from the Tomcat website, in /opt/tomcat6 as "CATALINA_HOME". We then made a copy of the /et

Re: path used for tc-natuve

2011-12-12 Thread Francis GALIEGUE
On Mon, Dec 12, 2011 at 17:36, André Warnier wrote: > Hi > > On a Debian Linux system, was running a Debian-pre-packaged Tomcat 5.5. > We stopped this Tomcat 5.5, but did not remove the corresponding package(s). > Then we installed an "official" Tomcat 6, downloaded from the Tomcat > website, in /

Re: path used for tc-natuve

2011-12-12 Thread Pid *
On 12 Dec 2011, at 16:37, "André Warnier" wrote: > Hi > > On a Debian Linux system, was running a Debian-pre-packaged Tomcat 5.5. > We stopped this Tomcat 5.5, but did not remove the corresponding package(s). > Then we installed an "official" Tomcat 6, downloaded from the Tomcat website, > in /o

Detecting Mobile Device

2011-12-12 Thread Jerry Malcolm
What is the best/recommended way to determine if the request is coming from a mobile device? I have an alternate layout that I want to use for pages going to a smart phone, etc. I know there is client/browser info in the request. But it's more browser-specific info. Is there one specific string

Deployment over a running webapp does not call session detroyed?

2011-12-12 Thread Gabriele Bulfon
Hi, don't know if this is a problem of Tomcat integrated into NetBeans, but I noticed that rebuilding my webapp (causing netbeans redeployment over the running webapp), older threads spawn by running sessions are not killed, getting into exceptions because the real HttpSession objects are killed

stderr

2011-12-12 Thread Jerry Malcolm
I have converted all of my logging to JULI stuff. To meet my specific requirements for outputs, etc, I ended up creating Loggers on the fly and assigning handler file names as opposed to using logging.properties file. Everything works like I expected except for one thing. It appears that all outp

RE: Deployment over a running webapp does not call session detroyed?

2011-12-12 Thread Caldarale, Charles R
> From: Gabriele Bulfon [mailto:gbul...@sonicle.com] > Subject: Deployment over a running webapp does not call session detroyed? > the ContextListener contextDestroyed is called, but I have no way to > access my threads and kill them from there > Is this a bug or am I missing something? Yes

Re: Tomcat user roles

2011-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 12/8/11 7:33 PM, Bill Wang wrote: > Thanks to all for the explanation. > > I have a new question regarding the admin role. > > With default setup, if I login as admin, I can start,stop, undeploy > and deploy the application. Now, because th

Re: RemoteIpFilter not working

2011-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 12/9/11 4:48 AM, spr...@gmx.eu wrote: >> Can you send a dump of the HTTP headers received by the webapp >> and the return value of the various request.getXXX methods? That >> would be very helpful, here. > > > getRemoteAdd

Re: MVC or Model2 with Tomcat

2011-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 12/9/11 8:23 AM, Pid wrote: > If you want Tomcat to find & serve index.jsp for a '/' request, > then you need: > > index.jsp > ... which is the default , I might add. (Actually, the default is to look for index.html, index.htm, and index.

Re: upgrading from 6.0.20 to 6.0.35

2011-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hassan, On 12/9/11 11:38 AM, Hassan Schroeder wrote: > On Thu, Dec 8, 2011 at 11:13 PM, Pid * wrote: > >> Yes, but we still usually recommend starting afresh each time. >> It should relatively simple, just make a backup copy of each file >> you edit

Re: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Warren, On 12/9/11 4:47 PM, Warren Bell wrote: > This makes me think I am on the right track and the exceptions I > am getting seem to point to the wrong classes being loaded. Maybe, but maybe not. > My question is, is their a set of XML related jar

RE: RemoteIpFilter not working

2011-12-12 Thread spring
> Also, the documentation on the class itself > (http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catali na/filters/RemoteIpFilter.html) > seems to be better than the documentation of the Filter in the Tomcat > user guide :( Uh... the docs are simple wrong, ok - I think. > I think you're go

Re: Tomcat 5.5 crashes after changing server IP

2011-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 SirWiz, On 12/12/11 6:26 AM, sir...@8host.pl wrote: >>> It is probly Tomcat + Xen (KVM) + Intel (?) releted problem. >> >> I really have no idea how you come to that conclusion. > > Like i said when i install Windows 8 on Xen machine, starts > Virtu

Tomcat crashes after startup

2011-12-12 Thread Justin Larose
Group, Can anyone help me with this error below from the catalina.log? I have attached my server.xml as well. I have done some searches on the internet and cannot find much on this error. SEVERE: Error initializing endpoint java.io.IOException: Any

Re: Tomcat crashes after startup

2011-12-12 Thread Mark Thomas
On 12/12/2011 20:20, Justin Larose wrote: > Group, > > Can anyone help me with this error below from the catalina.log? > I have attached my server.xml as well. I have done some searches on the > internet and cannot find much on this error. > > SEVE

Re: Tomcat crashes after startup

2011-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Justin, Mark already answered your question, but ... On 12/12/11 3:20 PM, Justin Larose wrote: > protocol="HTTP/1.1" redirectPort="8443" server="Unknown Web > Server/1.0"/> :( Really? Masking the server name? At least say "Apache Tomcat" or someth

Re: Tomcat crashes after startup

2011-12-12 Thread Justin Larose
Thank you Mark, I edited the connector with the information for the new certificate I just installed (not the old self signed one) and now I am seeing this error: (I have attached the modified server.xml and the output for tomcat key entry cert below)

Re: stderr

2011-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jerry, On 12/12/11 12:59 PM, Jerry Malcolm wrote: > I have converted all of my logging to JULI stuff. To meet my > specific requirements for outputs, etc, I ended up creating Loggers > on the fly and assigning handler file names as opposed to using >

[OT] Re: Detecting Mobile Device

2011-12-12 Thread Pid
On 12/12/2011 17:52, Jerry Malcolm wrote: > What is the best/recommended way to determine if the request is coming from > a mobile device? I have an alternate layout that I want to use for pages > going to a smart phone, etc. I know there is client/browser info in the > request. But it's more br

Re: Tomcat crashes after startup

2011-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Justin, On 12/12/11 3:49 PM, Justin Larose wrote: > I edited the connector with the information for the new certificate > I just installed (not the old self signed one) and now I am seeing > this error: > > [snip] > > java.io.IOException: Alias name

Re: Detecting Mobile Device

2011-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jerry, On 12/12/11 12:52 PM, Jerry Malcolm wrote: > > Is there one specific string or something that I can look for that > will catch all smart phones, etc? Not that I know. You just have to sniff the User-Agent header, hope the device isn't lying,

Re: Detecting Mobile Device

2011-12-12 Thread Hassan Schroeder
On Mon, Dec 12, 2011 at 9:52 AM, Jerry Malcolm <2ndgenfi...@gmail.com> wrote: > What is the best/recommended way to determine if the request is coming from > a mobile device? > Recommendations? Trying to keep on top of all possible UserAgent strings is madness, IMO. (Or a business plan, c.f. Brow

Re: path used for tc-natuve

2011-12-12 Thread André Warnier
Pid * wrote: On 12 Dec 2011, at 16:37, "André Warnier" wrote: Hi On a Debian Linux system, was running a Debian-pre-packaged Tomcat 5.5. We stopped this Tomcat 5.5, but did not remove the corresponding package(s). Then we installed an "official" Tomcat 6, downloaded from the Tomcat website, i

RE: path used for tc-natuve

2011-12-12 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: path used for tc-natuve > it does not seem that there is either a $LD_LIBRARY_PATH set, nor an > explicit "-Djava.library.path" on the tomcat (or jsvc) command-line. > So then, to repeat the question, where might this Tomcat Native l

Re: path used for tc-natuve

2011-12-12 Thread Francis GALIEGUE
On Mon, Dec 12, 2011 at 23:25, André Warnier wrote: [...] > > 1) these are the tomcat6 processes, as shown by "ps" : > (sorry for the format, I hope it is readable) > > root     21245     1  0 21:19 ?        00:00:00 /usr/bin/jsvc -user tomcat55 > -cp /usr/share/java/commons-daemon.jar:/opt/tomcat

Re: path used for tc-natuve

2011-12-12 Thread Pid
On 12/12/2011 22:25, André Warnier wrote: > Pid * wrote: >> On 12 Dec 2011, at 16:37, "André Warnier" wrote: >> >>> Hi >>> >>> On a Debian Linux system, was running a Debian-pre-packaged Tomcat 5.5. >>> We stopped this Tomcat 5.5, but did not remove the corresponding >>> package(s). >>> Then we in

RE: path used for tc-natuve

2011-12-12 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: path used for tc-natuve > > So then, to repeat the question, where might this Tomcat Native > > library be, which Tomcat finds and is complaining about ? > I wonder if dlopen() is defaulting to the ldconfig list? Look in > /etc/ld.so.conf for that.

Re: path used for tc-natuve

2011-12-12 Thread André Warnier
Caldarale, Charles R wrote: From: Caldarale, Charles R Subject: RE: path used for tc-natuve So then, to repeat the question, where might this Tomcat Native library be, which Tomcat finds and is complaining about ? I wonder if dlopen() is defaulting to the ldconfig list? Look in /etc/ld.so.

Re: path used for tc-natuve

2011-12-12 Thread André Warnier
Pid wrote: ... It's often found under /usr/lib/apr or /usr/local/apr. You could just build the new version from the one in tomcat/bin. And if I do this, where do I put the result, in such a way that it doesn't overwrite the existing one used by tomcat5.5 ? Or is that in the on-line docs ?

RE: path used for tc-natuve

2011-12-12 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: path used for tc-natuve > And if I do this, where do I put the result, in such a way that > it doesn't overwrite the existing one used by tomcat5.5 ? One would normally place it in Tomcat's bin directory, and set LD_LIBRARY_PATH or

RE: path used for tc-natuve

2011-12-12 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: path used for tc-natuve > which still does not really explain (to me) why Tomcat > looks for it there. Or is it jsvc ? Neither - it's the Linux dynamic loader, required to do so by the Linux API contract for dlopen(). > So how do

Re: upgrading from 6.0.20 to 6.0.35

2011-12-12 Thread Mark Eggers
- Original Message - > From: Christopher Schultz > To: Tomcat Users List > Cc: > Sent: Monday, December 12, 2011 11:45 AM > Subject: Re: upgrading from 6.0.20 to 6.0.35 > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hassan, > > On 12/9/11 11:38 AM, Hassan Schroeder wrote:

Re: Cannot create JDBC driver of class error occurs when upgrading from tomcat-6.0.33 to tomcat 6.0.35

2011-12-12 Thread Mark Eggers
> > From: Charlotte Binns >To: Tomcat Users List >Sent: Monday, December 12, 2011 7:16 AM >Subject: RE: Cannot create JDBC driver of class error occurs when upgrading >from tomcat-6.0.33 to tomcat 6.0.35 > >Hi Chuck, > >Thank you so much for you quick response.

Re: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-12 Thread Warren Bell
Here are all the jars in my app. There are a lot. The jars that came in as dependencies of smooks are: milyn-smooks-csv-1.5.jar openscv-1.8.jar milyn-smooks-flatfile-1.5.jar milyn-smooks-javabean-1.5.jar milyn-smooks-core-1.5.jar milyn-commons-1.5.jar freemaker-2.3.15.jar javassist-3.10.0.GA.jar x

RE: Tomcat proxy configuration for serverside http requests

2011-12-12 Thread Dale Ogilvie
>> André Warnier wrote: >> Just to complete your report : >> - is the JVM used in both cases exactly the same ? >> - are either one of the Tomcats (or both) using the "native APR" library ? >> (although I have no idea really if this is relevant or not when a >> webapp makes its own connections)

Re: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-12 Thread Mark Eggers
- Original Message - > From: Warren Bell > To: Tomcat Users List > Cc: > Sent: Monday, December 12, 2011 7:26 PM > Subject: Re: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism > > Here are all the jars in my app. There are a lot. The jars that came in > as dependencie

RE: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-12 Thread Caldarale, Charles R
> From: Mark Eggers [mailto:its_toas...@yahoo.com] > Subject: Re: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism > > servlet-api-2.3.jar > > servlet-api-2.5.jar > If you're using Maven to manage the dependencies, how about > marking the offending jars provided, and see > if t

Re: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-12 Thread Konstantin Kolinko
2011/12/10 Warren Bell : > Hello Tomcat Users, > > I am having a problem with xerces and other jars in the JDK or Tomcat > conflicting with jars in my app. I am getting the following exception > when instantiating Smooks, a csv library that usese xerces, in a web app > running in Tomcat: What exac

Re: Compatability Problem OSX to Windows 7 Port

2011-12-12 Thread Glyn Thomas
All, In case anyone has the same problem, here is the solution. The behavior is controlled by the J/Connector flag useOldAliasMetadataBehavior, which needs to be set to 'true' for the query to work correctly on recent J/Connector versions. To set this parameter, use the following construct for th

Re: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-12 Thread Warren Bell
I was afraid I was going to get a reaction to my list like I did, it is a mess. You get lazy and you just enter in a dependency and let Maven drag everything in with it. As for the servlet jars, Tomcat just ignores them and I never took the time to figure out where they were coming from, that goes

Re: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-12 Thread Warren Bell
Here the answers to your other questions. Thanks, Warren Bell On 12/12/11 8:25 PM, Konstantin Kolinko wrote: > 2011/12/10 Warren Bell : >> Hello Tomcat Users, >> >> I am having a problem with xerces and other jars in the JDK or Tomcat >> conflicting with jars in my app. I am getting the followin

RE: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-12 Thread Caldarale, Charles R
> From: Warren Bell [mailto:warrenbe...@gmail.com] > Subject: Re: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism > Tomcat 6.0.16 Might want to upgrade - that's getting close to four years old. > JDK 1.6 JDK 1.6.what? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AN

Re: Compatability Problem OSX to Windows 7 Port

2011-12-12 Thread Pid *
On 13 Dec 2011, at 04:31, Glyn Thomas wrote: > All, > In case anyone has the same problem, here is the solution. The behavior is > controlled by the J/Connector flag useOldAliasMetadataBehavior, which needs > to be set to 'true' for the query to work correctly on recent J/Connector > versions.

Re: Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-12 Thread Pid *
On 13 Dec 2011, at 03:27, Warren Bell wrote: > Here are all the jars in my app. There are a lot. The jars that came in > as dependencies of smooks are: > > milyn-smooks-csv-1.5.jar > openscv-1.8.jar > milyn-smooks-flatfile-1.5.jar > milyn-smooks-javabean-1.5.jar > milyn-smooks-core-1.5.jar > mily