You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/05/02 11:42:32 UTC

[GitHub] hank-whu opened a new issue #683: 不支持java9?

hank-whu opened a new issue #683: 不支持java9?
URL: https://github.com/apache/incubator-servicecomb-java-chassis/issues/683
 
 
   ```java
   2018-05-02 19:40:36,995 [WARN] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.servicecomb.core.CseApplicationListener#0' defined in URL [jar:file:/C:/Users/mc/.m2/repository/org/apache/servicecomb/java-chassis-core/1.0.0-m1/java-chassis-core-1.0.0-m1.jar!/META-INF/spring/cse.bean.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/ws/Holder org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
   Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.servicecomb.core.CseApplicationListener#0' defined in URL [jar:file:/C:/Users/mc/.m2/repository/org/apache/servicecomb/java-chassis-core/1.0.0-m1/java-chassis-core-1.0.0-m1.jar!/META-INF/spring/cse.bean.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/ws/Holder
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:563)
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
   	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
   	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
   	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
   	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
   	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759)
   	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
   	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
   	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
   	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
   	at org.apache.servicecomb.foundation.common.utils.BeanUtils.init(BeanUtils.java:37)
   	at org.apache.servicecomb.foundation.common.utils.BeanUtils.init(BeanUtils.java:33)
   	at benchmark.rpc.Server.main(Server.java:10)
   Caused by: java.lang.NoClassDefFoundError: javax/xml/ws/Holder
   	at org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.getServiceCenterInfo(ServiceRegistryClientImpl.java:742)
   	at org.apache.servicecomb.serviceregistry.registry.AbstractServiceRegistry.init(AbstractServiceRegistry.java:106)
   	at org.apache.servicecomb.serviceregistry.registry.RemoteServiceRegistry.init(RemoteServiceRegistry.java:51)
   	at org.apache.servicecomb.serviceregistry.RegistryUtils.init(RegistryUtils.java:64)
   	at org.apache.servicecomb.core.CseApplicationListener.setApplicationContext(CseApplicationListener.java:81)
   	at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:121)
   	at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:97)
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:409)
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1581)
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:554)
   	... 13 more
   Caused by: java.lang.ClassNotFoundException: javax.xml.ws.Holder
   	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
   	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
   	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
   	... 23 more
   
   ```
   
   代码位置:https://github.com/hank-whu/rpc-benchmark/tree/master/servicecomb-server

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services