You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Christoph P. Kukulies" <ku...@kukulies.org> on 2006/04/11 13:03:08 UTC

cannot connect to localhost:8080 (jsvc -user tomcat ...)

I'm having problems running tomcat on a Debian 3.1 system.

I see the processes:
13858 ?        Ss     0:00 jsvc.exec -user tomcat -home /usr/lib/java -Dcatalina.home=/opt/tomcat -Dcatalina.base=/opt/tomcat -Djava.io.tmpdir=/var/tmp -wait 10 -pidfile /var/run/jsvc.pid -outfile /opt/tomcat/logs/catalina.out -errfile &1 -Djava.library.path=/home/jfclere/jakarta-tomcat-connectors/jni/native/.libs -cp /usr/lib/java/lib/tools.jar:/opt/tomcat/bin/commons-daemon.jar:/opt/tomcat/bin/bootstrap.jar org.apache.catalina.startup.Bootstrap
13859 ?        S      0:01 jsvc.exec -user tomcat -home /usr/lib/java -Dcatalina.home=/opt/tomcat -Dcatalina.base=/opt/tomcat -Djava.io.tmpdir=/var/tmp -wait 10 -pidfile /var/run/jsvc.pid -outfile /opt/tomcat/logs/catalina.out -errfile &1 -Djava.library.path=/home/jfclere/jakarta-tomcat-connectors/jni/native/.libs -cp /usr/lib/java/lib/tools.jar:/opt/tomcat/bin/commons-daemon.jar:/opt/tomcat/bin/bootstrap.jar org.apache.catalina.startup.Bootstrap

but I cannot connect to localhost:8080

netstat -an doesn't show me any listener on that port.
I see that I hadn't yet adapted the java.library.path - is that a  problem?
I'm using sun jdk jdk1.5.0_06.

Any ideas?


--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: cannot connect to localhost:8080 (jsvc -user tomcat ...)

Posted by "Christoph P. Kukulies" <ku...@kukulies.org>.
On Tue, Apr 11, 2006 at 02:14:16PM +0200, Franck Borel wrote:
> Can you please take a look at your /tomcat/logs/catalina.out file and 
> report what is written?
> Otherwise is very hard to say, what the problem is (Firewall, 
> configuration....)

Thanks. I found that running tomcat as root works just fine.
That is, if I run manually startup.sh, tomcat starts and I can access
http://localhost:8080/ getting the tomcat logo and all that.

Seems to be a permissions problem with jsvc -user tomcat.

It seems I found it:

catalina.out:
Apr 12, 2006 3:20:42 PM org.apache.catalina.startup.Catalina load
WARNING: Can't load server.xml from /opt/tomcat/conf/server.xml
Apr 12, 2006 3:20:42 PM org.apache.catalina.startup.Catalina load
WARNING: Can't load server.xml from /opt/tomcat/conf/server.xml
Apr 12, 2006 3:20:42 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms

server.xml is owner root and has mode 600. And now i comes to me that
I remember to have followed some remedy in the web where someone
write to do a chown -R on /opt/tomcat and I slavishly followed this
instead of thinking :-) 

Since /opt/tomcat was a symbolic link to /opt/apache-tomcat-5.5.16
only the link and not the tree below got chown'ed.

Thanks. Seems to be solved.

--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: cannot connect to localhost:8080 (jsvc -user tomcat ...)

Posted by Franck Borel <bo...@ub.uni-freiburg.de>.
Can you please take a look at your /tomcat/logs/catalina.out file and 
report what is written?
Otherwise is very hard to say, what the problem is (Firewall, 
configuration....)

