DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th November 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Thanked 0 Times in 0 Posts
Default Tomcat n00b error

Hi everyone,

I installed tomcat 6 on my FreeBSD 7.0 but failed on both of them.
I am currently running Apache 2.2.9.

1) I installed tomcat via ports
2) These are my variables:
Code:
[root@miuky1 /usr/local/apache-tomcat6.0/logs]# echo $JAVA_HOME
/usr/local/jdk1.6.0
[root@miuky1 /usr/local/apache-tomcat6.0/logs]# echo $JRE_HOME
/usr/local/jdk1.6.0
3) When I try to start tomcat using
Code:
[root@miuky1 /usr/local/apache-tomcat6.0/logs]# /usr/local/apache-tomcat6.0/bin/startup.sh 
Using CATALINA_BASE:   /usr/local/apache-tomcat6.0
Using CATALINA_HOME:   /usr/local/apache-tomcat6.0
Using CATALINA_TMPDIR: /usr/local/apache-tomcat6.0/temp
Using JRE_HOME:       /usr/local/jdk1.6.0
4) However, upon investigation, I realize that my tomcat is not running

5) When I check the logs, these are the errors:
catalina.log
Code:
Nov 18, 2008 12:04:51 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jdk1.6.0/jre/lib/i386/client:/usr/local/jdk1.6.0/jre/lib/i386:/usr/local/jdk1.6.0/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib:/usr/local/lib
Nov 18, 2008 12:04:51 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Nov 18, 2008 12:04:51 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 627 ms
Nov 18, 2008 12:04:51 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 18, 2008 12:04:51 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
Nov 18, 2008 12:04:52 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "listeners.ContextListener" is already configured for this context. The duplicate definition has been ignored.
Nov 18, 2008 12:04:52 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "listeners.SessionListener" is already configured for this context. The duplicate definition has been ignored.
Nov 18, 2008 12:04:52 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
Nov 18, 2008 12:04:52 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 18, 2008 12:04:52 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/29  config=null
Nov 18, 2008 12:04:52 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 837 ms
Nov 18, 2008 12:04:52 AM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]: 
java.net.BindException: Can't assign requested address
	at java.net.PlainSocketImpl.socketBind(Native Method)
	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
	at java.net.ServerSocket.bind(ServerSocket.java:319)
	at java.net.ServerSocket.<init>(ServerSocket.java:185)
	at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
	at org.apache.catalina.startup.Catalina.await(Catalina.java:642)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:602)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Nov 18, 2008 12:04:52 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8180
Nov 18, 2008 12:04:52 AM org.apache.catalina.connector.Connector pause
SEVERE: Protocol handler pause failed
java.net.SocketException: Invalid argument
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:519)
	at java.net.Socket.connect(Socket.java:469)
	at java.net.Socket.<init>(Socket.java:366)
	at java.net.Socket.<init>(Socket.java:209)
	at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:486)
	at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:283)
	at org.apache.jk.server.JkMain.pause(JkMain.java:681)
	at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
	at org.apache.catalina.connector.Connector.pause(Connector.java:1073)
	at org.apache.catalina.core.StandardService.stop(StandardService.java:563)
	at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
	at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
	at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671)
Nov 18, 2008 12:04:53 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Nov 18, 2008 12:04:53 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8180
catalina.out
Code:
Nov 18, 2008 12:04:51 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jdk1.6.0/jre/lib/i386/client:/usr/local/jdk1.6.0/jre/lib/i386:/usr/local/jdk1.6.0/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib:/usr/local/lib
Nov 18, 2008 12:04:51 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Nov 18, 2008 12:04:51 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 627 ms
Nov 18, 2008 12:04:51 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 18, 2008 12:04:51 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
Nov 18, 2008 12:04:52 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "listeners.ContextListener" is already configured for this context. The duplicate definition has been ignored.
Nov 18, 2008 12:04:52 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "listeners.SessionListener" is already configured for this context. The duplicate definition has been ignored.
Nov 18, 2008 12:04:52 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
Nov 18, 2008 12:04:52 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 18, 2008 12:04:52 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/29  config=null
Nov 18, 2008 12:04:52 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 837 ms
Nov 18, 2008 12:04:52 AM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]: 
java.net.BindException: Can't assign requested address
	at java.net.PlainSocketImpl.socketBind(Native Method)
	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
	at java.net.ServerSocket.bind(ServerSocket.java:319)
	at java.net.ServerSocket.<init>(ServerSocket.java:185)
	at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
	at org.apache.catalina.startup.Catalina.await(Catalina.java:642)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:602)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Nov 18, 2008 12:04:52 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8180
Nov 18, 2008 12:04:52 AM org.apache.catalina.connector.Connector pause
SEVERE: Protocol handler pause failed
java.net.SocketException: Invalid argument
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:519)
	at java.net.Socket.connect(Socket.java:469)
	at java.net.Socket.<init>(Socket.java:366)
	at java.net.Socket.<init>(Socket.java:209)
	at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:486)
	at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:283)
	at org.apache.jk.server.JkMain.pause(JkMain.java:681)
	at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
	at org.apache.catalina.connector.Connector.pause(Connector.java:1073)
	at org.apache.catalina.core.StandardService.stop(StandardService.java:563)
	at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
	at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
	at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671)
Nov 18, 2008 12:04:53 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Nov 18, 2008 12:04:53 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8180
and
localhost.log
Code:
Nov 18, 2008 12:04:52 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 18, 2008 12:04:52 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Nov 18, 2008 12:04:53 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Nov 18, 2008 12:04:53 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()

When I try http://localhost:8080, I get 404 error.

Any idea why?
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
edonkey n00b question disappearedng FreeBSD General 5 17th November 2008 10:09 AM
n00b Eclipse question disappearedng FreeBSD General 3 3rd November 2008 05:29 PM
A few FreeBSD n00b questions zelut FreeBSD General 1 7th October 2008 07:13 PM
n00b question, installed theme via ports. How to use it? disappearedng FreeBSD General 1 25th June 2008 07:26 PM
BSD n00b needs to block incoming SQL on 3306 renolinux FreeBSD Security 5 27th May 2008 02:26 PM


All times are GMT. The time now is 01:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick