p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

enterprise_java_beans thread: ERROR: ejbc found errors


Message #1 by "Balaji" <smartboy_vkk@y...> on Fri, 12 Jul 2002 09:19:25
Hi 
i need your help, i am getting this error while i am deploying the 
stateless sessionbean in weblogic 6.1.i have made this cmd file which will 
creates the jar files...and when i execute this file i get this error-

ERROR: Error from ejbc: Unable to load a class specified in your ejb-
jar.xml:
lloBean
ERROR: ejbc found errors
NOTE I HAVE NOT MADE ANY PACKAGE IN MY CLASSES.....
******************************This is build.cmd file**********************
@REM Copyright (c) 2001 BEA Systems, Inc. All Rights Reserved.
@REM Adjust these variables to match your environment
set MYSERVER=%WL_HOME%\migrationserver
@REM Create the build directory, and copy the deployment descriptors into 
it
mkdir build build\META-INF
copy *.xml build\META-INF
@REM Compile ejb classes into the build directory (jar preparation)
javac -d build Hello.java Hellohome.java HelloBean.java
@REM Make a standard ejb jar file, including XML deployment descriptors
cd build
jar cv0f std_app_test1.jar META-INF examples
cd ..
@REM Run ejbc to create the deployable jar file
java -Dweblogic.home=%WL_HOME% weblogic.ejbc -compiler javac 
build\std_app_test1.jar 
%MYSERVER%\app_test2.jar
@REM Compile server, servlet, rmi classes
javac -d %SERVER_CLASSES% Hello.java Hellohome.java 
javac -d %CLIENT_CLASSES% Hello.java Hellohome.java HelloClient.java
****************************************endof file*************************


**********************This is the XML FILE *******************************
<?xml version="1.0"?>

<!DOCTYPE ejb-jar PUBLIC 
'-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 
'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>

<ejb-jar>
  <enterprise-beans>
    <session>
      <ejb-name>statelessSession</ejb-name>
      <home>examples.ejb.basic.statelessSession.TraderHome</home>
      <remote>examples.ejb.basic.statelessSession.Trader</remote>
      <ejb-class>examples.ejb.basic.statelessSession.TraderBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <env-entry>
        <env-entry-name>WEBL</env-entry-name>
	<env-entry-type>java.lang.Double </env-entry-type>
	<env-entry-value>10.0</env-entry-value>
      </env-entry>
      <env-entry>
        <env-entry-name>INTL</env-entry-name>
	<env-entry-type>java.lang.Double </env-entry-type>
	<env-entry-value>15.0</env-entry-value>
      </env-entry>
      <env-entry>
        <env-entry-name>tradeLimit</env-entry-name>
	<env-entry-type>java.lang.Integer </env-entry-type>
	<env-entry-value>500</env-entry-value>
      </env-entry>
    </session>
  </enterprise-beans>
  <assembly-descriptor>
    <container-transaction>
      <method>
        <ejb-name>statelessSession</ejb-name>
	<method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
    </container-transaction>
  </assembly-descriptor>
</ejb-jar>
*******************************end of xml file****************************
Please help me with this ...
Regards



  Return to Index