Persistance layer failed to deploy - Weblogic

This is a discussion on Persistance layer failed to deploy - Weblogic ; Hi, When I try to build using ant file I am getting the following exception in WLS8.1 [java] [EJB:011016]The persistence layer of the Entity EJB failed to deploy. [java] [EJB:011018]The file weblogic-cmp-rdbms-jar.xml, specified in a type-storage element of your weblogic-ejb-jar.xml ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Persistance layer failed to deploy

  1. Persistance layer failed to deploy


    Hi,

    When I try to build using ant file I am getting the following exception in WLS8.1

    [java] [EJB:011016]The persistence layer of the Entity EJB failed to deploy.
    [java] [EJB:011018]The file weblogic-cmp-rdbms-jar.xml, specified in a type-storage
    element of your weblogic-ejb-jar.xml descriptor, does not exi
    the JAR file.
    [java] at weblogic.ejb20.persistence.PersistenceType.setType SpecificFile(PersistenceType.java:469)

    My weblogic-ejb-jar.xml file is :

    "http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd" >




    UserCheck

    Gateway_UC_Home





    Log


    ramtopic1


    Log





    GatewayUpdate


    1000



    WebLogic_CMP_RDBMS
    7.0
    weblogic-cmp-rdbms-jar.xml



    RemoteMsg_Update_Home



    My weblogic-cmp-rdbms-jar.xml file is:

    '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB RDBMS Persistence//EN'
    'http://www.bea.com/servers/wls810/dtd/weblogic-rdbms20-persistence-810.dtd'>



    GatewayUpdate
    gatewayPool
    textsms

    user
    user


    msgid
    msgid


    msg
    msg


    org
    org


    mno
    mno


    status
    status


    False


    Pl.suggest.

    Ram



  2. Re: Persistance layer failed to deploy

    I'd suggest you build the CMP example that ships with WLS. Then compare
    the structure of its ejb-jar with your application.

    If you're still having problems, can you show me the output of jar tvf
    on your ejb-jar file? It's looking for the CMP descriptor in the
    META-INF directory.

    -- Rob

    Ram wrote:
    > Hi,
    >
    > When I try to build using ant file I am getting the following exception in WLS8.1
    >
    > [java] [EJB:011016]The persistence layer of the Entity EJB failed to deploy.
    > [java] [EJB:011018]The file weblogic-cmp-rdbms-jar.xml, specified in a type-storage
    > element of your weblogic-ejb-jar.xml descriptor, does not exi
    > the JAR file.
    > [java] at weblogic.ejb20.persistence.PersistenceType.setType SpecificFile(PersistenceType.java:469)
    >
    > My weblogic-ejb-jar.xml file is :
    >
    > > "http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd" >
    >
    >
    >
    >
    > UserCheck
    >
    > Gateway_UC_Home
    >
    >

    >
    >
    >
    > Log
    >
    >
    > ramtopic1
    >

    >
    > Log
    >
    >

    >
    >
    >
    > GatewayUpdate
    >
    >
    > 1000
    >

    >
    >
    > WebLogic_CMP_RDBMS
    > 7.0
    > weblogic-cmp-rdbms-jar.xml
    >

    >

    >

    > RemoteMsg_Update_Home
    >

    >

    >
    > My weblogic-cmp-rdbms-jar.xml file is:
    >
    > > '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB RDBMS Persistence//EN'
    > 'http://www.bea.com/servers/wls810/dtd/weblogic-rdbms20-persistence-810.dtd'>
    >
    >
    >
    > GatewayUpdate
    > gatewayPool
    > textsms
    >
    > user
    > user
    >

    >
    > msgid
    > msgid
    >

    >
    > msg
    > msg
    >

    >
    > org
    > org
    >

    >
    > mno
    > mno
    >

    >
    > status
    > status
    >

    >

    > False
    >

    >
    > Pl.suggest.
    >
    > Ram
    >
    >



  3. Re: Persistance layer failed to deploy


    Hi,

    I hv found out the issue.I hv not added one element tag in weblogic-cmp-rdbms-xml.jar.After
    adding the same the above error did not come.But when I create ear file I hv got
    another exception saying the jar file mentioned is not aval in the ear file.

    Below is the console output:

    Gateway.jar:
    [echo] creating basic ejb jar file ...
    [jar] Building jar: E:\myejb\staging\Gateway.jar
    [echo] ... done.
    [echo] appc'ing the ejb jar file ...
    [echo] appc'ing the ejb jar file ...
    [java] [appc] Created working directory: C:\DOCUME~1\ram\LOCALS~1\Temp\appcgen
    [java] [J2EE:160120]Error: The module, 'Gateway.jar', is declared in the
    application.xml descriptor but cannot be found in the ear file.

    BUILD FAILED

    file:E:/myejb/build.xml:95: Java returned: 1

    My build file is :





    value="${wlhome}${file.separator}server${file.separator}l ib${file.separator}weblogic.jar"/>
    includeEmptyDirs="true"
    failonerror="false" />
    includeEmptyDirs="true"
    failonerror="false"/>





    classname="weblogic.ant.taskdefs.j2ee.Appc"
    classpath="${java.classpath}"/>








    destdir="classes"
    verbose="no"
    classpath="${java.classpath}" />
















    webxml="web.xml" >

















    prefix="META-INF"
    includes="*.xml"/>
    excludes="**/JSP*.class"/>









    failonerror="true"
    fork="true"
    classpath="${java.classpath}">










    depends="init,Gateway.war,Gateway.jar">


    prefix="META-INF"
    includes="application.xml"/>
    includes="Gateway.war,Gateway.jar"/>












    My application.xml file is :



    1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>


    Gateway
    Gateway


    Gateway.jar





    After doing jar tvf :
    GMT+05:30 2004 META-INF/
    GMT+05:30 2004 META-INF/MANIFEST.MF
    GMT+05:30 2004 META-INF/Copy of build.xml
    GMT+05:30 2004 META-INF/ejb-jar.xml
    GMT+05:30 2004 META-INF/build.xml
    GMT+05:30 2004 META-INF/application.xml
    GMT+05:30 2004 META-INF/web.xml
    GMT+05:30 2004 META-INF/weblogic-cmp-rdbms-jar.xml
    GMT+05:30 2004 META-INF/weblogic-ejb-jar.xml
    GMT+05:30 2004 gateway/
    GMT+05:30 2004 gateway/LogBean.class
    GMT+05:30 2004 gateway/Gateway_UC.class
    GMT+05:30 2004 gateway/Gateway_UC_Home.class
    GMT+05:30 2004 gateway/Gateway_UC_Bean.class
    GMT+05:30 2004 gateway/Msg_Update.class
    GMT+05:30 2004 gateway/Msg_Update_Home.class
    GMT+05:30 2004 gateway/Msg_Update_Bean.class
    GMT+05:30 2004 gateway/UpdatePK.class

    Pl.advise.

    Ram
    Rob Woollen wrote:
    >I'd suggest you build the CMP example that ships with WLS. Then compare
    >
    >the structure of its ejb-jar with your application.
    >
    >If you're still having problems, can you show me the output of jar tvf
    >
    >on your ejb-jar file? It's looking for the CMP descriptor in the
    >META-INF directory.
    >
    >-- Rob
    >
    >Ram wrote:
    >> Hi,
    >>
    >> When I try to build using ant file I am getting the following exception

    >in WLS8.1
    >>
    >> [java] [EJB:011016]The persistence layer of the Entity EJB failed

    >to deploy.
    >> [java] [EJB:011018]The file weblogic-cmp-rdbms-jar.xml, specified in

    >a type-storage
    >> element of your weblogic-ejb-jar.xml descriptor, does not exi
    >> the JAR file.
    >> [java] at weblogic.ejb20.persistence.PersistenceType.setType SpecificFile(PersistenceType.java:469)
    >>
    >> My weblogic-ejb-jar.xml file is :
    >>
    >>
    >8.1.0 EJB//EN"
    >> "http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd" >
    >>
    >>
    >>
    >>
    >> UserCheck
    >>
    >> Gateway_UC_Home
    >>
    >>

    >>
    >>
    >>
    >> Log
    >>
    >>
    >> ramtopic1
    >>

    >>
    >> Log
    >>
    >>

    >>
    >>
    >>
    >> GatewayUpdate
    >>
    >>
    >> 1000
    >>

    >>
    >>
    >> WebLogic_CMP_RDBMS
    >> 7.0
    >> weblogic-cmp-rdbms-jar.xml
    >>

    >>

    >>

    >> RemoteMsg_Update_Home
    >>

    >>

    >>
    >> My weblogic-cmp-rdbms-jar.xml file is:
    >>
    >> >> '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB RDBMS Persistence//EN'
    >> 'http://www.bea.com/servers/wls810/dtd/weblogic-rdbms20-persistence-810.dtd'>
    >>
    >>
    >>
    >> GatewayUpdate
    >> gatewayPool
    >> textsms
    >>
    >> user
    >> user
    >>

    >>
    >> msgid
    >> msgid
    >>

    >>
    >> msg
    >> msg
    >>

    >>
    >> org
    >> org
    >>

    >>
    >> mno
    >> mno
    >>

    >>
    >> status
    >> status
    >>

    >>

    >> False
    >>

    >>
    >> Pl.suggest.
    >>
    >> Ram
    >>
    >>

    >