ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mann, Jacob X" <Jacob.X.M...@questdiagnostics.com>
Subject Entity bean problem -again
Date Fri, 19 Jul 2002 13:58:15 GMT
Hello list,

I'm still having the same problem so I thought I'll give more info so maybe
somebody can help me.

I have to generate an ejb jar for Weblogic 6.1 from following classes:

ClientPaymentLog
ClientPaymentLogHome
ClientPaymentLogBean
ClientPaymentLogPK

Here is a piece of code from build.xml:

    <target name="compile" depends="checkout">
    <!-- Compile the java code from ${src} into ${compile} -->
  <javac srcdir="${src}"   destdir="${compile}"/>
  </target>

  <target name="ejbcClientEntities" depends="compile">

   <ejbjar srcdir="${compile}"
       descriptordir="${src}/billweb/business/META-INF"
	   basejarname="ClientEntities"
	   genericjarsuffix="" >
	     <weblogic destdir="${dist}"
		 		   keepgeneric="false" 
   				   suffix=".jar"		
				   rebuild="true"
				   newCMP="true"
				   keepgenerated="true">
		    <classpath>
				<pathelement
path="C:\bea\wlserver6.1\lib\weblogic.jar;C:\ant\build\compile\ejb;C:\ant\bu
ild\compile\server"/>
			</classpath>
	   </weblogic>
	</ejbjar>

   	</target>
It runs Okay. But it is strange that on the console I see following message:

ejbcClientEntities:
   [ejbjar] building ClientEntities.jar with 5 files

It should say that it's building with 7 files: 3 xml files and 4 class
files.

When I open the generated .jar this I see following files included:

ClientPaymentLog_16nhl_Weblogic_CMP_RDBMS.class
ClientPaymentLogBean.class
ClientPaymentLog_16nhl_ELOImpl.class
ClientPaymentLog_16nhl_LocalHomeImpl.class
ClientPaymentLogPK.class
ejb-jar.xml
weblogic-cmp-rdbms-jar.xml
weblogic-ejb-jar.xml

When I compare it with the ejb generated by JBuilder this is the list:

ClientPaymentLog_16nhl_Weblogic_CMP_RDBMS.class
ClientPaymentLogBean.class
ClientPaymentLog_16nhl_ELOImpl.class
ClientPaymentLog_16nhl_LocalHomeImpl.class
ClientPaymentLogPK.class
ejb-jar.xml
weblogic-cmp-rdbms-jar.xml
weblogic-ejb-jar.xml
ClientPaymentLogHome.class
ClientPaymentLog.class

So as you see here we have 2 more classes, in my first EJB home and remote
interface are missing and I'm getting error during Weblogic deployment.

Here is a part of my ejb-jar.xml:

<ejb-jar>
    <enterprise-beans>
        <entity>
            <display-name>ClientPaymentLog</display-name>
            <ejb-name>ClientPaymentLog</ejb-name>
            <local-home>billweb.business.ClientPaymentLogHome</local-home>
            <local>billweb.business.ClientPaymentLog</local>
            <ejb-class>billweb.business.ClientPaymentLogBean</ejb-class>
            <persistence-type>Container</persistence-type>
 
<prim-key-class>billweb.business.ClientPaymentLogPK</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>ClientPaymentLog</abstract-schema-name>
            <cmp-field>
                <field-name>trackingNo</field-name>
            </cmp-field>

Here is my weblogic-ejb-jar.xml:

weblogic-ejb-jar>
    <weblogic-enterprise-bean>
        <ejb-name>ClientPaymentLog</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>
                <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>
                <home-load-algorithm>round-robin</home-load-algorithm>
            </entity-clustering>
        </entity-descriptor>
        <enable-call-by-reference>true</enable-call-by-reference>
        <local-jndi-name>ClientPaymentLog</local-jndi-name>
    </weblogic-enterprise-bean>
</weblogic-ejb-jar>

I hope this information is sufficient, if you need more info let me know.

I'll be very appreciated for any help.

Thank you,

Jacob Mann
Web Developer BOS
1200 Wall Street West   Lyndhurst, NJ
201-729-7571




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message