Re: --local-copy=true

2009-08-25 Thread Jack Cai
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

2009-08-25 Thread Jack Cai
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 kmic...@hotmail.com wrote:


 Hello all,

 I have a @Stateless acting as @WebService configured in openejb-jar.xml
 like

ejb:enterprise-beans
ejb:session
ejb:ejb-nameTimeBean/ejb:ejb-name
ejb:web-service-security

  ejb:security-realm-nameMyRealm/ejb:security-realm-name

  ejb:transport-guaranteeNONE/ejb:transport-guarantee
ejb:auth-methodBASIC/ejb:auth-method
http-methodPOST/http-method
http-methodPUT/http-method
/ejb:web-service-security
/ejb:session
/ejb:enterprise-beans

 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

realm-nameMyRealm/realm-name
form-login-config
  form-login-page/login.jsp/form-login-page
  form-error-page/loginError.jsp/form-error-page
/form-login-config
  /login-config

 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

2009-08-25 Thread Rodney B. Cabahug
Thanks! That solve it.
Regards,
Rodney

On Tue, Aug 25, 2009 at 3:00 PM, Jack Cai greensi...@gmail.com 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: Message Driven Bean is not receiving messages

2009-08-25 Thread Jack Cai
Try the below deployment plan:

ejb:openejb-jar
[...]

   dep:environment
   dep:moduleId
   dep:groupIddefault/dep:groupId
   dep:artifactIdTestEJB/dep:artifactId
   dep:version1.0/dep:version
   dep:typecar/dep:type
   /dep:moduleId
   dep:dependencies
   dep:dependency
   dep:groupIdSlide 47
org.apache.geronimo.configs /dep:groupId
   dep:artifactIdactivemq-broker/dep:artifactId
   dep:typecar/dep:type
   /dep:dependency
   /dep:dependencies
   /dep:environment
   ejb:enterprise-beans
   ejb:message-driven
   ejb:ejb-nameMDB/ejb:ejb-name
   ejb:resource-adapter

 ejb:resource-linkadministeredObjectGroup/ejb:resource-link
   /ejb:resource-adapter
   /ejb:message-driven
   /ejb:enterprise-beans
/ejb:openejb-jar

-Jack


On Mon, Aug 24, 2009 at 9:23 PM, Stephan Mehlhase s.mehlh...@googlemail.com
 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:

 ejb:openejb-jar
 [...]
 
dep:environment
dep:moduleId
dep:groupIddefault/dep:groupId
dep:artifactIdTestEJB/dep:artifactId
dep:version1.0/dep:version
dep:typecar/dep:type
/dep:moduleId
dep:dependencies
dep:dependency
dep:groupIdconsole.jms/dep:groupId
dep:artifactIdTest/dep:artifactId
dep:version1.0/dep:version
dep:typerar/dep:type
/dep:dependency
/dep:dependencies
/dep:environment
ejb:enterprise-beans
ejb:message-driven
ejb:ejb-nameMDB/ejb:ejb-name
ejb:resource-adapter
ejb:resource-linkTest/ejb:resource-link
/ejb:resource-adapter
/ejb:message-driven
/ejb:enterprise-beans
 /ejb:openejb-jar

 (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) --
 

Re: Geronimo Service

2009-08-25 Thread Jack Cai
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 jga...@gmail.com 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
 Collinsrussell.coll...@mclaneat.com 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.timeout=10 -Dwrapper.jvmid=1
  org.tanukisoftware.wrapper.WrapperSimpleApp
  org.apache.geronimo.cli.daemon.DaemonCLI
 
  ADVICE | wrapper  | 2009/08/21 11:10:36 |
 
  ADVICE | wrapper  | 2009/08/21