aspose file tools*
The moose likes Struts and the fly likes deploying web appplication configured with struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "deploying web appplication configured with struts 2" Watch "deploying web appplication configured with struts 2" New topic
Author

deploying web appplication configured with struts 2

Alexandru Gifei
Ranch Hand

Joined: May 19, 2012
Posts: 42

Hello. I am trying to deploy a web application. My folder structure in the war archive looks like this:
-meta-inf
-resources
-template
-web-inf
------classes
----------struts.xml
----------java
--------------actions
-------------------all .class files here
------lib
-----------here are all the required jars.
------view
------jsp
-----------all .jp's here
------web.xml

I am using an ant script with an deploy-war task. However i dont think this is relevant to my issue. When deploy the app i am getting the following error messages:



Here is my localhost.date.log file:


And here is my web.xml and struts.xml:





I would appreciate any help on this. Thank you.





Life is not measured by the number of breaths we take, but by the moments that take our breath away.
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1824
    
    7

According to your description of how the application is packaged the struts.xml file is located directly in the WEB-INF folder, but the stack trace indicates the expected location is WEB-INF/classes.


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Alexandru Gifei
Ranch Hand

Joined: May 19, 2012
Posts: 42

I corrected the folder structure, in fact struts.xml was already in classes folder. What could be the problem?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

Alexandru Gifei wrote:



The configuration error is caused by a class not found error. Make sure you get the complete stack trace because LoadMembersAction may be correct, but a dependency may not be loading.


[How To Ask Questions On JavaRanch]
Alexandru Gifei
Ranch Hand

Joined: May 19, 2012
Posts: 42

I managed to fix the problem. I was using java.actions package and this generated the error, i changed the package name into something different, ro.forum.actions, and the deploy is done without errors.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deploying web appplication configured with struts 2