how to configure tomcat starting

Issues related to applications and software problems
Post Reply
philo_neo
Posts: 3
Joined: 2015/02/13 22:01:46

how to configure tomcat starting

Post by philo_neo » 2015/02/13 22:20:57

hi,
I have intalled Centos 7 on intel Q6600 quad core, server with GUI, so Eclipse 64 bit and JBoss 7 GA are intalled tomcat start with an error, For ma documentation i read this link : http://www.davidghedini.com/pg/entry/in ... _on_centos, but this my output terminal VT300 :

Code: Select all

[root@localhost init.d]# service tomcat restart
Using CATALINA_BASE:   /usr/share/apache-tomcat-7.0.59
Using CATALINA_HOME:   /usr/share/apache-tomcat-7.0.59
Using CATALINA_TMPDIR: /usr/share/apache-tomcat-7.0.59/temp
Using JRE_HOME:        /usr/java/jdk1.7.0_59
Using CLASSPATH:       /usr/share/apache-tomcat-7.0.59/bin/bootstrap.jar:/usr/share/apache-tomcat-7.0.59/bin/tomcat-juli.jar
/usr/share/apache-tomcat-7.0.59/bin/catalina.sh: line 437: /usr/java/jdk1.7.0_59/bin/java: No such file or directory
Using CATALINA_BASE:   /usr/share/apache-tomcat-7.0.59
Using CATALINA_HOME:   /usr/share/apache-tomcat-7.0.59
Using CATALINA_TMPDIR: /usr/share/apache-tomcat-7.0.59/temp
Using JRE_HOME:        /usr/java/jdk1.7.0_59
Using CLASSPATH:       /usr/share/apache-tomcat-7.0.59/bin/bootstrap.jar:/usr/share/apache-tomcat-7.0.59/bin/tomcat-juli.jar
Tomcat started.
[root@localhost init.d]# 
The incident is an know error (outup): /usr/share/apache-tomcat-7.0.59/bin/catalina.sh: line 437: /usr/java/jdk1.7.0_59/bin/java: No such file or directory


Regards
Philippe

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: how to configure tomcat starting

Post by TrevorH » 2015/02/13 23:51:19

You appear to be trying to use an Oracle JDK for your java runtime. Did you download and install that? If so, are you sure you installed the right version? 1.7.0_59 is probably quite old - I have 1.7.0_67 here and haven't updated it recently so it's probably not the latest either.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: how to configure tomcat starting

Post by aks » 2015/02/14 19:25:53

Yeah that's fairly old (although it's a JRE version 7, so what the hell - apart of the billions of security issues - thanks Oracle).

It's probably down to the JAVA_HOME environment variable - as in when start catalina, we can't find the java executable (never mind all the other parts of java). Fall at first hurdle if you like.

I think you can also "mash" in the JRE/JDK path into catalia.sh (which you may or may not have depending on your Tomcat instance).

philo_neo
Posts: 3
Joined: 2015/02/13 22:01:46

Re: how to configure tomcat starting

Post by philo_neo » 2015/02/14 20:29:31

It is "OK" for mir tomcat at url : http://127.0.0.1:8080
But now, how can do for administration of GUI (web) ?

Regards
Philippe

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: how to configure tomcat starting

Post by aks » 2015/02/15 16:38:49

You mean the webappsa that come with Tomcat? Have a look in your server.xml. Also see here: http://tomcat.apache.org/tomcat-7.0-doc ... howto.html

Personally I never use those webapps, there's a long history of memory leaks and security problems with them.

Post Reply