What is the equivalence of catalina.policy in Geronimo?

2014-12-10 Thread Jack Cai
Thanks.

-Jack


How to prevent activeMQ in geronimo 3.0.1 from creating the database tables during startup?

2013-12-04 Thread Jack Cai
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.

   
   
   


 Can anyone help? (Either fix the create table error, or disable table
creation) Thanks.

Regards

Jack


Re: ActiveMQ configuration for Geronimo 3.0.1

2013-09-09 Thread Jack Cai
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  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  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
>>
>
>


ActiveMQ configuration for Geronimo 3.0.1

2013-09-09 Thread Jack Cai
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: classloading problem for WARs in an EAR file share classpath

2013-09-03 Thread Jack Cai
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  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  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
>
>


classloading problem for WARs in an EAR file share classpath

2013-09-03 Thread Jack Cai
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)?

2010-03-29 Thread Jack Cai
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 wrote:

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

2010-03-24 Thread Jack Cai
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.

2010-03-21 Thread Jack Cai
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š 

> 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
> 
> ... 
> 
> 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

2010-03-17 Thread Jack Cai
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š 

> Hello,
>
> how do I set web application's docBase preferably in geronimo-web.xml?
>


Re: 2.2 in production

2010-03-04 Thread Jack Cai
+1

-Jack

On Thu, Mar 4, 2010 at 4:12 PM, Shawn Jiang  wrote:

> The WADI is still 2.1.1 in both 22 branch and trunk somehow.  If no
> objection, I'll upgrade it to 2.1.2.
>
>
> On Sat, Nov 14, 2009 at 2:59 PM, Gianny Damour <
> gianny.dam...@optusnet.com.au> wrote:
>
>> Hi Trygve,
>>
>> Thanks for your test.
>>
>> These warnings indicate that a session replication message was not
>> acknowledged within a 2000ms timeframe. The message has not been lost and
>> will be processed by back-up nodes as expected.
>>
>>
>> Kevan, I just deployed release 2.1.2 of WADI for geronimo 2.2.
>>
>>
>> Thanks,
>> Gianny
>>
>>
>>
>> On 09/11/2009, at 11:38 PM, Trygve Hardersen wrote:
>>
>>  Hello again
>>>
>>> The system has now been running for a few days and I've not seen the hang
>>> on startup so I believe the issue has been resolved. Great!
>>>
>>> I am still seeing some warnings like this:
>>>
>>> 10:58:49,250 WARN  [UpdateReplicationCommand] Update has not been
>>> properly cascaded due to a communication failure. If a targeted node has
>>> been lost, state will be re-balanced automatically.
>>> org.codehaus.wadi.servicespace.ServiceInvocationException:
>>> org.codehaus.wadi.group.MessageExchangeException: No correlated messages
>>> received within [2000]ms
>>>at
>>> org.codehaus.wadi.servicespace.basic.CGLIBServiceProxyFactory$ProxyMethodInterceptor.intercept(CGLIBServiceProxyFactory.java:209)
>>>at
>>> org.codehaus.wadi.replication.storage.ReplicaStorage$$EnhancerByCGLIB$$4372d264.mergeUpdate()
>>>at
>>> org.codehaus.wadi.replication.manager.basic.UpdateReplicationCommand.cascadeUpdate(UpdateReplicationCommand.java:93)
>>>at
>>> org.codehaus.wadi.replication.manager.basic.UpdateReplicationCommand.run(UpdateReplicationCommand.java:86)
>>>at
>>> org.codehaus.wadi.replication.manager.basic.SyncReplicationManager.update(SyncReplicationManager.java:138)
>>>at
>>> org.codehaus.wadi.replication.manager.basic.LoggingReplicationManager.update(LoggingReplicationManager.java:100)
>>>at
>>> org.codehaus.wadi.core.session.AbstractReplicableSession.onEndProcessing(AbstractReplicableSession.java:49)
>>>at
>>> org.codehaus.wadi.core.session.AtomicallyReplicableSession.onEndProcessing(AtomicallyReplicableSession.java:58)
>>>at
>>> org.apache.geronimo.clustering.wadi.WADISessionAdaptor.onEndAccess(WADISessionAdaptor.java:77)
>>>at
>>> org.apache.geronimo.jetty6.cluster.ClusteredSessionManager.complete(ClusteredSessionManager.java:60)
>>>at
>>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:198)
>>>at
>>> org.apache.geronimo.jetty6.cluster.ClusteredSessionHandler.doHandle(ClusteredSessionHandler.java:59)
>>>at
>>> org.apache.geronimo.jetty6.cluster.ClusteredSessionHandler$ActualHandler.handle(ClusteredSessionHandler.java:66)
>>>at
>>> org.apache.geronimo.jetty6.cluster.AbstractClusteredPreHandler$WebClusteredInvocation.invokeLocally(AbstractClusteredPreHandler.java:71)
>>>at
>>> org.apache.geronimo.jetty6.cluster.wadi.WADIClusteredPreHandler$WADIWebClusteredInvocation.access$000(WADIClusteredPreHandler.java:52)
>>>at
>>> org.apache.geronimo.jetty6.cluster.wadi.WADIClusteredPreHandler$WADIWebClusteredInvocation$1.doFilter(WADIClusteredPreHandler.java:64)
>>>at
>>> org.codehaus.wadi.web.impl.WebInvocation.invoke(WebInvocation.java:116)
>>>at
>>> org.codehaus.wadi.core.contextualiser.MemoryContextualiser.handleLocally(MemoryContextualiser.java:71)
>>>at
>>> org.codehaus.wadi.core.contextualiser.AbstractExclusiveContextualiser.handle(AbstractExclusiveContextualiser.java:94)
>>>at
>>> org.codehaus.wadi.core.contextualiser.AbstractMotingContextualiser.contextualise(AbstractMotingContextualiser.java:37)
>>>at
>>> org.codehaus.wadi.core.manager.StandardManager.processStateful(StandardManager.java:154)
>>>at
>>> org.codehaus.wadi.core.manager.StandardManager.contextualise(StandardManager.java:146)
>>>at
>>> org.codehaus.wadi.core.manager.ClusteredManager.contextualise(ClusteredManager.java:81)
>>>at
>>> org.apache.geronimo.jetty6.cluster.wadi.WADIClusteredPreHandler$WADIWebClusteredInvocation.invoke(WADIClusteredPreHandler.java:72)
>>>at
>>> org.apache.geronimo.jetty6.cluster.AbstractClusteredPreHandler.handle(AbstractClusteredPreHandler.java:39)
>>>at
>>> org.apache.geronimo.jetty6.cluster.ClusteredSessionHandler.handle(ClusteredSessionHandler.java:51)
>>>at
>>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>>>at
>>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
>>>at
>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext.access$101(TwistyWebAppContext.java:41)
>>>at
>>> org.apache.geronimo.jetty6.handler.TwistyWebAppContext$TwistyHandler.handle(TwistyWebAppContext.java:66)
>>>at
>>> org.apache.geronimo.jetty6.handler.Thre

