You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by TNO <tn...@free.fr> on 2007/10/11 17:58:43 UTC
T5 : Pb with Spring integration with xml file from another JAR
Hi,
I can't find my beans !!! I try to get them from another jar. I found
the config files, the Spring logs seems OK, but when I inject my DAO,
exception !
here's my pb :
* java.lang.ClassNotFoundException
caught an exception while obtaining a class file for
org.atlog.mjweb.pages.Start
exception
org.apache.tapestry.internal.services.TransformationException:
Error obtaining injected value for field
org.atlog.mjweb.pages.Start.infoDAO: No service implements the
interface arc.db.auto.dao.InfoDAO.
Can you help me please...
here my web.xml
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Mj Web</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:/arc/db/config/application-context-arcdb.xml
classpath:/arc/db/config/application-context-arcdb-config.xml
</param-value>
</context-param>
<context-param>
<param-name>tapestry.app-package</param-name>
<param-value>org.atlog.mjweb</param-value>
</context-param>
<filter>
<filter-name>app</filter-name>
<filter-class>org.apache.tapestry.TapestryFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>app</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<welcome-file-list>
<welcome-file>Start</welcome-file>
</welcome-file-list>
</web-app>
And my java class :
public class Start extends BasePage {
private Info infoTitre;
public Start() {
super();
}
public List<Info> getListInfo() {
return infoDAO.getList();
}
@Inject
private InfoDAO infoDAO;
}
Thanks...
---
Antivirus avast! : message Sortant sain.
Base de donnees virale (VPS) : 000780-1, 10/10/2007
Analyse le : 11/10/2007 17:58:43
avast! - copyright (c) 1988-2007 ALWIL Software.
http://www.avast.com
Re: T5 : Pb with Spring integration with xml file from another JAR
Posted by Josh Canfield <jo...@thedailytube.com>.
Hi,
Have you looked at
http://tapestry.apache.org/tapestry5/tapestry-spring/index.html? It doesn't
look like you have the TapestrySpringFilter configured in your web.xml
Josh
On 10/11/07, TNO <tn...@free.fr> wrote:
>
> Hi,
>
> I can't find my beans !!! I try to get them from another jar. I found
> the config files, the Spring logs seems OK, but when I inject my DAO,
> exception !
> here's my pb :
>
> * java.lang.ClassNotFoundException
> caught an exception while obtaining a class file for
> org.atlog.mjweb.pages.Start
>
> exception
> org.apache.tapestry.internal.services.TransformationException:
> Error obtaining injected value for field
> org.atlog.mjweb.pages.Start.infoDAO: No service implements the
> interface arc.db.auto.dao.InfoDAO.
>
>
> Can you help me please...
>
> here my web.xml
>
> <web-app id="WebApp_ID" version="2.4"
> xmlns="http://java.sun.com/xml/ns/j2ee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
> <display-name>Mj Web</display-name>
>
> <context-param>
> <param-name>contextConfigLocation</param-name>
> <param-value>
> classpath:/arc/db/config/application-context-arcdb.xml
> classpath:/arc/db/config/application-context-arcdb-config.xml
> </param-value>
> </context-param>
>
> <context-param>
> <param-name>tapestry.app-package</param-name>
> <param-value>org.atlog.mjweb</param-value>
> </context-param>
>
> <filter>
> <filter-name>app</filter-name>
> <filter-class>org.apache.tapestry.TapestryFilter</filter-class>
> </filter>
>
> <filter-mapping>
> <filter-name>app</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
>
> <listener>
>
> <listener-class>org.springframework.web.context.ContextLoaderListener
> </listener-class>
> </listener>
>
> <welcome-file-list>
> <welcome-file>Start</welcome-file>
> </welcome-file-list>
> </web-app>
>
> And my java class :
>
> public class Start extends BasePage {
>
> private Info infoTitre;
>
> public Start() {
> super();
> }
>
> public List<Info> getListInfo() {
> return infoDAO.getList();
> }
>
> @Inject
> private InfoDAO infoDAO;
> }
>
> Thanks...
>
>
>
> ---
> Antivirus avast! : message Sortant sain.
> Base de donnees virale (VPS) : 000780-1, 10/10/2007
> Analyse le : 11/10/2007 17:58:43
> avast! - copyright (c) 1988-2007 ALWIL Software.
> http://www.avast.com
>
>
>
--
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.