Error with All threads (...) are currently busy on Red Hat

2004-08-06 Thread Brad McEvoy
Our tomcat server freezes intermittently, without any identifiable cause, giving a message like All threads (xxx) are currently busy, waiting. At first I assumed that some bug with our java code was causing requests to hang indefinitely and they were accumulating over time to cause this, but I've

RE: Error with All threads (...) are currently busy on Red Hat

2004-08-06 Thread Ralph Einfeldt
Create a thread dump to see how many threads you have and what they are doing. kill -QUIT tomcat pid This will just produce a thread dump and not stop tomcat. The output will get to catalina.out unless you have mapped stdout to a different file. -Original Message- From: Brad

RE: Problem with SSL configuration

2004-08-06 Thread binoy.patrick
Hi all, Can somebody help me in solving this? Regards Binoy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 05 August 2004 16:06 To: [EMAIL PROTECTED] Subject: RE: Problem with SSL configuration Hi, This is how my server.xml looks like Connector

RE: worker2.properties conf

2004-08-06 Thread Allistair Crossley
try the following out .. i've not tested it though :p [logger] level=INFO [logger.file:0] level=INFO file=d:\\jakarta-tomcat-5.0.25\\logs\\jk2.log [workerEnv:] info=Global server options timing=1 debug=0 logger=logger.file:0 [shm] file=d:\\jakarta-tomcat-5.0.25\\work\\jk2.shm size=1048576

Re: Problem with SSL configuration

2004-08-06 Thread Dennis Dai
On 8/6/2004 1:05 AM, [EMAIL PROTECTED] wrote: Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true Factory

RE: Problem with SSL configuration

