RE: java.lang.Exception: Socket bind failed: [730048]

2011-04-18 Thread Arul Jose

This forum post was helpful and it helped generate thoughts to solve the same
problem which I had.

So thanks.

In my windows task manager, I found an entry with the description "web
server daemon" under the 'processes' tab. I killed it. My tomcat started.


-- 
View this message in context: 
http://old.nabble.com/java.lang.Exception%3A-Socket-bind-failed%3A--730048--tp20587714p31429297.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: java.lang.Exception: Socket bind failed: [730048]

2010-11-11 Thread Caldarale, Charles R
> From: Pid [mailto:p...@pidster.com] 
> Subject: Re: java.lang.Exception: Socket bind failed: [730048]

> On 11/11/2010 20:24, Rajmohan Parayil wrote:
> > 
> > I am adding this post so that it may help anyone who have faced this issue.

> Not without a detailed description of the error, how you identified it &
> what the correct resolution was it won't.

Since Rajmohan resurrected a very dead two-year old thread and posted 
irrelevant (and incorrect) information unrelated to the problem described in 
the thread, I wouldn't expect to get much...

 - 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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: java.lang.Exception: Socket bind failed: [730048]

2010-11-11 Thread Pid
On 11/11/2010 20:24, Rajmohan Parayil wrote:
> 
> I am adding this post so that it may help anyone who have faced this issue.

Not without a detailed description of the error, how you identified it &
what the correct resolution was it won't.


p

> Tomcat uses either APR implementation or JSSE implementation. 
> 
> The following error may be because of trying to load APR library for SSL but
> the actual implementation might be using JSSE implementation.
> 
> So try commenting out the following line from server.xml and try restarting
> tomcat
>  
> 
> 
> 



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: java.lang.Exception: Socket bind failed: [730048]

2010-11-11 Thread Rajmohan Parayil

I am adding this post so that it may help anyone who have faced this issue.

Tomcat uses either APR implementation or JSSE implementation. 

The following error may be because of trying to load APR library for SSL but
the actual implementation might be using JSSE implementation.

So try commenting out the following line from server.xml and try restarting
tomcat
 



-- 
View this message in context: 
http://old.nabble.com/java.lang.Exception%3A-Socket-bind-failed%3A--730048--tp20587714p30193646.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: java.lang.Exception: Socket bind failed: [730048]

2008-12-04 Thread Toby Kurien
In that case, clicking restart on Tomcat service shouldn't restart service.

On Thu, Dec 4, 2008 at 11:15 AM, Schuster Stefan
<[EMAIL PROTECTED]> wrote:
> Hey Toby,
>
> it might have something to do with a timeout, I remember that some
> operating systems hold a port "reserved" for a while after it was
> bound as a listening port.
>
> Hope this is a pointer in the right direction.
>
> Best regards
> Stefan
>
> -Ursprüngliche Nachricht-
> Von: Toby Kurien [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 4. Dezember 2008 16:38
> An: Tomcat Users List
> Betreff: Re: java.lang.Exception: Socket bind failed: [730048]
>
> Hi,
> Here's the weirdest thing I have found now. If I restart the service
> from "Services" in computer management, it restarts fine, but if I
> click Stop and then Start after a 30 second delay, the same error as
> before happens which is:
>
> Dec 3, 2008 8:39:31 PM org.apache.coyote.http11.Http11AprProtocol init
> SEVERE: Error initializing endpoint
> java.lang.Exception: Socket bind failed: [730048] Only one usage of
> each socket address (protocol/network address/port) is normally
> permitted.
>at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
>at 
> org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:116)
>at 
> org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
>at 
> org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
>at 
> org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
>at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
>at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>at java.lang.reflect.Method.invoke(Unknown Source)
>at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
>at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
>
> After this, I am forced to restart the server. Again, if the service
> is set as manual, I get the same error, but if I restart as automatic,
> Tomcat starts fine. I am wondering if this is a genuine security
> breach or trojan holding port 80 or something else and how can I find
> it. Symantec and other antivirus programs haven't shown any intrusion
> yet. I don't have any other server running on port 80. This server
> configuration has worked for the past 1 year without such problems.
>
>
> Thanks for all the help,
> -Toby
>
> On Fri, Nov 21, 2008 at 5:28 PM, Kees Jan Koster <[EMAIL PROTECTED]> wrote:
>> Dear Toby,
>>
>>> Another thing I have found is that Tomcat slows down when a lot of
>>> people are connected and requesting to the DB. My maxActive = '150'
>>> for the database and maxThreads = '300'. The task manager doesn't show
>>> high CPU usage and there is always atleast 2GB RAM free. Any ideas on
>>> why this is happening? DB server is running fine too. In the past, the
>>> DB server CPU would be high when this happened, but now that's Not the
>>> case.
>>
>> How does the I/O on the box behave?
>> --
>> Kees Jan
>>
>> http://java-monitor.com/forum/
>> [EMAIL PROTECTED]
>> 06-51838192
>>
>> The secret of success lies in the stability of the goal. -- Benjamin
>> Disraeli
>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: java.lang.Exception: Socket bind failed: [730048]

2008-12-04 Thread Schuster Stefan
Hey Toby,

it might have something to do with a timeout, I remember that some
operating systems hold a port "reserved" for a while after it was
bound as a listening port.

Hope this is a pointer in the right direction.

Best regards
Stefan

-Ursprüngliche Nachricht-
Von: Toby Kurien [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 4. Dezember 2008 16:38
An: Tomcat Users List
Betreff: Re: java.lang.Exception: Socket bind failed: [730048]

Hi,
Here's the weirdest thing I have found now. If I restart the service
from "Services" in computer management, it restarts fine, but if I
click Stop and then Start after a 30 second delay, the same error as
before happens which is:

Dec 3, 2008 8:39:31 PM org.apache.coyote.http11.Http11AprProtocol init
SEVERE: Error initializing endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of
each socket address (protocol/network address/port) is normally
permitted.
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
at 
org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:116)
at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

After this, I am forced to restart the server. Again, if the service
is set as manual, I get the same error, but if I restart as automatic,
Tomcat starts fine. I am wondering if this is a genuine security
breach or trojan holding port 80 or something else and how can I find
it. Symantec and other antivirus programs haven't shown any intrusion
yet. I don't have any other server running on port 80. This server
configuration has worked for the past 1 year without such problems.


Thanks for all the help,
-Toby

On Fri, Nov 21, 2008 at 5:28 PM, Kees Jan Koster <[EMAIL PROTECTED]> wrote:
> Dear Toby,
>
>> Another thing I have found is that Tomcat slows down when a lot of
>> people are connected and requesting to the DB. My maxActive = '150'
>> for the database and maxThreads = '300'. The task manager doesn't show
>> high CPU usage and there is always atleast 2GB RAM free. Any ideas on
>> why this is happening? DB server is running fine too. In the past, the
>> DB server CPU would be high when this happened, but now that's Not the
>> case.
>
> How does the I/O on the box behave?
> --
> Kees Jan
>
> http://java-monitor.com/forum/
> [EMAIL PROTECTED]
> 06-51838192
>
> The secret of success lies in the stability of the goal. -- Benjamin
> Disraeli
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.lang.Exception: Socket bind failed: [730048]

2008-12-04 Thread Toby Kurien
Hi,
Here's the weirdest thing I have found now. If I restart the service
from "Services" in computer management, it restarts fine, but if I
click Stop and then Start after a 30 second delay, the same error as
before happens which is:

Dec 3, 2008 8:39:31 PM org.apache.coyote.http11.Http11AprProtocol init
SEVERE: Error initializing endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of
each socket address (protocol/network address/port) is normally
permitted.
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
at 
org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:116)
at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

After this, I am forced to restart the server. Again, if the service
is set as manual, I get the same error, but if I restart as automatic,
Tomcat starts fine. I am wondering if this is a genuine security
breach or trojan holding port 80 or something else and how can I find
it. Symantec and other antivirus programs haven't shown any intrusion
yet. I don't have any other server running on port 80. This server
configuration has worked for the past 1 year without such problems.


Thanks for all the help,
-Toby

On Fri, Nov 21, 2008 at 5:28 PM, Kees Jan Koster <[EMAIL PROTECTED]> wrote:
> Dear Toby,
>
>> Another thing I have found is that Tomcat slows down when a lot of
>> people are connected and requesting to the DB. My maxActive = '150'
>> for the database and maxThreads = '300'. The task manager doesn't show
>> high CPU usage and there is always atleast 2GB RAM free. Any ideas on
>> why this is happening? DB server is running fine too. In the past, the
>> DB server CPU would be high when this happened, but now that's Not the
>> case.
>
> How does the I/O on the box behave?
> --
> Kees Jan
>
> http://java-monitor.com/forum/
> [EMAIL PROTECTED]
> 06-51838192
>
> The secret of success lies in the stability of the goal. -- Benjamin
> Disraeli
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.lang.Exception: Socket bind failed: [730048]

2008-11-21 Thread Kees Jan Koster

Dear Toby,


Another thing I have found is that Tomcat slows down when a lot of
people are connected and requesting to the DB. My maxActive = '150'
for the database and maxThreads = '300'. The task manager doesn't show
high CPU usage and there is always atleast 2GB RAM free. Any ideas on
why this is happening? DB server is running fine too. In the past, the
DB server CPU would be high when this happened, but now that's Not the
case.


How does the I/O on the box behave?
--
Kees Jan

http://java-monitor.com/forum/
[EMAIL PROTECTED]
06-51838192

The secret of success lies in the stability of the goal. -- Benjamin  
Disraeli



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: java.lang.Exception: Socket bind failed: [730048]

2008-11-21 Thread Caldarale, Charles R
> From: Toby Kurien [mailto:[EMAIL PROTECTED]
> Subject: Re: java.lang.Exception: Socket bind failed: [730048]
>
> There is no IIS on this box.

Then what was using port 80 earlier?  To quote from a previous message of 
yours: "Only the webserver listening on port 80."  What "webserver" is that?

> My maxActive = '150' for the database and maxThreads = '300'.

If you have 300 Tomcat threads vying for 150 database connections, then 150 of 
the threads are going to be waiting until the others release the connections.

Take some thread dumps during the slow periods and see where things are stuck.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.lang.Exception: Socket bind failed: [730048]

2008-11-21 Thread Toby Kurien
There is no IIS on this box.

Another thing I have found is that Tomcat slows down when a lot of
people are connected and requesting to the DB. My maxActive = '150'
for the database and maxThreads = '300'. The task manager doesn't show
high CPU usage and there is always atleast 2GB RAM free. Any ideas on
why this is happening? DB server is running fine too. In the past, the
DB server CPU would be high when this happened, but now that's Not the
case.

Thanks again.


On Fri, Nov 21, 2008 at 1:07 AM, Vasanth Kumar ravi
<[EMAIL PROTECTED]> wrote:
>  would like to know if I can
> kill any process from netstat or otherwise (other than from Task
> Manager, as that doesn't show anything useful).
>
> Cud be IIS interference to Tomcat.
> Try the following
>
> Start --> Control Panel --> Administrative Tools -->Services --> I
>
> Find the process named IIS Admin and right click to Stop it.
>
> jus my 2 cents.
>
> On Fri, Nov 21, 2008 at 10:36 AM, Toby Kurien <[EMAIL PROTECTED]> wrote:
>
>> Telnet does not work and netstat does not show anything suspicious.
>> Only the webserver listening on port 80. I would like to know if I can
>> kill any process from netstat or otherwise (other than from Task
>> Manager, as that doesn't show anything useful).
>>
>> For now, I am already rebuilding a new server with Tomcat 6.0 and I
>> would like to know if there are any tools to monitor this from
>> happening again. I feel Tomcat 6.0 doesn't even have the admin webapp,
>> but not so sure. Let me know where I can find it. Also any tools to
>> monitor activity, sessions, RAM usage, jdbc connections, connection
>> pools would be very helpful.
>>
>> Thanks,
>> -Toby
>>
>>
>> On Thu, Nov 20, 2008 at 3:28 PM, Len Popp <[EMAIL PROTECTED]> wrote:
>> > The command "netstat -ao" will tell you which process is listening on
>> > port 80, and Task Manager will show which program is running in that
>> > process.
>> > --
>> > Len
>> >
>> >
>> >
>> > On Thu, Nov 20, 2008 at 14:47, Toby Kurien <[EMAIL PROTECTED]> wrote:
>> >> Well, I have had this application for many years and usually
>> >> restarting the whole server fixes anything, but not this time. I
>> >> figure something is holding on to port 80, but I am not able to find
>> >> out or terminate it. I have a bad feeling there might be a security
>> >> breach or something.
>> >>
>> >> Thanks,
>> >> -Toby
>> >>
>> >> On Wed, Nov 19, 2008 at 2:59 PM, Caldarale, Charles R
>> >> <[EMAIL PROTECTED]> wrote:
>> >>>> From: Toby Kurien [mailto:[EMAIL PROTECTED]
>> >>>> Subject: java.lang.Exception: Socket bind failed: [730048]
>> >>>>
>> >>>> I have attached a log file of the errors I am
>> >>>> getting while trying to start Tomcat.
>> >>>
>> >>>> Nov 19, 2008 12:55:22 PM
>> >>>> org.apache.coyote.http11.Http11AprProtocol init
>> >>>> SEVERE: Error initializing endpoint
>> >>>> java.lang.Exception: Socket bind failed: [730048] Only one usage of
>> >>>> each socket address (protocol/network address/port) is normally
>> >>>> permitted.
>> >>>>at
>> >>>> org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
>> >>>>at
>> >>>>
>> org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:116)
>> >>>
>> >>> The error indicates something else is already using port 80, thereby
>> preventing Tomcat from accessing it.  Since you also have an AJP connector,
>> you may be running Tomcat behind IIS or some other web server that handles
>> port 80 and forwards requests to AJP on 8009.
>> >>>
>> >>> If you don't expect anything else to be using port 80, then something
>> has crept in that's usurping Tomcat.  (Or you may just be trying to run the
>> same Tomcat twice.)
>> >>>
>> >>>  - 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.
>> >>>
>> >>> --

Re: java.lang.Exception: Socket bind failed: [730048]

2008-11-20 Thread Vasanth Kumar ravi
 would like to know if I can
kill any process from netstat or otherwise (other than from Task
Manager, as that doesn't show anything useful).

Cud be IIS interference to Tomcat.
Try the following

Start --> Control Panel --> Administrative Tools -->Services --> I

Find the process named IIS Admin and right click to Stop it.

jus my 2 cents.

On Fri, Nov 21, 2008 at 10:36 AM, Toby Kurien <[EMAIL PROTECTED]> wrote:

> Telnet does not work and netstat does not show anything suspicious.
> Only the webserver listening on port 80. I would like to know if I can
> kill any process from netstat or otherwise (other than from Task
> Manager, as that doesn't show anything useful).
>
> For now, I am already rebuilding a new server with Tomcat 6.0 and I
> would like to know if there are any tools to monitor this from
> happening again. I feel Tomcat 6.0 doesn't even have the admin webapp,
> but not so sure. Let me know where I can find it. Also any tools to
> monitor activity, sessions, RAM usage, jdbc connections, connection
> pools would be very helpful.
>
> Thanks,
> -Toby
>
>
> On Thu, Nov 20, 2008 at 3:28 PM, Len Popp <[EMAIL PROTECTED]> wrote:
> > The command "netstat -ao" will tell you which process is listening on
> > port 80, and Task Manager will show which program is running in that
> > process.
> > --
> > Len
> >
> >
> >
> > On Thu, Nov 20, 2008 at 14:47, Toby Kurien <[EMAIL PROTECTED]> wrote:
> >> Well, I have had this application for many years and usually
> >> restarting the whole server fixes anything, but not this time. I
> >> figure something is holding on to port 80, but I am not able to find
> >> out or terminate it. I have a bad feeling there might be a security
> >> breach or something.
> >>
> >> Thanks,
> >> -Toby
> >>
> >> On Wed, Nov 19, 2008 at 2:59 PM, Caldarale, Charles R
> >> <[EMAIL PROTECTED]> wrote:
> >>>> From: Toby Kurien [mailto:[EMAIL PROTECTED]
> >>>> Subject: java.lang.Exception: Socket bind failed: [730048]
> >>>>
> >>>> I have attached a log file of the errors I am
> >>>> getting while trying to start Tomcat.
> >>>
> >>>> Nov 19, 2008 12:55:22 PM
> >>>> org.apache.coyote.http11.Http11AprProtocol init
> >>>> SEVERE: Error initializing endpoint
> >>>> java.lang.Exception: Socket bind failed: [730048] Only one usage of
> >>>> each socket address (protocol/network address/port) is normally
> >>>> permitted.
> >>>>at
> >>>> org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
> >>>>at
> >>>>
> org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:116)
> >>>
> >>> The error indicates something else is already using port 80, thereby
> preventing Tomcat from accessing it.  Since you also have an AJP connector,
> you may be running Tomcat behind IIS or some other web server that handles
> port 80 and forwards requests to AJP on 8009.
> >>>
> >>> If you don't expect anything else to be using port 80, then something
> has crept in that's usurping Tomcat.  (Or you may just be trying to run the
> same Tomcat twice.)
> >>>
> >>>  - 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 start a new topic, e-mail: users@tomcat.apache.org
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>
> >> -
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Regards&Thanks,
Vasanth Kumar Ravi


RE: java.lang.Exception: Socket bind failed: [730048]

2008-11-20 Thread Caldarale, Charles R
> From: Toby Kurien [mailto:[EMAIL PROTECTED]
> Subject: Re: java.lang.Exception: Socket bind failed: [730048]
>
> Only the webserver listening on port 80.

If there's some webserver (which one - IIS?) listening on port 80, then Tomcat 
can't use that port, so it won't be able to initialize as you have it currently 
configured.

> I would like to know if I can kill any process from netstat
> or otherwise (other than from Task Manager, as that doesn't
> show anything useful).

TaskManager is pretty much the only way for Windows (and it does show a lot of 
useful things, such as the PID number).

> For now, I am already rebuilding a new server with Tomcat 6.0 and I
> would like to know if there are any tools to monitor this from
> happening again.

If you want Tomcat to use port 80, then don't start anything else that uses 
port 80.

> I feel Tomcat 6.0 doesn't even have the admin webapp,

It's gone - it had serious internal problems, and no one was interested in 
maintaining it.

> Also any tools to monitor activity, sessions, RAM usage,
> jdbc connections, connection pools would be very helpful.

Look at LambdaProbe, JConsole, and JVisualVM, for freebies that do monitoring 
on the fly.  MoSKito (http://moskito.anotheria.net/) is useful for gathering 
data to be processed later.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.lang.Exception: Socket bind failed: [730048]

2008-11-20 Thread Toby Kurien
Telnet does not work and netstat does not show anything suspicious.
Only the webserver listening on port 80. I would like to know if I can
kill any process from netstat or otherwise (other than from Task
Manager, as that doesn't show anything useful).

For now, I am already rebuilding a new server with Tomcat 6.0 and I
would like to know if there are any tools to monitor this from
happening again. I feel Tomcat 6.0 doesn't even have the admin webapp,
but not so sure. Let me know where I can find it. Also any tools to
monitor activity, sessions, RAM usage, jdbc connections, connection
pools would be very helpful.

Thanks,
-Toby


On Thu, Nov 20, 2008 at 3:28 PM, Len Popp <[EMAIL PROTECTED]> wrote:
> The command "netstat -ao" will tell you which process is listening on
> port 80, and Task Manager will show which program is running in that
> process.
> --
> Len
>
>
>
> On Thu, Nov 20, 2008 at 14:47, Toby Kurien <[EMAIL PROTECTED]> wrote:
>> Well, I have had this application for many years and usually
>> restarting the whole server fixes anything, but not this time. I
>> figure something is holding on to port 80, but I am not able to find
>> out or terminate it. I have a bad feeling there might be a security
>> breach or something.
>>
>> Thanks,
>> -Toby
>>
>> On Wed, Nov 19, 2008 at 2:59 PM, Caldarale, Charles R
>> <[EMAIL PROTECTED]> wrote:
>>>> From: Toby Kurien [mailto:[EMAIL PROTECTED]
>>>> Subject: java.lang.Exception: Socket bind failed: [730048]
>>>>
>>>> I have attached a log file of the errors I am
>>>> getting while trying to start Tomcat.
>>>
>>>> Nov 19, 2008 12:55:22 PM
>>>> org.apache.coyote.http11.Http11AprProtocol init
>>>> SEVERE: Error initializing endpoint
>>>> java.lang.Exception: Socket bind failed: [730048] Only one usage of
>>>> each socket address (protocol/network address/port) is normally
>>>> permitted.
>>>>at
>>>> org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
>>>>at
>>>> org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:116)
>>>
>>> The error indicates something else is already using port 80, thereby 
>>> preventing Tomcat from accessing it.  Since you also have an AJP connector, 
>>> you may be running Tomcat behind IIS or some other web server that handles 
>>> port 80 and forwards requests to AJP on 8009.
>>>
>>> If you don't expect anything else to be using port 80, then something has 
>>> crept in that's usurping Tomcat.  (Or you may just be trying to run the 
>>> same Tomcat twice.)
>>>
>>>  - 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 start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.lang.Exception: Socket bind failed: [730048]

2008-11-20 Thread Len Popp
The command "netstat -ao" will tell you which process is listening on
port 80, and Task Manager will show which program is running in that
process.
-- 
Len



On Thu, Nov 20, 2008 at 14:47, Toby Kurien <[EMAIL PROTECTED]> wrote:
> Well, I have had this application for many years and usually
> restarting the whole server fixes anything, but not this time. I
> figure something is holding on to port 80, but I am not able to find
> out or terminate it. I have a bad feeling there might be a security
> breach or something.
>
> Thanks,
> -Toby
>
> On Wed, Nov 19, 2008 at 2:59 PM, Caldarale, Charles R
> <[EMAIL PROTECTED]> wrote:
>>> From: Toby Kurien [mailto:[EMAIL PROTECTED]
>>> Subject: java.lang.Exception: Socket bind failed: [730048]
>>>
>>> I have attached a log file of the errors I am
>>> getting while trying to start Tomcat.
>>
>>> Nov 19, 2008 12:55:22 PM
>>> org.apache.coyote.http11.Http11AprProtocol init
>>> SEVERE: Error initializing endpoint
>>> java.lang.Exception: Socket bind failed: [730048] Only one usage of
>>> each socket address (protocol/network address/port) is normally
>>> permitted.
>>>at
>>> org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
>>>at
>>> org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:116)
>>
>> The error indicates something else is already using port 80, thereby 
>> preventing Tomcat from accessing it.  Since you also have an AJP connector, 
>> you may be running Tomcat behind IIS or some other web server that handles 
>> port 80 and forwards requests to AJP on 8009.
>>
>> If you don't expect anything else to be using port 80, then something has 
>> crept in that's usurping Tomcat.  (Or you may just be trying to run the same 
>> Tomcat twice.)
>>
>>  - 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 start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.lang.Exception: Socket bind failed: [730048]

2008-11-20 Thread Hassan Schroeder
On Thu, Nov 20, 2008 at 11:47 AM, Toby Kurien <[EMAIL PROTECTED]> wrote:
> Well, I have had this application for many years and usually
> restarting the whole server fixes anything, but not this time. I
> figure something is holding on to port 80, but I am not able to find
> out or terminate it. I have a bad feeling there might be a security
> breach or something.

I have no idea what tools are available on a Windows server, but for
a simple check -- what do you see when you telnet to port 80?

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.lang.Exception: Socket bind failed: [730048]

2008-11-20 Thread Toby Kurien
Well, I have had this application for many years and usually
restarting the whole server fixes anything, but not this time. I
figure something is holding on to port 80, but I am not able to find
out or terminate it. I have a bad feeling there might be a security
breach or something.

Thanks,
-Toby

On Wed, Nov 19, 2008 at 2:59 PM, Caldarale, Charles R
<[EMAIL PROTECTED]> wrote:
>> From: Toby Kurien [mailto:[EMAIL PROTECTED]
>> Subject: java.lang.Exception: Socket bind failed: [730048]
>>
>> I have attached a log file of the errors I am
>> getting while trying to start Tomcat.
>
>> Nov 19, 2008 12:55:22 PM
>> org.apache.coyote.http11.Http11AprProtocol init
>> SEVERE: Error initializing endpoint
>> java.lang.Exception: Socket bind failed: [730048] Only one usage of
>> each socket address (protocol/network address/port) is normally
>> permitted.
>>at
>> org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
>>at
>> org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:116)
>
> The error indicates something else is already using port 80, thereby 
> preventing Tomcat from accessing it.  Since you also have an AJP connector, 
> you may be running Tomcat behind IIS or some other web server that handles 
> port 80 and forwards requests to AJP on 8009.
>
> If you don't expect anything else to be using port 80, then something has 
> crept in that's usurping Tomcat.  (Or you may just be trying to run the same 
> Tomcat twice.)
>
>  - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: java.lang.Exception: Socket bind failed: [730048]

2008-11-19 Thread Caldarale, Charles R
> From: Toby Kurien [mailto:[EMAIL PROTECTED]
> Subject: java.lang.Exception: Socket bind failed: [730048]
>
> I have attached a log file of the errors I am
> getting while trying to start Tomcat.

> Nov 19, 2008 12:55:22 PM
> org.apache.coyote.http11.Http11AprProtocol init
> SEVERE: Error initializing endpoint
> java.lang.Exception: Socket bind failed: [730048] Only one usage of
> each socket address (protocol/network address/port) is normally
> permitted.
>at
> org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
>at
> org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:116)

The error indicates something else is already using port 80, thereby preventing 
Tomcat from accessing it.  Since you also have an AJP connector, you may be 
running Tomcat behind IIS or some other web server that handles port 80 and 
forwards requests to AJP on 8009.

If you don't expect anything else to be using port 80, then something has crept 
in that's usurping Tomcat.  (Or you may just be trying to run the same Tomcat 
twice.)

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



java.lang.Exception: Socket bind failed: [730048]

2008-11-19 Thread Toby Kurien
Hi Everybody,
I have been using Apache Tomcat 5.5.23 with Java 1.5.0_12. OS is Windown Server
2003. Tomcat connects to an Informix database and I have been using this
application at my company without any major issues so far for more than 2
years. Lately we noticed some suspicious activities reported by Symantec and
there seems to be some phony user ids being created under Local Users and
Groups. Soon after that, the response from the Tomcat application
seems to be pretty
slow. I use jsp and jdbc to connect to the Informix database and there is
nothing too complex about that. I have attached a log file of the errors I am
getting while trying to start Tomcat.
It would be great as we are apprehensive that it is a security breach as the
application starts fine every time. My development servers that have same
configuration and connecting to the same Informix Database are running fine.
Please help at the earliest as the application is critical to the company. Do
let me know of other information you may need.

Here is the log file error:

Nov 19, 2008 12:55:22 PM org.apache.coyote.http11.Http11AprProtocol init
SEVERE: Error initializing endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of
each socket address (protocol/network address/port) is normally
permitted.
   at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
   at 
org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:116)
   at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
   at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
   at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Nov 19, 2008 12:55:22 PM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed:
java.lang.Exception: Socket bind failed: [730048] Only one usage of
each socket address (protocol/network address/port) is normally
permitted.
   at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
   at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
   at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Nov 19, 2008 12:55:22 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1906 ms
Nov 19, 2008 12:55:22 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 19, 2008 12:55:22 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
Nov 19, 2008 12:55:22 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Nov 19, 2008 12:55:26 PM org.apache.coyote.http11.Http11AprProtocol start
SEVERE: Error starting endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of
each socket address (protocol/network address/port) is normally
permitted.
   at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
   at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:686)
   at 
org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:146)
   at org.apache.catalina.connector.Connector.start(Connector.java:1090)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:457)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   at