Apache Camel Web 控制台的 scalate servlet 在 WebLogic 中失败

发布于 2024-12-07 17:02:45 字数 2460 浏览 1 评论 0原文

我在 scala 邮件列表 (也此处)。它似乎与 创建 scala 解释环境时类路径管理的此更改。

就我而言,scala-libraryscala-compiler 都包含在部署到 WebLogic 10.3war 中(骆驼版本:2.8.0,jvm:oracle 1.6)。

异常情况如下所示:

com.sun.jersey.api.container.ContainerException: org.fusesource.scalate.TemplateException: object scala not found.
    at org.fusesource.scalate.jersey.ScalateTemplateProcessor.writeToUsingServletTemplateEngine(ScalateTemplateProcessor.scala:190)
    at org.fusesource.scalate.jersey.ScalateTemplateProcessor.writeTo(ScalateTemplateProcessor.scala:136)
    at org.fusesource.scalate.jersey.ScalateTemplateProcessor.writeTo(ScalateTemplateProcessor.scala:44)
    at com.sun.jersey.spi.template.ResolvedViewable.writeTo(ResolvedViewable.java:103)
    at com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.writeTo(ViewableMessageBodyWriter.java:83)
    Truncated. see log file for complete stacktrace
Caused By: org.fusesource.scalate.TemplateException: object scala not found.
    at org.fusesource.scalate.TemplateEngine.compileAndLoad(TemplateEngine.scala:784)
    at org.fusesource.scalate.TemplateEngine.compileAndLoadEntry(TemplateEngine.scala:643)
    at org.fusesource.scalate.TemplateEngine.liftedTree1$1(TemplateEngine.scala:374)
    at org.fusesource.scalate.TemplateEngine.load(TemplateEngine.scala:368)
    at org.fusesource.scalate.TemplateEngine.load(TemplateEngine.scala:426)
    Truncated. see log file for complete stacktrace
Caused By: scala.tools.nsc.MissingRequirementError: object scala not found.
    at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:653)
    at scala.tools.nsc.symtab.Definitions$definitions$.getModule(Definitions.scala:603)
    at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage(Definitions.scala:145)
    at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageClass(Definitions.scala:146)
    at scala.tools.nsc.symtab.Definitions$definitions$.AnyClass(Definitions.scala:176)

问题:是否可以使camel web-console在这种环境下工作?

I've found a similar issue described in detail in the scala mailing list (also here). It seems to be related to this change in classpath management when creating scala interpretation environments.

In my case both scala-library and scala-compiler are included in the war being deployed to WebLogic 10.3 (camel version: 2.8.0, jvm: oracle 1.6).

The exception is shown below:

com.sun.jersey.api.container.ContainerException: org.fusesource.scalate.TemplateException: object scala not found.
    at org.fusesource.scalate.jersey.ScalateTemplateProcessor.writeToUsingServletTemplateEngine(ScalateTemplateProcessor.scala:190)
    at org.fusesource.scalate.jersey.ScalateTemplateProcessor.writeTo(ScalateTemplateProcessor.scala:136)
    at org.fusesource.scalate.jersey.ScalateTemplateProcessor.writeTo(ScalateTemplateProcessor.scala:44)
    at com.sun.jersey.spi.template.ResolvedViewable.writeTo(ResolvedViewable.java:103)
    at com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.writeTo(ViewableMessageBodyWriter.java:83)
    Truncated. see log file for complete stacktrace
Caused By: org.fusesource.scalate.TemplateException: object scala not found.
    at org.fusesource.scalate.TemplateEngine.compileAndLoad(TemplateEngine.scala:784)
    at org.fusesource.scalate.TemplateEngine.compileAndLoadEntry(TemplateEngine.scala:643)
    at org.fusesource.scalate.TemplateEngine.liftedTree1$1(TemplateEngine.scala:374)
    at org.fusesource.scalate.TemplateEngine.load(TemplateEngine.scala:368)
    at org.fusesource.scalate.TemplateEngine.load(TemplateEngine.scala:426)
    Truncated. see log file for complete stacktrace
Caused By: scala.tools.nsc.MissingRequirementError: object scala not found.
    at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:653)
    at scala.tools.nsc.symtab.Definitions$definitions$.getModule(Definitions.scala:603)
    at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage(Definitions.scala:145)
    at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageClass(Definitions.scala:146)
    at scala.tools.nsc.symtab.Definitions$definitions$.AnyClass(Definitions.scala:176)

The question: is it possible to make camel web-console work in this environment?

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

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

发布评论

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

评论(1

心清如水 2024-12-14 17:02:45

不,这是 WebLogic 的问题。 Scalaete 需要添加对 WebLogic 的特殊支持,因为 WebLogic 的类加载方式与通常的做法略有不同。

No its a problem with WebLogic. Scalaete needs to add special support for WebLogic, as WebLogic does classloading a bit differently, than the usual practice.

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