justinscript / travel.b2b Goto Github PK
View Code? Open in Web Editor NEWB2B在线旅游
B2B在线旅游
希望能提交最新代码
邮箱[email protected]
麻烦了,谢谢
Hi, in travel.b2b, duplicate classes with the same fully-qualified name org.apache.commons.logging.LogFactory.getFactory are included in two different libraries, i.e., org.slf4j:jcl-over-slf4j:1.7.5 and commons-logging:commons-logging:1.1.3.
According to "first declaration wins" class loading strategy, only this class in commons-logging:commons-logging:1.1.3 can be loaded, and that in org.slf4j:jcl-over-slf4j:1.7.5 will be shadowed.
By further analyzing, your project expects to invoke method org.apache.commons.logging.LogFactory.getFactory in org.slf4j:jcl-over-slf4j:1.7.5. As it has been shadowed, so that this method defined in commons-logging:commons-logging:1.1.3 are actually forced to be referenced via the following invocation path:
<com.zb.app.common.exception.ServiceExceptionCatcher: <clinit>()V> /root/sensor/unzip/travel.b2b-master/target/classes
<org.apache.commons.logging.LogFactory: getLog(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;> /root/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
<org.apache.commons.logging.LogFactory: getFactory()Lorg/apache/commons/logging/LogFactory;>
Workaround solution:
An easy way to workaround the problem is reversing the declaration order of these two libraries (i.e., reverse the declaration order of httpclient and maven-resolver-transport-http) in pom file.
Then, according to "first declaration wins" class loading strategy, class org.apache.commons.logging.LogFactory.getFactory in org.slf4j:jcl-over-slf4j:1.7.5 can be loaded (the version that travel.b2b expects to reference by static analysis).
This fix will not affect other libraries or class, except the above duplicate class.
[INFO] com.zb.web:zb.web.pet:war:1.0.0
[INFO] +- junit:junit:jar:4.8.2:test
[INFO] +- org.springframework:spring-core:jar:4.0.3.RELEASE:compile
[INFO] | - commons-logging:commons-logging:jar:1.1.3:compile
[INFO] +- org.springframework:spring-expression:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-aop:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-context:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-context-support:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-tx:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-jdbc:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-orm:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-oxm:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-web:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-webmvc:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-websocket:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-messaging:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-test:jar:4.0.3.RELEASE:compile
[INFO] +- org.apache.velocity:velocity:jar:1.7:compile
[INFO] +- org.apache.velocity:velocity-tools:jar:2.0:compile
[INFO] | +- commons-digester:commons-digester:jar:1.8:compile
[INFO] | +- commons-chain:commons-chain:jar:1.1:compile
[INFO] | +- commons-validator:commons-validator:jar:1.3.1:compile
[INFO] | +- dom4j:dom4j:jar:1.1:compile
[INFO] | +- oro:oro:jar:2.0.8:compile
[INFO] | +- sslext:sslext:jar:1.2-0:compile
[INFO] | +- org.apache.struts:struts-core:jar:1.3.8:compile
[INFO] | | - antlr:antlr:jar:2.7.2:compile
[INFO] | +- org.apache.struts:struts-taglib:jar:1.3.8:compile
[INFO] | - org.apache.struts:struts-tiles:jar:1.3.8:compile
[INFO] +- cglib:cglib-nodep:jar:2.2.2:compile
[INFO] +- org.mybatis:mybatis-spring:jar:1.2.1:compile
[INFO] +- org.mybatis:mybatis:jar:3.2.3:compile
[INFO] +- log4j:log4j:jar:1.2.14:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.5:compile
[INFO] +- org.slf4j:jcl-over-slf4j:jar:1.7.5:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.5:compile
[INFO] +- org.lazyluke:log4jdbc-remix:jar:0.2.7:compile
[INFO] +- commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO] +- commons-pool:commons-pool:jar:1.4:compile
[INFO] +- commons-logging:commons-logging-api:jar:1.1:compile
[INFO] +- commons-beanutils:commons-beanutils:jar:1.8.3:compile
[INFO] +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] +- commons-lang:commons-lang:jar:2.6:compile
[INFO] +- commons-fileupload:commons-fileupload:jar:1.3:compile
[INFO] +- commons-io:commons-io:jar:2.4:compile
[INFO] +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] | - commons-codec:commons-codec:jar:1.2:compile
[INFO] +- org.aspectj:aspectjweaver:jar:1.7.0:compile
[INFO] +- aopalliance:aopalliance:jar:1.0:compile
[INFO] +- net.sf.ezmorph:ezmorph:jar:1.0.6:compile
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.3.0:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.3.0:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.3.0:compile
[INFO] +- org.apache.poi:poi-scratchpad:jar:3.9:compile
[INFO] | - org.apache.poi:poi:jar:3.9:compile
[INFO] +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] +- org.hibernate:hibernate-validator:jar:5.1.1.Final:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.1.3.GA:compile
[INFO] | - com.fasterxml:classmate:jar:1.0.0:compile
[INFO] +- javax.servlet:javax.servlet-api:jar:3.1.0:provided
[INFO] +- javax.servlet.jsp:jsp-api:jar:2.2:provided
[INFO] +- javax.servlet:jstl:jar:1.2:provided
[INFO] +- javax.websocket:javax.websocket-api:jar:1.0:provided
[INFO] +- com.google.code.gson:gson:jar:2.2.4:compile
[INFO] +- com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] +- com.google.guava:guava:jar:18.0:compile
[INFO] +- com.belerweb:pinyin4j:jar:2.5.0:compile
[INFO] +- org.apache.solr:solr-solrj:jar:4.4.0:compile
[INFO] | +- org.apache.zookeeper:zookeeper:jar:3.4.5:compile
[INFO] | - org.codehaus.woodstox:wstx-asl:jar:3.2.7:runtime
[INFO] +- org.apache.lucene:lucene-analyzers-common:jar:4.4.0:compile
[INFO] +- org.apache.lucene:lucene-core:jar:4.4.0:compile
[INFO] +- org.apache.httpcomponents:httpcore:jar:4.2.4:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.2.5:compile
[INFO] +- org.apache.httpcomponents:httpmime:jar:4.2.5:compile
[INFO] - org.noggit:noggit:jar:0.5:compile
Thank you very much.
Best,
Coco
Hi, in travel.b2b, duplicate classes with the same fully-qualified name org.apache.commons.logging.LogFactory.getFactory are included in two different libraries, i.e., org.slf4j:jcl-over-slf4j:1.7.5 and commons-logging:commons-logging:1.1.3.
According to "first declaration wins" class loading strategy, only this class in commons-logging:commons-logging:1.1.3 can be loaded, and that in org.slf4j:jcl-over-slf4j:1.7.5 will be shadowed.
By further analyzing, your project expects to invoke method org.apache.commons.logging.LogFactory.getFactory in org.slf4j:jcl-over-slf4j:1.7.5. As it has been shadowed, so that this method defined in commons-logging:commons-logging:1.1.3 are actually forced to be referenced via the following invocation path:
<com.zb.app.common.exception.ServiceExceptionCatcher: <clinit>()V> /root/sensor/unzip/travel.b2b-master/target/classes
<org.apache.commons.logging.LogFactory: getLog(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;> /root/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
<org.apache.commons.logging.LogFactory: getFactory()Lorg/apache/commons/logging/LogFactory;>
Workaround solution:
An easy way to workaround the problem is reversing the declaration order of these two libraries (i.e., reverse the declaration order of httpclient and maven-resolver-transport-http) in pom file.
Then, according to "first declaration wins" class loading strategy, class org.apache.commons.logging.LogFactory.getFactory in org.slf4j:jcl-over-slf4j:1.7.5 can be loaded (the version that travel.b2b expects to reference by static analysis).
This fix will not affect other libraries or class, except the above duplicate class.
[INFO] com.zb.web:zb.web.pet:war:1.0.0
[INFO] +- junit:junit:jar:4.8.2:test
[INFO] +- org.springframework:spring-core:jar:4.0.3.RELEASE:compile
[INFO] | - commons-logging:commons-logging:jar:1.1.3:compile
[INFO] +- org.springframework:spring-expression:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-aop:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-context:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-context-support:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-tx:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-jdbc:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-orm:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-oxm:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-web:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-webmvc:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-websocket:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-messaging:jar:4.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-test:jar:4.0.3.RELEASE:compile
[INFO] +- org.apache.velocity:velocity:jar:1.7:compile
[INFO] +- org.apache.velocity:velocity-tools:jar:2.0:compile
[INFO] | +- commons-digester:commons-digester:jar:1.8:compile
[INFO] | +- commons-chain:commons-chain:jar:1.1:compile
[INFO] | +- commons-validator:commons-validator:jar:1.3.1:compile
[INFO] | +- dom4j:dom4j:jar:1.1:compile
[INFO] | +- oro:oro:jar:2.0.8:compile
[INFO] | +- sslext:sslext:jar:1.2-0:compile
[INFO] | +- org.apache.struts:struts-core:jar:1.3.8:compile
[INFO] | | - antlr:antlr:jar:2.7.2:compile
[INFO] | +- org.apache.struts:struts-taglib:jar:1.3.8:compile
[INFO] | - org.apache.struts:struts-tiles:jar:1.3.8:compile
[INFO] +- cglib:cglib-nodep:jar:2.2.2:compile
[INFO] +- org.mybatis:mybatis-spring:jar:1.2.1:compile
[INFO] +- org.mybatis:mybatis:jar:3.2.3:compile
[INFO] +- log4j:log4j:jar:1.2.14:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.5:compile
[INFO] +- org.slf4j:jcl-over-slf4j:jar:1.7.5:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.5:compile
[INFO] +- org.lazyluke:log4jdbc-remix:jar:0.2.7:compile
[INFO] +- commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO] +- commons-pool:commons-pool:jar:1.4:compile
[INFO] +- commons-logging:commons-logging-api:jar:1.1:compile
[INFO] +- commons-beanutils:commons-beanutils:jar:1.8.3:compile
[INFO] +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] +- commons-lang:commons-lang:jar:2.6:compile
[INFO] +- commons-fileupload:commons-fileupload:jar:1.3:compile
[INFO] +- commons-io:commons-io:jar:2.4:compile
[INFO] +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] | - commons-codec:commons-codec:jar:1.2:compile
[INFO] +- org.aspectj:aspectjweaver:jar:1.7.0:compile
[INFO] +- aopalliance:aopalliance:jar:1.0:compile
[INFO] +- net.sf.ezmorph:ezmorph:jar:1.0.6:compile
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.3.0:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.3.0:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.3.0:compile
[INFO] +- org.apache.poi:poi-scratchpad:jar:3.9:compile
[INFO] | - org.apache.poi:poi:jar:3.9:compile
[INFO] +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] +- org.hibernate:hibernate-validator:jar:5.1.1.Final:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.1.3.GA:compile
[INFO] | - com.fasterxml:classmate:jar:1.0.0:compile
[INFO] +- javax.servlet:javax.servlet-api:jar:3.1.0:provided
[INFO] +- javax.servlet.jsp:jsp-api:jar:2.2:provided
[INFO] +- javax.servlet:jstl:jar:1.2:provided
[INFO] +- javax.websocket:javax.websocket-api:jar:1.0:provided
[INFO] +- com.google.code.gson:gson:jar:2.2.4:compile
[INFO] +- com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] +- com.google.guava:guava:jar:18.0:compile
[INFO] +- com.belerweb:pinyin4j:jar:2.5.0:compile
[INFO] +- org.apache.solr:solr-solrj:jar:4.4.0:compile
[INFO] | +- org.apache.zookeeper:zookeeper:jar:3.4.5:compile
[INFO] | - org.codehaus.woodstox:wstx-asl:jar:3.2.7:runtime
[INFO] +- org.apache.lucene:lucene-analyzers-common:jar:4.4.0:compile
[INFO] +- org.apache.lucene:lucene-core:jar:4.4.0:compile
[INFO] +- org.apache.httpcomponents:httpcore:jar:4.2.4:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.2.5:compile
[INFO] +- org.apache.httpcomponents:httpmime:jar:4.2.5:compile
[INFO] - org.noggit:noggit:jar:0.5:compile
Thank you very much.
Best,
Coco
你好,可以提供最新代码吗?
期待更新
邮箱:[email protected];
还有系统有兼容MySQL的数据库表结构吗
比如1秒有10万的下订单请求?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.