<homer> doh! (slaps forehead) </homer>

/me blushes... thanks. the fact that these are compiled into Java classes totally slipped out of my head. I think I'll start keeping a lit of these and add them as a check list to the "preparing apps for production" page.

regards,
 David
On Feb 9, 2007, at 1:35 AM, Geert Bevin wrote:

Hi David,

as Emmanuel says, FAQ-common is indeed not supported as a template name since it can't be used as a Java class name. If you want, you can use the -e <regexp> argument for TemplateDeployer to exclude certain files during pre-compilation. Execute com.uwyn.rife.template.TemplateDeployer without any arguments to see the full usage help output.

Best regards,

Geert

On 09 Feb 2007, at 04:58, Emmanuel Okyere wrote:

David,

Templates are compiled into bytecode; they should have proper Java
class names... so maybe, FAQCommon or something similar :)

Hope that helps.

Cheers,
Emmanuel

On 2/9/07, David HM Spector <[EMAIL PROTECTED]> wrote:

I'm trying to get my app ready for testing on a production level server, but
I am getting errors when ant tries to compile my templates...

The template it's complaining about is only used by inclusion into another template (its the guts of an editing form) that's used in both the initial
creation, and in an editor for
FAQs that are built into our app.

Must be something simple I am missing -- I am using the stock build.xml from the 1.51 jumpstart package (although I am using a 1.6 snapshot JAR file)
which has the "precompile" target
described in
http://rifers.org/wiki/display/RIFE/Preparing+applications+for +production
 ...

Are there isssue with regard to case or special characters that I need to know about when packaging apps (I am running on OS X but HFS+ runs in mixed
case mode, and I have gotten
warnings when my filenames had the wrong case)? Also, why is the class not
found exception referring to
"com.uwyn.rife.template.enginehtml.admin.faqs.FAQ_common"
...? Or is that normal..?

_David

Here's the stacktrace:

precompile:
     [echo] Precompiling html templates:
     [java]
/Users/spector/Work/BittersweetLabs/ShannonClark/NELA/resources/ templates
: admin/AddVenue.html ... done.
     [java]
/Users/spector/Work/BittersweetLabs/ShannonClark/NELA/resources/ templates
: admin/EditAddressBookProvider.html ... done.
     [java]
/Users/spector/Work/BittersweetLabs/ShannonClark/NELA/resources/ templates
: admin/EventsAdminControls.html ... done.
     [java]
/Users/spector/Work/BittersweetLabs/ShannonClark/NELA/resources/ templates
: admin/ExternServiceProviderStats.html ... done.
     [java]
/Users/spector/Work/BittersweetLabs/ShannonClark/NELA/resources/ templates
: admin/ExternalServiceProviderControls.html ... done.
     [java]
/Users/spector/Work/BittersweetLabs/ShannonClark/NELA/resources/ templates
: admin/NewsandFAQControls.html ... done.
     [java]
/Users/spector/Work/BittersweetLabs/ShannonClark/NELA/resources/ templates
: admin/UserAdminControls.html ... done.
     [java]
/Users/spector/Work/BittersweetLabs/ShannonClark/NELA/resources/ templates
: admin/VenueAdminControls.html ... done.
     [java]
/Users/spector/Work/BittersweetLabs/ShannonClark/NELA/resources/ templates
: admin/email_template.html ... done.
     [java]
/Users/spector/Work/BittersweetLabs/ShannonClark/NELA/resources/ templates
: admin/faqs/AdminFAQS.html ... done.
     [java] Exception in thread "main"
com.uwyn.rife.template.exceptions.TemplateNotFoundException:
Couldn't find template 'admin.faqs.FAQ-common'.
     [java]     at
com.uwyn.rife.template.TemplateFactory.get(TemplateFactory.java:435)
     [java]     at
com.uwyn.rife.template.TemplateFactory.get(TemplateFactory.java:381)
     [java]     at
com.uwyn.rife.template.TemplateDeployer.execute (TemplateDeployer.java:96)
     [java]     at
com.uwyn.rife.template.TemplateDeployer.main (TemplateDeployer.java:282)
     [java] Caused by: java.lang.ClassNotFoundException:
Couldn't resolve template:
'com.uwyn.rife.template.enginehtml.admin.faqs.FAQ_common'.
     [java]     at
com.uwyn.rife.template.TemplateClassLoader.compileTemplate (TemplateClassLoader.java:174)
     [java]     at
com.uwyn.rife.template.TemplateClassLoader.loadClass (TemplateClassLoader.java:145)
     [java]     at
com.uwyn.rife.template.TemplateFactory.get(TemplateFactory.java:404)
     [java]     ... 3 more
     [java]
/Users/spector/Work/BittersweetLabs/ShannonClark/NELA/resources/ templates
: admin/faqs/FAQ-common.html ...

BUILD FAILED
/Users/spector/Work/BittersweetLabs/ShannonClark/NELA/build.xml:169:
Java returned: 1



-------------------------------------------------------------------- -----------------------

                                          David HM Spector

spector (at) zeitgeist.com
http://www.zeitgeist.com/

voice: +1 631.261.5013 fax: +1
212.656.1443

                                                    ~ ~ ~

"New and stirring things are belittled because if they are not belittled,
the

humiliating question arises, 'Why then are you not taking part in them?'"


          --H. G. Wells

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




--
blog -- http://eokyere.blogspot.com
RIFE Framework -- http://rifers.org
RIFE Training      -- http://rifers.org/training

Mohandas Gandhi - "You must be the change you wish to see in the world."
_______________________________________________
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

------------------------------------------------------------------------ -------------------
                                          David HM Spector
spector (at) zeitgeist.com http://www.zeitgeist.com/ voice: +1 631.261.5013 fax: +1 212.656.1443
                                                    ~ ~ ~
"New and stirring things are belittled because if they are not belittled, the humiliating question arises, 'Why then are you not taking part in them?'" --H. G. Wells

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

Reply via email to