此程序在windows下的weblogic可以发布,但改换到linux下时抛出异常信息:
java.lang.NoClassDefFoundError: org/exolab/castor/xml/ValidationException
at java.lang.Class.getMethods0(II)[I(Unknown Source)
at java.lang.Class.findMethods(I)[Ljava/lang/reflect/Method;(Unknown Source)
at java.lang.Class.getMethods(I)[Ljava/lang/reflect/Method;(Unknown Source)
at weblogic.ejb20.ejbc.VersionHelper.computeCRC(Ljava/lang/String;Ljava/lang/ClassLoader;)J(VersionHelper.java:358)
at weblogic.ejb20.ejbc.VersionHelper.makeFileHash(Lweblogic/utils/jars/VirtualJarFile;)Ljava/util/Properties;(VersionHelper.java:254)
at weblogic.ejb20.ejbc.VersionHelper.<init>(Lweblogic/ejb20/interfaces/DeploymentInfo;Lweblogic/utils/jars/VirtualJarFile;Lweblogic/utils/Getopt2;)V(VersionHelper.java:79)
at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(Lweblogic/utils/jars/VirtualJarFile;Lweblogic/management/configuration/EJBComponentMBean;Lweblogic/utils/classloaders/GenericClassLoader;)V(EJBDeployer.java:623)
at weblogic.ejb20.deployer.EJBDeployer.prepare(Lweblogic/utils/jars/VirtualJarFile;Ljava/lang/ClassLoader;Lweblogic/management/descriptors/toplevel/EJBDescriptorMBean;Ljavax/naming/Context;Ljava/util/Map;)V(EJBDeployer.java:1431)
at weblogic.ejb20.deployer.EJBModule.prepare(Ljava/lang/ClassLoader;)V(EJBModule.java:498)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(Lweblogic/utils/classloaders/GenericClassLoader;Lweblogic/j2ee/J2EEApplicationContainer$Component;Z)V(J2EEApplicationContainer.java:3149)