[Logo]
Forums Register Login
HTTP Status 404 - Servlet action is not available
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
Check it out if the Application Server throws any Exception and it is started.
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)
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?
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Nov 20, 2017 06:53:13.