This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Zero to AI - A non-technical, hype-free guide to prospering in the AI era and have Nicolò Valigi and Gianluca Mauro on-line!
See this thread for details.
Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • 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
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Getting error: Unable to load configuration. - action

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Hope everyone is in good health.

I am a Struts newbie and nowadays practicing basic struts problems. I deployed this app the GlassFish JEE server and getting Http Status 500 error..

I have all the files in the respective directories like the web.xml, the struts.xml...Still its showing this....


Unable to load configuration. - action - file:/C:/glassfishv3/glassfish/domains/domain1/applications/app03a/WEB-INF/classes/struts.xml:24:66


The app03a.war contains: css, jsp, META-INF and WEB-INF folders....

I dont understand why its not finding the struts.xml while loading.....

 
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mayank,

Which version of struts you are using?
 
Ranch Hand
Posts: 247
MyEclipse IDE MySQL Database Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi mayank,
pu it in src folder.
it should work.

Regards
Raza
 
Mayank Kalbhor
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi shailesh,

Thank you for your reply..I am using the latest version of struts....thats struts 2.2.1.1

the jar files in the lib are:


commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
freemarker-2.3.15.jar
javassist-3.7.1.GA.jar
ognl-2.7.3.jar
struts2-config-browser-plugin-2.1.8.1.jar
struts2-core-2.1.8.1.jar
xwork-core-2.1.6.jar


Let me know if you need some more details...

mayank
 
Mayank Kalbhor
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Raza Mohd

I dont have src folder in the *.war

Thank you

Mayank kalbhor
 
Mayank Kalbhor
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I put the src folder also in the *.war file and redeployed and restarted the app...Still the same error....


Mayank kalbhor
 
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it may be finding your struts.xml file but the app is having trouble loading it. This could be a problem with permissons or an error in your .xml file. Is there any more information in your log about this? Like an error stack?
 
Mayank Kalbhor
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tom,

I did that in another way and got it running. I zipped the entire folder and imported in eclipse (Running on Tomcat 6) and got it working. Not sure why it was not working when i did it manually(getting the *.war and deploying on GlassFish.)


Mayank Kalbhor
 
I RELEASE YOU! (for now .... ) Feel free to peruse this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic