[jboss-user] [Beginners Corner] - Re: EJB SecurityException on AccountBean EJB dukesbank

hieutrinh do-not-reply at jboss.com
Fri May 30 02:39:36 EDT 2008


I encountered the same error and after some searching on the web, I finally get it to work. There was an error in the jboss-build.xml where target name = package-client. It references to non-existent classes, the com/sun/ebank/ejb/customer/Account.class. Here is how you fix it:


  | <target name="package-client" depends="compile">
  | <mkdir dir="jar" />
  | <copy todir="${build.dir}">
  |     <fileset dir="${src.dir}">
  |         <include name="**/appclient/*.properties"/>
  |     </fileset>
  |     <mapper type="flatten"/>
  | </copy>
  | <delete file="jar/app-client.jar"/>
  | 
  | <jar jarfile="jar/app-client.jar">
  |     <metainf dir="dd/client" includes="*.xml"/>
  |     <fileset dir="${build.dir}">
  |         <include name="com/sun/ebank/appclient/**"/>
  |         <include name="com/sun/ebank/ejb/exception/**"/>
  |         <include name="com/sun/ebank/util/**"/>
  |     	
  | 	<!--  FIX
  | 	Remove these two statements and add the next four statements - no such Account.java and AccountHome.java
  |     	<include name="com/sun/ebank/ejb/customer/Account.class"/>
  |         <include name="com/sun/ebank/ejb/customer/AccountHome.class"/>
  | 	-->
  | 
  |     	<!-- FIX Add these four statements instead -->
  |         <include name="com/sun/ebank/ejb/customer/CustomerControllerHome.class"/>
  |         <include name="com/sun/ebank/ejb/customer/CustomerController.class"/>
  |         <include name="com/sun/ebank/ejb/account/AccountControllerHome.class"/>
  |         <include name="com/sun/ebank/ejb/account/AccountController.class"/>
  | 
  |     </fileset>
  |     <fileset dir="dd/client">
  |         <include name="jndi.properties"/>
  |     </fileset>
  |     <fileset dir="${src.dir}/com/sun/ebank/">
  |         <include name="appclient/*.properties"/>
  |     </fileset>
  | </jar>
  | </target>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154515#4154515

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154515



More information about the jboss-user mailing list