Error deploying first CMP EJB

I'm trying to create and deploy a simple CMP EJB and am getting the following error
upon deployment:
C:\bea\wlserver6.1\tmp_ejbENBrianPr280\vwejbapp_Contactejb\vw\ejb\ContactEJB_za4
cvx__WebLogic_CMP_RDBMS.java:342: ';' expected java.lang.String __WL_query = "SELECT
WL0.name=\"FIRST_NAME\", WL0.name=\" CONTACT_ID\", WL0.name=\"LAST_NAME\" FROM
name=\"BASE_CONTACT\" WL0 WHERE (WL0. name="CONTACT_ID" = ?)" + __WL_pm.selectForUpdate();
I have tried using both EJBGEN and XDoclet to generate my classes and descriptors,
and WLS6.1 SP2 on Win2k.

I'm trying to create and deploy a simple CMP EJB and am getting the following error
upon deployment:
C:\bea\wlserver6.1\tmp_ejbENBrianPr280\vwejbapp_Contactejb\vw\ejb\ContactEJB_za4
cvx__WebLogic_CMP_RDBMS.java:342: ';' expected java.lang.String __WL_query = "SELECT
WL0.name=\"FIRST_NAME\", WL0.name=\" CONTACT_ID\", WL0.name=\"LAST_NAME\" FROM
name=\"BASE_CONTACT\" WL0 WHERE (WL0. name="CONTACT_ID" = ?)" + __WL_pm.selectForUpdate();
I have tried using both EJBGEN and XDoclet to generate my classes and descriptors,
and WLS6.1 SP2 on Win2k.

Similar Messages

  • Error when accessing CMP EJB methods

    I get a strange error, when I access a getter method in my remote interface to query the variables in my CMP EJB. I use Jdev 3.2 agains Oracle 8.1.7.
    I can see that the error must be originating from the persistance manager BC4J XML, but not sure how to resolve it, any help is appreciated.
    The line having the problem is the second line;
    portofolio.Portofolio remoteInterface = homeInterface.findByPrimaryKey("Fantacy");
    System.out.println("The record is " + remoteInterface.getPORTO_TYPE());
    The full error stack is as follows ( I don't see why there is a complaint about an update statement ?? );
    Caught RuntimeException in remote method; nested exception is:
    oracle.jbo.DMLException:JBO-26041: Failed to post data to database during "Update": SQL Statement " UPDATE PORTOFOLIO Portofolio123 SET VALUE=:1,PORTO_TYPE=:2,REAL_IND=:3,PORTO_NAME=:4,VALUED_ON=:5 WHERE PORTO_NAME=:6".
    Remote Stack Trace:
    oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Update": SQL Statement " UPDATE PORTOFOLIO Portofolio123 SET VALUE=:1,PORTO_TYPE=:2,REAL_IND=:3,PORTO_NAME=:4,VALUED_ON=:5 WHERE PORTO_NAME=:6".
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:348)
    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:3293)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:2588)
    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:1628)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:997)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:1151)
    at oracle.jbo.server.ejb.cmp.CMPTransactionImpl.beforeCompletion(CMPTransactionImpl.java:74)
    at oracle.aurora.transaction.OracleTransaction.localBeforeCompletion(OracleTransaction.java)
    at oracle.aurora.transaction.OracleTransactionManager.localBeforeCompletion(OracleTransactionManager.java)
    at oracle.aurora.transaction.OracleTransactionManager.rollback(OracleTransactionManager.java)
    at oracle.aurora.transaction.OracleTransactionManager.rollback(OracleTransactionManager.java)
    at oracle.aurora.ejb.server.AuroraEnterpriseBean.__txn_rollback(AuroraEnterpriseBean.java)
    at oracle.aurora.ejb.gen._test_omeed_Portofolio.EjbObject_Portofolio.getPORTO_TYPE(oracle/aurora/ejb/gen/_test_omeed_Portofolio/EjbObject_Portofolio:228)
    at portofolio._tie_Portofolio.getPORTO_TYPE(_tie_Portofolio.java:143)
    at portofolio._PortofolioImplBase._execute(_PortofolioImplBase.java:186)
    at portofolio._PortofolioImplBase._execute(_PortofolioImplBase.java:117)
    at com.visigenic.vbroker.orb.SkeletonDelegateImpl.execute(SkeletonDelegateImpl.java)
    at oracle.aurora.server.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java)
    at com.visigenic.vbroker.orb.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java)
    at oracle.aurora.server.ThreadSessionDispatcher.run(ThreadSessionDispatcher.java)
    at oracle.aurora.server.VCIiopConnection.processRequest(VCIiopConnection.java)
    at oracle.aurora.server.GiopServer._service(GiopServer.java)
    at oracle.aurora.server.GiopServer.service(GiopServer.java)
    at oracle.aurora.net.VirtualCircuit.processRequest(VirtualCircuit.java)
    at oracle.aurora.net.Presentation.handleRequest(Presentation.java)
    ## Detail 0 ##
    oracle.jdbc.driver.OracleSQLException: ORA-01861: literal does not match format string
    at oracle.jdbc.kprb.KprbDBAccess.check_error(KprbDBAccess.java)
    at oracle.jdbc.kprb.KprbDBAccess.executeFetch(KprbDBAccess.java)
    at oracle.jdbc.kprb.KprbDBAccess.parseExecuteFetch(KprbDBAccess.java)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:269)
    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:3293)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:2588)
    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:1628)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:997)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:1151)
    at oracle.jbo.server.ejb.cmp.CMPTransactionImpl.beforeCompletion(CMPTransactionImpl.java:74)
    at oracle.aurora.transaction.OracleTransaction.localBeforeCompletion(OracleTransaction.java)
    at oracle.aurora.transaction.O
    racleTransactionManager.localBeforeCompletion(OracleTransactionManager.java)
    at oracle.aurora.transaction.OracleTransactionManager.rollback(OracleTransactionManager.java)
    at oracle.aurora.transaction.OracleTransactionManager.rollback(OracleTransactionManager.java)
    at oracle.aurora.ejb.server.AuroraEnterpriseBean.__txn_rollback(AuroraEnterpriseBean.java)
    at oracle.aurora.ejb.gen._test_omeed_Portofolio.EjbObject_Portofolio.getPORTO_TYPE(oracle/aurora/ejb/gen/_test_omeed_Portofolio/EjbObject_Portofolio:228)
    at portofolio._tie_Portofolio.getPORTO_TYPE(_tie_Portofolio.java:143)
    at portofolio._PortofolioImplBase._execute(_PortofolioImplBase.java:186)
    at portofolio._PortofolioImplBase._execute(_PortofolioImplBase.java:117)
    at com.visigenic.vbroker.orb.SkeletonDelegateImpl.execute(SkeletonDelegateImpl.java)
    at oracle.aurora.server.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java)
    at com.visigenic.vbroker.orb.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java)
    at oracle.aurora.server.ThreadSessionDispatcher.run(ThreadSessionDispatcher.java)
    at oracle.aurora.server.VCIiopConnection.processRequest(VCIiopConnection.java)
    at oracle.aurora.server.GiopServer._service(GiopServer.java)
    at oracle.aurora.server.GiopServer.service(GiopServer.java)
    at oracle.aurora.net.VirtualCircuit.processRequest(VirtualCircuit.java)
    at oracle.aurora.net.Presentation.handleRequest(Presentation.java)
    oracle.aurora.ejb.RemoteRuntimeException: Caught RuntimeException in remote method; nested exception is:
    oracle.jbo.DMLException:JBO-26041: Failed to post data to database during "Update": SQL Statement " UPDATE PORTOFOLIO Portofolio123 SET VALUE=:1,PORTO_TYPE=:2,REAL_IND=:3,PORTO_NAME=:4,VALUED_ON=:5 WHERE PORTO_NAME=:6".
    Remote Stack Trace:
    oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Update": SQL Statement " UPDATE PORTOFOLIO Portofolio123 SET VALUE=:1,PORTO_TYPE=:2,REAL_IND=:3,PORTO_NAME=:4,VALUED_ON=:5 WHERE PORTO_NAME=:6".
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:348)
    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:3293)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:2588)
    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:1628)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:997)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:1151)
    at oracle.jbo.server.ejb.cmp.CMPTransactionImpl.beforeCompletion(CMPTransactionImpl.java:74)
    at oracle.aurora.transaction.OracleTransaction.localBeforeCompletion(OracleTransaction.java)
    at oracle.aurora.transaction.OracleTransactionManager.localBeforeCompletion(OracleTransactionManager.java)
    at oracle.aurora.transaction.OracleTransactionManager.rollback(OracleTransactionManager.java)
    at oracle.aurora.transaction.OracleTransactionManager.rollback(OracleTransactionManager.java)
    at oracle.aurora.ejb.server.AuroraEnterpriseBean.__txn_rollback(AuroraEnterpriseBean.java)
    at oracle.aurora.ejb.gen._test_omeed_Portofolio.EjbObject_Portofolio.getPORTO_TYPE(oracle/aurora/ejb/gen/_test_omeed_Portofolio/EjbObject_Portofolio:228)
    at portofolio._tie_Portofolio.getPORTO_TYPE(_tie_Portofolio.java:143)
    at portofolio._PortofolioImplBase._execute(_PortofolioImplBase.java:186)
    at portofolio._PortofolioImplBase._execute(_PortofolioImplBase.java:117)
    at com.visigenic.vbroker.orb.SkeletonDelegateImpl.execute(SkeletonDelegateImpl.java)
    at oracle.aurora.server.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java)
    at com.visigenic.vbroker.orb.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java)
    at oracle.aurora.server.ThreadSessionDispatcher.run(ThreadSessionDispatcher.java)
    at oracle.aurora.server.VCIiopConnection.processRequest(VCIiopConnection.java)
    at oracle.aurora.server.GiopServer._service(GiopServer.java)
    at oracle.aurora.server.GiopServer.service(GiopServer.java)
    at oracle.aurora.net.VirtualCircuit.processRequest(VirtualCircuit.java)
    at oracle.aurora.net.Presentation.handleRequest(Presentation.java)
    ## Detail 0 ##
    oracle.jdbc.driver.OracleSQLException: ORA-01861: literal does not match format string
    at oracle.jdbc.kprb.KprbDBAccess.check_error(KprbDBAccess.java)
    at oracle.jdbc.kprb.KprbDBAccess.executeFetch(KprbDBAccess.java)
    at oracle.jdbc.kprb.KprbDBAccess.parseExecuteFetch(KprbDBAccess.java)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:269)
    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:3293)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:2588)
    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:1628)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:997)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:1151)
    at oracle.jbo.server.ejb.cmp.CMPTransactionImpl.beforeCompletion(CMPTransactionImpl.java:74)
    at oracle.aurora.transaction.OracleTransaction.localBeforeCompletion(OracleTransac
    tion.java)
    at oracle.aurora.transaction.OracleTransactionManager.localBeforeCompletion(OracleTransactionManager.java)
    at oracle.aurora.transaction.OracleTransactionManager.rollback(OracleTransactionManager.java)
    at oracle.aurora.transaction.OracleTransactionManager.rollback(OracleTransactionManager.java)
    at oracle.aurora.ejb.server.AuroraEnterpriseBean.__txn_rollback(AuroraEnterpriseBean.java)
    at oracle.aurora.ejb.gen._test_omeed_Portofolio.EjbObject_Portofolio.getPORTO_TYPE(oracle/aurora/ejb/gen/_test_omeed_Portofolio/EjbObject_Portofolio:228)
    at portofolio._tie_Portofolio.getPORTO_TYPE(_tie_Portofolio.java:143)
    at portofolio._PortofolioImplBase._execute(_PortofolioImplBase.java:186)
    at portofolio._PortofolioImplBase._execute(_PortofolioImplBase.java:117)
    at com.visigenic.vbroker.orb.SkeletonDelegateImpl.execute(SkeletonDelegateImpl.java)
    at oracle.aurora.server.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java)
    at com.visigenic.vbroker.orb.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java)
    at oracle.aurora.server.ThreadSessionDispatcher.run(ThreadSessionDispatcher.java)
    at oracle.aurora.server.VCIiopConnection.processRequest(VCIiopConnection.java)
    at oracle.aurora.server.GiopServer._service(GiopServer.java)
    at oracle.aurora.server.GiopServer.service(GiopServer.java)
    at oracle.aurora.net.VirtualCircuit.processRequest(VirtualCircuit.java)
    at oracle.aurora.net.Presentation.handleRequest(Presentation.java)
    java.lang.String portofolio._st_Portofolio.getPORTO_TYPE()
    void portoclient.PortoClient.main(java.lang.String[])
    null

    Hi,
    How did you map the CMP-fields? I got the same Exceptions when I mapped a column which is DATE type to java.lang.String. DATE type column should be mapped to java.sql.Date.

  • Error deploying Bean with EJB QL statement in ejb-jar.xml

    Hi,
    I'm using Oracle iAS 9i Rev:9.03.
    I've tried to deploy a Entity Bean with the following EJB QL Query:
    </cmp-field>
    <query>
    <query-method>
    <method-name>findByProcessStep</method-name>
    <method-params>
    <method-param>java.lang.Integer</method-param>
    <method-param>java.lang.Integer</method-param>
    </method-params>
    </query-method>
    <ejb-ql>SELECT OBJECT(p) FROM Processparameter AS p WHERE p.stepid=?1 AND p.stepversion=?2</ejb-ql>
    </query>
    </entity>
    Without the query statement everything works fine. As soon as I include it I get the following Error message from dcmctl:
    ADMN-300075
    Nested exception
    Base Exception:
    java.rmi.RemoteException:Failure to initialize EJBQL descriptors: java.lang.RuntimeException: No method found for XML query element: Ambiguous or invalid <query-method>
    Is this an Oracle iAS error or is there an error in my query?
    Thanks in advance
    Jens

    try :
    p.stepid and p.stepversion are correct insert into <cmp-field> ?
    and Processparameter is the correct name of <abstract-schema-name>?
    is your <ejb-ql> insert in the right <entity> ?
    findByProcessStep(Integer, Integer) is the unique name in your ejb-jar? and in the (LocalHome ||RemoteHome)

  • Problems when deploying an CMP EJB to websphere

    Hi,
    I am trying to deploy my ear file which contains some CMP Entity Beans and a Session Bean on to websphere.
    I have tested my app on JBoss and Weblogic and it works fine. I believe i need some vendor specific info in order to deploy onto WS, but i dont know what it is.
    When i do deploy to WS i get the following error.
    EJB [TestEJB] is misconfigured: no CMP mapping defined by OpenEJB DD.
    Could someone let me know what this info is or where i can get it from.
    Thanks in advance

    For ADF with WebSphere please refer
    http://radio.weblogs.com/0118231/2004/02/27.html#a243
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtAnchor.CIHFHDJJ/vtTopicFile.adfdevguide%7Cdeployment_topics%7Ehtm/
    http://download-east.oracle.com/docs/html/B25947_01/deployment_topics012.htm#CIHBEEIJ

  • ORA-00904 Error while running CMP EJB

    When I am running my CMP bean, I get following error,
    2006-07-02 09:58:17,171 DEBUG org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.AccountBean#fi ndByAccountNumber] Executing SQL: SELECT t0_a.ACCOUNT.UOID FROM ACCOUNT t0_a WHERE (t0_a.ACCOUNT.ACCOUNT_NUMBER = ?)
    2006-07-02 09:58:17,250 ERROR [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.AccountBean#fi ndByAccountNumber] Find failed java.sql.SQLException:
    ORA- 00904: "T0_A"."ACCOUNT"."ACCOUNT_NUMBER": invalid identifier.
    Why is it giving invalide identifier? the length of this identifer is also less then 30 and there are no special characters being used in it.

    I think I have read that you cannot use the "." to navigate through the object, you can only use it for accessing a field of an object (i.e. a column of a table in the DB).
    So, never use more than 1 "." in your requests. In your case, I guess that you need to reformulate the request.

  • 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:49

    What is the jee version you have on that server? are the environment variables correctly set?

  • Error Deploying CMP Entity Bean

    Hi,
    I am new to Entity Beans and am trying to deploy a CMP Entity Bean without any success.
    I did search this forum for similar issues and tried those suggestions as well but that has not helped. Was wondering if someone could help me out on this.
    The Entity bean has 2 fields: name and description.
    The ejb-jar.xml file for this bean is:
    <enterprise-beans>
    <entity>
    <ejb-name>Product</ejb-name>
    <home>example.cmp.ProductHome</home>
    <remote>example.cmp.Product</remote>
    <ejb-class>example.cmp.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>PRODUCTS</abstract-schema-name>
    <cmp-field>
    <field-name>name</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>description</field-name>
    </cmp-field>
    <primkey-field>name</primkey-field>
    <query>
    </query>
    </entity>
    </enterprise-beans>
    The error that I get while deploying the bean is:
    Error deploying EJB homes for: file:/C:/servers/oc4j1013/j2ee/home/applications/cmptest/cmptest.jar
    java.lang.InstantiationException: Error looking up cmt-datasource at jdbc/OracleDS (name not found)
    at com.evermind.server.ApplicationState.getDataSourceContainer(ApplicationState.java:384)
    Error deploying file:/C:/servers/oc4j1013/j2ee/home/applications/cmptest/cmptest.jar
    homes: Error looking up cmt-datasource at jdbc/OracleDS (name not found)
    [java] [TopLink Severe]: 2005.04.17 10:22:20.156--ServerSession(28816172)--
    Local Exception Stack:
    [java] Exception [TOPLINK-7060] (TopLink (Oracle OC4J CMP) - 10g release 3(10.1.3.0) (Build 041129)): oracle.toplink.exceptions.ValidationException
    [java] Exception Description: Cannot acquire data source [jdbc/OracleDS].
    [java] Internal Exception: javax.naming.NameNotFoundException: jdbc/OracleDS not found
    [java] at oracle.toplink.exceptions.ValidationException.cannotAcquireDataSource(ValidationException.java:208)
    [java] at oracle.toplink.internal.ejb.cmp.oc4j.Oc4jNonJtaConnector.getOrCreateDataSource(Oc4jNonJtaConnector.java:62)
    If anybody knows what the problem is please let me know.
    Thanks in advance.
    Bhupen

    Please note that the data-source has been re-architectured in 10.1.3 DP3 and you should have DataSource as follows:
    <data-sources xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd' schema-major-version='10' schema-minor-version='1'>
    <managed-data-source connection-pool-name='Example Connection Pool' jndi-name='jdbc/OracleDS' name='OracleManagedDS' />
    <connection-pool name='Example Connection Pool' >
    <connection-factory factory-class='oracle.jdbc.pool.OracleDataSource' user='scott' password='tiger' url='jdbc:oracle:thin:@localhost:1521:orcl'>
    </connection-factory>
    </connection-pool>
    </data-sources>

  • 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.

  • CMP Ejb not deploying

    Hello all,
    Im running WLS 6.1 with SP3 evaluation version on Win2K Pro with Oracle
    8.1.6 database.
    Im new to Weblogic's deployment of EAR files. I am facing the following few
    problems when i try to deply any cmp entity bean:
    1. Though a common file that the EJB jar depends on, is present in the EAR
    file, I get errors NoClassDefFound errors for that class. I read posts which
    talk about how WLS is a bit different in this regard and that common files
    will have to added separately to the classpath or bundled with the ejb jar.
    However isnt that defeating the purpose of an EAR file?
    2. I added the common class to the classpath in the startup script and
    restarted weblogic. I get the following message on the console :
    <Sep 10, 2002 10:22:55 AM BST> <Error> <J2EE> <Error deploying application
    ejbDeployedCore121:
    Unable to deploy EJB: Accbaladj from ejbDeployedCore121.jar:
    The Container-Managed Persistence Entity EJB failed while creating its SQL
    Type Map. The error was: null, Exception = null
    I havent read any posts which answer this problem. I created my ear file
    from scratch (compilation and ejbc of the source with the new WLS6.1 tools)
    and am trying to deploy it but repeatedly failing.
    3. Also could somebody point out a good online article/book/paper, which
    talks about WLS 6.1 deployments of EAR files, rather like Websphere's
    redbooks do about WAS?
    If anybody has any idea of any of the above issues, I would be grateful if
    you could mail in a reply.
    TAR
    Pavan

    The issues are resolved now.
    1. This classpath entry problem was a bit mystifying. The manifest entry was
    correct and it should have picked it up automatically. When i restarted the
    server though, it started up properly.
    2. The CMP problem was a bit more troublesome. I think it was because of an
    incorrect datasource and connection pool properties. I used utils.Schema to
    check my database connection and once i got the url and driver name
    correctly it worked.
    TAR,
    Pavan

  • Error in deploying a simple EJB 3.0

    Hi ,
    I am getting the following error while deploying my simple ejb of version 3.0 in Weblogic 9.2.
    Exception preparing module: EJBModule(build) [EJB:011023]An error occurred while reading the deployment descriptor. The error was: Error processing annotations: java.lang.NullPointerException.
    During my evaluation of Weblogic 9.2 for EJB 3.0 , I have got the following questions.
    EJB Specification states that EJB's in EJB 3.0 can be developed and deployed without the need of deployment descriptors. I have created a simple EJB with two file Env.java and EnvBean.java and the source code is given below.
    a) I just complied these class files and when I was trying to deploy without ejb-jar.xml and weblogic-ejb-jar.xml, the console was not at all allowing me to deploy.Why is this so?
    b) After I created a META-INF file under root of classes directory by placing ejb-jar.xml with empty <enterprise-beans> element, console was allowing me to deploy with errors in parsing ejb-jar.xml. The error was either session/entity/mdb is a required under <enterprise-beans> element. Why is this required when there are several examples stating <enterprise-beans> element can be empty.
    c) Later I updated ejb-jar.xml with <session> element under <enterprise-beans> with the following values. I got the above error when deployed with this change.
    I had been struggling to deploy this simple bean for almost a day.Pleas point me if there is any documentation that solves my stated problem or if there is a solution.Thanks in advance.
    regards
    Karim
    ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" version="3.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
    <enterprise-beans>
    <session>
    <description>This is the stateless ejb</description>
    <display-name>Env Bean</display-name>
    <ejb-name>EnvBean</ejb-name>
    </session>
    </enterprise-beans>
    </ejb-jar>
    Env.java
    package examples ;
    public interface Env {
    public void display();
    EnvBean.java
    package examples;
    import javax.ejb.Remote;
    import javax.ejb.Stateless;
    @Stateless
    @Remote(Env.class)
    public class EnvBean implements Env {
    public void display() {
    System.out.println("Welcome to EJB 3.0");
    }

    Presumably you're using the EJB3 tech preview, and not a vanilla WebLogic 9.2 install, right?
    Can you post the full stack trace?
    -Patrick

  • Error deploying EJB in weblogic 7.0

    Hello
    I am trying to deploy EJB 2.0, to Weblogic 7.0 server on IBM machine and i am
    getting this following error. Previously I have tested deploying the same EJB
    to weblogic 7.0 server on my local PC which based on Windows, and everything seems
    Ok.
    Unable to deploy EJB: DACEJB.jar from DACEJB.jar:
    Compiler failed executable.exec(java.lang.String[javac, -nowarn, -classpath, /bea/weblogic700/server/bin/tmp_ejbsmeap01ibm7001myserver/-1spvbzuqlvq3z:/bea/weblogic700/server/bin/DACEJB.jar:/usr/java131/jre/lib/rt.jar:/usr/java131/jre/lib/i18n.jar:/usr/java131/jre/classes:/CMS/CORP/config/:/bea/weblogic700:/bea/weblogic700/server/lib/crack.jar:/bea/weblogic700/server/lib/classes12_g.jar:/bea/weblogic700/server/lib/HostMsgDriverV2.1_oracle.jar:/bea/weblogic700/server/lib/aal2wrap.jar:/bea/weblogic
    700/server/lib/log4j.jar:/bea/weblogic700/server/lib/Opta2000.jar:/bea/weblogic700/server/lib/xmlx.jar:/bea/weblogic700/server/lib/VelisAuth.jar:/bea/weblogic700/server/lib/jython.jar:/usr/java131/lib/tools.jar:/bea/weblogic700/server:/bea/weblogic700/server/lib/weblogic_sp.jar:/bea/weblogic700/server/lib/weblogic.jar:,
    -d, tmp_ejbsmeap01ibm7001myserver/-
            at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java(Compiled
    Code))
            at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:396)
            at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:490)
            at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:793)
            at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1242)
            at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:242)
            at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java(Compiled
    Code))
            at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java(Compiled
    Code))
            at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java(Compiled
    Code))
            at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java(Compiled
    Code))
            at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java(Compiled
    Code))
            at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
            at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
            at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    This may happen because javac is not available to weblogic.
    Make sure that PATH environment variable used to start the server includes path to Java SDK bin dir with javac in it.
    Regards,
    Slava Imeshev
    "Jennifer" <[email protected]> wrote in message news:[email protected]...
    >
    Hello
    I am trying to deploy EJB 2.0, to Weblogic 7.0 server on IBM machine and i am
    getting this following error. Previously I have tested deploying the same EJB
    to weblogic 7.0 server on my local PC which based on Windows, and everything seems
    Ok.
    Unable to deploy EJB: DACEJB.jar from DACEJB.jar:
    Compiler failed executable.exec(java.lang.String[javac, -nowarn, -classpath,
    /bea/weblogic700/server/bin/tmp_ejbsmeap01ibm7001myserver/-1spvbzuqlvq3z:/bea/weblogic700/server/bin/DACEJB.jar:/usr/java131/jre/lib/rt.jar:/usr/java131/jre/lib/i18n.jar:/usr/java131/jre/classes:/CMS/CORP/config/:/bea/weblogic700:/bea/weblogic700/server/lib/crack.jar:/bea/weblogic700/server/lib/classes12_g.jar:/bea/weblogic700/server/lib/HostMsgDriverV2.1_oracle.jar:/bea/weblogic700/server/lib/aal2wrap.jar:/bea/weblogic>700/server/lib/log4j.jar:/bea/weblogic700/server/lib/Opta2000.jar:/bea/weblogic700/server/lib/xmlx.jar:/bea/weblogic700/server/lib/VelisAuth.jar:/bea/weblogic700/server/lib/jython.jar:/usr/java131/lib/tools.jar:/bea/weblogic700/server:/bea/weblogic700/server/lib/weblogic_sp.jar:/bea/weblogic700/server/lib/weblogic.jar:,> -d, tmp_ejbsmeap01ibm7001myserver/->>>         at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java(Compiled> Code))>         at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:396)>         at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:490)>         at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:793)>         at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1242)>         at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:242)>         at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java(Compiled> Code))>         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java(Compiled> Code))>         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java(Compiled> Code))>         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java(Compiled> Code))>         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java(Compiled> Code))>         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)>         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))>         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error deploying ejb with jdev 9.0.3 to 9ias 9.0.3

    Hi:
    I am trying to deploy a simple ejb created with jdev 9.0.3. I have used local dcm connection type for deploying . I have already installed the dcm servlet, but when I try to deploy my ejb i get the following error:
    ---- Deployment started. ---- Nov 12, 2002 5:52:12 PM
    Wrote EJB JAR file to C:\jdev\jdev\mywork\employee\Project1\deploy\employee.jar
    Wrote EAR file to C:\jdev\jdev\mywork\employee\Project1\deploy\employee.ear
    Invoking dcmctl...
    C:\ora9ias\dcm\bin\dcmctl.bat redeployApplication -file C:\jdev\jdev\mywork\employee\Project1\deploy\employee.ear -application employee
    ADMN-300075
    Exit status of dcmctl: 0
    Elapsed time for deployment: 21 seconds
    ---- Deployment finished. ---- Nov 12, 2002 5:52:33 PM
    The oracle 9ias and the jdev have been installed on Windows 2000 server.
    Does anybody know what is it?
    Thanks
    Sergio

    I have discovered a strange thing. I created a new OC4J instance which I called it: Intelap
    When I deploy to the recently created instance Intelap, jdeveloper success. But when I set OC4J_home in the optional instance field, I got the previous error.
    Sergio

  • Error deploying EJB on WL 6.0

    Hi,
    I'm trying to deploy an EJB jar file on WL6.0 in a Solaris environment, but I'm
    encoutering the following error. The EJB jar deployed fine on a Windows system,
    but I keep on getting this error on a Solaris machine. Any help/info would be
    appreciated.
    Thanks in advance,
    - Jerome
    <Dec 10, 2001 5:45:09 PM PST> <Info> <Logging> <Only log messages of severity
    "Error" or worse will be displayed in this window. This can be changed at Admin
    Console> hats> Servers> myserver> Logging> General> Stdout severity threshold>
    java.io.IOException: javac: not found
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:551)
    at java.lang.Runtime.exec(Runtime.java:477)
    at java.lang.Runtime.exec(Runtime.java:443)
    at weblogic.utils.Executable.exec(Executable.java:144)
    at weblogic.utils.Executable.exec(Executable.java:108)
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:555)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:372)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:228)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:799)
    at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:31)
    at weblogic.j2ee.Application.addComponent(Application.java:133)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:327)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:277)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:232)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:192)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy30.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2299)
    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:240)
    at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy24.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
    at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
    at weblogic.management.Admin.finish(Admin.java:493)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
    at weblogic.Server.main(Server.java:35)
    <Dec 10, 2001 5:45:32 PM PST> <Error> <J2EE> <Error deploying EJB Component :
    Shared.jar
    weblogic.ejb20.EJBDeploymentException: EJB Deployment errors:; nested exception
    is:
    Compiler failed executable.exec(java.lang.String[javac, -nowarn, -classpath,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
    -d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])
    Compiler failed executable.exec(java.lang.String[javac, -nowarn, -classpath,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
    -d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:228)
    at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:228)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:799)
    at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:31)
    at weblogic.j2ee.Application.addComponent(Application.java:133)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:327)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:277)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:232)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:192)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy30.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2299)
    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:240)
    at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy24.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
    at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
    at weblogic.management.Admin.finish(Admin.java:493)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
    at weblogic.Server.main(Server.java:35)
    >
    <Dec 10, 2001 5:45:32 PM PST> <Error> <J2EE> <Error deploying application Shared.jar:
    Could not deploy: 'Shared.jar':
    Compiler failed executable.exec(java.lang.String[javac, -nowarn, -classpath,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
    -d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])>

    I removed the EJB classes from my classpath, but I am now getting the following
    error. If I remove the EJB classes from the classpath, how does ejbc know where
    to look for the classes when making the jar files?
    ERROR: Error from ejbc: java.lang.NoClassDefFoundError: Lcom/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLHome;
    at java.lang.Class.getFields0(Native Method)
    at java.lang.Class.getDeclaredFields(Class.java:998)
    at weblogic.ejb20.compliance.SessionBeanClassChecker.checkEJBContextIsNotTransient(SessionBeanClassChecker.java:61)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:230)
    at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:185)
    at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:309)
    at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:266)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:136)
    at weblogic.ejbc20.runBody(ejbc20.java:707)
    at weblogic.utils.compiler.Tool.run(Tool.java:81)
    at weblogic.ejbc.main(ejbc.java:20)
    ERROR: ejbc found errors
    Rob Woollen <[email protected]> wrote:
    It looks like you still don't have javac in your $PATH.
    You also should remove the EJB classes from your classpath. They should
    only be in your jar file.
    -- Rob
    Jerome Sieng wrote:
    Rob,
    I am now trying to run weblogic.ejbc(wl6.0) on the jar before deployingit, but
    I'm getting the following error. Any ideas?
    Thanks
    - Jerome
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: Adminhas a class
    com.hiwire.ejb.spotmanager.admin.AdminSessionSFBean which is in theclasspath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: Adminhas a class
    com.hiwire.ejb.spotmanager.admin.AdminSessionSFHome which is in theclasspath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: Adminhas a class
    com.hiwire.ejb.spotmanager.admin.AdminSessionSF which is in the classpath.This
    class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: GroupEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.GroupEntityBean which is inthe classpath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: GroupEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.GroupEntityHome which is inthe classpath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: GroupEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.GroupEntity which is in theclasspath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: GroupEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.GroupPK which is in the classpath.This
    class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: TunerEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.TunerEntityBean which is inthe classpath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: TunerEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.TunerEntityHome which is inthe classpath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: TunerEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.TunerEntity which is in theclasspath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: TunerEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.TunerPK which is in the classpath.This
    class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: UserEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.UserEntityBean which is inthe classpath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: UserEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.UserEntityHome which is inthe classpath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: UserEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.UserEntity which is in theclasspath.
    This class should only be located in the ejb-jar file.>
    <Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: UserEntityHomehas
    a class com.hiwire.ejb.spotmanager.admin.UserPK which is in the classpath.This
    class should only be located in the ejb-jar file.>
    java.io.IOException: javac: not found
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:551)
    at java.lang.Runtime.exec(Runtime.java:477)
    at java.lang.Runtime.exec(Runtime.java:443)
    at weblogic.utils.Executable.exec(Executable.java:144)
    at weblogic.utils.Executable.exec(Executable.java:108)
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:555)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:372)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc20.runBody(ejbc20.java:707)
    at weblogic.utils.compiler.Tool.run(Tool.java:81)
    at weblogic.ejbc.main(ejbc.java:20)
    Exec failed .. exiting
    Rob Woollen <[email protected]> wrote:
    It looks like you don't have javac in the solaris path.
    FWIW, you might consider just running weblogic.ejbc on the jar before
    deploying it.
    -- Rob
    Jerome Sieng wrote:
    Hi,
    I'm trying to deploy an EJB jar file on WL6.0 in a Solaris environment,but I'm
    encoutering the following error. The EJB jar deployed fine on a
    Windows
    system,
    but I keep on getting this error on a Solaris machine. Any help/infowould be
    appreciated.
    Thanks in advance,
    - Jerome
    <Dec 10, 2001 5:45:09 PM PST> <Info> <Logging> <Only log messages
    of
    severity
    "Error" or worse will be displayed in this window. This can be changedat Admin
    Console> hats> Servers> myserver> Logging> General> Stdout severitythreshold>
    java.io.IOException: javac: not found
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:551)
    at java.lang.Runtime.exec(Runtime.java:477)
    at java.lang.Runtime.exec(Runtime.java:443)
    at weblogic.utils.Executable.exec(Executable.java:144)
    at weblogic.utils.Executable.exec(Executable.java:108)
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:555)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:372)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:228)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:799)
    at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:31)
    at weblogic.j2ee.Application.addComponent(Application.java:133)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:327)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:277)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:232)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:192)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy30.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2299)
    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:240)
    at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy24.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
    at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
    at weblogic.management.Admin.finish(Admin.java:493)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
    at weblogic.Server.main(Server.java:35)
    <Dec 10, 2001 5:45:32 PM PST> <Error> <J2EE> <Error deploying EJB
    Component
    Shared.jar
    weblogic.ejb20.EJBDeploymentException: EJB Deployment errors:; nestedexception
    is:
    Compiler failed executable.exec(java.lang.String[javac,
    -nowarn,
    -classpath,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
    -d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])
    Compiler failed executable.exec(java.lang.String[javac,
    -nowarn,
    -classpath,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
    -d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:228)
    at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:228)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:799)
    at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:31)
    at weblogic.j2ee.Application.addComponent(Application.java:133)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:327)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:277)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:232)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:192)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy30.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2299)
    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:240)
    at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
    at $Proxy24.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
    at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
    at weblogic.management.Admin.finish(Admin.java:493)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
    at weblogic.Server.main(Server.java:35)
    >
    <Dec 10, 2001 5:45:32 PM PST> <Error> <J2EE> <Error deploying applicationShared.jar:
    Could not deploy: 'Shared.jar':
    Compiler failed executable.exec(java.lang.String[javac,
    -nowarn,
    -classpath,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
    -d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
    /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])>

  • Weblogic Deployment Descriptor for CMP EJB

    Hi all,
    Am new to EJB, CMP. Pls help me how to write deployment descriptors for the CMP EJB for Weblogic.
    Give me the list of the Deployment descriptors needed and also pls give me some samples
    thanks in advance
    rgds
    Ravi Bharathi

    The easiest way is to go through some tutorial or refer the code samples. If you have installed weblogic, there are examples provided in the weblogic installation folder itself for each type of bean. Basically for cmp you have to provide the table names and mapping between the class variables to db fields in weblogic_cmp_rdbms.xml deployment descriptor.

  • [EJB:011055]Error deploying the EJB with error that JNDI name already inuse

    Hi,
    I have written a trivial application consisting of 4 stateless beans and 1 MDB. The ear is developed from some code generator tool and works fine if I directly deploy on weblogic server 812.
    But in order to learn Weblogic Workshop I created new Application and EJB project. Then I imported the EJB jar and provided other source files.
    From Weblogic Workshop I could generate the ear successfully. But while trying to deploy the ear I get the following exception :
    <16/03/2005 10:02:38 PM GMT+05:30> <Error> <Deployer> <BEA-149201> <Failed to complete the deployment task with ID 1 for the application hsbc.
    weblogic.management.ApplicationException:
    Exception:weblogic.management.ApplicationException: prepare failed for MCAppBEAN.jar
    Module: MCAppBEAN.jar Error: Exception preparing module: EJBModule(MCAppBEAN.jar,status=NEW)
    Unable to deploy EJB: StatelessBean from MCAppBEAN.jar:
    <b>[EJB:011055]Error deploying the EJB 'StatelessBean(Application: hsbc, EJBComponent: MCAppBEAN.jar)', the JNDI name 'StatelessBeanHSBC' is already in use. You mu
    st set a different JNDI name in the weblogic-ejb-jar.xml deployment descriptor for this EJB before it can be deployed.</b> at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2556)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    --------------- nested within: ------------------
    <b>Can someone tell where have I made the mistake?</b>
    thanks in advance.

    Try to undeploy and un target the applcation via WLS console and they try to deploy it again. Or just try to redeploy it.

Maybe you are looking for