This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

com.opensymphony.xwork2.util.logging.commons.CommonsLogger error

 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everyone
I am trying to implement a basic Struts2 application but i am unable to get through. Following is the error console :
The directory structure & jars in my application is given as an attachment.

web.xml file

struts.xml
Filename: New-Picture-(24).bmp
File size: 670 Kbytes
 
Tarun Oohri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
jar files are as follows :

asm-3.3.jar
asm-commons-3.3.jar
asm-tree-3.3.jar
commons-beanutils-1.7.0.jar
commons-chain-1.2.jar
commons-collections-3.2.jar
commons-digester-2.0.jar
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
commons-lang-2.3.jar
commons-logging-1.0.4.jar
commons-logging-api-1.1.jar
freemarker-2.3.15.jar
ognl-2.7.3.jar
struts2-core-2.3.15.1.jar
xwork-core-2.3.15.1.jar
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks like the first error has to do with Tiles:


Are you trying to use Tiles?
I have the Struts 2.3.15.1 version handy and the list of dependencies in the example application is as follows:


I see a number of differences between this file list and the list that you specified.
 
Tarun Oohri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply. No i am not trying to use Tiles framework in my application. I am just making a simple application with implementation of interceptors.
I have tried using different combinations of jar files but nothing seems to be working. Currently i am getting this error in my console :

java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

I have one more doubt. The tutorials available on the internet gives different directory structure. Some says that the struts.xml file should be in the source folder . Some says it should be in the classes folder ( classes folder is in the WEB-INF folder) . Which one is the right practice ? What is the difference between the two ?

Thanks Again!!!
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tarun Oohri wrote:
I have tried using different combinations of jar files but nothing seems to be working.



There's so many variables in the dependencies, getting them right by trial and error is nearly impossible. Your best bet is copying the dependencies from the example application called "struts2-blank".

Tarun Oohri wrote:
I have one more doubt. The tutorials available on the internet gives different directory structure. Some says that the struts.xml file should be in the source folder .



It doesn't matter so long as your build puts the file in the right place (WEB-INF/classes). That said, the current convention is to put the struts.xml file in the source folder.
 
Tarun Oohri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok thanks Joe... i will try doing as you said, If get stuck will get back here
Thanks Again!!!
 
Tarun Oohri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks i have tried making whole new application with your given jar files and it is working very fine. Thanks a ton, was trying to get through from past 2 days .
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic