Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP Status 404 - Servlet action is not available

 
Y Jadhav
Ranch Hand
Posts: 37
  • 0
  • 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
 
Jair Rillo Junior
Ranch Hand
Posts: 114
  • 0
  • 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
  • 0
  • 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)
 
Jerwin Louise Uy
Ranch Hand
Posts: 75
  • 0
  • 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?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic