Re: how to detect whether Tomcat has finished starting completely on Windows?

2007-01-25 Thread David Delbecq
Did you try adding an |org.apache.catalina.LifecycleListener to the engine entry? I see there is an event | org.apache.catalina.Lifecycle.AFTER_START_EVENT that gets called after the start of component. En l'instant précis du 01/25/07 08:50, Vlad s'exprimait en ces termes: * Andre Prasetya

Re: Configuring a common authentication realm

2007-01-25 Thread Peter Stavrinides
Greg thanks for this, sounds like it has potential, and It wont be a problem with separate machines, but one problem I foresee though is the new IE7 browser which disables cookies on the client by default, have you tested it? Christopher, I am currently using the Authorization header but the

write to Tomcat JNDI

2007-01-25 Thread Christian Spatz
Hi, I need to bind objects using JNDI in my servlet running on apache tomcat . Since I'm new to the JNDI topic, I did a lot of reading the last few days and got mixed up a little. The tomcat documentation says that the initialContext is read-only, but then I found the hint to a solution in the

RE: Tomcat 5.5 and x64 Windows

2007-01-25 Thread Darren Kukulka
Martin/Mladen, I ended up installing .Net Framework 2.0 x64 as this was the prescribed method for resolving large numbers of Error 32 and 59 messages within the Windows system log. Mladen is probably right that the msvcrt80 runtime is the crux of the fix for this but for now I'm just happy

Re: Configuring a common authentication realm

2007-01-25 Thread Gregor Schneider
Hi Peter, On 1/25/07, Peter Stavrinides [EMAIL PROTECTED] wrote: Greg thanks for this, sounds like it has potential, and It wont be a problem with separate machines, but one problem I foresee though is the new IE7 browser which disables cookies on the client by default, have you tested it?

Re: UserDatabaseRealm Problems

2007-01-25 Thread Wayne Gemmell
Sorry for the shameless bump. Was this question badly phrased, too easy, incomplete, etc? I've been battling for days on this, asked local lugs and the irc channel with no response. This is a system that I've inherited and I've never worked with Tomcat or any other J2EE stuff before and I am

request.getContextPath issue.

2007-01-25 Thread Wesley Hof
Hi list, Version: Jakarta-5.5.7 I deployed a new warfile in a new virtualhost in my server.xml : Host name=dspextranet.lan.kiala.com appBase=dspextranet unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context reloadable=true path=

Re: UserDatabaseRealm Problems

2007-01-25 Thread Pid
Enable a RequestDumperValve so you can see what WorldPay is doing when it hits your URL. http://tomcat.apache.org/tomcat-5.0-doc/config/valve.html#Request%20Dumper %20Valve Has the system worked with this configuration before, or is this a new component? What have you got configured in

Re: UserDatabaseRealm Problems

2007-01-25 Thread Pid
Wesley Hof wrote: There is no UserDatabaseRealm config file. server/conf/tomcat-users.xml UserDatabaseRealm reads from that file to determine who can log in, with which privileges. Authentication is activating, but I don't see any references to a restricted area in your web.xml. what

Re: JSP include issue when pre-compiling using Ant/Tomcat

2007-01-25 Thread Tim Funk
Jsp files which are compile time includes should not end in .jsp - but something else. (Preferably .jspf) renaming test2.jsp to test2.jspf will fix your precompilation issue. Using jspf has the added advantage of also letting you know immediately the files being used as compile time

Re: UserDatabaseRealm Problems

2007-01-25 Thread Wayne Gemmell
Hi, thanks for the response. On Thu, 25 Jan 2007 10:27:20 + Pid [EMAIL PROTECTED] wrote: Enable a RequestDumperValve so you can see what WorldPay is doing when it hits your URL. http://tomcat.apache.org/tomcat-5.0-doc/config/valve.html#Request%20Dumper %20Valve Wow thats a lot of

RE: JSP include issue when pre-compiling using Ant/Tomcat

2007-01-25 Thread Martin Lambert
Hi Tim, Thanks for you reply, it fixed the problem! A few points though for the Tomcat people: 1) http://java.sun.com/developer/technicalArticles/javaserverpages/code_convention/ states that: 'JSP fragments can use either .jsp or .jspf as a suffix' i.e. it should work for .jsp includes 2)

find where webapp installed via java code

2007-01-25 Thread asaf.lahav
Hi all, I have a servlet in which I need to find the file system path in which the executing webapp is running. 10x, Asaf

sample error install on Tomcat 4.1.34 with JDK 1.4.2

2007-01-25 Thread Philippe Couas
Hi ; I want install ajax4jsf samples on my Tomcat server 4.1.34 and I have following error messages ? Do you have an idea ? Regards Philippe Démarrage du service Tomcat-Standalone Apache Tomcat/4.1.34 log4j:WARN No appenders could be found for logger

Re: find where webapp installed via java code

2007-01-25 Thread David Delbecq
Please qualify 'system path in which the executing webapp is running'. do you mean the if your war has been exploded to /tomcat/webapps/myapp/ Then you need to get this path? It can be tricky, because, even if it were possible by some magic including asking class loader where classes binaries are

RE: mod_jk replacement?

2007-01-25 Thread JNeuhoff
I just tried it with the mod_proxy and mod_proxy_http modules which are indeed available for Apache 2.0.59, and it works fine connecting to backend Tomcat web service using the http protocol and port 8080. I only needed one line in Apache's configuration: ProxyPass /ohpr/

Re: sample error install on Tomcat 4.1.34 with JDK 1.4.2

2007-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philippe, Philippe Couas wrote: I want install ajax4jsf samples on my Tomcat server 4.1.34 and I have following error messages: [snip] log4j:WARN No appenders could be found for logger log4j:WARN Please initialize the log4j system properly.

Storing webapp startup parameters

2007-01-25 Thread David Kerber
I know of two built-in methods of storing preferences for a webapp, but need one with characteristics which combine both of them. Using the java Preferences class allows changes to be made while the app is running, but AFAICS they will apply to all instances of tomcat running on a given

Re: Storing webapp startup parameters

2007-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Is there a built-in method of having different settings for each instance of tomcat, but which won't require bouncing tomcat to put the changes into effect? I know I could roll my own with a disk file (like a windows

Re: Tomcat 4.1.29 Question

2007-01-25 Thread David Smith
It's not a tomcat issue, so no. The time comes from the JVM and the OS. So check the Java JVM for fix versions and patches for your OS. BTW, this has been covered many, many times in recent months. I'm sure you'll find lots of links with Google. --David GARNER Jim J wrote: Congress passed a

Re: Storing webapp startup parameters

2007-01-25 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Is there a built-in method of having different settings for each instance of tomcat, but which won't require bouncing tomcat to put the changes into effect? I know I could roll my own with

RE: find where webapp installed via java code

2007-01-25 Thread PATTUS, Jean-Philippe
Probably it's not the best way but it can work : Take for example a property file that you know is in your webapp ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); InputStream is = classLoader.getResourceAsStream(com/.../yourfile.properties); Create a file from

Re: Storing webapp startup parameters

2007-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: Christopher Schultz wrote: You could store your preferences in a JNDI context. If you use env-entry in your web.xml instead of using context-param or something else, then they will be automatically loaded into the

Re: Storing webapp startup parameters

2007-01-25 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: Christopher Schultz wrote: You could store your preferences in a JNDI context. If you use env-entry in your web.xml instead of using context-param or something else, then they will be

Re: find where webapp installed via java code

2007-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Asaf, asaf.lahav wrote: Hi David and thanks for responding, 1. I am using an exploded WAR 2. I want my webapp to contain an additional jars folder (in addition to the LIB folder) and I would like to know where the webapp is deployed so I'll

Re: find where webapp installed via java code

2007-01-25 Thread David Delbecq
URL u = Thread.currentThread().getContextClassLoader().getRessource(/path/to/a/fake/property/file); u.toString(); contains the full path to the .jar containing your propertyFile, followed by !/path/to/a/fake/property/file eg:

RE: confirm subscribe to users@tomcat.apache.org

