Post

Visualizzazione dei post con l'etichetta Tomcat

Tomcat “java.lang.OutOfMemoryError: PermGen space” error

http://stackoverflow.com/questions/88235/how-to-deal-with-java-lang-outofmemoryerror-permgen-space-error http://frankkieviet.blogspot.ca/2006/10/classloader-leaks-dreaded-permgen-space.html On Ubuntu Precise Pangolin 12.04 you can edit catalina.sh @ /usr/share/tomcat6/bin CATALINA_OPTS="-Xms128m -Xmx256m -XX:MaxPermSize=128m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled"

Appunti Tomcat + Apache + SSL + mod_proxy

http://www.akadia.com/services/ssh_test_certificate.html http://www.devside.net/articles/ssl-key-pair http://irwinj.blogspot.com/2008/11/unable-to-load-config-info-from.html http://www.hwupgrade.it/forum/archive/index.php/t-1206587.html http://wiki.zimbra.com/index.php?title=Multiple_SSL_Virtual_Hosts Generazione del Cetificato per Apache (ssl.bat) @echo off openssl req -config ..\conf\openssl.cnf -new -out server.csr rem Removes pass-phrase from private key (privkey.pem), creating server.key. openssl rsa -in privkey.pem -out server.key rem Creates a self-signed certificate, server.crt (public key, also known as the 'Certificate'). openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 365 rem Create the default location of public key file server.crt, as specified under ssl.conf. rem mkdir ..\conf\ssl.crt rem Create the default location of private key server.key, as specified under ssl.conf. rem mkdir ..\conf\ssl.key rem Move public and private keys to t...

CDI su Tomcat 6 (e ancora su JSF2 su Tomcat 6)

http://seamframework.org/Weld http://weblogs.java.net/blog/cayhorstmann/archive/2009/12/29/jsf-20-and-tomcat -- Mirco Attocchi

JSF 2.0 and Tomcat

A good article: http://weblogs.java.net/blog/cayhorstmann/archive/2009/12/29/jsf-20-and-tomcat

JPA (Hibernate) and Tomcat

http://javanotepad.blogspot.com/2007/05/jpa-entitymanagerfactory-in-web.html http://javanotepad.blogspot.com/2007/08/managing-jpa-entitymanager-lifecycle.html https://blueprints.dev.java.net/bpcatalog/ee5/persistence/webonlyapp.html http://code.google.com/p/scoped-entitymanager/

Apache2 Reverse Proxy per Tomcat

Editate i seguenti files - Linux: 000-default in /etc/apache2/sites-enabled - Windows: httpd.conf 1) Attivate i moduli LoadModule deflate_module modules/mod_deflate.so LoadModule deflate_module modules/mod_proxy.so LoadModule deflate_module modules/mod_proxy_http.so oppure in Debian/Ubuntu sudo a2enmod deflate sudo a2enmod proxy_http 2) Aggiungete alla fine dei files #Aggiunto da Mirco ProxyPreserveHost On ProxyRequests Off AddOutputFilterByType DEFLATE text/html text/plain text/xml ProxyPass http://localhost:8080/atreeflow ProxyPassReverse http://localhost:8080/atreeflow Order deny,allow Allow from all

Tomcat 6 JSF 1.2 JSTL 1.2

To run trinidad-demo-1.2.4 on apache-tomcat-6.0.14 -- Update How to set up Tomcat 6 to work with JSTL 1.2

Setting Up Tomcat 5 on Ubuntu 6.06

http://www.spaceprogram.com/knowledge/2006/05/installing-java-5-jdk-and-tomcat-on.html

DataSourceRealm with JNDI Resource on context.xml

If you declare a <Resource/> into context.xml you must use localDataSource="true" with <Realm/> EXAMPLE driverClassName="org.gjt.mm.mysql.Driver" maxActive="10" maxIdle="4" maxWait="5000" name="jdbc/testlogin" password="test" type="javax.sql.DataSource" url="jdbc:mysql://localhost/testlogin" username="test"/> <Realm className="org.apache.catalina.realm.DataSourceRealm" debug="99" dataSourceName="jdbc/testlogin" userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles" roleNameCol="role_name" localDataSource="true"/> Thank to: http://www.junlu.com/msg/108880.html

Apache Reverse Proxy da usare con Tomcat

Un po' di documentazione la trovate qui: http://www.apacheweek.com/features/reverseproxies http://httpd.apache.org/docs/2.0/mod/mod_proxy.html http://www.tldp.org/HOWTO/MMBase-Inst-HOWTO/x968.html http://cwiki.apache.org/GMOxDOC12/configure-apache-httpd-as-a-reverse-proxy-modproxy.html Ecco un esempio di configurazione di un server Apache in modalità Reverse Proxy, con diversi Virtual Host (basati su nome DNS), per poter pubblicare diversi siti web con un'unico IP Pubblico. Questo è un file httpd.conf di base della versione Apache 2.0.58 per Windows, con le opzioni necessarie allo scopo attivate/configurate: Aggiornamento: Ho preparato un file aggiornato semplificato: <IfModule mod_proxy.c> #<Proxy *> # Order deny,allow # Allow from all #</Proxy> ProxyPreserveHost On #ProxyRequests Off # Gia Impostato da proxy.config in debian <Location /webappname> AddOutputFilterByType DEFLATE text/html text/plain text/xml te...