Error with data source creation

Error during Data Source creation: weblogic.common.ResourceException: DataSource
(jdbc.GangsterDB) can't be created with non-existent Pool (connection or multi)
(oraclePool)
I have already created oraclePool with the following properties:
Name : oraclePool
URL : jdbc:weblogic:oracle
Driver: weblogic.jdbc.oci.Driver
Properties:
user=system
server=myserver
In weblogic-ejb-jar.xml file:
          <reference-descriptor>
          <resource-description>
          <res-ref-name>jdbc/GangsterDataSource</res-ref-name>
          <jndi-name>jdbc.GangsterDB</jndi-name>
          </resource-description>
     </reference-descriptor>
In ejb-jar.xml file:
<resource-ref>
          <res-ref-name>jdbc/GangsterDataSource</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
          </resource-ref>
Do I need to make changes in my Entity Bean files? I have made a datasource called
GangsterDB. I do not know the reason for this error. Please do let me know.
Error during Data Source creation: weblogic.common.ResourceException: DataSource
(jdbc.GangsterDB) can't be created with non-existent Pool (connection or multi)
(oraclePool)
Thank you
Ronak Parekh

I am still getting the same error:
Unable to deploy EJB: OrganizationEJB from sempire_bc.jar
The DataSource with the JNDI name: OrganizationDB can not be located. Please ensure
that the DataSource has been deployed
successfully and that the JNDI name in your EJB Deployment descriptor is correct.
In my console, I have created a connection pool 'oraclePool' and 3 datasource
'jdbc.GangsterDB', 'jdbc.OrganizationDB' and
'jdbc.JobDB'. I have also specified the target server and there seems to be no
error. I have checked 'Monitor All Connection
Pools' and oraclePool is running. I still do not understand the problem that I
am getting and have no clue how to solve it.
Thank you
Ronak Parekh
My weblogic-ejb-jar.xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
     <weblogic-enterprise-bean>
          <ejb-name>GangsterEJB</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>
          <reference-descriptor>
          <resource-description>
          <res-ref-name>jdbc/oraclePool</res-ref-name>
          <jndi-name>jdbc.GangsterDB</jndi-name>
          </resource-description>
     </reference-descriptor>
          <local-jndi-name>jdbc.GangsterDB</local-jndi-name>
     </weblogic-enterprise-bean>
     <weblogic-enterprise-bean>
          <ejb-name>OrganizationEJB</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>
          <reference-descriptor>
          <resource-description>
          <res-ref-name>jdbc/oraclePool</res-ref-name>
          <jndi-name>jdbc.OrganizationDB</jndi-name>
          </resource-description>
          </reference-descriptor>
          <local-jndi-name>jdbc.OrganizationDB</local-jndi-name>
     </weblogic-enterprise-bean>
     <weblogic-enterprise-bean>
          <ejb-name>JobEJB</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>
          <reference-descriptor>
          <resource-description>
          <res-ref-name>jdbc/oraclePool</res-ref-name>
          <jndi-name>jdbc.JobDB</jndi-name>
          </resource-description>
     </reference-descriptor>
          <local-jndi-name>jdbc.JobDB</local-jndi-name>
     </weblogic-enterprise-bean>
</weblogic-ejb-jar>
My ejb-jar.xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC
     "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
     "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
     <display-name>Business Component CMP 2.0</display-name>
     <enterprise-beans>
<entity>
          <display-name>Gangster Entity Bean</display-name>
     <ejb-name>GangsterEJB</ejb-name>
<local-home>com.sempire.builder.business_component.GangsterHome</local-home>
<local>com.sempire.builder.business_component.Gangster</local>
<ejb-class>com.sempire.builder.business_component.GangsterBean</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>GangsterEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
     <cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>nickname</field-name></cmp-field>
<cmp-field><field-name>badness</field-name></cmp-field>
               <primkey-field>iD</primkey-field>
               <resource-ref>
          <res-ref-name>jdbc/oraclePool</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
          </resource-ref>
               <query>
                    <query-method>
                         <method-name>findAll</method-name>
                         <method-params></method-params>
                    </query-method>
                    <ejb-ql>
                         <![CDATA[SELECT OBJECT(a) FROM GangsterEJB AS a]]>
                    </ejb-ql>
               </query>
          </entity>
<entity>
     <display-name>Organization Entity Bean</display-name>
<ejb-name>OrganizationEJB</ejb-name>
<local-home>com.sempire.builder.business_component.OrganizationHome</local-home>
<local>com.sempire.builder.business_component.Organization</local>
<ejb-class>com.sempire.builder.business_component.OrganizationBean</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>OrganizationEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
     <cmp-field><field-name>name</field-name></cmp-field>
               <cmp-field><field-name>description</field-name></cmp-field>
               <primkey-field>iD</primkey-field>
               <resource-ref>
          <res-ref-name>jdbc/oraclePool</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
          </resource-ref>
               <query>
                    <query-method>
                         <method-name>findAll</method-name>
                         <method-params></method-params>
                    </query-method>
                    <ejb-ql>
                         <![CDATA[SELECT OBJECT(a) FROM OrganizationEJB AS a]]>
                    </ejb-ql>
               </query>
          </entity>
<entity>
<display-name>Job Entity Bean</display-name>
<ejb-name>JobEJB</ejb-name>
<local-home>com.sempire.builder.business_component.JobHome</local-home>
<local>com.sempire.builder.business_component.Job</local>
<ejb-class>com.sempire.builder.business_component.JobBean</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>JobEJB</abstract-schema-name>
               <cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>score</field-name></cmp-field>
               <cmp-field><field-name>setupCost</field-name></cmp-field>
               <primkey-field>iD</primkey-field>
               <resource-ref>
          <res-ref-name>jdbc/oraclePool</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
          </resource-ref>
               <query>
                    <query-method>
                         <method-name>findAll</method-name>
                         <method-params></method-params>
                    </query-method>
                    <ejb-ql>
                         <![CDATA[SELECT OBJECT(a) FROM JobEJB AS a]]>
                    </ejb-ql>
               </query>
          </entity>
     </enterprise-beans>
     <relationships>
<ejb-relation>
<ejb-relation-name>organization-memberGangsters</ejb-relation-name>
<ejb-relationship-role>
     <ejb-relationship-role-name>organization---memberGangsters</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
     <ejb-name>OrganizationEJB</ejb-name>
</relationship-role-source>
<cmr-field>
     <cmr-field-name>memberGangsters</cmr-field-name>
     <cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
               <ejb-relationship-role>
     <ejb-relationship-role-name>memberGangsters---organization</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<cascade-delete/>
<relationship-role-source>
     <ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
<cmr-field>
     <cmr-field-name>organization</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>gangsters-jobs</ejb-relation-name>
<ejb-relationship-role>
     <ejb-relationship-role-name>gangsters---jobs</ejb-relationship-role-name>
     <multiplicity>Many</multiplicity>
     <relationship-role-source>
          <ejb-name>GangsterEJB</ejb-name>
     </relationship-role-source>
     <cmr-field>
          <cmr-field-name>jobs</cmr-field-name>
          <cmr-field-type>java.util.Collection</cmr-field-type>
     </cmr-field>
</ejb-relationship-role>
               <ejb-relationship-role>
     <ejb-relationship-role-name>jobs---gangsters</ejb-relationship-role-name>
     <multiplicity>Many</multiplicity>
     <relationship-role-source>
          <ejb-name>JobEJB</ejb-name>
     </relationship-role-source>
     <cmr-field>
          <cmr-field-name>gangsters</cmr-field-name>
          <cmr-field-type>java.util.Collection</cmr-field-type>
     </cmr-field>
</ejb-relationship-role>
          </ejb-relation>
<ejb-relation>
<ejb-relation-name>organization-theBoss</ejb-relation-name>
     <ejb-relationship-role>
     <ejb-relationship-role-name>organization---theBoss</ejb-relationship-role-name>
     <multiplicity>One</multiplicity>
     <relationship-role-source>
          <ejb-name>OrganizationEJB</ejb-name>
     </relationship-role-source>
     <cmr-field>
          <cmr-field-name>theBoss</cmr-field-name>
               </cmr-field>
          </ejb-relationship-role>
               <ejb-relationship-role>
                    <ejb-relationship-role-name>theBoss---organization</ejb-relationship-role-name>
     <multiplicity>One</multiplicity>
<relationship-role-source>
     <ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
</ejb-relationship-role>
</ejb-relation>
     </relationships>
     <assembly-descriptor>
     <container-transaction>
     <method>
          <ejb-name>GangsterEJB</ejb-name>
          <method-name>*</method-name>
     </method>
     <method>
          <ejb-name>OrganizationEJB</ejb-name>
          <method-name>*</method-name>
     </method>
     <method>
          <ejb-name>JobEJB</ejb-name>
          <method-name>*</method-name>
               </method>
               <trans-attribute>Required</trans-attribute>
          </container-transaction>
     </assembly-descriptor>
</ejb-jar>
My weblogic-cmp-rdbms-jar.xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-rdbms-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'>
<weblogic-rdbms-jar>
     <weblogic-rdbms-bean>
          <ejb-name>GangsterEJB</ejb-name>
          <data-source-name>GangsterDB</data-source-name>
          <table-name>GANGSTER</table-name>
          <field-map>
     <cmp-field>iD</cmp-field>
     <dbms-column>ID</dbms-column>
     </field-map>
     <field-map>
     <cmp-field>name</cmp-field>
     <dbms-column>NAME</dbms-column>
     </field-map>
          <field-map>
               <cmp-field>nickname</cmp-field>
     <dbms-column>NICKNAME</dbms-column>
     </field-map>
     <field-map>
     <cmp-field>badness</cmp-field>
     <dbms-column>BADNESS</dbms-column>
          </field-map>
          <weblogic-query>
               <query-method>
                    <method-name>findAll</method-name>
                    <method-params></method-params>
               </query-method>
          </weblogic-query>
     </weblogic-rdbms-bean>
     <weblogic-rdbms-bean>
          <ejb-name>OrganizationEJB</ejb-name>
          <data-source-name>OrganizationDB</data-source-name>
          <table-name>ORGANIZATION</table-name>
          <field-map>
               <cmp-field>iD</cmp-field>
               <dbms-column>ID</dbms-column>
          </field-map>
          <field-map>
               <cmp-field>name</cmp-field>
               <dbms-column>NAME</dbms-column>
          </field-map>
          <field-map>
               <cmp-field>description</cmp-field>
               <dbms-column>DESCRIPTION</dbms-column>
          </field-map>
          <weblogic-query>
               <query-method>
                    <method-name>findAll</method-name>
                    <method-params></method-params>
               </query-method>
          </weblogic-query>
     </weblogic-rdbms-bean>
     <weblogic-rdbms-bean>
          <ejb-name>JobEJB</ejb-name>
          <data-source-name>JobDB</data-source-name>
          <table-name>JOB</table-name>
     <field-map>
               <cmp-field>iD</cmp-field>
               <dbms-column>ID</dbms-column>
          </field-map>
          <field-map>
               <cmp-field>name</cmp-field>
               <dbms-column>NAME</dbms-column>
          </field-map>
          <field-map>
               <cmp-field>score</cmp-field>
               <dbms-column>SCORE</dbms-column>
          </field-map>
          <field-map>
               <cmp-field>setupCost</cmp-field>
               <dbms-column>SETUPCOST</dbms-column>
          </field-map>
          <weblogic-query>
               <query-method>
                    <method-name>findAll</method-name>
                    <method-params></method-params>
               </query-method>
          </weblogic-query>
     </weblogic-rdbms-bean>
     <weblogic-rdbms-relation>
     <relation-name>organization-memberGangsters</relation-name>
     <weblogic-relationship-role>
          <relationship-role-name>memberGangsters---organization</relationship-role-name>
          <column-map>
          <foreign-key-column>iD</foreign-key-column>
               <key-column>ID</key-column>
     </column-map>
     </weblogic-relationship-role>
</weblogic-rdbms-relation>
<weblogic-rdbms-relation>
     <relation-name>gangsters-jobs</relation-name>
     <table-name>JOBS</table-name>
     <weblogic-relationship-role>
          <relationship-role-name>gangsters---jobs</relationship-role-name>
          <column-map>
               <foreign-key-column>iD</foreign-key-column>
               <key-column>ID</key-column>
     </column-map>
     </weblogic-relationship-role>
     <weblogic-relationship-role>
          <relationship-role-name>jobs---gangsters</relationship-role-name>
          <column-map>
               <foreign-key-column>iD</foreign-key-column>
               <key-column>ID</key-column>
     </column-map>
</weblogic-relationship-role>
</weblogic-rdbms-relation>
<weblogic-rdbms-relation>
     <relation-name>organization-theBoss</relation-name>
     <weblogic-relationship-role>
          <relationship-role-name>organization---theBoss</relationship-role-name>
          <column-map>
               <foreign-key-column>iD</foreign-key-column>
               <key-column>ID</key-column>
     </column-map>
     </weblogic-relationship-role>
</weblogic-rdbms-relation>
</weblogic-rdbms-jar>

