unknown mergecfgxml property

web 项目在集成jbpm的时候,使用ant+xdoclet执行build.xml的时候提示如下的错误:

org.picocontainer.PicoIntrospectionException: Unknown property 'mergecfgxml' in class org.xdoclet.plugin.hibernate.HibernateConfigPlugin Existing properties:{defaultentitymode=java.beans.PropertyDescriptor@2eae37fd, contextObjects=java.beans.PropertyDescriptor@6ddb042c, jndiurl=java.beans.PropertyDescriptor@a80d28ac, jdbcbatchsize=java.beans.PropertyDescriptor@f06c8a7e, properties=java.beans.PropertyDescriptor@6c0908d0, jdbcautocommit=java.beans.PropertyDescriptor@f8b1c8ef, encoding=java.beans.PropertyDescriptor@34be7cd5, validate=java.beans.PropertyDescriptor@680aa07e, packagereplace=java.beans.PropertyDescriptor@39bb25cd, jdbcusername=java.beans.PropertyDescriptor@6c4d791f, jdbcusescrollableresultset=java.beans.PropertyDescriptor@b38e31f8, usesecondlevelcache=java.beans.PropertyDescriptor@d8b38f27, jdbcfetchsize=java.beans.PropertyDescriptor@332743fe, class=java.beans.PropertyDescriptor@615c97e4, cachequerycachefactory=java.beans.PropertyDescriptor@7fb126d4, restrictedpath=java.beans.PropertyDescriptor@fafd939f, transactionmanagerlookup=java.beans.PropertyDescriptor@f29478d7, c3p0maxsize=java.beans.PropertyDescriptor@977ea0c3, version=java.beans.PropertyDescriptor@e666f9fd, mappedClasses=java.beans.PropertyDescriptor@9de8cc01, destdirFile=java.beans.PropertyDescriptor@8a353a72, destdir=java.beans.PropertyDescriptor@b057dfaa, jdbcusestreamsforbinary=java.beans.PropertyDescriptor@652bbeb9, mergedir=java.beans.PropertyDescriptor@6095177, filereplace=java.beans.PropertyDescriptor@7942d637, jdbcurl=java.beans.PropertyDescriptor@eb704812, transactionfactory=java.beans.PropertyDescriptor@39a9ad8a, jdbcisconnectionvalidationrequired=java.beans.PropertyDescriptor@76f1fa11, showsql=java.beans.PropertyDescriptor@a258909f, dialect=java.beans.PropertyDescriptor@a794b24c, jdbcpoolsize=java.beans.PropertyDescriptor@e46a2496, querysubstitutions=java.beans.PropertyDescriptor@adffd954, c3p0idletestperiod=java.beans.PropertyDescriptor@464d286d, hbm2ddlauto=java.beans.PropertyDescriptor@d8c3d87a, jdbcbatchversioneddata=java.beans.PropertyDescriptor@7fc973e8, jdbcdriver=java.beans.PropertyDescriptor@63270439, defaultschema=java.beans.PropertyDescriptor@aae58868, jtausertransaction=java.beans.PropertyDescriptor@81f1f7da, c3p0timeout=java.beans.PropertyDescriptor@491e985f, usereflectionoptimizer=java.beans.PropertyDescriptor@b2aa33d9, DTDVersion=java.beans.PropertyDescriptor@fcc317a5, c3p0acquireincrement=java.beans.PropertyDescriptor@2af920d7, propertyMap=java.beans.PropertyDescriptor@2971bd54, jndiclass=java.beans.PropertyDescriptor@7e2de9c5, connectionprovider=java.beans.PropertyDescriptor@51b22f25, jdbcisolation=java.beans.PropertyDescriptor@fe91189, outputValidator=java.beans.PropertyDescriptor@87bf01b7, c3p0maxstatements=java.beans.PropertyDescriptor@7162a7b6, c3p0minsize=java.beans.PropertyDescriptor@fa00e6f9, cacheregionprefix=java.beans.PropertyDescriptor@dcfa4fa6, useouterjoin=java.beans.PropertyDescriptor@8c2c3644, fileregex=java.beans.PropertyDescriptor@88b1c40a, cacheusequerycache=java.beans.PropertyDescriptor@538eb155, currentsessioncontextclass=java.beans.PropertyDescriptor@276a00ec, jdbcusegetgeneratedkeys=java.beans.PropertyDescriptor@4a9c3c7, jdbcautoreconnectforpools=java.beans.PropertyDescriptor@72093b11, cacheuseminimalputs=java.beans.PropertyDescriptor@c92eb65e, jdbcpassword=java.beans.PropertyDescriptor@1a24071c, jndisessionfactoryname=java.beans.PropertyDescriptor@fdf40206, cacheprovider=java.beans.PropertyDescriptor@187654c9, maxfetchdepth=java.beans.PropertyDescriptor@47b3025b, dontaddmappings=java.beans.PropertyDescriptor@ec45b039, packageregex=java.beans.PropertyDescriptor@23380520, mappingextension=java.beans.PropertyDescriptor@fc31dbf2, multioutput=java.beans.PropertyDescriptor@8d030082, jdbcautoreconnect=java.beans.PropertyDescriptor@bf6c391b, jndidatasource=java.beans.PropertyDescriptor@c3723fd4}



解决办法:

		<xdoclet>
			<fileset dir="${src.dir}/com/oa/model">
				<include name="**/*.java"/>
			</fileset>
			<component
				classname="org.xdoclet.plugin.hibernate.HibernateProperty"
				destdir="${src.dir}"
				version="3.0"
				hbm2ddlauto="update"
				jdbcurl="jdbc:mysql://localhost/oa3"
				jdbcdriver="com.mysql.jdbc.Driver"
				jdbcusername="root"
				jdbcpassword="root"
				dialect="org.hibernate.dialect.MySQLDialect"
				showsql="true"
				mergecfgxml="${basedir}/jbpm.cfg.xml"
			/>
			
		</xdoclet>

 

你可能感兴趣的:(java,Hibernate,mysql,jdbc,jbpm)