CAS (10) —— JBoss EAP 6.4下部署CAS时出现错误exception.message=Error decoding flow execution的解决办法


jboss版本: jboss-eap-6.4-CVE-2015-7501

jdk版本: 1.7.0_79

cas版本: cas 4.1.3

参考来源:

Nabble: exception.message=Error+decoding+flow+execution

Nabble: Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.Slf4jLogger from [Module "deployment.cas.war:main" from Service Module Loader]

JBoss7.1.1版本和CAS3的集成(未完)

CAS 4.1.1 - JDBC authentication, failed to deploy

Securing JBoss EAP 6 - Implementing SSL

JBoss eap 6.4 mutual (two way) ssl configuration

Tomcat (1) —— Mac下配置Tomcat Https/SSL

问题描述

在CAS部署到jboss后台启动时会出现下面错误1,如果忽略此问题,在登录成功并且尝试重定会应用的页面时,会在重定向url后面加上&exception.message=Error+decoding+flow+execution字样,下面所描述的错误2。

1. Slf4jLogger

  1. 15:28:30,587 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/cas].[cas]] (http-/0.0.0.0:8443-3) JBWEB000236:
  2. Servlet.service() for servlet cas threw exception: java.lang.ClassNotFoundException:
  3. org.slf4j.impl.Slf4jLogger from [Module "deployment.cas.war:main" from Service Module Loader]
  4. at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.6.Final-redhat-1]
  5. at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.6.Final-redhat-1]
  6. at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.6.Final-redhat-1]
  7. at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.6.Final-redhat-1]
  8. at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.6.Final-redhat-1]
  9. at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_79]
  10. at java.lang.Class.forName(Class.java:274) [rt.jar:1.7.0_79]
  11. at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:625) [rt.jar:1.7.0_79]
  12. at org.hibernate.internal.util.SerializationHelper$CustomObjectInputStream.resolveClass(SerializationHelper.java:369) [hibernate-core-4.3.10.Final.jar:4.3.10.Final]
  13. at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1612) [rt.jar:1.7.0_79]
  14. at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517) [rt.jar:1.7.0_79]
  15. at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) [rt.jar:1.7.0_79]
  16. at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) [rt.jar:1.7.0_79]

2. exception.message=

https://proxy.sso.hoau.com/cas/login?service=https%3A%2F%2Fapp1.hoau.com%3A8413%2Fcas1&exception.message=Error+decoding+flow+execution

解决方案

在应用中去掉jboss容器自带的slf4j的依赖

1. 在路径<your_cas_server_webapp>/../webapp/WEB-INF/下

新建文件"jboss-deployment-structure.xml"

2. 文件配置如下

  1. <jboss-deployment-structure>
  2. <deployment>
  3. <exclusions>
  4. <module name="org.slf4j" />
  5. <module name="org.slf4j.impl" />
  6. <module name="org.slf4j.jcl-over-slf4j" />
  7. <module name="org.slf4j.ext" />
  8. </exclusions>
  9. </deployment>
  10. </jboss-deployment-structure>

3. 重新发布

扩展

依照以上方法就可以解决本文主要关注的两个问题,但是这种方案会使我们引入一个新的问题。在jboss启动的时候服务器仍然会报slf4j的错误SLF4J: Class path contains multiple SLF4J bindings.

  1. 14:09:52,144 ERROR [stderr] (ServerService Thread Pool -- 158)
  2. SLF4J: Class path contains multiple SLF4J bindings.
  3. 14:09:52,145 ERROR [stderr] (ServerService Thread Pool -- 158)
  4. SLF4J: Found binding in [vfs:/content/cas.war/WEB-INF/lib/cas-server-core-4.1.3.jar/org/slf4j/impl/StaticLoggerBinder.class]
  5. 14:09:52,145 ERROR [stderr] (ServerService Thread Pool -- 158)
  6. SLF4J: Found binding in [vfs:/content/cas.war/WEB-INF/lib/log4j-slf4j-impl-2.3.jar/org/slf4j/impl/StaticLoggerBinder.class]
  7. 14:09:52,145 ERROR [stderr] (ServerService Thread Pool -- 158)
  8. SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
  9. 14:09:52,221 ERROR [stderr] (ServerService Thread Pool -- 158)
  10. SLF4J: ILoggerFactory to be used for logging is: org.apache.logging.slf4j.Log4jLoggerFactory
  11. 14:09:52,221 ERROR [stderr] (ServerService Thread Pool -- 158)
  12. SLF4J: Actual binding is of type [org.slf4j.impl.CasLoggerFactory]
  13. 14:09:52,221 ERROR [stderr] (ServerService Thread Pool -- 158)
  14. SLF4J: The following set of substitute loggers may have been accessed
  15. 14:09:52,221 ERROR [stderr] (ServerService Thread Pool -- 158)
  16. SLF4J: during the initialization phase. Logging calls during this
  17. 14:09:52,221 ERROR [stderr] (ServerService Thread Pool -- 158)
  18. SLF4J: phase were not honored. However, subsequent logging calls to these
  19. 14:09:52,221 ERROR [stderr] (ServerService Thread Pool -- 158)
  20. SLF4J: loggers will work as normally expected.
  21. 14:09:52,222 ERROR [stderr] (ServerService Thread Pool -- 158)
  22. SLF4J: See also http://www.slf4j.org/codes.html#substituteLogger
  23. 14:09:52,627 ERROR [stderr] (ServerService Thread Pool -- 158)
  24. SLF4J: org.reflections.Reflections

尝试解决此问题

首先我们在<your_cas_server_webapp>的根目录下,从命令行运行,查看依赖树

  1. /cas-server-webapp$mvn dependency:tree

输出结果:

  1. [INFO] Scanning for projects...
  2. [INFO]
  3. [INFO] ------------------------------------------------------------------------
  4. [INFO] Building Apereo CAS Web Application 4.1.3
  5. [INFO] ------------------------------------------------------------------------
  6. [INFO]
  7. [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ cas-server-webapp ---
  8. [INFO] org.jasig.cas:cas-server-webapp:war:4.1.3
  9. [INFO] +- org.jasig.cas:cas-server-webapp-support:jar:4.1.3:compile
  10. [INFO] | +- org.jasig.inspektr:inspektr-support-spring:jar:1.3.GA:runtime
  11. [INFO] | | +- org.jasig.inspektr:inspektr-audit:jar:1.3.GA:compile
  12. [INFO] | | +- org.jasig.inspektr:inspektr-error:jar:1.3.GA:runtime
  13. [INFO] | | +- org.jasig.inspektr:inspektr-common:jar:1.3.GA:compile
  14. [INFO] | | +- org.springframework:spring-web:jar:4.1.8.RELEASE:compile
  15. [INFO] | | +- org.springframework:spring-webmvc:jar:4.1.8.RELEASE:compile
  16. [INFO] | | \- org.springframework:spring-tx:jar:4.1.8.RELEASE:compile
  17. [INFO] | +- org.springframework.security:spring-security-core:jar:4.0.1.RELEASE:compile
  18. [INFO] | | +- aopalliance:aopalliance:jar:1.0:compile
  19. [INFO] | | \- org.springframework:spring-context:jar:4.1.8.RELEASE:compile
  20. [INFO] | +- org.springframework.security:spring-security-web:jar:4.0.1.RELEASE:compile
  21. [INFO] | +- org.springframework.security:spring-security-config:jar:4.0.1.RELEASE:runtime
  22. [INFO] | +- org.springframework:spring-aop:jar:4.1.8.RELEASE:compile
  23. [INFO] | +- org.jasig.cas:cas-server-core:jar:4.1.3:compile
  24. [INFO] | | +- org.jasig.cas:cas-server-core-api:jar:4.1.3:compile
  25. [INFO] | | +- org.jasig.service.persondir:person-directory-impl:jar:1.7.0:compile
  26. [INFO] | | | +- org.ldaptive:ldaptive:jar:1.0.7:compile
  27. [INFO] | | | +- com.sun.xml.bind:jaxb-impl:jar:2.2.7:compile
  28. [INFO] | | | | +- com.sun.xml.bind:jaxb-core:jar:2.2.7:compile
  29. [INFO] | | | | | +- javax.xml.bind:jaxb-api:jar:2.2.7:compile
  30. [INFO] | | | | | \- com.sun.istack:istack-commons-runtime:jar:2.16:compile
  31. [INFO] | | | | \- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.12:compile
  32. [INFO] | | | | \- javax.xml.bind:jsr173_api:jar:1.0:compile
  33. [INFO] | | | \- org.jasig.service.persondir:person-directory-api:jar:1.7.0:compile
  34. [INFO] | | +- commons-codec:commons-codec:jar:1.10:compile
  35. [INFO] | | +- org.springframework.webflow:spring-webflow:jar:2.4.1.RELEASE:compile
  36. [INFO] | | | +- opensymphony:ognl:jar:2.6.11:compile
  37. [INFO] | | | +- org.springframework.webflow:spring-binding:jar:2.4.1.RELEASE:compile
  38. [INFO] | | | \- org.springframework.webflow:spring-js:jar:2.4.1.RELEASE:compile
  39. [INFO] | | | \- org.springframework.webflow:spring-js-resources:jar:2.4.1.RELEASE:compile
  40. [INFO] | | +- commons-jexl:commons-jexl:jar:1.1:runtime
  41. [INFO] | | +- commons-io:commons-io:jar:2.4:compile
  42. [INFO] | | +- joda-time:joda-time:jar:2.8.1:compile
  43. [INFO] | | +- org.reflections:reflections:jar:0.9.10:compile
  44. [INFO] | | | +- org.javassist:javassist:jar:3.19.0-GA:compile
  45. [INFO] | | | \- com.google.code.findbugs:annotations:jar:2.0.1:compile
  46. [INFO] | | +- org.apache.httpcomponents:httpclient:jar:4.4.1:compile
  47. [INFO] | | | \- org.apache.httpcomponents:httpcore:jar:4.4.1:compile
  48. [INFO] | | +- javax.cache:cache-api:jar:1.0.0:compile
  49. [INFO] | | +- org.jsr107.ri:cache-ri-impl:jar:1.0.0:runtime
  50. [INFO] | | | \- javax.enterprise:cdi-api:jar:1.0-SP4:runtime
  51. [INFO] | | | +- org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:jar:1.0.0.Beta1:runtime
  52. [INFO] | | | +- javax.annotation:jsr250-api:jar:1.0:runtime
  53. [INFO] | | | \- javax.inject:javax.inject:jar:1:runtime
  54. [INFO] | | +- com.google.guava:guava:jar:18.0:compile
  55. [INFO] | | +- org.bitbucket.b_c:jose4j:jar:0.4.1:compile
  56. [INFO] | | \- org.apache.commons:commons-collections4:jar:4.0:compile
  57. [INFO] | +- org.jasig.cas:cas-server-support-generic:jar:4.1.3:runtime
  58. [INFO] | +- org.springframework:spring-context-support:jar:4.1.8.RELEASE:compile
  59. [INFO] | +- org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:runtime
  60. [INFO] | | +- javax.xml.stream:stax-api:jar:1.0-2:runtime
  61. [INFO] | | \- org.codehaus.woodstox:stax2-api:jar:3.1.4:runtime
  62. [INFO] | +- org.quartz-scheduler:quartz:jar:2.2.1:runtime
  63. [INFO] | +- org.jasig:spring-webflow-client-repo:jar:1.0.0:runtime
  64. [INFO] | | +- org.slf4j:jcl-over-slf4j:jar:1.7.7:runtime
  65. [INFO] | | \- org.cryptacular:cryptacular:jar:1.0:runtime
  66. [INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.50:runtime
  67. [INFO] | +- com.sun.jersey:jersey-core:jar:1.19:compile
  68. [INFO] | | \- javax.ws.rs:jsr311-api:jar:1.1.1:compile
  69. [INFO] | +- com.sun.jersey:jersey-server:jar:1.19:compile
  70. [INFO] | +- com.sun.jersey:jersey-servlet:jar:1.19:compile
  71. [INFO] | +- com.sun.jersey.contribs:jersey-spring:jar:1.19:runtime
  72. [INFO] | \- org.apache.logging.log4j:log4j-web:jar:2.3:runtime
  73. [INFO] +- org.jasig.cas:cas-server-support-jdbc:jar:4.1.3:compile
  74. [INFO] | +- org.apache.commons:commons-lang3:jar:3.4:compile
  75. [INFO] | +- org.springframework:spring-jdbc:jar:4.1.8.RELEASE:compile
  76. [INFO] | +- org.springframework:spring-orm:jar:4.1.8.RELEASE:compile
  77. [INFO] | \- org.apache.shiro:shiro-core:jar:1.2.3:compile
  78. [INFO] | \- commons-beanutils:commons-beanutils:jar:1.8.3:compile
  79. [INFO] +- mysql:mysql-connector-java:jar:5.1.37:compile
  80. [INFO] +- com.mchange:c3p0:jar:0.9.5.1:compile
  81. [INFO] +- com.mchange:mchange-commons-java:jar:0.2.10:compile
  82. [INFO] +- org.hibernate:hibernate-core:jar:4.3.10.Final:compile
  83. [INFO] | +- org.jboss.logging:jboss-logging:jar:3.1.3.GA:compile
  84. [INFO] | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.0.0.Final:compile
  85. [INFO] | +- dom4j:dom4j:jar:1.6.1:compile
  86. [INFO] | | \- xml-apis:xml-apis:jar:1.4.01:compile
  87. [INFO] | +- org.hibernate.common:hibernate-commons-annotations:jar:4.0.5.Final:compile
  88. [INFO] | +- antlr:antlr:jar:2.7.7:compile
  89. [INFO] | \- org.jboss:jandex:jar:1.1.0.Final:compile
  90. [INFO] +- org.hibernate:hibernate-entitymanager:jar:4.3.10.Final:compile
  91. [INFO] | \- org.jboss.logging:jboss-logging-annotations:jar:1.2.0.Beta1:compile
  92. [INFO] +- org.hibernate:hibernate-validator:jar:5.1.3.Final:compile
  93. [INFO] | \- com.fasterxml:classmate:jar:1.0.0:compile
  94. [INFO] +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
  95. [INFO] +- org.springframework:spring-expression:jar:4.1.8.RELEASE:runtime
  96. [INFO] | \- org.springframework:spring-core:jar:4.1.8.RELEASE:compile
  97. [INFO] +- javax.servlet:jstl:jar:1.2:runtime
  98. [INFO] +- taglibs:standard:jar:1.1.2:runtime
  99. [INFO] +- org.jasig.cas:cas-server-security-filter:jar:2.0.4:runtime
  100. [INFO] +- com.ryantenney.metrics:metrics-spring:jar:3.1.0:runtime
  101. [INFO] | +- io.dropwizard.metrics:metrics-core:jar:3.1.2:compile
  102. [INFO] | +- io.dropwizard.metrics:metrics-healthchecks:jar:3.1.2:runtime
  103. [INFO] | +- io.dropwizard.metrics:metrics-annotation:jar:3.1.2:compile
  104. [INFO] | \- org.springframework:spring-beans:jar:4.1.8.RELEASE:compile
  105. [INFO] +- io.dropwizard.metrics:metrics-jvm:jar:3.1.2:runtime
  106. [INFO] +- io.dropwizard.metrics:metrics-servlets:jar:3.1.2:runtime
  107. [INFO] | +- io.dropwizard.metrics:metrics-json:jar:3.1.2:runtime
  108. [INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.5.3:compile
  109. [INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.5.0:compile
  110. [INFO] | \- com.fasterxml.jackson.core:jackson-core:jar:2.5.3:compile
  111. [INFO] +- junit:junit:jar:4.12:test
  112. [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
  113. [INFO] +- org.mockito:mockito-core:jar:1.10.19:test
  114. [INFO] | \- org.objenesis:objenesis:jar:2.1:test
  115. [INFO] +- org.springframework:spring-test:jar:4.1.8.RELEASE:test
  116. [INFO] +- javax.servlet:javax.servlet-api:jar:3.0.1:provided
  117. [INFO] +- org.aspectj:aspectjrt:jar:1.8.6:compile
  118. [INFO] +- org.aspectj:aspectjweaver:jar:1.8.6:compile
  119. [INFO] +- javax.validation:validation-api:jar:1.1.0.Final:compile
  120. [INFO] +- javax.el:javax.el-api:jar:3.0.0:provided
  121. [INFO] +- org.glassfish.web:javax.el:jar:2.2.6:runtime
  122. [INFO] +- org.slf4j:slf4j-api:jar:1.7.12:compile
  123. [INFO] +- org.slf4j:jul-to-slf4j:jar:1.7.12:runtime
  124. [INFO] +- org.apache.logging.log4j:log4j-api:jar:2.3:runtime
  125. [INFO] +- org.apache.logging.log4j:log4j-core:jar:2.3:runtime
  126. [INFO] +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.3:runtime
  127. [INFO] +- org.apache.logging.log4j:log4j-jcl:jar:2.3:runtime
  128. [INFO] | \- commons-logging:commons-logging:jar:1.2:runtime
  129. [INFO] \- org.jasig.inspektr:inspektr-aspects:jar:1.3.GA:compile
  130. [INFO] ------------------------------------------------------------------------
  131. [INFO] BUILD SUCCESS
  132. [INFO] ------------------------------------------------------------------------
  133. [INFO] Total time: 1.934 s
  134. [INFO] Finished at: 2016-01-12T14:14:58+08:00
  135. [INFO] Final Memory: 21M/439M

经查看发现org.slf4j.impl.StaticLoggerBinder被打入了cas-server-core中,暂时不知道cas的核心开发何故为此,由于cas-server-core是核心jar,我们是否能够直接移除org.apache.logging.log4j:log4j-slf4j-impl:jar:2.3:runtime这个依赖?

  1. /*
  2. * Licensed to Apereo under one or more contributor license
  3. * agreements. See the NOTICE file distributed with this work
  4. * for additional information regarding copyright ownership.
  5. * Apereo licenses this file to you under the Apache License,
  6. * Version 2.0 (the "License"); you may not use this file
  7. * except in compliance with the License. You may obtain a
  8. * copy of the License at the following location:
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. package org.slf4j.impl;
  20. import org.slf4j.ILoggerFactory;
  21. import org.slf4j.spi.LoggerFactoryBinder;
  22. /**
  23. * The static binder for slf4j logging, which allows CAS
  24. * to select its own {@link org.slf4j.ILoggerFactory} instance at runtime.
  25. * Note that this class MUST reside in the <code>org.slf4j.impl</code>
  26. * package so it can be loaded by the runtime dynamic lookup.
  27. * @author Misagh Moayyed
  28. * @since 4.1.0
  29. */
  30. public final class StaticLoggerBinder implements LoggerFactoryBinder {
  31. /**
  32. * The unique instance of this class.
  33. */
  34. private static final StaticLoggerBinder SINGLETON = new StaticLoggerBinder();
  35. /**
  36. * The {@link ILoggerFactory} instance returned by the
  37. * {@link #getLoggerFactory} method should always be the same
  38. * object.
  39. */
  40. private final ILoggerFactory loggerFactory;
  41. /**
  42. * Instantiates a new Static logger binder.
  43. */
  44. private StaticLoggerBinder() {
  45. this.loggerFactory = new CasLoggerFactory();
  46. }
  47. /**
  48. * Return the singleton of this class.
  49. *
  50. * @return the StaticLoggerBinder singleton
  51. */
  52. public static StaticLoggerBinder getSingleton() {
  53. return SINGLETON;
  54. }
  55. public ILoggerFactory getLoggerFactory() {
  56. return this.loggerFactory;
  57. }
  58. public String getLoggerFactoryClassStr() {
  59. return CasLoggerFactory.class.getName();
  60. }
  61. }

修改pom.xml

  1. <plugin>
  2. <groupId>org.apache.maven.plugins</groupId>
  3. <artifactId>maven-war-plugin</artifactId>
  4. <configuration>
  5. <warName>cas</warName>
  6. <webResources>
  7. <resource>
  8. <directory>${basedir}/src/main/webapp/WEB-INF</directory>
  9. <filtering>true</filtering>
  10. <targetPath>WEB-INF</targetPath>
  11. <includes>
  12. <include>**/web.xml</include>
  13. </includes>
  14. </resource>
  15. </webResources>
  16. <!--Richard Customized-->
  17. <!--<packagingExcludes>-->
  18. <!--WEB-INF/lib/log4j-slf4j-impl-*.jar-->
  19. <!--</packagingExcludes>-->
  20. </configuration>
  21. </plugin>

如果去掉org.apache.logging.log4j:log4j-slf4j-impl:jar:2.3:runtime这个依赖在部署时会出错,可是目前的实现方式是显示的在slf4j中override掉原来的实现,实例化CAS自己的LogFactory

  1. // Line:
  2. private StaticLoggerBinder() {
  3. this.loggerFactory = new CasLoggerFactory();
  4. }

此问题待解

目前状态

网上很多文章介绍关于jaxb和jersey在jboss下使用方法,但是此处的警告消息warn并不会消除,这是当前6.4版本的一个bug,请参考JBEAP-69

结束

CAS (10) —— JBoss EAP 6.4下部署CAS时出现错误exception.message=Error decoding flow execution的解决办法的更多相关文章

  1. kali下更新软件时,总是报错,说下列签名无效 解决办法

    解决办法就是重新获取下签名key wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add

  2. win10下Import caffe时出现“ImportError: No module named google.protobuf.internal”的解决办法

    解决方法:只要出现和protobuf相关的错误,只要在cmd中输入pip install protobuf,然后等待安装完成即可. ps:这时,可能会出现"pip 不是内部命令"之 ...

  3. CAS (8) —— Mac下配置CAS到JBoss EAP 6.4(6.x)的Standalone模式(服务端)

    CAS (8) -- Mac下配置CAS到JBoss EAP 6.4(6.x)的Standalone模式(服务端) jboss版本: jboss-eap-6.4-CVE-2015-7501 jdk版本 ...

  4. 单点登录CAS使用记(二):部署CAS服务器以及客户端

    CAS-Server下载地址:https://www.apereo.org/projects/cas/download-cas CAS-Client下载地址:http://developer.jasi ...

  5. 部署网站时的错误“one of its dependencies.试图加载格式不正确的程序。”解决方案。

    Sever Error in '/' Application.Could not load file or assembly 'SresBase' or one of its dependencies ...

  6. 在debug模式下运行不报错,换到release模式下报找不到某某库或文件的错。。解决办法

    我遇到的问题是:把edit secheme调到debug模式运行没有问题,然后调到release模式的时候报目录下没有libTuyoo.a 解决办法 把断开真机设备,用IOS device下relea ...

  7. 部署Web API后Delete请求总是报 405(Method Not Allowed)解决办法

    WebDAV                   安装IIS的时候如果选择了WebDAV(Web Distribution Authorization Versioning) Publish,则所有的 ...

  8. [CentOS]CentOS下编译CPP文件时报错[undefined reference to `__gxx_personality_v0' collect2: ld]的解决办法

    在CentOS环境下编译CPP时报出 undefined reference to `__gxx_personality_v0' collect2: ld 以上错误,调查了一下,加上参数[-lstdc ...

  9. windows下运行命令行mysql,提示mysql不是内部命令,解决办法

    1. 打开CMD命令行,连接本地mysql数据库:mysql -u root -p 提示‘mysql’不是本地命令,解决办法如下: 找到你安装的mysql的目录,打开当前目录下的bin文件夹,你可以看 ...

随机推荐

  1. [转]一台电脑上的git同时使用两个github账户

    需求: 公司有github账号,自己有github账号,想在git上同时使用,两者互不干扰. 思路: 管理两个SHH key. 解决方案: 一.生成两个SSH key 为了举例方便,这里使用“one” ...

  2. 最全PyCharm教程

    最全PyCharm教程--for python PyCharm简介: PyCharm是由JetBrains打造的一款Python IDE,VS2010的重构插件Resharper就是出自JetBrai ...

  3. linux杀掉tomcat应用进程。停止tomcat应用

    ps -ef |grep tomcat |grep -v grep |awk '{print $2}' |xrags kill -9

  4. activiti并行和串行区别

    多实例还有并行.串行区分.以下解释一下什么是并行与串行 并行代表同时进行,如把任务分给5个人来处理,这5个人同时会收到任务,并且可以同时处理,不受各自的影响. 串行代表工作或任务由一个人完成后,再由另 ...

  5. ISO-OSI的七层协议经典架构

    OSI(Open System interconnection)开放系统互连参考模型 ISO(International Standards Organization)国际标准化组织 第一层:物理层 ...

  6. 查看Android内存的8中方法

    方法一: 通过手机上Running services的Activity查看,可以通过Setting->Applications->Running services进. 关于Running ...

  7. hdu 1874 畅通工程续(求最短距离,dijkstra,floyd)

    题目:http://acm.hdu.edu.cn/showproblem.php?pid=1874 /************************************************* ...

  8. Redis source code analysis

    http://zhangtielei.com/posts/blog-redis-dict.html http://zhangtielei.com/assets/photos_redis/redis_d ...

  9. MapReduce运行原理

    MapReduce是一种编程模型,用于大规模数据集(大于1TB)的并行运算.MapReduce采用”分而治之”的思想,把对大规模数据集的操作,分发给一个主节点管理下的各个分节点共同完成,然后通过整合各 ...

  10. C++11 构造函数的改动

    一.继承构造函数 继承构造函数的引入原因:如果基类的构造函数很多,那么子类的构造函数想要实现同样多的构造接口,必须一一调用基类的构造函数,有点麻烦. 于是乎:C++11引入继承构造函数,子类可以通过使 ...