java - Error running my spring app -
below log. when added following maven dependency, spring application started show errors. now, not start.
<dependency> <groupid>org.jvnet.staxex</groupid> <artifactid>stax-ex</artifactid> <version>1.7.7</version> </dependency> <dependency> <groupid>com.sun.xml.stream.buffer</groupid> <artifactid>streambuffer</artifactid> <version>1.4</version> </dependency> <dependency> <groupid>com.sun.xml.ws</groupid> <artifactid>policy</artifactid> <version>2.2.2</version> </dependency> <dependency> <groupid>javax.xml.bind</groupid> <artifactid>jaxb-api</artifactid> <version>2.2.3</version> </dependency> <dependency> <groupid>com.sun.xml.bind</groupid> <artifactid>jaxb-impl</artifactid> <version>2.0.1</version> </dependency>
it caused following error:
aug 31, 2015 12:50:57 org.apache.catalina.core.standardcontext listenerstart severe: exception sending context initialized event listener instance of class org.springframework.web.context.contextloaderlistener org.springframework.beans.factory.beancreationexception: error creating bean name 'arbapiservice' defined in servletcontext resource [/web-inf/spring/root-context.xml]: instantiation of bean failed; nested exception org.springframework.beans.beaninstantiationexception: not instantiate bean class [com.anet.api.arb.arbapiserviceimpl]: constructor threw exception; nested exception java.util.serviceconfigurationerror: javax.xml.ws.spi.provider: provider com.sun.xml.ws.spi.providerimpl not instantiated org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:112) @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:5003) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5517) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1574) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1564) @ java.util.concurrent.futuretask.run(unknown source) @ java.util.concurrent.threadpoolexecutor.runworker(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) @ java.lang.thread.run(unknown source) caused by: org.springframework.beans.beaninstantiationexception: not instantiate bean class [com.anet.api.arb.arbapiserviceimpl]: constructor threw exception; nested exception java.util.serviceconfigurationerror: javax.xml.ws.spi.provider: provider com.sun.xml.ws.spi.providerimpl not instantiated @ org.springframework.beans.beanutils.instantiateclass(beanutils.java:163) @ org.springframework.beans.factory.support.simpleinstantiationstrategy.instantiate(simpleinstantiationstrategy.java:87) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.instantiatebean(abstractautowirecapablebeanfactory.java:1030) ... 22 more caused by: java.util.serviceconfigurationerror: javax.xml.ws.spi.provider: provider com.sun.xml.ws.spi.providerimpl not instantiated @ java.util.serviceloader.fail(unknown source) @ java.util.serviceloader.access$100(unknown source) @ java.util.serviceloader$lazyiterator.next(unknown source) @ java.util.serviceloader$1.next(unknown source) @ javax.xml.ws.spi.provider.getproviderusingserviceloader(unknown source) @ javax.xml.ws.spi.provider.provider(unknown source) @ javax.xml.ws.service.<init>(unknown source) @ net.authorize.services.service.<init>(service.java:53) v2.runtime.reflect.lister.getimplclass(lister.java:116) @ com.sun.xml.bind.v2.runtime.reflect.lister.create(lister.java:102) @ com.sun.xml.bind.v2.runtime.property.arrayproperty.<init>(arrayproperty.java:26) @ com.sun.xml.bind.v2.runtime.property.arrayerproperty.<init>(arrayerproperty.java:45) @ com.sun.xml.bind.v2.runtime.property.arrayreferencenodeproperty.<init>(arrayreferencenodeproperty.java:44) @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(unknown source) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(unknown source) @ java.lang.reflect.constructor.newinstance(unknown source) @ com.sun.xml.bind.v2.runtime.property.propertyfactory.create(propertyfactory.java:88) @ com.sun.xml.bind.v2.runtime.classbeaninfoimpl.<init>(classbeaninfoimpl.java:142) @ com.sun.xml.bind.v2.runtime.jaxbcontextimpl.getorcreate(jaxbcontextimpl.java:407) @ com.sun.xml.bind.v2.runtime.jaxbcontextimpl.getorcreate(jaxbcontextimpl.java:426) @ com.sun.xml.bind.v2.runtime.property.singleelementnodeproperty.<init>(singleelementnodeproperty.java:64) @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(unknown source) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(unknown source) @ java.lang.reflect.constructor.newinstance(unknown source)
i found might version related issue of these libs . how resolve this? using apache tomcat 7 , spring 3 maven 3
Comments
Post a Comment