Hello!

I'm starting with AppFuse 2.0.1 (used to work on 1.9.8) and I've encountered
following error while trying to create basic Spring MVC web-app (error
occured during executing mvn jetty:run goal) :

(...) ERROR [main] ContextLoader.initWebApplicationContext(206) | Context
initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from ServletContext resource [/WEB-INF/xfir
e-servlet.xml]; nested exception is java.io.FileNotFoundException: Could not
open ServletContext resource [/WEB-INF/xfire-servlet.xml]
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
(XmlBeanDefinitionReader.java:320)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
(XmlBeanDefinitionReader.java:290)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
(AbstractBeanDefinitionReader.java:142)

Well, I tried to find out the solution to my problem on the web, but I
couldn't. I've found somewhere "xfire-servlet.xml" and successfully  placed
it into  appropriate directory, but then I had similar problem with "
security.xml" file. This one was harder to find and even harder to make
work. So in the end I gave up, cause I think I must have been doing
something wrong, since this is totally basic thing, and according to
tutorial - everything should work right. Any ideas what shall I do? Where
can I find info about creating those two files by myself?

One remark:
I used following command to create my app's skeleton :

mvn archetype:create
-DarchetypeGroupId=org.appfuse.archetypes-DarchetypeArtifactId=appfuse-basic-spring
-DremoteRepositories=
http://static.appfuse.org/releases
-DarchetypeVersion=2.0.1-DgroupId=PackageName -DartifactId=MyAppsName

where of course PackageName and MyAppsName where properly provided.

This is the content of my src/main/webapp/WEB-INF directory right after the
error occured (before digging through the web and downloading missing
*.xmls):

2007-12-05  20:26    <DIR>          .
2007-12-05  20:26    <DIR>          ..
2007-12-05  20:26               905 applicationContext-validation.xml
2007-12-05  20:26               406 applicationContext.xml
2007-12-05  20:26             4 630 dispatcher-servlet.xml
2007-12-05  20:26             1 242 menu-config.xml
2007-12-05  20:26               549 urlrewrite.xml
2007-12-05  20:26             4 947 validation.xml
2007-12-05  20:26             2 659 validator-rules-custom.xml
2007-12-05  20:26            41 584 validator-rules.xml
2007-12-05  20:26             9 635 web.xml
               9 plik(ów)          66 557 bajtów
               2 katalog(ów)     455 462 912 bajtów wolnych

Best regards to all AppFuse Users!

Cheers.

Reply via email to