WebSphere Portal Server - Could not invoke the service() method on servlet

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > August 2006 > Could not invoke the service() method on servlet





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Could not invoke the service() method on servlet

2006-08-21, 1:40 pm

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))
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com