[jboss-user] [EJB 3.0] - Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC

sumedha7 do-not-reply at jboss.com
Tue Oct 24 05:53:45 EDT 2006


Hope following snippet from my build.xml is helpful. I have an application written using EJB3 & I am using a client to connect to it remotely. Following snippet is how I run the client from ant. All the jars I need are listed there.


  
  | <target name="run-client" depends="jar">
  |     <path id="client.classpath">
  |        <fileset dir="${classes.dir}">
  |          <include name="${ant.project.name}.jar" />
  |        </fileset>
  |        <fileset dir="${jboss.dir}/server/all/lib">
  |          <include name="jnpserver.jar" />
  |          <include name="jboss-j2ee.jar" />
  |          <include name="jboss-remoting.jar" />
  |          <include name="jbosssx.jar" />
  |          <include name="jboss-transaction.jar" />
  |          <include name="hibernate3.jar" />
  |          <include name="antlr-2.7.6.jar" />
  |          
  |        </fileset>
  |        <fileset dir="${jboss.dir}/lib">
  |          <include name="jboss-common.jar" />
  |          <include name="concurrent.jar" />
  |        </fileset>
  |        <fileset dir="${jboss.dir}/server/all/deploy/ejb3.deployer">
  |          <include name="jboss-ejb3.jar" />
  |        </fileset>
  |        <fileset dir="${jboss.dir}/server/all/deploy/jboss-aop-jdk50.deployer">
  |          <include name="jboss-aop-jdk50.jar" />
  |          <include name="jboss-aspect-library-jdk50.jar" />
  |        </fileset>
  |                      
  |     </path>
  |     <java classname="xxx.xxxx.xxx.EJB3Client">
  | 	       <classpath refid="client.classpath"/>	            
  | 	  </java>
  |    </target>
  | 

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

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



More information about the jboss-user mailing list