How to prevent activeMQ in geronimo 3.0.1 from creating the database tables during startup?
Hi, When we change the persistence to postgresql 9.2.4 in Geronimo 3.0.1 for ActiveMQ, We keep running into this error: [DefaultJDBCAdapter] Could not create JDBC tables; they could already exist. Failure was: ALTER TABLE ACTIVEMQ_ACKS DROP PRIMARY KEY Message: ERROR: syntax error at or near PRIMARY We suspect activeMQ tries to create the tables during initialization. We try to use turn it off, but the setting that used to work in 3.0.0 no longer works in the new blueprint config activemq.xml. amq:persistenceAdapter amq:jdbcPersistenceAdapter dataSource=#postgres-ds createTablesOnStartup=false /amq:jdbcPersistenceAdapter /amq:persistenceAdapter Can anyone help? (Either fix the create table error, or disable table creation) Thanks. Regards Jack
ActiveMQ configuration for Geronimo 3.0.1
Hi, Where can I find some doc or examples on configuration persistent storage for ActiveMQ? The config-substitutions.properties file only provides data directory, and MQName setting. I found the activemq.xml under repository/org/apache/geronimo/configs/activemq-broker-blueprint/3.0.1/activemq-broker-blueprint-3.0.1.car/OSGI-INF/blueprint But that file says /var/activemq/conf/${ACTIVEMQ.BROKERNAME}.XML is the config file? I tried that, but it does not seem to do anything. Can anyone help with the following? 1. Which directory is for activemq configuration directory? repository/org/apache/geronimo/configs/activemq-broker-blueprint/3.0.1/activemq-broker-blueprint-3.0.1.car/OSGI-INF/blueprint or var/activemq/config 2. What is the name of the configuration file? activemq.xml or ${ACTIVEMQ.BROKERNAME}.XML 3. How can a postgres DB be configured for activeMQ's persistence storage? Thanks a lot! -Jack
Re: ActiveMQ configuration for Geronimo 3.0.1
Well. This has nothing to do with activeMQ's own configuration. We just need to know which configuration file geronimo uses. But looks like we found it. It is under broker-blueprint. The doc inside the config is misleading. Thanks. -Jack On Mon, Sep 9, 2013 at 6:09 PM, chi runhua chirun...@gmail.com wrote: For activeMQ configuration in Geronimo, you might need to look into the ActiveMQ document at http://activemq.apache.org/ HTH. On Tue, Sep 10, 2013 at 5:39 AM, Jack Cai cai_j...@us.chanjet.com wrote: Hi, Where can I find some doc or examples on configuration persistent storage for ActiveMQ? The config-substitutions.properties file only provides data directory, and MQName setting. I found the activemq.xml under repository/org/apache/geronimo/configs/activemq-broker-blueprint/3.0.1/activemq-broker-blueprint-3.0.1.car/OSGI-INF/blueprint But that file says /var/activemq/conf/${ACTIVEMQ.BROKERNAME}.XML is the config file? I tried that, but it does not seem to do anything. Can anyone help with the following? 1. Which directory is for activemq configuration directory? repository/org/apache/geronimo/configs/activemq-broker-blueprint/3.0.1/activemq-broker-blueprint-3.0.1.car/OSGI-INF/blueprint or var/activemq/config 2. What is the name of the configuration file? activemq.xml or ${ACTIVEMQ.BROKERNAME}.XML 3. How can a postgres DB be configured for activeMQ's persistence storage? Thanks a lot! -Jack
classloading problem for WARs in an EAR file share classpath
Hi, I package two wars in an ear, web1, and web2. nothing else, and deployed to geronimo (3.0.1) When I tried to access web1, web2's classes are loaded instead. What I found in the MANIFFEST.MF of the EAR package: Bundle-ClassPath: ...,webdemo-jsp.war/WEB-INF/classes,webdemo2-js p.war/WEB-INF/classes after the EAR file is deployed to Geronimo. This effectively makes all wars visible to all, and causes the type cast error: java.lang.ClassCastException: com.webapp2.dao.Customer cannot be cast to com.webapp.dao.Customer I thought J2EE app is supposed to isolate classloader of each war to prevent similar problems. Is there a way to config around this in geronimo? Thanks BTW, the ear application is created using Eclipse EAR for Geronimo. Thanks. -Jack
Re: classloading problem for WARs in an EAR file share classpath
Yes. The separate wars can be deployed to Geronimo without any problem. Each war uses hibernate, which is the basis of the DAOs. Since the hibernate library in each war uses identical package and class names, EAR classloader loads one hibernate library and one dao from one war, when it comes to load the second dao, it tries to use the first hibernate, that results in CCE. We were hoping to use the classloader isolation of EAR and WAR to manage class loading, so that one EAR app with multiple wars can be deployed multiple times on the same Geronimo instance. Is there a work-around for this? Thanks. -Jack On Tue, Sep 3, 2013 at 5:11 PM, David Jencks david_jen...@yahoo.com wrote: Hi, As far as I can tell, the ee spec doesn't specify that wars in an ear each need their own classloader. Geronimo passes the tck, so if I missed any part of the spec that says this so did the tck writers. I probably just haven't looked at an application like this recently, but I'm having trouble understanding exactly how the CCE arises, especially since the classes appear to be different. Can you deploy the wars separately? thanks david jencks On Sep 3, 2013, at 3:01 PM, Jack Cai cai_j...@us.chanjet.com wrote: Hi, I package two wars in an ear, web1, and web2. nothing else, and deployed to geronimo (3.0.1) When I tried to access web1, web2's classes are loaded instead. What I found in the MANIFFEST.MF of the EAR package: Bundle-ClassPath: ...,webdemo-jsp.war/WEB-INF/classes,webdemo2-js p.war/WEB-INF/classes after the EAR file is deployed to Geronimo. This effectively makes all wars visible to all, and causes the type cast error: java.lang.ClassCastException: com.webapp2.dao.Customer cannot be cast to com.webapp.dao.Customer I thought J2EE app is supposed to isolate classloader of each war to prevent similar problems. Is there a way to config around this in geronimo? Thanks BTW, the ear application is created using Eclipse EAR for Geronimo. Thanks. -Jack
Re: Geronimo plugin issue (or maven)?
Don't worry. This is starndard Manifest format - prefixing a wrapped line with a space. You can check the manifest in lib/server.jar. It's the same thing. -Jack On Sat, Mar 27, 2010 at 10:35 AM, Billy Vandory billy_vand...@yahoo.comwrote: I got the above working by setting Maven as a dependency in eclipse. Now I have another issue with GEP. I want to enable in place library support, but I noticed that the MANIFEST.MF that GEP produces and places in the geronimo/var/shared/lib directory as a JAR file cuts off the paths with spaces (in fact it appears to be truncating the lines). Here is a sample of the MANIFEST produced by the GEP plugin: Manifest-Version: 1.0 Class-Path: file:/C:/codebase.wakawaka/wakaear/target/ file:/C:/repo/o rg/apache/log4j/1.2.15/log4j-1.2.15.jar file:/C:/repo/junit/junit/4.8 .1/junit-4.8.1.jar file:/C:/repo/org/apache/log4j/1.2.15/log4j-1.2.15 -sources.jar file:/C:/repo/com/waka/logging/1.0/logging-1.0.jar file: /C:/repo/org/apache/geronimo/specs/geronimo-servlet_2.5_spec/1.2/gero nimo-servlet_2.5_spec-1.2.jar See how it puts a space between C:/repo/o rg/apache AND junit/4.8 .1 Could someone confirm that Geronimo reads the jar file placed in the Geronimo/var/shared/lib directory to locate the libraries, and if the spaces would indeed cause problems. I'm trying to find where in the plugin code the manifest is produced and fix that. Thanks, Billy -- View this message in context: http://n3.nabble.com/Geronimo-plugin-issue-or-maven-tp634363p677851.html Sent from the Users mailing list archive at Nabble.com.
Re: EJB Life Cycle
I agree with David. Leave it to the container and JVM. -Jack On Wed, Mar 24, 2010 at 12:35 AM, Russell Collins russell.coll...@mclaneat.com wrote: Thank you for the input. So basically what you are saying is that the Geronimo EJB container will handle the lifecycle of the object “m_anotherEJB” and I do not need to be concerned about this object hanging around more than it needs to? *From:* David Jencks [mailto:david_jen...@yahoo.com] *Sent:* Tuesday, March 23, 2010 2:38 AM *To:* user@geronimo.apache.org *Subject:* Re: EJB Life Cycle I'm not a big java GC expert but... I think that finalize will only be called after the GC has decided your ejb instance is no longer in use. Whether or not the proxy it's holding is still in use will be determined separately anyway. My understanding is that generally I want to help the GC code doesn't actually help appreciably and mostly gives you more code to install bugs in and maintain. david jencks On Mar 22, 2010, at 7:03 PM, Russell Collins wrote: I have been thinking about best practices with Geronimo. One of the things that I have been thinking about is the life of EJB’s inside the EJB container. I am wondering if I should be setting used EJB’s to null when I am done with them or should I just let the container handle it. Example Code: @Stateless public class MyEJB implements IMyEJB { @EJB(name=”AnotherEJBLocal”) private IAnotherEJBLocal m_anotherEJB; // Do some stuff with m_anotherEJB; protected void finalize() { m_anotherEJB = null; // Should I do this or let Geronimo handle it } } Should I be including the finalizer code as I have it? Should I just let Geronimo handle the life cycle? Is there a different/better way to handle this? Any philosophical insight would be greatly appreciated. Thanks. *Russell Collins* Sr. Software Engineer McLane Advanced Technology -- CONFIDENTIALITY NOTICE: The information contained in this electronic mail (email) transmission (including attachments), is intended by MCLANE ADVANCED TECHNOLOGIES for the use of the named individual or entity to which it is addressed and may contain information that is privileged, confidential and/or protected as a trade secret. It is not intended for transmission to, or receipt by, any individual or entity other than the named addressee(s). If you have received this email in error, please delete it (including attachments) and any copies thereof without printing, copying or forwarding it, and notify the sender of the error by email reply immediately. -- CONFIDENTIALITY NOTICE: The information contained in this electronic mail (email) transmission (including attachments), is intended by MCLANE ADVANCED TECHNOLOGIES for the use of the named individual or entity to which it is addressed and may contain information that is privileged, confidential and/or protected as a trade secret. It is not intended for transmission to, or receipt by, any individual or entity other than the named addressee(s). If you have received this email in error, please delete it (including attachments) and any copies thereof without printing, copying or forwarding it, and notify the sender of the error by email reply immediately.
Re: LDAP default role.
So another way to solve the problem - can you config the LDAP to set up a group that includes all the users? -Jack 2010/3/19 Lubomír Beneš lubomir.be...@seznam.cz Hello, I have a servlet where I want to get user principal for further chcking. I know that to get the user principal from request.getUserPrincipal() I have to be logged in. Every user logged in will have a privilege to access this servlet. What role should I set in auth-constraint role-name ... /role-name /auth-constraint when I am not able to get role from LDAP. Is there any way how to assign every LDAP user a default role or is there any way how to force servlet login but to allow access for each user?
Re: Geronimo 2.2 docBase
docBase parameter is not supported by Geronimo. The archived mail might help you [1]. -Jack [1] http://www.mail-archive.com/user@geronimo.apache.org/msg05017.html 2010/3/17 Lubomír Beneš lubomir.be...@seznam.cz Hello, how do I set web application's docBase preferably in geronimo-web.xml?
Re: Start the server programmatically by using Java API
The options should be used to start your application (which will then call DaemonCLI to start Geronimo). Also add to your classpath with the jars listed in MANIFEST.MF of the bin/server.jar. The args for DaemonCLI.main() should be just - String args[] = {“--long} -Jack On Sat, Feb 27, 2010 at 6:44 PM, sddoubt2 sddou...@gmail.com wrote: Hi Jack, Thanks for your response. I tried running geronimo run by setting GERONIMO_BATCH_ECHO=on I got the options as javaagent (jpa.jar) -Djava.endorsed.dirs, -Djava.ext.dirs, -Dorg.apache.geronimo.home.dir, -Djava.io.tmpdir, -jar executing -jar server.jar So should these be the arguments of the executeMain method of the DaemonCLI class? Something like String args[] = {option value, -jar,server.jar} Is this the right way? Do we need to specify all the options and the location of the jars/directories in the path? Thanks for ur help !! -- View this message in context: http://n3.nabble.com/Start-the-server-programmatically-by-using-Java-API-tp416760p418981.html Sent from the Users mailing list archive at Nabble.com.
Re: Geronimo 2.2 and JPA 2.0
Read this: http://geronimo.apache.org/2010/02/27/jpa-20-available-for-213-and-later-server-users.html -Jack On Tue, Mar 2, 2010 at 5:37 PM, Michael Simons michael.sim...@optitool.dewrote: Hello, Geronimo 2.2 is JEE 5 certified. JEE 5 includes JPA 1.2 (JSR 220). Unfortunately we need features of JPA 2.0 (JSR 317). Does Geronimo 2.2 support the JPA 2.0 spec? Can I run Geronimo with the RI of JPA 2.0? Kind Regards, Michael
Re: Start the server programmatically by using Java API
If you look into the MANIFEST.MF in the bin/server.jar file, you'll see the main entrance is org.apache.geronimo.cli.daemon.DaemonCLI. To understand the arguments that need to be passed in, set GERONIMO_BATCH_ECHO=on in Windows, then issue geronimo run to see the command line arguments that are used. -Jack On Fri, Feb 26, 2010 at 3:26 PM, sddoubt2 sddou...@gmail.com wrote: Hi All, I am new to geronimo. I want to know how we can start/stop the server via a Java API call. For eg : To deploy a module on the server we can extend DeployerCLI and pass the arguments as options,command and arguments to the command. Class Test extends DeployerCLI { int status = new Test(--username,a...deploy,war-file-location).executeMain(); } Similarly, what class should be extended to start/stop the server and what arguments should be passed to it? Should DaemonCLI class be used? It will be helpful if someone can provide a sample code to show how this can be done. Thanks a lot for your help!! -- View this message in context: http://n3.nabble.com/Start-the-server-programmatically-by-using-Java-API-tp416760p416760.html Sent from the Users mailing list archive at Nabble.com.
Re: Cannot using Geronimo to execute bean-managed transaction with oracle transaction more than once, but Glassfish does
I see that ManagedXAConnection will set autoCommit to false in localTransactionStart(). So you mean Geronimo is enlisting the resouce before it starts the local transaction? I see ManagedXAConnection also sets autoCommit to true in localTransactionCommit() and localTransactionRollback(), so it's not only the cleanup() method. -Jack On Thu, Jan 7, 2010 at 8:42 PM, ext2 x...@tongtech.com wrote: Hi David Jeck: If the tranql's oracle wrapper is changed, the oracle will works well. And user doesn't need write to a un-usual program at application level; Although I am still not agree to the Geronimo 's current action, but anyway it's just another design strategy: now the database vendor has some trivial difference , so the middle-ware (application-server) should has the responsible to shield the difference and always give a consistence appearance to the end-user; That's the strategy I finally decide to use in my work (it's not a app-server, but still provide jta features); Best regard Ext2 -Origin- Sender: David Jencks [mailto:david_jen...@yahoo.com] Date: 2010-1-7 17:23 Receiver: user@geronimo.apache.org Subject: Re: Cannot using Geronimo to execute bean-managed transaction with oracle transaction more than once, but Glassfish does On Jan 6, 2010, at 11:21 PM, ext2 wrote: Hi, David Jeck: Sorry , I forget to said or, does the connection have to have auto commit set to true or set to false (which one)? At the point of JTA's view, set auto commit has no other means, so we need not affect it and read it while using JTA; this works for most database in Geronimo, But oracle whose usage is different, only because of a bug of tranql. At application level ,we can only to resole the bug in a un- usual way. As I said, I haven't read the spec in several years, but I think this is a bug in oracle. My recollection is that the autocommit state is supposed to be ignored when enlisting in a JTA transaction. There are other oracle bugs related to autocommit, for instance the spec clearly says that (using local transactions) if autocommit is false, setting it to true should commit pending work, but oracle does not. Although setting auto commit has no other means in JTA, but this doesn't means the application-server has no responsible to check it. My recollection of the spec is that the app server has no need to check the autocommit state since enlisting in a jta transaction should cause the autocommit state to be ignored no matter what it is. And that is what I doest agree to Geronimo 's current action; We can probably fix this in the tranql oracle wrapper. Geronimo doesn't even know that it's dealing with a jdbc driver, so it has no knowledge of the autocommit property's existence. thanks david jencks -Origin- Sender: David Jencks [mailto:david_jen...@yahoo.com] Date: 2010-1-7 2:03 Receiver: user@geronimo.apache.org Subject: Re: Cannot using Geronimo to execute bean-managed transaction with oracle transaction more than once, but Glassfish does On Jan 6, 2010, at 3:05 AM, ext2 wrote: The problem is caused by tranql-commons-connector is not compatible with Oracle 9i 's XA API. The details things happened as following description. When the XA transaction finished, the ManagedXAConnection(tranql) will be cleanup and put back to the pool. While cleanup the ManagedXAConnection, tranql reset the associated physical connection 's auto commit to true. Because at this time, Transaction Manager has finished the XA transaction, so reset the commit to true will acceptable by Oralce's XA driver; So unfortunately this will cause the XA resource cannot be enlist into transaction next time. and you can only execute the xa-transaction only once; It's been a long time since I looked into this, but if I remember the spec correctly oracle's driver is not spec compliant here. I'm not sure I understand exactly what sequences of operations are allowed by oracle and which are not. if you call setAutocommit on a connection, either true or false, does that prevent the associated managed connection from ever being enlisted in an XA transaction? or, does the connection have to have autocommit set to true or set to false (which one)? I don't have an easy way to set up oracle here to investigate this for myself, I hope I'm asking my questions clearly enough to be understood. thanks david jencks -Original - Sender: xuhongbo [mailto:x...@tongtech.com] Date: 2009-12-30 17:15 Receiver: user@geronimo.apache.org Subject: Re: Reply: Cannot using Geronimo to execute bean-managed transaction with oracle transaction more than once, but Glassfish does Hi Jack Cai: I have tried, the tranql-connector-oracle-local is ok, but it doesn't use xa transaction in jta, and use a faked Local-XAResource instead of real oracle-xa-resource; I am sorry to mis-understand your means and give the run-time class
Re: Resource Adapter deployment problem
been configured, or your application does not have a dependency declared for that resource module? Search conducted in current module and dependencies: [ALL: org.apache.geronimo.configs/tomcat6/2.1.4/car] [ALL: org.apache.geronimo.configs/j2ee-corba-yoko//car] [CLASSES: org.apache.geronimo.configs/openejb//car] [ALL: org.apache.geronimo.configs/openjpa//car] [ALL: org.apache.geronimo.configs/axis//car] [ALL: org.apache.geronimo.configs/axis2//car] ) org.apache.geronimo.common.DeploymentException: Unable to resolve resource reference 'eis/RuleConnection' (Could not find resource 'eis/RuleConnection'. Perhaps it has not yet been configured, or your application does not have a dependency declared for that resource module? Search conducted in current module and dependencies: [ALL: org.apache.geronimo.configs/tomcat6/2.1.4/car] [ALL: org.apache.geronimo.configs/j2ee-corba-yoko//car] [CLASSES: org.apache.geronimo.configs/openejb//car] [ALL: org.apache.geronimo.configs/openjpa//car] [ALL: org.apache.geronimo.configs/axis//car] [ALL: org.apache.geronimo.configs/axis2//car] ) at org.apache.geronimo.connector.deployment.ResourceRefBuilder.buildNaming(ResourceRefBuilder.java:216) at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:53) at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.configureBasicWebModuleAttributes(AbstractWebModuleBuilder.java:842) at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:347) at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867) at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239) at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116) at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61) at java.lang.Thread.run(Thread.java:619) --- Please let me know the mistake in my configuration. Jack Cai wrote: The global JNDI name will be something different from the name you specify in ra.xml. Try to find the name in the server start up log, which is located in var/log folder. Or, as David pointed out, you can claim a dependency in your application deployment plan (e.g., geronimo-web.xml for Web app) to this resource adapter, and use eis/RuleConnection to look up it. -Jack On Mon, Jan 4, 2010 at 7:18 PM, jam_developer kbh...@mailcity.com wrote: Thanks David and Jack for your response. With couple of changes, I could able to deploy RA in Geronimo using Administrative console. Now when I go to JNDI viewer, I don't see my specified JNDI name. Following is my geronimo-ra.xml details: --- connector xmlns=http://geronimo.apache.org/xml/ns/j2ee/connector-1.2; environment xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.1; moduleId groupIdhammurapi/groupId artifactIdRulesAdapter/artifactId version4.1/version typerar/type /moduleId dependencies/ dep:hidden-classes/ dep:non-overridable-classes/ /environment resourceadapter outbound-resourceadapter connection-definition connectionfactory-interfacecom.hammurapi.reasoning.ForwardReasoningSessionFactory/connectionfactory-interface connectiondefinition-instance nameeis/RuleConnection/name connectionmanager no-transaction/ no-pool/ /connectionmanager /connectiondefinition-instance /connection-definition /outbound-resourceadapter /resourceadapter /connector -- I was expecting to see specified JNDI
Re: [ANNOUNCE] Availability of Geronimo 2.2
The name of the source archive is not right in that wiki page. geronimo-2.2-src.tar.gz should be geronimo-2.2-source-release.tar.gz geronimo-2.2-src.zip should be geronimo-2.2-source-release.zip So if you fix the file name in the download URL, you can get them. -Jack On Mon, Jan 4, 2010 at 6:15 PM, Juergen Weber webe...@gmail.com wrote: Hi, the binaries download now, but the src.zip still do not, yet. Also, geronimo.apache.org main page doesn't know 2.2 yet. Juergen -- View this message in context: http://old.nabble.com/-ANNOUNCE--Availability-of-Geronimo-2.2-tp26962437s134p27010973.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Reply: Cannot using Geronimo to execute bean-managed transaction with oracle transaction more than once, but Glassfish does
To understand the Geronimo connection manager and the transaction manager, you might want to dig into the components code here [1]. For example, the org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor class does the resource enlist/delist work. I'd suggest you to remotely debug your sample app (start geronimo in debug mode) and walk through the code of Geronimo transaction manager and connection manager, to fully understand the code flow. [1] http://svn.apache.org/repos/asf/geronimo/components/txmanager/ -Jack On Wed, Dec 30, 2009 at 5:14 PM, xuhongbo x...@tongtech.com wrote: Hi Jack Cai: I have tried, the tranql-connector-oracle-local is ok, but it doesn’t use xa transaction in jta, and use a faked Local-XAResource instead of real oracle-xa-resource; I am sorry to mis-understand your means and give the run-time class name in my previous reply; The error occurred program is just using tranql-connector-oracle-xa Additionally, I have try another Mysql database and using tranql-connector-mysql-xa do real xa transaction. It works well. So my mind changed, maybe there is something not compatible with oracle 9i database; In my original mail, I have post a very simple program which use the Geronimo Transaction Manager and Oracle XA API directly, this works well; Because tranql resource adaptor is a very simple wrapper , Geronimo does additional things to wrap the database connection (etc control pooling, xa-resource wrap, xa-resource cache for transaction-manager ...) , so I am wondering if there is some other un-excepted database operation has been done and cause this problem? for convenience I post the simple program again. If we only concern database operation, does this simple program done exactly like the Geronimo done ? Or it doesn't , Geronimo do additional things... maybe the difference will be the real reason cause the problem; I have tracked at runtime, but unfortunately has not find some difference yet... Thanks a lot xuhongbo -origin- sender: Jack Cai [mailto:greensi...@gmail.com] date: 2009/12/30 11:45 receiver: user@geronimo.apache.org subject: Re: Reply: Cannot using Geronimo to execute bean-managed transaction with oracle transaction more than once, but Glassfish does Can you try to use the tranql-connector-oracle-xa or tranql-connector-oracle-local to do the test? -Jack On Wed, Dec 30, 2009 at 11:26 AM, xuhongbo x...@tongtech.com wrote: In the future it would be great if you could only post to one mailing list. Thanks, I know I'm not sure what is wrong yet, however you should never try to set the autocommit state of a connection that is enlisted in a jta transaction. Enlisting and delisting the XAConnection will result in the autocommit being dealt with properly. The value from getAutoCommit may or may not be meaningful in a jta transaction. Outside a jta transaction the autocommit state defaults to true. I'm quite surprised you didn't get a more informative error. Yes you are right, auto commit has no means for jta connection and cannot be set to true; here I just set auto commit to false, so a jta connection should just omit it; But the surprise thing is if I doesn't affect auto commit state(in the program, just comment the statement setAutocommit(false)), when execute database operation, a ORA-02089: COMMIT ... exception will be throwed by oracle's database driver; it looks like the Geronimo does a wrong things commit on the connection when execute database operation; and this should only occurs on non-jta connection, because only no-jta connection will set auto commit default to true. One important piece of information that I don't see is which tranql wrapper you used to deploy your datasource. The datasource is org.tranql.connector.jdbc.DataSource. And it use a a managed-connection factory org.tranql.connector.oracle.XAMCF to open connection; And the managed-connection factory use a oracle's xa datasource (oracle.jdbc.xa.client.OracleXADataSource); By the way , I haven't ever post a trivial problem I have meet when I deploy the Oracle-XA data source. The trivial thing is: I must change the deploy plan created by Geronimo's web manage console tools, delete the empty property TNSEntryName and manually deploy it; because this is the oracle9i database driver's question --- a empty string value(not a null value) set to TNSEntryName will cause oracle9i's database driver to omit the other property (etc serverName, serviceName ...) and cannot establish a connect ; I thinks this should have no means to the transaction commit failure; but maybe it would give some other useful things help to find out the reason. Thanks a lot xuhongbo -origin - sender: David Jencks [mailto:david_jen...@yahoo.com] date: 2009/12/30 1:43 receiver: user@geronimo.apache.org subject: Re: Reply: Cannot using Geronimo to execute bean-managed transaction with oracle transaction
Re: [ANNOUNCE] Availability of Geronimo 2.2
Cool! We finally made it before 2010! :-) -Jack On Wed, Dec 30, 2009 at 10:23 AM, Bill Stoddard wgstodd...@gmail.com wrote: Congratulations Geronimo team! Bill On 12/29/09 7:29 PM, David Jencks wrote: The Apache Geronimo project is pleased to announce the available of Apache Geronimo v2.2 server. This includes improvements too numerous to mention here, a couple highlights are much easier custom server assembly, up to date activemq support, and JASPIC support. Visit the Downloads page for details on downloading Apache Geronimo v2.2 server assemblies and links to the release notes: http://geronimo.apache.org/downloads.html The individual jars and plugins have been available through maven for a few weeks now as I tried to figure out the last bits of the release process. It's quite possible I've messed up some bits of the non-maven process, so let us know if there are problems. A big THANK YOU to all that contributed to this release! Great work everyone! david jencks
Re: Reply: Cannot using Geronimo to execute bean-managed transaction with oracle transaction more than once, but Glassfish does
Can you try to use the tranql-connector-oracle-xa or tranql-connector-oracle-local to do the test? -Jack On Wed, Dec 30, 2009 at 11:26 AM, xuhongbo x...@tongtech.com wrote: In the future it would be great if you could only post to one mailing list. Thanks, I know I'm not sure what is wrong yet, however you should never try to set the autocommit state of a connection that is enlisted in a jta transaction. Enlisting and delisting the XAConnection will result in the autocommit being dealt with properly. The value from getAutoCommit may or may not be meaningful in a jta transaction. Outside a jta transaction the autocommit state defaults to true. I'm quite surprised you didn't get a more informative error. Yes you are right, auto commit has no means for jta connection and cannot be set to true; here I just set auto commit to false, so a jta connection should just omit it; But the surprise thing is if I doesn't affect auto commit state(in the program, just comment the statement setAutocommit(false)), when execute database operation, a ORA-02089: COMMIT ... exception will be throwed by oracle's database driver; it looks like the Geronimo does a wrong things commit on the connection when execute database operation; and this should only occurs on non-jta connection, because only no-jta connection will set auto commit default to true. One important piece of information that I don't see is which tranql wrapper you used to deploy your datasource. The datasource is org.tranql.connector.jdbc.DataSource. And it use a a managed-connection factory org.tranql.connector.oracle.XAMCF to open connection; And the managed-connection factory use a oracle's xa datasource (oracle.jdbc.xa.client.OracleXADataSource); By the way , I haven't ever post a trivial problem I have meet when I deploy the Oracle-XA data source. The trivial thing is: I must change the deploy plan created by Geronimo's web manage console tools, delete the empty property TNSEntryName and manually deploy it; because this is the oracle9i database driver's question --- a empty string value(not a null value) set to TNSEntryName will cause oracle9i's database driver to omit the other property (etc serverName, serviceName ...) and cannot establish a connect ; I thinks this should have no means to the transaction commit failure; but maybe it would give some other useful things help to find out the reason. Thanks a lot xuhongbo -origin - sender: David Jencks [mailto:david_jen...@yahoo.com] date: 2009/12/30 1:43 receiver: user@geronimo.apache.org subject: Re: Reply: Cannot using Geronimo to execute bean-managed transaction with oracle transaction more than once, but Glassfish does In the future it would be great if you could only post to one mailing list. I'm not sure what is wrong yet, however you should never try to set the autocommit state of a connection that is enlisted in a jta transaction. Enlisting and delisting the XAConnection will result in the autocommit being dealt with properly. The value from getAutoCommit may or may not be meaningful in a jta transaction. Outside a jta transaction the autocommit state defaults to true. I'm quite surprised you didn't get a more informative error. One important piece of information that I don't see is which tranql wrapper you used to deploy your datasource. thanks david jencks On Dec 29, 2009, at 3:48 AM, xuhongbo wrote: Hi: Yet I haven't find the real reason , I have noticed another thing about the problem; The original test program will throw exception while transaction commit; but if I comment the statement connection.setAutoCommit(false); . the exception will throws while execute prepare statement; and exception changed as ORA-02089: COMMIT doesn't allowed in sub transaction which raised by oracle's driver; It seems the connection 's auto commit is default set to true; so I am wondering while secondly execute the trasaction , a no- transaction data source (not a transactional-datasource) is returned? -origin- Sender: xuhongbo [mailto:x...@tongtech.com] Date: 2009/12/29 12:53 Receiver: d...@geronimo.apache.org CC: user@geronimo.apache.org Subject: Cannot using Geronimo to execute bean-managed transaction with oracle transaction more than once, but Glassfish does Hi: When I using bean managed transaction with oracle-xa , I found that it cannot execute more than once; the first time, things is right and database is update; but if execute once again a oracle- xa-warning and a Geronimo exception occurs; the warning and exception is list at the end of this mail; The Geronimo Version I used is 2.1.4; and oracle version is 9i; I have use another app-server GlassFish test the same program, and it works well; My test program is list in the attachments: MyStatelessSessionBean.java is the ejb, and MyServlet is a servlet call the ejb; The oracle xa
Re: Resource Adapter deployment problem
For Question 1, is there any exception when you deploy the connector? For Qeustion 2, you can view the JNDI tree in the JNDI view of the admin console. You can also refer to the server log to see the global JNDI name of the connector. Hope this helps. -Jack On Wed, Dec 23, 2009 at 7:49 PM, jam_developer kbh...@mailcity.com wrote: Hi, I have a outbound resource adapter which is a connector for a rule engine. I need help to deploy it in Geronimo. Structure of rar is: adapter.jar(contains adapter classes) connector-api.jar(required 3rd party library) jsr94.jar(required 3rd party library) META-INF\rar.xml META-INF\geronimo.xml Following is my geronimo-ra.xml : connector xmlns=http://geronimo.apache.org/xml/ns/j2ee/connector-1.2; resourceadapter outbound-resourceadapter connection-definition connectionfactory-interfacebiz.hammurapi.rules.ra.ConnectionFactory/connectionfactory-interface connectiondefinition-instance nameRuleConnection/name connectionmanager no-transaction/ no-pool/ /connectionmanager /connectiondefinition-instance /connection-definition /outbound-resourceadapter /resourceadapter /connector Following is ra.xml : ?xml version=1.0 encoding=UTF-8? connector xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd; version=1.5 display-nameHammurapi Rules Adapter/display-name vendor-nameHammurapi Group/vendor-name eis-typeRules enabled application/eis-type resourceadapter-version1.0/resourceadapter-version resourceadapter resourceadapter-classbiz.hammurapi.rules.ra.ResourceAdapterImpl/resourceadapter-class outbound-resourceadapter connection-definition managedconnectionfactory-classbiz.hammurapi.rules.ra.ManagedConnectionFactoryImpl/managedconnectionfactory-class connectionfactory-interfacebiz.hammurapi.rules.ra.ConnectionFactory/connectionfactory-interface connectionfactory-impl-classbiz.hammurapi.rules.ra.ConnectionFactoryImpl/connectionfactory-impl-class connection-interfacejavax.rules.RuleSession/connection-interface connection-impl-classbiz.hammurapi.rules.ra.RuleSessionImpl/connection-impl-class /connection-definition transaction-supportNoTransaction/transaction-support authentication-mechanism authentication-mechanism-typeBasicPassword/authentication-mechanism-type credential-interfacejavax.resource.spi.security.PasswordCredential/credential-interface /authentication-mechanism reauthentication-supportfalse/reauthentication-support /outbound-resourceadapter /resourceadapter /connector Please let me know what am I missing here. My second question is I have another web application through which I need to access this resource adapter. I assume connectiondefinition-instance name(which is RuleConnection) can be used as JNDI name to get Connection object. Is this understanding correct? Please suggest. -- View this message in context: http://old.nabble.com/Resource-Adapter-deployment-problem-tp26899531s134p26899531.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: JarURLConnection doesn't work useCaches property
I spent quite some time to look at this problem. I tested the JDK's behavior and agree with David that the spec and RI together didn't do a good job to explain the indication of useCaches=false. Currently SUN JDK also returns the same JarFile instance if getJarFile() is called upon the same JarURLConnection whose useCaches is set false. This behavior is not faithfully following the spec... Anyway I created a patch and attached to the JIRA. It should apply to both the 2.1 and 2.2 branches. I didn't take care of NestedJarFile UnpackedJarFile as I suppose they are not used by JarFileUrlConnection - I did a little experiment, adding a hook in the JarFileUrlConnection to check the type of JarFiles that are passed in. I started the server and deploy an ear, and didn't see instances of NestedJarFile UnpackedJarFile passed into JarFileConnection. But I could miss something... -Jack On Wed, Aug 5, 2009 at 9:25 PM, Masayoshi Yamashita ymstm...@gmail.comwrote: Hello David, I did open a jira entry GERONIMO-4671. It seems that many class must be modified to fix this bug, so I'm sorry I cannot fix. At present, I temporarily solve by modifying my program. thanks, Masayoshi Yamashita
Re: getting the geronimo.home value inside a session bean
I think you can simply get it from system property using this key: org.apache.geronimo.home.dir. I'm not 100% percent sure that this will always work (for example, when server is started using gshell commands, e.g., start-server) - you can do a test. There is another way to fall back, which is to get the ServerInfo gbean from kernel, and read the home info from it. But that will make your code depend all Geronimo classes. -Jack On Thu, Aug 27, 2009 at 2:58 PM, Rodney B. Cabahug rodney.caba...@gmail.com wrote: Hello. How do you get the value for the geronimo.home or the installation directory of geronimo from inside a session bean? Regards, Rodney
Re: Accessing a server-wide JDBC data source through JNDI from a web module
You might want to paste your deployment plans and the code that locate the datasource here, to give more context... -Jack On Wed, Aug 26, 2009 at 6:35 PM, Torsten Schlabach tschlab...@gmx.netwrote: Dear list! My problem is this: I have followed this tutorial: http://cwiki.apache.org/GMOxDOC21/web-application-for-jdbc-access.html Interesting enough, I can even successfully look up my datasource without having a geronimo-web.xml at all when I deploy the web module standalone. But as soon as I make that web module part of an enterprise application (wrap it into an EAR file) the JNDI lookup doesn't work any more, even with the geronimo-web.xml file. Any thoughts how to find the problem? Regards, Torsten
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 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 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: Message Driven Bean is not receiving messages
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
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
Re: JarURLConnection doesn't work useCaches property
The context class loader when running in Geronimo is not the system class loader. So it's not strange that the behavior is different. What OS are you running these on? What do you want to achieve exactly? Update jar files constantly? -Jack On Sun, Aug 2, 2009 at 10:34 PM, Masayoshi Yamashita ymstm...@gmail.comwrote: Hello, I using Geronimo 2.1.4 Sun JDK 1.5.0.19. When executing the following code on Geronimo server, = ClassLoader loader = Thread.currentThread().getContextClassLoader(); URL url = loader.getResource(javax/servlet/http/); JarURLConnection conn1 = (JarURLConnection) url.openConnection(); conn1.setUseCaches(false); JarFile jarFile1 = conn1.getJarFile(); JarURLConnection conn2 = (JarURLConnection) url.openConnection(); conn2.setUseCaches(false); JarFile jarFile2 = conn2.getJarFile(); System.out.println(jarFile1); System.out.println(jarFile2); = there is a problem that jarFile1 and jarFile2 are same instances. When executing on Eclipse console, the variables are difference instances. (In addition, when useCaches property is true, those are same instances.) How should there be this problem? Best regards, Masayoshi Yamashita
Re: Geronimo2.1.0 build failure with Java5 (method getContentType() not found)
Harmony use MX4J, which implements JSR 003 and 160 (remote API). So I suppose the jmx remoting function is there. Mohan, can you start the server built with Harmony in command line? ie., use startup command for example. -Jack On Mon, Jun 22, 2009 at 12:33 AM, Kevan Miller kevan.mil...@gmail.comwrote: On Jun 21, 2009, at 12:04 PM, David Jencks wrote: On Jun 21, 2009, at 2:29 AM, Mohanraj Loganathan wrote: Hello After a long time, i could able to build the geronimo using Harmony JDK. But Building was not so smooth. I need to build the modules one by one. I struck at running the testsuites module .. It is failed to verify the Geronimo server start. But i am sure server is started. Server logs shows that server is up and running. But build script while running the command-testsuite failed to detect the server start. Any help would be much appreciated. Please note, Harmony doesnt implement JPA. umm, neither does any other vm, not sure what you mean here. Maybe it doesn't implement java agents or not the same way? IIRC, Harmony does not support -javaagent. You can run OpenJPA without it, but I think we'll run into a number of problems without -javaagent support. I wonder if harmony implements jmx remoting? checking whether the server started relies on this. Sounds like a reasonable guess... --kevan
Re: Dynamically load jars in running state
There is a very Geronimo-specific way with which you can hack with the application classloader. import org.apache.geronimo.kernel.config.MultiParentClassLoader; ... url = a certain folder or a jar file MultiParentClassLoader cl = (MultiParentClassLoader) Thread.currentThread.getContextClassloader(); cl.addURL(url); ... Good luck. -Jack 2009/6/18 stig larsen s...@exectiva.no Hi, We have an application that we wish to extend its capabilities in running state. I want to load jars into geronimo and make them appear in the classpath so my application can use them without restarting. Is there a way to to this? Best regards, Stig Even Larsen -- View this message in context: http://www.nabble.com/Dynamically-load-jars-in-running-state-tp24087873s134p24087873.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Enabling Session Affinity in G2.1.4 (using Tomcat w/ WADI)
Thanks for stepping out Gianny! I thought WADI use the clusterNameNode value set in var/config/config-substitutions.properties to append to JSESSIONID, at least for Jetty [1]. If I'm right, I suggest that we use the same setting for Tomcat, instead of using the jvmRoute parameter which is used by Tomcat native clustering. -Jack [1] http://cwiki.apache.org/GMOxDEV/clustering-configuration-for-jetty.html 2009/5/14 Gianny Damour gianny.dam...@optusnet.com.au Hi, There are various way to fulfill session stickiness. I have been conducting all my integration tests with HAProxy, http://haproxy.1wt.eu/, which does not require downstream load-balanced servers to do any manipulations to session cookies. I created an improvement ticket, https://issues.apache.org/jira/browse/GERONIMO-4626, to capture the need to augment returned session cookies with jvmRoute information so that mod_jk can be used. I also checked in against trunk some code to address this problem. I have not yet integration tested this code change with mod_jk; However, I am quite confident with the change. I intend to do some integration tests over the week-end to confirm the proper resolution of this problem. Meanwhile, if you want, you can check-out this module: https://svn.apache.org/repos/asf/geronimo/server/trunk/plugins/tomcat/ geronimo-tomcat6-clustering-wadi build it with maven and install the resulting artifact into your repository to give it a try. FWIW, if you can swap your reverse-proxy or load-balancing layer currently realised by Apache mod_jk, then I would recommend HAProxy. Thanks, Gianny On 14/05/2009, at 2:02 PM, Jack Cai wrote: With WADI, your guess is right that the clusterNodeName in config-substitutions.properties is used to identify each node. So if this is not working, then it's a bug. You can open a JIRA. -Jack 2009/5/14 Dennis Cartier dennis.cart...@gmail.com On Wed, May 13, 2009 at 10:36 AM, Jack Cai greensi...@gmail.com wrote: Tomcat native clustering and WADI are two different approaches. To try out Tomcat native clustering, for example, please refer to this doc [1]. It clearly points out that you need to set the jvmRoute parameter (note ID) in the config.xml. Good luck! -Jack [1] http://cwiki.apache.org/GMOxDOC22/tomcat-native-clustering.html 2009/5/13 Dennis Cartier dennis.cart...@gmail.com On Tue, May 12, 2009 at 10:19 PM, viola lu viola...@gmail.com wrote: First, pls set up tomcat or wadi cluster following this link: http://cwiki.apache.org/GMOxDOC22/clustering-and-farming.html and then configure apache http server to realize session affinity, if you use mod_jk way: edit works.properties under $http server install dir/conf with worker.loadbalancer.sticky_session=1 if you use mod_proxy, you can edit httpd.conf with: ProxyPass / balancer://mycluster/ stickysession=JSESSIONID Viola On Wed, May 13, 2009 at 9:10 AM, Dennis Cartier dennis.cart...@gmail.com wrote: I am trying to find out how to configure G2.1.4 for session affinity when using Tomcat and WADI. Would anyone be able to point me in the right direction? I thought that ClusterNodeName looked like a good guess in the config-substitutions.properties file but that does not seem to attach a node name to the generated session. Any help would be appreciated. Dennis -- viola Thanks for the pointers Viola. I am fine with the clustering aspects as far as Apache goes, I am just having trouble getting the node name to be properly appended to the generated JSESSIONID. I changed to the target namespace as indicated in the G2.2 cluster docs (web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1;) and I already had my WAR marked distributable as well as having the tomcat-clustering-wadi / element in place. Unfortunately I still do not get a node name being appended to the generated session so no affinity results. I noticed the G2.2 docs had a section on switching WADI to unicast. This sounded optional, I assume the default multicast mode of WADI is functional and changing to unicast is not required? I remain stumped. With no session affinity my requests are still spraying across the entire cluster rather then being sticky to a single node. Dennis Hmmm, I am getting the feeling that stick sessions (session affinity) is not possible in WADI clustering? I am not really wanting to switch to Tomcat native clustering at this point. Does anyone know if WADI (as implemented in G2.1.4) supports sticky sessions? Dennis
Re: Enabling Session Affinity in G2.1.4 (using Tomcat w/ WADI)
Tomcat native clustering and WADI are two different approaches. To try out Tomcat native clustering, for example, please refer to this doc [1]. It clearly points out that you need to set the jvmRoute parameter (note ID) in the config.xml. Good luck! -Jack [1] http://cwiki.apache.org/GMOxDOC22/tomcat-native-clustering.html 2009/5/13 Dennis Cartier dennis.cart...@gmail.com On Tue, May 12, 2009 at 10:19 PM, viola lu viola...@gmail.com wrote: First, pls set up tomcat or wadi cluster following this link: http://cwiki.apache.org/GMOxDOC22/clustering-and-farming.html and then configure apache http server to realize session affinity, if you use mod_jk way: edit works.properties under $http server install dir/conf with worker.loadbalancer.sticky_session=1 if you use mod_proxy, you can edit httpd.conf with: ProxyPass / balancer://mycluster/ stickysession=JSESSIONID Viola On Wed, May 13, 2009 at 9:10 AM, Dennis Cartier dennis.cart...@gmail.com wrote: I am trying to find out how to configure G2.1.4 for session affinity when using Tomcat and WADI. Would anyone be able to point me in the right direction? I thought that ClusterNodeName looked like a good guess in the config-substitutions.properties file but that does not seem to attach a node name to the generated session. Any help would be appreciated. Dennis -- viola Thanks for the pointers Viola. I am fine with the clustering aspects as far as Apache goes, I am just having trouble getting the node name to be properly appended to the generated JSESSIONID. I changed to the target namespace as indicated in the G2.2 cluster docs (web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1;) and I already had my WAR marked distributable as well as having the tomcat-clustering-wadi / element in place. Unfortunately I still do not get a node name being appended to the generated session so no affinity results. I noticed the G2.2 docs had a section on switching WADI to unicast. This sounded optional, I assume the default multicast mode of WADI is functional and changing to unicast is not required? I remain stumped. With no session affinity my requests are still spraying across the entire cluster rather then being sticky to a single node. Dennis
Re: Enabling Session Affinity in G2.1.4 (using Tomcat w/ WADI)
With WADI, your guess is right that the clusterNodeName in config-substitutions.properties is used to identify each node. So if this is not working, then it's a bug. You can open a JIRA. -Jack 2009/5/14 Dennis Cartier dennis.cart...@gmail.com On Wed, May 13, 2009 at 10:36 AM, Jack Cai greensi...@gmail.com wrote: Tomcat native clustering and WADI are two different approaches. To try out Tomcat native clustering, for example, please refer to this doc [1]. It clearly points out that you need to set the jvmRoute parameter (note ID) in the config.xml. Good luck! -Jack [1] http://cwiki.apache.org/GMOxDOC22/tomcat-native-clustering.html 2009/5/13 Dennis Cartier dennis.cart...@gmail.com On Tue, May 12, 2009 at 10:19 PM, viola lu viola...@gmail.com wrote: First, pls set up tomcat or wadi cluster following this link: http://cwiki.apache.org/GMOxDOC22/clustering-and-farming.html and then configure apache http server to realize session affinity, if you use mod_jk way: edit works.properties under $http server install dir/conf with worker.loadbalancer.sticky_session=1 if you use mod_proxy, you can edit httpd.conf with: ProxyPass / balancer://mycluster/ stickysession=JSESSIONID Viola On Wed, May 13, 2009 at 9:10 AM, Dennis Cartier dennis.cart...@gmail.com wrote: I am trying to find out how to configure G2.1.4 for session affinity when using Tomcat and WADI. Would anyone be able to point me in the right direction? I thought that ClusterNodeName looked like a good guess in the config-substitutions.properties file but that does not seem to attach a node name to the generated session. Any help would be appreciated. Dennis -- viola Thanks for the pointers Viola. I am fine with the clustering aspects as far as Apache goes, I am just having trouble getting the node name to be properly appended to the generated JSESSIONID. I changed to the target namespace as indicated in the G2.2 cluster docs (web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1;) and I already had my WAR marked distributable as well as having the tomcat-clustering-wadi / element in place. Unfortunately I still do not get a node name being appended to the generated session so no affinity results. I noticed the G2.2 docs had a section on switching WADI to unicast. This sounded optional, I assume the default multicast mode of WADI is functional and changing to unicast is not required? I remain stumped. With no session affinity my requests are still spraying across the entire cluster rather then being sticky to a single node. Dennis Hmmm, I am getting the feeling that stick sessions (session affinity) is not possible in WADI clustering? I am not really wanting to switch to Tomcat native clustering at this point. Does anyone know if WADI (as implemented in G2.1.4) supports sticky sessions? Dennis
Re: Geronimo2.1.0 build failure with Java5 (method getContentType() not found)
Mohan, the problem might be with the Harmony code - could be a compability issue or a defect. So you'll want to spend some time debugging it. I agree with Kevan that it will be cool that Geronimo can be built and run with Harmony. Someday we might be officially support Harmony as a runtime, and even do a JEE cert with Harmony? -Jack 2009/5/12 Kevan Miller kevan.mil...@gmail.com On May 12, 2009, at 8:54 AM, Luciano Salotto wrote: I would recommend trying this with Sun or IMB JDK, I believe those are the only two recommended JDK's http://cwiki.apache.org/GMOxDEV/building-apache-geronimo.html Agreed. However, if somebody's interested on working on it, I think it would be cool to see Harmony issues identified and resolved. --kevan
Re: Saving login and password info in 2.1.3
Yes it's a know problem that was fixed in 2.1.4. See [1]. -Jack [1] https://issues.apache.org/jira/browse/GERONIMO-1367 2009/5/1 user2111 ypka...@hotmail.com Hi, I saved my user Id and password using the ./deploy.sh login command. However I notice that the ./geronimo.sh stop command still prompts me for login and password in ver 2.1.3. In ver 2.1.4, it does not. Is this a known issue/limitation of 2.1.3? Any workaround? Thanks in advance. -- View this message in context: http://www.nabble.com/Saving-login-and-password-info-in-2.1.3-tp23321449s134p23321449.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Deployment takes forever with many files
Are the data all static contents such as images, videos etc.? Is there a deep directory structure? -Jack 2009/5/4 Patrick Kranz patrick.kr...@immobilienscout24.de Hi Ivan, sorry it took me so long to answer. No, the log files don“t give any hint about what is going on. It only prints messages coming from our application and those messages are the same for both cases (started with all data on the local disk and started with data located on an NFS share). Patrick Ivan schrieb: Does Geronimo output anything in the deployment process, could you please show us those logs ? Ivan 2009/4/30 Patrick Kranz patrick.kr...@immobilienscout24.de mailto: patrick.kr...@immobilienscout24.de Sorry, I forgot to mention: I am doing a deployment with the --inPlace parameter, so the application is not being copied to the Geronimo repository. Greets, Patrick Patrick Kranz schrieb: Hello list, I“ve been working with Geronimo for some days now and I have a question regarding the deployment process, especially about what happens behind the scenes. I am working on a project that has a lot of content (mainly JSPs but also images, pdfs and so on). For the development environment this content is reduced to a minimum, that is something around 800MB. The live system has more data because customers can upload images and even small videos. This data is placed on a file server and mounted via NFS on the development machines, where the content is linked from the docroot using symbolic links. If I start this scenario with Tomcat, the application start takes about 3,5 minutes (really application startup, no copying of data). If I try the same with Geronimo startup takes about 30 minutes with the system almost being idle and enormous network traffic. If I copy all the static content to my system and start geronimo it takes about 5 minutes. So, my question is, what does Geronimo do in the background that causes this startup time if the content is on a network share and can I prevent this from happening? Thanks in advance for every help! Greets, Patrick Geronimo 2.1.4 System: Linux CentOS 5 -- Ivan
Re: Check server state?
Rick, I suggest you to follow Jeff's advice to take a look at the code of [1] [2], which perfectly demonstrates how to check whether Geronimo is running. Note you can specify the RMI port as you like. -Jack [1] https://svn.apache.org/repos/asf/geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ConnectCommand.groovy [2] https://svn.apache.org/repos/asf/geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/WaitForServerCommand.groovy 2009/5/5 Ivan xhh...@gmail.com A common way : Create a Socket to connect the the port, if it could be connected, it means that a program is listerening on that port. A sample code like : public static boolean isConnected(String hostName, int port) { Socket socket = null; try { socket = new Socket(hostName, port); return socket.isConnected(); } catch (Exception e) { return false; } finally { if (socket != null) try { socket.close(); } catch (Exception e) { } } } But first, you need to make sure to bind the correct IP, or you could not connect it to the remote machine, Second, you do not know which program is llsterening on the specified port, maybe it is not Geronimo server :-( Wish it helps you, or anyone could give more better solution. Ivan 2009/5/5 RickI a...@worker.com I start new geronimo instance by changing port-offset in configuration file. All of that port are open but I dont want to access it through web-console but through java code. I want to know if geronimo instance in port 1199 (for example) is running or not. -R Ivan Xu wrote: Which port is available for you ? I mean you could connect from the remote machine 2009/5/1 RickI a...@worker.com Yes i think it's one way to check the main/default geronimo server. But I try to check the state of geronimo instances on other port. That way might not work. Thanks, Ricky Ivan Xu wrote: No sure how does the wait-for-server command implement it, but I think try to connect the server via JMX is also a way to check whether the kernel is running.Ivan -- Ivan -- View this message in context: http://www.nabble.com/Check-server-state--tp23267578s134p23378540.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. -- Ivan
Re: Really basic security question
You might want to take a look at the one of the Geronimo samples [1]. It shows how to use LDAP for authentication, but it also shows how to configure form-login. -Jack [1] http://cwiki.apache.org/GMOxDOC21/ldap-sample-app-ldap-sample-application.html 2009/5/2 Ken T. ktectr...@gmail.com I have an install of Geronimo and a few web apps installed on it and I would like to add some basic security so that only people I ask to look at the demos can actually access them. I've created a user under Geronimo called demo and given the user a password. Now I would like to make the necessary changes to the web.xml or geronimo.xml file to tell my web apps to not allow use by any user other than demo (or users in the demo role). If I need to write a form to get the user name and password, I can do that, but if there is a default form that can be used, I would just assume use it. So how do I go about doing this? Thanks. I looked online for this information but it assumed a much deeper understanding of how security works than I really have. Any assistance would be greatly appreciated. Thanks. -- Ken T. ktectr...@gmail.com
Re: is there any way to auto recover the wasce server?
I'd say it's not a good idea to restart the server to clean up things. If it's the performance becomes unacceptable because there are too many users and the server is overloaded, then you should add more servers to the cluster to distribute the workload, or upgrade the hardware configuration of the current server (more memory, more CPU, etc.). If there are memory leaks (as you say the memory consumption gets larger and larger), you should check whether it's a problem in your application (e.g., not releasing objects in time). It might also be a problem in the server, for which people here are happy to work with you to solve. -Jack 2009/4/9 WenDong Zhang zwd2...@gmail.com Hi all. I'm using httpd2.2 mod_jk as the load balancer server, and to wasce server as the cluster nodes. The requests per second for each wasce node maybe more than 200 times. Now after running for a long time, the wasce server's performance is getting lower (the system resource usage is higher, cpu usage almost 100% memory usage is higher than 1G). When the response time of wasce server is too long (more than 3s), I need to restart the wasce server to release the system resource. My question is: Could to wasce server auto clear the using resource after running for a period? such as terminate the running threads, release system resource. Even this maybe lost some requests, but it can server the subsequent requests timely. Now my way is restart the wasce server per several minutes... Thanks. -- Best Regards! Wen Dong
Re: [ANNOUNCE] Availability of Geronimo 2.1.4
Great! Congratulations everyone! -Jack 2009/4/1 Bill Stoddard wgstodd...@gmail.com Joe Bohn wrote: The Apache Geronimo project is pleased to announce the available of Apache Geronimo v2.1.4 server. This is primarily a maintenance release. Among the updates and fixes included in the release are several security fixes for vulnerabilities in the administration console. Details of the security vulnerabilities fixed in this release can be found in the Security Report: http://geronimo.apache.org/21x-security-report.html Other fixes and enhancements are listed in the Release Notes: http://cwiki.apache.org/confluence/display/GMOxDOC21/RELEASE-NOTES-2.1.4.TXT Visit the Downloads page for details on downloading Apache Geronimo v2.1.4 server assemblies: http://geronimo.apache.org/downloads.html A big THANK YOU to all that contributed to this release! Great work everyone! Joe Congratulations!
Re: One tip about using tranql to connect to Informix database
Thanks for sharing Forrest! So theoritically Derby can also be connected using the JCC driver, as it also supports the DRDA protocol that the JCC driver implements. -Jack 2009/3/25 Forrest_Xia forres...@gmail.com A tip about IDS db connectivity, I am not sure if it is suitable for the scope of this mailing list. However it's an output when I am using geronimo, so I arbitrarily post here, hope it's not a big noise for this space and we can learn something form it :) As we know, there is a new tranql xa adapter for informix dynamic server(IDS). After some interesting test, find out that the new informix tranql xa adapter only works with traditional informix jdbc driver, such as ifxjdbc.jar and ifxjdbcx.jar. It does not support Java Common Client(JCC) driver to connect to IDS database. For application running in Geronimo which wants to use JCC driver to connect to IDS, there are two ways to do datasource setup: 1. If not using XA transaction, use tranql-connector-ra adapter to deploy datasource 1.1 Install JCC driver into geronimo repository, download it from http://www-01.ibm.com/support/docview.wss?rs=71uid=swg21363866 1.2 Configure IDS instance to use drsoctcp protocol, restart it 1.3 Prepare a datasource deployment plan like this: environment dependencies dependency groupIdcom.ibm.db2/groupId artifactIddb2jcc/artifactId version9.5/version typejar/type /dependency dependency groupIdcom.ibm.db2/groupId artifactIddb2jcc_license_cu/artifactId version9.5/version typejar/type /dependency /dependencies /environment ... ext-module connectorTradeDataSource/connector external-path xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.2; dep:groupIdorg.tranql/dep:groupId dep:artifactIdtranql-connector-ra/dep:artifactId dep:typerar/dep:type /external-path connector xmlns=http://geronimo.apache.org/xml/ns/j2ee/connector-1.2; resourceadapter outbound-resourceadapter connection-definition connectionfactory-interfacejavax.sql.DataSource/connectionfactory-interface connectiondefinition-instance namejdbc/TradeDataSource/name config-property-setting name=UserNameinformix/config-property-setting config-property-setting name=Passwordpassw0rd/config-property-setting config-property-setting name=Drivercom.ibm.db2.jcc.DB2Driver/config-property-setting config-property-setting name=ConnectionURLjdbc:db2://idsserverhostnameorip:port/tradedb/config-property-setting connectionmanager local-transaction/ single-pool max-size5/max-size min-size0/min-size blocking-timeout-milliseconds5000/blocking-timeout-milliseconds idle-timeout-minutes15/idle-timeout-minutes match-one/ /single-pool /connectionmanager /connectiondefinition-instance /connection-definition /outbound-resourceadapter /resourceadapter /connector /ext-module 1.4 Deploy it with the application 2. if using XA transaction, use tranql-connector-db2-xa to deploy datasource, the plan like this: ext-module connectorTradeDataSource/connector external-path xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.2; dep:groupIdorg.tranql/dep:groupId dep:artifactIdtranql-connector-db2-xa/dep:artifactId dep:typerar/dep:type /external-path connector xmlns=http://geronimo.apache.org/xml/ns/j2ee/connector-1.2; resourceadapter outbound-resourceadapter connection-definition connectionfactory-interfacejavax.sql.DataSource/connectionfactory-interface connectiondefinition-instance namejdbc/TradeDataSource/name config-property-setting name=UserNameinformix/config-property-setting config-property-setting name=Passwordpassword/config-property-setting config-property-setting name=PortNumberyourIDSinstancelistenport/config-property-setting config-property-setting name=ServerNameyourIDSinstanceserverhostnameorip/config-property-setting
Re: Geronom 2.1.4, Thread Pools are reporting zero usage
I looked through the code to see how ConnectorThreadPool and DefaultThreadPool are actually used. It seems that ConnectorThreadPool is used by org.apache.geronimo.connector.work.GeronimoWorkManagerGBean in JCA, and DefaultThreadPool is used by Jetty and System-database. So their names are misleading in some sense. You cannot expect that the ConnectorThreadPool has any link with Tomcat's web connector. Hope this helps. -Jack 2009/3/12 jklcom99 jeff_k...@yahoo.com I'm running 3/2/09 2.1.4-SNAPSHOT. Geronimo console is reporting zero usages for both ConnectorThreadPool and DefaultThreadPool even with our application running. ConnectorThreadPool is set to 30 Max DefaultThreadPool is set to 200 min and 500 max Thank you -- View this message in context: http://www.nabble.com/Geronom-2.1.4%2C-Thread-Pools-are-reporting-zero-usage-tp22461310s134p22461310.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: jndi datasource access problem
2009/3/3 Kaupo kpar...@gmail.com Jack Cai wrote: Are you runing this piece of code in the server container or in a standalone Web service client? Looks like you are running in the client. You can't access the server context (resources) in the standalone client. This code was in the same server. I'm using it in my UserDao, for user authentication. It just doesn't want to work when I try using basic authentication on my webservice (that is running in the same server) Maybe the axis2 engine used in geronimo automatically somehow makes my webservice a standalone client? No, that should not happen. Maybe it's configuration problem. You can see the usage information of your datasource in admin console (in Database Pools page, click Usage link of your datasource. Are you able to run the code successfully with the global JNDI name now? -Jack
Re: JAVA PHP Bridge
I guess you can share the jars across the applications by installing it in the server repository (through Services-Repository in the admin console) and then let all depending applications claim a depedency on these jars in their deployment plan. Good luck! -Jack 2009/2/28 James D Carroll jamesdcarrol...@verizon.net I installed the JavaPHP bridge as an application and was pleased that I could run the sample PHP within Geronimo. I would like, however, to make the bridge available to all applications on the server. Could someone point in the right direction to make that happen?
Re: Geronimo can't load Module 32/68 org.apache.geronimo.configs/activemq-ra/2.1.2/car
Is there some more information in the log? (var/server.log) Have you changed any configurations? 2009/3/2 HuMark markus-hu...@rossholzen.de I've still the problem The error from my attempt has been the try of g. 2.1.2 the same with 2.1.3. Yes the activemq-broker/2.1.3/car has started correctly [Module 16/68 org.apache.geronimo.configs/activemq-broker/2.1.3/car started in 1.953s] When I comment out the activemq-ra module I get an error in [Module 56/67 org.apache.geronimo.plugins/activemq-console-tomcat/2.1.3/car 12:00:21,156 ERROR [RecoveryController] javax.transaction.xa.XAException: Wire format negociation timeout: peer did not send his wire format. started in 15.563s] But I've something found out. While startup the module org.apache.geronimo.configs/activemq-ra/2.1.2/car is trying to connect to the java rmiregistry but this fails because of the timeout. I've checked my firewall etc. settings nothing blocks it but the rmiregistry gives no answer. Any ideas? Regards djencks wrote: I haven't seen this :-/ What I find most odd is that you say the error relates to a version 2.1.2 plugin but the server is version 2.1.3 Is this actually a problem or did you give us the error from your attempt to try g. 2.1.2? Assuming that there is no version madness :-) - has the activeMQ broker started before the error shows up? It should be org.apache.geronimo.configs/activemq-broker/2.1.3/car - what happens if you comment out the activemq-ra module in var/config/ config.xml? david jencks On Jan 22, 2009, at 9:39 AM, HuMark wrote: Hello, I've strange problem with Apache Geronimo Server Version -- geronimo-tomcat6-javaee5-2.1.3 also tried the former version). I've in work a Windows Vista system and there everything is okay Geronimo never faild while startup but on my laptop and my home computer (both with Windows XP) I was not able to and alway get the same error message while startup. Module 32/68 org.apache.geronimo.configs/activemq-ra/2.1.2/car ERROR [RecoveryController] javax.transaction.xa.XAException: Wire format negociation timeout: peer did not send his wire format. started in 15.234s After that he loads normal the other modules and says server startet but then the server doesn't react and is unable to shutdown normally. I've configured everything like on the vista system (classpath entries, directories and so on) and use the same JRE and JDK (both 1.6.0_07). It doesn't work with or without firewall (this was the only lead I found in web for a similar fault). Maybe I forget something simple but I've no more ideas. Thanks for help! Regards -- View this message in context: http://www.nabble.com/Geronimo-can%27t-load-Module-32-68-org.apache.geronimo.configs-activemq-ra-2.1.2-car-tp21609282s134p21609282.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Geronimo-can%27t-load-Module-32-68-org.apache.geronimo.configs-activemq-ra-2.1.2-car-tp21609282s134p22286188.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: jndi datasource access problem
Are you runing this piece of code in the server container or in a standalone Web service client? Looks like you are running in the client. You can't access the server context (resources) in the standalone client. -Jack 2009/3/3 David Jencks david_jen...@yahoo.com On Mar 2, 2009, at 7:30 AM, Kaupo wrote: I have configured a datasource in my application, but i have problems accessing it when when I connect to my application through a webservice and try to use it! I get the following error: java.lang.NullPointerException: You have accessed the java:comp jndi context on a thread that has not initialized it The code that is use: InitialContext ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/MyDataSource); con = ds.getConnection(); This is reasonable code in a javaee component inside the server. Could you provide a complete stack trace? I read here http://cwiki.apache.org/GMOxDOC21/jndi.html http://cwiki.apache.org/GMOxDOC21/jndi.html that one can access the resources by using the jca:{groupId}/{artifactId}/{j2eeType}/{name} notation, but I'm having a hard time figuring out the j2eeType part. How do I know what to put instead of j2eeType? If you look in var/log/geronimo.log the jndi locations are logged as the comonents start up. I prefer to look at these rather than try to remember which j2eeType is in use. thanks david jencks -- View this message in context: http://www.nabble.com/jndi-datasource-access-problem-tp22290284s134p22290284.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Get The page cannot be displayed Error when try to access database pool edit page
So use FireFox instead. :-) -Jack 2009/2/16 Ying Tang yingtang1...@gmail.com Hi, This is perhaps caused by a maximum URL length limitation (2,083 characters) of IE. 2009/2/13 Michael2 wtist...@yahoo.com I created an Informix database pool in Geronimo 2.1.3 using the database pool wizard, I was able to successfully test the database connection before deploying it. I can see the database pool I just created is listed in the Available database pool list with a running status. When I click the Usage link, I see the instructions about how to use this database pool. However, when I click the Edit link, I get a The page cannot be displayed error. When I check the log file there is no error message there. I also check other default database pool's Edit links and I do not have any problem to open these database pool Edit pages. Can someone help me find where my problem is? In a case like this, although I cannot edit the pool anymore, is it running properly and can I still use it? Thanks in advance. Michael -- View this message in context: http://www.nabble.com/Get-%22The-page-cannot-be-displayed%22-Error-when-try-to-access-database-pool-edit-page-tp21893706s134p21893706.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Geronimo Cannot Auto-reload class File
I also agree that it's nice to have that. But I guess it's not as easy as just exposing the attribute. As David J. pointed out in another thread, we are dealing with two containers here. I did a small experiment by adding a context.xml in Tomcat's conf folder, and set reloadable=true. Then Tomcat reports a NullPointerException each time it wants to do class reload. We need to look deeper into this. -Jack 2009/1/15 Ivan xhh...@gmail.com Currently, it seems that the reload attribute of the context is not exported by the TomcatWebAppContext GBean, shall we add this attribute to allow the user to set it in the config.xml ?Thanks ! 2009/1/15 chi runhua chirun...@gmail.com Try deploy --inPlace yourAppHome,here is the doc for your information http://cwiki.apache.org/GMOxDOC22/deploy.html#deploy-Deploy Jeff C On Thu, Jan 15, 2009 at 2:36 PM, Kai Fei boy...@gmail.com wrote: Hello, My name is Kai, a new geronimo user. I met a small problem when develope a web application on geronimo. It seems that geronimo won't reload the java class file when it is replaced. Here is what I did: After I deploied a war file, I wanted to change a java class, so I replaced the old one with a new one, but the application didn't make any changes. Then I restart the war application, it works. Is there any way to make geronimo reload the java class file automaticly? I expect that there could be a config file which can enable this function, but I didn't find... Would anyone help? -- Ivan
Re: Geronimo Cannot Auto-reload class File
Actually Tomcat does do a reload for the whole Web app when it detects a class update. There's no big magic here. The reloadable attribute is only recommended for use during app development, not for production. The feature just saves a click of restart. -Jack 2009/1/15 David Jencks david_jen...@yahoo.com I really doubt that pursuing this will turn out to be a good use of our time -- I fear that it is likely to introduce hard-to-find and fix problems -- but if anyone wants to look into it -- a tomcat flag is unlikely to work in geronimo since we are not using any tomcat class loaders. -- I would investigate what tomcat does from this flag and if eclipse has a similar feature and find out how they work. -- I think I recall a jvm feature that lets you replace class definitions in some circumstances. I've never used it and don't know when it can be used. Basically I don't see how you can reliably replace one class - say a servlet class - in a web app without restarting the whole web app. There is going to be at least one instance of the servlet class created, so you need to stop and recreate the servlet. Assuming it has load-on-startup == 0. you have to start the whole web app. If people have different perspectives I'd like to hear them :-) From a user perspective what I do is to set up a maven build that builds my app, uses the car-maven-plugin to build it into a geronimo plugin, use the car-maven-plugin again to build a micro server including my app, and use selenium to run tests against it in the micro server. thanks david jencks On Jan 15, 2009, at 12:12 AM, Jack Cai wrote: I also agree that it's nice to have that. But I guess it's not as easy as just exposing the attribute. As David J. pointed out in another thread, we are dealing with two containers here. I did a small experiment by adding a context.xml in Tomcat's conf folder, and set reloadable=true. Then Tomcat reports a NullPointerException each time it wants to do class reload. We need to look deeper into this. -Jack 2009/1/15 Ivan xhh...@gmail.com Currently, it seems that the reload attribute of the context is not exported by the TomcatWebAppContext GBean, shall we add this attribute to allow the user to set it in the config.xml ?Thanks ! 2009/1/15 chi runhua chirun...@gmail.com Try deploy --inPlace yourAppHome,here is the doc for your information http://cwiki.apache.org/GMOxDOC22/deploy.html#deploy-Deploy Jeff C On Thu, Jan 15, 2009 at 2:36 PM, Kai Fei boy...@gmail.com wrote: Hello, My name is Kai, a new geronimo user. I met a small problem when develope a web application on geronimo. It seems that geronimo won't reload the java class file when it is replaced. Here is what I did: After I deploied a war file, I wanted to change a java class, so I replaced the old one with a new one, but the application didn't make any changes. Then I restart the war application, it works. Is there any way to make geronimo reload the java class file automaticly? I expect that there could be a config file which can enable this function, but I didn't find... Would anyone help? -- Ivan
Re: Add tomcat-specific configuration
Thanks Ivan! I've examined the geronimo-tomcat-2.0.1.xsd and geronimo-tomcat-config-1.0.xsd, and am pretty sure many configurations are not available, like antiJARLocking, unloadDelay, etc. I understand that many of these settings might not work in Geronimo. Just try to see how we can play with the context.xml etc., which might be some good tips for migration from Tomcat. -Jack 2009/1/14 Ivan xhh...@gmail.com Basically, Geronimo have created a GBean for each element in the server.xml, which means we should configure those settings via GBeans in the config.xml. But so far, I am sure the existing GBeans have not covered all the settings that tomcat provides. e.g. for server.xml, we have host gbean for the HOST element, actually, you could check the current setting in the geronimo\plugins\tomcat\tomcat6\src\main\plan\plan.xml. For the context.xml, a TomcatWebAppContext GBean will be created while deploying the web applications, and most configurations could be set in the geronimo-web.xml file. Thanks for any comment, if any mistake is made, please point it out ! 2009/1/13 Jack Cai greensi...@gmail.com I just realize that I can put a context.xml in var/catalina/conf so that I can specify lots of Tomcat options there. I did a small experiment with the workDir param and it seems taking effect. Wondering whether this is supposed to work? Can I also put a server.xml there? Thanks! - Jack -- Ivan
Add tomcat-specific configuration
I just realize that I can put a context.xml in var/catalina/conf so that I can specify lots of Tomcat options there. I did a small experiment with the workDir param and it seems taking effect. Wondering whether this is supposed to work? Can I also put a server.xml there? Thanks! - Jack
Re: Out of memory errors
So you have set -XmsIm and -XmxMm options for the JVM? It will be helpful if you can post your (partial) log here. -Jack 2009/1/4 Ken T. ktectr...@gmail.com I'm getting out of memory errors on my site http:// www.electricsenator.net. Now if I watch the memory usage over the course of time, I never see it exceed 50 MB for more than a few minutes, it has 1024 MB allocated (a bit less) so I'm not sure why this would be a problem. Is there some bug I'm running into, or is there a way to track this down? Thanks. I use this server for a blog and some testing. Nothing really intensive. -- Ken T. ktectr...@gmail.com
Re: Custom Server Config - errors
I suggest you to include all the modules below if not already. -Jack upgrade-cli client-system geronimo-gbean-deployer j2ee-security j2ee-system jsr88-cli jsr88-deploymentfactory offline-deployer online-deployer plugin rmi-naming server-security-config shutdown connector-deployer hot-deployer jsr88-ear-configurer jsr88-rar-configurer jsr88-war-configurer j2ee-server jasper-deployer jasper remote-deploy-tomcat sharedlib tomcat6-deployer wasce-boilerplate-minimal 2008/12/19 Ray Clough rcclo...@kamakuraco.com I just use the deployer to deploy the app, and I am completely unable to find anything which looks like a generated plugin file. My custom server is named 'RiskPortalServer', which I generated from the full server using the Geronimo console functions. The deployed module is 'default/RiskPortal/1.0/war', and I do indeed see this deployment path in the Repository, but no added plugin file. If you could suggest where the plugin might reside, that would help. My best guess is that I left something important out of the server dependencies, but I have no way of knowing what, without doing a trial and error one-module-at-a-time process, which I could complete sometime around the next millennium. I want the console app, transactional capability, jsf, and jsp pages, with jndi-resolved database connections, and deployers for all these. The problem is with the JSP pages only, I believe. The stack trace from a JSP page begins with this: 11:04:11,093 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: No org.apache.InstanceManager set in ServletContext at org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(InstanceManagerFactory.java:39) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198) at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:179) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:606) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:246) at org.apache.tiles.web.util.TilesDispatchServlet.doGet(TilesDispatchServlet.java:83) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:396) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:232) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.kamakura.rp.web.interceptors.UserInitializerFilter.doFilter(UserInitializerFilter.java:137) at
Re: Custom Server Config - errors
Hi Ray, Have you tried to run your app in Little-G? Usually you might want to include everything that is in Little-G. -Jack 2008/12/17 Ray_Clough rcclo...@kamakuraco.com I have created a custom Server config using the Geronimo Console. Some pages cause an IllegalStateException - no org.apache.InstanceManager set in ServletContext. When I run in the full server, I do not get this error, so it must be something missing from my configuration. The app uses jsf (with Facelets) as well as older JSPX pages. I think that it is the JSPX pages which cause the problem. Any ideas what I did not include which I should have? Thank you very much, - Ray Clough -- View this message in context: http://www.nabble.com/Custom-Server-Config---errors-tp21046988s134p21046988.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Deployment Architecture
Don't quite understand what you really want to ask. Can you elaborate your question? -Jack 2008/12/15 jyabc yan...@us.ibm.com Hi. I am so used to deploy web application this way Firewall -- HTTP Server -- Firewall -- LDAP/App Server Firewall -- DB Server If I want to use Apache Geronimo, do you think I can do the same thing? Thanks for your comments/answers in advance.. jyabc -- View this message in context: http://www.nabble.com/Deployment-Architecture-tp21003397s134p21003397.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Manually undeploy application without Geronimo running
There is an offline option for the deploy command. You can try this: deploy.sh/bat --offline undeploy XXX.war -Jack 2008/11/2 Vamsavardhana Reddy [EMAIL PROTECTED] Open var\config\config.xml file and remove the entry default/JSPWiki/1223324737546/war. ++Vamsi On Sun, Nov 2, 2008 at 5:30 PM, Juergen Weber [EMAIL PROTECTED] wrote: Hi, I had the JSPWiki web application deployed, something failed, now Geronimo won't start. How do you manually undeploy an application without Geronimo running? I deleted the JSPWiki tree from the repository, but Geronimo still won't start. And, it would be nice if Geronimo even started in spite of a failing web app... Thanks, Juergen The service J2EEApplication=null,WebModule=default/JSPWiki/1223324737546/war,j 2eeType=Servlet,name=com.metaparadigm.jsonrpc.JSONRPCServlet did not start becau se the following dependent services did not start: [default/JSPWiki/122332473754 6/war?J2EEApplication=null,WebModule=default/JSPWiki/1223324737546/war,j2eeType= Servlet,name=XMLRPC-UTF8, default/JSPWiki/1223324737546/war?J2EEApplication=null ,j2eeType=WebModule,name=default/JSPWiki/1223324737546/war] at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio nGBeans(ConfigurationUtil.java:485) ... 17 more [*** ] 98% 47s Startup failed rem app deleted manually from repository D:\java\geronimo-jetty6-javaee5-2.1.3\bingeronimo run Using GERONIMO_BASE: D:\java\geronimo-jetty6-javaee5-2.1.3 Using GERONIMO_HOME: D:\java\geronimo-jetty6-javaee5-2.1.3 Using GERONIMO_TMPDIR: var\temp Using JRE_HOME:D:\jdk1.6.0_05\jre Booting Geronimo Kernel (in Java 1.6.0_05)... Starting Geronimo Application Server v2.1.3 [*** ] 99% 38s Startup failed org.apache.geronimo.kernel.config.InvalidConfigException: Could not locate confi gs to start: [default/JSPWiki/1223324737546/war] at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaem on.java:167) at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon .java:79) at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(Ma inConfigurationBootstrapper.java:45) at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67) at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30) [*** ] 99% 47s Startup failed D:\java\geronimo-jetty6-javaee5-2.1.3\bin -- View this message in context: http://www.nabble.com/Manually-undeploy-application-without-Geronimo-running-tp20289122s134p20289122.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.