You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Vincent Massol <vm...@pivolis.com> on 2004/05/14 17:41:33 UTC

RE: weblogic forceshutdown

Hi Kristoffer,

The <cactus> Ant task provides a default config.xml file. Thus it is
re-created every time. If you wish to use your own you need to use the
configxml attribute of the <weblogic7x> element (see
http://jakarta.apache.org/cactus/integration/ant/task_cactus.html#weblog
ic7x).

I've created an issue for you
(http://nagoya.apache.org/jira/browse/CACTUS-120), and I'm currently
applying your suggestion of using FORCESHUTDOWN.

Thanks
-Vincent

> -----Original Message-----
> From: Kristoffer Sjögren (HF/EAB)
[mailto:kristoffer.sjogren@ericsson.com]
> Sent: 29 April 2004 10:05
> To: 'Cactus Users List'
> Subject: RE: weblogic forceshutdown
> 
> Hmmm ... seems like the changes gets reverted even though i go through
the
> console of weblogic. I tried to change the config.xml for another
> standalone instance of weblogic and the changes did not get reverted.
So,
> could it be that cactus creates a new configuration for every test
that's
> being run?  If so is there a way to use an existing configuration? I
have
> tried the configxml attribute but i get an error:
> 
> [cactus] BUILD FAILED:
> M:\nrg4_dev_ekrisjo\nrg_ws\dev\Connector\Common\build.xml:135: Class
>
org.apache.cactus.integration.ant.container.weblogic.WebLogic7xContainer
> doesn't support the "configxml" attribute.
> 
> build.xml:
> 
> <containerset>
> 	<weblogic7x dir="C:/bea/weblogic81" configxml="config.xml"
> 		output="weblogicresult.txt" tmpdir="c:/ws-testserver"/>
> </containerset>
> 
> 
> regards,
> -Kristoffer
> 
> > -----Original Message-----
> > From: Kristoffer Sjögren (HF/EAB)
> > Sent: den 29 april 2004 09:35
> > To: 'Cactus Users List'
> > Subject: RE: weblogic forceshutdown
> >
> >
> > Hi,
> >
> > Thank you. It worked. I also found another attribute called
> > "GracefulShutdownTimeout" where you can fill in how many
> > seconds server should wait before doing a FORCESHUTDOWN (0 is
> > infinite).
> >
> > This might be off topic, but i could not just edit config.xml
> > to add those attributes (server would revert the changes,
> > even though server was shutdown). Only way was through the
> > console. Is there a way to edit the config.xml manually?
> >
> > reagrds
> > -Kristoffer
> >
> > > -----Original Message-----
> > > From: Mark Lybarger [mailto:Mark.Lybarger@CBC-Companies.com]
> > > Sent: den 28 april 2004 17:05
> > > To: Cactus Users List
> > > Subject: RE: weblogic forceshutdown
> > >
> > >
> > > Kristoffer,
> > >
> > > There's a setting for the weblogic server so that it ignores
> > > active sessions when shutting down.  this lets you use the
> > > SHUTDOWN without waiting a long time.  Here's an excerpt from
> > > my config.xml.  I think there's some button you can click on
> > > in the console to get this, not sure what that is.
> > >
> > > <Domain ConfigurationVersion="8.1.0.0" Name="myserver">
> > >     <Server IgnoreSessionsDuringShutdown="true"
> > >         ListenAddress="localhost" ListenPort="7001"
> > > ...
> > >
> > > > -----Original Message-----
> > > > From: Kristoffer Sjögren (HF/EAB)
> > > > [mailto:kristoffer.sjogren@ericsson.com]
> > > > Sent: Wednesday, April 28, 2004 7:42 AM
> > > > To: 'Cactus Users List'
> > > > Subject: RE: weblogic forceshutdown
> > > >
> > > >
> > > > Thanks for the quick answer!
> > > >
> > > > Checked the weblogic docs and changing SHUTDOWN to
> > > > FORCESHUTDOWN should work.
> > > >
> > > > How do i apply your patch to my cactus distrubution?
> > > >
> > > > regards,
> > > > Kristoffer
> > > >
> > > > > -----Original Message-----
> > > > > From: Vincent Massol [mailto:vmassol@pivolis.com]
> > > > > Sent: den 28 april 2004 12:32
> > > > > To: 'Cactus Users List'
> > > > > Subject: RE: weblogic forceshutdown
> > > > >
> > > > >
> > > > > Hi Kristoffer,
> > > > >
> > > > > Thanks for the praise (always appreciated!).
> > > > >
> > > > > For wl7.x shutdown, here's what we use:
> > > > >
> > > > >     public final void shutDown()
> > > > >     {
> > > > >         Java java = createJavaForShutDown();
> > > > >
> > > > >         File serverDir = new File(this.dir, "server");
> > > > >
> > > > >         Path classpath = java.createClasspath();
> > > > >         classpath.createPathElement().setLocation(
> > > > >             new File(serverDir, "lib/weblogic_sp.jar"));
> > > > >         classpath.createPathElement().setLocation(
> > > > >             new File(serverDir, "lib/weblogic.jar"));
> > > > >
> > > > >         java.setClassname("weblogic.Admin");
> > > > >         java.createArg().setValue("-url");
> > > > >         java.createArg().setValue("t3://localhost:" +
> > getPort());
> > > > >         java.createArg().setValue("-username");
> > > > >         java.createArg().setValue("weblogic");
> > > > >         java.createArg().setValue("-password");
> > > > >         java.createArg().setValue("weblogic");
> > > > >         java.createArg().setValue("SHUTDOWN");
> > > > >         java.execute();
> > > > >     }
> > > > >
> > > > > If you can provide a patch to force the shutdown, I'll be
> > > > > happy to apply
> > > > > it. I don't think we need 2 ways to stop WL7.x. Always
> > > > using the force
> > > > > shutdown should be ok.
> > > > >
> > > > > Thanks
> > > > > -Vincent
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Kristoffer Sjögren (HF/EAB)
> > > > > [mailto:kristoffer.sjogren@ericsson.com]
> > > > > > Sent: 28 April 2004 09:54
> > > > > > To: 'cactus-user@jakarta.apache.org'
> > > > > > Subject: weblogic forceshutdown
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > First i would like to thank all of those contributing to
> > > > this great
> > > > > > testing framework, it really helped me alot in many ways.
> > > > > Keep up the
> > > > > good
> > > > > > work!
> > > > > >
> > > > > > To my problem, the <cactus> task, more specific
> > <weblogic7x>. My
> > > > > problem
> > > > > > is that when all tests are finished, cactus tries to do
> > > a graceful
> > > > > > shutdown of weblogic. Problem with this is that it takes an
> > > > > awful lot
> > > > > of
> > > > > > time for it to clean up sessions and wait for other stuff to
> > > > > > finish/invalidate. So i would like to have it to do a
> > > > > forceshutdown of
> > > > > > weblogic since im not really intrested if some sessions
> > > > > etc. get lost
> > > > > when
> > > > > > all tests are finished. Is it possible to do this from
cactus?
> > > > > >
> > > > > > regards,
> > > > > > Kristoffer
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> > > cactus-user-unsubscribe@jakarta.apache.org
> > > > > > For additional commands, e-mail:
> > > > cactus-user-help@jakarta.apache.org
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > cactus-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail:
> > > cactus-user-help@jakarta.apache.org
> > > > >
> > > >
> > > >
> > >
> >
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
cactus-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > cactus-user-help@jakarta.apache.org
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
cactus-user-help@jakarta.apache.org
> > >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org