Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   tomcat5.5 does not start (http://www.linux-archive.org/debian-user/206012-tomcat5-5-does-not-start.html)

Terrence Brannon 12-05-2008 02:27 AM

tomcat5.5 does not start
 
For some reason, tomcat5.5 will not start on port 8180 as documented.
I am running Debian/etch


root@li2-168:/usr/share/tomcat5.5/bin# env | grep JAVA
JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/
root@li2-168:/usr/share/tomcat5.5/bin# ./startup.sh
Using CATALINA_BASE: /usr/share/tomcat5.5
Using CATALINA_HOME: /usr/share/tomcat5.5
Using CATALINA_TMPDIR: /usr/share/tomcat5.5/temp
Using JRE_HOME: /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/
root@li2-168:/usr/share/tomcat5.5/bin# telnet localhost 8180
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
root@li2-168:/usr/share/tomcat5.5/bin#

root@li2-168:/usr/share/tomcat5.5/bin# ./shutdown.sh
Using CATALINA_BASE: /usr/share/tomcat5.5
Using CATALINA_HOME: /usr/share/tomcat5.5
Using CATALINA_TMPDIR: /usr/share/tomcat5.5/temp
Using JRE_HOME: /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/
Dec 4, 2008 10:24:14 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:195)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:366)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at java.net.Socket.<init>(Socket.java:367)
at java.net.Socket.<init>(Socket.java:180)
at
org.apache.catalina.startup.Catalina.stopServer(Ca talina.java:394)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl

.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcce

ssorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.stopServer(B ootstrap.java:343)

at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:434)
root@li2-168:/usr/share/tomcat5.5/bin#
root@li2-168:/usr/share/tomcat5.5/conf# ls -l
total 20
drwxr-xr-x 3 root root 1024 Dec 4 13:48 Catalina
-rw-r--r-- 1 root root 9194 Dec 4 21:23 catalina.policy
-rw-r--r-- 1 root root 3114 Jun 8 17:45 catalina.properties
-rw-r--r-- 1 root root 330 Jun 8 17:45 context.xml
-rw-r--r-- 1 root root 2824 Jun 8 17:45 logging.properties
-rw-r--r-- 1 root root 851 Jun 8 17:45 server-minimal.xml
lrwxrwxrwx 1 root root 25 Dec 4 13:48 server.xml ->
/etc/tomcat5.5/serve

r.xml
-rw------- 1 tomcat55 adm 440 Dec 4 13:49 tomcat-users.xml
lrwxrwxrwx 1 root root 22 Dec 4 13:48 web.xml ->
/etc/tomcat5.5/web.xml

root@li2-168:/usr/share/tomcat5.5/conf# grep 8180 server.xml
By default, a non-SSL HTTP/1.1 Connector is established on port
8180.

<!-- Define a non-SSL HTTP/1.1 Connector on port 8180 -->
<Connector port="8180" maxHttpHeaderSize="8192"
root@li2-168:/usr/share/tomcat5.5/conf#








--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Terrence Brannon 12-05-2008 02:35 AM

tomcat5.5 does not start
 
[
resending using email subscribed to list ]



For some reason, tomcat5.5 will not start on port 8180 as documented.




The log has nothing to say. But the named pipe (/var/log/tomcat5.5/out)
does get written to when startup.sh is invoked.



I am running Debian/etch






root@li2-168:/usr/share/tomcat5.5/bin#
env | grep JAVA


JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/


root@li2-168:/usr/share/tomcat5.5/bin#
./startup.sh


Using CATALINA_BASE:** /usr/share/tomcat5.5


Using CATALINA_HOME:** /usr/share/tomcat5.5


Using CATALINA_TMPDIR: /usr/share/tomcat5.5/temp


Using JRE_HOME:****** /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/


root@li2-168:/usr/share/tomcat5.5/bin#
telnet localhost 8180


Trying 127.0.0.1...


telnet: Unable to connect to remote host: Connection refused


root@li2-168:/usr/share/tomcat5.5/bin#




root@li2-168:/usr/share/tomcat5.5/bin#
./shutdown.sh


Using CATALINA_BASE:** /usr/share/tomcat5.5


Using CATALINA_HOME:** /usr/share/tomcat5.5