Re: Geronimo 2.2 and JPA 2.0

2010-03-02 Thread Jack Cai
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
wrote:

> 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

2010-03-02 Thread Jack Cai
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  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: Start the server programmatically by using Java API

2010-02-26 Thread Jack Cai
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  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

2010-01-10 Thread Jack Cai
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  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 conne

Re: Resource Adapter deployment problem

2010-01-05 Thread Jack Cai
gt; 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  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:
>>> ---
>>> http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>
>>>
>>>   >> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1";>
>>>     
>>>       hammurapi
>>>       RulesAdapter
>>>       4.1
>>>       rar
>>>     
>>>     
>>>     
>>>     
>>>   
>>>
>>>  
>>>    
>>>      
>>>
>>> com.hammurapi.reasoning.ForwardReasoningSessionFactory
>>>        
>>>          eis/RuleConnection
>>>          
>>>            
>>>            
>>>          
>>>        
>>>      
>>>    
>>>  
>>> 
>>>
>>> --
>>>
>>> I was expecting to see specified JNDI name (eis/RuleConnection)  in JNDI
>>> viewer but JNDI viewer just shows
>>> hammurapi/RulesAdapter/4.1/rar
>>>
>>> Please let me know what am I missing out here.
>>>
>>>
>>>
>>>
>>> djencks wrote:
>>>>
>>&g

Re: Resource Adapter deployment problem

2010-01-04 Thread Jack Cai
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  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:
> ---
> http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>
>
>    xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1";>
>     
>       hammurapi
>       RulesAdapter
>       4.1
>       rar
>     
>     
>     
>     
>   
>
>  
>    
>      
>
> com.hammurapi.reasoning.ForwardReasoningSessionFactory
>        
>          eis/RuleConnection
>          
>            
>            
>          
>        
>      
>    
>  
> 
>
> --
>
> I was expecting to see specified JNDI name (eis/RuleConnection)  in JNDI
> viewer but JNDI viewer just shows
> hammurapi/RulesAdapter/4.1/rar
>
> Please let me know what am I missing out here.
>
>
>
>
> djencks wrote:
>>
>> You'd need an environment element in the geronimo-ra.xml that has at
>> least a module id for the adapter.
>>
>> After that, you need to list the module id as a dependency of the web
>> app in the geronimo-web.xml or other plan file to get the lookup to
>> work.
>>
>> Other than that, I'd need to see a more detailed description of
>> exactly what you are doing and what errors you get.
>>
>> thanks
>> david jencks
>>
>> On Dec 23, 2009, at 3:49 AM, jam_developer 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 :
>>>
>>> http://geronimo.apache.org/xml/ns/j2ee/
>>> connector-1.2">
>>>  
>>>    
>>>      
>>>
>>> >> interface>biz.hammurapi.rules.ra.ConnectionFactory>> connectionfactory-interface>
>>>        
>>>          RuleConnection
>>>          
>>>            
>>>            
>>>          
>>>        
>>>      
>>>    
>>>  
>>> 
>>>
>>> Following is ra.xml :
>>>
>>> 
>>>
>>> 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">
>>>    Hammurapi Rules Adapter
>>>    Hammurapi Group
>>>    Rules enabled application
>>>    1.0
>>>    
>>>
>>> biz.hammurapi.rules.ra.ResourceAdapterImpl>> resourceadapter-class>
>>>
>>>        
>>>            
>>>
>>> >> class>biz.hammurapi.rules.ra.ManagedConnectionFactoryImpl>> managedconnectionfactory-class>
>>>
>>> >> interface>biz.hammurapi.rules.ra.ConnectionFactory>> connectionfactory-interface>
>>>
>>> >> class>biz.hammurapi.rules.ra.ConnectionFactoryImpl>> connectionfactory-impl-class>
>>>
>>> javax.rules.RuleSession
>>>
>>> biz.hammurapi.rules.ra.RuleSessionImpl>> connection-impl-class>
>>>            
>>>            NoTransaction
>>>            
>>>
>>> BasicPassword>> mechanism-type>
>>>
>>> >> interface>javax.resource.spi.security.PasswordCredential>> interface>
>>>            
>>>            false
>>>        
>>>    
>>> 
>>>
>>> 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.
>>>
>>
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/Resource-Adapter-deployment-problem-tp26899531s134p27011579.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: [ANNOUNCE] Availability of Geronimo 2.2

2010-01-04 Thread Jack Cai
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  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

2010-01-03 Thread Jack Cai
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  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  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 "TNSEn

Re: Welcome "Jack" Jun Jie Cai as a new committer

