tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Franz <169...@gmail.com>
Subject Re: Installing tomcat 6
Date Tue, 04 Feb 2014 23:22:23 GMT
On Tue, Feb 4, 2014 at 7:08 PM, Neven Cvetkovic
<neven.cvetkovic@gmail.com>wrote:

> On Tue, Feb 4, 2014 at 3:13 PM, Franz <169101@gmail.com> wrote:
>
> > On Tue, Feb 4, 2014 at 6:08 PM, Mark Thomas <markt@apache.org> wrote:
> >
> > > On 04/02/2014 20:04, Franz wrote:
> > >
> > > > export JAVA_HOME="/opt/openemm/java"
> > > > cd tomcat
> > > > bin/startup.sh
> > >
> > >
> > Using CLASSPATH:       /opt/openemm/tomcat/bin/bootstrap.jar
> > bin/catalina.sh: line 305:
> > /opt/openemm/tomcat/"/opt/openemm/java"/bin/java: No such file or
> directory
> > bin/catalina.sh: line 305: exec:
> > /opt/openemm/tomcat/"/opt/openemm/java"/bin/java: cannot execute: No such
> > file or directory
> >
>
> Franz,
>
> I assume you followed instructions for installation:
>
> http://sourceforge.net/projects/openemm/files/OpenEMM%20documentation/Documentation%20(latest%20versions)
>
> Did you test if Java (JDK) was properly set: (pg 4/27 of the installation
> guide), e.g.
>
>   /opt/openemm/java/bin/java -version
>
> You need to make sure JDK is installed properly, because Tomcat needs it :)
>
>
Yes this works.


> Daniel already pointed out you are probably not properly setting up
> JAVA_HOME, try without quotes (pg 5/27 of manual suggests using quotes),
> e.g.
>
>   export JAVA_HOME=/opt/openemm/java
>   /opt/openemm/tomcat/bin/catalina.sh run
>
> (CTRL+C to stop the process)
>
> What does the output say? Was it successfully loaded?
>
>
Yes everything works many thanks.  I am able to access the page with the
browser. You guys are very helpful.


> After you get it working with catalina.sh run, you probably want to do the
> following as well:
> 1) setup JAVA_HOME somewhere in the profile scripts (e.g. create
> /etc/profile.d/java.sh file)
>

yes, unfortunately openemm tutorial says nothing about that.  Now there is
not java.sh file there. So you mean creating a java.sh file with inside
only:

export JAVA_HOME=/opt/openemm/java

and what does it? Does it setup JAVA_HOME once and for all?

2) configure tomcat as a centos service (chkconfig+rc.d script), so it
> starts up automatically when you reboot your system.
>

This seems complicated too.   Does it means preparing a file tomcat.sh in
/etc/rc.d containing:

/opt/openemm/tomcat/bin/startup.sh

?

many thanks again
Franz

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message