struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Antonio Delgado Trujillo <jadt...@gmail.com>
Subject Unable to load configuration
Date Tue, 07 Jun 2016 21:10:26 GMT
I have been wasted all this afternoon with a strange error.

My app only have an action called VerySimpleAction.
I configured in the struts.xml

-------------------------------------

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE struts PUBLIC

        "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"

        "http://struts.apache.org/dtds/struts-2.3.dtd">

<struts>

<constant name="struts.enable.DynamicMethodInvocation" value="false" />

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

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

<action name="verysimple" class="pfc.struts2.example.VerySimpleAction">

<result name="success" type="dispatcher">/WEB-INF/jsps/verysimple.jsp</
result>

</action>

</package>

</struts>

-------------------------

I deployed in the wildly server and i put in the browser:

localhost:8080/example/verysimple.action


I found the strange error.


--------------------------------------
Context Path:
/example


Servlet Path:
/verysimple.action


Path Info:
null


Query String:
null


*Stack Trace*
Unable to load configuration. - action -
vfs:/Users/jdeltru/PFC/wildfly-10.0.0.Final/standalone/deployments/example.war/WEB-INF/classes/struts.xml:9:74
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:491)

------------------------------


9:74 ---> is the line of the action name and class are correctly

Why?

The action class exist in the package pfc.struts2.example




Un saludo,
José A.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message