Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Struts error - "Cannot get dispatcher"

Posted on 2006-11-22
12
Medium Priority
?
2,055 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
  • 6
  • 6
12 Comments
 
LVL 5

Accepted Solution

by:
deeppra earned 780 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
The decision to migrate to the cloud is not a simple one—many factors, such a cost, ease of use, and ongoing maintenance come into play. The goal is always for cloud platforms to make storage and backups more seamless and effective. Here’s a look at…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

926 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