This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes WebLogic 5.1 & Cabin example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "WebLogic 5.1 & Cabin example" Watch "WebLogic 5.1 & Cabin example" New topic

WebLogic 5.1 & Cabin example


Joined: Jun 12, 2001
Posts: 1
Does anyone have ever successfully deployed the Cabin example from Oreilly's EJB 2nd book by Richard Monson-Haefel?
I have tried almost a week using Weblogic 5.1, but when I click Tools->Generate Container..., it keeps complaining:
C:\WINNT\Profiles\hyao\.ejbdeployer\deployer-projects\cabin\ejb-jar\com\titan\cabin\ incompatible types
found : int
required: java.lang.CabinPK
pk =;
1 error
I checked the file generated by WebLogic, obviously, the code was wrong.
What I missed in deployment setting and how can I fix it?
Thanks in advance!
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
ravi janap
Ranch Hand

Joined: Nov 04, 2000
Posts: 389
It is quite obvious that while deploying the system is expecting a primary key class whereas what it is actually getting is a int.
Please verify your code for the CabinPK class i.e the primary key class.

I agree. Here's the link:
subject: WebLogic 5.1 & Cabin example
It's not a secret anymore!