Solved

Struts error - "Cannot get dispatcher"

Posted on 2006-11-22
12
1,975 Views
Last Modified: 2012-08-13

Hi all,

Im getting this error when I try and load a page :

2006-11-22 09:13:23 - Ctx(/wmk) : Status code:500 request:R( /HOME + /MYPAGE.do + null) msg:Cannot get request dispatcher for path addNewValue


Here is my corresponding struts-config.xml entry:

    <action path="/myAction"
            type="com.addNewValue"
            name="addValueForm"
            scope="request"
            validate="false"
            >                       
      <forward name="addValue" path="gdAddNewSimpleValue" />
    </action>


Thanks for any help
0
Comment
Question by:monitorscreen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 6
12 Comments
 
LVL 5

Accepted Solution

by:
deeppra earned 195 total points
ID: 17994449
change like this
<forward name="addValue" path="/gdAddNewSimpleValue" />
0
 

Author Comment

by:monitorscreen
ID: 17994592

Ya i did that and its working now. none of my other paths need the / . Why is it so in this case?
0
 

Author Comment

by:monitorscreen
ID: 17994665

its not actually working, I can put in any value into the path as long as a slash is the prefix and the correspond .do file page is displayed.

Any ideas?

THANKS
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Expert Comment

by:deeppra
ID: 17994689
explain clearly
0
 

Author Comment

by:monitorscreen
ID: 17994707

ok, apologies if I was vague.


When I use this :
<forward name="addValue" path="/gdAddNewSimpleValue" />
The .do page is gettign loaded but the contents of the jsp (which is just some text) is not being displayed.


I can have any value in the path like :
  <forward name="addValue" path="/thisJspDoesNotExist" />

and /myAction.do will still get loaded.

thanks again

0
 
LVL 5

Expert Comment

by:deeppra
ID: 17994762
the path attribute is used to locate a particular HTML,JSP or Action
so it should end with HTML or JSP or .do
0
 

Author Comment

by:monitorscreen
ID: 17994785

Ive tried:
<forward name="addValue" path="/myPage.jsp" />

But im getting this error:
2006-11-22 11:57:48 - Ctx(/dld) : Status code:404 request:R( /wmk + /myPage.jsp + null) msg:null
0
 
LVL 5

Expert Comment

by:deeppra
ID: 17994814
404 means u dont have that mypage.jsp file in the current directory...check where u have that file in the current directory
0
 

Author Comment

by:monitorscreen
ID: 17994861


Yes the file is there alright. Sorry but I previously did not post the full error which is:

2006-11-22 12:10:00 - Ctx(/wmk) : Class not found: TOMCAT/JSP/myPage.jsp
2006-11-22 11:57:48 - Ctx(/dld) : Status code:404 request:R( /wmk + /myPage.jsp + null) msg:null

I checked and the class file is not being created.
What could be wrong?
0
 
LVL 5

Expert Comment

by:deeppra
ID: 17994872
directly from the explore open that JSP file and see whether its comming or not
0
 

Author Comment

by:monitorscreen
ID: 17995380

No its not comming??
0
 
LVL 5

Expert Comment

by:deeppra
ID: 17995390
i think this should be started in a new thread so that experts can see this question and answer to this
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Spring MVC - sending raw charset to backend 3 270
'exit' is not valid keyword in java 14 163
Can't access image with tomcat/html 6 114
equalIsNot  challenge 43 183
A big percent of today’s marketing activity is performed through the online environment. The marketing strategies that have existed a decade ago no longer relate to what’s happening today. We’re currently facing a revolutionary era, called the digit…
How many times a day do you open, acknowledge, or close an IT incident? What’s your process? Do you have a process depending on the incident, systems involved, and other factors? New Relic Alerts gives you options for how you interact with notifica…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question