2009-12-30 Thread Jack Cai
Thanks so much! I appreciate that it's an honor but also a
responsibility. Look forward to working with you all to make a great
Geronimo.next!

-Jack

On Wed, Dec 30, 2009 at 3:55 PM, Shawn Jiang  wrote:
> Congrats !
>
> On Wed, Dec 30, 2009 at 10:10 AM, Ivan  wrote:
>>
>> I would like to welcome Jack aboard, as he recently accepted the Geronimo
>> PMC invitation to become a committer.  His account was just created this
>> morning (caijunj), so you should start seeing some commits from him soon.
>>
>> --
>> Ivan
>
>
>
> --
> Shawn
>


Re: Reply: Cannot using Geronimo to execute bean-managed transaction with oracle transaction more than once, but Glassfish does

2009-12-29 Thread Jack Cai
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  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 

Re: [ANNOUNCE] Availability of Geronimo 2.2

2009-12-29 Thread Jack Cai
Cool! We finally made it before 2010! :-)

-Jack

On Wed, Dec 30, 2009 at 10:23 AM, Bill Stoddard  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: Resource Adapter deployment problem

2009-12-23 Thread Jack Cai
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  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 :
>
> http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>
>  
>
>  
>
>
> biz.hammurapi.rules.ra.ConnectionFactory
>
>  RuleConnection
>  
>
>
>  
>
>  
>
>  
> 
>
> Following is ra.xml :
>
> 
>
> 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">
>Hammurapi Rules Adapter
>Hammurapi Group
>Rules enabled application
>1.0
>
>
>
> biz.hammurapi.rules.ra.ResourceAdapterImpl
>
>
>
>
>
> biz.hammurapi.rules.ra.ManagedConnectionFactoryImpl
>
>
> biz.hammurapi.rules.ra.ConnectionFactory
>
>
> biz.hammurapi.rules.ra.ConnectionFactoryImpl
>
> javax.rules.RuleSession
>
>
> biz.hammurapi.rules.ra.RuleSessionImpl
>
>NoTransaction
>
>
>
> BasicPassword
>
>
> javax.resource.spi.security.PasswordCredential
>
>false
>
>
> 
>
> 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: HTTP Compression?

2009-09-15 Thread Jack Cai
In Geronimo 2.2, you can config the embedded tomcat by modifying its
server.xml (located in var/catalina) directly.

-Jack

On Thu, Sep 10, 2009 at 5:43 AM, RickI  wrote:

>
> Hi,
> Is it possible to set HTTP compression like the one in tomcat?
>
> Thanks,
>
> Rick
> --
> View this message in context:
> http://www.nabble.com/HTTP-Compression--tp25373520s134p25373520.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Message Driven Bean is not receiving messages

2009-08-30 Thread Jack Cai
n for the EJB now looks like:
> >
> > 
> > http://www.openejb.org/xml/ns/openejb-jar-2.2";
> >xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2";
> > xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0";
> >xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.2";
> > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2";>
> >
> >
> >default
> >MessageDrivenBean
> >1.0
> >car
> >
> >
> >
> >console.jms
> >Test
> >1.0
> >rar
> >
> >
> >
> >
> >
> >AdminMDB
> >
> >
>  Test
> >
> >
> >
> >
> >destination
> >
> >
> >TestQueue
> >
>  
> >
> >
> >
> >destinationType
> >
> >
> >javax.jms.Queue
> >
>  
> >
> >
> >
> >
> > 
> >
> > (Sorry for spamming whole XML files here, I'm just not sure what is
> > relevant for the problem and what isn't)
> >
> > The annotations of the MDB has been changed to
> > @MessageDriven(name="AdminMDB", activationConfig = {
> >@ActivationConfigProperty(propertyName="destinationType",
> > propertyValue="javax.jms.Queue"),
> >@ActivationConfigProperty(propertyName="destination",
> > propertyValue="TestQueue")
> >})
> > The rest of the EJB code hasn't been changed by me.
> >
> > Stephan
> >
> > On Wed, Aug 26, 2009 at 09:33, Stephan
> > Mehlhase wrote:
> >> Hi,
> >>
> >> thanks, but unfortunately this leads to the following while deploying:
> >>
> >> Resource Adapter for MDB 'MDB'not found:
> >> ?j2eeType=JCAResourceAdapter,name=administeredObjectGroup#
> >> org.apache.geronimo.common.DeploymentException: Resource Adapter for
> >> MDB 'MDB'not found:
> >> ?j2eeType=JCAResourceAdapter,name=administeredObjectGroup#
> >>at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.setMdbContainerIds(EjbModuleBuilder.java:867)
> >>at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java:818)
> >>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.GeneratedMethodAccessor205.invoke(Unknown Source)
> >>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)
> >> Caused by: org.apache.geronimo.kernel.GBeanNotFoundException: No
> >> matches for referencePatterns:
> >> [?j2eeType=JCAResourceAdapter,name=administeredObjectGroup#]
> >>at
> org.apache.geronimo.kernel.config.Configuration.findGBeanData(Configuration.java:683)
> >>at
> org.apache.geronimo.kernel.config.Configuration.findGBean(Configuration.java:656)
> >>at
> org.apache.geronimo.kernel.config.Configuration.findGBean(Configuration.java:635)
> >>at
> org.apache.geronimo.deployment.DeploymentContext.findGBean(DeploymentContext.java:207)
> >>at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.setMdbContainerIds(EjbModuleBuilder.java:865)
> >>... 14 more
> >>
> >> Stephan
> >>
> >> On Tue, Aug 25, 2009 at 17:05, Jack Cai wrote:
> >>>
> >>>
> >>>default
> >>>TestEJB
> >>>1.0
> >>>car
> >>>
> >>>
> >>>
> >>>org.apache.geronimo.configs
> >>> 
> >>>activemq-broker
> >>> 
> >>>car
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>MDB
> >>>
> >>>
> >>>  administeredObjectGroup
> >>>
> >>>
> >>>
> >>> 
> >>
> >
>


Re: getting the geronimo.home value inside a session bean

2009-08-27 Thread Jack Cai
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  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: JarURLConnection doesn't work "useCaches" property

2009-08-27 Thread Jack Cai
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 wrote:

> 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: Accessing a server-wide JDBC data source through JNDI from a web module

2009-08-26 Thread Jack Cai
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 wrote:

> 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: Geronimo Service

2009-08-25 Thread Jack Cai
As an alternative, you can also use Apache Commons Daemon to run Geronimo as
a service. See [1].

[1]
http://cwiki.apache.org/GMOxDOC22/running-geronimo-as-a-windows-service.html

-Jack

On Sat, Aug 22, 2009 at 4:25 AM, Jarek Gawor  wrote:

> If the debug output is correct, I think JSW is trying to execute
> "C:\Java\jrrt-1.6.0\bin" which of course won't work. This probably
> should be "C:\Java\jrrt-1.6.0\bin\java". I think your configuration
> might be slightly wrong.
>
> Jarek
>
> On Fri, Aug 21, 2009 at 12:25 PM, Russell
> Collins wrote:
> > I am trying to install the Geronimo Server on windows vista.  I have
> gotten
> > the service to properly install on Windows XP and Windows 2003 server
> > machines so I do know the procedures.  I am getting a permissions denied
> > message when trying to start the service.  Here is an excerpt from the
> log.
> >
> >
> >
> > DEBUG  | wrapper  | 2009/08/21 11:10:36 | Allocating a console for the
> > service.
> >
> > DEBUG  | wrapper  | 2009/08/21 11:10:36 | Found console window.
> >
> > STATUS | wrapper  | 2009/08/21 11:10:36 | --> Wrapper Started as Service
> >
> > STATUS | wrapper  | 2009/08/21 11:10:36 | Java Service Wrapper Community
> > Edition 32-bit 3.3.5
> >
> > STATUS | wrapper  | 2009/08/21 11:10:36 |   Copyright (C) 1999-2009
> Tanuki
> > Software, Ltd.  All Rights Reserved.
> >
> > STATUS | wrapper  | 2009/08/21 11:10:36 |
> > http://wrapper.tanukisoftware.org
> >
> > STATUS | wrapper  | 2009/08/21 11:10:36 |
> >
> > DEBUG  | wrapper  | 2009/08/21 11:10:36 | Using tick timer.
> >
> > DEBUG  | wrapperp | 2009/08/21 11:10:36 | server listening on port 32000.
> >
> > DEBUG  | wrapper  | 2009/08/21 11:10:36 | Classpath element,
> > wrapper.java.classpath.4, does not exist:
> > ../lib/geronimo-cli-2.0-SNAPSHOT.jar
> >
> > DEBUG  | wrapper  | 2009/08/21 11:10:36 | Classpath element,
> > wrapper.java.classpath.5, does not exist:
> > ../lib/geronimo-kernel-2.0-SNAPSHOT.jar
> >
> > DEBUG  | wrapper  | 2009/08/21 11:10:36 | Classpath element,
> > wrapper.java.classpath.6, does not exist:
> > ../lib/geronimo-transformer-2.0-SNAPSHOT.jar
> >
> > DEBUG  | wrapper  | 2009/08/21 11:10:36 | Classpath element,
> > wrapper.java.classpath.11, does not exist: ../lib/xpp3-1.1.3.3.jar
> >
> > DEBUG  | wrapper  | 2009/08/21 11:10:36 | Classpath element,
> > wrapper.java.classpath.12, does not exist: ../lib/xstream-1.1.3.jar
> >
> > DEBUG  | wrapper  | 2009/08/21 11:10:36 | Ping settings:
> > wrapper.ping.interval=5, wrapper.ping.interval.logged=1,
> > wrapper.ping.timeout=30
> >
> > STATUS | wrapper  | 2009/08/21 11:10:36 | Launching a JVM...
> >
> > DEBUG  | wrapper  | 2009/08/21 11:10:36 | command:
> "C:\Java\jrrt-1.6.0\bin"
> > -javaagent:"C:/geronimo2.1.4/bin/jpa.jar"
> > -Djava.ext.dirs="C:/geronimo2.1.4/lib/ext;C:/Java/jrrt-1.6.0/jre/lib/ext"
> >
> -Djava.endorsed.dirs="C:/geronimo2.1.4/lib/endorsed;C:/Java/jrrt-1.6.0/jre/lib/endorsed"
> > -Dorg.apache.geronimo.base.dir="C:/geronimo2.1.4"
> > -Djava.io.tmpdir="C:/geronimo2.1.4/var/temp" -Djava.library.path="../lib"
> > -classpath
> >
> "../lib/wrapper.jar;../bin/server.jar;../bin/shutdown.jar;../lib/geronimo-cli-2.0-SNAPSHOT.jar;../lib/geronimo-kernel-2.0-SNAPSHOT.jar;../lib/geronimo-transformer-2.0-SNAPSHOT.jar;../lib/commons-cli-1.0.jar;../lib/commons-logging-1.0.4.jar;../lib/cglib-nodep-2.1_3.jar;../lib/log4j-1.2.14.jar;../lib/xpp3-1.1.3.3.jar;../lib/xstream-1.1.3.jar"
> > -Dwrapper.key="NZM-Ctvm4QOW4W43" -Dwrapper.port=32000
> > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999
> > -Dwrapper.debug="TRUE" -Dwrapper.pid=5792 -Dwrapper.version="3.3.5"
> > -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE"
> > -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1
> > org.tanukisoftware.wrapper.WrapperSimpleApp
> > org.apache.geronimo.cli.daemon.DaemonCLI
> >
> > FATAL  | wrapper  | 2009/08/21 11:10:36 | Unable to execute Java command.
> > Access is denied. (0x5)
> >
> > FATAL  | wrapper  | 2009/08/21 11:10:36 | "C:\Java\jrrt-1.6.0\bin"
> > -javaagent:"C:/geronimo2.1.4/bin/jpa.jar"
> > -Djava.ext.dirs="C:/geronimo2.1.4/lib/ext;C:/Java/jrrt-1.6.0/jre/lib/ext"
> >
> -Djava.endorsed.dirs="C:/geronimo2.1.4/lib/endorsed;C:/Java/jrrt-1.6.0/jre/lib/endorsed"
> > -Dorg.apache.geronimo.base.dir="C:/geronimo2.1.4"
> > -Djava.io.tmpdir="C:/geronimo2.1.4/var/temp" -Djava.library.path="../lib"
> > -classpath
> >
> "../lib/wrapper.jar;../bin/server.jar;../bin/shutdown.jar;../lib/geronimo-cli-2.0-SNAPSHOT.jar;../lib/geronimo-kernel-2.0-SNAPSHOT.jar;../lib/geronimo-transformer-2.0-SNAPSHOT.jar;../lib/commons-cli-1.0.jar;../lib/commons-logging-1.0.4.jar;../lib/cglib-nodep-2.1_3.jar;../lib/log4j-1.2.14.jar;../lib/xpp3-1.1.3.3.jar;../lib/xstream-1.1.3.jar"
> > -Dwrapper.key="NZM-Ctvm4QOW4W43" -Dwrapper.port=32000
> > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999
> > -Dwrapper.debug="TRUE" -Dwrapper.pid=5792 -Dwrapper.version="3.3.5"
> > -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE"
> > -Dwrapper.cpu.time

Re: Message Driven Bean is not receiving messages

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


   
   
   default
   TestEJB
   1.0
   car
   
   
   
   Slide 47
org.apache.geronimo.configs 
   activemq-broker
   car
   
   
   
   
   
   MDB
   

 administeredObjectGroup
   
   
   


-Jack


On Mon, Aug 24, 2009 at 9:23 PM, Stephan Mehlhase  wrote:

> Hi everyone,
>
> My setup is the following: I'm using Geronimo 2.1.4 on linux under
> Java 1.6 developing with Eclipse 3.5 EE (I'm using the nightly built
> 2.1.5 GEP plugin)
>
> I'm trying to set up a small message driven bean which receives
> messages that I've send from a JAX-WS Webservice. So I went into the
> adminstration console and created a JMS resource with one connection
> factory and one destination (called Test, TestFactory and TestQueue
> respectively). After doing so I wrote the webservice and it looks like
> this:
>
> @WebService
> public class TestServer {
>private static final Logger log =
> Logger.getLogger(TestServer.class);
>@Resource(name = "TestFactory")
>private ConnectionFactory factory;
>@Resource(name = "TestQueue")
>private Destination destination;
>
>@WebMethod
>public void test() {
>try {
>Connection con = factory.createConnection();
>Session s = con.createSession(false,
> Session.AUTO_ACKNOWLEDGE);
>MessageProducer p = s.createProducer(destination);
>con.start();
>p.send(s.createTextMessage("Test"));
>con.close();
>log.info("Sent message");
>} catch (JMSException e) {
>log.warn("Exception", e);
>}
>}
> }
> (I'm not sure whether the connection.start() call is necessary but I
> added it "just in case" - it does not work without neither)
> Than I created the EJB like this:
>
> @MessageDriven(activationConfig = {
>@ActivationConfigProperty(propertyName = "destinationType",
> propertyValue = "javax.jms.Queue"),
>@ActivationConfigProperty(propertyName = "destination",
> propertyValue = "TestQueue") }, mappedName = "TestQueue")
> public class MDB implements MessageListener {
>private static Logger log = Logger.getLogger(MDB.class);
>
>public void onMessage(Message message) {
>log.info("WE GOT A MESSAGE!");
>}
> }
>
> (I've played around with the items of @MessageDriven annotation
> (removing activation config, removing the mapped name) - nothing did
> change anything).
> The openejb-jar.xml is:
>
>  [...]
> >
>
>
>default
>TestEJB
>1.0
>car
>
>
>
>console.jms
>Test
>1.0
>rar
>
>
>
>
>
>MDB
>
>Test
>
>
>
> 
>
> (I left out some namespace declarations)
>
>
> If I invoke the webservice I see the "Sent message" log entry but the
> EJB seems not to receive it (in fact it even does not get
> instantiated).
> So I checked the logs and have not found any error message and
> therefore enabled the logs for ActiveMQ to see whether the message is
> actually received. I found the following:
>
> Upon deployment:
> 2009-08-24 14:49:35,174 INFO  [startup] Jndi(name=TestEJB/MDB) -->
> Ejb(deployment-id=TestEJB/MDB)
> 2009-08-24 14:49:35,208 DEBUG [ActiveMQEndpointWorker] Starting
> 2009-08-24 14:49:35,219 DEBUG [ActiveMQEndpointWorker] Started
> 2009-08-24 14:49:35,219 INFO  [startup] Created
> Ejb(deployment-id=TestEJB/MDB, ejb-name=MDB,
> container=console.jms/Test/1.0/rar.Test-javax.jms.MessageListener)
> 2009-08-24 14:49:35,219 INFO  [startup] Deployed
>
> Application(path=/tmp/geronimo-deployer282244042823023765.tmpdir/TestEJB.zip)
> [...]
> 2009-08-24 14:49:35,328 DEBUG [AbstractRegion] Adding destination:
> queue://TestEJB/MDB
> 2009-08-24 14:49:35,356 DEBUG [JournalPersistenceAdapter] Waking for
> checkpoint to complete.
> 2009-08-24 14:49:35,387 DEBUG [JournalPersistenceAdapter] Checkpoint
> started.
> 2009-08-24 14:49:35,390 DEBUG [JournalPersistenceAdapter] Checkpoint done.
> 2009-08-24 14:49:35,414 DEBUG [AbstractRegion] Adding destination:
> topic://ActiveMQ.Advisory.Queue
> 2009-08-24 14

Re: How to stop logging of webservice authentication failure

2009-08-25 Thread Jack Cai
I guess there is nothing you can do here. The exception is never routed to
your code. It looks like a small defect in Jetty's code. You might want to
raise a defect against Jetty.

-Jack

On Sun, Aug 23, 2009 at 8:43 PM, yosemite  wrote:

>
> Hello all,
>
> I have a @Stateless acting as @WebService configured in openejb-jar.xml
> like
>
>
>
>TimeBean
>
>
>  MyRealm
>
>  NONE
>BASIC
>POST
>PUT
>
>
>
>
> Which works perfect if user credentials passed to webservice are right. But
> if the credentials are wrong (wrong password), it tells the client "The
> server sent HTTP status code 401: Unauthorized" but also logs in
> geronimo.log:
>
> 2009-08-23 14:16:03,531 WARN  [log] AUTH FAILURE: user tester1
> 2009-08-23 14:16:03,531 WARN  [log] Committed before 403 null
> 2009-08-23 14:16:03,531 ERROR [log] handle failed
> java.lang.IllegalStateException: Committed
>at org.mortbay.jetty.Response.resetBuffer(Response.java:995)
>at org.mortbay.jetty.Response.sendError(Response.java:240)
>at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:521)
>at
>
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
>at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
>at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>at
>
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
>at
>
> org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
>at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>at java.lang.Thread.run(Thread.java:619)
>
> How to avoid this log, how to handle to IllegalStateException and where,
> please?
>
> If I use the same realm in the web app, this section in web.xml
>
>MyRealm
>
>  /login.jsp
>  /loginError.jsp
>
>  
>
> bumps to loginError if password is wrong, and then the log entry is just
>
> WARN  [log] AUTH FAILURE: user tester1
>
> (i.e.no IllegalStateException)
>
> Any help appreciated.
> Karel
>
>
> --
> View this message in context:
> http://www.nabble.com/How-to-stop-logging-of-webservice-authentication-failure-tp25102983s134p25102983.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: --local-copy=true

2009-08-25 Thread Jack Cai
The default is "true". If you want to change it, try to set the
GERONIMO_OPTS environment variable as below before starting Geronimo.

 * In Windows: set GERONIMO_OPTS=-Dopenejb.localcopy=false
 * In Linux: export GERONIMO_OPTS=-Dopenejb.localcopy=false

-Jack

On Tue, Aug 25, 2009 at 7:45 AM, Rodney B. Cabahug  wrote:

> Hello,
> How can I specify --local-copy=true startup argument to the openejb server
> in geronimo?
> Thanks
>
> Regards,
> Rodney Cabahug
>


Re: JarURLConnection doesn't work "useCaches" property

2009-08-03 Thread Jack Cai
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 wrote:

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

2009-06-22 Thread Jack Cai
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 wrote:

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

2009-06-18 Thread Jack Cai
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 

>
> 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: Eclipse Plugin and Eclipse 3.5RC1

2009-05-20 Thread Jack Cai
Yes we will be looking at this.

-Jack

2009/5/19 Johannes Weberhofer, Weberhofer GmbH 

> The first release candidate of Eclipse 3.5 has been released. Are there any
> plans to support this version with the Plugin in the near future?
>
> Best regards,
> Johannes Weberhofer
>


Re: Enabling Session Affinity in G2.1.4 (using Tomcat w/ WADI)

2009-05-14 Thread Jack Cai
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 

> 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 
>>
>>
>> On Wed, May 13, 2009 at 10:36 AM, Jack Cai  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 
>>
>>
>>
>> On Tue, May 12, 2009 at 10:19 PM, viola lu  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 
>> 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
>> (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
>>  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)

2009-05-13 Thread Jack Cai
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 

>
>
> On Wed, May 13, 2009 at 10:36 AM, Jack Cai  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 
>>
>>
>>>
>>> On Tue, May 12, 2009 at 10:19 PM, viola lu  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
>>> (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
>>>  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)

2009-05-13 Thread Jack Cai
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 

>
>
> On Tue, May 12, 2009 at 10:19 PM, viola lu  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 > > 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
> (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
>  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: Geronimo2.1.0 build failure with Java5 (method getContentType() not found)

2009-05-12 Thread Jack Cai
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 

>
> 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: Deployment takes forever with many files

2009-05-05 Thread Jack Cai
Are the data all static contents such as images, videos etc.? Is there a
deep directory structure?

-Jack

2009/5/4 Patrick Kranz 

> 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>>
>>
>>
>>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: Saving login and password info in 2.1.3

2009-05-04 Thread Jack Cai
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 

>
> 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: Check server state?

2009-05-04 Thread Jack Cai
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 

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

2009-05-03 Thread Jack Cai
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. 

> 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. 
>
>


Re: is there any way to auto recover the wasce server?

2009-04-10 Thread Jack Cai
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 

> 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

2009-03-31 Thread Jack Cai
Great! Congratulations everyone!

-Jack

2009/4/1 Bill Stoddard 

> 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

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

>
> 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=71&uid=swg21363866
> 1.2 Configure IDS instance to use "drsoctcp" protocol, restart it
> 1.3 Prepare a datasource deployment plan like this:
>   
> 
>  
>
>
>com.ibm.db2
>
>db2jcc
>
>9.5
>
>jar
>
>
>
>
>
>com.ibm.db2
>
>db2jcc_license_cu
>
>9.5
>
>jar
>
>
>
>
> 
>
>
>...
>
>
>TradeDataSource
>
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2";>
>
>org.tranql
>
>tranql-connector-ra
>
>rar
>
>
>
> xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>
>
>
>
>
>
>
>
>
>
>
> javax.sql.DataSource
>
>
>
>jdbc/TradeDataSource
>
> name="UserName">informix
> name="Password">passw0rd
> name="Driver">com.ibm.db2.jcc.DB2Driver
>
> name="ConnectionURL">jdbc:db2://idsserverhostnameorip:port/tradedb
>
>
>
>5
>0
>
> 5000
>
> 15
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 1.4 Deploy it with the application
>
> 2. if using XA transaction, use tranql-connector-db2-xa to deploy
> datasource, the plan like this:
> 
>
>TradeDataSource
>
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2";>
>
>org.tranql
>
>tranql-connector-db2-xa
>
>rar
>
>
>
> xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>
>
>
>
>
>
>
>
>
>
>
> javax.sql.DataSource
>
>
>
>jdbc/TradeDataSource
>
> name="UserName">informix
>
> name="Password">password
>
> name="PortNumber">yourIDSinstancelistenport
>
>
> name="ServerName">yourIDSinstanceserverhostnameorip
>
> name="DatabaseName">tradedb
>
> name="DriverType">4
>
>
>
>
>
>
>
>
>
>
>
>100
>
>0
>
>
> 5000
>
>
> 30
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/One-tip-about-using-tranql-to-connect-to-Informix-database-tp22696617s134p22696617.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Geronom 2.1.4, Thread Pools are reporting zero usage

2009-03-25 Thread Jack Cai
Do you mean to monitor the total number of threads that Geronimo is using
(the whole JVM)? There's no such function in the admin console today. But it
can be easily implemented by retrieving thread stat from the standard
ThreadMXBean and adding it to the JVM stat. You might want to open a JIRA if
you really want this, and I might be able to help out.

-Jack

2009/3/24 jklcom99 

>
> Thanks Jack,
>
> Is there a way that we can check for thread usage in the console?
>
>
> Jack Cai wrote:
> >
> > 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 
> >
> >>
> >> 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.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Geronom-2.1.4%2C-Thread-Pools-are-reporting-zero-usage-tp22461310s134p22681515.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Geronom 2.1.4, Thread Pools are reporting zero usage

2009-03-23 Thread Jack Cai
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 

>
> 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: List of GERONIMO_OPTS?

2009-03-08 Thread Jack Cai
I believe it will be a good doc for our users.

I used to a brute force approach which is to search all Geronimo source
files for the string "System.getPro", and identified an initial list of
available options. I've consolidate the list here [1]. Each option is
documented with my best guess in the below format -

* Name
* Applied commands
* Options
* Default value
* Explanation

There are still a lot of "TODO" in the page, and some options might be
missing from the list. Hopefully others can help to refine it. Below is the
highlight.

Xorg.apache.geronimo.deployment.LenientMFCP
org.apache.geronimo.deployment.util.DeploymentUtil.jarUrlRewrite
Xorg.apache.geronimo.gbean.NoProxy
Xorg.apache.geronimo.kernel.config.Marshaler
Xorg.apache.geronimo.kernel.config.MPCLSearchOption
geronimo.bootstrap.logging.enabled
org.apache.geronimo.jacc.policy.provider
org.apache.geronimo.config.file
org.apache.geronimo.config.substitutions.file
org.apache.geronimo.config.substitution.prefix
org.apache.geronimo.home.dir
org.apache.geronimo.server.dir
org.apache.geronimo.server.name
Xorg.apache.geronimo.repository.boot.path
org.apache.geronimo.jaxws.wsgen.addToClassPath
org.apache.geronimo.jaxws.wsgen.fork
org.apache.geronimo.jaxws.wsgen.fork.timeout
org.apache.geronimo.tomcat.GeronimoStandardContext.allowLinking
org.apache.geronimo.saaj.provider

- Jack

[1]
http://cwiki.apache.org/confluence/display/GMOxDOC22/Command+Geronimo+Options

2009/3/8 chi runhua 

> Hi, I just read through the scripts in /bin and noticed that
> GERONIMO_OPTS is marked as an optional argurments. While in the topic
> "Running multiple Geronimo instances", we learned that
> org.apache.geronimo.server.name should be exported to GERONIMO_OPTS in
> order to set up another Geronimo instance.
>
> So here comes my question: "Is there any list of GERONIMO_OPTS for user to
> use and what they can do?"
>
> Thanks in advance.
>
> Jeff Chi
>


Re: jndi datasource access problem

2009-03-03 Thread Jack Cai
2009/3/3 Kaupo 

>
>
> 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: jndi datasource access problem

2009-03-02 Thread Jack Cai
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 

>
> 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: Geronimo can't load Module 32/68 org.apache.geronimo.configs/activemq-ra/2.1.2/car

2009-03-02 Thread Jack Cai
Is there some more information in the log? (var/server.log) Have you changed
any configurations?

2009/3/2 HuMark 

>
> 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: JAVA PHP Bridge

2009-03-02 Thread Jack Cai
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 

> 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: Get "The page cannot be displayed" Error when try to access database pool edit page

2009-02-16 Thread Jack Cai
So use FireFox instead. :-)

-Jack

2009/2/16 Ying Tang 

> Hi,
>
>  This is perhaps caused by a maximum URL length limitation (2,083
> characters) of IE.
>
>
>
> 2009/2/13 Michael2 
>
>
>> 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

2009-01-15 Thread Jack Cai
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 

> 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 
>
>> 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 
>>
>> Try deploy --inPlace ,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  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

2009-01-15 Thread Jack Cai
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 

> 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 
>
> Try deploy --inPlace ,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  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

2009-01-13 Thread Jack Cai
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 

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

2009-01-12 Thread Jack Cai
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: Geronimo Console

2009-01-11 Thread Jack Cai
Yes the admin console should honor the priority of user agent's language
setting. I've created a JIRA to track this:
https://issues.apache.org/jira/browse/GERONIMO-4507

Thanks for reporting this!

-Jack

2009/1/10 cbkihong 

>
>
>
> Donald Woods-2 wrote:
> >
> > What level of Geronimo are you using - 2.1.3, 2.1.4-SNAPSHOT or
> > 2.2-SNAPSHOT?
> >
> > Also, what OS locale are you trying to use for your server and console?
> >
> > I'm running the server and console on a English MacOSX and WinXP without
> > problems
> >
>
> Thanks for all your replies.
>
> Latest release, presumably 2.1.3, if this matters. I started with the
> locale
> to "C" in Linux, which should be English.
>
> As for the other reply, I don't have zh_CN in the list but I do have zh_HK
> (after en_US). Even though I haven't tried it yet, I think removing zh_HK
> from the list altogether will do the trick. I just found it strange with
> the
> implementation that it does not seem to honour the priority given nor does
> it have any easy way to switch the UI language. Because fiddling with the
> browser language list is tedious and would alter browsing habit for other
> sites, I was just asking if some easier and less global means is possible;
> otherwise I'll just leave it as it is and avoid changing the browser
> language priorities altogether.
> --
> View this message in context:
> http://www.nabble.com/Geronimo-Console-tp21369352s134p21383628.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Out of memory errors

