Tomcat, Security, Anonymous Authentication
Hi, I have a question about the security issue that I have to cover of my server. I have web service which runs on Tomcat 5.5 with SSL ... I have installed all the SSL system on the server and it works fine, however as a little advance subject, I have to recover some security issues,... the first one is Disabling anonymous authentication ... I actually dont know the exact meaning of it an how to fix it... as far as foundfrom the web, I need to add some lines like SSLProtocol -ALL +SSLv3 +TLSv1 SSLCipherSuite ALL:!aNULL:!ADH:!ADH:!eNULL:!LOW:!EXP:RCA4+RSA:+HIGH:+MEDIUM to SOMEWHERE that I dont know and how... according to web site that I have inspired :) , those lines should be added to Apache/mos_ssl, httpd.conf, or ssl.conf ... but I dont have these files in tomcat directory... what should I do ? thank you... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Desperate for help with isapi_redirect.dll
Hi David, First, it seems to not write all of the log entries. The final line is: [Sun Feb 12 21:14:08 2006] [warn] jk_uri_worker_map.c (42 This, I think, is normal. The logentries appear to be cached, and may therefore seem incomplete at any given time. Just wait a couple of minutes and you will find the line has been completed. [Sun Feb 12 13:34:23 2006] [error] jk_isapi_plugin.c (1049): could not get a worker for name ajp13 I've been having this error myself too. It seems that you MUST have a worker listed in worker.list called ajp13. I used to have one loadbalancing worker called wlb, which balanced between two workers ajp13 and backup. Still I kept getting this error. Finally I renamed the ajp13 worker to ajp13w and the loadbalancing worker from wlb to ajp13 and the error dissappeared. Looks like a bug to me. I've been Googling a lot for this error, and many forums contain posts reporting the same error, yet none of them have *any* replies. Regards, Paul Hamer management development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Monday, 13 February, 2006 05:55 To: 'Tomcat Users List' Subject: RE: Desperate for help with isapi_redirect.dll Hello; Ok, I upped the cachesize and now have a new problem First, it seems to not write all of the log entries. The final line is: [Sun Feb 12 21:14:08 2006] [warn] jk_uri_worker_map.c (42 Second, I am now getting this: [Sun Feb 12 13:34:23 2006] [error] jk_isapi_plugin.c (1049): could not get a worker for name ajp13 [Sun Feb 12 14:31:39 2006] [error] jk_isapi_plugin.c (1049): could not get a worker for name ajp13 [Sun Feb 12 15:29:22 2006] [error] jk_isapi_plugin.c (1049): could not get a worker for name ajp13 [Sun Feb 12 21:14:01 2006] [warn] jk_uri_worker_map.c (429): Uri http://www.page2stage.com is invalid. Uri must start with / [Sun Feb 12 21:14:02 2006] [warn] jk_uri_worker_map.c (429): Uri http://www.page2stage.com/reviews/index.htm is invalid. Uri must start with / ... more page2stage.com pages listed ... Which is not in my properties file at all. I just tried http://www.page2stage.com/reviews/index.htm and other pages and it comes up ok. But it looks like it is having a problem with this. This is with Mark's latest version - not the official release. Uriworkermap.properties is: /store/*=ajp13w /store=ajp13w /track/*=ajp13w /forums/*=ajp13w /forums=ajp13w /WindwardReportsServlet/*=ajp13w /WindwardReportsJsp/*=ajp13w /*.jsp=ajp13w /*.faces=ajp13w Any ideas? Thanks - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Sunday, February 12, 2006 11:43 AM To: Tomcat Users List Subject: Re: Desperate for help with isapi_redirect.dll David Thielen wrote: 3. I consistently get the following in the isapi_redirect.log file (removed duplicates): [Fri Jan 27 12:40:39 2006] [error] HttpExtensionProc::jk_isapi_plugin.c (1029): could not get a worker for name ajp13 [Fri Jan 27 13:53:06 2006] [info] ajp_send_request::jk_ajp_common.c (1178): Socket 616 is not connected any more (errno=-1) [Fri Jan 27 13:53:06 2006] [info] ajp_send_request::jk_ajp_common.c (1225): All endpoints are disconnected or dead [Fri Jan 27 13:53:06 2006] [info] ajp_service::jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Fri Jan 27 13:53:07 2006] [info] jk_open_socket::jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=61 [Fri Jan 27 13:53:07 2006] [info] ajp_connect_to_endpoint::jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=61) [Fri Jan 27 13:53:07 2006] [info] ajp_send_request::jk_ajp_common.c (1248): Error connecting to the Tomcat process. [Fri Jan 27 13:53:08 2006] [error] ajp_service::jk_ajp_common.c (1758): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=ajp13w failed [Fri Jan 27 13:53:08 2006] [error] HttpExtensionProc::jk_isapi_plugin.c (1022): service() failed Hmm. 61 is connection refused according to http://msdn.microsoft.com/library/default.asp?url=/library/en- us/winsock/win sock/windows_sockets_error_codes_2.asp Have a look a Mladen's reply to a similar problem: http://marc.theaimsgroup.com/?l=tomcat-userm=102553922207529w=2 It essentially says, set worker.ajp13.cachesize=100 Looking at the docs (http://tomcat.apache.org/connectors-doc/config/workers.html) the default cachesize value for IIS is ten. I am pretty sure this is because non-server versions of windows limit the number of incoming connections to 10. On a server edition of Windows there is no limit so this will need to be higher. Mark
Re: Desperate for help with isapi_redirect.dll
David Thielen wrote: Hello; Ok, I upped the cachesize and now have a new problem worker for name ajp13 [Sun Feb 12 15:29:22 2006] [error] jk_isapi_plugin.c (1049): could not get a worker for name ajp13 Post your workers.properties file. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache 2.2 and mod_proxy_ajp performance
On Mon, 2006-02-13 at 00:37 -0800, Ian Shafer wrote: What do I need to look out for in getting this to perform better? I tried the max=XXX configuration at the end of my ProxyPass line, but that didn't help. Any thoughts? What about your Apache keepalivetimeout? Shorter timeout should free up the resouces faster, I think? Ed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jdbc context
hi, I have deploy a workflow webapp in Tomcat4.1.31. First time, i add the following code in server.xml: Context path=/myworkflow docBase=myworkflow reloadable=true Resource name=jdbc/DefaultDS type=javax.sql.DataSource/ ResourceParams name=jdbc/DefaultDS parameter namemaxActive/name !-- Maximum number of DB connections in pool.Set to 0 for no limit. -- value100/value /parameter parameter namemaxIdle/name !-- Maximum number of idle DB connections to retain in pool.Set to 0 for no limit. -- value30/value /parameter parameter namemaxWait/name !-- Maximum time to wait for a DB connection to become available in ms.An exception is thrown if this timeout is exceeded.Set to -1 to wait indefinitely. -- value15000/value /parameter parameter nameremoveAbandoned/name !-- Abandoned DB connections are removed and recycled -- valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name !-- Use the removeAbandonedTimeout parameter to set the number of seconds a DB connection has been idle before it is considered abandoned. -- value60/value /parameter parameter namelogAbandoned/name !-- Log a stack trace of the code which abandoned -- valuefalse/value /parameter parameter namefactory/name !--DBCP Basic Datasource Factory -- valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameternameusername/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value/parameter parameternameurl/name valuejdbc:microsoft:sqlserver://localhost:1433;databaseName=myworkflow/value/parameter /ResourceParams /Context It works well. But now, we need to migrate myworkflow into another tomcat4.1.31, in which the server.xml can't be modified. So what shall i do to deploy the jdbc context? Thanks for your help! Best Regards. jacky
RE: Tomcat5.15 basic setup question
You might consider the necessity of using port 8080 as well - client-side firewalls might block it, it is non-standard, and probably hard-coded everywhere along side the IP address. You can run Tomcat on port 80 (see the archives of this list--it has been discussed recently), or front with httpd (apache) and mod_proxy / mod_jk if (not strictly necessary, although it is still widely done.) Tim -Original Message- From: Bob Hartung [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 12:36 AM To: Tomcat Users List Subject: Re: Tomcat5.15 basic setup question Doug, Think I have it. I'll test it out tomorrow. Bob Parsons Technical Services wrote: Bob, Not a very good application if they are doing that. Hard coding things such as IP addresses is just asking for headaches. I take it that you have a link or a button with an action that is sending you to the desired page. Remove the http://mirc.10.x.x.x.com:8080/mirc/; and simply leave the Login in place. If you need to move up a step on the content you can use ../ in front of the desire destination or add the folder to move down a level. Now to unravel the confusion. If at the root of the app: href=test.jsp will link you to the jsp page test in the root of the app. href=night/select.jsp will link you to the select jsp in the folder called night that is in the root. Once in the night folder and you need to link to something in the root then use: href=../test.jsp The same works for actions on forms. Doug - Original Message - From: Bob Hartung [EMAIL PROTECTED] To: Tomcat Users users@tomcat.apache.org Sent: Sunday, February 12, 2006 11:24 PM Subject: Tomcat5.15 basic setup question Hi all, I am new to java and Tomcat. I have the following situation: FC4 server behind PIX box. Internal address 10.x.x.x. Outside address resolves to mirc.[website].[suffix] I have deployed a java application called MIRC and it works fine at the server console. From the same network, I can access all functions with http://10.x.x.x:80. From the outside world I can access the main page with http://mirc.[website].[suffix]:8080 The problem is when I select a function on the entry page that sends me to another jsp in the application. Because the application suggested that i hard code the local address, 10.x.x.x, when I do try to access another page the url is returned as http://mirc.10.x.x.x.com:8080/mirc/Login, for instance. mirc.10.x.x.x.com:8080 cannot resolve. I though of changing the address in server.xml to localhost:8080 but that too will not resolve from the outside world. My question is were if the mass of documentation for Tomcat should I start looking for the answer of how to configure this so it will work both from within my office and from the outside world? Thanks for pointers! Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.Object cannot be resolved
Hi, Do you really need sudo here? Perhaps that's creating some issues. doesn't seem so. I get exactly the same error in my home directory. What happens if you try to compile a simple Hello World program, without anything specified for -cp? (Try it with and without sudo to see if that makes a difference.) No, simple javac Hello.java doesn't work. Only if I set $CLASSPATH to /usr/lib/jdk/jre/lib/rt.jar or with the -cp-option. What environment variables do you have set? Do you mean $CLASSPATH? For the Hello World program no one. Greetings, Sebastian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Suggestion for documentation update about jvmRoute
While you're at it, you could add and must not contain the . character (and any other illegal ones... I had a bear of a time figuring that out a few years ago when I chose the FQDN of the machine for the jvmRoute!) Tim -Original Message- From: Fred K [mailto:[EMAIL PROTECTED] Sent: Sunday, February 12, 2006 11:21 PM To: tomcat users Subject: Suggestion for documentation update about jvmRoute Hi: (I am not sure if this is the right forum for this message, please let me know otherwise.) In the documentation: http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html jvmRoute Identifier which must be used in load balancing scenarios to enable session affinity. The identifier, which must be unique across all Tomcat 5 servers which participate in the cluster, will be appended to the generated session identifier, therefore allowing the front end proxy to always forward a particular session to the same Tomcat 5 instance. I would suggest an addition alike: For session affinity when using the JK load balancer, this identifier must match the corresponding worker's name defined in the JK workers.properties configuration. Regards - Fred - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No of concurrent requests per session
Hello: I am using Tomcat 5.0.30 with HTTP 1.1 Connector. If I try to make a third request while two other request's (which i have already made) responses have not yet arrived, then Tomcat is not serving the request until one of the pending response arrives. This limits me to only two pending requests (irrespective of the webapp) at a time. My front app is like a dashboard which integarates multiple web apps of which some are reporting apps which requires 4 to 7 minutes to process a request and some are data processing apps which requires only seconds to process the request. Assume the user clicks on two reporting links which open up as new windows from the main app window. Now when he clicks on another link irrespctive of the webapp, nothing happens until one of the reporting request's response is arrived. This problem appears only if the requests belong to the same session. Any pointers / advices will be greatly appreciated. thanks and regards, -- Kannan. -- Amritha Institute of Medical Sciences, Cochin, India Sent using PostMaster by QuantumLink Communications One Internet account, unlimited personal e-mail addresses Get your free copy of PostMaster at http://www.mailserve.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Desperate for help with isapi_redirect.dll
worker.properties.minimal: worker.list=ajp13w worker.ajp13.cachesize=100 worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 uriworkermap.properties: /store/*=ajp13w /store=ajp13w /track/*=ajp13w /forums/*=ajp13w /forums=ajp13w /WindwardReportsServlet/*=ajp13w /WindwardReportsJsp/*=ajp13w /*.jsp=ajp13w /*.faces=ajp13w Thanks - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 2:43 AM To: Tomcat Users List Subject: Re: Desperate for help with isapi_redirect.dll David Thielen wrote: Hello; Ok, I upped the cachesize and now have a new problem worker for name ajp13 [Sun Feb 12 15:29:22 2006] [error] jk_isapi_plugin.c (1049): could not get a worker for name ajp13 Post your workers.properties file. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with Clusters or apache connector not sure which one
hello, I am running apache-tomcat-5.5.15 on three boxes 2 rh9 and one fedora 4. and they are clustered together I am seeing problems where apache can not longer talk to tomcat. if anyone can point me on how to debug this please help, i am not sure what else i should include as far a conf setups, so please let me know what other details i need to supply so you guys can help Thanks in the log files at the time of the failure i see the following catalina.out ( i will see a bunch of these) Feb 12, 2006 8:25:23 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:125) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:69) = then in my mod_jk.log i will see = [Sun Feb 12 20:25:10 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:13 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:39 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down or network problems. [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Sun Feb 12 20:30:02 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Desperate for help with isapi_redirect.dll
Hiya David, You have a typo (forgot a w) in the cachesize line of your worker.properties... worker.ajp13w.cachesize=100 Should fix most of y'r problems :) Greetz, Paul Hamer management development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Monday, 13 February, 2006 15:16 To: 'Tomcat Users List' Subject: RE: Desperate for help with isapi_redirect.dll worker.properties.minimal: worker.list=ajp13w worker.ajp13.cachesize=100 worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 uriworkermap.properties: /store/*=ajp13w /store=ajp13w /track/*=ajp13w /forums/*=ajp13w /forums=ajp13w /WindwardReportsServlet/*=ajp13w /WindwardReportsJsp/*=ajp13w /*.jsp=ajp13w /*.faces=ajp13w Thanks - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 2:43 AM To: Tomcat Users List Subject: Re: Desperate for help with isapi_redirect.dll David Thielen wrote: Hello; Ok, I upped the cachesize and now have a new problem worker for name ajp13 [Sun Feb 12 15:29:22 2006] [error] jk_isapi_plugin.c (1049): could not get a worker for name ajp13 Post your workers.properties file. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Desperate for help with isapi_redirect.dll
First off, thank you. Second, if there is someone who knows isapi_redir very very well, I would be happy to rewrite the docs for it if I can ask him/her questions so I can get all of it fully documented. Thanks - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: Ian Buzer [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 7:43 AM To: 'Tomcat Users List' Subject: RE: Desperate for help with isapi_redirect.dll :) Should be worker.ajp13w.cachesize=100 -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: 13 February 2006 15:16 To: 'Tomcat Users List' Subject: RE: Desperate for help with isapi_redirect.dll worker.properties.minimal: worker.list=ajp13w worker.ajp13.cachesize=100 worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 uriworkermap.properties: /store/*=ajp13w /store=ajp13w /track/*=ajp13w /forums/*=ajp13w /forums=ajp13w /WindwardReportsServlet/*=ajp13w /WindwardReportsJsp/*=ajp13w /*.jsp=ajp13w /*.faces=ajp13w Thanks - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 2:43 AM To: Tomcat Users List Subject: Re: Desperate for help with isapi_redirect.dll David Thielen wrote: Hello; Ok, I upped the cachesize and now have a new problem worker for name ajp13 [Sun Feb 12 15:29:22 2006] [error] jk_isapi_plugin.c (1049): could not get a worker for name ajp13 Post your workers.properties file. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat, Security, Anonymous Authentication
Anonymous authentication is an additional feature that you need to create in your web application. It doesn't come by default in any app servers. So there is no need to disable it when configuring Tomcat. There is a good article in JavaWorld discussing about anonymous authentication in J2EE. http://www.javaworld.com/javaworld/jw-03-2005/jw-0307-captcha.html ND -Original Message- From: Aydın Toprak [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 4:27 AM To: users@tomcat.apache.org Subject: Tomcat, Security, Anonymous Authentication Hi, I have a question about the security issue that I have to cover of my server. I have web service which runs on Tomcat 5.5 with SSL ... I have installed all the SSL system on the server and it works fine, however as a little advance subject, I have to recover some security issues,... the first one is Disabling anonymous authentication ... I actually dont know the exact meaning of it an how to fix it... as far as foundfrom the web, I need to add some lines like SSLProtocol -ALL +SSLv3 +TLSv1 SSLCipherSuite ALL:!aNULL:!ADH:!ADH:!eNULL:!LOW:!EXP:RCA4+RSA:+HIGH:+MEDIUM to SOMEWHERE that I dont know and how... according to web site that I have inspired :) , those lines should be added to Apache/mos_ssl, httpd.conf, or ssl.conf ... but I dont have these files in tomcat directory... what should I do ? thank you... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems with Clusters or apache connector not sure which one
It looks like a network problem to me. Is there any firewall between the apache and your tomcat server? Or did your IT dept reconfigure the network recently? ND -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 9:27 AM To: Tomcat Users List Subject: problems with Clusters or apache connector not sure which one hello, I am running apache-tomcat-5.5.15 on three boxes 2 rh9 and one fedora 4. and they are clustered together I am seeing problems where apache can not longer talk to tomcat. if anyone can point me on how to debug this please help, i am not sure what else i should include as far a conf setups, so please let me know what other details i need to supply so you guys can help Thanks in the log files at the time of the failure i see the following catalina.out ( i will see a bunch of these) Feb 12, 2006 8:25:23 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpRep licationThread.java:125) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationT hread.java:69) = then in my mod_jk.log i will see = [Sun Feb 12 20:25:10 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:13 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:39 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down or network problems. [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Sun Feb 12 20:30:02 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jdbc context
You should be able to add the context info in your web.xml file. In other words, instead of making the JDBC resource available to all web apps, you make it only to particular applications. If this JDBC connection is only used by the workflow web app, defining it in web.xml is actually preferred. ND -Original Message- From: jacky [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 5:07 AM To: users@tomcat.apache.org Subject: jdbc context hi, I have deploy a workflow webapp in Tomcat4.1.31. First time, i add the following code in server.xml: Context path=/myworkflow docBase=myworkflow reloadable=true Resource name=jdbc/DefaultDS type=javax.sql.DataSource/ ResourceParams name=jdbc/DefaultDS parameter namemaxActive/name !-- Maximum number of DB connections in pool.Set to 0 for no limit. -- value100/value /parameter parameter namemaxIdle/name !-- Maximum number of idle DB connections to retain in pool.Set to 0 for no limit. -- value30/value /parameter parameter namemaxWait/name !-- Maximum time to wait for a DB connection to become available in ms.An exception is thrown if this timeout is exceeded.Set to -1 to wait indefinitely. -- value15000/value /parameter parameter nameremoveAbandoned/name !-- Abandoned DB connections are removed and recycled -- valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name !-- Use the removeAbandonedTimeout parameter to set the number of seconds a DB connection has been idle before it is considered abandoned. -- value60/value /parameter parameter namelogAbandoned/name !-- Log a stack trace of the code which abandoned -- valuefalse/value /parameter parameter namefactory/name !--DBCP Basic Datasource Factory -- valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameternameusername/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value/parameter parameternameurl/name valuejdbc:microsoft:sqlserver://localhost:1433;databaseName=myworkflow /value/parameter /ResourceParams /Context It works well. But now, we need to migrate myworkflow into another tomcat4.1.31, in which the server.xml can't be modified. So what shall i do to deploy the jdbc context? Thanks for your help! Best Regards. jacky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with Clusters or apache connector not sure which one
I thought you said tomcat ran on 3 different boxes and it was a cluster ? java.io.IOException: Connection reset by peer This means that the tcp connection was severed somehow, this is typically caused by a firewall dropping idle TCP connections, or someone unplugging a network cable, or someone restarting something somewhere. You may want to configure apache to connect to 127.0.0.1 via the workers.properties file if you haven't already, as this will rarely never be firewalled, won't be subject to any link detection scripts, which may mark the interface as down when the link is severed, etc. etc. That's my two cents -Antony On 13/02/06, Randy Paries [EMAIL PROTECTED] wrote: i am the IT, the admin everything. I am a small business owner and i do everything. the apache server and tomcat are on the same box, and there is no firewall involved Is there something that is cluing you into the network problem? Something i should look for? Thanks Randy On 2/13/06, Duan, Nick [EMAIL PROTECTED] wrote: It looks like a network problem to me. Is there any firewall between the apache and your tomcat server? Or did your IT dept reconfigure the network recently? ND -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 9:27 AM To: Tomcat Users List Subject: problems with Clusters or apache connector not sure which one hello, I am running apache-tomcat-5.5.15 on three boxes 2 rh9 and one fedora 4. and they are clustered together I am seeing problems where apache can not longer talk to tomcat. if anyone can point me on how to debug this please help, i am not sure what else i should include as far a conf setups, so please let me know what other details i need to supply so you guys can help Thanks in the log files at the time of the failure i see the following catalina.out ( i will see a bunch of these) Feb 12, 2006 8:25:23 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpRep licationThread.java:125) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationT hread.java:69) = then in my mod_jk.log i will see = [Sun Feb 12 20:25:10 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:13 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:39 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down or network problems. [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Sun Feb 12 20:30:02 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with Clusters or apache connector not sure which one
Thanks for your help I already have localhost set in my workers.properties file Randy On 2/13/06, Antony Riley [EMAIL PROTECTED] wrote: I thought you said tomcat ran on 3 different boxes and it was a cluster ? java.io.IOException: Connection reset by peer This means that the tcp connection was severed somehow, this is typically caused by a firewall dropping idle TCP connections, or someone unplugging a network cable, or someone restarting something somewhere. You may want to configure apache to connect to 127.0.0.1 via the workers.properties file if you haven't already, as this will rarely never be firewalled, won't be subject to any link detection scripts, which may mark the interface as down when the link is severed, etc. etc. That's my two cents -Antony On 13/02/06, Randy Paries [EMAIL PROTECTED] wrote: i am the IT, the admin everything. I am a small business owner and i do everything. the apache server and tomcat are on the same box, and there is no firewall involved Is there something that is cluing you into the network problem? Something i should look for? Thanks Randy On 2/13/06, Duan, Nick [EMAIL PROTECTED] wrote: It looks like a network problem to me. Is there any firewall between the apache and your tomcat server? Or did your IT dept reconfigure the network recently? ND -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 9:27 AM To: Tomcat Users List Subject: problems with Clusters or apache connector not sure which one hello, I am running apache-tomcat-5.5.15 on three boxes 2 rh9 and one fedora 4. and they are clustered together I am seeing problems where apache can not longer talk to tomcat. if anyone can point me on how to debug this please help, i am not sure what else i should include as far a conf setups, so please let me know what other details i need to supply so you guys can help Thanks in the log files at the time of the failure i see the following catalina.out ( i will see a bunch of these) Feb 12, 2006 8:25:23 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpRep licationThread.java:125) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationT hread.java:69) = then in my mod_jk.log i will see = [Sun Feb 12 20:25:10 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:13 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:39 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down or network problems. [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Sun Feb 12 20:30:02 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No of concurrent requests per session
I'm guessing this is more of a browser issue. If you're using IE, I seem to recall there is a registry entry that lets you set the maximum concurrent requests. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Abhilash Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 6:43 AM To: Tomcat Users List Subject: No of concurrent requests per session Hello: I am using Tomcat 5.0.30 with HTTP 1.1 Connector. If I try to make a third request while two other request's (which i have already made) responses have not yet arrived, then Tomcat is not serving the request until one of the pending response arrives. This limits me to only two pending requests (irrespective of the webapp) at a time. My front app is like a dashboard which integarates multiple web apps of which some are reporting apps which requires 4 to 7 minutes to process a request and some are data processing apps which requires only seconds to process the request. Assume the user clicks on two reporting links which open up as new windows from the main app window. Now when he clicks on another link irrespctive of the webapp, nothing happens until one of the reporting request's response is arrived. This problem appears only if the requests belong to the same session. Any pointers / advices will be greatly appreciated. thanks and regards, -- Kannan. -- Amritha Institute of Medical Sciences, Cochin, India Sent using PostMaster by QuantumLink Communications One Internet account, unlimited personal e-mail addresses Get your free copy of PostMaster at http://www.mailserve.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jdbc context
hi, Do you mean add the following code in the web.xml? resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref But this still need to add the jdbc config in the server.xml,right? Can you give me some suggestions? From: Duan, Nick [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: RE: jdbc context Date: Mon, 13 Feb 2006 10:11:34 -0500 You should be able to add the context info in your web.xml file. In other words, instead of making the JDBC resource available to all web apps, you make it only to particular applications. If this JDBC connection is only used by the workflow web app, defining it in web.xml is actually preferred. ND -Original Message- From: jacky [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 5:07 AM To: users@tomcat.apache.org Subject: jdbc context hi, I have deploy a workflow webapp in Tomcat4.1.31. First time, i add the following code in server.xml: Context path=/myworkflow docBase=myworkflow reloadable=true Resource name=jdbc/DefaultDS type=javax.sql.DataSource/ ResourceParams name=jdbc/DefaultDS parameter namemaxActive/name !-- Maximum number of DB connections in pool.Set to 0 for no limit. -- value100/value /parameter parameter namemaxIdle/name !-- Maximum number of idle DB connections to retain in pool.Set to 0 for no limit. -- value30/value /parameter parameter namemaxWait/name !-- Maximum time to wait for a DB connection to become available in ms.An exception is thrown if this timeout is exceeded.Set to -1 to wait indefinitely. -- value15000/value /parameter parameter nameremoveAbandoned/name !-- Abandoned DB connections are removed and recycled -- valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name !-- Use the removeAbandonedTimeout parameter to set the number of seconds a DB connection has been idle before it is considered abandoned. -- value60/value /parameter parameter namelogAbandoned/name !-- Log a stack trace of the code which abandoned -- valuefalse/value /parameter parameter namefactory/name !--DBCP Basic Datasource Factory -- valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameternameusername/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value/parameter parameternameurl/name valuejdbc:microsoft:sqlserver://localhost:1433;databaseName=myworkflow /value/parameter /ResourceParams /Context It works well. But now, we need to migrate myworkflow into another tomcat4.1.31, in which the server.xml can't be modified. So what shall i do to deploy the jdbc context? Thanks for your help! Best Regards. jacky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with Clusters or apache connector not sure which one
Hi Randy, if Apache cannot talk to Tomcat, then its not because of the clustering. The first error in catalina.out, is just a result of replication keep alive sessions getting closed, I will fix the code that generates that error so that it doesn't log as an error. do you have a firewall or anything of that kind between apache and tomcat? Filip Randy Paries wrote: hello, I am running apache-tomcat-5.5.15 on three boxes 2 rh9 and one fedora 4. and they are clustered together I am seeing problems where apache can not longer talk to tomcat. if anyone can point me on how to debug this please help, i am not sure what else i should include as far a conf setups, so please let me know what other details i need to supply so you guys can help Thanks in the log files at the time of the failure i see the following catalina.out ( i will see a bunch of these) Feb 12, 2006 8:25:23 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:125) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:69) = then in my mod_jk.log i will see = [Sun Feb 12 20:25:10 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:13 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:39 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down or network problems. [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Sun Feb 12 20:30:02 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with Clusters or apache connector not sure which one
Filip The Both the apache and tomcat are on the same server and the workers.properties connects via localhost Thanks On 2/13/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Hi Randy, if Apache cannot talk to Tomcat, then its not because of the clustering. The first error in catalina.out, is just a result of replication keep alive sessions getting closed, I will fix the code that generates that error so that it doesn't log as an error. do you have a firewall or anything of that kind between apache and tomcat? Filip Randy Paries wrote: hello, I am running apache-tomcat-5.5.15 on three boxes 2 rh9 and one fedora 4. and they are clustered together I am seeing problems where apache can not longer talk to tomcat. if anyone can point me on how to debug this please help, i am not sure what else i should include as far a conf setups, so please let me know what other details i need to supply so you guys can help Thanks in the log files at the time of the failure i see the following catalina.out ( i will see a bunch of these) Feb 12, 2006 8:25:23 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:125) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:69) = then in my mod_jk.log i will see = [Sun Feb 12 20:25:10 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:13 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:25:39 2006] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down or network problems. [Sun Feb 12 20:30:00 2006] [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Sun Feb 12 20:30:02 2006] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-104 [ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with Clusters or apache connector not sure which one
When this error happens, are you able to issue the command 1. to see if tomcat is listening, netstat -na |grep 8009 |grep LISTEN 2. if yes, try to connect to the socket telnet localhost 8009 on the box you see the error, this will tell you if the server socket is alright. Fillip Randy Paries wrote: Filip The Both the apache and tomcat are on the same server and the workers.properties connects via localhost Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jdbc context
Hi, maybe helps this, but it's working on Tomcat 5.5.15:-( http://mail-archives.apache.org/mod_mbox/tomcat-users/200602.mbox/[EMAIL PROTECTED] PETR On 2/13/06, chen jacky [EMAIL PROTECTED] wrote: hi, Do you mean add the following code in the web.xml? resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref But this still need to add the jdbc config in the server.xml,right? Can you give me some suggestions? From: Duan, Nick [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: RE: jdbc context Date: Mon, 13 Feb 2006 10:11:34 -0500 You should be able to add the context info in your web.xml file. In other words, instead of making the JDBC resource available to all web apps, you make it only to particular applications. If this JDBC connection is only used by the workflow web app, defining it in web.xml is actually preferred. ND -Original Message- From: jacky [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 5:07 AM To: users@tomcat.apache.org Subject: jdbc context hi, I have deploy a workflow webapp in Tomcat4.1.31. First time, i add the following code in server.xml: Context path=/myworkflow docBase=myworkflow reloadable=true Resource name=jdbc/DefaultDS type=javax.sql.DataSource/ ResourceParams name=jdbc/DefaultDS parameter namemaxActive/name !-- Maximum number of DB connections in pool.Set to 0 for no limit. -- value100/value /parameter parameter namemaxIdle/name !-- Maximum number of idle DB connections to retain in pool.Set to 0 for no limit. -- value30/value /parameter parameter namemaxWait/name !-- Maximum time to wait for a DB connection to become available in ms.An exception is thrown if this timeout is exceeded.Set to -1 to wait indefinitely. -- value15000/value /parameter parameter nameremoveAbandoned/name !-- Abandoned DB connections are removed and recycled -- valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name !-- Use the removeAbandonedTimeout parameter to set the number of seconds a DB connection has been idle before it is considered abandoned. -- value60/value /parameter parameter namelogAbandoned/name !-- Log a stack trace of the code which abandoned -- valuefalse/value /parameter parameter namefactory/name !--DBCP Basic Datasource Factory -- valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameternameusername/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value/parameter parameternameurl/name valuejdbc:microsoft:sqlserver://localhost:1433;databaseName=myworkflow /value/parameter /ResourceParams /Context It works well. But now, we need to migrate myworkflow into another tomcat4.1.31, in which the server.xml can't be modified. So what shall i do to deploy the jdbc context? Thanks for your help! Best Regards. jacky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jdbc context
Well, I guess it was my mistake. In Tomcat 5.5 you will be able to define the context information within each web app, by creating a context.xml in your war file, and the corresponding resource-ref in web.xml. Apparently this is not available in tomcat 4.1 I guess there are two options you may consider: One is to upgrade your tomcat to 5.5. The other is to change the web app not to use JNDI, but to use the data source factory directly in your code. Hope this helps. ND -Original Message- From: chen jacky [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 10:49 AM To: users@tomcat.apache.org Subject: RE: jdbc context hi, Do you mean add the following code in the web.xml? resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref But this still need to add the jdbc config in the server.xml,right? Can you give me some suggestions? From: Duan, Nick [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: RE: jdbc context Date: Mon, 13 Feb 2006 10:11:34 -0500 You should be able to add the context info in your web.xml file. In other words, instead of making the JDBC resource available to all web apps, you make it only to particular applications. If this JDBC connection is only used by the workflow web app, defining it in web.xml is actually preferred. ND -Original Message- From: jacky [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 5:07 AM To: users@tomcat.apache.org Subject: jdbc context hi, I have deploy a workflow webapp in Tomcat4.1.31. First time, i add the following code in server.xml: Context path=/myworkflow docBase=myworkflow reloadable=true Resource name=jdbc/DefaultDS type=javax.sql.DataSource/ ResourceParams name=jdbc/DefaultDS parameter namemaxActive/name !-- Maximum number of DB connections in pool.Set to 0 for no limit. -- value100/value /parameter parameter namemaxIdle/name !-- Maximum number of idle DB connections to retain in pool.Set to 0 for no limit. -- value30/value /parameter parameter namemaxWait/name !-- Maximum time to wait for a DB connection to become available in ms.An exception is thrown if this timeout is exceeded.Set to -1 to wait indefinitely. -- value15000/value /parameter parameter nameremoveAbandoned/name !-- Abandoned DB connections are removed and recycled -- valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name !-- Use the removeAbandonedTimeout parameter to set the number of seconds a DB connection has been idle before it is considered abandoned. -- value60/value /parameter parameter namelogAbandoned/name !-- Log a stack trace of the code which abandoned -- valuefalse/value /parameter parameter namefactory/name !--DBCP Basic Datasource Factory -- valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameternameusername/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value/parameter parameternameurl/name valuejdbc:microsoft:sqlserver://localhost:1433;databaseName=myworkflo w /value/parameter /ResourceParams /Context It works well. But now, we need to migrate myworkflow into another tomcat4.1.31, in which the server.xml can't be modified. So what shall i do to deploy the jdbc context? Thanks for your help! Best Regards. jacky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No of concurrent requests per session
I suspect the problem relates to pipelining of HTTP 1.1 requests over a single persistent TCP connection. Pipelining is intended to improve efficiency, allowing the need for multiple images to present a web page be expressed to a web server one after another, before any of the responses are given. However, the responses must be presented in the same order as the requests, and therein lies your problem. If your short running request is issued over the same TCP connection as one of the earlier, yet to be responded to, long running requests, the response to the later request must wait for the earlier request to be responded to first. In this scenario, you need to get either the browser or the web server to stop using persistent connections. Of course, this may make it less efficient for serving up normal web pages. Please respond to Tomcat Users List users@tomcat.apache.org To: 'Tomcat Users List' users@tomcat.apache.org cc: Subject:RE: No of concurrent requests per session I'm guessing this is more of a browser issue. If you're using IE, I seem to recall there is a registry entry that lets you set the maximum concurrent requests. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Abhilash Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 6:43 AM To: Tomcat Users List Subject: No of concurrent requests per session Hello: I am using Tomcat 5.0.30 with HTTP 1.1 Connector. If I try to make a third request while two other request's (which i have already made) responses have not yet arrived, then Tomcat is not serving the request until one of the pending response arrives. This limits me to only two pending requests (irrespective of the webapp) at a time. My front app is like a dashboard which integarates multiple web apps of which some are reporting apps which requires 4 to 7 minutes to process a request and some are data processing apps which requires only seconds to process the request. Assume the user clicks on two reporting links which open up as new windows from the main app window. Now when he clicks on another link irrespctive of the webapp, nothing happens until one of the reporting request's response is arrived. This problem appears only if the requests belong to the same session. Any pointers / advices will be greatly appreciated. thanks and regards, -- Kannan. -- Amritha Institute of Medical Sciences, Cochin, India Sent using PostMaster by QuantumLink Communications One Internet account, unlimited personal e-mail addresses Get your free copy of PostMaster at http://www.mailserve.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No of concurrent requests per session
From: Abhilash Kumar [mailto:[EMAIL PROTECTED] Subject: No of concurrent requests per session I am using Tomcat 5.0.30 with HTTP 1.1 Connector. If I try to make a third request while two other request's (which i have already made) responses have not yet arrived, then Tomcat is not serving the request until one of the pending response arrives. This limits me to only two pending requests (irrespective of the webapp) at a time. As a previous responder suggested, this is indeed a browser issue. The HTTP RFC (2616, section 8.1.4) recommends no more than two outstanding connections for a given host at one time: Clients that use persistent connections SHOULD limit the number of simultaneous connections that they maintain to a given server. A single-user client SHOULD NOT maintain more than 2 connections with any server or proxy. IE implements this by default. Tomcat can't process a request that it hasn't been given. - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
concerned who is creating my logs
Hello, I am running apache-tomcat-5.5.15 I start tomcat under the user apache what concerns me is that when i look at my logs in $TOMCAT/logs the catalina logs (currently and rotated) are owned by apache, But the admin, host-manager and manager rotated logs are owned by root. Does this mean these servers are running as root?(thats not cool) Thanks for any help Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.Object cannot be resolved
From: Sebastian Funk [mailto:[EMAIL PROTECTED] Subject: Re: java.lang.Object cannot be resolved No, simple javac Hello.java doesn't work. Only if I set $CLASSPATH to /usr/lib/jdk/jre/lib/rt.jar or with the -cp-option. Then your JDK installation is broken. Where is javac being executed from? It should be coming from the /usr/lib/jdk/bin directory, and the various pieces of the JVM should be in /usr/lib/jdk/jre/bin and its subdirectories. Is that the case? Do you mean $CLASSPATH? For the Hello World program no one. No, I mean any and all environment variables. There may be something that's messing up the launchers. - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Someone successfully Installed Tomcat as Windows Service with StartMode=java or StartMode=exe?
I run tomcat 5.5.12 as a service on Win2K (not 2k3), but don't know what mode it is in. How do I find that? Sebastian Himberger wrote: Hi, a week ago i posted a question regarding my problem installing Tomcat as a windows service. Before i'll try again to get it work it would be nice if anybody could just give me a sign if he or she has installed Tomcat (5.5) successfully using StartMode=java or StartMode=exe on as a Windows service? Thanks very much in advance best regards Sebastian Sebastian Himberger schrieb: Hi list, i'm trying to install Tomcat 5.5.12 as a Windows Service on Windows Server 2003 Web Edition and run it under another user as described here: http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html and http://jakarta.apache.org/commons/daemon/procrun.html . I tried setting StartMode to exe and to java but none of those seem to work. Installing as a service / using StartMode jvm works fine. The Service run's under the local system account I already searched google and the mailing list archives but found no solution. I would be very glad if anyone can help me finding a solution that works or point me in the right direction. Thanks very very much in advance Sebastian Himberger CATALINA_HOME: X:\...\Tomcat CATALINA_BASE: X:\...\Tomcat JAVA_HOME: X:\...\Java\JDK-1.5.0-1 Here's my install script: --- @echo off echo CATALINA_HOME: %CATALINA_HOME% echo CATALINA_BASE: %CATALINA_BASE% echo JAVA_HOME: %JAVA_HOME% pause set BASEDIR=%CATALINA_HOME% call %CATALINA_HOME%\bin\setclasspath.bat set args=%args% --Description=TomcatTest set args=%args% --DisplayName=TomcatTest set args=%args% --Startup=auto set args=%args% --LogPath=%CATALINA_BASE%\logs set args=%args% --LogLevel=DEBUG set args=%args% --StdError=auto set args=%args% --StdOutput=auto set args=%args% --Classpath=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar set args=%args% --JavaHome=%JAVA_HOME% set args=%args% --Jvm=D:\...\Java\JDK-1.5.0-1\jre\bin\server\jvm.dll set args=%args% --JvmOptions=-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed set args=%args% --StartMode=jvm set args=%args% --StartClass=org.apache.catalina.startup.Bootstrap set args=%args% --StartParams=start rem set args=%args% --StartImage=%CATALINA_HOME%\bin\tomcat5.exe rem set args=%args% --StartPath=%CATALINA_HOME%\bin set args=%args% --StopMode=jvm set args=%args% --StopClass=org.apache.catalina.startup.Bootstrap set args=%args% --StopParams=stop rem set args=%args% --StopImage=%CATALINA_HOME%\bin\tomcat5.exe rem set args=%args% --StopPath=%CATALINA_HOME%\bin tomcat5.exe //IS//TomcatTest %args% set args= set BASEDIR= --- I get the following errors: -- StartMode = exe If it set no executable: --- [2006-02-06 17:20:13] [1253 prunsrv.c] [debug] Procrun log initialized [2006-02-06 17:20:13] [info] Debuging Service... [2006-02-06 17:20:13] [1075 prunsrv.c] [debug] Inside ServiceMain... [2006-02-06 17:20:13] [info] Starting service... [2006-02-06 17:20:13] [960 prunsrv.c] [error] Failed setting process executable [2006-02-06 17:20:13] [1179 prunsrv.c] [error] ServiceStart returned 2 [2006-02-06 17:20:13] [info] Debug service finished. [2006-02-06 17:20:13] [info] Procrun finished. --- If i set an executable with: --- set args=%args% --StartImage=%CATALINA_HOME%\bin\tomcat5.exe set args=%args% --StartPath=%CATALINA_HOME%\bin set args=%args% --StopImage=%CATALINA_HOME%\bin\tomcat5.exe set args=%args% --StopPath=%CATALINA_HOME%\bin --- It returns: stderr: --- [2006-02-06 17:22:37] [402 prunsrv.c] [error] Das System kann die angegebene Datei nicht finden. (Cannot find file) [2006-02-06 17:22:37] [1246 prunsrv.c] [error] Load configuration failed --- service.log: --- [2006-02-06 17:22:34] [1253 prunsrv.c] [debug] Procrun log initialized [2006-02-06 17:22:34] [513 prunsrv.c] [debug] Installing service... [2006-02-06 17:22:34] [info] Service TomcatTest name TomcatTest [2006-02-06 17:22:34] [555 prunsrv.c] [debug] Setting service description TomcatTest [2006-02-06 17:22:34] [info] Service TomcatTest installed [2006-02-06 17:22:34] [info] Procrun finished. [2006-02-06 17:22:37] [1253 prunsrv.c] [debug] Procrun log initialized [2006-02-06 17:22:37] [info] Debuging Service... [2006-02-06 17:22:37] [1075 prunsrv.c] [debug] Inside ServiceMain... [2006-02-06 17:22:37] [info] Starting service... [2006-02-06 17:22:37] [info] Service started in 10 ms. [2006-02-06 17:22:37] [1169 prunsrv.c] [debug] Waitning worker to finish... [2006-02-06 17:22:37] [1174 prunsrv.c]
OT: Example of Flaky Problems with Microsoft Products
In another thread I commented on strange behaviors when dealing with MS Products, and the time that they eat in projects. Here is an example: http://support.microsoft.com/default.aspx?scid=kb;en-us;824106 For any row in the ResultSet, you can read any column from left to right, and each column should be read only one time. If you try to read columns out of order, or if you re-read a column from the ResultSet, you may receive the error message that the Symptoms section describes. Pretty much the same issue was present in ADO 6-8 years ago. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Someone successfully Installed Tomcat as Windows Service with StartMode=java or StartMode=exe?
Sebastian Himberger wrote: Hi, a week ago i posted a question regarding my problem installing Tomcat as a windows service. Before i'll try again to get it work it would be nice if anybody could just give me a sign if he or she has installed Tomcat (5.5) successfully using StartMode=java or StartMode=exe on as a Windows service? Since I wrote that peace of software I suppose I should know :) Anyhow there is only 'java' mode, not exe. For java mode you will need to edit the 'Argumets' (in the Startup tab) and add everything from JavaOptions, together with -classpath, so: -classpath C:\...\tomcat\bin\bootstrap.jar -Dcatalina.base=C:\...\tomcat -Dcatalina.home=C:\...\tomcat -Djava.endorsed.dirs=C:\...\tomcat\common\endorsed -Djava.io.tmpdir=C:\..\tomcat\temp start I'll probably fix the procrun, so that it uses JavaOptions and Classpath as Arguments for 'Java' mode. Hope it helps. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache 2.0.50 - Tomcat 5.0.28 - Mod_jk - .htaccess
Thank you for your help. I have other Server. This server have apache 2.0.46 and httpd -l are: core.c prefork.c http_core.c mod_so.c I switch the order of LoadModule #-- LoadModule jk_module modules/mod_jk.so LoadModule access_module modules/mod_access.so LoadModule auth_module modules/mod_auth.so JkMount /jsps/servlet/* ajp13 JkMount /jsps/*.jsp ajp13 #-- #-- LoadModule access_module modules/mod_access.so LoadModule jk_module modules/mod_jk.so LoadModule auth_module modules/mod_auth.so JkMount /jsps/servlet/* ajp13 JkMount /jsps/*.jsp ajp13 #-- #-- LoadModule access_module modules/mod_access.so LoadModule auth_module modules/mod_auth.so LoadModule jk_module modules/mod_jk.so JkMount /jsps/servlet/* ajp13 JkMount /jsps/*.jsp ajp13 #-- But i get the same result: http://my_server/jsps/page.jsp -- not password needed http://my_server/jsps/page.js -- password needed You have any idea? -Mensaje original- De: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Enviado el: jueves, 09 de febrero de 2006 10:34 Para: Tomcat Users List; [EMAIL PROTECTED] Asunto: RE: Apache 2.0.50 - Tomcat 5.0.28 - Mod_jk - .htaccess There are any form of change the loading order or i would need reinstall apache. Re-intalling will do you no good. You'd still end up with the same Apache. Re-building it, would, but that can be quite a task. Finding a newer version, differently compiled, might also be a good idea. Anyway, I'm not sure what is the loading order of modules, but it appears that staically linked modules load after dynamically built ins. And you have no control over mod_access. Nix. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache 2.0.50 - Tomcat 5.0.28 - Mod_jk - .htaccess
Manuel Nicolas Ortuño wrote: JkMount /jsps/servlet/* ajp13 JkMount /jsps/*.jsp ajp13 #-- But i get the same result: http://my_server/jsps/page.jsp -- not password needed http://my_server/jsps/page.js -- password needed You have any idea? Since mod_jk mounts 'virtual' address space, unless you have /jsps/ mounted inside apache DocumentRoot the .htaccess will never be parsed. The other option is to use Location /jsps Auth stuf ... /Location That will force auth, but .htaccess will not be used. You should have in mind that mod_jk is proxy, and that it communicates with the backend server, and thus those two don't share the common file system. Perhaps you could 'cheat' mod_jk by mapping it in the same file space, but what would happen with the loadbalancer that could forward requests to multiple servers? Anyhow, I would suggest that you forget mod_jk and .htaccess. Those two are simply incompatible by design. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.Object cannot be resolved
Hi, On Feb 13, 2006, at 5:56 PM, Caldarale, Charles R wrote: From: Sebastian Funk [mailto:[EMAIL PROTECTED] Subject: Re: java.lang.Object cannot be resolved No, simple javac Hello.java doesn't work. Only if I set $CLASSPATH to /usr/lib/jdk/jre/lib/rt.jar or with the -cp-option. Then your JDK installation is broken. Where is javac being executed from? It should be coming from the /usr/lib/jdk/bin directory, and the various pieces of the JVM should be in /usr/lib/jdk/jre/bin and its subdirectories. Is that the case? no, javac was set to /usr/bin/javac but with /usr/lib/jdk/bin/javac ist works fine. Thanks a lot. Greetings, Sebastian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
c:forEach not working as expected
Hi List, it seemed clear to me, that this construct: c:forEach items=${t.records} var=x ... (some inner logic) /c:forEach should be equivalent to this one: % for (Iterator it=t.getRecords(); it.hasNext(); ) { String x = (String)it.next(); % ... (some inner logic) % } % But the forEach-version is not working as expected. What can be wrong? Here are some quite strange effects: 1. The iterators-method hasNext() is called twice for every iteration (ok: no problem, if the iterator is clean, but why?) 2. The loop-body is executed after hasNext() returned false. But the next()-method is NOT called ?? The c:forEach-iterator seems to operate like this: Iterator it = t.getRecords(); while (it.hasNext()) { String x = (String)it.next(); boolean still_more = it.hasNext(); ... here comes the body ... } What could this extra-check be good for? Any help is greatly appreciated. Kind regards, Reinhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encrypting ajp13 traffic
Akoulov, Alexandre wrote: I am wondering if there is a way encrypt the traffic between apache and tomcat when they talk to each other on ajp13. Why do you want to do this? What requirement are you trying to meet / security threat are you trying to mitigate? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Example of Flaky Problems with Microsoft Products
That has not been my experience. We use Opta2000 drivers with MS SQL Server and we can read columns in any order and any number of times within the same row. Earnie! -Original Message- From: Rhino [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 3:06 PM To: Tomcat Users List Subject: Re: Example of Flaky Problems with Microsoft Products - Original Message - From: George Sexton [EMAIL PROTECTED] To: 'Tomcat Users List' users@tomcat.apache.org Sent: Monday, February 13, 2006 1:00 PM Subject: OT: Example of Flaky Problems with Microsoft Products In another thread I commented on strange behaviors when dealing with MS Products, and the time that they eat in projects. Here is an example: http://support.microsoft.com/default.aspx?scid=kb;en-us;824106 For any row in the ResultSet, you can read any column from left to right, and each column should be read only one time. If you try to read columns out of order, or if you re-read a column from the ResultSet, you may receive the error message that the Symptoms section describes. Pretty much the same issue was present in ADO 6-8 years ago. Maybe this wasn't the best example; I'm pretty sure you'll have that problem with JDBC in _any_ environment. It's JDBC that wants you to read columns from left to right and once only, not Microsoft. -- Rhino -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.6/258 - Release Date: 13/02/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having problem with special characters
Hi I think there were a few posts earlier regarding consistent UTF-8 encoding in tomcat. If I remember correctly, this was resolved by setting some flags in a few files. I know I'm being awfully vague :( but I know its there. Cheers, - Pulkit On 2/7/06, Randy Paries [EMAIL PROTECTED] wrote: Hello, Please help I have to tomcat servers. Same version of OS fedora 4 and apache-tomcat-5.5.15 this is driving me crazy i am in a form, it calls a servlet and the servlet writes a file the character i am trying to write is £ on one machine it writes a £ but on the other machine it writes a £ the form posts directly to the servlet any ideas. not sure even where to start Thanks Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Example of Flaky Problems with Microsoft Products
I've never ran into this problem in PostgreSQL. Note that its also dependent upon the presence of a BLOB. So, if someone adds a field to your table, BANG! Your application will start dying. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 11:01 AM To: 'Tomcat Users List' Subject: OT: Example of Flaky Problems with Microsoft Products In another thread I commented on strange behaviors when dealing with MS Products, and the time that they eat in projects. Here is an example: http://support.microsoft.com/default.aspx?scid=kb;en-us;824106 For any row in the ResultSet, you can read any column from left to right, and each column should be read only one time. If you try to read columns out of order, or if you re-read a column from the ResultSet, you may receive the error message that the Symptoms section describes. Pretty much the same issue was present in ADO 6-8 years ago. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
autodeploy without monitoring web.xml changes in tomcat 5.0.28
Ron Day Is there a way to have autodeploy=true, but inhibit a redeploy when only the web.xml is changed. I'm using 5.0.28 not 5.5 so I do not have a context.xml file with WatchedResources. Thanks Ron Day - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having problem with special characters
i ending up modifying the startup to include -Dfile.encoding=ISO-8859-1 On 2/13/06, Pulkit Singhal [EMAIL PROTECTED] wrote: Hi I think there were a few posts earlier regarding consistent UTF-8 encoding in tomcat. If I remember correctly, this was resolved by setting some flags in a few files. I know I'm being awfully vague :( but I know its there. Cheers, - Pulkit On 2/7/06, Randy Paries [EMAIL PROTECTED] wrote: Hello, Please help I have to tomcat servers. Same version of OS fedora 4 and apache-tomcat-5.5.15 this is driving me crazy i am in a form, it calls a servlet and the servlet writes a file the character i am trying to write is £ on one machine it writes a £ but on the other machine it writes a £ the form posts directly to the servlet any ideas. not sure even where to start Thanks Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encrypting ajp13 traffic
While I can't speak for the O.P., I have had need for this myself once upon a time. Consider a setup where the content has to be secured via SSL and communication to/from the tomcat is over untrusted infrastructure SSL can't be proxied, so there is a need for the AJP/13 communication to be encrypted. My solution at the time was to setup a SSH tunnel between the two systems. It would be nice to have some form of encryption optionally available. Food for thought. -- David Mark Thomas wrote: Akoulov, Alexandre wrote: I am wondering if there is a way encrypt the traffic between apache and tomcat when they talk to each other on ajp13. Why do you want to do this? What requirement are you trying to meet / security threat are you trying to mitigate? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0940 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.Object cannot be resolved
try as root: rpm -e `rpm -q -f /usr/bin/javac` Or something like that. Basically uninstall which ever pitiful excuse for java is installed on your system by default leaving only the sun jdk. Probably a good idea to check that nothing needs it before you do it. On that note, why do certain linux distributions insist on installing bearly usable java versions ? On 13/02/06, Sebastian Funk [EMAIL PROTECTED] wrote: Hi, On Feb 13, 2006, at 5:56 PM, Caldarale, Charles R wrote: From: Sebastian Funk [mailto:[EMAIL PROTECTED] Subject: Re: java.lang.Object cannot be resolved No, simple javac Hello.java doesn't work. Only if I set $CLASSPATH to /usr/lib/jdk/jre/lib/rt.jar or with the -cp-option. Then your JDK installation is broken. Where is javac being executed from? It should be coming from the /usr/lib/jdk/bin directory, and the various pieces of the JVM should be in /usr/lib/jdk/jre/bin and its subdirectories. Is that the case? no, javac was set to /usr/bin/javac but with /usr/lib/jdk/bin/javac ist works fine. Thanks a lot. Greetings, Sebastian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: c:forEach not working as expected
On 2/13/06, Reinhard Moosauer [EMAIL PROTECTED] wrote: Hi List, it seemed clear to me, that this construct: c:forEach items=${t.records} var=x ... (some inner logic) /c:forEach should be equivalent to this one: % for (Iterator it=t.getRecords(); it.hasNext(); ) { String x = (String)it.next(); % ... (some inner logic) % } % But the forEach-version is not working as expected. What can be wrong? Here are some quite strange effects: 1. The iterators-method hasNext() is called twice for every iteration (ok: no problem, if the iterator is clean, but why?) 2. The loop-body is executed after hasNext() returned false. But the next()-method is NOT called ?? The c:forEach-iterator seems to operate like this: Iterator it = t.getRecords(); while (it.hasNext()) { String x = (String)it.next(); boolean still_more = it.hasNext(); ... here comes the body ... } What could this extra-check be good for? Any help is greatly appreciated. Kind regards, Reinhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] It has to do with the way the iteration code is divided between the c:forEach and /c:forEach tags. I'm not sure if it *had* to be done that way; you can dig into the Tomcat and JSTL source if you want to redesign it. ;-) -- Len - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.Object cannot be resolved
because some distribution like debian only offer FREE and OPEN SOURCE software, which Sun's JDK is not... regards Leon On 2/13/06, Antony Riley [EMAIL PROTECTED] wrote: try as root: rpm -e `rpm -q -f /usr/bin/javac` Or something like that. Basically uninstall which ever pitiful excuse for java is installed on your system by default leaving only the sun jdk. Probably a good idea to check that nothing needs it before you do it. On that note, why do certain linux distributions insist on installing bearly usable java versions ? On 13/02/06, Sebastian Funk [EMAIL PROTECTED] wrote: Hi, On Feb 13, 2006, at 5:56 PM, Caldarale, Charles R wrote: From: Sebastian Funk [mailto:[EMAIL PROTECTED] Subject: Re: java.lang.Object cannot be resolved No, simple javac Hello.java doesn't work. Only if I set $CLASSPATH to /usr/lib/jdk/jre/lib/rt.jar or with the -cp-option. Then your JDK installation is broken. Where is javac being executed from? It should be coming from the /usr/lib/jdk/bin directory, and the various pieces of the JVM should be in /usr/lib/jdk/jre/bin and its subdirectories. Is that the case? no, javac was set to /usr/bin/javac but with /usr/lib/jdk/bin/javac ist works fine. Thanks a lot. Greetings, Sebastian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Example of Flaky Problems with Microsoft Products
-Original Message- From: Len Popp [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 2:32 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Example of Flaky Problems with Microsoft Products From the documentation of the ResultSet interface: For maximum portability, result set columns within each row should be read in left-to-right order, and each column should be read only once. http://java.sun.com/j2se/1.5.0/docs/api/java/sql/ResultSet.html The same is true in ODBC (and the associated SQL/CLI standard). Some JDBC and ODBC drivers let you access the columns in any order, but some do not. Reminds me of C Programming days. The standard library said that the gettime() function had to return the best possible representation of the current time since the OS started. A lot of libraries just returned 0 (especially in the embedded arena). It was their best approximation, and it met the spec, but it still sucked. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connectors configure can't find apxs, but it is there
Hello: I am running Apache 1.3 on a Linux box and when I try to configure the JK 1.2.15 connectors, I do these commands: cd /usr/local/jakarta-tomcat-connectors-1.2.15-src/jk/native ./configure --with-apxs=/usr/sbin/apxs I get this error: could not find /usr/sbin/apxs configure: error: You must specify a valid --with-apxs path When I try to list that file: ls -la /usr/sbin/apxs I see it is there: -rwxr-xr-x1 root root22180 Nov 5 2001 /usr/sbin/apxs Any ideas why this is failing? Thanks, Neil -- Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com FREE! Valuable info on how your business can reduce operating costs by 17% or more in 6 months or less! http://newsletter.JAMMConsulting.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jdbc context
ok, thanks a lot! Best Regards. jacky - Original Message - From: Duan, Nick [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, February 14, 2006 12:21 AM Subject: RE: jdbc context Well, I guess it was my mistake. In Tomcat 5.5 you will be able to define the context information within each web app, by creating a context.xml in your war file, and the corresponding resource-ref in web.xml. Apparently this is not available in tomcat 4.1 I guess there are two options you may consider: One is to upgrade your tomcat to 5.5. The other is to change the web app not to use JNDI, but to use the data source factory directly in your code. Hope this helps. ND -Original Message- From: chen jacky [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 10:49 AM To: users@tomcat.apache.org Subject: RE: jdbc context hi, Do you mean add the following code in the web.xml? resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref But this still need to add the jdbc config in the server.xml,right? Can you give me some suggestions? From: Duan, Nick [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: RE: jdbc context Date: Mon, 13 Feb 2006 10:11:34 -0500 You should be able to add the context info in your web.xml file. In other words, instead of making the JDBC resource available to all web apps, you make it only to particular applications. If this JDBC connection is only used by the workflow web app, defining it in web.xml is actually preferred. ND -Original Message- From: jacky [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 5:07 AM To: users@tomcat.apache.org Subject: jdbc context hi, I have deploy a workflow webapp in Tomcat4.1.31. First time, i add the following code in server.xml: Context path=/myworkflow docBase=myworkflow reloadable=true Resource name=jdbc/DefaultDS type=javax.sql.DataSource/ ResourceParams name=jdbc/DefaultDS parameter namemaxActive/name !-- Maximum number of DB connections in pool.Set to 0 for no limit. -- value100/value /parameter parameter namemaxIdle/name !-- Maximum number of idle DB connections to retain in pool.Set to 0 for no limit. -- value30/value /parameter parameter namemaxWait/name !-- Maximum time to wait for a DB connection to become available in ms.An exception is thrown if this timeout is exceeded.Set to -1 to wait indefinitely. -- value15000/value /parameter parameter nameremoveAbandoned/name !-- Abandoned DB connections are removed and recycled -- valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name !-- Use the removeAbandonedTimeout parameter to set the number of seconds a DB connection has been idle before it is considered abandoned. -- value60/value /parameter parameter namelogAbandoned/name !-- Log a stack trace of the code which abandoned -- valuefalse/value /parameter parameter namefactory/name !--DBCP Basic Datasource Factory -- valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameternameusername/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value/parameter parameternameurl/name valuejdbc:microsoft:sqlserver://localhost:1433;databaseName=myworkflo w /value/parameter /ResourceParams /Context It works well. But now, we need to migrate myworkflow into another tomcat4.1.31, in which the server.xml can't be modified. So what shall i do to deploy the jdbc context? Thanks for your help! Best Regards. jacky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.Object cannot be resolved
Sebastian- Sorry Im just a portal developer and not a Super User 'sudo' guy Im used to sticking environment variables into .profile or .bashrc files or execute at home/$USER as . .profile Thanks, Martin- 603-438-6038 - Original Message - From: Sebastian Funk [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, February 12, 2006 6:04 AM Subject: Re: java.lang.Object cannot be resolved Hi Martin, I reinstalled JDK as well as JRE and both didn't change neither $CLASSPATH nor $JAVA_HOME. I set $JAVA_HOME to /usr/lib/jdk, it's a link to /usr/lib/jdk1.5.0_05. But without rt.jar in -cp it doesn't work. My whole javac-line is: 'sudo javac -cp /home/tomcat/tomcat/common/lib/servlet-api.jar:/home/ tomcat/mysql-connector-java-3.1.11-bin.jar:/usr/lib/jdk/jre/lib/ rt.jar:.' On Feb 11, 2006, at 10:21 PM, Martin Gainty wrote: Good Afternoon Sebastian- *usually* the JDK/JRE install is supposed to do that for you But as I found this past week (even webapps that cost alot of money) installs sometimes dont always do the complete task I would re-install the JDK/JRE and let the install configure your initial CLASSPATH for you make sure $JAVA_HOME is set correctly (and exported) otherwise things like $JAVA_HOME/bin/java and setting $CLASSPATH=$JAVA_HOME/jre/lib/ rt.jar:$CLASSPATH wont work Martin- - Original Message - From: Sebastian Funk [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, February 11, 2006 4:05 PM Subject: Re: java.lang.Object cannot be resolved Hi, I never set $CLASSPATH, but when I call rt.jar via javac -cp .../ rt.jar Servlet.java, it works fine. Should I set $CLASSPATH or is that enough? On Feb 11, 2006, at 9:49 PM, Martin Gainty wrote: Lets start with the easy stuff is $JAVA_HOME\lib\rt.jar on your $CLASSPATH ??? Martin- - Original Message - From: David Smith [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, February 11, 2006 1:56 PM Subject: Re: java.lang.Object cannot be resolved Looks like the kind of weirdness that makes me think the JVM has become unstable. Have you tried to restart Tomcat? -- David Sebastian Funk wrote: On Feb 11, 2006, at 6:30 PM, Caldarale, Charles R wrote: From: Sebastian Funk [mailto:[EMAIL PROTECTED] Subject: java.lang.Object cannot be resolved import java.lang.Object; The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files Don't know why you're suddenly getting this message, but there's no reason to import java.lang.Object (or anything else from java.lang, for that matter). There is an implicit import of java.lang.* for all compilations (see Java language spec, section 7.5.5). - Chuck I get that message at the first import-statement. When I don't import java.lang.Object, then I get exactly the same, e.g.: 1. ERROR in Familie.java (at line 1) import javax.servlet.*; ^ The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files Any ideas? Greetings, Sebastian Funk -- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Loading data in tree model from database table by Java
How do I loading data in tree model from database table by Java? 1) ReadData(Result); read following table; table structure: id msg child 1 msg1 0 2 msg2 1 3 msg3 2 2) ViewTree(); print following tree; Tree View: msg1 msg2 msg3 Please help me solve it. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Trouble accessing Resources in my Context
I'm running Tomcat 5.5.9 with JVM 1.5.0_05-83 on MacOS X 10.4.4. I'm trying to build an example webapp that shows the configuration for two Jackrabbit resources: one configured as an embedded resource for that web app and another configured as a shared resource for the entire host. I've tried to define the resources in a variety of places and haven't been able to get any of them to work. My context files are defined like this $TOMCAT_HOME/conf/context.xml: Context WatchedResourceWEB-INF/web.xml/WatchedResource /Context webapp/WEB-INF/context.xml: Context docBase=jackrabbit_config_test reloadable=false Resource name=jcr/model1Repository auth=Container type=javax.jcr.Repository factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory configFilePath=conf/repository_model1.xml repHomeDir=shared/jackrabbit_model1 / Environment name=testNum value=10 type=java.lang.Integer override=false/ /Context I've got the following setup in server.xml: GlobalNamingResources ... Resource name=jcr/model2Repository auth=Container type=javax.jcr.Repository factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory configFilePath=conf/repository_model2.xml repHomeDir=shared/jackrabbit_model2 / /GlobalNamingResources And in my web.xml, I've got the following references: web-app ... resource-ref descriptionJackrabbit Model 1 Repository/description res-ref-namejcr/model1Repository/res-ref-name res-typejavax.jcr.Repository/res-type res-authContainer/res-auth /resource-ref resource-env-ref descriptionJackrabbit Model 2 Repository/description resource-env-ref-namejcr/model2Repository/resource-env- ref-name resource-env-ref-typejavax.jcr.Repository/resource-env- ref-type /resource-env-ref resource-ref descriptionTest Number/description res-ref-nametestNum/res-ref-name res-typejava.lang.Integer/res-type res-authContainer/res-auth /resource-ref /web-app I know tomcat is finding the jcr/model2Repository resource because if I delete all of the database entries and repository files, and then restart Tomcat, upon restart the database and repository files are recreated. There's also log output in catalina.out about jackrabbit initializing itself for the model2Repository. When I get to my servlet, I've got some code that prints the context entries for the initial context and the environment's context to the output webpage. Then I try to access both repositories. For good measure, I also try to access the testNum I defined in my webapp's context.xml. None of the objects are accessible. The locally defined objects (those in webapp/WEB-INF/context.xml) throw an exception: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceEnvFactory.getObjectInstance (ResourceEnvFactory.java:99) at javax.naming.spi.NamingManager.getObjectInstance (NamingManager.java:304) at org.apache.naming.NamingContext.lookup(NamingContext.java:792) at org.apache.naming.NamingContext.lookup(NamingContext.java:139) at org.apache.naming.NamingContext.lookup(NamingContext.java:780) at org.apache.naming.NamingContext.lookup(NamingContext.java:152) at edu.ucsc.whisper.jackrabbit_test.JackrabbitTest.getObjectFromContext (JackrabbitTest.java:85) at edu.ucsc.whisper.jackrabbit_test.JackrabbitTest.doGet (JackrabbitTest.java:54) The shared repository object (defined in the server.xml and global context.xml) simply comes back null when I call context.lookup( jcr/ model2Repository ) without throwing an exception. I tried moving the configuration in the {webapp}/WEB-INF/context.xml to server.xml's Host section, as below: Context path=/jackrabbit_config_test docBase=jackrabbit_config_test Resource name=jcr/model1Repository auth=Container type=javax.jcr.Repository factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory configFilePath=conf/repository_model1.xml repHomeDir=shared/jackrabbit_model1 / Environment name=testNum value=10 type=java.lang.Integer override=false/ /Context Doing this made the servlet able to find the testNum environment variable and the jcr/model2Repository was still null. But accessing jcr/model1Repository seems to be worse because I got a ClassNotFound exception on org.apache.jackrabbit.core.jndi.BindableRepositoryFactory calling context.lookup() on it. But the jackrabbit.jar is in both {webapp}/ WEB-INF/lib and $TOMCAT_HOME/server/lib, so I don't know why the factory wouldn't be found. And, in the logs when the server starts using this configuration, the jcr/model2Repository is still
App will work on localhost but blank on client PC.
I have a 2K3 Server on our intranet running Trend InterScan Messaging Security Suite which uses Apache Tomcat. I can access this app on the server through http://localhost:8447/ just fine. But when we try to access this app through a client connected to the 2k3s, we get a blank page with no error message, just one line of characters: _ [1][1] We've searched through Trend's support for this product and they don't have any suggestions except to make sure the redirects from IIS are there, which they are. Beyond that, they barely even mention Tomcat, so does anyone have an idea what may be wrong?
RE: ask a comparison between J2EE and JAVA, please help
http://www.google.com/search?hl=enq=j2ee+versus+php http://www.google.com/search?hl=enlr=q=%22j2ee+or+php . . . -Original Message- From: Iosev Perez Rivero [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 10:43 PM To: Tomcat Users List Subject: ask a comparison between J2EE and JAVA, please help Importance: High My apology, but I need one hard comparison between J2EE and PHP for development of Enterprise SYSTEMS. Please, this is very important. Thanks. Iósev Pérez Rivero Estudiante 4to. Año Universidad de las Ciencias Informáticas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
public void AuthenticatorBase.doLogin(request, response, principal)
Dear tomcat internals experts; I'm taking a shot at prototyping a new method (yet untested) within org.apache.cataline.authenticator.AuthenticatorBase: public void doLogin(HttpServletRequest request, HttpServletResponse response, Principal principal) { register(((CoyoteRequestFacade)request).request, ((CoyoteResponseFacade)response).response, principal, FORM, null, null); } This is intended to allow a webapp (one with access to the server classes) to implicitly register a Principal with a http Session. The above snippet doesn't compile because HttpRequest and HttpResponse are protected fields.. is there a another way to achieve this? Thanks, ken - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New isapi_redirect.dll has problems
Hi; Still having problems. I think among other issues, it is forwarding for pages it should not forward on. This is using the new version Mark Thomas created. uriworkermap.properties: /store/*=ajp13w /store=ajp13w /track/*=ajp13w /forums/*=ajp13w /forums=ajp13w /WindwardReportsServlet/*=ajp13w /WindwardReportsJsp/*=ajp13w /*.jsp=ajp13w /*.faces=ajp13w workers.properties.minimal: worker.list=ajp13w worker.ajp13w.cachesize=100 worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 log file: [Mon Feb 13 07:56:49 2006] [info] jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=61 [Mon Feb 13 07:56:49 2006] [info] jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=61) [Mon Feb 13 07:56:49 2006] [info] jk_ajp_common.c (1248): Error connecting to the Tomcat process. [Mon Feb 13 07:56:49 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Mon Feb 13 07:56:50 2006] [info] jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=61 [Mon Feb 13 07:56:50 2006] [info] jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=61) [Mon Feb 13 07:56:50 2006] [info] jk_ajp_common.c (1248): Error connecting to the Tomcat process. [Mon Feb 13 07:56:50 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=2 [Mon Feb 13 07:56:51 2006] [info] jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=61 [Mon Feb 13 07:56:51 2006] [info] jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=61) [Mon Feb 13 07:56:51 2006] [info] jk_ajp_common.c (1248): Error connecting to the Tomcat process. [Mon Feb 13 07:56:51 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=3 [Mon Feb 13 07:56:51 2006] [error] jk_ajp_common.c (1758): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=ajp13w failed [Mon Feb 13 07:56:51 2006] [error] jk_isapi_plugin.c (1042): service() failed [Mon Feb 13 07:56:52 2006] [info] jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=61 [Mon Feb 13 07:56:52 2006] [info] jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=61) [Mon Feb 13 07:56:52 2006] [info] jk_ajp_common.c (1248): Error connecting to the Tomcat process. [Mon Feb 13 07:56:52 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Mon Feb 13 07:56:53 2006] [info] jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=61 [Mon Feb 13 07:56:53 2006] [info] jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=61) [Mon Feb 13 07:56:53 2006] [info] jk_ajp_common.c (1248): Error connecting to the Tomcat process. [Mon Feb 13 07:56:53 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=2 [Mon Feb 13 07:56:54 2006] [info] jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=61 [Mon Feb 13 07:56:54 2006] [info] jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=61) [Mon Feb 13 07:56:54 2006] [info] jk_ajp_common.c (1248): Error connecting to the Tomcat process. [Mon Feb 13 07:56:54 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=3 [Mon Feb 13 07:56:54 2006] [error] jk_ajp_common.c (1758): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=ajp13w failed [Mon Feb 13 07:56:54 2006] [error] jk_isapi_plugin.c (1042): service() failed [Mon Feb 13 07:56:56 2006] [info] jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=61 [Mon Feb 13 07:56:56 2006] [info] jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=61) [Mon Feb 13 07:56:56 2006] [info] jk_ajp_common.c (1248): Error connecting to the Tomcat process. [Mon Feb 13 07:56:56 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Mon Feb 13 07:56:57 2006] [info] jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=61 [Mon Feb 13 07:56:57 2006] [info] jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=61) [Mon Feb 13 07:56:57 2006] [info] jk_ajp_common.c (1248): Error connecting to the Tomcat process. [Mon Feb 13 07:56:57 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=2 [Mon Feb 13 07:56:58 2006] [info] jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=61 [Mon Feb 13 07:56:58 2006] [info] jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=61) [Mon Feb 13 07:56:58 2006] [info] jk_ajp_common.c (1248): Error connecting to the Tomcat process. [Mon Feb 13 07:56:58 2006] [info]
RE: Encrypting ajp13 traffic
Yes, i've got similar setup . We might end up setting up ssh tunnelling as well. Kind regards, Sasha. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 February 2006 8:18 AM To: Tomcat Users List Subject: Re: Encrypting ajp13 traffic While I can't speak for the O.P., I have had need for this myself once upon a time. Consider a setup where the content has to be secured via SSL and communication to/from the tomcat is over untrusted infrastructure SSL can't be proxied, so there is a need for the AJP/13 communication to be encrypted. My solution at the time was to setup a SSH tunnel between the two systems. It would be nice to have some form of encryption optionally available. Food for thought. -- David Mark Thomas wrote: Akoulov, Alexandre wrote: I am wondering if there is a way encrypt the traffic between apache and tomcat when they talk to each other on ajp13. Why do you want to do this? What requirement are you trying to meet / security threat are you trying to mitigate? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0940 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No of concurrent requests per session
Hello: Thanking everyone for words of wisdom .. I checked with firefox 1.0.7 also. It is also showing the same behaviour as with IE. thanks and regards, -- Kannan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 9:58 PM To: Tomcat Users List Subject: RE: No of concurrent requests per session I suspect the problem relates to pipelining of HTTP 1.1 requests over a single persistent TCP connection. Pipelining is intended to improve efficiency, allowing the need for multiple images to present a web page be expressed to a web server one after another, before any of the responses are given. However, the responses must be presented in the same order as the requests, and therein lies your problem. If your short running request is issued over the same TCP connection as one of the earlier, yet to be responded to, long running requests, the response to the later request must wait for the earlier request to be responded to first. In this scenario, you need to get either the browser or the web server to stop using persistent connections. Of course, this may make it less efficient for serving up normal web pages. Please respond to Tomcat Users List users@tomcat.apache.org To: 'Tomcat Users List' users@tomcat.apache.org cc: Subject:RE: No of concurrent requests per session I'm guessing this is more of a browser issue. If you're using IE, I seem to recall there is a registry entry that lets you set the maximum concurrent requests. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Abhilash Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 6:43 AM To: Tomcat Users List Subject: No of concurrent requests per session Hello: I am using Tomcat 5.0.30 with HTTP 1.1 Connector. If I try to make a third request while two other request's (which i have already made) responses have not yet arrived, then Tomcat is not serving the request until one of the pending response arrives. This limits me to only two pending requests (irrespective of the webapp) at a time. My front app is like a dashboard which integarates multiple web apps of which some are reporting apps which requires 4 to 7 minutes to process a request and some are data processing apps which requires only seconds to process the request. Assume the user clicks on two reporting links which open up as new windows from the main app window. Now when he clicks on another link irrespctive of the webapp, nothing happens until one of the reporting request's response is arrived. This problem appears only if the requests belong to the same session. Any pointers / advices will be greatly appreciated. thanks and regards, -- Kannan. -- Amritha Institute of Medical Sciences, Cochin, India Sent using PostMaster by QuantumLink Communications One Internet account, unlimited personal e-mail addresses Get your free copy of PostMaster at http://www.mailserve.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amritha Institute of Medical Sciences, Cochin, India Sent using PostMaster by QuantumLink Communications One Internet account, unlimited personal e-mail addresses Get your free copy of PostMaster at http://www.mailserve.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No of concurrent requests per session
Hello: Hello: Can u tell how to prevent browser or webserver using persistent connection ? thanks and regards, -- Kannan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 9:58 PM To: Tomcat Users List Subject: RE: No of concurrent requests per session I suspect the problem relates to pipelining of HTTP 1.1 requests over a single persistent TCP connection. Pipelining is intended to improve efficiency, allowing the need for multiple images to present a web page be expressed to a web server one after another, before any of the responses are given. However, the responses must be presented in the same order as the requests, and therein lies your problem. If your short running request is issued over the same TCP connection as one of the earlier, yet to be responded to, long running requests, the response to the later request must wait for the earlier request to be responded to first. In this scenario, you need to get either the browser or the web server to stop using persistent connections. Of course, this may make it less efficient for serving up normal web pages. Please respond to Tomcat Users List users@tomcat.apache.org To: 'Tomcat Users List' users@tomcat.apache.org cc: Subject:RE: No of concurrent requests per session I'm guessing this is more of a browser issue. If you're using IE, I seem to recall there is a registry entry that lets you set the maximum concurrent requests. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Abhilash Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 6:43 AM To: Tomcat Users List Subject: No of concurrent requests per session Hello: I am using Tomcat 5.0.30 with HTTP 1.1 Connector. If I try to make a third request while two other request's (which i have already made) responses have not yet arrived, then Tomcat is not serving the request until one of the pending response arrives. This limits me to only two pending requests (irrespective of the webapp) at a time. My front app is like a dashboard which integarates multiple web apps of which some are reporting apps which requires 4 to 7 minutes to process a request and some are data processing apps which requires only seconds to process the request. Assume the user clicks on two reporting links which open up as new windows from the main app window. Now when he clicks on another link irrespctive of the webapp, nothing happens until one of the reporting request's response is arrived. This problem appears only if the requests belong to the same session. Any pointers / advices will be greatly appreciated. thanks and regards, -- Kannan. -- Amritha Institute of Medical Sciences, Cochin, India Sent using PostMaster by QuantumLink Communications One Internet account, unlimited personal e-mail addresses Get your free copy of PostMaster at http://www.mailserve.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amritha Institute of Medical Sciences, Cochin, India Sent using PostMaster by QuantumLink Communications One Internet account, unlimited personal e-mail addresses Get your free copy of PostMaster at http://www.mailserve.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
context error
hi, When i add a Context in the server.xml, an error occurs: Apache Tomcat/4.1.31 Catalina.start: LifecycleException: Context startup failed due to previous errors LifecycleException: Context startup failed due to previous errors at org.apache.catalina.core.StandardContext.start(StandardContext.java:3578) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start(Catalina.java:463) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) Stopping service Tomcat-Standalone Catalina.stop: LifecycleException: Coyote connector has not been started LifecycleException: Coyote connector has not been started at org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1296) at org.apache.catalina.core.StandardService.stop(StandardService.java:499) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2178) at org.apache.catalina.startup.Catalina.start(Catalina.java:494) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) If i remove the added context, tomcat will start. In fact, i rearrange the directories, i don't know if this will impact on the Context. If i put all directories under $CATALINA_HOME, tomcat will work well with the Context. $CATALINA_HOME/bin/ shared/ server/ $CATALINA_BASE/bin/ conf/ webapps/ logs/ work/ Context is as following: Context path=/test docBase=test reloadable=true / Best Regards. jacky
RE: New isapi_redirect.dll has problems
OK, first I'll point out that I'm pretty new to Tomcat myself workers.properties.minimal: Is jk even using this config file? Normally it would use workers.properties unless it was configured otherwise. [Mon Feb 13 07:56:49 2006] [info] jk_ajp_common.c (1248): Error connecting to the Tomcat process. These errors suggest that jk is sending threads to tomcat, but tomcat does not have enough threads to provide a response. You might want to try adjusting the backlog, maxThreads and all the other threads properties for your connector in /conf/server.xml I've noticed that if jk cannot receive any more threads from the web server (worker.ajp13w.cachesize too small) or tomcat cannot respond to all the threads that are sent to it (maxThreads too small), it just doesn't seem to respond correctly, leading either to a host not available error in IE or a blank page in Firefox. I personally feel that it would be better if jk could respond with some kind of 500 error. [Mon Feb 13 17:03:09 2006] [warn] jk_uri_worker_map.c (429): Uri http://www.windwardreports.com/root.htm?source=googleid=540 is invalid. Uri must start with / This is a bit weird. Is your web server doing any URL rewriting? You haven't got any links in your application that might end up looking like this: http://www.somehost.com/http://www.windwardreports.com/root.htm?... or even this: /http://www.windwardreports.com/root.htm?... Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Blocking AJP13 (port 8009) access
Hi, I'm trying to block external access to port 8009 (AJP13), as only my local host really needs to be able to talk to it. I'm wondering if there are any internal/mod_jk mechanisms for that, or if iptables is the best option. I have tried iptables, which did block external requests, but it also got me in a situation where I had a few hundred httpd processes in a SYN_SENT state ( netstat | grep 8009 | grep -c SYN_SENT ) and returning 503s instead of 200s: iptables -A INPUT \ -p TCP --dport 8009 \ -m state --state NEW \ -j DROP iptables -A INPUT \ -p UDP --dport 8009 \ -m state --state NEW \ -j DROP iptables -A OUTPUT -o lo -j ACCEPT iptables -A INPUT -i lo -j ACCEPT If anyone has iptables rules that work, I'd appreciate it if you could share them. I'd also be curious to know whether people use some other mechanisms to prevent evil folks from connecting to your port 8009 from the outsite and consuming your available connections. Thanks, Otis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]