Re: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle
This is the code: java.sql.Timestamp time = new Timestamp(System.currentTimeMillis()); ... pstmt = this.conexion.prepareStatement(INSERT); ... pstmt.setTimestamp(1, time); should I use java.sql.Date instead of java.util.Data? thanks Christopher Schultz escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, Propes, Barry L wrote: and what date type are you using? sql.date or util.date? I'm pretty sure that's going to be the problem. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGuIVQ9CaO5/Lv0PARArnpAJ93DhQqc6o9l7P49h3AVJkK20mxYQCdFvSO oPt8Wv6Y4Al0jqJBets5UuY= =Mn29 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat startup error
I install tomcat 5.5 package on Ubuntu, it run server on port 8180 by default. I start Tomcat 5.5 by running /etc/init.d/tomcat script, it responses: * Starting Tomcat servlet engine tomcat5.5 [ OK ] but when check its running status, it is: * Tomcat servlet engine is not running. I have read all tomcat document , still can't find the reason why tomcat can't boot successfully, could anyone kindly give me a hint about that. thanks my server.xml http://pastebin.com/m411d5f59 [EMAIL PROTECTED] Here is my tomcat log: http://pastebin.com/m4177eae4
Re: Tomcat startup error
According to your log, i fails to parse the tomcat xml password file. It is malformed from xml point of view. Perhaps you have characters not allowed in xml like or or in a password field? or maybe you forgot to close a xml tag? hints on reading the log: Error at line 11 column 2: The markup in the document following the root element must be well-formed. -- tells you wher in document at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Sour ce) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1580) at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase. java:401) -- Tell you error comes from a memory user base related operation (so probably the xml user/password/group file) En l'instant précis du 08/08/07 09:49, R Y s'exprimait en ces termes: I install tomcat 5.5 package on Ubuntu, it run server on port 8180 by default. I start Tomcat 5.5 by running /etc/init.d/tomcat script, it responses: * Starting Tomcat servlet engine tomcat5.5 [ OK ] but when check its running status, it is: * Tomcat servlet engine is not running. I have read all tomcat document , still can't find the reason why tomcat can't boot successfully, could anyone kindly give me a hint about that. thanks my server.xml http://pastebin.com/m411d5f59 [EMAIL PROTECTED] Here is my tomcat log: http://pastebin.com/m4177eae4 -- http://www.noooxml.org/ - 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: Datasource Error
Will, as long as you don't post your configuration (context.xml and web.xml of your web-app, your servlet / jsp-code accessing the datasource), nobody will be able to help you. That is, since we all ran out of cristal balls telling us the solution for your problems... Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - 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: Issues with mod_jk and escaped sequences in URLs (particularly %2F)
Hi Christopher, - Which version of Apache? - Which version of mod_jk? - Which platform? Most likely you only need to add AllowEncodedSlashes On to your Apache configuration (see the Apache httpd docs). Such URLs get otherwise rejected by Apache itself. Note that there are goodf security reasons for doing so, i.e. allowing encoded slashes give attackers a lot of possibilities to craft URLs, which might pass your security restrictions. Please test aIf you really need to use encoded slashes, you should consider upgrading to the forthcoming version 1.2.25 of mod_jk. The release contains significant improvements with respect to handling URLs with encoded characters when forwarding to Tomcat. We are in the process of voting for this release, and there have been a couple of changes how we handle encoded URLs. You can find this version at: http://tomcat.apache.org/dev/dist/tomcat-connectors/jk/ Note: This is not yet an official release. The vote looks good, so I expect that we will announce the final release on Friday or Saturday (without changes to the code). You can easily find out, if Apache passes a URL to mod_jk by setting the log level of mod_jk to debug. This produces a lot of log lines (if mod_jk actually sees the request) and is not meant for production purposes. Regards, Rainer Christopher Swingler wrote: Hi there list. We're experiencing an odd issue when a URL contains an escaped sequence, in particular, the escaped sequence for forward slash (%2F). We have a servlet defined in httpd.conf as such: JkMount /search* worker1 If we look up http://example.org/search/University+Of+Foo it works fine. However, looking up something like http://example.org/search/Foo%2FBar+College; will result in the URL NOT being handled by mod_jk--Apache HTTPD will handle it, and of course return a 404. 192.168.111.104 - - [07/Aug/2007:17:05:06 -0500] GET /search/Foo%2FBar+College HTTP/1.1 404 2994 - Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 On the other hand, http://example.org/search/Foo/Bar+College; works fine: 192.168.111.104 - - [07/Aug/2007:17:08:46 -0500] GET /search/Foo/Bar+College HTTP/1.1 200 15432 - Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 I feel like I've got something configured absolutely wrong, but I can't see what. Thanks in advance for your suggestions. - 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: Local String Problem
Fabbris Pierluigi wrote: Hello, I've this Exception in the Log: 7-ago-2007 10.38.05 org.apache.catalina.core.StandardWrapperValve invoke GRAVE: Servlet.service() for servlet invoker threw exception java.util.MissingResourceException: Can't find bundle for base name LocalStrings, locale it_IT at java.util.ResourceBundle.throwMissingResourceException(Unknown Source) at java.util.ResourceBundle.getBundleImpl(Unknown Source) at java.util.ResourceBundle.getBundle(Unknown Source) at HelloWorldExample.doGet(HelloWorldExample.java:39) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) Just put the resource file, for the right locale, in the class path of your webapp, eg. WEB-INF/classes. Georg - 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: Unsubscribe me please
Yes and it doesn't work!!! And I still haven't been unsubscribed. Thanks Kind Regards Sheila Cullen ext 2699 -Original Message- From: Sebastiaan van Erk [mailto:[EMAIL PROTECTED] Sent: 06 August 2007 17:53 To: Tomcat Users List Subject: Re: Unsubscribe me please Yes, somebody can. In fact, that somebody is YOU! In every single email from this list there is a header telling you how to unsubscribe. Even better, when you go to the Tomcat home page, there is a link Mailing Lists, and it too tells you how to unsubscribe! Regards, Sebastiaan [EMAIL PROTECTED] wrote: Hello, Could somebody remove my name from this list please. Thanks Kind Regards Sheila Cullen ext 2699 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Unsubscribe me please
Send email to [EMAIL PROTECTED] with the same email address as the one you use to send emails to mailing list. You will receive a confirmation email within a few minutes. you must reply to that email and the mailing list server will say you bye bye If you don't get the confirmation email, check your junk folder / or your mailserver, it probably means it has swallowed it. En l'instant précis du 08/08/07 10:49, [EMAIL PROTECTED] s'exprimait en ces termes: Yes and it doesn't work!!! And I still haven't been unsubscribed. Thanks Kind Regards Sheila Cullen ext 2699 -Original Message- From: Sebastiaan van Erk [mailto:[EMAIL PROTECTED] Sent: 06 August 2007 17:53 To: Tomcat Users List Subject: Re: Unsubscribe me please Yes, somebody can. In fact, that somebody is YOU! In every single email from this list there is a header telling you how to unsubscribe. Even better, when you go to the Tomcat home page, there is a link Mailing Lists, and it too tells you how to unsubscribe! Regards, Sebastiaan [EMAIL PROTECTED] wrote: Hello, Could somebody remove my name from this list please. Thanks Kind Regards Sheila Cullen ext 2699 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.noooxml.org/ - 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: Tomcat startup error
Proabably, you have wronly edited server.xml or tomcat-users.xml. Revert the changes or get fresh files then try again. On 8/8/07, R Y [EMAIL PROTECTED] wrote: I install tomcat 5.5 package on Ubuntu, it run server on port 8180 by default. I start Tomcat 5.5 by running /etc/init.d/tomcat script, it responses: * Starting Tomcat servlet engine tomcat5.5 [ OK ] but when check its running status, it is: * Tomcat servlet engine is not running. I have read all tomcat document , still can't find the reason why tomcat can't boot successfully, could anyone kindly give me a hint about that. thanks my server.xml http://pastebin.com/m411d5f59 [EMAIL PROTECTED] Here is my tomcat log: http://pastebin.com/m4177eae4 -- Manivannan.Palanichamy (@) Oracle.com http://mani.gw.googlepages.com/index.html
Tomcat 6 cluster management
The Tomcat 6 documentation says that the MBean values 'type=Cluster' and 'type=Cluster,host=${HOST}' should be available like they were in Tomcat 5.5. However, they are not visible via jmx using jconsole or Probe. Does anyone know how to view Cluster information in Tomcat 6? Thanks Mark Connaught wins RoSPA Gold Award for fifth year running Considerate Contractor Gold Award in 2006 Partnering Contractor of the Year Award in 2005 Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/Investors/Registered-Companies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
Re: Unsubscribe me please
Then you should email users-owner [at] tomcat.apache.org and ask one of the list owners to unsubscribe you. This question has been asked and answered repeatedly in the recent past. --David [EMAIL PROTECTED] wrote: Yes and it doesn't work!!! And I still haven't been unsubscribed. Thanks Kind Regards Sheila Cullen ext 2699 -Original Message- From: Sebastiaan van Erk [mailto:[EMAIL PROTECTED] Sent: 06 August 2007 17:53 To: Tomcat Users List Subject: Re: Unsubscribe me please Yes, somebody can. In fact, that somebody is YOU! In every single email from this list there is a header telling you how to unsubscribe. Even better, when you go to the Tomcat home page, there is a link Mailing Lists, and it too tells you how to unsubscribe! Regards, Sebastiaan [EMAIL PROTECTED] wrote: Hello, Could somebody remove my name from this list please. Thanks Kind Regards Sheila Cullen ext 2699 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: ajp through ProxyPass is sending HTTP HEAD requests as HTTPGET to servlets.
Hi Chad, yes, it looks like that's a bug in mod_proxy_ajp. You should log a bug in bugzilla for httpd. I checked the code for Apache httpd 2.2.4 and also shortly for 2.2.x head and trunk. The situation is as follows (you might include this in the bug description): Apache httpd decodes HTTP methods as method_number. HTTP HEAD and GET get the same method_number. To make HEAD distinguishable form GET, adiitionally header_only gets set for a HEAD request. mod_proxy_ajp only decodes the method_number and doesn't check the header_only flag. So every HEAD request gets forwarded as a GET request. In order to fix the forwarding, one has to improve ajp_marshal_into_msgb() in ajp_header.c and also ap_proxy_ajp_request(9 in mod_proxy_ajp.c. A patch against 2.2.4 could be close to the following (I didn't test, I didn't even compile it): Index: mod_proxy_ajp.c === --- mod_proxy_ajp.c (revision 563796) +++ mod_proxy_ajp.c (working copy) @@ -313,6 +313,16 @@ break; case CMD_AJP13_SEND_BODY_CHUNK: /* AJP13_SEND_BODY_CHUNK: piece of data */ +if (r-header_only) { +ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r-server, + proxy: header only); +isok = 0; +/* Pass EOS bucket down the filter chain. */ +e = apr_bucket_eos_create(r-connection-bucket_alloc); +APR_BRIGADE_INSERT_TAIL(output_brigade, e); +apr_brigade_cleanup(output_brigade); +break; +} status = ajp_parse_data(r, conn-data, size, buff); if (status == APR_SUCCESS) { if (size == 0) { Index: ajp_header.c === --- ajp_header.c(revision 563796) +++ ajp_header.c(working copy) @@ -224,6 +224,9 @@ r-method); return AJP_EBAD_METHOD; } +if ((method == SC_M_GET) r-header_only) { +method = SC_M_HEAD; +} is_ssl = (apr_byte_t) ap_proxy_conn_is_https(r-connection); Regards, Rainer Chad Scholes wrote: I am using Apache 2.2.3 and Tomcat 5.0. I use ProxyPass to ajp to send Servlet requests from Apache to Tomcat and for some reason all HEAD requests are being sent to my servlets as GET requests. I probably don't have something setup correctly but I don't know what would affect the HEAD request. My Apache configuration for ProxyPass is set like: Alias /qfsearch /var/lib/qfsearch/docs Location /qfsearch Allow from all /Location ProxyPass /qfsearch ajp://localhost:9009/qfsearch mod_proxy and mod_rewrite are setup as: IfModule mod_proxy.c Proxy * Order deny,allow Deny from all /Proxy ProxyRequests Off /IfModule IfModule mod_rewrite.c RewriteEngine On RewriteLog /var/log/apache2/rewrite_log RewriteLogLevel 1 /IfModule In the apache access log the request is getting to apache as a HEAD request: 137.65.79.137 - - [06/Aug/2007:14:33:45 -0600] HEAD /qfsearch/ClusterServlet?server=qfsearch3.provo.novell.comtype=indexputname=duhputsubname=qfind.idxidxdatetime=1186176509000idxlocation=%2Fvar%2Flib%2Fqfsearch%2FSites%2Fdefault%2Findexes%2Fduh%2F2007-08-03%3B+15.28.29put=qfind.idxfilesize=11709498datetime=1186176509000do=canput HTTP/1.1 503 - - Java/1.5.0 However, I have a servlet that overrides the service function and in that call request.getMethod() and it is now returning GET not HEAD. If I call Tomcat directly then everything works fine (request.getMethod() returns HEAD). This particular section of code has been working for years with the JKMount command but now that we have changed to the ProxyPass it is not working. If you have any ideas what could be wrong I would appreciate the help! Thanks you!! Chad - 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: Datasource Error
We still need to see these files (sanatized for passwords if any are present): $CATALINA_HOME/conf/server.xml $CATALINA_HOME/conf/Catalina/localhost/[appName].xml $CATALINA_HOME/webapps/[appName]/WEB-INF/web.xml The problem is in one of these files. No help can be offered until we see these. --David Will Holmes wrote: Barry, I had no problems with the project when I was using Netbeans 5.5 as my IDE but I had to convert my project to work with Websphere development studio and that is when I encountered the error below. I believe the error is somewhere with my Tomcat setup. I thought maybe there might be some bugs with Tomcat 5.5.9. Thanks Wil -Original Message- From: Propes, Barry L [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 11:53 AM To: Tomcat Users List Subject: RE: Datasource Error we might could stand to see more of the code...or I could at least. -Original Message- From: Will Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 10:33 AM To: users@tomcat.apache.org Cc: [EMAIL PROTECTED] Subject: Datasource Error I am using Tomcat 5.5.9 on Windows XP I have created a resouce in the Tomcat server.xml file. I have configured the resource ref in the web.xml file. When my application access the datasource I get the following error: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' Anyone have any ideas? Thanks in advance!! Will Holmes Programmer Analyst Fremont Insurance Company Ph: 231-924-0302 Ext. 145 E-Mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle
That looks ok. Timestamp is the correct thing to use. You have two systems: one that works, one that doesn't. So, check for differences in the SQL sub-systems between the two: Are the drivers of the same (uptodate) version? Are the database schemas using the same column type? (ie the one that fails is silently truncating the data) In your original post you mentioned Oracle9i and Postgres. If one works and the other doesn't, again, check the column type is correct. Jose Gargallo wrote: This is the code: java.sql.Timestamp time = new Timestamp(System.currentTimeMillis()); ... pstmt = this.conexion.prepareStatement(INSERT); ... pstmt.setTimestamp(1, time); should I use java.sql.Date instead of java.util.Data? thanks Christopher Schultz escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, Propes, Barry L wrote: and what date type are you using? sql.date or util.date? I'm pretty sure that's going to be the problem. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGuIVQ9CaO5/Lv0PARArnpAJ93DhQqc6o9l7P49h3AVJkK20mxYQCdFvSO oPt8Wv6Y4Al0jqJBets5UuY= =Mn29 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Datasource Error
Oh, and that second file may also be located at $CATALINA_HOME/webapps/[appName]/META-INF/context.xml --David David Smith wrote: We still need to see these files (sanatized for passwords if any are present): $CATALINA_HOME/conf/server.xml $CATALINA_HOME/conf/Catalina/localhost/[appName].xml $CATALINA_HOME/webapps/[appName]/WEB-INF/web.xml The problem is in one of these files. No help can be offered until we see these. --David Will Holmes wrote: Barry, I had no problems with the project when I was using Netbeans 5.5 as my IDE but I had to convert my project to work with Websphere development studio and that is when I encountered the error below. I believe the error is somewhere with my Tomcat setup. I thought maybe there might be some bugs with Tomcat 5.5.9. Thanks Wil -Original Message- From: Propes, Barry L [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 11:53 AM To: Tomcat Users List Subject: RE: Datasource Error we might could stand to see more of the code...or I could at least. -Original Message- From: Will Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 10:33 AM To: users@tomcat.apache.org Cc: [EMAIL PROTECTED] Subject: Datasource Error I am using Tomcat 5.5.9 on Windows XP I have created a resouce in the Tomcat server.xml file. I have configured the resource ref in the web.xml file. When my application access the datasource I get the following error: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' Anyone have any ideas? Thanks in advance!! Will Holmes Programmer Analyst Fremont Insurance Company Ph: 231-924-0302 Ext. 145 E-Mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Unsubscribe me please
From: David Smith [mailto:[EMAIL PROTECTED] Then you should email users-owner [at] tomcat.apache.org and ask one of the list owners to unsubscribe you. This question has been asked and answered repeatedly in the recent past. Yes, it has. Which is a shame, as possible technological solutions to the problem (remove spam filtering from users-unsubscribe, or provide a web interface to allow users to unsubscribe, as many other list servers do) appear not to have been investigated. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Status
Hi! Exists some tool to monitor more than one instance of Tomcat in the same server? Lambda Probe is an excellent tool, but only monitoring instance where is installled. In a simple way I want to have a web page showing tomcat status and some other information: Tomcat1 - Status Running Tomcat2 - Status Stopped -... Thanks a lot
tomcat is looking for a class I don't use anymore
Hi everybody, I am having a problem with an old class no longer in used in my application. I am using tomcat 5.0.18 with jdk 1.5 from ibm. I undeployed the application, suppressed the class and every references to it (I am sure of that!), and then deployed again in tomcat. And in the catalina.out logs, I get the following error, again and again : java.lang.ClassNotFoundException: : myClass I thought it could be some problem of persisting sessions, so I waited for all sessions to end, but they don't end because of that error keeping them alive. I even restarted tomcat. Nothing seems to do it. This does not affect my application as I do not use that class anymore, but it is affecting sessions and logs. Thanks if anyone have a clue. -- - Laurence Mastrorillo Medias-France CNES - BPi 2102 18, avenue Edouard Belin 31401 Toulouse cedex 9 Tel : 05.61.27.35.09 - Fax : 05.61.28.29.05 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MaxHTTPHeaderSize
Hi, I've been getting a lot MsgAjp Overflow messages recently. The strange this is only seems to happen only 1 app server at a time and seems to stop and start in bursts of sometimes over an hour, but then nothing for several hours after that. This is with Tomcat 5.5.20 and mod_jk 1.2.23. Is it possible that it is someone trying to provoke a DOS or should I really investigate increasing the maxhttpheadersize in server.xml and max_http_size in Mod_jk? Thanks for any help, Rob 2007-08-08 08:36:47,579 ERROR [ ] [org.apache.jk.common.MsgAjp] Buffer overflow : buffer.len=8192 pos=259 data=20202 2007-08-08 08:36:47,580 ERROR [ ] [org.apache.jk.common.MsgAjp] Overflow java.lang.Throwable at org.apache.jk.common.MsgAjp.cpBytes(MsgAjp.java:194) at org.apache.jk.common.MsgAjp.appendByteChunk(MsgAjp.java:168) at org.apache.jk.common.MsgAjp.appendBytes(MsgAjp.java:154) at org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:302) at org.apache.jk.core.MsgContext.action(MsgContext.java:258) at org.apache.coyote.Response.action(Response.java:182) at org.apache.coyote.Response.sendHeaders(Response.java:378) at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java: 317) at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:27 8) at org.apache.catalina.connector.Response.finishResponse(Response.java:4 76) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:151) - 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: tomcat is looking for a class I don't use anymore
Did you delete all your .class of your application and rebuild them after removing myclass.java? It could be another class was referencing that class and was not recompiled, and as such can not be loaded anymore because reference another non existing class. The stacktrace of Exception could be useful too. En l'instant précis du 08/08/07 13:46, Mastrorillo Laurence s'exprimait en ces termes: Hi everybody, I am having a problem with an old class no longer in used in my application. I am using tomcat 5.0.18 with jdk 1.5 from ibm. I undeployed the application, suppressed the class and every references to it (I am sure of that!), and then deployed again in tomcat. And in the catalina.out logs, I get the following error, again and again : java.lang.ClassNotFoundException: : myClass I thought it could be some problem of persisting sessions, so I waited for all sessions to end, but they don't end because of that error keeping them alive. I even restarted tomcat. Nothing seems to do it. This does not affect my application as I do not use that class anymore, but it is affecting sessions and logs. Thanks if anyone have a clue. -- http://www.noooxml.org/ - 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: tomcat is looking for a class I don't use anymore
I did delete all my .class. I can affirm it is not referenced anywhere in my code anymore. In fact, i deleted all my application and deployed the new one from the entire .war. Here is the stack trace : 2007-08-08 12:04:12 fileStore[/]: java.lang.ClassNotFoundException: org.medias.amma.sgbd.Jeu at java.lang.Class.forNameImpl(Native Method) at java.lang.Class.forName(Class.java:164) at org.apache.catalina.util.CustomObjectInputStream.resolveClass(CustomObjectInputStream.java:120) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1553) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1475) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1708) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:354) at java.util.ArrayList.readObject(ArrayList.java:617) at sun.reflect.GeneratedMethodAccessor681.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1001) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1828) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1728) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:354) at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1401) at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:895) at org.apache.catalina.session.FileStore.load(FileStore.java:336) at org.apache.catalina.session.StoreBase.processExpires(StoreBase.java:264) at org.apache.catalina.session.PersistentManagerBase.backgroundProcess(PersistentManagerBase.java:274) at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:4575) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1659) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1668) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1668) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1648) at java.lang.Thread.run(Thread.java:797) Along with this exception, i also have a NotSerializableException (this is why I first removed the class) 2007-08-08 12:04:12 fileStore[/]: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.medias.amma.sgbd.Jeu at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1318) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:354) at java.util.ArrayList.readObject(ArrayList.java:617) at sun.reflect.GeneratedMethodAccessor681.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1001) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1828) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1728) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:354) at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1401) at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:895) at org.apache.catalina.session.FileStore.load(FileStore.java:336) at org.apache.catalina.session.StoreBase.processExpires(StoreBase.java:264) at org.apache.catalina.session.PersistentManagerBase.backgroundProcess(PersistentManagerBase.java:274) at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:4575) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1659) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1668) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1668) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1648) at java.lang.Thread.run(Thread.java:797) Caused by: java.io.NotSerializableException: org.medias.amma.sgbd.Jeu at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1108) at
RE: tomcat is looking for a class I don't use anymore
From: Mastrorillo Laurence 2007-08-08 12:04:12 fileStore[/]: java.lang.ClassNotFoundException: [...] at org.apache.catalina.session.FileStore.load(FileStore.java:336) I suspect Tomcat persisted its session state to disk at shutdown, and is trying to re-read those sessions. Instances of your class are stored in the saved sessions. Delete the session state and you should be OK. - Peter - 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: tomcat is looking for a class I don't use anymore
THANKS PETER, I found out how to delete tomcat sessions that persists after un-deployement. That did it !! No more exceptions ! Peter Crowther a écrit : From: Mastrorillo Laurence 2007-08-08 12:04:12 fileStore[/]: java.lang.ClassNotFoundException: [...] at org.apache.catalina.session.FileStore.load(FileStore.java:336) I suspect Tomcat persisted its session state to disk at shutdown, and is trying to re-read those sessions. Instances of your class are stored in the saved sessions. Delete the session state and you should be OK. - Peter -- - Laurence Mastrorillo Medias-France CNES - BPi 2102 18, avenue Edouard Belin 31401 Toulouse cedex 9 Tel : 05.61.27.35.09 - Fax : 05.61.28.29.05 - 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: Datasource Error
Will, The tomcat isn't able to find the database jdbc driver class. Make sure you put database-jdbc.jar file inside tomcat/common/endorsed/ folder. Lets say you were using MySql database. MySql provides a jdbc jar file to connect to the database. Get that jar file and put it in /endorsed/ folder. The reason sometimes it works with Netbeans could be that the ide was providing this jar, instead of tomcat. So when you moved to Websphere IDE, that jar might not be available from Websphere. Indu Will Holmes wrote: Barry, I had no problems with the project when I was using Netbeans 5.5 as my IDE but I had to convert my project to work with Websphere development studio and that is when I encountered the error below. I believe the error is somewhere with my Tomcat setup. I thought maybe there might be some bugs with Tomcat 5.5.9. Thanks Wil -Original Message- From: Propes, Barry L [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 11:53 AM To: Tomcat Users List Subject: RE: Datasource Error we might could stand to see more of the code...or I could at least. -Original Message- From: Will Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 10:33 AM To: users@tomcat.apache.org Cc: [EMAIL PROTECTED] Subject: Datasource Error I am using Tomcat 5.5.9 on Windows XP I have created a resouce in the Tomcat server.xml file. I have configured the resource ref in the web.xml file. When my application access the datasource I get the following error: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' Anyone have any ideas? Thanks in advance!! Will Holmes Programmer Analyst Fremont Insurance Company Ph: 231-924-0302 Ext. 145 E-Mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Tomcat Status
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: Exists some tool to monitor more than one instance of Tomcat in the same server? Lambda Probe is an excellent tool, but only monitoring instance where is installed. Why not contact the fine folks at Lambda Probe to see if they have any ideas? They might even tell you that they're already working on something like that. It seems like several Lambda Probe instances ought to be able to communicate with each other (as a new feature). Or, perhaps even a single instance could connect to several Tomcat instances (also as a new feature). They'll never know that this is a desirable feature unless you tell them! - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGucXw9CaO5/Lv0PARApzhAJ4lT9LGoumRNYXaw7gvjfyN65kGHQCdGKnn I5JWEleYdOFfExtO0MmIP9M= =7LHy -END PGP SIGNATURE- - 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: Datasource Error
I also had the same problem when using struts Datasource. I noticed this depends of the struts version, tomcat version or even the jdk but was unable to really find out what the problem was. I solved it by not using the struts datasource description in the struts-config.xml anymore. I instead connect to my databases directly using jdbc. I put my jdbc driver (jar) into my applications WEB-INF/lib directory. Laurence Indudhar Devanath a écrit : Will, The tomcat isn't able to find the database jdbc driver class. Make sure you put database-jdbc.jar file inside tomcat/common/endorsed/ folder. Lets say you were using MySql database. MySql provides a jdbc jar file to connect to the database. Get that jar file and put it in /endorsed/ folder. The reason sometimes it works with Netbeans could be that the ide was providing this jar, instead of tomcat. So when you moved to Websphere IDE, that jar might not be available from Websphere. Indu Will Holmes wrote: Barry, I had no problems with the project when I was using Netbeans 5.5 as my IDE but I had to convert my project to work with Websphere development studio and that is when I encountered the error below. I believe the error is somewhere with my Tomcat setup. I thought maybe there might be some bugs with Tomcat 5.5.9. Thanks Wil -Original Message- From: Propes, Barry L [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 11:53 AM To: Tomcat Users List Subject: RE: Datasource Error we might could stand to see more of the code...or I could at least. -Original Message- From: Will Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 10:33 AM To: users@tomcat.apache.org Cc: [EMAIL PROTECTED] Subject: Datasource Error I am using Tomcat 5.5.9 on Windows XP I have created a resouce in the Tomcat server.xml file. I have configured the resource ref in the web.xml file. When my application access the datasource I get the following error: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' Anyone have any ideas? Thanks in advance!! Will Holmes Programmer Analyst Fremont Insurance Company Ph: 231-924-0302 Ext. 145 E-Mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Laurence Mastrorillo Medias-France CNES - BPi 2102 18, avenue Edouard Belin 31401 Toulouse cedex 9 Tel : 05.61.27.35.09 - Fax : 05.61.28.29.05 - 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: ajp through ProxyPass is sending HTTP HEAD requests as HTTPGET to servlets.
Added as PR: 43060 Thanks for the info and the analysis... I'll take a look and tune as required. On Aug 8, 2007, at 5:46 AM, Rainer Jung wrote: Hi Chad, yes, it looks like that's a bug in mod_proxy_ajp. You should log a bug in bugzilla for httpd. I checked the code for Apache httpd 2.2.4 and also shortly for 2.2.x head and trunk. The situation is as follows (you might include this in the bug description): Apache httpd decodes HTTP methods as method_number. HTTP HEAD and GET get the same method_number. To make HEAD distinguishable form GET, adiitionally header_only gets set for a HEAD request. mod_proxy_ajp only decodes the method_number and doesn't check the header_only flag. So every HEAD request gets forwarded as a GET request. In order to fix the forwarding, one has to improve ajp_marshal_into_msgb() in ajp_header.c and also ap_proxy_ajp_request(9 in mod_proxy_ajp.c. A patch against 2.2.4 could be close to the following (I didn't test, I didn't even compile it): Index: mod_proxy_ajp.c === --- mod_proxy_ajp.c (revision 563796) +++ mod_proxy_ajp.c (working copy) @@ -313,6 +313,16 @@ break; case CMD_AJP13_SEND_BODY_CHUNK: /* AJP13_SEND_BODY_CHUNK: piece of data */ +if (r-header_only) { +ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r- server, + proxy: header only); +isok = 0; +/* Pass EOS bucket down the filter chain. */ +e = apr_bucket_eos_create(r-connection- bucket_alloc); +APR_BRIGADE_INSERT_TAIL(output_brigade, e); +apr_brigade_cleanup(output_brigade); +break; +} status = ajp_parse_data(r, conn-data, size, buff); if (status == APR_SUCCESS) { if (size == 0) { Index: ajp_header.c === --- ajp_header.c(revision 563796) +++ ajp_header.c(working copy) @@ -224,6 +224,9 @@ r-method); return AJP_EBAD_METHOD; } +if ((method == SC_M_GET) r-header_only) { +method = SC_M_HEAD; +} is_ssl = (apr_byte_t) ap_proxy_conn_is_https(r-connection); Regards, Rainer Chad Scholes wrote: I am using Apache 2.2.3 and Tomcat 5.0. I use ProxyPass to ajp to send Servlet requests from Apache to Tomcat and for some reason all HEAD requests are being sent to my servlets as GET requests. I probably don't have something setup correctly but I don't know what would affect the HEAD request. My Apache configuration for ProxyPass is set like: Alias /qfsearch /var/lib/qfsearch/docs Location /qfsearch Allow from all /Location ProxyPass /qfsearch ajp://localhost:9009/qfsearch mod_proxy and mod_rewrite are setup as: IfModule mod_proxy.c Proxy * Order deny,allow Deny from all / Proxy ProxyRequests Off /IfModule IfModule mod_rewrite.c RewriteEngine On RewriteLog /var/log/apache2/rewrite_log RewriteLogLevel 1 /IfModule In the apache access log the request is getting to apache as a HEAD request: 137.65.79.137 - - [06/Aug/2007:14:33:45 -0600] HEAD /qfsearch/ClusterServlet? server=qfsearch3.provo.novell.comtype=indexputname=duhputsubname=q find.idxidxdatetime=1186176509000idxlocation=%2Fvar%2Flib% 2Fqfsearch%2FSites%2Fdefault%2Findexes%2Fduh%2F2007-08-03%3B +15.28.29put=qfind.idxfilesize=11709498datetime=1186176509000do=c anput HTTP/1.1 503 - - Java/1.5.0 However, I have a servlet that overrides the service function and in that call request.getMethod() and it is now returning GET not HEAD. If I call Tomcat directly then everything works fine (request.getMethod() returns HEAD). This particular section of code has been working for years with the JKMount command but now that we have changed to the ProxyPass it is not working. If you have any ideas what could be wrong I would appreciate the help! Thanks you!! Chad - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: MaxHTTPHeaderSize
Hi Rob, I would prefer to find out, what kind of requests cause this behaviour. Are there log messages in the mod_jk log file? The mod_jk log file contains the pid and thread-ID of the web server thread processing the request. Dependent on the platform an web server, you casn also log the pid and thread-id in the access log of the web server and then identify the requests even under medium load by using the time stamp and pid/thread-id. After identifying the request, you could check client IP, user agent and of course the URL, whether there is something strange. If your load is low, the time stamps from the Tomcat log could be enough to relate to a request in a Tomcat access log, or if time is synced in a web server access log. Furthermore: the stack looks like this is not a strange request, but instead a strange response. It seems your webapp produces responses with big headers? Maybe I'm wrong, but that's how i interprete the stack. Regards, Rainer Rob Kirkbride wrote: Hi, I've been getting a lot MsgAjp Overflow messages recently. The strange this is only seems to happen only 1 app server at a time and seems to stop and start in bursts of sometimes over an hour, but then nothing for several hours after that. This is with Tomcat 5.5.20 and mod_jk 1.2.23. Is it possible that it is someone trying to provoke a DOS or should I really investigate increasing the maxhttpheadersize in server.xml and max_http_size in Mod_jk? Thanks for any help, Rob 2007-08-08 08:36:47,579 ERROR [ ] [org.apache.jk.common.MsgAjp] Buffer overflow : buffer.len=8192 pos=259 data=20202 2007-08-08 08:36:47,580 ERROR [ ] [org.apache.jk.common.MsgAjp] Overflow java.lang.Throwable at org.apache.jk.common.MsgAjp.cpBytes(MsgAjp.java:194) at org.apache.jk.common.MsgAjp.appendByteChunk(MsgAjp.java:168) at org.apache.jk.common.MsgAjp.appendBytes(MsgAjp.java:154) at org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:302) at org.apache.jk.core.MsgContext.action(MsgContext.java:258) at org.apache.coyote.Response.action(Response.java:182) at org.apache.coyote.Response.sendHeaders(Response.java:378) at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java: 317) at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:27 8) at org.apache.catalina.connector.Response.finishResponse(Response.java:4 76) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:151) - 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: enabling tomcat SSL on linux
Azhar, can you give us a little more information as to what the refusal takes? What are the symptoms? That you cannot connect from a browser on the same machine / different machine? Does netstat -an | grep 8443 show a port in LISTENING state? - Peter -Original Message- From: Waseem Azhar [mailto:[EMAIL PROTECTED] Sent: 08 August 2007 15:21 To: users@tomcat.apache.org Subject: enabling tomcat SSL on linux Hi All, I am stuck, any idea how to enable tomcat SSL on linux ? I have configured tomcat on windows machine and its working perfectly. However when i tried to port my configurations (server.xml) on linux machine, it refuses to work. I am listing down a very simple SSL configuration below: !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=80 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / !-- Define a SSL HTTP/1.1 Connector on port 8443 -- Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile= keystore.store keystorePass=secret/ !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / My certificate is setup properly. No exception, tomcat is listening properly on http. I have even tried disabling AJP connector but no use. Any idea? is there some special setup require to make it work ? Thanks -Azhar - 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: enabling tomcat SSL on linux
Is there an error message given by Tomcat? Maybe its an access problem to the keystore file by tomcat process. Are you sure that you have no other process using that port? 2007/8/8, Waseem Azhar [EMAIL PROTECTED]: Hi All, I am stuck, any idea how to enable tomcat SSL on linux ? I have configured tomcat on windows machine and its working perfectly. However when i tried to port my configurations (server.xml) on linux machine, it refuses to work. I am listing down a very simple SSL configuration below: !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=80 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / !-- Define a SSL HTTP/1.1 Connector on port 8443 -- Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile= keystore.store keystorePass=secret/ !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / My certificate is setup properly. No exception, tomcat is listening properly on http. I have even tried disabling AJP connector but no use. Any idea? is there some special setup require to make it work ? Thanks -Azhar - 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: MaxHTTPHeaderSize
Rainer, Thanks for the comprehensive reply. We're using Apache on RHEL4. I'll try and investigate the actual URL. It is a very busy environment ( 25 million hits a day) so it'll take me some time to pick through. Yes it does look like a response. I'm assuming this doesn't just mean it's a big page. What kind of information is sent in the header? - We're not really using cookies at the moment for instance. Thanks Rob On 08/08/2007, Rainer Jung [EMAIL PROTECTED] wrote: Hi Rob, I would prefer to find out, what kind of requests cause this behaviour. Are there log messages in the mod_jk log file? The mod_jk log file contains the pid and thread-ID of the web server thread processing the request. Dependent on the platform an web server, you casn also log the pid and thread-id in the access log of the web server and then identify the requests even under medium load by using the time stamp and pid/thread-id. After identifying the request, you could check client IP, user agent and of course the URL, whether there is something strange. If your load is low, the time stamps from the Tomcat log could be enough to relate to a request in a Tomcat access log, or if time is synced in a web server access log. Furthermore: the stack looks like this is not a strange request, but instead a strange response. It seems your webapp produces responses with big headers? Maybe I'm wrong, but that's how i interprete the stack. Regards, Rainer Rob Kirkbride wrote: Hi, I've been getting a lot MsgAjp Overflow messages recently. The strange this is only seems to happen only 1 app server at a time and seems to stop and start in bursts of sometimes over an hour, but then nothing for several hours after that. This is with Tomcat 5.5.20 and mod_jk 1.2.23. Is it possible that it is someone trying to provoke a DOS or should I really investigate increasing the maxhttpheadersize in server.xml and max_http_size in Mod_jk? Thanks for any help, Rob 2007-08-08 08:36:47,579 ERROR [ ] [org.apache.jk.common.MsgAjp] Buffer overflow : buffer.len=8192 pos=259 data=20202 2007-08-08 08:36:47,580 ERROR [ ] [org.apache.jk.common.MsgAjp] Overflow java.lang.Throwable at org.apache.jk.common.MsgAjp.cpBytes(MsgAjp.java:194) at org.apache.jk.common.MsgAjp.appendByteChunk(MsgAjp.java:168) at org.apache.jk.common.MsgAjp.appendBytes(MsgAjp.java:154) at org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:302) at org.apache.jk.core.MsgContext.action(MsgContext.java:258) at org.apache.coyote.Response.action(Response.java:182) at org.apache.coyote.Response.sendHeaders(Response.java:378) at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java: 317) at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:27 8) at org.apache.catalina.connector.Response.finishResponse(Response.java:4 76) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:151) - 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: How to avoide delete context.xml - 6.0.14
On 8/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Hassan, I did exactly that way you described to me, but the 2nd deployment still dosn't work properly. You might want to create a very simple WAR file and see if it behaves the same way... The only way that works (not always) is to delete the WAR file manually, wait until the webapp is undeployed and then place the war file again. INFO: Undeploying context [/xjosf] com.magnasteyr.josf.InitLog4JPlugin ... try to clean up FileHandles for context [XJOSF] com.magnasteyr.josf.InitLog4JPlugin ... Clean up FileHandles finished for context [XJOSF] Those two lines make me wonder -- since you're running Windows, you might look at antiJARLocking and antiResourceLocking here: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html My feeling is that this is more likely app-related than config-related at this point; if you can create a WAR file reproducing the problem (without proprietary material/external dependencies) I'll be happy to try it. -- Hassan Schroeder [EMAIL PROTECTED] - 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: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle
if he's using Oracle, a date field should take any kind of timestamp variable. Oracle does have a Timestamp field/data type, but you don't have to make it as such to get this to work. Could have been that my JDK API differed slightly from your's. -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 4:49 AM To: Tomcat Users List Subject: Re: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle That looks ok. Timestamp is the correct thing to use. You have two systems: one that works, one that doesn't. So, check for differences in the SQL sub-systems between the two: Are the drivers of the same (uptodate) version? Are the database schemas using the same column type? (ie the one that fails is silently truncating the data) In your original post you mentioned Oracle9i and Postgres. If one works and the other doesn't, again, check the column type is correct. Jose Gargallo wrote: This is the code: java.sql.Timestamp time = new Timestamp(System.currentTimeMillis()); ... pstmt = this.conexion.prepareStatement(INSERT); ... pstmt.setTimestamp(1, time); should I use java.sql.Date instead of java.util.Data? thanks Christopher Schultz escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, Propes, Barry L wrote: and what date type are you using? sql.date or util.date? I'm pretty sure that's going to be the problem. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGuIVQ9CaO5/Lv0PARArnpAJ93DhQqc6o9l7P49h3AVJkK20mxYQCdFvSO oPt8Wv6Y4Al0jqJBets5UuY= =Mn29 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: http ip server lost ?
did something get changed in your configuration file or welcome attribute? -Original Message- From: Philippe Couas [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 9:14 AM To: [EMAIL PROTECTED] Subject: http ip server lost ? Hi, Tomcat 4.1.36 lost prefix ip server ? Usually my Jsp page begin with /context/page1.jsp. I must see in url http://172.xx.xxx.xxx/context/page1.jsp But i see only http://contextpage1.jsp ? Tomcat lost IP Where is my mistake ?? Philippe - 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: enabling tomcat SSL on linux
Connecting to 127.0.0.1:8443... failed: Connection refused is the message i get. I get the same message 'Connection refused' when try to connect from the browser remotely. I have tried using netstat -an | grep 8443 command but nothing show up. seems tomcat is not listening. What could be the possible reason for not being listening ? I don't know if this information going to be helpful, I have started tomcat using jsvc on prot 80. There was apache running previously on port 443 but i shut it down before running tomcat (just in case). Thanks. On 8/8/07, Peter Crowther [EMAIL PROTECTED] wrote: Azhar, can you give us a little more information as to what the refusal takes? What are the symptoms? That you cannot connect from a browser on the same machine / different machine? Does netstat -an | grep 8443 show a port in LISTENING state? - Peter -Original Message- From: Waseem Azhar [mailto:[EMAIL PROTECTED] Sent: 08 August 2007 15:21 To: users@tomcat.apache.org Subject: enabling tomcat SSL on linux Hi All, I am stuck, any idea how to enable tomcat SSL on linux ? I have configured tomcat on windows machine and its working perfectly. However when i tried to port my configurations (server.xml) on linux machine, it refuses to work. I am listing down a very simple SSL configuration below: !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=80 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / !-- Define a SSL HTTP/1.1 Connector on port 8443 -- Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile= keystore.store keystorePass=secret/ !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / My certificate is setup properly. No exception, tomcat is listening properly on http. I have even tried disabling AJP connector but no use. Any idea? is there some special setup require to make it work ? Thanks -Azhar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat listening on port, but get timeout in browser
I've got a Tomcat installation that is acting strange, and not being much of a Tomcat geek, I'm feeling a bit lost. We just rebuilt the java application it's supposed to be serving, and restarted Tomcat. It appears (from 'ps' and the log files) to start up just fine; netstat shows a process listening on the port (8080); but when we point a browser to the port, we get a timeout. There isn't another app listening on that port; no errors in the tomcat logs or /var/log/messages... We've tried going back to older code, up to newer code, and always get the same result. Any suggestions? Tomcat 4 on Redhat 7; Coyote connector by itself (ie. no webserver). Thanks, David D. - 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: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle
It's a long time since my last Oracle project ;) The OP was finding milliseconds weren't being stored. I was under the impression this would be the case if the date datatype were being used instead of a timestamp. Propes, Barry L wrote: if he's using Oracle, a date field should take any kind of timestamp variable. Oracle does have a Timestamp field/data type, but you don't have to make it as such to get this to work. Could have been that my JDK API differed slightly from your's. -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 4:49 AM To: Tomcat Users List Subject: Re: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle That looks ok. Timestamp is the correct thing to use. You have two systems: one that works, one that doesn't. So, check for differences in the SQL sub-systems between the two: Are the drivers of the same (uptodate) version? Are the database schemas using the same column type? (ie the one that fails is silently truncating the data) In your original post you mentioned Oracle9i and Postgres. If one works and the other doesn't, again, check the column type is correct. Jose Gargallo wrote: This is the code: java.sql.Timestamp time = new Timestamp(System.currentTimeMillis()); ... pstmt = this.conexion.prepareStatement(INSERT); ... pstmt.setTimestamp(1, time); should I use java.sql.Date instead of java.util.Data? thanks Christopher Schultz escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, Propes, Barry L wrote: and what date type are you using? sql.date or util.date? I'm pretty sure that's going to be the problem. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGuIVQ9CaO5/Lv0PARArnpAJ93DhQqc6o9l7P49h3AVJkK20mxYQCdFvSO oPt8Wv6Y4Al0jqJBets5UuY= =Mn29 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: enabling tomcat SSL on linux
On 8/8/07, Waseem Azhar [EMAIL PROTECTED] wrote: Connecting to 127.0.0.1:8443... failed: Connection refused is the message i get. I get the same message 'Connection refused' when try to connect from the browser remotely. I have tried using netstat -an | grep 8443 command but nothing show up. seems tomcat is not listening. What could be the possible reason for not being listening ? Because the Connector didn't start, in which case it should say so in your logs, hopefully along with something indicating why. :-) -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat native.
Hi, I've only recently returned to using tomcat since tomcat 4.0.1 and I note that things have moved on somewhat. I'm currently working with the Tomcat 5.5.xx line. I would like to know is : What exactly is the advantage of using the tomcat-native library? I work with some fairly large Linux cluster, that typically have more than 2 tomcat instances for physical server. These machines have a large number of request and use a significant amount of RAM as you'd expect. The Web page states. Advanced IO functionality, OS level functionality and Native process handling . Which is all very good, but it doesn't tell me what I need to know in order the convince the people higher up the food chain, to at using it. From the testing I've done, performance difference is marginal at best and memory usage is virtually the same as without. What real world impact will this have on applications that don't use OpenSSL, but do need lots of thread and lots of memory. Regards, Alec - 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: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle
no I think they will, you just have to alter the session's NLS date format, correct? To see them, I mean? -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 10:13 AM To: Tomcat Users List Subject: Re: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle It's a long time since my last Oracle project ;) The OP was finding milliseconds weren't being stored. I was under the impression this would be the case if the date datatype were being used instead of a timestamp. Propes, Barry L wrote: if he's using Oracle, a date field should take any kind of timestamp variable. Oracle does have a Timestamp field/data type, but you don't have to make it as such to get this to work. Could have been that my JDK API differed slightly from your's. -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 4:49 AM To: Tomcat Users List Subject: Re: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle That looks ok. Timestamp is the correct thing to use. You have two systems: one that works, one that doesn't. So, check for differences in the SQL sub-systems between the two: Are the drivers of the same (uptodate) version? Are the database schemas using the same column type? (ie the one that fails is silently truncating the data) In your original post you mentioned Oracle9i and Postgres. If one works and the other doesn't, again, check the column type is correct. Jose Gargallo wrote: This is the code: java.sql.Timestamp time = new Timestamp(System.currentTimeMillis()); ... pstmt = this.conexion.prepareStatement(INSERT); ... pstmt.setTimestamp(1, time); should I use java.sql.Date instead of java.util.Data? thanks Christopher Schultz escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, Propes, Barry L wrote: and what date type are you using? sql.date or util.date? I'm pretty sure that's going to be the problem. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGuIVQ9CaO5/Lv0PARArnpAJ93DhQqc6o9l7P49h3AVJkK20mxYQCdFvSO oPt8Wv6Y4Al0jqJBets5UuY= =Mn29 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Tomcat listening on port, but get timeout in browser
On 8/8/07, David Doughty [EMAIL PROTECTED] wrote: , and restarted Tomcat. It appears (from 'ps' and the log files) to start up just fine; netstat shows a process listening on the port (8080); but when we point a browser to the port, we get a timeout. Are you sure you got a complete shutdown of the original Tomcat process? I've seen cases where a sort of zombified TC/JVM was still running in parallel with the new one I'd started, and that's exactly the symptom. FWIW! -- Hassan Schroeder [EMAIL PROTECTED] - 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: Tomcat listening on port, but get timeout in browser
Are you entering to a static or dynamic (ie servlet, jsp) page? Maybe its a database timeout, or the application you are running is too heavy (a performance bug). Try entering a static page in order to discard an application / database problem. 2007/8/8, David Doughty [EMAIL PROTECTED]: I've got a Tomcat installation that is acting strange, and not being much of a Tomcat geek, I'm feeling a bit lost. We just rebuilt the java application it's supposed to be serving, and restarted Tomcat. It appears (from 'ps' and the log files) to start up just fine; netstat shows a process listening on the port (8080); but when we point a browser to the port, we get a timeout. There isn't another app listening on that port; no errors in the tomcat logs or /var/log/messages... We've tried going back to older code, up to newer code, and always get the same result. Any suggestions? Tomcat 4 on Redhat 7; Coyote connector by itself (ie. no webserver). Thanks, David D. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle
Ah, I see. So the OP's data may be intact but he may be covering one eye and squinting when looking at the results... Propes, Barry L wrote: no I think they will, you just have to alter the session's NLS date format, correct? To see them, I mean? -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 10:13 AM To: Tomcat Users List Subject: Re: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle It's a long time since my last Oracle project ;) The OP was finding milliseconds weren't being stored. I was under the impression this would be the case if the date datatype were being used instead of a timestamp. Propes, Barry L wrote: if he's using Oracle, a date field should take any kind of timestamp variable. Oracle does have a Timestamp field/data type, but you don't have to make it as such to get this to work. Could have been that my JDK API differed slightly from your's. -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 4:49 AM To: Tomcat Users List Subject: Re: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle That looks ok. Timestamp is the correct thing to use. You have two systems: one that works, one that doesn't. So, check for differences in the SQL sub-systems between the two: Are the drivers of the same (uptodate) version? Are the database schemas using the same column type? (ie the one that fails is silently truncating the data) In your original post you mentioned Oracle9i and Postgres. If one works and the other doesn't, again, check the column type is correct. Jose Gargallo wrote: This is the code: java.sql.Timestamp time = new Timestamp(System.currentTimeMillis()); ... pstmt = this.conexion.prepareStatement(INSERT); ... pstmt.setTimestamp(1, time); should I use java.sql.Date instead of java.util.Data? thanks Christopher Schultz escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, Propes, Barry L wrote: and what date type are you using? sql.date or util.date? I'm pretty sure that's going to be the problem. - 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: enabling tomcat SSL on linux
From: Waseem Azhar [mailto:[EMAIL PROTECTED] Connecting to 127.0.0.1:8443... failed: Connection refused is the message i get. I get the same message 'Connection refused' when try to connect from the browser remotely. I have tried using netstat -an | grep 8443 command but nothing show up. seems tomcat is not listening. What could be the possible reason for not being listening? If it's not listening due to a config error, I'd expect some output to that effect in the logs. Just as a check, search for the log lines saying it's starting up a connector on port XXX - do you see one for port 80? Do you see one for 8443? I don't know if this information going to be helpful, I have started tomcat using jsvc on prot 80. Just to check: is port 80 OK? You can go to http://localhost and see the Tomcat welcome page? - Peter - 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: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle
yeah, possibly, and my apologies if it appears I hijacked the thread in anywayeven though it's marked OT. -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 10:35 AM To: Tomcat Users List Subject: Re: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle Ah, I see. So the OP's data may be intact but he may be covering one eye and squinting when looking at the results... Propes, Barry L wrote: no I think they will, you just have to alter the session's NLS date format, correct? To see them, I mean? -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 10:13 AM To: Tomcat Users List Subject: Re: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle It's a long time since my last Oracle project ;) The OP was finding milliseconds weren't being stored. I was under the impression this would be the case if the date datatype were being used instead of a timestamp. Propes, Barry L wrote: if he's using Oracle, a date field should take any kind of timestamp variable. Oracle does have a Timestamp field/data type, but you don't have to make it as such to get this to work. Could have been that my JDK API differed slightly from your's. -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 4:49 AM To: Tomcat Users List Subject: Re: [OT] JDBC problem: PreparedStatement.setTimestamp function ignores milliseconds in TOMCAT + ddbb Oracle That looks ok. Timestamp is the correct thing to use. You have two systems: one that works, one that doesn't. So, check for differences in the SQL sub-systems between the two: Are the drivers of the same (uptodate) version? Are the database schemas using the same column type? (ie the one that fails is silently truncating the data) In your original post you mentioned Oracle9i and Postgres. If one works and the other doesn't, again, check the column type is correct. Jose Gargallo wrote: This is the code: java.sql.Timestamp time = new Timestamp(System.currentTimeMillis()); ... pstmt = this.conexion.prepareStatement(INSERT); ... pstmt.setTimestamp(1, time); should I use java.sql.Date instead of java.util.Data? thanks Christopher Schultz escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, Propes, Barry L wrote: and what date type are you using? sql.date or util.date? I'm pretty sure that's going to be the problem. - 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: enabling tomcat SSL on linux
Yes, I got it working. Tomcat wasn't able to locate certificate file. netstat -an | grep 8443 was a really good tip. Thanks a lot Peter. On 8/8/07, Peter Crowther [EMAIL PROTECTED] wrote: From: Waseem Azhar [mailto:[EMAIL PROTECTED] Connecting to 127.0.0.1:8443... failed: Connection refused is the message i get. I get the same message 'Connection refused' when try to connect from the browser remotely. I have tried using netstat -an | grep 8443 command but nothing show up. seems tomcat is not listening. What could be the possible reason for not being listening? If it's not listening due to a config error, I'd expect some output to that effect in the logs. Just as a check, search for the log lines saying it's starting up a connector on port XXX - do you see one for port 80? Do you see one for 8443? I don't know if this information going to be helpful, I have started tomcat using jsvc on prot 80. Just to check: is port 80 OK? You can go to http://localhost and see the Tomcat welcome page? - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
very slow upload over SSL
Hi, I am trying to upload a file size of 2MB to my server. Doing it without SSL takes only 1 sec but doing it over SSL takes so long that the server time out. Longer than 10 min! I have searched everywhere but I can't find any solution. Please help. Server Specs: Window XP Tomcat 6 Connector: Connector protocol=org.apache.coyote.http11.Http11NioProtocol port=443 minSpareThreads=5 maxSpareThreads=75 enableLookups=true disableUploadTimeout=true acceptCount=100 maxThreads=200 scheme=https secure=true SSLEnabled=true keystoreFile=C:/keystore/.keystore keystorePass=changeit clientAuth=false sslProtocol=TLS/ Thank you, Henry - Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
RHEL and Tomcat startup/shutdown scripts
Hello everyone, Over the past couple of months, I have been working with some Tomcat instances on RHEL 5 and wondered: what is the recommended method to startup/shutdown Tomcat? After reading the Tomcat documentation, they talk about compiling the jsvc source under the bin directory and using that. Thanks, Andrew R Feller, Analyst Subversion Administrator University Information Systems Louisiana State University [EMAIL PROTECTED] (office) 225.578.3737
Re: Tomcat 6 cluster management
Mark Faircloth wrote: The Tomcat 6 documentation says that the MBean values 'type=Cluster' and 'type=Cluster,host=${HOST}' should be available like they were in Tomcat 5.5. However, they are not visible via jmx using jconsole or Probe. Does anyone know how to view Cluster information in Tomcat 6? The JMX stuff was taken out of the code in 6 during the refactoring. All the JMX code was heavily inlined and made the maintenance of the code base hard. I will add it to my todo list to wrap some JMX beans around it so that we can expose the info again, but this time it will be a different set of JMX beans, simply introspecting the running code Filip Thanks Mark Connaught wins RoSPA Gold Award for fifth year running Considerate Contractor Gold Award in 2006 Partnering Contractor of the Year Award in 2005 Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/Investors/Registered-Companies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.11.8/941 - Release Date: 8/7/2007 4:06 PM - 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: tomcat is looking for a class I don't use anymore
make sure you delete all the .ser files, that is where your session info is stored even stored during a restart Filip Mastrorillo Laurence wrote: Hi everybody, I am having a problem with an old class no longer in used in my application. I am using tomcat 5.0.18 with jdk 1.5 from ibm. I undeployed the application, suppressed the class and every references to it (I am sure of that!), and then deployed again in tomcat. And in the catalina.out logs, I get the following error, again and again : java.lang.ClassNotFoundException: : myClass I thought it could be some problem of persisting sessions, so I waited for all sessions to end, but they don't end because of that error keeping them alive. I even restarted tomcat. Nothing seems to do it. This does not affect my application as I do not use that class anymore, but it is affecting sessions and logs. Thanks if anyone have a clue. - 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: Tomcat native.
Alec Bickerton wrote: Hi, I've only recently returned to using tomcat since tomcat 4.0.1 and I note that things have moved on somewhat. I'm currently working with the Tomcat 5.5.xx line. I would like to know is : What exactly is the advantage of using the tomcat-native library? no longer having maxThreads==maxConnections, with the native library you can have more open connections than you have threads in Tomcat. Also, for SSL you can use openSSL, much faster than Java SSL Filip I work with some fairly large Linux cluster, that typically have more than 2 tomcat instances for physical server. These machines have a large number of request and use a significant amount of RAM as you'd expect. The Web page states. Advanced IO functionality, OS level functionality and Native process handling . Which is all very good, but it doesn't tell me what I need to know in order the convince the people higher up the food chain, to at using it. From the testing I've done, performance difference is marginal at best and memory usage is virtually the same as without. What real world impact will this have on applications that don't use OpenSSL, but do need lots of thread and lots of memory. Regards, Alec - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: very slow upload over SSL
feel free to open a bugzilla item, and attach a test case, and I will look at it http://issues.apache.org/bugzilla/enter_bug.cgi?product=Tomcat%206 Filip Hoa Doan wrote: Hi, I am trying to upload a file size of 2MB to my server. Doing it without SSL takes only 1 sec but doing it over SSL takes so long that the server time out. Longer than 10 min! I have searched everywhere but I can't find any solution. Please help. Server Specs: Window XP Tomcat 6 Connector: Connector protocol=org.apache.coyote.http11.Http11NioProtocol port=443 minSpareThreads=5 maxSpareThreads=75 enableLookups=true disableUploadTimeout=true acceptCount=100 maxThreads=200 scheme=https secure=true SSLEnabled=true keystoreFile=C:/keystore/.keystore keystorePass=changeit clientAuth=false sslProtocol=TLS/ Thank you, Henry - Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.11.8/941 - Release Date: 8/7/2007 4:06 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and path with pound sign (#) - ClassNotFoundException
Hi there, starting Tomcat from a path containing a pound sign (#) somewhere results in a ClassNotFoundException. I've checked this with - Solaris Sparc/X86 + Mac OS X - Java 5 + 6 - Tomcat 5.5.23 + 6.0.13 example: - mkdir /export/home/markus/tomcat#1 - extract tomcat within this directory - export JAVA_HOME=/usr/java (JDK 6) - /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/startup.sh or cd /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin ; ./startup.sh output from catalina.sh with the java call (added set -x to catalina.sh - i.e. no problem of the calling script omitting something) /usr/java/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/conf/logging.properties -Djava.endorsed.dirs=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/endorsed -classpath :/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/bootstrap.jar:/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/commons-logging-api.jar -Dcatalina.base=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Dcatalina.home=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Djava.io.tmpdir=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/temp org.apache.catalina.startup.Bootstrap start $cat catalina.out java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390) truss output: path was truncated after the # sign: ... 2717/2: read(5, CAFEBABE\0\0\0 1\00701\0.., 142) = 142 2717/2: stat64(/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/org/apache/catalina/security/SecurityClassLoad.class, 0xD230ABF0) Err#2 ENOENT 2717/2: llseek(9, 1422, SEEK_SET) = 1422 2717/2: read(9, P K0304\n\0\0\0\b\0F91C.., 30) = 30 2717/2: llseek(9, 1504, SEEK_SET) = 1504 2717/2: read(9, 95 W k o14 U18 ~ f [DAC3.., 1634) = 1634 2717/2: brk(0x08172F08) = 0 2717/2: brk(0x08176F08) = 0 2717/9: pollsys(0x, 0, 0xCFCA9CD8, 0x) = 0 2717/2: stat64(/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/org/apache/catalina/startup/Catalina.class, 0xD230B3D0) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/3: lwp_cond_wait(0x0806F7A0, 0x0806F788, 0xD208DB48, 0) (sleeping...) 2717/3: lwp_cond_wait(0x0806F7A0, 0x0806F788, 0xD208DB48, 0) Err#62 ETIME 2717/9: pollsys(0x, 0, 0xCFCA9CD8, 0x) = 0 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT ... Although there is a rather old but maybe similar bug at: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4231042 i supose somewhere the road this has been fixed, as i have no problems with JAVA 5/6 and other java programs otherwise my tests where flawed. Installing the jdk in such a directory (e.g. /opt/java#6) works with tomcat, too. Can anybody confirm that # is still a special character (for tomcat)? Unfortunately i'm somewhat forced to place tomcat installations/ instances into such (with #) directories. Any fix possible? thanks in advance! kind regards, Markus - 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: Tomcat and path with pound sign (#) - ClassNotFoundException
Are you allowed to create symbolic links with normal names? - Alexey. Markus Schiegl wrote: Hi there, starting Tomcat from a path containing a pound sign (#) somewhere results in a ClassNotFoundException. I've checked this with - Solaris Sparc/X86 + Mac OS X - Java 5 + 6 - Tomcat 5.5.23 + 6.0.13 example: - mkdir /export/home/markus/tomcat#1 - extract tomcat within this directory - export JAVA_HOME=/usr/java (JDK 6) - /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/startup.sh or cd /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin ; ./startup.sh output from catalina.sh with the java call (added set -x to catalina.sh - i.e. no problem of the calling script omitting something) /usr/java/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/conf/logging.properties -Djava.endorsed.dirs=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/endorsed -classpath :/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/bootstrap.jar:/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/commons-logging-api.jar -Dcatalina.base=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Dcatalina.home=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Djava.io.tmpdir=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/temp org.apache.catalina.startup.Bootstrap start $cat catalina.out java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390) truss output: path was truncated after the # sign: ... 2717/2: read(5, CAFEBABE\0\0\0 1\00701\0.., 142) = 142 2717/2: stat64(/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/org/apache/catalina/security/SecurityClassLoad.class, 0xD230ABF0) Err#2 ENOENT 2717/2: llseek(9, 1422, SEEK_SET) = 1422 2717/2: read(9, P K0304\n\0\0\0\b\0F91C.., 30) = 30 2717/2: llseek(9, 1504, SEEK_SET) = 1504 2717/2: read(9, 95 W k o14 U18 ~ f [DAC3.., 1634) = 1634 2717/2: brk(0x08172F08) = 0 2717/2: brk(0x08176F08) = 0 2717/9: pollsys(0x, 0, 0xCFCA9CD8, 0x) = 0 2717/2: stat64(/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/org/apache/catalina/startup/Catalina.class, 0xD230B3D0) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/3: lwp_cond_wait(0x0806F7A0, 0x0806F788, 0xD208DB48, 0) (sleeping...) 2717/3: lwp_cond_wait(0x0806F7A0, 0x0806F788, 0xD208DB48, 0) Err#62 ETIME 2717/9: pollsys(0x, 0, 0xCFCA9CD8, 0x) = 0 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT ... Although there is a rather old but maybe similar bug at: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4231042 i supose somewhere the road this has been fixed, as i have no problems with JAVA 5/6 and other java programs otherwise my tests where flawed. Installing the jdk in such a directory (e.g. /opt/java#6) works with tomcat, too. Can anybody confirm that # is still a special character (for tomcat)? Unfortunately i'm somewhat forced to place tomcat installations/ instances into such (with #) directories. Any fix possible? thanks in advance! kind regards, Markus - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexey N. Solofnenko http://trelony.cjb.net/ Pleasant Hill, CA (GMT-8 usually) smime.p7s Description: S/MIME Cryptographic Signature
RE: Tomcat and path with pound sign (#) - ClassNotFoundException
The # character starts a comment in the shell. Try quoting the pathname, or put a \ in front of the #. I would bet that your mkdir and cd commands didn't do what you think they did. -Original Message- From: Markus Schiegl [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 1:54 PM To: users@tomcat.apache.org Subject: Tomcat and path with pound sign (#) - ClassNotFoundException Hi there, starting Tomcat from a path containing a pound sign (#) somewhere results in a ClassNotFoundException. I've checked this with - Solaris Sparc/X86 + Mac OS X - Java 5 + 6 - Tomcat 5.5.23 + 6.0.13 example: - mkdir /export/home/markus/tomcat#1 - extract tomcat within this directory - export JAVA_HOME=/usr/java (JDK 6) - /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/startup.sh or cd /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin ; ./startup.sh output from catalina.sh with the java call (added set -x to catalina.sh - i.e. no problem of the calling script omitting something) /usr/java/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/conf/logging.properties -Djava.endorsed.dirs=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/endorsed -classpath :/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/bootstrap.jar:/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/commons-logging-api.jar -Dcatalina.base=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Dcatalina.home=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Djava.io.tmpdir=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/temp org.apache.catalina.startup.Bootstrap start $cat catalina.out java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390) truss output: path was truncated after the # sign: ... 2717/2: read(5, CAFEBABE\0\0\0 1\00701\0.., 142) = 142 2717/2: stat64(/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/org/apache/catalina/security/SecurityClassLoad.class, 0xD230ABF0) Err#2 ENOENT 2717/2: llseek(9, 1422, SEEK_SET) = 1422 2717/2: read(9, P K0304\n\0\0\0\b\0F91C.., 30) = 30 2717/2: llseek(9, 1504, SEEK_SET) = 1504 2717/2: read(9, 95 W k o14 U18 ~ f [DAC3.., 1634) = 1634 2717/2: brk(0x08172F08) = 0 2717/2: brk(0x08176F08) = 0 2717/9: pollsys(0x, 0, 0xCFCA9CD8, 0x) = 0 2717/2: stat64(/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/org/apache/catalina/startup/Catalina.class, 0xD230B3D0) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/3: lwp_cond_wait(0x0806F7A0, 0x0806F788, 0xD208DB48, 0) (sleeping...) 2717/3: lwp_cond_wait(0x0806F7A0, 0x0806F788, 0xD208DB48, 0) Err#62 ETIME 2717/9: pollsys(0x, 0, 0xCFCA9CD8, 0x) = 0 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT ... Although there is a rather old but maybe similar bug at: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4231042 i supose somewhere the road this has been fixed, as i have no problems with JAVA 5/6 and other java programs otherwise my tests where flawed. Installing the jdk in such a directory (e.g. /opt/java#6) works with tomcat, too. Can anybody confirm that # is still a special character (for tomcat)? Unfortunately i'm somewhat forced to place tomcat installations/ instances into such (with #) directories. Any fix possible? thanks in advance! kind regards, Markus - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WARNING: Parameters: Invalid chunk ignored.
What does this mean on Tomcat 5.5.23? How do I fix it?
Re: Tomcat and path with pound sign (#) - ClassNotFoundException
Hi, being root (for these tests) should give me enough permissions. I have no problems creating sym-links at all (with or without #) although my test-case involves no symbolic links. Any specific test? kind regards, Markus Alexey Solofnenko wrote: Are you allowed to create symbolic links with normal names? - Alexey. Markus Schiegl wrote: Hi there, starting Tomcat from a path containing a pound sign (#) somewhere results in a ClassNotFoundException. I've checked this with - Solaris Sparc/X86 + Mac OS X - Java 5 + 6 - Tomcat 5.5.23 + 6.0.13 example: - mkdir /export/home/markus/tomcat#1 - extract tomcat within this directory - export JAVA_HOME=/usr/java (JDK 6) - /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/startup.sh or cd /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin ; ./startup.sh output from catalina.sh with the java call (added set -x to catalina.sh - i.e. no problem of the calling script omitting something) /usr/java/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/conf/logging.properties -Djava.endorsed.dirs=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/endorsed -classpath :/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/bootstrap.jar:/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/commons-logging-api.jar -Dcatalina.base=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Dcatalina.home=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Djava.io.tmpdir=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/temp org.apache.catalina.startup.Bootstrap start $cat catalina.out java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390) truss output: path was truncated after the # sign: ... 2717/2: read(5, CAFEBABE\0\0\0 1\00701\0.., 142) = 142 2717/2: stat64(/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/org/apache/catalina/security/SecurityClassLoad.class, 0xD230ABF0) Err#2 ENOENT 2717/2: llseek(9, 1422, SEEK_SET) = 1422 2717/2: read(9, P K0304\n\0\0\0\b\0F91C.., 30) = 30 2717/2: llseek(9, 1504, SEEK_SET) = 1504 2717/2: read(9, 95 W k o14 U18 ~ f [DAC3.., 1634) = 1634 2717/2: brk(0x08172F08) = 0 2717/2: brk(0x08176F08) = 0 2717/9: pollsys(0x, 0, 0xCFCA9CD8, 0x) = 0 2717/2: stat64(/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/org/apache/catalina/startup/Catalina.class, 0xD230B3D0) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/3: lwp_cond_wait(0x0806F7A0, 0x0806F788, 0xD208DB48, 0) (sleeping...) 2717/3: lwp_cond_wait(0x0806F7A0, 0x0806F788, 0xD208DB48, 0) Err#62 ETIME 2717/9: pollsys(0x, 0, 0xCFCA9CD8, 0x) = 0 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT ... Although there is a rather old but maybe similar bug at: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4231042 i supose somewhere the road this has been fixed, as i have no problems with JAVA 5/6 and other java programs otherwise my tests where flawed. Installing the jdk in such a directory (e.g. /opt/java#6) works with tomcat, too. Can anybody confirm that # is still a special character (for tomcat)? Unfortunately i'm somewhat forced to place tomcat installations/ instances into such (with #) directories. Any fix possible? thanks in advance! kind regards, Markus - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: WARNING: Parameters: Invalid chunk ignored.
Do you happen to be using Java Server Faces in your application? http://icefaces.org/JForum/posts/list/4918.page Original Message Follows From: Susan Richards [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: users@tomcat.apache.org Subject: WARNING: Parameters: Invalid chunk ignored. Date: Wed, 08 Aug 2007 16:10:53 -0500 What does this mean on Tomcat 5.5.23? How do I fix it? _ See what youre getting into before you go there http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507 - 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: WARNING: Parameters: Invalid chunk ignored.
It's a vendor's application, so I'm not sure, but I don't think so. I don't see a faces-config.xml file on the web server. Nathan Hook [EMAIL PROTECTED] 8/8/2007 4:14 PM Do you happen to be using Java Server Faces in your application? http://icefaces.org/JForum/posts/list/4918.page Original Message Follows From: Susan Richards [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: users@tomcat.apache.org Subject: WARNING: Parameters: Invalid chunk ignored. Date: Wed, 08 Aug 2007 16:10:53 -0500 What does this mean on Tomcat 5.5.23? How do I fix it? _ See what you’re getting into…before you go there http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507 - 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: Tomcat and path with pound sign (#) - ClassNotFoundException
Hi, as far as i see the shell has no problems passing the # character. I've added ps auxwww |grep java after the java call in catalina.sh, just to verify the java-program itself is called with the correct values, see below: $ ~/tomcat#1/apache-tomcat-6.0.13/bin$ ./startup.sh Using CATALINA_BASE: /export/home/markus/tomcat#1/apache-tomcat-6.0.13 Using CATALINA_HOME: /export/home/markus/tomcat#1/apache-tomcat-6.0.13 Using CATALINA_TMPDIR: /export/home/markus/tomcat#1/apache-tomcat-6.0.13/temp Using JRE_HOME: /usr/java markus2877 0.6 1.842428 8964 pts/1R 23:20:06 0:00 /usr/java/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/conf/logging.properties -Djava.endorsed.dirs=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/endorsed -classpath :/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/bootstrap.jar:/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/commons-logging-api.jar -Dcatalina.base=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Dcatalina.home=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Djava.io.tmpdir=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/temp org.apache.catalina.startup.Bootstrap start $ ~/tomcat#1/apache-tomcat-6.0.13/bin$ pwd /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin $ ~/tomcat#1/apache-tomcat-6.0.13/bin$ thanks! kind regards, Markus P.S shell commands with # between or after other characters are ok, e.g. $ echo bla # 1 bla $ echo bla#1 bla#1 $ echo bla# bla# Fargusson.Alan wrote: The # character starts a comment in the shell. Try quoting the pathname, or put a \ in front of the #. I would bet that your mkdir and cd commands didn't do what you think they did. -Original Message- From: Markus Schiegl [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 1:54 PM To: users@tomcat.apache.org Subject: Tomcat and path with pound sign (#) - ClassNotFoundException Hi there, starting Tomcat from a path containing a pound sign (#) somewhere results in a ClassNotFoundException. I've checked this with - Solaris Sparc/X86 + Mac OS X - Java 5 + 6 - Tomcat 5.5.23 + 6.0.13 example: - mkdir /export/home/markus/tomcat#1 - extract tomcat within this directory - export JAVA_HOME=/usr/java (JDK 6) - /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/startup.sh or cd /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin ; ./startup.sh output from catalina.sh with the java call (added set -x to catalina.sh - i.e. no problem of the calling script omitting something) /usr/java/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/conf/logging.properties -Djava.endorsed.dirs=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/endorsed -classpath :/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/bootstrap.jar:/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/commons-logging-api.jar -Dcatalina.base=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Dcatalina.home=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Djava.io.tmpdir=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/temp org.apache.catalina.startup.Bootstrap start $cat catalina.out java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390) truss output: path was truncated after the # sign: ... 2717/2: read(5, CAFEBABE\0\0\0 1\00701\0.., 142) = 142 2717/2: stat64(/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/org/apache/catalina/security/SecurityClassLoad.class, 0xD230ABF0) Err#2 ENOENT 2717/2: llseek(9, 1422, SEEK_SET) = 1422 2717/2: read(9, P K0304\n\0\0\0\b\0F91C.., 30) = 30 2717/2: llseek(9, 1504, SEEK_SET) = 1504 2717/2: read(9, 95 W k o14 U18 ~ f [DAC3.., 1634) = 1634 2717/2: brk(0x08172F08) = 0 2717/2: brk(0x08176F08) = 0 2717/9: pollsys(0x, 0, 0xCFCA9CD8, 0x) = 0 2717/2: stat64(/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/org/apache/catalina/startup/Catalina.class, 0xD230B3D0) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2: stat64(/export/home/markus/tomcat, 0xD230AA60) Err#2 ENOENT 2717/2:
Re: Tomcat and path with pound sign (#) - ClassNotFoundException
Why not just change it to /export/home/markus/tomcat_1 or something and be done with it. Is trying to make it work with a # really worth the time an effort? Think in terms of hours spent * hourly rate or hour spent that you could be doing something else. Just my opinion. On 8/8/07, Markus Schiegl [EMAIL PROTECTED] wrote: Hi, as far as i see the shell has no problems passing the # character. I've added ps auxwww |grep java after the java call in catalina.sh, just to verify the java-program itself is called with the correct values, see below: $ ~/tomcat#1/apache-tomcat-6.0.13/bin$ ./startup.sh Using CATALINA_BASE: /export/home/markus/tomcat#1/apache-tomcat-6.0.13 Using CATALINA_HOME: /export/home/markus/tomcat#1/apache-tomcat-6.0.13 Using CATALINA_TMPDIR: /export/home/markus/tomcat#1/apache-tomcat-6.0.13/temp Using JRE_HOME: /usr/java markus2877 0.6 1.842428 8964 pts/1R 23:20:06 0:00 /usr/java/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/conf/logging.properties -Djava.endorsed.dirs=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/endorsed -classpath :/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/bootstrap.jar:/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/commons-logging-api.jar -Dcatalina.base=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Dcatalina.home=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Djava.io.tmpdir=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/temp org.apache.catalina.startup.Bootstrap start $ ~/tomcat#1/apache-tomcat-6.0.13/bin$ pwd /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin $ ~/tomcat#1/apache-tomcat-6.0.13/bin$ thanks! kind regards, Markus P.S shell commands with # between or after other characters are ok, e.g. $ echo bla # 1 bla $ echo bla#1 bla#1 $ echo bla# bla# Fargusson.Alan wrote: The # character starts a comment in the shell. Try quoting the pathname, or put a \ in front of the #. I would bet that your mkdir and cd commands didn't do what you think they did. -Original Message- From: Markus Schiegl [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 1:54 PM To: users@tomcat.apache.org Subject: Tomcat and path with pound sign (#) - ClassNotFoundException Hi there, starting Tomcat from a path containing a pound sign (#) somewhere results in a ClassNotFoundException. I've checked this with - Solaris Sparc/X86 + Mac OS X - Java 5 + 6 - Tomcat 5.5.23 + 6.0.13 example: - mkdir /export/home/markus/tomcat#1 - extract tomcat within this directory - export JAVA_HOME=/usr/java (JDK 6) - /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/startup.sh or cd /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin ; ./startup.sh output from catalina.sh with the java call (added set -x to catalina.sh - i.e. no problem of the calling script omitting something) /usr/java/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/conf/logging.properties -Djava.endorsed.dirs=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/endorsed -classpath :/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/bootstrap.jar:/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/commons-logging-api.jar -Dcatalina.base=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Dcatalina.home=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Djava.io.tmpdir=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/temp org.apache.catalina.startup.Bootstrap start $cat catalina.out java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390) truss output: path was truncated after the # sign: ... 2717/2: read(5, CAFEBABE\0\0\0 1\00701\0.., 142) = 142 2717/2: stat64(/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/org/apache/catalina/security/SecurityClassLoad.class, 0xD230ABF0) Err#2 ENOENT 2717/2: llseek(9, 1422, SEEK_SET) = 1422 2717/2: read(9, P K0304\n\0\0\0\b\0F91C.., 30) = 30 2717/2: llseek(9, 1504, SEEK_SET) = 1504 2717/2: read(9, 95 W k o14 U18 ~ f [DAC3.., 1634) = 1634 2717/2: brk(0x08172F08) = 0 2717/2: brk(0x08176F08)
6.0.13 MySQL DBCP Example
I've been trying for days now to establish a jdbc resource for mysql in tomcat 6.0.13 To whom it may correspond: I get the following error Unable to get connection, DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException : Cannot create JDBC driver of class '' for connect URL 'null' I have the driver mysql-connector-java-5.0.6-bin.jar copied to $CATALINA_HOME/lib My application web.xml looks like this: (exactly as the example) web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd version=2.4 descriptionMySQL Test App/description resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app In http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.htmlthere is this instruction: Add this in between the /Context tag of the examples context and the /Host tag closing the localhost definition. If there is no such tag, you can add one as illustrated in the Contexthttp://tomcat.apache.org/tomcat-6.0-doc/config/context.htmland Host http://tomcat.apache.org/tomcat-6.0-doc/config/host.htmlconfiguration references, and repeated below for your convenience. In my own opinion this is quite ambiguous. After several search in the mail repositories. I have this as my server.xml configuration (i deleted the comments for easy reading) Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className= org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Resource name=jdbc/TestDB auth=Container type= javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=gabo password=huevos driverClassName= com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/javatest?autoReconnect=true/ /Context /Host /Engine /Service /Server In my own opinion the problem is with server.xml, should I add something to context.xml? Any comment, hint or tip would be greatly appreciated. Regards Gabriel
Re: Tomcat on Plesk
Did you ask why they are implementing on Plesk with Tomcat? If its *NOT* a political consideration Im sure the folks at Plesk would be willing to accomodate Maybe the Tomcat Ports 8005/8009/8080 are bound to some System service? Topic 2: Is there anyone out there who can get ANY work done on Eclipse (3.3)? Apparently the Plugins for Tomcat and Perforce are not quite ready for prime time on Eclipse 3.3 and the documentation is non-existent Thanks/ M-- 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 telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Clemens Eisserer [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, August 07, 2007 5:10 PM Subject: Re: Tomcat on Plesk as far as I know this is not possible with Plesk. To be honest I had very ugly experiences with Plesk+Tomcat, I've to use it but I personally hate it, and it does not work very well. (Uploaded servlets take ages till they become active, status report is wrong, non-existent logging in plesk itself, ...). lg Clemens 2007/8/7, Mark Benussi [EMAIL PROTECTED]: I've installed Tomcat on port 9080 (SSL 9443) on a box running Plesk. What do I have to do to get requests on the box forwarded from 80 and 443 on to Tomcat 9080 and 9443. I am normally happy to play but this is a production box and the administrators have little knowledge outside of Plesk standard features. With regards, Mark Benussi, IBT Services [EMAIL PROTECTED] Tel +44 870 850 1081 Mob +44 7714 767407 Fax +44 7092 094490 HYPERLINK http://www.ibt.com/; _ This communication and any attachments contain information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title Received in error to [EMAIL PROTECTED] then delete the email and destroy any copies of it. E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. We do not accept liability for any such matters or their consequences. Anyone who communicates with us by e-mail is taken to accept the risks in doing so. HYPERLINK skype:mark_benussi?add No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007 16:53 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: WARNING: Parameters: Invalid chunk ignored.
Susan Richards [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What does this mean on Tomcat 5.5.23? How do I fix it? Most likely, it means that your parameters (POST body or query-string) is ending with a '' character (e.g. something like /mypage.jsp?foo=bar). Other patterns include = or , but these are less likely. You fix it by having not done that :). But the warning should be mostly harmless (except for the space in the log file), since Tomcat will continue to try and parse the parameters. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pipelining Problem after Form Authentication with Firefox and Status Code 408
Hello, I have some troubles with firefox and form authentication running on Tomcat 5.0.28. It happens as followed: User requests restricted Page and is redirected to a LoginServlet which forwards the request to a Login.jsp. Nothing special here. Instead of logging in, the user waits, for as long as the configured session timeout e.g. 5 Minutes. After 5 Minutes he try to log in. The session is already expired an Tomcat answers with Status Code 408. Status Code 408 should be handled by an error-page configured in the web.xml. error-page error-code408/error-code locationError.jsp/location error-page With IE7 ore Safari i see ONE Request in my Tomcat Access Logfile, answered with a 408, and then the Error Page is displayed. In Firefox 2.0.5 however, not ONE but TEN requests are made. All are answered with 408, but not the Error Page is displayed, but a default file not found status code 404 (j_security_check not found) is displayed. If I then configure an error-page for status code 404 it gets even stranger, and after all request were made, firefox displays its standard The connection was reset page. As far as i understand the problem, firefox with enabled pipelining sends multiple requests after the session expired and tomcat can not handle those requests. What i don't understand is, why firefox sends so many requests? Can i control this behavior by setting some response headers? I already tried Pragma: no-cache and Cache-Control: no-cache,no-store,must-revalidate? Or meta-tags in the html of the Login.jsp? Another interesting side effect is, that even so the server answer with a 408, the JDBC Realm successfully authenticates the user. And if you click the back button in the Browser you get to the actual requested page without further Logins. But i guess, thats another question Any help is appreciated, Derek - 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: Tomcat and path with pound sign (#) - ClassNotFoundException
Hi Ben, this is exactly the question. As these directories are created and used by other software changing the # sign to something else involves modifications to these programs and therefore hours/days of work too. I've decided to put in a few hours to evaluate the situation before making a conclusion. Can anybody confirm the #-sign is a reserved char (maybe because the classloader is a URL-Classloader and #'s in URLs are used for anchors) for tomcat - but not for java itself anymore? Even if it's a tomcat bug but would be marked as will not fix for whatever reasons i'm fine. Just want to have all available informations/ statements before i open bug report. Has anybody been able to start a tomcat server from such a directory? kind regards, Markus ben short wrote: Why not just change it to /export/home/markus/tomcat_1 or something and be done with it. Is trying to make it work with a # really worth the time an effort? Think in terms of hours spent * hourly rate or hour spent that you could be doing something else. Just my opinion. On 8/8/07, Markus Schiegl [EMAIL PROTECTED] wrote: Hi, as far as i see the shell has no problems passing the # character. I've added ps auxwww |grep java after the java call in catalina.sh, just to verify the java-program itself is called with the correct values, see below: $ ~/tomcat#1/apache-tomcat-6.0.13/bin$ ./startup.sh Using CATALINA_BASE: /export/home/markus/tomcat#1/apache-tomcat-6.0.13 Using CATALINA_HOME: /export/home/markus/tomcat#1/apache-tomcat-6.0.13 Using CATALINA_TMPDIR: /export/home/markus/tomcat#1/apache-tomcat-6.0.13/temp Using JRE_HOME: /usr/java markus2877 0.6 1.842428 8964 pts/1R 23:20:06 0:00 /usr/java/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/conf/logging.properties -Djava.endorsed.dirs=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/endorsed -classpath :/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/bootstrap.jar:/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/commons-logging-api.jar -Dcatalina.base=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Dcatalina.home=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Djava.io.tmpdir=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/temp org.apache.catalina.startup.Bootstrap start $ ~/tomcat#1/apache-tomcat-6.0.13/bin$ pwd /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin $ ~/tomcat#1/apache-tomcat-6.0.13/bin$ thanks! kind regards, Markus P.S shell commands with # between or after other characters are ok, e.g. $ echo bla # 1 bla $ echo bla#1 bla#1 $ echo bla# bla# Fargusson.Alan wrote: The # character starts a comment in the shell. Try quoting the pathname, or put a \ in front of the #. I would bet that your mkdir and cd commands didn't do what you think they did. -Original Message- From: Markus Schiegl [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 1:54 PM To: users@tomcat.apache.org Subject: Tomcat and path with pound sign (#) - ClassNotFoundException Hi there, starting Tomcat from a path containing a pound sign (#) somewhere results in a ClassNotFoundException. I've checked this with - Solaris Sparc/X86 + Mac OS X - Java 5 + 6 - Tomcat 5.5.23 + 6.0.13 example: - mkdir /export/home/markus/tomcat#1 - extract tomcat within this directory - export JAVA_HOME=/usr/java (JDK 6) - /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/startup.sh or cd /export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin ; ./startup.sh output from catalina.sh with the java call (added set -x to catalina.sh - i.e. no problem of the calling script omitting something) /usr/java/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/conf/logging.properties -Djava.endorsed.dirs=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/endorsed -classpath :/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/bootstrap.jar:/export/home/markus/tomcat#1/apache-tomcat-6.0.13/bin/commons-logging-api.jar -Dcatalina.base=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Dcatalina.home=/export/home/markus/tomcat#1/apache-tomcat-6.0.13 -Djava.io.tmpdir=/export/home/markus/tomcat#1/apache-tomcat-6.0.13/temp org.apache.catalina.startup.Bootstrap start $cat catalina.out java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:215) at