Re: Catalina.out is empty after JDK upgrade!!!

2003-12-02 Thread Bill Barker
Tomcat uses commons-logging for a lot of it's components. If you don't do anything special, this writes to the consol (captured in catalina.out) by default for a 1.3.x JVM. With a 1.4.x JVM, it will use the 1.4.x logging by default. Check your settings for 1.4.x logging. "Nadia Kunkov" <[EMAIL

Re: 4.1.29 tar file & Cannot find message resources under key org.apache.struts.action.MESSAGE

2003-12-02 Thread Bill Barker
I was going to have really good fun at your expense, but it seems that the nice big bold message that tells you to not use Solaris or Mac/OS tar has gone away :-(. However, that's the answer: use the GNU gtar instead. "tommy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I am getti

Re: Socket write error 10022

2003-12-02 Thread Bill Barker
If this isn't in the FAQ already, it should be ;-). SocketWriteErrors are almost always the result of the user hitting the "stop" button in the browser before the page is fully loaded. The "fix" is to make your content more interesting, so users stop doing this, or to make it load faster so tha

Jk2, IIS, BASIC Authorization problem

2003-12-02 Thread Kent Boogaart
Hi, I have my web app set up to require BASIC authorization for a subdirectory. Everything works fine when running directly through Tomcat. However, when I run via IIS (version 5 on a win 2000 machine) it does not work. I have done some analysis and found that the Jk2 ISAPI filter appears to be s

RE: Tomcat 5.x and JBoss

2003-12-02 Thread Simon Chou
Have you posted this question in the JBoss forum? SC -Original Message- From: J.L. [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 5:22 AM To: [EMAIL PROTECTED] Subject: Tomcat 5.x and JBoss Hi, I want to use JBoss 3.2.2 and Tomcat 5.0.14. The problem is that I have to repl

Re: Servlets with JDBC connectivity

2003-12-02 Thread Kwok Peng Tuck
I think this link over here, might give you a hand. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html There are samples there for databases like mysql, but I think you should be ok. Todd O'Bryan wrote: This may not be the right place to ask this, but if you ca

Socket write error 10022

2003-12-02 Thread Susan Hoddinott
Hello,   I recently upgraded my java JVM from an earlier version of 1.3.1 to 1.3.1_09.  I found when I did this that some things which were previously working now give the following error:   // MonitorFilter::IOExceptionMonitorFilter

Servlets with JDBC connectivity

2003-12-02 Thread Todd O'Bryan
This may not be the right place to ask this, but if you can direct me to the right place, I'd appreciate it. I'm looking for a design pattern that someone must have already thought through so that my head can stop hurting. Here's the problem: I'm designing a webapp that has several servlets tha

Re: Setting Display Name

2003-12-02 Thread Rhino
Excellent! Thank, Rhino - Original Message - From: <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, December 02, 2003 7:51 PM Subject: Re: Setting Display Name > > In web.xml file: > > > 2.2//EN" > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> > >

Tomcat 5.x - Cannot create PoolableConnectionFactory

2003-12-02 Thread William Nguyen
I'm having the most difficult time trying to get my web app to connect to a database (MS Access via sun.jdbc.odbc.JdbcOdbcDriver). I've registered an odbc datasource in Windows and have gotten the application to work in a command prompt. I've tried my best to emulate the examples provided in 8. J

Problems with Tomcat 4.1.27 and MySQL J/Connector 3.0.9 (stable)

2003-12-02 Thread Ilari Kontinen
Hello, I am developing a JSP-based web application that uses database (MySQL) to preserve data. I am using a datasource (javax.sql.DataSource) as a global resource and a datasource realm (org.apache.catalina.realm.DataSourceRealm) as a realm for authenticating the users of my web application. I e

RE: Tomcat reload / classloader / connection pool

2003-12-02 Thread Marcel Stor
Justin Ruthenbeck wrote: > At 04:21 PM 12/2/2003, you wrote: > > Christopher Schultz wrote: > > > > > > First of all, why is this so? > > > > > > This is likely because of the way you use the singleton. When you > > > have a "singleton" (I use quotes because it's probably not a real > > > singlet

Re: deployment quirk in Tomcat5. Bug?

2003-12-02 Thread Jacob Kjome
At 12:02 AM 12/3/2003 +0100, you wrote: Jacob Kjome wrote: When deploying war files in Tomcat-5.0.16, I noticed something a little odd. After using the ant manager deploy task and then doing an undeploy, manually dropping the war file into CATALINA_HOME/webapps trigger auto-deployment. For examp

Help on Tomcat Configuration...

2003-12-02 Thread Tony
HI !! i have a problem trying to configurate my apache 2.x with Tomcat 4 (jni using jk2)... everything looks fine when i initiate apache, but when i try to access the examples apps (localhost/examples) i got the following error on error.log (apache directory): Tue Dec 02 03:08:56 2003] [notice]

Re: Setting Display Name

2003-12-02 Thread russo
In web.xml file: http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> Hello World with Log4J helloWorld ualbany.test.hello.HelloWorldServlet helloWorld /hello On Tue, 2 Dec 2003, Rhino wrote: > Thanks for the link to the Servlet Specs. > >

Re: Setting Display Name

2003-12-02 Thread Rhino
Thanks for the link to the Servlet Specs. Where do I set the display name for the servlet context? Rhino - Original Message - From: "Ben Souther" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, December 02, 2003 3:27 PM Subject: Re: Setting Display Name T

RE: Tomcat reload / classloader / connection pool

2003-12-02 Thread Justin Ruthenbeck
At 04:21 PM 12/2/2003, you wrote: Christopher Schultz wrote: > > First of all, why is this so? > > This is likely because of the way you use the singleton. When you > have a "singleton" (I use quotes because it's probably not a real > singleton otherwise we would not be having this discussion)

RE: Tomcat reload / classloader / connection pool

2003-12-02 Thread Marcel Stor
Christopher Schultz wrote: > Marcel, > > > The problems with Tomcat occur upon reload of the web app. The > > classloader reloads the whole app and all my DB connections get > > opened again. This wouldn't cause much pain if the existing > > connections were garbage collected i.e. finalized. This

Re: Tomcat reload / classloader / connection pool

2003-12-02 Thread Christopher Schultz
Marcel, The problems with Tomcat occur upon reload of the web app. The classloader reloads the whole app and all my DB connections get opened again. This wouldn't cause much pain if the existing connections were garbage collected i.e. finalized. This doesn't happen and after a couple of reloads th

Re: EL and XML escaping

2003-12-02 Thread Tim Funk
On a (very) quick read of the spec, it looks like you'll need to rely on c:out from JSTL. -Tim Dave Ford wrote: Is there way to specify if EL expression in the body of a jsp page should be escaped? Consider the following: <% request.setAttribute("message","It is a great day"); request.setAttribu

Tomcat reload / classloader / connection pool

2003-12-02 Thread Marcel Stor
Hi, I'm using my own SQL framework with a Singleton ConnectionFactory that holds a reference to the ConnectionManagers (connection pools) for various DB connections. It all works great in a non-web environment. The problems with Tomcat occur upon reload of the web app. The classloader reloads the

Re: deployment quirk in Tomcat5. Bug?

2003-12-02 Thread Remy Maucherat
Jacob Kjome wrote: When deploying war files in Tomcat-5.0.16, I noticed something a little odd. After using the ant manager deploy task and then doing an undeploy, manually dropping the war file into CATALINA_HOME/webapps trigger auto-deployment. For example, say I have "myapp.war". I just dro

Re: Application-specific Manager access?

2003-12-02 Thread Leonard Sitongia
On Monday 10 November 2003 6:26 pm, Tim Funk wrote: > Few options ... > 1) Place each group in its own virtual host. Then register a manager app > per virtual host. Hi, I'm looking at this again. The manager is a servlet container application (as I gather it's called) and is in server/webapps/m

[OT] Role-based security, how to switch "active" role

2003-12-02 Thread Richard Mixon (qwest)
We are considering assigning multiple roles to some users/principals in our Struts 1.1 application. The alternative is to have to give some users multiple login ids, which does not seem attractive. J2EE, Struts and Tomcat all seem to support multiple roles. BACKGROUND: I took a look at creating

EL and XML escaping

2003-12-02 Thread Dave Ford
Is there way to specify if EL expression in the body of a jsp page should be escaped? Consider the following: <% request.setAttribute("message","It is a great day"); request.setAttribute("equation","10 > 4"); %> ${message} ${equation} Thanks Dave Ford Smart Soft - The Developer Training Com

4.1.29 tar file & Cannot find message resources under key org.apache.struts.action.MESSAGE

2003-12-02 Thread tommy
I am getting this error returned to my browser when accessing http://10.1.1.1:8080/admin org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)

RE: Windows Serive Permissions?

2003-12-02 Thread Karl Coleman
It seems the problem with this lies with JRE1.4. When we loaded 1.3 and ran it, it worked. Anyone know of a workaround for the exec method hanging when using JRE 1.4 (besides using 1.3). Karl -Original Message- From: Karl Coleman Sent: Monday, December 01, 2003 11:02 AM To: [EMAIL PROT

Re: OutOfMemoryError

2003-12-02 Thread Christopher Schultz
Trenton, Are you using the context reloading feature? "reloadable=true" or using the tomcat manager app will cause this to happen eventually. Really? Prove that please... Actually, I can't prove it in his instance, but I have proved it time and time again on ours. I'm using 4.0.4 right now th

RE: Tomcat 4.0.x memory leak (not javac)

2003-12-02 Thread Trenton D. Adams
Ok, thanks guys. I'll see what I can do. EXTREMELY busy right now, but I might be able to try it over christmas holidays. :) MAYBE! > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: December 2, 2003 12:08 PM > To: Tomcat Users List > Subject: RE: Tomcat 4.0.x

Re: Setting Display Name

2003-12-02 Thread Ben Souther
The display name is for the servlet contex, not for individual servlets. You can download the Servlet Specs as a PDF here: http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html On Tuesday 02 December 2003 03:16 pm, Rhino wrote: > Hi, > > Are we talking about the same thing? I mean

RE: Can Tomcat really run cgi scripts?

2003-12-02 Thread Januski, Ken
Beat my head against wall for another couple hours and still end up with this error. Anyone have any other ideas? java.io.IOException: CreateProcess: perl C:\Tomcat4112\webapps\examples\WEB-INF\cgi\exp.pl lname=januski fname=ken error=2 at java.lang.Win32Process.create(Native Method)

Re: Setting Display Name

2003-12-02 Thread Rhino
Hi, Are we talking about the same thing? I mean the Display Names on the http://localhost:8080/manager/html/list page, specifically the "Display Name" column in the Applications table on that page. All I was asking what how to set the display name for a given path in that table. Is setting a valu

Re: Tomcat FAQs on Wiki

2003-12-02 Thread Cliff Willsher
Mark, Thank you for this. With a just a little jiggery-pokery I was able to get Tomcat5 and IIS5 working together in minutes after many frustrating hours. Thanks again. Cliff At 13:37 01/12/2003 -0800, you wrote: Folks, I have put some of my documentation on the Tomcat Wiki at: http://nagoya.ap

Re: Setting Display Name

2003-12-02 Thread Peter Choe
of the web.xml file in your servlet context. Shapira, Yoav wrote: Howdy, Simply add BlahBlah to the servlet element. The doc for this and all other deployment descriptor questions of this kind is the Servlet Specification itself, SRV 13. Yoav Shapira Millennium ChemInformatics -Original Me

Catalina.out is empty after JDK upgrade!!!

2003-12-02 Thread Nadia Kunkov
Hi, I have upgraded my Linux box to j2sdk1.4.1_04 from jdk1.3.1_04. I have fixed the Java_Home variable in /tomcat4/conf/tomcat4.conf file to use the new one. Now, when I run my java applications usually catalina.out gets populated with errors and messages. My catalina.out is completely empty

Re: deployment quirk in Tomcat5. Bug?

2003-12-02 Thread Jacob Kjome
Whoops... " manually dropping the war file into CATALINA_HOME/webapps trigger auto- deployment." Should say... " manually dropping the war file into CATALINA_HOME/webapps *won't* trigger auto-deployment." I believe it *should* continue to trigger auto-deployment where it doesn't currently.

RE: Tomcat 4.0.x memory leak (not javac)

2003-12-02 Thread Shapira, Yoav
Howdy, You don't have to know much about "the tomcat under the hood" to diagnose this. It's not a problem with the tomcat classes. What you need to know is: - What 3rd party libraries does your application use - What classes stay in memory after a reload and have a 2nd instance of them created.

deploy unpack/context.xml

2003-12-02 Thread Frank Calfo
Does this combination of deployment options work ? Copy a war file for Tomcat to unpack to the webapps dir that also contains an xml config file ? If I leave out the xml config file, Tomcat will unpack the war file as I want it to but when I add the xml config file, Tomcat complains that the

deployment quirk in Tomcat5. Bug?

2003-12-02 Thread Jacob Kjome
When deploying war files in Tomcat-5.0.16, I noticed something a little odd. After using the ant manager deploy task and then doing an undeploy, manually dropping the war file into CATALINA_HOME/webapps trigger auto-deployment. For example, say I have "myapp.war". I just drop this into Tomcat5

Re: Tomcat 4.0.x memory leak (not javac)

2003-12-02 Thread Filip Hanik
download a trial of JProbe :) Filip - Original Message - From: "Trenton D. Adams" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, December 02, 2003 11:08 AM Subject: RE: Tomcat 4.0.x memory leak (not javac) Ouch, LOL. I don't really know a whole lot abou

RE: Tomcat 4.0.x memory leak (not javac)

2003-12-02 Thread Trenton D. Adams
Ouch, LOL. I don't really know a whole lot about the tomcat "under the hood"! :) I can try though. Do you have a procedure that I should take to find this? Is there a debugging option that I can turn on for tomcat? > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] >

RE: OutOfMemory Exception initializing page context

2003-12-02 Thread Rob Wichterman
We have tried setting the heap as high as 1024 with the same results. It actually seemed to make the tomcat die sooner with the higher setting. We currently have an average of 250 logins a day. Thanks, Rob Wichterman Systems Analyst Nuventive 3996 Mount Royal Blvd.

Re: Severe notification ...

2003-12-02 Thread Travis Reeder
This is in regards to this error message which kills tomcat: SEVERE: All threads are busy, waiting. Please increase maxThreads or check the servlet status75 75" Erik: How do you know this is fixed in 4.1.29? Also, would increasing maxProcesses help in the connector? Travis On Tuesday, Novemb

RE: Tomcat 4.0.x memory leak (not javac)

2003-12-02 Thread Shapira, Yoav
Howdy, Since you can reproduce your error easily, can you narrow down which 3rd party library is keeping the references that cause the memory leak? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Trenton D. Adams [mailto:[EMAIL PROTECTED] >Sent: Tuesday, December 02,

RE: Tomcat 4.0.x memory leak (not javac)

2003-12-02 Thread Trenton D. Adams
> -Original Message- > From: David Rees [mailto:[EMAIL PROTECTED] > Sent: December 2, 2003 11:01 AM > To: Tomcat Users List > Subject: Re: Tomcat 4.0.x memory leak (not javac) > > Shapira, Yoav wrote: > > Besides what Senor Schultz said (which is 100% true), > > 1. Where is this mentioned

RE: OutOfMemoryError

2003-12-02 Thread Trenton D. Adams
> -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: December 2, 2003 6:55 AM > To: Tomcat Users List > Subject: RE: OutOfMemoryError > > > Howdy, > > >Dhruva B. Reddy wrote: > >> We get OutOfMemoryError's on Tomcat 4.1.27, running on RH 7.3, Sun > JDK > >> 1.4.1

Re: Tomcat 4.0.x memory leak (not javac)

2003-12-02 Thread David Rees
Shapira, Yoav wrote: inherent to the design of Tomcat 4 (which was overhauled in Tomcat 5), but I'm sure that they are willing to accept patches if anyone can fix it. ;-) It's a tough one because of the plethora of 3rd party libraries that use such static variables or threads, leaving tomcat witho

RE: Tomcat 4.0.x memory leak (not javac)

2003-12-02 Thread Shapira, Yoav
Howdy, >Under KNOWN ISSUES IN THIS RELEASE it does mention issues during web >application reloading where shared libraries keep references to objects >instantiated by the web application. That says "memory leak" to me >although it doesn't specifically say that. I see what you mean. I was searc

Re: Tomcat 4.0.x memory leak (not javac)

2003-12-02 Thread David Rees
Shapira, Yoav wrote: Besides what Senor Schultz said (which is 100% true), 1. Where is this mentioned in the release notes, and what would one have to search for? Under KNOWN ISSUES IN THIS RELEASE it does mention issues during web application reloading where shared libraries keep references to ob

RE: Can Tomcat really run cgi scripts?

2003-12-02 Thread Januski, Ken
Thanks Chris, I've tried "!#c:\perl\bin\perl.exe", "#!c:\perl\bin", "#!perl", and "#!/usr/bin/perl" and get same error on each. I've also added perl to the path environmental PATH variable. I do think that you're right about missing PATH information so I'll keep experimenting. I just can't figure

RE: Please Help: Inconsistent Load Balancing info mod_jk2

2003-12-02 Thread Asif Chowdhary
Thank you -Original Message- From: David O'Brien [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 12:48 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Please Help: Inconsistent Load Balancing info mod_jk2 Higher the number ... More Hits I have one worker at lb_fac

Re: OutOfMemory Exception initializing page context

2003-12-02 Thread Christopher Schultz
Rob, I consulted with the developers and they said we don't use or do anything that you suggested except we do use tomcat's connection pooling for oracle. Okay, that's good. Sometimes, people don't use connection pooling or do it improperly, and leave Connection objects lying around. SQL Connecti

Re: Please Help: Inconsistent Load Balancing info mod_jk2

2003-12-02 Thread David O'Brien
Higher the number ... More Hits I have one worker at lb_factor=4 and one at lb_factor=8 and the distribution if I have 150 sessions active the server with lb_factor=4 has 49 and the server with lb_factor=8 has 101 This can be seen at @ http://www.nacrraware.net/cluster/ -Dave At 10:32 AM 12

Re: Can Tomcat really run cgi scripts?

2003-12-02 Thread Christopher Schultz
Ken, > But now I'm stuck with this error: java.io.IOException: CreateProcess: perl C:\Tomcat4112\webapps\examples\WEB-INF\cgi\exp.cgi This is likely to be due to the lack of PATH information available to the script itself. Try using #!/usr/bin/perl in your script instead of #!perl I've heard so

RE: OutOfMemory Exception initializing page context

2003-12-02 Thread Shapira, Yoav
Howdy, How was 512MB determined to be the correct heap size for the application? Could it be that 512MB is too little for your application when faced with a high load? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Rob Wichterman [mailto:[EMAIL PROTECTED] >Sent: Tue

RE: Setting Display Name

2003-12-02 Thread Shapira, Yoav
Howdy, Simply add BlahBlah to the servlet element. The doc for this and all other deployment descriptor questions of this kind is the Servlet Specification itself, SRV 13. Yoav Shapira Millennium ChemInformatics -Original Message- From: Rhino [mailto:[EMAIL PROTECTED] Sent: Tuesday, D

Re: OutOfMemory Exception initializing page context

2003-12-02 Thread David Rees
Christopher Schultz wrote: What's with all the OOM questions this week? I've noticed that topics tend to come in waves. I wonder if there are only like 5 people out there that post to the newsgroup, but they have all kinds of alias and alternate personalities so that the average response is wha

RE: OutOfMemory Exception initializing page context

2003-12-02 Thread Rob Wichterman
I consulted with the developers and they said we don't use or do anything that you suggested except we do use tomcat's connection pooling for oracle. We are running Sun j2sdk1.4.2_02 with the Concurrent Mark Sweep GC with -Xmx512m. I currently use the verbose logging for GC times. The odd thing i

Can Tomcat really run cgi scripts?

2003-12-02 Thread Januski, Ken
I've been trying for last day to get Tomcat 4.1.12 to run a perl cgi script. I've done most of it based on this article: http://www.fawcette.com/javapro/2003_03/online/perl_teden_03_18_03/default_p f.aspx. But now I'm stuck with this error: java.io.IOException: CreateProcess: perl C:\Tomcat4112\web

RE: Question using JProfiler with Tomcat

2003-12-02 Thread Shapira, Yoav
Howdy, Never use a profiler for absolute values such as how much memory an object takes or how much time it takes to do a certain operation. The time and memory are severely (often orders of magnitude) skewed by the profiler. Instead, use relative values as appropriate (e.g. 30% of the time is s

Setting Display Name

2003-12-02 Thread Rhino
Can anyone tell me where/how to set the Display Name for a given servlet or point me to the relevant documentation?   This is the value that comes up in the Manager application when it lists your servlets. Rhino---rhino1 AT sympatico DOT ca"If you want the best seat in the house, you'll have

RE: Question using JProfiler with Tomcat

2003-12-02 Thread Hart, Justin
You saw the 30 MB in JProfiler? I haven't used it myself, but I would imagine that JProfiler tares its own consumption off of the scores. Justin -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 12:32 PM To: [EMAIL PROTECTED] Subject:

Re: Tag Handler pool eating up Memory (and enablePooling is set to false)

2003-12-02 Thread Christopher Schultz
Neil, This is strange. When I created a heap dump from my server just now, it does not have any instances of TagHandlerPool in the heap dump. That is what I expected before, but I still had them in my last dump. That is weird. However, you still have a bunch of tag handler instances, I see...

Question using JProfiler with Tomcat

2003-12-02 Thread Laurent Michenaud
Hi, I'm using Jprofiler to monitor my web application running on Tomcat. My Webapp uses XML/XSLTC to generate the html page. Looking at the JVM, I was horrified to see that some pages are using more than 30 Mo of memory. So, I've added another webapp that shows the JVM ( graphic in a applet )

RE: Tag Handler pool eating up Memory (and enablePooling is set to false)

2003-12-02 Thread Neil Aggarwal
Chris: > Yeah, it's possible (and probable) that the TagHandlerPool > maintains a > reference back to the ServletContext in which it lives. That > might kew > your results. I'm sure that the TagHandlerPool isn't actually > taking up > that much memory. This is strange. When I created a hea

Re: load-on-startup and multiple coyotes

2003-12-02 Thread Christopher Schultz
Steffen, As soon as I start using 2 coyote connectors together with tomcat initializes the database pools twice. Interestingly it keeps initializing things twice even if I add a third coyote. In about two minutes, Yoav Shapira is going to tell you this: "Don't use a servlet to initialize your st

RE: load-on-startup and multiple coyotes

2003-12-02 Thread Shapira, Yoav
Howdy, >As soon as I start using 2 coyote connectors together with startup> >tomcat initializes the database pools twice. >Interestingly it keeps initializing things twice even if I add a third >coyote. You have one load-on-startup tag for each servlet element in web.xml, and one servlet element

load-on-startup and multiple coyotes

2003-12-02 Thread SH Solutions
Hi, once again, after having just solved the welcome-servlet problem (posted separately) I just run into another problem. I have 5 distinct servlets while all inherit from a common base class whose simple purpose is to initialize the applications database pool, read different configuration files a

AW: Servlet as Welcome File doesn't work

2003-12-02 Thread SH Solutions
Hi I found an solution to force tomcat 4.1.29 to use servlets as welcome files. My applications web.xml: Root com.osiris4.servlets.Root Root /root root The problem on this was that tomcat checks for the very existence of the file "root", before ac

RE: Tomcat FAQs on Wiki - mod_jk2 howto

2003-12-02 Thread Scott, Sean
In what cases is step 5 required? I am currently running without jk2.properties at all. Can you explain what the purpose of jk2.properties is and when it should be used? What is the handler list used for? Thanks -sean -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTE

Re: OutOfMemory Exception initializing page context

2003-12-02 Thread Christopher Schultz
Rob, Well I have had my -Xmx set to as high as 1gb and I still receive these errors. The site will stay running for at best 1 day without crashing. I was just hoping one of these could point me in a direction while I work on looking at memory leaks. Sorry for the levity. Try this: Turn on verbos

RE: OutOfMemory Exception initializing page context

2003-12-02 Thread Rob Wichterman
Well I have had my -Xmx set to as high as 1gb and I still receive these errors. The site will stay running for at best 1 day without crashing. I was just hoping one of these could point me in a direction while I work on looking at memory leaks. Thanks, Rob -Original Message- From: Chri

Please Help: Inconsistent Load Balancing info mod_jk2

2003-12-02 Thread Asif Chowdhary
The apache documentation say that higher the number the greater the number of requests which tomcat will receive. The tomcat definitive Guide from orielly says that the lower the number the greater the number of requests a tomcat instance will receive. What is correct? Which instance will get m

RE: Configure tomcat for LDAP

2003-12-02 Thread Hart, Justin
JNDIRealm can be used to authenticate users against an LDAP (I'm guessing in this case ActiveDirectory). You will, however, want to use Basic authentication, and prompt the user username for a username and password. Justin -Original Message- From: Damien Pacaud [mailto:[EMAIL PROTECTED

Re: OutOfMemory Exception initializing page context

2003-12-02 Thread Christopher Schultz
What's with all the OOM questions this week? I've noticed that topics tend to come in waves. I wonder if there are only like 5 people out there that post to the newsgroup, but they have all kinds of alias and alternate personalities so that the average response is what they use to solve their p

Configure tomcat for LDAP

2003-12-02 Thread Damien Pacaud
Hi, i want to use LDAP to athenticate my users on a JSP application and would like to know how to configure TOMCAT so that i can acces the login of the current user through a jsp ? for now, i have it all set on apache, in the virtual host using ath_ldap . my problem is that the request.getRemoteUs

RE: SessionListener

2003-12-02 Thread Hart, Justin
Unfortunately, the paranoia is founded in this case, though I do agree. Justin -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 10:23 AM To: Tomcat Users List Subject: Re: SessionListener Justin, > Won't quite do it, JDBCRealm look

Re: SessionListener

2003-12-02 Thread Christopher Schultz
Justin, Won't quite do it, JDBCRealm looks for users in a database, I want to connect a user TO a database using their credentials, but the code to do this feat will be quite minimal by comparison. This will make it hard to use a connection pool (which you mentioned that you do/want to do). Is the

RE: OutOfMemory Exception initializing page context

2003-12-02 Thread Shapira, Yoav
Howdy, Once you're out of memory, the system is in a bad state and must be restarted. You will see error messages that are at best meaningless and at worst misleading, because they will make you look in the wrong places. You want to fix the memory issue first, by adding more memory (via the -Xmx

OutOfMemory Exception initializing page context

2003-12-02 Thread Rob Wichterman
Hello, I am having major memory problem that I have been fighting through. Has any body ever seen this one. Here are the errors that always come up in my logs. 1. java.lang.IllegalStateException: getAttribute: Session already invalidated 2. JspFactoryImpl: Exception initializing pag

RE: Argument Type Mismatch

2003-12-02 Thread Hart, Justin
I figured it out, see the SessionListener thread. Instead of worrying about Session IDs, I'll use the principal to identify the user (hell, that's what the rest of the system does). See, I needed a way to pair a user to the connection, if I use a hash of the principal, I can do so just as opti

RE: SessionListener

2003-12-02 Thread Hart, Justin
Won't quite do it, JDBCRealm looks for users in a database, I want to connect a user TO a database using their credentials, but the code to do this feat will be quite minimal by comparison. Thanks for bouncing ideas off me! It's been most fun :-) -Original Message- From: Shapira, Yoav

RE: SessionListener

2003-12-02 Thread Shapira, Yoav
Howdy, Yes, now you got it ;) It's these simple misunderstandings that often cause a lot of debate. As a bonus, your approach will work very well in any J2EE container. You may not have to do any custom coding, just the JDBC realm. Yoav Shapira Millennium ChemInformatics >-Original Messa

RE: SessionListener

2003-12-02 Thread Hart, Justin
How will the container get my user logged into the database? My plan was to use the username & password to authenticate to my database so the user only operates with their perms in the database. My original approach was through realm, but this left the problem of figuring out which user was ti

RE: Commons FileUpload

2003-12-02 Thread Shapira, Yoav
Howdy, This is not the list for commons-fileupload discussion, so please mark your subject as [OFF-TOPIC] if you choose to pursue it. The commons-user list is the right place. I find commons-fileupload's site to be complete and informative. What do you think it's missing. Try reading the page

Commons FileUpload

2003-12-02 Thread Luc Foisy
Could someone please describe this to me, it looks interesting, and perhaps useful to me, and the site doesn't have the greatest description of the project. Basically a brief description of how it functions, and what its capabilities are after a file has been uploaded. Thanks -

RE: SessionListener

2003-12-02 Thread Shapira, Yoav
Howdy, >Basic authentication. I figured it wouldn't be hard with Form >authentication, but I'm using basic in order to match the look and feel of >the rest of the site. OK, so you have basic authentication. Do you have a security-constraint defined in web.xml? A login-config? You can let tomc

RE: Tomcat FAQs on Wiki

2003-12-02 Thread Derek Mahar
Speaking of Wiki, checkout Janne Jalkannen's JSPWiki at http://www.jspwiki.org. Derek -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: December 2, 2003 6:53 AM To: Tomcat Users List Subject: Re: Tomcat FAQs on Wiki Google for Wiki. Most of the links are great and you'l

R: upload file

2003-12-02 Thread Simone Chiaretta
I was using as you cos.jar and uploadbean from zoom But monving to 4.1 and 5 I decided to pass to commons-upload from jakarta since it's more "tested" even it has some strange behaveour. Simone - Simone Chiaretta www.piyosailing.com/S Any sufficiently advanced technology

RE: Tomcat FAQs on Wiki

2003-12-02 Thread Shapira, Yoav
Howdy, Wiki is for the most part trivially easy: - Look for the link at the bottom of the page that says Edit Text or something like that, - Add your text - Click save. That's it. There are a host of other tricks and trips on google. Yoav Shapira Millennium ChemInformatics >-Original Mess

Re: Tomcat FAQs on Wiki - mod_jk2 howto

2003-12-02 Thread Nikola Milutinovic
Tim Funk wrote: Writing anything like that for the list is a good thing since we can always link to it in the archives ;) Here goes. STEP 1 -- Build "mod_jk2.so" and "jkjni.so" - do whatever needs to be done :-) STEP 2 -- Place mod_jk2.so and jkjni.so with other Apache modules. In case

RE: SessionListener

2003-12-02 Thread Hart, Justin
Basic authentication. I figured it wouldn't be hard with Form authentication, but I'm using basic in order to match the look and feel of the rest of the site. Yeah, saw the same problem with Basu's implementation, though I did like the idea. Justin -Original Message- From: Shapira, Yoa

RE: Tomcat 4.0.x memory leak (not javac)

2003-12-02 Thread Shapira, Yoav
Howdy, Besides what Senor Schultz said (which is 100% true), 1. Where is this mentioned in the release notes, and what would one have to search for? 2. You mentioned in your passage the bug was marked as invalid or wontfix, and the bug you gave below is marked as new. So if anyone actually wasted

upload file

2003-12-02 Thread andrea antibo
Hi, my question is if you know if there are problems on file upload using cos.jar under tomcat 4.1.x, because I have a project that work fine on tomcat 4.0.6 but it goes broke on tomcat 4.1.x or under jboss-tomcat.4.1.x. thx

RE: Argument Type Mismatch

2003-12-02 Thread Hart, Justin
I was reading through the code, the session has a note on it with the password. I actually already wrote a custom realm implementation... I wanted to join the sessions all by using the session ID, which the realm doesn't have, which is why I figured at the creation of the session would be the b

Re: Tomcat 4.0.x memory leak (not javac)

2003-12-02 Thread Christopher Schultz
All, http://www.apache.org/dist/jakarta/tomcat-4/v4.1.29/RELEASE-NOTES http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20758 Uhhh... this looks like "standard operating procedure" for Java to me... When you dump a ClassLoader and all of it's object get GC'd, the VM almost never GC's the "unuse

RE: Shell script to check if Tomcat is running?

2003-12-02 Thread Shapira, Yoav
Howdy, You can also always add -DthisIsMyTomcat=true (or any other distinguishing argument) to the java runtime options, so that you can grep the ps output for this specific parameter if there are multiple java processes. Yoav Shapira Millennium ChemInformatics >-Original Message- >From

RE: SessionListener

2003-12-02 Thread Shapira, Yoav
Howdy, Senor Basu, your solution is seriously not thread-safe. But that's for you to worry about it, maybe it's good enough for your needs ;) As for Senor Hart's questions: - HttpSessionListener goes in web.xml, as do all other Servlet Specification listeners. - SessionListener goes in server.xm

Virtual host configuration

2003-12-02 Thread shyamperi
7:21p How is that I can configure my virtual host to be a deployable. In the sense, I would like it to be deployable with out stopping the server Here is my server.xml and made necessary setting in the apache server also. But the problem with this I am unable to deploy

RE: OutOfMemoryError

2003-12-02 Thread Shapira, Yoav
Howdy, >Dhruva B. Reddy wrote: >> We get OutOfMemoryError's on Tomcat 4.1.27, running on RH 7.3, Sun JDK >> 1.4.1_02 (with 512MB allocated to it) The box has 1GB of RAM, 2GB of >> swap space, and four Xeon processors. Can you reproduce the errors in a test environment? >Are you using the conte

  1   2   >