2004-08-06 Thread binoy.patrick
Yes I tried that, still I get the same error. Binoy -Original Message- From: Dennis Dai [mailto:[EMAIL PROTECTED] Sent: 06 August 2004 09:12 To: Tomcat Users List Subject: Re: Problem with SSL configuration On 8/6/2004 1:05 AM, [EMAIL PROTECTED] wrote: Connector port=8443

Database connection

2004-08-06 Thread Bhaskar Jyoti Phukan
Hi! Thanks a lot for the reply. We have tried all this and also followed the tomcat doc but still not able to connect the application to the db2 database. Regards Bhaskar - Original Message - From: Pradeep Chauhan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent:

Where is the jk2 documentation gone ?

2004-08-06 Thread Francois JEANMOUGIN
Hi everyone, Sorry to bother you, but at the end of the page: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/ajp.html There is a broken link to: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/ It is not that I need a so special configuration at the time, but I am lost

RE: [SPAM_EMAIL] - Database connection - Found word(s) list error in the Text body.

2004-08-06 Thread Pradeep Chauhan
Ok then do one thing post your web.xml and server.xml -Original Message- From: Bhaskar Jyoti Phukan [mailto:[EMAIL PROTECTED] Sent: 06.08.2004 15:13 To: Tomcat Users List Subject: [SPAM_EMAIL] - Database connection - Found word(s) list error in the Text body. Hi! Thanks a lot for the

Re: Database connection

2004-08-06 Thread Bhaskar Jyoti Phukan
HI Thanks a lot. I am sending the server.xml and web.xml files below. Server.xml ?xml version=1.0 encoding=utf-8 ? - Server Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / -

Cannot get log4j logs into tomcat logs folder using relative mechanism

2004-08-06 Thread Allistair Crossley
Hi Guys, Our developers use the same log4j configuration file, but have separate instances of tomcat on the server. At the moment we have to do a search and replace for the File attribute to make sure the directory is correct per developer instance. At the moment this works for an instance ...

RE: [SPAM_EMAIL] - Re: Database connection - Found word(s) list error in the Text body.

2004-08-06 Thread Pradeep Chauhan
Hi , In GlobalResource you have declared 2 resource 1. EIRPDB1 2. jdbc/db2 In defination section you deifne EIRPDB1 and jdbc/db2 In web.xml you refer 'jdbc/db2' i guess you are using jdbc/db2 to connect to DB2 but you forget to copy paste the Context of you application where you

Re: classloader hangs

2004-08-06 Thread bgood
loadClass method, and it is not reporting anything, and to the best of my knowledge, an error should terminate the JVM right? No, it shouldn't. You can catch errors also by catching Throwable instead of Exception. Thanks very much for this bit of advice, as it turns out it was throwing

RE: Tomcat does not see web.xml, which is the part of the war file

2004-08-06 Thread Shapira, Yoav
Hi, The WAR structure looks good. Try unpacking it and copying the directory into Tomcat's webapps directory: that is, try deploying an unpacked webapp as opposed to a packed WAR, and see what happens. Yoav Shapira Millennium Research Informatics -Original Message- From: Piotr Galecki

RE: Cannot get log4j logs into tomcat logs folder using relative mechanism

2004-08-06 Thread Shapira, Yoav
Hi, You have to include the variable as ${varName} in your File attribute, e.g. ${user.dir}/logs/myLog. See http://marc.theaimsgroup.com/?l=log4j-userm=108609662415067w=2. However, I recommend a more robust approach. Maybe this is because I dislike relying on platform-specific settings like

RE: Where is the jk2 documentation gone ?

2004-08-06 Thread Shapira, Yoav
Hi, It's not a bother: thanks for reporting the broken link. I've fixed it in CVS and the site will be updated during our next release. For now, use the main JK documentation link (JK Documentation from the Reference section of the Tomcat 5 Docs home), or just bookmark

RE: Cannot get log4j logs into tomcat logs folder using relative mechanism

2004-08-06 Thread Allistair Crossley
Great, that worked, thanks. By the way Yoav, I have added the LogFactory.shutdown() to the context listeners and will be keeping an eye on whether the ThreadDeath problem occurs again. I'll update the bug next week with my findings. Cheers, Allistair -Original Message- From:

Re: classloader hangs

2004-08-06 Thread bgood
My attempts to abate this error are proving quite fruitless. So I was wondering... what is the preferred method to programatically reload a class in Tomcat? I've searched the web but I am stuck. Thanks Ben - To unsubscribe,

RE: Cannot get log4j logs into tomcat logs folder using relative mechanism

2004-08-06 Thread Shapira, Yoav
Hi, Good, I hope it works. Have a good weekend, Yoav Shapira Millennium Research Informatics -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, August 06, 2004 9:18 AM To: Tomcat Users List Subject: RE: Cannot get log4j logs into tomcat logs folder

RE: classloader hangs

2004-08-06 Thread Shapira, Yoav
Hi, You can simply set reloadable=true for your Context and Tomcat will monitor your classes and reload the webapp (not just the class) as needed. You can also programmatically invoke the Manager webapp and use its reload feature. Yoav Shapira Millennium Research Informatics -Original

Re: classloader hangs

2004-08-06 Thread bgood
You can simply set reloadable=true for your Context and Tomcat will monitor your classes and reload the webapp (not just the class) as needed. You can also programmatically invoke the Manager webapp and use its reload feature. What if these classes aren't located in the Tomcat directory?

RE: classloader hangs

2004-08-06 Thread Shapira, Yoav
Hi, Then you have to write your own custom Loader to handle this. But don't expect much help or support, as you're going outside the Servlet Spec and most people stop caring as much ;) Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL PROTECTED]

Re: classloader hangs

2004-08-06 Thread bgood
Why must I write a custom Loader, isn't URLClassLoader already suited for this task? What is it about URLClassLoader that makes it incompatable with Tomcat? Then you have to write your own custom Loader to handle this. But don't expect much help or support, as you're going outside the Servlet

RE: classloader hangs

2004-08-06 Thread Shapira, Yoav
Hi, URLClassLoader is not a reloader. Why did you get the idea it is? There's nothing in it that's incompatible with Tomcat, in fact Tomcat just extends it and uses its code. Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: classloader hangs

