Hi,
Martin I'm not all that hot on apr, in fact I know nothing about it but the
error message I'm getting in the remote machine I'm starting tomcat on looks
like a classpath problem.
I ran ">CATALINA_HOME/bin/startup.sh debug" I got the following in
catalina.out

usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [
-nonaming ] { start | stop }
Dec 29, 2005 2:03:52 PM
org.apache.catalina.core.AprLifecycleListenerlifecycleEvent
INFO: The Apache Portable Runtime which allows optimal performance in
production environments was not found on the java.library.path:
/home/rmorrin/James/Java/DownloadedSoftware/jdk1.5.0_05/jre/lib/sparc/client:/home/rmorrin/James/Java/DownloadedSoftware/jdk1.5.0_05/jre/lib/sparc:/home/rmorrin/James/Java/DownloadedSoftware/jdk1.5.0_05/jre/../lib/sparc:/usr/lib

Dec 29, 2005 2:03:53 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-6060
Dec 29, 2005 2:03:53 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 4348 ms
Dec 29, 2005 2:03:54 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 29, 2005 2:03:54 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.12
Dec 29, 2005 2:03:54 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 29, 2005 2:03:59 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-6060

...and when I ran ">CATALINA_HOME/bin/shutdown.sh debug" I got the following

Dec 29, 2005 2:04:00 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Dec 29, 2005 2:04:00 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/174  config=null
Dec 29, 2005 2:04:01 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Dec 29, 2005 2:04:01 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 7901 ms
Dec 29, 2005 2:09:29 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-6060
Dec 29, 2005 2:09:30 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Dec 29, 2005 2:09:30 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-6060
Dec 29, 2005 2:09:30 PM
org.apache.catalina.core.AprLifecycleListenerlifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime

Cheers,
James.

