Question about deployment using farming plugin in G2.2
Hi, In http://cwiki.apache.org/GMOxDOC22/farming-using-deployment.html, it says that a '_G_SLAVE' is appended to the configuration name in ClusterStore. While using deploy/distribute in G2.2, a _G_MASTER is appended to the configuration name in MasterConfigurationStore. And the target application was deployed to ClusterStore with its pre-defined name on the other nodes. To undeploy the application across a cluster, user should perform deploy/undeploy command on the exact same node that he used to deploy/distribute the application. Am I correct? if so, I will update the doc later. Thanks in advance. Jeff C
Re: Geronimo Service
As an alternative, you can also use Apache Commons Daemon to run Geronimo as a service. See [1]. [1] http://cwiki.apache.org/GMOxDOC22/running-geronimo-as-a-windows-service.html -Jack On Sat, Aug 22, 2009 at 4:25 AM, Jarek Gawor wrote: > If the debug output is correct, I think JSW is trying to execute > "C:\Java\jrrt-1.6.0\bin" which of course won't work. This probably > should be "C:\Java\jrrt-1.6.0\bin\java". I think your configuration > might be slightly wrong. > > Jarek > > On Fri, Aug 21, 2009 at 12:25 PM, Russell > Collins wrote: > > I am trying to install the Geronimo Server on windows vista. I have > gotten > > the service to properly install on Windows XP and Windows 2003 server > > machines so I do know the procedures. I am getting a permissions denied > > message when trying to start the service. Here is an excerpt from the > log. > > > > > > > > DEBUG | wrapper | 2009/08/21 11:10:36 | Allocating a console for the > > service. > > > > DEBUG | wrapper | 2009/08/21 11:10:36 | Found console window. > > > > STATUS | wrapper | 2009/08/21 11:10:36 | --> Wrapper Started as Service > > > > STATUS | wrapper | 2009/08/21 11:10:36 | Java Service Wrapper Community > > Edition 32-bit 3.3.5 > > > > STATUS | wrapper | 2009/08/21 11:10:36 | Copyright (C) 1999-2009 > Tanuki > > Software, Ltd. All Rights Reserved. > > > > STATUS | wrapper | 2009/08/21 11:10:36 | > > http://wrapper.tanukisoftware.org > > > > STATUS | wrapper | 2009/08/21 11:10:36 | > > > > DEBUG | wrapper | 2009/08/21 11:10:36 | Using tick timer. > > > > DEBUG | wrapperp | 2009/08/21 11:10:36 | server listening on port 32000. > > > > DEBUG | wrapper | 2009/08/21 11:10:36 | Classpath element, > > wrapper.java.classpath.4, does not exist: > > ../lib/geronimo-cli-2.0-SNAPSHOT.jar > > > > DEBUG | wrapper | 2009/08/21 11:10:36 | Classpath element, > > wrapper.java.classpath.5, does not exist: > > ../lib/geronimo-kernel-2.0-SNAPSHOT.jar > > > > DEBUG | wrapper | 2009/08/21 11:10:36 | Classpath element, > > wrapper.java.classpath.6, does not exist: > > ../lib/geronimo-transformer-2.0-SNAPSHOT.jar > > > > DEBUG | wrapper | 2009/08/21 11:10:36 | Classpath element, > > wrapper.java.classpath.11, does not exist: ../lib/xpp3-1.1.3.3.jar > > > > DEBUG | wrapper | 2009/08/21 11:10:36 | Classpath element, > > wrapper.java.classpath.12, does not exist: ../lib/xstream-1.1.3.jar > > > > DEBUG | wrapper | 2009/08/21 11:10:36 | Ping settings: > > wrapper.ping.interval=5, wrapper.ping.interval.logged=1, > > wrapper.ping.timeout=30 > > > > STATUS | wrapper | 2009/08/21 11:10:36 | Launching a JVM... > > > > DEBUG | wrapper | 2009/08/21 11:10:36 | command: > "C:\Java\jrrt-1.6.0\bin" > > -javaagent:"C:/geronimo2.1.4/bin/jpa.jar" > > -Djava.ext.dirs="C:/geronimo2.1.4/lib/ext;C:/Java/jrrt-1.6.0/jre/lib/ext" > > > -Djava.endorsed.dirs="C:/geronimo2.1.4/lib/endorsed;C:/Java/jrrt-1.6.0/jre/lib/endorsed" > > -Dorg.apache.geronimo.base.dir="C:/geronimo2.1.4" > > -Djava.io.tmpdir="C:/geronimo2.1.4/var/temp" -Djava.library.path="../lib" > > -classpath > > > "../lib/wrapper.jar;../bin/server.jar;../bin/shutdown.jar;../lib/geronimo-cli-2.0-SNAPSHOT.jar;../lib/geronimo-kernel-2.0-SNAPSHOT.jar;../lib/geronimo-transformer-2.0-SNAPSHOT.jar;../lib/commons-cli-1.0.jar;../lib/commons-logging-1.0.4.jar;../lib/cglib-nodep-2.1_3.jar;../lib/log4j-1.2.14.jar;../lib/xpp3-1.1.3.3.jar;../lib/xstream-1.1.3.jar" > > -Dwrapper.key="NZM-Ctvm4QOW4W43" -Dwrapper.port=32000 > > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > > -Dwrapper.debug="TRUE" -Dwrapper.pid=5792 -Dwrapper.version="3.3.5" > > -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > > -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 > > org.tanukisoftware.wrapper.WrapperSimpleApp > > org.apache.geronimo.cli.daemon.DaemonCLI > > > > FATAL | wrapper | 2009/08/21 11:10:36 | Unable to execute Java command. > > Access is denied. (0x5) > > > > FATAL | wrapper | 2009/08/21 11:10:36 | "C:\Java\jrrt-1.6.0\bin" > > -javaagent:"C:/geronimo2.1.4/bin/jpa.jar" > > -Djava.ext.dirs="C:/geronimo2.1.4/lib/ext;C:/Java/jrrt-1.6.0/jre/lib/ext" > > > -Djava.endorsed.dirs="C:/geronimo2.1.4/lib/endorsed;C:/Java/jrrt-1.6.0/jre/lib/endorsed" > > -Dorg.apache.geronimo.base.dir="C:/geronimo2.1.4" > > -Djava.io.tmpdir="C:/geronimo2.1.4/var/temp" -Djava.library.path="../lib" > > -classpath > > > "../lib/wrapper.jar;../bin/server.jar;../bin/shutdown.jar;../lib/geronimo-cli-2.0-SNAPSHOT.jar;../lib/geronimo-kernel-2.0-SNAPSHOT.jar;../lib/geronimo-transformer-2.0-SNAPSHOT.jar;../lib/commons-cli-1.0.jar;../lib/commons-logging-1.0.4.jar;../lib/cglib-nodep-2.1_3.jar;../lib/log4j-1.2.14.jar;../lib/xpp3-1.1.3.3.jar;../lib/xstream-1.1.3.jar" > > -Dwrapper.key="NZM-Ctvm4QOW4W43" -Dwrapper.port=32000 > > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > > -Dwrapper.debug="TRUE" -Dwrapper.pid=5792 -Dwrapper.version="3.3.5" > > -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > > -Dwrapper.cpu.time
Re: Message Driven Bean is not receiving messages
Try the below deployment plan: default TestEJB 1.0 car Slide 47 org.apache.geronimo.configs activemq-broker car MDB administeredObjectGroup -Jack On Mon, Aug 24, 2009 at 9:23 PM, Stephan Mehlhase wrote: > Hi everyone, > > My setup is the following: I'm using Geronimo 2.1.4 on linux under > Java 1.6 developing with Eclipse 3.5 EE (I'm using the nightly built > 2.1.5 GEP plugin) > > I'm trying to set up a small message driven bean which receives > messages that I've send from a JAX-WS Webservice. So I went into the > adminstration console and created a JMS resource with one connection > factory and one destination (called Test, TestFactory and TestQueue > respectively). After doing so I wrote the webservice and it looks like > this: > > @WebService > public class TestServer { >private static final Logger log = > Logger.getLogger(TestServer.class); >@Resource(name = "TestFactory") >private ConnectionFactory factory; >@Resource(name = "TestQueue") >private Destination destination; > >@WebMethod >public void test() { >try { >Connection con = factory.createConnection(); >Session s = con.createSession(false, > Session.AUTO_ACKNOWLEDGE); >MessageProducer p = s.createProducer(destination); >con.start(); >p.send(s.createTextMessage("Test")); >con.close(); >log.info("Sent message"); >} catch (JMSException e) { >log.warn("Exception", e); >} >} > } > (I'm not sure whether the connection.start() call is necessary but I > added it "just in case" - it does not work without neither) > Than I created the EJB like this: > > @MessageDriven(activationConfig = { >@ActivationConfigProperty(propertyName = "destinationType", > propertyValue = "javax.jms.Queue"), >@ActivationConfigProperty(propertyName = "destination", > propertyValue = "TestQueue") }, mappedName = "TestQueue") > public class MDB implements MessageListener { >private static Logger log = Logger.getLogger(MDB.class); > >public void onMessage(Message message) { >log.info("WE GOT A MESSAGE!"); >} > } > > (I've played around with the items of @MessageDriven annotation > (removing activation config, removing the mapped name) - nothing did > change anything). > The openejb-jar.xml is: > > [...] > > > > >default >TestEJB >1.0 >car > > > >console.jms >Test >1.0 >rar > > > > > >MDB > >Test > > > > > > (I left out some namespace declarations) > > > If I invoke the webservice I see the "Sent message" log entry but the > EJB seems not to receive it (in fact it even does not get > instantiated). > So I checked the logs and have not found any error message and > therefore enabled the logs for ActiveMQ to see whether the message is > actually received. I found the following: > > Upon deployment: > 2009-08-24 14:49:35,174 INFO [startup] Jndi(name=TestEJB/MDB) --> > Ejb(deployment-id=TestEJB/MDB) > 2009-08-24 14:49:35,208 DEBUG [ActiveMQEndpointWorker] Starting > 2009-08-24 14:49:35,219 DEBUG [ActiveMQEndpointWorker] Started > 2009-08-24 14:49:35,219 INFO [startup] Created > Ejb(deployment-id=TestEJB/MDB, ejb-name=MDB, > container=console.jms/Test/1.0/rar.Test-javax.jms.MessageListener) > 2009-08-24 14:49:35,219 INFO [startup] Deployed > > Application(path=/tmp/geronimo-deployer282244042823023765.tmpdir/TestEJB.zip) > [...] > 2009-08-24 14:49:35,328 DEBUG [AbstractRegion] Adding destination: > queue://TestEJB/MDB > 2009-08-24 14:49:35,356 DEBUG [JournalPersistenceAdapter] Waking for > checkpoint to complete. > 2009-08-24 14:49:35,387 DEBUG [JournalPersistenceAdapter] Checkpoint > started. > 2009-08-24 14:49:35,390 DEBUG [JournalPersistenceAdapter] Checkpoint done. > 2009-08-24 14:49:35,414 DEBUG [AbstractRegion] Adding destination: > topic://ActiveMQ.Advisory.Queue > 2009-08-24 14
Re: --local-copy=true
Thanks! That solve it. Regards, Rodney On Tue, Aug 25, 2009 at 3:00 PM, Jack Cai wrote: > The default is "true". If you want to change it, try to set the > GERONIMO_OPTS environment variable as below before starting Geronimo. > > * In Windows: set GERONIMO_OPTS=-Dopenejb.localcopy=false > * In Linux: export GERONIMO_OPTS=-Dopenejb.localcopy=false > > -Jack > > > On Tue, Aug 25, 2009 at 7:45 AM, Rodney B. Cabahug < > rodney.caba...@gmail.com> wrote: > >> Hello, >> How can I specify --local-copy=true startup argument to the openejb >> server in geronimo? >> Thanks >> >> Regards, >> Rodney Cabahug >> > >
Re: How to stop logging of webservice authentication failure
I guess there is nothing you can do here. The exception is never routed to your code. It looks like a small defect in Jetty's code. You might want to raise a defect against Jetty. -Jack On Sun, Aug 23, 2009 at 8:43 PM, yosemite wrote: > > Hello all, > > I have a @Stateless acting as @WebService configured in openejb-jar.xml > like > > > >TimeBean > > > MyRealm > > NONE >BASIC >POST >PUT > > > > > Which works perfect if user credentials passed to webservice are right. But > if the credentials are wrong (wrong password), it tells the client "The > server sent HTTP status code 401: Unauthorized" but also logs in > geronimo.log: > > 2009-08-23 14:16:03,531 WARN [log] AUTH FAILURE: user tester1 > 2009-08-23 14:16:03,531 WARN [log] Committed before 403 null > 2009-08-23 14:16:03,531 ERROR [log] handle failed > java.lang.IllegalStateException: Committed >at org.mortbay.jetty.Response.resetBuffer(Response.java:995) >at org.mortbay.jetty.Response.sendError(Response.java:240) >at > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:521) >at > > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) >at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) >at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) >at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) >at > > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) >at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214) >at > > org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344) >at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >at java.lang.Thread.run(Thread.java:619) > > How to avoid this log, how to handle to IllegalStateException and where, > please? > > If I use the same realm in the web app, this section in web.xml > >MyRealm > > /login.jsp > /loginError.jsp > > > > bumps to loginError if password is wrong, and then the log entry is just > > WARN [log] AUTH FAILURE: user tester1 > > (i.e.no IllegalStateException) > > Any help appreciated. > Karel > > > -- > View this message in context: > http://www.nabble.com/How-to-stop-logging-of-webservice-authentication-failure-tp25102983s134p25102983.html > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > >
Re: --local-copy=true
The default is "true". If you want to change it, try to set the GERONIMO_OPTS environment variable as below before starting Geronimo. * In Windows: set GERONIMO_OPTS=-Dopenejb.localcopy=false * In Linux: export GERONIMO_OPTS=-Dopenejb.localcopy=false -Jack On Tue, Aug 25, 2009 at 7:45 AM, Rodney B. Cabahug wrote: > Hello, > How can I specify --local-copy=true startup argument to the openejb server > in geronimo? > Thanks > > Regards, > Rodney Cabahug >