Re: ClassCastException org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl
On 07/08/2012 00:24, Dale Ogilvie wrote: Daniel Mikusa [mailto:dmik...@vmware.com] wrote: You would be using a shared class loader if you are placing JAR files used by multiple deployed web applications into the $CATALINA_BASE/lib or $CATALINA_HOME/lib directory. Are you placing any JAR files into those folders? We have placed three JDBC driver jars in $CATALINA_HOME/lib. I presume this is irrelevant to this issue. The class in question org.apache.jasper.runtime.ELContextImpl only appears to be in a jar located in app2/WEB-INF/lib, yet it is being loaded for app1. I have verified that the class is NOT in $CATALINA_HOME/lib. If we remove app2 from tomcat, the ClassCastException disappears from app1. Further, removing the jar containing org.apache.jasper.runtime.ELContextImpl from app2 also resolves the issue. There does seem to be a problem that app2 is sharing classes with app1 from app2/WEB-INF/lib. How can this happen? Tomcat blocks some JARs from being loaded from a webapp lib - the Servlet APIs - maybe the Tomcat JARs should go on the list. This might be construed as a bug, or at least an enhancement request. p Maybe try adding the JVM option -verbose:class to bin/setenv.sh. This option will cause the JVM to log when a class is loaded and from where it was loaded. I'll look into that. Dan Thanks. Dale - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- [key:62590808] signature.asc Description: OpenPGP digital signature
Re: TOMCAT with multiple sites (one on https, others on http)
On 03/08/2012 17:35, Massimo Chirivì - Ict Consultant wrote: *this is my server.xml, * *the sites on the http is ok, but the site on the https is not ok?* *thank you for help* Are you just repeating the same question over over? Have you read the documents provided previously? What version of Tomcat are you using? What *exactly* does 'not ok' mean? Are there any errors in the log files? Can you describe the symptoms of the error? Have you ever read comprehended: http://www.catb.org/esr/faqs/smart-questions.html p ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 / Connector port=8009 protocol=AJP/1.3 redirectPort=443 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=www.site1.it debug=0 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=virtual_log1. suffix=.txt timestamp=true/ Context path= docBase=/webapps/site1 debug=0 reloadable=true/ Context definitions in server.xml is very strongly discouraged and considered poor practice. Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=virtual_log. suffix=.txt pattern=common/ /Host Host name=www.site2.net debug=0 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=virtual_log29. suffix=.txt timestamp=true/ There is no logger in Tomcat 7.0. Context path= docBase=/webapps/site2 debug=0 reloadable=true/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=virtual_log. suffix=.txt pattern=common/ /Host /Engine /Service Service name=Catalinassl Engine name=Catalinassl defaultHost=localhost Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true SSLEnabled=true clientAuth=false sslProtocol=TLS keyAlias=bancomed keystoreFile=C:\Program Files\Java\jre1.5.0_15\bin\site3.jks keypass= / Host name=www.site3.net debug=0 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=virtual_log29. suffix=.txt timestamp=true/ There is no logger in Tomcat 7.0. Context path= docBase=/webapps/site3 debug=0 reloadable=true/ Context definitions in server.xml is very strongly discouraged and considered poor practice. Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=virtual_log. suffix=.txt pattern=common/ /Host /Engine /Service /Server Massimo Chirivì 2012/2/12 Caldarale, Charles R chuck.caldar...@unisys.com From: mchirivi@gmail.com [mailto:mchirivi@gmail.com] On Behalf Of Massimo Chirivì - Ict Consultant Subject: Re: TOMCAT with multiple sites (one on https, others on http) i have a server with TOMCAT and i want to configure multiple sites, i can configure one site on https and others sites on http? 1) Read the servlet spec, especially section 13, security. 2) Read the Tomcat doc for SSL and Connector: http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html http://tomcat.apache.org/tomcat-7.0-doc/config/http.html 3) Read the Wiki for virtual hosts: http://wiki.apache.org/tomcat/HowTo#How_do_I_set_up_Tomcat_virtual_hosts_in_a_development_environment.3F - 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. -- [key:62590808] signature.asc Description: OpenPGP
Re: ClassCastException org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl
On 07/08/2012 00:24, Dale Ogilvie wrote: Daniel Mikusa [mailto:dmik...@vmware.com] wrote: You would be using a shared class loader if you are placing JAR files used by multiple deployed web applications into the $CATALINA_BASE/lib or $CATALINA_HOME/lib directory. Are you placing any JAR files into those folders? We have placed three JDBC driver jars in $CATALINA_HOME/lib. I presume this is irrelevant to this issue. The class in question org.apache.jasper.runtime.ELContextImpl only appears to be in a jar located in app2/WEB-INF/lib, yet it is being loaded for app1. I have verified that the class is NOT in $CATALINA_HOME/lib. If we remove app2 from tomcat, the ClassCastException disappears from app1. Further, removing the jar containing org.apache.jasper.runtime.ELContextImpl from app2 also resolves the issue. There does seem to be a problem that app2 is sharing classes with app1 from app2/WEB-INF/lib. How can this happen? Again, that class is not a Tomcat class. As far as I can tell, that is party of Jetty's JSP/EL implementation. What on earth Jetty is doing using an ASF namespace I have no idea. It looks to be a Jetty 6 issue (i.e. 2 major versions ago) so not one we need to worry about too much at this point. Anyway, if you start adding JARs from one container into another then all sorts of things can and will go wrong. I see no way to protect Tomcat against this. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: TOMCAT with multiple sites (one on https, others on http)
I have configured the server.xml to run a few sites with HTTP and HTTPS, HTTP sites work correctly, that HTTPS is not responding, can not display the page Massimo Chirivì 2012/8/7 Pid p...@pidster.com On 03/08/2012 17:35, Massimo Chirivì - Ict Consultant wrote: *this is my server.xml, * *the sites on the http is ok, but the site on the https is not ok?* *thank you for help* Are you just repeating the same question over over? Have you read the documents provided previously? What version of Tomcat are you using? What *exactly* does 'not ok' mean? Are there any errors in the log files? Can you describe the symptoms of the error? Have you ever read comprehended: http://www.catb.org/esr/faqs/smart-questions.html p ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 / Connector port=8009 protocol=AJP/1.3 redirectPort=443 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=www.site1.it debug=0 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=virtual_log1. suffix=.txt timestamp=true/ Context path= docBase=/webapps/site1 debug=0 reloadable=true/ Context definitions in server.xml is very strongly discouraged and considered poor practice. Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=virtual_log. suffix=.txt pattern=common/ /Host Host name=www.site2.net debug=0 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=virtual_log29. suffix=.txt timestamp=true/ There is no logger in Tomcat 7.0. Context path= docBase=/webapps/site2 debug=0 reloadable=true/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=virtual_log. suffix=.txt pattern=common/ /Host /Engine /Service Service name=Catalinassl Engine name=Catalinassl defaultHost=localhost Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true SSLEnabled=true clientAuth=false sslProtocol=TLS keyAlias=bancomed keystoreFile=C:\Program Files\Java\jre1.5.0_15\bin\site3.jks keypass= / Host name=www.site3.net debug=0 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=virtual_log29. suffix=.txt timestamp=true/ There is no logger in Tomcat 7.0. Context path= docBase=/webapps/site3 debug=0 reloadable=true/ Context definitions in server.xml is very strongly discouraged and considered poor practice. Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=virtual_log. suffix=.txt pattern=common/ /Host /Engine /Service /Server Massimo Chirivì 2012/2/12 Caldarale, Charles R chuck.caldar...@unisys.com From: mchirivi@gmail.com [mailto:mchirivi@gmail.com] On Behalf Of Massimo Chirivì - Ict Consultant Subject: Re: TOMCAT with multiple sites (one on https, others on http) i have a server with TOMCAT and i want to configure multiple sites, i can configure one site on https and others sites on http? 1) Read the servlet spec, especially section 13, security. 2) Read the Tomcat doc for SSL and Connector: http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html http://tomcat.apache.org/tomcat-7.0-doc/config/http.html 3) Read the Wiki for virtual hosts:
Re: TOMCAT with multiple sites (one on https, others on http)
I have configured the server.xml to run a few sites with HTTP and HTTPS, HTTP sites work correctly, that HTTPS is not responding, can not display the page Massimo Chirivì Massimo, Pid's reply was asking you to answer some specific questions. You appear to have only answered the first one of them by irony only. The people on the list will need all of these specific questions answered in order to help you any further. Here is the list once again in case you have lost the previous email Chris Are you just repeating the same question over over? Have you read the documents provided previously? What version of Tomcat are you using? What *exactly* does 'not ok' mean? Are there any errors in the log files? Can you describe the symptoms of the error? Have you ever read comprehended: http://www.catb.org/esr/faqs/smart-questions.html
Re: TOMCAT with multiple sites (one on https, others on http)
What version of Tomcat are you using? 6.0.16 What *exactly* does 'not ok' mean? The https site is not responding Are there any errors in the log files? NO, I have Stop and Start TOMCAT, the log files Catalina.2012-08-07.txt is attach Can you describe the symptoms of the error? When i submit http://www.sito1.net or http://www.site2.net is work correctly when i submit https://www.sito3.net is not responding. the configuration in the server.xml is correctly? 2012/8/7 mchirivi [via Tomcat] ml-node+s10n4984916...@n6.nabble.com What version of Tomcat are you using? 6.0.16 What *exactly* does 'not ok' mean? The https site is not responding Are there any errors in the log files? NO, I have Stop and Start TOMCAT, the log files Catalina.2012-08-07.txt is attach Can you describe the symptoms of the error? When i submit http://www.sito1.net or http://www.site2.net is work correctly when i submit https://www.sito3.net is not responding. the configuration in the server.xml is correctly? -- If you reply to this email, your message will be added to the discussion below: http://tomcat.10.n6.nabble.com/TOMCAT-with-multiple-sites-one-on-https-others-on-http-tp4462105p4984916.html To unsubscribe from TOMCAT with multiple sites (one on https, others on http), click herehttp://tomcat.10.n6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4462105code=aW5mb0BtYXNzaW1vY2hpcml2aS5uZXR8NDQ2MjEwNXwxMTc5MDcxMzk2 . NAMLhttp://tomcat.10.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
Re: TOMCAT with multiple sites (one on https, others on http)
What version of Tomcat are you using? 6.0.16 What *exactly* does 'not ok' mean? The https site is not responding Are there any errors in the log files? NO, I have Stop and Start TOMCAT, the log files Catalina.2012-08-07.txt is attach Can you describe the symptoms of the error? When i submit http://www.sito1.net or http://www.site2.net is work correctly when i submit https://www.sito3.net is not responding. the configuration in the server.xml is correctly? 2012/8/7 Pid p...@pidster.com On 03/08/2012 17:35, Massimo Chirivì - Ict Consultant wrote: *this is my server.xml, * *the sites on the http is ok, but the site on the https is not ok?* *thank you for help* Are you just repeating the same question over over? Have you read the documents provided previously? What version of Tomcat are you using? What *exactly* does 'not ok' mean? Are there any errors in the log files? Can you describe the symptoms of the error? Have you ever read comprehended: http://www.catb.org/esr/faqs/smart-questions.html p ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 / Connector port=8009 protocol=AJP/1.3 redirectPort=443 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=www.site1.it debug=0 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=virtual_log1. suffix=.txt timestamp=true/ Context path= docBase=/webapps/site1 debug=0 reloadable=true/ Context definitions in server.xml is very strongly discouraged and considered poor practice. Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=virtual_log. suffix=.txt pattern=common/ /Host Host name=www.site2.net debug=0 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=virtual_log29. suffix=.txt timestamp=true/ There is no logger in Tomcat 7.0. Context path= docBase=/webapps/site2 debug=0 reloadable=true/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=virtual_log. suffix=.txt pattern=common/ /Host /Engine /Service Service name=Catalinassl Engine name=Catalinassl defaultHost=localhost Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true SSLEnabled=true clientAuth=false sslProtocol=TLS keyAlias=bancomed keystoreFile=C:\Program Files\Java\jre1.5.0_15\bin\site3.jks keypass= / Host name=www.site3.net debug=0 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=virtual_log29. suffix=.txt timestamp=true/ There is no logger in Tomcat 7.0. Context path= docBase=/webapps/site3 debug=0 reloadable=true/ Context definitions in server.xml is very strongly discouraged and considered poor practice. Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=virtual_log. suffix=.txt pattern=common/ /Host /Engine /Service /Server Massimo Chirivì 2012/2/12 Caldarale, Charles R chuck.caldar...@unisys.com From: mchirivi@gmail.com [mailto:mchirivi@gmail.com] On Behalf Of Massimo Chirivì - Ict Consultant Subject: Re: TOMCAT with multiple sites (one on https, others on http) i have a server with TOMCAT and i want to configure multiple sites, i can configure one site on https and others sites on http? 1) Read the servlet spec, especially section 13, security. 2) Read the Tomcat doc for SSL and Connector:
Tomcat 7.0.x, Windows 7 x64 professional - question
We are trying to get our application Microsoft certified. There are several test cases that involve adding digital signatures, required manifest entries, etc. that do not currently exist for Tomcat exe's. I am just wondering if anyone else has run into trouble getting certified with Microsoft using Tomcat? ___ Confidentiality Notice: This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately.
Re: TOMCAT with multiple sites (one on https, others on http)
On 1:59 PM, Massimo Chirivì - Ict Consultant wrote: What version of Tomcat are you using? 6.0.16 What *exactly* does 'not ok' mean? The https site is not responding Are there any errors in the log files? NO, I have Stop and Start TOMCAT, the log files Catalina.2012-08-07.txt is attach Can you describe the symptoms of the error? When i submit http://www.sito1.net or http://www.site2.net is work correctly when i submit https://www.sito3.net is not responding. the configuration in the server.xml is correctly? 2012/8/7 Pidp...@pidster.com On 03/08/2012 17:35, Massimo Chirivì - Ict Consultant wrote: *this is my server.xml, * *the sites on the http is ok, but the site on the https is not ok?* *thank you for help* Are you just repeating the same question over over? Have you read the documents provided previously? What version of Tomcat are you using? What *exactly* does 'not ok' mean? Are there any errors in the log files? Can you describe the symptoms of the error? Have you ever read comprehended: http://www.catb.org/esr/faqs/smart-questions.html p ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 / Connector port=8009 protocol=AJP/1.3 redirectPort=443 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=www.site1.it debug=0 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=virtual_log1. suffix=.txt timestamp=true/ Context path= docBase=/webapps/site1 debug=0 reloadable=true/ Context definitions in server.xml is very strongly discouraged and considered poor practice. Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=virtual_log. suffix=.txt pattern=common/ /Host Host name=www.site2.net debug=0 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=virtual_log29. suffix=.txt timestamp=true/ There is no logger in Tomcat 7.0. Context path= docBase=/webapps/site2 debug=0 reloadable=true/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=virtual_log. suffix=.txt pattern=common/ /Host /Engine /Service Service name=Catalinassl Engine name=Catalinassl defaultHost=localhost Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true SSLEnabled=true clientAuth=false sslProtocol=TLS keyAlias=bancomed keystoreFile=C:\Program Files\Java\jre1.5.0_15\bin\site3.jks keypass= / Host name=www.site3.net debug=0 unpackWARs=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=virtual_log29. suffix=.txt timestamp=true/ There is no logger in Tomcat 7.0. Context path= docBase=/webapps/site3 debug=0 reloadable=true/ Context definitions in server.xml is very strongly discouraged and considered poor practice. Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=virtual_log. suffix=.txt pattern=common/ /Host /Engine /Service /Server Massimo Chirivì 2012/2/12 Caldarale, Charles Rchuck.caldar...@unisys.com From: mchirivi@gmail.com [mailto:mchirivi@gmail.com] On Behalf Of Massimo Chirivì - Ict Consultant Subject: Re: TOMCAT with multiple sites (one on https, others on http) i have a server with TOMCAT and i want to configure multiple sites, i can configure one site on https and others sites on http? 1) Read the servlet spec, especially section 13, security. 2) Read the Tomcat doc for SSL andConnector: http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html
Re: AjpNio Invalid message received on header
Sniffer on the network didn't find anything talking to the ajp port, but there was traffic within the app server box. I changed the port number and that got rid of the error. I will have to do some cleanup on the box. Thanks for your help Rainer. On Mon, Aug 6, 2012 at 6:05 PM, Rainer Jung rainer.j...@kippdata.de wrote: On 06.08.2012 23:39, Yasser wrote: I am using Tomcat 7.0.29 fronted with Apache 2.2.22 modproxy. Configured Ajp as the protocol in httpd.conf and AjpNioProtocol in server.xml. After the server starts, the logs are filled with the following message: *Severe: Invalid message received with signature 20599 com.apache.coyote.ajp.**AjpMessage processHeader* It could be anything trying to talk to your AJP port. 20599 should mean, that the first two bytes of the package are P (=80) and w (=119), because 80*256 + 119 = 20599. It seem syou need to sniff your AJP port and see, from which system the packets come. You could also check netstat -an for connections to your AJP port and check whether there are connections coming from some unexpected system. Sniffing would be more reliable though. There are no requests sent to the web or tomcat server and it still throws that error at an interval of 20 seconds. Access logs in tomcat and apache show that no request is coming in. What is causing the invalid message error ? If even the first packet doesn't make sense, then there will be no access log entry. Here is the configuration : httpd.conf ProxyPass /wl http:// ip : port /wl ProxyPassReverse /wl http:// ip : port /wl server.xml Connector port=port protocol=org.apache.coyote.**ajp.AjpNioProtocol connectionTimeout=2 acceptorThreadCount=2 maxThreads=600 redirectPort=8443 / Regards, Rainer --**--**- To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.orgusers-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [Tomcat 7] Why can't you use automatic deployment and exploded WAR when docBase is outside appBase?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 8/6/12 3:26 PM, Miguel Almeida wrote: Consider the following context file jamesbond.xml in $CATALINA_BASE/conf/[engine_name]/[host_name]): Context docBase=/srv/apps/jamesbond.war unpackWAR=true debug=0 privileged=true Environment name=my.env value=VAL type=java.lang.String override=true/ /Context *1)* In Tomcat 6 you'd update the war at /srv/apps and it would automatically be redeployed and exploded. However, in Tomcat 7 this isn't happening. From the docs (http://tomcat.apache.org/tomcat-7.0-doc/config/host.html), a new important text that wasn't in 6 reads: unpackWARs - (...) WAR files located outside of the Host's *appBase* will not be expanded. And in http://tomcat.apache.org/tomcat-7.0-doc/config/host.html#Automatic%20Application%20Deployment: - - When using automatic deployment, the docBase defined by an XML Contexthttp://tomcat.apache.org/tomcat-7.0-doc/config/context.htmlfile should be outside of the appBase directory. If this is not the case, difficulties may be experienced deploying the web application or the application may be deployed twice. The deployIgnore attribute can be used to avoid this situation. Both these rules means you can't have automatic deployment of files outside appBase and explode them (into appBase). Do you mean automatic deployment or automatic redeployment? If you want to update a WAR file that is outside of the appBase, then update the WAR file and then 'touch' the XML file in $CATALINA_BASE/conf/[engine_name]/[host_name]/jamesbond.xml. Why is this? How can one have the same behaviour as in Tomcat 6: have the war* outisde appBase*, use a context xml like the one above and have the application exploded. Do you really care about the WAR file being exploded? If this is really a complaint about your question #2 (handled by others separately within this thread), then you should be using the temp dirs instead of getRealPath and you won't have to worry about the lack of WAR-explosion anymore. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAhRK0ACgkQ9CaO5/Lv0PBElgCff5o8N1rNnTKAZ1HHRKxBqKTU t+oAmwWEcvU1uDLWX6zkYNT+QnhLSqxk =Z6qA -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: AjpNio Invalid message received on header
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yasser, On 8/7/12 12:35 PM, Yasser wrote: Sniffer on the network didn't find anything talking to the ajp port, but there was traffic within the app server box. I changed the port number and that got rid of the error. I will have to do some cleanup on the box. Thanks for your help Rainer. It sounds like you have something connecting to that port that shouldn't be. Maybe another misconfigured service? It should be fairly easy to locate the offending process using tcpdump, et. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAhRiAACgkQ9CaO5/Lv0PBaRgCeMty8tpWgZS4zZzN4eqJwXB/g 86EAoLY2+nW1uwdOOzPlWOfvjKkriPIR =v/uI -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: SSL Documentation Suggestion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 8/6/12 2:56 PM, David Landis wrote: I have a suggestion after just going through the process of configuring SSL using this link: http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration I would recommend having completely separate sections for each of the SSL implementations (e.g APR or JSSE). The problem is, if you are unfamiliar with the process, it is ambiguous which implementation some of the steps are geared towards. For example, the line: To create a new keystore from scratch, containing a single self-signed Certificate, execute the following from a terminal command line... My understanding (and I'm still not 100% sure!) is that this will not work if you are using Http11AprProtocol. Well, you will have a perfectly valid keystore at that point, but you're right: it won't be terribly useful. In that case you must follow different steps. Namely, you must do something like so: openssl req \ -x509 -nodes -days 365 \ -newkey rsa:1024 -keyout mycert.pem -out mycert.pem And I would suggest including a sample code fragment like that in the documentation in order to mirror the process outlined when using the keytool. In addition the section towards the end on CSR is similarly ambiguous. So overall, I think this particular page of the documentation leaves a lot to be desired. If there is any agreement on this point, I could attempt to contribute some of these changes if desired. Documentation bug reports (especially with attached patches) are always appreciated. Put everything into bugzilla. Be sure to indicate which Tomcat version you are patching. Even better if you can use 'svn diff' to generate your patches. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAhRrYACgkQ9CaO5/Lv0PBpeACeKeNnDdgcaebUeGy7aeCxjwih t5UAoMOD1zoVwTHSyChn8gSdYCTKcCGc =G7IA -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: TOMCAT with multiple sites (one on https, others on http)
i HAVE CORRECT THIS ERROR, CONNECTOR NOW IS OUT THE ENGINE now the log files write: 7-ago-2012 18.42.52 org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.10. 7-ago-2012 18.42.52 org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true]. 7-ago-2012 18.42.53 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-80 7-ago-2012 18.42.53 org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 7-ago-2012 18.42.53 org.apache.coyote.http11.Http11AprProtocol init GRAVE: Error initializing endpoint java.lang.Exception: No Certificate file specified at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method) at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:684) at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107) at org.apache.catalina.connector.Connector.initialize(Connector.java:1058) at org.apache.catalina.core.StandardService.initialize(StandardService.java:677) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795) at org.apache.catalina.startup.Catalina.load(Catalina.java:530) at org.apache.catalina.startup.Catalina.load(Catalina.java:550) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412) 7-ago-2012 18.42.53 org.apache.catalina.startup.Catalina load GRAVE: Catalina.start LifecycleException: Protocol handler initialization failed: java.lang.Exception: No Certificate file specified at org.apache.catalina.connector.Connector.initialize(Connector.java:1060) at org.apache.catalina.core.StandardService.initialize(StandardService.java:677) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795) at org.apache.catalina.startup.Catalina.load(Catalina.java:530) at org.apache.catalina.startup.Catalina.load(Catalina.java:550) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412) 7-ago-2012 18.42.53 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2236 ms 7-ago-2012 18.42.53 org.apache.catalina.realm.JAASRealm setContainer INFO: Set JAAS app name Catalinassl 7-ago-2012 18.42.53 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 7-ago-2012 18.42.53 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 2012/8/7 Terence M. Bandoian tere...@tmbsw.com On 1:59 PM, Massimo Chirivě - Ict Consultant wrote: What version of Tomcat are you using? 6.0.16 What *exactly* does 'not ok' mean? The https site is not responding Are there any errors in the log files? NO, I have Stop and Start TOMCAT, the log files Catalina.2012-08-07.txt is attach Can you describe the symptoms of the error? When i submit http://www.sito1.net or http://www.site2.net is work correctly when i submit https://www.sito3.net is not responding. the configuration in the server.xml is correctly? 2012/8/7 Pidp...@pidster.com On 03/08/2012 17:35, Massimo Chirivě - Ict Consultant wrote: *this is my server.xml, * *the sites on the http is ok, but the site on the https is not ok?* *thank you for help* Are you just repeating the same question over over? Have you read the documents provided previously? What version of Tomcat are you using? What *exactly* does 'not ok' mean? Are there any errors in the log files? Can you describe the symptoms of the error? Have you ever read comprehended: http://www.catb.org/esr/faqs/**smart-questions.htmlhttp://www.catb.org/esr/faqs/smart-questions.html p ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.**catalina.core.** AprLifecycleListener SSLEngine=on / Listener className=org.apache.**catalina.core.JasperListener / Listener className=org.apache.**catalina.mbeans.**ServerLifecycleListener / Listener className=org.apache.**catalina.mbeans.** GlobalResourcesLifecycleListen**er / GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.**UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.**users.**MemoryUserDatabaseFactory
RE: TOMCAT with multiple sites (one on https, others on http)
snipINFO: Initializing Coyote AJP/1.3 on ajp-8009 7-ago-2012 18.42.53 org.apache.coyote.http11.Http11AprProtocol init GRAVE: Error initializing endpoint java.lang.Exception: No Certificate file specified /snip client request on Port 8009 wont pass through *until* you get the Certificate from the site administrator Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Date: Tue, 7 Aug 2012 18:52:27 +0200 Subject: Re: TOMCAT with multiple sites (one on https, others on http) From: i...@massimochirivi.net To: users@tomcat.apache.org i HAVE CORRECT THIS ERROR, CONNECTOR NOW IS OUT THE ENGINE now the log files write: 7-ago-2012 18.42.52 org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.10. 7-ago-2012 18.42.52 org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true]. 7-ago-2012 18.42.53 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-80 7-ago-2012 18.42.53 org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 7-ago-2012 18.42.53 org.apache.coyote.http11.Http11AprProtocol init GRAVE: Error initializing endpoint java.lang.Exception: No Certificate file specified at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method) at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:684) at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107) at org.apache.catalina.connector.Connector.initialize(Connector.java:1058) at org.apache.catalina.core.StandardService.initialize(StandardService.java:677) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795) at org.apache.catalina.startup.Catalina.load(Catalina.java:530) at org.apache.catalina.startup.Catalina.load(Catalina.java:550) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412) 7-ago-2012 18.42.53 org.apache.catalina.startup.Catalina load GRAVE: Catalina.start LifecycleException: Protocol handler initialization failed: java.lang.Exception: No Certificate file specified at org.apache.catalina.connector.Connector.initialize(Connector.java:1060) at org.apache.catalina.core.StandardService.initialize(StandardService.java:677) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795) at org.apache.catalina.startup.Catalina.load(Catalina.java:530) at org.apache.catalina.startup.Catalina.load(Catalina.java:550) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412) 7-ago-2012 18.42.53 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2236 ms 7-ago-2012 18.42.53 org.apache.catalina.realm.JAASRealm setContainer INFO: Set JAAS app name Catalinassl 7-ago-2012 18.42.53 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 7-ago-2012 18.42.53 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 2012/8/7 Terence M. Bandoian tere...@tmbsw.com On 1:59 PM, Massimo Chirivě - Ict Consultant wrote: What version of Tomcat are you using? 6.0.16 What *exactly* does 'not ok' mean? The https site is not responding Are there any errors in the log files? NO, I have Stop and Start TOMCAT, the log files Catalina.2012-08-07.txt is attach Can you describe the symptoms of the error? When i submit http://www.sito1.net or http://www.site2.net is work correctly when i submit https://www.sito3.net is not responding. the configuration in the server.xml is correctly? 2012/8/7 Pidp...@pidster.com On 03/08/2012 17:35, Massimo Chirivě - Ict Consultant wrote: *this is my server.xml, * *the sites on the http is ok, but the site on the https is not ok?* *thank you for help* Are you just
Re: TOMCAT with multiple sites (one on https, others on http)
Comments inline - see COMMENT On 8/7/2012 9:52 AM, Massimo Chirivì - Ict Consultant wrote: i HAVE CORRECT THIS ERROR, CONNECTOR NOW IS OUT THE ENGINE now the log files write: 7-ago-2012 18.42.52 org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.10. 7-ago-2012 18.42.52 org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true]. COMMENT You're using the APR (native libraries). You are trying to configure your connector with the Java SSL configuration. This won't work. See the following: http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html#Configuration In particular: Connector port=8443 maxThreads=200 scheme=https secure=true SSLEnabled=true SSLCertificateFile=/usr/local/ssl/server.crt SSLCertificateKeyFile=/usr/local/ssl/server.pem clientAuth=optional SSLProtocol=TLSv1/ Note that the format for the certificate (and key) is different for the two connectors. COMMENT 7-ago-2012 18.42.53 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-80 7-ago-2012 18.42.53 org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 7-ago-2012 18.42.53 org.apache.coyote.http11.Http11AprProtocol init GRAVE: Error initializing endpoint java.lang.Exception: No Certificate file specified at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method) at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:684) at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107) at org.apache.catalina.connector.Connector.initialize(Connector.java:1058) at org.apache.catalina.core.StandardService.initialize(StandardService.java:677) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795) at org.apache.catalina.startup.Catalina.load(Catalina.java:530) at org.apache.catalina.startup.Catalina.load(Catalina.java:550) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412) 7-ago-2012 18.42.53 org.apache.catalina.startup.Catalina load GRAVE: Catalina.start LifecycleException: Protocol handler initialization failed: java.lang.Exception: No Certificate file specified at org.apache.catalina.connector.Connector.initialize(Connector.java:1060) at org.apache.catalina.core.StandardService.initialize(StandardService.java:677) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795) at org.apache.catalina.startup.Catalina.load(Catalina.java:530) at org.apache.catalina.startup.Catalina.load(Catalina.java:550) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412) 7-ago-2012 18.42.53 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2236 ms 7-ago-2012 18.42.53 org.apache.catalina.realm.JAASRealm setContainer INFO: Set JAAS app name Catalinassl 7-ago-2012 18.42.53 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 7-ago-2012 18.42.53 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 2012/8/7 Terence M. Bandoian tere...@tmbsw.com On 1:59 PM, Massimo Chirivě - Ict Consultant wrote: What version of Tomcat are you using? 6.0.16 What *exactly* does 'not ok' mean? The https site is not responding Are there any errors in the log files? NO, I have Stop and Start TOMCAT, the log files Catalina.2012-08-07.txt is attach Can you describe the symptoms of the error? When i submit http://www.sito1.net or http://www.site2.net is work correctly when i submit https://www.sito3.net is not responding. the configuration in the server.xml is correctly? 2012/8/7 Pidp...@pidster.com On 03/08/2012 17:35, Massimo Chirivě - Ict Consultant wrote: *this is my server.xml, * *the sites on the http is ok, but the site on the https is not ok?* *thank you for help* Are you just repeating the same question over over? Have you read the documents provided previously? What version of Tomcat are you using? What *exactly* does 'not ok' mean? Are there any errors in the log files? Can you describe the symptoms of the error? Have you ever read comprehended:
tomcat-jdbc: correct way to create a new separated org.apache.tomcat.jdbc.pool.DataSource from another one
Hello. I have an use case in which I would want to copy an `org.apache.tomcat.jdbc.pool.DataSource`, to have two disjoint connection pools, with some pool properties changed. My first thought was to do something like this: PoolProperties props = new PoolProperties(baseDataSource.getPoolProperties()); // set custom props ... DataSource newDataSource = new DataSource(props); The problem is that the PoolProperties class doesn't have such constructor. Another option could be to share the PoolProperties object, but, for what I've looked into the code, it doesn't seem safe. The PoolProperties class implements the Cloneable interface, so I guess it's ok to use its clone method. The problem I have with this option is that DataSource#getPoolProperties() returns a PoolConfiguration which doesn't implements Cloneable. In my case I think it would be safe to cast the PoolConfiguration to PoolProperties, but it doesn't seem safe for the general case. What would be the correct way to create a new separated DataSource from another one having some properties changed? I'm using tomcat-jdbc 7.0.29 as a standalone library. Thank you. Regards, Germán
RE: tomcat-jdbc: correct way to create a new separated org.apache.tomcat.jdbc.pool.DataSource from another one
Germán Is there a reason why you would not use org.apache.commons.dbcp.datasources.SharedPoolDataSource from DBCP 1.4 http://commons.apache.org/dbcp/apidocs/index.html ? Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. From: german.ferr...@gmail.com Date: Tue, 7 Aug 2012 20:06:53 -0300 Subject: tomcat-jdbc: correct way to create a new separated org.apache.tomcat.jdbc.pool.DataSource from another one To: users@tomcat.apache.org Hello. I have an use case in which I would want to copy an `org.apache.tomcat.jdbc.pool.DataSource`, to have two disjoint connection pools, with some pool properties changed. My first thought was to do something like this: PoolProperties props = new PoolProperties(baseDataSource.getPoolProperties()); // set custom props ... DataSource newDataSource = new DataSource(props); The problem is that the PoolProperties class doesn't have such constructor. Another option could be to share the PoolProperties object, but, for what I've looked into the code, it doesn't seem safe. The PoolProperties class implements the Cloneable interface, so I guess it's ok to use its clone method. The problem I have with this option is that DataSource#getPoolProperties() returns a PoolConfiguration which doesn't implements Cloneable. In my case I think it would be safe to cast the PoolConfiguration to PoolProperties, but it doesn't seem safe for the general case. What would be the correct way to create a new separated DataSource from another one having some properties changed? I'm using tomcat-jdbc 7.0.29 as a standalone library. Thank you. Regards, Germán
Re: Tomcat 7.0.x, Windows 7 x64 professional - question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, On 8/7/12 12:01 PM, Ken Alverson wrote: We are trying to get our application Microsoft certified. Forgive my ignorance, but what the heck does a Microsoft certified application mean? There are several test cases that involve adding digital signatures, required manifest entries, etc. that do not currently exist for Tomcat exe's. I am just wondering if anyone else has run into trouble getting certified with Microsoft using Tomcat? Is it even possible to get a Java-based program certified by Microsoft in any way? I would have thought that you'd have to use Silverli..., er, .NE..., er ... I guess Metro is this year's standard technology. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAh1ccACgkQ9CaO5/Lv0PA/PACeJk5P9CrLEJglbaAn0/dxT8P6 jmYAoMBYCVad2R7+kz4k34N9XlHsc2Qw =4Z9m -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: TOMCAT with multiple sites (one on https, others on http)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Massimo, On 8/7/12 12:52 PM, Massimo Chirivì - Ict Consultant wrote: i HAVE CORRECT THIS ERROR, CONNECTOR NOW IS OUT THE ENGINE now the log files write: 7-ago-2012 18.42.52 org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.10. 7-ago-2012 18.42.52 org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true]. 7-ago-2012 18.42.53 org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-80 7-ago-2012 18.42.53 org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 7-ago-2012 18.42.53 org.apache.coyote.http11.Http11AprProtocol init GRAVE: Error initializing endpoint java.lang.Exception: No Certificate file specified at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method) at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:684) ...and there is the problem: you need to use APR configuration and not JSSE configuration in your Connector. Specifically, don't use keystoreFile, etc. Instead, use SSLCertificateFile, etc. See http://tomcat.apache.org/tomcat-6.0-doc/apr.html#HTTPS for reference. Unfortunately, you have (likely) gone through the grueling procedure of dealing with Java keystores and now you can use the much simpler PEM files that OpenSSL (via APR) use. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAh3LEACgkQ9CaO5/Lv0PBjWgCdFgnZMuHCwmGwm4+lFl+mPJ9N 8KUAni+epVauSTrMFa8NHQXudBbPAYOA =t4Zt -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: TOMCAT with multiple sites (one on https, others on http)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 8/7/12 1:12 PM, Martin Gainty wrote: snipINFO: Initializing Coyote AJP/1.3 on ajp-8009 7-ago-2012 18.42.53 org.apache.coyote.http11.Http11AprProtocol init GRAVE: Error initializing endpoint java.lang.Exception: No Certificate file specified /snip client request on Port 8009 wont pass through *until* you get the Certificate from the site administrator It appears that the OP is not using AJP at all, so your response does not help. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAh3REACgkQ9CaO5/Lv0PCmjgCgogIeyhqfRIP96KuDOWz7Q7gI /t8AoKDKdMSHsNKwCuF+k2cZvVmadex7 =42Bh -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: ClassCastException org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl
-Original Message- From: Mark Thomas [mailto:ma...@apache.org] Again, that class is not a Tomcat class. As far as I can tell, that is party of Jetty's JSP/EL implementation. snip Anyway, if you start adding JARs from one container into another then all sorts of things can and will go wrong. I see no way to protect Tomcat against this. Mark So you are saying that Tomcat should not be responsible for preventing app1 from unintentionally loading a class from app2/WEB-INF/lib/[jetty-jsp-el].jar? I thought that this was a contravention of Tomcat classloading rules. Is your point that the jetty jar is doing some magic to force its class into another apps classloader tree, and this sort of thing is actually allowable for an app using container jars? If you could provide some more details on how one can intentionally inject your own classes into other apps for their use, that would be interesting, but it does sound like a bit of a security hole. Note, I don't know very much about the technical details of classloaders, I am just trying to understand how something occurred which seems to be against how things are supposed to work. P.S. The jetty jar actually appeared in app2 due to maven dependencies, it was not added as a direct dependency for app2. Dale