Hi,
 
Thanks for u'r help.
 
The problem about the PSRdbms_Base class not being found was because of a CLASSPATH problem as that class is present in weblogic/lib/persistence directory which we hadn't included as a part of class-path !
 
Regards,
Sundari. S
 
----- Original Message -----
From: sbpodila
Sent: Saturday, February 09, 2002 4:53 PM
Subject: Re: Deploying Multiple beans from a single JAR

Hi,
Sorry for disturbing one more time.The error shows "A class that the bean or interface classes depend on
  is not in the EJB jar file or the classpath".That means may be some classes or class you forgot to add in the jar.Please look at your jar so that all classes required are present in the jar.If possible send it to me also.
regards
sbpodila.
----- Original Message -----
From: Sundari S
Sent: Saturday, February 09, 2002 4:42 PM
Subject: Re: Deploying Multiple beans from a single JAR

The COMPLETE error message reads thus :
 
-------------------------------------------------
java.lang.NoClassDefFoundError: weblogic/cmp/rdbms/PSRdbms_Base
        at java.lang.ClassLoader.defineClass0(Native Method)
        at weblogic.ejb.internal.StatefulEJBHome.setup(Compiled Code)
        at weblogic.ejb.internal.EJBDeploymentImpl.getClassLoader(Compiled Code)
        at weblogic.ejb.internal.EJBJarDeployment.deploy(EJBJarDeployment.java:231)
        at weblogic.ejb.internal.EJBManagerImpl.deployNew(EJBManagerImpl.java:352)
        at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:319)
        at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
        at weblogic.t3.srvr.T3Srvr.setSystemProperties(Compiled Code)
        at java.lang.reflect.Method.invoke(Native Method)
        at weblogic.Server.startServerDynamically(Server.java:99)
        at weblogic.Server.getLoader(Compiled Code)
        at weblogic.Server.getLoader(Compiled Code)
Sat Feb 09 14:23:57 MST 2002:<E> <EJB> Could not deploy: '/opt/cshop/classes/cshopframework.jar'
  A class that the bean or interface classes depend on
  is not in the EJB jar file or the classpath
 
weblogic.ejb.common.DeploymentException: Could not create the persistence store for this bean.; nested exception is:
        java.lang.NoClassDefFoundError: weblogic/cmp/rdbms/PSRdbms_Base
java.lang.NoClassDefFoundError: weblogic/cmp/rdbms/PSRdbms_Base
        at java.lang.ClassLoader.defineClass0(Native Method)
        at weblogic.ejb.internal.StatefulEJBHome.setup(Compiled Code)
        at weblogic.ejb.internal.EJBDeploymentImpl.getClassLoader(Compiled Code)
        at weblogic.ejb.internal.EJBJarDeployment.deploy(EJBJarDeployment.java:231)
        at weblogic.ejb.internal.EJBManagerImpl.deployNew(EJBManagerImpl.java:352)
        at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:319)
        at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
        at weblogic.t3.srvr.T3Srvr.setSystemProperties(Compiled Code)
        at java.lang.reflect.Method.invoke(Native Method)
        at weblogic.Server.startServerDynamically(Server.java:99)
        at weblogic.Server.getLoader(Compiled Code)
        at weblogic.Server.getLoader(Compiled Code)
 
Sat Feb 09 14:23:58 MST 2002:<I> <EJB> 0 EJB jar files loaded, containing 0 EJBs
--------------------------------------------------------------
 
Once again, thanks a lot.
 
Regards,
Sundari. S
 
----- Original Message -----
From: sbpodila
Sent: Saturday, February 09, 2002 4:38 PM
Subject: Re: Deploying Multiple beans from a single JAR

send me the error message also.
----- Original Message -----
From: Sundari S
Sent: Saturday, February 09, 2002 4:31 PM
Subject: Re: Deploying Multiple beans from a single JAR

 
Hi,
 
I am sending all the xml files, that I have placed under the META-INF Directory.
 
I still do not know if the error message has any connection with the "actual name" of these rdbms xml files. It is just our guess.
 
Incase you arrive at something constructive, please do let me know.
 
Thanks a lot.
 
Regards,
Sundari. S
 
----- Original Message -----
From: sbpodila
Sent: Saturday, February 09, 2002 4:18 PM
Subject: Re: Re: Deploying Multiple beans from a single JAR

Hi unfortunately i have not worked on weblogic5.1 .I worked on weblogic 6.0 on wards.Can u send me the all xml file so that i can go throughand i can say some thing.
o.k.
----- Original Message -----
From: Sundari S
Sent: Saturday, February 09, 2002 3:41 PM
Subject: Re: Re: Deploying Multiple beans from a single JAR

Hi,
 
Thanks for that reply. Fortunately, that was the only sensible guess we could make and had tried out the same thing exactly.
 
But, while deploying the JAR, the exception that we got was :
 
-------------------------------------------------------
weblogic.ejb.common.DeploymentException: Could not create the persistence store for this bean.; nested exception is:
        java.lang.NoClassDefFoundError: weblogic/cmp/rdbms/PSRdbms_Base
-------------------------------------------------------
 
If you have earlier encountered such an error or, you could possibly let me know what it is due to, do mail me. We assumed that the class it is creating is by default placed in the directory structure...weblogic/cmp/rdbms/ and since our file names are modified, this could be a problem. I am new to this and have no idea what this error is due to.
 
Do let me know, as soon as possible.
 
Thanks and Regards,
Sundari. S
 
 
----- Original Message -----
From: sbpodila
Sent: Saturday, February 09, 2002 3:25 PM
Subject: Re: Re: Deploying Multiple beans from a single JAR

Hi,
You can deploy multiple entity beans.And for each CMP entity bean you should have one weblogic-cmp-rdbms-bean.xml.Give separate names for each CMP bean .Specify the appropriate name in weblogic-ejb.jar.xml.You can see the type storage or some other name.(like META-INF/weblogic-cmp-rdbms-bean.xml).
I think this could help you.
regards
sbpodila.
----- Original Message -----
From: Sundari S
Sent: Saturday, February 09, 2002 2:37 PM
Subject: Re: Deploying Multiple beans from a single JAR

Hi,
 
I think I have slightly missed in specifying explicitly in my questions that I was using Weblogic 5.1 version. Sorry about that.
 
But, anyway, I am just enclosing the site for weblogic5.1 dtd for rdbms xml file which says  the following :
 
<!--StartFragment--><!--
The root-level element of an XML file that represents a single bean that is
managed by the WebLogic RDBMS Container Persistence Type.
-->
<!ELEMENT weblogic-rdbms-bean (
    pool-name,
    schema-name?,
    table-name,
    attribute-map,
    finder-list?,
    options?
)>
 
So, here, there is only one <weblogic-rdbms-bean> element (mani element) for ONE BEAN.
 
So, in this case, how do I work-around the problem of creating a single jar for all the rdbms accessing beans, in my JAR ??
 
Do let me know.
 
Thanks and Regards,
Sundari. S
 ----- Original Message -----
Sent: Friday, February 08, 2002 7:31 PM
Subject: RE: Deploying Multiple beans from a single JAR

See response inline...

I have a directory called META-INF that contains all 3 xml files.

Hope these help.
Gordon Dickens
Bank One CIG
302.282.1546
[EMAIL PROTECTED]


> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> <[EMAIL PROTECTED]>@BANCONE  On Behalf Of Sundari S
> <[EMAIL PROTECTED]>
> Sent: Friday, February 08, 02 2:38 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Deploying Multiple beans from a single JAR
>
>
> Hi Gordon Dickens,

> Thanks for your reply. 

> I still have a subtle  clarification in that issue. Do let me know, if you
> can help.

> I have a directory called  <META-INF> which contains the following files :
> weblogic-ejb-jar.xml and  ejb-jar.xml.

> In the weblogic-ejb-jar.xml file,  an sample content looks thus :

> <weblogic-ejb-jar>
>      <weblogic-enterprise-bean>
>        <ejb-name>Data.ILifeCycleDataHome</ejb-name>
>        <caching-descriptor>
>  <max-beans-in-free-pool>20</max-beans-in-free-pool>
>  <max-beans-in-cache>1000</max-beans-in-cache>
>  <idle-timeout-seconds>5</idle-timeout-seconds>
>        </caching-descriptor>
>        <persistence-descriptor>
>  <delay-updates-until-end-of-tx>true</delay-updates-until-end-of-tx>
>  <persistence-type>
>     <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
>     <type-version>5.1.0</type-version>
>     <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
>  </persistence-type>
>  <db-is-shared>false</db-is-shared>
>  <persistence-use>
>     <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
>     <type-version>5.1.0</type-version>
>  </persistence-use>
>        </persistence-descriptor>
>        <jndi-name>Data.ILifeCycleDataHome</jndi-name>
>      </weblogic-enterprise-bean>

>      <weblogic-enterprise-bean>
>        <ejb-name>Data.ILifeCycleServerDataHome</ejb-name>
>        <caching-descriptor>
>  <max-beans-in-free-pool>20</max-beans-in-free-pool>
>  <max-beans-in-cache>1000</max-beans-in-cache>
>  <idle-timeout-seconds>5</idle-timeout-seconds>
>        </caching-descriptor>
>        <persistence-descriptor>
>  <delay-updates-until-end-of-tx>true</delay-updates-until-end-of-tx>
>  <persistence-type>
>     <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
>     <type-version>5.1.0</type-version>
>     <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
>  </persistence-type>
>  <db-is-shared>false</db-is-shared>
>  <persistence-use>
>     <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
>     <type-version>5.1.0</type-version>
>  </persistence-use>
>        </persistence-descriptor>
>        <jndi-name>Data.ILifeCycleServerDataHome</jndi-name>
>      </weblogic-enterprise-bean>
> </weblogic-ejb-jar>

> The confusion is that, both the  above beans, refer to
> META-INF/weblogic-cmp-rdbms-jar.xml.

