Estou tentando integrar o Spring com WebWork, segui o tutorial no site do webwork, mas tive varios erros, alguem já fez essa integração? Qual tutorial que posso usar que é bom? Vou postar aqui se tiver problemas.
Eu utilizo sem problemas. Coloque sua cofiguração aqui.
Obrigado pela ajuda, eu estou usando um tutorial que achei na web, ele fala de 3 maneiras de executar a integracao, eu testei hoje a mais simples, que é ActionAutowiringInterceptor
onde voce so altera o xwork.xml
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN" "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
<xwork>
<include file="webwork-default.xml" />
<package name="default" extends="webwork-default">
<interceptors>
<interceptor name="autowireDependencies"
class="com.opensymphony.xwork.spring.interceptor.ActionAutowiringInterceptor"/>
<interceptor-stack name="defaultActionStack">
<interceptor-ref name="defaultStack"/>
<interceptor-ref name="autowireDependencies"/>
</interceptor-stack>
</interceptors>
<default-interceptor-ref name="defaultActionStack"/>
<!-- Cidade -->
<action name="ActionCidade" class="action.ActionCidade">
<result name="resultado_pesquisa" type="dispatcher">
<param name="location" >ResultadoPesquisaCidade.jsp</param>
</result>
<result name="success" type="dispatcher">
<param name="location">/padrao/sucesso.jsp</param>
</result>
<result name="error" type="dispatcher">
<param name="location">/padrao/erro.jsp</param>
</result>
<interceptor-ref name="defaultComponentStack"/>
</action>
</package>
</xwork>
Esta é minha configuracao de xwork.xml, a minha action esta assim:
public class ActionCidade extends ActionSupport {
public ActionCidade actionCidade;
public UfDAOHibernate ufDAO;
public CidadeDAOHibernate cidadeDAO;
public String ACAO;
public Cidade cidade;
public Uf uf;
public List listaPesquisaCidade = new ArrayList();
public String execute() throws Exception {
try{
cidade.setNome("porto alegre");
//this.setListaPesquisaCidade(cidadeDAO.findByObject(cidade2));
List lista = cidadeDAO.findAll();
listaPesquisaCidade = cidadeDAO.findAll();
System.out.println("total encontrado: " + listaPesquisaCidade.size());
return "resultado_pesquisa";
} catch (Exception e){
e.printStackTrace();
return ERROR;
}
return SUCCESS;
}
ele nao encontra o cidadeDAO, ou seja o spring nao trabalhou, o log abaixo e o que ocorre quando eu executo essa acao:
[code]06/09/2006 11:26:28 com.opensymphony.xwork.spring.interceptor.ActionAutowiringInterceptor before
WARNING: ApplicationContext could not be found. Action classes will not be autowired.
java.lang.NullPointerException
at action.ActionCidade.execute(ActionCidade.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:365)
at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:217)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:191)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:233)
at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
code]
Essa configuração por interceptors não é mais utilizada. Você pode fazer assim:
No arquivo webwork.properties adicione a seguinte linha:
# Spring
webwork.objectFactory=spring
Isso fará com que o Spring injete as dependências que a classe necessita.
Adicione também a seguinte linha ao arquivo web.xml:
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
Esse listener faz com que o Spring seja carregado,.
Como o default auto-wire é byName, ele vai procurar o applicationContext todas as dependências…
Um exemplo de action:
[code]public class FooAction extends ActionSupport {
private FooDAO fooDAO();
public String execute() {
return SUCCESS;
}
// gets e sets para fooDAO
}[/code]
Quando a action for executada, o spring fornecerá uma intância de FooDAO para a action FooAction através da injeção de dependências via métodos get/set.
Se tiver alguma dúvida, coloque aqui!
obrigado pela ajuda, vou por aqui as configuracoes, como que ficaram para voce dar uma olhada, ele ainda diz que é nulo, o spring parace que nao colocou as dependencias da classe
web-inf/web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<display-name>Sistemas</display-name>
<servlet>
<servlet-name>webwork</servlet-name>
<servlet-class>com.opensymphony.webwork.dispatcher.ServletDispatcher</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>dwr-invoker</servlet-name>
<display-name>DWR Servlet</display-name>
<servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>webwork</servlet-name>
<url-pattern>*.action</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
<taglib>
<taglib-uri>webwork</taglib-uri>
<taglib-location>/WEB-INF/lib/webwork-2.2.2.jar</taglib-location>
</taglib>
</web-app>
web-inf/webwork.properties
webwork.locale=pt_BR
#webwork.multipart.saveDir=c:\temp
#webwork.multipart.maxSize=12345
# added the MockTag to the path of Tags that the TagDirective will search through
webwork.velocity.tag.path = com.opensymphony.webwork.views.velocity.ui,apps.tags.implementation
webwork.configuration.xml.reload = true
# Spring
webwork.objectFactory=spring
WEB-INF\src\xwork.xml
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN" "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
<xwork>
<include file="webwork-default.xml" />
<package name="default" extends="webwork-default">
<!-- <default-interceptor-ref name="defaultActionStack"/>-->
<default-interceptor-ref name="defaultStack" />
<!-- <default-interceptor-ref name="defaultActionStack"/>-->
<!-- Cidade -->
<action name="ActionCidade" class="action.ActionCidade">
<result name="resultado_pesquisa" type="dispatcher">
<param name="location" >ResultadoPesquisaCidade.jsp</param>
</result>
<result name="success" type="dispatcher">
<param name="location">/padrao/sucesso.jsp</param>
</result>
<result name="error" type="dispatcher">
<param name="location">/padrao/erro.jsp</param>
</result>
<interceptor-ref name="defaultComponentStack"/>
</action>
</package>
</xwork>
a minha action esta assim
package action;
import gbsap.internal.cadastrosBasicos.Cidade;
import gbsap.internal.cadastrosBasicos.Uf;
import gbsap.internal.cadastrosBasicos.hibernate.CidadeDAOHibernate;
import gbsap.internal.cadastrosBasicos.hibernate.UfDAOHibernate;
import java.util.ArrayList;
import java.util.List;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.opensymphony.xwork.ActionSupport;
public class ActionCidade extends ActionSupport {
public ActionCidade actionCidade;
public UfDAOHibernate ufDAO;
public CidadeDAOHibernate cidadeDAOHibernate;
public String ACAO;
public Cidade cidade;
public Uf uf;
public List listaPesquisaCidade = new ArrayList();
public String execute() throws Exception {
try{
if (ACAO.equalsIgnoreCase("INSERIR")){
uf = ufDAO.findByKey(cidade.getUf().getCodigo().toString());
cidade.setUf(uf);
cidadeDAOHibernate.insert(cidade);
}else if(ACAO.equalsIgnoreCase("BUSCAR")){
cidade.setNome("porto alegre");
//this.setListaPesquisaCidade(cidadeDAO.findByObject(cidade2));
List lista = cidadeDAOHibernate.findAll();
listaPesquisaCidade = cidadeDAOHibernate.findAll();
System.out.println("total encontrado: " + listaPesquisaCidade.size());
return "resultado_pesquisa";
}
} catch (Exception e){
e.printStackTrace();
return ERROR;
}
return SUCCESS;
}
no console da esse log,
06/09/2006 13:37:43 com.opensymphony.xwork.config.providers.InterceptorBuilder constructInterceptorReference
SEVERE: Unable to find interceptor class referenced by ref-name defaultComponentStack
java.lang.NullPointerException
at action.ActionCidade.execute(ActionCidade.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:365)
at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:217)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:191)
at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:137)
at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)
at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:171)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:151)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:100)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:233)
at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
e o meu web.xml fica no eclipse marcado como erro essa linha, logo no inicio <web-app>
fiz umas alteracoes no xwork.xml:
<action name="ActionCidade" class="action.ActionCidade">
<result name="resultado_pesquisa" type="dispatcher">
<param name="location" >ResultadoPesquisaCidade.jsp</param>
</result>
<result name="success" type="dispatcher">
<param name="location">/padrao/sucesso.jsp</param>
</result>
<result name="error" type="dispatcher">
<param name="location">/padrao/erro.jsp</param>
</result>
<interceptor-ref name="defaultStack"/>
</action>
o erro é do null pointer ainda, acho que ainda nao esta integrado com spring.
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
06/09/2006 13:45:55 uk.ltd.getahead.dwr.util.CommonsLoggingOutput info
INFO: Logging using commons-logging.
06/09/2006 13:45:56 uk.ltd.getahead.dwr.util.CommonsLoggingOutput info
INFO: retrieved system configuration file: java.io.ByteArrayInputStream@9764bd
06/09/2006 13:45:56 uk.ltd.getahead.dwr.util.CommonsLoggingOutput info
INFO: Creator 'pageflow' not loaded due to ClassNotFoundException. This is only an problem if you wanted to use it. Cause: Beehive/Weblogic Creator not available.
06/09/2006 13:45:56 uk.ltd.getahead.dwr.util.CommonsLoggingOutput info
INFO: Creator 'script' not loaded due to NoClassDefFoundError. This is only an problem if you wanted to use it. Cause: org/apache/bsf/BSFException
06/09/2006 13:45:56 uk.ltd.getahead.dwr.util.CommonsLoggingOutput info
INFO: Found Hibernate3 class: org.hibernate.Hibernate
06/09/2006 13:45:56 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
06/09/2006 13:45:56 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
06/09/2006 13:45:57 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
06/09/2006 13:45:57 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
06/09/2006 13:45:57 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
06/09/2006 13:45:58 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
06/09/2006 13:45:58 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/172 config=null
06/09/2006 13:45:58 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
06/09/2006 13:45:58 org.apache.catalina.startup.Catalina start
INFO: Server startup in 16125 ms
06/09/2006 13:47:29 org.directwebremoting.util.CommonsLoggingOutput info
INFO: Exec: Demo.getForward()
entrou servlet
java.lang.NullPointerException
at action.ActionCidade.execute(ActionCidade.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:365)
at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:217)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:191)
at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:137)
at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)
at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:171)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:151)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:100)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:233)
at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Qual versão do WW você está usando ?
Altere seu arquivo web.xml para:
[code]<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Sistemas</display-name>
<filter>
<filter-name>webwork</filter-name>
<filter-class>com.opensymphony.webwork.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>webwork</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<taglib>
<taglib-uri>webwork</taglib-uri>
<taglib-location>/WEB-INF/lib/webwork-2.2.2.jar</taglib-location>
</taglib>
</web-app>[/code]
A declaração do Listener deve estar após a declaração dos Filters. Está com o JAR do Spring no classpath certo ?
Observacao, fiz o que me pediu e rodei, notei que ele nao estava achando o webwork.properties, entao coloquei o arquivo em web-inf ele estava em web-inf/src, o que ocorreu e que ele nao reclamou da falta do arquivo, no entando o erro ficou um pouco diferente. segue mais abaixo.
Estou usando webwork 2, o spring esta no classpath, inclusive, esta em:
D:\Tomcat\common\lib\spring.jar
e no WEB-INF\lib\spring.jar
usei o web.xml que falou, so coloquei as linhas do dwr para funcionar, ficou como segue
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Sistemas</display-name>
<filter>
<filter-name>webwork</filter-name>
<filter-class>com.opensymphony.webwork.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>webwork</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>dwr-invoker</servlet-name>
<display-name>DWR Servlet</display-name>
<servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
<taglib>
<taglib-uri>webwork</taglib-uri>
<taglib-location>/WEB-INF/lib/webwork-2.2.2.jar</taglib-location>
</taglib>
</web-app>
O erro continua sendo de null
Coloco agora todo log, desde o start do tomcat, pode ser que fique mais facil.
INFO: foreign keys: []
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: indexes: [primary, fk26eb717cb21602e, fk26eb717c3005794d, fk26eb717cd421c3cd, fk26eb717c24cbd177]
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: table found: .estoque_deposito
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: columns: [nome, codigo_deposito, descricao, espaco]
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: foreign keys: []
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: indexes: [primary]
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: table found: .estoque_deposito_produto
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: columns: [codigo_deposito, codigo_produto, codigo_deposito_produto]
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: foreign keys: []
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: indexes: [primary, fkadc53132d421c3cd, fkadc5313277a169e8]
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: table found: .estoque_grupos
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: columns: [descricao, codigo]
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: foreign keys: []
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: indexes: [primary]
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: table found: .estoque_produtos
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: columns: [codigo_produto, email, codigo_subgrupo]
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: foreign keys: []
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: indexes: [primary, fkbbe70681838054b9]
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: table found: .estoque_sub_grupos
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: columns: [codigo_grupo, descricao, codigo_subgrupo]
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: foreign keys: []
06/09/2006 15:24:17 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: indexes: [primary, fk90fd5030a9c9384d]
06/09/2006 15:24:17 org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Using context class [org.springframework.web.context.support.XmlWebApplicationContext] for root WebApplicationContext
06/09/2006 15:24:17 org.springframework.web.context.ContextLoader initWebApplicationContext
[b]INFO: Root WebApplicationContext: initialization completed in 2047 ms
06/09/2006 15:24:18 com.opensymphony.webwork.spring.WebWorkSpringObjectFactory init
INFO: Initializing WebWork-Spring integration...
06/09/2006 15:24:18 org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter webwork
java.lang.LinkageError: loader constraints violated when linking org/springframework/context/ApplicationContext class
at com.opensymphony.webwork.spring.WebWorkSpringObjectFactory.init(WebWorkSpringObjectFactory.java:47)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.init(DispatcherUtils.java:118)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.<init>(DispatcherUtils.java:79)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.initialize(DispatcherUtils.java:60)
at com.opensymphony.webwork.dispatcher.FilterDispatcher.init(FilterDispatcher.java:129)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)[/b] at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4189)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
06/09/2006 15:24:18 org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
06/09/2006 15:24:18 org.apache.catalina.core.StandardContext start
SEVERE: Context [/web] startup failed due to previous errors
06/09/2006 15:24:18 org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
06/09/2006 15:24:18 org.springframework.context.support.AbstractApplicationContext close
INFO: Closing application context [Root WebApplicationContext]
06/09/2006 15:24:18 org.springframework.beans.factory.support.AbstractBeanFactory destroySingletons
INFO: Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,sessionFactory,aplicacao,actionUf,actionDepositoQuimico,actionCidade,actionGrupos,actionSubGrupos,actionClientes,cidadeDAO,clienteDAO,enderecoDAO,telefoneDAO,ufDAO,depositoProdutoQuimicoDAO,depositoQuimicoDAO,produtosDepositadosDAO,depositoDAO,depositoProdutosDAO,gruposDAO,produtosDAO,subGruposDAO]; root of BeanFactory hierarchy}
06/09/2006 15:24:18 org.springframework.orm.hibernate3.LocalSessionFactoryBean destroy
INFO: Closing Hibernate SessionFactory
06/09/2006 15:24:18 org.hibernate.impl.SessionFactoryImpl close
INFO: closing
06/09/2006 15:24:18 org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
06/09/2006 15:24:18 uk.ltd.getahead.dwr.util.CommonsLoggingOutput info
INFO: Logging using commons-logging.
06/09/2006 15:24:18 uk.ltd.getahead.dwr.util.CommonsLoggingOutput info
INFO: retrieved system configuration file: java.io.ByteArrayInputStream@4ba4d6
06/09/2006 15:24:18 uk.ltd.getahead.dwr.util.CommonsLoggingOutput info
INFO: Creator 'pageflow' not loaded due to ClassNotFoundException. This is only an problem if you wanted to use it. Cause: Beehive/Weblogic Creator not available.
06/09/2006 15:24:18 uk.ltd.getahead.dwr.util.CommonsLoggingOutput info
INFO: Creator 'script' not loaded due to NoClassDefFoundError. This is only an problem if you wanted to use it. Cause: org/apache/bsf/BSFException
06/09/2006 15:24:19 uk.ltd.getahead.dwr.util.CommonsLoggingOutput info
INFO: Found Hibernate3 class: org.hibernate.Hibernate
06/09/2006 15:24:20 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
06/09/2006 15:24:20 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
06/09/2006 15:24:20 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
06/09/2006 15:24:20 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
06/09/2006 15:24:20 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
06/09/2006 15:24:21 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
06/09/2006 15:24:21 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/203 config=null
06/09/2006 15:24:21 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
06/09/2006 15:24:21 org.apache.catalina.startup.Catalina start
INFO: Server startup in 16984 ms
OK: Initializing WebWork-Spring integration…
Agora continuando… você criou o arquivo applicationContext.xml ?
Sim, ele esta no web-inf/src e /classes
ele esta funcionando direito quando eu executo ele direto, segue o arquivo:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<!-- ======================================================== -->
<!-- Data Sources: especificação do banco de dados (JDBC) -->
<!-- ======================================================== -->
<!-- PostGres
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="org.postgresql.Driver"/>
<property name="url" value="jdbc:PostgreSQL:sybase://localhost:5432/gbsap;TDS=5.0"/>
<property name="username"><value>admin</value></property>
<property name="password"><value>admin</value></property>
</bean>
-->
<!-- MYSQL -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://localhost:3306/basedados?autoReconnect=true" />
<property name="username"><value>root</value></property>
<property name="password"><value></value></property>
</bean>
<!--
<bean id="springObjectFactory"
class="com.opensymphony.xwork.spring.SpringObjectFactory"
init-method="initObjectFactory"/>
-->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean" abstract="false">
<!-- -->
<property name="annotatedPackages">
<list>
<value>gbsap</value>
</list>
</property>
<property name="annotatedClasses">
<list>
<!-- MODULO - Cadastros básicos -->
<value>gbsap.internal.cadastrosBasicos.Cidade</value>
<value>gbsap.internal.cadastrosBasicos.Pessoa</value>
<value>gbsap.internal.cadastrosBasicos.Cliente</value>
<value>gbsap.internal.cadastrosBasicos.Endereco</value>
<value>gbsap.internal.cadastrosBasicos.Telefone</value>
<value>gbsap.internal.cadastrosBasicos.Uf</value>
<!-- MODULO - Deposito produtos quimicos -->
<value>gbsap.internal.depositoProdutosQuimicos.DepositoProdutoQuimico</value>
<value>gbsap.internal.depositoProdutosQuimicos.DepositoQuimico</value>
<value>gbsap.internal.depositoProdutosQuimicos.ProdutosDepositados</value>
<!-- MODULO - Estoque -->
<value>gbsap.internal.estoque.Deposito</value>
<value>gbsap.internal.estoque.DepositoProdutos</value>
<value>gbsap.internal.estoque.Grupos</value>
<value>gbsap.internal.estoque.Produtos</value>
<value>gbsap.internal.estoque.SubGrupos</value>
<!-- MODULO - Transportadora -->
</list>
</property>
<property name="schemaUpdate" value="true" />
<property name="hibernateProperties">
<props>
<!-- prop key="hibernate.default_schema">operadora1</prop-->
<!-- Mysql -->
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<!-- PostGres
<prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
-->
<!-- Use the C3P0 connection pool. -->
<!-- <prop key="hibernate.c3p0.min_size">3</prop> -->
<prop key="hibernate.c3p0.max_size">5</prop>
<prop key="hibernate.c3p0.timeout">1800</prop>
<prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>
<prop key="hibernate.cache.use_query_cache">false</prop>
<prop key="hibernate.cache.use_minimal_puts">false</prop>
<prop key="hibernate.max_fetch_depth">0</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.autocommit">true</prop>
<!-- Refresh database on each build of SessionFactory and drop it on close. -->
</props>
</property>
</bean>
<!-- ======================================================== -->
<!-- COMUM A TODOS MODULOS -->
<!-- ======================================================== -->
<bean id="aplicacao" class="aplicacao.StartSistema"/>
<bean id="actionUf" class="action.ActionUf"/>
<bean id="actionDepositoQuimico" class="action.ActionDepositoQuimico"/>
<bean id="actionCidade" class="action.ActionCidade"/>
<bean id="actionGrupos" class="action.ActionGrupos"/>
<bean id="actionSubGrupos" class="action.ActionSubGrupos"/>
<bean id="actionClientes" class="action.ActionClientes"/>
<!-- Modulo - Cadastros básicos -->
<bean id="cidadeDAO" class="gbsap.internal.cadastrosBasicos.hibernate.CidadeDAOHibernate" singleton="true"/>
<bean id="clienteDAO" class="gbsap.internal.cadastrosBasicos.hibernate.ClienteDAOHibernate" singleton="true"/>
<bean id="enderecoDAO" class="gbsap.internal.cadastrosBasicos.hibernate.EnderecoDAOHibernate" singleton="true"/>
<bean id="telefoneDAO" class="gbsap.internal.cadastrosBasicos.hibernate.TelefoneDAOHibernate" singleton="true"/>
<bean id="ufDAO" class="gbsap.internal.cadastrosBasicos.hibernate.UfDAOHibernate" singleton="true"/>
<!-- Modulo - Deposito produtos quimicos -->
<bean id="depositoProdutoQuimicoDAO" class="gbsap.internal.depositoProdutosQuimicos.bussiness.hibernate.DepositoProdutoQuimicoDAOHibernate" />
<bean id="depositoQuimicoDAO" class="gbsap.internal.depositoProdutosQuimicos.bussiness.hibernate.DepositoQuimicoDAOHibernate" />
<bean id="produtosDepositadosDAO" class="gbsap.internal.depositoProdutosQuimicos.bussiness.hibernate.ProdutosDepositadosDAOHibernate" />
<!-- Modulo - Estoque -->
<bean id="depositoDAO" class="gbsap.internal.estoque.bussiness.hibernate.DepositoDAOHibernate" />
<bean id="depositoProdutosDAO" class="gbsap.internal.estoque.bussiness.hibernate.DepositoProdutosDAOHibernate" />
<bean id="gruposDAO" class="gbsap.internal.estoque.bussiness.hibernate.GruposDAOHibernate" />
<bean id="produtosDAO" class="gbsap.internal.estoque.bussiness.hibernate.ProdutosDAOHibernate" />
<bean id="subGruposDAO" class="gbsap.internal.estoque.bussiness.hibernate.SubGruposDAOHibernate" />
<!-- Modulo - Transportadoras -->
</beans>
o meu web.xml, eu fiz umas alteracoes, da uma conferida
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Sistemas</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/applicationContext*</param-value>
</context-param>
<filter>
<filter-name>webwork</filter-name>
<filter-class>com.opensymphony.webwork.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>webwork</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>webwork</servlet-name>
<servlet-class>com.opensymphony.webwork.dispatcher.ServletDispatcher</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- -->
<servlet>
<servlet-name>dwr-invoker</servlet-name>
<display-name>DWR Servlet</display-name>
<servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>webwork</servlet-name>
<url-pattern>*.action</url-pattern>
</servlet-mapping>
<taglib>
<taglib-uri>webwork</taglib-uri>
<taglib-location>/WEB-INF/lib/webwork-2.2.2.jar</taglib-location>
</taglib>
</web-app>
O arquivo applicationContext.xml deve ficar armazenado em WEB-INF/.
correto, coloquei ele la e alterei o web.xml
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext*</param-value>
</context-param>
ele tinha web-inf/classes/applicatinContext* tirei o classes
Mas o erro maldito persiste : (
[quote]INFO: Initializing WebWork-Spring integration…
06/09/2006 19:29:47 org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter webwork
java.lang.LinkageError: loader constraints violated when linking org/springframework/context/ApplicationContext class
at com.opensymphony.webwork.spring.WebWorkSpringObjectFactory.init(WebWorkSpringObjectFactory.java:47)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.init(DispatcherUtils.java:118)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.<init>(DispatcherUtils.java:79)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.initialize(DispatcherUtils.java:60)[/quote]
Vou baixar o webwork 2.2.4 e o spring 2.0-rc3, espero que isso resolva, estou comecando a achar que pode ser alguma incompatibilidade de .jar no sistema, vou postar o que tenho aqui configurado, nao sei como descobrir qual jar esta conflitando.
web-inf/lib
connector.jar
jtds.jar
junit-3.8.1.jar
spring.jar
swarmcache-1.0rc2.jar
webwork-2.2.2.jar
xalan-2.4.0.jar
alem destes, eu deixei mais dentro do tomcat/common/lib, neste tem:
20/12/2005 14:28 16.777 asm-attrs.jar
20/12/2005 14:29 26.360 asm.jar
20/12/2005 14:29 487.360 c3p0-0.9.0.jar
20/12/2005 14:29 282.244 cglib-2.1.2.jar
23/03/2006 22:32 324.238 cglib-nodep.jar
23/03/2006 22:32 36.342 commons-attributes-api.jar
20/12/2005 14:29 175.426 commons-collections-2.1.1.jar
20/12/2005 14:28 107.631 commons-dbcp.jar
19/04/2005 11:27 71.442 commons-discovery.jar
04/03/2006 22:23 112.341 commons-el.jar
20/12/2005 14:29 38.015 commons-logging-1.0.4.jar
23/03/2006 22:32 38.015 commons-logging.jar
20/12/2005 14:29 42.492 commons-pool.jar
20/12/2005 14:29 171.071 concurrent-1.3.2.jar
20/12/2005 14:29 17.978 connector.jar
22/08/2006 16:04 4.379 Demo.class
06/09/2006 19:25 0 dir.txt
20/12/2005 14:28 313.898 dom4j-1.6.1.jar
22/08/2006 16:46 292.944 dwr.jar
20/12/2005 14:29 47.531 ehcache-1.1.jar
03/01/2006 14:29 43.334 ejb3-persistence.jar
23/03/2006 22:32 789.043 freemarker.jar
05/09/2006 11:47 102.068 gbasp.jar
20/12/2005 14:29 214.102 hibernate-annotations.jar
20/12/2005 14:29 1.925.498 hibernate3.jar
04/03/2006 22:23 1.213.732 jasper-compiler-jdt.jar
04/03/2006 22:23 407.546 jasper-compiler.jar
04/03/2006 22:23 77.056 jasper-runtime.jar
23/03/2006 22:32 355.030 javamail.jar
09/09/2004 16:00 153.253 jdom.jar
04/03/2006 22:23 50.502 jsp-api.jar
20/12/2005 14:29 8.809 jta.jar
20/12/2005 14:28 252.180 jtds-0.9.1.jar
20/12/2005 14:29 323.983 lucene-1.4.3.jar
27/07/2005 11:44 357.410 mysql-connector-java-3.1.3-beta-bin.jar
04/03/2006 22:23 154.109 naming-factory-dbcp.jar
04/03/2006 22:23 36.895 naming-factory.jar
04/03/2006 22:23 47.695 naming-resources.jar
23/03/2006 22:32 166.319 ognl.jar
23/03/2006 22:32 91.078 oscore.jar
20/12/2005 14:29 330.717 postgresql-8.0-311.jdbc3.jar
23/03/2006 22:32 116.956 rife-continuations.jar
04/03/2006 22:23 97.704 servlet-api.jar
23/03/2006 22:32 157.014 spring-aop.jar
23/03/2006 22:32 228.334 spring-beans.jar
23/03/2006 22:32 108.683 spring-context.jar
23/03/2006 22:32 118.658 spring-core.jar
23/03/2006 22:32 43.026 spring-mock.jar
23/03/2006 22:32 135.790 spring-web.jar
20/12/2005 14:29 1.901.653 spring.jar
10/11/2005 13:13 7.043.169 tools.jar
04/04/2006 20:56 2.434.389 webwork-2.2.2.jar
20/12/2005 14:29 1.010.806 xerces-2.6.2.jar
20/12/2005 14:29 123.705 xml-apis.jar
20/12/2005 14:29 246.867 xstream-1.1.2.jar
23/03/2006 22:32 244.875 xwork.jar
Pronto, se alguem tiver alguma ideia do que falta ou sobra, ou ainda esta em conflito que pode estar gerando esse erro, fico muito grato, estou perdendo as esperancas de integrar esse negocio : -)
Não precisa colocar essa linha no web.xml:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext*</param-value>
</context-param>
O Spring se encarrega de procurar o applicationContext nesse path. Agora não acho que seja problema de versões. Aqui estou com o webwork 2.2.2 e spring 2.0 rc1.
esta muito estranho, se te pedir para entrar em minha máquina por vnc voce entraria? para dar uma olhada por cima, eu acho que é um detalhe
o erro continua sendo o mesmo.
meu msn: adamobas@hotmail.com
erro:
08/09/2006 10:26:29 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Java\jre1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos de programas\ATI Technologies\ATI Control Panel;;C:\ARQUIV~1\ARQUIV~1\MUVEET~1\030625
08/09/2006 10:26:30 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
08/09/2006 10:26:30 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1672 ms
08/09/2006 10:26:30 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
08/09/2006 10:26:30 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.16
08/09/2006 10:26:30 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
08/09/2006 10:26:30 org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
08/09/2006 10:26:30 org.apache.catalina.core.ApplicationContext log
INFO: Loading Spring root WebApplicationContext
08/09/2006 10:26:31 org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
08/09/2006 10:26:31 org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [Root WebApplicationContext]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans []; root of BeanFactory hierarchy
08/09/2006 10:26:31 org.springframework.context.support.AbstractApplicationContext refresh
INFO: No beans defined in application context [Root WebApplicationContext]
08/09/2006 10:26:31 org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@baa31b]
08/09/2006 10:26:31 org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@df2940]
08/09/2006 10:26:31 org.springframework.ui.context.support.UiApplicationContextUtils initThemeSource
INFO: Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@196bac4]
08/09/2006 10:26:31 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans []; root of BeanFactory hierarchy]
08/09/2006 10:26:31 org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Using context class [org.springframework.web.context.support.XmlWebApplicationContext] for root WebApplicationContext
08/09/2006 10:26:31 org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization completed in 406 ms
08/09/2006 10:26:31 com.opensymphony.webwork.spring.WebWorkSpringObjectFactory init
INFO: Initializing WebWork-Spring integration...
08/09/2006 10:26:31 org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter webwork
java.lang.LinkageError: Class org/springframework/context/ApplicationContext violates loader constraints
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.opensymphony.xwork.spring.SpringObjectFactory.findAutoWiringBeanFactory(SpringObjectFactory.java:92)
at com.opensymphony.xwork.spring.SpringObjectFactory.setApplicationContext(SpringObjectFactory.java:46)
at com.opensymphony.webwork.spring.WebWorkSpringObjectFactory.init(WebWorkSpringObjectFactory.java:47)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.init(DispatcherUtils.java:118)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.<init>(DispatcherUtils.java:79)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.initialize(DispatcherUtils.java:60)
at com.opensymphony.webwork.dispatcher.FilterDispatcher.init(FilterDispatcher.java:129)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4189)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
08/09/2006 10:26:31 org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
08/09/2006 10:26:31 org.apache.catalina.core.StandardContext start
SEVERE: Context [web] startup failed due to previous errors
08/09/2006 10:26:31 org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
08/09/2006 10:26:31 org.springframework.context.support.AbstractApplicationContext doClose
INFO: Closing application context [Root WebApplicationContext]
08/09/2006 10:26:31 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
INFO: Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans []; root of BeanFactory hierarchy}
08/09/2006 10:26:32 org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
08/09/2006 10:26:32 org.apache.catalina.core.ApplicationContext log
INFO: Loading Spring root WebApplicationContext
08/09/2006 10:26:32 org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
08/09/2006 10:26:32 org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [Root WebApplicationContext]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans []; root of BeanFactory hierarchy
08/09/2006 10:26:33 org.springframework.context.support.AbstractApplicationContext refresh
INFO: No beans defined in application context [Root WebApplicationContext]
08/09/2006 10:26:33 org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@15ad1da]
08/09/2006 10:26:33 org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@18bbb61]
08/09/2006 10:26:33 org.springframework.ui.context.support.UiApplicationContextUtils initThemeSource
INFO: Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@15d4273]
08/09/2006 10:26:33 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans []; root of BeanFactory hierarchy]
08/09/2006 10:26:33 org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Using context class [org.springframework.web.context.support.XmlWebApplicationContext] for root WebApplicationContext
08/09/2006 10:26:33 org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization completed in 937 ms
08/09/2006 10:26:33 com.opensymphony.webwork.spring.WebWorkSpringObjectFactory init
INFO: Initializing WebWork-Spring integration...
08/09/2006 10:26:33 org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter webwork
java.lang.LinkageError: Class org/springframework/context/ApplicationContext violates loader constraints
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.opensymphony.xwork.spring.SpringObjectFactory.findAutoWiringBeanFactory(SpringObjectFactory.java:92)
at com.opensymphony.xwork.spring.SpringObjectFactory.setApplicationContext(SpringObjectFactory.java:46)
at com.opensymphony.webwork.spring.WebWorkSpringObjectFactory.init(WebWorkSpringObjectFactory.java:47)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.init(DispatcherUtils.java:118)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.<init>(DispatcherUtils.java:79)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.initialize(DispatcherUtils.java:60)
at com.opensymphony.webwork.dispatcher.FilterDispatcher.init(FilterDispatcher.java:129)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4189)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
08/09/2006 10:26:33 org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
08/09/2006 10:26:33 org.apache.catalina.core.StandardContext start
SEVERE: Context [/web] startup failed due to previous errors
08/09/2006 10:26:33 org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
08/09/2006 10:26:33 org.springframework.context.support.AbstractApplicationContext doClose
INFO: Closing application context [Root WebApplicationContext]
08/09/2006 10:26:33 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
INFO: Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans []; root of BeanFactory hierarchy}
08/09/2006 10:26:33 org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
08/09/2006 10:26:33 uk.ltd.getahead.dwr.util.CommonsLoggingOutput info
INFO: Logging using commons-logging.
08/09/2006 10:26:33 uk.ltd.getahead.dwr.util.CommonsLoggingOutput info
INFO: retrieved system configuration file: java.io.ByteArrayInputStream@2c03ff
08/09/2006 10:26:34 uk.ltd.getahead.dwr.util.CommonsLoggingOutput info
INFO: Creator 'pageflow' not loaded due to ClassNotFoundException. This is only an problem if you wanted to use it. Cause: Beehive/Weblogic Creator not available.
08/09/2006 10:26:34 uk.ltd.getahead.dwr.util.CommonsLoggingOutput info
INFO: Creator 'script' not loaded due to NoClassDefFoundError. This is only an problem if you wanted to use it. Cause: org/apache/bsf/BSFException
08/09/2006 10:26:34 uk.ltd.getahead.dwr.util.CommonsLoggingOutput info
INFO: Found Hibernate3 class: org.hibernate.Hibernate
08/09/2006 10:26:34 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
08/09/2006 10:26:34 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
08/09/2006 10:26:35 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
08/09/2006 10:26:35 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
08/09/2006 10:26:35 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
08/09/2006 10:26:36 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
08/09/2006 10:26:36 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/125 config=null
08/09/2006 10:26:36 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
08/09/2006 10:26:36 org.apache.catalina.startup.Catalina start
INFO: Server startup in 6468 ms
Parece que o problema agora é no applicationContext. Faz o seguinte: coloca apenas um bean declarado no arquivo, pois pode ser alguma configuração que você está fazendo errada que pode estar causando esse problema.
peguei a ultima versao do spring e do webwork, 2.2.4.
Fiz o que falou no context mas eu tenho impressao que o problem é no webwork por causa dessa linha:
SEVERE: Exception starting filter webwork
o webwork.properties
[code]webwork.locale=pt_BR
#webwork.multipart.saveDir=c:\temp
#webwork.multipart.maxSize=12345
added the MockTag to the path of Tags that the TagDirective will search through
webwork.velocity.tag.path = com.opensymphony.webwork.views.velocity.ui,apps.tags.implementation
webwork.configuration.xml.reload = true
Spring
webwork.objectFactory=spring
webwork.objectFactory.spring.autoWire = type[/code]
Quero agradecer a todos que me ajudaram, toda ajuda foi boa, nao deixou eu desistir de integrar webwork e spring hehehehe.
Não vai acreditar, eu criei um projeto novo, copiei a maioria dos arquivos (.java, .jsp, .xml) para suas respectivas pastas, comentei tudo e foi rodando e descomentando, no fim, descomentei tudo mesmo e a integração funcionou do inicio ao fim.
Na verdade, não descobri o problema, mas ele parou de ocorrer, a única coisa de erro que esta dando é o que segue abaixo, mas que não esta prejudicando em nada o funcionamento do Spring, hibernate, webwork e dwr, tudo ok.
Mais uma vez valeu galera.
WARNING: SQL Error: 0, SQLState: null
08/09/2006 15:39:14 org.hibernate.util.JDBCExceptionReporter logExceptions
SEVERE: Cannot create JDBC driver of class '' for connect URL 'null'
08/09/2006 15:39:14 org.hibernate.cfg.SettingsFactory buildSettings
WARNING: Could not obtain connection metadata
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)