Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-29-2007, 03:49 PM
Member
 
Join Date: Nov 2007
Posts: 1
dcpmt is on a distinguished road
Entity Beans in JBOSS
We have a Web application in our project that includes 6 Entity Beans with CMP fields1.1
The application was developed in WSAD 5.1
The WSAD generates Access Beans for each Entity Bean as well as stubs in default package com.ibm.ejs.container and com.ibm.websphere.csi.

E.g. The Entity Bean “Organization.java” has Access Bean “OrganizationAccessBean.java”.
Similarly for other 5 Entity Beans there are Access Beans created in WSAD.

But now we are migrating the application to JBOSS 4.0.3SP1 server.

The EAR of the application exported from the WSAD contains all the deployed code (stubs) and Access Beans.
When this EAR was imported in Eclipse 3.2, it gave us error as it does not support the IBM specific files.

We have replaced the IBM specific “.xmi” files by JBOSS compatible files like ejb-jar.xml, jboss.xml.
Then a mapping file was created with the name jbosscmp-jdbc.xml which has all the mapping between the beans and the tables in the database.
Also this file contains the relationship between the beans.

After this we tried deploying the code on JBOSS but got some errors as mentioned below:

Error:

12:42:53,141 INFO [EARDeployer] Init J2EE application: file:/D:/jboss-4.0.3SP1/server/default/deploy/pmt.ear
12:42:53,797 WARN [verifier] EJB spec violation:
Bean : Organization
Method : public void ejbCreate(String, int, int) throws Create Exception, Remote Exception
Section: 9.2.3
Warning: The return type of an ejbCreate (...) method must be the entity bean's primary key type.

What we analyzed was that in ejb-jar.xml there were some entries.
Here in <ejb-class> the Bean class was given, but there was no information about the AccessBean class.
In WSAD the AcessBean classes were generated by the tool, but we actually did not know how to refer the AccessBean.

Can anyone help us in successfully deploying the application to JBOSS server or provide some pointers/ steps to proceed.
Also need help regarding generation of Access Beans, stubs (IBM specific files) in Eclipse 3.2

Thanks
Regards,

dcpmt
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
EJB - Entity Beans III JavaForums Java Blogs 0 04-04-2008 04:10 PM
EJB - Entity Beans II JavaForums Java Blogs 0 04-04-2008 04:10 PM
EJB - Entity Beans I JavaForums Java Blogs 0 04-03-2008 07:21 PM
PK for Entity beans eva Enterprise JavaBeans 2 01-03-2008 05:51 AM
problem with ejb 3.0 entity beans with manyToMany relationship makcro Enterprise JavaBeans 0 07-26-2007 08:37 PM


All times are GMT +3. The time now is 12:40 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org