【问题标题】:How can I configure a server in Eclipse?如何在 Eclipse 中配置服务器?
【发布时间】:2010-08-05 05:04:44
【问题描述】:

当我启动我的 Tomcat 服务器时,我遇到了下面列出的错误消息所描述的问题。

我该如何解决这个问题?

Aug 5, 2010 10:25:13 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:openbravo' did not find a matching property.
Aug 5, 2010 10:25:13 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/jdk1.6.0_16/jre/lib/amd64/server:/opt/jdk1.6.0_16/jre/lib/amd64:/opt/jdk1.6.0_16/jre/../lib/amd64:/usr/lib64/xulrunner-1.9.1:/usr/java/packages/lib/amd64:/lib:/usr/lib
Aug 5, 2010 10:25:13 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080

还有这个例外:

[main] WARN  org.jboss.seam.security.permission.PersistentPermissionResolver  - no permission store available - please install a PermissionStore with the name 'org.jboss.seam.security.jpaPermissionStore' if persistent permissions are required.
Aug 5, 2010 10:25:40 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.openbravo.dal.core.DalContextListener
org.openbravo.base.exception.OBException: org.openbravo.base.exception.OBException: Not able to create domain type org.openbravo.userinterface.selector.model.domaintype.ModelElementDomainType for reference org.openbravo.base.model.Reference [id: 45B39681AFBC4808A64C9B776A290BA4, name: OBUISEL_SelectorFieldPropertySelector]

【问题讨论】:

  • 您使用的是什么确切的 Eclipse、WTP 和 tomcat 版本?

标签: java eclipse tomcat seam openbravo


【解决方案1】:

警告:[SetPropertiesRule]{Server/Service/Engine/Host/Context} 将属性 'source' 设置为 'org.eclipse.jst.j2ee.server:openbravo' 没有找到匹配的属性。

这没有害处。 Eclipse 只是向 Tomcat 的 <Context> 元素添加了一个额外属性,以便能够将部署的 webapp 与特定项目相关联。 Tomcat 只是在抽搐,因为它不将其识别为预定义的<Context> 属性之一。然而,它试图帮助最终用户实际打错字等情况。忽略它。当您导出 web 应用并将其部署到真正的生产服务器上时,您不会看到它。

[main] WARN org.jboss.seam.security.permission.PersistentPermissionResolver - 没有可用的权限存储 - 如果需要持久权限,请安装名为“org.jboss.seam.security.jpaPermissionStore”的 PermissionStore。 2010 年 8 月 5 日上午 10:25:40 org.apache.catalina.core.StandardContext listenerStart

我不是 Seam 人,但 Google 告诉我,当您将 JPA 配置为使用 JTA 事务并且没有在 Seam 的 components.xml 中配置 <security:jpa-permission-store> 时,您可能会得到这个。要解决此问题,请添加权限存储或将 JPA 配置为仅使用资源本地事务。

严重:向 org.openbravo.dal.core.DalContextListener 类的侦听器实例发送上下文初始化事件的异常

org.openbravo.base.exception.OBException:org.openbravo.base.exception.OBException:无法创建域类型 org.openbravo.userinterface.selector.model.domaintype.ModelElementDomainType 以供参考 org.openbravo.base。 model.Reference [id: 45B39681AFBC4808A64C9B776A290BA4, name: OBUISEL_SelectorFieldPropertySelector]

这是一个自定义/包装的异常,不会提供太多有用的信息。我们对异常的根本原因更感兴趣。在堆栈跟踪中进一步查看此异常的 根本原因 部分。它将说明问题的根本原因:)


尽管如此,到目前为止,没有一个问题与字面问题“如何在 Eclipse 中配置服务器?”有关。你似乎已经成功地做到了。第一个问题可以忽略。第二个问题与 Seam/JPA 有关。第三个问题与 Openbravo ERP 有关。您可以考虑就它们提出单独的个问题来解决问题。

【讨论】:

    猜你喜欢
    • 2014-10-01
    • 1970-01-01
    • 2011-01-11
    • 2021-02-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-14
    • 1970-01-01
    相关资源
    最近更新 更多