求助:glassfish无法加载class文件
我的glassfish服务器集群中的一台,如果把web工程中的代码打成jar包,放在WEB-INF/lib 下,可以正常运行。但是如果将class文件放在WEB-INF/classes目录下,则部署后无法运行。部署时的log如下:Command deploy executed successfully with following warning messages: Error occurred during application loading phase. The application will not run properly. Please fix your application and redeploy.
WARNING: com.sun.enterprise.deployment.backend.IASDeploymentException: ContainerBase.addChild: start: LifecycleException: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.apache.ibatis.session.SqlSessionFactory] is defined: expected single matching bean but found 2: [sqlSessionFactory115Wapnews, sqlSessionFactory104Store]
相同的war包放在集群中的其他glassfish服务器上,都是可以正常运行的,可以排除代码错误。
请问:如何配置glassfish服务器可以加载运行WEB-INF/classes目录下的class文件呢? GlassFish 服务器 集群
补充:Java , Java EE