Do searches on intake and jdk... if you're using a precompiled version of
turbine, chances are it was compiled with JDk1.3 & there is a problem
initializing Intake the first time you use a given Intake.xml file (i.e.
each time you change it) if you don't use the same version of the JDK.

The way I deal with the problem is I have 1.3 and 1.4 installed on my
machine.

If I change intake.xml, I set java_home to jdk1.3 and issue 'startup'. After
it goes through the initialization procedure, everything is cool & JDK 1.4
works fine.... until you change intake.xml.

Lather, rinse, repeat.

You could also download the source and do a build of turbine with your
jdk1.4 also -- which would probably solve the problem for good.

-d

-----Original Message-----
From: David Worms [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 4:03 PM
To: Turbine Users List
Subject: Re: Starting With Intake

check your TurbineResources.properties.
make sure to uncomment the lines:

services.IntakeService.classname=org.apache.turbine.services.intake.Turb 
ineIntakeService
(intake service)

tool.request.intake=org.apache.turbine.services.intake.IntakeTool
(intake pull tool used to connect your template with the intake service)


On Friday, February 28, 2003, at 02:55  PM, Stuart Townhill wrote:

> To anyone who can help,
>
> (Using TDK2.2 WinXP MySql Ant1.5.1 JDK1.4.1)
>
> I'm back once again. Beginning to look at intake to validate data, from
> forms. I have un-commented the following lines in
> TurbineResources.properties:
>
> services.IntakeService.classname=org.apache.turbine.services.intake.Tur 
> b
> ineIntakeService
> tool.request.om=org.apache.turbine.om.OMTool
> tool.request.intake=org.apache.turbine.services.intake.IntakeTool
>
> Have created a simple intake.xml file (WEB-INF/conf) with one group and
> one field with one rule.
>
> Modified my form to use intake but when the browser displays the form  
> it
> actually displays to the user: "$intake.declareGroups()" and the name  
> of
> input filed I am using intake on is being rendered as:
>
> name="$customerGroup.Firstname.Key"
>
> instead of being converted to (I presume):
>
> name="customerentry_0f"
>
> So I guess there must be a problem initiating intake I found the
> following error in the log:
>
> 2003-02-28 21:40:07,455 - RHS of #set statement is null. Context will
> not be modified. screens/InsertCustomerIntake.vm [line 33, column 5]
> 2003-02-28 21:40:07,485 -
> org.apache.velocity.runtime.exception.ReferenceException: reference :
> template = screens/InsertCustomerIntake.vm [line 1,column 1] :
> $customerGroup.Firstname.Key is not a valid reference.
> 2003-02-28 21:40:07,485 -
> org.apache.velocity.runtime.exception.ReferenceException: reference :
> template = screens/InsertCustomerIntake.vm [line 44,column 25] :
> $customerGroup.Firstname.Message is not a valid reference.
> 2003-02-28 21:40:07,515 -
> org.apache.velocity.runtime.exception.ReferenceException: reference :
> template = screens/InsertCustomerIntake.vm [line 73,column 5]
>
> Have looked through various past discussions and a few talk about a
> "*.ser" file but I do not appear to have any in my webapp. The  
> following
> line of code also appeared in a discussion, in someone's
> TurbineResources.properties file but this line of code is not in my
> TurbineResources.properties:
>
> services.IntakeService.serialize.path=WEB-INF/intake-xml.ser
>
> Any advice would be greatly appreciated.
>
> Regards,
>
> Stuart Townhill.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to