【使用Tuscany配置的时候,一直报node.start无法启动 _tuscany 】 | IT修真院·坑乎
咨询电话 : 010-59478634
切换导航
首页
我的提问
我的回答
我的点赞
消息通知
个人主页
×
提示
尚未登陆,前往官网登陆?
×
提示
尚未登陆,前往官网登陆?
使用Tuscany配置的时候,一直报node.start无法启动
我也踩过这个坑(
1
)
已统计您的踩坑,无需重复点击
回答(1)
tuscany
详细描述
在使用Tuscany配置Service和Client的时候,一直报node.start无法启动,报错信息一直指向代码中的node.start(),但是这个类已经加载进去了,Spring的版本也已经降为3.0.5版本,别人使用3.0.5版本可以一次性跑通,但是我这边也尝试过将mybatis的版本和其他版本降低了,还是报node.start()没法正常启动,其他代码沿用RMI的逻辑,排除代码出的问题,应该是hi配置文件的问题,但是实在看不出来是哪里的问题,别人使用的spring版本都是3.0.5,很多人都是一次性跑通,但是我这样的却一直卡在这。报错信息如下,pom文件和启动类我都贴到源码上。
错误截图
在使用Tuscany配置Service和Client的时候,一直报node.start无法启动,报错信息一直指向代码中的node.start(),但是这个类已经加载进去了,Spring的版本也已经降为3.0.5版本,别人使用3.0.5版本可以一次性跑通,但是我这边也尝试过将mybatis的版本和其他版本降低了,还是报node.start()没法正常启动,其他代码沿用RMI的逻辑,排除代码出的问题,应该是hi配置文件的问题,但是实在看不出来是哪里的问题,别人使用的spring版本都是3.0.5,很多人都是一次性跑通,但是我这样的却一直卡在这。报错信息如下,pom文件和启动类我都贴到源码上。
源码
4.0.0
zwp
task0801
1.0-SNAPSHOT
jar
UTF-8
1.7
1.7
1.7.7
1.2.17
3.0.5.RELEASE
3.4.1
UTF-8
UTF-8
org.springframework
spring-core
${spring.version}
org.springframework
spring-beans
${spring.version}
org.springframework
spring-context
${spring.version}
org.springframework
spring-context-support
${spring.version}
org.springframework
spring-jdbc
${spring.version}
org.springframework
spring-tx
${spring.version}
org.springframework
spring-web
${spring.version}
org.springframework
spring-webmvc
${spring.version}
org.springframework
spring-test
${spring.version}
javax.servlet
javax.servlet-api
3.0.1
javax.servlet.jsp
jsp-api
2.2
javax.servlet
jstl
1.2
taglibs
standard
1.1.2
com.fasterxml.jackson.core
jackson-databind
2.9.4
mysql
mysql-connector-java
5.1.38
com.mchange
c3p0
0.9.5.2
org.mybatis
mybatis
${mybatis.version}
org.mybatis
mybatis-spring
1.3.0
log4j
log4j
${log4j.version}
com.alibaba
fastjson
1.1.41
org.slf4j
slf4j-api
${slf4j.version}
org.slf4j
slf4j-log4j12
${slf4j.version}
org.codehaus.jackson
jackson-mapper-asl
1.9.13
net.sf.json-lib
json-lib
2.4
jdk15
jstl
jstl
1.2
javax.servlet
servlet-api
2.5
aopalliance
aopalliance
1.0
org.aspectj
aspectjweaver
1.8.13
org.springframework
spring-aop
${spring.version}
org.springframework
spring-aspects
${spring.version}
cglib
cglib
3.0
com.googlecode.xmemcached
xmemcached
2.4.0
slf4j-api
org.slf4j
junit
junit
4.12
org.apache.tuscany.sca
tuscany-sca-api
2.0.1
org.apache.tuscany.sca
tuscany-base-runtime
2.0.1
cglib
cglib
org.apache.tuscany.sca.aggregation
tuscany-binding-rmi-runtime-aggregation
2.0.1
org.apache.tuscany.sca.aggregation
tuscany-binding-ws-runtime-axis2-aggregation
2.0.1
org.apache.tuscany.sca
tuscany-implementation-spring-runtime
2.0.1
org.apache.tuscany.sca
tuscany-assembly-xml
2.0.1
org.apache.tuscany.sca
tuscany-binding-rmi-runtime
2.0.1
runtime
project-8090
org.apache.maven.plugins
maven-shade-plugin
2.4.1
package
shade
com.client.TestRun
META-INF/spring.handlers
META-INF/spring.schemas
------------------------------------------------------------------我是分隔符------------------------------------------------------------------------- //启动类 package rmi; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.tuscany.sca.node.Node; import org.apache.tuscany.sca.node.NodeFactory; import org.springframework.beans.factory.annotation.Autowired; import service.PaperService; public class RmiServices { private static final Log LOGGER = LogFactory.getLog(RmiServices.class); @Autowired PaperService paperService ; public static void main(String[] args) { // TODO Auto-generated method stub Node node = NodeFactory.newInstance().createNode("Calculator.composite"); node.start(); System.out.println("tuscany service2启动"); } }
九月 21, 2018 9:52:13 上午 org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl [] (StartException) 严重: Exception during start processing java.lang.NoClassDefFoundError: org/objectweb/asm/util/TraceClassVisitor at net.sf.cglib.core.DebuggingClassWriter.toByteArray(DebuggingClassWriter.java:73) at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:26) at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216) at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:144) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:116) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) [INFO ] 2018-09-21 09:52:13,169 method:org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1002) Closing org.apache.tuscany.sca.implementation.spring.context.SCAGenericApplicationContext@2807bdeb: startup date [Fri Sep 21 09:52:11 CST 2018]; parent: file:/C:/javaTask/task9/task0901-service2/target/classes/spring/spring-dao.xml at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) at net.sf.cglib.proxy.Enhancer.
(Enhancer.java:69) at org.apache.tuscany.sca.binding.rmi.provider.RMIServiceBindingProvider.createRmiService(RMIServiceBindingProvider.java:108) at org.apache.tuscany.sca.binding.rmi.provider.RMIServiceBindingProvider.start(RMIServiceBindingProvider.java:76) at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl$2.run(CompositeActivatorImpl.java:566) at java.security.AccessController.doPrivileged(Native Method) at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.startEndpoint(CompositeActivatorImpl.java:564) at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.start(CompositeActivatorImpl.java:422) at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.start(CompositeActivatorImpl.java:345) at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:149) at rmi.RmiServices.main(RmiServices.java:19) Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.util.TraceClassVisitor at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 17 more [INFO ] 2018-09-21 09:52:13,172 method:org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:422) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4d722ac9: defining beans [PaperService,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,paperServiceImpl,dataSource,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManager,paperDao]; parent: org.apache.tuscany.sca.implementation.spring.context.SCAParentApplicationContext@53f0a4cb Exception in thread "main" java.lang.IllegalStateException: java.lang.NoClassDefFoundError: org/objectweb/asm/util/TraceClassVisitor at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:178) at rmi.RmiServices.main(RmiServices.java:19) Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/util/TraceClassVisitor at net.sf.cglib.core.DebuggingClassWriter.toByteArray(DebuggingClassWriter.java:73) at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:26) at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216) at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:144) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:116) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) at net.sf.cglib.proxy.Enhancer.
(Enhancer.java:69) at org.apache.tuscany.sca.binding.rmi.provider.RMIServiceBindingProvider.createRmiService(RMIServiceBindingProvider.java:108) at org.apache.tuscany.sca.binding.rmi.provider.RMIServiceBindingProvider.start(RMIServiceBindingProvider.java:76) at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl$2.run(CompositeActivatorImpl.java:566) at java.security.AccessController.doPrivileged(Native Method) at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.startEndpoint(CompositeActivatorImpl.java:564) at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.start(CompositeActivatorImpl.java:422) at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.start(CompositeActivatorImpl.java:345) at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:149) ... 1 more Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.util.TraceClassVisitor at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 17 more Process finished with exit code 1
编辑于2024-11-19
时间排序
热门排序
[深圳|结业弟子]JAVA-杨萧
0
后面查了国外一个贴吧,说是C标签的版本不对应,之前是3.0的,跟Tuscany的里面包含的版本不一致,所以jar包冲突,然后将版本降为2.2即可
查看全部>
编辑于2018-09-21
首页
1
末页
去第
页
确定
Copyright ©2015 北京葡萄藤信息技术有限公司 All Rights Reserved | 京ICP备15035574号-1
复制链接
新浪微博
微信扫一扫
2733
0
10
使用Tuscany配置的时候,一直报node.start无法启动
1
1