2004-08-06 Thread bgood
I apologize for not being clear the first time. My class loading scheme works by first loading classes with a URLClassLoader and then when the program wants to reload them, it creates a new URLClassLoader whose parent is the first URLClassLoader, thus staying within the delegation model of class

Source Control Ideas.

2004-08-06 Thread Anastasios Angelidis
Since this is a nice active list of plenty of developers and I have no other idea where I can post theses questions... My questions are concerning source control in general 1- Is there any good books, articles, web sites tutorials... 2- May I pick the brains of a few of you guys... Now here is

[OFF-TOPIC] RE: Source Control Ideas.

2004-08-06 Thread Shapira, Yoav
Hola, (or perhaps, Kalimera?) Since this is a nice active list of plenty of developers and I have no other idea where I can post theses questions... My questions are concerning source control in general We ask that you prepend [OFF-TOPIC] to the subject line of messages not related to Tomcat.

Re: [OFF-TOPIC] RE: Source Control Ideas.

2004-08-06 Thread Anastasios Angelidis
Shapira, Yoav wrote: Hola, (or perhaps, Kalimera?) Since this is a nice active list of plenty of developers and I have no other idea where I can post theses questions... My questions are concerning source control in general We ask that you prepend [OFF-TOPIC] to the subject line of

RE: [OFF-TOPIC] RE: Source Control Ideas.

2004-08-06 Thread Shapira, Yoav
Hola, But what happens, when both products depend/share functionality on this component simultanously. Product1 depends on version 1 of DB1. Product2 depends on version 2 of DB1. Substitute version in the above sentence with branch and this is supported by all modern source control systems.

Re: [OFF-TOPIC] RE: Source Control Ideas.

2004-08-06 Thread Robert Bateman
On Friday 06 August 2004 11:36 am, Anastasios Angelidis wrote: The general approach is to set up a separate component in source control for each component of your code that can be depended upon. All modern source control systems allow you to label branches, so you can have a DB1_1.0 label for

application not working on unix.

2004-08-06 Thread Shilpa Nalgonda
I am trying to deploy my prototype shoppingcart application onto linux environment , i am using apache tomcat4.0.4, and struts 1.1. The same application was deployed successfully on windows. I have copied prototype.war into /var/lib/tomcat4/webapps. restarted tomcat as /etc/init.d/tomcat4

Re: application not working on unix.

2004-08-06 Thread Robert Bateman
On Friday 06 August 2004 11:52 am, Shilpa Nalgonda wrote: I am trying to deploy my prototype shoppingcart application onto linux environment , i am using apache tomcat4.0.4, and struts 1.1. The same application was deployed successfully on windows. I have copied Did you by chance make *any*

Re: [OFF-TOPIC] RE: Source Control Ideas.

2004-08-06 Thread Anastasios Angelidis
Robert Bateman wrote: On Friday 06 August 2004 11:36 am, Anastasios Angelidis wrote: The general approach is to set up a separate component in source control for each component of your code that can be depended upon. All modern source control systems allow you to label branches, so you can

Problem Configuring Datasource With Tomcat !

2004-08-06 Thread sandeep tandon
Hi, We are using eclipse with tomcat to deploy our web application that uses oracle data source. Following steps were performed to get connection pool: 1) Changes in server.xml of tomcat , added these lines in application context Resource name=jdbc/JOBS_DataSource

RE: application not working on unix.

