Re: How to remove port number from https adress and redirect http to https
Hi Christian, you have to replace all 8080 with 80 and all 8443 with 443. 80 is standard port for http and 443 is standard port for https. So if the URL is https://adress, the client requests the service via port 443. Tomcat uses different ports to avoid port conflicts with other application servers running on the same machine at the same time. René On Fri, 6 Jul 2007 00:26:24 -0700 (PDT) christianhau [EMAIL PROTECTED] wrote: Hi! I have set up a tomcat server with ssl that works fine as long as I go to the adress https://adress:8443 I want to get rid of the port number, is there any easy way to do this so that tomcat understands the https request that comes in? Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true clientAuth=false keystorePass=changeit sslProtocol=TLS keystoreFile=/root/.keystore truststoreFile=/usr/lib/jvm/java-1.5.0-sun/jre/lib/security/cacerts / This is my ssl connector in my server.xml. I tried getting a redirct from http to https going but couldn't do that in tomcat alone, any tips on that aswell? I have done this: Connector port=8080 protocol=HTTP/1.1 redirectPort=8443 / With no luck... Thanks for any help!! -- View this message in context: http://www.nabble.com/How-to-remove-port-number-from-https-adress-and-redirect-http-to-https-tf4034030.html#a11459871 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to remove port number from https adress and redirect http to https
Not sure wether this could help: security-constraint web-resource-collection web-resource-nameall-except-attachments/web-resource-name url-pattern*.js/url-pattern url-pattern*.jsp/url-pattern url-pattern*.jspa/url-pattern url-pattern*.css/url-pattern url-pattern/browse/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint I needed those to configure JIRA to do everything via SSL - http://confluence.atlassian.com/display/JIRA/Running+JIRA+over+SSL+or+HTTPS So maybe you miss the *? René On Fri, 6 Jul 2007 03:40:50 -0700 (PDT) christianhau [EMAIL PROTECTED] wrote: Thanks man! I have tried a similar approach with the web.xml but no luck. This is what I wrote in web.xml security-constraint web-resource-collection web-resource-nameEntire Application/web-resource-name url-pattern/cas/WEB-INF/view/jsp/simple/ui/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint Now I am not 100% sure if the pattern is correct, how would I check that? And another thing, you mentioned a suitable servlet filter? How would you go about making a servlet filter for this purpose and where would you put it? As you can tell from my question I have little experience with servlet filters.. Thanks again :) Lyallex wrote: Hi This is my first contribution to this list and I expect others will have better ways of doing it but ... The way I managed to get his working is to set the ssl connector port to the default ssl port (443) and my non-ssl connector port to the default http port (80) Obviously there are issues starting Tomcat on these ports on *NIX systems but judging by the following entry in your ssl connector (keystoreFile=/root/.keystore) you appear to have access to root. That should do it Also in my etc/hosts file I have set 127.0.0.1 www.mywebapp.co.uk and my app is the root web app so now, combined with the following in web.xml security-constraint ... user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint ... /security-constraint and a suitable servlet filter I can switch between http and https almost at will with no messing about with ports just by asking for http://www.mywebapp.co.uk Hope this helps Cheers Duncan On 7/6/07, christianhau [EMAIL PROTECTED] wrote: Hi! I have set up a tomcat server with ssl that works fine as long as I go to the adress https://adress:8443 I want to get rid of the port number, is there any easy way to do this so that tomcat understands the https request that comes in? Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true clientAuth=false keystorePass=changeit sslProtocol=TLS keystoreFile=/root/.keystore truststoreFile=/usr/lib/jvm/java-1.5.0-sun/jre/lib/security/cacerts / This is my ssl connector in my server.xml. I tried getting a redirct from http to https going but couldn't do that in tomcat alone, any tips on that aswell? I have done this: Connector port=8080 protocol=HTTP/1.1 redirectPort=8443 / With no luck... Thanks for any help!! -- View this message in context: http://www.nabble.com/How-to-remove-port-number-from-https-adress-and-redirect-http-to-https-tf4034030.html#a11459871 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-remove-port-number-from-https-adress-and-redirect-http-to-https-tf4034030.html#a11462081 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Update Tomcat 5 - 6 .. JDBC driver problem
Hello, I am getting the following exception with tomcat 6.0.13: Cannot create JDBC driver of class '' for connect URL 'null' This exception I dont get with tomcat 5.5.23 I put the mysql jdbc driver (version 5.x) into apache-tomcat-x.x.x/common/lib Anyone knows what the problem could be? (OS: Linux Debian, Java Version 1.5) Regards René - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Update Tomcat 5 - 6 .. JDBC driver problem
Thanks for your reply. Unfortunately I am still getting the same error with tomcat 6.0.13 Regards René On Thu, 28 Jun 2007 02:34:10 -0700 (PDT) gregory hans [EMAIL PROTECTED] wrote: try to put your jdbc in your web application (WEB-INF/LIB/). stop the service first, put the jdbc then start again... Rene Guenther [EMAIL PROTECTED] wrote: Hello, I am getting the following exception with tomcat 6.0.13: Cannot create JDBC driver of class '' for connect URL 'null' This exception I dont get with tomcat 5.5.23 I put the mysql jdbc driver (version 5.x) into apache-tomcat-x.x.x/common/lib Anyone knows what the problem could be? (OS: Linux Debian, Java Version 1.5) Regards René - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Update Tomcat 5 - 6 .. JDBC driver problem
Alas, still the same error. So you think, that I get this error because tomcat isnt able to find the .jar file with the MySQL driver? Maybe something changed between Tomcat 5 and 6 related to context? Regards René On Thu, 28 Jun 2007 18:37:21 +0800 Allen 孙 [EMAIL PROTECTED] wrote: Put your jars into: *apache-tomcat-6.x.x/lib* will be just fine. 2007/6/28, Rene Guenther [EMAIL PROTECTED]: Thanks for your reply. Unfortunately I am still getting the same error with tomcat 6.0.13 Regards René On Thu, 28 Jun 2007 02:34:10 -0700 (PDT) gregory hans [EMAIL PROTECTED] wrote: try to put your jdbc in your web application (WEB-INF/LIB/). stop the service first, put the jdbc then start again... Rene Guenther [EMAIL PROTECTED] wrote: Hello, I am getting the following exception with tomcat 6.0.13: Cannot create JDBC driver of class '' for connect URL 'null' This exception I dont get with tomcat 5.5.23 I put the mysql jdbc driver (version 5.x) into apache-tomcat-x.x.x/common/lib Anyone knows what the problem could be? (OS: Linux Debian, Java Version 1.5) Regards René - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sincerely yours 孙 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5.5 Ubuntu startup error
Probably the options setting should be -Xmx=128m. I am not sure, but you should check the enviroment variables: CATALINA_OPTS JAVA_OPTS and the startup scripts in %CATALINA_HOME%\bin René On Fri, 8 Jun 2007 14:14:05 +1000 Will Parkinson [EMAIL PROTECTED] wrote: Hi All, I am having a few problems with tomcat 5.5 on ubuntu feisty When i start the tomcat service, its outputs that its started ok, but when i view the status (/etc/init.d/tomcat5.5 status) it says the service is not running. This is in the /var/log/tomcat5.5/catalina.out logfile libgcj: unknown option: -Xmx128M 08/06/2007 14:04:55 5890 jsvc.exec error: Cannot create Java VM 08/06/2007 14:04:55 5889 jsvc.exec error: Service exit with a return value of 1 Does anybody know how to fix this problem? Or does anybody know where to find the libgcj file so i can fix it myself? Cheers Will - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: permgen w hibernate and webapp reload
Some encounter this problem also with jetty. Related to PermGen errors are often tools like hibernate, spring, cglib, tomcat and sun's java implementation (instead of BEAs JRockit). I recently found the following Links: http://wiki.caucho.com/OutOfMemoryError http://opensource.atlassian.com/projects/hibernate/browse/HHH-2481 http://forum.hibernate.org/viewtopic.php?t=947902postdays=0postorder=aschighlight=leak+permgenstart=45 http://forum.springframework.org/showthread.php?t=21383 www.jroller.com/page/agileanswers/20060623 But those blog entries are the most entertaining ones: http://my.opera.com/karmazilla/blog/2007/03/13/good-riddance-permgen-outofmemoryerror http://my.opera.com/karmazilla/blog/2007/03/15/permgen-strikes-back The following tomcat settings help (at least you increase the number of possible redeploys): PermSize: 256m MaxPermSize: 512m René On Fri, 1 Jun 2007 14:09:04 +0100 Torgeir Veimo [EMAIL PROTECTED] wrote: I seen the problem with permgen errors when one is redeploying a webapp that uses hibernate described in a number of places, but I haven't seen any solution for it. The Tomcat FAQ even suggest that this is a problem with WebAppClassLoaders, http://tomcat.apache.org/ faq/memory.html#why . This is an extremely annoying bug, so I'm wondering, is this impossible to fix? Why does tomcat exhibit this problem when Jetty does not? -- Torgeir Veimo [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Installer including web application and tomcat
Hello, we recently purchased JIRA, which is offering a standalone version for windows and for linux which already includes a tomcat server. Can anyone give me hint where to find informations to do something similiar with my web application? Maybe also a mysql server can be included? Thanks a lot Rene - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installer including web application and tomcat
Thanks a lot! I will try out the procedure you described. Anyone knows a similiar procedure for a linux based installer. Regards René On Fri, 25 May 2007 11:54:49 +0200 Gregor Schneider [EMAIL PROTECTED] wrote: I just did exactly the same for some of our international clients, that do not have internet-access / slow internet-connections. However, I did that for windows only. The procedure as follows: - I used a free installer (google for InnoSetup), you can also choose your preferred cross-platform-installer, if you like - Unpack tomcat (the installation-zip or tar) to the installation-source-directory - change, if you like, the port from 8080 to 80 - move your war-archives to $catalina_home/webapps - as a database, I used memory-based HSQLDB since it doesn't require an additional JVM and it's pretty easy to include it as a bundle into tomcat - just another jar-archive - pack Tomcat and your database it with the installer-program - tell the installer-program to run $catalina_home/bin/service.bat to install Tomcat as a service, in case you're running windows - tell your installer to create some nice start-menue-entries like your app - http://localhost/yourapp; That's it so far. Cheers Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]