You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Michele La Porta <mi...@gmail.com> on 2007/02/23 19:46:00 UTC

Andromda ejb3 ear application on geronimo-tomcat6-j2ee5-2.0-M2

I'm using a AndroMDA EJB3
Cartridge<http://web.aanet.com.au/persabi/andromda/>to generate an ear
plus some custom merge point
mappings.The generated classes hierarchy is like

   - RentalServiceBean.java<http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/howto3/a/RentalServiceBean.java>
   - RentalServiceRemote.java<http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/howto3/a/RentalServiceRemote.java>
   - ServiceDelegateBase.java<http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/ServiceDelegateBase.java>
   - RentalServiceDelegate.java<http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/howto3/a/RentalServiceDelegate.java>
   - RentalServiceBase.java<http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/howto3/a/RentalServiceBase.java>
   - RentalServiceException.java<http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/howto3/a/RentalServiceException.java>

I just override templates/ejb3/SessionRemote.vsl and add @Remote

import javax.ejb.Remote;
@Remote
public interface UserServiceRemote
{
    public com.urmet.vo.UserVO[] getAllUsers();
}


    Error: Unable to distribute usermanagement-1.0-SNAPSHOT.ear: Remote
    interface does not extend javax.ejb.EJBObject:
    com.urmet.service.UserServiceRemote

server.log

    Geronimo startup complete
    18:35:37,875 WARN  [OpenEJB] Auto-deploying ejb UserServiceBean:
EjbDeployment(deployment-id=geronim
    o-deploymentUtil18632.tmpdir/UserServiceBean, container-id=Default
Stateless Container)
    18:35:37,875 WARN  [OpenEJB] Auto-deploying ejb UserDao:
EjbDeployment(deployment-id=geronimo-deploy
    mentUtil18632.tmpdir/UserDao, container-id=Default Stateless Container)

I successfully deploy
calculator-stateless-pojo<https://svn.apache.org/repos/asf/geronimo/samples/trunk/samples/calculator-stateless-pojo/>and
I cannot understand why I cannot deploy my application in the same
way.

Any idea or suggestions?

Re: Andromda ejb3 ear application on geronimo-tomcat6-j2ee5-2.0-M2

Posted by Michele La Porta <mi...@gmail.com>.
Here http://www.agrihouse.it/andromda-geronimo.zip there's a simple
m2-andromda ejb3 project.I have design a session bean and an entity
bean.Then I have added:

  app/src/main/application/META-INF/geronimo-application.xml
  app/src/main/config/poolDerby.xml (a derby plan to deploy)

I use  ArgoUML
<http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp>to
export
  mda/src/main/uml/usermanagement.xmi
from ArgoUML project file
mda/src/main/uml/usermanagement.zargo

I modify
  mda/src/main/config/andromda.xml
to merge
  mda/src/main/config/cartridge/custom/templates/ejb3/SessionRemote.vsl

To deploy the app/target/usermanagement-1.0-SNAPSHOT.ear I first deploy
  app/src/main/config/poolDerby.xml
with
java -jar deployer.jar deploy
poolDerby.xml..\repository\org\tranql\tranql-connector-ra\1.3\tranql-
connector-ra-1.3.rar
Then
java -jar deployer.jar --verbose deploy usermanagement-1.0-SNAPSHOT.ear

    Error: Unable to distribute usermanagement-1.0-SNAPSHOT.ear: Remote
    interface does not extend javax.ejb.EJBObject:
    com.urmet.service.UserServiceRemote