Similar Messages

  • Error with data source and jndi

    Dave,
    I am using weblogic 6.1 now and I am still getting the same problem.
    Error:
    The DataSource name with the JNDI name: Organization can not be located. Please
    ensure that the DataSource has been deployed successfully and that the JNDI name
    in your EJB Deployment descriptor is correct.
    The Entity Bean files that I have used for JBoss are:
    * GangsterBean.java
    * Copyright (c) 2002 Sempire, Inc.
    * All rights reserved.
    * This software is the confidential and proprietary information
    * of Sempire, Inc
    * @ version 1.0
    package com.sempire.builder.business_component;
    import java.util.Collection;
    import java.util.Set;
    import javax.ejb.CreateException;
    import javax.ejb.EntityBean;
    import javax.ejb.EntityContext;
    import javax.ejb.FinderException;
    public abstract class GangsterBean implements EntityBean
    private static int idgen = 1;
    private EntityContext context;
    public Integer ejbCreate( String Name, String Nickname, Integer Badness) throws
    CreateException
    setID(new Integer(idgen++));
    setName(Name);
    setNickname(Nickname);
    setBadness(Badness);
    return null;
    public void ejbPostCreate( String Name, String Nickname, Integer Badness)
    throws CreateException
    // CMP Field Accessors -----------------------------------------------------
    public abstract Integer getID();
    public abstract void setID(Integer ID);
    public abstract String getName();
    public abstract void setName(String Name);
    public abstract String getNickname();
    public abstract void setNickname(String Nickname);
    public abstract Integer getBadness();
    public abstract void setBadness(Integer Badness);
    // CMR Field Accessors -----------------------------------------------------
    public abstract Collection getJobs();
    public abstract void setJobs(Collection Jobs);
    public abstract Organization getOrganization();
    public abstract void setOrganization(Organization Organization);
    // EJB callbacks -----------------------------------------------------------
    public void setEntityContext(EntityContext ctx)
    context = ctx;
    public void unsetEntityContext()
    context = null;
    public void ejbRemove() {}
    public void ejbLoad() {}
    public void ejbStore() {}
    public void ejbPassivate() {}
    public void ejbActivate() {}
    What are the changes to be made in this file so that the files work in weblogic
    too?
    Also, my ejb-jar.xml file has been changed to:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC
    "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
    "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <display-name>Business Component CMP 2.0</display-name>
    <enterprise-beans>
    <entity>
    <display-name>Gangster Entity Bean</display-name>
    <ejb-name>GangsterEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.GangsterHome</local-home>
    <local>com.sempire.builder.business_component.Gangster</local>
    <ejb-class>com.sempire.builder.business_component.GangsterBean</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>GangsterEJB</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
    <cmp-field><field-name>name</field-name></cmp-field>
    <cmp-field><field-name>nickname</field-name></cmp-field>
    <cmp-field><field-name>badness</field-name></cmp-field>
    <primkey-field>iD</primkey-field>
    <resource-ref>
    <res-ref-name>jdbc/GangsterDataSource</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <query>
    <query-method>
    <method-name>findAll</method-name>
    <method-params></method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[SELECT OBJECT(a) FROM GangsterEJB AS a]]>
    </ejb-ql>
    </query>
    </entity>
    <entity>
    <display-name>Organization Entity Bean</display-name>
    <ejb-name>OrganizationEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.OrganizationHome</local-home>
    <local>com.sempire.builder.business_component.Organization</local>
    <ejb-class>com.sempire.builder.business_component.OrganizationBean</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>OrganizationEJB</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
    <cmp-field><field-name>name</field-name></cmp-field>
    <cmp-field><field-name>description</field-name></cmp-field>
    <primkey-field>iD</primkey-field>
    <resource-ref>
    <res-ref-name>jdbc/OrganizationDataSource</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <query>
    <query-method>
    <method-name>findAll</method-name>
    <method-params></method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[SELECT OBJECT(a) FROM OrganizationEJB AS a]]>
    </ejb-ql>
    </query>
    </entity>
    <entity>
    <display-name>Job Entity Bean</display-name>
    <ejb-name>JobEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.JobHome</local-home>
    <local>com.sempire.builder.business_component.Job</local>
    <ejb-class>com.sempire.builder.business_component.JobBean</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>JobEJB</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
    <cmp-field><field-name>name</field-name></cmp-field>
    <cmp-field><field-name>score</field-name></cmp-field>
    <cmp-field><field-name>setupCost</field-name></cmp-field>
    <primkey-field>iD</primkey-field>
    <resource-ref>
    <res-ref-name>jdbc/JobDataSource</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <query>
    <query-method>
    <method-name>findAll</method-name>
    <method-params></method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[SELECT OBJECT(a) FROM JobEJB AS a]]>
    </ejb-ql>
    </query>
    </entity>
    </enterprise-beans>
    <relationships>
    <ejb-relation>
    <ejb-relation-name>organization-memberGangsters</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>organization---memberGangsters</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>OrganizationEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>memberGangsters</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>memberGangsters---organization</ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <cascade-delete/>
    <relationship-role-source>
    <ejb-name>GangsterEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>organization</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    <ejb-relation>
    <ejb-relation-name>gangsters-jobs</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>gangsters---jobs</ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <relationship-role-source>
    <ejb-name>GangsterEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>jobs</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>jobs---gangsters</ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <relationship-role-source>
    <ejb-name>JobEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>gangsters</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    <ejb-relation>
    <ejb-relation-name>organization-theBoss</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>organization---theBoss</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>OrganizationEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>theBoss</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>theBoss---organization</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>GangsterEJB</ejb-name>
    </relationship-role-source>
    </ejb-relationship-role>
    </ejb-relation>
    </relationships>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>GangsterEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <method>
    <ejb-name>OrganizationEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <method>
    <ejb-name>JobEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    My weblogic-ejb-jar.xml file has been changed to:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
    'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>GangsterEJB</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>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jdbc/GangsterDataSource</res-ref-name>
    <jndi-name>jdbc.GangsterDB</jndi-name>
    </resource-description>
    </reference-descriptor>
    <local-jndi-name>Gangster</local-jndi-name>
    </weblogic-enterprise-bean>
    <weblogic-enterprise-bean>
    <ejb-name>OrganizationEJB</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>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jdbc/OrganizationDataSource</res-ref-name>
    <jndi-name>jdbc.Organization</jndi-name>
    </resource-description>
    </reference-descriptor>
    <local-jndi-name>Organization</local-jndi-name>
    </weblogic-enterprise-bean>
    <weblogic-enterprise-bean>
    <ejb-name>JobEJB</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>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jdbc/JobDataSource</res-ref-name>
    <jndi-name>jdbcJob</jndi-name>
    </resource-description>
    </reference-descriptor>
    <local-jndi-name>Job</local-jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    Please do let me know all the changes I need to make so that my application can
    deploy in weblogic.
    Thank You
    Ronak

    Dave,
    I am using weblogic 6.1 now and I am still getting the same problem.
    Error:
    The DataSource name with the JNDI name: Organization can not be located. Please
    ensure that the DataSource has been deployed successfully and that the JNDI name
    in your EJB Deployment descriptor is correct.
    The Entity Bean files that I have used for JBoss are:
    * GangsterBean.java
    * Copyright (c) 2002 Sempire, Inc.
    * All rights reserved.
    * This software is the confidential and proprietary information
    * of Sempire, Inc
    * @ version 1.0
    package com.sempire.builder.business_component;
    import java.util.Collection;
    import java.util.Set;
    import javax.ejb.CreateException;
    import javax.ejb.EntityBean;
    import javax.ejb.EntityContext;
    import javax.ejb.FinderException;
    public abstract class GangsterBean implements EntityBean
    private static int idgen = 1;
    private EntityContext context;
    public Integer ejbCreate( String Name, String Nickname, Integer Badness) throws
    CreateException
    setID(new Integer(idgen++));
    setName(Name);
    setNickname(Nickname);
    setBadness(Badness);
    return null;
    public void ejbPostCreate( String Name, String Nickname, Integer Badness)
    throws CreateException
    // CMP Field Accessors -----------------------------------------------------
    public abstract Integer getID();
    public abstract void setID(Integer ID);
    public abstract String getName();
    public abstract void setName(String Name);
    public abstract String getNickname();
    public abstract void setNickname(String Nickname);
    public abstract Integer getBadness();
    public abstract void setBadness(Integer Badness);
    // CMR Field Accessors -----------------------------------------------------
    public abstract Collection getJobs();
    public abstract void setJobs(Collection Jobs);
    public abstract Organization getOrganization();
    public abstract void setOrganization(Organization Organization);
    // EJB callbacks -----------------------------------------------------------
    public void setEntityContext(EntityContext ctx)
    context = ctx;
    public void unsetEntityContext()
    context = null;
    public void ejbRemove() {}
    public void ejbLoad() {}
    public void ejbStore() {}
    public void ejbPassivate() {}
    public void ejbActivate() {}
    What are the changes to be made in this file so that the files work in weblogic
    too?
    Also, my ejb-jar.xml file has been changed to:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC
    "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
    "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <display-name>Business Component CMP 2.0</display-name>
    <enterprise-beans>
    <entity>
    <display-name>Gangster Entity Bean</display-name>
    <ejb-name>GangsterEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.GangsterHome</local-home>
    <local>com.sempire.builder.business_component.Gangster</local>
    <ejb-class>com.sempire.builder.business_component.GangsterBean</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>GangsterEJB</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
    <cmp-field><field-name>name</field-name></cmp-field>
    <cmp-field><field-name>nickname</field-name></cmp-field>
    <cmp-field><field-name>badness</field-name></cmp-field>
    <primkey-field>iD</primkey-field>
    <resource-ref>
    <res-ref-name>jdbc/GangsterDataSource</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <query>
    <query-method>
    <method-name>findAll</method-name>
    <method-params></method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[SELECT OBJECT(a) FROM GangsterEJB AS a]]>
    </ejb-ql>
    </query>
    </entity>
    <entity>
    <display-name>Organization Entity Bean</display-name>
    <ejb-name>OrganizationEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.OrganizationHome</local-home>
    <local>com.sempire.builder.business_component.Organization</local>
    <ejb-class>com.sempire.builder.business_component.OrganizationBean</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>OrganizationEJB</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
    <cmp-field><field-name>name</field-name></cmp-field>
    <cmp-field><field-name>description</field-name></cmp-field>
    <primkey-field>iD</primkey-field>
    <resource-ref>
    <res-ref-name>jdbc/OrganizationDataSource</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <query>
    <query-method>
    <method-name>findAll</method-name>
    <method-params></method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[SELECT OBJECT(a) FROM OrganizationEJB AS a]]>
    </ejb-ql>
    </query>
    </entity>
    <entity>
    <display-name>Job Entity Bean</display-name>
    <ejb-name>JobEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.JobHome</local-home>
    <local>com.sempire.builder.business_component.Job</local>
    <ejb-class>com.sempire.builder.business_component.JobBean</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>JobEJB</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
    <cmp-field><field-name>name</field-name></cmp-field>
    <cmp-field><field-name>score</field-name></cmp-field>
    <cmp-field><field-name>setupCost</field-name></cmp-field>
    <primkey-field>iD</primkey-field>
    <resource-ref>
    <res-ref-name>jdbc/JobDataSource</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <query>
    <query-method>
    <method-name>findAll</method-name>
    <method-params></method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[SELECT OBJECT(a) FROM JobEJB AS a]]>
    </ejb-ql>
    </query>
    </entity>
    </enterprise-beans>
    <relationships>
    <ejb-relation>
    <ejb-relation-name>organization-memberGangsters</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>organization---memberGangsters</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>OrganizationEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>memberGangsters</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>memberGangsters---organization</ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <cascade-delete/>
    <relationship-role-source>
    <ejb-name>GangsterEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>organization</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    <ejb-relation>
    <ejb-relation-name>gangsters-jobs</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>gangsters---jobs</ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <relationship-role-source>
    <ejb-name>GangsterEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>jobs</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>jobs---gangsters</ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <relationship-role-source>
    <ejb-name>JobEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>gangsters</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    <ejb-relation>
    <ejb-relation-name>organization-theBoss</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>organization---theBoss</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>OrganizationEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>theBoss</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>theBoss---organization</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>GangsterEJB</ejb-name>
    </relationship-role-source>
    </ejb-relationship-role>
    </ejb-relation>
    </relationships>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>GangsterEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <method>
    <ejb-name>OrganizationEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <method>
    <ejb-name>JobEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    My weblogic-ejb-jar.xml file has been changed to:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
    'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>GangsterEJB</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>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jdbc/GangsterDataSource</res-ref-name>
    <jndi-name>jdbc.GangsterDB</jndi-name>
    </resource-description>
    </reference-descriptor>
    <local-jndi-name>Gangster</local-jndi-name>
    </weblogic-enterprise-bean>
    <weblogic-enterprise-bean>
    <ejb-name>OrganizationEJB</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>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jdbc/OrganizationDataSource</res-ref-name>
    <jndi-name>jdbc.Organization</jndi-name>
    </resource-description>
    </reference-descriptor>
    <local-jndi-name>Organization</local-jndi-name>
    </weblogic-enterprise-bean>
    <weblogic-enterprise-bean>
    <ejb-name>JobEJB</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>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jdbc/JobDataSource</res-ref-name>
    <jndi-name>jdbcJob</jndi-name>
    </resource-description>
    </reference-descriptor>
    <local-jndi-name>Job</local-jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    Please do let me know all the changes I need to make so that my application can
    deploy in weblogic.
    Thank You
    Ronak

  • Error with data source while running hybernate program

    Hi,
      An error has occured while running the hybernate example.I have deployed the application using the net weaver.
    The Error is :
      500   Internal Server Error
      SAP J2EE Engine/6.40 
      Application error occurs during processing the request.
    Details: com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception in method addDepartment.
         at com.sap.j2ee.examples.ejb.HibernateFacadeLocalLocalObjectImpl0.addDepartment(HibernateFacadeLocalLocalObjectImpl0.java:163)
         at com.sap.j2ee.examples.Control.addDepartment(Control.java:126)
         at com.sap.j2ee.examples.Control.doPost(Control.java:73)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sap.engine.services.ejb.exceptions.BaseRuntimeException: Cannot create an instance of the stateless bean.
         at com.sap.engine.services.ejb.session.stateless_sp5.BeanFactory.getActiveBean(BeanFactory.java:192)
         at com.sap.engine.services.ejb.session.stateless_sp5.StatelessContainerFP.getActiveBean(StatelessContainerFP.java:183)
         at com.sap.j2ee.examples.ejb.HibernateFacadeLocalLocalObjectImpl0.addDepartment(HibernateFacadeLocalLocalObjectImpl0.java:154)
         ... 18 more
    Caused by: java.lang.NoClassDefFoundError
         at com.sap.j2ee.examples.ejb.HibernateFacadeBean.setSessionContext(HibernateFacadeBean.java:44)
         at com.sap.engine.services.ejb.session.stateless_sp5.BeanFactory.createObject(BeanFactory.java:111)
         at com.sap.engine.services.ejb.util.pool.ContainerPoolImpl.doResizeOneStepUp(ContainerPoolImpl.java:368)
         at com.sap.engine.services.ejb.util.pool.ContainerPoolImpl.ensureNotEmpty(ContainerPoolImpl.java:337)
         at com.sap.engine.services.ejb.util.pool.ContainerPoolImpl.pop(ContainerPoolImpl.java:291)
         at com.sap.engine.services.ejb.session.stateless_sp5.BeanFactory.getActiveBean(BeanFactory.java:188)
         ... 20 more
    com.sap.engine.services.ejb.exceptions.BaseRuntimeException: Cannot create an instance of the stateless bean.
         at com.sap.engine.services.ejb.session.stateless_sp5.BeanFactory.getActiveBean(BeanFactory.java:192)
         at com.sap.engine.services.ejb.session.stateless_sp5.StatelessContainerFP.getActiveBean(StatelessContainerFP.java:183)
         at com.sap.j2ee.examples.ejb.HibernateFacadeLocalLocalObjectImpl0.addDepartment(HibernateFacadeLocalLocalObjectImpl0.java:154)
         at com.sap.j2ee.examples.Control.addDepartment(Control.java:126)
         at com.sap.j2ee.examples.Control.doPost(Control.java:73)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: java.lang.NoClassDefFoundError
         at com.sap.j2ee.examples.ejb.HibernateFacadeBean.setSessionContext(HibernateFacadeBean.java:44)
         at com.sap.engine.services.ejb.session.stateless_sp5.BeanFactory.createObject(BeanFactory.java:111)
         at com.sap.engine.services.ejb.util.pool.ContainerPoolImpl.doResizeOneStepUp(ContainerPoolImpl.java:368)
         at com.sap.engine.services.ejb.util.pool.ContainerPoolImpl.ensureNotEmpty(ContainerPoolImpl.java:337)
         at com.sap.engine.services.ejb.util.pool.ContainerPoolImpl.pop(ContainerPoolImpl.java:291)
         at com.sap.engine.services.ejb.session.stateless_sp5.BeanFactory.getActiveBean(BeanFactory.java:188)
         ... 20 more

    we are getting the same error in 11.5.10 oracle apps!
    Current system time is 19-MAR-2013 11:41:33
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_order_by='TRX_NUMBER'
    p_cust_trx_class='CM'
    p_trx_number_low='1'
    p_trx_number_high='1'
    p_project_number='2160610'
    p_report_fmt='Y'
    p_open_invoice='N'
    p_check_for_taxyn='N'
    p_choice='SEL'
    p_header_pages='1'
    p_debug_flag='N'
    p_message_level='10'
    p_pmt_advice='Y'
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.US7ASCII
    Spawned Process 5484
    X Error of failed request: BadWindow (invalid Window parameter)
    Major opcode of failed request: 15 (X_QueryTree)
    Resource id in failed request: 0xa400001
    Serial number of failed request: 518
    Current serial number in output stream: 518
    Database version: 10.2.0.4

  • Planning Data source Creation Error

    Hi All, I am getting an Essbase connection error while doing Data source creation for planning application from workspace.
    Below is my Oracle EPM System Diagnostics report for Workspace and Essbase
    Foundation / Workspace
    PASSED     CFG: Configuration     Validating that configuration tasks have been completed 0 seconds
    PASSED     LOG: Login     Module test for Provider Services with URL http://demoserver:9000/workspace/index.jsp?module=aps.aps 0 seconds
    PASSED     LOG: Login     Module test for Web Analysis with URL http://demoserver:9000/workspace/index.jsp?module=WebAnalysis.WebAnalysis 0 seconds
    PASSED     LOG: Login     Module test for Essbase Administration Services with URL http://demoserver:9000/workspace/index.jsp?module=eas.eas 0 seconds
    PASSED     LOG: Login     Module test for Shared Services with URL http://demoserver:9000/workspace/index.jsp?module=interop.interop 0 seconds
    PASSED     LOG: Login     Module test for Reporting and Analysis with URL http://demoserver:9000/workspace/index.jsp?module=raframework.raframework 0 seconds
    PASSED     LOG: Login     Module test for Planning with URL http://demoserver:9000/workspace/index.jsp?module=HyperionPlanning.HyperionPlanning 0 seconds
    PASSED     LOG: Login     Module test for Financial Reporting with URL http://demoserver:9000/workspace/index.jsp?module=hr.hr 0 seconds
    PASSED     LOG: Login     Module test for Calculation Manager with URL http://demoserver:9000/workspace/index.jsp?module=calcmgr.calcmgr 0 seconds
    PASSED     LOG: Login     Module test for Performance Management Architect Data Synchronizer with URL http://demoserver:9000/workspace/index.jsp?module=DataSync.DataSync 0 seconds
    PASSED     LOG: Login     Module test for Performance Management Architect with URL http://demoserver:9000/workspace/index.jsp?module=awb.awb 0 seconds
    PASSED     Single Sign-On     Checking availability of login http://demoserver:9000/workspace/status 0 seconds
    PASSED     REG: Configuration     Checking if product has only one product node in registry. 0 seconds
    PASSED     WEB: Web Application     Availability of Web application context http://demoserver:9000/workspace/status 0 seconds
    Essbase
    PASSED     CFG: Configuration     Validating that configuration tasks have been completed 0 seconds
    PASSED     EAS: Essbase Server     Validating Essbase Server connection to demoserver 42 seconds
    PASSED     EAS: Essbase Server     Validating Essbase Server startup using MaxL command 0 seconds
    PASSED     EXT: External Authentication     Check Native Directory external authentication provider configuration 0 seconds
    PASSED     REG: Configuration     Checking if product has only one product node in registry. 0 seconds
    Essbase / Essbase Administration Services
    PASSED     CFG: Configuration     Validating that configuration tasks have been completed 0 seconds
    PASSED     DB: Database Connectivity     Checking connection to database jdbc:oracle:thin:@demoserver:1521:ORCL 0 seconds
    PASSED     EXT: External Authentication     Check Native Directory external authentication provider configuration 0 seconds
    PASSED     REG: Configuration     Checking if product has only one product node in registry. 0 seconds
    PASSED     WEB: Web Application     Availability of Web application context http://demoserver:9000/aps/APS 0 seconds
    PASSED     WEB: Web Application     Availability of Web application context http://demoserver:9000/essbase-webservices/AdminService 0 seconds
    PASSED     WEB: Web Application     Availability of Web application context http://demoserver:9000/easconsole/console.html 0 seconds
    Essbase / Essbase Integration ServicesPASSED     CFG: Configuration     Validating that configuration tasks have been completed 0 seconds
    PASSED     REG: Configuration     Checking if product has only one product node in registry. 0 seconds
    Essbase / Essbase Studio
    PASSED     CFG: Configuration     Validating that configuration tasks have been completed 0 seconds
    PASSED     DB: Database Connectivity     Checking connection to database jdbc:oracle:thin:@demoserver:1521:ORCL 0 seconds
    PASSED     ESS: Essbase Studio Server     Validating Essbase Studio Server connection 1 seconds
    PASSED     EXT: External Authentication     Check Native Directory external authentication provider configuration 0 seconds
    PASSED     REG: Configuration     Checking if product has only one product node in registry. 0 seconds
    Essbase / Provider Services
    PASSED     CFG: Configuration     Validating that configuration tasks have been completed 0 seconds
    PASSED     REG: Configuration     Checking if product has only one product node in registry. 0 seconds
    PASSED     WEB: Web Application     Availability of Web application context http://demoserver:9000/aps/APS 0 seconds
    PASSED     WEB: Web Application     Availability of Web application context http://demoserver:9000/essbase-webservices/AdminService 0 seconds
    PASSED     WEB: Web Application     Availability of Web application context http://demoserver:9000/easconsole/console.html
    Thank you

    Thanks John and Celvin. It works fine But when i create a sample application, it is failing while creating.
    Saying Error while creating App Please check the logs.
    However i am able to login to the application from HyperionPlanning/LogOn.jsp, But it didnt build properly.
    Below is the log from the path
    Oracle/Middleware/user_projects/epmsystem1/diagnostics/logs/essbase/essbase/app/
    Essbase log doesn't give me anything related.
    [2013-04-16T16:59:33.972-04:00] [SAMAPP] [NOTIFICATION:16] [SVR-139] [] [ecid: 1366142373562,0] [tid: 3052795600] Essbase Server - Release 11.1.2 (ESB11.1.2.2.100B2166)
    [2013-04-16T16:59:33.972-04:00] [SAMAPP] [NOTIFICATION:16] [SVR-35] [] [ecid: 1366142373562,0] [tid: 3052795600] Starting Essbase Server - Application [SAMAPP]
    [2013-04-16T16:59:34.237-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-480] [] [ecid: 1366142373562,0] [tid: 3052795600] Loaded and initialized JVM module
    [2013-04-16T16:59:34.500-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142373562,0] [tid: 3052795600] External [GLOBAL] function [@ESSBASEALERT] registered OK
    [2013-04-16T16:59:35.10-04:00] [SAMAPP] [NOTIFICATION:16] [REQ-202] [] [ecid: 1366142373562,0] [tid: 3052795600] Waiting for Login Requests
    [2013-04-16T16:59:35.512-04:00] [SAMAPP] [NOTIFICATION:16] [REQ-205] [] [ecid: 1366142373562,0] [tid: 3052795600] Received Command [List Databases]
    [2013-04-16T16:59:35.513-04:00] [SAMAPP] [NOTIFICATION:16] [REQ-205] [] [ecid: 1366142373562,0] [tid: 3052795600] Received Command [SetApplicationState]
    [2013-04-16T16:59:35.514-04:00] [SAMAPP] [NOTIFICATION:16] [OBJ-10] [] [ecid: 1366142373562,0] [tid: 3052795600] Writing Application Definition For [SAMAPP]
    [2013-04-16T16:59:40.521-04:00] [SAMAPP] [NOTIFICATION:16] [TCP-59] [] [ecid: 1366142373562,0] [tid: 2396957584] Connected from [::1]
    [2013-04-16T16:59:40.522-04:00] [SAMAPP] [NOTIFICATION:16] [TCP-59] [] [ecid: 1366142373562,0] [tid: 2386467728] Connected from [::1]
    [2013-04-16T16:59:40.523-04:00] [SAMAPP] [NOTIFICATION:16] [TCP-59] [] [ecid: 1366142373562,0] [tid: 2375977872] Connected from [::1]
    [2013-04-16T16:59:40.524-04:00] [SAMAPP] [NOTIFICATION:16] [TCP-59] [] [ecid: 1366142373562,0] [tid: 2365488016] Connected from [::1]
    [2013-04-16T16:59:40.524-04:00] [SAMAPP] [NOTIFICATION:16] [TCP-59] [] [ecid: 1366142373562,0] [tid: 2407447440] Connected from [::1]
    [2013-04-16T16:59:46.55-04:00] [SAMAPP] [NOTIFICATION:16] [REQ-207] [] [ecid: 1366142373562,0] [tid: 3052795600] RECEIVED SHUTDOWN COMMAND - SERVER TERMINATING
    [2013-04-16T16:59:48.515-04:00] [SAMAPP] [NOTIFICATION:16] [SVR-139] [] [ecid: 1366142388942,0] [tid: 3052988112] Essbase Server - Release 11.1.2 (ESB11.1.2.2.100B2166)
    [2013-04-16T16:59:48.516-04:00] [SAMAPP] [NOTIFICATION:16] [SVR-35] [] [ecid: 1366142388942,0] [tid: 3052988112] Starting Essbase Server - Application [SAMAPP]
    [2013-04-16T16:59:48.791-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-480] [] [ecid: 1366142388942,0] [tid: 3052988112] Loaded and initialized JVM module
    [2013-04-16T16:59:48.871-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspNthMbr] registered OK
    [2013-04-16T16:59:48.875-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspNumToString] registered OK
    [2013-04-16T16:59:48.877-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspDateToString] registered OK
    [2013-04-16T16:59:48.880-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspConcat] registered OK
    [2013-04-16T16:59:48.885-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspMbrIndex] registered OK
    [2013-04-16T16:59:48.889-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspMessage] registered OK
    [2013-04-16T16:59:48.892-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspGetMbrCount] registered OK
    [2013-04-16T16:59:48.895-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspDateDiff] registered OK
    [2013-04-16T16:59:48.897-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspDateRoll] registered OK
    [2013-04-16T16:59:48.900-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspOffsetIdx] registered OK
    [2013-04-16T16:59:48.903-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspMbrList] registered OK
    [2013-04-16T16:59:48.906-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspNextAllocIdx] registered OK
    [2013-04-16T16:59:48.909-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspStringCompare] registered OK
    [2013-04-16T16:59:48.922-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@JDebug] registered OK
    [2013-04-16T16:59:48.925-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@JSendDebug] registered OK
    [2013-04-16T16:59:48.928-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspCreateCDFSession] registered OK
    [2013-04-16T16:59:48.931-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspRemoveCDFSession] registered OK
    [2013-04-16T16:59:48.934-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspAddPageCombination] registered OK
    [2013-04-16T16:59:48.937-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspCreateEssbaseServerFile] registered OK
    [2013-04-16T16:59:48.940-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspWritePageCombinations] registered OK
    [2013-04-16T16:59:48.943-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [LOCAL] function [@HspGetFileName] registered OK
    [2013-04-16T16:59:49.159-04:00] [SAMAPP] [NOTIFICATION:16] [CFW-445] [] [ecid: 1366142388942,0] [tid: 3052988112] External [GLOBAL] function [@ESSBASEALERT] registered OK
    [2013-04-16T16:59:49.160-04:00] [SAMAPP] [NOTIFICATION:16] [OBJ-8] [] [ecid: 1366142388942,0] [tid: 3052988112] Reading Application Definition For [SAMAPP]
    [2013-04-16T16:59:49.161-04:00] [SAMAPP] [NOTIFICATION:16] [OBJ-10] [] [ecid: 1366142388942,0] [tid: 3052988112] Writing Application Definition For [SAMAPP]
    [2013-04-16T16:59:49.668-04:00] [SAMAPP] [NOTIFICATION:16] [REQ-202] [] [ecid: 1366142388942,0] [tid: 3052988112] Waiting for Login Requests
    [2013-04-16T16:59:50.173-04:00] [SAMAPP] [NOTIFICATION:16] [REQ-205] [] [ecid: 1366142388942,0] [tid: 3052988112] Received Command [SetApplicationState]
    [2013-04-16T16:59:50.174-04:00] [SAMAPP] [NOTIFICATION:16] [OBJ-10] [] [ecid: 1366142388942,0] [tid: 3052988112] Writing Application Definition For [SAMAPP]
    [2013-04-16T16:59:50.176-04:00] [SAMAPP] [NOTIFICATION:16] [TCP-59] [] [ecid: 1366142388942,0] [tid: 2407447440] Connected from [::1]
    [2013-04-16T16:59:50.176-04:00] [SAMAPP] [NOTIFICATION:16] [TCP-59] [] [ecid: 1366142388942,0] [tid: 2396957584] Connected from [::1]
    [2013-04-16T16:59:50.176-04:00] [SAMAPP] [NOTIFICATION:16] [TCP-59] [] [ecid: 1366142388942,0] [tid: 2386467728] Connected from [::1]
    [2013-04-16T16:59:50.177-04:00] [SAMAPP] [NOTIFICATION:16] [TCP-59] [] [ecid: 1366142388942,0] [tid: 2375977872] Connected from [::1]
    [2013-04-16T16:59:50.177-04:00] [SAMAPP] [NOTIFICATION:16] [TCP-59] [] [ecid: 1366142388942,0] [tid: 2365488016] Connected from [::1]
    Edited by: user8819264 on 16-Apr-2013 18:37

  • Data source creation

    Hi all,
    In general info tab in data source creation(BI 7.0) there is a option of delievery of duplicate records and it hae 3 option and they are undefined, none, allowed.so my question is how undefined is diff. from the other two?

    Hi Neha,
    This indicator gives information on how the DataSource behaves within a request with regard to duplicate records:
    ' ' The status of the DataSource is unknown.
    '0' The DataSource does not deliver any duplicate records within a request, with reference to its key.
    '1' The DataSource can deliver duplicate records within a request, with reference to its key. However, no duplicate records are delivered in a data package.
    This indicator is particularly important for delta-capable attribute tables and text tables.
    For the settings '0' and '1' you also have to define a key for the DataSource. This can be either in the DDIC using the maintenance for the corresponding field property of the extract structure fields, or (alternatively or additionally) in the metadata of the Datasource. A field in the DataSource also has the additional attribute ' DataSource Key Field', which transfersor corrects the DDIC property where necessary.
    Use
    For a key of time-independent master data or time-independent texts, DataSources can transfer several data records to BI in a request. If data records are transferred to the BI system more than once within a request, this can be the result of the application and you should not see it as an error. In a master data update, the BI system provides functions to handle duplicate data records. When data is loaded into another InfoProvider, the relevant handling must be coded manually, preferably in the end routine for the transformation.
    Hope its clear now...
    Regards
    Gattu

  • Data source creation for service contract configuration

    Hello all,
    I have to create a data source for extraction of service contract configuration. I think this could work like data source creation for sales order creation, but I don't know waht to enter in transaction CTBW. Anyone here has done this previously? Any pointers and/or the strategy you've used will be useful.
    Kind regards,
    Simon

    Hi,
    If you are asking about "CRM sales contracts", The following help gives the info about standard ODS and Datasource.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d5/9fcd3b869e7d72e10000000a11402f/frameset.htm
    With rgds,
    Anil Kumar Sharma .P

  • Incoming Payment Error(-2028) Data source - No data found, pls help me

    Dear friend,
    Im struggle in Adding Incomming Payment, I got -2028 Error msg,
    DATA SOURCE – NO DATA FOUND pls help me to solve
    Its My code
    Public Sub incopay(ByVal oform As SAPbouiCOM.Form)
            Dim incom As SAPbobsCOM.Payments
            Dim value As Integer
            Dim strerror As String
            Try
                Dim rset As SAPbobsCOM.Recordset
                oitem = oform.Items.Item("om")
                oedit = oitem.Specific
                vfd1 = oedit.String
                incom = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
                incom.AccountPayments.AccountCode = acc
                incom.AccountPayments.AccountName = accn
                incom.AccountPayments.Decription = "deposit"
                incom.AccountPayments.SumPaid = vfd1
                'incom.CardCode = "C1"
                'incom.CardName = "Shama Broadcast Contents & Services (P) Ltd."
                incom.DocDate = Now
                incom.DueDate = Now
                incom.TaxDate = Now
                incom.DocCurrency = "INR"
                incom.Reference2 = 2
                incom.JournalRemarks = "Incoming Payments - 161020"
                'incom.AccountPayments.Add()
                'value = incom.Add
                incom.CheckAccount = "102020"
                incom.Checks.DueDate = Now
                incom.Checks.CountryCode = "IN"
                incom.Checks.BankCode = "HDFC"
                incom.Checks.Trnsfrable = SAPbobsCOM.BoYesNoEnum.tNO
                incom.Checks.CheckSum = 100
                incom.Checks.Add()
                incom.AccountPayments.Add()
                value = incom.Add
            Catch ex As Exception
                oapp.MessageBox(ex.Message)
            End Try
            ''incom.AccountPayments.Add()
            ''value = incom.Add()
            If value <> 0 Then
                ocompany.GetLastError(value, strerror)
                MsgBox(value & "   " & strerror)
            End If
        End Sub
    Regards,
    Hempradeep.S

    Hi Hempradeep,
    I haven't tried executing your code, but suggest that you try and solve it with elimination. This means you make your code shorter and shorter until it posts.
    So firstly take out the account payment and the check payments and just do a cash payment and see if it posts. If it posts then you gradually add the code you hade previously until it gives you that error again.
    That error you got can be because of many reasons. It could be that the cardcode, gl account, currency, etc, etc, etc does not exist. It could be because of any data you specify from another table does not exist or does not relate to this object. Like when you're posting to a customer and you actually specify a supplier (just an example and not your problem).
    Start with a very basic incoming payment and work your way up to the code you've got there now.
    Good luck,
    Adele

  • Failed to acquire DAS with data sources that match the specified OCE

    Please help, Thank you all.
    We are migrating Oracle databases from Windows to Linux servers. Currently, I have no problem to use my desktop Hyperion Intelligence Designer 8.5 with new oce file to connect to Linux. However, I published the same oce file to Hyperion Performance Suite 8.5 then I got “Sever Error [2018]: Failed to acquire Data Access Service with data sources that match the specified OCE”.
    I launched Service Configurator, in the “Local Service Configurator - DAS1_host”, the “Database JDBC URL is point to Linux server. Also, I added ODBC connection to Oracle database on Linux in the “Properties of Data Access Service: DAS1_host’s Data Source”. Database of JDBC URL in BI1_host, AZ1_host, PUB1_host, SM1_host, LS1_host, UT1_host, BPS1_host, AN1_host are also point to Linux server.
    The “Remote Service Configurator” has ES1_host’s” Storage” with JDBC URL point to Linux server. The same for RM1_host’s and NS1_host’s “Storage” with JDBC URL point to Linux server.
    Is there some missing configuration on the server? Thank you in advance.

    You should login to my oracle support to look into this ID.
    This is the solution mentioned
    Solution
    1) In the .profile file, you will find the definition of the LD_LIBRARY_PATH variable. However, the path to 64 bit libraries is probably appended before the path to the 32 bit libraries(%ORACLE_HOME%/lib32). Therefore, please reverse the order in the definition so that the 32 bit libraries get loaded before the 64 bit libraries.
    Then, restart all services.
    2) Oracle 9.2 was the first Oracle release which defaults to using the 64 bit libraries in the 'lib' directory and the 32-bit libraries that we need are in the 'lib32' directory.
    Therefore, please have the%ORACLE_HOME%/lib32 placed in front of the LD_LIBRARY_PATH environment variable definition.Then, restart all services.
    3) Please check that users have read and write access to the files located in the %ORACLE_HOME%/lib32 folder.
    4) Check the permissions of the libclntsh.a file(located in the %ORACLE_HOME%/lib32 folder) are set to rwxr-xr-x
    5) Recreate the OCE connection in DAS and restart DAS in CMC.
    6) Restart all the BIPlus Services and process the query.

  • Data Source Creation in R/3

    Hi all.
       I need to extract the data from multiple tables from R/3. For that I am creating a datasource using RSO2. In this scenario do I need choose extraction from  view ( IN rso2)& create a view combining these tables & use this in data source creation? Pls let me know the procedure. Could you pls also let me know when to use the option EXTRACTION BY FM (IN rso2)
    Thanks in advance.
    Kind Regrads,
    sami.

    Hi,
    Creation of DataSource
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Regards,
    Sachinkumar

  • Error saving Data Source Properties. - Base Exception. Call Oracle Support

    Hi,
    Oracle Application Server 10g Release 2 (10.1.2).
    I tried to create new Datasource using OEM Console but it throws error as following :
    Error saving Data Source Properties. - Base Exception: The Entity et="system";ei="0",et="application";ei="138",et="data-sources";ei="146":child:data-sourcechild key:location:jdbc/OracleCoreDS; class:com.evermind.sql.DriverManagerDataSource; already exists in the repository. Resolution: If possible, remove et="system";ei="0",et="application";ei="138",et="data-sources";ei="146":child:data-sourcechild key:location:jdbc/OracleCoreDS; class:com.evermind.sql.DriverManagerDataSource; . Call Oracle Support.
    May I know how to resolve this please ?
    Thank you.
    J.

    Hi ,
    Write following code in your UDF
    String Query = " ";
    Channel channel = null;
    DataBaseAccessor accessor = null;
    DataBaseResult resultSet = null;
    Query = <your query>;
    try{
             channel =LookupService.getChannel(<comm channel name>,< business system>);
             accessor = LookupService.getDataBaseAccessor(channel);
             resultSet = accessor.execute(Query);
             if(!(resultSet.equals(null)))
                       Iterator rows = resultSet.getRows();
                       if (rows.hasNext())  {        
                       Map rowMap = (Map)rows.next();
                       <your variable>.add(rowMap.get(<db field name>)+ "");
    catch(Exception ex)
          result.addValue(ex.getMessage());
    finally
              try
         if (accessor!=null) accessor.close();
              catch(Exception e)
         result.addValue(e.getMessage());
    Thanks ,
    Suvarna
    Pls award pts if it helps .

  • "Error parsing data-sources config" when I restart JDeveloper

    I am using JDeveloper. Every time I got the same server error - "Error parsing data-sources config" when I restart JDeveloper and even if i use a project it works before JDeveloper is restarted.
    Firstly, I import EAR file to the JDev, then I work on my code, everything is fine and compile.
    But If I restart the JDeveloper and open the same project again, it has the error Error parsing data-sources config, Exception: The factory-class cannot be empty.
    And I need to everything again, import EAR file, get the changes from my previous project. It really slows down my working efficiency.
    Do you know what the problem is?
    2008-06-24 12:13:46.289 Exception processing legacy data source. Exception: The factory-class cannot be empty.
    2008-06-24 12:13:46.289 Exception processing legacy data source. Exception: The factory-class cannot be empty.
    2008-06-24 12:13:46.305 Application Deployer for dvt-faces-test-13 FAILED.
    2008-06-24 12:13:46.321 WARNING: DeployerRunnable.run java.lang.InstantiationException: Error parsing data-sources config at file:/C:/Documents and Settings/ytang.WALT-DCNT/Application Data/JDeveloper/system11.1.1.0.30.50.26/o.j2ee/embedded-oc4j/application-deployments/dvt-faces-test-13/data-sources.xml: DataSourceConfigException: The factory-class cannot be empty.oracle.oc4j.admin.internal.DeployerException: java.lang.InstantiationException: Error parsing data-sources config at file:/C:/Documents and Settings/ytang.WALT-DCNT/Application Data/JDeveloper/system11.1.1.0.30.50.26/o.j2ee/embedded-oc4j/application-deployments/dvt-faces-test-13/data-sources.xml: DataSourceConfigException: The factory-class cannot be empty.
    2008-06-24 12:13:46.321 at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:136)
    2008-06-24 12:13:46.321 at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
    2008-06-24 12:13:46.321 at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:82)
    2008-06-24 12:13:46.321 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    2008-06-24 12:13:46.321 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    2008-06-24 12:13:46.321 at java.lang.Thread.run(Thread.java:619)
    2008-06-24 12:13:46.321 Caused by: java.lang.InstantiationException: Error parsing data-sources config at file:/C:/Documents and Settings/ytang.WALT-DCNT/Application Data/JDeveloper/system11.1.1.0.30.50.26/o.j2ee/embedded-oc4j/application-deployments/dvt-faces-test-13/data-sources.xml: DataSourceConfigException: The factory-class cannot be empty.
    2008-06-24 12:13:46.321 at com.evermind.server.deployment.EnterpriseArchive.parseDataSources(EnterpriseArchive.java:1680)
    2008-06-24 12:13:46.321 at com.evermind.server.deployment.EnterpriseArchive.parseDataSources(EnterpriseArchive.java:1666)
    2008-06-24 12:13:46.321 at com.evermind.server.deployment.EnterpriseArchive.parseDeploymentMainNode(EnterpriseArchive.java:588)
    2008-06-24 12:13:46.321 at com.evermind.xml.XMLConfig.parseRootNode(XMLConfig.java:344)
    2008-06-24 12:13:46.321 at com.evermind.server.deployment.EnterpriseArchive.parseRootNode(EnterpriseArchive.java:2561)
    2008-06-24 12:13:46.321 at com.evermind.xml.XMLConfig.init(XMLConfig.java:224)
    2008-06-24 12:13:46.321 at com.evermind.server.J2EEComponent.initDeployment(J2EEComponent.java:264)
    2008-06-24 12:13:46.321 at com.evermind.server.J2EEComponent.initDeployment(J2EEComponent.java:194)
    2008-06-24 12:13:46.321 at com.evermind.server.deployment.EnterpriseArchive.<init>(EnterpriseArchive.java:348)
    2008-06-24 12:13:46.321 at oracle.oc4j.admin.internal.ApplicationDeployer.initArchive(ApplicationDeployer.java:468)
    2008-06-24 12:13:46.321 at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:206)
    2008-06-24 12:13:46.321 at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:99)
    2008-06-24 12:13:46.321 ... 5 more
    oracle.jdeveloper.deploy.DeployException: Deployment Failed
    at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.distributeApplicationToTargets(Jsr88RemoteDeployer.java:672)
    at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.deployApp(Jsr88RemoteDeployer.java:1108)
    at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.deployImpl(Jsr88RemoteDeployer.java:183)
    at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
    at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
    at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
    at oracle.jdeveloper.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
    at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
    at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
    at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
    at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:435)
    at oracle.jdeveloper.deploy.DeploymentManager.deploy(DeploymentManager.java:209)
    at oracle.jdevimpl.runner.adrs.AdrsStarter$4$1.run(AdrsStarter.java:1252)
    #### Cannot run application dvt-faces-test-13 due to error deploying to DefaultServer.
    [Application dvt-faces-test-13 stopped and undeployed from Server Instance DefaultServer]
    Thanks a lot

    By the way, I am using Windows Platform. For any version of JDeveloper from June I used has the same problem.

  • Data source creation with XEClient driver crashes ODBC Data Source Admin.

    OS: Windows XP Professional SP2
    How to reproduce:
    1. Install Oracle XEClient 10g from: http://www.oracle.com/technology/software/products/database/xe/htdocs/102xewinsoft.html
    2. (optional) You may need to install MSVCRT71.DLL and MFC71.DLL (see Re: odbc error in XE and 9i
    3. Open Control Panel
    4. Double-click on the Administrative Tools icon
    5. Open Data Sources (ODBC) applet.
    6. Click Add button
    7. Select Oracle in XEClient
    8. Name the Data Source.
    9. Press OK
    10. Double-click on the Data Source. The ODBC Data Source Administrator crashes.

    OS: Windows XP Professional SP2
    How to reproduce:
    1. Install Oracle XEClient 10g from: http://www.oracle.com/technology/software/products/database/xe/htdocs/102xewinsoft.html
    2. (optional) You may need to install MSVCRT71.DLL and MFC71.DLL (see Re: odbc error in XE and 9i
    3. Open Control Panel
    4. Double-click on the Administrative Tools icon
    5. Open Data Sources (ODBC) applet.
    6. Click Add button
    7. Select Oracle in XEClient
    8. Name the Data Source.
    9. Press OK
    10. Double-click on the Data Source. The ODBC Data Source Administrator crashes.

  • Generic Data Source Creation Problem....URGENT!!!!!!!!!!!!!

    Hello BW Experts...!
    I need to create a Generic Data Source out of a table called VBSEGK... I was trying in the usual way with RSO2 , but when I press save button after entering the Table name the following error is coming:
    " Invalid Extract Stucture Template VBSEGK of Data Source ZPARK_01"
    and when I click on the error message its showing
    Diagnosis
    You tried to generate an extract structure with the template structure VBSEGK. This operation failed, because the template structure quantity fields or currency fields, for example, field DMBTR refer to a different table.
    Procedure
    Use the template structure to create a view or DDIC structure that does not contain the inadmissable fields.
      VBSEGK is a standard table , so I cant change the Table structure. Can any one give me some idea of how to create Data source with this table ASAP ASAP please....
         Please ask me questions if you didnt get this...
    thanks

    Hi Harish,
    Please check OSS note 335342.
    Symptom
    The creation of a generic DataSource which is extracted from a DDIC view or a transparent table terminates with error message R8359:Invalid extract structure template &2 of Datasource &1
    Other terms
    OLTP, DataSource, extractor, data extraction, generic extractor
    Reason and Prerequisites
    The problem is caused by a program error.
    Solution
    The table or view used for extraction must have currency and unit fields within the field list of the table/view for all currency and quantity key figures.Otherwise the consistency of the extracted data cannot be ensured.To make the generation possible, check whether all key figures of your table refer to unit fields that are within the field list.If this is not the case, there are two possibilities:
    1. A table is used for extraction.
    Create a view in which you have a currency / unit field contained in the view for each key figure. The currency / unit field from the table must be included in the view to which the key figure actually refers.
    Example:
    Field WKGBTR of table COEP refers to the unit field WAERS of table TKA01. In a view that contains field COEP-WKGBTR, table TKA01 and field WAERS must be included in the field list.
    If the currency or the unit a key figure refers to is not located in a table but in a structure, the key figure has to be removed from the view and read via a customer exit (see below). Structures cannot be included in a view.
    ATTENTION!! Often the key of the table in which the referenced unit is located, does not agree with the key in the table with the corresponding key figure. In this case, the join condition of both tables is not unique in the view definition, that means for each key line of the table with the key figure, several lines of the table with the unit may be read: the result is a multiplying of the number of lines in the view by a factor corresponding to the number of lines that fit the key figure, in the unit table. To be able to deliver consistent data to a BW system, check whether the unit of the key figure in question should always have a fixed value. If yes then you can determine that in the view definition via 'GoTo -> Selection conditions'. If no, then you must proceed as follows:
    a) Remove the key figure from the view
    b) Define the DataSource
    c) Enhance the extract structure by key figure and unit for each append (Transaction RSA6)
    d) Add the key figure and the unit in a customer exit
    2. A view is already used for the extraction
    If it is not possible to obtain a unit of measure from a table on which the view is based, the unit field must be deleted from the field list.
    A note in relation to the upward compatibility of BW-BCT InfoSources: BW-BCT 1.2B was not yet able to check units and currency fields. For this reason, it is possible that InfoSources which were defined in the source system as of BW-BCT 1.2B must be redefined as of 2000.1 in the manner described above. However, checks are absolutely essential for the consistency of the extracted data.
    Regards,
    Praveen

  • PowerPivot refresh error with data feed from sharepoint list with empty exception information

    Hi,
    My Powpivot refreshing error seems to be different from what others already experienced.
    Scenario:
    Constructed an external data source in the format of Http://<server_IP>/sites/<mysitecollection>/_vti_bin/listdata.svc
    selected one table with some of the needed columns in the next step
    Create calculate colums etc.
    Create pivot tables etc.
    All worked well offline
    Upload the workbook into PowerPivot Gallery
    Reference it from a page through Excel Web Service webpart allowing manual refresh
    The refresh always reports failure with the named external data source
    I opend the log file in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS and located the following error messages:
    ASPPHOST::ShowEngineError: Out of line object 'DataSource', referring to ID(s) 'f8939b694cae', has been specified but has not been used。The following exception occurred while the managed IDbCommand interface was being used: .
    Please note in the above message, NO detailed exception message was given. In other words,
    the exception information is empty.
    I checked as many things as I possibly could includin the security accounts etc. All seem to be right. But this empty exception got me stuck here.
    What could possibly go wrong? Any help will be appreciated.
    Thanks.

    Hello,
    Here is a good article regarding Where to get information about data refresh failures for your reference, please see:
    http://social.technet.microsoft.com/wiki/contents/articles/3870.troubleshooting-powerpivot-data-refresh.aspx
    In addition, which credential option you're configured for the PowerPivot data refresh in SharePoint farm? You can go through the following articles regarding configure the PowerPivot data refresh:
    Configure the PowerPivot Unattended Data Refresh Account (PowerPivot for SharePoint):
    http://technet.microsoft.com/en-us/library/ff773327.aspx
    Configure Stored Credentials for PowerPivot Data Refresh (PowerPivot for SharePoint):
    http://technet.microsoft.com/en-us/library/ee210671.aspx
    Hope this helps.
    Regards,
    Elvis Long
    TechNet Community Support

  • Error updating data source from SQL Server ODBC into SQL Native Client 10.0

    I am converting Crystal 8.5 reports into Crystal XI release 2. The data source was ODBC using SQL Server 2000 and pointing to a stored procedure. In the new server the data source has to be ODBC again, but it uses the SQL Native Client 10.0 Driver, because the new server is SQL Server 2008. I have copied the same old stored procedure on the new server and it works fine as a data source to a brand new Crystal XI report. But when I am opening an existing 8.5 version crystal report and updating the data source to the new location I get the error message "Some tables could not be replaced, as no match was found in the new data source".
    I thought I could tackle this error by creating a temporary data source using the standard ODBC SQL Driver linked to the SQL 2008 Server instead of the SQL Native Client 10 ODBC. So I first updated the crystal data source to link to this temp ODBC using SQL Driver and it worked fine. But after that, when I try to update the data source to link to the SQL Native Client 10 ODBC, I get the same error again.
    So I guess that the problem is not the new server itself, but the switch between SQL Server ODBC and SQL Native Client 10 ODBC.
    Does anyone know what's going on with this SQL Native Client 10 in updating crystal report data sources?

    CR XI does not support that driver. Try selecting the Native driver or upgrade to CR XI R2 for free and use SP4, 5 and 6 and then FP 6.4 or upgrade to CR 2008 and SP 3 and Fix Pack 3.3
    Thank you
    Don

Maybe you are looking for