File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Cant deploy the entity bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Cant deploy the entity bean" Watch "Cant deploy the entity bean" New topic

Cant deploy the entity bean

Pappu Kumar
Ranch Hand

Joined: Oct 01, 2002
Posts: 69
I am using Weblogic 6.0. And cant deploy a simple entity bean.
I am attaching the source for all my files.
Kindly tell me if there is anything wrong in the Java files or the XML files.
package com.titan.cabin;
import java.rmi.RemoteException;
public interface CabinRemote extends javax.ejb.EJBObject {
public String getName() throws RemoteException;
public void setName(String str) throws RemoteException;
public int getDeckLevel() throws RemoteException;
public void setDeckLevel(int level) throws RemoteException;
public int getShipId() throws RemoteException;
public void setShipId(int sp) throws RemoteException;
public int getBedCount() throws RemoteException;
public void setBedCount(int bc) throws RemoteException;
package com.titan.cabin;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
public interface CabinHomeRemote extends javax.ejb.EJBHome {
public CabinRemote create(Integer id)
throws CreateException, RemoteException;
public CabinRemote findByPrimaryKey(Integer pk)
throws FinderException, RemoteException;
package com.titan.cabin;
import javax.ejb.EntityContext;
public class CabinBean implements javax.ejb.EntityBean {
public Integer id;
public String name;
public int deckLevel;
public int shipId;
public int bedCount;

public Integer ejbCreate(Integer id) { = id;
return null;
public void ejbPostCreate(Integer id) {
// Do nothing. Required.
public String getName() {
return name;
public void setName(String str) {
name = str;
public int getShipId() {
return shipId;
public void setShipId(int sp) {
shipId = sp;
public int getBedCount() {
return bedCount;
public void setBedCount(int bc) {
bedCount = bc;
public int getDeckLevel() {
return deckLevel;
public void setDeckLevel(int level ) {
deckLevel = level;
public void setEntityContext(EntityContext ctx) {
// Not implemented.
public void unsetEntityContext() {
// Not implemented.
public void ejbActivate() {
// Not implemented.
public void ejbPassivate() {
// Not implemented.
public void ejbLoad() {
// Not implemented.
public void ejbStore() {
// Not implemented.
public void ejbRemove() {
// Not implemented.
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN' ''>
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' ''>
<!DOCTYPE weblogic-rdbms-bean PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB RDBMS Persistence//EN'

Please Help
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
Hi there, is there any specific problem that you have, or any error messages you've seen? Moving this to the WebLogic forum since you're having problems with WLS 6...
Also, thanks for joining JavaRanch, but could you just take a quick look at the naming policy and edit your profile accordingly.
Bartender (moderator) of "J2EE and EJB" forum
I agree. Here's the link:
subject: Cant deploy the entity bean
It's not a secret anymore!