Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Pieter Temmerman
Ok, then it's not an option. I thought it shut down just after a short while. I'm out of ideas... On Thu, 2009-02-12 at 18:38 +0100, Adlane ACHAB wrote: > I think that will produce a hugh log file,The problem is that, tomcat didn't > shutdown directly after start, it can run for one or two days a

javax.el.ELContext.getFunctionMapper().resolveFunction() returns null always

2009-02-12 Thread Najeed Ahmed Khan
Hi, I'm developing an application to parse EL scripts in a file and evaluate them. I am using Java Unified EL for the same. The value expressions are resolving fine however the functions are not. I'm using Tomcat 6.0.10 which is bundled with JBoss 4.2.3. The way I am evaluating the expressi

Bug?: tomcat does not log reqs without c-length or transfer-encoding

2009-02-12 Thread Ken Johanson
Hi, I noticed that requests (POST in the case) that are missing both the Content-Length and also Transfer-encoding, are not logged (as invalid) in Tomcat/6.0.18. Seems potential for stealth mis-use (DoS etc). I'm not sure of this is core or org.apache.catalina.valves.AccessLogValve (would ap

RE: ssl connector

2009-02-12 Thread epicwin...@hotmail.com
Thanks it makes sense now, i have made lots of progress. But of course, like usual, there are some complications. The application I am developing uses tomcat on the back end and a swing client on the front with the Spring HttpInvoker. So first I got it working without apr. After I set up

RE: WebdavServlet + custom DirContext = unexpected behaviour

2009-02-12 Thread Caldarale, Charles R
> From: Stephen Winnall [mailto:st...@winnall.ch] > Subject: WebdavServlet + custom DirContext = unexpected behaviour > > My Tomcat is as installed by NetBeans 6.5, that is > with a separate CATALINA_HOME and CATALINA_BASE. I'd strongly recommend that you first learn how to run Tomcat directly, ou

RE: ssl connector

2009-02-12 Thread Caldarale, Charles R
> From: epicwin...@hotmail.com [mailto:epicwin...@hotmail.com] > Subject: RE: ssl connector > > So I don't understand the docs where they suggest > defining connectors with apr and without. APR is an additional, non-Java Tomcat component that utilizes code from httpd for increased SSL performance

RE: accepting requests from outside the host?

2009-02-12 Thread Caldarale, Charles R
> From: Frank D. Greco [mailto:fgr...@crossroadstech.com] > Subject: accepting requests from outside the host? > > Can someone pls point me in the right direction on > how to configure tomcat to accept browser requests > from outside the box? No configuration necessary - unless you changed somethi

Re: org.apache.jasper.JasperException in compiling class for JSP (tomcat4.x, apache2, mod_jk)

2009-02-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shweta, On 2/12/2009 7:05 AM, Shweta Parakh -X (shparakh - Infosys at Cisco) wrote: > I am using Tomcat 4.1.30, Apache2.2.11 and mod_jk1.2.27. > Could someone please help me with below error ? > > I have JAVA_HOME variable set correctly. I also trie

RE: [OT] of the different methods to get a user-id

2009-02-12 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: [OT] of the different methods to get a user-id > > I don't understand that, either. I suppose this works differently in > different languages, though: > > return i++; > > return (i++); Not any that I'm aware of; the v

Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adlane, On 2/12/2009 12:38 PM, Adlane ACHAB wrote: > I think that will produce a hugh log file,The problem is that, tomcat didn't > shutdown directly after start, it can run for one or two days and stop > unexpectedly ... then look at the *end* of th

accepting requests from outside the host?

2009-02-12 Thread Frank D. Greco
I'm new at tomcat config, so go easy... :) I wanted to setup tomcat for some testing. So I installed tomcat on a new box at our hosting service (which hosts other prod websites of ours). I was able to see tomcat from a browser on the same box. I saw port 8080 (my config setting) associated

Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/12/2009 10:30 AM, Caldarale, Charles R wrote: >> From: Gregor Schneider [mailto:rc4...@googlemail.com] >> Subject: Re: Tomcat unexpectedly shuts down >> >> @Chuck: never heard about the OOM-killer. > > GIYF. A nasty beast, at best. Even

RE: Weblogic library and Tomcat

2009-02-12 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Weblogic library and Tomcat > > log4j:ERROR LogMananger.repositorySelector was null likely > due to error in class reloading, using NOPLoggerRepository. > > I'm a little unclear as to whether that log4j error message i

Re: [OT] of the different methods to get a user-id

2009-02-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/12/2009 1:22 PM, Caldarale, Charles R wrote: > > As Pid surmised, it's not Tomcat that is giving you different > answers. > Here's Tomcat's implementation of HttpServletRequest.getRemoteUser(): > > public String getRemoteUser() { >

Re: Failed installing 'Tomcat5' service

2009-02-12 Thread Len Popp
Is there another version of Tomcat (5.0 or 6.0) already installed? I have seen that error when installing two different versions of Tomcat because both versions try to use the same name for the service, which is not allowed. -- Len On Thu, Feb 12, 2009 at 17:15, boraldo wrote: > > Please help

Re: Re: Trouble with cluster and JMX

2009-02-12 Thread Eric B.
"Jorge Medina" wrote in message news:9dd36c99332ab7438f8d73c048d8c62c02096...@sneezy.ad.e-dialog.com... I did not manage to get more logging from the tribes package. Did you? I am using the default tomcat-juli configuration, I didn't get any ouput about sessions replicating other than the initi

Re: Trouble with cluster and JMX

2009-02-12 Thread Eric B.
>>> did you mark your webapp >>> >> >> Crap. Now that you mention it, I think I forgot to do that. Will have >> to check up on that tomorrow. However, after a bunch of fiddling around, >> putting the Manager within the element got session replication >> working, even if it isn't marked as .

RE: ssl connector

2009-02-12 Thread epicwin...@hotmail.com
Thanks. So I don't understand the docs where they suggest defining connectors with apr and without. They show examples of 3 different connectors: org.apache.coyote.http11.Http11Protocol,org.apache.coyote.http11.Http11NioProtocol and org.apache.coyote.http11.Http11AprProtocol. Do I need to d

WebdavServlet + custom DirContext = unexpected behaviour

2009-02-12 Thread Stephen Winnall
I'm developing my first ever servlet for Tomcat 6.0.18 under Mac OS X 10.5.6 with Java 1.5.0_16. I've used Tomcat a lot with Cocoon and I know Java reasonably well. I'd like to extend the standard WebdavServlet that comes with Tomcat to access data from a relational database using JDBC. I'v

Re: ssl problems

2009-02-12 Thread Anurag Kapur
You also need a .keystore file (if you are on default settings, then in the users home directory). Read more on it here: http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html Anurag -- Anurag Kapur Associate - Technology, Sapient Co

ssl problems

2009-02-12 Thread epicwin...@hotmail.com
First off unfortunately on this install I am using tomcat on windows, i know boo hiss... But I just installed the latest tomcat 6.0.18 and am having a problem with ssl. All I did was added these lines to the originally installed server.xml file: And I get this weird error telling me it can't

Re: unable to connect to mysql on remote server

2009-02-12 Thread Gregor Schneider
Sorry, should have been mysql -h YOUR_HOST_HERE -u USER -p 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: unable to connect to mysql on remote server

2009-02-12 Thread Gregor Schneider
By default, MySQL only listens on localhost. If you have configured MySQL to listen for remote connections, happy getting hacked... However, to solve your issue: - Make sure you can connect to the remote MySQL from the server where you're running Tomcat: mysql -h YOUR_HOST_HERE - u USER -p If t

Re: deploying web application on remote server

2009-02-12 Thread Sneha Manohar
Hi  Anurag ,  are you from India ..Thanks for your reply --- On Fri, 13/2/09, Anurag Kapur wrote: From: Anurag Kapur Subject: Re: deploying web application on remote server To: "Tomcat Users List" , sneha_hams...@yahoo.co.in Date: Friday, 13 February, 2009, 5:14 AM >I try to load driver ""c

unable to connect to mysql on remote server

2009-02-12 Thread Sneha Manohar
Hi , I am trying to connect to mysql on remote server using following code Class.forName("com.mysql.jdbc.Driver").newInstance();      String connectionURL = "jdbc:mysql://remoteHostIp:3306/test";         Connection connection = DriverManager.getConnection(connectionURL, "root", "")

Re: deploying web application on remote server

2009-02-12 Thread Anurag Kapur
>I try to load driver ""com.mysql.jdbc.Driver" , I have put "mysql-connector-java-5.1.5-bin" in WEB-INF /lib folder , I get class not found >exception error . Tomcat filters out all files with except those with a ".jar" extension in a lib folder. Any file except a *.jar will be ignored in the WEB

Re: Oracle connection pooling

2009-02-12 Thread Anurag Kapur
ds = (DataSource)context.lookup("java:/comp/env/jdbc/GFDataSource"); The above works fine for me as well. But your original email mentions that you have tried it. That's weird! Anyway, try the attributes Jorge mentioned. Your context.xml /server.xml definitions look like a problem to me. The cod

Re: deploying web application on remote server

2009-02-12 Thread Pid
Sneha Manohar wrote: > Hi , > Thanks for your reply , remote server is on ubuntu Operating system . > Version of tomcat - 6 > Version of java - jdk1.6. > > I try to load driver ""com.mysql.jdbc.Driver" , I have put > "mysql-connector-java-5.1.5-bin" in WEB-INF /lib folder , I get class not >

RE: Hello

2009-02-12 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Hello > > Vista 32-bit -> 32-bit Java JDK or JRE > Vista 64-bit -> 64-bit Java JDK or JRE Not necessarily true. I run both 32- and 64-bit versions of the JVM on my Vista 64 box, because some browsers only come in 32-bit versions and t

Re: Problems with Tomcat as service on Windows Server 2003

2009-02-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 monesseldeur, On 2/12/2009 3:47 PM, monesseldeur wrote: > I experience that it's not that simple to find a freeware pdf viewer that can > be run headless from the command line. But I keep looking on the net. > > Any suggestion is welcome. If you hav

Re: Weblogic library and Tomcat

2009-02-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark and Mikolaj, On 2/12/2009 6:19 AM, Mark Thomas wrote: > Mikolaj Rydzewski wrote: >> Mark Thomas wrote: >>> As well as JDBC drivers, logging frameworks are frequent culprits for >>> causing this. >>> >> What about commons-logging and log4j? >>

Re: Apache/mod_jk serves random files from tomcat

2009-02-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yuval, On 2/12/2009 3:12 AM, Yuval Perlov wrote: > I actually upgraded from mod_jk 1.2.26 to 27 to try and make the problem > go away. Ha! Okay. Sorry for a bad tip. ;) So, I'm definitely not going to be able to help you from here on out, but I know

Re: Failed installing 'Tomcat5' service

2009-02-12 Thread André Warnier
boraldo wrote: Please help me with this problem. From this message I even can't understand what is going wrong. Neither can we, unfortunately. We're good, but not /that/ good. That's a bit short in terms of information. You may want to have a look at the Windows Event logs, to see if ther

RE: Oracle connection pooling

2009-02-12 Thread Propes, Barry L
Yeah -- looked like an odd port to me, too -- I've only seen 1521, 1526 and 1527 before. I figured his SID was just a generic placeholder for his real SID. -Original Message- From: Jorge Medina [mailto:jmed...@e-dialog.com] Sent: Thursday, February 12, 2009 4:12 PM To: Tomcat Users

Re: deploying web application on remote server

2009-02-12 Thread Sneha Manohar
Hi , Thanks for your reply ,  remote server is on ubuntu Operating system . Version of tomcat - 6 Version of java - jdk1.6.   I  try to load driver ""com.mysql.jdbc.Driver" , I have put "mysql-connector-java-5.1.5-bin" in WEB-INF /lib folder , I get class not found exception error .   I wish to

RE: Oracle connection pooling

2009-02-12 Thread Propes, Barry L
Mine differs slightly, though I see you're obviously on a diff. version of Tomcat than I am. Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); // Look up our data source DataSource ds = (DataSource) envCtx.lookup("jdbc/myoracle"); // Allocate an

Re: [OT] Problems with Tomcat as service on Windows Server 2003

2009-02-12 Thread André Warnier
monesseldeur wrote: Yes I know but at least I have a few more options to check when I look at viewers =^D awarnier wrote: m I have now marked this "off-ttopic", because it is getting a bit far from Tomcat issues.. You are running Tomcat under Windows. On the other hand, on my Windows work

Failed installing 'Tomcat5' service

2009-02-12 Thread boraldo
Please help me with this problem. >From this message I even can't understand what is going wrong. I'm installing Tomcat 5.5.17 as a Service on Windows Vista Home Basic -- View this message in context: http://www.nabble.com/Failed-installing-%27Tomcat5%27-service-tp21986081p21986081.html Sent fr

RE: Oracle connection pooling

2009-02-12 Thread Jorge Medina
Is your Oracle database port and is the name of your SID "SID"? We use Oracle jdbc driver with Oracle 10g. I set the attributes on the resource to: type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver" and no factory -Original Message- From: Hamacher, Eric [

Re: Problems with Tomcat as service on Windows Server 2003

2009-02-12 Thread André Warnier
monesseldeur wrote: Yes I know but at least I have a few more options to check when I look at viewers =^D awarnier wrote: m I also found this somewhere : AcroRd32.exe filename - Executes the Reader and displays a file.. AcroRd32.exe /p filename - Executes the Reader and prints a file.. **

RE: Oracle connection pooling

2009-02-12 Thread Jorge Medina
Try ds = (DataSource)context.lookup("java:/comp/env/jdbc/GFDataSource"); -Original Message- From: Hamacher, Eric [mailto:eric_hamac...@gallup.com] Sent: Thursday, February 12, 2009 3:52 PM To: users@tomcat.apache.org Subject: Oracle connection pooling Hello: I am in a bind. I am get

RE: Re: Trouble with cluster and JMX

2009-02-12 Thread Jorge Medina
I did not manage to get more logging from the tribes package. Did you? I am using the default tomcat-juli configuration, I didn't get any ouput about sessions replicating other than the initial startup messages. -Original Message- From: Jorge Medina [mailto:jmed...@e-dialog.com] Sent:

Re: Problems with Tomcat as service on Windows Server 2003

2009-02-12 Thread monesseldeur
Yes I know but at least I have a few more options to check when I look at viewers =^D awarnier wrote: > > m > -- View this message in context: http://www.nabble.com/Problems-with-Tomcat-as-service-on-Windows-Server-2003-tp21965181p21985418.html Sent from the Tomcat - User mailing list archiv

Re: Hello

2009-02-12 Thread André Warnier
Okey Kene wrote: Hi, Am using windows vista and i wish to know what version of apache tomcat to download. Smartass answer : You can download any version you like, using IE or Firefox. ;-) .. Less smartass : If you intend to also run Tomcat under Vista : (and as a redemption for the

Re: Problems with Tomcat as service on Windows Server 2003

2009-02-12 Thread André Warnier
monesseldeur wrote: I experience that it's not that simple to find a freeware pdf viewer that can be run headless from the command line. But I keep looking on the net. Any suggestion is welcome. if it is to run headless/gui-less, I suggest you look for a pdf printer however. A viewer would be

Oracle connection pooling

2009-02-12 Thread Hamacher, Eric
Hello: I am in a bind. I am getting: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:770) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.naming.SelectorContext.loo

Re: Problems with Tomcat as service on Windows Server 2003

2009-02-12 Thread monesseldeur
I experience that it's not that simple to find a freeware pdf viewer that can be run headless from the command line. But I keep looking on the net. Any suggestion is welcome. -- View this message in context: http://www.nabble.com/Problems-with-Tomcat-as-service-on-Windows-Server-2003-tp219651

Re: Hello

2009-02-12 Thread Bill Davidson
Okey Kene wrote: Am using windows vista and i wish to know what version of apache tomcat to download. Are you planning to write webapps or are you only wishing to deploy webapps you've acquired from other sources? If you wish to learn to write JEE webapps, then I recommend the latest version (

RE: Hello

2009-02-12 Thread Caldarale, Charles R
> From: Mehrotra, Anurag [mailto:amehro...@telebright.com] > Subject: RE: Hello > > If you are using vista 64 bit, do not use the windows installer/exe. Not true, the installer works fine on my Vista 64 box. The tomcat6.exe program in the installer (and also in the .zip download) is set up for a

RE: Hello

2009-02-12 Thread Mehrotra, Anurag
If you are using vista 64 bit, do not use the windows installer/exe. Instead unzip the tomcat zip file and then create shortcuts to startup and shutdown batch file found under ../bin folder. You will also have to install JRE 1.5.0. Tomcat complained about the JRE when I tried using the 64 bit J

Re: Hello

2009-02-12 Thread Steve
Caldarale, Charles R wrote: From: Okey Kene [mailto:keneo...@yahoo.com] Subject: Hello Am using windows vista and i wish to know what version of apache tomcat to download. Resisting the temptation to answer "42", .. i was going to say the unisex version. but i did answer more appropriately.

Re: deploying web application on remote server

2009-02-12 Thread Kees Jan Koster
Dear sneha, I have developed web application using netbeans , I wish to deploy on remote server . I have placed files under / webapps directory of remote server. Tomcat is unable to locate libraries . how do I make tomcat locate libraries which are under WEB-INF/lib folder Why don't you

RE: Hello

2009-02-12 Thread Caldarale, Charles R
> From: Okey Kene [mailto:keneo...@yahoo.com] > Subject: Hello > > Am using windows vista and i wish to know what version of > apache tomcat to download. Resisting the temptation to answer "42", you should be aware that Tomcat is pure Java, so any of the downloadable packages are acceptable for u

Re: Hello

2009-02-12 Thread Steve
Okey Kene wrote: Hi, Am using windows vista and i wish to know what version of apache tomcat to download. cheers! ** ** ** ** * * /Regards.../ /Okey Kene / either 5.x or 6.0 64bit or 32 b

Re: Hello

2009-02-12 Thread Kees Jan Koster
Dear Okey, Am using windows vista and i wish to know what version of apache tomcat to download. Any version you like. -- Kees Jan http://java-monitor.com/forum/ kjkos...@kjkoster.org 06-51838192 Rule 1 for being in a hole: stop digging. --

Re: JSP Bean not working

2009-02-12 Thread David Smith
Caldarale, Charles R wrote: >> From: David Smith [mailto:d...@cornell.edu] >> Subject: Re: JSP Bean not working >> >> it's highly recommended that all classes be in a package. >> > > For JSPs, it's not just recommended, it's required by the spec. Servlets can > get away with an empty packag

Hello

2009-02-12 Thread Okey Kene
Hi, Am using windows vista and i wish to know what version of apache tomcat to download.cheers! Regards...Okey Kene   

RE: JSP Bean not working

2009-02-12 Thread Caldarale, Charles R
> From: David Smith [mailto:d...@cornell.edu] > Subject: Re: JSP Bean not working > > it's highly recommended that all classes be in a package. For JSPs, it's not just recommended, it's required by the spec. Servlets can get away with an empty package, JSPs can't. - Chuck THIS COMMUNICATION

Re: deploying web application on remote server

2009-02-12 Thread Pid
Sneha Manohar wrote: > Hi , > > I have developed web application using netbeans , I wish to deploy on remote > server . > I have placed files under / webapps directory of remote server. Tomcat is > unable to locate libraries . how do I make tomcat locate libraries which are > under WEB-INF/l

RE: JSP Bean not working

2009-02-12 Thread Caldarale, Charles R
> From: John Byrne [mailto:jby...@snbw.org] > Subject: JSP Bean not working > > 8: JSPs are not allowed to use the default (empty) package; you need to add a package statement to your Client class and include that in the JSP. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWI

Re: JSP Bean not working

2009-02-12 Thread David Smith
Have you considered putting Client in a package and then referencing the package? While people occasionally get away with packageless classes, it's highly recommended that all classes be in a package. --David John Byrne wrote: > > Hello all, > > > > I can’t get a simple form to work. The erro

RE: of the different methods to get a user-id

2009-02-12 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: of the different methods to get a user-id > > > I would expect > > request.getRemoteUser() == request.getUserPrincipal().getName() > > But there no literature which says that must be so. > > And the reality shows it isn't. > So somehow t

Re: strange problem w/ connection pool and Oracle

2009-02-12 Thread John Cartwright
Thanks to all who responded. Chuck seemed to hit the nail on the head - as soon as I removed the duplicate JDBC driver from the WEB-INF/lib, the problem went away. I didn't intend to have the duplicate driver there, it was the result of omitting the provided in my pom.xml. However, I wouldn'

deploying web application on remote server

2009-02-12 Thread Sneha Manohar
Hi ,   I have developed web application using netbeans , I wish to deploy on remote server . I have placed files under / webapps  directory of remote server. Tomcat is unable to locate libraries .  how do I make tomcat locate libraries which are under WEB-INF/lib folder   sneha Connect w

Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Adlane ACHAB
I think that will produce a hugh log file,The problem is that, tomcat didn't shutdown directly after start, it can run for one or two days and stop unexpectedly 2009/2/12 Pieter Temmerman > What about attaching strace to the tomcat process? > Try executing "strace ./bin/catalina.sh run" > > On T

Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Pieter Temmerman
What about attaching strace to the tomcat process? Try executing "strace ./bin/catalina.sh run" On Thu, 2009-02-12 at 18:01 +0100, Adlane ACHAB wrote: > no, I check the var/log/syslog, no trace of oom killer > > 2009/2/12 Gregor Schneider > > > Again: > > > > Anything in /var/log/syslog? > > >

Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Adlane ACHAB
no, I check the var/log/syslog, no trace of oom killer 2009/2/12 Gregor Schneider > Again: > > Anything in /var/log/syslog? > > If OOMKiller was invoked, there should be somehhing like > > Dec 16 10:31:17 velo kernel: [611084.971774] kded invoked oom-killer: > gfp_mask=0x1201d2, order=0, oomkill

Re: Tomcat unexpectedly shuts down

2009-02-12 Thread André Warnier
Gregor Schneider wrote: @Chuck: never heard about the OOM-killer. The Tomcat security team have been trying to find this guy for several years now, but they're being very discreet about it. One of the difficulties is that he cleans up after himself by wiping out any memory of its interventi

Re: of the different methods to get a user-id

2009-02-12 Thread Pid
André Warnier wrote: > Tim Funk wrote: >> Personally - >> >> I would expect >> request.getRemoteUser() == request.getUserPrincipal().getName() >> >> But there no literature which says that must be so. > > And the reality shows it isn't. > So somehow there must be two distinct underlying "thingies

Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Gregor Schneider
Again: Anything in /var/log/syslog? If OOMKiller was invoked, there should be somehhing like Dec 16 10:31:17 velo kernel: [611084.971774] kded invoked oom-killer: gfp_mask=0x1201d2, order=0, oomkilladj=0 Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp:

Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Adlane ACHAB
but I think that we have enough memory,so the Linux OOM killer will not act. will do? 2009/2/12 Caldarale, Charles R > > From: Adlane ACHAB [mailto:adlane.ac...@gmail.com] > > Subject: Re: Tomcat unexpectedly shuts down > > > > no, nothing about shutdown in tomcat logs, it just abruptly stop > >

Re: Running tomcat from my code

2009-02-12 Thread André Warnier
Mikolaj Rydzewski wrote: André Warnier wrote: Anyway, to get back to the OP's question thus, that was not really a simple answer to his problem, was it ? He didn't say he needs simple answer. Not in so many words, Pan Mikolaj, but the general tone of the question kind of implied that. Which

RE: Weblogic library and Tomcat

2009-02-12 Thread Caldarale, Charles R
> From: Pieter Temmerman [mailto:ptemmerman@sadiel.es] > Subject: Re: Weblogic library and Tomcat > > I would rather expect my debug message before seeing the app redeploy. Sounds normal to me; the redeployment request triggers the call to the contextDestroyed() method. You might want to log

RE: Tomcat unexpectedly shuts down

2009-02-12 Thread Caldarale, Charles R
> From: Adlane ACHAB [mailto:adlane.ac...@gmail.com] > Subject: Re: Tomcat unexpectedly shuts down > > no, nothing about shutdown in tomcat logs, it just abruptly stop Then it is almost definitely the Linux OOM killer. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRI

Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Adlane ACHAB
no, nothing about shutdown in tomcat logs, it just abruptly stop I will check for jar files 2009/2/12 Caldarale, Charles R > > From: Adlane ACHAB [mailto:adlane.ac...@gmail.com] > > Subject: Re: Tomcat unexpectedly shuts down > > > > no, i grep "System.exit" and no result found > > And did you

Re: Weblogic library and Tomcat

2009-02-12 Thread Pieter Temmerman
Thanks Gregor, I'll pass that info on to the developer. Btw, I wrote a small contextListener just to play with it. In the contextDestroyed method, I print a message. The weird thing is that in catalina.out I first see a message that my application is redeploying (when I redeploy obviously) before

RE: Tomcat unexpectedly shuts down

