I have 2 Dynamic Web Projects:
- cms
- Demo
Using Struts2 I want project Demo to use actions of the project CMS.
In Demo's "Java Build Path" configuration, in the "Project" tab I added the CMS project.
Now in the struts.xml
of Demo I have
<action name="hello" class="cms.helloworld.action.HelloWorldAction" method="execute">
where the package cms.helloworld.action
is a CMS project package.
Eclipse see it correctly, in fact with ctrl+right click on the class name it open me the correct Java file.
Now, in Demo's deployment assembly configuration I added the CMS project, so that also Tomcat can find the relative classes.
But when I run the project on tomcat server the log says:
Grave: Dispatcher initialization failed Unable to load configuration. - action
Caused by: Action class [cms.helloworld.action.HelloWorldAction] not found
It can't find the action on CMS project.
What am I doing wrong?