You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by beyondjusitn <be...@gmail.com> on 2007/12/02 05:29:18 UTC

How to deploy ejb on Geronimo as JAR file.

I want to test deploy ejb JAR file on Geronimo . Here is what I did.
My tools WTP 2.0.1 all-in-one edition.

1. create an EJB project without adding project to EAR.
2. in the Project Facet, 
    EJB Module 2.0. 
    EJBDoclet(XDoclet) 1.2.3
    Java 5.0
3. Finish.
I saw from the console that XDoclet succeeded.
4. Right click on the EJB project I created. choose export EJB JAR file.
Then a new JAR file was created.
5. logon to Geronimo server. choose deploy new in the Geronimo console.
However, it says that 

Deployment failed:
org.apache.geronimo.common.DeploymentException: Failed parsing descriptors
for module:
C:\DOCUME~1\Justin\LOCALS~1\Temp\geronimo-deployer62249.tmpdir\TestEJB.jar 

Any help is appreciable.

-----
--
Best Wishes!
Justin Tsao
-- 
View this message in context: http://www.nabble.com/How-to-deploy-ejb-on-Geronimo-as-JAR-file.-tf4930583s134.html#a14112587
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: How to deploy ejb on Geronimo as JAR file.

Posted by beyondjusitn <be...@gmail.com>.
Yeah, I've tried it before. In your tutorial, you encapsulate the ejb in an
EAR project. Through deploying EAR, you deploy EJB. However, what I want is
deploy EJB only. and use EJB's remote method in my J2EE application client
project. Do you know how to make it? Or do you know how to use EJB in J2EE
application? Do I have to deploy application client also?
Thanks a lot.

Jacek Laskowski wrote:
> 
> On Dec 2, 2007 5:29 AM, beyondjusitn <be...@gmail.com> wrote:
> 
>> Deployment failed:
>> org.apache.geronimo.common.DeploymentException: Failed parsing
>> descriptors
>> for module:
>> C:\DOCUME~1\Justin\LOCALS~1\Temp\geronimo-deployer62249.tmpdir\TestEJB.jar
> 
> Hi,
> 
> Take a look at 5-minute Tutorial on Enterprise Application Development
> with Eclipse and Geronimo [1]. That's where you'll find the solution
> (hint: Remove ejbModule/META-INF/openejb-jar.xml file in the SampleEJB
> project as it causes deployment issues).
> 
> Jacek
> 
> [1]
> http://cwiki.apache.org/GMOxSAMPLES/5-minute-tutorial-on-enterprise-application-development-with-eclipse-and-geronimo.html
> 
> -- 
> Jacek Laskowski
> http://www.JacekLaskowski.pl
> 
> 


-----
--
Best Wishes!
Justin Tsao
-- 
View this message in context: http://www.nabble.com/How-to-deploy-ejb-on-Geronimo-as-JAR-file.-tf4930583s134.html#a14114887
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: How to deploy ejb on Geronimo as JAR file.

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Dec 2, 2007 5:29 AM, beyondjusitn <be...@gmail.com> wrote:

> Deployment failed:
> org.apache.geronimo.common.DeploymentException: Failed parsing descriptors
> for module:
> C:\DOCUME~1\Justin\LOCALS~1\Temp\geronimo-deployer62249.tmpdir\TestEJB.jar

Hi,

Take a look at 5-minute Tutorial on Enterprise Application Development
with Eclipse and Geronimo [1]. That's where you'll find the solution
(hint: Remove ejbModule/META-INF/openejb-jar.xml file in the SampleEJB
project as it causes deployment issues).

Jacek

[1] http://cwiki.apache.org/GMOxSAMPLES/5-minute-tutorial-on-enterprise-application-development-with-eclipse-and-geronimo.html

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl