struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emil Lundberg <>
Subject Re: Is my struts.xml never read?
Date Tue, 23 Sep 2008 16:11:52 GMT
Yes, it is configured to intercept all requests, and I wouldn't get a 
Struts error message if the FilterDispatcher didn't launch, would I?

And I did post my struts.xml and the URL, but Mr. Dave didn't include it 
in his reply. Both http://localhost/home.action and 
http://localhost/random.action return the same error message, see my 
first post.

<?xml version="1.0" encoding="UTF-8"?>
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    <constant name="struts.devMode" value="true" />
    <package name="default" namespace="/" extends="struts-default">
        <action name="home" class="my.package.web.struts.action.HomeAction">
        <action name="random" 
------end struts.xml------

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" 
---------end web.xml---------

Carlos Luis Zúñiga Sibaja wrote:
> Is the Struts Dispatcher configured in your web.xml to intercept all
> requests?
> Carlos Luis Zúñiga Sibaja
> __________________________
> divide et impera...
Alberto A. Flores wrote:
> please post your struts.xml and the url you are trying to hit. Your web.xml
> relevant part will also behelpful ...
> On Mon, Sep 22, 2008 at 5:43 PM, Emil Lundberg <>wrote:
>> That's strange... When i set <constant name="struts.devMode" value="true"
>> /> in struts.xml, struts goes into devMode, but still doesn't find my action
>> mappings. Did I do something wrong? I've worked with struts before but I
>> just can't seem to get this right for some reason... Could it have something
>> to do with that I'm not using Spring yet in this project?
>> /Emil
>> Dave Newton wrote:
>>> --- On Mon, 9/22/08, Emil Lundberg <> wrote:
>>>> I'm having a problem with Struts2 in Eclipse. I've
>>>> set all the JARs up and the FilterDispatcher launches
>>>> properly. The problem is that it seems my struts.xml is never read,
>>>> because I keep getting a message saying "There is no Action mapped for
>>>> namespace / and action
>>>> name home. - [unknown location]" when trying to access
>>>> http://localhost/home.action (yes, Tomcat is configured to port 80).
>>>> I've searched all over for a week or so but I still haven't found a
>>>> solution. I think the problem is where I put struts.xml or some
>>>> configuration somewhere.
>>> Are you deploying it to the root application context?
>>> If you put struts.xml at the root of your source directory it should be
>>> deployed properly.
>>> If you haven't already, turn on devMode. You can also set the XWork and S2
>>> logging to DEBUG to get more of an idea what's happening with the
>>> configuration.
>>> Dave
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:
>>> For additional commands, e-mail:
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message