You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by Ignacio Enriquez <na...@gmail.com> on 2009/09/07 09:32:35 UTC

[NEWBIE] Exception sending context initialized event to listener instance of class org.apache.struts2.tiles.StrutsTilesListener

Hi,

I am just learning tiles 2 for a project I have.
I am using Eclipse Galileo and I got the following error when I try to
run the simplest tiles example in Tomcat.

Exception sending context initialized event to listener instance of
class org.apache.struts2.tiles.StrutsTilesListener

I am really having a hard time starting with this.
(This is my app exported as a war file
http://files.me.com/nacho4d/u1gn57 in case of needed)

I hope somebody can help me.

Any response is very appreciated.
thanks

Ignacio

BTW: In Google found that I have the same symptoms as this guy:
http://forums.java.net/jive/thread.jspa?messageID=314820

Re: [NEWBIE] Exception sending context initialized event to listener instance of class org.apache.struts2.tiles.StrutsTilesListener

Posted by Antonio Petrelli <an...@gmail.com>.
2009/9/8 Ignacio Enriquez <na...@gmail.com>:
> I actually found the reason and solved it.
> I have noticed that actually there is no recent documentation for
> using struts 2.1.6  with Tiles 2.2.0 plugin (At least not Info I
> found)

Well, Tiles 2.2.0 is in alpha stage, so it is reasonable that there is
no documentation for using Struts 2 + Tiles 2.2.0.
I must admit that the Struts 2/Tiles 2 plugin does not work well with
Tiles 2.1.x either, but this is a problem of the Struts team (you
maybe want to contact the Struts Users mailing list).

>
> I was trying to do the simple product input form application and I
> didn't know I was  supposed to add
>
> commons-beanutils-VERSION.jar
> commons-collections-VERSION.jar
> commons-digest-VERSION.jar
>
>  besides
> tiles-api-VERSION.jar
> tiles-core-VERSION.jar
> tiles-servlet-VERSION.jar
> tiles-jsp-VERSION.jar

Eh...
http://tiles.apache.org/framework/getting_started.html
Try Maven, with it your dependencies will be automatically resolved.

> And Besides:
> THERES IS A BUG WITH TILES PLUGIN
> THE PROJECT IN ECLIPSE WILL NOT IF YOU HAVE BLANK SPACES IN YOUR
> WORKSPACE PATH!!!

Gulp! What error do you receive?

Antonio

Re: [NEWBIE] Exception sending context initialized event to listener instance of class org.apache.struts2.tiles.StrutsTilesListener

Posted by Ignacio Enriquez <na...@gmail.com>.
Thanks for your fast reply.

I actually found the reason and solved it.
I have noticed that actually there is no recent documentation for
using struts 2.1.6  with Tiles 2.2.0 plugin (At least not Info I
found)

I was trying to do the simple product input form application and I
didn't know I was  supposed to add

commons-beanutils-VERSION.jar
commons-collections-VERSION.jar
commons-digest-VERSION.jar

 besides
tiles-api-VERSION.jar
tiles-core-VERSION.jar
tiles-servlet-VERSION.jar
tiles-jsp-VERSION.jar

And Besides:
THERES IS A BUG WITH TILES PLUGIN
THE PROJECT IN ECLIPSE WILL NOT IF YOU HAVE BLANK SPACES IN YOUR
WORKSPACE PATH!!!
This is the second time I found a bug like this in apache projects.
I also found the same bug in Hadoop APIs.



It took me like 3 hours to discover this.



On Mon, Sep 7, 2009 at 4:53 PM, Antonio
Petrelli<an...@gmail.com> wrote:
> 2009/9/7 Ignacio Enriquez <na...@gmail.com>:
>> I am just learning tiles 2 for a project I have.
>> I am using Eclipse Galileo and I got the following error when I try to
>> run the simplest tiles example in Tomcat.
>
> What example? What version of Struts and Tiles are you using?
>
>> Exception sending context initialized event to listener instance of
>> class org.apache.struts2.tiles.StrutsTilesListener
>
> Please post the complete stack trace.
>
> Antonio
>



-- 
________________________________
慶應義塾大学大学院 理工学研究科
開放環境科学専攻 斎藤英雄研究室
修士1年 Guillermo Ignacio Enriquez G.
e-mail :  nacho4d@hvrl.ics.keio.ac.jp
________________________________
_____________________________________________

Re: [NEWBIE] Exception sending context initialized event to listener instance of class org.apache.struts2.tiles.StrutsTilesListener

Posted by Antonio Petrelli <an...@gmail.com>.
2009/9/7 Ignacio Enriquez <na...@gmail.com>:
> I am just learning tiles 2 for a project I have.
> I am using Eclipse Galileo and I got the following error when I try to
> run the simplest tiles example in Tomcat.

What example? What version of Struts and Tiles are you using?

> Exception sending context initialized event to listener instance of
> class org.apache.struts2.tiles.StrutsTilesListener

Please post the complete stack trace.

Antonio