Re: maven - geronimo 2.0 example build problem

2007-10-10 Thread dbrenck

Well - indeed I was reading the ejb docs from ejb 2.x point of view: having
ejb EntityBeans.
The big difference I did not notice before is, creating an Entity ejb using
deployment descriptors or using the @Entity annotation does not result in
the same behaviour of the container...

Finally I just have to put the @Entity classes into some jar file which is
available by SessionBeans simply via classpath.

If I got u right, this perfectly helps. Ty!


djencks wrote:
 
 I think we're getting tied up in nomenclature.  With ejb3, the only  
 ejbs are session beans and mdbs.  Something you annotate with @Entity  
 is not an ejb, just a jpa persistent object.  For instance you can  
 put them directly in a web app and they will work fine.  You can also  
 have persistence units with only jpa entities and a persistence.xml  
 in them that are referenced through manifest classpath of ejb jars or  
 wars.  In any case, a jar with only @Entity classes in it will not be  
 recognized as a ejb jar and if you claim it is the ejb deployer will  
 object.
 
 hope this helps
 david jencks
 
 

-- 
View this message in context: 
http://www.nabble.com/maven---geronimo-2.0-example-build-problem-tf4496318s134.html#a13132137
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: maven - geronimo 2.0 example build problem

2007-10-05 Thread dbrenck


djencks wrote:
 
 
 
 I haven't looked at the phonebook example in great detail but it  
 looks to me like the entity uses jpa and is not an ejb 2.x entity  
 bean.  As such, if there are no session beans in the jar, it's no  
 longer an ejb jar.  If there's an application.xml in the ear that  
 claims it is, geronimo will probably object.  If you want to use it  
 as a persistence unit referenced from the war I think you need to put  
 the jar in the ears lib directory or include a manifest classpath  
 entry in the war's META-INF/MANIFEST.MF pointing to the jar.
 
 Hope I'm right and that this helps :-)
 

Yes, and no :-)

We got an EntityBean 3.0 class, a SessionBean class and an Interface
implemented by the SessionBean class.

JPA is used by the SesionBean (not(!) by the EntityBean)

This thing works, cause the EntityBean is found/read and written by the
SessionBean which uses JPA.

Because the EntityBean uses @Entity and other persistance annotations, it
should be alright to just remove the SessionBean from the jar (as well as
it's interface class) and deploy the jar then then.
When trying/doing so, the deployer crashes with the given (2 posts above)
exception. 
(Yes, i removed the class entry from the persistance.xml too, which
mentions the SessionBean.
You can then remove the persistance unit definition, cause no class depends
on it. I tried both ways: remained it and removed it - no difference.)

---

Apart from the example mentioned above, the deployment exception always
occurs if an ejb.jar that is to be deployed ONLY contains EntityBeans. Maybe
that s a hint where I'm going wrong - although I didn't see something in the
specs for j2ee 5 which sais that any ejb.jar must at least contain one
SessionBean (if u do add just one SessionBean to the ejb.jar the deployer
works fine again).

If someone can setup an example of a simple ejb.jar with just one simple 3.0
EntityBean class which deploys on his geronimo, I would be happy if he made
it available for me. So I can check what s wrong with my own ejb.jar or with
my server.

Btw. - I'm running this:
http://www.apache.org/dyn/closer.cgi/geronimo/2.0.1/geronimo-tomcat6-jee5-2.0.1-bin.zip

cheers, dirk
-- 
View this message in context: 
http://www.nabble.com/maven---geronimo-2.0-example-build-problem-tf4496318s134.html#a13055049
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: maven - geronimo 2.0 example build problem

2007-10-05 Thread David Jencks
I think we're getting tied up in nomenclature.  With ejb3, the only  
ejbs are session beans and mdbs.  Something you annotate with @Entity  
is not an ejb, just a jpa persistent object.  For instance you can  
put them directly in a web app and they will work fine.  You can also  
have persistence units with only jpa entities and a persistence.xml  
in them that are referenced through manifest classpath of ejb jars or  
wars.  In any case, a jar with only @Entity classes in it will not be  
recognized as a ejb jar and if you claim it is the ejb deployer will  
object.


hope this helps
david jencks

On Oct 5, 2007, at 1:01 AM, dbrenck wrote:




djencks wrote:




I haven't looked at the phonebook example in great detail but it
looks to me like the entity uses jpa and is not an ejb 2.x entity
bean.  As such, if there are no session beans in the jar, it's no
longer an ejb jar.  If there's an application.xml in the ear that
claims it is, geronimo will probably object.  If you want to use it
as a persistence unit referenced from the war I think you need to put
the jar in the ears lib directory or include a manifest classpath
entry in the war's META-INF/MANIFEST.MF pointing to the jar.

Hope I'm right and that this helps :-)



Yes, and no :-)

We got an EntityBean 3.0 class, a SessionBean class and an Interface
implemented by the SessionBean class.

JPA is used by the SesionBean (not(!) by the EntityBean)

This thing works, cause the EntityBean is found/read and written by  
the

SessionBean which uses JPA.

Because the EntityBean uses @Entity and other persistance  
annotations, it
should be alright to just remove the SessionBean from the jar (as  
well as

it's interface class) and deploy the jar then then.
When trying/doing so, the deployer crashes with the given (2 posts  
above)

exception.
(Yes, i removed the class entry from the persistance.xml too, which
mentions the SessionBean.
You can then remove the persistance unit definition, cause no class  
depends

on it. I tried both ways: remained it and removed it - no difference.)

---

Apart from the example mentioned above, the deployment exception  
always
occurs if an ejb.jar that is to be deployed ONLY contains  
EntityBeans. Maybe
that s a hint where I'm going wrong - although I didn't see  
something in the

specs for j2ee 5 which sais that any ejb.jar must at least contain one
SessionBean (if u do add just one SessionBean to the ejb.jar the  
deployer

works fine again).

If someone can setup an example of a simple ejb.jar with just one  
simple 3.0
EntityBean class which deploys on his geronimo, I would be happy if  
he made
it available for me. So I can check what s wrong with my own  
ejb.jar or with

my server.

Btw. - I'm running this:
http://www.apache.org/dyn/closer.cgi/geronimo/2.0.1/geronimo- 
tomcat6-jee5-2.0.1-bin.zip


cheers, dirk
--
View this message in context: http://www.nabble.com/maven--- 
geronimo-2.0-example-build-problem-tf4496318s134.html#a13055049
Sent from the Apache Geronimo - Users mailing list archive at  
Nabble.com.






Re: maven - geronimo 2.0 example build problem

2007-10-04 Thread dbrenck

Still trying out to figure details - phonebook example:

If I remove 'MyPhonebookBean.java' from the phonebook example and just
rebuild the ejb.jar, geronimo creates the following error:

 14:36:34,562 ERROR [DirectoryHotDeployer] Unable to deploy: 
 Cannot deploy the requested application module because no deployer is
 able 
 to handle it.  This can happen if you have omitted the J2EE deployment
 descriptor,
 disabled a deployer module, or if, for example, you are trying to
 deploy an EJB 
 module on a minimal Geronimo server that does not have EJB support
 installed.  
 (moduleFile=C:\Programme\Java\geronimo\geronimo-tomcat6-jee5-2.0.1\
   
 var\temp\geronimo-deployer7872.tmpdir\test-ejb.jar)
 org.apache.geronimo.common.DeploymentException: Cannot deploy the 
 requested application module because no deployer is able to handle it. 
 This can
 happen if you have omitted the J2EE deployment descriptor, disabled a
 deployer
 module, or if, for example, you are trying to deploy an EJB module on
 a minimal
 Geronimo server that does not have EJB support installed.
 (moduleFile=C:\Programme\Java\geronimo\geronimo-tomcat6-jee5-2.0.1\
   
 var\temp\geronimo-deployer7872.tmpdir\test-ejb.jar)
 at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:241)
 ...

I tried the reverse way to add the class back and rebuild the jar. After
doing so the deployer did not complain anymore.

Ain't it possible to deploy Entity Beans standalone?


-- 
View this message in context: 
http://www.nabble.com/maven---geronimo-2.0-example-build-problem-tf4496318s134.html#a13039682
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: maven - geronimo 2.0 example build problem

2007-10-04 Thread David Jencks


On Oct 4, 2007, at 6:16 AM, dbrenck wrote:



Still trying out to figure details - phonebook example:

If I remove 'MyPhonebookBean.java' from the phonebook example and just
rebuild the ejb.jar, geronimo creates the following error:


14:36:34,562 ERROR [DirectoryHotDeployer] Unable to deploy:
Cannot deploy the requested application module because no  
deployer is

able
to handle it.  This can happen if you have omitted the J2EE  
deployment

descriptor,
disabled a deployer module, or if, for example, you are trying to
deploy an EJB
module on a minimal Geronimo server that does not have EJB  
support

installed.
(moduleFile=C:\Programme\Java\geronimo\geronimo-tomcat6- 
jee5-2.0.1\


var\temp\geronimo-deployer7872.tmpdir\test-ejb.jar)
org.apache.geronimo.common.DeploymentException: Cannot deploy the
requested application module because no deployer is able to  
handle it.

This can
happen if you have omitted the J2EE deployment descriptor,  
disabled a

deployer
module, or if, for example, you are trying to deploy an EJB  
module on

a minimal
Geronimo server that does not have EJB support installed.
(moduleFile=C:\Programme\Java\geronimo\geronimo-tomcat6- 
jee5-2.0.1\


var\temp\geronimo-deployer7872.tmpdir\test-ejb.jar)
at org.apache.geronimo.deployment.Deployer.deploy 
(Deployer.java:241)

...


I tried the reverse way to add the class back and rebuild the jar.  
After

doing so the deployer did not complain anymore.

Ain't it possible to deploy Entity Beans standalone?



I haven't looked at the phonebook example in great detail but it  
looks to me like the entity uses jpa and is not an ejb 2.x entity  
bean.  As such, if there are no session beans in the jar, it's no  
longer an ejb jar.  If there's an application.xml in the ear that  
claims it is, geronimo will probably object.  If you want to use it  
as a persistence unit referenced from the war I think you need to put  
the jar in the ears lib directory or include a manifest classpath  
entry in the war's META-INF/MANIFEST.MF pointing to the jar.


Hope I'm right and that this helps :-)

david jencks



--
View this message in context: http://www.nabble.com/maven--- 
geronimo-2.0-example-build-problem-tf4496318s134.html#a13039682
Sent from the Apache Geronimo - Users mailing list archive at  
Nabble.com.






maven - geronimo 2.0 example build problem

2007-09-21 Thread dbrenck

Hi there,

n00b question: where can i get the missing artifact from. Is there a list of
alternative repositories somewhere? Did i missconfigure maven??

My error message: (please dont quote it in ur answers ;-)

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error during page generation

Embedded error: Error rendering Maven report: Missing:
--
1) org.apache.geronimo.samples:myphonebook-ejb:jar:2.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.apache.geronimo.samples
-DartifactId=myphonebook-ejb \
  -Dversion=2.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:   mvn deploy:deploy-file -DgroupId=org.apache.geronimo.samples
-DartifactId=myphonebook-ejb \
  -Dversion=2.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \
   -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
1) org.apache.geronimo.samples:myphonebook-war:war:2.0-SNAPSHOT
2) org.apache.geronimo.samples:myphonebook-ejb:jar:2.0-SNAPSHOT

--
1 required artifact is missing.

for artifact:
  org.apache.geronimo.samples:myphonebook-war:war:2.0-SNAPSHOT

from the specified remote repositories:
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  apache-incubator
(http://people.apache.org/repo/m2-incubating-repository/),
  codehaus (http://repository.codehaus.org),
  codehaus-snapshots (http://snapshots.repository.codehaus.org),
  apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  central (http://repo1.maven.org/maven2)

[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 31 seconds

Btw.: this maven thing is hard stuff for me. I m often on the train, when
experimenting with ejb/jboss/glassfish and geronimo. Got no internet link
then, while geronimo examles and builds do often need maven to download
?whatever?. Thats anoying somehow.
Is there a way to convert pom.xml to build.xml (ant)? (Yes, I know about the
.m2 repository - but it always seems to be incomplete...)

-- 
View this message in context: 
http://www.nabble.com/maven---geronimo-2.0-example-build-problem-tf4496318s134.html#a12822008
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: maven - geronimo 2.0 example build problem

2007-09-21 Thread Lin Sun
Hi, Looks like this org.apache.geronimo.samples:myphonebook-ejb:jar is a 
sample jar that is supposed to be built part of the myphonebook project. 
  Maybe you could go to the ejb folder and do a mvn install first to 
build that.


If you have a pretty good m2 local repo, you can just build offline by 
doing mvn -o.


Lin

dbrenck wrote:

Hi there,

n00b question: where can i get the missing artifact from. Is there a list of
alternative repositories somewhere? Did i missconfigure maven??

My error message: (please dont quote it in ur answers ;-)

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error during page generation

Embedded error: Error rendering Maven report: Missing:
--
1) org.apache.geronimo.samples:myphonebook-ejb:jar:2.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.apache.geronimo.samples
-DartifactId=myphonebook-ejb \
  -Dversion=2.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:   mvn deploy:deploy-file -DgroupId=org.apache.geronimo.samples
-DartifactId=myphonebook-ejb \
  -Dversion=2.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \
   -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
1) org.apache.geronimo.samples:myphonebook-war:war:2.0-SNAPSHOT
2) org.apache.geronimo.samples:myphonebook-ejb:jar:2.0-SNAPSHOT

--
1 required artifact is missing.

for artifact:
  org.apache.geronimo.samples:myphonebook-war:war:2.0-SNAPSHOT

from the specified remote repositories:
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  apache-incubator
(http://people.apache.org/repo/m2-incubating-repository/),
  codehaus (http://repository.codehaus.org),
  codehaus-snapshots (http://snapshots.repository.codehaus.org),
  apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  central (http://repo1.maven.org/maven2)

[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 31 seconds

Btw.: this maven thing is hard stuff for me. I m often on the train, when
experimenting with ejb/jboss/glassfish and geronimo. Got no internet link
then, while geronimo examles and builds do often need maven to download
?whatever?. Thats anoying somehow.
Is there a way to convert pom.xml to build.xml (ant)? (Yes, I know about the
.m2 repository - but it always seems to be incomplete...)





Re: maven - geronimo 2.0 example build problem

2007-09-21 Thread Prasad Kashyap
This is yet another case of the samples code being only in a zip file
attached to the wiki and not in the svn.

Meanwhile, here's a maven tip. If you can get a good build done while
attached to the internet, use mvn -o while building offline. This
will let you play with the code while not messing the contents in your
local repo.

I'll download that samples and see what's going on with it.

Cheers
Prasad

On 9/21/07, dbrenck [EMAIL PROTECTED] wrote:

 Hi there,

 n00b question: where can i get the missing artifact from. Is there a list of
 alternative repositories somewhere? Did i missconfigure maven??

 My error message: (please dont quote it in ur answers ;-)


 Btw.: this maven thing is hard stuff for me. I m often on the train, when
 experimenting with ejb/jboss/glassfish and geronimo. Got no internet link
 then, while geronimo examles and builds do often need maven to download
 ?whatever?. Thats anoying somehow.
 Is there a way to convert pom.xml to build.xml (ant)? (Yes, I know about the
 .m2 repository - but it always seems to be incomplete...)

 --
 View this message in context: 
 http://www.nabble.com/maven---geronimo-2.0-example-build-problem-tf4496318s134.html#a12822008
 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.




Re: Build Problem

2006-02-15 Thread Kevan Miller


On Feb 15, 2006, at 3:09 AM, Phani Madgula wrote:


Hi..

I am getting this problem due to dependency on the below jar file.

How can I resolve the issue?

BUILD FAILED
File.. C:\geronimo\maven.xml
Element... maven:reactor
Line.. 58
Column 112
The build cannot continue because of the following unsatisfied  
dependency:


geronimo-j2ee_1.4_spec-1.1-SNAPSHOT.jar

Total time: 55 minutes 32 seconds
Finished at: Wed Feb 15 13:00:02 IST 2006

Phani,
The spec jar should be available in the apache repository, now --  
http://cvs.apache.org/repository/org.apache.geronimo.specs/jars/ 
geronimo-j2ee_1.4_spec-1.1-SNAPSHOT.jar


You can disregard my earlier instructions on building geronimo-specs  
from source.


--kevan



Re: build problem

2005-06-23 Thread Alejandro Montenegro
using maven 1.0 :S

2005/6/23, David Jencks [EMAIL PROTECTED]:
 You can try to wget it from the repository it is in into your local
 maven repo, but you will soon get tired of the 10 jars you
 will have to do this for.
 
 Are you using maven 1.0.2?  Basically all other versions don't work,
 either older or newer.
 
 Personally I can't wait for maven 2...
 thanks
 david jencks
 
 On Jun 22, 2005, at 10:57 PM, Alejandro Montenegro wrote:
 
  It's first time I'm trying to build Geronimo, I'm running on a Gentoo
  Linux on an AMD64, just downloaded the last revision (193080). Well
  but the problem is that maven can't download all dependencies, I got
  this error:
 
  BUILD FAILED
  File..
  /home/aamonten/.maven/cache/maven-multiproject-plugin-1.3.1/
  plugin.jelly
  Element... maven:reactor
  Line.. 217
  Column 9
  The build cannot continue because of the following unsatisfied
  dependency:
 
  scout-1.0-SNAPSHOT.jar
 
  Are there any alternative way to get this dependencies?
 
 
  --
  Best regards
  Alejandro Montenegro del Pino
 
  Java Developer AT InnovatingFinances
 
 
 


-- 
Alejandro Montenegro del Pino

Java Developer AT InnovatingFinances


Re: build problem

2005-06-23 Thread Alejandro Montenegro
So there is no elegant way to build Geronimo?

2005/6/23, Alejandro Montenegro [EMAIL PROTECTED]:
 using maven 1.0 :S
 
 2005/6/23, David Jencks [EMAIL PROTECTED]:
  You can try to wget it from the repository it is in into your local
  maven repo, but you will soon get tired of the 10 jars you
  will have to do this for.
 
  Are you using maven 1.0.2?  Basically all other versions don't work,
  either older or newer.
 
  Personally I can't wait for maven 2...
  thanks
  david jencks
 
  On Jun 22, 2005, at 10:57 PM, Alejandro Montenegro wrote:
 
   It's first time I'm trying to build Geronimo, I'm running on a Gentoo
   Linux on an AMD64, just downloaded the last revision (193080). Well
   but the problem is that maven can't download all dependencies, I got
   this error:
  
   BUILD FAILED
   File..
   /home/aamonten/.maven/cache/maven-multiproject-plugin-1.3.1/
   plugin.jelly
   Element... maven:reactor
   Line.. 217
   Column 9
   The build cannot continue because of the following unsatisfied
   dependency:
  
   scout-1.0-SNAPSHOT.jar
  
   Are there any alternative way to get this dependencies?
  
  
   --
   Best regards
   Alejandro Montenegro del Pino
  
   Java Developer AT InnovatingFinances
  
 
 
 
 --
 Alejandro Montenegro del Pino
 
 Java Developer AT InnovatingFinances
 


-- 
Alejandro Montenegro del Pino

Java Developer AT InnovatingFinances


Re: build problem

2005-06-23 Thread David Jencks


On Jun 22, 2005, at 11:14 PM, Alejandro Montenegro wrote:


So there is no elegant way to build Geronimo?


Sure, use maven 1.0.2

david jencks



2005/6/23, Alejandro Montenegro [EMAIL PROTECTED]:

using maven 1.0 :S

2005/6/23, David Jencks [EMAIL PROTECTED]:

You can try to wget it from the repository it is in into your local
maven repo, but you will soon get tired of the 10 jars 
you

will have to do this for.

Are you using maven 1.0.2?  Basically all other versions don't work,
either older or newer.

Personally I can't wait for maven 2...
thanks
david jencks

On Jun 22, 2005, at 10:57 PM, Alejandro Montenegro wrote:

It's first time I'm trying to build Geronimo, I'm running on a 
Gentoo

Linux on an AMD64, just downloaded the last revision (193080). Well
but the problem is that maven can't download all dependencies, I got
this error:

BUILD FAILED
File..
/home/aamonten/.maven/cache/maven-multiproject-plugin-1.3.1/
plugin.jelly
Element... maven:reactor
Line.. 217
Column 9
The build cannot continue because of the following unsatisfied
dependency:

scout-1.0-SNAPSHOT.jar

Are there any alternative way to get this dependencies?


--
Best regards
Alejandro Montenegro del Pino

Java Developer AT InnovatingFinances






--
Alejandro Montenegro del Pino

Java Developer AT InnovatingFinances




--
Alejandro Montenegro del Pino

Java Developer AT InnovatingFinances





Re: build problem

2005-06-23 Thread Jeremy Boynes

David Jencks wrote:


Are you using maven 1.0.2?  Basically all other versions don't work,  
either older or newer.




Dumb question, but what changed in the build that stopped maven 1.0 from 
working and can we work around it?


--
Jeremy


Re: build problem

2005-06-23 Thread Dain Sundstrom
We now use a single global repository list which is way easier to  
maintain.  In maven 1.0 and 1.0.1 there was a bug that caused a  
module to not inherit the repo list from the parent project.


-dain

On Jun 23, 2005, at 10:28 AM, Jeremy Boynes wrote:


David Jencks wrote:

Are you using maven 1.0.2?  Basically all other versions don't  
work,  either older or newer.




Dumb question, but what changed in the build that stopped maven 1.0  
from working and can we work around it?


--
Jeremy





build problem

2005-06-22 Thread Alejandro Montenegro
It's first time I'm trying to build Geronimo, I'm running on a Gentoo
Linux on an AMD64, just downloaded the last revision (193080). Well
but the problem is that maven can't download all dependencies, I got
this error:

BUILD FAILED
File.. 
/home/aamonten/.maven/cache/maven-multiproject-plugin-1.3.1/plugin.jelly
Element... maven:reactor
Line.. 217
Column 9
The build cannot continue because of the following unsatisfied dependency:

scout-1.0-SNAPSHOT.jar

Are there any alternative way to get this dependencies? 


--
Best regards 
Alejandro Montenegro del Pino

Java Developer AT InnovatingFinances