ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5682] New: - ejbc doesn't recognize bean name
Date Thu, 03 Jan 2002 22:46:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5682>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5682

ejbc doesn't recognize bean name

           Summary: ejbc doesn't recognize bean name
           Product: Ant
           Version: 1.4.1
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: barbaram@fedex.com
                CC: barbaram@fedex.com


I'm trying to run ejbc on WebLogic 6.1 SP2 and am getting "Unable to load a 
class specified in your ejb-jar.xml".  Sorry for the long email, but I thought 
it's best to include all possible info.  Is there a solution for this or do I 
have to rename my bean?  I noticed that the WebLogic example build.xml has the 
bean name without any extraneous characters.  IS this a WebLogic or ANT 
requirement? 

I have the following files in my input jar file (GenesisReportingBean.jar):
===========================================================================
GenesisReportingBean.class - Remote interface
GenesisReportingBeanEJB.class - Stateless Session Bean
GenesisReportingBeanHome.class - Home interface
META-INF/ejb-jar.xml
META-INF/weblogic-ejb-jar.xml
and some other files.

Here is the section of my build.xml that calls ejbc:
====================================================
    <!-- Run ejbc to create the deployable jar file -->
    <java classname="weblogic.ejbc" fork="yes">
        <sysproperty key="weblogic.home" value="${weblogicHome}"/>
        <arg line="-compiler javac ${jarFiles}/GenesisReportingBean.jar 
${jarFiles}/GenesisGenerated.jar"/>
      <classpath>
        <pathelement 
path="${WL_HOME}/lib/weblogic_sp.jar;${WL_HOME}/lib/weblogic.jar"/>
      </classpath>
    </java>

Here's my ejb-jar.xml that the error references:
================================================
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 
2.0//EN' 'http://java.sun.com/dtd/ej
b-jar_2_0.dtd'>

<ejb-jar>
  <enterprise-beans>
    <session>
      <ejb-name>GenesisReportingBeanHome</ejb-name>
      <home>com.fedex.crs.gui.Genesis.GenesisReportingBeanHome</home>
      <remote>com.fedex.crs.gui.Genesis.GenesisReportingBean</remote>
      <ejb-class>com.fedex.crs.gui.Genesis.GenesisReportingBeanEJB</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
    </session>
  </enterprise-beans>

  <assembly-descriptor>
    <container-transaction>
      <method>
        <ejb-name>GenesisReportingBeanHome</ejb-name>
        <method-intf>Remote</method-intf>
        <method-name>*</method-name>
      </method>
      <trans-attribute>Never</trans-attribute>
    </container-transaction>
  </assembly-descriptor>

</ejb-jar>


Here's the error:
=================
buildGenesis:
     [copy] Copying 9 files to /crs/com/fedex/crs/gui/Genesis/temp
      [jar] Building 
jar: /crs/com/fedex/crs/gui/jarFiles/GenesisReportingBean.jar
     [java] 
     [java] ERROR: Error from ejbc: Unable to load a class specified in your 
ejb-jar.xml: com.fedex.crs.gui.Genesis.GenesisReportingBeanEJB
     [java] ERROR: ejbc found errors
     [java] Java Result: 1

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


Mime
View raw message