Using CATALINA_TMPDIR: /usr/share/tomcat5.5/temp


Using JRE_HOME:****** /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/


Dec 4, 2008 10:24:14 PM org.apache.catalina.startup.Catalina stopServer


SEVERE: Catalina.stop:


java.net.ConnectException: Connection refused


****** at java.net.PlainSocketImpl.socketConnect(Native Method)


****** at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:333)


****** at
java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:195)


****** at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:182)


****** at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:366)


****** at java.net.Socket.connect(Socket.java:520)


****** at java.net.Socket.connect(Socket.java:470)


****** at java.net.Socket.<init>(Socket.java:367)


****** at java.net.Socket.<init>(Socket.java:180)


****** at
org.apache.catalina.startup.Catalina.stopServer(Ca talina.java:394)


****** at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)


****** at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl


.java:39)


****** at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcce


ssorImpl.java:25)


****** at java.lang.reflect.Method.invoke(Method.java:585)


****** at
org.apache.catalina.startup.Bootstrap.stopServer(B ootstrap.java:343)


****** at
org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:434)


root@li2-168:/usr/share/tomcat5.5/bin#


root@li2-168:/usr/share/tomcat5.5/conf#
ls -l


total 20


drwxr-xr-x 3 root**** root 1024 Dec* 4 13:48 Catalina


-rw-r--r-- 1 root**** root 9194 Dec* 4 21:23 catalina.policy


-rw-r--r-- 1 root**** root 3114 Jun* 8 17:45 catalina.properties


-rw-r--r-- 1 root**** root* 330 Jun* 8 17:45 context.xml


-rw-r--r-- 1 root**** root 2824 Jun* 8 17:45 logging.properties


-rw-r--r-- 1 root**** root* 851 Jun* 8 17:45 server-minimal.xml


lrwxrwxrwx 1 root**** root** 25 Dec* 4 13:48 server.xml ->
/etc/tomcat5.5/serve


r.xml


-rw------- 1 tomcat55 adm** 440 Dec* 4 13:49 tomcat-users.xml


lrwxrwxrwx 1 root**** root** 22 Dec* 4 13:48 web.xml ->
/etc/tomcat5.5/web.xml


root@li2-168:/usr/share/tomcat5.5/conf#
grep 8180 server.xml


******* By default, a non-SSL HTTP/1.1 Connector is established on port
8180.


** <!-- Define a non-SSL HTTP/1.1 Connector on port 8180 -->


** <Connector port="8180" maxHttpHeaderSize="8192"


root@li2-168:/usr/share/tomcat5.5/conf#
















to

Alex Samad 12-05-2008 04:26 AM

tomcat5.5 does not start
 
On Thu, Dec 04, 2008 at 10:35:42PM -0500, Terrence Brannon wrote:
> [ resending using email subscribed to list ]
>
> For some reason, tomcat5.5 will not start on port 8180 as documented.
>

[snip]

> JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/
> root@li2-168:/usr/share/tomcat5.5/bin# ./startup.sh
> Using CATALINA_BASE: /usr/share/tomcat5.5
> Using CATALINA_HOME: /usr/share/tomcat5.5
> Using CATALINA_TMPDIR: /usr/share/tomcat5.5/temp
> Using JRE_HOME: /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/
> root@li2-168:/usr/share/tomcat5.5/bin# telnet localhost 8180
> Trying 127.0.0.1...
> telnet: Unable to connect to remote host: Connection refused
> root@li2-168:/usr/share/tomcat5.5/bin#

what does a netstat -panel | grep 8180 releveal



[snip]

>
>
>
>
> to

--
"It's amazing I won. I was running against peace, prosperity, and incumbency."

- George W. Bush
06/14/2001
speaking to Swedish Prime Minister Goran Perrson, unaware that a live television camera was still rolling.

Terrence Brannon 12-05-2008 08:17 AM

tomcat5.5 does not start
 
Alex Samad wrote:

On Thu, Dec 04, 2008 at 10:35:42PM -0500, Terrence Brannon wrote:

For some reason, tomcat5.5 will not start on port 8180 as documented.



what does a netstat -panel | grep 8180 releveal




root@li2-168:~/bin# cat tomcat

#!/bin/bash -x



export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/



