- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在启动部署了工作灯项目 (.war) 的服务器时遇到此错误。想知道是否有人有任何意见。以下是相关信息。
系统采用Redhat OS
、Worklight version 6.2 Consumer Edition
、DB2
作为数据库以及WS-Liberty 8.5 .5.1
作为服务器。
P.S:我的应用程序在出现此问题之前可用,但是我的工作灯控制台从未正常工作(工作灯控制台上始终出现消息“找不到运行时配置
”的问题)。它仍然说同样的事情。
日志
[AUDIT ] CWWKG0016I: Starting server configuration update.
[AUDIT ] CWWKG0017I: The server configuration was successfully updated in 0.071 seconds.
[WARNING ] SRVE9967W: The manifest class path pdq.jar can not be found in jar file wsjar:file:/opt/IBM/WebSphere/Liberty/usr/servers/WL_UAT_Server/apps/MyProjectName.war!/WEB-INF/lib/db2jcc.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path pdq.jar can not be found in jar file wsjar:file:/opt/IBM/WebSphere/Liberty/usr/servers/WL_UAT_Server/apps/MyProjectName.war!/WEB-INF/lib/db2jcc4.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path pdq.jar can not be found in jar file wsjar:file:/opt/IBM/WebSphere/Liberty/usr/servers/WL_UAT_Server/apps/MyProjectName.war!/WEB-INF/lib/db2jcc.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path pdq.jar can not be found in jar file wsjar:file:/opt/IBM/WebSphere/Liberty/usr/servers/WL_UAT_Server/apps/MyProjectName.war!/WEB-INF/lib/db2jcc4.jar or its parent.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/MyProjectName/
[ERROR ] FWLSE0188E: Failed to connect to DB2 database : Cannot create PoolableConnectionFactory ([jcc][10389][12245][3.67.27] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path: ERRORCODE=-4472, SQLSTATE=null) [project MyProjectName]
[ERROR ] FWLST0003E: ========= Failed starting project /MyProjectName [project MyProjectName]
Error creating bean with name 'txManager' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'brokerSessionFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brokerSessionFactory' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/spring-server-core.xml]: Cannot resolve reference to bean 'rssBrokerDS' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rssBrokerDS' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/spring-server-core.xml]: Cannot resolve reference to bean 'worklight-direct' while setting bean property 'targetDataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklight-direct' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/spring-server-core.xml]: Invocation of init method failed; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory ([jcc][10389][12245][3.67.27] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path: ERRORCODE=-4472, SQLSTATE=null)
[ERROR ] Error creating bean with name 'txManager' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'brokerSessionFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brokerSessionFactory' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/spring-server-core.xml]: Cannot resolve reference to bean 'rssBrokerDS' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rssBrokerDS' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/spring-server-core.xml]: Cannot resolve reference to bean 'worklight-direct' while setting bean property 'targetDataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklight-direct' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/spring-server-core.xml]: Invocation of init method failed; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory ([jcc][10389][12245][3.67.27] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path: ERRORCODE=-4472, SQLSTATE=null)
Error creating bean with name 'txManager' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'brokerSessionFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brokerSessionFactory' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/spring-server-core.xml]: Cannot resolve reference to bean 'rssBrokerDS' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rssBrokerDS' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/spring-server-core.xml]: Cannot resolve reference to bean 'worklight-direct' while setting bean property 'targetDataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklight-direct' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/spring-server-core.xml]: Invocation of init method failed; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory ([jcc][10389][12245][3.67.27] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path: ERRORCODE=-4472, SQLSTATE=null)
[ERROR ] MyProjectName: WL_UAT_Server///10.80.25.54: 2014-08-15T15:19:11.145Z: BeanCreationException:Error creating bean with name 'txManager' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'brokerSessionFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brokerSessionFactory' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/spring-server-core.xml]: Cannot resolve reference to bean 'rssBrokerDS' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rssBrokerDS' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/spring-server-core.xml]: Cannot resolve reference to bean 'worklight-direct' while setting bean property 'targetDataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklight-direct' defined in URL [wsjar:file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight-jee-library-6.2.0.jar!/conf/spring-server-core.xml]: Invocation of init method failed; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory ([jcc][10389][12245][3.67.27] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path: ERRORCODE=-4472, SQLSTATE=null)
[AUDIT ] CWWKZ0001I: Application MyProjectName started in 4.022 seconds.
[ERROR ] FWLSE3002E: The resource is not found.
FWLSE3041E: No MBean found for Worklight project 'MyProjectName'. Possibly the Worklight runtime web application for Worklight project 'MyProjectName' is not running. If it is running, use JConsole to inspect the available MBeans.
[ERROR ] SRVE0315E: An execption occurred: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: com.ibm.db2.jcc.am.SqlException: [jcc][10389][12245][3.67.27] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path: ERRORCODE=-4472, SQLSTATE=null
at com.worklight.core.auth.impl.AuthenticationFilter.verifyServletInitialized(AuthenticationFilter.java:422)
at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:127)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at [internal classes]
Caused by: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: com.ibm.db2.jcc.am.SqlException: [jcc][10389][12245][3.67.27] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path: ERRORCODE=-4472, SQLSTATE=null
... 5 more
[AUDIT ] CWWKG0016I: Starting server configuration update.
[AUDIT ] CWWKG0018I: The server configuration was not updated. No functional changes were detected.
[AUDIT ] CWWKG0016I: Starting server configuration update.
[AUDIT ] CWWKG0017I: The server configuration was successfully updated in 0.149 seconds.
[AUDIT ] CWWKT0017I: Web application removed (default_host): http://localhost:9080/_MobileBrowserSimulator/
[AUDIT ] CWWKZ0009I: The application _MobileBrowserSimulator has stopped successfully.
[AUDIT ] CWWKG0016I: Starting server configuration update.
[AUDIT ] CWWKG0017I: The server configuration was successfully updated in 0.031 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/_MobileBrowserSimulator/
[AUDIT ] CWWKZ0001I: Application _MobileBrowserSimulator started in 0.072 seconds.
[ERROR ] SRVE0315E: An execption occurred: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: com.ibm.db2.jcc.am.SqlException: [jcc][10389][12245][3.67.27] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path: ERRORCODE=-4472, SQLSTATE=null
at com.worklight.core.auth.impl.AuthenticationFilter.verifyServletInitialized(AuthenticationFilter.java:422)
at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:127)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at [internal classes]
Caused by: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: com.ibm.db2.jcc.am.SqlException: [jcc][10389][12245][3.67.27] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path: ERRORCODE=-4472, SQLSTATE=null
最佳答案
第一个错误是“FWLSE0188E:无法连接到 DB2 数据库:无法创建 PoolableConnectionFactory ([jcc][10389][12245][3.67.27] 加载 native 库 db2jcct2 失败,java.lang.UnsatisfiedLinkError: no db2jcct2在 java.library.path 中:ERRORCODE=-4472,SQLSTATE=null) [project MyProjectName]"
在 Worklight 中配置 DB2 数据源的推荐方法是使用 JDBC 4.0 驱动程序(同一目录中的 db2jcc4.jar 及其关联的许可证 jar 文件),如 Worklight 文档中所述( here 和 here )。不涉及原生代码库的使用。
因此,我会检查 Liberty 的 server.xml 文件中的数据源定义。
关于ibm-mobilefirst - 找不到工作灯项目的 MBean,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25333005/
当我连接 JConsole 时,我看到一些 Bean 嵌套在其他 Bean 中。要访问嵌套 bean,我必须创建 mbean 服务器吗?通常我会像 spring beans 一样提供访问权限(在 be
我想注册多个相同类的 MBean。 我有 Hello 类实现了 HelloMBean 接口(interface)。 现在在 main 中我有两个 Hello 类的对象,我想注册它们 MBeanServ
我有 JBoss 的 SAR 存档,并且在 jboss-service.xml 中注册了一个 MBean。现在我想迁移到 TomEE 并使用标准 javax.management 注释 @MBean,
我有一堆标准 MBean,需要将其转换为动态 MBean(主要目的是向属性、操作和操作参数添加用户友好的描述)。我想知道是否有任何工具可以通过从现有标准 MBean 生成动态 MBean 的框架代码来
有什么区别: 标准 MBean 动态 MBean 它们各自的优缺点是什么?我们什么时候应该选择这两个组件中的任何一个来管理资源? 最佳答案 标准 mbean 具有固定的元数据,在 MBean 的生命周
我正在尝试通过 spring 注释注册 mbean。 bean 在 jconsole 中正确显示,但类中定义的属性和方法没有显示。这是怎么回事? 以下是一个 mbean 示例: @ManagedRes
我已经开始使用 MBean 来公开有关应用程序的一些信息。几乎全部的 HOWTO/教程/博客文章/在线示例都在教您如何实现 MBean 并将其注册到 MBean 服务器,但从未提及(或只是粗略地)从服
我有使用 Spring 创建的应用程序,并可以通过 jmx 访问来设置一些参数。问题是,当我通过 jconsole 访问时 - 一切正常,当从我的图形界面访问时 - 不起作用。在调试器中,我检查了是否
我使用 MBeanServerFactory.createMBeanServer 创建一个 mbean 服务器并向其注册 mbean。我可以在 jconsole 中找到 mbean 服务器,但是当我连
我正在寻找一种解决方案,以便从中央 MBean 服务器中的不同 Java VM 注册 MBean 或整个 MBean 服务器本身,该服务器也应该在单独的 VM 中运行。目标是只有一个中央 MBean
我试图理解为什么 MBean 在 Java 中如此重要,但我不记得任何其他语言有这样的范例或模式。 那么为什么存在 MBean,它们试图解决什么问题,以及其他语言是如何解决该问题的? (我更喜欢与 P
我有一些 JMX Beans 在我的应用程序中公开性能信息。我想要一些工具来在图表中绘制 MBean 的属性以进行监控(a la Windows Perf Mon)。我喜欢 JConsole 和 Vi
看来我的类是内部类这一事实导致了这个问题,这是我的预感 - 但基本上它是通常的模式: public class UserProvisionerProfiler implements UserProvi
我使用 jconsole 在 tomcat 容器中执行 mbean 的方法。当 Bean 的数量超过 100 时,似乎很难找到 Bean - 特别是当 Bean 位于层次结构较深的位置时。是否存在其他
在我的weblogic服务器中部署了ehcache,我需要通过java编程从这个程序中获取ehcahe mbean,通过JMX我无法连接。我怎样才能获得那些自定义mbean? 我尝试通过 weblog
我想通过java程序访问MemoryPool Mbeans,以便检索一段时间内的Eden Space、Perm Gen space、CodeCahe、Survior Space统计信息。这个怎么做?我
我创建了一个javaee应用程序,除其他外,它必须使用朴素贝叶斯执行情感分析。为了使情感算法发挥作用,我们必须首先对其进行训练,因此我想创建一个对象,在服务器启动时处理训练,以避免一遍又一遍地训练。我
我正在为一个 spring-boot 应用程序编写集成测试,我正在使用一个基本测试类来处理常见方法和所有其他常见的东西。像这样的东西: @ActiveProfiles("test") @RunWith
基本上,我遵循标准的基本 JMX 教程并使用两种方法注册 MXBean。 public interface QueueSamplerMXBean { public QueueSample ge
我在 Java 1.6 中使用平台 MBean 服务器,在 OSGi 容器中运行。 主要将 MBean 用于统计计数器和事件。它们的实现在一个包中,但它们在其他几个包中实例化。每个 MBean 都
我是一名优秀的程序员,十分优秀!