CMP specific Deployment-Descriptor

Hello Folks,
I don`t know exactly about the tags <type> for the dataSource and the
method findByPrimaryKeySQL and findByPrimaryKeyParms. What does the tags
<type> specifices in the three cases?
Anyway, what is the meaning of the <delimiter> tag?
Thank you for the effort.
bye,
Andre
<bean-property>
<property>
<name>dataSource</name>
<type>java.lang.String</type>
<value>PZEDB</value>
<delimiter>,</delimiter>
</property>
</bean-property>
<bean-property>
<property>
<name>findByPrimaryKeySQL</name>
<type>java.lang.String</type>
<value>
SELECT LEISTUNGSID FROM LEISTUNG WHERE LEISTUNGSID = ?
</value>
<delimiter>,</delimiter>
</property>
</bean-property>
<bean-property>
<property>
<name>findByPrimaryKeyParms</name>
<type>java.util.Vector</type>
<value>leistungsid</value>
<delimiter>,</delimiter>
</property>
</bean-property>

Hello Folks,
I don`t know exactly about the tags <type> for the dataSource and the
method findByPrimaryKeySQL and findByPrimaryKeyParms. What does the tags
<type> specifices in the three cases?
Anyway, what is the meaning of the <delimiter> tag?
Thank you for the effort.
bye,
Andre
<bean-property>
<property>
<name>dataSource</name>
<type>java.lang.String</type>
<value>PZEDB</value>
<delimiter>,</delimiter>
</property>
</bean-property>
<bean-property>
<property>
<name>findByPrimaryKeySQL</name>
<type>java.lang.String</type>
<value>
SELECT LEISTUNGSID FROM LEISTUNG WHERE LEISTUNGSID = ?
</value>
<delimiter>,</delimiter>
</property>
</bean-property>
<bean-property>
<property>
<name>findByPrimaryKeyParms</name>
<type>java.util.Vector</type>
<value>leistungsid</value>
<delimiter>,</delimiter>
</property>
</bean-property>

Similar Messages

  • Oracle-specific deployment descriptor

    Hi all
    does anybody know how i can edit the oracle deployment descriptor while using JDeveloper 3.2 to deploy. I need to add an ejb-reference, wich has to be mapped in the oracle specific descriptor. I tried to do it manually but everytime when i depoly, jdeveloper overwrites my changes during the deployment.
    thanks for help...

    Hello!
    I4m just trying to do the same thing: including ejb references in the oracle descriptor, but it erases any line I include as soon as I start deploying.
    Have you solved the problem?.If so, could you give me a clue?.
    By the way, I imagine that the references have to be included in the EJB which is calling, and not in the one that is to be called.But I don4t really understand how is the name of the ejb to be called introduced in that enviroment directory.
    Thanks in advance!!!
    Pepa.

  • Error in Weblogic CMP RDBMS deployment descriptor

    I'm working on WL5.1sp9, Oracle 815. after successfully generated container, during
    deploying, show errors: Column 'PASSWORD', referenced in attribute-map element,
    was not found in database table.
    i'm sure the table is created, and column name exactly match, what's wrong with
    it? Anyone help? Greatly thanks!
    Paladin

    Generally speaking relationships are handled in the DBMS by using foreign key columns. These foreign key columns are specified in the weblogic-cmp-rdbms-jar.xml file. If the columns are not properly specified or if they are missing in the dbms tables, then you will get a deployment time error similar to the one listed in this topic.
    -thorick

  • XML Deployment Descriptor question

    I am upgrading from WebLogic 4.5.1 to WebLogic 5.1 on Solaris 2.6. I
    have several entity beans. I created XML deployment descriptors by
    running the DDConverter, then splicing the resulting files together (I
    had several entity beans in one directory). I've gotten past all the
    problems except this last one. I get the following errors from ejbc
    when I try to compile:
    ERROR: Error from ejbc: Bean provided to WebLogic RDBMS CMP system is
    invalid.
    Please examine the following exceptions for specific problems:
    0: An unknown error occurred while parsing the Weblogic CMP RDBMS
    deployment descriptor. Check that the deployment descriptor contains
    well-formed and valid XML.
    I've checked the weblogic-cmp-rdbms-jar.xml file, compared it to the
    examples, and can't find anything wrong with it. However, the WebLogic
    examples don't have an example with multiple entity beans in a jar (can
    this be done?). Here is the resulting xml file:
    <!DOCTYPE weblogic-rdbms-bean PUBLIC
    "-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB RDBMS Persistence//EN"
    "http://www.bea.com/servers/wls510/dtd/weblogic-rdbms-persistence.dtd">
    <weblogic-rdbms-bean>
    <pool-name>H2HPool</pool-name>
    <table-name>Address</table-name>
    <attribute-map>
    <object-link>
    <bean-field>entity</bean-field>
    <dbms-column>Entity</dbms-column>
    </object-link>
    <object-link>
    <bean-field>homeDomain</bean-field>
    <dbms-column>Home_Domain</dbms-column>
    </object-link>
    <object-link>
    <bean-field>name</bean-field>
    <dbms-column>Name</dbms-column>
    </object-link>
    <object-link>
    <bean-field>oid</bean-field>
    <dbms-column>OID</dbms-column>
    </object-link>
    </attribute-map>
    <finder-list></finder-list>
    <options>
    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
    </options>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
    <pool-name>H2HPool</pool-name>
    <table-name>File_Cabinet</table-name>
    <attribute-map>
    <object-link>
    <bean-field>folderContainer</bean-field>
    <dbms-column>Folder_Container</dbms-column>
    </object-link>
    <object-link>
    <bean-field>homeDomain</bean-field>
    <dbms-column>Home_Domain</dbms-column>
    </object-link>
    <object-link>
    <bean-field>maxCapacity</bean-field>
    <dbms-column>Max_Capacity</dbms-column>
    </object-link>
    <object-link>
    <bean-field>owner</bean-field>
    <dbms-column>Owner</dbms-column>
    </object-link>
    <object-link>
    <bean-field>oid</bean-field>
    <dbms-column>OID</dbms-column>
    </object-link>
    </attribute-map>
    <finder-list>
    <finder>
    <method-name>findByHomeDomain</method-name>
    <method-params>
    <method-param>Long</method-param>
    </method-params>
    <finder-query><![CDATA[(= homeDomain $0)]]></finder-query>
    </finder>
    </finder-list>
    <options>
    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
    </options>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
    <pool-name>H2HPool</pool-name>
    <table-name>Folder</table-name>
    <attribute-map>
    <object-link>
    <bean-field>documentContainer</bean-field>
    <dbms-column>Document_Container</dbms-column>
    </object-link>
    <object-link>
    <bean-field>homeDomain</bean-field>
    <dbms-column>Home_Domain</dbms-column>
    </object-link>
    <object-link>
    <bean-field>name</bean-field>
    <dbms-column>Name</dbms-column>
    </object-link>
    <object-link>
    <bean-field>parentFolder</bean-field>
    <dbms-column>Parent_Folder</dbms-column>
    </object-link>
    <object-link>
    <bean-field>oid</bean-field>
    <dbms-column>OID</dbms-column>
    </object-link>
    <object-link>
    <bean-field>fileCabinet</bean-field>
    <dbms-column>File_Cabinet</dbms-column>
    </object-link>
    </attribute-map>
    <finder-list></finder-list>
    <options>
    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
    </options>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
    <pool-name>H2HPool</pool-name>
    <table-name>Origination_Activity</table-name>
    <attribute-map>
    <object-link>
    <bean-field>homeInterface</bean-field>
    <dbms-column>Home_Interface</dbms-column>
    </object-link>
    <object-link>
    <bean-field>homeDomain</bean-field>
    <dbms-column>Home_Domain</dbms-column>
    </object-link>
    <object-link>
    <bean-field>type</bean-field>
    <dbms-column>Type</dbms-column>
    </object-link>
    <object-link>
    <bean-field>packageSpec</bean-field>
    <dbms-column>Package_Spec</dbms-column>
    </object-link>
    <object-link>
    <bean-field>url</bean-field>
    <dbms-column>Url</dbms-column>
    </object-link>
    <object-link>
    <bean-field>name</bean-field>
    <dbms-column>Name</dbms-column>
    </object-link>
    <object-link>
    <bean-field>displayable</bean-field>
    <dbms-column>Displayable</dbms-column>
    </object-link>
    <object-link>
    <bean-field>owner</bean-field>
    <dbms-column>Owner</dbms-column>
    </object-link>
    <object-link>
    <bean-field>oid</bean-field>
    <dbms-column>OID</dbms-column>
    </object-link>
    </attribute-map>
    <finder-list>
    <finder>
    <method-name>findByName</method-name>
    <method-params>
    <method-param>String</method-param>
    </method-params>
    <finder-query><![CDATA[(= name $0)]]></finder-query>
    </finder>
    </finder-list>
    <options>
    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
    </options>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
    <pool-name>H2HPool</pool-name>
    <table-name>Package</table-name>
    <attribute-map>
    <object-link>
    <bean-field>forwardIndicator</bean-field>
    <dbms-column>Forward_Indicator</dbms-column>
    </object-link>
    <object-link>
    <bean-field>archiveFlag</bean-field>
    <dbms-column>Archive_Flag</dbms-column>
    </object-link>
    <object-link>
    <bean-field>beenReadFlag</bean-field>
    <dbms-column>Been_Read_Flag</dbms-column>
    </object-link>
    <object-link>
    <bean-field>deleteTimestamp</bean-field>
    <dbms-column>Delete_Timestamp</dbms-column>
    </object-link>
    <object-link>
    <bean-field>title</bean-field>
    <dbms-column>Title</dbms-column>
    </object-link>
    <object-link>
    <bean-field>sentBy</bean-field>
    <dbms-column>Sent_By</dbms-column>
    </object-link>
    <object-link>
    <bean-field>homeDomain</bean-field>
    <dbms-column>Home_Domain</dbms-column>
    </object-link>
    <object-link>
    <bean-field>patientName</bean-field>
    <dbms-column>Patient_Name</dbms-column>
    </object-link>
    <object-link>
    <bean-field>type</bean-field>
    <dbms-column>Type</dbms-column>
    </object-link>
    <object-link>
    <bean-field>folderName</bean-field>
    <dbms-column>Folder_name</dbms-column>
    </object-link>
    <object-link>
    <bean-field>importanceLevel</bean-field>
    <dbms-column>Importance_Level</dbms-column>
    </object-link>
    <object-link>
    <bean-field>creationTimestamp</bean-field>
    <dbms-column>Creation_Timestamp</dbms-column>
    </object-link>
    <object-link>
    <bean-field>sentTimestamp</bean-field>
    <dbms-column>Sent_Timestamp</dbms-column>
    </object-link>
    <object-link>
    <bean-field>sentOnBehalfOf</bean-field>
    <dbms-column>Sent_On_Behalf_Of</dbms-column>
    </object-link>
    <object-link>
    <bean-field>sentToAddrContainer</bean-field>
    <dbms-column>Sent_To_Addr_Container</dbms-column>
    </object-link>
    <object-link>
    <bean-field>ccToAddrContainer</bean-field>
    <dbms-column>CC_To_Addr_Container</dbms-column>
    </object-link>
    <object-link>
    <bean-field>owner</bean-field>
    <dbms-column>Owner</dbms-column>
    </object-link>
    <object-link>
    <bean-field>subject</bean-field>
    <dbms-column>Subject</dbms-column>
    </object-link>
    <object-link>
    <bean-field>text</bean-field>
    <dbms-column>Text</dbms-column>
    </object-link>
    <object-link>
    <bean-field>parentFolder</bean-field>
    <dbms-column>Parent_Folder</dbms-column>
    </object-link>
    <object-link>
    <bean-field>oid</bean-field>
    <dbms-column>OID</dbms-column>
    </object-link>
    <object-link>
    <bean-field>readBy</bean-field>
    <dbms-column>Read_By</dbms-column>
    </object-link>
    <object-link>
    <bean-field>modifiedTimestamp</bean-field>
    <dbms-column>Modified_Timestamp</dbms-column>
    </object-link>
    <object-link>
    <bean-field>readTimestamp</bean-field>
    <dbms-column>Read_Timestamp</dbms-column>
    </object-link>
    <object-link>
    <bean-field>packageSize</bean-field>
    <dbms-column>Package_Size</dbms-column>
    </object-link>
    <object-link>
    <bean-field>creator</bean-field>
    <dbms-column>Creator</dbms-column>
    </object-link>
    <object-link>
    <bean-field>lastModifier</bean-field>
    <dbms-column>Last_Modifier</dbms-column>
    </object-link>
    </attribute-map>
    <finder-list></finder-list>
    <options>
    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
    </options>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
    <pool-name>H2HPool</pool-name>
    <table-name>Package_Spec</table-name>
    <attribute-map>
    <object-link>
    <bean-field>templateContainer</bean-field>
    <dbms-column>Template_Container</dbms-column>
    </object-link>
    <object-link>
    <bean-field>title</bean-field>
    <dbms-column>Title</dbms-column>
    </object-link>
    <object-link>
    <bean-field>homeDomain</bean-field>
    <dbms-column>Home_Domain</dbms-column>
    </object-link>
    <object-link>
    <bean-field>type</bean-field>
    <dbms-column>Type</dbms-column>
    </object-link>
    <object-link>
    <bean-field>destinationAddrContainer</bean-field>
    <dbms-column>Destination_Addr_Container</dbms-column>
    </object-link>
    <object-link>
    <bean-field>oid</bean-field>
    <dbms-column>OID</dbms-column>
    </object-link>
    </attribute-map>
    <finder-list></finder-list>
    <options>
    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
    </options>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
    <pool-name>H2HPool</pool-name>
    <table-name>Service_Activity</table-name>
    <attribute-map>
    <object-link>
    <bean-field>serviceContainer</bean-field>
    <dbms-column>Service_Container</dbms-column>
    </object-link>
    <object-link>
    <bean-field>homeInterface</bean-field>
    <dbms-column>Home_Interface</dbms-column>
    </object-link>
    <object-link>
    <bean-field>homeDomain</bean-field>
    <dbms-column>Home_Domain</dbms-column>
    </object-link>
    <object-link>
    <bean-field>type</bean-field>
    <dbms-column>Type</dbms-column>
    </object-link>
    <object-link>
    <bean-field>url</bean-field>
    <dbms-column>Url</dbms-column>
    </object-link>
    <object-link>
    <bean-field>name</bean-field>
    <dbms-column>Name</dbms-column>
    </object-link>
    <object-link>
    <bean-field>oid</bean-field>
    <dbms-column>OID</dbms-column>
    </object-link>
    </attribute-map>
    <finder-list></finder-list>
    <options>
    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
    </options>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
    <pool-name>H2HPool</pool-name>
    <table-name>Service</table-name>
    <attribute-map>
    <object-link>
    <bean-field>homeDomain</bean-field>
    <dbms-column>Home_Domain</dbms-column>
    </object-link>
    <object-link>
    <bean-field>packageSpec</bean-field>
    <dbms-column>Package_Spec</dbms-column>
    </object-link>
    <object-link>
    <bean-field>name</bean-field>
    <dbms-column>Name</dbms-column>
    </object-link>
    <object-link>
    <bean-field>destAddrContainer</bean-field>
    <dbms-column>Dest_Addr_Container</dbms-column>
    </object-link>
    <object-link>
    <bean-field>owner</bean-field>
    <dbms-column>Owner</dbms-column>
    </object-link>
    <object-link>
    <bean-field>oid</bean-field>
    <dbms-column>OID</dbms-column>
    </object-link>
    </attribute-map>
    <finder-list></finder-list>
    <options>
    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
    </options>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
    <pool-name>H2HPool</pool-name>
    <table-name>Xml_Default_Doc</table-name>
    <attribute-map>
    <object-link>
    <bean-field>title</bean-field>
    <dbms-column>Title</dbms-column>
    </object-link>
    <object-link>
    <bean-field>docSize</bean-field>
    <dbms-column>Doc_Size</dbms-column>
    </object-link>
    <object-link>
    <bean-field>homeDomain</bean-field>
    <dbms-column>Home_Domain</dbms-column>
    </object-link>
    <object-link>
    <bean-field>owner</bean-field>
    <dbms-column>Owner</dbms-column>
    </object-link>
    <object-link>
    <bean-field>text</bean-field>
    <dbms-column>Text</dbms-column>
    </object-link>
    <object-link>
    <bean-field>oid</bean-field>
    <dbms-column>OID</dbms-column>
    </object-link>
    </attribute-map>
    <finder-list></finder-list>
    <options>
    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
    </options>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
    <pool-name>H2HPool</pool-name>
    <table-name>Xml_Doc_Template</table-name>
    <attribute-map>
    <object-link>
    <bean-field>dtdOid</bean-field>
    <dbms-column>DTD_OID</dbms-column>
    </object-link>
    <object-link>
    <bean-field>title</bean-field>
    <dbms-column>Title</dbms-column>
    </object-link>
    <object-link>
    <bean-field>viewStyleSheetOid</bean-field>
    <dbms-column>View_Style_Sheet_OID</dbms-column>
    </object-link>
    <object-link>
    <bean-field>homeDomain</bean-field>
    <dbms-column>Home_Domain</dbms-column>
    </object-link>
    <object-link>
    <bean-field>defaultDocOid</bean-field>
    <dbms-column>Default_Doc_OID</dbms-column>
    </object-link>
    <object-link>
    <bean-field>editStyleSheetOid</bean-field>
    <dbms-column>Edit_Style_Sheet_OID</dbms-column>
    </object-link>
    <object-link>
    <bean-field>oid</bean-field>
    <dbms-column>OID</dbms-column>
    </object-link>
    </attribute-map>
    <finder-list></finder-list>
    <options>
    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
    </options>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
    <pool-name>H2HPool</pool-name>
    <table-name>Xml_Dtd</table-name>
    <attribute-map>
    <object-link>
    <bean-field>title</bean-field>
    <dbms-column>Title</dbms-column>
    </object-link>
    <object-link>
    <bean-field>docSize</bean-field>
    <dbms-column>Doc_Size</dbms-column>
    </object-link>
    <object-link>
    <bean-field>homeDomain</bean-field>
    <dbms-column>Home_Domain</dbms-column>
    </object-link>
    <object-link>
    <bean-field>version</bean-field>
    <dbms-column>Version</dbms-column>
    </object-link>
    <object-link>
    <bean-field>owner</bean-field>
    <dbms-column>Owner</dbms-column>
    </object-link>
    <object-link>
    <bean-field>text</bean-field>
    <dbms-column>Text</dbms-column>
    </object-link>
    <object-link>
    <bean-field>oid</bean-field>
    <dbms-column>OID</dbms-column>
    </object-link>
    </attribute-map>
    <finder-list></finder-list>
    <options>
    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
    </options>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
    <pool-name>H2HPool</pool-name>
    <table-name>Xml_Stylesheet</table-name>
    <attribute-map>
    <object-link>
    <bean-field>title</bean-field>
    <dbms-column>Title</dbms-column>
    </object-link>
    <object-link>
    <bean-field>docSize</bean-field>
    <dbms-column>Doc_Size</dbms-column>
    </object-link>
    <object-link>
    <bean-field>homeDomain</bean-field>
    <dbms-column>Home_Domain</dbms-column>
    </object-link>
    <object-link>
    <bean-field>version</bean-field>
    <dbms-column>Version</dbms-column>
    </object-link>
    <object-link>
    <bean-field>owner</bean-field>
    <dbms-column>Owner</dbms-column>
    </object-link>
    <object-link>
    <bean-field>text</bean-field>
    <dbms-column>Text</dbms-column>
    </object-link>
    <object-link>
    <bean-field>oid</bean-field>
    <dbms-column>OID</dbms-column>
    </object-link>
    </attribute-map>
    <finder-list></finder-list>
    <options>
    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
    </options>
    </weblogic-rdbms-bean>
    Have Fun!
    Lea Anne Troeger
    Software Engineer
    Telesynthesis, Inc.
    [email protected]

    There is one pool per RA (ra.xml/weblogic-ra.xml). One way to get almost what I think you
              are after is to use the <ra-link-ref> facility in WLS 6.1.
              HTH.
              YiQing Yang wrote:
              > Hi there,
              >
              > I have a question about connector. In weblogic-ra.xml Deployment Descriptor, you
              > define the parameters for connection factory and connection pool. Can you only
              > define one connection factory and connection pool or you can define more than
              > one? In other words, for each deployed connector, can it have more than one connection
              > pool?
              > Your help is appreciated.
              >
              > Thanks,
              >
              > YiQing Yang
              Tom Mitchell
              [email protected]
              Very Current Beverly, MA Weather
              http://www.tom.org:8080
              

  • Deployment descriptor error for an EJB 3.0 entity bean module

    Hi all,
    i'm facing an error deploying an EJB 3.0 entity bean module wrapped in an enterprise application on WebLogic 10.
    The application is composed as follows:
    WASEnterprise.ear
    |-META-INF
    |-application.xml
    |-WAS.jar
    |-META-INF
    |-persistence.xml
    In other words the application server is unable to load persistence.xml deployment descriptor and,during deployment, it throws an error message like this:
    <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\bea\user_projects\domains\base_domain\autodeploy\WASEnterprise\WAS/META-INF/persistence.xml of module WAS. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
    I suppose that the persistence.xml is correct since i can deploy the application on jboss without any problem.
    The persistence.xml deployment descriptor is:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence>
    <persistence-unit name="CNT4">
    <non-jta-data-source>cnt5ds</non-jta-data-source>
    <class>it.eni.italgas.was.db.entity.AsiDisco</class>
    <class>it.eni.italgas.was.db.entity.AsiErrori</class>
    <class>it.eni.italgas.was.db.entity.WasAsiRouting</class>
    <class>it.eni.italgas.was.db.entity.WasAsiRoutingId</class>
    <class>it.eni.italgas.was.db.entity.WasAsiSchemas</class>
    </persistence-unit>
    </persistence>
    and the application.xml deployment descriptor is:
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">
    <display-name>WASEnterprise</display-name>
    <module id="myeclipse.1188512259959">
    <ejb>WAS.jar</ejb>
    </module>
    </application>
    I don't use any other weblogic specific deployment descriptor.
    Have you ever experienced such a strange behaviour? Can you suggest something to solve the problem?
    Thanks inadvance.
    Denis Maggiorotto

    Hi all,
    i'm facing an error deploying an EJB 3.0 entity bean module wrapped in an enterprise application on WebLogic 10.
    The application is composed as follows:
    WASEnterprise.ear
    |-META-INF
    |-application.xml
    |-WAS.jar
    |-META-INF
    |-persistence.xml
    In other words the application server is unable to load persistence.xml deployment descriptor and,during deployment, it throws an error message like this:
    <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\bea\user_projects\domains\base_domain\autodeploy\WASEnterprise\WAS/META-INF/persistence.xml of module WAS. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
    I suppose that the persistence.xml is correct since i can deploy the application on jboss without any problem.
    The persistence.xml deployment descriptor is:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence>
    <persistence-unit name="CNT4">
    <non-jta-data-source>cnt5ds</non-jta-data-source>
    <class>it.eni.italgas.was.db.entity.AsiDisco</class>
    <class>it.eni.italgas.was.db.entity.AsiErrori</class>
    <class>it.eni.italgas.was.db.entity.WasAsiRouting</class>
    <class>it.eni.italgas.was.db.entity.WasAsiRoutingId</class>
    <class>it.eni.italgas.was.db.entity.WasAsiSchemas</class>
    </persistence-unit>
    </persistence>
    and the application.xml deployment descriptor is:
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">
    <display-name>WASEnterprise</display-name>
    <module id="myeclipse.1188512259959">
    <ejb>WAS.jar</ejb>
    </module>
    </application>
    I don't use any other weblogic specific deployment descriptor.
    Have you ever experienced such a strange behaviour? Can you suggest something to solve the problem?
    Thanks inadvance.
    Denis Maggiorotto

  • Deployment Descriptor Overwritten?

    Hey everyone thanks in advance for any help. I'm currently working on a newer EJB project in my company and I've seem to have run into a bit of an issue. Is there any reason why my Deployment Descriptors IE. orion-application.xml, orion-ejb-jar.xml and orion-application-client.xml are all over written at deployment time. we have just recently made the change from 9.0.4 to 10.1.2 and I'm wondering if the DTD headers on the .xml files can be causing this over write? The over written files show the 2 EJB previously defined but the new additions are missing?
    Thanks in Advance

    This is normal behaviour during deployment. You can include the vendor-specific deployment descriptors in your EAR file and OC4J/Oracle AS considers them during deployment. The more you specify the more will taken into account.
    To be on the save side during deployment an undeploy/deploy cycle is a good way.
    If you're lucky and can use JDeveloper you can test your complete application before deploying the first time...
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • About EJB deployment descriptor

    Hello. I am developing EJB3 with glassfish and weblogic 10. I know I can use annotations to simplify
    deployment without using ejb-jar.xml , sun-ejb-jar.xml, weblogic-ejb-jar.xml. However, I do want to know
    how to write these files correctly because they have higher priority when used.
    Somebody may give me a template about writing these files? (ejb 3 specification, for ejb2, I can
    use xdoclet to generate them).Thanks a lot.

    Hi Martin,
    you're are right, XDoclet support for OC4J is lacking the most important stuff. In my case I needed explicit mapping of CMR-fields. Of course, manually editing orion-ejb-jar.xml either by using a text editor or JDeveloper is no option at all.
    So I've added support for explicit CMR-mapping to the OC4J XDoclet templates. It works but wasn't fun to do as Oracle's documentation of CMR-mapping is highly inconsistent (e.g. text, figures, and example code are not in sync).
    As I've done this as part of a services contract, I cannot easily publish the results. I'll ask my client and let you know.
    Anyway, orion-ejb-jar.xml will be obsolete by default in OC4J 10.x as Oracle switches to Toplink as the default persistence manager. So again, XDoclet support is needed for generating the Toplink-specific deployment descriptor.
    I'd really appreciate Oracle to provide OC4J-specific XDoclet enhancements. This would help OC4J in gaining wider acceptance.
    Stefan

  • Weblogic EJB Deployment Descriptor

    Hi,
    Can someone help me in learning how to write weblogic specific deployment descriptors for EJBs ??? Where can I find good tutorial or help. I am new to EJB.
    Thank you in advance

    Why not search http://bea.com and see what pops up. I searched their site for "EJB deployment descriptors" and got quite a few hits.

  • Weblogic Deployment Descriptor for CMP EJB

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

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

  • Weblogic vendor specific EJB deployment descriptor

    Hi All,
    I have been trying to get weblogic-ejb.xml working to provide the names where I want my EJB3 beans accessable in JNDI, but this has not been working for me.
    I have been looking through the web - there are not too many mentions of the deployment descriptor. If there any tutorials or official documents from BEA on this, links would be highliy appreciated.
    I am using WL10_01 if it helps.
    Thanks,
    Kirill.

    Did you try <business-interface-jndi-name-map> tag in weblogic-ejb-jar.xml?
    With the following example setup, you should be able to look up the Session bean that implements service.JPAService interface in JNDI tree with "JPAService".
    <weblogic-enterprise-bean>
        <ejb-name>JPAServiceBean</ejb-name>
         <stateless-session-descriptor>
          <business-interface-jndi-name-map>
               <business-remote>service.JPAService</business-remote>
            <jndi-name>JPAService</jndi-name>
          </business-interface-jndi-name-map>
        </stateless-session-descriptor>     
        <enable-call-by-reference>true</enable-call-by-reference>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>

  • Error in Sun XML schema for servlet2.4 deployment descriptor?

    Hi,
    I'm including the new XML schema for version 2.4 of the servlet standard in my web.xml deployment descriptor, using http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
    When I try to save the XML file, XMLSpy reports an error in the schema file itself: "Undefined schema component 'base' encountered - simpleContext can not have a base that is a complexType with complexContent"
    This error is on line 744, and is caused by the snippet:
    <xsd:simpleContent>
    <xsd:extension base="j2ee:nonEmptyStringType"/>
    </xsd:simpleContent>
    Can anyone explain why I'm getting a validation failure on this schema? Surely someone else must have experienced the same thing, but I can't track down any reference to it anywhere. Help!

    XMLSpy is known to be flawed. From my own experience of implementing
    validators and data-binding tools, and from my experience of working in the
    W3C Schema working group, I can tell you that there are countless cases
    where XMLSpy violates the schema specification.
    I checked the corresponding part of the schema, but it looks correct to me.
    So I suspect that this is another bug in XMLSpy.
    Try Xerces. That's probably the best in terms of conformance to the spec.

  • How to do JAAS and J2EE Deployment Descriptor ACL in WLS

    The examples on this website and shipped with WLS stink. Does there exist a GOOD
    example of how to
    Log in with a form
    authenticate (I guess using j_security_check to hook into the web.xml security)
    then pull a user from a database and use the roles defined there for authorization
    in the rest of the system?
    The weblogic examples are from java clients to RMI (ya, thats handy). They also
    sit alone. They dont say how to hook them into weblogic. They say to use JAAS
    but they have just JAAS examples! No hooking of it into an EJB, servlet, etc!
    They also dont show how to hook that code into WLS to use it as your security
    module!
    Help, I'm at a loss.
    They recommend using JAAS but their documentation and examples of doing so suck
    or are non existant. We have a complex real world product and need examples of
    the same. Stupid, stand alone examples that teach nothing do no help.
    frustrated at BEA for their poor documentation and support,
    Mike

    Also, I use struts....
    In struts you have to extend the Action class which then calls the perform()
    method on your servlet.
    So to call an EJB I have to have my servlet implement PrivilegedAction?
    If so, then this wants a run() method. Struts calls perform so that means
    I'm going to have to make another class to call from my servlet with a run
    method()? Or I'm going to have my servlet implement PrivledgedAction and
    call Security.runAs()?
    What if I just want to call the EJB from my servlet and put my security
    credentials in the JNDI lookup? I want the container to use the roles of the
    user in the JNDI lookup to authorize methods based on the deployment
    descriptors.
    thanks,
    Mike
    "Vimala Ranganathan" <[email protected]> wrote in message
    news:[email protected]...
    Hi Micheal,
    Attached is an exmaple of JAAS login and invoking an EJB.
    Let me know if this turns out to be useful.
    Regarding the form based authentication, Could you be more clear on whatissue you are
    facing?
    Just as note, when you use form based login, WLS would authenticate theuser against
    the realm
    WLS is setup for, which could be a file Realm, or a RDBMS realm (in whichcase users
    and groups are from database)
    Roles cannot be defined at the database level. This needs to be atapplication level
    which you can define in web.xml or
    console(in 7.0)
    If you need any specific help or more information please let me know.
    Vimala
    Michael Lee wrote:
    The examples on this website and shipped with WLS stink. Does there
    exist a GOOD
    example of how to
    Log in with a form
    authenticate (I guess using j_security_check to hook into the web.xmlsecurity)
    then pull a user from a database and use the roles defined there forauthorization
    in the rest of the system?
    The weblogic examples are from java clients to RMI (ya, thats handy).They also
    sit alone. They dont say how to hook them into weblogic. They say to useJAAS
    but they have just JAAS examples! No hooking of it into an EJB, servlet,etc!
    They also dont show how to hook that code into WLS to use it as yoursecurity
    module!
    Help, I'm at a loss.
    They recommend using JAAS but their documentation and examples of doingso suck
    or are non existant. We have a complex real world product and needexamples of
    the same. Stupid, stand alone examples that teach nothing do no help.
    frustrated at BEA for their poor documentation and support,
    Mike

  • Dynamic update of EJB/Web deployment descriptors

    In 8.1SP3, is there any provision to allow for dynamic update of EJB/Web deployment descriptors? I'm specifically looking at env var changes.
    I noticed that there are some mentions of the ability to dynamically update deployment descriptors, but it appears that the general facility has been deprecated, and they've incorporated all of the WebLogic-specific descriptor information directly into the console.
    When I dig through the JMX namespace and some of the MBean classes, I also see mentions of "deployment descriptor editors", but it's not clear how to utilize that.
    I'm aware of the fact that my application would have to be aware of possible dynamic updates to the descriptors, so I'd have to be able to implement some sort of listener for that.

    I have the same question but for a different purpose. I am part of a hosting group and we have app teams that have defined init-params in the web.xml that have to be changed as the app is promoted up through test environments and ultimately to production - only we need to be able to do this WITHOUT "cracking open" the archive.
    I was hoping to be able to script something to do the update after deployment.
    So any help at all would be appreciated. In the meantime will continue to poke around in the WLST and MBean docs.
    Thanks,
    Ed

  • Deployment descriptor Using weblogic Builder

    Hi
    I am new to Ejb,
    So kindly help me. can we create Deployment Descriptor from CMP bean,using Weblogic Builder.
    Thanks
    Satya
    Edited by: satya22 on Dec 11, 2007 10:37 AM

    satya22 wrote:
    Hi
    I am new to Ejb,Please let me know can we create an Deployment Descriptor
    Using Weblogic Builder for an CMP Bean
    ThanksHow many things are wrong here, hmmm.
    1. Your subject line is useless
    2. You posted in the wrong forum
    3. You posted about an unrelated technology
    4. You didn't make any attempt to do the task yourself
    5. You probably haven't searched for an answer on Google
    ....did I miss anything?

  • I want to lean j2ee deployment descriptor, help

    I want to learn about deployment descriptor -- the .xml concept on j2ee, where I can seek help?

    I learnt it from the servlet specifications.
    You can download the servlet specifications from http://java.sun.com/products/servlet/download.html#specs
    Especially chapter 13, if you decide to download servlet specifications 2.2

Maybe you are looking for