Congrats Yun Feng
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
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 path
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
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
I'm not positive if the problem exists in G2, but I'm certain that it
is possible to do this in G2.1 and above.
--Viet
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,
Vi
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...
__the group Id___
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 mysql-connector*.ja
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 mysq
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.
maven-ear-plugin
Geronimo Sample EAR for
jms-mdb-sample
Geronimo Sample EAR for
jms-mdb-sample
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.
http://cwiki.apac
I think the descriptor you are using is out of date. We no longer
specify the configId and parentId in the element. You can use
this sample application as a reference:
http://cwiki.apache.org/GMOxDOC21/web-application-security-sample.html.
The key is
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 <[EMA
java:131)
> at
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
> at
> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
> at javax.naming.InitialContext.init(InitialContext.java:223)
>
> at javax.naming.Initia
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
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 dep
Hi Atul,
It looks like you're doing a remote lookup. I think your client code
should look something similar to
My.DemoInter remoteObj =(My.DemoInter)ctx.lookup();
Let me know if this works.
Thanks,
Viet
On Wed, Apr 2, 2008 at 4:12 AM, atul12345 <[EMAIL PROTECTED]> wrote:
>
>
>
> atul12345 wr
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 i
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 it
extFactory");
props.setProperty(Context.PROVIDER_URL, "ejbd://" +
+ ":" + );
Context ic = new InitialContext(props);
myBean = (MyBeanRemote) ic.lookup();
where can be found in your geronimo-log and is
whatever your server's IP is.
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
Hope this helps,
Viet
On Jan 31, 2008 12:25 PM, Jim Foster <[EMAIL PROTECTED]> wrote:
>
> Hi Viet,
>
> Thanks for your reply.
>
> I downloaded the
Hi Jim,
The plugin that was posted on the JIRA is old. I forget what version
it was for, probably G 2.0. So it will not work with G v2.1. You can
obtain the WAR version of it at this link
http://www.openlaszlo.org/download. It should deploy fine. If you wish
to make a plugin out of it, just deploy
gt; You can set the format, the nameInNamespace, which gbeans are picked
> up, and a regexp 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:
>
>
by
> ResourceSource. It should work 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-Gl
e-in-GlobalJNDI-
> Namespace--tf4521379s134.html#a12902470
>
>
> to bind the datasources into global jndi and your classes can look
> them up there.
>
> thanks
> david jencks
>
>
> On Jan 24, 2008, at 10:30 PM, Viet Nguyen wrote:
>
> > Hi All,
> >
> >
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
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
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 P
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 (E
d try it.
>
> John Qi
>
>
> ----- Original Message -
> From: "Viet Nguyen" <[EMAIL PROTECTED]>
> To:
> Sent: Wednesday, January 02, 2008 12:13 PM
> Subject: Re: question about MySql and Geronimo
>
>
> > On Jan 2, 2008 12:40 PM, jpmlpool <[EM
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
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
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 8:
Try http://svn.apache.org/repos/asf/geronimo/components/txmanager/trunk/
Viet
On Dec 6, 2007 11:51 AM, Jimmy Wan <[EMAIL PROTECTED]> wrote:
>
>
> Hello, I'd like to get at the source code for the JCA implementation and
> Transaction Manager implementation, but I had a little trouble finding it in
Hi Ying,
Try setting the MAVEN_OPTS to "-Xmx512m -XX:MaxPermSize=160m"
--Viet
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
You are right. Does first FirstHome have the @Remote annotation?
On Nov 20, 2007 11:23 AM, Kest <[EMAIL PROTECTED]> wrote:
> I DO have all the classes, actually! I mean, the client "sees" them all! I
> can write, for example: FirstHome firstHome;
> firstHome = (FirstHome)PortableRemoteObject.nar
I think that you are not having the FirstHome class in your client's
classpath. Try running the client with something like
java -cp=
--Viet
On Nov 20, 2007 9:10 AM, Kest <[EMAIL PROTECTED]> wrote:
> Hi, everybody. I'm new to J2EE™-applications development. At this moment
> I'm trying to get st
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 code
It means that there exists something at
$GERONIMO_HOME/repository/org/apache/geronimo/samples/MyPhonebook/1.0/MyPhonebook-1.0.car
Try to undeploy the application first. If it doesn't undeploy, go
ahead and delete that file, then try to deploy again.
Hope this helps,
Viet
On Nov 5, 2007 4:08 PM,
For point #2 I think the Monitoring portlet should be one click away
from the main console page because I believe it is something an admin
would want to use quite frequently. On the other hand I agree that
tools such as "Plan Creator" should be put into it's own category and
perhaps require two or
e
sample itself.
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
Have you tried to run 'mvn install' with other samples? Also, if you
could post the full stack trace, it will be helpful too.
Regards,
Viet
On Oct 31, 2007 11:59 AM, Matthew Simmons <[EMAIL PROTECTED]> wrote:
> I'm new to the Geronimo/Apache world, so please forgive my ignorance.
>
> I'm having t
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 asse
You might want to try
jdbc/gsePool
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
> geronimo-tomcat6-jee5-2.0.1 version. Do you k
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] def
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 a lot David,
>
> However is there another problem and I suspect that is it a security
> issue. He
have an ejb-ref to it
> in the javaee component.
>
> thanks
> david jencks
>
> On Oct 12, 2007, at 10:10 AM, Viet Nguyen wrote:
>
> > Hi All,
> >
> > I am trying to access the new MEJB from a gbean. I am using the
> > following
> >
> > Con
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
javax.naming.security.
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
|-M
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 con
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
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:
> >
>
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:
>
> org.apache.geronimo.configs
> activ
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 GBE
You are right, the wiki is out of date. Try this:
http://geronimo.apache.org/xml/ns/deployment";>
example1
MyGBean
1.0
you may have to add some dependencies depending on what you want to do.
Regards,
Viet
On 9/10/
But like 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'
>
>
>
>
> 5) add sitemesh filter to web.xml
>
> sitemesh
> com.opensymphony.module.sitemesh.filter.PageFilter
>
>
> debug.pagewriter
> false
>
>
> .
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
>
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 "solutio
you can test it out Paolos.
Hope this works,
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 met
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 getMet
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
> > WebModuleStatsIm
)); it tells me that the class is WebModuleStatsImpl.
I have tried a lot of variations and cannot figure this classcastexception
problem. If anyone can give me any insight, I will appreciate it.
Thanks,
Viet Nguyen
)); it tells me that the class is WebModuleStatsImpl.
I have tried a lot of variations and cannot figure this classcastexception
problem. If anyone can give me any insight, I will appreciate it.
Thanks,
Viet Nguyen
bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(
> UnmarshallerImpl.java:194)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(
> UnmarshallerImpl.java:167)
> at
> javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(
> Abstra
e 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 in the geronimo-web.xm
You should have your in your geronimo-web.xml. If you want
your url to be
http://localhost:8080/myapp
you should have
/myapp 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 PROTECTED]> wrote:
>
>
&g
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]>
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:
http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>
http://geronimo.apa
hem mentioned in multiple posts. I would
appreciate any help.
Thanks,
Viet Nguyen
l so I am not
sure.
And I also have a web.xml with the following references too
jms/CommonConnectionFactory
javax.jms.QueueConnectionFactory
Container
Shareable
jms/OrderQueue
javax.jms.Queue
Produces
OrderQueue
Am I missing something? I would appreciate any type of feedback.
Thanks,
Viet Nguyen
Thanks for helping David. Everything worked out perfectly.
Thanks,
Viet Nguyen
74 matches
Mail list logo