Hi Daniele,

there are several pom.xml files, very long, you can browse them from the zip
file here:

http://www.sonatype.com/book/examples/book-j2ee.zip

the readme in the zip give svn url:

http://svn.apache.org/repos/asf/geronimo/samples/trunk/samples/calculator-stateless-pojo/

I checked out the above project too, the layout is a little different from
the zip file, but it does not compile, this is the only maven project for
ejb3 I found in the net so far, two days spent and I can not even produce a
'hello world' in maven, managed to make a 'hello world' in command line, but
not for real code.

Thanks,

A.C.




Daniele De Francesco wrote:
> 
> Hi,
> 
> may you supply the pom.xml?
> 
> cheers
> Daniele
> 
> On Jan 28, 2008 2:09 PM, Angelo Chen <[EMAIL PROTECTED]> wrote:
> 
>>
>> Hi Wayne,
>>
>> Thanks for the reply, actually the calculator sample's maven project
>> compiles, problem is running:
>>
>> I started the Genonimo server, went to the console, choose 'deploy new',
>> selected the EAR file, and got following error:
>>
>> Manifest class path entries must be a valid jar file (JAVAEE 5 Section
>> 8.2
>> ):
>> path=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar, resolved to
>> targetURI=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar
>>    looking at: calculator-stateless-war-2.0-SNAPSHOT.war    current
>> classpath: [WEB-INF/classes/,
>> ../lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar]    ignoring modules:
>> [calculator-stateless-ejb-2.0-SNAPSHOT.jar,
>> calculator-stateless-war-2.0-SNAPSHOT.war]
>> org.apache.geronimo.common.DeploymentException: Manifest class path
>> entries
>> must be a valid jar file (JAVAEE 5 Section 8.2):
>> path=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar, resolved to
>> targetURI=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar
>>    looking at: calculator-stateless-war-2.0-SNAPSHOT.war    current
>> classpath: [WEB-INF/classes/,
>> ../lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar]    ignoring modules:
>> [calculator-stateless-ejb-2.0-SNAPSHOT.jar,
>> calculator-stateless-war-2.0-SNAPSHOT.war]
>>        at
>>
>> org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath
>> (DeploymentContext.java:367)
>>        at
>>
>> org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath
>> (DeploymentContext.java:286)
>>
>> Since I'm not familiar to Genonimo, so don't know how to fix this. I'm
>> just
>> looking for a working maven example, from there i can proceed with my
>> ejb3
>> project with maven.
>>
>> Thanks,
>>
>>
>>
>>
>> Wayne Fay wrote:
>> >
>> > "It is just not working" -- can you be more specific? Try adding -X to
>> > the call to Maven (eg mvn -X package) to get debugging information.
>> >
>> > If you spot a specific error in the debug log, paste it in a reply to
>> > this email.
>> >
>> > Wayne
>> >
>> > On 1/27/08, Angelo Chen <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hi,
>> >>
>> >> I'm looking for a simple sample Maven project for ejb3, I have tried
>> >> this:
>> >> http://www.sonatype.com/book/examples/book-j2ee.zip, everything
>> compile,
>> >> and
>> >> I follow the exact steps in the maven-user-guide.pdf, but it just not
>> >> working.
>> >>
>> >> Thanks,
>> >>
>> >> A.C.
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15127007.html
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15134930.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15136736.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to