Galera,
Tenho um projeto rodando em produção utilizando as seguintes ferramentas: SmartGWT, Spring e Maven.
Temos que separar o projeto em projeto interno e externo.
Todas as classes que são comum ao projeto colocamos em um projeto separado que chama projeto base. O projeto interno e externo herdam esse projeto base.
Agora que vem os problemas.
Toda classe que esta anotada como @Component esta no projeto base. Quando mando rodar a aplicação esta dando o seguinte erro:
437 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usuarioADDMIHandler' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [br.gov.cade.server.dmi.usuario.UsuarioADDMIHandler]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
The import org.springframework.ldap cannot be resolved
The import org.springframework.ldap cannot be resolved
LdapTemplate cannot be resolved to a type
LdapTemplate cannot be resolved to a type
AttributesMapper cannot be resolved to a type
The method mapFromAttributes(Attributes) of type new AttributesMapper(){} must override or implement a supertype method
LdapTemplate cannot be resolved to a type
AttributesMapper cannot be resolved to a type
The method mapFromAttributes(Attributes) of type new AttributesMapper(){} must override or implement a supertype method
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [br.gov.cade.server.dmi.usuario.UsuarioADDMIHandler]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
The import org.springframework.ldap cannot be resolved
The import org.springframework.ldap cannot be resolved
LdapTemplate cannot be resolved to a type
LdapTemplate cannot be resolved to a type
AttributesMapper cannot be resolved to a type
Caused by: java.lang.Error: Unresolved compilation problems:
The import org.springframework.ldap cannot be resolved
The import org.springframework.ldap cannot be resolved
LdapTemplate cannot be resolved to a type
LdapTemplate cannot be resolved to a type
AttributesMapper cannot be resolved to a type
The method mapFromAttributes(Attributes) of type new AttributesMapper(){} must override or implement a supertype method
LdapTemplate cannot be resolved to a type
AttributesMapper cannot be resolved to a type
The method mapFromAttributes(Attributes) of type new AttributesMapper(){} must override or implement a supertype method
[WARN] Failed startup of context com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload@c5f4e4{/,C:\Desenvolvimento2\siscade-interno\src\main\webapp}
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usuarioADDMIHandler' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [br.gov.cade.server.dmi.usuario.UsuarioADDMIHandler]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
The import org.springframework.ldap cannot be resolved
The import org.springframework.ldap cannot be resolved
LdapTemplate cannot be resolved to a type
LdapTemplate cannot be resolved to a type