2007-01-25 Thread ICT Department
Hi there, we have a problem running JSPWiki under Tomcat, when using Internet Explorer. It's fine in Firefox and doesn't display any exceptions as shown below! This has happened since installing the JCIFS code into web.xml for user authentication. The JSPWiki developers can't help me, they said

Re: find where webapp installed via java code

2007-01-25 Thread Pid
Have a look at One-jar, it may provide a viable alternative: http://www-128.ibm.com/developerworks/java/library/j-onejar/ http://one-jar.sourceforge.net/ The deployment is relatively simple, if you follow the suggested methodology. p PATTUS, Jean-Philippe wrote: Probably it's not the

IE Issues with JSPWiki JCIFS!!

2007-01-25 Thread ICT Department
Hi there, we have a problem running JSPWiki under Tomcat, when using Internet Explorer. It's fine in Firefox and doesn't display any exceptions as shown below! This has happened since installing the JCIFS code into web.xml for user authentication. The JSPWiki developers can't help me, they said

Re: find where webapp installed via java code

2007-01-25 Thread Christian Spatz
I have a similar question. I would like to know the path to the tomcat home directory so that I can store a file there, which won't be deleted when reploying. I want to use this as an alternative to storing some values in a database. Thanks, Max - Original Message - From: David Delbecq

RE: how to detect whether Tomcat has finished starting completely on Windows?

2007-01-25 Thread Propes, Barry L [GCG-NAOT]
I kind of have that deal here, but that's why we have to rely on the admin. -Original Message- From: Vlad [mailto:[EMAIL PROTECTED] Sent: Thursday, January 25, 2007 1:43 AM To: Tomcat Users List Subject: RE: how to detect whether Tomcat has finished starting completely on Windows?

Re: IE Issues with JSPWiki JCIFS!!

2007-01-25 Thread Gregor Schneider
That doesn't have to do with Tomcat, either. Sounds to me more than a character-set-problem, meaning you pasted something into your web.xml which is not supported by the code-page-setting in the xml-header of the web.xml. Would be helpful if you could post ypur web.xml Cheers Greg -- what's

Re: JSP include issue when pre-compiling using Ant/Tomcat

2007-01-25 Thread Tim Funk
1) If you keep reading, it also says: JSP fragments that are not complete pages should always use the .jspf suffix and should always be placed in /WEB-INF/jspf 2) Try requesting test2.jsp (the jsp which was the fragment earlier in this thread) from the browser - it won't compile 3) The

Re: Storing webapp startup parameters

2007-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: No, I'm using env-entry, with this in server.xml: Environment name=fileImportInterval type=java.lang.String value=60/ This in web.xml: resource-env-ref

Tomcat randomly hangs

2007-01-25 Thread Brian Cross
Hello and thanks in advance for any advice. We have Tomcat 5.5.20 running standalone on the following system: Dual AMD Opteron 4 gig of memory Debian Linux 2.6.8 amd64 smp kernel latest sun java 1.5, 1.6, ibm 1.5 (happens on all 3 VM's) Tomcat 5.5.20 (originally happened on 5.5.16, upgrade

Re: Storing webapp startup parameters

2007-01-25 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: No, I'm using env-entry, with this in server.xml: Environment name=fileImportInterval type=java.lang.String value=60/ This in web.xml: resource-env-ref

SSL Configuration works but half the way

2007-01-25 Thread Jose Rafael Romero Miret
I configured tomcat as standalone server and now i want to configure ssl. I did that as the book I have said and also like the documentation in the website tells me. after the configuration i get this: http://localhost:443/ gives me tomcat website. https://localhost:443/ gives me connected

multiple requests from the same client (only 2 threads are activated!)

2007-01-25 Thread Debora Desideri
Hi, I have a web application and I'm using ajax to send requests to the server (I'm using Tomcat 5.5.17). The problem is the following: - if I send more than two requests from the same client, the third request is not executed until one of the other two has been executed. It seems

Re: IE Issues with JSPWiki JCIFS!!

2007-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, ICT Department wrote: Hi there, we have a problem running JSPWiki under Tomcat, when using Internet Explorer. It's fine in Firefox and doesn't display any exceptions as shown below! [snip] java.io.UnsupportedEncodingException: Cp850

Re: Tomcat randomly hangs

2007-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, Brian Cross wrote: I would really appreciate any advice, I really don't know where to go from here to try and figure it out. If I can't figure it out soon my plan is to use apache2 as the webserver and connect to tomcat via JK. You didn't

HTTP PUT - HOW TO CONFIG?

2007-01-25 Thread Zhan, Jimmy
Hi, Is there any directive to handle HTTP PUT, like in the apache for tomcat (5.5)? In Apache I can using a directive such as: # A CGI PUT handler Script PUT /cgi-bin/put.cgi Questions: 1. If I have a put.pl ready to use, how to config in tomcat to let put.pl handle all request

Re: Tomcat randomly hangs

2007-01-25 Thread Derek Wormdahl
We are experiencing similar behavior with Tomcat 5.5.17 running standalone: Dual 3.0GHz Xeon 4GB memory RHEL AS 3 Linux 2.4.21-47.0.1.ELsmp #1 SMP Fri Oct 13 17:56:20 EDT 2006 i686 i686 i386 GNU/Linux BEA jrockit-R26.0.0-jdk1.5.0_04 This has become a big problem for us as well so I would also

RE: HTTP PUT - HOW TO CONFIG?

2007-01-25 Thread Robert Harper
If I understand your question correctly and you are using servlets to handle web requests, just override the HTTPServlet.doPost() method. Put your code to handle the put in there. Robert S. Harper Senior Engineer Information Access Technology, Inc. 1100 East 6600 South, Suite 300 Salt Lake City

Re: Tomcat randomly hangs

2007-01-25 Thread Brian Cross
Christopher, thanks for the reply. Yes I have checked all the logs and there are no warnings or errors when the hang occurs. You are right that since the VM appears to hang, fronting with apache may not help but it would rule out the Coyote connector at least. One other thing I did notice is

Re: Solaris jk-1.2.20

2007-01-25 Thread Rainer Jung
I received solaris binaries from Erich Siffert a week ago and will upload them until Monday. If the 1.2.19 ones work for you, gthe 1.2.20 ones will most likely too, because he already built the 1.2.19 ones. Thanks go to Erich. Regards, Rainer Brett D. Ellis schrieb: Hey all, New list

Re: Problems with mod_jk apache

2007-01-25 Thread Rainer Jung
I assume you are using version 1.2.20. Increase you JkLogLevel to debug and check in the mod_jk log file, if mod_jk succeeds in matching your request url to your configured JkMounts. Víctor Fragoso schrieb: Hi there, I've been trying to configure my apache2 and tomcat5.5 in order to work

Re: Tomcat randomly hangs [SECOND INQUIRY]

2007-01-25 Thread Leon Rosenberg
you shouldn't hijack threads, please start a new one. However, one quick shot: 2.4 kernel usually doesn't have nptl support, which means that you can maximum have something like 500 threads in tomcat (depending on how many other threads exist in your app). Another question, is it a et64 xeon? if

RE: HTTP PUT - HOW TO CONFIG?

