Yes it works now... I guess this error proves i'm almost human O:)
Best regards. On 6/27/06, Geert Bevin <[EMAIL PROTECTED]> wrote:
Hi Andrès, turns out that it's a very trivial problem ... you forgot to include the rife-crud-1.3M2-templates jar ... so it's normal that it can't find the templates ;-) After including this it works for me. Hope you're up and running now. Take care, Geert On 20 Jun 2006, at 10:24, Geert Bevin wrote: > Hi Andrés, > > would you mind sending me an archive of your sources (in private > email), so that I trace the problem? > > Best regards, > > Geert > > On 20 Jun 2006, at 10:17, Andrés González wrote: > >>> could you paste your entire stack trace, >> Sure: >> >> 9-jun-2006 19:51:05 com.uwyn.rife.engine.Gate handleRequest >> GRAVE: Error on host servicios.mensario.loc:443//apim >> com.uwyn.rife.template.exceptions.TemplateNotFoundException: Couldn't >> find template >> 'Y29tLnByb3llY3Rvc21zLkVNLmFwaW0uUmVnbGFFbnJ1dGFkbw____crud__crud.adm >> in.browse'. >> at com.uwyn.rife.template.TemplateFactory.get >> (TemplateFactory.java:435) >> at com.uwyn.rife.template.TemplateFactory.get >> (TemplateFactory.java:387) >> at com.uwyn.rife.crud.CrudTemplateFactory.get >> (CrudTemplateFactory.java:63) >> at com.uwyn.rife.crud.elements.admin.CrudElement.getTemplate >> (CrudElement.java:114) >> at com.uwyn.rife.crud.elements.admin.Browse.processElement >> (Browse.java:53) >> at com.uwyn.rife.engine.ElementContext.processContext >> (ElementContext.java:441) >> at com.uwyn.rife.engine.RequestState.service >> (RequestState.java:352) >> at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:416) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke >> (NativeMethodAccessorImpl.java:39) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke >> (DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at com.uwyn.rife.servlet.RifeFilter.doFilter >> (RifeFilter.java:139) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter >> (ApplicationFilterChain.java:186) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter >> (ApplicationFilterChain.java:157) >> at org.apache.catalina.core.StandardWrapperValve.invoke >> (StandardWrapperValve.java:214) >> at org.apache.catalina.core.StandardValveContext.invokeNext >> (StandardValveContext.java:104) >> at org.apache.catalina.core.StandardPipeline.invoke >> (StandardPipeline.java:520) >> at >> org.apache.catalina.core.StandardContextValve.invokeInternal >> (StandardContextValve.java:198) >> at org.apache.catalina.core.StandardContextValve.invoke >> (StandardContextValve.java:152) >> at org.apache.catalina.core.StandardValveContext.invokeNext >> (StandardValveContext.java:104) >> at org.apache.catalina.core.StandardPipeline.invoke >> (StandardPipeline.java:520) >> at org.apache.catalina.core.StandardHostValve.invoke >> (StandardHostValve.java:137) >> at org.apache.catalina.core.StandardValveContext.invokeNext >> (StandardValveContext.java:104) >> at org.apache.catalina.valves.ErrorReportValve.invoke >> (ErrorReportValve.java:118) >> at org.apache.catalina.core.StandardValveContext.invokeNext >> (StandardValveContext.java:102) >> at org.apache.catalina.core.StandardPipeline.invoke >> (StandardPipeline.java:520) >> at org.apache.catalina.core.StandardEngineValve.invoke >> (StandardEngineValve.java:109) >> at org.apache.catalina.core.StandardValveContext.invokeNext >> (StandardValveContext.java:104) >> at org.apache.catalina.valves.RequestDumperValve.invoke >> (RequestDumperValve.java:169) >> at org.apache.catalina.core.StandardValveContext.invokeNext >> (StandardValveContext.java:102) >> at org.apache.catalina.core.StandardPipeline.invoke >> (StandardPipeline.java:520) >> at org.apache.catalina.core.ContainerBase.invoke >> (ContainerBase.java:929) >> at org.apache.coyote.tomcat5.CoyoteAdapter.service >> (CoyoteAdapter.java:160) >> at org.apache.coyote.http11.Http11Processor.process >> (Http11Processor.java:799) >> at org.apache.coyote.http11.Http11Protocol >> $Http11ConnectionHandler.processConnection(Http11Protocol.java:705) >> at org.apache.tomcat.util.net.TcpWorkerThread.runIt >> (PoolTcpEndpoint.java:577) >> at org.apache.tomcat.util.threads.ThreadPool >> $ControlRunnable.run(ThreadPool.java:683) >> at java.lang.Thread.run(Thread.java:595) >> Caused by: java.lang.ClassNotFoundException: Couldn't resolve >> template: >> 'com.uwyn.rife.template.crud.Y29tLnByb3llY3Rvc21zLkVNLmFwaW0uUmVnbGFF >> bnJ1dGFkbw____crud__crud.admin.browse'. >> at com.uwyn.rife.template.TemplateClassLoader.compileTemplate >> (TemplateClassLoader.java:174) >> at com.uwyn.rife.template.TemplateClassLoader.loadClass >> (TemplateClassLoader.java:145) >> at com.uwyn.rife.template.TemplateFactory.get >> (TemplateFactory.java:404) >> ... 38 more >> >> >> I followed the tutorial (video) but with some changes (have my own >> beans, etc.): >> >> ********** >> classes/rep >> ********** >> >> config.xml: >> <?xml version="1.0" encoding="UTF-8"?> >> <!-- >> - Copyright 2001-2006 Geert Bevin <gbevin[remove] at uwyn dot com> >> - Distributed under the terms of either: >> - * the common development and distribution license (CDDL), >> v1.0; or >> - * the GNU Lesser General Public License, v2.1 or later >> - $Id: config.xml 2930 2006-02-06 18:45:59Z gbevin $ >> --> >> >> <!DOCTYPE config SYSTEM "/dtd/config.dtd"> >> >> <config> >> <param name="DATASOURCE">mysql</param> >> </config> >> >> >> >> datasources.xml: >> <?xml version="1.0" encoding="UTF-8"?> >> <!-- >> - Copyright 2001-2006 Geert Bevin <gbevin[remove] at uwyn dot com> >> - Distributed under the terms of either: >> - * the common development and distribution license (CDDL), >> v1.0; or >> - * the GNU Lesser General Public License, v2.1 or later >> - $Id: datasources.xml 2930 2006-02-06 18:45:59Z gbevin $ >> --> >> >> <!DOCTYPE datasources SYSTEM "/dtd/datasources.dtd"> >> >> <datasources> >> <datasource name="mysql"> >> <driver>com.mysql.jdbc.Driver</driver> >> <url>jdbc:mysql://192.168.0.150:3306/enviomasivo</url> >> <user>root</user> >> <password>xxxxx</password> >> <poolsize>1</poolsize> >> </datasource> >> </datasources> >> >> >> >> participants.xml: >> <?xml version="1.0" encoding="UTF-8"?> >> >> <!DOCTYPE rep SYSTEM "/dtd/rep.dtd"> >> >> <rep> >> >> <participant param="rep/config.xml">ParticipantConfig</ >> participant> >> <participant >> param="rep/datasources.xml">ParticipantDatasources</participant> >> <participant param="rep/users.xml">ParticipantMemoryUsers</ >> participant> >> >> >> <participant param="com.proyectosms.EM.apim.Canal" >> blocking="true"> >> CreateCrudStructureParticipant >> </participant> >> <participant param="com.proyectosms.EM.apim.Ruta" blocking="true"> >> CreateCrudStructureParticipant >> </participant> >> <participant param="com.proyectosms.EM.apim.SuperRuta" >> blocking="true"> >> CreateCrudStructureParticipant >> </participant> >> <participant param="com.proyectosms.EM.apim.ReglaEnrutado" >> blocking="true"> >> CreateCrudStructureParticipant >> </participant> >> >> <participant param="sites/main.xml">ParticipantSite</participant> >> </rep> >> >> user.xml: >> <?xml version="1.0" encoding="UTF-8"?> >> <!-- >> - Copyright 2001-2006 Geert Bevin <gbevin[remove] at uwyn dot com> >> - Distributed under the terms of either: >> - * the common development and distribution license (CDDL), >> v1.0; or >> - * the GNU Lesser General Public License, v2.1 or later >> - $Id: users.xml 2930 2006-02-06 18:45:59Z gbevin $ >> --> >> >> <!DOCTYPE credentials SYSTEM "/dtd/users.dtd"> >> >> <credentials> >> <user login="admin"> >> <password>mensario2437</password> >> <role>visitor</role> >> <role>admin</role> >> </user> >> </credentials> >> >> >> ************* >> classes/sites >> ************* >> admin.xml: >> <?xml version="1.0" encoding="UTF-8"?> >> >> <!DOCTYPE site SYSTEM "/dtd/site.dtd"> >> >> <site> >> >> <arrival destid="ReglaEnrutado"></arrival> >> <subsite id="Canal" urlprefix="/canal" >> file="crud:com.proyectosms.EM.apim.Canal"></subsite> >> <subsite id="Ruta" urlprefix="/ruta" >> file="crud:com.proyectosms.EM.apim.Ruta"></subsite> >> <subsite id="SuperRuta" urlprefix="/superruta" >> file="crud:com.proyectosms.EM.apim.SuperRuta"></subsite> >> <subsite id="ReglaEnrutado" urlprefix="/reglaenrutado" >> file="crud:com.proyectosms.EM.apim.ReglaEnrutado"></subsite> >> >> </site> >> >> mail.xml: >> <?xml version="1.0" encoding="UTF-8"?> >> <!-- >> - Copyright 2001-2006 Geert Bevin <gbevin[remove] at uwyn dot com> >> - Distributed under the terms of either: >> - * the common development and distribution license (CDDL), >> v1.0; or >> - * the GNU Lesser General Public License, v2.1 or later >> - $Id: friends.xml 3002 2006-02-24 10:33:13Z gbevin $ >> --> >> >> <!DOCTYPE site SYSTEM "/dtd/site.dtd"> >> >> <site> >> >> <!-- administration site --> >> <group> >> <globalcookie name="authid"/> >> >> <element id="AuthAdmin" extends="rife/authenticated/ >> memory.xml"> >> <property name="password_encryption">SHA</ >> property> >> <property >> name="template_name">authentication.admin</property> >> <property name="role">admin</property> >> <property name="authvar_type">cookie</ >> property> >> >> <submission name="credentials"> >> <param name="login"/> >> <param name="password"/> >> </submission> >> >> <childtrigger name="authid"/> >> </element> >> >> <subsite id="Admin" file="admin.xml" urlprefix="admin" >> inherits="AuthAdmin"/> >> >> </group> >> >> <!-- element that indicates the version of the application --> >> <element id="Version" >> implementation="com.proyectosms.EM.apim.Version"/> >> </site> >> >> >> I'm sure i have some stupid error(s) somewhere. One thing i didn't is >> the participants: >> >> <participant >> blocking="true">com.uwyn.ecalendar.participants.CreatePublicationStru >> cture</participant> >> <participant >> blocking="true">com.uwyn.ecalendar.participants.CreateArticletypeStru >> cture</participant> >> >> I suppose they are optional (maybe i'm wrong...) >> >> I'll keep trying... >> >> Cheers. >> -- >> >> -=-=-=-=-=-=-=-=-=-=-=-=- >> Andrés González. >> _______________________________________________ >> Rife-users mailing list >> [email protected] >> http://lists.uwyn.com/mailman/listinfo/rife-users >> > > -- > Geert Bevin > Uwyn "Use what you need" - http://uwyn.com > RIFE Java application framework - http://rifers.org > Music and words - http://gbevin.com > > -- Geert Bevin Uwyn "Use what you need" - http://uwyn.com RIFE Java application framework - http://rifers.org Music and words - http://gbevin.com _______________________________________________ Rife-users mailing list [email protected] http://lists.uwyn.com/mailman/listinfo/rife-users
-- -=-=-=-=-=-=-=-=-=-=-=-=- Andrés González. _______________________________________________ Rife-users mailing list [email protected] http://lists.uwyn.com/mailman/listinfo/rife-users
