File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb3.0 package in Jboss 4.0.5.GA

 
woo hwang
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic