You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Pa...@kohls.com on 2006/06/22 21:12:52 UTC

Is there a "stopRemoteCache.sh" script available?

We had a consultant help us set up the JCS caching system but he is no
longer available.  He never completed the task of providing us with a
"stopRemoteCache.sh" script.  Is there a standard one available?

Thanks.

Paul


CONFIDENTIALITY NOTICE: 
This is a transmission from Kohl's Department Stores, Inc.
and may contain information which is confidential and proprietary.
If you are not the addressee, any disclosure, copying or distribution or use of the contents of this message is expressly prohibited.
If you have received this transmission in error, please destroy it and notify us immediately at 262-703-7000.

CAUTION:
Internet and e-mail communications are Kohl's property and Kohl's reserves the right to retrieve and read any message created, sent and received.  Kohl's reserves the right to monitor messages by authorized Kohl's Associates at any time
without any further consent.


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


Re: Is there a "stopRemoteCache.sh" script available?

Posted by Aaron Smuts <as...@yahoo.com>.
I'll add the information to the remote cache
documentation.  For now, the source has comments that
are useful.

http://svn.apache.org/viewvc/jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/remote/server/RemoteCacheStartupServlet.java?revision=415432&view=markup

If you added this to the web.xml file, it would do the
trick:

<servlet>
       
<servlet-name>JCSRemoteCacheStartupServlet</servlet-name>
        <servlet-class>
            
org.apache.jcs.auxiliary.remote.server.RemoteCacheStartupServlet
        </servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    
    
    <servlet-mapping>
       
<servlet-name>JCSRemoteCacheStartupServlet</servlet-name>
        <url-pattern>/jcs</url-pattern>
    </servlet-mapping>



--- Paul.Lewandowski@kohls.com wrote:

> Thanks.  We have used Tomcat before on other
> projects.  Where would I find
> the information on embedding JCS in Tomcat?
> 
> Paul
> 
> 
> 
>                                                     
>                       
>              "Alistair Forbes"                      
>                       
>              <forbes.al@google                      
>                       
>              mail.com>                              
>                    To 
>                                        "JCS Users
> List"                    
>              06/22/2006 04:29         
> <jc...@jakarta.apache.org>      
>              PM                                     
>                    cc 
>                                                     
>                       
>                                                     
>               Subject 
>              Please respond to         Re: Is there
> a "stopRemoteCache.sh" 
>              "JCS Users List"          script
> available?                   
>              <jcs-users@jakart                      
>                       
>                a.apache.org>                        
>                       
>                                                     
>                       
>                                                     
>                       
>                                                     
>                       
>                                                     
>                       
> 
> 
> 
> 
> The stop is fairly simple:
> 
> java -cp $CLASSPATH
>
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory
> -shutdown
> /$JCS_CONFIG_FILE
> 
> But I think Aaron's suggestion of embedding JCS in
> Tomcat is probably
> simpler for most folks. Tomcat provides the
> start/stop scripts, and JCS
> provides some web based admin tools.
> 
> Regards
> Al
> 
> On 6/22/06, Paul.Lewandowski@kohls.com
> <Pa...@kohls.com> wrote:
> >
> >
> > We had a consultant help us set up the JCS caching
> system but he is no
> > longer available.  He never completed the task of
> providing us with a
> > "stopRemoteCache.sh" script.  Is there a standard
> one available?
> >
> > Thanks.
> >
> > Paul
> >
> >
> > CONFIDENTIALITY NOTICE:
> > This is a transmission from Kohl's Department
> Stores, Inc.
> > and may contain information which is confidential
> and proprietary.
> > If you are not the addressee, any disclosure,
> copying or distribution or
> > use of the contents of this message is expressly
> prohibited.
> > If you have received this transmission in error,
> please destroy it and
> > notify us immediately at 262-703-7000.
> >
> > CAUTION:
> > Internet and e-mail communications are Kohl's
> property and Kohl's
> reserves
> > the right to retrieve and read any message
> created, sent and
> > received.  Kohl's reserves the right to monitor
> messages by authorized
> > Kohl's Associates at any time
> > without any further consent.
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> jcs-users-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> jcs-users-help@jakarta.apache.org
> >
> >
> 
> 
> 
> CONFIDENTIALITY NOTICE: 
> This is a transmission from Kohl's Department
> Stores, Inc.
> and may contain information which is confidential
> and proprietary.
> If you are not the addressee, any disclosure,
> copying or distribution or use of the contents of
> this message is expressly prohibited.
> If you have received this transmission in error,
> please destroy it and notify us immediately at
> 262-703-7000.
> 
> CAUTION:
> Internet and e-mail communications are Kohl's
> property and Kohl's reserves the right to retrieve
> and read any message created, sent and received. 
> Kohl's reserves the right to monitor messages by
> authorized Kohl's Associates at any time
> without any further consent.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jcs-users-help@jakarta.apache.org
> 
> 


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


Re: Is there a "stopRemoteCache.sh" script available?

Posted by Pa...@kohls.com.
Thanks.  We have used Tomcat before on other projects.  Where would I find
the information on embedding JCS in Tomcat?

Paul



                                                                           
             "Alistair Forbes"                                             
             <forbes.al@google                                             
             mail.com>                                                  To 
                                       "JCS Users List"                    
             06/22/2006 04:29          <jc...@jakarta.apache.org>      
             PM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         Re: Is there a "stopRemoteCache.sh" 
             "JCS Users List"          script available?                   
             <jcs-users@jakart                                             
               a.apache.org>                                               
                                                                           
                                                                           
                                                                           
                                                                           




The stop is fairly simple:

java -cp $CLASSPATH
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory -shutdown
/$JCS_CONFIG_FILE

But I think Aaron's suggestion of embedding JCS in Tomcat is probably
simpler for most folks. Tomcat provides the start/stop scripts, and JCS
provides some web based admin tools.

Regards
Al

On 6/22/06, Paul.Lewandowski@kohls.com <Pa...@kohls.com> wrote:
>
>
> We had a consultant help us set up the JCS caching system but he is no
> longer available.  He never completed the task of providing us with a
> "stopRemoteCache.sh" script.  Is there a standard one available?
>
> Thanks.
>
> Paul
>
>
> CONFIDENTIALITY NOTICE:
> This is a transmission from Kohl's Department Stores, Inc.
> and may contain information which is confidential and proprietary.
> If you are not the addressee, any disclosure, copying or distribution or
> use of the contents of this message is expressly prohibited.
> If you have received this transmission in error, please destroy it and
> notify us immediately at 262-703-7000.
>
> CAUTION:
> Internet and e-mail communications are Kohl's property and Kohl's
reserves
> the right to retrieve and read any message created, sent and
> received.  Kohl's reserves the right to monitor messages by authorized
> Kohl's Associates at any time
> without any further consent.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>
>



CONFIDENTIALITY NOTICE: 
This is a transmission from Kohl's Department Stores, Inc.
and may contain information which is confidential and proprietary.
If you are not the addressee, any disclosure, copying or distribution or use of the contents of this message is expressly prohibited.
If you have received this transmission in error, please destroy it and notify us immediately at 262-703-7000.

CAUTION:
Internet and e-mail communications are Kohl's property and Kohl's reserves the right to retrieve and read any message created, sent and received.  Kohl's reserves the right to monitor messages by authorized Kohl's Associates at any time
without any further consent.


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


Re: Is there a "stopRemoteCache.sh" script available?

Posted by Pa...@kohls.com.
Hi,

I tried to create the script you spoke of and got the following exception
message when executing it:

[348304]kax9006c:jcs> scripts/stopRemoteCache.sh
[ERROR] RemoteCacheServerFactory - -Problem calling shutdown.
<java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
        java.rmi.ConnectException: Connection refused to host: 10.1.192.21;
nested exception is:
        java.net.ConnectException: A remote host refused an attempted
connect operation.>java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
        java.rmi.ConnectException: Connection refused to host: 10.1.192.21;
nested exception is:
        java.net.ConnectException: A remote host refused an attempted
connect operation.
        at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java(Compiled
Code))
        at sun.rmi.transport.Transport$1.run(Transport.java(Compiled Code))
        at java.security.AccessController.doPrivileged1(Native Method)
        at
java.security.AccessController.doPrivileged(AccessController.java(Compiled
Code))
        at sun.rmi.transport.Transport.serviceCall(Transport.java(Compiled
Code))
        at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java(Compiled
 Code))
        at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.handleRequest(TCPTransport.java(Compiled
 Code))
        at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java(Compiled
 Code))
        at java.lang.Thread.run(Thread.java(Compiled Code))
        at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:264)
        at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:240)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:149)
        at
org.apache.jcs.auxiliary.remote.server.RemoteCacheServer_Stub.shutdown(Unknown
 Source)
        at
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory.main(RemoteCacheServerFactory.java:280)
Caused by: java.rmi.ConnectException: Connection refused to host:
10.1.192.21; nested exception is:
        java.net.ConnectException: A remote host refused an attempted
connect operation.
        at
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java(Compiled
Code))
        at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java(Compiled
Code))
        at
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java(Compiled
Code))
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java(Compiled
Code))
        at
sun.rmi.registry.RegistryImpl_Stub.unbind(RegistryImpl_Stub.java(Compiled
Code))
        at java.rmi.Naming.unbind(Naming.java(Inlined Compiled Code))
        at
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory.shutdownImpl(RemoteCacheServerFactory.java(Compiled
 Code))
        at
org.apache.jcs.auxiliary.remote.server.RemoteCacheServer.shutdown(RemoteCacheServer.java(Compiled
 Code))
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled
 Code))
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled
 Code))
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
 Code))
        at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
        at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java(Compiled
Code))
        at sun.rmi.transport.Transport$1.run(Transport.java(Compiled Code))
        at java.security.AccessController.doPrivileged1(Native Method)
        at
