• 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
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

unable to run sample application in Struts2

 
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
im new to Struts....in my application i was required to use Struts2..from the info i got ..i developed sample application....i had done step-by-step what i mentioned...when im running that application im getting error as The module has not been deployed. eventhough i deployed and used 'Clean and Build' also...im using Netbeans6.9.1...can anyone help me out why im getting that problem..

thanks,
madhu.
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Madhuri,

1) Can you check the web.xml file.

You are probably just missing a "/" at the beginning of the url-pattern tag...

2) The other way could be to recreate the project and move your files to the new project.

 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Nilesh,
this is my web.xml file....can you once check it....i had seen url pattern...it is like this
<url-pattern>/*</url-pattern>


thanks,
madhu.
 
Nilesh Bond
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you provide the stack trace along with the version of Jars that you have included in while running the application.
 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
these are the jar files i used..
1)commons-fileupload-1.2.1.jar
2)commons-logging-1.0.4.jar
3)freemarker-2.3.16.jar
4)ognl-3.0.jar
5)struts2-core-2.2.1.jar
6)xwork-core-2.2.1.jar

the stack trace by deploying the application



thanks,
madhu
 
Nilesh Bond
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do the following changes:

1) Add javaassit.jar [Not included in "struts-2.2.1-all.zip". you will have to download it.]

2) Add "commons-logging-api-1.1.jar" and "commons-io-1.3.2.jar"

3) Replaced "ognl-3.0.jar" with "ognl-2.7.3.jar" [In the dependency list OGNL 2.7.3 is given and you are using OGNL 3, try to use 2.7.3 version to see if it works... ]

 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Nilesh,
i tried what you suggested..but the same problem im facing....the following jar files im using..
1)commons-fileupload-1.2.1.jar
2)commons-logging-1.0.4.jar
3)freemarker-2.3.16.jar
4)struts2-core-2.2.1.jar
5)xwork-core-2.2.1.jar
6)commons-logging-api-1.1.jar
7)commons-io-1.3.2.jar
8)javassist.jar
9)ognl-2.7.3.jar

after deploying im getting as




may i know why im getting unable to deploy
thanks,
madhu.
 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i had tried my modifying my jar files...eventhough im getting same errors.....may i know where my code goes wrong..
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nilesh Bond wrote:1) Add javaassit.jar [Not included in "struts-2.2.1-all.zip". you will have to download it.]


Not true, it's in the struts2-blank application.

3) Replaced "ognl-3.0.jar" with "ognl-2.7.3.jar" [In the dependency list OGNL 2.7.3 is given and you are using OGNL 3, try to use 2.7.3 version to see if it works... ]


NO. Do NOT downgrade libraries at random. S2.2.1 has a dependency on OGNL 3.0.
 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i got struts2 application i.e., example which is given in one of the sites..its working....according to 'Nilesh' ..i had added the jar files what he had suggested for me to download i had done and its working fine....previously i got problem because i deleted the jar files which already deployed.....for future use of Ranches..here im giving the following jar files should be loaded inorder to run the Struts2 application....i had done in NetBeans 6.9.1

1)commons-fileupload-1.2.1.jar
2)commons-logging-1.0.4.jar
3)freemarker-2.3.16.jar
4)ognl-3.0.jar
5)struts2-core-2.2.1.jar
6)xwork-core-2.2.1.jar
7)javassist.jar
8)ognl-2.7.3.jar


Hope this may helpful who wants to learn Struts2.

Thanks,
Madhuri.
 
moose poop looks like football shaped elk poop. About the size of this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic