apache tomcat multiple instances on gentoo

user $/usr/share/tomcat-7/gentoo/tomcat-instance-manager.bash
No action specified!
Usage: /usr/share/tomcat-7/gentoo/tomcat-instance-manager.bash <--create|--remove|--help> [--suffix s][--user u][--group g]

  Options:
    --help:
      show this text.
    --create:
      create a new instance
    --remove:
      remove an existing instance.
    --suffix SUFFIX:
      a suffix for this instance. the suffix may not collide with an already
      existing instance, defaults to empty.
    --user USER:
      the user for which to configure this instance for. The user needs to
      exist already. defaults to tomcat.
    --group GROUP:
      the group for which to configure this instance for. The group needs to
      exist already. defaults to tomcat.

Examples:

/usr/share/tomcat-7/gentoo/tomcat-instance-manager.bash --create --suffix testing --user tacmot --group tacmot
/usr/share/tomcat-7/gentoo/tomcat-instance-manager.bash --remove --suffix testing

Follow the information in the help to create new Tomcat instances. Tomcat instances use the following layout:

  • /etc/conf.d/tomcat-SLOT-suffix: configuration file for running Tomcat instance services
  • /etc/init.d/tomcat-SLOT-suffix: controlling script for the Tomcat instance
  • /etc/tomcat-SLOT-suffix/: directory containing standard Tomcat configuration files
  • /var/lib/tomcat-SLOT-suffix/: Catalina base directory
  • /var/log/tomcat-SLOT-suffix/: directory for instance log files

Total Commander all file size

A CTRL+Space-ek helyett:

Alt+Shift+Enter

eclipse/sts maven run problem

ha a hiba:

-Dmaven.multiModuleProjectDirectory system propery is not set Check $M2_HOME environment variable and mvn script match.

 

megoldás:

Window–> Preference –> Java –> Installed JREs –> Edit In the edit Default VM arguments you need to put If you already set the maven home. -Dmaven.multiModuleProjectDirectory=M2_HOME (For Windows machine) -Dmaven.multiModuleProjectDirectory=$M2_HOME (For Mac OS X)

 

src:

http://stackoverflow.com/questions/29285148/eclipse-error-setting-up-maven-project-for-class-exercise-check-m2-home-enviro

Eclipse Maven problem

Window-> Preference -> Java -> Installed JREs -> Edit

In the edit Default VM arguments you need to put

If you already set the maven home.

-Dmaven.multiModuleProjectDirectory=$M2_HOME

 

Veracrypt mount

Veracrypr mount opció ha az alábbi hibát kapjuk:

device-mapper: reload ioctl on veracrypt1 failed

 

az alábbi opciót kell kiadni:

-m=nokernelcrypto

 

Eclipse pin to taskbat-vm C:\Program Files\Java\jre7\bin

Annyit szívtam már ezzel és mindig guglizni kellett, ezért leírom ide is:

eclipse/sts.ini-be:

-vm
C:\Program Files\Java\jre7\bin

 

Linux Huge file edit – hexedit

Elég kis hasznos progi:

hexedit

használata:

$ hexedit largefile.sql.dump

tab (switch to ASCII side)
space (delete with white spacce character)
F2 (save)/Ctrl-X (save and exit)/Ctrl-C (exit without saving)

 

Letölthető: http://rigaux.org/hexedit.html

vagy nálam a bináris: hexedit

 

libtinfo.so.5 hiányra a megoldás:

/lib(64) -ben a libncurses.so.5.* symlinkelése a llibtinfo.so.5-re és már megy is.

Apache Solr Bad Request – FULL HEAD hiba

midne a ket esetben a HTTP request size a problémás.

 

Jett: FULL HEAD a hiba

Tomcat eseteben: Bad Request

 

kesőbb kifejtem.

Maven install

mvn install:install-file -Dfile=mscpdf.jar -DgroupId=microsec.mscpdf -DartifactId=mscpdf -Dversion=3.2.7.10 -Dpackaging=jar -DgeneratePom=true

vagy:

mvn deploy:deploy-file -DgroupId=microsec.com.itextpdf -DartifactId=itext -Dversion=3.2.7.10 -Dpackaging=jar -Dfile=iText.jar -DrepositoryId=dev-releases -Durl=http://housemaster:8082/dev-releases

 

Gentoo szerveren Tomcat-ben, alkalmazás specifikus propertie fájl classpath-ra tétele

Először is megnyitjuk a tomcat conf-ot

vi /etc/conf.d/tomcat-7-main

majd itt a

az alábbi sort módosítjuk pl:

JAVA_OPTS="-Dtimetracker_config_location=file:///var/lib/tomcat-7-main/properties/timetracker.properties