• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deploying web appplication configured with struts 2

 
Alexandru Gifei
Ranch Hand
Posts: 42
Java Linux Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.




 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Alexandru Gifei
Ranch Hand
Posts: 42
Java Linux Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I corrected the folder structure, in fact struts.xml was already in classes folder. What could be the problem?
 
Joe Ess
Bartender
Posts: 9313
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Alexandru Gifei
Ranch Hand
Posts: 42
Java Linux Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic