"action" failed to preload on startup in webapp: 的问题!

汇科天下 2004-07-29 06:33:53
在welbogic6下做好的应用程序,一切都正常,当放在weloigc7下启动的时候便会出现下面的错误:

18:13:39,109 INFO PropertyMessageResources:127 - Initializing, config='org.apac
he.struts.util.LocalStrings', returnNull=true
18:13:39,156 INFO PropertyMessageResources:127 - Initializing, config='org.apac
he.struts.action.ActionResources', returnNull=true
<2004-7-29 下午06时13分40秒> <Error> <HTTP> <101216> <Servlet: "action" failed t
o preload on startup in webapp: "adakjj"
javax.servlet.ServletException

其结果是应用程序只能打开首页,当进入其它页面是便会有如下错误:

<2004-7-29 下午06时16分59秒> <Error> <HTTP> <101017> <[ServletContext(id=2640579
,name=adakjj,context-path=/adakjj)] Root cause of ServletException
java.lang.NoClassDefFoundError
at net.sf.hibernate.cfg.Configuration.<init>(Configuration.java:86)
at com.ada.plugin.InitHibernate.init(InitHibernate.java:57)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle
t.java:1158)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)

不知道那位朋友见过而且解决过此类问题!

望告知,谢谢!!!!
...全文
250 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
eventhiscsdn 2005-03-29
  • 打赏
  • 举报
回复
Hmm. Unfortunately, ServletException tends to swallow root causes and
not print them correctly in a stack trace. However, it looks like the
mystery root cause is a NoClassDefFoundError. Are you sure that the
log4j JAR file is in a place accessible to the application?
-----by Chris Smith

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