• 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

Getting errors while deploying the webapplication into tomcat

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am facing the problem while deploying the struts application into tomcat5.5.27.
I Copied the root context folder(like say "HelloStruts") into webapps folder of tomcat.
After that I started my tomcat. But in tomcat console, I didn't find the deployed web folder like "HelloStruts".
If I tried to give the request for the struts application like http://localhost:8080/HelloStruts/login.html
it is getting displayed that login.html. After I clicked on submit button, but it is showing the error on the browser like
"Servlet action is not available"(here action is the name of the servlet-class)

Can any body help me regarding this?

I guess this is the problem with tomcat installation, but I am not sure.....

javascript:emoticon('');
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
did you added struts.jar in your classpath
 
Krish Yeruva
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi venkatasamy,
Thanks for your reply. I already added the struts.jar file in lib folder and I set the class path for that also.
Even though I got the same error. Can you help me regarding the same...
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Krishnareddy Yeruva wrote:I already added the struts.jar file in lib folder



common/lib?
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
did you check the uri given in action attribute of your html page? there may be no action defined that uri.
 
Krish Yeruva
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi sanjay,
I already done that like "action attribute of login.html page with struts-config.xml file's action 'path' attribute "
I have attached the login.html and struts-config.xml file.


Hi venkatasamy,
I had added the struts.jar file in lib directory of WEB-INF folder.
 
There is no greater crime than stealing somebody's best friend. I miss you tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic