Re: [OS-webwork] Strange behaviours - update
I was using 2.0 final, but I downloaded it again and replaced the jars, and now it works. It works now on Tomcat 4.1 and Resin 2.1. Thanks Jason and Francisco for the help. - Vítor Souza - Original Message - From: Jason Carreira [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 7:10 PM Subject: RE: [OS-webwork] Strange behaviours - update What version are you using? Do you see anything in the logs about something not being serializable? The problem used to be that the DefaultComponentManager was not serializable so when the Servlet container put things into the Session and would fail to serialize, so then when you went to get it out, you'd get a null, and it would throw this error. I thought this had been fixed, though... Are you on 2.0 final? --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Strange behaviours - update
Hi again, I decided to start everything over, then I recreated the web application and tested each step, so to find what was that I was doing that triggered the strange errors I was receiving. I managed to create an action, pass parameters to it and display them at the velocity result page. The validation framework worked fine this time. Everything worked this far. When I added the RequestLifecycleFilter to web.xml, I started getting that old RuntimeException again: java.lang.RuntimeException: Fallback must be an instance of DefaultConfigurationManager at com.opensymphony.xwork.interceptor.component.DefaultComponentManager.setFall back(DefaultComponentManager.java:50) at com.opensymphony.webwork.lifecycle.RequestLifecycleFilter.doFilter(RequestLi fecycleFilter.java:55) I tried both url-pattern/*/url-pattern and url-pattern*.action/url-pattern, and both gave me the exception above. I really would like to understand what that error means. Below there are some files that might help you experts help me. I thank very much all the help in this. Sorry to post the same problems over and over again. - Vítor Souza === WEB.XML ?xml version=1.0 encoding=UTF-8? !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-nameCyTour/display-name filter filter-namecontainer/filter-name filter-classcom.opensymphony.webwork.lifecycle.RequestLifecycleFilter/fil ter-class /filter filter-mapping filter-namecontainer/filter-name url-pattern/*/url-pattern /filter-mapping listenerlistener-classcom.opensymphony.webwork.lifecycle.ApplicationLife cycleListener/listener-class/listener listenerlistener-classcom.opensymphony.webwork.lifecycle.SessionLifecycl eListener/listener-class/listener servlet servlet-namevelocity/servlet-name servlet-classcom.opensymphony.webwork.views.velocity.WebWorkVelocityServle t/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-namewebwork/servlet-name servlet-classcom.opensymphony.webwork.dispatcher.ServletDispatcher/servle t-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-namewebwork/servlet-name url-pattern*.action/url-pattern /servlet-mapping servlet-mapping servlet-namevelocity/servlet-name url-pattern*.vm/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.vm/welcome-file welcome-fileindex.jsp/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list taglib taglib-uriwebwork/taglib-uri taglib-location/WEB-INF/lib/webwork-2.0.jar/taglib-location /taglib /web-app === XWORK.XML !DOCTYPE xwork PUBLIC -//OpenSymphony Group//XWork 1.0//EN http://www.opensymphony.com/xwork/xwork-1.0.dtd; xwork !-- Include webwork defaults (from WebWork-2.0 JAR package). -- include file=webwork-default.xml / !-- Configuration for the default package. -- package name=default extends=webwork-default !-- Default interceptor stack. -- default-interceptor-ref name=validationWorkflowStack / !-- Action: login de administrador. -- action name=adminLogin class=br.inf.netropolis.cytour.core.aplicacao.webwork.actions.AdminLoginAct ion result name=success type=velocityparam name=locationhome.vm/param/result result name=input type=velocityparam name=locationindex.vm/param/result result name=error type=velocityparam name=locationindex.vm/param/result /action /package /xwork === COMPONENTS.XML components component scopesession/scope classbr.inf.netropolis.cytour.core.aplicacao.AppCytour/class enablerbr.inf.netropolis.cytour.core.aplicacao.webwork.components.AppCytou rAware/enabler /component /components === CLASSES public interface AppCytourAware { public void setAppCytour(AppCytour appCytour); } public class AppCytourAwareAction extends ActionSupport implements AppCytourAware { protected AppCytour appCytour; public AppCytour getAppCytour() { return appCytour; } public void setAppCytour(AppCytour appCytour) { this.appCytour = appCytour; } public String execute() throws Exception { return SUCCESS; } } public class AdminLoginAction extends AppCytourAwareAction { private String login; private String senha; public String getLogin() { return login; } public void setLogin(String login) { this.login = login; } public String getSenha() { return senha; } public void setSenha(String senha) { this.senha = senha; } public String execute() throws Exception { login += (appCytour == null) ? (components did not work) : (components worked); return SUCCESS; } } --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel
Re: [OS-webwork] Strange behaviours - update
Hello again, Since my whole system was behaving like crazy, I decided to reboot the computer (Microsoft #1 solution to problems). Now WebWork is NOT throwing java.lang.RuntimeException: Fallback must be an instance of DefaultConfigurationManager any longer, but it still can't find validators.xml. Still needing help, Vítor Souza - Original Message - From: Vítor Souza [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 3:09 PM Subject: [OS-webwork] Strange behaviours Hi, Every once in a while WebWork just starts to behave strangely and I have no clue of what's going on. [...] --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
RE: [OS-webwork] Strange behaviours - update
Sounds like a classloader issue... What server? What are today's changes that broke things? Make sure all of the temporary exploded files are deleted when redeploying... -Original Message- From: Vítor Souza [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 1:32 PM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] Strange behaviours - update Hello again, Since my whole system was behaving like crazy, I decided to reboot the computer (Microsoft #1 solution to problems). Now WebWork is NOT throwing java.lang.RuntimeException: Fallback must be an instance of DefaultConfigurationManager any longer, but it still can't find validators.xml. Still needing help, Vítor Souza - Original Message - From: Vítor Souza [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 3:09 PM Subject: [OS-webwork] Strange behaviours Hi, Every once in a while WebWork just starts to behave strangely and I have no clue of what's going on. [...] --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70alloc_id638op=click ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork