Toplink and weblogic - ejbc error

Help!
I cannot get wl6.1 and the oracle toplink classes to work together.
Whenever I try to ejbc an entity ejb, I get the following error:
ERROR: Error from ejbc: Error while loading persistence resource TopLink_CMP_Descriptor.xml Make sure that the persistence type is in your classpath. ERROR: ejbc found errors
I have the entry in persistence.install in the appropriate location.
I HAVE the toplink jars in my classpath for the ejbc.
What is the problem?
I've looked for many hours and tries many things, but keep getting this error.
HELP!
(TIA)
Andrew

Hello,
Usually it's a classpath thing. ie: the tl_wlsx.jar is not on the classpath.
Can you also check for whitespace after the entry in the persistence.install file.

Similar Messages

  • Microsoft SQL Drive and Weblogic 10 error

    Hi
    I am getting following setting up JDBC connection between Weblogic 10.3 and Microsoft SQL 2005. I have always worked with Oracle, first time with Microsoft SQL. From what I read only SQL 2005 drive comes with weblogic 10.3. Can you please tell me what are the correct step to get it working? Thank you.
    Oct 29, 2008 8:51:47 AM EDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Oct 29, 2008 8:51:54 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Oct 29, 2008 8:51:54 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Oct 29, 2008 8:51:54 AM EDT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'equitrak' due to error weblogic.application.ModuleException: .
    weblogic.application.ModuleException:
    at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:289)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
    Truncated. see log file for complete stacktrace
    weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver
    at weblogic.jdbc.common.internal.JDBCUtil.parseException(JDBCUtil.java:291)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvFactory.java:73)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFactory.java:129)
    at weblogic.jdbc.common.internal.ConnectionPool.initPooledResourceFactory(ConnectionPool.java:637)
    at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:200)
    Truncated. see log file for complete stacktrace
    >
    <Oct 29, 2008 8:51:55 AM EDT> <Notice> <Log Management> <BEA-170027> <The server initialized the domain log broadcaster successfully. Log messages will now be broadcasted to the domain log.>
    <Oct 29, 2008 8:51:55 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Oct 29, 2008 8:51:55 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>

    Also. I am getting the following error, with BEA's MS SQL Driver (Type 4) Versions 7.0: 2000, 2005.
    Message icon - Error     Connection test failed.
    Message icon - Error     [BEA][SQLServer JDBC Driver]Error establishing socket to host and port: 172.24.42.102:1433. Reason: Connection refused
    weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
    weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
    weblogic.jdbc.sqlserver.tds.TDSConnection.(Unknown Source)
    weblogic.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
    weblogic.jdbc.base.BaseConnection.connect(Unknown Source)
    weblogic.jdbc.base.BaseConnection.setupImplConnection(Unknown Source)
    weblogic.jdbc.base.BaseConnection.open(Unknown Source)
    weblogic.jdbc.base.BaseDriver.connect(Unknown Source)
    com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:504)
    com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:369)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)
    org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)
    org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)
    org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:306)
    org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:336)
    org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(FlowControllerAction.java:52)
    Please let me know if any other information is required.
    Thanks

  • Error running weblogic.ejbc with Toplink 10G

    Hi.
    I'm making some tests in order to move to Weblogic 8.1 and Toplink 10g in the near future, but I'm having some problems with my tests:
    I have built a simple entity bean based on the AccountBean used in the singlebean example from Oracle and I'm seeing this error:
    java.lang.RuntimeException: Exception [EJB - 10036]: Error during code generation: [Exception [TOPLINK-14016] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.ejb.DeploymentException
    Exception Description: An error occurred while setting up the project: [Exception [TOPLINK-43] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Missing class for indicator field value [toplink:ejbql-call] of type [class java.lang.String].
    Descriptor: XMLDescriptor(oracle.toplink.queryframework.Call --> [DatabaseTable(call)])]
    Internal Exception: Exception [TOPLINK-43] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Missing class for indicator field value [toplink:ejbql-call] of type [class java.lang.String].
    Descriptor: XMLDescriptor(oracle.toplink.queryframework.Call --> [DatabaseTable(call)])]
    server stacktrace is:
    Local Exception Stack:
    Exception [TOPLINK-14016] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.ejb.DeploymentException
    Exception Description: An error occurred while setting up the project: [Exception [TOPLINK-43] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Missing class for indicator field value [toplink:ejbql-call] of type [class java.lang.String].
    Descriptor: XMLDescriptor(oracle.toplink.queryframework.Call --> [DatabaseTable(call)])]
    Internal Exception: Exception [TOPLINK-43] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Missing class for indicator field value [toplink:ejbql-call] of type [class java.lang.String].
    Descriptor: XMLDescriptor(oracle.toplink.queryframework.Call --> [DatabaseTable(call)])
    at oracle.toplink.ejb.DeploymentException.errorCreatingProject(DeploymentException.java:111)
    at oracle.toplink.internal.ejb.cmp.CmpProjectReader.readProject(CmpProjectReader.java:76)
    at oracle.toplink.internal.ejb.cmp.ProjectDeployment.readProject(ProjectDeployment.java:219)
    at oracle.toplink.internal.ejb.cmp.ProjectDeployment.getProject(ProjectDeployment.java:208)
    at oracle.toplink.internal.ejb.cmp.PersistenceManagerBase.generateBeanSubclass(PersistenceManagerBase.java:176)
    at oracle.toplink.internal.ejb.cmp.wls.WlsCMPCodeGenerator.codeGenSubclass(WlsCMPCodeGenerator.java:51)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:648)
    at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:587)
    at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:519)
    at weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:336)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:238)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:197)
    at weblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSources(EJB20CMPCompiler.java:88)
    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:397)
    at weblogic.ejbc20.runBody(ejbc20.java:519)
    at weblogic.utils.compiler.Tool.run(Tool.java:146)
    at weblogic.utils.compiler.Tool.run(Tool.java:103)
    at weblogic.ejbc.main(ejbc.java:29)
    This is the part of the XML that I think causes the problem:
    <opm:query name="findMessageByMessageKey" xsi:type="toplink:read-object-query">
    <opm:arguments>
    <opm:argument name="1">
    <opm:type>java.lang.Integer</opm:type>
    </opm:argument>
    <opm:argument name="2">
    <opm:type>java.lang.Integer</opm:type>
    </opm:argument>
    </opm:arguments>
    <toplink:bind-all-parameters>false</toplink:bind-all-parameters>
    <toplink:cache-statement>false</toplink:cache-statement>
    <toplink:call xsi:type="toplink:ejbql-call">
    <toplink:ejbql>SELECT OBJECT(menssage) FROM MessageBean message WHERE menssage.codMessage = ?1 AND mensaje.codIdiom = ?2</toplink:ejbql>
    </toplink:call>
    <toplink:reference-class>test.data.MessgeBean</toplink:reference-class>
    <toplink:cache-usage>conform</toplink:cache-usage>
    </opm:query>
    Of course I don't see any problem with it.
    After that I tried to run the examples but I'm seing the same error.
    I must say that I'm not using the ANT scripts but doing it "by hand" building classes and making the naked jar for the bean in order to run ejbc on it, I'm pretty confident I am not missing anything.
    I would like to know where the "ejbql-call" definition is as I have tried to find it with a grep in all the Toplink structure tree with no success. It is not clear to me how the xsd processor would find it's definition with just the: xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink" instruction present in the header of my Message.xml file (modified based on the Account.xml of the examples).
    I'm using Sun's JDK 1.4.2 and my $CLASSPATH is:
    /opt/oracle/toplink10g/toplink/jlib/toplink.jar:/opt/oracle/toplink10g/lib/xmlparserv2.jar:/opt/oracle/toplink10g/jdbc/lib/classes12.zip:/opt/bea/wlserver8.1sp1/weblogic8.1/server/lib/weblogic.jar
    Any idea?
    Thanks in advance.
    Ignacio.

    Hi.
    Thanks I tried it and I don't get no more that message. Instead I get this stack trace:
    java.lang.RuntimeException: Exception [EJB - 10036]: Error during code generation: [Exception [TOPLINK-14016] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.ejb.DeploymentException
    Exception Description: An error occurred while setting up the project: [Exception [TOPLINK-106] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setAllQueries] on the object is throwing an exception.
    Argument: [[ReadObjectQuery(test.datos.MensajeBean), ReadObjectQuery(test.datos.MensajeBean)]]
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.NullPointerException
    Mapping: oracle.toplink.ox.CompositeCollectionMapping[queries]
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.DescriptorQueryManager --> [DatabaseTable(query-policy)])]
    Internal Exception: Exception [TOPLINK-106] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setAllQueries] on the object is throwing an exception.
    Argument: [[ReadObjectQuery(test.datos.MensajeBean), ReadObjectQuery(test.datos.MensajeBean)]]
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.NullPointerException
    Mapping: oracle.toplink.ox.CompositeCollectionMapping[queries]
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.DescriptorQueryManager --> [DatabaseTable(query-policy)])]
    server stacktrace is:
    Local Exception Stack:
    Exception [TOPLINK-14016] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.ejb.DeploymentException
    Exception Description: An error occurred while setting up the project: [Exception [TOPLINK-106] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setAllQueries] on the object is throwing an exception.
    Argument: [[ReadObjectQuery(test.datos.MensajeBean), ReadObjectQuery(test.datos.MensajeBean)]]
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.NullPointerException
    Mapping: oracle.toplink.ox.CompositeCollectionMapping[queries]
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.DescriptorQueryManager --> [DatabaseTable(query-policy)])]
    Internal Exception: Exception [TOPLINK-106] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setAllQueries] on the object is throwing an exception.
    Argument: [[ReadObjectQuery(test.datos.MensajeBean), ReadObjectQuery(test.datos.MensajeBean)]]
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.NullPointerException
    Mapping: oracle.toplink.ox.CompositeCollectionMapping[queries]
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.DescriptorQueryManager --> [DatabaseTable(query-policy)])
    at oracle.toplink.ejb.DeploymentException.errorCreatingProject(DeploymentException.java:111)
    at oracle.toplink.internal.ejb.cmp.CmpProjectReader.readProject(CmpProjectReader.java:76)
    at oracle.toplink.internal.ejb.cmp.ProjectDeployment.readProject(ProjectDeployment.java:219)
    at oracle.toplink.internal.ejb.cmp.ProjectDeployment.getProject(ProjectDeployment.java:208)
    at oracle.toplink.internal.ejb.cmp.PersistenceManagerBase.generateBeanSubclass(PersistenceManagerBase.java:176)
    at oracle.toplink.internal.ejb.cmp.wls.WlsCMPCodeGenerator.codeGenSubclass(WlsCMPCodeGenerator.java:51)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:648)
    at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:587)
    at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:519)
    at weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:336)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:238)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:197)
    at weblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSources(EJB20CMPCompiler.java:88)
    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:397)
    at weblogic.ejbc20.runBody(ejbc20.java:519)
    at weblogic.utils.compiler.Tool.run(Tool.java:146)
    at weblogic.utils.compiler.Tool.run(Tool.java:103)
    at weblogic.ejbc.main(ejbc.java:29)
    What I don't understand is: if examples include that toplink:ejbql-call it should be declared into the xsd isn't it? It will be included in the future (final) release then?
    Thanks again.
    Ignacio.

  • 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

  • Urgent pls ! Error during Container code generation using weblogic.ejbc

    HI all,
    Iam using weblogic6.1 and EJB 2.0. I have to communicate session and entity ejb's and iam using local interfaces for entity beans and access the entity beans thru session ejb's. After creating my programs and jar files, when i use java weblogic.ejbc code.jar Containercode.jar, i get the following error....
    --------- Error -------------
    C:\Sathish\Ejb\wl6.1\LocalInterfaces\Code\ejbcgen\CodeBean_tvm2r0_ELOImpl.java:34
    0: cannot resolve symbol
    symbol : constructor EJBException (java.lang.String,java.lang.Exception)
    location: class javax.ejb.EJBException
    throw new javax.ejb.EJBException("Unexpected exception in " +
    ^
    1 errors
    Exec failed .. exiting
    Can anyone say why this error is occuring......
    regards
    sathish

    In J2EE 1.3, EJBException added a third constructor of the form:
    EJBException(java.lang.String, java.lang.Exception)
    WebLogic contains a file called j2ee12.jar in the lib directory that when placed in front of the classpath, disables J2EE 1.3 features and replaces them with J2EE 1.2. In J2EE 1.2 this constructor did not exist.
    So in order to compile using J2EE 1.3 features, you must make sure that j2ee12.jar is not in your classpath.

  • Differences in ejbc with weblgoic 5.1 and weblogic 6.0.

    Differences in ejbc with weblgoic 5.1 and weblogic 6.0.
    In wls 5.1 I could use ejbc to compile my beans. I am using the same
    scripts to try this using 6.0 but I am getting an error when doing the
    ejbc compile. The error is :
    <Error> <EJB> <EJB Deployment: com.rawjava.wireless.app.ejb.main.Name
    has a class com.rawjava.wireless.app.ejb.main.NameBean which is in the
    classpath. This class should only be located in the ejb-jar file.>
    This error does not come up when I am using wls 5.1, could you explain
    why this is now happening, ie what change in wls 6.0 causes this to
    occur. Also what are my options to fixing this.
    Thanks,
    Eddie

    Thanks Michael.
    "Michael Girdley" <----> wrote:
    I'm sorry to say that you have been given incorrect information. Version
    6.0 is the highest quality release ever produced for BEA WebLogic Server.I
    would recommend it as your starting point for learning our product.
    There is a bunch of new stuff in version 6.0 which I will not enumerate
    here. But, I suggest checking out our documentation for the release, which
    includes a bunch of information on what we have done. Good luck!
    Thanks,
    Michael
    Michael Girdley
    BEA Systems
    Learning WebLogic? http://learnweblogic.com
    "Drew Bittenbender" <[email protected]> wrote in message
    news:3a706018$[email protected]..
    We are in the process of eveluating WebLogic 6.0. We have 5.1 installed,but do not have anything in
    production yet. We have developed and tested a few applications that donot really hit WebLogic
    that hard. We figured that now is the time to upgrade since we don't haveanything in production yet and
    since there are some major setup & administrative differences. Throughthe grapevine in our company
    someone apparently spoke to our BEA rep who suggested that we stick with5.1 for a while since 6.0 is
    apparently very buggy. I looked through the bug reports, and there reallyisn't anything too significant (at least
    that relates to our current implementation). Is there any truth to this?Would you not recommend an upgrade
    given our situation?
    Also, we are planning to attend the WL 6.0 admin training. If we didn'tupgrade to 6.0, would the training be
    a waste of time, or could we apply that knowledge to 5.1?
    Thank you,
    Drew

  • TOPLink 3.0 and Weblogic 6.0

    I am trying to use the new TOPLink 3.0 with Weblogic Server 6.0. However, when I run the build scripts which come with TOPLink, I keep getting the following error:
    ERROR: Error from ejbc: Persistence type 'TOPLink_CMP' with version '3.0 which is referenced in bean 'Account' is not installed. The installed persistence types are: (WebLogic_CMP_RDBMS, 6.0), (WebLogic_CMP_RDBMS, 5.1.0).
    ERROR: ejbc found errors
    The question is, how do I use a third-party persistence framework, like TOPLink, with Weblogic 6.0? I already have the persistence type in my classpath, but this does not seem to help!!

    Hi Chris,
    You are correct, but that functionality will probably be placed in the mapping workbench in a future release.
    Darren

  • Error deploy Jboss and Weblogic with JDev 10.1.3.0.3 EA

    Hi,
    I'm having problem with deploy application make with JDev 10.1.3.0.3 EA
    in a Jboss 4.0.2 and Weblogic 8.1. Very simple app with JSF.
    The error seems to be in application.xml. Maybe because xml schema.
    It is a bug? Are there a workround?
    Thanks!
    The log of Jboss:
    2005-09-23 16:04:40,863 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/usr/local/jboss-4.0.2/server/default/deploy/appnovotestejsf.ear
    2005-09-23 16:04:40,863 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/usr/local/jboss-4.0.2/server/default/deploy/appnovotestejsf.ear
    2005-09-23 16:04:40,863 DEBUG [org.jboss.deployment.MainDeployer] Copying file:/usr/local/jboss-4.0.2/server/default/deploy/appnovotestejsf.ear -> /usr/local/jboss-4.0.2/server/default/tmp/deploy/tmp12285appnovotestejsf.ear
    2005-09-23 16:04:40,864 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.EARDeployer@510e39
    2005-09-23 16:04:40,864 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/usr/local/jboss-4.0.2/server/default/deploy/appnovotestejsf.ear
    2005-09-23 16:04:40,866 ERROR [org.jboss.metadata.XmlFileLoader] Invalid XML: file=META-INF/application.xml@-1:2
    java.lang.IllegalStateException: can't declare any more prefixes in this context
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:691)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
         at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
         at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:313)
         at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
         at org.jboss.deployment.EARDeployer.init(EARDeployer.java:127)
         at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
         at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
         at $Proxy8.deploy(Unknown Source)
         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:483)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
    2005-09-23 16:04:40,867 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/usr/local/jboss-4.0.2/server/default/deploy/appnovotestejsf.ear
    org.jboss.deployment.DeploymentException: Invalid XML: file=META-INF/application.xml@-1:2; - nested throwable: (java.lang.IllegalStateException: can't declare any more prefixes in this context)
         at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:328)
         at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
         at org.jboss.deployment.EARDeployer.init(EARDeployer.java:127)
         at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
         at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
         at $Proxy8.deploy(Unknown Source)
         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:483)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
    Caused by: java.lang.IllegalStateException: can't declare any more prefixes in this context
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:691)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
         at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
         at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:313)
         ... 23 more
    2005-09-23 16:04:40,869 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@e3ab9801{ url=file:/usr/local/jboss-4.0.2/server/default/deploy/appnovotestejsf.ear, deployedLastModified=1127502101000 }
    org.jboss.deployment.DeploymentException: Invalid XML: file=META-INF/application.xml@-1:2; - nested throwable: (java.lang.IllegalStateException: can't declare any more prefixes in this context)
         at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:328)
         at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
         at org.jboss.deployment.EARDeployer.init(EARDeployer.java:127)
         at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
         at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
         at $Proxy8.deploy(Unknown Source)
         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:483)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
    Caused by: java.lang.IllegalStateException: can't declare any more prefixes in this context
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:691)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
         at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
         at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:313)
         ... 23 more

    The test is easer.
    I make a new Empty Project like J2EE13. After create a new JSP (Web tier -> JSP).
    I chose j2ee version 1.3. So I put some jsp code inside, like
    <body>
    <%
    out.write("Teste J2EE 1.3");
    %></body>
    After I create a new Deployment Profiles WAR File.
    Make a build, a .war file and .ear and everythink worked.
    So I make a J2EE Deplyment Descriptor Wizard with version 1.3
    And make rebuil project.
    JDev don't finish the rebuild. The thread dump with CRTL+BREAK :
    Full thread dump Java HotSpot(TM) Client VM (1.5.0_05-b03 mixed mode):
    "Log Page Updater" prio=5 tid=0x07d0ee78 nid=0x9d8 waiting on condition [0x08a8f000..0x08a8f9e8]
    at java.lang.Thread.sleep(Native Method)
    at oracle.jdeveloper.compiler.CompilerPage$2.run(CompilerPage.java:536)
    "CompileThread" prio=5 tid=0x07d0e4f8 nid=0x94c in Object.wait() [0x0858f000..0x0858fa68]
    at java.lang.Object.wait(Native Method)
    at oracle.javatools.buffer.ReadWriteLock.readLock(ReadWriteLock.java:385)
    - locked <0x141e7408> (a oracle.javatools.buffer.ReadWriteLock)
    at oracle.javatools.buffer.ReadWriteLock.readLock(ReadWriteLock.java:252)
    at oracle.javatools.buffer.AbstractTextBuffer.readLock(AbstractTextBuffer.java:1112)
    at oracle.ide.model.TextNode$TextBufferWrapper.readLock(TextNode.java:1781)
    at oracle.javatools.buffer.TextBufferReader.<init>(TextBufferReader.java:52)
    at oracle.javatools.buffer.TextBufferFactory.createReader(TextBufferFactory.java:167)
    at oracle.bali.xml.addin.XMLSourceNode.doWellFormednessCheckDuringMake(XMLSourceNode.java:382)
    at oracle.bali.xml.addin.translator.XmlTranslator.translate(XmlTranslator.java:198)
    at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildGraph(UnifiedBuildSystem.java:299)
    at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildProjectFiles(UnifiedBuildSystem.java:514)
    at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildProject(UnifiedBuildSystem.java:607)
    at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildAll(UnifiedBuildSystem.java:664)
    at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.run(UnifiedBuildSystem.java:884)
    "Thread-22" prio=7 tid=0x069eb8b0 nid=0x9c8 in Object.wait() [0x08c8f000..0x08c8fae8]
    at java.lang.Object.wait(Native Method)
    at oracle.javatools.buffer.ReadWriteLock.readLock(ReadWriteLock.java:385)
    - locked <0x141e7408> (a oracle.javatools.buffer.ReadWriteLock)
    at oracle.javatools.buffer.ReadWriteLock.readLock(ReadWriteLock.java:252)
    at oracle.javatools.buffer.AbstractTextBuffer.readLock(AbstractTextBuffer.java:1112)
    at oracle.ide.model.TextNode$TextBufferWrapper.readLock(TextNode.java:1781)
    at oracle.jdevimpl.todo.ToDoManagerImpl._getToDoListFromNode(ToDoManagerImpl.java:1020)
    at oracle.jdevimpl.todo.ToDoManagerImpl.maS$_getToDoListFromNode(ToDoManagerImpl.java)
    at oracle.jdevimpl.todo.ToDoManagerImpl$ToDoItemManager$1.construct(ToDoManagerImpl.java:2083)
    at oracle.ide.util.SwingWorker$1.run(SwingWorker.java:119)
    at java.lang.Thread.run(Thread.java:595)
    "IconOverlayTracker Timer" prio=5 tid=0x07367168 nid=0x4c8 in Object.wait() [0x0848f000..0x0848fb68]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x140880b0> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x140880b0> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "Persistence Auto Flusher" daemon prio=5 tid=0x0770d660 nid=0xfec in Object.wait() [0x0958f000..0x0958fc68]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x1401ee28> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x1401ee28> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "IdeMinPriorityTimer" daemon prio=2 tid=0x06a58c90 nid=0xff0 in Object.wait() [0x0948f000..0x0948f9e8]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x13d61428> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x13d61428> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "AuditExecutor-5" daemon prio=7 tid=0x07620e50 nid=0x6f8 in Object.wait() [0x0928f000..0x0928fa68]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x13d45398> (a oracle.javatools.util.SynchronizedQueue)
    at java.lang.Object.wait(Object.java:474)
    at oracle.javatools.util.SynchronizedQueue.remove(SynchronizedQueue.java:61)
    - locked <0x13d45398> (a oracle.javatools.util.SynchronizedQueue)
    at oracle.jdevimpl.audit.util.SwingExecutor.run(SwingExecutor.java:467)
    at java.lang.Thread.run(Thread.java:595)
    "WaitCursorTimer" daemon prio=5 tid=0x073e7428 nid=0x3f4 in Object.wait() [0x08b8f000..0x08b8fbe8]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x134b6160> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x134b6160> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "BufferDomModel background parse thread" daemon prio=2 tid=0x03c9f8c0 nid=0x690 in Object.wait() [0x0898f000..0x0898fce8]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x1318a2e8> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x1318a2e8> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "WeakDataReference polling" prio=2 tid=0x072afba0 nid=0x664 in Object.wait() [0x0888f000..0x0888fd68]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x1318c598> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x1318c598> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at oracle.ide.util.WeakDataReference$Cleaner.run(WeakDataReference.java:88)
    at java.lang.Thread.run(Thread.java:595)
    "Native Directory Watcher" prio=2 tid=0x06c4ba00 nid=0x350 runnable [0x0868f000..0x0868fa68]
    at oracle.ide.natives.NativeHandler.enterWatcherThread(Native Method)
    at oracle.ide.natives.NativeHandler$1.run(NativeHandler.java:244)
    at java.lang.Thread.run(Thread.java:595)
    "IconOverlayTracker Timer" prio=5 tid=0x069d2bd0 nid=0x948 in Object.wait() [0x0838f000..0x0838fb68]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x12fd96e0> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x12fd96e0> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "TimerQueue" daemon prio=5 tid=0x03db5be0 nid=0x924 in Object.wait() [0x0657f000..0x0657fb68]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x12903aa0> (a javax.swing.TimerQueue)
    at javax.swing.TimerQueue.run(TimerQueue.java:233)
    - locked <0x12903aa0> (a javax.swing.TimerQueue)
    at java.lang.Thread.run(Thread.java:595)
    "AWT-EventQueue-0" prio=7 tid=0x03d78958 nid=0x34c in Object.wait() [0x0443f000..0x0443fbe8]
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:474)
    at java.awt.EventQueue.getNextEvent(EventQueue.java:345)
    - locked <0x128687b8> (a java.awt.EventQueue)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:189)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    "Java2D Disposer" daemon prio=10 tid=0x03d757e8 nid=0xf4c in Object.wait() [0x0423f000..0x0423fce8]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x1286a2c0> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x1286a2c0> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at sun.java2d.Disposer.run(Disposer.java:107)
    at java.lang.Thread.run(Thread.java:595)
    "AWT-Windows" daemon prio=7 tid=0x03d6d660 nid=0x698 runnable [0x0413f000..0x0413fd68]
    at sun.awt.windows.WToolkit.eventLoop(Native Method)
    at sun.awt.windows.WToolkit.run(WToolkit.java:269)
    at java.lang.Thread.run(Thread.java:595)
    "AWT-Shutdown" prio=5 tid=0x03d68d78 nid=0x8c8 in Object.wait() [0x0403f000..0x0403f9e8]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x1286a3a8> (a java.lang.Object)
    at java.lang.Object.wait(Object.java:474)
    at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
    - locked <0x1286a3a8> (a java.lang.Object)
    at java.lang.Thread.run(Thread.java:595)
    "Low Memory Detector" daemon prio=5 tid=0x013ca0a8 nid=0x10c runnable [0x00000000..0x00000000]
    "CompilerThread0" daemon prio=10 tid=0x013c8e00 nid=0x8c0 waiting on condition [0x00000000..0x03b1f8cc]
    "Signal Dispatcher" daemon prio=10 tid=0x013a9ac8 nid=0x99c waiting on condition [0x00000000..0x00000000]
    "Finalizer" daemon prio=9 tid=0x0135b940 nid=0x11c in Object.wait() [0x0391f000..0x0391fc68]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x1280f808> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x1280f808> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
    "Reference Handler" daemon prio=10 tid=0x0139bb58 nid=0x4a8 in Object.wait() [0x0381f000..0x0381fce8]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x1280f888> (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Object.java:474)
    at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
    - locked <0x1280f888> (a java.lang.ref.Reference$Lock)
    "main" prio=5 tid=0x00846878 nid=0x840 waiting on condition [0x00000000..0x0012fb60]
    "VM Thread" prio=10 tid=0x0084f410 nid=0x77c runnable
    "VM Periodic Task Thread" prio=10 tid=0x013dcac8 nid=0x8f0 waiting on condition
    Close JDev and reopen don't resolve.
    Thanks.

  • Error 403--Forbidden using eclipse and weblogic

    hi,
    i am new here on j2ee
    I am using eclipse3.4 and weblogic 9.1.2 on xp. I am trying to make simple hello world servlet
    here is what i did
    on the eclipse click New and click on Dynamic project
    click on Servlet and write following code for the servlet
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    * Servlet implementation class SecondServlet
    public class SecondServlet extends HttpServlet {
         public void service (HttpServletRequest req, HttpServletResponse res)
         throws IOException
              res.setContentType("text'html");
              PrintWriter out = res.getWriter();
              out.println("<html><head>" + "<title> Hello World </title></head>" +
                        "<h1>Hello Worldasd </h1></body></html>");
    folder structure and file web.xml is created by eclipse itself.
    then i started weblogic from the eclipse
    and i have following error
    http://localhost:7001/SecondServlet/
    Error 403--Forbidden
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.4 403 Forbidden
    The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

    I do connect with router/modem
    eclipse did create weblogic.xml. here it is
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://www.bea.com/ns/weblogic/90" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd">
    <wls:jsp-descriptor>
    <wls:keepgenerated>true</wls:keepgenerated>
    <wls:working-dir>C:\Documents and Settings\Owner\My Documents\jj\java-files\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\SecondServlet</wls:working-dir>
    <wls:debug>true</wls:debug>
    </wls:jsp-descriptor>
    <wls:context-root>SecondServlet</wls:context-root>
    </wls:weblogic-web-app>
    i did create a user proejct domain in weblogic.
    I did try by login through localhost:7001/console. but it didn't work. following is the problem
    Error 503--Service Unavailable
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.5.4 503 Service Unavailable
    The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay may be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.
    Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection.
    any more suggestion will be helpful.
    this is just a start so please i need to solve this problem so that i can move ahead
    thanks
    Edited by: chitochez on Dec 18, 2008 5:45 AM

  • Ejbc error: Stream Closed

    I get this error when i build my ejb jar file using weblogic.ejbc. I
    have defined WL_HOME and have applied sp12 of weblogic. Please help
    D:\xyz>C:\jdk1.2.2\jre\..\bin\java.exe -mx256m -classpath
    C:\xerces-1_2_1\xerces.jar;C:\Weblogic\lib
    \weblogic510sp12.jar;C:\Weblogic\lib\weblogic510sp12boot.jar;C:\Weblogic\classes\boot;C:\Weblogic\li
    cense;C:\Weblogic\classes;C:\Weblogic\lib\weblogicaux.jar;C:\Weblogic\myserver\clientclasses;C:\Webl
    ogic\myserver\serverclasses;C:\Weblogic\mssqlserver4v70\classes;C:\TOPLink3.6\TLJ\Classes\JDK1.2;C:\
    TOPLink3.6\TLJ\Classes\JDK1.2\Tools.jar;C:\TOPLink3.6\TLJ\Classes\JDK1.2\Toplink.jar;C:\TOPLink3.6\T
    LJ\Classes\JDK1.2\Toplinkx.jar;C:\TOPLink3.6\TLWL51\Classes\JDK1.2\TOPLinkWLX.jar;C:\qt_v2001_1p0;%J
    AVAMAIL_CLASSPATH%;%J2EE_CLASSPATH%;D:\hbp\build weblogic.ejbc
    -verbose -normi "-J-mx256m" -nowarn -
    compiler sj D:\abc\dist\lib\abc-generic.jar D:\abc\dist\lib\abc.jar
    I keep getting this error - ejbc error: Stream Closed
    Any help will be appreciated.

    I am using ant 1.4.1 for building this. The error message is just EJB
    Error: Stream Closed. It says that ejbc reported an error. No details
    at all. i know it is difficult to reproduce anywhere. When i installed
    jdk1.3, it gave error on the public id of the toplink meta-inf cmp xml
    files.
    Rob Woollen <[email protected]> wrote in message news:<[email protected]>...
    Can you show us the full error message?
    -- Rob
    Bala wrote:
    I get this error when i build my ejb jar file using weblogic.ejbc. I
    have defined WL_HOME and have applied sp12 of weblogic. Please help
    D:\xyz>C:\jdk1.2.2\jre\..\bin\java.exe -mx256m -classpath
    C:\xerces-1_2_1\xerces.jar;C:\Weblogic\lib
    \weblogic510sp12.jar;C:\Weblogic\lib\weblogic510sp12boot.jar;C:\Weblogic\classes\boot;C:\Weblogic\li
    cense;C:\Weblogic\classes;C:\Weblogic\lib\weblogicaux.jar;C:\Weblogic\myserver\clientclasses;C:\Webl
    ogic\myserver\serverclasses;C:\Weblogic\mssqlserver4v70\classes;C:\TOPLink3.6\TLJ\Classes\JDK1.2;C:\
    TOPLink3.6\TLJ\Classes\JDK1.2\Tools.jar;C:\TOPLink3.6\TLJ\Classes\JDK1.2\Toplink.jar;C:\TOPLink3.6\T
    LJ\Classes\JDK1.2\Toplinkx.jar;C:\TOPLink3.6\TLWL51\Classes\JDK1.2\TOPLinkWLX.jar;C:\qt_v2001_1p0;%J
    AVAMAIL_CLASSPATH%;%J2EE_CLASSPATH%;D:\hbp\build weblogic.ejbc
    -verbose -normi "-J-mx256m" -nowarn -
    compiler sj D:\abc\dist\lib\abc-generic.jar D:\abc\dist\lib\abc.jar
    I keep getting this error - ejbc error: Stream Closed
    Any help will be appreciated.

  • Weblogic.ejbc compiler

    Hi, i've a problem with the boot of the entity beans.
    My entity beans extends a class in which there is a definition of a public variable Long which there isn't defined in the bean but it is in the ejb-jar.xml as cmp-field and in the weblogic-ejb-extensions as attribute map.
    The weblogic.ejbc -i ejb-jar.xml -x weblogic-ejb-extensions.xml doesn't give me exception, but when i boot the application (tmboot -y) i've this log :
    ERROR: While deploying bean it.sella.anagrafe.evento.EventoEJB
    java.lang.NoSuchFieldException: id
    174943.dcsv01!JavaServer.7981: main: EJB_CAT:28: ERROR: While deploying bean it.sella.anagrafe.evento.EventoEJB
    : The EJB Container received weblogic.ejb.common.DeploymentException: EJB_CAT:28: ERROR: While deploying bean
    it.sella.anagrafe.evento.EventoEJB :
    java.lang.NoSuchFieldException: id while setting container managed persistence.
    Could you help me?
    Regards

    Mary Ann Slavin <[email protected]> wrote:
    Error 28 indicates that there is a problem with the deployment descriptor. Check that -- ERROR 28: Make sure the deployable JAR contains a compliant deployment descriptor.
    There are following the two xml files, The EventoBean class, the EntityBeanAdapter class extended by EventoBean and the primary key class DefaultPK
    This is, i think,the better way to an help.
    The problem is in the boot of the application( the same works fine with WLS5.1)
    ejb-jar.xml
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
    <ejb-jar>
    <enterprise-beans>
    <entity>
         <ejb-name>it.sella.anagrafe.evento.EventoEJB</ejb-name>
         <home>it.sella.anagrafe.evento.EventoHome</home>
         <remote>it.sella.anagrafe.evento.Evento</remote>
         <ejb-class>it.sella.anagrafe.evento.EventoBean</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>it.sella.ejb.DefaultPK</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-field>
         <field-name>id</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>soggettoId</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>compatibleInstanceId</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>compatibleTypeId</field-name>
         </cmp-field>
    <cmp-field>
         <field-name>rightPk</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>value</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>dateValue</field-name>
         </cmp-field>
         <env-entry>
              <env-entry-name>counterHomeName</env-entry-name>
              <env-entry-type>java.lang.String</env-entry-type>
              <env-entry-value>it.sella.counter.CounterHome</env-entry-value>
         </env-entry>
         <resource-ref>
              <res-ref-name>jdbc/clientPool</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Container</res-auth>
         </resource-ref>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
         <method>
         <ejb-name>it.sella.anagrafe.evento.EventoEJB</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-extensions.xml
    <!DOCTYPE weblogic-ejb-extensions SYSTEM "weblogic-ejb-extensions.dtd" >
    <weblogic-ejb-extensions>
    <weblogic-enterprise-bean>
    <ejb-name>it.sella.anagrafe.evento.EventoEJB</ejb-name>
    <weblogic-deployment-params>
    <!-- <max-beans-in-free-pool>20</max-beans-in-free-pool>-->
    <!-- <max-beans-in-cache>1000</max-beans-in-cache>-->
    <!--<idle-timeout-seconds>5</idle-timeout-seconds>-->
    <!-- JNDI name that is associated with this EJB;used for lookup -->
    <jndi-name>it.sella.anagrafe.evento.EventoHome</jndi-name>
    <!-- This is CMP EJB. Specify persistence information -->
    <persistence-store-descriptor>
    <is-modified-method-name>isModified</is-modified-method-name>
         <!--<delay-updates-until-end-of-tx>false</delay-updates-until-end-of-tx>-->
    <!--<db-is-shared>false</db-is-shared>-->
    <persistence-store-jdbc>
    <!-- Pool name is looked up by the EJB source -->
    <pool-name>jdbc/clientPool</pool-name>
    <!-- *** DATABASE INFORMATION SPECIFIC TO INSTALLATION SITE *** -->
    <user>ssil</user>
    <!-- Default password URL is for Oracle 8i-->
    <password>ssil</password>
    <!-- Default driver URL is for Oracle 8i,
    and default instance Beq-Local is used
    -->
    <driver-url>jdbc:oracle:thin:@171.97.1.5:1521:th2o</driver-url>
    <table-name>an_tr_evento</table-name>
    <!-- Default user URL is for Oracle 8i-->
    <!-- CMP Fields and database table column mapping-->
    <attribute-map>
    <attribute-map-entry>
    <bean-field-name>id</bean-field-name>
    <table-column-name>ev_evento_id</table-column-name>
    </attribute-map-entry>
    <attribute-map-entry>
    <bean-field-name>soggettoId</bean-field-name>
    <table-column-name>ev_soggetto_id</table-column-name>
    </attribute-map-entry>
    <attribute-map-entry>
    <bean-field-name>compatibleInstanceId</bean-field-name>
    <table-column-name>ev_compatible_instance_id</table-column-name>
    </attribute-map-entry>
    <attribute-map-entry>
    <bean-field-name>compatibleTypeId</bean-field-name>
    <table-column-name>ev_compatible_type_id</table-column-name>
    </attribute-map-entry>
    <attribute-map-entry>
    <bean-field-name>value</bean-field-name>
    <table-column-name>ev_value</table-column-name>
    </attribute-map-entry>
    <attribute-map-entry>
    <bean-field-name>dateValue</bean-field-name>
    <table-column-name>ev_date_value</table-column-name>
    </attribute-map-entry>
    <attribute-map-entry>
    <bean-field-name>rightPk</bean-field-name>
    <table-column-name>ev_right_pk</table-column-name>
    </attribute-map-entry>
    </attribute-map>
    <!-- Finder Specifications -->
    <finder-descriptor>
    <description>
    Find method to get accounts with balance over the parameter.
    </description>
    <method>
    <ejb-name>
    it.sella.anagrafe.documento.DocumentoHome
    </ejb-name>
    <method-name>
    findBySoggettoId(Long long1)
    </method-name>
    </method>
    <query-grammar>
    (= soggettoId $long1)
    </query-grammar>
    </finder-descriptor>
    </persistence-store-jdbc>
    </persistence-store-descriptor>
    </weblogic-deployment-params>
    </weblogic-enterprise-bean>
    </weblogic-ejb-extensions>
    EventoBean class
    package it.sella.anagrafe.evento;
    import it.sella.ejb.EntityBeanAdapter;
    import java.rmi.RemoteException;
    import java.sql.Timestamp;
    public class EventoBean extends EntityBeanAdapter
    public Long soggettoId;
    public Long compatibleInstanceId;
    public Long compatibleTypeId;
    public String value;
    public Timestamp dateValue;
    public Long rightPk;
    public EventoBean()
    protected Long getCounterInitVal()
    return new Long(1000L);
    public Timestamp getDateValue()
    throws RemoteException
    return dateValue;
    public Long getInstanceId()
    throws RemoteException
    return compatibleInstanceId;
    public Long getRightPk()
    throws RemoteException
    return rightPk;
    public Long getSoggettoId()
    throws RemoteException
    return soggettoId;
    public Long getTypeId()
    throws RemoteException
    return compatibleTypeId;
    public String getValue()
    throws RemoteException
    return value;
    public void setDateValue(Timestamp timestamp)
    throws RemoteException
    dateValue = timestamp;
    setModified(true);
    public void setInstanceId(Long long1)
    throws RemoteException
    compatibleInstanceId = long1;
    setModified(true);
    public void setRightPk(Long long1)
    throws RemoteException
    rightPk = long1;
    setModified(true);
    public void setSoggettoId(Long long1)
    throws RemoteException
    soggettoId = long1;
    setModified(true);
    public void setTypeId(Long long1)
    throws RemoteException
    compatibleTypeId = long1;
    setModified(true);
    public void setValue(String s)
    throws RemoteException
    value = s;
    setModified(true);
    EntityBeanAdapter class
    package it.sella.ejb;
    import it.sella.ejb.counter.Counter;
    import it.sella.ejb.counter.CounterGenerationException;
    import it.sella.ejb.counter.CounterHome;
    import it.sella.ejb.counter.CounterPK;
    import it.sella.ejb.link.ILink;
    import java.beans.*;
    import java.io.PrintStream;
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    import java.rmi.RemoteException;
    import java.util.*;
    import javax.ejb.*;
    import javax.naming.*;
    import javax.rmi.PortableRemoteObject;
    // Referenced classes of package it.sella.ejb:
    // EnterpriseBeanAdapter, IEJBView, IEJBEntityObject, DefaultPK,
    // IEntityBean, IPrimaryKey
    public abstract class EntityBeanAdapter extends EnterpriseBeanAdapter
    implements IEntityBean
    public Long id;
    private EntityContext entityContext;
    private transient boolean isModified;
    private static transient String counterHomeName = "CounterHome";
    private static transient CounterHome counterHome;
    private transient boolean beanRemovable;
    private transient Counter counter;
    private Class ejbViewClass;
    public EntityBeanAdapter()
    beanRemovable = false;
    protected Long getCounterInitVal()
    return new Long(-1L);
    public void ejbActivate()
    throws RemoteException
    log(3, "ejbActivate (" + this + ")");
    public void ejbLoad()
    throws RemoteException
    log(3, "ejbLoad: (" + this + ")");
    setModified(false);
    public IPrimaryKey ejbCreate(IEJBView ejbView)
    throws RemoteException, CreateException
    log(3, "ejbCreate: (" + this + ") from (" + ejbView + ")");
    ejbCreate();
    setAttributesFromEJBView(ejbView);
    setModified(false);
    return getPrimaryKey();
    public void ejbPostCreate(IEJBView ejbView)
    throws RemoteException, CreateException
    log(3, "ejbPostCreate: (" + this + ") from (" + ejbView + ")");
    public IPrimaryKey ejbCreate()
    throws RemoteException, CreateException
    System.out.println("inside ejbCreate");
    log(3, "ejbCreate: (" + this + ")");
    setPrimaryKeyID(getNextId());
    System.out.println("After setPrimaryKeyID in EBA");
    System.out.println("before defaultvalue setting in EBA with pk val" + getPrimaryKeyID().toString());
    setAttributesWithDefaultValues();
    setModified(false);
    System.out.println("before return in ejbCreate() in EBA with pk val" + getPrimaryKeyID().toString());
    return getPrimaryKey();
    public void ejbPostCreate()
    throws RemoteException, CreateException
    log(3, "ejbPostCreate: (" + this + ")");
    public void setAttributesWithDefaultValues()
    throws CreateException
    public void setAttributesFromEJBView(IEJBView ejbView)
    throws CreateException
    try
    setEJBEntityPropertiesFromEJBView(ejbView);
    catch(InvocationTargetException e)
    e.printStackTrace();
    throw new CreateException(e.getMessage());
    catch(IntrospectionException e)
    e.printStackTrace();
    throw new CreateException(e.getMessage());
    catch(IllegalAccessException e)
    e.printStackTrace();
    throw new CreateException(e.getMessage());
    protected void setEJBEntityPropertiesFromEJBView(IEJBView ejbView)
    throws IllegalAccessException, IntrospectionException, InvocationTargetException
    Class ejbViewClass = ejbView.getClass();
    BeanInfo ejbViewInfo = Introspector.getBeanInfo(ejbViewClass);
    PropertyDescriptor ejbViewProps[] = ejbViewInfo.getPropertyDescriptors();
    for(int n = 0; n < ejbViewProps.length; n++)
    Method ejbViewGetMethod = ejbViewProps[n].getReadMethod();
    if(ejbViewGetMethod == null)
    continue;
    try
    StringBuffer setMethodName = (new StringBuffer("set")).append(ejbViewProps[n].getName());
    setMethodName.setCharAt(3, Character.toUpperCase(setMethodName.charAt(3)));
    Method ejbEntityObjectSetMethod = getClass().getMethod(setMethodName.toString(), new Class[] {
    ejbViewProps[n].getPropertyType()
    Object args[] = new Object[1];
    args[0] = ejbViewGetMethod.invoke(ejbView, new Object[0]);
    ejbEntityObjectSetMethod.invoke(this, args);
    log(3, "method " + setMethodName);
    catch(NoSuchMethodException e)
    log(3, "NoSuchMethodException: " + e.getMessage());
    protected void setEJBViewPropertiesFromEJBEntity(IEJBView ejbView)
    throws IllegalAccessException, IntrospectionException, InvocationTargetException
    Class ejbViewClass = ejbView.getClass();
    BeanInfo ejbViewInfo = Introspector.getBeanInfo(ejbViewClass);
    PropertyDescriptor ejbViewProps[] = ejbViewInfo.getPropertyDescriptors();
    for(int n = 0; n < ejbViewProps.length; n++)
    Method ejbViewSetMethod = ejbViewProps[n].getWriteMethod();
    if(ejbViewSetMethod == null)
    continue;
    try
    StringBuffer getMethodName = (new StringBuffer("get")).append(ejbViewProps[n].getName());
    getMethodName.setCharAt(3, Character.toUpperCase(getMethodName.charAt(3)));
    Method ejbEntityObjectGetMethod = getClass().getMethod(getMethodName.toString(), new Class[0]);
    Object args[] = new Object[1];
    args[0] = ejbEntityObjectGetMethod.invoke(this, new Object[0]);
    ejbViewSetMethod.invoke(ejbView, args);
    log(3, "method " + getMethodName);
    catch(NoSuchMethodException e)
    log(3, e.getMessage());
    public void ejbPassivate()
    throws RemoteException
    log(3, "ejbPassivate (" + this + ")");
    public void ejbRemove()
    throws RemoveException, RemoteException
    log(3, "ejbRemove (" + this + ")");
    if(isBeanRemovable())
    log(3, "<EBA>In ejbRemove : Bean is removable -> going to remove the linked beans(if any)");
    removeLinks();
    log(3, "<EBA>In ejbRemove : links are removed(if any)");
    } else
    throw new RemoveException("Could not Remove EJBean. Possible Cause -> IsBeanRemovable env-entry Property for this bean or its linked beans(Aggregated) in their ejb-jar xml file not set or set as False");
    public void ejbStore()
    throws RemoteException
    log(3, "ejbStore (" + this + ")");
    setModified(false);
    public final boolean isModified()
    return isModified;
    public final void setModified(boolean modified)
    isModified = modified;
    protected final EntityContext getEntityContext()
    return entityContext;
    public final void setEntityContext(EntityContext context)
    throws RemoteException
    InitialContext ctx = null;
    log(3, "setEntityContext (" + this + ")");
    entityContext = context;
    log(3, "In setEntityContext - context set and = " + entityContext.toString());
    try
    ctx = new InitialContext();
    setCounterHomeName((String)ctx.lookup("java:comp/env/counterHomeName"));
    String beanRemovableFlag = (String)ctx.lookup("java:comp/env/isBeanRemovable");
    if(beanRemovableFlag.equalsIgnoreCase("true"))
    setBeanRemovable(Boolean.TRUE.booleanValue());
    else
    if(beanRemovableFlag.equalsIgnoreCase("false"))
    setBeanRemovable(Boolean.FALSE.booleanValue());
    else
    throw new IllegalArgumentException("Could not take the environment entry for IsBeanRemovable ");
    catch(NamingException ne)
    setCounterHomeName("it.sella.counter.CounterHome");
    setBeanRemovable(Boolean.FALSE.booleanValue());
    log(3, "Naming Exception Default Exception");
    finally
    try
    ctx.close();
    catch(Exception exception1) { }
    public final void unsetEntityContext()
    throws RemoteException
    log(3, "unsetEntityContext (" + this + ")");
    entityContext = null;
    protected String getEJBViewClassName(IEntityBean entity)
    String ejbEntityClassName = entity.getClass().getName();
    StringBuffer tmp = new StringBuffer(ejbEntityClassName);
    tmp.replace(ejbEntityClassName.lastIndexOf("Bean"), ejbEntityClassName.length(), "View");
    return tmp.toString();
    private Class getEJBViewClass(IEntityBean entity)
    throws ClassNotFoundException
    if(ejbViewClass == null)
    ejbViewClass = Class.forName(getEJBViewClassName(entity), true, entity.getClass().getClassLoader());
    return ejbViewClass;
    public final IEJBView getEJBView()
    IEJBView ejbView;
    try
    ejbView = (IEJBView)getEJBViewClass(this).newInstance();
    setEJBViewPropertiesFromEJBEntity(ejbView);
    catch(Exception e)
    e.printStackTrace();
    throw new RuntimeException(e.getMessage());
    return ejbView;
    public final String getEJBViewString()
    return getEJBView().toString();
    public String toString()
    return super.toString();
    public final IEJBEntityObject getEJBObject()
    return (IEJBEntityObject)getEntityContext().getEJBObject();
    private Counter getCounter()
    throws CounterGenerationException
    if(counter == null)
    try
    counter = (Counter)PortableRemoteObject.narrow(getCounterHome().findByPrimaryKey(new CounterPK(getHomeInterfaceClassName())), Class.forName("it.sella.ejb.counter.Counter"));
    catch(RemoteException nex)
    throw new CounterGenerationException("Remote exception in getCounter() during findByPrimaryKey" + nex.getLocalizedMessage());
    catch(NamingException nex)
    throw new CounterGenerationException("Naming exception in getCounter() during findByPrimaryKey" + nex.getLocalizedMessage());
    catch(FinderException fex)
    try
    counter = (Counter)PortableRemoteObject.narrow(getCounterHome().create(getHomeInterfaceClassName(), getCounterInitVal()), Class.forName("it.sella.ejb.counter.Counter"));
    catch(CreateException cex)
    throw new CounterGenerationException("Create exception in getCounter() during create - Counter could not be created!!!" + cex.getLocalizedMessage());
    catch(RemoteException nex)
    throw new CounterGenerationException("Remote exception in getCounter() during create - Counter could not be created!!!" + nex.getLocalizedMessage());
    catch(NamingException nex)
    throw new CounterGenerationException("Naming exception in getCounter() - during create - Counter could not be created!!!" + nex.getLocalizedMessage());
    return counter;
    private static CounterHome getCounterHome()
    throws NamingException
    if(counterHome == null)
    Context ctx = new InitialContext();
    counterHome = (CounterHome)ctx.lookup(counterHomeName);
    return counterHome;
    private Long getNextId()
    throws CounterGenerationException
    try
    Long long1 = getCounter().getNextId();
    return long1;
    catch(RemoteException nex)
    nex.printStackTrace();
    throw new CounterGenerationException("Remote exception while calling counter.getNextId()" + nex.getLocalizedMessage());
    public IPrimaryKey getPrimaryKey()
    System.out.println("in getPrimaryKey():" + getPrimaryKeyID());
    return new DefaultPK(getPrimaryKeyID());
    private void setPrimaryKey(IPrimaryKey pk)
    throws IllegalAccessException
    throw new IllegalAccessException("This method cannot be called directly.");
    private String getHomeInterfaceClassName()
    throws RemoteException
    return getEntityContext().getEJBHome().getEJBMetaData().getHomeInterfaceClass().getName();
    public Long getPrimaryKeyID()
    System.out.println("id in getPrimaryKeyId :" + id);
    return id;
    private void setPrimaryKeyID(Long id)
    System.out.println("<<Eba>>setPrimaryKeyID:" + id.toString());
    this.id = id;
    public String getCounterHomeName()
    return counterHomeName;
    private void setCounterHomeName(String newCounterHomeName)
    counterHomeName = newCounterHomeName;
    private Collection getLinks()
    throws RemoveException
    String prefix = "get";
    String suffix = "Link";
    Vector links = new Vector();
    Method beanMethods[] = null;
    try
    beanMethods = getClass().getMethods();
    for(int i = 0; i < beanMethods.length; i++)
    log(3, "<EBA> beanMethods: " + beanMethods.getName());
    if(beanMethods[i].getName().endsWith(suffix) && beanMethods[i].getName().startsWith(prefix))
    ILink curLink = (ILink)beanMethods[i].invoke(this, null);
    links.add(curLink);
    log(3, "<EBA> ILink object " + curLink);
    catch(Exception e)
    log(3, "<EBA> Error in in getLinks()-> " + e.getMessage());
    throw new RemoveException("Error in in getLinks()" + e.getMessage());
    return links;
    protected boolean isBeanRemovable()
    return beanRemovable;
    private void setBeanRemovable(boolean removeFlag)
    beanRemovable = removeFlag;
    private void removeLinks()
    throws RemoveException
    log(3, "<EBA> in removeLinks() -> before getLinks()");
    Collection links = getLinks();
    if(!links.isEmpty())
    log(3, "<EBA> in removeLinks() -> linked objects exists");
    ILink linkToDestroy;
    for(Iterator it = links.iterator(); it.hasNext(); linkToDestroy.destroyLink())
    linkToDestroy = (ILink)it.next();
    DefaultPK class
    package it.sella.ejb;
    // Referenced classes of package it.sella.ejb:
    // IPrimaryKey
    public class DefaultPK
    implements IPrimaryKey
    public Long id;
    public DefaultPK()
    public DefaultPK(Long id)
    setId(id);
    public Long getId()
    return id;
    protected void setId(Long id)
    this.id = id;
    public String toString()
    return "Id=" + getId();
    public int hashCode()
    return getId() == null ? 0 : getId().hashCode();
    public boolean equals(Object obj)
    if(obj != null && (obj instanceof DefaultPK))
    return getId() != null && getId().equals(((DefaultPK)obj).getId());
    else
    return false;

  • EJB and WebLogic

    I am quite new to weblogic. I created very simple application, stockonline using ejb in weblogic. The compilation and package were OK. But when I deploy ejb jar name stockonline-core-1.0.jar in weblogic, I always got the same error
    Exception:weblogic.management.ApplicationException: prepare failed for stockonline-core-1.0 Module: stockonline-core-1.0 Error: Exception preparing module: EJBModule(stockonline-core-1.0,status=NEW) Unable to deploy EJB: Account from stockonline-core-1.0.jar: java.lang.AssertionError: Unable to find expected methods. Please check your classpath for stale versions of your ejb classes and re-run weblogic.ejbc at stockonline.bean.ejb.Account_hzbwy8_LocalHomeImpl.<clinit>(Account_hzbwy8_LocalHomeImpl.java:65) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInfoImpl.java:1026) at weblogic.ejb20.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:1004) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1345) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3142) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1583) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1227) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1070) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2513) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2463) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2379) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    * [Deployer:149033]preparing application stockonline-core-1.0 on myserver
    * [Deployer:149033]failed application stockonline-core-1.0 on myserver
    * [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application stockonline-core-1.0 on myserver.: Exception:weblogic.management.ApplicationException: prepare failed for stockonline-core-1.0 Module: stockonline-core-1.0 Error: Exception preparing module: EJBModule(stockonline-core-1.0,status=NEW) Unable to deploy EJB: Account from stockonline-core-1.0.jar: java.lang.AssertionError: Unable to find expected methods. Please check your classpath for stale versions of your ejb classes and re-run weblogic.ejbc at stockonline.bean.ejb.Account_hzbwy8_LocalHomeImpl.<clinit>(Account_hzbwy8_LocalHomeImpl.java:65) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInfoImpl.java:1026) at weblogic.ejb20.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:1004) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1345) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3142) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1583) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1227) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1070) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2513) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2463) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2379) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) .
    When I looked at the come of Account_hzbwy8_LocalHomeImpl.java, the error was with create method. I don't why. I don't think any problem with the application logic since I deployed the same code in JBoss and it worked. Could anyone help me? I really appreciate. I use weblogic with oracle in a remote machine.
    I used maven to package.
    <postGoal name="ejb:ejb">
    <ant:java classname="weblogic.ejbc" fork="yes" failonerror="yes">
    <!--ant:sysproperty key="weblogic.home" value="${WL_HOME}/server"/-->
    <ant:arg line="-compiler javac ${maven.build.dir}/${maven.final.name}.jar" />
    <ant:classpath>
    <ant:pathelement path="${WL_HOME}/server/lib/weblogic.jar" />
    <ant:pathelement location="${env.JAVA_HOME}/lib/tools.jar"/>
    <ant:pathelement location="${USER_MAVEN}/stockonline/jars/stockonline-common-1.0.jar"/>
    </ant:classpath>
    </ant:java>
    </postGoal>     
    Thanks
    Betty

    Hi,guys, I am new to EJB. when i want to deploy the EJB,I got the problem,which is similar yours:
    Exception:weblogic.management.ApplicationException: prepare failed for HelloEJB Module: HelloEJB Error: Exception preparing module: EJBModule(HelloEJB,status=NEW) Unable to deploy EJB: HelloWorld from HelloEJB.jar: java.lang.AssertionError: Unable to find expected methods. Please check your classpath for stale versions of your ejb classes and re-run weblogic.ejbc at hello.HelloWorld_ap17lf_HomeImpl.<clinit>(HelloWorld_ap17lf_HomeImpl.java:55) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259) at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInfoImpl.java:921) at weblogic.ejb20.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:983) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1283) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2847) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500) 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)
    [Deployer:149033]preparing application HelloEJB on admin
    [Deployer:149033]failed application HelloEJB on admin
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application HelloEJB on admin.: Exception:weblogic.management.ApplicationException: prepare failed for HelloEJB Module: HelloEJB Error: Exception preparing module: EJBModule(HelloEJB,status=NEW) Unable to deploy EJB: HelloWorld from HelloEJB.jar: java.lang.AssertionError: Unable to find expected methods. Please check your classpath for stale versions of your ejb classes and re-run weblogic.ejbc at hello.HelloWorld_ap17lf_HomeImpl.<clinit>(HelloWorld_ap17lf_HomeImpl.java:55) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259) at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInfoImpl.java:921) at weblogic.ejb20.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:983) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1283) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2847) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500) 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)
    Is somebody can help me to fix , thanks !!

  • EJBC error when using Commons Logging API

    All,
    I am using weblogic 7.0 and Commons with log4j.When I run the
    ejbc I get the following error.
    There is no package called Lorg in my classpath.
    Any suggestions on why this is happening?
    Thanks in Advance,
    Chandrav
    [java] ERROR: Error from ejbc: Class not found: Lorg/apache/commons/logging/Log;
    [java] <Apr 23, 2003 1:59:58 PM PDT> <Warning> <EJB> <010054> <EJB Deploym
    ent: ServiceProviderInterfaceEntityBean has a class com.wisor.validator.servicep
    rovidermanagement.entitybean.ServiceProviderInterfaceEntityLocal which is in the
    classpath. This class should only be located in the ejb-jar file.>
    [java] [EJBCompiler] : Recompiling because no previous hashes found
    [java]
    [java] java.lang.NoClassDefFoundError: Class not found: Lorg/apache/commons
    /logging/Log;
    [java] at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBCompl
    ianceChecker.java:282)
    [java] at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymen
    tInfo(EJBComplianceChecker.java:227)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompile
    r.java:923)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.j
    ava:879)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:23
    2)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:3
    96)
    [java] at weblogic.ejbc20.runBody(ejbc20.java:459)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:126)
    [java] at weblogic.ejbc.main(ejbc.java:21)
    [java]
    [java]
    [java] ERROR: ejbc found errors
    [java]
    BUILD FAILED

    make sure you have defined the commons logging jar as a Class-Path entry in
    your ejb jar META-INF\manifest.mf file
    \"Chandrasekaran.V" <[email protected]> wrote in message news:<3ea75721$[email protected]>...
    All,
    I am using weblogic 7.0 and Commons with log4j.When I run the
    ejbc I get the following error.
    There is no package called Lorg in my classpath.
    Any suggestions on why this is happening?
    Thanks in Advance,
    Chandrav
    [java] ERROR: Error from ejbc: Class not found: Lorg/apache/commons/logging/Log;
    [java] <Apr 23, 2003 1:59:58 PM PDT> <Warning> <EJB> <010054> <EJB Deploym
    ent: ServiceProviderInterfaceEntityBean has a class com.wisor.validator.servicep
    rovidermanagement.entitybean.ServiceProviderInterfaceEntityLocal which is in the
    classpath. This class should only be located in the ejb-jar file.>
    [java] [EJBCompiler] : Recompiling because no previous hashes found
    [java]
    [java] java.lang.NoClassDefFoundError: Class not found: Lorg/apache/commons
    /logging/Log;
    [java] at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBCompl
    ianceChecker.java:282)
    [java] at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymen
    tInfo(EJBComplianceChecker.java:227)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompile
    r.java:923)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.j
    ava:879)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:23
    2)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:3
    96)
    [java] at weblogic.ejbc20.runBody(ejbc20.java:459)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:126)
    [java] at weblogic.ejbc.main(ejbc.java:21)
    [java]
    [java]
    [java] ERROR: ejbc found errors
    [java]
    BUILD FAILED

  • Ejbc error in entity bean

    I am making a entity bean.It is giving a ejbc error >>
    Error processing 'META-INF/weblogic-ejb-jar.xml': In weblogic
    -ejb-jar.xml, an entity-descriptor element was found for EJB 'sachinBeanEntity'.
    This EJB was not declared as an Entity bean in ejb-jar.xml.
    [java] ERROR: ejbc found errors
    Here 'sachinBeanEntity' is my Entity bean.
    The corresponding contents of ejb-jar.xml is >>
    <entity>
         <ejb-name>sachinBeanEntity</ejb-name>
         <home>com.niit.oem.mst.ejb.sachinHomeEntity</home>
         <remote>com.niit.oem.mst.ejb.sachinEntity</remote>
         <ejb-class>com.niit.oem.mst.ejb.sachinBeanEntity</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>java.lang.Integer</prim-key-class>
         <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
         <abstract-schema-name>sachinBeanEntity</abstract-schema-name>
         <cmp-field>
         <field-name>Name</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>Id</field-name>
         </cmp-field>
         <primkey-field>Id</primkey-field>
         <security-identity><use-caller-identity/></security-identity>
    </entity>
    The corresponding contents of weblogic-ejb-jar.xml is >>
    <ejb-name>sachinBeanEntity</ejb-name>
    <entity-descriptor>
    <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>
    <local-jndi-name>sachinBeanLookUpEntity</local-jndi-name>
    Pl suggest how to remove the error from ejbc.
    Thanx
    robby

    ejbc uses classloader.getResourceAsStream to find the ejb-jar.xml. Is it possible
    that it's finding another copy of the file. I would change something in your
    ejb-jar.xml (ie make it so the parser will fail.) and make sure that ejbc hits that
    error.
    If you're still having problems, can you post your ejb-jar.xml and
    weblogic-ejb-jar.xml?
    -- Rob
    robby wrote:
    I am making a entity bean.It is giving a ejbc error >>
    Error processing 'META-INF/weblogic-ejb-jar.xml': In weblogic
    -ejb-jar.xml, an entity-descriptor element was found for EJB 'sachinBeanEntity'.
    This EJB was not declared as an Entity bean in ejb-jar.xml.
    [java] ERROR: ejbc found errors
    Here 'sachinBeanEntity' is my Entity bean.
    The corresponding contents of ejb-jar.xml is >>
    <entity>
    <ejb-name>sachinBeanEntity</ejb-name>
    <home>com.niit.oem.mst.ejb.sachinHomeEntity</home>
    <remote>com.niit.oem.mst.ejb.sachinEntity</remote>
    <ejb-class>com.niit.oem.mst.ejb.sachinBeanEntity</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>sachinBeanEntity</abstract-schema-name>
    <cmp-field>
    <field-name>Name</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>Id</field-name>
    </cmp-field>
    <primkey-field>Id</primkey-field>
    <security-identity><use-caller-identity/></security-identity>
    </entity>
    The corresponding contents of weblogic-ejb-jar.xml is >>
    <ejb-name>sachinBeanEntity</ejb-name>
    <entity-descriptor>
    <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>
    <local-jndi-name>sachinBeanLookUpEntity</local-jndi-name>
    Pl suggest how to remove the error from ejbc.
    Thanx
    robby

  • Weblogic.ejbc wants weblogic.home sysproperty in ant - why

    I found that I had to add the following 'sysproperty' line to an ant target which
    runs weblogic.ejbc:
    <target name="ejbjar" depends="jar">
    <mkdir dir="${java.class.dir}/${package.dir}/tmp"/>
    <java classname="weblogic.ejbc" fork="true" failonerror="true">
    <sysproperty key="weblogic.home" value="c:/bea70/weblogic700/server"/>
    <classpath>
    <path refid="classpathWL"/>
    </classpath>
    <arg line="${java.class.dir}/${archive}.jar ${java.class.dir}/ejb-${archive}.jar"/>
    </java>
    </target>
    If the line is not there I get an error:
    [java] ERROR: Error from ejbc: error in finding weblogic.Home
    If the line is there and points to an invalid weblogic.home directory the error is:
    [java] ERROR: Error from ejbc: Installation file c:\temp\lib\persistence\persistence.install
    does not exist. Could not initialize EJB container managed persistence.
    However the file contains only one line:
    WebLogic_CMP_RDBMS.xml.
    Question: is there a way to specify this value directly to weblogic.ejbc without
    the look-up to the file? In my case I would like to do a build on a machine where
    weblogic is not installed (but of course weblogic.jar is available). It is trivial
    to add the file to the FS somewhere but why bother?

    here is my Ant target looks like...
    <property name="classpath" value="${lib.ext.dir}/j2ee12.jar;${lib.ext.dir}/weblogic.jar;${lib.ext.dir}/log4j-1.2.9.jar;${lib.ext.dir}/struts.jar;${dest.dir}/${ant.project.name}.jar"/>
    <target name="testjar">
    <javac srcdir="${src.dir}" destdir="${ejbc.dir}" classpath="${classpath}"/>
    <ejbjar srcdir="${dest.dir}" descriptordir="${desc.dir}" basejarname="test" classpath="${classpath}">
    <weblogic destdir="${lib.dir}" classpath="${classpath}" oldCMP="false"/>
    <include name="**/ejb-jar.xml" />
    <exclude name="**/weblogic*.xml" />
    <dtd publicid="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" location="${lib.dir}/dtd/ejb20-jar.dtd"/>
    <dtd publicid="-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN" location="${lib.dir}/dtd/weblogic-ejb-jar.dtd"/>
    </ejbjar>
    </target>
    I a not sure where to specify <sysproperty....>
    Please revert back if u know the answer.