2004-08-06 Thread Shilpa Nalgonda
Nope i di dnot make any cnages there... -Original Message- From: Robert Bateman [mailto:[EMAIL PROTECTED] Sent: Friday, August 06, 2004 11:52 AM To: Tomcat Users List Subject: Re: application not working on unix. On Friday 06 August 2004 11:52 am, Shilpa Nalgonda wrote: I am trying to

RE: log4j SEVERE ThreadDeath in Tomcat 5.0.25

2004-08-06 Thread Allistair Crossley
Hi Yoav, I'm afraid no success using this method; public void contextDestroyed(ServletContextEvent scE) { LogManager.shutdown(); LogFactory.releaseAll(); logger.info(Renewals Application Destroyed); } The following stack trace

RE: log4j SEVERE ThreadDeath in Tomcat 5.0.25

2004-08-06 Thread Shapira, Yoav
Hi, Did you see this part: the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact) ? Yoav Shapira Millennium Research Informatics -Original

Hanging after 8 sendRedirect()s

2004-08-06 Thread J Ross Nicoll
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been going nuts trying to diagnose two applications I'm working on, which seem to crash if a user opens 8 (maybe 9) servlets that use sendRedirect(), in a row. These do not return anything to the user (to the extent of not retrieving a PrintWriter

null pointer --org.apache.commons.digester.Digester.getXMLReader(Digester.java:902)

2004-08-06 Thread Shilpa Nalgonda
I am trying to deploy my prototype shoppingcart application onto linux environment , i am using apache tomcat4.0.4, and struts 1.1. The same application was deployed successfully on windows. I have copied prototype.war into /var/lib/tomcat4/webapps. restarted tomcat as /etc/init.d/tomcat4

RE: Hanging after 8 sendRedirect()s

2004-08-06 Thread Shapira, Yoav
Hi, There might be some browser checks for this sort of stuff. I remember reading about a virus that repeatedly redirected a hidden frame to its own URL for reading session data (cookies), and subsequently Microsoft and other vendors putting safeguards in their browsers against this sort of

web.xml and servlets used in an app

2004-08-06 Thread Deepa Ramamurthy
Hello! Do I have to map all the servlets that my application uses in web.xml? I am using Tomcat 5.0 on Windows. I didn't have to do this on Tomcat 4.1 on Linux. Thanks. Deepa

RE: web.xml and servlets used in an app

2004-08-06 Thread Shapira, Yoav
Hi, http://jakarta.apache.org/tomcat/faq/misc.html#invoker You should map them all. If you really dislike that, comment the invoker servlet back in. Yoav Shapira Millennium Research Informatics -Original Message- From: Deepa Ramamurthy [mailto:[EMAIL PROTECTED] Sent: Friday, August

Re: web.xml and servlets used in an app

2004-08-06 Thread Schalk Neethling
As the default invoker servlet is now disabled by default you have to register your servlets in web.xml so in short, yes. If I am not correct here somebody please correct me so I can also update my knowledge but this is how I understand it currently. Deepa Ramamurthy wrote: Hello! Do I have to

System Clock Issues with Webapps

2004-08-06 Thread David Rickard
Server: SunOS 5.9 Generic_112233-07 sun4u sparc SUNW,Ultra-250 Apache: 2.0.47 Tomcat: 4.1.29 Our server is used by divisions in multiple timezones, so the system clock is set to UTC to simplify log writing etc; Each system user--including root--has a profile which masks the system clock to the

Re: System Clock Issues with Webapps

2004-08-06 Thread Tim Funk
Use the JAVA_OPTS option on startup to set the timezone property. -Tim David Rickard wrote: Server: SunOS 5.9 Generic_112233-07 sun4u sparc SUNW,Ultra-250 Apache: 2.0.47 Tomcat: 4.1.29 Our server is used by divisions in multiple timezones, so the system clock is set to UTC to simplify log writing

tomcat blocked on threads, high CPU

2004-08-06 Thread Sunitha Kumar
Hey folks: I got a stack dump of all threads in tomcat, when tomcat was not responding, and looks like the TP Monitor is also blocked. I saw GC ( garbage collector ) also blocked. TP-Monitor daemon prio=1 tid=0x088334f8 nid=0x1fcd in Object.wait() [a6b8b000..a6b8b87c] at

RE: Compile all JSPs on startup

2004-08-06 Thread Dan
Here's what I want to do: After Tomcat has been restarted, I want to recompile all of the JSPs in a certain directory (and all child directories). I wrote a servlet that does this and works fine when I run it in command line after Tomcat boots. I want to precompile so the first visitor to a

digester.getparser error...

2004-08-06 Thread Shilpa Nalgonda
I am getting this error when i start my Tomcat 4.0.4 insatance, with struts application. what exactly is this? Aug 6, 2004 8:02:11 AM org.apache.commons.digester.Digester getParser SEVERE: Digester.getParser: java.security.AccessControlException: access denied (java.lang.RuntimePermission

Re: Compile all JSPs on startup

2004-08-06 Thread Filip Hanik - Dev
this is what you are looking for: http://cvs.apache.org/~fhanik/precompile.html Filip - Original Message - From: Dan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, August 06, 2004 2:54 PM Subject: RE: Compile all JSPs on startup Here's what I want to do:

Re: Compile all JSPs on startup

2004-08-06 Thread Filip Hanik - Dev
and this you can do before tomcat even starts up! imagine that :) Filip - Original Message - From: Filip Hanik - Dev [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, August 06, 2004 3:20 PM Subject: Re: Compile all JSPs on startup this is what you are looking

Re: application not working on unix.

2004-08-06 Thread Wade Chandler
Shilpa Nalgonda wrote: Nope i di dnot make any cnages there... -Original Message- From: Robert Bateman [mailto:[EMAIL PROTECTED] Sent: Friday, August 06, 2004 11:52 AM To: Tomcat Users List Subject: Re: application not working on unix. On Friday 06 August 2004 11:52 am, Shilpa Nalgonda

RE: application not working on unix.

2004-08-06 Thread Benjamin Armintor
Maybe the more direct question is: Are you running with the Security Manager on at your desktop? If not, get a copy of the server's policy file, and refer to the Security Manager How-To to make sure that you're correctly mimicking the permissions on the server on your desktop. An

Bizzare bug with my class and sharing values between different instances

2004-08-06 Thread Thomas Joseph Olaes
Hello, list! I am currently busting my brain over this problem... I have the following class: package net.olaes; import java.lang.String; public class NumAndString { private static int iNum; private static String sString; public NumAndString(int iNum, String sString){ this.iNum =

RE: Bizzare bug with my class and sharing values between different instances

2004-08-06 Thread Benjamin Armintor
Your intended instance members are static. That means that all instances of the class share them. That's not what you want. Benjamin J. Armintor Operations Systems Specialist ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED]

RE: Bizzare bug with my class and sharing values between different instances

2004-08-06 Thread Robert Harper
The problem is that your data members are static. That means that for each instance of the class, they all point to the same data member. Robert S. Harper 801.265.8800 ex. 255 -Original Message- From: Thomas Joseph Olaes [mailto:[EMAIL PROTECTED] Sent: Friday, August 06, 2004 3:05 PM

Re: Bizzare bug with my class and sharing values between different instances

2004-08-06 Thread Filip Hanik - Dev
- remove the static keyword, package net.olaes; import java.lang.String; public class NumAndString { private int iNum; //should NOT be static private String sString; public NumAndString(int iNum, String sString){ this.iNum = iNum; this.sString = sString; } - Original

Possible bug in Tomcat5.0.27

2004-08-06 Thread Viktor Malytskyy
Hi! It seems that setting Content-Length header on response commits that response (which shouldn't happen). protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { httpServletResponse.setIntHeader(Content-Length, 0);

Re: Problem Configuring Datasource With Tomcat !

2004-08-06 Thread Isen,Ciji
Hi, You havent mentioned where the code is deployed. It might be in ROOT or a webapp of your own; either way this is a case of not finding the jndi resource. You ought to insert the resource entry in server.xml inside the Context which you plan to use the resource. You can opt to define the

SingleSiteLogon working, now how do I log them out?

2004-08-06 Thread Keith Bottner
I have Single site logon working great with my application, however, I am having a hard time trying to figure out how to log the user out when they select log out. Anyone..please Keith Have you ever noticed that the word 'complaint' and 'compliant' are spelled almost the same except

Re: Bizzare bug with my class and sharing values between different instances

2004-08-06 Thread Isen,Ciji
I dont think a static member is what you wanted. What you seem to want to is to store a data object. That be the case there is no point making them static. remove the static key word in. private static int iNum; private static String sString; and try. Gig 'em, Ciji Isen ps: If you where to

Re: SingleSiteLogon working, now how do I log them out?

2004-08-06 Thread Isen,Ciji
Hi, Well I suppose you are storing something in the session to store validation flag or you might be persisting a struts form object. Either way you can just remove that object or just invalidate the session. session.removeValue(value) or session.invalidate() Thats my take on your question.:-)

RE: SingleSiteLogon working, now how do I log them out?

2004-08-06 Thread Keith Bottner
That was how I did handle it when I rolled my own security model through a base action. But now that I am using Single Site Logon it sets a Principal on the HttpServletRequest and I do not know how to invalidate the Principal. In Tomcat you can actually retrieve the user name and password that was

Re: Re: Bizzare bug with my class and sharing values between different instances

2004-08-06 Thread Thomas Joseph Olaes
Thanks alot everyone! For some reason I thought I had to declare a class variable static so the different functions inside would be able to access the variable. -TJ On Fri, 06 Aug 2004 16:32:40 -0500, Isen,Ciji [EMAIL PROTECTED] wrote: I dont think a static member is what you wanted. What you

Re: Compile all JSPs on startup

2004-08-06 Thread Dan
I don't believe this will work. I need something that runs automatically when Tomcat is restarted, and I prefer to do it without external scripts or batch files, etc.. At 04:20 PM 8/6/2004, you wrote: this is what you are looking for: http://cvs.apache.org/~fhanik/precompile.html Filip -

RE: Compile all JSPs on startup

2004-08-06 Thread Dan
What I ended up doing was to spawn a Thread from my servlet class. This thread waits for 60 seconds and then fetches the JSP pages. Not the best solution but it works for now. At 03:54 PM 8/6/2004, you wrote: Here's what I want to do: After Tomcat has been restarted, I want to recompile all

RE: SingleSiteLogon working, now how do I log them out?

2004-08-06 Thread Keith Bottner
Got it! Set all of the cookies max age to 0, and then call invalidate() on the session. In addition have the Action's success forward with redirect set to true and walla totally leveraged SSO integrated into your application with little to no effort. Keith -Original Message- From: Keith

Re: Re: Bizzare bug with my class and sharing values between different instances

2004-08-06 Thread QM
On Fri, Aug 06, 2004 at 02:57:21PM -0700, Thomas Joseph Olaes wrote: : For some reason I thought I had to declare a class variable static so : the different functions inside would be able to access the variable. Only if those methods themselves are static. static data = class data = used in a

re: Compile all JSPs on startup

2004-08-06 Thread QM
:I need something that runs :automatically when Tomcat is restarted, and I prefer to do it without :external scripts or batch files, etc.. If you don't mind me asking, what's your end-goal in all of this? If you treat app deployment/changes as formal migrations (and I realize some shops do not),

connection pool problems, etc.

2004-08-06 Thread Steve Summit
It looks like lots of people are having various kinds of problems involving pools, and threads, and connections (perhaps to databases), and starvation, and hanging, and such. (In fact, it was to ask about just such a problem that I joined this list.) I don't have all the information yet, but

NodeDataDefinitions not found and Magnolia

2004-08-06 Thread Samuel V . Green III
I've tried getting someone from the magnolia development to respond to their mailing list NO LuCk? So I'm hoping someone here can help me. Basically, if you are not already familiar with the Magnolia CMS, it consists of two Tomcat Instances. Author an Public respectively. Here is the