You are absolutly right. I realized my mistake and took the edit I made out
of the script. Restarted tomcat, restarted apache and I get the same error
as before. Now I am just trying to get tomcat to answer on port 8080, and
it won't do that. So again I believe that I have some configuration wrong.
I don't start tomcat as a user, just root for the moment.
Thanks,
Ken
-----Original Message-----
From: Andrew Robson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 4:50 PM
To: [EMAIL PROTECTED]
Subject: Re: almost there
Hi,
Sorry don't have solution but may have hint. I've seen this error a couple
of
times in the last week. Thought it a bit wierd as I've been developing with
tomcat for last 4 months and hadn't seen it before. Following a hunch I've
just reproduced it. I have a user set up that I run tomcat under. I get this
error if having started under this user I carelessly shut down the server
while
root. Can sort it by doing a reboot but suppose you can do it by identifying
the process running on 8007 and killing it.
Don't know if this helps you much.
BTW, could be wrong but I would think that the Ajpv12 stuff you added
to server.xml would have already been there by default?
andrew
On Wed, 14 Mar 2001, you wrote:
> I have the tomcat server running and I can get to the
> "examples/servlets" page. When I click on "HelloServlet Execute button"
> I get a pop-up box that states that
> there was no data. I figured that I did not have the connector set up
> right so, I edited the server.xml file and added;
>
>
> <!-- (2) AJPV12 Connector for out-of-process operation -->
> <Connector
> className="org.apache.tomcat.service.PoolTcpConnector">
> <Parameter name="handler"
>
> value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
> <Parameter name="port"
> value="8007"/>
> </Connector>
>
> I added this right below the other connector. When I startup and
> shutdown the server I get the following message.
>
> [root@webservices bin]# ./startup.sh
> Using classpath:
>
/usr/jakarta-tomcat-3.2.1//lib/ant.jar:/usr/jakarta-tomcat-3.2.1//lib/jasper
.jar:/usr/jakarta-tomcat-3.2.1//lib/jaxp.jar:/usr/jakarta-tomcat-3.2.1//lib/
parser.jar:/usr/jakarta-tomcat-3.2.1//lib/servlet.jar:/usr/jakarta-tomcat-3.
2.1//lib/test:/usr/jakarta-tomcat-3.2.1//lib/webserver.jar:/usr/java/jdk1.3.
0_02/lib/tools.jar
>
> [root@webservices bin]# 2001-03-14 08:43:49 - ContextManager: Adding
> context Ctx( /examples )
> 2001-03-14 08:43:49 - ContextManager: Adding context Ctx( /admin )
> Starting tomcat. Check logs/tomcat.log for error messages
> 2001-03-14 08:43:50 - ContextManager: Adding context Ctx( )
> 2001-03-14 08:43:50 - ContextManager: Adding context Ctx( /test )
> 2001-03-14 08:43:53 - PoolTcpConnector: Starting Ajp12ConnectionHandler
> on 8007
> FATAL:java.net.BindException: Address already in use
> java.net.BindException: Address already in use
> at java.net.PlainSocketImpl.socketBind(Native Method)
> at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:408)
> at java.net.ServerSocket.<init>(ServerSocket.java:170)
> at java.net.ServerSocket.<init>(ServerSocket.java:121)
> at
>
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS
ocketFactory.java:97)
>
> at
>
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
:239)
>
> at
>
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
>
> at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
>
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
>
> [root@webservices bin]# ./shutdown.sh
> Using classpath:
>
/usr/jakarta-tomcat-3.2.1//lib/ant.jar:/usr/jakarta-tomcat-3.2.1//lib/jasper
.jar:/usr/jakarta-tomcat-3.2.1//lib/jaxp.jar:/usr/jakarta-tomcat-3.2.1//lib/
parser.jar:/usr/jakarta-tomcat-3.2.1//lib/servlet.jar:/usr/jakarta-tomcat-3.
2.1//lib/test:/usr/jakarta-tomcat-3.2.1//lib/webserver.jar:/usr/java/jdk1.3.
0_02/lib/tools.jar
>
> Stop tomcat
> java.lang.NullPointerException
> Signal ignored: 15
> 2001-03-14 08:44:32 - Ctx( ): IOException in: R( + / + null) Bad file
> descriptor
> [root@webservices bin]#
>
>
>
> Any ideas. I haven't tried to re-start the webserver at this point.
>
> Thanks,
> Ken Reeves
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
--