• 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
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

HTTP Status 404 - Servlet action is not available  RSS feed

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to setup struts and hibernate for my new project, but from last three days i am just rid of from these errors

HTTP Status 404 - Servlet action is not available

I know this is common error, I tried every possible way that found me on net.Please help me...

Context.xml is not present in this zip file , I also tried aftre adding it to meta-inf folder...
Below there are my web,struts-config,hibernate.hbm.xml and context.xml is
pasted...


roseindia struts-hibernate integration


web.xml

Struts-config.xml

context.xml

Hibernate.hbm.xml
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check it out if the Application Server throws any Exception and it is started.
 
Y Jadhav
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jair Rillo Junior ,

Thank you sir, I resolved this error but new error i am getting that is,

Cannot find bean: "Element" in any scope

org.apache.jasper.JasperException: Exception in JSP: /pages/Element.jsp:8

5:
6: <html:html>
7: <h1>Periodic Element</h1>
8: Name: <bean:write name="Element" property="name"/><br>
9: Symbol: <bean:write name="Element" property="symbol"/><br>
10: Number: <bean:write name="Element" property="num"/><br>
11: Mass: <bean:write name="Element" property="mass"/><br>


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

root cause

javax.servlet.ServletException: Cannot find bean: "Element" in any scope
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
org.apache.jsp.pages.Element_jsp._jspService(Element_jsp.java:79)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It cannot find any object bound to "Element" in your page, request, session or application scope.

May I ask how did you define the "Element" binding to a java bean object?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!