[jboss-user] [JBossCache] - Re: PojoCache: java.lang.NoSuchMethodException: addObserver

chencao0524 do-not-reply at jboss.com
Wed Jan 10 20:08:27 EST 2007


Hi ben, the problem was resolved.
I just added a path to build.classpath, show below

  | <path id="build.classpath">
  | 		<pathelement location="${basedir}"/>
  | 		<fileset dir="${jboss.home}/lib">
  | 			<include name="**/*.jar"/>
  | 		</fileset>
  | 		<fileset dir="${jboss.home}/server/${jboss.server.config}/lib">
  | 			<include name="**/*.jar"/>
  | 		</fileset>
  | 		<fileset dir="${jboss.home}/server/${jboss.server.config}/deploy/ejb3.deployer">
  | 			<include name="*.jar"/>
  | 		</fileset>
  | 		<fileset dir="${jboss.home}/server/${jboss.server.config}/deploy/jboss-aop-jdk50.deployer">
  | 			<include name="*.jar"/>
  | 		</fileset>
  | 		<fileset dir="${lib.dir}">
  | 			<include name="**/*.jar"/>
  | 		</fileset>
  | 		<fileset dir="${deploy.dir}/tc5-cluster.sar">
  | 	          <include name="tc5-cluster.aop" />
  | 	        </fileset>
  | 		<!--fileset dir="${cache.lib.50.dir}">
  | 			<include name="**/*.jar"/>
  | 		</fileset-->
  | 		<pathelement location="${classes.dao.dir}"/>
  | 		<pathelement location="${classes.web.dir}"/>
  | 		<pathelement location="${classes.test.dir}"/>
  | 		<pathelement location="${conf.hivemind.dir}"/>
  | 	</path>	
  | 
  | 
  | <!-- pre-compile directory with aopc -->
  |    <target name="aopc" depends="compile" description="Precompile aop test classes">
  |       <taskdef name="aopc" classname="org.jboss.aop.ant.AopC" classpathref="build.classpath"/>
  |       <aopc compilerclasspathref="build.classpath" verbose="true">
  |          <src path="${classes.dao.dir}"/>
  |          <aoppath path="${cache.resources.dir}/jboss-aop.xml"/>
  |          <classpath refid="build.classpath"/>
  |       </aopc>
  |    </target>
  | 
  | 

Now, it's ok. 
Is that snippet of path must been contained in the classpath?

Thanks a lot for your help! 

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

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



More information about the jboss-user mailing list