Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Could not invoke the service() method on servlet

11 views
Skip to first unread message

xy...@cam.ac.uk

unread,
Aug 21, 2006, 10:52:22 AM8/21/06
to
Hello,

I have developed a file upload JSR-168 portlet "MyJSR" and it works fine
with Pluto.

Then I'd like to deploy it to WebSphere portal.I have now successfully
installed the portlet to WebSphere Portal 5.1.0.1. Under
"PortalServer/installedApps/MyJSR_PA_1_0_CH.ear/MyJSR.war/WEB-INF", I can
see all required classes, JARs and jsps,etc.

But when I upload a file, it dose not work. I checked the log,I found the
following error message(See at the end of the email). Basically
processAction()is working. I can System.out.println("Hello world!!!")".
But when creating an instance of a class, it throws an exception ".....
java.lang.NoClassDefFoundError:". I double checked and can make sure
that all the required JARS are included in
"PortalServer/installedApps/MyJSR_PA_1_0_CH.ear/MyJSR.war/WEB-INF/lib".

Can you help me, please ?

Thanks you.

Best regards
Kevin

Error message as follows:
[/wps/PA_1_0_IQ] [/jsp/JobSubmissionJsp.jsp]: Initialization successful.
[18/08/06 15:36:38:023 BST] 00000048 SystemOut O Hello World!!! [18/08/06
15:36:38:036 BST] 00000048 ServletWrappe E SRVE0068E: Could not invoke the

service() method on servlet Material. Exception thrown :
java.lang.NoClassDefFoundError:
org/apache/commons/io/output/DeferredFileOutputStream
         at
org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem(DiskFileItemFactory.java:179)
         at
org.apache.commons.fileupload.FileUploadBase.createItem(FileUploadBase.java:500)
         at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:367)
         at
org.apache.commons.fileupload.portlet.PortletFileUpload.parseRequest(PortletFileUpload.java:113)
         at
org.materialsgrid.portal.jobsubmission.portlets.JobSubmissionPortlet.processAction(JobSubmissionPortlet.java:70)
         at
com.ibm.wps.pe.pc.std.cmpf.impl.PortletFilterChainImpl.processAction(PortletFilterChainImpl.java:104)
         at
com.ibm.wps.propertybroker.standard.filter.PropertyBrokerActionFilter.processAction(PropertyBrokerActionFilter.java:260)
         at
com.ibm.wps.pe.pc.std.cmpf.impl.PortletFilterChainImpl.processAction(PortletFilterChainImpl.java:95)
         at
com.ibm.wps.pe.pc.std.invoker.impl.PortletServlet.dispatch(PortletServlet.java:148)
         at
com.ibm.wps.pe.pc.std.invoker.impl.PortletServlet.doPost(PortletServlet.java:76)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at
com.ibm.wps.pe.pc.std.cache.CacheablePortlet.service(CacheablePortlet.java:256)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled

Code))
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled

Code))
         at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java(Compiled

Code))
         at
com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:204)
         at
com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:168)
         at
com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.action(PortletInvokerImpl.java:82)
        at
com.ibm.wps.pe.pc.std.event.ActionEvent.execute(ActionEvent.java:111)
         at
com.ibm.wps.pe.pc.std.event.EventQueueManager.processEventLoop(EventQueueManager.java:86)
         at
com.ibm.wps.pe.pc.std.PortletContainerImpl.performEvents(PortletContainerImpl.java:168)
         at
com.ibm.wps.pe.pc.PortletContainerImpl.performEvents(PortletContainerImpl.java:229)
         at
com.ibm.wps.engine.phases.WPActionPhase.processPortlets(WPActionPhase.java:940)
        at
com.ibm.wps.engine.phases.WPActionPhase.execute(WPActionPhase.java:482)
         at
com.ibm.wps.state.phases.AbstractActionPhase.next(AbstractActionPhase.java:130)
        at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:710)
        at com.ibm.wps.engine.Servlet.doGet(Servlet.java:562)
        at com.ibm.wps.engine.Servlet.doPost(Servlet.java:736)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled

Code))
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1239)
         at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
        at
com.ibm.wps.state.filter.StateCleanup.doFilter(StateCleanup.java:86)
         at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
         at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
        at
com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.java:216)
         at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
         at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
         at
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
         at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled

Code))
        at
com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2933)
        at
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:221)
        at
com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
         at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1912)
         at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
         at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
         at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled

Code))
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
         at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled
Code))

0 new messages