Having trouble getting tomcat started

96 views
Skip to first unread message

Danton Barnes

unread,
May 19, 2015, 12:50:33 PM5/19/15
to saka...@apereo.org
I can't seem to get tomcat started.  here is the error I'm getting when I try to change directories to $CATALINA_HOME/bin:

~# cd $CATALINA_HOME/bin
bash: cd: /opt/tomcat/bin: No such file or directory

I understand part of it but I set up a symlink between /opt/tomcat and /opt/apache-tomcat-7.0.62 and it still doesn't work.  I followed the instructions but I'm still not sure I did it correctly.  Here is where I get tripped up:

  1. Extract to /opt (symlink the apache-tomcat-7.0.x directory to tomcat after extracting)
    • Windows users should just rename the directory since they cannot symlink
  2. Extract the files to the same location as tomcat itself

Am I to extract it to /opt then again to /opt/tomcat before I symlink or just extract apache-tomcat-7.0.29 to /opt and symlink /opt/tomcat to /opt/apache-tomcat-7.0.29?  Please help. 



Brian Jones

unread,
May 19, 2015, 12:53:32 PM5/19/15
to saka...@apereo.org
The latter: extract to /opt, then symlink /opt/apache-tomcat-7.0.x to
/opt/tomcat/

Brian Jones
Programmer/Analyst
Information Technology Services
Support Services Building, Suite 4300
Western University
(519) 661-2111 x86969
bjon...@uwo.ca

On 2015-05-19 12:50 PM, Danton Barnes wrote:
> I can't seem to get tomcat started. here is the error I'm getting when
> I try to change directories to $CATALINA_HOME/bin:
>
> ~# cd $CATALINA_HOME/bin
> bash: cd: /opt/tomcat/bin: No such file or directory
>
> I understand part of it but I set up a symlink between /opt/tomcat and
> /opt/apache-tomcat-7.0.62 and it still doesn't work. I followed the
> instructions but I'm still not sure I did it correctly. Here is where I
> get tripped up:
>
> 1. Extract to /opt (symlink the apache-tomcat-7.0.x directory to tomcat
> after extracting)
> * Windows users should just rename the directory since they cannot
> symlink
> 2. Extract the files to the same location as tomcat itself
>
> Am I to extract it to /opt then again to /opt/tomcat before I symlink or
> just extract apache-tomcat-7.0.29 to /opt and symlink /opt/tomcat to
> /opt/apache-tomcat-7.0.29? Please help.
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Sakai Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sakai-dev+...@apereo.org
> <mailto:sakai-dev+...@apereo.org>.
> To post to this group, send email to saka...@apereo.org
> <mailto:saka...@apereo.org>.
> Visit this group at http://groups.google.com/a/apereo.org/group/sakai-dev/.

Danton Barnes

unread,
May 19, 2015, 1:12:20 PM5/19/15
to saka...@apereo.org, bjon...@uwo.ca
Ok I have them symlinked but I am still getting:


# cd $CATALINA_HOME/bin
bash: cd: /opt/tomcat/bin: No such file or directory

I can't get to $CATALINA_HOME/bin to start tomcat. 

Danton Barnes

unread,
May 19, 2015, 1:13:14 PM5/19/15
to saka...@apereo.org, bjon...@uwo.ca
Also this is what is in my CATALINA_HOME directory:

common  components  sakai  shared  webapps



On Tuesday, May 19, 2015 at 4:53:32 PM UTC, Brian Jones wrote:

Brian Jones

unread,
May 19, 2015, 1:15:08 PM5/19/15
to Danton Barnes, saka...@apereo.org
Right, so $CATALINA_HOME/bin doesn't exist.

Are you sure your symlink is pointing to the directory where you
extracted the Tomcat archive? All Tomcat installs have a /bin directory.

Brian Jones
Programmer/Analyst
Information Technology Services
Support Services Building, Suite 4300
Western University
(519) 661-2111 x86969
bjon...@uwo.ca

On 2015-05-19 01:13 PM, Danton Barnes wrote:
> Also this is what is in my CATALINA_HOME directory:
>
> common components sakai shared webapps
>
>
> On Tuesday, May 19, 2015 at 4:53:32 PM UTC, Brian Jones wrote:
>
> The latter: extract to /opt, then symlink /opt/apache-tomcat-7.0.x to
> /opt/tomcat/
>
> Brian Jones
> Programmer/Analyst
> Information Technology Services
> Support Services Building, Suite 4300
> Western University
> (519) 661-2111 x86969
> bjon...@uwo.ca <javascript:>
> > an email to sakai-dev+...@apereo.org <javascript:>
> > <mailto:sakai-dev+...@apereo.org <javascript:>>.
> > To post to this group, send email to saka...@apereo.org
> <javascript:>
> > <mailto:saka...@apereo.org <javascript:>>.
> <http://groups.google.com/a/apereo.org/group/sakai-dev/>.
>

Danton Barnes

unread,
May 19, 2015, 2:11:11 PM5/19/15
to saka...@apereo.org
Nevermind.  I'm an idiot.  I had to many programs running.  Can't believe I actually didn't think to close them out first. 

To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.
To post to this group, send email to saka...@apereo.org.

Danton Barnes

unread,
May 19, 2015, 2:12:01 PM5/19/15
to saka...@apereo.org
If you don't mind I'd like to keep this thread open for any further issues.  You have been a huge help.  I'd send you a giant bag of cookies if I could.  You've been awesome.  I'm hoping all my issues will be fixed now.  Fingers crossed.

Steve Swinsburg

unread,
May 21, 2015, 9:20:01 AM5/21/15
to Danton Barnes, sakai-dev
Forget the symlinking, install Tomcat anywhere you like and deploy Sakai into it. I'm thinking we should maybe deprecate those over the top install instructions and simplify them *a lot*....

Reinier Post

unread,
May 21, 2015, 6:23:56 PM5/21/15
to sakai-dev
On Thu May 21 23:19:59 2015, steve.s...@gmail.com (Steve Swinsburg) wrote:
> Forget the symlinking, install Tomcat anywhere you like and deploy Sakai
> into it. I'm thinking we should maybe deprecate those over the top install
> instructions and simplify them *a lot*....

Incidentally: we are running Sakai 2.9.3 and 10 on Ubuntu, using its
openjdk-7-jdk package for Java and to compile Sakai, its tomcat7
package to provide Tomcat and the tomcat-create-instance executable
from its tomcat7-user package to create Tomcat instances, and it
works just fine.

--
Reinier Post
TU Eindhoven

Danton Barnes

unread,
May 22, 2015, 8:20:10 AM5/22/15
to sakai-dev
The documentation is a little misleading.  Do I have to create a sakai.properties file or does it get made on deployment?

Steve Swinsburg

unread,
May 22, 2015, 8:29:51 PM5/22/15
to Danton Barnes, sakai-dev

It uses defaults if you haven't created one. You don't need one to start up, its only when you need to change defaults, change database etc.

Neal Caidin

unread,
May 26, 2015, 10:12:32 AM5/26/15
to Steve Swinsburg, Danton Barnes, sakai-dev
Right, so if for example, you need to point it to your MySql database then you need to update the properties. You also need to install a mysql jdbc connector (mysql-connector-java-5.0.8-bin.jar , for example) in the lib directory.

You will have needed to create the MySql database in advance with appropriate account and permissions, but Sakai will build out the schema for you automatically.


Reply all
Reply to author
Forward
0 new messages