Forgive me, you have reason.

Using urls like:

http://localhost:8180/Tuto/SayHello.do
http://localhost:8180/Tuto/SayGoodBye.do

It show 2 messages the Hello and Goodbye, correctly.

The problem occurs in which the index should be 2 links:

         <html:link action=""> Hello </ html: link>
         Adios <html:link action=""> </ html: link>

Logically if I remove the 2 links the rest of the load index correctly.

The problem is if you can not resolve the action and gives an exception.

Paweł Wielgus wrote:
Hi Jesús,
first of all without globalforwards block it should work as well.
Then try not to put anything inside those jsp files,
maybe something is wrong there.

In browser entering address like:
http://yourserver/yourapp/SayHello.do
should show hello.jsp where yourapp is application context or nothing
if it's run as a root.

You can also show more of that exception, not just first line.

Best greetings,
Paweł Wielgus.


El día 14 de mayo de 2009 12:44, Gallardo <jgalla...@sync.es> escribió:
  
Hi for all.

Firstly thank you all for reading this email, I hope you can help me,
I'm starting with struts.

I want to do something as simple as 2 links to pass control to 2
different JPS.
as follows.

        <html:link action=""> Hello </ html: link>
        <html:link action=""> Bye </ html: link>

In struts-conf.xml have defined the following action-mappings and
global-forwards

    <global-forwards>
        <forward name="welcome" path="/Welcome.do"/>
        <forward name="sayhello" path="/SayHello.do"/>
        <forward name="saygoodbye" path="/SayGoodBye.do"/>
    </ global-forwards>

    <action-mappings>
        <action path="/Welcome" forward="/welcomeStruts.jsp"/>
        <action path="/SayHello" forward="/WEB-INF/hello.jsp"/>
        <action path="/SayGoodBye" forward="/WEB-INF/bye.jsp"/>
    </ action-mappings>

And the end result is an exception type

javax.servlet.ServletException: Could not initialize class
org.apache.jasper.runtime.BodyContentImpl

I believed that this would work, otherwise I did not understand how
struts work.
Someone can tell me if my fault or failure of a dependency?

Tnks for all :)
--
GPG Public Key: http://sync.es/seguridad/Jesus_Sync.asc
Key fingerprint = 8FFC 19B4 5F81 FC66 965C ACCA 01F6 2DA0 8BBA 51EC
--


    

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

  


--
Jesús Gallardo

Jefe de Proyecto Sync.es
Tlf: 671 - 51 - 53 - 75
http://www.sync.es
--
GPG Public Key: http://sync.es/seguridad/Jesus_Sync.asc
Key fingerprint = 8FFC 19B4 5F81 FC66 965C ACCA 01F6 2DA0 8BBA 51EC
--
excepción

org.apache.jasper.JasperException: Could not initialize class 
org.apache.jasper.runtime.BodyContentImpl
        
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
        
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:802)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
        
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
        java.security.AccessController.doPrivileged(Native Method)
        java.security.AccessController.doPrivileged(Native Method)
        
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
        
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
        
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
        
org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:345)
        
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:572)
        
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
        
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
        java.security.AccessController.doPrivileged(Native Method)
        java.security.AccessController.doPrivileged(Native Method)
        
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:686)
        
org.apache.jasper.runtime.PageContextImpl.access$1000(PageContextImpl.java:64)
        
org.apache.jasper.runtime.PageContextImpl$11.run(PageContextImpl.java:643)
        java.security.AccessController.doPrivileged(Native Method)
        
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:641)
        org.apache.jsp.index_jsp._jspService(index_jsp.java:46)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        
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:802)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
        
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)

causa raíz

javax.servlet.ServletException: Could not initialize class 
org.apache.jasper.runtime.BodyContentImpl
        
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
        
org.apache.jasper.runtime.PageContextImpl.access$1100(PageContextImpl.java:64)
        
org.apache.jasper.runtime.PageContextImpl$12.run(PageContextImpl.java:761)
        java.security.AccessController.doPrivileged(Native Method)
        
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:759)
        org.apache.jsp.welcomeStruts_jsp._jspService(welcomeStruts_jsp.java:79)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        
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:802)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
        
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
        java.security.AccessController.doPrivileged(Native Method)
        java.security.AccessController.doPrivileged(Native Method)
        
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
        
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
        
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
        
org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:345)
        
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:572)
        
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
        
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
        java.security.AccessController.doPrivileged(Native Method)
        java.security.AccessController.doPrivileged(Native Method)
        
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:686)
        
org.apache.jasper.runtime.PageContextImpl.access$1000(PageContextImpl.java:64)
        
org.apache.jasper.runtime.PageContextImpl$11.run(PageContextImpl.java:643)
        java.security.AccessController.doPrivileged(Native Method)
        
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:641)
        org.apache.jsp.index_jsp._jspService(index_jsp.java:46)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        
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:802)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
        
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)

causa raíz

java.lang.NoClassDefFoundError: Could not initialize class 
org.apache.jasper.runtime.BodyContentImpl
        
org.apache.jasper.runtime.PageContextImpl.pushBody(PageContextImpl.java:705)
        
org.apache.jasper.runtime.PageContextImpl.pushBody(PageContextImpl.java:695)
        
org.apache.jsp.welcomeStruts_jsp._jspx_meth_html_005flink_005f0(welcomeStruts_jsp.java:261)
        
org.apache.jsp.welcomeStruts_jsp._jspx_meth_html_005fhtml_005f0(welcomeStruts_jsp.java:125)
        org.apache.jsp.welcomeStruts_jsp._jspService(welcomeStruts_jsp.java:71)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        
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:802)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
        
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
        java.security.AccessController.doPrivileged(Native Method)
        java.security.AccessController.doPrivileged(Native Method)
        
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
        
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
        
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
        
org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:345)
        
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:572)
        
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
        
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
        java.security.AccessController.doPrivileged(Native Method)
        java.security.AccessController.doPrivileged(Native Method)
        
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:686)
        
org.apache.jasper.runtime.PageContextImpl.access$1000(PageContextImpl.java:64)
        
org.apache.jasper.runtime.PageContextImpl$11.run(PageContextImpl.java:643)
        java.security.AccessController.doPrivileged(Native Method)
        
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:641)
        org.apache.jsp.index_jsp._jspService(index_jsp.java:46)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        
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:802)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
        
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to