Maybe you are looking for

  • New W510 Bios with some USB updates...

    There's a new W510 BIOS: 1.34/1.35. http://www-307.ibm.com/pc/support/site.wss/documen​t.do?sitestyle=lenovo&lndocid=MIGR-74858&medium=rs​... (New) Added support of "Power On with AC Attach" feature at BIOS Setup Utility -> Config -> Power submenu. (

  • How to use niSwitch_InitWithTopology with PXI-2567 relais card

    Hello, I'm trying to get the NI Visual Basic example niSwitchControllingAnIndividualRelay.vbp working with a PXI-2567 relais card. I doesn't seem to get my ResourceName and Topology (the first two parameters of the niSwitch_InitWithTopology function)

  • Getting VSG to recognise VNMC policy

    Hello All, I've installed the VSG and VNMC and it all looks good (everything's registered, everything sees everything else - VEM, VSM, etc.) however as soon as I try and apply a firewall policy to a port-profile from my VSM I get this logged in the V

  • UDF not Enableing in title level

    Hi Experts UDF is not enabeling while SAP once closed or opened, on every opening time we need to create or  remove the only one Field in title level then only i can get(View) all the predefined UDF in title level. y this is happening here..can any o

  • Trying to not wait on a server socket

    Hi! I need my code to not sit and pause on an accept command for server sockets, but still continue listening for incoming connections. How do I do this? Thanks!