Wrox Home  
Search P2P Archive for: Go

  Return to Index  

enterprise_java_beans thread: Re: ERROR: ejbc found errors


Message #1 by "mitchell chan" <mjchan@e...> on Thu, 22 Aug 2002 20:22:18
Hello, I checked your ejb-jar file.  It can't find an EJB 
called 'Trader'.  Most likely, if you're using a canned example, you 
grabbed the wrong set of xml deployment descriptors.  Hope this helps, 
Mitch

> Hi 
i>  need your help, i am getting this error while i am deploying the 
s> tateless sessionbean in weblogic 6.1.i have made this cmd file which 
will 
c> reates 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-
j> ar.xml:
l> loBean
E> RROR: ejbc found errors
N> OTE 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
s> et MYSERVER=%WL_HOME%\migrationserver
@> REM Create the build directory, and copy the deployment descriptors 
into 
i> t
m> kdir build build\META-INF
c> opy *.xml build\META-INF
@> REM Compile ejb classes into the build directory (jar preparation)
j> avac -d build Hello.java Hellohome.java HelloBean.java
@> REM Make a standard ejb jar file, including XML deployment descriptors
c> d build
j> ar cv0f std_app_test1.jar META-INF examples
c> d ..
@> REM Run ejbc to create the deployable jar file
j> ava -Dweblogic.home=%WL_HOME% weblogic.ejbc -compiler javac 
b> uild\std_app_test1.jar 
%> MYSERVER%\app_test2.jar
@> REM Compile server, servlet, rmi classes
j> avac -d %SERVER_CLASSES% Hello.java Hellohome.java 
j> avac -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****************************
P> lease help me with this ...
R> egards

> 

  Return to Index