Re: how to close a comet request outside of an event?

2007-04-27 Thread Sebastiaan van Erk
Hi, I've been thinking about this a bit more, and I understand why normally the response.close() should not go to the TCP layer: I'd forgotten all about request pipelining. However, in my case, the request has an explicit Connection: close header. Would not this case warrent an immediate

force to start a new servlet session

2007-04-27 Thread Dave
On JSF page, click a button to open a new window. The request will join the existing session. Is there a way to create a new HTTP servlet session for the request(clicking the button)? public HttpSession getSession(boolean create) Create a new session only when no session already exists

Application errors bleeding into catalina.out

2007-04-27 Thread syg6
Hello all, I am using log4j to create various log files - one for access, one for errors and one for system info. All is well, nothing is logged in Tomcat's catalina.out log EXCEPT when I send an illegal (un-parseable) XML file. This error, as well as being logged in my app's error log, appears

HTTP compression

2007-04-27 Thread Rajiv M
hello, Does Tomcat support HTTP compression. If yes, is there a way to enable/disable this feature Rajiv - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: HTTP compression

2007-04-27 Thread Praveen Balaji
See if the compression property is what you need: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html -Original Message- From: Rajiv M [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 5:10 PM To: Tomcat Users List Subject: HTTP compression hello, Does Tomcat support HTTP

Re: HTTP compression

2007-04-27 Thread Rajiv M
Thank you! Is there a testcase/sample app where I can see the difference of enabling/disabling HTTP compression. On 4/27/07, Praveen Balaji [EMAIL PROTECTED] wrote: See if the compression property is what you need: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html -Original

Re: HTTP compression

2007-04-27 Thread Rashmi Rubdi
On 4/27/07, Rajiv M [EMAIL PROTECTED] wrote: Is there a testcase/sample app where I can see the difference of enabling/disabling HTTP compression. DIY :-) -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To

Re: how to close a comet request outside of an event?

2007-04-27 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Rémy Maucherat wrote: On 4/26/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: I don't understand why the client does not get an immediate -1 (EOF) on the read() as soon as I do this. The socket itself does not need to be closed, but the output stream close should

Re: Comet: problem with request.getParameter() in Comet POST requests

2007-04-27 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Rémy Maucherat wrote: On 4/26/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, If the body of the POST request is not present at the time of the getParameter() call, it returns null even if the parameter value is set. Things don't work like this, obviously.

Re: HTTP compression

2007-04-27 Thread Martin Gainty
Are you measuring throughput ??? Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by

Class is not a servlet

2007-04-27 Thread Luca Sabbio
Hi, I'm working with Java 1.5.0.06, Tomcat 5.5.16 with Xindice 1.1b4 and Cocoon 2.1.10 deployed (and working). I try to run a simple web application based on a servlet that update the Xindice XML DB By the command line the PartsXupdate.java is compiled and the PartsXupdate.class works. import

RE: Class is not a servlet

2007-04-27 Thread Peter Crowther
From: Luca Sabbio [mailto:[EMAIL PROTECTED] public class PartsXupdate extends HttpServlet { ... - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For

IPv6 address in hostname

2007-04-27 Thread SAVERIO FERRARO
Hi all, I have some problem with tomcat 5.5.17 and IPV6. It works correctly when I try to access at Manager page with http://[::1]:8080 and with http://[full ipv6 address]:8080. But when I put the ipv6 address to access my application, like this: Host name=[2001:db8:290c:1291::1]

Re: Class is not a servlet

2007-04-27 Thread David Smith
I highly recommend reading the servlet spec. There you will see a servlet extends HttpServlet and overrides one or more of it's methods. http://jcp.org/en/jsr/detail?id=154 --David Luca Sabbio wrote: Hi, I'm working with Java 1.5.0.06, Tomcat 5.5.16 with Xindice 1.1b4 and Cocoon 2.1.10

Re: IPv6 address in hostname

2007-04-27 Thread Markus Schönhaber
SAVERIO FERRARO schrieb: But when I put the ipv6 address to access my application, like this: Host name=[2001:db8:290c:1291::1] appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Tomcat doesn't work! What exactly does Tomcat doesn't

apache last modified file updates

2007-04-27 Thread Richard Dunne
Can anyone tell me what would prevent apache2 server from not updating its last modified by file index. I am running apache2 and the last modified date is not updating, even when I restart the server. Richard __ Do You Yahoo!? Tired of spam?

Re: how to close a comet request outside of an event?

2007-04-27 Thread Sebastiaan van Erk
Hi, * Is it possible, somehow, to end a request asynchronously (that is, outside the event method)? Because I keep getting Out of file descriptor errors since the END events come so terribly late after I do the close(). you'd still get too many open files errors even if it did close since

Defining data-sources in tomcat

2007-04-27 Thread Srinivas V.
Hello all I have a question about defining data-sources in tomcat. I have a webapp in which my servlets need to talk to a DB. This is my current setup: 1) I define data-sources (c3p0 connection pools) using the Resource tag in my META-INF/context.xml. 2) The web.xml has references these

Re: apache last modified file updates

2007-04-27 Thread David Smith
Not a clue. Might want to ask on a Apache Httpd email list. This one is for Apache Tomcat --David Richard Dunne wrote: Can anyone tell me what would prevent apache2 server from not updating its last modified by file index. I am running apache2 and the last modified date is not updating,

Re: Defining data-sources in tomcat

2007-04-27 Thread David Smith
I don't think you are creating new database pools on each servlet init. Looks like you are just getting another reference to the DataSource object that's stored in the JNDI. Can you post the code you use in servlet.init() to get the DataSource? --David Srinivas V. wrote: Hello all I

WAR File loaded into embedded Tomcat not reachable

2007-04-27 Thread Max Länzlinger
Hello, I want load a war-file programmaticly into the embedded tomcat-server. I made a Project (MyProject.ZIP) which starts the Server. Also a small web-application as war-file (mynewwar.zip). The server starts fine, and does so far not complain when loading the web-applikation war File into

Re: Class is not a servlet

2007-04-27 Thread Luca Sabbio
Thank you very much for the two answers. I don't know Java servlet enough to make PartsXupdate work but now I have a way to follow. I highly recommend reading the servlet spec. There you will see a servlet extends HttpServlet and overrides one or more of it's methods.

Access logging, multiple web applications, single virtual host

2007-04-27 Thread Monica . Riggins
| | | Hello everyone,

Re: Defining data-sources in tomcat

2007-04-27 Thread albrecht andrzejewski
3) In my servlet init(), I lookup the data-source. Each lookup essentially instantiates an instance of the data-source. So a connection pool gets instantiated in each servlet's init. Now it doesn't make sense to create a new connection pool in each servlet. So I'd like to create a single

Re: IPv6 address in hostname

2007-04-27 Thread Johnny Kewl
YES! I have found this to... To elaborate a little more, as soon as I install IPV6 on XP SP2 running Tomcat 5.5.17 ALL address's seem to map to LOCALHOST and they ALL work. ie Host name=localhost . will display ANY IP coming in a request... BUT if you actually put in Host

Re: Defining data-sources in tomcat

2007-04-27 Thread Rashmi Rubdi
On 4/27/07, albrecht andrzejewski [EMAIL PROTECTED] wrote: 3) In my servlet init(), I lookup the data-source. Each lookup essentially instantiates an instance of the data-source. So a connection pool gets instantiated in each servlet's init. Now it doesn't make sense to create a new

how to reload WEB-INF dir?

2007-04-27 Thread Josh Joy
Hi, There is a reloadable attribute that I can set to true to reload if it detects a change in |/WEB-INF/classes/| and |/WEB-INF/lib. My question is, how can I reload if I make a change to files in /WEB-INF directory? Thanks, Josh |

RE: IPv6 address in hostname

2007-04-27 Thread Caldarale, Charles R
From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: IPv6 address in hostname To elaborate a little more, as soon as I install IPV6 on XP SP2 running Tomcat 5.5.17 ALL address's seem to map to LOCALHOST and they ALL work. As they should, since the name attribute on a Host element

Re: how to reload WEB-INF dir?

2007-04-27 Thread Rashmi Rubdi
On 4/27/07, Josh Joy [EMAIL PROTECTED] wrote: Hi, There is a reloadable attribute that I can set to true Yes there is, see http://tomcat.apache.org/tomcat-6.0-doc/config/context.html to reload if it detects a change in |/WEB-INF/classes/| and |/WEB-INF/lib. My question is, how can I reload