/usr/share/tomcat5.5/bin/startup.shroot@li2-168:~/bin# ./tomcat

+ export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/

+ JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/

+ /usr/share/tomcat5.5/bin/startup.sh

Using CATALINA_BASE:** /usr/share/tomcat5.5

Using CATALINA_HOME:** /usr/share/tomcat5.5

Using CATALINA_TMPDIR: /usr/share/tomcat5.5/temp

Using JRE_HOME:****** /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/

root@li2-168:~/bin# netstat -panel | grep 8180

root@li2-168:~/bin# ls -lart /var/log/tomcat5.5/

total 11

drwxr-xr-x 10 root**** root*** 3072 Dec* 4 13:48 ..

-rw-r--r--* 1 tomcat55 nogroup* 658 Dec* 4 16:25 catalina_2008-12-04.log

-rw-r--r--* 1 tomcat55 nogroup* 288 Dec* 4 21:23 catalina_2008-12-05.log

-rw-r--r--* 1 root**** root****** 0 Dec* 4 21:58 manager.2008-12-04.log

-rw-r--r--* 1 root**** root****** 0 Dec* 4 21:58
localhost.2008-12-04.log

-rw-r--r--* 1 root**** root****** 0 Dec* 4 21:58
host-manager.2008-12-04.log

-rw-r--r--* 1 root**** root****** 0 Dec* 4 21:58 admin.2008-12-04.log

drwxr-x---* 2 tomcat55 adm**** 1024 Dec* 4 21:58 .

-rw-r--r--* 1 root**** root*** 4563 Dec* 4 22:24 catalina.2008-12-04.log

prwx------* 1 tomcat55 root****** 0 Dec* 5 04:16 catalina.out

root@li2-168:~/bin#

Alex Samad 12-05-2008 08:34 AM

tomcat5.5 does not start
 
On Fri, Dec 05, 2008 at 04:17:21AM -0500, Terrence Brannon wrote:
> Alex Samad wrote:
>> On Thu, Dec 04, 2008 at 10:35:42PM -0500, Terrence Brannon wrote:
>>
>> For some reason, tomcat5.5 will not start on port 8180 as documented.
>>
>>
>>
>> what does a netstat -panel | grep 8180 releveal

okay try netstat -panel | grep jsvc

>>
>
> root@li2-168:~/bin# cat tomcat
> #!/bin/bash -x
>
> export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/
>
> /usr/share/tomcat5.5/bin/startup.shroot@li2-168:~/bin# ./tomcat
> + export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/
> + JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/
> + /usr/share/tomcat5.5/bin/startup.sh
> Using CATALINA_BASE: /usr/share/tomcat5.5
> Using CATALINA_HOME: /usr/share/tomcat5.5
> Using CATALINA_TMPDIR: /usr/share/tomcat5.5/temp
> Using JRE_HOME: /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/
> root@li2-168:~/bin# netstat -panel | grep 8180
> root@li2-168:~/bin# ls -lart /var/log/tomcat5.5/
> total 11
> drwxr-xr-x 10 root root 3072 Dec 4 13:48 ..
> -rw-r--r-- 1 tomcat55 nogroup 658 Dec 4 16:25 catalina_2008-12-04.log
> -rw-r--r-- 1 tomcat55 nogroup 288 Dec 4 21:23 catalina_2008-12-05.log
> -rw-r--r-- 1 root root 0 Dec 4 21:58 manager.2008-12-04.log
> -rw-r--r-- 1 root root 0 Dec 4 21:58 localhost.2008-12-04.log
> -rw-r--r-- 1 root root 0 Dec 4 21:58 host-manager.2008-12-04.log
> -rw-r--r-- 1 root root 0 Dec 4 21:58 admin.2008-12-04.log
> drwxr-x--- 2 tomcat55 adm 1024 Dec 4 21:58 .
> -rw-r--r-- 1 root root 4563 Dec 4 22:24 catalina.2008-12-04.log
> prwx------ 1 tomcat55 root 0 Dec 5 04:16 catalina.out
> root@li2-168:~/bin#
>
>
>

--
Madame Tracy had even removed most of the Major Arcana from her Tarot card
pack, because their appearance tended to upset people.
-- (Terry Pratchett & Neil Gaiman, Good Omens)

Terrence Brannon 12-05-2008 08:50 AM

