lenya-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Reilly" <wrei...@digitas.com>
Subject Tomcat startup issue (minor?): "Address already in use" (Win-XP)
Date Tue, 27 May 2003 21:11:39 GMT
Greetings - 

An off-topic request, perhaps, but Lenya-related (and a follow-on to a
Michael Wechner/Andreas Hartmann e-mail exchange),--as well as an
attempt to get ready for tomorrow's (May 28) Apache-Lenya Workshop at
the OSCOM3 conference in Cambridge, Mass., with Michael et al.!

Many thanks for any insight.
Best,
William Reilly
wreilly@digitas.com
Boston, Massachusetts U.S.A.
==============================

Lenya is supposed to be a webapp sibling to Cocoon under Tomcat, yes?  
Because I think I'm seeing both of them start up HSQLDB (?), and then
bumping into a "Address already in use" (??).  Hmmmm. Don't know.

"Opening database:
C:\oscom\lenya\build\tomcat-4.1.24\webapps\cocoon\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running"


Just installed:
- J2SDK 1.4.2
- Tomcat jakarta-tomcat-4.1.24-LE-jdk14
- Cocoon 1.2-M1
- Lenya CVS Checkout today from (new) Apache CVS

Everything is working, bringing up the homepage for each software.
Good.

>>  QUESTIONS
My questions, however, concern lingering Tomcat console "complaints."
Are these things benign??

1. No "server.properties" found (does this matter? 
I did the AdminTool and see that the Server Properties are in there, as
defaults. Hmmm.
http://java.sun.com/webservices/docs/1.1/tutorial/doc/Admintool3.html

===  Tomcat Console <snip> (complete, further below)
========================= 
Starting service Tomcat-Standalone Apache Tomcat/4.1.24-LE-jdk14 Using
getRealPath: C:\oscom\lenya\build\tomcat-4.1.24\webapps\cocoon\WEB-INF
server.properties not found, using command line or default properties
=====================================================


2. "Address already in use: JVM_Bind..."  (it isn't preventing it
working, but... ) 
===  Tomcat Console <snip>  (complete, further below)
========================= 
Using getRealPath:
C:\oscom\lenya\build\tomcat-4.1.24\webapps\cocoon\WEB-INF
Tue May 27 16:50:25 EDT 2003 Listening for connections ...
server.properties not found, using command line or default properties
Opening database:
C:\oscom\lenya\build\tomcat-4.1.24\webapps\lenya\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Using getRealPath:
C:\oscom\lenya\build\tomcat-4.1.24\webapps\lenya\WEB-INF
Server.run/init: java.net.BindException: Address already in use:
JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
        at java.net.ServerSocket.bind(ServerSocket.java:318)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at java.net.ServerSocket.<init>(ServerSocket.java:97)
        at org.hsqldb.Server.run(Unknown Source)
        at org.hsqldb.Server.main(Unknown Source)
        at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:19
9)
        at
java.lang.Thread.run(Thread.java:534)===================================
======


Re: #2, I've dealt with this on Unix in the past, doing 'ps' for
processes with "java" and explicitly 'kill'ing the PID for Tomcat, etc.
I don't know how to take care of this under Windows XP(?); furthermore,
I don't find Apache, nor Jakarta, nor Tomcat listed in my Windows
Services (?), which I (vaguely?) recall I used to under Windows NT4 (?).
[And yes, even a re-boot doesn't make the "Address already in use" issue
go away.]


When I issue shutdown.bat, the console tells me:
=== Tomcat Console <snip>  (complete, further below) ===================
Stopping service Tomcat-Standalone
Tue May 27 16:12:35 EDT 2003 SHUTDOWN : System.exit() was not called
=============================================

Is the lack of System.exit() causing me some difficulties here? [Is
there some way to explicitly call System.exit(), or equivalent ?? ]


=== Tomcat Console (COMPLETE) ======================
May 27, 2003 4:50:05 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
May 27, 2003 4:50:05 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
May 27, 2003 4:50:07 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
May 27, 2003 4:50:08 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24-LE-jdk14
server.properties not found, using command line or default properties
Opening database:
C:\oscom\lenya\build\tomcat-4.1.24\webapps\cocoon\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Using getRealPath:
C:\oscom\lenya\build\tomcat-4.1.24\webapps\cocoon\WEB-INF
Tue May 27 16:50:25 EDT 2003 Listening for connections ...
server.properties not found, using command line or default properties
Opening database:
C:\oscom\lenya\build\tomcat-4.1.24\webapps\lenya\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Using getRealPath:
C:\oscom\lenya\build\tomcat-4.1.24\webapps\lenya\WEB-INF
Server.run/init: java.net.BindException: Address already in use:
JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
        at java.net.ServerSocket.bind(ServerSocket.java:318)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at java.net.ServerSocket.<init>(ServerSocket.java:97)
        at org.hsqldb.Server.run(Unknown Source)
        at org.hsqldb.Server.main(Unknown Source)
        at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:19
9)
        at java.lang.Thread.run(Thread.java:534)
May 27, 2003 4:50:47 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
May 27, 2003 4:50:47 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
May 27, 2003 4:50:47 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/131
config=c:\oscom\lenya\build\tomcat-4.1.24\conf
\jk2.properties


NOTE: (http://127.0.0.1:8080, http://127.0.0.1:8080/cocoon, and
http://127.0.0.1:8080/lenya all bring up respective homepages)

NOTE: (then, SHUTDOWN command given)

Stopping service Tomcat-Standalone
Tue May 27 16:56:04 EDT 2003 SHUTDOWN : System.exit() was not called
=========================================




Any info anyone might share would be welcome, but in the meanwhile I'll
plug ahead and hope I don't sail into trouble... :^)

Best, 
William Reilly
wreilly@digitas.com
Boston, Massachusetts U.S.A.

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Mime
View raw message