2009-01-04 Thread Jack Cai
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. 

> 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. 
>
>


Re: Custom Server Config - errors

2008-12-18 Thread Jack Cai
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 

> 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.doF

Re: Custom Server Config - errors

2008-12-17 Thread Jack Cai
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 

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

2008-12-14 Thread Jack Cai
Don't quite understand what you really want to ask. Can you elaborate your
question?

-Jack

2008/12/15 jyabc 

>
> 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: Geronimo class loading model?

2008-12-02 Thread Jack Cai
Thanks so much David! A small question about the last "import all" part -
will the classes in Plugin A be available to B in this case?

-Jack

2008/12/3 David Jencks <[EMAIL PROTECTED]>

> I couldn't find any documentation either so I started writing some:
>
> http://cwiki.apache.org/confluence/display/GMOxDOC22/Classloading
>
> This is just a first draft and comments would be extremely welcome.
>
> many thanks
> david jencks
>
>
> On Nov 28, 2008, at 10:04 AM, Ceki Gulcu wrote:
>
>
>> Hello,
>>
>> I have not been successful in finding documentation on Geronimo's class
>> loading model. Could a kind soul please point me to such documentation?
>>
>> TIA,
>>
>> --
>> Ceki Gülcü
>> Logback: The reliable, generic, fast and flexible logging framework for
>> Java.
>> http://logback.qos.ch
>>
>
>


Re: status from shell script (System V starup)

2008-11-19 Thread Jack Cai
Doug, good job! I agree with Donald that we shall be thinking of reusing
this script. I'm currently working on turning Geronimo into a Windows
service. I think your script can be used to turn Geronimo into a service in
Unix-like systems.

- Jack

2008/11/20 Doug Reeder <[EMAIL PROTECTED]>

> One certainly could write the script to return extensive status info, and
> the status command is not even required, but most System V init scripts
> return something like this for status:sshd (pid 8204 2405) is running...
> The scripts are mainly for starting and stopping daemons, and the status
> command appears to exist to let you know if you should run start or stop.
> Perhaps I should keep the list-modules code for an "info" command.
>
>
> On Wed, Nov 19, 2008 at 9:00 AM, Ted Kirby <[EMAIL PROTECTED]> wrote:
>
>> I like the deploy.sh approach.  If you get a proper response, you have
>> more confidence the server is running well.  With the other approach,
>> the server process could be hung.  It is quick, tho.  If the deploy.sh
>> hangs, you'd have to account for that.
>>
>> On Wed, Nov 12, 2008 at 6:57 PM, Doug Reeder <[EMAIL PROTECTED]> wrote:
>> > I've written a bash shell script to start and stop geronimo, for use
>> with
>> > System V startup (scripts in /etc/rc.d/init.d/).
>> >
>> > Start and stop are straightforward, as the scripts in
>> $GERONIMO_HOME/bin/
>> > just need to be called, but status is less obvious.  The best I've come
>> up
>> > with so far is
>> >
>> > su -l -c "$GERONIMO_HOME/bin/deploy.sh -u $GERONIMO_ADMIN -p
>> > $GERONIMO_PASSWORD list-modules" $USER
>> >
>> > but it's not satisfactory:
>> > 1) if geronimo is not running, it produces a stack dump, when all I want
>> is
>> > a simple message indicating geronimo is not running
>>
>> Wouldn't > /dev/null and/or 2>/dev/null handle that?
>>
>> > 2) I have to include the geronimo administrator password in the script
>>  (of
>> > course, it also needs to be in the script so geronimo can be shut down).
>>
>> You could use deploy --login:
>>
>> http://cwiki.apache.org/GMOxDOC22/tools-and-commands.html#Toolsandcommands-Login
>>
>> > Can anyone suggest something better?   If geronimo is running, what
>> would be
>> > best is a short list of all the ports it's listening on.  (Then one
>> could
>> > use netstat or whatever to see if one can actually access them).
>>
>> Ted Kirby
>>
>
>


Re: Manually undeploy application without Geronimo running

2008-11-02 Thread Jack Cai
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
>>
>> 
>>
>> D:\java\geronimo-jetty6-javaee5-2.1.3\bin>geronimo 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.
>>
>>
>