Showing posts with label tomcat. Show all posts
Showing posts with label tomcat. Show all posts

Thursday, December 27, 2012

Install JMagick

  1. Install imagemagick: sudo apt-get install imagemagick --fix-missing
  2. Install jmagick: sudo apt-get install jmagick --fix-missing
  3. Make sure that jmagick binary files (jmagick*.so or jmagick*.dll for windows os) are accessible for jvm. This files mast be present in /usr/lib for linux os or in java_home/bin folders. If this files are absent simple copy it from jmagick installation package
If you start with Tomcat. Set variables
-Djava.library.path=/usr/local/lib
-Djmagick.systemclassloader=no
[Update] 
If you use Windows x64 and tomcat 7

  1. Download jdk for i586 arhitecture
  2. Copy jmagick.jar to JAVA_HOME_i586/jre/liv/ext directory
  3. Copy jmagick.dll to system_32

Friday, November 30, 2012

IntelliJ IDEA with Tomcat and HotSwap

1. Перед Run нужно войти в Edit Configuration... (настройка запуска)
2. Выбрать во вкладке Deployment артифакт (+ -> Artifact...) свой war-файл с exploded
3. Установить во вкладке Server разделы on Frame Deactivation и On Update параметр Update resources and classes
4. Запускать можно как в режиме Debug, так и Release

Thursday, November 22, 2012

Tomcat7 install for Ubuntu

1. Search all info about Apache Tomcat 7:
#sudo apt-cache search tomcat

2. Install all files for tomcat 7:
#sudo apt-get install tomcat7-examples
#sudo apt-get install tomcat7-admin
#sudo apt-get install tomcat7

3. For example, stop and start tomcat
#sudo /etc/init.d/tomcat7 stop
#sudo /etc/init.d/tomcat7 start

4. Where is your config file? Here it is:
/etc/tomcat7

Sunday, November 16, 2008

Tomcat 6 + Apache 2

This is the continuing guideline of "Tomcat 6 installation guide for Feisty". It is about the basic setting between tomcat 6 and apache 2 which make them work better, and I hope you enjoy it!

Step 1: install the libapache2-mod-jk
sudo apt-get install libapache2-mod-jk

Step 2: After that, check whether there is jk.load in the apache 2 modules
sudo ls /etc/apache2/mods-enabled/
If your result like this, that's fine:
cgi.load mod-security.conf php5.conf proxy.conf rewrite.load userdir.load
jk.load mod-security.load php5.load proxy.load userdir.conf


Step 3: Edit and save the two lines of workers.properties
sudo vi /etc/libapache2-mod-jk/workers.properties
workers.tomcat_home=/usr/share/tomcat6
workers.java_home=/usr/lib/Java6U1


Step 4: apache2.conf setting
Open and copy all the content in httpd_example_apache2.conf
sudo vi /usr/share/doc/libapache2-mod-jk/httpd_example_apache2.conf
then paste the content following the last line of apache2.conf

Step 5: Edit rc.local
sudo vi /etc/rc.local
export JDK_HOME=/usr/lib/Java6u1
export JAVA_HOME=/usr/lib/Java6u1


[Step 6: Restart apache2
sudo /etc/init.d/apache2 restart

Step 7: Restart tomcat
sudo /usr/share/tomcat6/bin/./shutdown.sh
sudo /usr/share/tomcat6/bin/./startup.sh


Now the basic setting is finished, then load your jsp files to usr/share/tomcat6/webapps/ROOT