Hello, I have strange problem with instantiate Provider. This situation appears only on remote environment. My REST API app tries to make request to e-bay api, but I receive mapMappableContainerException:
com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException: The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container java.util.ServiceConfigurationError: javax.xml.ws.spi.Provider: Provider com.sun.xml.ws.spi.ProviderImpl could not be instantiated: java.lang.ExceptionInInitializerError at java.util.ServiceLoader.fail(ServiceLoader.java:224 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=java%2Futil%2FServiceLoader.java&line=224&authuser=1>) at java.util.ServiceLoader.access$100(ServiceLoader.java:181 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=java%2Futil%2FServiceLoader.java&line=181&authuser=1>) at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:377 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=java%2Futil%2FServiceLoader.java&line=377&authuser=1>) at java.util.ServiceLoader$1.next(ServiceLoader.java:445 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=java%2Futil%2FServiceLoader.java&line=445&authuser=1>) at javax.xml.ws.spi.Provider.getProviderUsingServiceLoader(Provider.java:165 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=javax%2Fxml%2Fws%2Fspi%2FProvider.java&line=165&authuser=1>) at javax.xml.ws.spi.Provider.provider(Provider.java:125 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=javax%2Fxml%2Fws%2Fspi%2FProvider.java&line=125&authuser=1>) at javax.xml.ws.Service.<init>(Service.java:77) at javax.xml.ws.Service.create(Service.java:707 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=javax%2Fxml%2Fws%2FService.java&line=707&authuser=1>) at com.ebay.common.ClientFactory.getServiceClient(ClientFactory.java:77 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=com%2Febay%2Fcommon%2FClientFactory.java&line=77&authuser=1>) at com.ebay.services.client.FindingServiceClientFactory.getServiceClient( FindingServiceClientFactory.java:34 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=com%2Febay%2Fservices%2Fclient%2FFindingServiceClientFactory.java&line=34&authuser=1>) at api.SearchEBay.getSearchResultsSimple(SearchEBay.java:202 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=api%2FSearchEBay.java&line=202&authuser=1>) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:57 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=sun%2Freflect%2FNativeMethodAccessorImpl.java&line=57&authuser=1>) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=sun%2Freflect%2FDelegatingMethodAccessorImpl.java&line=43&authuser=1>) at java.lang.reflect.Method.invoke(Method.java:45 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=java%2Flang%2Freflect%2FMethod.java&line=45&authuser=1>) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke( JavaMethodInvokerFactory.java:60 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=com%2Fsun%2Fjersey%2Fspi%2Fcontainer%2FJavaMethodInvokerFactory.java&line=60&authuser=1>) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch( AbstractResourceMethodDispatchProvider.java:185 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=com%2Fsun%2Fjersey%2Fserver%2Fimpl%2Fmodel%2Fmethod%2Fdispatch%2FAbstractResourceMethodDispatchProvider.java&line=185&authuser=1>) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch( ResourceJavaMethodDispatcher.java:75 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=com%2Fsun%2Fjersey%2Fserver%2Fimpl%2Fmodel%2Fmethod%2Fdispatch%2FResourceJavaMethodDispatcher.java&line=75&authuser=1>) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept( HttpMethodRule.java:288 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=com%2Fsun%2Fjersey%2Fserver%2Fimpl%2Furi%2Frules%2FHttpMethodRule.java&line=288&authuser=1>) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept( RightHandPathRule.java:147 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=com%2Fsun%2Fjersey%2Fserver%2Fimpl%2Furi%2Frules%2FRightHandPathRule.java&line=147&authuser=1>) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept( ResourceClassRule.java:108 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=com%2Fsun%2Fjersey%2Fserver%2Fimpl%2Furi%2Frules%2FResourceClassRule.java&line=108&authuser=1>) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept( RightHandPathRule.java:147 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=com%2Fsun%2Fjersey%2Fserver%2Fimpl%2Furi%2Frules%2FRightHandPathRule.java&line=147&authuser=1>) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept( RootResourceClassesRule.java:84 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=com%2Fsun%2Fjersey%2Fserver%2Fimpl%2Furi%2Frules%2FRootResourceClassesRule.java&line=84&authuser=1>) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest( WebApplicationImpl.java:1469 <https://console.developers.google.com/project/apps%7Eatomic-oven-613/clouddev/source/resolve_location?appVersion=1-war×tampNanos=1403115972364000000&file=com%2Fsun%2Fjersey%2Fserver%2Fimpl%2Fapplication%2FWebApplicationImpl.java&line=1469&authuser=1> ) When the app was starting, logger has registered class provider problem: com.sun.jersey.api.core.ScanningResourceConfig init: No provider classes found. My web.xml: ?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <display-name>Restful Web Proxy</display-name> <servlet> <servlet-name>Jersey REST Service</servlet-name> <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> <init-param> <param-name>com.sun.jersey.config.property.packages</param-name> <param-value>api</param-value> </init-param> <init-param> <param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name> <param-value>true</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Jersey REST Service</servlet-name> <url-pattern>/api/*</url-pattern> </servlet-mapping> </web-app> My pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.google.appengine.demo</groupId> <artifactId>guestbook</artifactId> <version>1.0-SNAPSHOT</version> <packaging>pom</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <appengine.target.version>1.9.6</appengine.target.version> </properties> <dependencies> <dependency> <groupId>javax.ws.rs</groupId> <artifactId>javax.ws.rs-api</artifactId> <version>2.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-server</artifactId> <version>1.8</version> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-json</artifactId> <version>1.8</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.16</version> </dependency> <!-- <dependency> <groupId>javax.xml.ws</groupId> <artifactId>jaxws-api</artifactId> <version>2.2.1</version> </dependency>--> <dependency> <groupId>com.sun.xml.ws</groupId> <artifactId>jaxws-rt</artifactId> <version>2.2.1</version> </dependency> </dependencies> <build> <pluginManagement> <plugins> <plugin> <groupId>com.google.appengine</groupId> <artifactId>appengine-maven-plugin</artifactId> <version>${appengine.target.version}</version> </plugin> </plugins> </pluginManagement> </build> <modules> <module>guestbook-war</module> <module>guestbook-ear</module> </modules> </project> I've looking for google support, but nothing fits. I've no idea what is this error caused by. If someone know the sollution, I would be grateful for help. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
