aspose file tools*
The moose likes JBoss/WildFly and the fly likes ejb3.0 package in Jboss 4.0.5.GA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "ejb3.0 package in Jboss 4.0.5.GA" Watch "ejb3.0 package in Jboss 4.0.5.GA" New topic
Author

ejb3.0 package in Jboss 4.0.5.GA

woo hwang
Greenhorn

Joined: Dec 13, 2006
Posts: 23
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

Joined: Jul 20, 2005
Posts: 9318
    
109

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?


[My Blog] [JavaRanch Journal]
woo hwang
Greenhorn

Joined: Dec 13, 2006
Posts: 23
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

Joined: Jul 20, 2005
Posts: 9318
    
109

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ejb3.0 package in Jboss 4.0.5.GA
 
Similar Threads
JSPs don't see EJBs
package javax.ejb does not exist
Does WL10 deploy both EJB2.0 and EJB3.0
session bean class not found exception
ejb3.deployer not found.