Re: Defining data-sources in tomcat

2007-04-27 Thread Rashmi Rubdi
On 4/27/07, Srinivas V. [EMAIL PROTECTED] wrote: Hello all I have a question about defining data-sources in tomcat. I have a webapp in which my servlets need to talk to a DB. This is my current setup: 1) I define data-sources (c3p0 connection pools) using the Resource tag in my

Re: Defining data-sources in tomcat

2007-04-27 Thread David Smith
But the code you posted does not create a new DataSource object. It just gets a reference to an existing one stored in JNDI. Nothing new about the DataSource object. Note the lack of a new operator. --David Rashmi Rubdi wrote: On 4/27/07, albrecht andrzejewski [EMAIL PROTECTED] wrote:

Re: how to reload WEB-INF dir?

2007-04-27 Thread Josh Joy
Hi Rashmi, I'm confused...so in tomcat 6.0 it reloads if it detects a change at the root /WEB-INF rather than solely /WEB-INF/classes or /WEB-INF/lib ? Thanks, Josh Rashmi Rubdi wrote: On 4/27/07, Josh Joy [EMAIL PROTECTED] wrote: Hi, There is a reloadable attribute that I can set to true

More info - WAR File loaded into embedded Tomcat not reachable

2007-04-27 Thread Max Länzlinger
Hello again, Here the code i wrote to start embedded tomcat and load a war-file, and following also the output-console. Maybe: Does a physical web.xml must exist on the filesystem, as i have none and use this call setDefaultWebXml(web.xml) ? Also, in none of all the folders is my

RE: Defining data-sources in tomcat

2007-04-27 Thread Srinivas V.
Thanks for all the responses on this. The basic doubt I had was whether the JNDI lookup would create a new data-source on each lookup or just return the previously created one. A number of you had said that the latter was true. The reason I wasn't sure about that was because I'm creating C3P0

Re: how to reload WEB-INF dir?

2007-04-27 Thread Rashmi Rubdi
On 4/27/07, Josh Joy [EMAIL PROTECTED] wrote: Hi Rashmi, I'm confused...so in tomcat 6.0 it reloads if it detects a change at the root /WEB-INF rather than solely /WEB-INF/classes or /WEB-INF/lib ? Hi Josh, reloadable is an attributed on the Context node of your web application. The basic

Re: Defining data-sources in tomcat

2007-04-27 Thread Rashmi Rubdi
On 4/27/07, Srinivas V. [EMAIL PROTECTED] wrote: Thanks for all the responses on this. The basic doubt I had was whether the JNDI lookup would create a new data-source on each lookup or just return the previously created one. A number of you had said that the latter was true. The reason I wasn't

Re: how to close a comet request outside of an event?

2007-04-27 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Hi, * Is it possible, somehow, to end a request asynchronously (that is, outside the event method)? Because I keep getting Out of file descriptor errors since the END events come so terribly late after I do the close(). you'd still get too many open files errors

Re: Defining data-sources in tomcat

2007-04-27 Thread Rashmi Rubdi
On 4/27/07, David Smith [EMAIL PROTECTED] wrote: But the code you posted does not create a new DataSource object. It just gets a reference to an existing one stored in JNDI. Nothing new about the DataSource object. Note the lack of a new operator. Good post, thank you for pointing this.

RE: how to reload WEB-INF dir?

2007-04-27 Thread Caldarale, Charles R
From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Subject: Re: how to reload WEB-INF dir? So for your application there has to be a corresponding Context node either in server.xml or as {ApplicaitonName}.xml file under TomcatFolder/conf/[Engine]/[Host]/ The above is somewhat incomplete. 1)

Re: how to reload WEB-INF dir?

2007-04-27 Thread Rashmi Rubdi
Thank you Chuck, I gave a shorter version so that the OP would not get confused with full details, but you're right it could be possible that the Context node is defined in /META-INF/context.xml also. If the Context node is not required, how will he set the reloadable attribute? I couldn't find

RE: how to reload WEB-INF dir?

2007-04-27 Thread Caldarale, Charles R
From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Subject: Re: how to reload WEB-INF dir? If the Context node is not required, how will he set the reloadable attribute? I couldn't find a similar attribute on other nodes. I guess you mentioned it for the sake of completeness. THIS

RE: how to reload WEB-INF dir?

2007-04-27 Thread Caldarale, Charles R
From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Subject: Re: how to reload WEB-INF dir? If the Context node is not required, how will he set the reloadable attribute? I couldn't find a similar attribute on other nodes. I guess you mentioned it for the sake of completeness. (Sorry for the

Re: how to reload WEB-INF dir?

2007-04-27 Thread Rashmi Rubdi
On 4/27/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Subject: Re: how to reload WEB-INF dir? If the Context node is not required, how will he set the reloadable attribute? I couldn't find a similar attribute on other nodes. I guess you

catalina.policy security permission for diffrent jsp pages in the same application

2007-04-27 Thread Aurelian Maga
Hello, I'm trying to assign different permission to some jsp pages in my application, but i cant' getting to work. I'm using tomcat 5.5. My application is in /home/dev/cc/cc and has 2 folders main and user. I'm trying to give diffrent permission to the jsps pages in main and user. In

How to exit tomcat if web app throws exception?

2007-04-27 Thread Si'mon
For development boxes, I want tomcat to exit if an exception is thrown in a specific .war (web application). After exiting it will print the exception and not go any further. Is there any way to do this (configuration) or any way to incorporate this into the web application? thanks Si'mon --

Re: Comet: problem with request.getParameter() in Comet POST requests

2007-04-27 Thread Rémy Maucherat
On 4/27/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: GET parameters, ie parameters in the URL will work. However, using Comet you shouldn't rely on parameters in the body, the body if for you usage, and your usage alone. Seems to me that this is a pretty common use case though with AJAX

Re: IPv6 address in hostname

2007-04-27 Thread Johnny Kewl
And you know wot that tells me I better go get some sleep... ha ha YES... you right, for some reason I thought something, and then tested wrong and screwed up ;) Nothing wrong... it works if you test it right... oops Sorry Salvero... leading you up the garden path... Leave Host

Re: Tomcat UserDB in MySQL

2007-04-27 Thread Jan Strauch
It still doesn´t work. this is what Catalina.out sais: INFO: Starting Coyote HTTP/1.1 on http-8080 27.04.2007 01:14:44 org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 27.04.2007 01:14:44 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/228

Re: How to exit tomcat if web app throws exception?

2007-04-27 Thread Rashmi Rubdi
On 4/27/07, Si'mon [EMAIL PROTECTED] wrote: For development boxes, I want tomcat to exit if an exception is thrown in a specific .war (web application). After exiting it will print the exception and not go any further. Is there any way to do this (configuration) or any way to incorporate this

RE: Memory Leak with Comet

2007-04-27 Thread Reich, Matthias
Hello again, I would like to give you another chance to see the situation where the processing objects are not recycled. After all my observations, I had the feeling that the reason for the non-recycled processing objects must be problems with concurrent access to queues or maps that hold these

RE: Servlet Access To Its Package Version

2007-04-27 Thread Daryl Odnert
By searching the archives, it seems that some people have worked around this issue by having the servlet do this: InputStream in = getServletContext().getResourceAsStream(/META-INF/MANIFEST.MF); Manifest man = new java.util.jar.Manifest(in); Then, the servlet can access information in

Re: Memory Leak with Comet

2007-04-27 Thread Rémy Maucherat
On 4/28/07, Reich, Matthias [EMAIL PROTECTED] wrote: The problem is that the socket is added to the poller already within the Http11AprProcessor.event method. Due to this the process method can be invoked before the event method has done it's cleanup. I don't really understand how it can

Re: How to exit tomcat if web app throws exception?

2007-04-27 Thread Bill Barker
Rashmi Rubdi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 4/27/07, Si'mon [EMAIL PROTECTED] wrote: For development boxes, I want tomcat to exit if an exception is thrown in a specific .war (web application). After exiting it will print the exception and not go any

Re: Comet: problem with request.getParameter() in Comet POST requests

2007-04-27 Thread Filip Hanik - Dev Lists
Rémy Maucherat wrote: On 4/27/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: GET parameters, ie parameters in the URL will work. However, using Comet you shouldn't rely on parameters in the body, the body if for you usage, and your usage alone. Seems to me that this is a pretty common use