You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dave Pawson <da...@gmail.com> on 2009/02/03 14:24:19 UTC

Error, source unknown

from catalina.out log.

Feb 3, 2009 12:14:23 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use<null>:8080

I'm not sure what the 'null' part of this message is telling me.

Any suggestions please?

Then later (may/may not be associated)

Feb 3, 2009 12:14:23 PM org.apache.tomcat.util.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 8 column 1: Content is not allowed
in trailing section.
org.xml.sax.SAXParseException: Content is not allowed in trailing section.
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)


TIA


-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

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


Re: Error, source unknown

Posted by Kees de Kooter <kd...@gmail.com>.
Apparently you already have something running that is using port 8080.

The Digester error means that an xml file that is being loaded
contains characters after the closing root tag.

Cheers,
Kees de Kooter
http://www.boplicity.net



2009/2/3 Dave Pawson <da...@gmail.com>:
> from catalina.out log.
>
> Feb 3, 2009 12:14:23 PM org.apache.coyote.http11.Http11Protocol init
> SEVERE: Error initializing endpoint
> java.net.BindException: Address already in use<null>:8080
>
> I'm not sure what the 'null' part of this message is telling me.
>
> Any suggestions please?
>
> Then later (may/may not be associated)
>
> Feb 3, 2009 12:14:23 PM org.apache.tomcat.util.digester.Digester fatalError
> SEVERE: Parse Fatal Error at line 8 column 1: Content is not allowed
> in trailing section.
> org.xml.sax.SAXParseException: Content is not allowed in trailing section.
>        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
>
>
> TIA
>
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
> http://www.dpawson.co.uk
>
> ---------------------------------------------------------------------
> 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


RE: Error, source unknown

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Dave Pawson [mailto:dave.pawson@gmail.com]
> Subject: Re: Error, source unknown
>
> [root@marge apps]# netstat -lnp | grep 8080
> tcp        0      0 :::8080                     :::*
>      LISTEN      4014/java
>
> (Not very informative.... ?)

On the contrary, it tells you that pid 4014 is using the port you want.  Certainly indicative that you already have Tomcat running, or perhaps have misconfigured <Connector> elements.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

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


Re: Error, source unknown

Posted by Dave Pawson <da...@gmail.com>.
2009/2/3 Gregor Schneider <rc...@googlemail.com>:
> Dave,
>
> On Tue, Feb 3, 2009 at 2:38 PM, Dave Pawson <da...@gmail.com> wrote:
>>
>> [root@marge apps]# netstat -lnp | grep 8080
>> tcp        0      0 :::8080                     :::*
>>     LISTEN      4014/java
>>
>> (Not very informative.... ?)
>>
>
> informative enough:
>
> "ps -lf 4041" gives you a bit more of information about the process.

The process is 'named' jsvc, rather than tomcat.

>
> since it's a java-process, I'd bet my bottom-penny that Tomcat is
> already running.
> Further bet: You tried to shut down Tomcat, but shutdown failed for
> whatever reasons.

'cos I was messing about with the startup and shutdown scripts using jsvc.

> Aftert hat: Check the log-files what went wrong when shutting down
> Tomcat (Rights? Maybe you tried to start Tomcat as root?)
>
> Hope that gives you a start

I'm messing about trying to get TC set up (failing nicely), so I did it
the hard way. Three finger salute. Without those errors
it comes up properly again!

One step back, another forwards now :-)


Thanks to both


regards



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

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


Re: Error, source unknown

Posted by Gregor Schneider <rc...@googlemail.com>.
Dave,

On Tue, Feb 3, 2009 at 2:38 PM, Dave Pawson <da...@gmail.com> wrote:
>
> [root@marge apps]# netstat -lnp | grep 8080
> tcp        0      0 :::8080                     :::*
>     LISTEN      4014/java
>
> (Not very informative.... ?)
>

informative enough:

"ps -lf 4041" gives you a bit more of information about the process.

since it's a java-process, I'd bet my bottom-penny that Tomcat is
already running.
Further bet: You tried to shut down Tomcat, but shutdown failed for
whatever reasons.

What to do?

Verify, what process actually blocks port 8080 and end that process.

If it's Tomcat, run Tomcat's shutdown.sh-script

If Tomcat won't shutdown using said script, a "kill 4014" should help

Aftert hat: Check the log-files what went wrong when shutting down
Tomcat (Rights? Maybe you tried to start Tomcat as root?)

Hope that gives you a start

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

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


Re: Error, source unknown

Posted by Dave Pawson <da...@gmail.com>.
HI Gregor.

2009/2/3 Gregor Schneider <rc...@googlemail.com>:

>> Feb 3, 2009 12:14:23 PM org.apache.coyote.http11.Http11Protocol init
>> SEVERE: Error initializing endpoint
>> java.net.BindException: Address already in use<null>:8080
>>
>
> that means that some process is using port 8080. Since a port can only
> be bound to one process, the attempt to bin it to a second one fails.
>
> Is it possible that Tomcat is already running?
>
> In case you#re on Linux / Unix, what gives
>
> netstat -lnp | grep 8080 ?

[root@marge apps]# netstat -lnp | grep 8080
tcp        0      0 :::8080                     :::*
     LISTEN      4014/java

(Not very informative.... ?)



>
>>
>> Then later (may/may not be associated)
>>
>> Feb 3, 2009 12:14:23 PM org.apache.tomcat.util.digester.Digester fatalError
>> SEVERE: Parse Fatal Error at line 8 column 1: Content is not allowed
>> in trailing section.
>> org.xml.sax.SAXParseException: Content is not allowed in trailing section.
>>        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
>>
>
> the XML-parser used is not able to parse an XML-file.
> Would be interesting to kniw, which XML-file we#re talking about here, though.
>
> My best guess is, that you either might have a problem with CTR/LF at
> the linde-ends of said XML-file or a problem with the encoding.

Found that one. The user list (tomcat-users.xml) had a trailing character.
Bad tomcat for not naming the file in error :-)


regards





-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

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


Re: Error, source unknown

Posted by Gregor Schneider <rc...@googlemail.com>.
Dave,

On Tue, Feb 3, 2009 at 2:24 PM, Dave Pawson <da...@gmail.com> wrote:
> from catalina.out log.
>
> Feb 3, 2009 12:14:23 PM org.apache.coyote.http11.Http11Protocol init
> SEVERE: Error initializing endpoint
> java.net.BindException: Address already in use<null>:8080
>

that means that some process is using port 8080. Since a port can only
be bound to one process, the attempt to bin it to a second one fails.

Is it possible that Tomcat is already running?

In case you#re on Linux / Unix, what gives

netstat -lnp | grep 8080 ?


> I'm not sure what the 'null' part of this message is telling me.

Well, that means that the exception thrown doesn't return a proper
error-message. I would put that behind for the time being.

>
> Then later (may/may not be associated)
>
> Feb 3, 2009 12:14:23 PM org.apache.tomcat.util.digester.Digester fatalError
> SEVERE: Parse Fatal Error at line 8 column 1: Content is not allowed
> in trailing section.
> org.xml.sax.SAXParseException: Content is not allowed in trailing section.
>        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
>

the XML-parser used is not able to parse an XML-file.
Would be interesting to kniw, which XML-file we#re talking about here, though.

My best guess is, that you either might have a problem with CTR/LF at
the linde-ends of said XML-file or a problem with the encoding.

Did you transfer any data from Windows to Linux / Unix / alike?

Rgds

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

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