• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ejb3.0 package in Jboss 4.0.5.GA

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi guys.
I used jboss4.0.3SP1 to deploy EJB3.0. however, it did not fully support EJB3.0. So i would like to use 4.0.5GA version.
When i use 4.0.3SP1, any xml files is not needed for packaging.
But.. i failed to deploy EJB3.0 in 4.0.5

How i package EJB3.0 for 4.0.5?
What other files(xmls) are needed for?
Any good and simple persistence example in web?

cheers
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

But.. i failed to deploy EJB3.0 in 4.0.5



Any errors/exceptions that you see? If so, then post the stacktrace. Also, how is your application packaged? What are its contents?
 
woo hwang
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply.
I make a MyEjb.jar
A simple Entity bean and persistence.xml file are within jar.

The content in persistence.xml is below
<persistence>
<persistence-unit name="MyEJB3">
<jta-data-source>java:/ejb3ProjectDS</jta-data-source>
<properties>
<property name="hibernate.hbm2ddl.auto"
value="create-drop"/>
</properties>
</persistence-unit>
</persistence>

There are no message in JBoss console.

If you do not mind.
Could you give me simple entity bean deplyment example.
What i really want to know is simple packaging structure for entity bean in JBoss.
cheers.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your jar should contain a META-INF folder (make sure the case is correct) which contains the persistence.xml file. Does your MyEjb.jar contain this? Then you have to place this MyEjb.jar file in the %JBOSS_HOME%/server/default/deploy folder, for JBoss to pick it up for deploying. Can you please follow the steps below and post the output:

- From the command prompt, go to %JBOSS_HOME%/server/default/deploy folder
- Run the following command:



This will display the contents of your MyEjb.jar. Post the contents here. That might help us figure out whether the jar is packaged right
 
reply
    Bookmark Topic Watch Topic
  • New Topic