问题描述
使用clib动态生成类的时候,当执行到BeanGenerator generator = new BeanGenerator(); 的时候就停下来了,不报错,也不继续向下走,这个是在TOMCAT运行环境中的运行结果,如果是在main函数中则不会报错,判断应该是运行环境中的jar包冲突,排查了半天也没有结果,不知哪位大神给个正解。。。。下面是我引用的所有jar包:<classpathentry kind="src" path="src"/><classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/><classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0"/><classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/activation.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/aopalliance.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/axis.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/bcprov-jdk14-131.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/bsh.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-beanutils.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-beanutils-bean-collections.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-codec.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-collections.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-digester.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-discovery-0.2.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-fileupload.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-httpclient-3.1.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-io.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-lang.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-logging.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-primitives.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/cos-multipart.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/db2java.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/dom4j.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/EJBController.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/formconfig.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/freemarker.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/innerformrelevantconfig.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/jakarta-oro-2.0.8.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/jaxrpc.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/jdom.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/jgroups-all.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/js.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/json.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/jspformrelevantconfig.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/jspformsmanage.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/jsr173_1.0_api.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/log4j-1.2.8.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang_BSP_Axis.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang3.0-beans.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang3.0-cache.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang3.0-core.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang3.0-exception.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang3.0-ext.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang3.0-jdbc.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang3.0-schedule.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang3.0-util.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang3.0-validator.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang3.0-wb.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang-axis.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang-bsp3.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang-dynax.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang-mof.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang-mp.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang-workflow.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/loushang-workflow-jsp-demo.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/mail.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/menuconfig.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/mofxmlrf.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/msbase.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/msnm.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/mssqlserver.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/msutil.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/nanocontainer.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/ognl-2.6.3-modified.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/ojdbc14_g.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/opensaml-1.0.1.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/oro.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/oscore-2.2.1.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/pell-multipart.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/picocontainer.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/plugin.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/poi-2.5-final-20040302.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/regexp.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/saaj.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/tagResource.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/velocity-1.4.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/wsdl4j-1.5.1.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/wss4j.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/xalan.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/xbean_xpath.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/xml4j.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/XmlSchema-1.4.2.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/xmlsec-1.4.0.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/xsdbean.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/stax-api-1.0.1.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/wstx-asl-3.2.0.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/cglib-nodep-2.2.2.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/xstream-1.3.1.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/xfire-all-1.2.6.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/httpclient-4.1.2.jar"/><classpathentry kind="lib" path="WebContent/WEB-INF/lib/httpclient-cache-4.1.2.jar"/><classpathentry kind="output" path="build/classes"/>
解决方案
你应该对照WebContent/WEB-INF/lib/下的和tomcat下的apache-tomcat-6.0.14lib下的jar包