RE: DNS Problem

2008-03-10 Thread Peter Crowther
From: only vimal [mailto:[EMAIL PROTECTED] My problem is if I use DNS name of server instead of IP address in the URL its giving DNS error from other systems. That sounds like a DNS problem - a DNS error would cause a failure before the remote system ever tried to contact Tomcat. Let's take

Re: interrupting a multipart post request?

2008-03-10 Thread Christian Kindler
Christopher Schultz schrieb: Christian Kindler wrote: | I want to interrupt a multipart post request (e.g. if the content-length | exceeds a given limit). The problem is, that the client seems to | continue sending the data to the server and gets no response from the | server until the whole

Re: difference between TC5.5 and TC6

2008-03-10 Thread amit kumar
We intend to develop tomcat valves specific to our product, I found information about APIs available and samples from the internet and book. But I am not able to locate any material over internet or in books for the Tomcat 6. It looks like the valve development specific classes have been

Re: difference between TC5.5 and TC6

2008-03-10 Thread Len Popp
The abstract base class org.apache.catalina.valves.ValveBase makes it easy to implement a Valve. See the Tomcat 6 javadocs. Also, there are several valves that you can look at in the Tomcat source code, such as org.apache.catalina.valves.AccessLogValve. -- Len On Mon, Mar 10, 2008 at 7:41 AM,

Eclipse with tomcat and mysql

2008-03-10 Thread kevin
Hello, I'm having trouble getting Eclipse to work with Mysql/Tomcat. In Eclipse, I have set up a project and have added a Tomcat server and added the project to the server. The project consists of a simple example of a standard struts architecture for the MVC. Model: Artist.java,

Re: Eclipse with tomcat and mysql

2008-03-10 Thread Len Popp
What version of Eclipse are you using, and what extensions are you using for your webapp project (e.g. Web Standard Tools or Sysdeo Tomcat plug-in)? -- Len On Mon, Mar 10, 2008 at 11:32 AM, [EMAIL PROTECTED] wrote: Hello, I'm having trouble getting Eclipse to work with Mysql/Tomcat. In

Re: Eclipse with tomcat and mysql

2008-03-10 Thread kevin
Eclipse (Eurpoa) version 3.1.1 I am using the Web Standard Tools. (The project I created is a Dynamic Web Project). I do NOT have the Sysdeo Tomcat plugin. Would this help? Thanks, Kevin - Original Message - From: Len Popp [EMAIL PROTECTED] To: Tomcat Users List

A suggestion for the default server.xml file

2008-03-10 Thread Josiah Yoder
There are several helpful notes in the server.xml file Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. These are nice, but they didn't tell me where to put my Valve component to do standard access logging.

Re: Eclipse with tomcat and mysql

2008-03-10 Thread Martin Gainty
Kevin- tomcat shutdown from Eclipse install sysdeo Go to preferences and then navigate to Sysdeo Tomcat option. Here your will find a property 'Source Path'. Select your project that you want to debug. Save your changes and start tomcat again. Be mindful Eclipse IDE likes to run in its *own

A suggestion for the Logging FAQ

2008-03-10 Thread Josiah Yoder
After reading the logging FAQ, http://wiki.apache.org/tomcat/FAQ/Logging I was under the impression that I would need to program my own logger to accomplish what I wanted to do, even though it can be done with the simple request log listed below: (In server.xml, in the Engine tag) Valve

Detecting traffic level programmatically

2008-03-10 Thread Paranoid_Fabio
Hello. I'm developing an application for a small company. The company has got only one server, from wich users can download data uploaded by providers. Data can be uploaded in zip archives and it can be several MB large. I don't want users to experience slow down in the download, so I would like

RE: building mod_jk failing

2008-03-10 Thread Justin Vassallo
Hello, I am trying to build mod_jk on Solaris 10 x86, which unfortunately is not available in binary form. I dlded Apache source and built using: $ PATH=$PATH:/usr/sfw/bin:/usr/ccs/bin $ export PATH SH_LIBS $ ./configure --with-included-apr

Re: building mod_jk failing

2008-03-10 Thread Rainer Jung
Justin Vassallo wrote: Hello, I am trying to build mod_jk on Solaris 10 x86, which unfortunately is not available in binary form. I dlded Apache source and built using: $ PATH=$PATH:/usr/sfw/bin:/usr/ccs/bin $ export PATH SH_LIBS $ ./configure --with-included-apr

RE: Eclipse with tomcat and mysql

2008-03-10 Thread Larry Isaacs
For some info about the Tomcat support in the Web Tools Platform of Eclipse, see this FAQ: http://wiki.eclipse.org/WTP_Tomcat_FAQ If you happen to have put your mysql driver jar in shared/lib, then this question might explain the behavior:

Re: Eclipse with tomcat and mysql

2008-03-10 Thread Len Popp
Web Standard Tools makes copies of some of the Tomcat config files, which might be causing your problem. In particular, if you've defined your JDBC resource in server.xml it might not be seen by Tomcat when you run it from Eclipse. If that's the case, update the copy of server.xml in your Eclipse

Re: Eclipse with tomcat and mysql

2008-03-10 Thread Steve Ochani
Hello, I'm having trouble getting Eclipse to work with Mysql/Tomcat. In Eclipse, I have set up a project and have added a Tomcat server and added the project to the server. The project consists of a simple example of a standard struts architecture for the MVC. Model: Artist.java,

RE: Reloading an application when threads are running

2008-03-10 Thread Eric Daniel
On Fri, Mar 07, 2008 at 10:51:07PM -0600, Caldarale, Charles R wrote: This may be the same issued discussed earlier today in this mailing list. Look here for Mark T's comments: http://marc.info/?l=tomcat-userm=120492204906663w=2 especially the suggestion at the bottom of the bugzilla link.

Re: Eclipse with tomcat and mysql

2008-03-10 Thread kevin
Yes the driver is in my project libraries. Thanks, Kevin - Original Message - Do you have the driver for MySQL added to your project libraries? -Steve O. - To start a new topic, e-mail: users@tomcat.apache.org

RE: building mod_jk failing

2008-03-10 Thread Justin Vassallo
Thank you that helped. I got gnumake installed and configure worked fine. (had to chmod 700 configure and scripts/build/instdso.sh) Now getting this warning, otherwise .so being created ok: Warning! dlname not found in /local/home/ixops3/tomcat-connectors-1.2.26-src/tomcat-connectors-1.2.26-src

Re: Eclipse with tomcat and mysql

2008-03-10 Thread kevin
This did not work either. There is a EclipseWorkspace/Servers/Tomcat v5.5 Server at localhost-config directory which contains a copy of the tomcat conf files such as server.xml. I tried adding the DB driver context to this server.xml file but got the same issue. For Tomcat 5.5 I had to add

Re: Eclipse with tomcat and mysql

2008-03-10 Thread mgainty
Kevin-- what version is your MySQL driver? ? Martin - Original Message - Wrom: UFPEGAUTFJMVRESKPNKMBIPBARHDMN To: Tomcat Users List users@tomcat.apache.org Sent: Monday, March 10, 2008 1:43 PM Subject: Re: Eclipse with tomcat and mysql Yes the driver is in my project libraries.

8080 only works on localhost

2008-03-10 Thread banderson
I have an application running on tomcat 5.5 and I can access it no problem from http://localhost:8080. However, when I use another computer to try and connect via IP address (192.168.1.2:8080), the browser states that it can't establish a connection. Any ideas what I might be missing? -- View

Re: 8080 only works on localhost

2008-03-10 Thread Edoardo Panfili
banderson ha scritto: I have an application running on tomcat 5.5 and I can access it no problem from http://localhost:8080. However, when I use another computer to try and connect via IP address (192.168.1.2:8080), the browser states that it can't establish a connection. Any ideas what I

Re: Eclipse with tomcat and mysql

2008-03-10 Thread kevin
version 5.1.5 Kevin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Tomcat Users List users@tomcat.apache.org Sent: Monday, March 10, 2008 11:20 AM Subject: Re: Eclipse with tomcat and mysql Kevin-- what version is your MySQL driver? ? Martin - Original

archiving logs

2008-03-10 Thread Neha Agrawal
Hello i am able to rotate my application logs daily using log4j..Now i want to archive each application's log files, such that i have 7 log files available for view always and rest of the old log files should be another directory gzipped.. Does log4j provides anything for archiving? or i

RE: 8080 only works on localhost

2008-03-10 Thread Caldarale, Charles R
From: banderson [mailto:[EMAIL PROTECTED] Subject: 8080 only works on localhost when I use another computer to try and connect via IP address (192.168.1.2:8080), the browser states that it can't establish a connection. 1) Firewall on either machine? 2) Is the other computer on the same

Re: A suggestion for the Logging FAQ

2008-03-10 Thread Mark Thomas
Josiah Yoder wrote: After reading the logging FAQ, http://wiki.apache.org/tomcat/FAQ/Logging I was under the impression that I would need to program my own logger to accomplish what I wanted to do, even though it can be done with the simple request log listed below: (In server.xml, in the

Cluster problem

2008-03-10 Thread vaidac
Hi there, I have a problem with a clustering configuration. I am using tomcat-5.5.23 on FreeBSD 6.2 OS and java 1.5.0. My problem is that the session content seems to not be replicated in some situations (when it should be). I will try to describe my situation with an example. I have tomcatA

Re: Detecting traffic level programmatically

2008-03-10 Thread david delbecq
Paranoid_Fabio a écrit : Hello. I'm developing an application for a small company. The company has got only one server, from wich users can download data uploaded by providers. Data can be uploaded in zip archives and it can be several MB large. I don't want users to experience slow down in the

Re: building mod_jk failing

2008-03-10 Thread Rainer Jung
Hi Justin, Justin Vassallo schrieb: Thank you that helped. I got gnumake installed and configure worked fine. (had to chmod 700 configure and scripts/build/instdso.sh) No, I think you are still using the wrong source download. In the tar.gz download of mod_jk 1.2.26 configure is already

IllegalStateException when using CometConnectionManagerValve

2008-03-10 Thread Dan Rabe
We're writing an application that processes requests using both a normal servlet and a CometProcessor. The normal servlet handles user authentication and logout (among other things). Once the user has been authenticated, the client makes a Comet request, which is open until the server has

Re: 8080 only works on localhost

2008-03-10 Thread david delbecq
banderson a écrit : I have an application running on tomcat 5.5 and I can access it no problem from http://localhost:8080. However, when I use another computer to try and connect via IP address (192.168.1.2:8080), the browser states that it can't establish a connection. Any ideas what I might

Can't start tomcat 5.5.26 service on windows

2008-03-10 Thread Eric Hawkes
Hi, I'm installing tomcat in kind of a strange way (I'll explain why in a postscript), and I'm having trouble getting the service to start and stop consistently. I'd appreciate any advice on how to get this working, or a better procedure that meets the constraints under which I must work.

Re: Eclipse with tomcat and mysql

2008-03-10 Thread Len Popp
So you're putting the webapp.xml file into conf/Catalina yourself, right? That could be the problem because of the way Web Standard Tools copies files around (or doesn't) when you Publish the webapp. I don't know all the details, but some files in workspace/Servers/Tomcat v5.5 Server are copied to

Problem showing german characters

2008-03-10 Thread Stasa Jerinic
Hallo, I save some application specific settings in file, that will be readed from application. This file contains parameters that can contain german special characters like Ö, Ä, Ü, ß etc. I tested my application under windows 2000 professional with Tomcat 5.0 and under Linux and the german

Re: Eclipse with tomcat and mysql

2008-03-10 Thread kevin
So I found this out the hard way. Eclipse overwrote my $CATALINA_HOME/conf/Catalina/localhost/webapp.xml Now I can't see to get the DB connected outside of Eclipse either. I can't remember what the syntax on the context was since I had to try many different suggestions I found on the web

Re: Problem showing german characters

2008-03-10 Thread Ingo Krabbe
Am Dienstag, 11. März 2008 02:03:37 schrieb Stasa Jerinic: Hallo, I save some application specific settings in file, that will be readed from application. This file contains parameters that can contain german special characters like Ö, Ä, Ü, ß etc. I tested my application under windows 2000

RE: Eclipse with tomcat and mysql

2008-03-10 Thread Caldarale, Charles R
From: David Smith [mailto:[EMAIL PROTECTED] Subject: Re: Eclipse with tomcat and mysql For the most part -- just remember case matters. It's Context, not context. Same is true for Logger and Resource as well. Note that there is no Logger element in 5.5, and the posted resource [sic]

RE: Can't start tomcat 5.5.26 service on windows

2008-03-10 Thread Eric Hawkes
Hi, I tried something simpler: a plain unzip install. It still doesn't work, and my web searches haven't been fruitful. This is so simple, I have either missed something quite obvious, or I have really screwed up my dev environment. I've been working on this for quite a long time. Any

RE: Can't start tomcat 5.5.26 service on windows

2008-03-10 Thread Caldarale, Charles R
From: Eric Hawkes [mailto:[EMAIL PROTECTED] Subject: RE: Can't start tomcat 5.5.26 service on windows I tried something simpler: a plain unzip install. It still doesn't work, and my web searches haven't been fruitful. What happens if you enter the parameters via the tomcat5w.exe GUI?

RE: Can't start tomcat 5.5.26 service on windows

2008-03-10 Thread Eric Hawkes
Hi, Thank you for the debugging tip. Running service.bat worked: C:\Program Files\Apache Software Foundation\Tomcat 5.5\binservice.bat install Installing the service 'Tomcat5' ... Using CATALINA_HOME:C:\Program Files\Apache Software Foundation\Tomcat 5.5 Using CATALINA_BASE:

RE: Can't start tomcat 5.5.26 service on windows

2008-03-10 Thread Caldarale, Charles R
From: Eric Hawkes [mailto:[EMAIL PROTECTED] Subject: RE: Can't start tomcat 5.5.26 service on windows Does this suggest a cause to my earlier problems? Probably means you don't have the parameters quite right for the tomcat5.exe program. Look at what the service.bat script generates, and

Re: Eclipse with tomcat and mysql

2008-03-10 Thread kevin
I tried it with the upper case also and it still does not work. Context reloadable=true path=/musicDB debug=5 crosscontext=true docbase=musicDB Logger timestamp=true suffix=.txt prefix=localhost_musicDB_log classname=org.apache.catalina.logger.FileLogger Resource

Re: Eclipse with tomcat and mysql

2008-03-10 Thread kevin
I removed the logger still did not work. You mentioned that the resource also was not right? what is the correct resource statement? As for the does, the first thing I tried was the context below which I got from the docs section 2. Context configuration at

RE: Eclipse with tomcat and mysql

2008-03-10 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: Eclipse with tomcat and mysql Context path=/musicDB docBase=musicDB debug=5 reloadable=true crossContext=true Remove the path and docBase attributes - they're not allowed here. Resource name=jdbc/musicDB

Re: Eclipse with tomcat and mysql

2008-03-10 Thread kevin
Removing the path and docBase worked. Or maybe it was that I deleted tomcat and unziped it again. Not sure which. But the funny thing is the docs say to put path and docBase in. That is where I get it from: Section 2 Context configuration

RE: Eclipse with tomcat and mysql

2008-03-10 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: Eclipse with tomcat and mysql But the funny thing is the docs say to put path and docBase in. The path and docBase attributes are used only when the Context element is in server.xml, not when it's in a webapp's

Determine URL during context init?

2008-03-10 Thread bb
Hi, Is it possible to programmatically determine a web application's URL during context initialization (also considering possible deployment using Tomcat virtual host)? Once a request is available it is straight-forward but what about within the servlet init(), struts plugin init(), etc?

Re: Eclipse with tomcat and mysql

2008-03-10 Thread kevin
Ah. Thanks for the clarification. that's a big help. Kevin - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, March 10, 2008 7:44 PM Subject: RE: Eclipse with tomcat and mysql From: [EMAIL PROTECTED]

RE: Can't start tomcat 5.5.26 service on windows

2008-03-10 Thread Eric Hawkes
Hi, The GUI has proved useful for debugging, but didn't solve the problem. It appears to read/write the registry, so settings made from the command line are picked up in the GUI tool, and vice versa. Our Java setup is slightly non-standard. I'm not sure how non-standard: perhaps