2009-02-12 Thread Caldarale, Charles R
> From: Adlane ACHAB [mailto:adlane.ac...@gmail.com] > Subject: Re: Tomcat unexpectedly shuts down > > no, i grep "System.exit" and no result found And did you look inside all jars that your webapps might be using as libraries? You can disable System.exit() with a SecurityManager, if desired. D

RE: Re: Trouble with cluster and JMX

2009-02-12 Thread Jorge Medina
To get more verbose messages, the documentation mentions to use the key org.apache.catalina.tribes.MESSAGES I am currently trying it... -Jorge -Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of Eric B. Sent: Wednesday, February 11, 2009 11:55 PM To: users@tomcat.apa

Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Adlane ACHAB
I don't think that's a memory problem [image: daily graph] 2009/2/12 Caldarale, Charles R > > From: Adlane ACHAB [mailto:adlane.ac...@gmail.com] > > Subject: Re: Tomcat unexpectedly shuts down > > > > no, idon't find any exception on logs > > There won't be any messages in the Tomcat logs, sinc

RE: Tomcat unexpectedly shuts down

2009-02-12 Thread Caldarale, Charles R
> From: Gregor Schneider [mailto:rc4...@googlemail.com] > Subject: Re: Tomcat unexpectedly shuts down > > @Chuck: never heard about the OOM-killer. GIYF. A nasty beast, at best. > But what I almost can't believe is that if such a > thing exists, that it doesn't carve it's footprints > into syslo

Re: Running tomcat from my code

2009-02-12 Thread Mikolaj Rydzewski
André Warnier wrote: Anyway, to get back to the OP's question thus, that was not really a simple answer to his problem, was it ? He didn't say he needs simple answer. -- Mikolaj Rydzewski - To unsubscribe, e-mail: users-unsu

Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Gregor Schneider
What's Linux /var/log/syslog saying? Anything in there? @Chuck: never heard about the OOM-killer. But what I almost can't believe is that if such a thing exists, that it doesn't carve it's footprints into syslog... Puzzled... Gregor -- just because your paranoid, doesn't mean they're not after

Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Adlane ACHAB
no, i grep "System.exit" and no result found 2009/2/12 Caldarale, Charles R > > From: Mark Thomas [mailto:ma...@apache.org] > > Subject: Re: Tomcat unexpectedly shuts down > > > > > The server is running along fine, and then all of > > > a sudden, for no apparent reason that we can find, > > > t

RE: Tomcat unexpectedly shuts down

2009-02-12 Thread Caldarale, Charles R
> From: Adlane ACHAB [mailto:adlane.ac...@gmail.com] > Subject: Re: Tomcat unexpectedly shuts down > > no, idon't find any exception on logs There won't be any messages in the Tomcat logs, since the kernel just terminates the entire selected process without warning when the OOM killer fires up.

RE: Tomcat unexpectedly shuts down

2009-02-12 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:ma...@apache.org] > Subject: Re: Tomcat unexpectedly shuts down > > > The server is running along fine, and then all of > > a sudden, for no apparent reason that we can find, > > the server shuts down. > > Linux OOM killer? Or perhaps code in one of your webapps calling

RE: Tomcat unexpectedly shuts down

2009-02-12 Thread Peter Crowther
> From: Adlane ACHAB [mailto:adlane.ac...@gmail.com] > Tomcat VersionJVM VersionJVM VendorOS NameOS VersionOS > ArchitectureApache > Tomcat/6.0.181.6.0-b105Sun Microsystems Inc.Linux2.6.23.12i386 > > > Essentially what happens is this: > > The server is running along fine, and then all of a sudden,

Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Adlane ACHAB
no, idon't find any exception on logs 2009/2/12 Mark Thomas > Adlane ACHAB wrote: > > hi, below is my tomcat config > > > > Tomcat VersionJVM VersionJVM VendorOS NameOS VersionOS ArchitectureApache > > Tomcat/6.0.181.6.0-b105Sun Microsystems Inc.Linux2.6.23.12i386 > > > > > > Essentially what ha

Re: Tomcat unexpectedly shuts down

2009-02-12 Thread Mark Thomas
Adlane ACHAB wrote: > hi, below is my tomcat config > > Tomcat VersionJVM VersionJVM VendorOS NameOS VersionOS ArchitectureApache > Tomcat/6.0.181.6.0-b105Sun Microsystems Inc.Linux2.6.23.12i386 > > > Essentially what happens is this: > > The server is running along fine, and then all of a sudd

Tomcat unexpectedly shuts down

2009-02-12 Thread Adlane ACHAB
hi, below is my tomcat config Tomcat VersionJVM VersionJVM VendorOS NameOS VersionOS ArchitectureApache Tomcat/6.0.181.6.0-b105Sun Microsystems Inc.Linux2.6.23.12i386 Essentially what happens is this: The server is running along fine, and then all of a sudden, for no apparent reason that we can

RE: Running tomcat from my code

2009-02-12 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Running tomcat from my code > > > You can embed Tomcat in your code as well. > > Can you elaborate a bit on the above, in just 2 lines ? > Don't go too deep in Java, or I would be lost. You have to be lost before you can be found: http:

Re: of the different methods to get a user-id

2009-02-12 Thread André Warnier
Tim Funk wrote: Personally - I would expect request.getRemoteUser() == request.getUserPrincipal().getName() But there no literature which says that must be so. And the reality shows it isn't. So somehow there must be two distinct underlying "thingies" in Tomcat where the two different answe

Re: of the different methods to get a user-id

2009-02-12 Thread Tim Funk
Personally - I would expect request.getRemoteUser() == request.getUserPrincipal().getName() But there no literature which says that must be so. So in that absence of that - you'll probably need a RemoteUserHackFilter to unify the various behaviors and then you standardize on one model and Rem

Re: Problem with lib version jasper-el.jar on tomcat 6.0.18

2009-02-12 Thread ruben rubens
Thanks Mark, you helped me! 2009/2/12 Mark Thomas > ruben rubens wrote: > > Hello, > > > > I found a posible bug or weird performance with tomcat 6.0.18. I'm using > > faces for MVC, when the context is setting the values for bean atributes > > from an empty input (input with null value) I don´

Re: Weblogic library and Tomcat

2009-02-12 Thread Gregor Schneider
On Thu, Feb 12, 2009 at 1:19 PM, Pieter Temmerman wrote: > >> Is your Webapp using RMI to communicate with WebLogic? > Don't know if this will answer your question, but I see that the > following class is loaded: > > weblogic.iiop.PortableRemoteObjectDelegateImpl > |--proDelegate of javax.rmi.Po

Re: Problem with lib version jasper-el.jar on tomcat 6.0.18

2009-02-12 Thread Mark Thomas
ruben rubens wrote: > Hello, > > I found a posible bug or weird performance with tomcat 6.0.18. I'm using > faces for MVC, when the context is setting the values for bean atributes > from an empty input (input with null value) I don´t finally get a null value > as I expect, I finally get a primit

Re: Weblogic library and Tomcat

2009-02-12 Thread Mikolaj Rydzewski
Pieter Temmerman wrote: In my case (according to the catalina.out errors), the problem is most certainly caused by references to/from the weblogic classes. INFO: Illegal access: This instance of the web application has already been stopped. Could not load weblogic.common.T3MiscLogger. java.

Re: Running tomcat from my code

2009-02-12 Thread André Warnier
Mikolaj Rydzewski wrote: André Warnier wrote: I'm not so good at Tomcat, and even less at Java. So this is pure curiosity on my part, but maybe it could also interest the OP. Can you elaborate a bit on the above, in just 2 lines ? Don't go too deep in Java, or I would be lost. Use google ;-)

of the different methods to get a user-id

2009-02-12 Thread André Warnier
Hi. I am currently testing/comparing two user authentication methods for webapps, in a Windows NTLM context. Despite my abysmal lack of knowledge in matters Java and Tomcat, I notice a difference between the two, and I would like to ask here if it matters, and if yes how. Both authentication m

Re: Running tomcat from my code

2009-02-12 Thread Mikolaj Rydzewski
André Warnier wrote: I'm not so good at Tomcat, and even less at Java. So this is pure curiosity on my part, but maybe it could also interest the OP. Can you elaborate a bit on the above, in just 2 lines ? Don't go too deep in Java, or I would be lost. Use google ;-) http://www.onjava.com/pu

Re: Filter versus Valve

2009-02-12 Thread Jake Vang
The code for the Filter implementation: public class SimpleFilter implements Filter { public void destroy() { } public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { if

  1   2   >