Apologies if this is too simple a question.

I have just typed in the Hello World example from the Getting Started
document and it compiles and runs.  I am puzzled why I get the header and
footer "Turbine - A Servlet Framework for building Secure Dynamic Websites."
and a Logout button when I haven't got any other code anywhere.

Can anyone explain why this is happening?  I guess it could be something to
do with the details described in fsd.html.  Is there anything else that
describes what is going on with Turbine or should I just read fsd.htm
closer.

Thanks for any help.

Shaun Campbell


-----Original Message-----
From: Herv� Guidetti [mailto:[EMAIL PROTECTED]]
Sent: 14 September 2000 13:02
To: Turbine
Subject: Re: Problem using newtorque


Ok, shame on me. I had bad classpath.

But I have an other problem now. I get the last WebMacro-jdk1.2.jar and the
last WebMacro.properties from Turbine CVS. I configure WebMacro.properties
like this :

--------------------------------------------------------
# You should set TemplatePath, at the very least! It is a list of
# directories which will be searched for your templates, if you
# give a relative filename. It is a list of directories separated
# by a : (on Unix) or a ; (on NT).

# Template path is handled by Turbine
# see services.TurbineWebMacroService.templates entry in
/WEB-INF/Turbine.properties
TemplatePath = /home/users/hguidetti/prj/products/fire/resources/

# WebMacro compiles and caches templates for efficiency. During development
# you will want to turn this off by setting the following value to 0, so
# that your template changes are immediately reflected on the website. In
# production systems, this it the number of milliseconds of idle time
# that a cached template will be retained, ie: 600000 is ten minutes.
TemplateExpireTime = 0
# TemplateExpireTime == 600000

# LogLevel can be: ALL, DEBUG, EXCEPTION, ERROR, WARNING, INFO, or NONE
# in order of most information to least information displayed.
LogLevel = ALL
# LogTraceExceptions causes exception stack traces to be included in the
log,
# this causes exceptions to be verbose, but may point out the exact line
# or method which is causing a fault.

LogTraceExceptions = TRUE

# Uncomment the following to log to a file rather than stderr. If your
# standard error writes to a useful log already, you don't need this,
# but many servlet runners simply eat standard error.
#LogFile
=/home/users/hguidetti/prj/products/fire/src/persistence/torque/webmacro.log
# Set the template (relative to TemplateDirectory) used for errors. You
# can edit this template to customize the way script failures appear
ErrorTemplate = error.wm
........
--------------------------------------------------------

My taget is (in build.xml)
--------------------------------------------------------
 <target name="om-classes" depends="init">
      <xml-gen

outDir="/home/users/hguidetti/prj/products/fire/src/persistence/torque/outpu
t"

xmlFile="/home/users/hguidetti/prj/products/fire/src/persistence/torque/syst
em.xml"
        inputFile="templates/newtorque/om/omgenerate.wm"
        database="mysql"
        targetPackage="com.toto.truc"
      />
  </target>
--------------------------------------------------------

And I always get this :
--------------------------------------------------------
Buildfile: build.xml
init:
om-classes:
Loading Schema
Starting Generator
Parsing Template(s)
*** BEGIN: 9/14/00 1:47 PM***
*** LOG LEVEL SET TO: ALL
9/14/00 1:47 PM broker INFO Loaded provider:
org.webmacro.resource.HandlerProvider
9/14/00 1:47 PM broker INFO Loaded provider:
org.webmacro.resource.UrlProvider
9/14/00 1:47 PM dir INFO Registered directive: include
9/14/00 1:47 PM dir INFO Registered directive: parse
9/14/00 1:47 PM dir INFO Registered directive: set
9/14/00 1:47 PM dir INFO Registered directive: if
9/14/00 1:47 PM dir INFO Registered directive: else
9/14/00 1:47 PM dir INFO Registered directive: use
9/14/00 1:47 PM dir INFO Registered directive: param
9/14/00 1:47 PM dir INFO Registered directive: filter
9/14/00 1:47 PM dir INFO Registered directive: foreach
9/14/00 1:47 PM dir INFO Registered directive: local
9/14/00 1:47 PM dir INFO Registered directive: property
9/14/00 1:47 PM dir INFO Registered directive: tool
9/14/00 1:47 PM broker INFO Loaded provider:
org.webmacro.engine.DirectiveProvider
9/14/00 1:47 PM broker INFO Loaded provider:
org.webmacro.engine.ParserProvider
9/14/00 1:47 PM WM EXCPT org.webmacro.InvalidTypeException: No such type:
template
 at org.webmacro.broker.ResourceBroker.locate(ResourceBroker.java, Compiled
Code)
 at org.webmacro.broker.ResourceBroker.request(ResourceBroker.java, Compiled
Code)
 at org.webmacro.broker.ResourceBroker.getValue(ResourceBroker.java,
Compiled Code)
 at org.webmacro.WM.getTemplate(WM.java, Compiled Code)
 at
org.apache.turbine.samples.newtorque.generation.GenerateUtil.getTemplate(Gen
erateUtil.java, Compiled Code)
 at
org.apache.turbine.samples.newtorque.generation.GenerateUtil.parse(GenerateU
til.java, Compiled Code)
 at
org.apache.turbine.samples.newtorque.ant.XmlGeneration.execute(XmlGeneration
.java, Compiled Code)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java, Compiled
Code)
 at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
 at org.apache.tools.ant.Project.runTarget(Project.java, Compiled Code)
 at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled Code)
 at org.apache.tools.ant.Project.executeTargets(Project.java, Compiled Code)
 at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
 at org.apache.tools.ant.Main.main(Main.java, Compiled Code)
9/14/00 1:47 PM WM ERROR Broker unable to load templates
9/14/00 1:47 PM WM EXCPT org.webmacro.InvalidTypeException: No such type:
template
 at org.webmacro.broker.ResourceBroker.locate(ResourceBroker.java, Compiled
Code)
 at org.webmacro.broker.ResourceBroker.request(ResourceBroker.java, Compiled
Code)
 at org.webmacro.broker.ResourceBroker.getValue(ResourceBroker.java,
Compiled Code)
 at org.webmacro.WM.getTemplate(WM.java, Compiled Code)
 at
org.apache.turbine.samples.newtorque.generation.GenerateUtil.getTemplate(Gen
erateUtil.java, Compiled Code)
 at
org.apache.turbine.samples.newtorque.generation.GenerateUtil.parse(GenerateU
til.java, Compiled Code)
 at
org.apache.turbine.samples.newtorque.ant.XmlGeneration.execute(XmlGeneration
.java, Compiled Code)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java, Compiled
Code)
 at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
 at org.apache.tools.ant.Project.runTarget(Project.java, Compiled Code)
 at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled Code)
 at org.apache.tools.ant.Project.executeTargets(Project.java, Compiled Code)
 at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
 at org.apache.tools.ant.Main.main(Main.java, Compiled Code)
9/14/00 1:47 PM WM ERROR Broker unable to load templates

BUILD SUCCESSFUL

Total time: 2 seconds
--------------------------------------------------------

Why does torque says BUILD SUCCESSFUL if it isn't the case and why do I have
this error ?
Note : I have verify that
/home/users/hguidetti/prj/products/fire/resources/templates/newtorque/om/omg
enerate.wm file exists.

Help.
Thanks very much

Herv�

P.S : is there a doc how to use newtorque ?


----- Original Message -----
From: Leon Messerschmidt <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Wednesday, September 13, 2000 8:29 PM
Subject: Re: Problem using newtorque


> Hi
>
> It seems as if the ant task starts (by looking at the "Loading Schema"
message).
> I don't really know what could be going wrong inside the class.  Could you
maybe
> give me some more information, please.  A stack trace would be nice...
>
> ~ Leon
>




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to