Can't get JetBrains License Server to run when deployed to existing Apache Tomcat instance -


unfortunately, jetbrains not have place report issues license server, i'm having ask here last resort. can me!

i trying jetbrains license server installed on ubuntu 14.04. instructions i've been following here. far, i've successfully:

  • installed oracle java 8 webupd8team using apt
  • installed apache tomcat 7 using apt
  • configured java_home environment variable creating /usr/share/tomcat7/bin/setenv.sh recommended tomcat documentation
  • ran sudo chmod +x setenv.sh ensure script executable
  • deployed licenseserver.war /var/lib/tomcat7/webapps
  • verified war file unpacked correctly when tomcat starts

however, when @ tomcat's logs, see lots of java exceptions appear permissions-related have no idea how resolve them. here sampling of exceptions appear in catalina.out:

error pluginmanagerimpl - error while configuring logging java.io.filenotfoundexception: /usr/share/tomcat7/logs/jetbrains-license-server/cfc7082d-ae43-4978-a2a2-46feb1679405.log (no such file or directory)         @ java.io.fileoutputstream.open0(native method)         @ java.io.fileoutputstream.open(fileoutputstream.java:270)         @ java.io.fileoutputstream.<init>(fileoutputstream.java:213)         @ java.io.fileoutputstream.<init>(fileoutputstream.java:133)         @ org.apache.log4j.fileappender.setfile(fileappender.java:289)         @ org.apache.log4j.fileappender.<init>(fileappender.java:108) ...  error xbm0h: directory /usr/share/tomcat7/db cannot created.         @ org.apache.derby.iapi.error.standardexception.newexception(unknown source)         @ org.apache.derby.impl.services.monitor.storagefactoryservice$9.run(unknown source)         @ java.security.accesscontroller.doprivileged(native method)         @ org.apache.derby.impl.services.monitor.storagefactoryservice.createserviceroot(unknown source)         @ org.apache.derby.impl.services.monitor.basemonitor.bootservice(unknown source)         @ org.apache.derby.impl.services.monitor.basemonitor.createpersistentservice(unknown source) ... 

unfortunately, jetbrains' documentation extremely sparse application , don't have experience tomcat. can out there help?

your problem permissions issue tomcat7 directory located here: /usr/share/tomcat7. tomcat needs write permission directory in order create folder named db. tomcat needs write permission log directory in /var/lib/tomcat7/webapps.

after time troubleshooting problem , contacting jetbrains regarding problem. wrote following documentation in order keep track of did working. give credit jetbrains tech support helping point me in right direction resolving permissions issue well.

jetbrains license server (linux installation)

  • install ubuntu 14.04 lts x86_64

    apt-get update && apt-get upgrade -y

install java se development kit 8

cd /etc wget --no-check-certificate --no-cookies --header "cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u51-b16/jdk-8u51-linux-x64.tar.gz (thanks stackoverflow)

tar xzvf jdk-8u51-linux-x64.tar.gz

  • change java_home location typing: export java_home=/etc/jdk1.8.0_51

  • verify java home location typing: echo $java_home outputs: /etc/jdk1.8.0_51

install tomcat7

apt-get install tomcat7 tomcat7-admin

  • change tomcat's default java home location typing in: vim /etc/default/tomcat7 (thanks askubuntu.com)

below commented line stating: #java_home=/usr/lib/jvm/openjdk-6-jdk-8u51-linux-x64 type in following: java_home=/etc/jdk1.8.0_51

  • next setup user tomcat7 in:
    vim /etc/tomcat7/tomcat-users.xml

    by entering following between (remove single quotes) <'tomcat-users'> <'/tomcat-users'> tags <'role rolename="manager-gui"/'> <'user username="<username>" password="<password>" roles="manager-gui">

  • you can manage tomcat opening web browser http://servername.example.com:8080/manager , entering in username/password in tomcat-users tags.

install jetbrains license server note: license server require specific license key work it. contact jetbrains sales team regarding license key use license server.

cd /var/lib/tomcat7/webapps/ wget http://download.jetbrains.com/lcsrv/licenseserver-tomcat-402-x64.zip unzip licenseserver-tomcat-402-x64.zip mv ./apache-tomcat-7.0.52-x64/webapps/licenseserver.war . cd /usr/share chgrp -r tomcat7 tomcat7 chmod 775 tomcat7 service tomcat7 restart

open web browser http://servername.example.com:8080/licenseserver. proceed setting license server, per jetbrains documentation.

i have sent information jetbrains , informed them can repost on website long credit given members have helped create documentation.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -