You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mick_ <ru...@gmail.com> on 2009/04/08 21:50:43 UTC

struts2-showcase on OC4J

I am trying to deploy the struts2-showcase but when I try to access the
application I get the error below. Any ideas about how I can get it working?

500 Internal Server Error

Servlet error: An exception occurred. The current application deployment
descriptors do not allow for including it in this response. Please consult
the application log for details.
-- 
View this message in context: http://www.nabble.com/struts2-showcase-on-OC4J-tp22957615p22957615.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: struts2-showcase on OC4J

Posted by Musachy Barroso <mu...@gmail.com>.
This error you are getting, we have seen it with other containers, and
it should be fixed in trunk xwork  (you can build it yourself, or grab
a snapshot). Try setting this in your struts.xml file:

<constant name="struts.devMode" value="false" />

musachy

On Wed, Apr 8, 2009 at 6:19 PM, Mick_ <ru...@gmail.com> wrote:
>
>
>
> Nils-Helge Garli wrote:
>>
>> And what does the application log say?
>>
> Here is the pertinent data from the logs:
>
> 09/04/08 18:04:41.468 struts2-showcase-2.1.6: Servlet error
> java.lang.NullPointerException
>    at
> com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209)
>    at
> com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:60)
>    at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:325)
>    at
> org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:168)
>    at
> com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:220)
>    at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:61)
>    at
> org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:774)
>    at
> org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.java:74)
>    at
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.doFilter(StrutsPrepareFilter.java:59)
>    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher
>    .java:621)
>    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher
>    .java:370)
>    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler
>    .java:871)
>    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler
>    .java:453)
>    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler
>    .java:221)
>    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
>    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
>    at
> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
>    at
> oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
>    at
> oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
>    at
> oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
>    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor
>    .java:303)
>    at java.lang.Thread.run(Thread.java:619)
>
> --
> View this message in context: http://www.nabble.com/struts2-showcase-on-OC4J-tp22957615p22960839.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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


Re: struts2-showcase on OC4J

Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/4/9 Mick_ <ru...@gmail.com>:
> Here is the pertinent data from the logs:
>
> 09/04/08 18:04:41.468 struts2-showcase-2.1.6: Servlet error
> java.lang.NullPointerException
>    at
> com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209)
>    at
> com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:60)

I think it's related to that bug [1], I added support for
"code-source:" but I don't know if it's enough, could you download the
latest build from here [2] and check?

[1] http://jira.opensymphony.com/browse/XW-669
[2] http://www.lenart.org.pl/maven/com/opensymphony/xwork/


Regards
-- 
Lukasz
http://www.lenart.org.pl/

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


Re: struts2-showcase on OC4J

Posted by Musachy Barroso <mu...@gmail.com>.
I am sorry but that makes no sense.

musachy

On Wed, Apr 8, 2009 at 8:40 PM, Martin Gainty <mg...@hotmail.com> wrote:
>
> //PrepareOperations.findActionMapping method contains this hardcoded lookup
> struts.actionMapping
>
> //PrepareInterceptor has this Action class mapping
>
> <struts.actionMapping>
> <class>class org.apache.struts2.dispatcher.mapper.ActionMapping</class>
> <name>showcase</name>
> <namespace>/</namespace>
> </struts.actionMapping>
>
> //so in your /WEB-INF/classes/struts-default.xml you would need to change
> //the action name to struts.actionMapping as here
>
>    <package name="example" namespace="/example" extends="struts-default">
>
> <!-- the package.classname needs to match yours-->
>        <action name="struts.actionMapping" class="example.HelloWorld">
>            <result>/example/HelloWorld.jsp</result>
> <!-- exact location /example/HelloWorld.jsp needs to be pathed accordingly -->
>        </action>
> Martin
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>
>
>> Date: Wed, 8 Apr 2009 15:19:45 -0700
>> From: ruaspammer@gmail.com
>> To: user@struts.apache.org
>> Subject: Re: struts2-showcase on OC4J
>>
>>
>>
>>
>> Nils-Helge Garli wrote:
>> >
>> > And what does the application log say?
>> >
>> Here is the pertinent data from the logs:
>>
>> 09/04/08 18:04:41.468 struts2-showcase-2.1.6: Servlet error
>> java.lang.NullPointerException
>>     at
>> com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209)
>>     at
>> com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:60)
>>     at
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:325)
>>     at
>> org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:168)
>>     at
>> com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:220)
>>     at
>> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:61)
>>     at
>> org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:774)
>>     at
>> org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.java:74)
>>     at
>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.doFilter(StrutsPrepareFilter.java:59)
>>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
>> ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher
>>     .java:621)
>>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
>> ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher
>>     .java:370)
>>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
>> ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler
>>     .java:871)
>>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
>> ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler
>>     .java:453)
>>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
>> ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler
>>     .java:221)
>>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
>> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
>>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
>> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
>>     at
>> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
>>     at
>> oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
>>     at
>> oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
>>     at
>> oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
>>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
>> ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor
>>     .java:303)
>>     at java.lang.Thread.run(Thread.java:619)
>>
>> --
>> View this message in context: http://www.nabble.com/struts2-showcase-on-OC4J-tp22957615p22960839.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
> _________________________________________________________________
> Rediscover Hotmail®: Now available on your iPhone or BlackBerry
> http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Mobile1_042009



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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


RE: struts2-showcase on OC4J

Posted by Martin Gainty <mg...@hotmail.com>.
//PrepareOperations.findActionMapping method contains this hardcoded lookup
struts.actionMapping

//PrepareInterceptor has this Action class mapping

<struts.actionMapping>
<class>class org.apache.struts2.dispatcher.mapper.ActionMapping</class> 
<name>showcase</name> 
<namespace>/</namespace> 
</struts.actionMapping>

//so in your /WEB-INF/classes/struts-default.xml you would need to change
//the action name to struts.actionMapping as here 

    <package name="example" namespace="/example" extends="struts-default">

<!-- the package.classname needs to match yours-->
        <action name="struts.actionMapping" class="example.HelloWorld">
            <result>/example/HelloWorld.jsp</result>
<!-- exact location /example/HelloWorld.jsp needs to be pathed accordingly -->
        </action>
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.






> Date: Wed, 8 Apr 2009 15:19:45 -0700
> From: ruaspammer@gmail.com
> To: user@struts.apache.org
> Subject: Re: struts2-showcase on OC4J
> 
> 
> 
> 
> Nils-Helge Garli wrote:
> > 
> > And what does the application log say?
> > 
> Here is the pertinent data from the logs:
> 
> 09/04/08 18:04:41.468 struts2-showcase-2.1.6: Servlet error
> java.lang.NullPointerException
>     at
> com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209)
>     at
> com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:60)
>     at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:325)
>     at
> org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:168)
>     at
> com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:220)
>     at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:61)
>     at
> org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:774)
>     at
> org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.java:74)
>     at
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.doFilter(StrutsPrepareFilter.java:59)
>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher
>     .java:621)
>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher
>     .java:370)
>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler
>     .java:871)
>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler
>     .java:453)
>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler
>     .java:221)
>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
>     at
> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
>     at
> oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
>     at
> oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
>     at
> oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
>     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
> ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor
>     .java:303)
>     at java.lang.Thread.run(Thread.java:619)
> 
> -- 
> View this message in context: http://www.nabble.com/struts2-showcase-on-OC4J-tp22957615p22960839.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
Rediscover Hotmail®: Now available on your iPhone or BlackBerry
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Mobile1_042009

Re: struts2-showcase on OC4J

Posted by Mick_ <ru...@gmail.com>.


Nils-Helge Garli wrote:
> 
> And what does the application log say?
> 
Here is the pertinent data from the logs:

09/04/08 18:04:41.468 struts2-showcase-2.1.6: Servlet error
java.lang.NullPointerException
    at
com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209)
    at
com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:60)
    at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:325)
    at
org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:168)
    at
com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:220)
    at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:61)
    at
org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:774)
    at
org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.java:74)
    at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.doFilter(StrutsPrepareFilter.java:59)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher
    .java:621)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher
    .java:370)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler
    .java:871)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler
    .java:453)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler
    .java:221)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    at
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at
oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at
oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at
oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0)
].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor
    .java:303)
    at java.lang.Thread.run(Thread.java:619)

-- 
View this message in context: http://www.nabble.com/struts2-showcase-on-OC4J-tp22957615p22960839.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: struts2-showcase on OC4J

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
> Servlet error: An exception occurred. The current application deployment
> descriptors do not allow for including it in this response. Please consult
> the application log for details.

And what does the application log say?

Nils-H

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