每当我在带有无接口EJB的动态web maven项目上的eclipse helios中执行Run on Server时,Glassfish会间歇性地部署它。成功部署通常使用以下内容进行记录:
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: EclipseLink, version: Eclipse Persistence Services - 2.3.0.v20110604-r9504
SEVERE: line 1:53 no viable alternative at character '<EOF>'
SEVERE: line 1:53 no viable alternative at character ' '
SEVERE: line 1:81 no viable alternative at character '<EOF>'
INFO: file:/C:/glassfish3/glassfish/domains/domain1/eclipseApps/suffuse-management-console/WEB-INF/classes/_suffuse-management-console13331114 login successful
WARNING: Multiple [2] JMX MBeanServer instances exist, we will use the server at index [0] : [com.sun.enterprise.v3.admin.DynamicInterceptor@181f00a].
WARNING: JMX MBeanServer in use: [com.sun.enterprise.v3.admin.DynamicInterceptor@181f00a] from index [0]
WARNING: JMX MBeanServer in use: [com.sun.jmx.mbeanserver.JmxMBeanServer@189b558] from index [1]
INFO: Portable JNDI names for EJB UniversalEAO : [java:global/suffuse-management-console/UniversalEAO, java:global/suffuse-management-console/UniversalEAO!neverfall.suffuse.management.services.UniversalEAO]
INFO: Portable JNDI names for EJB UserAuthenticationService : [java:global/suffuse-management-console/UserAuthenticationService, java:global/suffuse-management-console/UserAuthenticationService!neverfall.suffuse.management.services.UserAuthenticationService]
INFO: Portable JNDI names for EJB ProjectEntityProvider : [java:global/suffuse-management-console/ProjectEntityProvider!neverfall.suffuse.management.services.ProjectEntityProvider, java:global/suffuse-management-console/ProjectEntityProvider]
INFO: Portable JNDI names for EJB ProjectManagementService : [java:global/suffuse-management-console/ProjectManagementService!neverfall.suffuse.management.services.ProjectManagementService, java:global/suffuse-management-console/ProjectManagementService]
INFO: WEB0671: Loading application [suffuse-management-console] at [/suffuse-management-console]
INFO: suffuse-management-console was successfully deployed in 8,781 milliseconds.
但是,它偶尔会部分部署只有这个
INFO: file:/C:/glassfish3/glassfish/domains/domain1/eclipseApps/suffuse-management-console/WEB-INF/classes/_suffuse-management-console20748433 logout successful
INFO: WEB0671: Loading application [suffuse-management-console] at [/suffuse-management-console]
INFO: suffuse-management-console was successfully deployed in 5,461 milliseconds.
访问我的servlet时出现404错误。要完全部署它,我必须执行Project - &gt;清理然后再次执行Run on Server而不删除资源,它就可以了。有谁知道这背后的原因和永久性的补救措施?