The moose likes Struts and the fly likes Why sevlet.service() exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Why sevlet.service() exception" Watch "Why sevlet.service() exception" New topic

Why sevlet.service() exception

Arun R. S. Chandran
Ranch Hand

Joined: Oct 08, 2008
Posts: 81
Hi I am using Strts, Spring and Hibernate for my project.

I created a JSP page in Struts, named CreateJobUPD. And action named JobUPDAction. And I wrote save method inside this action.

In my Actionservlet.xml I wrote the below code to mention the path.

<bean name="/CreatejobUPDAction"
class="com.videocon.action.admin.JobUPDAction" singleton="false">
<property name="jobupdmgr">
<ref bean="jobupdmgr" />

<bean name="/CreateUnitAction"
class="com.videocon.action.admin.CreateUnitAction" singleton="false">
<property name="unitManager">
<ref bean="unitManager"/>

In Strts-config.xml:

<action path="/CreatejobUPDAction"
name="jobUPDForm" scope="request"
input="page.createjobupd" parameter="method" validate="false" >
<forward name="success" path="page.createjobupd" />
<forward name="failure" path="page.createjobupd" />

The page is properly loading. The problem is that, when I'm clicking on the submit button it's throwing an servlet.service() exception that is given below.

ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CRTRS].[action]] Servlet.service() for servlet action threw exception
javax.servlet.ServletException: Request[/CreatejobUPDAction] does not contain handler parameter named 'method'. This may be caused by whitespace in the label text.

I couldn't understand why it came. So anybody please help me to correct this part.

Paras Jain
Ranch Hand

Joined: Feb 26, 2005
Posts: 138
Have you seen this

Paras Jain
SCJP 5.0
Arun R. S. Chandran
Ranch Hand

Joined: Oct 08, 2008
Posts: 81
Thank you....
I got it correct...

I agree. Here's the link:
subject: Why sevlet.service() exception
It's not a secret anymore!