NPE on tomcat startup within jboss

2006-07-02 Thread y360 y360
Getting occasional NPE immediately after jboss startup, any idea what's causing this ? 2006-04-03 08:56:02,687 INFO {main} [org.jboss.system.server.Server] (ServerImpl.java:475) JBoss (MX MicroKernel) [4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231751)] Started in 7m:6s:516ms 2006-04-03

list of sessions

2006-07-02 Thread tanja Fuhr
Hello, I would like to get list of sessions, which Tomcat are managed. I see, that I can use method findSessions() of StandardManager class, but I don't how can I get an instance of this class. All what I have is HttpServletRequest and HttpSession Thanks

Re: log4j in webapp hanging Tomcat?

2006-07-02 Thread Avi Deitcher
Bob, Thanks. Unfortunately, I am running it on my laptop (Windows) where I need to keep it for now as a dev environment. I run a small consulting business, this is an on the side product that need to be run whenever I can catch time. I would love to be able to get Tomcat to tell me what it is

Re: log4j in webapp hanging Tomcat?

2006-07-02 Thread Boris Unckel
Hello Avi, Avi Deitcher wrote: Bob, Thanks. Unfortunately, I am running it on my laptop (Windows) where I need to keep it for now as a dev environment. I run a small consulting business, this is an on the side product that need to be run whenever I can catch time. I would love to be able to

Re: log4j in webapp hanging Tomcat?

2006-07-02 Thread Avi Deitcher
Boris, Thank you, too. The main issue here is that I *do* want to separate my webapp's logging from Tomcat's, so it can be fully self-contained. Hence, I included log4j.jar and log4j.properties within my own webapp, which should make a lot of sense. In the development case, I am pushing the logs

Re: log4j in webapp hanging Tomcat?

2006-07-02 Thread Avi Deitcher
Add to the weirdness. Following http://tomcat.apache.org/tomcat-5.5-doc/logging.html I decided to try and enable log4j logging in Tomcat itself via commons/classes/log4j.properties and common/lib/log4j-1.2.8.jar, figuring it would help me narrow it down. This, *too* causes Tomcat to hang, at this

Re: log4j in webapp hanging Tomcat?

2006-07-02 Thread Boris Unckel
Hello Avi, Avi Deitcher wrote: Boris, Thank you, too. The main issue here is that I *do* want to separate my webapp's logging from Tomcat's, so it can be fully self-contained. Hence, I included log4j.jar and log4j.properties within my own webapp, which should make a lot of sense. In the

Re: log4j in webapp hanging Tomcat?

2006-07-02 Thread Avi Deitcher
Boris, Thank you, I should get to trying it this evening EDT. One other thing I will try it enabling logging in core Tomcat from JDK logging as opposed to log4j, to see if I can get Tomcat to tell me where it is hanging. In the same vein, do you know if there is a truss-like equivalent for

Re: log4j in webapp hanging Tomcat?

2006-07-02 Thread Pid
Dumb question perhaps, but has your disk got enough space? Avi Deitcher wrote: Boris, Thank you, I should get to trying it this evening EDT. One other thing I will try it enabling logging in core Tomcat from JDK logging as opposed to log4j, to see if I can get Tomcat to tell me where it

Suppressing log output to ERROR

2006-07-02 Thread Garth Patil
Hi, I'm trying to limit the logging output to catalina.out by the org.apache.catalina.core classes to only ERROR and FATAL. I changed the value of org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level to ERROR, but there was no effect. What am I missing? Best, Garth

Re: Suppressing log output to ERROR

2006-07-02 Thread Boris Unckel
Hi Garth, Garth Patil wrote: Hi, I'm trying to limit the logging output to catalina.out by the org.apache.catalina.core classes to only ERROR and FATAL. I changed the value of org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level to ERROR, but there was no effect. What am I

Re: Suppressing log output to ERROR

2006-07-02 Thread Garth Patil
Thanks Boris! One follow up question. That works for ERROR and FATAL, but is there any way to suppress ERROR and only show FATAL? Best, Garth On 7/2/06, Boris Unckel [EMAIL PROTECTED] wrote: Hi Garth, Garth Patil wrote: Hi, I'm trying to limit the logging output to catalina.out by the

RE: Suppressing log output to ERROR

2006-07-02 Thread John
How would that translate to doing the same thing with embedded Tomcat? -Original Message- From: Boris Unckel [mailto:[EMAIL PROTECTED] Sent: Sunday, July 02, 2006 1:08 PM To: Tomcat Users List Subject: Re: Suppressing log output to ERROR Hi Garth, Garth Patil wrote: Hi, I'm trying

Re: log4j in webapp hanging Tomcat?

2006-07-02 Thread Avi Deitcher
Not a dumb question at all; isn't it often the obvious? I actually am low on disk space, but not low enough that it should matter. Still, I will clean up an extra 1GB just to see. Pid wrote: Dumb question perhaps, but has your disk got enough space? Avi Deitcher wrote: Boris, Thank you, I

Re: log4j in webapp hanging Tomcat?

2006-07-02 Thread Avi Deitcher
I misspoke. Over 2GB free on the disk. Not a ton, but more than enough for logs. Thanks for the suggestion, though. Pid wrote: Dumb question perhaps, but has your disk got enough space? Avi Deitcher wrote: Boris, Thank you, I should get to trying it this evening EDT. One other thing I

Re: log4j in webapp hanging Tomcat?

2006-07-02 Thread Avi Deitcher
Hello Boris, Not much luck. I verified that I am running the latest versions of commons-logging and log4j. I kept log4j direct in the webapp to avoid any chance of commons-logging getting confused, as described in the article below. I also removed any reference to log4j or commons-logging from

Re: log4j in webapp hanging Tomcat?

2006-07-02 Thread Avi Deitcher
To add to it: I kept two webapps running and had them System.out.println(logger), where each is in the same category/class, to check that each one is running its own; it is. I then removed every webapp I could and ran it again with just the simple filter + index.jsp to check. Same result. Sigh.

Re: log4j in webapp hanging Tomcat?

2006-07-02 Thread Wade Chandler
--- Avi Deitcher [EMAIL PROTECTED] wrote: To add to it: I kept two webapps running and had them System.out.println(logger), where each is in the same category/class, to check that each one is running its own; it is. I then removed every webapp I could and ran it again with just the simple

Re: log4j in webapp hanging Tomcat?

2006-07-02 Thread Avi Deitcher
Wade, Definitely no CPU spin. I also checked for some weird JDK dependency (say, 1.5.0 vs 1.5.0_02 vs 1.5.0_07), but all give the same. I modifed logging.properties in conf/ and had it dump ALL. Here is where it hangs, right after I had it spit out the first logger.debug(some message) in one of

Re: log4j in webapp hanging Tomcat?

2006-07-02 Thread Avi Deitcher
And Wade Chandler definitely wins the prize! I spent days tracking down, comparing exactly how NetBeans starts it up vs. how I do it from command prompt, and everything is identical. However, NetBeans, when it starts, grabs stdout and pipes it to its own in-memory cache (not sure exactly how).

Saving server.xml

2006-07-02 Thread James McIntosh
Hi, I am having trouble with saving the server.xml file after it has been modified using the host-mananger and manager webapps. I have looked through the source code of the 'admin' webapp and found that it calls: Registry registry = Registry.getRegistry(); MBeanServer server =

Serving CSS files from a certain URL

2006-07-02 Thread Alec Swan
Hi, I have a problem I've been struggling with for the last couple of hours. Basically, I need to configure Tomcat (preferably using web.xml) to server requests for CSS pages from a certain context path. For example, I want Tomcat to serve the request for /css/styles.css from

Re: APR not found under Linux

2006-07-02 Thread Rajeev N. Jha
After reading the entire thread, i am out of ideas as well ;o) stefan, please post your issue+ solution when you have solved it . Thanks Markus Schönhaber wrote: Stefan Wachter wrote: the ldd command outputs the following dependencies: libapr-1.so.0 =

Re: JDBC Realm for several webapp

2006-07-02 Thread Stanislav Komlenac
Citiram Stanislav Komlenac [EMAIL PROTECTED]: I want to have 2 web applications on my web server. Idea si to makde JDBC Realm unique for each web application. How can i do this? http://tomcat.apache.org/tomcat-5.5-doc/config/realm.html The Realm Component ... You may nest a Realm