尝试将应用程序部署到 Weblogic 时出现 StackOverflowError?

发布于 2024-09-07 07:01:17 字数 2175 浏览 6 评论 0原文

我正在开发一个 J2EE 应用程序,为了进行部署,我使用 build.xml (所有团队成员都使用它)来创建ear&发布,在 Eclipse 中出现 BUILD SUCCESSFUL 消息后,我启动 Weblogic 10.3.2,但 weblogic 无法正常启动,并在控制台中显示以下错误消息:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [zip:C:/APP1/P2/2.0.0/Code/tools/bea_10.3.2/user_projects
/domains/knb_local/servers/AdminServer/tmp/_WL_user/APP1Web/epxawd/war/WEB-INF/li
b/slf4j-jcl-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [zip:C:/APP1/P2/2.0.0/Code/tools/bea_10.3.2/user_projects
/domains/knb_local/servers/AdminServer/tmp/_WL_user/APP1Web/epxawd/war/WEB-INF/li
b/slf4j-jcl-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [zip:C:/APP1/P2/2.0.0/Code/tools/bea_10.3.2/user_projects
/domains/knb_local/servers/AdminServer/tmp/_WL_user/APP1Web/epxawd/war/WEB-INF/li
b/app1-shared-4.0.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
<Jun 29, 2010 4:14:44 PM IST> <Warning> <HTTP> <BEA-101162> <User defined listener com.appgw.base.web.startup.APP1WebStartup failed: java.lang.StackOverflowError
.
java.lang.StackOverflowError
        at org.apache.commons.logging.LogFactory.getContextClassLoader(LogFactory.java:438)
        at org.apache.commons.logging.LogFactory$1.run(LogFactory.java:222)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:218)

        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
        Truncated. see log file for complete stacktrace

........................
........................

>(如果我启动应用程序,我会收到错误 404 - 未找到)

奇怪的是,问题仅出在我的机器上,而其他团队成员却能够成功部署并启动 weblogic。我正在使用 CVS 中的相同代码。

这可能是环境问题(例如默认的 JRE 等)

有什么想法吗?可能是什么问题

Windows XP / Weblogic 10.3.2
java -version
java version "1.6.0_19"
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)

I am working on a J2EE application, to deploy I am using a build.xml (which is used by all team members) to create ear & publish, after the BUILD SUCCESSFUL message appears in Eclipse, I start Weblogic 10.3.2 but weblogic doesn't start properly and shows the following error message in the console:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [zip:C:/APP1/P2/2.0.0/Code/tools/bea_10.3.2/user_projects
/domains/knb_local/servers/AdminServer/tmp/_WL_user/APP1Web/epxawd/war/WEB-INF/li
b/slf4j-jcl-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [zip:C:/APP1/P2/2.0.0/Code/tools/bea_10.3.2/user_projects
/domains/knb_local/servers/AdminServer/tmp/_WL_user/APP1Web/epxawd/war/WEB-INF/li
b/slf4j-jcl-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [zip:C:/APP1/P2/2.0.0/Code/tools/bea_10.3.2/user_projects
/domains/knb_local/servers/AdminServer/tmp/_WL_user/APP1Web/epxawd/war/WEB-INF/li
b/app1-shared-4.0.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
<Jun 29, 2010 4:14:44 PM IST> <Warning> <HTTP> <BEA-101162> <User defined listener com.appgw.base.web.startup.APP1WebStartup failed: java.lang.StackOverflowError
.
java.lang.StackOverflowError
        at org.apache.commons.logging.LogFactory.getContextClassLoader(LogFactory.java:438)
        at org.apache.commons.logging.LogFactory$1.run(LogFactory.java:222)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:218)

        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
        Truncated. see log file for complete stacktrace

........................
........................

(If I launch the application I get Error 404--Not Found)

The strange thing is that the problem is only with my machine whereas other team members are able to successfully deploy and start weblogic. I am using the same code from CVS.

It may be an issue with the environment (like default JRE etc..)

Any ideas ? What could be the problem

Windows XP / Weblogic 10.3.2
java -version
java version "1.6.0_19"
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我不会写诗 2024-09-14 07:01:17

类似的问题在这里(链的底部)建议仅保留 slf4j-api- 1.5.x.jar 和 slf4f-simple-1.5.x.jar 放在 WEB-INF/lib 中,并从那里删除任何其他 slf4j jar?

Similar issue here (bottom of the chain) suggests keeping only slf4j-api-1.5.x.jar and slf4f-simple-1.5.x.jar in your WEB-INF/lib and removing any other slf4j jars from there?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文