2007/2/24, jason.dillon[at]gmail.com <jason.dillon[at]gmail.com>:
>
> I've no idea what the problem is.... But I'm happy to hear folks are using
> (or trying to use) andromda with geronimo. Would eventually like to get a
> sample together that shows this. I really like andromda... Good to see folks
> using it ;-)
>
> --jason
>
>
>
>
> -----Original Message-----
> From: "Michele La Porta" <michele.laporta[at]gmail.com>
> Date: Fri, 23 Feb 2007 19:46:00
> To:user[at]geronimo.apache.org
> Subject: Andromda ejb3 ear application on geronimo-tomcat6-j2ee5-2.0-M2
>
> I'm using a AndroMDA EJB3 Cartridge: <
> http://web.aanet.com.au/persabi/andromda/>  to generate an ear plus some
> custom merge point mappings.The generated classes hierarchy is like
>
>
> *
>
> : <
> http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/howto3/a/RentalServiceBean.java>
> RentalServiceBean.java
> *
> : <
> http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/howto3/a/RentalServiceRemote.java>
> RentalServiceRemote.java
> *
> : <
> http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/ServiceDelegateBase.java>
> ServiceDelegateBase.java
> *
> : <
> http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/howto3/a/RentalServiceDelegate.java>
> RentalServiceDelegate.java
> *
> : <
> http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/howto3/a/RentalServiceBase.java>
> RentalServiceBase.java
> *
> : <
> http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/howto3/a/RentalServiceException.java>
> RentalServiceException.java
> I just override templates/ejb3/SessionRemote.vsl and add @Remote
>
> import javax.ejb.Remote;
> @Remote
> public interface UserServiceRemote
> {
>   public com.urmet.vo.UserVO[] getAllUsers();
> }
>
>
> Error: Unable to distribute usermanagement-1.0-SNAPSHOT.ear: Remote
> interface does not extend javax.ejb.EJBObject:
> com.urmet.service.UserServiceRemote
>
> server.log
>
> Geronimo startup complete
> 18:35:37,875 WARN [OpenEJB] Auto-deploying ejb UserServiceBean:
> EjbDeployment(deployment-id=geronim
> o-deploymentUtil18632.tmpdir/UserServiceBean, container-id=Default
> Stateless Container)
> 18:35:37,875 WARN [OpenEJB] Auto-deploying ejb UserDao:
> EjbDeployment(deployment-id=geronimo-deploy
> mentUtil18632.tmpdir/UserDao, container-id=Default Stateless Container)
>
> I successfully deploy calculator-stateless-pojo
> : <
> https://svn.apache.org/repos/asf/geronimo/samples/trunk/samples/calculator-stateless-pojo/>  and
> I cannot understand why I cannot deploy my application in the same way.
>
> Any idea or suggestions?
>
>
>

Re: Andromda ejb3 ear application on geronimo-tomcat6-j2ee5-2.0-M2

Posted by ja...@gmail.com.
I've no idea what the problem is.... But I'm happy to hear folks are using (or trying to use) andromda with geronimo. Would eventually like to get a sample together that shows this. I really like andromda... Good to see folks using it ;-)

--jason


  

-----Original Message-----
From: "Michele La Porta" <mi...@gmail.com>
Date: Fri, 23 Feb 2007 19:46:00 
To:user@geronimo.apache.org
Subject: Andromda ejb3 ear application on geronimo-tomcat6-j2ee5-2.0-M2

I'm using a AndroMDA EJB3 Cartridge: <http://web.aanet.com.au/persabi/andromda/>  to generate an ear plus some custom merge point mappings.The generated classes hierarchy is like


* 

: <http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/howto3/a/RentalServiceBean.java> RentalServiceBean.java 
* 
: <http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/howto3/a/RentalServiceRemote.java> RentalServiceRemote.java 
* 
: <http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/ServiceDelegateBase.java> ServiceDelegateBase.java 
* 
: <http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/howto3/a/RentalServiceDelegate.java> RentalServiceDelegate.java 
* 
: <http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/howto3/a/RentalServiceBase.java> RentalServiceBase.java 
* 
: <http://web.aanet.com.au/persabi/andromda/howto/org/andromda/test/howto3/a/RentalServiceException.java> RentalServiceException.java 
I just override templates/ejb3/SessionRemote.vsl and add @Remote 

 import javax.ejb.Remote;
 @Remote
 public interface UserServiceRemote 
 {
     public com.urmet.vo.UserVO[] getAllUsers();
 }
 

    Error: Unable to distribute usermanagement-1.0-SNAPSHOT.ear: Remote
    interface does not extend javax.ejb.EJBObject:
    com.urmet.service.UserServiceRemote

server.log 

    Geronimo startup complete 
    18:35:37,875 WARN  [OpenEJB] Auto-deploying ejb UserServiceBean: EjbDeployment(deployment-id=geronim
    o-deploymentUtil18632.tmpdir/UserServiceBean, container-id=Default Stateless Container)
    18:35:37,875 WARN  [OpenEJB] Auto-deploying ejb UserDao: EjbDeployment(deployment-id=geronimo-deploy 
    mentUtil18632.tmpdir/UserDao, container-id=Default Stateless Container)

I successfully deploy calculator-stateless-pojo
: <https://svn.apache.org/repos/asf/geronimo/samples/trunk/samples/calculator-stateless-pojo/>  and I cannot understand why I cannot deploy my application in the same way.

Any idea or suggestions?