tomcat5.5 does not start
 
Alex Samad wrote:

On Fri, Dec 05, 2008 at 04:17:21AM -0500, Terrence Brannon wrote:


Alex Samad wrote:


On Thu, Dec 04, 2008 at 10:35:42PM -0500, Terrence Brannon wrote:

For some reason, tomcat5.5 will not start on port 8180 as documented.



what does a netstat -panel | grep 8180 releveal




okay try netstat -panel | grep jsvc



that returned nothing as well... the entire netstat output is here -
http://static.livingcosmos.org/tmp/netstat.txt

Marcus Better 12-05-2008 09:38 AM

tomcat5.5 does not start
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Terrence Brannon wrote:
> For some reason, tomcat5.5 will not start on port 8180 as documented.

What version are you using?

> root@li2-168:/usr/share/tomcat5.5/bin# ./startup.sh

You should probably not be using that. There is a startup script in
/etc/init.d, it should get launched on boot.

I also suggest you use the tomcat5.5 package from testing, since it has
seen numerous bug fixes.

Cheers,

Marcus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkk5BKAACgkQXjXn6TzcAQlNnACgxm5EJfuRPS RbxznYBsW6vvQ7
KoYAoLreV4Q0Bq1n7MyfQT5DCO2ducgs
=kvoK
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Terrence Brannon 12-05-2008 10:10 AM

tomcat5.5 does not start
 
Marcus Better wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Terrence Brannon wrote:


For some reason, tomcat5.5 will not start on port 8180 as documented.



What version are you using?


the debian/stable version





root@li2-168:/usr/share/tomcat5.5/bin# ./startup.sh



You should probably not be using that. There is a startup script in
/etc/init.d, it should get launched on boot.


I see, perhaps the docs should say that sort of thing?



I also suggest you use the tomcat5.5 package from testing, since it has
seen numerous bug fixes.


well, the server works fine now that I have rebooted my
machine...HOWEVER: I cannot login into the Tomcat admin panel... and
/usr/share/doc/tomcat5.5-admin does not have any information about the
default username/password for it

Marcus Better 12-05-2008 10:23 AM

tomcat5.5 does not start
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Terrence Brannon wrote:
>>> root@li2-168:/usr/share/tomcat5.5/bin# ./startup.sh

>> You should probably not be using that. There is a startup script in
>> /etc/init.d, it should get launched on boot.

> I see, perhaps the docs should say that sort of thing?

Perhaps the file should be removed, or moved to a less conspicuous
location. Feel free to file a bug about this.

> I cannot login into the Tomcat admin panel... and
> /usr/share/doc/tomcat5.5-admin does not have any information about the
> default username/password for it

There is no default username/password, and it's documented in
/usr/share/doc/tomcat5.5/README.Debian.

BTW the admin webapp has been removed for lenny (it was removed upstream).

Cheers,

Marcus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkk5DyQACgkQXjXn6TzcAQnMagCgl2/HJX6/1IH8HoiJy24avO++
xp4AoKz6UBz8qCatT6dTPW0em+W/8w1V
=8Fiw
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Terrence Brannon 12-05-2008 10:50 AM

tomcat5.5 does not start
 
Marcus Better wrote:



I cannot login into the Tomcat admin panel... and
/usr/share/doc/tomcat5.5-admin does not have any information about the
default username/password for it



There is no default username/password, and it's documented in
/usr/share/doc/tomcat5.5/README.Debian.


there is no manager role in tomcat-users.xml ... should I also add
that... I modified the both username to have the manager role, but am
not sure if that role also needs to be added



Here is the file after my mod:



<?xml version='1.0' encoding='utf-8'?>

<tomcat-users>

* <role rolename="tomcat"/>

* <role rolename="role1"/>

* <user username="tomcat" password="tomcat" roles="tomcat"/>

* <user username="both" password="tomcat"
roles="manager,tomcat,role1"/>

* <user username="role1" password="tomcat" roles="role1"/>

</tomcat-users>







BTW the admin webapp has been removed for lenny (it was removed upstream).


the admin webapp is highly useful for deploying .war files ... why was
it removed? I dont know what 'removed upstream' means, but I think the
admin webapp needs to be there.


All times are GMT. The time now is 10:05 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.