LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-18-2007, 10:29 AM   #16
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492

You are missing tomcat is pure java so will run on any platform provided a JVM is installed.

The binary download works for Windows, Linux, Solaris and others ...
 
Old 06-19-2007, 08:35 AM   #17
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by jlliagre
You are missing tomcat is pure java so will run on any platform provided a JVM is installed.

The binary download works for Windows, Linux, Solaris and others ...
That's another thing I wondered about, I couldn't understand why I should have to compile it myself. Saw the Windows specific stuff and got confused...

OK, got the binary downloaded and setup, but it doesn't seem to "go". Startup seems to work fine (no errors), but no log file is generated, and it doesn't seem to be listening on any ports. Appears to be defined for port 8005, but there's nothing listening there. The webapps ROOT directory has files in it. What am I missing?
 
Old 06-19-2007, 09:00 AM   #18
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Works fine for me (HTTP listen on port 8080):
Code:
~ $ cd /tmp
/tmp $ PATH=/usr/sfw/bin:$PATH
/tmp $ export JAVA_HOME=/usr/jdk/jdk1.6.0
/tmp $ wget http://mir2.ovh.net/ftp.apache.org/dist/tomcat/tomcat-6/v6.0.13/bin/apache-tomcat-6.0.13.tar.gz
/tmp $ gtar xzvf apache-tomcat-6.0.13.tar.gz
/tmp $ cd apache-tomcat-6.0.13/bin
/tmp/apache-tomcat-6.0.13/bin $ ./startup.sh
Using CATALINA_BASE:   /tmp/apache-tomcat-6.0.13
Using CATALINA_HOME:   /tmp/apache-tomcat-6.0.13
Using CATALINA_TMPDIR: /tmp/apache-tomcat-6.0.13/temp
Using JRE_HOME:       /usr/jdk/jdk1.6.0
/tmp/apache-tomcat-6.0.13/bin $ ls -l ../logs
total 24
-rw-r--r--   1 jlliagre staff          0 juin 19 15:55 admin.2007-06-19.log
-rw-r--r--   1 jlliagre staff       1301 juin 19 15:55 catalina.2007-06-19.log
-rw-r--r--   1 jlliagre staff       1301 juin 19 15:55 catalina.out
-rw-r--r--   1 jlliagre staff          0 juin 19 15:55 host-manager.2007-06-19.log
-rw-r--r--   1 jlliagre staff        228 juin 19 15:55 localhost.2007-06-19.log
-rw-r--r--   1 jlliagre staff          0 juin 19 15:55 manager.2007-06-19.log
/tmp/apache-tomcat-6.0.13/bin $ pfiles $(pgrep java) | grep INET
        sockname: AF_INET 0.0.0.0  port: 8080
        sockname: AF_INET 0.0.0.0  port: 33619
        sockname: AF_INET 0.0.0.0  port: 8009
        sockname: AF_INET 127.0.0.1  port: 8005

Last edited by jlliagre; 06-19-2007 at 09:01 AM.
 
Old 06-19-2007, 09:31 AM   #19
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Original Poster
Rep: Reputation: 31
Nevermind, works fine now... Apparently /etc/profile doesn't run when su'ing to root... My new config items weren't getting run...
 
Old 06-19-2007, 09:35 AM   #20
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
/etc/profile should run is you do "su - root" rather than just "su root".
 
Old 06-19-2007, 09:36 AM   #21
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Why are you running tomcat as root ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Compiz on Solaris x86 - Eye Candy for Solaris’s Desktop LXer Syndicated Linux News 1 05-30-2007 02:31 PM
great solaris website for newbies http://solaris-x86.org/ feetyouwell Solaris / OpenSolaris 2 12-06-2006 12:14 AM
How to make Tomcat 4.0.1 and Tomcat 5.0.28 coexist in one server? g18397 Linux - Software 0 05-16-2006 03:16 AM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 01:31 AM
Why use Apache with Tomcat rather than just Tomcat itself? davee Linux - Software 1 08-21-2003 09:47 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration