Hi Team,

                I am newbie to apache wink, facing weird issue i.e., simple 
classnotfound exception even though the jar in the class path. Actually I am 
developing wink cdi restservice with Webshepere 8.5.5.9 without using any 
external jars because WAS will have winkserver/client packed under 
com.ibm.ws.prereq.jaxrs.jar, but for some reason JCDIRestservlet not able to 
find . Find the below configuration and please let me know if I am missing 
something. Thanks

Web.xml
//////////
<servlet>
                                <servlet-name>Wink Servlet</servlet-name>
                                
<servlet-class>org.apache.wink.jcdi.server.internal.JCDIRestServlet</servlet-class>
                                <init-param>
                                                
<param-name>applicationConfigLocation</param-name>
                                                
<param-value>/WEB-INF/application</param-value>
                                </init-param>
                                <load-on-startup>1</load-on-startup>
                </servlet>
                <servlet-mapping>
                                <servlet-name>Wink Servlet</servlet-name>
                                <url-pattern>/rest/*</url-pattern>
                </servlet-mapping>

Controller
/////////////
@Path("/wink")
public class WinkRestServlet {

                @Inject
                private ServiceHandler service;

                @GET
                @Path("/user/{name}")
                @Produces(MediaType.APPLICATION_JSON)
                public User getUser(@PathParam("name") String name){
                                                return service.getUser(name);

                }

}


Exeception:

ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper run SRVE8052E: 
Logging ClassNotFoundException
                                 java.lang.ClassNotFoundException: 
org.apache.wink.jcdi.server.internal.JCDIRestServlet
       at java.lang.Class.forNameImpl(Native Method)
       at java.lang.Class.forName(Class.java:256)
       at com.sun.beans.finder.ClassFinder.findClass(ClassFinder.java:88)
       at com.sun.beans.finder.ClassFinder.findClass(ClassFinder.java:123)
       at java.beans.Beans.instantiate(Beans.java:219)
       at java.beans.Beans.instantiate(Beans.java:89)
       at 
com.ibm.ws.webcontainer.servlet.ServletWrapper$1.run(ServletWrapper.java:1488)
       at 
com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
       at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java:1477)
       at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.load(ServletWrapper.java:1375)
       at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1027)
       at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3928)
       at 
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
       at 
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1007)
       at 
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
       at 
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
       at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)
       at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
       at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
       at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:287)
       at 
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
       at 
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
       at 
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
       at 
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
       at 
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
       at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
       at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
       at 
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
       at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
       at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1881)



Regards,
Siva
Florida Blue is a trade name of Blue Cross and Blue Shield of Florida, Inc.  
Blue Cross and Blue Shield of Florida, Inc., and its subsidiary and affiliate 
companies are not responsible for errors or omissions in this e-mail message. 
Any personal comments made in this e-mail do not reflect the views of Blue 
Cross and Blue Shield of Florida, Inc.  The information contained in this 
document may be confidential and intended solely for the use of the individual 
or entity to whom it is addressed.  This document may contain material that is 
privileged or protected from disclosure under applicable law.  If you are not 
the intended recipient or the individual responsible for delivering to the 
intended recipient, please (1) be advised that any use, dissemination, 
forwarding, or copying of this document IS STRICTLY PROHIBITED; and (2) notify 
sender immediately by telephone and destroy the document. THANK YOU.

Reply via email to