You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave Newton <ne...@yahoo.com> on 2008/02/13 19:54:13 UTC

[OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

Please reply to the struts-user mailing list.

--- Alvaro Ernesto Gomez Cerna <ag...@ss.sertracen.com.sv> wrote:
> In directory web-inf\lib found
>  freemarker-2.3.8.jar
>  ognl-2.6.11.jar
>  strust.jar
>  strust2-core-2.0.11.jar
>  xwork-2.0.4.jar
> 
> Others directory web-inf
>  strust-tags.tld

You need to set up JDeveloper to associate those libraries with your project
so the compiler will use them.

The struts-tags.tld file, btw, should probably not be extracted unless you
have modified it in some way. (And are they really all named wrong, or is
that just a persistent typo?)

Dave


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


RE: [OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

Posted by Alvaro Ernesto Gomez Cerna <ag...@ss.sertracen.com.sv>.
It's compiling 0 errors, 0 warnings, 
When running in explorer present next error:

500 Internal Server Error

The Struts dispatcher cannot be found.  This is usually caused by using Struts
tags without the associated filter. Struts tags are only usable when the request
has passed through its servlet filter, which initializes the Struts dispatcher
needed for this tag. - [unknown location]
	at com.opensymphony.xwork2.XWorkException.<init>(XWorkException.java:35)
	at
com.opensymphony.xwork2.config.ConfigurationException.<init>(ConfigurationExcept
ion.java:30)
	at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:60)
	at
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.
java:52)
	at
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.
java:49)
	at _login._jspService(_login.java:47)
	[/login.jsp]
	at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0)
].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)
	at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)
	at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
	at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
	at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.
java:376)
	at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
	at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
	at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
	at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
	at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
	at
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHan
dler.java:260)
	at
oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAccep
tHandler.java:230)
	at
oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandl
er.java:33)
	at
oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocke
tAcceptHandler.java:831)
	at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExe
cutor.java:298)
	at java.lang.Thread.run(Thread.java:595)
 

-----Mensaje original-----
De: Dave Newton [mailto:newton.dave@yahoo.com] 
Enviado el: Miércoles, 13 de Febrero de 2008 12:54 p.m.
Para: agomez@ss.sertracen.com.sv; Struts Users Mailing List
CC: Chris Brown
Asunto: [OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

Please reply to the struts-user mailing list.

--- Alvaro Ernesto Gomez Cerna <ag...@ss.sertracen.com.sv> wrote:
> In directory web-inf\lib found
>  freemarker-2.3.8.jar
>  ognl-2.6.11.jar
>  strust.jar
>  strust2-core-2.0.11.jar
>  xwork-2.0.4.jar
> 
> Others directory web-inf
>  strust-tags.tld

You need to set up JDeveloper to associate those libraries with your project so
the compiler will use them.

The struts-tags.tld file, btw, should probably not be extracted unless you have
modified it in some way. (And are they really all named wrong, or is that just a
persistent typo?)

Dave


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


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


RE: [OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

Posted by Alvaro Ernesto Gomez Cerna <ag...@ss.sertracen.com.sv>.
Others problem is when attachemt objets in page jsp display en log next message:
---
Error exercising tag : s:form
The Struts dispatcher cannot be found.  This is usually caused by using Struts
tags without the associated filter. Struts tags are only usable when the request
has passed through its servlet filter, which initializes the Struts dispatcher
needed for this tag. - [unknown location]
	at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:60)
	at
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.
java:52)
	at
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.
java:49)
	at
oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.doStartTag(De
signTimeJspActionRenderer.java:1317)
	at
oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer._executeTag(D
esignTimeJspActionRenderer.java:1639)
	at
oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.render(Design
TimeJspActionRenderer.java:245)
	at
oracle.jdevimpl.webapp.design.DesignTimeRenderer.renderChildren(DesignTimeRender
er.java:424)
	at
oracle.jdevimpl.webapp.design.DesignTimeRenderer.render(DesignTimeRenderer.java:
311)
	at
oracle.jdevimpl.webapp.design.DesignTimeRenderer.renderChildren(DesignTimeRender
er.java:428)
	at
oracle.jdevimpl.webapp.design.DesignTimeRenderer.render(DesignTimeRenderer.java:
311)
	at
oracle.jdevimpl.webapp.design.DesignTimeRenderer.renderChildren(DesignTimeRender
er.java:428)
	at
oracle.jdevimpl.webapp.jsp.renderers.JSPCoreSyntaxRenderer.render(JSPCoreSyntaxR
enderer.java:82)
	at
oracle.jdevimpl.webapp.design.support.jsp.DesignTimeJspServlet._renderSource(Des
ignTimeJspServlet.java:197)
	at
oracle.jdevimpl.webapp.design.support.jsp.DesignTimeJspServlet.serviceJsp(Design
TimeJspServlet.java:109)
	at
oracle.jdevimpl.webapp.design.support.jsp.DesignTimeJspServlet.service(DesignTim
eJspServlet.java:73)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at
oracle.jdevimpl.webapp.design.support.http.DesignTimeServletInfo.service(DesignT
imeServletInfo.java:268)
	at
oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher$DesignTim
eFilterChain.doFilter(DesignTimeRequestDispatcher.java:307)
	at
oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher.dispatch(
DesignTimeRequestDispatcher.java:193)
	at
oracle.jdevimpl.webapp.design.support.http.DesignTimeServletContainerContext._se
rvice(DesignTimeServletContainerContext.java:611)
	at