> Do let me know if you could answer  the following questions, based on the
> above context.

> 1. Where should the  weblogic-cmp-rdbms-jar.xml be placed ?? Under the
> same META-INF directory where  the ejb-jar.xml and weblogic-ejb-jar.xml
> are ?
>  YES
>
> 2. In that case, if there are  multiple beans referring to their specific
> copies of weblogic-cmp-rdbms-jar.xml,  how do we combine the
> weblogic-cmp-rdbms-jar's of the various beans  ??
YES

> 3. The weblogic-cmp-rdbms-jar.xml  seems to have only ONE MAIN
> ELEMENT...called, <weblogic-rdbms-bean> .....  </weblogic-rdbms-bean>. So,
> incase the various rdbms Deployment  Descriptors of the different beans
> needs to be combined into one, at which place  do we insert it inside the
> main element <weblogic-rdbms-bean>  ??
If you look in the DTD it indicates that there can be more than one
element: "weblogic-rdbms-bean+"
<!ELEMENT weblogic-rdbms-jar (
    weblogic-rdbms-bean+,
    weblogic-rdbms-relation*,
    create-default-dbms-tables?,
    validate-db-schema-with?
)>



  <weblogic-rdbms-bean>
    <ejb-name>ejbOne</ejb-name>
    <data-source-name>ejbPoolDev</data-source-name>
    <table-name>tableOne</table-name>

<field-map><cmp-field>cola</cmp-field><dbms-column>ColA</dbms-column></field
-map>

<field-map><cmp-field>colb</cmp-field><dbms-column>ColB</dbms-column></field
-map>
     .....
  </weblogic-rdbms-bean>

  <weblogic-rdbms-bean>
    <ejb-name>ejbTwo</ejb-name>
    <data-source-name>ejbPoolDev</data-source-name>
      .....
  </weblogic-rdbms-bean>

> Hope I have been clear, in letting  you know what our problem exactly is.

> Thanks a lot for your interest. 

> Expecting a reply soon. 

> Thanks and Regards,
> Sundari. S



> ----- Original Message ----- 
> From: Dickens, Gordon (Bank One) 
> To: 'Sundari S'  ; [EMAIL PROTECTED] 
> Sent: Thursday, February 07, 2002 8:39 PM
> Subject: RE: Deploying Multiple beans from a single JAR
> Sundari,
> I have done this with my beans, you combine the  sections into one
> weblogic-ejb-jar.xml (also the ejb-jar.xml and  weblogic-rdbms-jar.xml).
>    <weblogic-enterprise-bean>
>      <ejb-name>beanOne</ejb-name>
>      <entity-descriptor>
>        <pool>
>          <max-beans-in-free-pool>20</max-beans-in-free-pool>
>        </pool>
>        <entity-cache>
>          <max-beans-in-cache>1000</max-beans-in-cache>
>          <idle-timeout-seconds>10</idle-timeout-seconds>
>          <concurrency-strategy>Database</concurrency-strategy>
>        </entity-cache>
>        <lifecycle>
>        </lifecycle>
>        <persistence>

> <delay-updates-until-end-of-tx>True</delay-updates-until-end-of-tx>
>          <persistence-type>
>            <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
>            <type-version>6.0</type-version>
>            <type-storage>META-INF/weblogic-rdbms-jar.xml</type-storage>
>          </persistence-type>
>          <db-is-shared>True</db-is-shared>
>          <persistence-use>
>            <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
>            <type-version>6.0</type-version>
>          </persistence-use>
>        </persistence>
>        <entity-clustering>
>          <home-is-clusterable>True</home-is-clusterable>
>        </entity-clustering>
>      </entity-descriptor>
>      <transaction-descriptor>
>        <trans-timeout-seconds>600</trans-timeout-seconds>
>      </transaction-descriptor>
>      <local-jndi-name>beanOne</local-jndi-name>
>    </weblogic-enterprise-bean>
>    <weblogic-enterprise-bean>
>      <ejb-name>beanTwo</ejb-name>
> ...
>    </weblogic-enterprise-bean>
> Hope this helps,
> Gordon  Dickens
> > -----Original Message-----
> > From: A mailing list for  Enterprise JavaBeans development
> > <[EMAIL PROTECTED] >@BANCONE   On Behalf Of Sundari S
> > <[EMAIL PROTECTED] >
> > Sent:  Thursday, February 07, 02 6:54 AM
> > To: [EMAIL PROTECTED]
> >  Subject: Deploying Multiple beans from a single JAR
> >
> >
> >  Hi,
> > 
> > Incase we need to deploy more than  one bean  packed inside the same JAR
> -
> > 
> > If each of the bean has  a  weblogic-cmp-rdbms.jar file, how do we
> combine
> > them into one  while deploying the  JAR file ?? There is also a
> reference
> > to this,  from the welogic-ejb-jar.xml. Is  any changes required in this
> > file  also ??
> > 
> > Do let me know .
> > 
> > Regards, 
> > Sundari.S
>

Reply via email to