我正在将我的应用程序从GlassFish 3.0.1迁移到GlassFish 3.1.1。部署失败,并显示以下错误消息:“没有堆栈跟踪时加载应用程序时出现异常”
SEVERE: Exception while loading the app
SEVERE: Exception while shutting down application container
SEVERE: Exception while shutting down application container : java.lang.NullPointerException
SEVERE: java.lang.RuntimeException: Error occurred during deployment: Exception while shutting down application container : java.lang.NullPointerException. Please see server.log for more details.
没有堆栈跟踪。我打开根日志记录级别为FINEST和焊缝消息后发生的第一严重的消息:
//...
FINE: WELD-000105 Enabled interceptor types for Manager
Enabled alternatives: [] []
Registered contexts: [interface javax.enterprise.context.SessionScoped, interface javax.enterprise.context.RequestScoped, interface javax.inject.Singleton, interface javax.enterprise.context.Dependent, interface javax.enterprise.context.ApplicationScoped, interface javax.enterprise.context.ConversationScoped]
Registered beans: 0
Specialized beans: 0
: []
而之前像这样的几个消息(几个不同的类):
FINE: PWC4451: File cannot be read /opt/sun/glassfish-3.1.1/glassfish/domains/domain1/applications/QmsWeb/WEB-INF/classes/org/jboss/seam/transaction/SeamTransaction.class
FINE: PWC4451: File cannot be read /opt/sun/glassfish-3.1.1/glassfish/domains/domain1/applications/QmsWeb/WEB-INF/classes/org/jboss/seam/transaction/SeamTransaction.class
FINE: PWC4451: File cannot be read /opt/sun/glassfish-3.1.1/glassfish/domains/domain1/applications/QmsWeb/WEB-INF/classes/net/sf/ehcache/config/TerracottaConfiguration$ValueMode.class
//...
有什么事情引起这个错误?这些PWC4451消息是否表明某些库没有被加载?
这看起来好像无处可去。如果任何开发工具程序员看到这一点,请记住:良好的错误消息是一个功能! – Nick
这实际上被标记为Glassfish问题,应该在Glassfish 4.0中修复,以解决该问题。请参阅http://java.net/jira/browse/GLASSFISH-18599,不幸的是,这无助于你或我现在。 –