Error in deploying a cmp bean in j2ee 1.3
Hi,
I am deploying a cmr application using 3 cmp entity beans. while deloyment i get a error for one of the entity bean, studentEJB. the error is :
For [ StudentEJB ]
Error: There are no method permissions within this bean [ StudentEJB ]. Transaction attributes must be specified for the methods defined in the remote interface [ LocalStudent ]. Method [ getLastName ] has no transaction attribute defined.
my LocalStudent file is:
import javax.ejb.*;
import java.util.*;
public interface LocalStudent extends EJBLocalObject
public String getStudentID();
public String getFirstName();
public String getLastName();
public ArrayList getAddressList();
public ArrayList getRosterList();
public void addAddress(LocalAddress address);
public void addRoster(LocalRoster roster);
while no errors are coming for the studentID and firstName fields why is the error coming for lastName field ?
three fields, studentID, firstName and lastName contain similar implementations in the LocalStudent and studentEJB class.
wiating for an early response...
Tanmoy
Hello there!
I am having a similar problem here also. I am trying to build a lab for test the J2EE tecnology in order for the company I work for switch our Cash Dispenser system to java.
I have made a very simple entity EJB witch local interface is:
public interface LabLocal extends EJBLocalObject
String getExperiment();
String getDescription();
void setDescription(String description);
String getResult();
void setResult(String result);
Local home is:
public interface LabLocalHome extends EJBLocalHome
LabLocal create( String experiment, String description, String result ) throws CreateException;
LabLocal findByPrimaryKey( LabPK key ) throws FinderException;
void remove();
and the bean itself is:
public class LabBean implements EntityBean
private EntityContext ctx;
private DataSource dataSource;
public String experiment;
public String description;
public String result;
/* (non-Javadoc)
* @see javax.ejb.EntityBean#ejbActivate()
public void ejbActivate() throws EJBException, RemoteException
// nothing to do here people.
/* (non-Javadoc)
* @see javax.ejb.EntityBean#ejbLoad()
public void ejbLoad() throws EJBException, RemoteException
LabPK key = (LabPK)ctx.getPrimaryKey();
Connection con = null;
PreparedStatement stmt = null;
ResultSet rs = null;
try
con = dataSource.getConnection();
stmt = con.prepareStatement("SELECT description, result FROM laboratory WHERE experiment = ?");
stmt.setString(1, key.experiment);
rs = stmt.executeQuery();
if( ! rs.next() )
error( "no data found in ejbLoad for " + key, null);
this.experiment = key.experiment;
catch( SQLException se)
error("Error in ejbLoad" + key, se);
finally
closeConnection(con, stmt, rs);
/* (non-Javadoc)
* @see javax.ejb.EntityBean#ejbPassivate()
public void ejbPassivate() throws EJBException, RemoteException
this.description = null;
this.result = null;
this.experiment = null;
/* (non-Javadoc)
* @see javax.ejb.EntityBean#ejbRemove()
public void ejbRemove() throws RemoveException, EJBException, RemoteException
LabPK key = (LabPK) ctx.getPrimaryKey();
Connection con = null;
PreparedStatement stmt = null;
try
con = dataSource.getConnection();
stmt = con.prepareStatement("DELETE FROM laboratory WHERE experiment = ? ");
stmt.setString(1, key.toString() );
stmt.executeUpdate();
catch( SQLException se )
error( "Error deleting " + key, se );
finally
closeConnection(con, stmt, null);
this.experiment = null;
this.description = null;
this.result = null;
/* (non-Javadoc)
* @see javax.ejb.EntityBean#ejbStore()
public void ejbStore() throws EJBException, RemoteException
Connection con = null;
PreparedStatement stmt = null;
try
con = dataSource.getConnection();
stmt = con.prepareStatement("UPDATE Laboratory SET description = ? , result = ? WHERE experiment = ? ");
stmt.setString(1, this.description);
stmt.setString(2, this.result);
stmt.setString(3, this.experiment);
stmt.executeUpdate();
catch( SQLException se)
error( "Error processing UPDATE statement.", se);
finally
closeConnection(con, stmt, null);
/* (non-Javadoc)
* @see javax.ejb.EntityBean#unsetEntityContext()
public void unsetEntityContext() throws EJBException, RemoteException
this.ctx = null;
this.dataSource = null;
/* (non-Javadoc)
* @see javax.ejb.EntityBean#setEntityContext(javax.ejb.EntityContext)
public void setEntityContext(EntityContext arg0) throws EJBException, RemoteException
this.ctx = arg0;
InitialContext ic = null;
try
ic = new InitialContext();
dataSource = (DataSource) ic.lookup("java:comp/env/jdbc/teste");
catch( NamingException ne)
error( "error looking up depend EJB or resource. ", ne);
public void error( String message, Exception e)
throw new EJBException( message, e);
public void closeConnection( Connection con, PreparedStatement stmt, ResultSet rs )
try
if( stmt != null )
stmt.close();
catch( SQLException se)
System.out.println( "Data base error: " + se.toString() );
try
if( con != null)
con.close();
catch( SQLException se)
System.out.println( "Data base error: " + se.toString() );
public LabPK ejbCreate( String experiment, String description, String result ) throws CreateException
LabPK key = new LabPK( experiment );
try
ejbFindByPrimaryKey( key );
throw new CreateException( "Duplicate lab: " + key);
catch( FinderException fe ){}
Connection con = null;
PreparedStatement stmt = null;
try
con = dataSource.getConnection();
stmt = con.prepareStatement("INSERT INTO laboratory ( experiment, description, result ) VALUES (?, ?, ?) ");
stmt.setString(1, experiment);
stmt.setString(2, description);
stmt.setString(3, result);
catch( SQLException se )
error( "Error creating lab: " + key, se);
finally
closeConnection(con, stmt, null);
this.experiment = experiment;
this.description = description;
this.result = result;
return key;
public void ejbPostCreate(String experiment, String description, String result){}
public LabPK ejbFindByPrimaryKey( LabPK key ) throws FinderException
Connection con = null;
PreparedStatement stmt = null;
ResultSet rs = null;
try
con = dataSource.getConnection();
stmt = con.prepareStatement("SELECT experiment FROM laboratory WHERE experiment = ?");
stmt.setString(1, key.experiment );
rs = stmt.executeQuery();
if( !rs.next() )
throw new FinderException( "Unknown key: " + key );
return key;
catch( SQLException se )
error( "Error in finding primary key for " + key, se );
finally
closeConnection(con, stmt, rs);
return null;
public String getExperiment()
return this.experiment;
public String getDescription()
return this.description;
public void setDescription(String description)
this.description = description;
public String getResult()
return this.result;
public void setResult(String result)
this.result = result;
I will omit the PK code in order to not create a longer than necessary post.
I am using the deploytool�s Graphical interface to generate a standalone jar file. When I run the verify tool I get the following errors:
For [ D:-Linux-Java-LabJar.jar#LabJar.jar#LabBean ]
Error: There are no method permissions within this bean [ LabBean ]. Transaction attributes must be specified for the methods defined in the remote interface [ simpleEJB.LabLocal ]. Method [ getDescription ] has no transaction attribute defined.
For [ D:-Linux-Java-LabJar.jar#LabJar.jar#LabBean ]
Error: There are no method permissions within this bean [ LabBean ]. Transaction attributes must be specified for the methods defined in the remote interface [ simpleEJB.LabLocal ]. Method [ setDescription ] has no transaction attribute defined.
For [ D:-Linux-Java-LabJar.jar#LabJar.jar#LabBean ]
Error: There are no method permissions within this bean [ LabBean ]. Transaction attributes must be specified for the methods defined in the remote interface [ simpleEJB.LabLocal ]. Method [ getResult ] has no transaction attribute defined.
For [ D:-Linux-Java-LabJar.jar#LabJar.jar#LabBean ]
Error: There are no method permissions within this bean [ LabBean ]. Transaction attributes must be specified for the methods defined in the remote interface [ simpleEJB.LabLocal ]. Method [ getExperiment ] has no transaction attribute defined.
For [ D:-Linux-Java-LabJar.jar#LabJar.jar#LabBean ]
Error: There are no method permissions within this bean [ LabBean ]. Transaction attributes must be specified for the methods defined in the remote interface [ simpleEJB.LabLocal ]. Method [ setResult ] has no transaction attribute defined.
I�ve read the forum in search for an good answer and found some sugestions to look in the security and transaction tab in order to force the tool to generate the entries for the methods. It did not helped at all.
I tried to change the defaults in transaction tab from "required" to "mandatory". When I save, the tool presents the root screen of the jar file, but when I go check the values of the transaction atributes, they are again set to "required" .
In the descriptor viewer for the application descriptor it shows:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Sun ONE Application Server 8.0 EJB 2.1//EN" "http://www.sun.com/software/sunone/appserver/dtds/sun-ejb-jar_2_1-0.dtd"> <sun-ejb-jar> <enterprise-beans> <name>LabJar</name> <unique-id>366779567</unique-id> <ejb> <ejb-name>LabBean</ejb-name> <jndi-name>LabBean</jndi-name> </ejb> </enterprise-beans> </sun-ejb-jar>
I cant get to edit it when I try.
I am using the "Deployment Tool for Java 2 Plataform Enterprise Edition 1.4" from the J2EE SDK 1.4_2 running on Windows 2000 SP4.
Tks in advance,
Leonardo.
P.S.: Ok. Isnt it silly. I wrote all that, and then choose "supported" instead of mandatory, saved and verified that it saved the setting indeed. returned to required and runned the test. It worked.
Similar Messages
-
Error while deployment of CMP 2.0 bean on weblogic 11g
Hi,
I am not able to deploy my CMP 2.0 bean on Weblogic 11g. There are two JVM available in weblogic 11g.
1) Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
2) Oracle JRockit(R) (build R28.1.1-14-139783-1.6.0_22-20101206-0241-windows-ia32, compiled mode)
When we are using "Oracle JRockit(R) (build R28.1.1-14-139783-1.6.0_22-20101206-0241-windows-ia32, compiled mode)" And deploying the CMP bean then we got the Error as below:
D:\Oracle\Middleware\wlserver_10.3\server\bin>java weblogic.appc -verbose C:\temp\Jproject.ear\DefinitionWizardBean.jar
Created working directory: C:\DOCUME~1\cxp\LOCALS~1\Temp\1\appcgen_1309496813354_DefinitionWizardBean.jar
<01-Jul-2011 06:06:57 o'clock BST> <Warning> <Munger> <BEA-2156203> <A version attribute was not found in element persis
tence in the deployment descriptor in C:\temp\Jproject.ear\DefinitionWizardBean.jar/META-INF/weblogic-ejb-jar.xml. A vers
ion attribute is required, but this version of the Weblogic Server will assume that the JEE5 is used. Future versions of
the Weblogic Server will reject descriptors that do not specify the JEE version.>
java.lang.NoClassDefFoundError: EntityBean
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
at weblogic.ejb.container.deployer.BeanInfoImpl.loadClass(BeanInfoImpl.java:510)
at weblogic.ejb.container.deployer.BeanInfoImpl.<init>(BeanInfoImpl.java:242)
at weblogic.ejb.container.deployer.ClientDrivenBeanInfoImpl.<init>(ClientDrivenBeanInfoImpl.java:156)
at weblogic.ejb.container.deployer.EntityBeanInfoImpl.<init>(EntityBeanInfoImpl.java:115)
at weblogic.ejb.container.deployer.BeanInfoImpl.createBeanInfoImpl(BeanInfoImpl.java:695)
at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:558)
at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:236)
at weblogic.ejb.container.ejbc.EJBCompiler.getStandAloneDeploymentInfo(EJBCompiler.java:1185)
at weblogic.ejb.container.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:156)
at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:439)
at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:396)
at weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:316)
at weblogic.application.compiler.EJBModule.compile(EJBModule.java:128)
at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:18)
at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:36)
at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:29)
at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:112)
at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:37)
at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.Appc.runBody(Appc.java:203)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.application.compiler.Appc.main(Appc.java:262)
at weblogic.appc.main(appc.java:14)
EntityBean
But I use JVM " Java(TM) SE Runtime Environment (build 1.6.0_22-b04) " and deploying CMP bean then i got error as below:
D:\Oracle\Middleware\wlserver_10.3\server\bin>d:\Oracle\Middleware\jdk160_21\bin\java weblogic.appc -verbose C:\temp\Tr
ading.ear\DefinitionWizardBean.jar
Created working directory: C:\DOCUME~1\cxp\LOCALS~1\Temp\1\appcgen_1309496852057_DefinitionWizardBean.jar
<01-Jul-2011 06:07:35 o'clock BST> <Warning> <Munger> <BEA-2156203> <A version attribute was not found in element persis
tence in the deployment descriptor in C:\temp\Jproject.ear\DefinitionWizardBean.jar/META-INF/weblogic-ejb-jar.xml. A vers
ion attribute is required, but this version of the Weblogic Server will assume that the JEE5 is used. Future versions of
the Weblogic Server will reject descriptors that do not specify the JEE version.>
java.lang.ClassNotFoundException: EntityBean
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
at weblogic.ejb.container.deployer.BeanInfoImpl.loadClass(BeanInfoImpl.java:510)
at weblogic.ejb.container.deployer.BeanInfoImpl.<init>(BeanInfoImpl.java:242)
at weblogic.ejb.container.deployer.ClientDrivenBeanInfoImpl.<init>(ClientDrivenBeanInfoImpl.java:156)
at weblogic.ejb.container.deployer.EntityBeanInfoImpl.<init>(EntityBeanInfoImpl.java:115)
at weblogic.ejb.container.deployer.BeanInfoImpl.createBeanInfoImpl(BeanInfoImpl.java:695)
at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:558)
at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:236)
at weblogic.ejb.container.ejbc.EJBCompiler.getStandAloneDeploymentInfo(EJBCompiler.java:1185)
at weblogic.ejb.container.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:156)
at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:439)
at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:396)
at weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:316)
at weblogic.application.compiler.EJBModule.compile(EJBModule.java:128)
at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:18)
at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:36)
at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:29)
at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:112)
at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:37)
at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.Appc.runBody(Appc.java:203)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.application.compiler.Appc.main(Appc.java:262)
at weblogic.appc.main(appc.java:14)
EntityBean
Please assist me regarding above error
Thanks,
Amritesh
Edited by: 869636 on 01-Jul-2011 00:49What is the jee version you have on that server? are the environment variables correctly set?
-
Error While Deploying A CMP Entity Bean With A Composite Primary Key
Hello all,
I have a problem deploying CMP Entity beans with composite primary keys. I have a CMP Entity Bean, which contains a composite primary key composed of two local stubs. If you know more about this please respond to my post on the EJB forum (subject: CMP Bean Local Stub as a Field of a Primary Key Class).
In the mean time, can you please tell me what following error message means and how to resolve it? From what I understand it might be a problem with Sun ONE AS 7, but I would like to make sure it's not me doing something wrong.
[05/Jan/2005:12:49:03] WARNING ( 1896): Validation error in bean CustomerSubscription: The type of non-static field customer of the key class
test.subscription.CustomerSubscriptionCMP_1530383317_JDOState$Oid must be primitive or must implement java.io.Serializable.
Update the type of the key class field.
Warning: All primary key columns in primary table CustomerSubscription of the bean corresponding to the generated class test.subscription.CustomerSubscriptionCMP_1530383317_JDOState must be mapped to key fields.
Map the following primary key columns to key fields: CustomerSubscription.CustomerEmail,CustomerSubscription.SubscriptionType. If you already have fields mapped to these columns, verify that they are key fields.Is it enough that a primary key class be serializable or all fields have to implement Serializable or be a primitive?
Please let me know if you need more information to answer my question.
Thanks.
NikolaHi Nikola,
There are several problems with your CMP bean.
1. Fields of a Primary Key Class must be a subset of CMP fields, so yes, they must be either a primitive or a Serializable type.
2. Sun Application Server does not support Primary Key fields of an arbitrary Serializable type (i.e. those that will be stored
as BLOB in the database), but only primitives, Java wrappers, String, and Date/Time types.
Do you try to use stubs instead of relationships or for some other reason?
If it's the former - look at the CMR fields.
If it's the latter, I suggest to store these fields as regular CMP fields and use some other value as the PK. If you prefer that
the CMP container generates the PK values, use the Unknown
PrimaryKey feature.
Regards,
-marina -
Error while deploying an entity bean
Hi,
I am trying to deploy an entity bean in weblogic 7.0 .
My weblogic-ejb-jar.xml has the entry as :
<weblogic-enterprise-bean>
<ejb-name>enroleejb.ManagedObjectImplHome</ejb-name>
<stateless-session-descriptor>
<pool>
<max-beans-in-free-pool>100</max-beans-in-free-pool>
<initial-beans-in-free-pool>0</initial-beans-in-free-pool>
</pool>
<stateless-clustering>
<stateless-bean-is-clusterable>True</stateless-bean-is-clusterable>
<stateless-bean-methods-are-idempotent>False</stateless-bean-methods-are-ide
mpotent>
</stateless-clustering>
</stateless-session-descriptor>
<transaction-descriptor>
<trans-timeout-seconds>60</trans-timeout-seconds>
</transaction-descriptor>
<enable-call-by-reference>True</enable-call-by-reference>
<jndi-name>enroleejb.ManagedObjectImplHome</jndi-name>
</weblogic-enterprise-bean>
When I run ejbc it gives the following error.
[java] The file /meta-inf/weblogic-cmp-rdbms-jar.xml, specified in a
type-storage element
of your weblogic-ejb-jar.xml descriptor, does not exist in the jar
file.
[java] at
weblogic.ejb20.persistence.PersistenceType.setTypeSpecificFile(PersistenceTy
pe.java:475)
[java] at
weblogic.ejb20.persistence.PersistenceType.setupDeployer(PersistenceType.jav
a:407)
[java] at
weblogic.ejb20.deployer.CMPInfoImpl.setup(CMPInfoImpl.java:114)
[java] at
weblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSources(EJB20CMPComp
iler.java:64)
[java] at
weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:223)
[java] at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:344)
[java] at weblogic.ejbc20.runBody(ejbc20.java:470)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:126)
[java] at weblogic.ejbc.main(ejbc.java:29)
In the generated jar file I have meta-inf\weblogic-cmp-rdbms.jar file.
Still it gives the error.
What could be the problem?
Any help would be appreciated.
Thanks,
NamrataEjb jar file should have META-INF/weblogic-cmp-rdbms-jar.xml
"Sarita Satoor" <[email protected]> wrote:
Hi,
I am trying to deploy an entity bean in weblogic 7.0 .
My weblogic-ejb-jar.xml has the entry as :
<weblogic-enterprise-bean>
<ejb-name>enroleejb.ManagedObjectImplHome</ejb-name>
<stateless-session-descriptor>
<pool>
<max-beans-in-free-pool>100</max-beans-in-free-pool>
<initial-beans-in-free-pool>0</initial-beans-in-free-pool>
</pool>
<stateless-clustering>
<stateless-bean-is-clusterable>True</stateless-bean-is-clusterable>
<stateless-bean-methods-are-idempotent>False</stateless-bean-methods-are-ide
mpotent>
</stateless-clustering>
</stateless-session-descriptor>
<transaction-descriptor>
<trans-timeout-seconds>60</trans-timeout-seconds>
</transaction-descriptor>
<enable-call-by-reference>True</enable-call-by-reference>
<jndi-name>enroleejb.ManagedObjectImplHome</jndi-name>
</weblogic-enterprise-bean>
When I run ejbc it gives the following error.
[java] The file /meta-inf/weblogic-cmp-rdbms-jar.xml, specified
in a
type-storage element
of your weblogic-ejb-jar.xml descriptor, does not exist in the jar
file.
[java] at
weblogic.ejb20.persistence.PersistenceType.setTypeSpecificFile(PersistenceTy
pe.java:475)
[java] at
weblogic.ejb20.persistence.PersistenceType.setupDeployer(PersistenceType.jav
a:407)
[java] at
weblogic.ejb20.deployer.CMPInfoImpl.setup(CMPInfoImpl.java:114)
[java] at
weblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSources(EJB20CMPComp
iler.java:64)
[java] at
weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:223)
[java] at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:344)
[java] at weblogic.ejbc20.runBody(ejbc20.java:470)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:126)
[java] at weblogic.ejbc.main(ejbc.java:29)
In the generated jar file I have meta-inf\weblogic-cmp-rdbms.jar file.
Still it gives the error.
What could be the problem?
Any help would be appreciated.
Thanks,
Namrata -
Error while deploying the BMP Bean
Hi
Here Iam trying to deploy the Account(BMP)Bean in to WebAS
and the following error is getting while deplying.
Jun 28, 2005 6:18:42 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] INFO:
[027]Additional log information about the deployment.
can any one can help me on this?
thanks in advance.
Error follows.........
<!LOGHEADER[START]/>
<!HELP[Manual modification of the header may cause parsing problem!]/>
<!LOGGINGVERSION[1.5.3.7185 - 630]/>
<!NAME[C:\usr\sap\J2E\JC00\SDM\program\log\sdmcl20050628124840.log]/>
<!PATTERN[sdmcl20050628124840.log]/>
<!FORMATTER[com.sap.tc.logging.TraceFormatter(%24d %s: %m)]/>
<!ENCODING[Cp1252]/>
<!LOGHEADER[END]/>
Jun 28, 2005 6:18:40 PM Info: -
Starting deployment -
Jun 28, 2005 6:18:40 PM Info: Loading selected archives...
Jun 28, 2005 6:18:40 PM Info: Loading archive 'C:\usr\sap\J2E\JC00\SDM\program\temp\temp54349BankAccountApp.ear'
Jun 28, 2005 6:18:40 PM Info: Selected archives successfully loaded.
Jun 28, 2005 6:18:40 PM Info: Actions per selected component:
Jun 28, 2005 6:18:40 PM Info: Update: Selected development component 'BankAccountApp'/'sap.com'/'localhost'/'2005.06.28.18.18.29' updates currently deployed development component 'BankAccountApp'/'sap.com'/'localhost'/'2005.06.28.17.46.20'.
Jun 28, 2005 6:18:40 PM Info: The deployment prerequisites finished withtout any errors.
Jun 28, 2005 6:18:40 PM Info: Saved current Engine state.
Jun 28, 2005 6:18:40 PM Info: Error handling strategy: OnErrorStop
Jun 28, 2005 6:18:40 PM Info: Update strategy: UpdateAllVersions
Jun 28, 2005 6:18:40 PM Info: Starting: Update: Selected development component 'BankAccountApp'/'sap.com'/'localhost'/'2005.06.28.18.18.29' updates currently deployed development component 'BankAccountApp'/'sap.com'/'localhost'/'2005.06.28.17.46.20'.
Jun 28, 2005 6:18:40 PM Info: SDA to be deployed: C:\usr\sap\J2E\JC00\SDM\root\origin\sap.com\BankAccountApp\localhost\2005.06.28.18.18.29\temp54349BankAccountApp.ear
Jun 28, 2005 6:18:40 PM Info: Software type of SDA: J2EE
Jun 28, 2005 6:18:40 PM Info: ***** Begin of SAP J2EE Engine Deployment (J2EE Application) *****
Jun 28, 2005 6:18:41 PM Info: Begin of log messages of the target system:
05/06/28 18:18:40 - ***********************************************************
05/06/28 18:18:41 - Start updating EAR file...
05/06/28 18:18:41 - start-up mode is lazy
05/06/28 18:18:41 - EAR file updated successfully for 170ms.
05/06/28 18:18:41 - Start updating...
05/06/28 18:18:41 - EAR file uploaded to server for 70ms.
05/06/28 18:18:41 - ERROR: Not updated. Deploy Service returned ERROR:
java.rmi.RemoteException: Cannot deploy application sap.com/BankAccountApp..
Reason: null; nested exception is:
java.lang.NullPointerException
at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:592)
at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1278)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
Caused by: java.lang.NullPointerException
at com.sap.engine.services.ejb.EJBAdmin.needUpdate(EJBAdmin.java:337)
at com.sap.engine.services.deploy.server.application.UpdateTransaction.getContainersWhichNeedUpdate(UpdateTransaction.java:511)
at com.sap.engine.services.deploy.server.application.UpdateTransaction.getConcernedContainers(UpdateTransaction.java:467)
at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:356)
at com.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:146)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:290)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:323)
at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3023)
at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:580)
... 10 more
For detailed information see the log file of the Deploy Service.
05/06/28 18:18:41 - ***********************************************************
Jun 28, 2005 6:18:41 PM Info: End of log messages of the target system.
Jun 28, 2005 6:18:41 PM Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****
Jun 28, 2005 6:18:41 PM Error: Aborted: development component 'BankAccountApp'/'sap.com'/'localhost'/'2005.06.28.18.18.29':
Caught exception during application deployment from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Cannot deploy application sap.com/BankAccountApp..
Reason: null; nested exception is:
java.lang.NullPointerException
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
Jun 28, 2005 6:18:42 PM Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process.
Jun 28, 2005 6:18:42 PM Error: -
At least one of the Deployments failed -hi
i have gone through the visual administrator and in deployments there is not application called BankAccountApp and again i tried to deploy the same and this time it is giving the different error ...
Jun 29, 2005 5:08:14 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
[004]Deployment aborted
Settings
SDM host : INLD50043555
SDM port : 50018
URL to deploy : file:/C:/DOCUME1/c5065576/LOCALS1/Temp/temp20093BankAccountApp.ear
Result
=> deployment aborted : file:/C:/DOCUME1/c5065576/LOCALS1/Temp/temp20093BankAccountApp.ear
Aborted: development component 'BankAccountApp'/'sap.com'/'localhost'/'2005.06.28.18.18.29':
Caught exception during application deployment from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Cannot deploy application sap.com/BankAccountApp.. Reason: Incorrect application sap.com/BankAccountApp:Bean AccountBean: The primary key class java.lang.Object is not a legal Value Type in RMI-IIOP.Bean AccountBean: The primary key class java.lang.Object does not define method equals(java.lang.Object). The primary key class must provide suitable implementation of the equals(Object) method. EJB Specification 10.6.13.Bean AccountBean: The primary key class java.lang.Object does not define method hashCode(). The primary key class must provide suitable implementation of the hashCode() method. EJB Specification 10.6.13.Bean AccountBean. Illegal return type for method ejbCreate. The return type must be the entity bean's primary key type. EJB Specification 10.6.4.Bean AccountBean. The return type of ejbFinder methods must be the entity bean's primary key class, java.util.Collection, or java.util.Enumeration, but found com.examples.bmp.Account.Bean AccountBean. Method findByPrimaryKey(<PrimaryKeyClass>) not found in home interface com.examples.bmp.AccountHome. The remote home interface must always include the findByPrimaryKey method, which is always a single-object finder. The method must declare the primary key class as the method argument. EJB Specification 10.6.10.Error in the remote interface com.examples.bmp.Account of bean AccountBean: No corresponding business method in the bean class com.examples.bmp.AccountBean was found for method setAccountID.; nested exception is: com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='com.sap.engine.services.ejb.exceptions.deployment.EJBDeploymentException: Incorrect application sap.com/BankAccountApp:Bean AccountBean: The primary key class java.lang.Object is not a legal Value Type in RMI-IIOP.Bean AccountBean: The primary key class java.lang.Object does not define method equals(java.lang.Object). The primary key class must provide suitable implementation of the equals(Object) method. EJB Specification 10.6.13.Bean AccountBean: The primary key class java.lang.Object does not define method hashCode(). The primary key class must provide suitable implementation of the hashCode() method. EJB Specification 10.6.13.Bean AccountBean. Illegal return type for method ejbCreate. The return type must be the entity bean's primary key type. EJB Specification 10.6.4.Bean AccountBean. The return type of ejbFinder methods must be the entity bean's primary key class, java.util.Collection, or java.util.Enumeration, but found com.examples.bmp.Account.Bean AccountBean. Method findByPrimaryKey(<PrimaryKeyClass>) not found in home interface com.examples.bmp.AccountHome. The remote home interface must always include the findByPrimaryKey method, which is always a single-object finder. The method must declare the primary key class as the method argument. EJB Specification 10.6.10.Error in the remote interface com.examples.bmp.Account of bean AccountBean: No corresponding business method in the bean class com.examples.bmp.AccountBean was found for method setAccountID.
at com.sap.engine.services.ejb.deploy.verifier.Verifier.check(Verifier.java:66)
at com.sap.engine.services.ejb.deploy.DeployAdmin.generate(DeployAdmin.java:253)
at com.sap.engine.services.ejb.EJBAdmin.deploy(EJBAdmin.java:2133)
at com.sap.engine.services.ejb.EJBAdmin.makeUpdate(EJBAdmin.java:464)
at com.sap.engine.services.deploy.server.application.UpdateTransaction.makeComponents(UpdateTransaction.java:374)
at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:379)
at com.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:146)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:290)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:323)
at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3023)
at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:580)
at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1278)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key com.sap.engine.services.ejb.exceptions.deployment.EJBDeploymentException: Incorrect application sap.com/BankAccountApp:Bean AccountBean: The primary key class java.lang.Object is not a legal Value Type in RMI-IIOP.Bean AccountBean: The primary key class java.lang.Object does not define method equals(java.lang.Object). The primary key class must provide suitable implementation of the equals(Object) method. EJB Specification 10.6.13.Bean AccountBean: The primary key class java.lang.Object does not define method hashCode(). The primary key class must provide suitable implementation of the hashCode() method. EJB Specification 10.6.13.Bean AccountBean. Illegal return type for method ejbCreate. The return type must be the entity bean's primary key type. EJB Specification 10.6.4.Bean AccountBean. The return type of ejbFinder methods must be the entity bean's primary key class, java.util.Collection, or java.util.Enumeration, but found com.examples.bmp.Account.Bean AccountBean. Method findByPrimaryKey(<PrimaryKeyClass>) not found in home interface com.examples.bmp.AccountHome. The remote home interface must always include the findByPrimaryKey method, which is always a single-object finder. The method must declare the primary key class as the method argument. EJB Specification 10.6.10.Error in the remote interface com.examples.bmp.Account of bean AccountBean: No corresponding business method in the bean class com.examples.bmp.AccountBean was found for method setAccountID.
at com.sap.engine.services.ejb.deploy.verifier.Verifier.check(Verifier.java:66)
at com.sap.engine.services.ejb.deploy.DeployAdmin.generate(DeployAdmin.java:253)
at com.sap.engine.services.ejb.EJBAdmin.deploy(EJBAdmin.java:2133)
at com.sap.engine.services.ejb.EJBAdmin.makeUpdate(EJBAdmin.java:464)
at com.sap.engine.services.deploy.server.application.UpdateTransaction.makeComponents(UpdateTransaction.java:374)
at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:379)
at com.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:146)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:290)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:323)
at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3023)
at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:580)
at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1278)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
Deployment exception : The deployment of at least one item aborted
can anyone help me on this.
Thanks in advance
Vasu -
Error when deploying an CMP-Entity EJB
Hi ,
I am unable to deploy a simple example of CMP ,when i select Entity,then select Deployment Settings->Generate Default SQL,
My SQL Query is:'SELECT OBJECT(p) FROM Product p' for FfindAllProducts().
I get the error message:
ERROR:while generating SQL.
The SELECT clause has a return type that does not match the return type
of the select query for which it is defined
EJB QL statement: 'SELECT OBJECT(p)fROM Product p'
EJB QL method:public abstract java.util.Collection com.aa.ProductHome.findAllProducts() throws javax.ejb.FinderException,java.rmi.RemoteException.
Followinng are the codes of My bean
ProductHome.java
import javax.ejb.*;
import java.rmi.RemoteException;
import java.util.Collection;
public interface ProductHome extends EJBHome
Product create(String productId,String name , String description , double basePrice) throws CreateException,RemoteException;
public Product findByPrimaryKey(ProductPK key) throws FinderException,RemoteException;
public Collection findByName(String name) throws FinderException,RemoteException;
public Collection findByDescription(String description) throws FinderException,RemoteException;
public Collection findAllProducts() throws FinderException,RemoteException;
ProductBean.java
import javax.ejb.*;
import java.rmi.RemoteException;
public class ProductBean implements EntityBean
protected EntityContext ctx;
public String productid;
public String name;
public String description;
public ProductBean()
public String getName() throws RemoteException
return this.name;
public void setName(String name) throws RemoteException
this.name=name;
public String getDescription() throws RemoteException
return this.description;
public void setDescription(String description) throws RemoteException
this.description=description;
public String getProductId() throws RemoteException
return this.productid;
public void setProductId(String ProductId) throws RemoteException
this.productid=ProductId;
public void ejbActivate()
public void ejbPassivate()
public void ejbRemove()
public void ejbLoad()
public void ejbStore()
public void setEntityContext(EntityContext ctx)
this.ctx = ctx;
public void unsetEntityContext()
this.ctx = null;
public void ejbPostCreate(String productId,String name,String description,double baseprice)
public ProductPK ejbCreate(String productId,String name,String description,double baseprice) throws CreateException,RemoteException
called ");
setName(name);
setProductId(productId);
setDescription(description);
return null;
Product.java
import javax.ejb.*;
import java.rmi.RemoteException;
public interface Product extends EJBObject
public String getName() throws RemoteException;
public void setName(String name) throws RemoteException;
public String getDescription() throws RemoteException;
public void setDescription(String description) throws RemoteException;
public String getProductId() throws RemoteException;
public void setProductId(String productid) throws RemoteException;
ProductClient.java
import java.rmi.*;
import javax.rmi.*;
import javax.naming.*;
import javax.ejb.*;
import java.util.*;
public class ProductClient
public static void main(String ars[])
ProductHome home=null;
try
Context initial = new InitialContext();
Context myEnv = (Context)initial.lookup("java:comp/env");
Object objref = myEnv.lookup("ejb/TheProduct");
home = (ProductHome)PortableRemoteObject.narrow(objref,ProductHome.class);
home.create("123-446-7890","p5-350","350 Mhz Pentium",200 );
home.create("123-446-7891","p5-400","400 Mhz Pentium",300 );
home.create("123-446-7892","p5-450","450 Mhz Pentium",400 );
home.create("123-446-7893","p5-500","500 Mhz Pentium",500 );
home.create("123-446-7894","p5-550","550 Mhz Pentium",600 );
Iterator i = home.findByName("p5-400").iterator();
System.out.println(" Product Match the name of p5-400 " );
if ( i.hasNext() )
Product prod = (Product)PortableRemoteObject.narrow(i.next(),Product.class);
System.out.println(prod.getDescription());
else
throw new Exception(" Could not find Product ");
catch(Exception e)
System.out.println("Caught Exception " );
e.printStackTrace();
finally
if ( home != null)
System.out.println(" Destroying all products " );
try
Iterator i = home.findAllProducts().iterator();
while ( i.hasNext() )
Product prod = (Product)PortableRemoteObject.narrow(i.next(),Product.class);
if (prod.getProductId().startsWith("123"))
prod.remove();
catch (Exception e)
e.printStackTrace();
ProductPk.java
import java.io.Serializable;
public class ProductPK implements java.io.Serializable
public String ProductId ;
public ProductPK(String id)
this.ProductId = id;
public ProductPK()
public String toString()
return ProductId;
public int hashCode()
return ProductId.hashCode();
public boolean equals(Object Product)
return ((ProductPK)Product).ProductId.equals(ProductId);can u pls tell me u are using ejb1.1 specifications or ejb2.0 specifications.in both cases pls shoe u are descripters so that i can check.
-
Port error while deploying a dictonary project to j2ee server
Hello,
I created a dictonary project in sap netweaver developer studio 7.1.The j2ee server and the database (both on a remote server) are running and configured.
When i try to deploy it i get the following errors
[#3]: DC API is trying to connect to '<server name>:50004' [INFO: Jan 31, 2008 9:28:26 PM /userOut/daView_category (eclipse.UserOutLocation) [Thread[main,6,main]] ]
om.sap.ide.eclipse.deployer.api.APIException: ConnectionException,cause=[ERROR CODE DPL.DCAPI.1144] NamingException.Cannot get initial context.
Reason: Exception during getInitialContext operation. Cannot establish connection to the remote server.
The error is guess is the port number.My server is configured on port 50000 and here it is showing 50004.If i am correct then how do i configure my applications port number?
I searched and saw some messages like open \usr\SAP\<SID>\SYS\profile ,edit the port and similar solutions.Where is this "\usr\SAP\<SID>\SYS\profile " location?My server is on a remote machine.How do i configure my client to pick up the correct port ?
Thank you in advance.
Thanks and Regards
Sirithe issue got solved..the error was not about the port..on restarting the server i was able to deploy my project..
-
Error in Deploying CMP Bean!!!
i'm writing a CMP Bean. i wrote the Bean , home and remote interfaces. i'm using weblogic 7.0 as my application server.
1. what is the default data base for the weblogic 7.0.
2. should v create any table while deploying the CMP bean in a database. i think there is no need because the container will take care of it.
3. what is the need of <Data-source-name> in the deployment descriptor file weblogic-cmp-ejb-jar.xml. this is a mandatory field. can i give a random name here? if not, how 2 create a data source name.
please refer my deployment descriptor file.s
<!DOCTYPE weblogic-rdbms-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB RDBMS Persistence//EN'
'http://www.bea.com/servers/wls700/dtd/weblogic-rdbms20-persistence-700.dtd'>
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>Product</ejb-name>
<data-source-name>examples-dataSource-demoPool</data-source-name>
<table-map>
<table-name>TORDER</table-name>
<field-map>
<cmp-field>productID</cmp-field>
<dbms-column>PRODUCTID</dbms-column>
</field-map>
<field-map>
<cmp-field>name</cmp-field>
<dbms-column>NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>description</cmp-field>
<dbms-column>DESCRIPTION</dbms-column>
</field-map>
<field-map>
<cmp-field>basePrice</cmp-field>
<dbms-column>BASEPRICE</dbms-column>
</field-map>
</table-map>
</weblogic-rdbms-bean>
<create-default-dbms-tables>True</create-default-dbms-tables>
</weblogic-rdbms-jar>
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>Product</ejb-name>
<home>examples.ProductHome</home>
<remote>examples.Product</remote>
<ejb-class>examples.ProductBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>ProductBean</abstract-schema-name>
<cmp-field>
<field-name>productID</field-name>
</cmp-field>
<cmp-field>
<field-name>name</field-name>
</cmp-field>
<cmp-field>
<field-name>description</field-name>
</cmp-field>
<cmp-field>
<field-name>basePrice</field-name>
</cmp-field>
<primkey-field>productID</primkey-field>
<query>
<query-method>
<method-name>findByName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(p) FROM ProductBean AS p WHERE p.name = ?1]]>
</ejb-ql>
</query>
<query>
<query-method>
<method-name>findByDescription</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(p) FROM ProductBean AS p WHERE p.description = ?1]]>
</ejb-ql>
</query>
<query>
<query-method>
<method-name>findByBasePrice</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(p) FROM ProductBean AS p WHERE p.basePrice = ?1]]>
</ejb-ql>
</query>
<query>
<query-method>
<method-name>findExpensiveProducts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(p) FROM ProductBean AS p WHERE p.basePrice > ?1]]>
</ejb-ql>
</query>
<query>
<query-method>
<method-name>findCheapProducts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(p) FROM ProductBean AS p WHERE p.basePrice < ?1]]>
</ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllProducts</method-name>
<method-params>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(p) FROM ProductBean AS p WHERE p.productID IS NOT NULL]]>
</ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>Product</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN" "http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd" >
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>Product</ejb-name>
<entity-descriptor>
<entity-cache>
<max-beans-in-cache>1000</max-beans-in-cache>
</entity-cache>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<jndi-name>RemoteProductHome</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
4. when i tried to deploy the following error occurs.. how to fix the errror.
weblogic.management.ApplicationException: activate failed forrgcmp1
Module Name: rgcmp1, Error: Exception activating module: EJBModule(rgcmp1,status=PREPARED)
Unable to deploy EJB: Product from rgcmp1.jar:
The DataSource with the JNDI name: examples-dataSource-demoPool could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
TargetException:
Unable to deploy EJB: Product from rgcmp1.jar:
The DataSource with the JNDI name: examples-dataSource-demoPool could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1097)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1078)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1144)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:764)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)i tried to configure my data source and the following error occured.
After opening the Admin console, in 'connection pool' i created a demo pool and deployed it.(i refered the samples (Weblogic) for doing this ...even to tell more precisely i did a copy/paste).
Name : demopool
URL : jdbc:pointbase:server://localhost/demo
Driver Classname : com.pointbase.xa.xaDataSource
Properties (key=value); ser=examples DatabaseName=jdbc:pointbase:server://localhost/demo
password: weblogic
open sting password: weblogic
then i tried to create the data source..
Name: examples-dataSource-demoPool
jndi name: rgexample
pool name: demopool
Row Prefetch Size : 48
Stream Chunk Size : 256
then the following error occured while deployment.
java.lang.reflect.InvocationTargetException: weblogic.management.DistributedManagementException: Distributed Management [1 exceptions]
Error creating data source
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:653)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:437)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:928)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:472)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:200)
at $Proxy18.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(DynamicMBeanImpl.java:1802)
at weblogic.management.internal.DynamicMBeanImpl.access$2(DynamicMBeanImpl.java:1755)
at weblogic.management.internal.DynamicMBeanImpl$2.run(DynamicMBeanImpl.java:1733)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1729)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1053)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:371)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:874)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:326)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:195)
at $Proxy14.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:145)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
Distributed update exception
- remote object: RaghuDomain:Location=egserver,Name=egserver,Type=ServerConfig
- remote server: weblogic.management.internal.RemoteMBeanServerImpl@673498
- actionName: addDeployment
- params: [Ljava.lang.Object;@19f294
- signature: [Ljava.lang.String;@4f787
Distributed update exception
- remote object: RaghuDomain:Location=egserver,Name=egserver,Type=ServerConfig
- remote server: weblogic.management.internal.RemoteMBeanServerImpl@673498
java.lang.Exception: weblogic.common.ResourceException: DataSource(rgexample) can't be created with non-existent Pool (connection or multi) (demopool)
at weblogic.jdbc.common.internal.JdbcInfo.validateConnectionPool(JdbcInfo.java:126)
at weblogic.jdbc.common.internal.JdbcInfo.startDataSource(JdbcInfo.java:262)
at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:293)
at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:154)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:750)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:732)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:435)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:928)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:596)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:437)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:928)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:472)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:200)
at $Proxy18.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(DynamicMBeanImpl.java:1802)
at weblogic.management.internal.DynamicMBeanImpl.access$2(DynamicMBeanImpl.java:1755)
at weblogic.management.internal.DynamicMBeanImpl$2.run(DynamicMBeanImpl.java:1733)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1729)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1053)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:371)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:874)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:326)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:195)
at $Proxy14.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:145)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
at weblogic.jdbc.common.internal.JdbcInfo.startDataSource(JdbcInfo.java:286)
at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:293)
at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:154)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:750)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:732)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:435)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:928)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:596)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:437)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:928)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:472)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:200)
at $Proxy18.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(DynamicMBeanImpl.java:1802)
at weblogic.management.internal.DynamicMBeanImpl.access$2(DynamicMBeanImpl.java:1755)
at weblogic.management.internal.DynamicMBeanImpl$2.run(DynamicMBeanImpl.java:1733)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1729)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1053)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:371)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:874)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:326)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:195)
at $Proxy14.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:145)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
--------------- nested within: ------------------
weblogic.management.DeploymentException: Error creating data source - with nested exception:
[java.lang.Exception: weblogic.common.ResourceException: DataSource(rgexample) can't be created with non-existent Pool (connection or multi) (demopool)
at weblogic.jdbc.common.internal.JdbcInfo.validateConnectionPool(JdbcInfo.java:126)
at weblogic.jdbc.common.internal.JdbcInfo.startDataSource(JdbcInfo.java:262)
at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:293)
at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:154)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:750)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:732)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:435)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:928)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:596)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:437)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:928)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:472)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:200)
at $Proxy18.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(DynamicMBeanImpl.java:1802)
at weblogic.management.internal.DynamicMBeanImpl.access$2(DynamicMBeanImpl.java:1755)
at weblogic.management.internal.DynamicMBeanImpl$2.run(DynamicMBeanImpl.java:1733)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1729)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1053)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:371)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:874)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:326)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:195)
at $Proxy14.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:145)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:295)
at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:154)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:750)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:732)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:435)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:928)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:596)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:437)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:928)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:472)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:200)
at $Proxy18.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(DynamicMBeanImpl.java:1802)
at weblogic.management.internal.DynamicMBeanImpl.access$2(DynamicMBeanImpl.java:1755)
at weblogic.management.internal.DynamicMBeanImpl$2.run(DynamicMBeanImpl.java:1733)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1729)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1053)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:371)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:874)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:326)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:195)
at $Proxy14.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:145)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
--------------- nested within: ------------------
weblogic.management.DistributedOperationUpdateException: Error creating data source - with nested exception:
[weblogic.management.DeploymentException: Error creating data source - with nested exception:
[java.lang.Exception: weblogic.common.ResourceException: DataSource(rgexample) can't be created with non-existent Pool (connection or multi) (demopool)
at weblogic.jdbc.common.internal.JdbcInfo.validateConnectionPool(JdbcInfo.java:126)
at weblogic.jdbc.common.internal.JdbcInfo.startDataSource(JdbcInfo.java:262)
at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:293)
at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:154)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:750)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:732)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:435)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:928)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:596)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:437)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:928)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:472)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:200)
at $Proxy18.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(DynamicMBeanImpl.java:1802)
at weblogic.management.internal.DynamicMBeanImpl.access$2(DynamicMBeanImpl.java:1755)
at weblogic.management.internal.DynamicMBeanImpl$2.run(DynamicMBeanImpl.java:1733)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1729)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1053)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:371)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:874)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:326)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:195)
at $Proxy14.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:145)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:607)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:437)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:928)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:472)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:200)
at $Proxy18.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(DynamicMBeanImpl.java:1802)
at weblogic.management.internal.DynamicMBeanImpl.access$2(DynamicMBeanImpl.java:1755)
at weblogic.management.internal.DynamicMBeanImpl$2.run(DynamicMBeanImpl.java:1733)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1729)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1053)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:371)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:874)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:326)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:195)
at $Proxy14.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:145)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.se--------------- nested within: ------------------
weblogic.management.console.utils.SetException: An error occurred while updating Targets-Server on Proxy for RaghuDomain:Name=examples-dataSource-demoPool,Type=JDBCDataSource - with nested exception:
[java.lang.reflect.InvocationTargetException - with target exception:
[weblogic.management.DistributedManagementException: Distributed Management [1 exceptions]
Error creating data source]]
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:181)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
at weblogic.kernel.Exe -
SQL error during CMP bean deployment
Hi,
the following exception occures when I deploy a CMP bean to a remote OC4J server (it works fine when I use the internal OC4J process of JDeveloper using the same JDBC connection):
Auto-unpacking E:\Apps\OC4J\j2ee\home\applications\statful.ear... done.
Auto-deploying statful (Assembly had been updated)...
SQL error: E/A-Exception: The Network Adapter could not establish the connection
Warning: Error creating table: E/A-Exception: The Network Adapter could not esta
blish the connection
Auto-deploying statful.jar (ejb-jar.xml had been touched since the previous depl
oyment)... SQL error: E/A-Exception: The Network Adapter could not establish the
connection
Warning: Error creating table: E/A-Exception: The Network Adapter could not esta
blish the connection
done.
The JDBC connection string is "jdbc:oracle:thin:@guopingc:1521:localdb", and it works well if I use it in another java client, like DBVisualizer.
Thanks!
CU, ChrisChris,
Thanks for that quick little tip! I've been having the same error and just spent close to two hours looking through newsgroups et al. for help. Naturally, they all suggest that the database isn't started or the connection data is incorrect. I did what you suggested and now I'm back in business!
If any Oracle or Atlassian oc4j folks are reading - I was receiving a "Network adaptor could not establish a connection" message when deploying to oc4j from jdeveloper. (To Oracle 8.1.7 w/ jdeveloper 9.0.2.8.2 and ocj4 that came with that.) HOWEVER #1, "test"ing both my app server connnection and database connection worked perfectly from within jdeveloper. I could even open the DB connection and view the db contents. HOWEVER #2, my deployment worked for a while before I started seeing this error. That is, I first created 4 EJBs and deployedc to the container completely successfully. I made some changes and re-deployed successfully. Then I added 3 more beans and started getting the error! This should be fixed..... -
Exception - Deploying CMP bean with Postgres DB
Hi,
When I deploy a CMP bean in Weblogic6.1 configured with Postgres Database it throws the following exception.
<Oct 22, 2002 5:55:10 PM IST> <Error> <J2EE> <Error deploying application EjbTes
t:
Unable to deploy EJB: EjbTest.jar from EjbTest.jar:
Exception: 'java.lang.NullPointerException' while trying to invoke: setB
eanParamsForCreate at line 25
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:302)
at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:296)
at weblogic.ejb20.deployer.Deployer.compileEJB(Deployer.java:684)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:851)
<Oct 22, 2002 5:55:10 PM IST> <Error> <Management> <Error deploying application
.\config\siptech\applications\EjbTest.jar: java.lang.reflect.UndeclaredThrowable
Exception>
Thankx,
JaganHi. This isn't a jdbc question, so you'll have better luck posting this to the ejb group.
Joe
Jagan wrote:
Hi,
When I deploy a CMP bean in Weblogic6.1 configured with Postgres Database it throws the following exception.
<Oct 22, 2002 5:55:10 PM IST> <Error> <J2EE> <Error deploying application EjbTes
t:
Unable to deploy EJB: EjbTest.jar from EjbTest.jar:
Exception: 'java.lang.NullPointerException' while trying to invoke: setB
eanParamsForCreate at line 25
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:302)
at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:296)
at weblogic.ejb20.deployer.Deployer.compileEJB(Deployer.java:684)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:851)
<Oct 22, 2002 5:55:10 PM IST> <Error> <Management> <Error deploying application
.\config\siptech\applications\EjbTest.jar: java.lang.reflect.UndeclaredThrowable
Exception>
Thankx,
Jagan -
Lookup of CMP Bean from client
After Deploying the CMP Bean from jdeveloper, the client is unable to lookup the Bean using the JNDI name. It gives unknown URL. All the libraries are added to the client.
Hi Zoongu,
Please look into the server.log for the actual exception message (and the stack trace).
You can call a CMP from a remote application client, but keep in mind that each and every method invocation will happen in a new transaction (there is no transaction
propagation between an app client and a server). It's a much better practice to access
a Session bean from the client (once) to perform all operations in the same transaction.
regards,
-marina -
Error while deploying CMP Bean
hi all,
i'm very new in J2EE Technology .I was trying one of the sample application available in sun one examples and sample applicationsm site.
I have registered a datasource called hari
in my server instance
when im deploying the J2EE Application which contains a CMP Bean, when i deploy in the final stage i'm getting an error
"javax.naming.InvalidNameException:
error loading c:\j2sdkee1.3.1\repository\c3018a\applications\CMPApp1046345051707Server.jar;nested exception is:
javax.naming.InvalidNameException:
Real JNDI name cannot be empty for hari
can anyone help me to fix this problem ,where exactly i have to mention the real name for this DataSourceSounds like there is a resource-ref in your application that
has not been mapped to a physical datasource in the
sun-j2ee-ri.xml file.
e.g. :
<resource-ref>
<res-ref-name>jdbc/AccountDB</res-ref-name>
<jndi-name>jdbc/XACloudscape</jndi-name>
<default-resource-principal>
<name>scott</name>
<password>tiger</password>
</default-resource-principal>
</resource-ref>
See the J2EE Tutorial for additional examples.
--ken -
Error in weblogic.ejbc while deploying the CMP entity bean.!!!
Tried to deploy the entity bean[CMP] with the following folder structure.
examples [package]
Product.class
productBean.class
etc.
META-INF
ejb-jar.xml
weblogic-ejb-jar.xml.
weblogic-cmp-rdbms-jar.xml
created a jar..with the following command
1.jar cvf rgegcmp.jar examples META-INF
tried to create the stubs and skeletons using weblogic.ejbc command.
2. java weblogic.ejbc rgegcmp.jar rgegcmp1.jar
C:\btcomprj\BTCOMPRJ\classes>java weblogic.ejbc rgegcmp.jar rgegcmp1.jar
<Oct 11, 2004 4:29:29 PM IST> <Warning> <EJB> <010054> <EJB Deployment: Product has a
class examples.ProductBean which is in
the classpath. This class should only be located in the ejb-jar file.>
<Oct 11, 2004 4:29:29 PM IST> <Warning> <EJB> <010054> <EJB Deployment: Product has a
class examples.ProductHome which is in
the classpath. This class should only be located in the ejb-jar file.>
<Oct 11, 2004 4:29:29 PM IST> <Warning> <EJB> <010054> <EJB Deployment: Product has a
class examples.Product which is in the
classpath. This class should only be located in the ejb-jar file.>
<Oct 11, 2004 4:29:29 PM IST> <Warning> <EJB> <010054> <EJB Deployment: Product has a
class examples.ProductLocalHome which i
s in the classpath. This class should only be located in the ejb-jar file.>
<Oct 11, 2004 4:29:29 PM IST> <Warning> <EJB> <010054> <EJB Deployment: Product has a
class examples.ProductLocal which is in
the classpath. This class should only be located in the ejb-jar file.>
<Oct 11, 2004 4:29:29 PM IST> <Warning> <EJB> <010054> <EJB Deployment: Product has a
class examples.ProductPK which is in th
e classpath. This class should only be located in the ejb-jar file.>
ERROR: Error from ejbc: null
java.lang.NullPointerException
at
weblogic.ejb20.deployer.CompositeMBeanDescriptor.getPersistenceUseIdentifier(Composite
MBeanDescriptor.java:1484)
at weblogic.ejb20.deployer.CMPInfoImpl.<init>(CMPInfoImpl.java:104)
at
weblogic.ejb20.deployer.EntityBeanInfoImpl.<init>(EntityBeanInfoImpl.java:135)
at
weblogic.ejb20.deployer.BeanInfoImpl.createBeanInfoImpl(BeanInfoImpl.java:349)
at
weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInf
oImpl.java:438)
at
weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:16
5)
at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:151)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:332)
at weblogic.ejbc20.runBody(ejbc20.java:479)
at weblogic.utils.compiler.Tool.run(Tool.java:126)
at weblogic.ejbc.main(ejbc.java:29)
ERROR: ejbc found errors
1. want to know why Null pointer exception is thrown by 'weblogic.ejbc'...
is it indicating an error in my code(bean); .....
i dont know how to fix the error.
find the deployments descriptors which i have written for deployment.
weblogic-ejb-jar.xml
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB//EN'
'http://www.bea.com/servers/wls700/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>Product</ejb-name>
<jndi-name>rgexample</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
ejb-jar.xml
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>Product</ejb-name>
<home>examples.ProductHome</home>
<remote>examples.Product</remote>
<local-home>examples.ProductLocalHome</local-home>
<local>examples.ProductLocal</local>
<ejb-class>examples.ProductBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>examples.ProductPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>ProductBean</abstract-schema-name>
<cmp-field>
<field-name>productID</field-name>
</cmp-field>
<cmp-field>
<field-name>name</field-name>
</cmp-field>
<cmp-field>
<field-name>description</field-name>
</cmp-field>
<cmp-field>
<field-name>basePrice</field-name>
</cmp-field>
<query>
<query-method>
<method-name>findByName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM ProductBean AS a WHERE name =
?1]]>
</ejb-ql>
</query>
<query>
<query-method>
<method-name>findByDescription</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM ProductBean AS a WHERE description
= ?1]]>
</ejb-ql>
</query>
<query>
<query-method>
<method-name>findByBasePrice</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM ProductBean AS a WHERE basePrice =
?1]]>
</ejb-ql>
</query>
<query>
<query-method>
<method-name>findExpensiveProducts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM ProductBean AS a WHERE basePrice >
?1]]>
</ejb-ql>
</query>
<query>
<query-method>
<method-name>findCheapProducts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM ProductBean AS a WHERE basePrice < ?1]]>
</ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllProducts</method-name>
<method-params>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM ProductBean AS a WHERE productID
IS NOT NULL]]>
</ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>Product</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
weblogic-cmp-rdbms-jar.xml
<!DOCTYPE weblogic-rdbms-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB RDBMS Persistence//EN'
'http://www.bea.com/servers/wls700/dtd/weblogic-rdbms20-persistence-700.dtd'>
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>Product</ejb-name>
<data-source-name>examples-dataSource-demoPool</data-source-name>
<table-map>
<table-name>TORDER</table-name>
<field-map>
<cmp-field>productID</cmp-field>
<dbms-column>PRODUCTID</dbms-column>
</field-map>
<field-map>
<cmp-field>name</cmp-field>
<dbms-column>NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>description</cmp-field>
<dbms-column>DESCRIPTION</dbms-column>
</field-map>
<field-map>
<cmp-field>basePrice</cmp-field>
<dbms-column>BASEPRICE</dbms-column>
</field-map>
</table-map>
</weblogic-rdbms-bean>
<create-default-dbms-tables>True</create-default-dbms-tables>
</weblogic-rdbms-jar>If you can have a look at a cmp example in the samples that ship with the server. My guess is that the weblogic-ejb-jar.xml file is missing the <persistence-use> element which for 810 would look like:
<persistence>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>7.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-use>
</persistence>
I seem to recall that the elements might be slightly different in structure for the wls700 version of the DTD, so please check that (I cannot, I'm at home and don't have everything here).
Give that a try and see if it doesn't solve your compilation failure.
Also, the compilation should not be throwing a null pointer exception in a case like that, I consider that to be a bug.
-thorick -
Error while deploying CMP.. can u pls tell me...
Hi,
Below is the error my jboss 3.2.3 container is throwing when i tried to deploy my CMP entity bean. It says
my ejbFindByPrimaryKey() method must be implemented,but in a CMP i am told the container will take care of the implementation, one just has to specify it in the home object.. can anyone pls tell me where i could have gone wrong.
2004-07-09 12:47:39,825 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/D:/jboss-3.2.3/server/default/deploy/product.jar
2004-07-09 12:47:40,404 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
Bean : Product
Section: 12.2.2
Warning: The class must be defined as public and must not be abstract.
2004-07-09 12:47:40,404 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
Bean : Product
Section: 12.2.5
Warning: Every entity bean must define the ejbFindByPrimaryKey method.
2004-07-09 12:47:40,419 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/D:/jboss-3.2.3/server/default/deploy/product.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:491)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy6.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)This is my code
ProductBean
import javax.ejb.EntityContext;
import javax.ejb.EntityBean;
public abstract class ProductBean implements EntityBean {
protected EntityContext ctx;
//All set and get Methods
public abstract String getName();
public abstract void setName(String name);
public abstract String getDescription() ;
public abstract void setDescription(String desc);
public abstract double getBasePrice() ;
public abstract void setBasePrice(double baseprice);
public abstract String getProductID();
public abstract void setProductID(String prodname);
//EJB required Methods
public void ejbActivate(){
System.out.println("ejbActivate called");
public void ejbRemove(){
System.out.println("ejbRemove called");
public void ejbPassivate(){
System.out.println("ejbPassivate called");
public void ejbLoad(){
System.out.println("ejbLoad called");
public void ejbStore(){
System.out.println("ejbStore called");
public void setEntityContext(EntityContext ctx){
System.out.println("setEntityContext called");
this.ctx=ctx;
public void UnsetEntityContext(){
System.out.println("UnsetEntityContext called");
this.ctx=null;
public void ejbPostCreate(String productID,String name,String description,double basePrice){
System.out.println("ejbPostCreate called");
public ProductKey ejbCreate(String productID,String name,String description,double basePrice){
System.out.println("Create method called");
setProductID(productID);
setName(name);
setDescription(description);
setBasePrice(basePrice);
return new ProductKey(productID); // i am not sure which to retun,
//return null;
//Well just on a note for the above
// I READ THAT CMP2.0 MUST RETURN NULL, BUT IN ED-ROMANS MASTERING
// EJB IT SAYS THE BEAN MUST RETURN THE PRIMARY KEY CLASS.
// I HAVE TRIED BOTH THE ABOVE RETURN VALUES, STILL I GET THE SAME
/ /ERROR.
HomeInterface
import java.rmi.RemoteException;
import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EJBHome;
import javax.ejb.FinderException;
public interface ProductHome extends EJBHome {
public Product create(String productID,String name,String description,double basePrice)throws CreateException,RemoteException;
public Product findByPrimaryKey(ProductKey key) throws FinderException,RemoteException;
public Collection findByName(String name) throws RemoteException,FinderException;
public Collection findByDescription(String desc) throws RemoteException,FinderException;
public Collection findByBasePrice(double basePrice) throws RemoteException,FinderException;
public Collection findByExpensiveProduct(double minPrice ) throws RemoteException,FinderException;
public Collection findCheapProducts(double maxPrice) throws RemoteException,FinderException;
public Collection findAllProducts() throws RemoteException,FinderException;
RemoteInterface
import java.rmi.RemoteException;
import javax.ejb.EJBObject;
public interface Product extends EJBObject {
public String getName() throws RemoteException;
public void setName(String name)throws RemoteException;
public String getDescription() throws RemoteException;
public void setDescription(String desc) throws RemoteException;
public double getBasePrice() throws RemoteException;
public void setBasePrice(double baseprice)throws RemoteException;
public String getProductID()throws RemoteException;
ProductKey class - This is my PRIMARY KEY CLASS
import java.io.Serializable;
public class ProductKey implements Serializable{
public String productID;
public ProductKey(){
public ProductKey(String prodID){
productID=prodID;
public String toString(){
return productID;
public int hashCode() {
return productID.hashCode();
public boolean equals(Object prod){
return ((ProductKey)prod).productID.equals(productID);
This is my ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar >
<description><![CDATA[No Description.]]></description>
<display-name>Generated by XDoclet</display-name>
<enterprise-beans>
<entity>
<description><![CDATA[]]></description>
<ejb-name>Product</ejb-name>
<home>ProductHome</home>
<local-home>ProductHomeLocal</local-home>
<remote>Product</remote>
<local-remote>ProductLocal</local-remote>
<ejb-class>ProductBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>ProductKey</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>ProductBean</abstract-schema-name>
<cmp-field> <field-name>productID</field-name></cmp-field>
<cmp-field> <field-name>name</field-name></cmp-field>
<cmp-field> <field-name>description</field-name></cmp-field>
<cmp-field> <field-name>basePrice</field-name></cmp-field>
<primkey-field>productID</primkey-field>
<query>
<query-method>
<method-name>findByName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) from ProductBean as a where name=?1]]>
</ejb-ql>
</query>
<query>
<query-method>
<method-name>findByBasePrice</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) from ProductBean as a where basePrice = ?1]]>
</ejb-ql>
</query>
<query>
<query-method>
<method-name>findExpensiveProducts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) from ProductBean as a where basePrice > ?1]]>
</ejb-ql>
</query>
<query>
<query-method>
<method-name>findCheapProducts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) from ProductBean as a where basePrice < ?1]]>
</ejb-ql>
</query>
<query>
<query-method>
<method-name>findAllProducts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) from ProductBean as a where productID IS NOT NULL]]>
</ejb-ql>
</query>
</entity>
</enterprise-beans>
</ejb-jar>
This is my jboss.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">
<jboss>
<unauthenticated-principal>nobody</unauthenticated-principal>
<enterprise-beans>
<entity>
<ejb-name>Product</ejb-name>
<jndi-name>ProductHome</jndi-name>
<local-jndi-name>ProductHomeLocal</local-jndi-name>
</entity>
</enterprise-beans>
<resource-managers>
</resource-managers>
</jboss>
This is my jbosscmp-jdbc.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE jbosscmp-jdbc PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 3.0//EN" "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd">
<jbosscmp-jdbc>
<defaults>
<datasource>java:/OracleDS</datasource>
<datasource-mapping>Oracle8</datasource-mapping>
</defaults>
<enterprise-beans>
<entity>
<ejb-name>Product</ejb-name>
<table-name>ProductTable</table-name>
<cmp-field>
<field-name>productID</field-name>
<column-name>PRODUCTID</column-name>
</cmp-field>
<cmp-field>
<field-name>name</field-name>
<column-name>NAME</column-name>
</cmp-field>
<cmp-field>
<field-name>description</field-name>
<column-name>DESCRIPTION</column-name>
</cmp-field>
<cmp-field>
<field-name>basePrice</field-name>
<column-name>BASEPRICE</column-name>
</cmp-field>
</entity>
</enterprise-beans>
</jbosscmp-jdbc> -
AssertionError while trying to deploy a CMP Entity bean
Following are my deployment-descriptors -
===========================================================================
ejb-jar.xml :-
===========
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<!-- Generated XML! -->
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>Product</ejb-name>
<home>entities.product.ProductHome</home>
<remote>entities.product.Product</remote>
<local-home>entities.product.ProductLocalHome</local-home>
<local>entities.product.ProductLocal</local>
<ejb-class>entities.product.ProductBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>entities.product.ProductPK</prim-key-class>
<reentrant>False</reentrant>
<abstract-schema-name>ProductBean</abstract-schema-name>
<cmp-field>
<field-name>productID</field-name>
</cmp-field>
<cmp-field>
<field-name>name</field-name>
</cmp-field>
<cmp-field>
<field-name>description</field-name>
</cmp-field>
<cmp-field>
<field-name>basePrice</field-name>
</cmp-field>
<query>
<query-method>
<method-name>findAllProducts</method-name>
<method-params>
</method-params>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM ProductBean AS o WHERE productID IS NOT NULL]]></ejb-ql>
</query>
<query>
<query-method>
<method-name>findByBasePrice</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM ProductBean AS o WHERE basePrice = ?1]]></ejb-ql>
</query>
<query>
<query-method>
<method-name>findByDescription</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM ProductBean AS o WHERE description = ?1]]></ejb-ql>
</query>
<query>
<query-method>
<method-name>findByName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM ProductBean AS o WHERE name = ?1]]></ejb-ql>
</query>
<query>
<query-method>
<method-name>findCheapProducts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM ProductBean AS o WHERE basePrice < ?1]]></ejb-ql>
</query>
<query>
<query-method>
<method-name>findExpensiveProducts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(o) FROM ProductBean AS o WHERE basePrice > ?1]]></ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>Product</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
=============================================================================
weblogic-ejb-jar :-
================
<!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN' 'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
<!-- Generated XML! -->
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>Product</ejb-name>
<entity-descriptor>
<pool>
</pool>
<entity-cache>
</entity-cache>
<persistence>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>7.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-use>
</persistence>
<entity-clustering>
</entity-clustering>
</entity-descriptor>
<transaction-descriptor>
</transaction-descriptor>
<jndi-name>ProductBean</jndi-name>
<local-jndi-name>LocalProductBean</local-jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
=============================================================================
weblogic-cmp-rdbms-jar.xml :-
=========================
<!DOCTYPE weblogic-rdbms-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB RDBMS Persistence//EN' 'http://www.bea.com/servers/wls810/dtd/weblogic-rdbms20-persistence-810.dtd'>
<!-- Generated XML! -->
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>Product</ejb-name>
<data-source-name>ConnDataSource</data-source-name>
<table-map>
<table-name>products</table-name>
<field-map>
<cmp-field>productID</cmp-field>
<dbms-column>id</dbms-column>
</field-map>
<field-map>
<cmp-field>name</cmp-field>
<dbms-column>name</dbms-column>
</field-map>
<field-map>
<cmp-field>description</cmp-field>
<dbms-column>description</dbms-column>
</field-map>
<field-map>
<cmp-field>basePrice</cmp-field>
<dbms-column>baseprice</dbms-column>
</field-map>
</table-map>
<weblogic-query>
<query-method>
<method-name>findByName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
</weblogic-query>
<weblogic-query>
<query-method>
<method-name>findByDescription</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
</weblogic-query>
<weblogic-query>
<query-method>
<method-name>findByBasePrice</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
</weblogic-query>
<weblogic-query>
<query-method>
<method-name>findExpensiveProducts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
</weblogic-query>
<weblogic-query>
<query-method>
<method-name>findCheapProducts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
</weblogic-query>
<weblogic-query>
<query-method>
<method-name>findAllProducts</method-name>
<method-params>
</method-params>
</query-method>
</weblogic-query>
</weblogic-rdbms-bean>
<create-default-dbms-tables>CreateOnly</create-default-dbms-tables>
</weblogic-rdbms-jar>
=============================================================================
Deployment of the bean fails, with following message -
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Assertion violated
at weblogic.utils.Debug.assertion(Debug.java:47)
at weblogic.ejb20.cmp.rdbms.Deployer.adjustDefaults(Deployer.java:240)
at weblogic.ejb20.cmp.rdbms.Deployer.readTypeSpecificData(Deployer.java:
365)
at weblogic.ejb20.persistence.PersistenceType.setTypeSpecificFile(Persis
tenceType.java:483)
at weblogic.ejb20.persistence.PersistenceType.setupDeployer(PersistenceT
ype.java:414)
at weblogic.ejb20.deployer.CMPInfoImpl.setup(CMPInfoImpl.java:110)
at weblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSources(EJB20
CMPCompiler.java:64)
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:245)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.ja
va:701)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationC
ontainer.java:2962)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplication
Container.java:1534)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
er.java:1188)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
er.java:1031)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.
prepareContainer(SlaveDeployer.java:2602)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createCon
tainer(SlaveDeployer.java:2552)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
laveDeployer.java:2474)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:798)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
oyer.java:507)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:465)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
=========================================================================
can somebody please tell me what is it that i am missing or setting incorrectly
thanks
paruli don't know much about the assertion error...but i have fixed that by just re-configuring my classpaths
try to check your classpaths if you've missed something
hope this helps... =)
Maybe you are looking for
-
Restore a collection from a backup
Hi, One thing that has been keeping me busy for a while and that one of you may be able to provide a solution for is the following: - I recently discovered that I deleted a collection set in the past (just the collection set, the photo's are still ph
-
Opening pdf attahcments?
I have just bought a Acrobat Adobe pack and am unable to open pdf incoming attahcments. A sign comes up for buying a pack.
-
Hi, I have a wierd problem. I had ERP04 on Oracle 9.2.0.6. We are going to ERP05 So i was upgrading my DB to 10.2.0.2 I had completed all the prerequisites, installed 10.0.0.1 and upgraded to patch 10.0.0.2 according to DB upgrade guide. I was runnin
-
SQL Developer Abrupt behaviour -- Invalid Identifier
I have tried to use below 2 SQL using Script output (F5) both of them are semantically incorrect, but first one give no error, while second one give error SELECT substr(argument,1,2) FROM DUAL WHERE XX_ID LIKE 'XX'; No error raised. SELECT argument F
-
I am running a mac using OS 10.9.1