This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques and have Mario Casciaro & Luciano Mammino on-line!
See this thread for details.
Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Getting error: Unable to load configuration. - action

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic