Re: Apache Tomcat; Event Error in Windows 2003
Hi, looks like the messages are not really coming from Tomcat, but from the JK2 isapi redirector running in IIS? JK2 has been deprecated a long time ago. All important features of JK2 have been backported to JK, which is still actively developed. It will be hard to get answers for JK2. Anyone? For JK I would say you didn't set the log file appropriately, and then maybe also the log level is to high. Regards, Rainer [EMAIL PROTECTED] wrote: I'm getting the following errors out of the Event Viewer; Event Type:Information Event Source:Apache Jakarta Connector2 Event Category:None Event ID:4 Date:12/10/2007 Time:2:26:36 PM User:N/A Computer:WS25 Description: The description for Event ID ( 4 ) in Source ( Apache Jakarta Connector2 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: [jk_isapi_plugin.c (308)]: In HttpFilterProc Virtual Host redirection of www.jawhite.com : 80 . Event Type:Information Event Source:Apache Jakarta Connector2 Event Category:None Event ID:4 Date:12/10/2007 Time:2:26:36 PM User:N/A Computer:WS25 Description: The description for Event ID ( 4 ) in Source ( Apache Jakarta Connector2 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: [jk_isapi_plugin.c (420)]: HttpFilterProc [/images/Company Profile.pdf] is not a servlet url . Event Type:Information Event Source:Apache Jakarta Connector2 Event Category:None Event ID:4 Date:12/10/2007 Time:2:26:36 PM User:N/A Computer:WS25 Description: The description for Event ID ( 4 ) in Source ( Apache Jakarta Connector2 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: [jk_isapi_plugin.c (252)]: HttpFilterProc started . Event Type:Information Event Source:Apache Jakarta Connector2 Event Category:None Event ID:4 Date:12/10/2007 Time:2:26:36 PM User:N/A Computer:WS25 Description: The description for Event ID ( 4 ) in Source ( Apache Jakarta Connector2 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: [jk_isapi_plugin.c (429)]: HttpFilterProc check if [/images/Company Profile.pdf] is pointing to the web-inf directory . - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache cross-site scripting attacks vulnerability solution
Hi all, Currently we are having a system that is using Apache Tomcat 4.1.3 Our customer has been asking us to implements some sort of security for 413 error page by adding the 'ErrorDocument 413' statement to the Apache configuration file to disable the default 413 error page as an workaround. However since we use Tomcat, will this issue applicable to our system? If yes, how should i implement the solution onto our system? Thanks in advance Yulius - Looking for last minute shopping deals? Find them fast with Yahoo! Search.
Tomcat on AIX, Why DataSource dosn't work right ?
OS: AIX 5.3 JDK : IBM 32-bit SDK for AIX Version 5 Tomcat : 5.5.16, 5.5.25, 6.0.14 (I tried three version of Tomcat) DB : Oracle9I (on another PCServer, Win2000) Hibernate 3.2 DataSource : I tried DataSource of Tomcat and Proxool JDBC : I tried many version of 9I, 10G JDBC Driver Problem : If I use DataSource, Tomcat can't be shutdown completely, DB connections can't be closed, unless kill the process of Tomcat; After Tomcat running for somewhile, I can open a conection from DataSource, but if I use the connection to do something, JDBC Exception throwed : java.sql.SQLException: Already closed。 The WebApp has been running stablely for monthes on Win2000, so I don't think it's the App's problem. -- View this message in context: http://www.nabble.com/Tomcat-on-AIX%2C-Why-DataSource-dosn%27t-work-right---tp14269959p14269959.html Sent from the Tomcat - User mailing list archive at Nabble.com.
Re: stdout.log size is increasing
Hi Steve, thanks, OS is windows 2003. How can I archive stdout.log in a production environment without stopping tomcat? I want that tomcat automatically archives the stdout.log file and creates a new one once a certains size is reached. Otherwise the log file size raises everyday ! How can I configure logrotate as you mentioned? is it applicable on windows as well? thank you Steve Ochani [EMAIL PROTECTED] wrote: On 10 Dec 2007 at 1:16, Stefano Martines wrote: Hi All, Although the log level is low, the stdout.log size is increasing in production day by day. I want that tomcat automatically archives the stdout.log file and creates a new one once a certains size is reached. How can I do that? You didn't mention what OS you're using (or Tomcat version for that matter) but if you're using unix, try logrotate. I want somethink like this: stdout.log 12 MB stdout_1.log 50 MB stdout_2.log 50 MB stdout_3.log 50 MB thank you Stefano Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Re: stdout.log size is increasing
Hi Steve, thanks, OS is windows 2003. How can I archive stdout.log in a production environment without stopping tomcat? I want that tomcat automatically archives the stdout.log file and creates a new one once a certains size is reached. Otherwise the log file size raises everyday ! How can I configure logrotate as you mentioned? is it applicable on windows as well? thank you Steve Ochani [EMAIL PROTECTED] wrote: On 10 Dec 2007 at 1:16, Stefano Martines wrote: Hi All, Although the log level is low, the stdout.log size is increasing in production day by day. I want that tomcat automatically archives the stdout.log file and creates a new one once a certains size is reached. How can I do that? You didn't mention what OS you're using (or Tomcat version for that matter) but if you're using unix, try logrotate. I want somethink like this: stdout.log 12 MB stdout_1.log 50 MB stdout_2.log 50 MB stdout_3.log 50 MB thank you Stefano Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Re: Failed to install Tomcat5 service
Fantastic Solution I tried many forums and none was worked. Your solution really worked well. Thanks and keep going well. :) Chandra Hez wrote: Hi! The problem is resolved by deleting Tomcat5 service from Windows XP and redo the Tomcat installation: 1) Start | Run and type cmd in the Open: Click OK. 2) Type: sc delete Tomcat5 3) Reboot the system On 6/14/07, hezjing [EMAIL PROTECTED] wrote: Hi! I got this error when trying to install Tomcat 5.5.23 on Windows XP: Failed to install Tomcat5 service. Check your settings and permissions Ignore and continue anyway (not recommended)? the above error occurs with these status: .. tomcat-users.xml written Remove folder: C:\Temp\confinstall Using Jvm: C:\Program Files\Java\jre1.5.0_11\bin\client\jvm.dll I abort the installation at this point. After searching the Google, I tried to set the environment variable TEMP and TMP to C:\Temp, but that doesn't help either. When I open the Services (Local) window, I see that there is a service named Apache Tomcat (Apache Tomcat 5.5.23 Server - http://tomcat.apache.org/; ... I think this service is created but not being remove when I abort the Tomcat installation. Please help, thank you! -- Hez -- Hez - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Failed-to-install-Tomcat5-service-tp4789p14270833.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Tomcat 5.5.25 DBCP SQLException: Already closed.
Meanwhile I found out that the SQLException: Already closed hides another SQLException. Some debugging into JPOX (which opens the connection) showed that in my scenario DBCP 1.2.2 returns an already closed conenction while DBCP 1.2.1 returns a valid connection. I've already asked the DBCP folks... Bjoern Eickvonder -Ursprüngliche Nachricht- Von: David Smith [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 30. November 2007 14:13 An: Tomcat Users List Betreff: Re: Tomcat 5.5.25 DHCP SQLException: Already closed. I'm guessing somewhere in your code, you're calling close() on a connection and that's bringing up this exception. It would appear org.apache.commons.dbcp.PoolableConnection is going against the Sun javadocs for at least java 5 which states that calling close() on an already closed connection is a no-op. Doesn't look like an exception should be thrown here. Probably your best bet is to ask the DBCP folks since tomcat uses there code directly with only a refactoring of the package name. --David Eickvonder Bjoern wrote: Hi, I just discovered a minor difference in the DHCP implementation used in Tomcat 5.5.25 vs. 5.5.23 and I'd like to know if it is a bug or a feature. I use conncetion pooling with minIdle0 (but no validationQuery), so a few connection will remain open all day long. If the database now closes the connection itself (either due to timeout or server restart), this was no problem in Tomcat 5.5.23. The DHCP implementation kicked out the already closed connection out of the pool and established a new one that is returned. Now in Tomcat 5.5.25 the connection seems to be kicked out as well in the end but an exception is propageted to the caller. Caused by: java.sql.SQLException: Already closed. at org.apache.tomcat.dbcp.dbcp.PoolableConnection.close(Poolable Connection. java:84) at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnec tionWrapper .close(PoolingDataSource.java:181) at org.jpox.store.rdbms.adapter.DatabaseAdapter.getConnection(Da tabaseAdapt er.java:928) at org.jpox.store.rdbms.RDBMSNonmanagedTransaction.begin(RDBMSNo nmanagedTra nsaction.java:324) ... 57 more Is this a bug? Bjoern Eickvonder Kennen Sie schon die inside Schulungsma?nahme zur VVG-Reform? Erfahren Sie mehr dazu unter www.vvg-konzept.de. Besuchen Sie uns an unserem Stand C 8 auf der Learntec in Karlsruhe vom 29.-31.01.08. Diese Mitteilung ist vertraulich und ausschlie?lich an den entsprechenden Empfanger gerichtet. Wenn Sie diese Mitteilung versehentlich erhalten haben, durfen Sie diese nicht kopieren, weitergeben oder in sonstiger Weise verbreiten. Bitte informieren Sie in einem solchen Fall den Absender und loschen Sie die Mitteilung sowie alle zugehorigen Anhange. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Kennen Sie schon die inside Schulungsmaßnahme zur VVG-Reform? Erfahren Sie mehr dazu unter www.vvg-konzept.de. Besuchen Sie uns an unserem Stand C 8 auf der Learntec in Karlsruhe vom 29.-31.01.08. Diese Mitteilung ist vertraulich und ausschließlich an den entsprechenden Empfänger gerichtet. Wenn Sie diese Mitteilung versehentlich erhalten haben, dürfen Sie diese nicht kopieren, weitergeben oder in sonstiger Weise verbreiten. Bitte informieren Sie in einem solchen Fall den Absender und löschen Sie die Mitteilung sowie alle zugehörigen Anhänge. - 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: server mapping behaviour when directory structure mirrors mappings
Caldarale, Charles R wrote: From: Matthew Thomas Broadhead [mailto:[EMAIL PROTECTED] Subject: server mapping behaviour when directory structure mirrors mappings servlet-mapping servlet-nameSales/servlet-name url-pattern/sales/url-pattern /servlet-mapping If you look at the servlet spec (section 11.2), you'll see that the above is not valid other than for matching the exact request /sales. Newer versions of Tomcat are more strict in their implementation of the rules in the spec, so it's not too surprising that 6.0 works properly and 4.1 let you slide by. Looks like the url-pattern should really be /sales/* (without the quotes). - Chuck I want to match the pattern /sales but it instead adds an extra slash and tries to list directory /sales/. Is there any way to change the order in which it resolves the url, i.e. check for servlet-mapping first, then check for directory? -- View this message in context: http://www.nabble.com/server-mapping-behaviour-when-directory-structure-mirrors-mappings-tp14250184p14273740.html Sent from the Tomcat - User mailing list archive at Nabble.com. - 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: AW: Tomcat 5.5.25 DBCP SQLException: Already closed.
Hmmm... take a look at the release notes for dbcp and see if any of the fixes listed might impact your environment. --David Eickvonder Bjoern wrote: Meanwhile I found out that the SQLException: Already closed hides another SQLException. Some debugging into JPOX (which opens the connection) showed that in my scenario DBCP 1.2.2 returns an already closed conenction while DBCP 1.2.1 returns a valid connection. I've already asked the DBCP folks... Bjoern Eickvonder -Ursprüngliche Nachricht- Von: David Smith [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 30. November 2007 14:13 An: Tomcat Users List Betreff: Re: Tomcat 5.5.25 DHCP SQLException: Already closed. I'm guessing somewhere in your code, you're calling close() on a connection and that's bringing up this exception. It would appear org.apache.commons.dbcp.PoolableConnection is going against the Sun javadocs for at least java 5 which states that calling close() on an already closed connection is a no-op. Doesn't look like an exception should be thrown here. Probably your best bet is to ask the DBCP folks since tomcat uses there code directly with only a refactoring of the package name. --David Eickvonder Bjoern wrote: Hi, I just discovered a minor difference in the DHCP implementation used in Tomcat 5.5.25 vs. 5.5.23 and I'd like to know if it is a bug or a feature. I use conncetion pooling with minIdle0 (but no validationQuery), so a few connection will remain open all day long. If the database now closes the connection itself (either due to timeout or server restart), this was no problem in Tomcat 5.5.23. The DHCP implementation kicked out the already closed connection out of the pool and established a new one that is returned. Now in Tomcat 5.5.25 the connection seems to be kicked out as well in the end but an exception is propageted to the caller. Caused by: java.sql.SQLException: Already closed. at org.apache.tomcat.dbcp.dbcp.PoolableConnection.close(Poolable Connection. java:84) at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnec tionWrapper .close(PoolingDataSource.java:181) at org.jpox.store.rdbms.adapter.DatabaseAdapter.getConnection(Da tabaseAdapt er.java:928) at org.jpox.store.rdbms.RDBMSNonmanagedTransaction.begin(RDBMSNo nmanagedTra nsaction.java:324) ... 57 more Is this a bug? Bjoern Eickvonder Kennen Sie schon die inside Schulungsma?nahme zur VVG-Reform? Erfahren Sie mehr dazu unter www.vvg-konzept.de. Besuchen Sie uns an unserem Stand C 8 auf der Learntec in Karlsruhe vom 29.-31.01.08. Diese Mitteilung ist vertraulich und ausschlie?lich an den entsprechenden Empfanger gerichtet. Wenn Sie diese Mitteilung versehentlich erhalten haben, durfen Sie diese nicht kopieren, weitergeben oder in sonstiger Weise verbreiten. Bitte informieren Sie in einem solchen Fall den Absender und loschen Sie die Mitteilung sowie alle zugehorigen Anhange. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Kennen Sie schon die inside Schulungsmaßnahme zur VVG-Reform? Erfahren Sie mehr dazu unter www.vvg-konzept.de. Besuchen Sie uns an unserem Stand C 8 auf der Learntec in Karlsruhe vom 29.-31.01.08. Diese Mitteilung ist vertraulich und ausschließlich an den entsprechenden Empfänger gerichtet. Wenn Sie diese Mitteilung versehentlich erhalten haben, dürfen Sie diese nicht kopieren, weitergeben oder in sonstiger Weise verbreiten. Bitte informieren Sie in einem solchen Fall den Absender und löschen Sie die Mitteilung sowie alle zugehörigen Anhänge. - 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: JK - welcome file displays text when mapped to servlet
Rainer Jung-3 wrote: Which version of JK are you using? Assuming you are using 1.2.25, could you please provide - information about your platform, versions and configuration - the JK log using log level debug, and containing the full startup of apache and one request/response, where the problem appears? The problem sounds like something we had with servlets doing a flush before the headers were sent back. This has been fixed in JK waiting to get released with 1.2.26 and in Tomcat directly after 6.0.14 (also not released yet). The fix on one of the two sides should suffice. You casn grab a dev snapshot of JK 1.2.26 sources from http://people.apache.org/~rjung/mod_jk-dev/ Regards, Rainer I am using: - fedora 4 - httpd 2.0.53-3.4 - JK 1.2.15 JK has not been upgraded as it is the same version I was using with 4.1.31. I will try building those sources. -- View this message in context: http://www.nabble.com/JK---welcome-file-displays-text-when-mapped-to-servlet-tp14250500p14274456.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DCOM problem in Tomcat 6 on Windows
Hi! I'm having a problem with Tomcat 6.0.13, running on JDK 1.6u1, under both Windows XP, SP2, and Windows Vista Business (up-to-date). I have a web application that loads a DLL (located in the bin directory of Tomcat) and then calls a native method in this DLL. This method tries to create a COM interface that communicates via DCOM with a remote server. The call to CoCreateInstanceEx in the DLL is returning an error code of 0x800706BA, which translates to the message The RPC server is unavailable., so the DCOM setup fails. The DLL loading itself works fine (the application also loads a different DLL and uses it successfully). Now the same DLL (though in a physically different copy) is used in a plain Java program (run straight from the command line). And in this Java program, running on the very same machines, the DCOM communication works just fine. This leads me to believe it is not a firewall issue (although I even disabled the firewall altogether to no effect). I use Tomcat with run-of-the-mill settings, especially _not_ with Java Security. I googled for this DCOM problem, looked through the Tomcat docs, this mailing list, and searched the Tomcat bug database, but didn't find a solution. Does anybody why DCOM doesn't work for me in Tomcat? Regards, Karsten Silz - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
post new service request
Hello, How can I post new service request for TomCat version 5.5 ? Thanks: Robert
Re: post new service request
What do you mean by service request? Tomcat serves requestx on the port it is listening to (most probably 8080) using http protocol, see server.xml for your configuration specificities. You can add web services by either coding them yourself, buying them from companies, or using open source ones you can gather on the web... Please be more precise in your question and develop a bit more :) En l'instant précis du 11/12/07 15:46, Kovacs, Robert s'exprimait en ces termes: Hello, How can I post new service request for TomCat version 5.5 ? Thanks: Robert -- http://www.devlog.be (a belgian developer's logs) - 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: post new service request
Hello, I would like to initiate a new feature request for TomCat connectors, but I've founded only possibilities reporting bugs. Thanks: Robert -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 11, 2007 4:13 PM To: Tomcat Users List Subject: Re: post new service request What do you mean by service request? Tomcat serves requestx on the port it is listening to (most probably 8080) using http protocol, see server.xml for your configuration specificities. You can add web services by either coding them yourself, buying them from companies, or using open source ones you can gather on the web... Please be more precise in your question and develop a bit more :) En l'instant précis du 11/12/07 15:46, Kovacs, Robert s'exprimait en ces termes: Hello, How can I post new service request for TomCat version 5.5 ? Thanks: Robert -- http://www.devlog.be (a belgian developer's logs) - 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: post new service request
Kovacs, Robert wrote: Hello, I would like to initiate a new feature request for TomCat connectors, but I've founded only possibilities reporting bugs. enhancement is an option in bugzilla. p Thanks: Robert -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 11, 2007 4:13 PM To: Tomcat Users List Subject: Re: post new service request What do you mean by service request? Tomcat serves requestx on the port it is listening to (most probably 8080) using http protocol, see server.xml for your configuration specificities. You can add web services by either coding them yourself, buying them from companies, or using open source ones you can gather on the web... Please be more precise in your question and develop a bit more :) En l'instant précis du 11/12/07 15:46, Kovacs, Robert s'exprimait en ces termes: Hello, How can I post new service request for TomCat version 5.5 ? Thanks: Robert -- http://www.devlog.be (a belgian developer's logs) - 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: post new service request
Thank you, I'll summarize my feature request and communicate it to this list. Thanks again: Robert -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 11, 2007 4:30 PM To: Tomcat Users List Subject: Re: post new service request The first thing would be to discuss about it in this mailing. Note that enhancements will probably make it only in tomcat 6, since it's the latest release. You might also provide an implementation of your connector so people can test it. You will then see how well community like it and then, in bugzilla open a bug report with severity Enhancement. Regards David Delbecq En l'instant précis du 11/12/07 16:24, Kovacs, Robert s'exprimait en ces termes: Hello, I would like to initiate a new feature request for TomCat connectors, but I've founded only possibilities reporting bugs. Thanks: Robert -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 11, 2007 4:13 PM To: Tomcat Users List Subject: Re: post new service request What do you mean by service request? Tomcat serves requestx on the port it is listening to (most probably 8080) using http protocol, see server.xml for your configuration specificities. You can add web services by either coding them yourself, buying them from companies, or using open source ones you can gather on the web... Please be more precise in your question and develop a bit more :) En l'instant précis du 11/12/07 15:46, Kovacs, Robert s'exprimait en ces termes: Hello, How can I post new service request for TomCat version 5.5 ? Thanks: Robert -- http://www.devlog.be (a belgian developer's logs) - 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.devlog.be (a belgian developer's logs) - 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]
JkMount changing webapp context
I'm not sure whether this is the best mailing list for the question, feel free to blame me if it isn't. I have a simple configuration with apache 2.2.6, mod_jk 1.2.25 and tomcat 6.0.14. In tomcat I have a web application running, say /myapp, that I want to publish in apache as the root application of a dedicated virtualhost. In other words, when the users ask for http://www.myapphost.tld/, they should see the content of http://localhost:8009/myapp/ Is it possible to achieve this result using only connector's configuration, or should I work on apache's side, maybe doing some trick with mod_rewrite? Is it unusual the requirement of mapping each web application as the root of a virtualhost? Thanks, bye - 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: JkMount changing webapp context
Carlo Montanari wrote: I'm not sure whether this is the best mailing list for the question, feel free to blame me if it isn't. I have a simple configuration with apache 2.2.6, mod_jk 1.2.25 and tomcat 6.0.14. In tomcat I have a web application running, say /myapp, that I want to publish in apache as the root application of a dedicated virtualhost. In other words, when the users ask for http://www.myapphost.tld/, they should see the content of http://localhost:8009/myapp/ Is it possible to achieve this result using only connector's configuration, or should I work on apache's side, maybe doing some trick with mod_rewrite? No need. Just name the webapp ROOT, which is a special name, and deploy it in the appropriate Tomcat virtual host. There's plenty of info in the configuration docs. http://tomcat.apache.org/ Is it unusual the requirement of mapping each web application as the root of a virtualhost? Not so much no. p Thanks, bye - 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: JkMount changing webapp context
From: Carlo Montanari [mailto:[EMAIL PROTECTED] Subject: JkMount changing webapp context In other words, when the users ask for http://www.myapphost.tld/, they should see the content of http://localhost:8009/myapp/ For a Tomcat-only solution, define as many Host elements in server.xml as you need, each with a different value for the appBase attribute. Deploy each Host's default webapp as ROOT under the corresponding appBase location. Look at: http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html for more details. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Apache cross-site scripting attacks vulnerability solution
Yulius wrote: Hi all, Currently we are having a system that is using Apache Tomcat 4.1.3 Our customer has been asking us to implements some sort of security for 413 error page by adding the 'ErrorDocument 413' statement to the Apache configuration file to disable the default 413 error page as an workaround. However since we use Tomcat, will this issue applicable to our system? If yes, how should i implement the solution onto our system? If you are using 4.1.3 you have a whole bunch of bigger security issues to worry about. See http://tomcat.apache.org/security-4.html for details. Mark - 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 5.5.25 and jvm version support
Hi All, What is the latest version of the Sun jvm that is supported by Tomcat 5.5.25? Thanks, -Tony Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs - 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 5.5.25 and jvm version support
From: Tony Anecito [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5.25 and jvm version support What is the latest version of the Sun jvm that is supported by Tomcat 5.5.25? 5.5.25 seems to run fine on the latest JRE/JDK 6 Update 3. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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 5.5.25 and jvm version support
Thanks I appreciate the feedback. Regards, -Tony --- Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Tony Anecito [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5.25 and jvm version support What is the latest version of the Sun jvm that is supported by Tomcat 5.5.25? 5.5.25 seems to run fine on the latest JRE/JDK 6 Update 3. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
6.0.14 Logging
It seems that one of the one of the dependencies for building a new tomcat-juli.jar file has been superceded. When I followed the directions for enabling logging in 6.0.14 (http://tomcat.apache.org/tomcat-6.0-doc/logging.html), I found that I needed to do a bit of editing on the build.properties.defaults file. As of 12/10/07, I changed the jdt.jar and jdt.loc definitions in the build file to use a version of the Eclipse JDT available at the same sunsite: jdt.jar=${jdt.lib}/org.eclipse.jdt.core_3.3.1.v_780_R33x.jar jdt.loc=http://sunsite.informatik.rwth-aachen.de/eclipse/downloads/drops/R-3 .3.1.1-200710231652/eclipse-JDT-3.3.1.1.zip Once this change was made, the ant download and ant commands worked fine in an OSX 10.4 environment. The actual ant commands I used were: ant download ant -buildfile extras.xml The BUILDING.txt file in the downloaded Tomcat source bundle is also helpful. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ques abt DDL
Hi Gurus, I know this is a Tomcat mailing list..I have a basic question about DDL and am hoping someone would give me an answer. I have been given a schema of a DB which will eventually be deployed on Tomcat Server.Now I need to extract the DDL for this.I am very new to Oracle.This schema has been developed by a different set of programmers .Could you please tell me what tool I can use to generate the DDL for this? Thanks so much, Min - 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: ques abt DDL
Minky, Though Iam not a SQL guru, I use Toad for all my Oracle needs. You can try that -Original Message- From: minky arora [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 11, 2007 5:03 PM To: users@tomcat.apache.org Subject: ques abt DDL Hi Gurus, I know this is a Tomcat mailing list..I have a basic question about DDL and am hoping someone would give me an answer. I have been given a schema of a DB which will eventually be deployed on Tomcat Server.Now I need to extract the DDL for this.I am very new to Oracle.This schema has been developed by a different set of programmers .Could you please tell me what tool I can use to generate the DDL for this? Thanks so much, Min - 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: ques abt DDL
Ok,,Thanks..I will try that.So do I need any other files with to extract DDL? I mean if I were to give this schema to someone else,can he/she generate DDL just on the basis of the schema? On 12/11/07, Palat, Anil [EMAIL PROTECTED] wrote: Minky, Though Iam not a SQL guru, I use Toad for all my Oracle needs. You can try that -Original Message- From: minky arora [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 11, 2007 5:03 PM To: users@tomcat.apache.org Subject: ques abt DDL Hi Gurus, I know this is a Tomcat mailing list..I have a basic question about DDL and am hoping someone would give me an answer. I have been given a schema of a DB which will eventually be deployed on Tomcat Server.Now I need to extract the DDL for this.I am very new to Oracle.This schema has been developed by a different set of programmers .Could you please tell me what tool I can use to generate the DDL for this? Thanks so much, Min - 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: ques abt DDL
H..this is not the place to discuss this topic. Definitely someone will kick us out from the tomcat list :-) I'll send it to ur gmail id. Is that ok? -Original Message- From: minky arora [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 11, 2007 5:19 PM To: Tomcat Users List Subject: Re: ques abt DDL Ok,,Thanks..I will try that.So do I need any other files with to extract DDL? I mean if I were to give this schema to someone else,can he/she generate DDL just on the basis of the schema? On 12/11/07, Palat, Anil [EMAIL PROTECTED] wrote: Minky, Though Iam not a SQL guru, I use Toad for all my Oracle needs. You can try that -Original Message- From: minky arora [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 11, 2007 5:03 PM To: users@tomcat.apache.org Subject: ques abt DDL Hi Gurus, I know this is a Tomcat mailing list..I have a basic question about DDL and am hoping someone would give me an answer. I have been given a schema of a DB which will eventually be deployed on Tomcat Server.Now I need to extract the DDL for this.I am very new to Oracle.This schema has been developed by a different set of programmers .Could you please tell me what tool I can use to generate the DDL for this? Thanks so much, Min - 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: ques abt DDL
Min: Tools such as SQL Navigator, Toad, ERWin, S-Designer have the capability to reverse-engineer a database. Venki On Dec 11, 2007 5:03 PM, minky arora [EMAIL PROTECTED] wrote: Hi Gurus, I know this is a Tomcat mailing list..I have a basic question about DDL and am hoping someone would give me an answer. I have been given a schema of a DB which will eventually be deployed on Tomcat Server.Now I need to extract the DDL for this.I am very new to Oracle.This schema has been developed by a different set of programmers .Could you please tell me what tool I can use to generate the DDL for this? Thanks so much, Min - 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: AccessControlException in Coyote Http11Processor (Tomcat 6.0.14). Bug in Coyote ?
Delian Krustev wrote: On Wed, 05 Dec 2007 22:13:00 + Mark Thomas wrote: I am beginning to think that http://svn.apache.org/viewvc?view=revrev=505593 introduced a subtle timing issue. If Tomcat internal code causes Constants to be loaded, everything is fine. If the webapp code causes Constants to be loaded, it fails. snip/ The fix would be to revert to the (System.getSecurityManager() != null) test. I'd be glad to test the patch. Are you happy to mod the code and build a patched version yourself or do you want some help? I can build a binary with the patch for you to test if you wish. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
apxs problem
I am putting together RPMs for apache and tomcat and I want to include the mod_jk connector with the apache RPM but I get an error that apxs cannot be found even though I give the full path to apxs. The commands that I do are (in apache) ./configure --enable-ssl=shared --enable-so --with-ldap --enable-ldap --enable-auth-ldap make make DESTDIR=/var/tmp/httpd-2.0.55-1-root install (in jakarta-tomcat-connectors-1.2.15-src/jk/native) ./configure --with-apxs=/var/tmp/httpd-2.0.55-1-root/usr/local/apache2/bin/apxs The configure fails with: checking for perl... /usr/bin/perl could not find /var/tmp/httpd-2.0.55-1-root/usr/local/apache2/bin/apxs configure: error: You must specify a valid --with-apxs path Note that since I'm building for purposes of packaging, I'm not installing apache in its intended location but in a temporary location. This is obviously the problem since if I do actually install apache, the connector configure script works fine. Thing is, I don't want to have install apache just to build the connector. Is there any way to do this? Thanks, Dan. - 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: ques abt DDL
oracle sql developper and tora both have a data/schema extraction feature minky arora a écrit : Hi Gurus, I know this is a Tomcat mailing list..I have a basic question about DDL and am hoping someone would give me an answer. I have been given a schema of a DB which will eventually be deployed on Tomcat Server.Now I need to extract the DDL for this.I am very new to Oracle.This schema has been developed by a different set of programmers .Could you please tell me what tool I can use to generate the DDL for this? Thanks so much, Min - 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] Help with java Lists
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, You need a collection that is: David kerber wrote: I need to have some kind of list or collection that I can search quickly for a specific entry Hashed and then start stepping through the list item by item from that point. Linked The only implementation that meets those needs is a LinkedHashSet. Unfortunately, there's no way to start iterating from the middle of this type of data structure (nor any Set for that matter). Sets do not have an ordering, but a LinkedHashSet provides an order. On the other hand, it does not provide a way to ask where is this item in the set? For that, you need a List. I would recommend building your own data type that contains both a List (for identifying items by index and performing manual iterating rather than using an Iterator) and a HashMap or something similar for quick lookups. Store your object - list index in the map and the objects themselves in the list. You can even write your own iterator to start in the middle of a list once you've identified where to start. If it seems like I'll never get reasonable speed this way, I could switch to calling all the stores' data from the database at once, making the lists huge, but only needing to load them once. However, this makes speed in searching the lists much more of an issue, and I don't know which way is going to give me the best overall performance for this report generation. Sounds like a lot of premature optimization to me. Why not just read what you need from the database each time? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHXxnF9CaO5/Lv0PARAvfdAKCrytFSU9v+2OKGP+0egybQYy+fkwCdGVm3 cGQmgZUDc82xeGg6gsT3ziM= =wYjJ -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: Help with java Lists
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve, Steve Ochani wrote: Keeping less data in each node should make searching the list fast. Huh? I'm pretty sure that pointer dereferencing performance does not depend on memory size (ignoring memory paging, of course). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHXxo89CaO5/Lv0PARAv2YAKCwHoxKwiY0CEtmGbTUfV1aaeLj7wCgtfrW kPDQBz1eLigh/PW1Q6kqN+U= =HCpc -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: DCOM problem in Tomcat 6 on Windows
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karsten, You didn't mention if you were running Tomcat as a service. I'll assume you are. Karsten Silz wrote: The call to CoCreateInstanceEx in the DLL is returning an error code of 0x800706BA, which translates to the message The RPC server is unavailable., so the DCOM setup fails. [snip] DCOM communication works just fine [from a console program]. Just for grins, have you tried using the identical DLL to run this console program? Usually when folks have problems and weird issues running Tomcat on Windows like this is because they are using Tomcat as a Windows Service and aren't sensitive to the differences in privilege for their console user (usually Karsten or whatever) and the Tomcat service user (Tomcat? System... not sure what the default is). You might want to look into the permissions of the effective user that Tomcat uses when running as a service. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHXx0r9CaO5/Lv0PARAhZYAKC7GXdiS+FaRLc8TmVxbCxfMgjnAwCgomeL IQzJGXMvgVk6gO72K0raj9o= =MVKj -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: apxs problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan, Dan Ciarniello wrote: I am putting together RPMs for apache and tomcat and I want to include the mod_jk connector with the apache RPM :( Don't do that; instead, have a separate RPM that just contains mod_jk and maybe a script to install it on top of an existing Apache httpd RPM install. Forgive my skepticism, but are you building RPMs for a particular distro or will there be yet another set of packaged versions of Tomcat-related software out there that does not work properly. but I get an error that apxs cannot be found even though I give the full path to apxs. Stupid question: is that full path correct? Note that since I'm building for purposes of packaging, I'm not installing apache in its intended location but in a temporary location. This is obviously the problem since if I do actually install apache, the connector configure script works fine. Thing is, I don't want to have install apache just to build the connector. Is there any way to do this? Ideally, the connector should be built on the machine that will be running it. Is it acceptable to create an RPM that actually builds the module instead of installing a previously-built binary? It takes only a few seconds to build mod_jk from source. Since mod_jk requires Apache httpd to be installed, installing such an RPM would require that apxs be available in a known location, right? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHXyNY9CaO5/Lv0PARAkpzAKCjRDNPne/1JfK6GfifsoWqL96OdACgvZOu QTqZBN8KNM+BDyJWcCAFdMo= =qpQ1 -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: apxs problem
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan, Dan Ciarniello wrote: I am putting together RPMs for apache and tomcat and I want to include the mod_jk connector with the apache RPM :( Don't do that; instead, have a separate RPM that just contains mod_jk and maybe a script to install it on top of an existing Apache httpd RPM install. Forgive my skepticism, but are you building RPMs for a particular distro or will there be yet another set of packaged versions of Tomcat-related software out there that does not work properly. No, I'm not building for a particular distribution. I'm building for a specific configuration based on the way that we run things on my company's servers. I have considered a separate RPM for the connector but it seemed a bit silly for a single file especially when all our servers run both Apache and Tomcat and the connector will be required on all of them. but I get an error that apxs cannot be found even though I give the full path to apxs. Stupid question: is that full path correct? Absolutely. bash command line completion is a wonderful thing :-) Note that since I'm building for purposes of packaging, I'm not installing apache in its intended location but in a temporary location. This is obviously the problem since if I do actually install apache, the connector configure script works fine. Thing is, I don't want to have install apache just to build the connector. Is there any way to do this? Ideally, the connector should be built on the machine that will be running it. Is it acceptable to create an RPM that actually builds the module instead of installing a previously-built binary? It takes only a few seconds to build mod_jk from source. Since mod_jk requires Apache httpd to be installed, installing such an RPM would require that apxs be available in a known location, right? I hadn't considered that. You're right that mod_jk doesn't take long to build so building as part of the installation should not be a problem. Thanks, Dan. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NotSerializableException - CoyotePrincipal
Hi, I´m getting a NotSerializableException for the object CoyotePrincipal. I´m pretty sure my application is not putting this object directly in the session, since I would not even know to get a reference to it. The complete stack trace is shown bellow, and also the server.xml configured for one server in my cluster (the other server has the same configuration). Any help would be greatly appreciated. Murilo 11-12-07 20:31:20:326 - {ERROR} session.DeltaManager Thread [ajp-10.168.87.104-8009-2]; Unable to serialize delta request for sessionid [7E92DB222172B3D212D6A76D7BDBD7C9.jvm1] java.io.NotSerializableException: org.apache.catalina.connector.CoyotePrincipal at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.LinkedList.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.access$100(Unknown Source) at java.io.ObjectOutputStream$PutFieldImpl.writeFields(Unknown Source) at java.io.ObjectOutputStream.writeFields(Unknown Source) at javax.security.auth.Subject$SecureSet.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.util.Collections$SynchronizedCollection.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at javax.security.auth.Subject.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeExternal(DeltaRequest.java:352) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaRequest.java:269) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(DeltaManager.java:743) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(DeltaManager.java:1320) at org.apache.catalina.cluster.tcp.ReplicationValve.send(ReplicationValve.java:549) at org.apache.catalina.cluster.tcp.ReplicationValve.sendMessage(ReplicationValve.java:536) at org.apache.catalina.cluster.tcp.ReplicationValve.sendSessionReplicationMessage(ReplicationValve.java:518) at org.apache.catalina.cluster.tcp.ReplicationValve.sendReplicationMessage(ReplicationValve.java:428) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:362) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:544) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:159) at
Re: [OT] Help with java Lists
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, You need a collection that is: David kerber wrote: I need to have some kind of list or collection that I can search quickly for a specific entry Hashed and then start stepping through the list item by item from that point. Linked The only implementation that meets those needs is a LinkedHashSet. Unfortunately, there's no way to start iterating from the middle of this type of data structure (nor any Set for that matter). Sets do not have an ordering, but a LinkedHashSet provides an order. On the other hand, it does not provide a way to ask where is this item in the set? For that, you need a List. I would recommend building your own data type that contains both a List (for identifying items by index and performing manual iterating rather than using an Iterator) and a HashMap or something similar for quick lookups. Store your object - list index in the map and the objects themselves in the list. You can even write your own iterator to start in the middle of a list once you've identified where to start. If it seems like I'll never get reasonable speed this way, I could switch to calling all the stores' data from the database at once, making the lists huge, but only needing to load them once. However, this makes speed in searching the lists much more of an issue, and I don't know which way is going to give me the best overall performance for this report generation. Sounds like a lot of premature optimization to me. Why not just read what you need from the database each time? I'm already on my 3rd attempt at optimization for this section. The first round was having the db do _all_ the work, submitting a complex query (a view, actually) and returning a resultset with all the data I need. The query took forever, and the java code to produce the report was really fast. 2nd attempt was just the opposite: the db calls were quick but the java code slowed everything down because looped through the list of sites, and for each site reads each its data from the db's base tables (5 of them), putting each table's data into a resultset and loads the resultset data into an iterable collection (ArrayList). I haven't fully isolated the bottleneck of this version, but I think the slowness was due to searching the lists for the appropriate data. The 3rd one I'm trying now keeps the db queries simple, but I'm trying to be more intelligent in my handling of the lists, by using TreeMaps and keeping a set of pointers so I don't need to search the lists for each piece of data, but can gather all the report data with a single scan through each TreeMap. One issue I ran into earlier today with plain HashMaps was that I couldn't figure out how to search for a specific piece of data, which requires matching on a site number, a date and a shift, and for some data another date. However, as I was typing this I realized that I just need to generate a hash key from those fields when loading up the HashMap, and then generate a search key using the same algorithm when I need to find a given item. Tomorrow I'll revisit this to see if it helps me out, but I think I have a workable solution right now, though the code is rather more complex than I would like to keep my navigation of all those TreeMaps in sync. Thanks for the comments! 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: Turning off jsessionid
Since you were curious why someone would want to disable URL rewriting, I can tell you why we had to do this. For our client, it was taken for a given that users would be frequently copying/pasting URLs in emails and IMs to other users. It's not a necessary part of our application, but we all know the vast majority of computer users are basically clueless when it comes to security and simply won't consider the security implications of their actions. If you enable URL rewriting, it makes it possible for someone visiting a URL sent to them in an email/IM to be logged in as the user who was originally passed the URL. Additionally, the users of the application frequently take screenshots when submitting bugs and those screenshots would, in many cases, also include the session id. In our application, where real money is at stake, this kind of risk is unacceptable. I'd go as far as to say that URL rewriting is fundamentally insecure for this reason and should be turned off whenever it's possible that URLs would be exposed in either of these two manners (provided your application requires a decent level of security). Christopher Schultz-2 wrote: ... I'm not sure why you'd ever want to do this, though. I'd love to hear your reason for doing it, though. ... -- View this message in context: http://www.nabble.com/Turning-off-jsessionid-tp13430750p14289776.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]