java.security.AccessController.doPrivileged(AccessController.java(Compiled
Code))
        at sun.rmi.transport.Transport.serviceCall(Transport.java(Compiled
Code))
        at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java(Compiled
 Code))
        at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.handleRequest(TCPTransport.java(Compiled
 Code))
        at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java(Compiled
 Code))
        at java.lang.Thread.run(Thread.java(Compiled Code))
Caused by: java.net.ConnectException: A remote host refused an attempted
connect operation.
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java(Compiled
Code))
        at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java(Compiled
Code))
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java(Compiled
Code))
        at java.net.Socket.connect(Socket.java(Compiled Code))
        at java.net.Socket.connect(Socket.java(Inlined Compiled Code))
        at java.net.Socket.<init>(Socket.java(Compiled Code))
        at java.net.Socket.<init>(Socket.java(Compiled Code))
        at
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory$1.createSocket(RemoteCacheServerFactory.java(Compiled
 Code))
        ... 22 more


Here is my "stopRemoteCache.sh" script for our UNIX server:

export
CLASSPATH=bin:lib/jcs-1.2.7.3.jar:lib/commons-logging.jar:lib/commons-logging-api.jar:lib/concurrent.jar
export ARGS="-classpath $CLASSPATH"
export REMOTE=/remote.cache.ccf

/usr/java14/bin/java $ARGS
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory -shutdown
$REMOTE

Any suggestions?

Thanks.

Paul



                                                                           
             "Alistair Forbes"                                             
             <forbes.al@google                                             
             mail.com>                                                  To 
                                       "JCS Users List"                    
             06/22/2006 04:29          <jc...@jakarta.apache.org>      
             PM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         Re: Is there a "stopRemoteCache.sh" 
             "JCS Users List"          script available?                   
             <jcs-users@jakart                                             
               a.apache.org>                                               
                                                                           
                                                                           
                                                                           
                                                                           




The stop is fairly simple:

java -cp $CLASSPATH
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory -shutdown
/$JCS_CONFIG_FILE

But I think Aaron's suggestion of embedding JCS in Tomcat is probably
simpler for most folks. Tomcat provides the start/stop scripts, and JCS
provides some web based admin tools.

Regards
Al

On 6/22/06, Paul.Lewandowski@kohls.com <Pa...@kohls.com> wrote:
>
>
> We had a consultant help us set up the JCS caching system but he is no
> longer available.  He never completed the task of providing us with a
> "stopRemoteCache.sh" script.  Is there a standard one available?
>
> Thanks.
>
> Paul
>
>
> CONFIDENTIALITY NOTICE:
> This is a transmission from Kohl's Department Stores, Inc.
> and may contain information which is confidential and proprietary.
> If you are not the addressee, any disclosure, copying or distribution or
> use of the contents of this message is expressly prohibited.
> If you have received this transmission in error, please destroy it and
> notify us immediately at 262-703-7000.
>
> CAUTION:
> Internet and e-mail communications are Kohl's property and Kohl's
reserves
> the right to retrieve and read any message created, sent and
> received.  Kohl's reserves the right to monitor messages by authorized
> Kohl's Associates at any time
> without any further consent.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>
>



CONFIDENTIALITY NOTICE: 
This is a transmission from Kohl's Department Stores, Inc.
and may contain information which is confidential and proprietary.
If you are not the addressee, any disclosure, copying or distribution or use of the contents of this message is expressly prohibited.
If you have received this transmission in error, please destroy it and notify us immediately at 262-703-7000.

CAUTION:
Internet and e-mail communications are Kohl's property and Kohl's reserves the right to retrieve and read any message created, sent and received.  Kohl's reserves the right to monitor messages by authorized Kohl's Associates at any time
without any further consent.


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


Re: Is there a "stopRemoteCache.sh" script available?

Posted by Alistair Forbes <fo...@googlemail.com>.
The stop is fairly simple:

java -cp $CLASSPATH
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory -shutdown
/$JCS_CONFIG_FILE

But I think Aaron's suggestion of embedding JCS in Tomcat is probably
simpler for most folks. Tomcat provides the start/stop scripts, and JCS
provides some web based admin tools.

Regards
Al

On 6/22/06, Paul.Lewandowski@kohls.com <Pa...@kohls.com> wrote:
>
>
> We had a consultant help us set up the JCS caching system but he is no
> longer available.  He never completed the task of providing us with a
> "stopRemoteCache.sh" script.  Is there a standard one available?
>
> Thanks.
>
> Paul
>
>
> CONFIDENTIALITY NOTICE:
> This is a transmission from Kohl's Department Stores, Inc.
> and may contain information which is confidential and proprietary.
> If you are not the addressee, any disclosure, copying or distribution or
> use of the contents of this message is expressly prohibited.
> If you have received this transmission in error, please destroy it and
> notify us immediately at 262-703-7000.
>
> CAUTION:
> Internet and e-mail communications are Kohl's property and Kohl's reserves
> the right to retrieve and read any message created, sent and
> received.  Kohl's reserves the right to monitor messages by authorized
> Kohl's Associates at any time
> without any further consent.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>
>