2007-01-25 Thread Zhan, Jimmy
Hi, Yes. I wand tomcat transfers all HTTP PUT requests to our handler /cgi-bin/put.pl. Thanks Jimmy ZHAN Cash America -Original Message- From: Robert Harper [mailto:[EMAIL PROTECTED] Sent: Thursday, January 25, 2007 1:43 PM To: 'Tomcat Users List' Subject: RE: HTTP PUT - HOW TO

Re: Tomcat randomly hangs

2007-01-25 Thread Leon Rosenberg
maybe you should perform a full thread dump in normal state, and check whether this very long running requests result in hanging threads? Then you are probably out of threads at some point and no more connections can be created. You have no SEVERE All Threads busy in your catalina.out by chance?

Re: 64-bit tomcat5.exe not working properly (TC 5.5.20)

2007-01-25 Thread Martin Skøtt
A reply for archives... The amd64 files in the SVN repository at the URL below are named incorrectly!!! - tomcat5.exe.amd64 should be called tomcat5w.exe.amd64 - tomcat5w.exe.amd64 should be called tomcat5.exe.amd64 After I renamed the files the service works perfectly! I hope others won't be

Re: Classloader or Security Issue?

2007-01-25 Thread Boris Unckel
Hi, Suneet Shah wrote: Hello, I am trying to call an EJB from tomcat 5.5.20. The EJB is is located on Websphere 6.1. I am able to get the JNDI context, but when I lookup the bean, I get the exception below. I confirmed that its not a classpath issue as the ibmorb.jar, which contains the

Re: Tomcat randomly hangs

2007-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: maybe you should perform a full thread dump in normal state, and check whether this very long running requests result in hanging threads? Then you are probably out of threads at some point and no more connections can

Re: HTTP PUT - HOW TO CONFIG?

2007-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, Robert Harper wrote: If I understand your question correctly and you are using servlets to handle web requests, just override the HTTPServlet.doPost() method. Uhh doPut(), maybe? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG

Re: Solaris jk-1.2.20

2007-01-25 Thread Rainer Jung
... done. Erich's builds have been uploaded. It might take up to 4 hours to sync them on www.apache.org and a couple of more hours for mirroring worldwide. Rainer Jung schrieb: I received solaris binaries from Erich Siffert a week ago and will upload them until Monday. If the 1.2.19 ones work

RE: HTTP PUT - HOW TO CONFIG?

2007-01-25 Thread Robert Harper
Bad day for me, you are very correct. It should be the doPut() method. From another post, I am very confused why he is trying to use Tomcat. He seems to want to redirect everything to PL script so why not just use a web server to redirect. It doesn't seem to be a good use for a Java servlet/JSP

RE: Storing webapp startup parameters

2007-01-25 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Storing webapp startup parameters A JNDI browser might simplify this for you if you can either deploy it into your existing application, or if you can somehow connect to it from the outside. Doesn't Tomcat's admin app have

Re: HTTP PUT - HOW TO CONFIG?

2007-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, Robert Harper wrote: From another post, I am very confused why he is trying to use Tomcat. He seems to want to redirect everything to PL script so why not just use a web server to redirect. It doesn't seem to be a good use for a Java

RE: HTTP PUT - HOW TO CONFIG?

2007-01-25 Thread Robert Harper
Maybe the TC mailing list has a good reputation. ;) Very good point. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: SSL Configuration works but half the way

2007-01-25 Thread Caldarale, Charles R
From: Jose Rafael Romero Miret [mailto:[EMAIL PROTECTED] Subject: SSL Configuration works but half the way I configured tomcat as standalone server and now i want to configure ssl. 1) You told us the JDK, but what _exact_ version of Tomcat are you using? 2) Do you have APR installed? If

Trouble adding custom ELResolver into resolver chain

2007-01-25 Thread Jason Rasmussen
I am trying to use a custom ELResolver that will work with the existing default resolvers. Initially, I tried just adding it within the face-config.xml as follows: application el-resolverdemo.resolver.DCELResolver/el-resolver /application It worked to add my resolver, but it got rid of

Memory Mgmt Tomcat

2007-01-25 Thread Gaurav Kushwaha
I am running Tomcat 5.0.28 on Linux. It works fine for few days but starts throwing OutOfMemoryException after that. Any clues ?? Thanks, Gaurav Singh Kushwaha http://www.chakpak.com Ph: +91-9880101496 Bangalore, India.

RE: multiple requests from the same client (only 2 threads are activated!)

