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


Reply via email to