-- Franck
> Hi,
>
> not sure but can you check if
> <Connector port="8080" ...>
> is not commented out in your server.xml...
>
>
>
>
> Christoph P. Kukulies wrote:
>> I'm having problems running tomcat on a Debian 3.1 system.
>>
>> I see the processes:
>> 13858 ?        Ss     0:00 jsvc.exec -user tomcat -home /usr/lib/java 
>> -Dcatalina.home=/opt/tomcat -Dcatalina.base=/opt/tomcat 
>> -Djava.io.tmpdir=/var/tmp -wait 10 -pidfile /var/run/jsvc.pid 
>> -outfile /opt/tomcat/logs/catalina.out -errfile &1 
>> -Djava.library.path=/home/jfclere/jakarta-tomcat-connectors/jni/native/.libs 
>> -cp 
>> /usr/lib/java/lib/tools.jar:/opt/tomcat/bin/commons-daemon.jar:/opt/tomcat/bin/bootstrap.jar 
>> org.apache.catalina.startup.Bootstrap
>> 13859 ?        S      0:01 jsvc.exec -user tomcat -home /usr/lib/java 
>> -Dcatalina.home=/opt/tomcat -Dcatalina.base=/opt/tomcat 
>> -Djava.io.tmpdir=/var/tmp -wait 10 -pidfile /var/run/jsvc.pid 
>> -outfile /opt/tomcat/logs/catalina.out -errfile &1 
>> -Djava.library.path=/home/jfclere/jakarta-tomcat-connectors/jni/native/.libs 
>> -cp 
>> /usr/lib/java/lib/tools.jar:/opt/tomcat/bin/commons-daemon.jar:/opt/tomcat/bin/bootstrap.jar 
>> org.apache.catalina.startup.Bootstrap
>>
>> but I cannot connect to localhost:8080
>>
>> netstat -an doesn't show me any listener on that port.
>> I see that I hadn't yet adapted the java.library.path - is that a  
>> problem?
>> I'm using sun jdk jdk1.5.0_06.
>>
>> Any ideas?
>>
>>
>> -- 
>> Chris Christoph P. U. Kukulies kuku_at_kukulies.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
====================================================================
Dipl.-Hyd. Franck Borel               Universitaetsbibliothek Freiburg
EMail: borel@ub.uni-freiburg.de       EDV-Dezernat
Tel. : +49-761 / 203-3908             Werthmannplatz 2 | Postfach 1629
Fax  : +49-761 / 203-3987             79098 Freiburg   | 79016 Freiburg



Re: cannot connect to localhost:8080 (jsvc -user tomcat ...)

Posted by 辻本 寿太 <jt...@in.dcs.co.jp>.
Hi,

not sure but can you check if
<Connector port="8080" ...>
is not commented out in your server.xml...




Christoph P. Kukulies wrote:
> I'm having problems running tomcat on a Debian 3.1 system.
> 
> I see the processes:
> 13858 ?        Ss     0:00 jsvc.exec -user tomcat -home /usr/lib/java -Dcatalina.home=/opt/tomcat -Dcatalina.base=/opt/tomcat -Djava.io.tmpdir=/var/tmp -wait 10 -pidfile /var/run/jsvc.pid -outfile /opt/tomcat/logs/catalina.out -errfile &1 -Djava.library.path=/home/jfclere/jakarta-tomcat-connectors/jni/native/.libs -cp /usr/lib/java/lib/tools.jar:/opt/tomcat/bin/commons-daemon.jar:/opt/tomcat/bin/bootstrap.jar org.apache.catalina.startup.Bootstrap
> 13859 ?        S      0:01 jsvc.exec -user tomcat -home /usr/lib/java -Dcatalina.home=/opt/tomcat -Dcatalina.base=/opt/tomcat -Djava.io.tmpdir=/var/tmp -wait 10 -pidfile /var/run/jsvc.pid -outfile /opt/tomcat/logs/catalina.out -errfile &1 -Djava.library.path=/home/jfclere/jakarta-tomcat-connectors/jni/native/.libs -cp /usr/lib/java/lib/tools.jar:/opt/tomcat/bin/commons-daemon.jar:/opt/tomcat/bin/bootstrap.jar org.apache.catalina.startup.Bootstrap
> 
> but I cannot connect to localhost:8080
> 
> netstat -an doesn't show me any listener on that port.
> I see that I hadn't yet adapted the java.library.path - is that a  problem?
> I'm using sun jdk jdk1.5.0_06.
> 
> Any ideas?
> 
> 
> --
> Chris Christoph P. U. Kukulies kuku_at_kukulies.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org