oracle.jdevimpl.webapp.design.support.http.DesignTimeServletContainerContext.ser
vice(DesignTimeServletContainerContext.java:570)
	at
oracle.jdevimpl.webapp.design.DesignTimeRenderThread.runImpl(DesignTimeRenderThr
ead.java:264)
	at
oracle.jdevimpl.webapp.design.DesignTimeThread.run(DesignTimeThread.java:147)

Mi web.xml is:
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>

    <filter>
        <filter-name>strust2</filter-name>
 
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>strust2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
            <param-name>config</param-name>
            <param-value>/WEB-INF/struts-config.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
        <extension>html</extension>
        <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
        <extension>txt</extension>
        <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
        <welcome-file>/login.jsp</welcome-file>
    </welcome-file-list>
    <jsp-config/>
</web-app>
 

-----Mensaje original-----
De: Alvaro Ernesto Gomez Cerna [mailto:agomez@ss.sertracen.com.sv] 
Enviado el: Miércoles, 13 de Febrero de 2008 01:37 p.m.
Para: 'Struts Users Mailing List'
Asunto: RE: [OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

Thank ok, running sin problem.
You one example developing in jdeveloper for reference
 

-----Mensaje original-----
De: Allen, Daniel [mailto:Daniel.Allen@kbcfp.com] Enviado el: Miércoles, 13 de
Febrero de 2008 01:21 p.m.
Para: Struts Users Mailing List; agomez@ss.sertracen.com.sv
Asunto: RE: [OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

Have you, in fact, added the struts2 filter to your web.xml?

If not, drop the following in:
	<filter>
    		<filter-name>struts2</filter-name>
	
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-cla
ss>
	</filter>

	<filter-mapping>
		<filter-name>struts2</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

~Dan Allen

--
This message may contain confidential, proprietary, or legally privileged
information. No confidentiality or privilege is waived by any transmission to an
unintended recipient. If you are not an intended recipient, please notify the
sender and delete this message immediately. Any views expressed in this message
are those of the sender, not those of any entity within the KBC Financial
Products group of companies (together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise, on the
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a
recommendation to buy or sell, any financial product. Any prices or other values
included in this message are indicative only, and do not necessarily represent
current market prices, prices at which KBC FP would enter into a transaction, or
prices at which similar transactions may be carried on KBC FP's own books. The
information contained in this message is provided "as is", without
representations or warranties, express or implied, of any kind. Past performance
is not indicative of future returns.


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


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


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


RE: [OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

Posted by Alvaro Ernesto Gomez Cerna <ag...@ss.sertracen.com.sv>.
Thank ok, running sin problem.
You one example developing in jdeveloper for reference
 

-----Mensaje original-----
De: Allen, Daniel [mailto:Daniel.Allen@kbcfp.com] 
Enviado el: Miércoles, 13 de Febrero de 2008 01:21 p.m.
Para: Struts Users Mailing List; agomez@ss.sertracen.com.sv
Asunto: RE: [OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

Have you, in fact, added the struts2 filter to your web.xml?

If not, drop the following in:
	<filter>
    		<filter-name>struts2</filter-name>
	
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-cla
ss>
	</filter>

	<filter-mapping>
		<filter-name>struts2</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

~Dan Allen

--
This message may contain confidential, proprietary, or legally privileged
information. No confidentiality or privilege is waived by any transmission to an
unintended recipient. If you are not an intended recipient, please notify the
sender and delete this message immediately. Any views expressed in this message
are those of the sender, not those of any entity within the KBC Financial
Products group of companies (together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise, on the
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a
recommendation to buy or sell, any financial product. Any prices or other values
included in this message are indicative only, and do not necessarily represent
current market prices, prices at which KBC FP would enter into a transaction, or
prices at which similar transactions may be carried on KBC FP's own books. The
information contained in this message is provided "as is", without
representations or warranties, express or implied, of any kind. Past performance
is not indicative of future returns.


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


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


RE: [OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

Posted by "Allen, Daniel" <Da...@kbcfp.com>.
Have you, in fact, added the struts2 filter to your web.xml?

If not, drop the following in:
	<filter>
    		<filter-name>struts2</filter-name>
	
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-cla
ss>
	</filter>

	<filter-mapping>
		<filter-name>struts2</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

~Dan Allen

-- 
This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.


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


RE: [OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

Posted by Alvaro Ernesto Gomez Cerna <ag...@ss.sertracen.com.sv>.
It's code page

<%@ taglib prefix="s" uri="/struts-tags" %>

<html>
    <head>
        <title>Hello World!</title>
    </head>
    <body>
        <h2><s:property value="message" /></h2>
    </body>
</html>

 

-----Mensaje original-----
De: Dave Newton [mailto:newton.dave@yahoo.com] 
Enviado el: Miércoles, 13 de Febrero de 2008 12:54 p.m.
Para: agomez@ss.sertracen.com.sv; Struts Users Mailing List
CC: Chris Brown
Asunto: [OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

Please reply to the struts-user mailing list.

--- Alvaro Ernesto Gomez Cerna <ag...@ss.sertracen.com.sv> wrote:
> In directory web-inf\lib found
>  freemarker-2.3.8.jar
>  ognl-2.6.11.jar
>  strust.jar
>  strust2-core-2.0.11.jar
>  xwork-2.0.4.jar
> 
> Others directory web-inf
>  strust-tags.tld

You need to set up JDeveloper to associate those libraries with your project so
the compiler will use them.

The struts-tags.tld file, btw, should probably not be extracted unless you have
modified it in some way. (And are they really all named wrong, or is that just a
persistent typo?)

Dave


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


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