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

Re: ActiveMQ configuration for Geronimo 3.0.1

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

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-

Re: classloading problem for WARs in an EAR file share classpath

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

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

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

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_an

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(

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 fo

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

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

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 u

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

2010-01-10 Thread Jack Cai
es of operations are allowed by >> oracle and which are not. >> >> if you call setAutocommit on a connection, either true or false, does >> that prevent the associated managed connection from ever being >> enlisted in an XA transaction? >> >> or, does the connection

Re: Resource Adapter deployment problem

2010-01-05 Thread Jack Cai
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.plug

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)

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

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

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 J

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

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.

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

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 conte

Re: Message Driven Bean is not receiving messages

2009-08-30 Thread Jack Cai
t;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(ReflectionMethodInvok

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

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 Jar

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

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

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

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

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

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 wro

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

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

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

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

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

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

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 applicat

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 f

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

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 Ger

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 th

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 se

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 l

Re: Geronom 2.1.4, Thread Pools are reporting zero usage

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

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 misleadin

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

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 s

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

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

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

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 suc

Re: Geronimo Cannot Auto-reload class File

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

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

Re: Add tomcat-specific configuration

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

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 usin

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 ex

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 jsr

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

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 y

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

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 ce

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