Re: starting Tomcat6

2008-12-24 Thread Tim Judd
On Tue, Dec 23, 2008 at 12:23 PM, matt donovan kitchet...@gmail.com wrote:

 On Tue, Dec 23, 2008 at 2:15 PM, Joseph Simmons josephdsimm...@gmail.com
 wrote:

  It is now :), but that should only effect things when the computer
  starts up. I'm still not able to start tomcat from it's rc.d script.
 
  On Tue, Dec 23, 2008 at 1:03 PM, Matthew Seaman
  m.sea...@infracaninophile.co.uk wrote:
   Joseph Simmons wrote:
  
   uname -a gives:
   7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
   r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
  
   I installed Apache Tomcat from the ports collection
   (/usr/ports/www/tomcat6) without error. From the documentation that
   I've seen, starting tomcat is done with the following command
  
   /usr/local/etc/rc.d/tomcat6 start
  
   But when I do this (as root or otherwise), the tomcat process doesn't
   seem to start. Should there be some other way of starting the process?
  
   Did you put:
  
tomcat6_enable=YES
  
   into /etc/rc.conf ?
  
  Cheers,
  
  Matthew
  
   --
   Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
   Flat 3
   PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
   Kent, CT11 9PW
  
  
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
  freebsd-questions-unsubscr...@freebsd.org
 

 no you must have tomcat_enable=yes  in your rc.conf to even run the
 script
 unless you forcestart it. so ps aux does not show tomcat as running?


Forcestart isn't a good idea.  To bypass the rc.conf setting, use the one
prefix (onestart, onestop, onerestart)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


starting Tomcat6

2008-12-23 Thread Joseph Simmons
uname -a gives:
7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

I installed Apache Tomcat from the ports collection
(/usr/ports/www/tomcat6) without error. From the documentation that
I've seen, starting tomcat is done with the following command

/usr/local/etc/rc.d/tomcat6 start

But when I do this (as root or otherwise), the tomcat process doesn't
seem to start. Should there be some other way of starting the process?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: starting Tomcat6

2008-12-23 Thread Matthew Seaman

Joseph Simmons wrote:

uname -a gives:
7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

I installed Apache Tomcat from the ports collection
(/usr/ports/www/tomcat6) without error. From the documentation that
I've seen, starting tomcat is done with the following command

/usr/local/etc/rc.d/tomcat6 start

But when I do this (as root or otherwise), the tomcat process doesn't
seem to start. Should there be some other way of starting the process?


Did you put:

  tomcat6_enable=YES

into /etc/rc.conf ?

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: starting Tomcat6

2008-12-23 Thread Joseph Simmons
It is now :), but that should only effect things when the computer
starts up. I'm still not able to start tomcat from it's rc.d script.

On Tue, Dec 23, 2008 at 1:03 PM, Matthew Seaman
m.sea...@infracaninophile.co.uk wrote:
 Joseph Simmons wrote:

 uname -a gives:
 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

 I installed Apache Tomcat from the ports collection
 (/usr/ports/www/tomcat6) without error. From the documentation that
 I've seen, starting tomcat is done with the following command

 /usr/local/etc/rc.d/tomcat6 start

 But when I do this (as root or otherwise), the tomcat process doesn't
 seem to start. Should there be some other way of starting the process?

 Did you put:

  tomcat6_enable=YES

 into /etc/rc.conf ?

Cheers,

Matthew

 --
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: starting Tomcat6

2008-12-23 Thread matt donovan
On Tue, Dec 23, 2008 at 2:15 PM, Joseph Simmons josephdsimm...@gmail.comwrote:

 It is now :), but that should only effect things when the computer
 starts up. I'm still not able to start tomcat from it's rc.d script.

 On Tue, Dec 23, 2008 at 1:03 PM, Matthew Seaman
 m.sea...@infracaninophile.co.uk wrote:
  Joseph Simmons wrote:
 
  uname -a gives:
  7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
  r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
 
  I installed Apache Tomcat from the ports collection
  (/usr/ports/www/tomcat6) without error. From the documentation that
  I've seen, starting tomcat is done with the following command
 
  /usr/local/etc/rc.d/tomcat6 start
 
  But when I do this (as root or otherwise), the tomcat process doesn't
  seem to start. Should there be some other way of starting the process?
 
  Did you put:
 
   tomcat6_enable=YES
 
  into /etc/rc.conf ?
 
 Cheers,
 
 Matthew
 
  --
  Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
  PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


no you must have tomcat_enable=yes  in your rc.conf to even run the script
unless you forcestart it. so ps aux does not show tomcat as running?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: starting Tomcat6

2008-12-23 Thread Joseph Simmons
I have tomcat6_enable=YES in rc.conf and I don't see any tomcat
process when I ps aux. When I try to start the script, nothing is
returned either, I'd expect there to be some success or failure
message as there is when starting apache22.

On Tue, Dec 23, 2008 at 1:23 PM, matt donovan kitchet...@gmail.com wrote:


 On Tue, Dec 23, 2008 at 2:15 PM, Joseph Simmons josephdsimm...@gmail.com
 wrote:

 It is now :), but that should only effect things when the computer
 starts up. I'm still not able to start tomcat from it's rc.d script.

 On Tue, Dec 23, 2008 at 1:03 PM, Matthew Seaman
 m.sea...@infracaninophile.co.uk wrote:
  Joseph Simmons wrote:
 
  uname -a gives:
  7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
  r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
 
  I installed Apache Tomcat from the ports collection
  (/usr/ports/www/tomcat6) without error. From the documentation that
  I've seen, starting tomcat is done with the following command
 
  /usr/local/etc/rc.d/tomcat6 start
 
  But when I do this (as root or otherwise), the tomcat process doesn't
  seem to start. Should there be some other way of starting the process?
 
  Did you put:
 
   tomcat6_enable=YES
 
  into /etc/rc.conf ?
 
 Cheers,
 
 Matthew
 
  --
  Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
  PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org

 no you must have tomcat_enable=yes  in your rc.conf to even run the script
 unless you forcestart it. so ps aux does not show tomcat as running?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: starting Tomcat6

2008-12-23 Thread Glen Barber
On Tue, Dec 23, 2008 at 2:33 PM, Joseph Simmons
josephdsimm...@gmail.com wrote:
 I have tomcat6_enable=YES in rc.conf and I don't see any tomcat
 process when I ps aux. When I try to start the script, nothing is
 returned either, I'd expect there to be some success or failure
 message as there is when starting apache22.


After entering the rcvar to rc.conf, did you *start* tomcat again?
Doesn't tomcat also require apache22_enable=YES in rc.conf?

-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: starting Tomcat6

2008-12-23 Thread Joseph Simmons
Yes, I tried starting it again and got the same result as before which
is nothing at all happened.
Apache HTTP server works fine, it starts with the computer in fact.
I'm not sure if Apache's configuration would effect Tomcat, if so, the
following is in rc.conf

apache22_enable=YES
apache22_profiles=
apache22limits_enable=NO
apache22_flags=
apache22limits_args=-e -C daemon
apache22_http_accept_enable=NO


On Tue, Dec 23, 2008 at 1:46 PM, Glen Barber glen.j.bar...@gmail.com wrote:
 On Tue, Dec 23, 2008 at 2:33 PM, Joseph Simmons
 josephdsimm...@gmail.com wrote:
 I have tomcat6_enable=YES in rc.conf and I don't see any tomcat
 process when I ps aux. When I try to start the script, nothing is
 returned either, I'd expect there to be some success or failure
 message as there is when starting apache22.


 After entering the rcvar to rc.conf, did you *start* tomcat again?
 Doesn't tomcat also require apache22_enable=YES in rc.conf?

 --
 Glen Barber

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: starting Tomcat6

2008-12-23 Thread Glen Barber
On Tue, Dec 23, 2008 at 2:52 PM, Joseph Simmons
josephdsimm...@gmail.com wrote:
 Yes, I tried starting it again and got the same result as before which
 is nothing at all happened.
 Apache HTTP server works fine, it starts with the computer in fact.
 I'm not sure if Apache's configuration would effect Tomcat, if so, the
 following is in rc.conf

 apache22_enable=YES
 apache22_profiles=
 apache22limits_enable=NO
 apache22_flags=
 apache22limits_args=-e -C daemon
 apache22_http_accept_enable=NO


Try this:


/usr/local/etc/rc.d/tomcat rcvar


-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: starting Tomcat6

2008-12-23 Thread Joseph Simmons
Ok I get what's below

[r...@cougar /usr/local/etc/rc.d]# ./tomcat6 rcvar
# tomcat60
tomcat60_enable=NO

I haven't restarted this computer since I've installed tomcat, could
that be a problem?

On Tue, Dec 23, 2008 at 1:53 PM, Glen Barber glen.j.bar...@gmail.com wrote:
 On Tue, Dec 23, 2008 at 2:52 PM, Joseph Simmons
 josephdsimm...@gmail.com wrote:
 Yes, I tried starting it again and got the same result as before which
 is nothing at all happened.
 Apache HTTP server works fine, it starts with the computer in fact.
 I'm not sure if Apache's configuration would effect Tomcat, if so, the
 following is in rc.conf

 apache22_enable=YES
 apache22_profiles=
 apache22limits_enable=NO
 apache22_flags=
 apache22limits_args=-e -C daemon
 apache22_http_accept_enable=NO


 Try this:


 /usr/local/etc/rc.d/tomcat rcvar


 --
 Glen Barber

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: starting Tomcat6

2008-12-23 Thread Peter Boosten
Glen Barber wrote:
 On Tue, Dec 23, 2008 at 2:33 PM, Joseph Simmons
 josephdsimm...@gmail.com wrote:
 I have tomcat6_enable=YES in rc.conf and I don't see any tomcat
 process when I ps aux. When I try to start the script, nothing is
 returned either, I'd expect there to be some success or failure
 message as there is when starting apache22.

 
 After entering the rcvar to rc.conf, did you *start* tomcat again?
 Doesn't tomcat also require apache22_enable=YES in rc.conf?
 

It's tomcat60_enable=YES

(/usr/local/etc/rc.d/tomcat6 rcvar)

You won't see any 'tomcat' process running, only java processes (default
listening on port 8180 (use sockstat).

Peter

-- 
http://www.boosten.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: starting Tomcat6

2008-12-23 Thread Matthew Seaman

Joseph Simmons wrote:

I have tomcat6_enable=YES in rc.conf and I don't see any tomcat
process when I ps aux. When I try to start the script, nothing is
returned either, I'd expect there to be some success or failure
message as there is when starting apache22.


The process you'ld start is called 'java' according to ps(1) -- tomcat
runs inside that.

You certainly should get some output from the startup script.  Seeing nothing
at all is a classic symptom of not having the right settings in rc.conf

Try using sockstat(1) to see if you have anything likely with a network
listener on ports 8180 8005 or 8009.  Note that tomcat doesn't bind to
port 80 (or 443 for SSL enabled versions) unless you modify server.xml 


If there's a port 8180 listener, then http://localhost:8180/ should get
you the default tomcat home page.

If not then you should be able to find some logs in
/usr/local/apache-tomcat6.0/logs  which may offer clues.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: starting Tomcat6

2008-12-23 Thread Peter Boosten
Joseph Simmons wrote:
 Ok I get what's below
 
 [r...@cougar /usr/local/etc/rc.d]# ./tomcat6 rcvar
 # tomcat60
 tomcat60_enable=NO

put this in your /etc/rc.conf
tomcat60_enable=YES

then

/usr/local/etc/rc.d/tomcat6 start

look for the java process and browse to http://yourhost:8180

 
 I haven't restarted this computer since I've installed tomcat, could
 that be a problem?

No, it isn't.

Peter

-- 
http://www.boosten.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: starting Tomcat6

2008-12-23 Thread Joseph Simmons
Changing tomcat6_enable to tomcat60_enable worked I'm able to connect
on port 8180, thanks for the help.

On Tue, Dec 23, 2008 at 1:57 PM, Matthew Seaman
m.sea...@infracaninophile.co.uk wrote:
 Joseph Simmons wrote:

 I have tomcat6_enable=YES in rc.conf and I don't see any tomcat
 process when I ps aux. When I try to start the script, nothing is
 returned either, I'd expect there to be some success or failure
 message as there is when starting apache22.

 The process you'ld start is called 'java' according to ps(1) -- tomcat
 runs inside that.

 You certainly should get some output from the startup script.  Seeing
 nothing
 at all is a classic symptom of not having the right settings in rc.conf

 Try using sockstat(1) to see if you have anything likely with a network
 listener on ports 8180 8005 or 8009.  Note that tomcat doesn't bind to
 port 80 (or 443 for SSL enabled versions) unless you modify server.xml
 If there's a port 8180 listener, then http://localhost:8180/ should get
 you the default tomcat home page.

 If not then you should be able to find some logs in
 /usr/local/apache-tomcat6.0/logs  which may offer clues.

Cheers,

Matthew

 --
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org