You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by WongTseng <wa...@gmail.com> on 2006/12/04 04:08:13 UTC

[S2]Could not find or error in struts.properties

I am a newbie to Strus2, and I have just set up a Struts2 project of blank
example. When I start the web container, it throws an exception.

java.lang.IllegalStateException: struts.properties missing
    at org.apache.struts2.config.PropertiesSettings.<init>(
PropertiesSettings.java:49)
    at org.apache.struts2.config.DefaultSettings.<init>(DefaultSettings.java
:52)

the directory structure is as follow:
WEB-INF
     |----web.xml
     |----struts.properties
     |----applicationContext.xml
     |----class
     |        |----struts.xml
     |        |----example.xml
     |----example
              |----Login-validation.xml
              |----package.properties
              |----package_es.properties

I just don't know where these xml files should be correctly located. The
struts2 is rather webwork than Struts,so don't know how  to deal with it.
Any help is userful to me.
-- 
Wong Tseng
王曾

Re: [S2]Could not find or error in struts.properties

Posted by WongTseng <wa...@gmail.com>.
thanks s lot.

2006/12/4, Don Brown <do...@gmail.com>:
>
> struts.properties goes in WEB-INF/classes  In the next version, 2.0.2,
> it is completely optional.
>
> Don
>
> On 12/3/06, WongTseng <wa...@gmail.com> wrote:
> > I am a newbie to Strus2, and I have just set up a Struts2 project of
> blank
> > example. When I start the web container, it throws an exception.
> >
> > java.lang.IllegalStateException: struts.properties missing
> >     at org.apache.struts2.config.PropertiesSettings.<init>(
> > PropertiesSettings.java:49)
> >     at org.apache.struts2.config.DefaultSettings.<init>(
> DefaultSettings.java
> > :52)
> >
> > the directory structure is as follow:
> > WEB-INF
> >      |----web.xml
> >      |----struts.properties
> >      |----applicationContext.xml
> >      |----class
> >      |        |----struts.xml
> >      |        |----example.xml
> >      |----example
> >               |----Login-validation.xml
> >               |----package.properties
> >               |----package_es.properties
> >
> > I just don't know where these xml files should be correctly located. The
> > struts2 is rather webwork than Struts,so don't know how  to deal with
> it.
> > Any help is userful to me.
> > --
> > Wong Tseng
> > 王曾
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Wong Tseng
王曾

Re: [S2]Could not find or error in struts.properties

Posted by Don Brown <do...@gmail.com>.
struts.properties goes in WEB-INF/classes  In the next version, 2.0.2,
it is completely optional.

Don

On 12/3/06, WongTseng <wa...@gmail.com> wrote:
> I am a newbie to Strus2, and I have just set up a Struts2 project of blank
> example. When I start the web container, it throws an exception.
>
> java.lang.IllegalStateException: struts.properties missing
>     at org.apache.struts2.config.PropertiesSettings.<init>(
> PropertiesSettings.java:49)
>     at org.apache.struts2.config.DefaultSettings.<init>(DefaultSettings.java
> :52)
>
> the directory structure is as follow:
> WEB-INF
>      |----web.xml
>      |----struts.properties
>      |----applicationContext.xml
>      |----class
>      |        |----struts.xml
>      |        |----example.xml
>      |----example
>               |----Login-validation.xml
>               |----package.properties
>               |----package_es.properties
>
> I just don't know where these xml files should be correctly located. The
> struts2 is rather webwork than Struts,so don't know how  to deal with it.
> Any help is userful to me.
> --
> Wong Tseng
> 王曾
>

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


RE: [S2]Could not find or error in struts.properties

Posted by "shibing.chen" <sh...@ebaotech.com>.
Remove the struts.properties file located in WEB-INF to
classes dir.

陈仕兵
LifeSystem CS, IT Application Developer
Great Eastern Life Assurance (China) Co. Ltd.
Tel: 86-021-61407777 Ext 2405
      86-021-28065394
Fax: 86-23-63885566
-----Original Message-----
From: WongTseng [mailto:wangzengverycool@gmail.com] 
Sent: Monday, December 04, 2006 11:08 AM
To: Struts Users Mailing List
Subject: [S2]Could not find or error in struts.properties

I am a newbie to Strus2, and I have just set up a Struts2 project of blank
example. When I start the web container, it throws an exception.

java.lang.IllegalStateException: struts.properties missing
    at org.apache.struts2.config.PropertiesSettings.<init>(
PropertiesSettings.java:49)
    at org.apache.struts2.config.DefaultSettings.<init>(DefaultSettings.java
:52)

the directory structure is as follow:
WEB-INF
     |----web.xml
     |----struts.properties
     |----applicationContext.xml
     |----class
     |        |----struts.xml
     |        |----example.xml
     |----example
              |----Login-validation.xml
              |----package.properties
              |----package_es.properties

I just don't know where these xml files should be correctly located. The
struts2 is rather webwork than Struts,so don't know how  to deal with it.
Any help is userful to me.
-- 
Wong Tseng
王曾


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