Can you first please try running ant outside of eclipse?

Can you see RIFE pre-generating the SQL templates during the build process?

On 08 Jul 2006, at 20:13, Steven Grimm wrote:

I'm trying to build RIFE from the 1.5M2 source distribution. I run Ant from within Eclipse. It seems to work -- I get JDK1.4 and 1.5 jarfiles and a bunch of zips with examples, Javadocs, etc. But when I drop rife-1.5M2-jdk15.jar into my project's lib directory and fire up Jetty, I get this:

SEVERE: java.lang.RuntimeException: com.uwyn.rife.template.exceptions.TemplateNotFoundException: Couldn't find template 'sql.org_postgresql_Driver.select'. at com.uwyn.rife.database.DbQueryManagerFactory.getInstance (DbQueryManagerFactory.java:150) at com.uwyn.rife.database.DbQueryManagerFactory.getInstance (DbQueryManagerFactory.java:53) at com.uwyn.rife.cmf.dam.contentmanagers.DatabaseContentFactory.getInstan ce(DatabaseContentFactory.java:22) at com.cparty.elements.DatabaseDeployer$Deployer.deploy (DatabaseDeployer.java:60)
   at com.uwyn.rife.engine.ElementInfo.deploy(ElementInfo.java:277)
at com.uwyn.rife.engine.SiteBuilder.setupElements (SiteBuilder.java:985) at com.uwyn.rife.engine.SiteBuilder.setupData(SiteBuilder.java: 1601)
   at com.uwyn.rife.engine.SiteBuilder.finish(SiteBuilder.java:259)
   at com.uwyn.rife.engine.SiteBuilder.process(SiteBuilder.java:250)
   at com.uwyn.rife.engine.SiteBuilder.getSite(SiteBuilder.java:176)
at com.uwyn.rife.rep.participants.ParticipantSite.initialize (ParticipantSite.java:36) at com.uwyn.rife.rep.BlockingParticipant.run (BlockingParticipant.java:252)
   at java.lang.Thread.run(Thread.java:595)
Caused by: com.uwyn.rife.template.exceptions.TemplateNotFoundException: Couldn't find template 'sql.org_postgresql_Driver.select'. at com.uwyn.rife.template.TemplateFactory.get (TemplateFactory.java:435) at com.uwyn.rife.template.TemplateFactory.get (TemplateFactory.java:381) at com.uwyn.rife.database.queries.Select.getTemplate(Select.java: 163)
   at com.uwyn.rife.database.queries.Select.getSql(Select.java:255)
at com.uwyn.rife.database.queries.AbstractQuery.toString (AbstractQuery.java:56)
   at com.uwyn.rife.database.queries.Insert.field(Insert.java:257)
at com.uwyn.rife.cmf.dam.contentmanagers.databasedrivers.generic.<init> (generic.java:166) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.uwyn.rife.database.DbQueryManagerFactory.getInstance (DbQueryManagerFactory.java:122)
   ... 12 more
Caused by: java.lang.ClassNotFoundException: Couldn't resolve template: 'com.uwyn.rife.template.sql.sql.org_postgresql_Driver.select'. 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)
   ... 23 more

Any ideas where I should start looking? Clearly something is missing from the jarfile (which is surprising since my jarfile is quite a bit bigger than the one in the RIFE binary distribution.) RIFE's build process is a bit complex -- I can dive into it and start trying to figure it out for myself, but maybe this is a known gotcha.

-Steve
_______________________________________________
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


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to