• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

deploying web appplication configured with struts 2

 
Ranch Hand
Posts: 42
Postgres Database Java Linux
  • 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.




 
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
Postgres Database Java Linux
  • 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?
 
Bartender
Posts: 9615
16
Mac OS X Linux 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
Postgres Database Java Linux
  • 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.
 
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic