Hi,
Jersey is continuously being tested to pass the JAX-RS TCK tests
and we are getting no failure at all. Why do you want to run the tests
of your own?
Are you trying to make your own implementation pass TCK?
~Jakub
On 25.10.2011 10:28, lulynn_2008 wrote:
> Hello,
> I have the following questions and need your help:
> 1. Is there any guide for jersey to pass jaxrstck?
> 2. During passing jaxrstck, which web server is used?(jetty or some else)
> 3. Which version web server is used for jersey-1.4?
> Thank you.
> The following is the error information during my process:
> I am using jaxrstck and
> jersey-1.4(http://download.java.net/maven/2/com/sun/jersey/ri/jax-rs-ri/1.4/jax-rs-ri-1.4.zip)
> to generate jersey war files and then deploy these war files at
> jetty-6.1.14. I encountered the following errors and jersey
> ClassNotFound errors(all jersey jar files are added into war/WEB-INF/lib):
> 2011-10-25 09:04:33.538::INFO: Logging to STDERR via
> org.mortbay.log.StdErrLog
> 2011-10-25 09:04:33.630::INFO: jetty-6.1.14
> 2011-10-25 09:04:33.681::INFO: Deploy
> /root/TCK/jetty-6.1.14/contexts/test-jndi.xml ->
> org.mortbay.jetty.webapp
> .WebAppContext_at_7a687a68{/test-jndi,/root/TCK/jetty-6.1.14/contexts/test-jndi.d}
> 2011-10-25 09:04:33.698::INFO: Deploy
> /root/TCK/jetty-6.1.14/contexts/javadoc.xml ->
> org.mortbay.jetty.handler.ContextHandler_at_3ae03ae0{/javadoc,file:/root/TCK/jetty-6.1.14/javadoc/}
> 2011-10-25 09:04:33.707::INFO: Deploy
> /root/TCK/jetty-6.1.14/contexts/test.xml ->
> org.mortbay.jetty.webapp.WebAppContext_at_2120212{/,/root/TCK/jetty-6.1.14/webapps/test}
> 2011-10-25 09:04:33.760::INFO: No Transaction manager found - if your
> webapp requires one, please configure one.
> Oct 25, 2011 9:04:34 AM
> com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
> INFO: Initiating Jersey application, version 'Jersey: 1.4 09/11/2010
> 10:30 PM'
> Oct 25, 2011 9:04:34 AM
> com.sun.jersey.server.impl.application.DeferredResourceConfig$ApplicationHolder
> <init>
> INFO: Instantiated the Application class
> com.sun.ts.tests.jaxrs.spec.template.TSAppConfig
> Oct 25, 2011 9:04:34 AM
> com.sun.jersey.core.spi.component.ProviderFactory __getComponentProvider
> SEVERE: The provider class, class
> com.sun.jersey.server.impl.model.parameter.multivalued.JAXBStringReaderProviders$RootElementProvider,
> could not be instantiated. Processing will continue but the class will
> not be utilized
> Throwable occurred: java.lang.IllegalArgumentException: argument type
> mismatch
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:56)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:527)
> at com.sun.jersey.core.spi.compone
> nt.ComponentConstructor._getInstance(ComponentConstructor.java:198)
> at
> com.sun.jersey.core.spi.component.ComponentConstructor.getInstance(ComponentConstructor.java:169)
> at
> com.sun.jersey.core.spi.component.ProviderFactory.__getComponentProvider(ProviderFactory.java:166)
> at
> com.sun.jersey.core.spi.component.ProviderFactory.getComponentProvider(ProviderFactory.java:137)
> at
> com.sun.jersey.core.spi.component.ProviderServices.getComponent(ProviderServices.java:256)
> at
> com.sun.jersey.core.spi.component.ProviderServices.getProvidersAndServices(ProviderServices.java:173)
> at
> com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderFactory.init(StringReaderFactory.java:60)
> &nbs p; at
> com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1166)
> at
> com.sun.jersey.server.impl.application.WebApplicationImpl.access$600(WebApplicationImpl.java:161)
> at
> com.sun.jersey.server.impl.application.WebApplicationImpl$12.f(WebApplicationImpl.java:698)
> at
> com.sun.jersey.server.impl.application.WebApplicationImpl$12.f(WebApplicationImpl.java:695)
> at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:197)
> at
> com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:695)
> at
> com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:690)
> &nbs p; at
> com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:438)
> at
> com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:287)
> at
> com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:587)
> at
> com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:213)
> at
> com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:342)
> at
> com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:516)
> at javax.servlet.GenericServlet.init(GenericServlet.java:241)
> at org.mortbay.jetty.servlet.ServletHolder.initSe
> rvlet(ServletHolder.java:431)
> at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:643)
> at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
> at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1234)
> at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLife
> Cycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> at org.mortbay.jetty.Server.doStart(Server.java:222)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLife
> Cycle.java:50)
> at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at java.lang.reflect.Method.invoke(Method.java:611)
> at org.mortbay.start.Main.invokeMain(Main.java:194)
> at org.mortbay.start.Main.start(Main.java:523)
> at org.mortbay.start.Main.main(Main.java:119)
>
>
>
>