2007-01-25 Thread Caldarale, Charles R
From: Debora Desideri [mailto:[EMAIL PROTECTED] Subject: multiple requests from the same client (only 2 threads are activated!) - if I send more than two requests from the same client, the third request is not executed until one of the other two has been executed. Assuming your

RE: Memory Mgmt Tomcat

2007-01-25 Thread Indu Devanath
You might find useful information at the below links. http://tomcat.apache.org/faq/memory.html#why http://search400.techtarget.com/tip/1,289483,sid3_gci1000892,00.html Indu -Original Message- From: Gaurav Kushwaha [mailto:[EMAIL PROTECTED] Sent: Thursday, January 25, 2007 5:10 PM To:

Re: Memory Mgmt Tomcat

2007-01-25 Thread Leon Rosenberg
Try this link: http://www.catb.org/~esr/faqs/smart-questions.html regards Leon On 1/25/07, Gaurav Kushwaha [EMAIL PROTECTED] wrote: I am running Tomcat 5.0.28 on Linux. It works fine for few days but starts throwing OutOfMemoryException after that. Any clues ?? Thanks, Gaurav Singh Kushwaha

Re: Memory Mgmt Tomcat

2007-01-25 Thread Gaurav Kushwaha
Thanks, Lemme try these out. Regards, On 1/26/07, Indu Devanath [EMAIL PROTECTED] wrote: You might find useful information at the below links. http://tomcat.apache.org/faq/memory.html#why http://search400.techtarget.com/tip/1,289483,sid3_gci1000892,00.html Indu -Original

RE: HTTP PUT - HOW TO CONFIG?

2007-01-25 Thread Zhan, Jimmy
Hi, Thanks for your responses! I don't know tomcat how handle HTTP PUT requests. But I want tomcat transfers all PUT requests to my handler /cgi-bin/put.pl as apache does. How to config in tomcat to do this? Thanks Jimmy Zhan -Original Message- From: Christopher Schultz

RE: HTTP PUT - HOW TO CONFIG?

2007-01-25 Thread Zhan, Jimmy
Hi Robert and chris, Do you mean tomcat can NOT transfer PUT request to my handler Just apache does thru config? I'm new here. What's the TC mailing list? Thanks Jimmy -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Thursday, January 25, 2007 3:40 PM To:

Re: Tomcat randomly hangs

2007-01-25 Thread Stefan Baramov
Since you all are using Java 5 why do you try to enable JMX. JConsole could give you a good insight on threads. It could even provide thread dump or possibly detect deadlock. - Stefan - To start a new topic, e-mail:

RE: HTTP PUT - HOW TO CONFIG?

2007-01-25 Thread Robert Harper
I don't know if Tomcat would be able to do this without some code. It is not intended to replace Apache, IIS, or some other web server. It is intended to be a Java Servlet/JSP container. You might try creating a servlet that does something like this public void doPost(HttpServletRequest

RE: HTTP PUT - HOW TO CONFIG?

2007-01-25 Thread Robert Harper
I don't know if it can or can not. I never tried because I wanted to write Java code to handle by web requests rather than learn PL script. If you don't want to write Java script, then why not just use Apache since you seem to know how to configure it just fine. Tomcat can do some simple web

RE: HTTP PUT - HOW TO CONFIG?

2007-01-25 Thread Zhan, Jimmy
Robert, Thanks for your advice! We don't have apache server available now. We have a tomcat server can be use now. There is not too much PUT requests at all. But we need handle those requests using https. https is working fine now at tomcat, as I know setup https in

RE: HTTP PUT - HOW TO CONFIG?

2007-01-25 Thread Caldarale, Charles R
From: Zhan, Jimmy [mailto:[EMAIL PROTECTED] Subject: RE: HTTP PUT - HOW TO CONFIG? Our goal is simple, just use the request URI as the file name and put them under /webapps/incoming/. How about a valve to examine the headers and forward all PUT requests to a specific webapp, modifying the

Latest tomcatie/IIS marriage trouble on CPU usage

2007-01-25 Thread Michael
Hi, I tried to follow the installation steps. I can see 'http://localhost/jsp-examples/'. But, for some reasons tomcat5.exe hit cpu nearly 50-100% and stay there. This happens on two installations. If I go to 'http://localhost:8080/jsp-examples/', CPU hit is fine( 3%). My Windows server is

Re: confirm subscribe to users@tomcat.apache.org

2007-01-25 Thread Mark Thomas
ICT Department wrote: Hi there, we have a problem running JSPWiki under Tomcat, when using Internet Explorer. It's fine in Firefox and doesn't display any exceptions as shown below! This has happened since installing the JCIFS code into web.xml for user authentication. The JSPWiki

Re: Storing webapp startup parameters

2007-01-25 Thread David Kerber
Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Storing webapp startup parameters A JNDI browser might simplify this for you if you can either deploy it into your existing application, or if you can somehow connect to it from the outside.

Re: Storing webapp startup parameters

2007-01-25 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Christopher Schultz wrote: Aah, okay. That's the same thing as env-entry in web.xml, I think. I think I need to look at that; I'd like to eliminate the entry in server.xml

How to locate a configuration file on disk at runtime

2007-01-25 Thread David Kerber
This is a followup to my question about startup parameters. After digging around a bit, it looks like my best bet is to use the Properties class to read my settings from a disk file at startup. The properties api appears to be easy to use, and works very similarly to the Preferences class.

Re: Tomcat randomly hangs

2007-01-25 Thread Brian Cross
Thanks for the suggestion Stefan. Yes I have run JConsole and will look at it some more. When the hang happens JConsole stops responding as well. Stefan Baramov wrote: Since you all are using Java 5 why do you try to enable JMX. JConsole could give you a good insight on threads. It could

Re: How to locate a configuration file on disk at runtime

2007-01-25 Thread David Kerber
David Kerber wrote: This is a followup to my question about startup parameters. After digging around a bit, it looks like my best bet is to use the Properties class to read my settings from a disk file at startup. The properties api appears to be easy to use, and works very similarly to the

RE: How to locate a configuration file on disk at runtime

2007-01-25 Thread Caldarale, Charles R
From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: How to locate a configuration file on disk at runtime 2. Put the config file somewhere in the tree of my webapp, such at docbase or in conf. But again, I can't figure out how to pick that location in a form I can use to read

Re: How to locate a configuration file on disk at runtime

2007-01-25 Thread David Kerber
Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: How to locate a configuration file on disk at runtime 2. Put the config file somewhere in the tree of my webapp, such at docbase or in conf. But again, I can't figure out how to pick that location in

invalid LOC header (bad signature) when running in servlet only

2007-01-25 Thread Claude Warren Jr
I have an web application that takes OpenOffice 1.1 files and converts them to web pages. I have a single sxw file that causes an exception but only when run in the servlet. When running in the servlet I get: java.lang.InternalError: jzentry == 0, jzfile = 138986592, total = 6, name =

RE: invalid LOC header (bad signature) when running in servlet only

2007-01-25 Thread Caldarale, Charles R
From: Claude Warren Jr [mailto:[EMAIL PROTECTED] Subject: invalid LOC header (bad signature) when running in servlet only message = invalid LOC header (bad signature) This is an indication of a corrupted .zip file. ZIP files can be read either sequentially or via the table of contents

RE: Storing webapp startup parameters

2007-01-25 Thread Caldarale, Charles R
From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Storing webapp startup parameters I thought the webapp had to be bounced for this to take effect, but I'd love to be proven wrong about that! You're right, it does appear that even a new InitialContext object does not pick up

authentication using active directory

2007-01-25 Thread Deepan
Hi, I am trying to authenticate using Active directory for one my application in tomcat. ( I have only one application deployed in tomcat). I had configured server.xml and web.xml to use /gridsphere/login.html to get details from user and authenticate using AD. When i hit the url

Re: Tomcat randomly hangs

2007-01-25 Thread Leon Rosenberg
On 1/26/07, Brian Cross [EMAIL PROTECTED] wrote: Thanks for the suggestion Stefan. Yes I have run JConsole and will look at it some more. When the hang happens JConsole stops responding as well. Brian, have you actually tested the memory of the machine? Leon Stefan Baramov wrote: Since

difference between FORM and BASIC authentication method

2007-01-25 Thread Deepan
what is BASIC authentication method ? i mean how is it different from FORM authentication ? does it mean i dont have to write a login.html or login.jsp page ? -- --- Regards Deepan Chakravarthy N http://www.codeshepherd.com/ http://sudoku-solver.net/

Session timeout during method execution

2007-01-25 Thread Muneendra
Hi, I have a little complicated issue with HttpSession timeout process. It goes like this. Lets says, my Web Application session timeout period is 5 minutes. I made a Http request to server and corresponding Servlet requires more than 5 minutes lets say 10 minutes to complete the business logic.