troubleshooting Question

I am recieving "java.lang.IllegalArgumentException: Path welcome does not start with a "/" character" when tryign to create a simple struts app with MyEclipse

Avatar of mallocaway
mallocaway asked on
Java EE
6 Comments1 Solution7246 ViewsLast Modified:
I am receiving the following error message when attempting to create a simple J2EE application with Struts and MyEclipse

java.lang.IllegalArgumentException: Path welcome does not start with a "/" character

Here is my struts-config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "">

  <data-sources />
  <form-beans >
    <form-bean name="welcomeForm" type="com.yourcompany.struts.form.WelcomeForm" />

  <global-exceptions />
  <global-forwards >
      redirect="true" />

  <action-mappings >
      type="com.yourcompany.struts.action.WelcomeAction" >
        <forward name="success" path="welcome" />

  <message-resources parameter="com.yourcompany.struts.ApplicationResources" />

Here is my  execute() method:
public ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) {
      WelcomeForm welcomeForm = (WelcomeForm) form;// TODO Auto-generated method stub
      return mapping.findForward("success");

I get the error mentioned above.
Below is the log:
Jul 18, 2008 12:00:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.logic.LocalStrings', returnNull=true
Jul 18, 2008 12:00:49 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet action threw exception
java.lang.IllegalArgumentException: Path welcome does not start with a "/" character
      at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(
      at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(
      at org.apache.struts.action.RequestProcessor.doForward(
      at org.apache.struts.action.RequestProcessor.processForwardConfig(
      at org.apache.struts.action.RequestProcessor.process(
      at org.apache.struts.action.ActionServlet.process(
      at org.apache.struts.action.ActionServlet.doGet(
      at javax.servlet.http.HttpServlet.service(
      at javax.servlet.http.HttpServlet.service(
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(
      at org.apache.catalina.core.StandardWrapperValve.invoke(
      at org.apache.catalina.core.StandardContextValve.invoke(
      at org.apache.catalina.core.StandardHostValve.invoke(
      at org.apache.catalina.valves.ErrorReportValve.invoke(
      at org.apache.catalina.core.StandardEngineValve.invoke(
      at org.apache.catalina.connector.CoyoteAdapter.service(
      at org.apache.coyote.http11.Http11Processor.process(
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(
      at org.apache.tomcat.util.threads.ThreadPool$

I'm new to this.
Can anyone give me some guidance?
Thank you!
krishna kishore mellacheruvu venkata
Associate Manager

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros