Re: MDB trouble with references

2007-06-13 Thread Viet Nguyen
message-destination-usageProduces/message-destination-usage message-destination-linkOrderQueue/message-destination-link /message-destination-ref Am I missing something? I would appreciate any type of feedback. Thanks, Viet Nguyen Thanks for helping David. Everything worked

problem creating DB on the fly

2007-07-24 Thread Viet Nguyen
seen them mentioned in multiple posts. I would appreciate any help. Thanks, Viet Nguyen

Re: problem creating DB on the fly

2007-07-24 Thread Viet Nguyen
are derby specific so you need to use one of the tranql derby rars, not the generic one. thanks david jencks On Jul 24, 2007, at 9:11 AM, Viet Nguyen wrote: Hi Guys, I am trying to create a DB when I deploy a web application. I have the following db pool xml: ?xml version=1.0 encoding=UTF-8

Re: Deploy with datasource Error

2007-08-16 Thread Viet Nguyen
Where are you putting your tranql-connector-ra-1.3.rar in the EAR? I think it should be on the top most level of the archive. For an example, go here http://cwiki.apache.org/GMOxDOC20/ejb-sample-application.html Hope this will help, Viet Nguyen On 8/16/07, bgbraga [EMAIL PROTECTED] wrote

Re: Bea Ear file will not deploy in Geronimo2 after migration

2007-08-17 Thread Viet Nguyen
You should have your context-root in your geronimo-web.xml. If you want your url to be http://localhost:8080/myapp you should have context-root/myapp/context-root in geronimo-web.xml somewhere. Also, are you using ejb 2.1 or 3.0? Hope this will help, Viet Nguyen On 8/17/07, tobstar [EMAIL

Re: Bea Ear file will not deploy in Geronimo2 after migration

2007-08-17 Thread Viet Nguyen
it is an EJB 3.0 thing. It allows you to make a reference to a datasource on the app server in your code. Hope this example will make your migration journey easier, Viet Nguyen On 8/17/07, tobstar [EMAIL PROTECTED] wrote: Hi Viet, I will try the context-root in the geronimo-web.xml, but what

how to get jsr77 stats

2007-08-27 Thread Viet Nguyen
this classcastexception problem. If anyone can give me any insight, I will appreciate it. Thanks, Viet Nguyen

how to get jsr77 stats

2007-08-27 Thread Viet Nguyen
this classcastexception problem. If anyone can give me any insight, I will appreciate it. Thanks, Viet Nguyen

Re: how to get jsr77 stats

2007-08-27 Thread Viet Nguyen
On 8/27/07, Paul McMahan [EMAIL PROTECTED] wrote: On Aug 27, 2007, at 4:36 PM, Viet Nguyen wrote: The weird thing about it is that when I executed System.out.println (o.getClass().toString()); it tells me that the class is WebModuleStatsImpl. Do you have a copy of the geronimo

Re: Problem at geronimo boot

2007-08-28 Thread Viet Nguyen
On 8/28/07, Paolo Denti [EMAIL PROTECTED] wrote: thanks kevan, (about jpa ... too late, and too lazy, me, not hibernate :-) yes, i of course i modified the hibernate.transaction.manager_lookup_class, pointing to the class found on the wiki (which is not really perfect in the getMethod calls

Re: Problem at geronimo boot

2007-08-29 Thread Viet Nguyen
On 8/29/07, Paolo Denti [EMAIL PROTECTED] wrote: Kevan, i tried and following the execution, the problem is in the proxyManagerClass.getMethod(createProxy, clzArray); the getMethod call fails. But looking at the javadoc i see that the signature of the ProxyManager createProxy method is

Re: Problem at geronimo boot

2007-08-29 Thread Viet Nguyen
. Hope this works, Viet Nguyen

Re: Problem at geronimo boot

2007-08-31 Thread Viet Nguyen
Paolo, I found these two related jiras that I hope will fix your problem: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2281 http://opensource.atlassian.com/projects/spring/browse/SPR-3571 People have suggested two solutions: 1. switch to using Hibernate 3.2.0 (hibernate

Re: Geronimo 2.0.1 and entity bean problem

2007-09-04 Thread Viet Nguyen
On 9/4/07, Xh [EMAIL PROTECTED] wrote: Hi All! I'm trying to create my first ejb3 entity bean in Geronimo 2.0.1. I base on this wiki: http://cwiki.apache.org/GMOxDOC20/very-simple-entity-ejb-example.html I've created simple WebModule and annoted it, just like this: @Entity

Re: Problem at geronimo boot

2007-09-05 Thread Viet Nguyen
I said, if you stop the server, there will be a FileNotFoundException. On 9/5/07, Viet Nguyen [EMAIL PROTECTED] wrote: Hi Paolo, Which DB are you using? I could not get this to work on the derby db that comes with Geronimo because it doesn't support some keywords (e.g. AUTO_INCREMENT

Re: deploying minimal gbean jar file

2007-09-10 Thread Viet Nguyen
You are right, the wiki is out of date. Try this: ?xml version=1.0 encoding=UTF-8? module xmlns=http://geronimo.apache.org/xml/ns/deployment; environment moduleId groupIdexample1/groupId artifactIdMyGBean/artifactId version1.0/version

Re: deploying minimal gbean jar file

2007-09-10 Thread Viet Nguyen
Try this: NOTE: this file is in the folder labeled example1 example1/MyGBean.java 1 package example1; 2 3 import org.apache.geronimo.gbean.GBeanInfo; 4 import org.apache.geronimo.gbean.GBeanInfoBuilder; 5 6 public class MyGBean { 7 8 public static final GBeanInfo

Re: Suspicion of mistake in documentation for Geronimo 2.0

2007-09-11 Thread Viet Nguyen
On 9/11/07, Marcin Waldowski [EMAIL PROTECTED] wrote: Hello. I created jee aplication follow http://cwiki.apache.org/GMOxDOC20/jms-and-mdb-sample-application.htmlexample. In this exemple we can see following lines in geronimo-web.xml: dep:dependency

Re: Suspicion of mistake in documentation for Geronimo 2.0

2007-09-11 Thread Viet Nguyen
You are right. I saw a weird missing dependency and jumped to a conclusion too quickly. I will update the wiki to reflect the working source code. Thanks for pointing it out. -Viet On 9/11/07, Marcin Waldowski [EMAIL PROTECTED] wrote: Viet Nguyen wrote: Caused

Re: Calculator sample 'problem deploying war'

2007-09-28 Thread Viet Nguyen
On 9/28/07, PeterAU2 [EMAIL PROTECTED] wrote: I'm trying to deploy the ear file from the calculator example from http://cwiki.apache.org/GMOxDOC20/using-some-of-ejb-30-functionalities.html I've downloaded the calculator-stateless-pojo.zip and unpacked it. I go to the Geronimo 2.0.1

Re: java:comp JNDI lookup seems to fail after server restart

2007-10-08 Thread Viet Nguyen
Hi Jon, You are right, this is a known bug. It's located at https://issues.apache.org/jira/browse/GERONIMO-3460. Thanks, Viet On 10/8/07, Jonathan Gallimore [EMAIL PROTECTED] wrote: I managed to make some progress with this - basically it only happens if my application's web modules context

Deploying GBeans via EARs

2007-10-11 Thread Viet Nguyen
Hey All, Just wondering if it is possible to deploy a GBean in the form of an EAR. Right now I have an EAR that looks like the following: EAR |-META-INF |-application.xml |-geronimo-application.xml |-tranql-connector-ra-1.3.rar |-MonitorDBPool.xml |-MRC.xml

how to look up MEJB

2007-10-12 Thread Viet Nguyen
Hi All, I am trying to access the new MEJB from a gbean. I am using the following Context ic = new InitialContext(); Object mejbObj = (Object)ic.lookup(java:comp/env/ejb/mgmt/MEJB);// I get a NotContextException here I have tried to pass a Properties object (with the

Re: how to look up MEJB

2007-10-12 Thread Viet Nguyen
is deployed and then figure out what to call to get the MEJB itself. Or, if this gbean is called from javaee components you could look up the MEJB during such a call, and make sure you have an ejb-ref to it in the javaee component. thanks david jencks On Oct 12, 2007, at 10:10 AM, Viet

Re: how to look up MEJB

2007-10-15 Thread Viet Nguyen
== I've tried deploying the app, with and without the security realm defined, but I get the same stack trace. Does anybody knows what's going on? Thanks Viet On 10/12/07, Viet Nguyen [EMAIL PROTECTED] wrote: Thanks

Re: EJB CMP + Database Pools config

2007-10-24 Thread Viet Nguyen
On 10/24/07, ivanrc [EMAIL PROTECTED] wrote: Hi, I want to deploy EJB CMP. The EJB is deployed well, but I obtain by logs this lines about dababase pool that I want to use: 10:06:58,154 WARN [ResourceRefBuilder] Failed to build reference to resource reference [jdbc/gsePool] defined in

Re: EJB CMP + Database Pools config

2007-10-24 Thread Viet Nguyen
You might want to try res-ref-namejdbc/gsePool/res-ref-name also. I am not sure what you named it. Can you post your database pool plan here too? Thanks, Viet On 10/24/07, ivanrc [EMAIL PROTECTED] wrote: I´ve added this lines and now I obtain this exception. I use

Re: Geronimo 2.0.2 install problem

2007-10-29 Thread Viet Nguyen
The first thing I notice is that you're running minimal. By default, the minimal assembly does not come with a web interface. So it looks like the server has started just fine. If you want the welcome page or, in general, an administration console, you can download the geronimo-jetty6-javaee5

Re: Newbee -- unable to build the sample application

2007-11-01 Thread Viet Nguyen
. Regards, Viet Nguyen On Nov 1, 2007 1:43 PM, Matthew Simmons [EMAIL PROTECTED] wrote: Gentlemen, That did it. Just for my own education, why did I need to update via Subversion? I have talked to people who ran it without doing so. Did I screw up the POM file or something (that was the only

JNDI lookup problem in Jetty portlet

2007-11-16 Thread Viet Nguyen
Hi All, I am having trouble looking up a DataSource from an EAR containing a WAR (which is where the lookup takes place) using JNDI. I find it to be really weird, because I can look up the DataSource fine if I do it through a JSP page or a servlet. However, when I try to look it up in portlet

Re: How to monitor the used database connections?

2007-11-30 Thread Viet Nguyen
We are currently developing a monitoring and management plugin which will be able to monitor your instance of Geronimo. However, I do not think DB Pool Connection statistics have been surfaced yet... -Viet

Re: [geronimo-projects] Java Mail Portlet

2007-12-02 Thread Viet Nguyen
Hi Ying, Try setting the MAVEN_OPTS to -Xmx512m -XX:MaxPermSize=160m --Viet

Re: creating and deploying ejb

2007-12-26 Thread Viet Nguyen
You should package your deployable in the form of an EAR instead of a JAR. Inside the EAR, you can have multiple JARs. You should place your ejbapp.jar and the jaxrpc*.jar libraries inside this EAR. This way, the ejbapp.jar will be able to see classes inside jaxrpc*.jar. --Viet On Dec 26, 2007

Re: creating and deploying ejb

2007-12-26 Thread Viet Nguyen
After you have installed the library into Geronimo (you can do this via the admin console) you can set a dependency in your application. It is pretty simple, but here is a sample application that has a dependency on OpenJPA ... http://cwiki.apache.org/GMOxDOC20/ejb-sample-application.html. --Viet

Re: question about MySql and Geronimo

2008-01-02 Thread Viet Nguyen
On Jan 2, 2008 12:40 PM, jpmlpool [EMAIL PROTECTED] wrote: Happy New Year ! What I want to do are (1) when I start Geronimo, MySql server is started automatically by Geronimo. (2) I can access MySql, just like now I can access Derby. (3) if possible, for example, there are two Derbys

Re: question about MySql and Geronimo

2008-01-02 Thread Viet Nguyen
- Original Message - From: Viet Nguyen [EMAIL PROTECTED] To: user@geronimo.apache.org Sent: Wednesday, January 02, 2008 12:13 PM Subject: Re: question about MySql and Geronimo On Jan 2, 2008 12:40 PM, jpmlpool [EMAIL PROTECTED] wrote: Happy New Year ! What I want to do are (1

Re: Geronimo Deployment goes forever

2008-01-18 Thread Viet Nguyen
Hi Sekhar, Do you mind providing us with the application? I find this to be weird because I did the same thing that you did (putting the JAR inside the EAR/lib directory) and it worked. --Viet On Jan 18, 2008 12:06 PM, gersek [EMAIL PROTECTED] wrote: I am trying to deploy an application (EAR

Re: Geronimo 2 EJB3 Remote Access Example

2008-01-23 Thread Viet Nguyen
There are some sample applications on our wiki. For a session bean sample, you might want to take a look at this: http://cwiki.apache.org/GMOxDOC20/very-simple-session-ejb-example.html. There are other samples there too if you're interested. Thanks, Viet On Jan 23, 2008 5:14 PM, xypher [EMAIL

Re: Geronimo 2 EJB3 Remote Access Example

2008-01-24 Thread Viet Nguyen
Maybe ProjectDSP has some security settings on it. Try adding this line to it properties.setProperty(openejb.authentication.realmName, geronimo-admin); --Viet On Jan 24, 2008 7:48 AM, xypher [EMAIL PROTECTED] wrote: Hi, thanks a lot, now it works. But not completely When I'm trying

how to get Datasource from a non j2ee module

2008-01-24 Thread Viet Nguyen
Hi All, I have a plugin that pulls in a a JAR file (that is not a j2ee module) along with some datasources (packaged as a CAR). I want the datasources to be visible to the classes of the JAR. Is there a way to configure this? --Viet

Re: how to get Datasource from a non j2ee module

2008-01-26 Thread Viet Nguyen
in 2.0.2 however. Hope this helps david jencks On Jan 25, 2008, at 5:29 PM, Viet Nguyen wrote: Hi David, I tried the class given at http://www.nabble.com/How-to-register-a-Datasource-in-GlobalJNDI- Namespace--to12898127.html#a12902470, but it does not seem to have bind the datasources

Re: how to get Datasource from a non j2ee module

2008-01-27 Thread Viet Nguyen
for filtering the name component of the abstract name in config-substitutions.properties. thanks david jencks On Jan 26, 2008, at 9:08 AM, Viet Nguyen wrote: Will the changes be made before 2.1 is released, because I need to access the datasources in my migration to using JMX

Re: OpenLaszlo as a Geronimo plugin

2008-01-31 Thread Viet Nguyen
Hi Jim, You will need to deploy the WAR using the admin console or command line and command is java -jar ./deployer.jar -u system -p manager deploy path_to_war Hope this helps, Viet On Jan 31, 2008 12:25 PM, Jim Foster [EMAIL PROTECTED] wrote: Hi Viet, Thanks for your reply. I downloaded

Re: How to lookup an EJB3 session bean by JNDI?

2008-02-08 Thread Viet Nguyen
, Viet Nguyen On Feb 8, 2008 2:32 PM, lucky lance [EMAIL PROTECTED] wrote: Hi all, I deployed an EJB3 stateless session bean in geronimo 2.0.2. Then I try to lookup it via the traditional JNDI. The code package foo; @Remote public interface MyRemote{ public String getMessage

Re: problem with deploying a mdb (within ear)

2008-02-28 Thread Viet Nguyen
Hi, I'm not sure why you deleted the openejb-jar.xml. But I might have misunderstood. You need to have an openejb-jar.xml deployment descriptor to in order to surface the MDB. Have a look at this Geronimo 2.0 sample http://cwiki.apache.org/GMOxDOC20/jms-and-mdb-sample-application.html I think

Re: How to install and run geronimo in linux?

2008-03-01 Thread Viet Nguyen
Hi, It's great to know that you are wanting to use Geronimo. We have the installation instructions here (although, running it is very simple). http://cwiki.apache.org/GMOxDOC21/installation-and-configuration.html The source code actually builds the full and little Geronimo assemblies. Little G

Re: Error when trying to deploy from Geronimo

2008-04-04 Thread Viet Nguyen
Can you provide us with the plans that you used? And possibly any snippets of code. --Viet On Fri, Apr 4, 2008 at 10:15 AM, punkymt1 [EMAIL PROTECTED] wrote: Hi, I did an Enterprise Application using Netbeans and worked well with Glassfish and Sun App. Server 9 but now when I try to deploy

Re: problem JNDI lookup in geronimo

2008-04-08 Thread Viet Nguyen
You also need to specify the security realm in which you want to authenticate against. Try adding this to your props props.setProperty(openejb.authentication.realmName, geronimo-admin); Regards, Viet On Tue, Apr 8, 2008 at 11:38 AM, CG [EMAIL PROTECTED] wrote: hi, thanks for

Re: Annotations and JNDI

2008-04-10 Thread Viet Nguyen
Hello, Try using the attribute 'name' instead of 'mappedName.' We also have a simple sample application which illustrates what you are doing at http://cwiki.apache.org/GMOxDOC21/jms-and-mdb-sample-application.html. Regards, Viet Nguyen 2008/4/10 Jean-Baptiste [EMAIL PROTECTED]: Hello

Re: Error on my xml descriptor when deploying a war file in 2.1

2008-05-01 Thread Viet Nguyen
I think the descriptor you are using is out of date. We no longer specify the configId and parentId in the webapp element. You can use this sample application as a reference: http://cwiki.apache.org/GMOxDOC21/web-application-security-sample.html. The key is environment

Re: Problem with Deployment plan (Geronimo ear plan contains modules that aren't in the ear: true)

2008-05-08 Thread Viet Nguyen
Hello, Does your EAR contain the two modules that you specified in the DD (ie tranql-connector and geronimo-activemq)? You need to have those RAR/JARs and the xml files residing in the top-level directory of your EAR. There are sample applications that shows how to do this (e.g.

Re: Problem with Deployment plan (Geronimo ear plan contains modules that aren't in the ear: true)

2008-05-08 Thread Viet Nguyen
I'm not sure what your pom looks like, but I suspect you are missing this key piece in the pom.xml of the EAR. plugin artifactIdmaven-ear-plugin/artifactId configuration displayNameGeronimo Sample EAR for

Re: mysql with geronimo problem

2008-05-09 Thread Viet Nguyen
Hi, I will comment inline. On Fri, May 9, 2008 at 9:59 AM, mrd3650 [EMAIL PROTECTED] wrote: Hi, I have a problem which cannot solve :S can someone help me please? Basically i have an enterpriseApplication (EAR+EJB+WAR) I have 2 entitybeans (Cars and Users) these are mapped to a mysql

Re: Problem with Deployment plan (Geronimo ear plan contains modules that aren't in the ear: true)

2008-05-09 Thread Viet Nguyen
You don't need to set a dependency on the jms-resource*.rar because you have it defined in your EAR. It is automatically loaded into the EAR classloader. You only need to set dependencies on something that is not in your application (e.g. you will need to set a dependency on the

Re: mysql with geronimo problem

2008-05-09 Thread Viet Nguyen
Hi Mark, If your mysql-connector is already installed, you just need to set a dependency on it in your geronimo-web.xml (since it is the geronimo specific deployment descriptor for a web app). You can do it with something like this... ns2:dependency ns2:groupId__the

Re: Problem with Deployment plan (Geronimo ear plan contains modules that aren't in the ear: true)

2008-05-09 Thread Viet Nguyen
If you put the mysql connector jar in the top level of the EAR, you will not need to set a dependency for it. You can just adjust the pom to include the connector jar. This way, you just need to deploy the EAR without previously having the mysql connector installed in Geronimo. Hope this helps,

Re: Trying to create EntityManager in web application

2008-05-28 Thread Viet Nguyen
Hi, I will make comments inline... On Wed, May 28, 2008 at 8:37 AM, Phani Madgula [EMAIL PROTECTED] wrote: Hi, I was trying to obtain javax.persistence.EntityManager in a web application as follows. 1. Created persistence.xml in META-INF folder. Are you sure the persistence.xml is in the

Re: Trying to create EntityManager in web application

2008-05-28 Thread Viet Nguyen
I figure that you would have an EJB app that defines some entity beans because you have a persistence.xml and you refer to this xml so that you can get a hold of some Entity Beans via the EntityManagerFactory. -Viet

Re: Problem with building 2.0.1

2008-05-29 Thread Viet Nguyen
It seems like maven cannot delete one of the files (i.e. UddiDatabase\db.lck). Check to make sure you do not have this file open while you are executing the build command. I also noticed that you put Geronimo under F:/chechouts/geronimo/2.0.1. I recommend that you put Geronimo under a shorter

Re: SImple stupid EJB example?

2008-06-03 Thread Viet Nguyen
I suggest you look at this sample http://cwiki.apache.org/GMOxDOC21/mytime-very-simple-session-ejb-example.html or if you like, this one too http://cwiki.apache.org/GMOxDOC21/myphonebook-very-simple-entity-ejb-example.html Thanks, Viet

Re: [ANNOUNCE] Welcoming Yun Feng Ma as a Geronimo Committer

2008-06-19 Thread Viet Nguyen
Congrats Yun Feng