Re: How to find Tomcat config and log path?

2007-07-03 Thread Joe Kramer
I have multiple Tomcat instances running. How do I go about "conf"/"log" folders, are they constant strings anywhere? On 7/4/07, Yifan (Eric) Jiang <[EMAIL PROTECTED]> wrote: Setup your environment variable "CATALINA_HOME" (if you are using Windows, make sure it is a system environment rather th

RE: How to find Tomcat config and log path?

2007-07-03 Thread Yifan (Eric) Jiang
Setup your environment variable "CATALINA_HOME" (if you are using Windows, make sure it is a system environment rather than a user environment variable), and then use System.getenv("CATALINA_HOME"); to get the tomcat path. Hope this can help Cheers Eric -Original Message- From: Joe

How to find Tomcat config and log path?

2007-07-03 Thread Joe Kramer
Hello, I've been googling and searching Tomcat website and couldn't find an answer to this problem. I need to find a path to tomcat conf (and log) folders from within my servlet. I imagine there should be something like: SomeCatalinaClass.getHomePath()+File.separatorChar+SomeCatalinaClass.CONF_

RE: Help on setup https on Tomcat in linux

2007-07-03 Thread Yifan (Eric) Jiang
Perhaps the firewall setting for your Linux if your Linux is on a remote server? Thanks Eric -Original Message- From: Jack Wang [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 July 2007 3:48 p.m. To: users@tomcat.apache.org Subject: Help on setup https on Tomcat in linux I try to setup to

AW: Tomcat - Apache: IP replacement

2007-07-03 Thread 吴熊敏
On Tue, 3 Jul 2007 17:17:08 +0200 "Nino Ulsamer" <[EMAIL PROTECTED]> wrote: > Hello, > > I almost couldn't believe it, but I solved the problem. The issue was Apache > missing a flag in its config file, Win32DisableAcceptEx. When I put this into > the httpd.conf, everything worked fine! > > T

Help on setup https on Tomcat in linux

2007-07-03 Thread Jack Wang
I try to setup tomcat https connection on port 8443 in redhat linux. I followed the instruction and get no error when start tomcat. But I could NOT connect to it from browser by https://:8443/xxx.html . I setup the same tomcat in Window. It works. Could someone help me to sovle it? Thanks

Re: tomcat compile failure on debian build.xml base.path for JDT eclipse jars et. al.

2007-07-03 Thread Filip Hanik - Dev Lists
try compiling with JDK 1.5, we've heard that there have been problems compiling with 1.6 Filip david wrote: Hello Tomcat dev, gurus, ranters and ravers, I have downloaded the TC source (apache-tomcat-6.0.13-src.tar.gz) and the ant (1.6) build attempt fails with the following error condition

Re: problems with mod_jk modifying headers

2007-07-03 Thread Bill Barker
"Anton Melser" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > (maybe a repost?) > Hi all, > We are running tomcat 5.5.23 on java 1.6.0 (suse 10.0 with addon java6 > rpms for suse 10.1). These machines are load balanced behind an apache > 2.2.2 with mod_jk jakarta-tomcat-connectors-

RE: WEB.XML file parsing

2007-07-03 Thread Andrew Friebel
Thankyou for your assistance. That is a winner. The only change that needs to occur is the getResource() method does not use leading slashes. So to set the URL object, it should look like: URL resource = this.getClass().getClassLoader().getResource("javax/servlet/resources/web-ap

Re: How internally does a jndi resource get created?

2007-07-03 Thread Filip Hanik - Dev Lists
for any element, you can define the factory that creates the object. and this factory implements the javax.naming.spi.ObjectFactory you can also take a look at the class org.apache.naming.factory.ResourceFactory in Tomcat, this is the default one that does the instantiation Filip Jevin M

Re: Tomcat 6 classloader errors

2007-07-03 Thread Filip Hanik - Dev Lists
you can still use shared/lib, you just must configure it using conf/catalina.properties Filip Peter Stavrinides wrote: Apologies, thanks for your help! ... at the moment I cant open the link, but I will check it out in a minute. Thanks again. Peter Caldarale, Charles R wrote: From: Peter Stav

How internally does a jndi resource get created?

2007-07-03 Thread Jevin Maltais
Big picture: Trying to hide the password from the server.xml file and instead have it in byte code in a compile version of tomcat. I'm trying to figure out when the jndi resource is being created by tomcat so I can change the password for a given resource. It may not be super clean or OO style b

Re: Tomcat 5.0.28 SocketException error

2007-07-03 Thread Filip Hanik - Dev Lists
this would be your hint java.lang.OutOfMemoryError so yes, running out of memory would crash your server. what you can do is 1. upgrade to 1.4.2_14 2. add "-XX:+HeapDumpOnOutOfMemoryError" to your JAVA_OPTS this will produce a .hprof file containing your memory dump, you can then analyze the

Re: Tomcat - Apache: IP replacement

2007-07-03 Thread Johnny Kewl
Nino, I'm thrilled that you onto the problem, and that there definitely seems to be a real issue, its not just a config glitch somewhere. but it doesnt look good. That command is effectively turning Apache into a steam engine on windows, and its treating windows like its got stone age sock

RE: Image problem on tomcat

2007-07-03 Thread Propes, Barry L
maybe WAP browsers aren't configured to handle that extension? -Original Message- From: Zilberstein Yuval [mailto:[EMAIL PROTECTED] Sent: Thursday, June 28, 2007 11:13 AM To: Tomcat Users List Subject: Image problem on tomcat Hello all, I have an image problem on the Tomcat server. I hav

Tomcat 5.0.28 SocketException error

2007-07-03 Thread bobo tr
Hi, I'm running Tomcat 5.0.28 with JDK 1.4.2_10, and I can see in catalina.out a lot of : GRAVE: Remote Host /xxx.xxx.xxx.x SocketException: Invalid argument Jul 2, 2007 2:16:18 AM org.apache.tomcat.util.net.TcpWorkerThread runIt When I have around 50 messages like this one, I can see this mes

Re: Form authentication with captcha...

2007-07-03 Thread Christopher Schultz
David and Ricardo, David Delbecq wrote: > 2) Don't rely on container security and provide your own security with > you own whatever forms. Securityfilter (http://securityfilter.sourceforge.net) is a drop-in replacement for container-managed security that is implemented as a filter and can be exte

AW: Tomcat - Apache: IP replacement

2007-07-03 Thread Nino Ulsamer
Hello, I almost couldn't believe it, but I solved the problem. The issue was Apache missing a flag in its config file, Win32DisableAcceptEx. When I put this into the httpd.conf, everything worked fine! This crazy stuff took me 2 days to figure out... Does anyone by any chance know what this i

RE: OT: Sessions

2007-07-03 Thread Propes, Barry L
sounds almost like some MetaFrame connection or something, then running the app on that particular machine. Is that what's going on here? -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Thursday, June 28, 2007 8:20 AM To: [EMAIL PROTECTED] Cc: Tomcat Users Lis

Re: Tomcat 5.5 Clustering issues

2007-07-03 Thread Filip Hanik - Dev Lists
the disappeared message appears 3seconds after the member added message. 3 seconds is the timeout you have set, ie, if no multicast heartbeat is received after 3 seconds, consider the member dead. so it seems like multicasting is not working properly on your system. Filip Andrew R Feller wrote

Re: Tomcat - Apache: IP replacement

2007-07-03 Thread Johnny Kewl
- Original Message - From: "Nino Ulsamer" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, July 03, 2007 2:25 PM Subject: AW: Tomcat - Apache: IP replacement Hi, thanks for your help! I now tried the following: I set up the configuration as you told me on my local machine

Re: Tomcat 6 classloader errors

2007-07-03 Thread Peter Stavrinides
Apologies, thanks for your help! ... at the moment I cant open the link, but I will check it out in a minute. Thanks again. Peter Caldarale, Charles R wrote: From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6 classloader errors The Tapestry libraries are in $CATALINA_BASE

Tomcat 5.5 Clustering issues

2007-07-03 Thread Andrew R Feller
Good morning everyone, I have been trying to get Tomcat clustering between two Tomcat instances set up, but I have run into some issues. After opening the necessary ports in the firewall, routing the broadcast messages to the correct network interface (eth0), and setting up server.xml with the

RE: Tomcat 6 classloader errors

2007-07-03 Thread Caldarale, Charles R
> From: Peter Stavrinides [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat 6 classloader errors > > The Tapestry libraries are in $CATALINA_BASE/shared/lib. You're not bothering to read the TC 6 classloading doc - there is no shared/lib anymore. Here's the link, again: http://tomcat.apache.org/t

Re: Tomcat 6 classloader errors

2007-07-03 Thread Peter Stavrinides
Hi Chuck, Thanks for the reply! The Tapestry libraries are in $CATALINA_BASE/shared/lib. Caldarale, Charles R wrote: From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Subject: Tomcat 6 classloader errors I am porting a Java servlet from Tomcat 5.5.20 to Tomcat 6 and I seem to be having clas

Noob trying to figure out JavaMail

2007-07-03 Thread Mike Peremsky
I am trying send emails in the app I am creating.I know from the examples that I can use Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); Session session = (Session) envCtx.lookup("mail/Session"); Message msg = new MimeMessage(session)

RE: Tomcat 6 classloader errors

2007-07-03 Thread Caldarale, Charles R
> From: Peter Stavrinides [mailto:[EMAIL PROTECTED] > Subject: Tomcat 6 classloader errors > > I am porting a Java servlet from Tomcat 5.5.20 to Tomcat 6 > and I seem to be having classloader issues. The application > works under 5, but under 6 I get the following stack trace. > > [EMAIL PROTEC

Tomcat 6 classloader errors

2007-07-03 Thread Peter Stavrinides
I am porting a Java servlet from Tomcat 5.5.20 to Tomcat 6 and I seem to be having classloader issues. The application works under 5, but under 6 I get the following stack trace.HELP! Peter Jul 3, 2007 4:13:46 PM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat N

AW: Tomcat - Apache: IP replacement

2007-07-03 Thread Nino Ulsamer
Hi, thanks for your help! I now tried the following: I set up the configuration as you told me on my local machine (running Windows XP) and everything works like expected (getting some IP-address), like you described. If, however, I move to one of our servers (I tried two different servers now)

Re: An unrecoverable stack overflow has occurred.

2007-07-03 Thread Tim Miller
Hi, i had found some documentation that gave the meaning of some of the text in that error log. They had a suggested workaround that seems to have worked out for the time being. It said to switch to the client jvm rather than the server. As far as I can tell, there is no performance hit or draw

Re: Images and response.getOutputStream()

2007-07-03 Thread Lyallex
Ricardo What can I say ... sometimes you just get a mental block about these things I used a servlet and now I don't get any java.lang.IllegalStateExceptions when loading images Thank you for showing me the light. Regards Duncan On 7/3/07, rpr_listas <[EMAIL PROTECTED]> wrote: Hi Lyallex! Y

Re: Tomcat - Apache: IP replacement

2007-07-03 Thread Johnny Kewl
Hi Nino, Just to make sure my memory served me correctly, I setup a test case for Apache -> JK -> TC on a machine (XP SP2) with IPV6 enabled. Apache, Browser and TC... are all on same machine to simulate your test. Apache is not IPv6 enabled The machines name is Animal ipv4 10.0.0.4... IP

Problems Exporting Private Key from Tomcat's JKS keystore for use in MS ISA Server

2007-07-03 Thread Steven Hirschorn
Hi All, I'm trying to publish a Tomcat server through a Microsoft ISA server firewall using SSL Bridging, and in order to do this I need to export the private key belonging to the Tomcat site, and import it into the Windows Certificate store. Can anyone help with a procedure for doing this? The

Re: Form authentication with captcha...

2007-07-03 Thread David Delbecq
Hello, Form authnetificator does form based authentification regarding the corresponding J2EE specifications, which specify the submit name of the username field (j_username), the submit name of the user password (j_passwrd), and that's all. Of course you, developper of webapplication can customiz

Re: Images and response.getOutputStream()

2007-07-03 Thread rpr_listas
Hi Lyallex! You're getting a OutputStream ftrom a JSP? If the JSP has a simple single empty line before your java code <%%>, the JSP framework get a writer before your java code is executred. This is the cause of the IllegalState Exception. The rigth way to do this is from a servlet, but if y

Images and response.getOutputStream()

2007-07-03 Thread Lyallex
Hi I'm not sure this is a Tomcat question, more likely a poor understanding of the Request/Response lifecycle on my part but I'll give it a go anyway. After agonising for days(weeks) over whether to store my images in a database or on the filesystem I opted for the database. I have everything w

Re: Old Chestnut (http - https) causing some confusion

2007-07-03 Thread Lyallex
Hi Just a short note to say thanks to those that replied to my post I've spent the past three days trying to figure out the best approach given all the options available and I have something working. It's doesn't work quite how I'd like, the main problem being that when I get a RequestDispatcher

Form authentication with captcha...

2007-07-03 Thread rpr_listas
Hi all! I'm thinking in implement a captcha (http://en.wikipedia.org/wiki/Captcha) protection for web-based authentication. I'm looking in the tomcat surce and the form authentication seems be implemented by org.apache.catalina.authenticator.FormAuthenticator class. But I'm not sure if chan

Re: Tomcat Threads handling user Requests problem

2007-07-03 Thread Mirek Kopriva
Hi Guys, Thanks a lot for the prompt feedback. Unfortunately it won't be acceptable to have users going to the registry to improve the performance of the application, so I will have to find out something else. As custom multi-threading in an j2ee application is not recommended, I will have to solv