• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Problem running CMP1.1 in websphere 5.0

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I m developing Entity Bean CMP1.1 by connecting oracle's oradb EMP table using webspher studio 5.0. I have configured the test server, putting all the required entries in data source tab & have also checked database connection by going into database perspective. When i deploy & make it run on server the following error occurs :
CNTR0075E: The user-provided class "ejb.myPackage.EJSCMPEmpEntityCmp11HomeBean_79a3f656" needed by the EnterpriseBean could not be found or loaded.
[4/12/04 23:23:00:009 PDT] 5fa76b57 EJBContainerI E WSVR0209E: Unable to prepare EJB jar myappEJB.jar [class com.ibm.ws.runtime.component.DeployedModuleImpl], enterprise bean com.ibm.etools.ejb.impl.ContainerManagedEntityImpl(EmpEntityCmp11) (isReentrant: false) (version: 1.x)
I have tried all efforts & already made sure that home interface, remote interface , bean class & primary key class be present but still i m having the same error.
Can anyone get me out of this trouble espacially Kyele - i have much hope from u .
early reply would be highly appreciable as i m in the middle of preparing Websphere Studio certification.
Thanks in advance,
Ather Naqvi
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you remember to BOTH map the EJB Project to a database (using "Generate > EJB to RDB Mapping") and generate the deployment classes (using "Generate > Deploy and RMIC Code")? The error suggests to me that you forgot to do one, or the other, or both.
Kyle
 
Ather Naqvi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Kyle. I did the same as u told me & the previous error has now been removed but now it is giving another error in the compilation & deployment of bean. The class creating error is EJSJDBCPersisterCMPDepartmentBean_72abae5b .Its a container generated class giving error at
pstmt.setBigDecimal(1, _primaryKey.deptno); as the container has not been able to generate "_primaryKey". At another time when i click on "Deploy & RMIC" option it prompted me error saying that unable to convert int to java.Math.BigDecimal. I dont know whats happening.
For ur kind info i m developing Entity bean CMP 1.1 using WSAD 5.0 connecting with oracle 9i "Dep" table having the field deptno : Number, Dname : varchar(2) & LOC:varchar(2).
Please kyle help me in this regard.
Thanks a lot
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's telling you that an Oracle NUMBER field won't map to an int. Numbers map naturally to BigDecimals -- they are too big for ints.
So my question is -- do you need to do a meet-in-the-middle mapping for this project? Can't you do a bottom-up mapping from the database? Doing so would create the EJB's with all the right types automatically.
Alternatively, if you really need a meet-in-the-middle mapping, you need to use a converter.
If none of this makes sense you should probably buy my book and carefully read the chapters on CMP.
Kyle
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!