Tomcat jdbc settings
Hi, I have set up Tomcat 4.1.31 with a JDBC pool using the settings below. However I 'm a bit confused about my the way this works. 1. InitialSize is set to 5 yet I don't see any connections started after Tomcat is bounced. 2. Some of the older connections are not getting cleared down. 3. Although maxIdle is set to 5, I still get more than 5 idle connections. I have referred to the documentation on: http://jakarta.apache.org/commons/dbcp/configuration.html and tried to set accordingly as below. Could someone with more experience comment on these please, and recommend any changes I need to make? Many thanks, Ed. Context path=/POL docBase=/b7/apache/b7uat08/webapps/POL debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=POL. suffix=.log timestamp=true/ Resource name=jdbc/pol auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/pol parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameusername/name valuexxx/value /parameter parameter namepassword/name valuexxx/value /parameter parameter namedriverClassName/name value/value /parameter parameter namedriverClassName/name valueoracle.jdbc.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@sunlhrd36.abc.com:1538:ZJUPT/value /parameter parameter namemaxActive/name value10/value /parameter parameter nameinitialSize/name value5/value /parameter parameter nameminIdle/name value2/value /parameter parameter namemaxIdle/name value5/value /parameter parameter namemaxWait/name value1/value /parameter parameter namevalidationQuery/name valueselect 1 from dual/value /parameter parameter nametestOnBorrow/name valuetrue/value /parameter parameter nametestOnReturn/name valuefalse/value /parameter parameter nametestWhileIdle/name valuetrue/value /parameter parameter nameminEvictableIdleTimeMillis/name value6/value /parameter parameter nametimeBetweenEvictionRunsMillis/name value12/value /parameter parameter namenumTestsPerEvictionRun/name value10/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value5/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams /Context - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk 1.2.15 for apache 2.0.54
hi, yesterday I posted a question regarding the compilation of mod_jk 1.2.15. Sorry if it was a silly question but I am only a tomcat user not really an expert, so I'd like to repeat my question. I try to compile the sources of mod_jk 1.2.15 but always get this error libtool: install: you must specify a destination Try `libtool --help --mode=install' for more information. *** Error code 1 make: Fatal error: Command failed for target `mod_jk.so' Current working directory /home/apache/install/jakarta-tomcat-connectors-1.2.15-src/jk/native/apache-2.0 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' I suppose it's due to a bug in the configured make file. Someone suggested to use the binaries located at http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.15/ The only binary file I found there is mod_jk-1.2.15-solaris8-sparc-apache-1.3.33.so so I suppose it was compiled with an apache 1.3 version. As I'm using apache 2.0.54, does this binary work also with my apache version? Otherwise, does anyone know where to get a binary for apache 2.0.54 or how to edit the make file so to make it work? Thank you Salvo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
shared/lib problem
Hi , I have a problem with libraries in shared/lib. I am using tomcat 5.0.28. I have some libraries of the application, (for example spring-aop.jar..). When I have these libraries in application: in ..WEB-INF/lib they are loaded ok. When I put them in common/Lib of tomcat, they are loaded ok. But if I put them in shared lib, the application doesnt find them, what its wrong? THANKS VERY MUCH in advance Iratxe - Iratxe Etxebarria Sainz-Ezkerra Soporte Web External Global Services Tfno: 946 584 773 / 628 717 375 - - Este mensaje y los documentos que, en su caso, lleve anexos, pueden contener informacion confidencial. Por ello, se informa a quien lo reciba por error que la informacion contenida en el mismo es reservada y su uso no autorizado esta prohibido legalmente, por lo que en tal caso le rogamos que nos lo comunique por la misma via , se abstenga de realizar copias del mensaje o remitirlo o entregarlo a otra persona y proceda a borrarlo de inmediato. - Mezu honek eta erantsita dituen agiriek (baldin baditu) isilpeko informazioa izan dezakete. Hori dela eta, hutsegite baten ondorioz jasotzen duenak jakin beza bertan dagoen informazioa ezkutukoa dela eta legeak galarazi egiten duela berori baimenik gabe erabiltzea. - Aquest missatge i els documents que, donat el cas, portin annexes, poden contenir informacio confidencial. Per aquest motiu, se n'informa a qui el rebi per error que la informacio continguda es reservada i que el seu us no esta legalment autoritzat. - Esta mensaxe e os documentos que, no seu caso, leven anexos, poden conter informacion confidencial. Por isto, informase a quen o reciba por erro que a informacion contida no mesmo e reservada e o seu uso non autorizado. Esta prohibido legalmente. - This message together with any documents attached may contain confidential information. You are informed that if you should receive it by mistake, the information it contains is reserved and its use is not authorised. It is legally prohibited. If you have received this message by mistake, please let us know as soon as possible by e-mail. Do not make any copies of the message, nor send it or give it to anybody else. Please delete it right away.
Re: how to get users from tomcat-users.xml
Srivani Ausula wrote: Hi, How can I get list of users from tomcat-users.xml? Is there any API provided for this purpose? Thanks in advance, A Srivani. You should use FORM based authentication and some web.xml entries for it. Read an appropriate text book or online documentation. -- Hiroshi Iwatani: http://homepage1.nifty.com/algafield/ *stop cruelty* Annual number of institutionally euthanized cats and dogs including kittens and puppies: US 5 million, JP 500 thousand. How about your country? *for our better karma* - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Odd problem with Tomcat 5.5.9 and PhantomReferences
On Wednesday 08 March 2006 16:33, David Goodenough wrote: On Wednesday 08 March 2006 15:54, Caldarale, Charles R wrote: From: David Goodenough [mailto:[EMAIL PROTECTED] Subject: Odd problem with Tomcat 5.5.9 and PhantomReferences But when it comes to use the PhantomReference it gets:- at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC lassLoader.java:1221) Seem to have lost a critical piece of information - which exception? Sorry, what I get is a ThreadDeath. Which I take to mean that the class loader is throwing a fit. David - Chuck It would appear that the problem is that the WebappClassLoader is not started. There are two functions (start and stop) which appear to initialise things and tidy them up, and an internal variable which says whether start has been called (and stop not). This should throw a state exception, but somehow this is becoming a ThreadDeath. Now this loader works perfectly well if I do things in servlet methods, but as soon as I try to use the loader in the background thread, or rather as soon the system trys to use it under the covers to load PhantomReference, it fails. The upshot of this problem is that the Postgresql Jdbc3 driver is unusable on a background thread in Tomcat 5.5.9. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Application stop via the manager
Hello I have a server (example.com) with tomcat 5.0.28 running a couple of applications. In the manager I stop application 'foo' and it gives me: OK - Stopped application at context path /foo When I go to example.com:8080/foo I'm getting the expected error message: HTTP Status 503 - This application is not currently available But when I go to foo.com (which is a domain I have pointing to my server, example.com, which runs apache and will eventually send the request to tomcat's application /foo) I get to see the application /foo running. Am I missing something? Also, is it possible to permanently stop an application? If I restart tomcat the application is started again. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to get users from tomcat-users.xml
Thank u very much for the reply. Before posting the query already I have surfed for relevant documentation, but I could not find any. Could u please point out me to some links where could I get help. Thanks. Srivani Ausula wrote: Hi, How can I get list of users from tomcat-users.xml? Is there any API provided for this purpose? Thanks in advance, A Srivani. You should use FORM based authentication and some web.xml entries for it. Read an appropriate text book or online documentation. -- Hiroshi Iwatani: http://homepage1.nifty.com/algafield/ *stop cruelty* Annual number of institutionally euthanized cats and dogs including kittens and puppies: US 5 million, JP 500 thousand. How about your country? *for our better karma* - - 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]
JNDIRealm why performing two queries against AD
Sorry I try it again with a better formatted mail. Hope for answers Hi there I authenticate my users against Active directory Windows 2003. This is the configuration: Realm name=TEST_Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionName=CN=query,OU=Ressourcen,DC=xx,DC=xxx connectionPassword=xxx connectionURL=ldap://172.27.17.100:389; referrals=follow userBase=DC=xxx,DC=xxx userSubtree=true userSearch=sAMAccountName={0} userRoleName=memeberOf / It works. But when I take a look with Etherreal, I See the following: I would expect the communication to finish after frame 6. (After the bind with the User credentials) explain what happen in frame 7 to 10 ? Thx Frame 1 (113 bytes on wire, 113 bytes captured) Ethernet II, Src: 00:30:05:4e:31:1d, Dst: 00:03:47:9b:28:84 Internet Protocol, Src Addr: 172.27.20.69 (172.27.20.69), Dst Addr: 172.27.17.100 (172.27.17.100) Transmission Control Protocol, Src Port: 4400 (4400), Dst Port: ldap (389), Seq: 0, Ack: 0, Len: 59 Lightweight Directory Access Protocol, Bind Request Message Id: 5 Message Type: Bind Request (0x00) Message Length: 52 Response In: 2 Version: 3 DN: CN=query,OU=Ressourcen,DC=xxf,DC=xx Auth Type: Simple (0x00) Password: xxx Frame 2 (76 bytes on wire, 76 bytes captured) Ethernet II, Src: 00:03:47:9b:28:84, Dst: 00:30:05:4e:31:1d Internet Protocol, Src Addr: 172.27.17.100 (172.27.17.100), Dst Addr: 172.27.20.69 (172.27.20.69) Transmission Control Protocol, Src Port: ldap (389), Dst Port: 4400 (4400), Seq: 0, Ack: 59, Len: 22 Lightweight Directory Access Protocol, Bind Result Message Id: 5 Message Type: Bind Result (0x01) Message Length: 7 Response To: 1 Time: 0.001871000 seconds Result Code: Success (0x00) Matched DN: (null) Error Message: (null) Frame 3 (130 bytes on wire, 130 bytes captured) Ethernet II, Src: 00:30:05:4e:31:1d, Dst: 00:03:47:9b:28:84 Internet Protocol, Src Addr: 172.27.20.69 (172.27.20.69), Dst Addr: 172.27.17.100 (172.27.17.100) Transmission Control Protocol, Src Port: 4400 (4400), Dst Port: ldap (389), Seq: 59, Ack: 22, Len: 76 Lightweight Directory Access Protocol, Search Request Message Id: 6 Message Type: Search Request (0x03) Message Length: 69 Response In: 4 Base DN: DC=xx,DC=xx Scope: Subtree (0x02) Dereference: Always (0x03) Size Limit: 0 Time Limit: 0 Attributes Only: False Filter: (sAMAccountName=tschw) Attribute: memberOf Frame 4 (857 bytes on wire, 857 bytes captured) Ethernet II, Src: 00:03:47:9b:28:84, Dst: 00:30:05:4e:31:1d Internet Protocol, Src Addr: 172.27.17.100 (172.27.17.100), Dst Addr: 172.27.20.69 (172.27.20.69) Transmission Control Protocol, Src Port: ldap (389), Dst Port: 4400 (4400), Seq: 22, Ack: 135, Len: 803 Lightweight Directory Access Protocol, Search Entry Message Id: 6 Message Type: Search Entry (0x04) Message Length: 700 Response To: 3 Time: 0.001568000 seconds Distinguished Name: CN=xx,OU=User SHL,OU=xx,DC=xxDC=xx Attribute: memberOf Lightweight Directory Access Protocol, Search Result Reference Message Id: 6 Message Type: Search Result Reference (0x13) Message Length: 51 Response To: 3 Time: 0.001568000 seconds Reference URL: ldap://xx/CN=Configuration,DC=xx,DC=xx Lightweight Directory Access Protocol, Search Result Message Id: 6 Message Type: Search Result (0x05) Message Length: 7 Response To: 3 Time: 0.001568000 seconds Result Code: Success (0x00) Matched DN: (null) Error Message: (null) Frame 5 (138 bytes on wire, 138 bytes captured) Ethernet II, Src: 00:30:05:4e:31:1d, Dst: 00:03:47:9b:28:84 Internet Protocol, Src Addr: 172.27.20.69 (172.27.20.69), Dst Addr: 172.27.17.100 (172.27.17.100) Transmission Control Protocol, Src Port: 4400 (4400), Dst Port: ldap (389), eq: 135, Ack: 825, Len: 84 Lightweight Directory Access Protocol, Bind Request Message Id: 7 Message Type: Bind Request (0x00) Message Length: 77 Response In: 6 Version: 3 DN: CN=xx,OU=xx,OU=xxn,DC=xx,DC=xx Auth Type: Simple (0x00) Password: Frame 6 (76 bytes on wire, 76 bytes captured) Ethernet II, Src: 00:03:47:9b:28:84, Dst: 00:30:05:4e:31:1d Internet Protocol, Src Addr: 172.27.17.100 (172.27.17.100), Dst Addr: 172.27.20.69 (172.27.20.69) Transmission Control Protocol, Src Port: ldap (389), Dst Port: 4400 (4400), Seq: 825, Ack: 219, Len: 22 Lightweight Directory Access Protocol, Bind Result Message Id: 7 Message Type: Bind Result (0x01) Message Length: 7 Response To: 5 Time: 0.002342000 seconds Result Code: Success (0x00) Matched DN: (null) Error Message: (null) Frame 7 (93 bytes on wire, 93
Re: JNDIRealm why performing two queries against AD
Hi, I think users of this mailing list are more used to java stacktrace then ldap low level protocol :) the JNDIRealm is using the LDAP contextFactory in your case, i suggest you run tomcat in eclipse with breakpoints inside JNDIRealms, and do a step by step to locate which call you think is wrong with the realm, bu i suspect the context is simply getting informations about the user after the binding to get roles of user. Thomas Schwitter a écrit : Sorry I try it again with a better formatted mail. Hope for answers Hi there I authenticate my users against Active directory Windows 2003. This is the configuration: Realm name=TEST_Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionName=CN=query,OU=Ressourcen,DC=xx,DC=xxx connectionPassword=xxx connectionURL=ldap://172.27.17.100:389; referrals=follow userBase=DC=xxx,DC=xxx userSubtree=true userSearch=sAMAccountName={0} userRoleName=memeberOf / It works. But when I take a look with Etherreal, I See the following: I would expect the communication to finish after frame 6. (After the bind with the User credentials) explain what happen in frame 7 to 10 ? Thx Frame 1 (113 bytes on wire, 113 bytes captured) Ethernet II, Src: 00:30:05:4e:31:1d, Dst: 00:03:47:9b:28:84 Internet Protocol, Src Addr: 172.27.20.69 (172.27.20.69), Dst Addr: 172.27.17.100 (172.27.17.100) Transmission Control Protocol, Src Port: 4400 (4400), Dst Port: ldap (389), Seq: 0, Ack: 0, Len: 59 Lightweight Directory Access Protocol, Bind Request Message Id: 5 Message Type: Bind Request (0x00) Message Length: 52 Response In: 2 Version: 3 DN: CN=query,OU=Ressourcen,DC=xxf,DC=xx Auth Type: Simple (0x00) Password: xxx Frame 2 (76 bytes on wire, 76 bytes captured) Ethernet II, Src: 00:03:47:9b:28:84, Dst: 00:30:05:4e:31:1d Internet Protocol, Src Addr: 172.27.17.100 (172.27.17.100), Dst Addr: 172.27.20.69 (172.27.20.69) Transmission Control Protocol, Src Port: ldap (389), Dst Port: 4400 (4400), Seq: 0, Ack: 59, Len: 22 Lightweight Directory Access Protocol, Bind Result Message Id: 5 Message Type: Bind Result (0x01) Message Length: 7 Response To: 1 Time: 0.001871000 seconds Result Code: Success (0x00) Matched DN: (null) Error Message: (null) Frame 3 (130 bytes on wire, 130 bytes captured) Ethernet II, Src: 00:30:05:4e:31:1d, Dst: 00:03:47:9b:28:84 Internet Protocol, Src Addr: 172.27.20.69 (172.27.20.69), Dst Addr: 172.27.17.100 (172.27.17.100) Transmission Control Protocol, Src Port: 4400 (4400), Dst Port: ldap (389), Seq: 59, Ack: 22, Len: 76 Lightweight Directory Access Protocol, Search Request Message Id: 6 Message Type: Search Request (0x03) Message Length: 69 Response In: 4 Base DN: DC=xx,DC=xx Scope: Subtree (0x02) Dereference: Always (0x03) Size Limit: 0 Time Limit: 0 Attributes Only: False Filter: (sAMAccountName=tschw) Attribute: memberOf Frame 4 (857 bytes on wire, 857 bytes captured) Ethernet II, Src: 00:03:47:9b:28:84, Dst: 00:30:05:4e:31:1d Internet Protocol, Src Addr: 172.27.17.100 (172.27.17.100), Dst Addr: 172.27.20.69 (172.27.20.69) Transmission Control Protocol, Src Port: ldap (389), Dst Port: 4400 (4400), Seq: 22, Ack: 135, Len: 803 Lightweight Directory Access Protocol, Search Entry Message Id: 6 Message Type: Search Entry (0x04) Message Length: 700 Response To: 3 Time: 0.001568000 seconds Distinguished Name: CN=xx,OU=User SHL,OU=xx,DC=xxDC=xx Attribute: memberOf Lightweight Directory Access Protocol, Search Result Reference Message Id: 6 Message Type: Search Result Reference (0x13) Message Length: 51 Response To: 3 Time: 0.001568000 seconds Reference URL: ldap://xx/CN=Configuration,DC=xx,DC=xx Lightweight Directory Access Protocol, Search Result Message Id: 6 Message Type: Search Result (0x05) Message Length: 7 Response To: 3 Time: 0.001568000 seconds Result Code: Success (0x00) Matched DN: (null) Error Message: (null) Frame 5 (138 bytes on wire, 138 bytes captured) Ethernet II, Src: 00:30:05:4e:31:1d, Dst: 00:03:47:9b:28:84 Internet Protocol, Src Addr: 172.27.20.69 (172.27.20.69), Dst Addr: 172.27.17.100 (172.27.17.100) Transmission Control Protocol, Src Port: 4400 (4400), Dst Port: ldap (389), eq: 135, Ack: 825, Len: 84 Lightweight Directory Access Protocol, Bind Request Message Id: 7 Message Type: Bind Request (0x00) Message Length: 77 Response In: 6 Version: 3 DN: CN=xx,OU=xx,OU=xxn,DC=xx,DC=xx Auth Type: Simple (0x00) Password: Frame 6 (76 bytes on wire, 76 bytes captured) Ethernet II, Src: 00:03:47:9b:28:84, Dst: 00:30:05:4e:31:1d Internet Protocol, Src Addr:
Creating context and datasources using Tomcat Manager and Administrator
Hi guys, Lately i'd been trying to deploy my apps remotely using the Tomcat Manager and Administrator. I found that if : 1) i upload my war file first, then go to the Administrator to create my datasource, the Administrator would give me an error page when i select my context. The error thrown is the 'driverClassName' not found error. 2) i create my context and datasource first using Administrator, then i upload my war file using Manager, i won't be able to start my application. It seems that the server.xml is not updated or read correctly when i try to install the war file. Is it a bug or is there something wrong with my installation process? I'm using Tomcat 4.1 with JDK1.4.2 Any ideas and opinions or bullets are welcome :p Thanx FooShyn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Defining two host
Host name=www.mydomain.com appBase=webapps unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=mydomain debug=0 crossContext=true/ /Host Host name=www.yourdomain.com appBase=webapps unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=yourdomain debug=0 crossContext=true/ /Host This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer.
Re: Defining two host
Sorry. Missed the question. How do I best define two hosts with specific pathes. In my example below the webapps is loaded several times. I just want tomcat to load the webapps that I define. The below works good if I use a fullpath in context and sets the appBase to a dummy directory or removes the tag, but is there really not a another way? Host name=www.mydomain.com appBase=webapps unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=mydomain debug=0 crossContext=true/ /Host Host name=www.yourdomain.com appBase=webapps unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=yourdomain debug=0 crossContext=true/ /Host Regards Per Jonsson This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer.
error count
Hi, My application (production) runs fine. However in the Tomcat Manager I see a parameter Error count. Normally I would think this should be 0. See no errors in my logs. So what does this parameter measure? On 784000 request counts I have 12000 error counts. Maarten -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.2.1/278 - Release Date: 9-3-2006
Re: how to get users from tomcat-users.xml
Configure memory-realm for you webapp (http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#MemoryRealm) then configure authentification constraints in your web.xml. You have not need to access tomcat-users.xml if all you want to do is authentification. Srivani Ausula a écrit : Thank u very much for the reply. Before posting the query already I have surfed for relevant documentation, but I could not find any. Could u please point out me to some links where could I get help. Thanks. Srivani Ausula wrote: Hi, How can I get list of users from tomcat-users.xml? Is there any API provided for this purpose? Thanks in advance, A Srivani. You should use FORM based authentication and some web.xml entries for it. Read an appropriate text book or online documentation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat jdbc settings
In my experience, using 8i and the thin driver, bouncing tomcat always clears all connections to the DB. Reloading the app will not necessarily clear connections, as the old app is still in PermGen, waiting for garbage collection. Once collected, however, the connections will get cleaned up. -Original Message- From: Edward Quick [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 3:46 AM To: users@tomcat.apache.org Subject: Tomcat jdbc settings Hi, I have set up Tomcat 4.1.31 with a JDBC pool using the settings below. However I 'm a bit confused about my the way this works. 1. InitialSize is set to 5 yet I don't see any connections started after Tomcat is bounced. 2. Some of the older connections are not getting cleared down. 3. Although maxIdle is set to 5, I still get more than 5 idle connections. I have referred to the documentation on: http://jakarta.apache.org/commons/dbcp/configuration.html and tried to set accordingly as below. Could someone with more experience comment on these please, and recommend any changes I need to make? Many thanks, Ed. Context path=/POL docBase=/b7/apache/b7uat08/webapps/POL debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=POL. suffix=.log timestamp=true/ Resource name=jdbc/pol auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/pol parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameusername/name valuexxx/value /parameter parameter namepassword/name valuexxx/value /parameter parameter namedriverClassName/name value/value /parameter parameter namedriverClassName/name valueoracle.jdbc.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@sunlhrd36.abc.com:1538:ZJUPT/value /parameter parameter namemaxActive/name value10/value /parameter parameter nameinitialSize/name value5/value /parameter parameter nameminIdle/name value2/value /parameter parameter namemaxIdle/name value5/value /parameter parameter namemaxWait/name value1/value /parameter parameter namevalidationQuery/name valueselect 1 from dual/value /parameter parameter nametestOnBorrow/name valuetrue/value /parameter parameter nametestOnReturn/name valuefalse/value /parameter parameter nametestWhileIdle/name valuetrue/value /parameter parameter nameminEvictableIdleTimeMillis/name value6/value /parameter parameter nametimeBetweenEvictionRunsMillis/name value12/value /parameter parameter namenumTestsPerEvictionRun/name value10/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value5/value /parameter
Re: error count
MW Janssen wrote: My application (production) runs fine. However in the Tomcat Manager I see a parameter Error count. Normally I would think this should be 0. See no errors in my logs. So what does this parameter measure? It counts the requests that could not be successfully handled. This includes 404s (resource not found). You can - for example - easily get a lot of these when there is no /favicon.ico on your server. If you count the requests that don't have a status of 2xx or 3xx in your server's access logs, you'll propably get a value similar to what the Manager shows as Error count. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat jdbc settings
Thanks Tim. I have also noticed that bouncing the tomcat clears the connections. So are you saying java's garbage collection will clear the old connections out? Does this mean my settings below are redundant? Ed. In my experience, using 8i and the thin driver, bouncing tomcat always clears all connections to the DB. Reloading the app will not necessarily clear connections, as the old app is still in PermGen, waiting for garbage collection. Once collected, however, the connections will get cleaned up. -Original Message- From: Edward Quick [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 3:46 AM To: users@tomcat.apache.org Subject: Tomcat jdbc settings Hi, I have set up Tomcat 4.1.31 with a JDBC pool using the settings below. However I 'm a bit confused about my the way this works. 1. InitialSize is set to 5 yet I don't see any connections started after Tomcat is bounced. 2. Some of the older connections are not getting cleared down. 3. Although maxIdle is set to 5, I still get more than 5 idle connections. I have referred to the documentation on: http://jakarta.apache.org/commons/dbcp/configuration.html and tried to set accordingly as below. Could someone with more experience comment on these please, and recommend any changes I need to make? Many thanks, Ed. Context path=/POL docBase=/b7/apache/b7uat08/webapps/POL debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=POL. suffix=.log timestamp=true/ Resource name=jdbc/pol auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/pol parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameusername/name valuexxx/value /parameter parameter namepassword/name valuexxx/value /parameter parameter namedriverClassName/name value/value /parameter parameter namedriverClassName/name valueoracle.jdbc.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@sunlhrd36.abc.com:1538:ZJUPT/value /parameter parameter namemaxActive/name value10/value /parameter parameter nameinitialSize/name value5/value /parameter parameter nameminIdle/name value2/value /parameter parameter namemaxIdle/name value5/value /parameter parameter namemaxWait/name value1/value /parameter parameter namevalidationQuery/name valueselect 1 from dual/value /parameter parameter nametestOnBorrow/name valuetrue/value /parameter parameter nametestOnReturn/name valuefalse/value /parameter parameter nametestWhileIdle/name valuetrue/value /parameter parameter nameminEvictableIdleTimeMillis/name value6/value /parameter parameter nametimeBetweenEvictionRunsMillis/name value12/value /parameter parameter namenumTestsPerEvictionRun/name value10/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter
Re: how to get users from tomcat-users.xml
you can prefer admin package for this. On 3/10/06, Hiroshi Iwatani [EMAIL PROTECTED] wrote: Srivani Ausula wrote: Hi, How can I get list of users from tomcat-users.xml? Is there any API provided for this purpose? Thanks in advance, A Srivani. You should use FORM based authentication and some web.xml entries for it. Read an appropriate text book or online documentation. -- Hiroshi Iwatani: http://homepage1.nifty.com/algafield/ *stop cruelty* Annual number of institutionally euthanized cats and dogs including kittens and puppies: US 5 million, JP 500 thousand. How about your country? *for our better karma* - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Cup of Java + Suger of XML = Secure WebApp
RE: Tomcat jdbc settings
No, I am not saying that. I am saying that the connections, being returned to the pool on connection.close(), remain open as long as they are not garbage. When a context is reloaded, the previous context hangs around for a while. That context holds reference(s) to the pool, which in turn holds reference(s) to open connections. Once the context is gc'd, then the cascade effect is to close the connections. Bouncing the entire tomcat server will always close all the connections, because all contexts are shut down and garbage collected. Tim P.s. See this: http://marc.theaimsgroup.com/?l=tomcat-userm=114001512903342w=2 (which still has no answer, BTW. Anyone have one? I'd be happy enough to be able to manually shut down the pool on my ServletContextListener.contextDestroyed()) -Original Message- From: Edward Quick [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 7:50 AM To: users@tomcat.apache.org Subject: RE: Tomcat jdbc settings Thanks Tim. I have also noticed that bouncing the tomcat clears the connections. So are you saying java's garbage collection will clear the old connections out? Does this mean my settings below are redundant? Ed. In my experience, using 8i and the thin driver, bouncing tomcat always clears all connections to the DB. Reloading the app will not necessarily clear connections, as the old app is still in PermGen, waiting for garbage collection. Once collected, however, the connections will get cleaned up. -Original Message- From: Edward Quick [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 3:46 AM To: users@tomcat.apache.org Subject: Tomcat jdbc settings Hi, I have set up Tomcat 4.1.31 with a JDBC pool using the settings below. However I 'm a bit confused about my the way this works. 1. InitialSize is set to 5 yet I don't see any connections started after Tomcat is bounced. 2. Some of the older connections are not getting cleared down. 3. Although maxIdle is set to 5, I still get more than 5 idle connections. I have referred to the documentation on: http://jakarta.apache.org/commons/dbcp/configuration.html and tried to set accordingly as below. Could someone with more experience comment on these please, and recommend any changes I need to make? Many thanks, Ed. Context path=/POL docBase=/b7/apache/b7uat08/webapps/POL debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=POL. suffix=.log timestamp=true/ Resource name=jdbc/pol auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/pol parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameusername/name valuexxx/value /parameter parameter namepassword/name valuexxx/value /parameter parameter namedriverClassName/name value/value /parameter parameter namedriverClassName/name valueoracle.jdbc.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@sunlhrd36.abc.com:1538:ZJUPT/value /parameter parameter namemaxActive/name value10/value /parameter parameter nameinitialSize/name value5/value /parameter parameter nameminIdle/name value2/value /parameter parameter namemaxIdle/name value5/value /parameter parameter namemaxWait/name value1/value /parameter parameter namevalidationQuery/name valueselect 1 from dual/value /parameter parameter nametestOnBorrow/name valuetrue/value /parameter parameter
Re: Defining two host
Not sure I understand, but this may be what you want... Host name=www.mydomain.com appBase=webapps-mydomain unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false /Host Host name=www.yourdomain.com appBase=webapps-yourdomain unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false /Host ...the appBase tells Tomcat in which directory to look for servlets and such for a given domain. With the above you have two different hosts, I use this for hosting JIRA and Confluence on different URLs, from the same Tomcat instance. Bernie Per Johnsson wrote: Sorry. Missed the question. How do I best define two hosts with specific pathes. In my example below the webapps is loaded several times. I just want tomcat to load the webapps that I define. The below works good if I use a fullpath in context and sets the appBase to a dummy directory or removes the tag, but is there really not a another way? Host name=www.mydomain.com appBase=webapps unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=mydomain debug=0 crossContext=true/ /Host Host name=www.yourdomain.com appBase=webapps unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=yourdomain debug=0 crossContext=true/ /Host Regards Per Jonsson This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strange behaviour with Tomcat 5.5.15/5.5.16
OS : Mac OS X 10.4.5/10.3.9 JVM : java version 1.4.2_09 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-232) Java HotSpot(TM) Client VM (build 1.4.2-54, mixed mode) IDE : Netbeans 5.0 Build 200601251500 Hi all, I've got a strange behaviour with Tomcat 5.5.15. I've developped an application under tomcat 4.1.31 (J2EE 1.3). When I deploy this application in Tomcat 5.5.9 (with compat), all is ok. But when I deploy this application in Tomcat 5.5.15 or 5.5.16 (with compat), I've got this error message : - 10 mars 2006 09:26:18 org.apache.catalina.core.StandardWrapperValve invoke GRAVE: Servlet.service() pour la servlet jsp a généré une exception org.apache.jasper.JasperException: Tentative d''opération bean sur un objet nul. at org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty (JspRuntimeLibrary.java:601) at org.apache.jsp.home_jsp._jspService (org.apache.jsp.home_jsp:314) at org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol $Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:552) - Any ideas Jipi
classloader problem
Hi all, Some strange thing. I am using axis SOAP jars. When I start Tomcat my SOAP messages are ok..when I restart the webapps via the Tomcat Manager I get a null pointer exception, see below. After restart Tomcat it works ok. So seems wrong with classloading but why only when I restart via the tomcat manager? Someone any idea?? 15:06:08,375 ERROR - java.lang.NullPointerException at org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader .java:946) at java.lang.ClassLoader.getResources(ClassLoader.java:1015) at org.apache.commons.discovery.jdk.JDK12Hooks.getResources(JDK12Hooks.java:150 ) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResources(D iscoverResources.java:153) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResource(Di scoverResources.java:129) at org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(DiscoverRe sources.java:116) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextCla ssNames(DiscoverNamesInFile.java:186) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextCla ssName(DiscoverNamesInFile.java:170) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.hasNext(Di scoverNamesInFile.java:157) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.getNextIterato r(NameDiscoverers.java:143) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.hasNext(NameDi scoverers.java:126) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.ge tNextResource(ResourceClassDiscoverImpl.java:159) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.ha sNext(ResourceClassDiscoverImpl.java:147) at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineC onfigurationFactoryFinder.java:120) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(En gineConfigurationFactoryFinder.java:113) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(En gineConfigurationFactoryFinder.java:160) at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.init(Service.java:113) at org.apache.axis.client.Call.init(Call.java:344) at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:71) at nl.iyellow.util.GntelSOAP.runFunction(GntelSOAP.java:247) at nl.iyellow.util.GntelSOAP.doGet(GntelSOAP.java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:738) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav a:526) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo rkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) at java.lang.Thread.run(Thread.java:595) -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.2.1/278 - Release Date: 9-3-2006
Re: mod_jk 1.2.15 for apache 2.0.54
Salvatore Panto wrote: hi, yesterday I posted a question regarding the compilation of mod_jk 1.2.15. Sorry if it was a silly question but I am only a tomcat user not really an expert, so I'd like to repeat my question. I try to compile the sources of mod_jk 1.2.15 but always get this error libtool: install: you must specify a destination Try `libtool --help --mode=install' for more information. *** Error code 1 make: Fatal error: Command failed for target `mod_jk.so' Current working directory /home/apache/install/jakarta-tomcat-connectors-1.2.15-src/jk/native/apache-2.0 I suppose you are not using GNU make with Solaris 8. Anyhow, post your apache-2.0/Makefile. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error in tomcat
Hello, after a restart of tomcat we got this error. This is strange, we didn't have it before. Tomcat is configured with 2 virtual hosts, eahc has his own webapps directory. They share the root webapp (/), the manager (/manager) and the admin (/admin) For some unknown reasons, the root webapp in one of the vhosts has stopped working... This is the tomcat default root webapp (the one with nice tomcat logo) Can somebody gie any clues?? Here is logs: Mar 10, 2006 2:03:40 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Mar 10, 2006 2:03:41 PM org.apache.tomcat.util.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:890) at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:192) at org.apache.tomcat.util.digester.Rule.end(Rule.java:228) at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1057) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561) at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:302) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:959) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:249) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4020) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:909) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:872) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:683) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) 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.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) Caused by: java.lang.IllegalArgumentException: addChild: Child name 'default' is not unique at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:749) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardContext.addChild(StandardContext.java:1884) ... 43 more Mar 10, 2006 2:03:42 PM org.apache.catalina.startup.ContextConfig applicationWebConfig SEVERE: Parse error in application web.xml java.lang.IllegalArgumentException: addChild: Child name 'default' is not unique at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2719) at
Undeploy
Hi All, I have Tomcat 4.1.29 installed and I tried to used manager's undeploy command but this is doesn't work saying Cannot remove document base for path I know and I see in the archive that a lot of dicussions was here on mailing list but I still not sure if this bug or limitatiomn or it's fixed. Could you please tell me if this fixed and for what version in Tomcat4x? Thanks in advance, Juri. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Requiring TLS with Tomcat 5.5.12
Thu, Mar 09, at 09:19:PM : Bill Barker has proclaimed: Jeff Krug [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is there a way to disallow the SSL 3.0 protocol? protocols=TLS on the Connector / tag. I added this, but it did not seem to alter the behavior. Here is my connector tag: Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS protocols=TLS keystoreType=PKCS12 keystoreFile=Path:\MyKeyStore.p12 keystorePass=## / I can still connect using the SSL 3.0 protocol. I don't see a protocols option listed anywhere in the Tomcat docs on Apache.org either. Should this work? I am testing this with openssl on a Linux machine with this command: $openssl s_client -ssl3 -connect My_Tomcat_Hostname:443 cut all the certificate passing --- New, TLSv1/SSLv3, Cipher is EDH-RSA-DES-CBC3-SHA Server public key is 512 bit Compression: NONE Expansion: NONE SSL-Session: Protocol : SSLv3 Cipher: EDH-RSA-DES-CBC3-SHA Session-ID: snippd for length Session-ID-ctx: Master-Key: snipped for length Key-Arg : None Start Time: 1142004945 Timeout : 7200 (sec) Verify return code: 19 (self signed certificate in certificate chain) --- When I don't force the client on the Linux side to request ssl3, the protocol specified above is TLSv1 as I want. It seems like most products kind of blur the boundaries between TLS and SSL3 (for example that first line above says TLSv1/SSLv3 as if they are the same thing). I guess they are nearly identical, but unfortunately I still need to figure this out. Any further ideas for what I can try? Thanks, Jeff Krug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error in tomcat
One place to start might be in your web.xml file. About half way down you have a message saying Mar 10, 2006 2:03:42 PM org.apache.catalina.startup.ContextConfig applicationWebConfig SEVERE: Parse error in application web.xml java.lang.IllegalArgumentException: addChild: Child name 'default' is not unique at o And at the end you have at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) Mar 10, 2006 2:03:42 PM org.apache.catalina.startup.ContextConfig applicationWebConfig SEVERE: Occurred at line 43 column 15 Mar 10, 2006 2:03:42 PM org.apache.catalina.startup.ContextConfig start SEVERE: Marking this application unavailable due to previous error(s) Does 'line 43 column 15' refer to something relevant in web.xml? Regards Alan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: classloader problem
it would help if you gave us your Tomcat and your axis versions Filip MW Janssen wrote: Hi all, Some strange thing. I am using axis SOAP jars. When I start Tomcat my SOAP messages are ok..when I restart the webapps via the Tomcat Manager I get a null pointer exception, see below. After restart Tomcat it works ok. So seems wrong with classloading but why only when I restart via the tomcat manager? Someone any idea?? 15:06:08,375 ERROR - java.lang.NullPointerException at org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader .java:946) at java.lang.ClassLoader.getResources(ClassLoader.java:1015) at org.apache.commons.discovery.jdk.JDK12Hooks.getResources(JDK12Hooks.java:150 ) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResources(D iscoverResources.java:153) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResource(Di scoverResources.java:129) at org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(DiscoverRe sources.java:116) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextCla ssNames(DiscoverNamesInFile.java:186) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextCla ssName(DiscoverNamesInFile.java:170) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.hasNext(Di scoverNamesInFile.java:157) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.getNextIterato r(NameDiscoverers.java:143) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.hasNext(NameDi scoverers.java:126) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.ge tNextResource(ResourceClassDiscoverImpl.java:159) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.ha sNext(ResourceClassDiscoverImpl.java:147) at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineC onfigurationFactoryFinder.java:120) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(En gineConfigurationFactoryFinder.java:113) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(En gineConfigurationFactoryFinder.java:160) at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.init(Service.java:113) at org.apache.axis.client.Call.init(Call.java:344) at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:71) at nl.iyellow.util.GntelSOAP.runFunction(GntelSOAP.java:247) at nl.iyellow.util.GntelSOAP.doGet(GntelSOAP.java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:738) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav a:526) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo rkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) at java.lang.Thread.run(Thread.java:595) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Undeploy
Undeploy should really say Remove or Delete because that is what it does. It removes the webapp from disk!!! Lucky for you, permissions won't allow that. Mike P.S. I found out the hard way Artamonov, Juri wrote: Hi All, I have Tomcat 4.1.29 installed and I tried to used manager's undeploy command but this is doesn't work saying Cannot remove document base for path I know and I see in the archive that a lot of dicussions was here on mailing list but I still not sure if this bug or limitatiomn or it's fixed. Could you please tell me if this fixed and for what version in Tomcat4x? Thanks in advance, Juri. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Read timed out
I have a data collection servlet running on tomcat 5.5.12 and Windows 2003. It is used by about 200 clients. Every now and then I see the error below indicating that the server times out reading the HTTP request for the client. After some extensive investigation, what I know is: - the timeouts happen precisely after 10 or 20 sec - there is no garbage collection or CPU activity to account for the timeout - after digging through the Tomcat code, the default socket timeout is 0, so the timeout should never occur. - the server is a dual CPU high-end server, so load should not be a problem. I would guess the exception is misleading and the error is somewhere else? Any ideas? Thanks, Bogdan Calmac. java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:747) at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777) at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:115) at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:712) at org.apache.coyote.Request.doRead(Request.java:427) at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:283) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:379) at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:298) at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:192) at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source) at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source) at sun.nio.cs.StreamDecoder.read(Unknown Source) at java.io.InputStreamReader.read(Unknown Source) at java.io.BufferedReader.fill(Unknown Source) at java.io.BufferedReader.readLine(Unknown Source) at java.io.BufferedReader.readLine(Unknown Source) at com.knoa.server.thor.ThorInMessage.execute(ThorInMessage.java:158) at com.knoa.server.thor.ThorServlet.doPost(ThorServlet.java:373) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:204) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TRACE messages
Well, I know you are all sitting on the edge of your chairs waiting for the solution to this... 2 make a long story short: Failure to thoroughly search the documentation led me to install a DEBUG version of connectorj. The tarball has 2 connectorj jar files, one which is a debug version and in my haste, i used the wrong one. No wonder no one else ever saw this problem! I must be the dumbest guy in the world since I am the only one who ever had this happen. Thanks, and I hope I didn't waste anybody's time Mike Mike Sabroff wrote: Just in case someone else comes across this error, I found this code in the mysql connectorj Jdk14Logger.java: private void logInternal(int level, Object msg, Throwable exception) { StringBuffer msgBuf = new StringBuffer(); msgBuf.append(new Date().toString()); msgBuf.append( ); switch (level) {case FATAL: msgBuf.append(FATAL: ); break; case ERROR: msgBuf.append(ERROR: ); break; case WARN: msgBuf.append(WARN: ); break; case INFO: msgBuf.append(INFO: ); break; case DEBUG: msgBuf.append(DEBUG: ); break; case TRACE: msgBuf.append(TRACE: ); break; } So..whoever said it was something in my webapps was right. Mike Sabroff wrote: I am not sure if this is a Tomcat issue or a MySql issue. I get these trace messages in catalina.out: Wed Mar 08 07:48:48 CST 2006 TRACE: about 800 to 1000 lines of them, each time I connect to the database. I have googled and searched but can find nothing on the cause or the solution except maybe to use log4j. I have several versions of Tomcat 4.x / 5.x and it happens in all cases I don't really think it is a Tomcat issue, but was hoping someone else has experienced the problem and could lead me in the right direction. Any help would be appreciated. Thanks, Mike -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: classloader problem
Hi, Tomcat version 5.5.7 and axis 1.3... regards, Maarten -Oorspronkelijk bericht- Van: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 10 maart 2006 17:37 Aan: Tomcat Users List Onderwerp: Re: classloader problem it would help if you gave us your Tomcat and your axis versions Filip MW Janssen wrote: Hi all, Some strange thing. I am using axis SOAP jars. When I start Tomcat my SOAP messages are ok..when I restart the webapps via the Tomcat Manager I get a null pointer exception, see below. After restart Tomcat it works ok. So seems wrong with classloading but why only when I restart via the tomcat manager? Someone any idea?? 15:06:08,375 ERROR - java.lang.NullPointerException at org.apache.catalina.loader.WebappClassLoader.findResources(WebappClass Loader .java:946) at java.lang.ClassLoader.getResources(ClassLoader.java:1015) at org.apache.commons.discovery.jdk.JDK12Hooks.getResources(JDK12Hooks.ja va:150 ) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResou rces(D iscoverResources.java:153) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResou rce(Di scoverResources.java:129) at org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(Disc overRe sources.java:116) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getN extCla ssNames(DiscoverNamesInFile.java:186) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getN extCla ssName(DiscoverNamesInFile.java:170) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.hasN ext(Di scoverNamesInFile.java:157) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.getNextI terato r(NameDiscoverers.java:143) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.hasNext( NameDi scoverers.java:126) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImp l$1.ge tNextResource(ResourceClassDiscoverImpl.java:159) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImp l$1.ha sNext(ResourceClassDiscoverImpl.java:147) at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(E ngineC onfigurationFactoryFinder.java:120) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFact ory(En gineConfigurationFactoryFinder.java:113) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFact ory(En gineConfigurationFactoryFinder.java:160) at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813 ) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.init(Service.java:113) at org.apache.axis.client.Call.init(Call.java:344) at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:7 1) at nl.iyellow.util.GntelSOAP.runFunction(GntelSOAP.java:247) at nl.iyellow.util.GntelSOAP.doGet(GntelSOAP.java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli cation FilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi lterCh ain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa lve.ja va:214) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa lve.ja va:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja va:126 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja va:105 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv e.java :107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java :148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces sConne ction(Http11Protocol.java:738) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi nt.jav a:526) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll owerWo rkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo ol.jav a:684) at java.lang.Thread.run(Thread.java:595) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.2.1/278 - Release Date: 9-3-2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.2.1/278 - Release Date: 9-3-2006
RE: Undeploy
I don't see answer in your sentence. What I need to use removeinstead of undeploy? This is a bug, this is limitation, what is it, that undeploy doesn't work for Tomcat 4x although documentation said that undeploy is used for ndeploying applications? -Original Message- From: Mike Sabroff [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 6:37 PM To: Tomcat Users List Subject: Re: Undeploy Undeploy should really say Remove or Delete because that is what it does. It removes the webapp from disk!!! Lucky for you, permissions won't allow that. Mike P.S. I found out the hard way Artamonov, Juri wrote: Hi All, I have Tomcat 4.1.29 installed and I tried to used manager's undeploy command but this is doesn't work saying Cannot remove document base for path I know and I see in the archive that a lot of dicussions was here on mailing list but I still not sure if this bug or limitatiomn or it's fixed. Could you please tell me if this fixed and for what version in Tomcat4x? Thanks in advance, Juri. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - 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: classloader problem
do you have a good test case for us, cause this shouldn't happen public Enumeration findResources(String name) throws IOException { if (log.isDebugEnabled()) log.debug(findResources( + name + )); Vector result = new Vector(); int jarFilesLength = jarFiles.length; --this is line 946 the variable jarFiles is instantiated to (new JarFile[0]) when the webappclassloader is created. When it is stopped, jarFiles=null, becomes null. So your app is trying to load a class from the webapp after the webapp class loader has been stopped. Even if jarFiles got reset back to (new JarFiles[0]) upon stop(), you would get a ClassNotFoundException as there is nothing to load from. I'd be interested to see if this was reproducable, if so, open a defect and attach the test case. Filip MW Janssen wrote: Hi, Tomcat version 5.5.7 and axis 1.3... regards, Maarten -Oorspronkelijk bericht- Van: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 10 maart 2006 17:37 Aan: Tomcat Users List Onderwerp: Re: classloader problem it would help if you gave us your Tomcat and your axis versions Filip MW Janssen wrote: Hi all, Some strange thing. I am using axis SOAP jars. When I start Tomcat my SOAP messages are ok..when I restart the webapps via the Tomcat Manager I get a null pointer exception, see below. After restart Tomcat it works ok. So seems wrong with classloading but why only when I restart via the tomcat manager? Someone any idea?? 15:06:08,375 ERROR - java.lang.NullPointerException at org.apache.catalina.loader.WebappClassLoader.findResources(WebappClass Loader .java:946) at java.lang.ClassLoader.getResources(ClassLoader.java:1015) at org.apache.commons.discovery.jdk.JDK12Hooks.getResources(JDK12Hooks.ja va:150 ) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResou rces(D iscoverResources.java:153) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResou rce(Di scoverResources.java:129) at org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(Disc overRe sources.java:116) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getN extCla ssNames(DiscoverNamesInFile.java:186) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getN extCla ssName(DiscoverNamesInFile.java:170) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.hasN ext(Di scoverNamesInFile.java:157) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.getNextI terato r(NameDiscoverers.java:143) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.hasNext( NameDi scoverers.java:126) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImp l$1.ge tNextResource(ResourceClassDiscoverImpl.java:159) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImp l$1.ha sNext(ResourceClassDiscoverImpl.java:147) at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(E ngineC onfigurationFactoryFinder.java:120) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFact ory(En gineConfigurationFactoryFinder.java:113) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFact ory(En gineConfigurationFactoryFinder.java:160) at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813 ) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.init(Service.java:113) at org.apache.axis.client.Call.init(Call.java:344) at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:7 1) at nl.iyellow.util.GntelSOAP.runFunction(GntelSOAP.java:247) at nl.iyellow.util.GntelSOAP.doGet(GntelSOAP.java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli cation FilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi lterCh ain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa lve.ja va:214) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa lve.ja va:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja va:126 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja va:105 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv e.java :107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java :148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces sConne ction(Http11Protocol.java:738) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi nt.jav a:526) at
Are filters restricted to be within contexts?
Basically, I'd like to know if a filter can be used to change a context path, or are they restricted to acting within a given context? For example, can I set up a filter at a higher level, so that it will trigger even on a context that doesn't exist in the current Tomcat instance? Thanks! Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Are filters restricted to be within contexts?
From: David Kerber [mailto:[EMAIL PROTECTED] Basically, I'd like to know if a filter can be used to change a context path, or are they restricted to acting within a given context? Filters are spec-compliant and per-context. Valves are Tomcat-specific and can be per-instance. You could probably get the effect you want with a valve - give us more information and you might get more specific pointers :-). - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Are filters restricted to be within contexts?
Thanks for the quick resopnse, Peter - This goes back to questions I've been asking for a few weeks here, trying to get something going whereby I can make my context paths non-case-sensitive. After playing with filters, I finally figured out that I could not get them to work outside of a context. So I was wondering if that was an inherent characteristic of filters, which it apparently is. Then I got to thniking that if there was a way of trapping invalid context paths, I could check to see if the invalid context was just a different case of a valid one, and if so, I could just correct the path or forward the request to the correct context. I've been told I can do this with Apache HTTPD, but didn't want to have to install that just to get this bit of added functionality. Does that sound doable? Dave Peter Crowther wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Basically, I'd like to know if a filter can be used to change a context path, or are they restricted to acting within a given context? Filters are spec-compliant and per-context. Valves are Tomcat-specific and can be per-instance. You could probably get the effect you want with a valve - give us more information and you might get more specific pointers :-). - Peter - 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: Are filters restricted to be within contexts?
Any request not matching a specific webapp's path belongs to the ROOT webapp. Place filters there if you'd like to catch requests to non-existent webapps. Otherwise if a request matches a webapp, that webapp's filters are run instead. --David David Kerber wrote: Basically, I'd like to know if a filter can be used to change a context path, or are they restricted to acting within a given context? For example, can I set up a filter at a higher level, so that it will trigger even on a context that doesn't exist in the current Tomcat instance? Thanks! Dave - 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: Undeploy
it does work. my answer is that whoever tomcat is running as does not have the permissions to remove or Undeploy the webapp. could be owner permissions, or if you are on windows it could be a protected archive or however windows does that sort of thing. Mike - :-) Artamonov, Juri wrote: I don't see answer in your sentence. What I need to use removeinstead of undeploy? This is a bug, this is limitation, what is it, that undeploy doesn't work for Tomcat 4x although documentation said that undeploy is used for ndeploying applications? -Original Message- From: Mike Sabroff [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 6:37 PM To: Tomcat Users List Subject: Re: Undeploy Undeploy should really say Remove or Delete because that is what it does. It removes the webapp from disk!!! Lucky for you, permissions won't allow that. Mike P.S. I found out the hard way Artamonov, Juri wrote: Hi All, I have Tomcat 4.1.29 installed and I tried to used manager's undeploy command but this is doesn't work saying Cannot remove document base for path I know and I see in the archive that a lot of dicussions was here on mailing list but I still not sure if this bug or limitatiomn or it's fixed. Could you please tell me if this fixed and for what version in Tomcat4x? Thanks in advance, Juri. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Undeploy
:))) my answer is that whoever tomcat is running as does not have the permissions to remove or Undeploy the webapp Evrything is ok with permissions and I do this through Tomcat's manager. Still don't see answer. I see issue with undeploy command and see that it's dicussed a lot but don't see answer. What I need to do in order to use undeploy in Tomcat 4x? Apply new patch? Do some changes? Also information, the same application can be successfully undeployed in Tomcat 5x. The questions still is what I need to do to have undeploy working? Best regards, Juri. -Original Message- From: Mike Sabroff [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 10:01 PM To: Tomcat Users List Subject: Re: Undeploy it does work. my answer is that whoever tomcat is running as does not have the permissions to remove or Undeploy the webapp. could be owner permissions, or if you are on windows it could be a protected archive or however windows does that sort of thing. Mike - :-) Artamonov, Juri wrote: I don't see answer in your sentence. What I need to use removeinstead of undeploy? This is a bug, this is limitation, what is it, that undeploy doesn't work for Tomcat 4x although documentation said that undeploy is used for ndeploying applications? -Original Message- From: Mike Sabroff [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 6:37 PM To: Tomcat Users List Subject: Re: Undeploy Undeploy should really say Remove or Delete because that is what it does. It removes the webapp from disk!!! Lucky for you, permissions won't allow that. Mike P.S. I found out the hard way Artamonov, Juri wrote: Hi All, I have Tomcat 4.1.29 installed and I tried to used manager's undeploy command but this is doesn't work saying Cannot remove document base for path I know and I see in the archive that a lot of dicussions was here on mailing list but I still not sure if this bug or limitatiomn or it's fixed. Could you please tell me if this fixed and for what version in Tomcat4x? Thanks in advance, Juri. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - 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]
Exception: at org.apache.tomcat.util.buf.MessageBytes.toChars(MessageBytes.java:271)
Hello all, I've been searching all morning online for clues to the cause of this stack trace: 19:59:54,675 ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing java.lang.NullPointerException at org.apache.tomcat.util.buf.MessageBytes.toChars(MessageBytes.java :271) at org.apache.tomcat.util.http.mapper.Mapper.map(Mapper.java:510) at org.apache.catalina.connector.CoyoteAdapter.postParseRequest( CoyoteAdapter.java:262) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:146) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java :307) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java :385) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748) at org.apache.jk.common.ChannelSocket.processConnection( ChannelSocket.java:678) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java :871) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) I'm running SLES 9 (SuSE Linux Enterprise Server) JBoss 4.0.3SP1 (uses Tomcat 5.5) Apache/2.0.49 (with latest service packs from SuSE) mod_jk/1.2.15 I'm using mod_jk sticky session load balancing (which works great!) for requests to JBoss As you'll notice from the jkmanager screen, one of the servers has quite a few more erorrs than the other. Worker Status for lb_jbossdownload TypeSticky sessionForce Sticky sessionRetriesMethodLock lbTrueFalse3RequestOptimistic NameTypeHostAddrStatFVAccErrWrRd BusyMaxRRCd jbossdownload1ajp13server1:8009137.65.244.106:8009OK1 11039230 0 010 jbossdownload2ajp13server2:8009137.65.244.109:8009OK1 1105491740 0 0267 I've compared the configuration on the two systems to each other, been from Google to JBoss forums to Java Forums and haven't found anything related to this yet. Anyone have any ideas of where to look next or seen this before? Thanks in advance -Brent
SSL trusted certificate
Hi, I' m use CAS for SSO solution. I' ve create a certifiacte for my tomcat and deployed my two applications (CAS server AND client) on the same Tomcat with certificate. When i go to my client application i' m redirecte (in https mode) to the CAS server login page with aknowledge of my certificate in the browser. So all seem OK but after authentification, the CAS protocol callback me to my client who (my client) query the cas server for validation. And this call Fail with : Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target ... Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target ... Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target So after many time on the net the probleme seems to be identified as : for some reason the web server keystore does not trust the HTTPS certificate presented by the CAS server But my client and my server are on the same tomcat Thank you for any help ;)
Re: SSL trusted certificate
Yawn, set truststoreFile=/path/to/keystore/file on the Connector / element. In most cases, the truststore and keystore are different authorities, so there is no good reason for Tomcat to default them to being the same. David Avenante [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I' m use CAS for SSO solution. I' ve create a certifiacte for my tomcat and deployed my two applications (CAS server AND client) on the same Tomcat with certificate. When i go to my client application i' m redirecte (in https mode) to the CAS server login page with aknowledge of my certificate in the browser. So all seem OK but after authentification, the CAS protocol callback me to my client who (my client) query the cas server for validation. And this call Fail with : Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target ... Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target ... Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target So after many time on the net the probleme seems to be identified as : for some reason the web server keystore does not trust the HTTPS certificate presented by the CAS server But my client and my server are on the same tomcat Thank you for any help ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 3 -- reading props w/xml..
Frances [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm on Tomcat 3, it comes with an xml-apis.jar, but no docs.. do you know where I can find docs for it.. I'm trying to read properties with xml, can't use loadFromXML() because that method is 1.5-only.. don't know if xml-apis.jar is it, but... why no docs... Urm, you must be getting this from a third-party provider, since no official release of TC 3.x ships with anything as modern as xml-apis.jar. All official TC 3.3.x releases default to crimson if no other XML parser is available. thank you... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP - ErrorPage - getOutputStream() has already been called for this response
Hi All, Have been breaking my head on this one for more than a week now and just can't get it to work. Even with the most simple files below. Have spent many hours on the internet searching for answers and know that this issue has been posted many times before. Though all posts that I found dealt with this exception getting thrown out of man made servlets and not out of jsp-pages. Tomcat 5.5.15 on Windows XP (jdk 1.5.0_04) Would like to redirect 404 - Page Not Found errors to my own 404.jsp page, but is not working. On the client I get to see the standard Tomcat 404 screen and in the log I'm getting the dreadful java.lang.IllegalStateException: getOutputStream() has already been called for this response The exception is thrown out of the Tomcat generated _404_jsp.java file on its last line: if(_jspxFactory!=null) _jspxFactory.releasePageContext(_jspx_page_context); I read over and over again that this has to do with the response.getOutputStream() getting called multiple times and what more about response.getWriter(). The thing is that I don't have any java code yet in my jsp-file so am not calling any of that. Everything is auto generated by Tomcat. When I replace my 404.jps with a simple 404.html file and make the change in web.xml, then the 404.html is displayed on the client as expected. I have a few other jsp-pages that do have java code and if an exception is thrown out of those pages, then UnhandledExceptions.jsp is called and displayed on the client as expected. The strange thing from reading the logs, is that it looks like the 404.jsp is getting called multiple times in case of an actual 404 error: 1. during the first pass, the 404.jsp is processed as expected (as far as I can tell); 2. during a second pass, I see the getOutputStream() already been called on org.apache.catalina.core.ApplicationDispatcher invoke 3. during a third pass, I see the getOutputStream() already been called on org.apache.catalina.core.StandardHostValve custom And after that the standard Tomcat 404 appears on the client. Anyone any ideas? Web.xml --- .. error-page error-code404/error-code location/errpages/404.jsp/location /error-page error-page exception-typejava.lang.Throwable/exception-type location/errpages/UnhandledExceptions.jsp/location /error-page 404.jsp --- table trtdPage not found!/td/tr /table UnhandledExceptions.jsp --- %@ page isErrorPage=true % jsp:include page='/somepage.jsp' / table trtdBooBoo occurred!/td/tr trtd%= exception.getMessage() %/td/tr /table - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]