aspose file tools*
The moose likes Struts and the fly likes Change Class path of project and Got No Action Map Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Change Class path of project and Got No Action Map Error" Watch "Change Class path of project and Got No Action Map Error" New topic
Author

Change Class path of project and Got No Action Map Error

Raza Mohd
Ranch Hand

Joined: Jan 20, 2010
Posts: 247

hi i have to ask one thing.. I just changed my class path from default .

which was
/WEB-INF/classes


changed path is
/build/classes
(Not in WEB-INF)

But when i am deploying the project and run ,It give there is no Action Mapped.

I am sure thet The application is not able to read Struts.xml.

do i stick to default class path or any other changes i need to made that i am unaware.

I am using JBoss 4.2.1.GA..

how can i resolve it...


Regards,
Raza


Good luck!!
A small leak can sink a Gigantic ship.>
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

1. Why did you change the classpath?? classes folder is always supposed to be in the WEB-INF folder.
2. How did you actually change the classpath?? The container always looks for classes in the classes and lib (inside jars) folders of your web application...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Raza Mohd
Ranch Hand

Joined: Jan 20, 2010
Posts: 247

i changed through the java build path.

the second point you mentioned ..

That the container will always look in the WEB-INF ....is there any way that we can configure container so that it can look for the path that i defined.


Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Again I would ask, why do you want to change the path?? What is the use of moving the classes directory out of the WEB-INF directory??
Raza Mohd
Ranch Hand

Joined: Jan 20, 2010
Posts: 247

There is no need....but if i do...there must be a possible solution..

I want to check it.....if i change class path how can i configure container to read path i created.. ..
 
wood burning stoves
 
subject: Change Class path of project and Got No Action Map Error
 
Similar Threads
Does Eclipse compiles java souce code? How should I compile again if i wish to do so.
Error compiling a simple servlet !!.... any ideas??
Setting up a struts project in eclipse?
suddenly getting error: Exception starting filter struts2
Struts 2 problem-actions cant find the result. WARNING: Could not find action or result