On 12/25/05, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
> Good Morning James-
>
> I am interested to know if turning on this debugging information solved
> your problem
> I am not specifically running the Portable runtime myself but find looking
> for algorithms/procedures to reduce (already minimal) footprint so that we
> can run our apps on Portables (Blackberry and such) units...this is
> especially useful in the health care industry where doctors and nurses want
> to
> update patient information without lugging about their laptops
> The proviso is that we would be delivering the same UI characterstics as
> well as requisite functionality is a necessary and logical next step to
> fully engaging the wireless (loosely defined as but not limited to the
> 802.x spec) market
>
> I know alot of folks are tied up today so let's touch base on Monday
>
> Thanks
> Marty Gainty
> 617-852-7822
>
> ----- Original Message -----
> *From:* Martin Gainty <[EMAIL PROTECTED]>
> *To:* James Taylor <[EMAIL PROTECTED]>
> *Sent:* Saturday, December 24, 2005 10:32 AM
> *Subject:* Re: tomcat error
>
>
> Good Morning James and Happy Festivus
>
> shutdown.sh calls catalina.sh
> catalina.sh constructs dirname and concats the program name with
> parameters
> which executes this debug script
>
> if [ "$1" = "debug" ] ; then
> if $os400; then
> echo "Debug command not available on OS400"
> exit 1
> else
> shift
> if [ "$1" = "-security" ] ; then
> echo "Using Security Manager"
> shift
>
> exec "$_RUNJDB" $JAVA_OPTS $CATALINA_OPTS 
> -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS"
> -classpath "$CLASSPATH" -sourcepath
> "$CATALINA_HOME"/../../jakarta-tomcat-catalina/catalina/src/share -
> Djava.security.manager \
> -Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \
> -Dcatalina.base="$CATALINA_BASE" \
> -Dcatalina.home="$CATALINA_HOME" \
> -Djava.io.tmpdir="$CATALINA_TMPDIR" \
> org.apache.catalina.startup.Bootstrap "$@" start
>
> else
>
> exec "$_RUNJDB" $JAVA_OPTS $CATALINA_OPTS 
> -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS"
> -classpath "$CLASSPATH" \
> -sourcepath
> "$CATALINA_HOME"/../../jakarta-tomcat-catalina/catalina/src/share \
> -Dcatalina.base="$CATALINA_BASE" \
> -Dcatalina.home="$CATALINA_HOME" \
> -Djava.io.tmpdir="$CATALINA_TMPDIR" \
> org.apache.catalina.startup.Bootstrap "$@" start
>
> fi
> fi
>
> OR
> Assuming your CATALINA_HOME, CATALINA_BASE, CATALINA_TMPDIR are all setup
> properly
> $ java org.apache.catalina.startup.Bootstrap debug start
>
> AND let me know what you see
>
> then
> $ java org.apache.catalina.startup.Bootstrap debug stop
>
> AND let me know what you see
>
> Martin-
>
> ----- Original Message -----
> *From:* James Taylor <[EMAIL PROTECTED]>
> *To:* Martin Gainty <[EMAIL PROTECTED]>
> *Sent:* Wednesday, December 21, 2005 11:12 AM
> *Subject:* Re: tomcat error
>
>
> Martin,
> Fair enough but I'm not calling it from a program or manually, I'm just
> executing shutdown.sh. Should I try and change the args to
> apr_socket_shutdown in shutdown.sh or something?
> Regards,
> James.
>
>
> On 12/21/05, Martin Gainty <[EMAIL PROTECTED] > wrote:
> >
> > James-
> > Tomcat (Apache Portable Runtime) apr_socket_shutdown method has 2 args
> > 1)the socket you are closing
> > 2)0=No longer allow read requests thru this socket (APR_SHUTDOWN_READ)
> >   1=No longer allow write requests thru this socket (APR_SHUTDOWN_WRITE)
> >   2=No longer allow read/write requests thru this socket
> > (APR_SHUTDOWN_READWRITE)
> > HTH,
> > Martin
> > excerpted from 
> > http://apr.apache.org/docs/apr/apr__network__io_8h-source.html
> >
> > /**
> > 00287  * Shutdown either reading, writing, or both sides of a socket.
> > 00288  * @param thesocket The socket to close
> > 00289  * @param how How to shutdown the socket.  One of:
> > 00290  * <PRE>
> > 00291  *            APR_SHUTDOWN_READ         no longer allow read
> > requests
> > 00292  *            APR_SHUTDOWN_WRITE        no longer allow write
> > requests
> > 00293  *            APR_SHUTDOWN_READWRITE    no longer allow read or
> > write requests
> > 00294  * </PRE>
> > 00295  * @see apr_shutdown_how_e
> > 00296  * @remark This does not actually close the socket descriptor, it
> > just
> > 00297  *      controls which calls are still valid on the socket.
> > 00298  */
> > 00299 APR_DECLARE(apr_status_t) apr_socket_shutdown(apr_socket_t
> > *thesocket,
> > 00300                                               apr_shutdown_how_e
> > how);
> >
> > ----- Original Message -----
> > From: "James Taylor" < [EMAIL PROTECTED]>
> > To: < users@tomcat.apache.org>
> > Sent: Wednesday, December 21, 2005 7:25 AM
> > Subject: Re: tomcat error
> >
> >
> > Hi there,
> > sure enough I'm trying to run tomcat on Solaris 8 and tomcat 5.5.12.
> > The error I'm getting in ${CATALINA_HOME}/logs/catalina.out again is
> > Dec 21, 2005 12:02:35 PM org.apache.coyote.http11.Http11BaseProtocolpause
> > INFO: Pausing Coyote HTTP/1.1 on http-5050
> > Dec 21, 2005 12:02:35 PM
> > org.apache.jk.common.ChannelSocketacceptConnection=
> > s
> > WARNING: Exception executing accept
> > java.net.SocketException: Invalid argument
> >       at java.net.PlainSocketImpl.socketSetOption(Native Method)
> >       at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264)
> >       at java.net.Socket.setSoLinger (Socket.java:869)
> >       at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java
> > :298=
> > )
> >       at org.apache.jk.common.ChannelSocket.acceptConnections(
> > ChannelSocket.java:637)
> >       at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt (
> > ChannelSocket.java:847)
> >       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.java:684)
> >       at java.lang.Thread.run(Thread.java:595)
> > Dec 21, 2005 12:02:36 PM org.apache.catalina.core.StandardService stop
> > INFO: Stopping service Catalina
> > Dec 21, 2005 12:02:37 PM org.apache.coyote.http11.Http11BaseProtocoldestro=
> > y
> > INFO: Stopping Coyote HTTP/1.1 on http-5050
> > Dec 21, 2005 12:02:37 PM
> > org.apache.catalina.core.AprLifecycleListenerlifecycleEvent
> > INFO: Failed shutdown of Apache Portable Runtime
> >
>
>

Reply via email to