Derek,
Thanks for the reply, I downloaded (turbine-2.2-src.zip) and used maven
to build my own turbine but still have problems with intake. So I
decided to test the application with the new build but without intake
(re-commented intake lines in TurbineResources.properties) and it works
fine. Once I un-comment the required lines in
"TurbineResources.properties" I get the following error as soon as I try
to browse to my webapp
(http://localhost:8080/<appname>/servlet<appname>) I get an error which
I have pasted below.
Any help much appreciated,
Regards,
Stuart.
Horrible Exception: java.lang.NoClassDefFoundError:
org/apache/regexp/RESyntaxException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at
org.apache.turbine.services.intake.model.Field.<init>(Field.java:141)
at
org.apache.turbine.services.intake.model.StringField.<init>(StringField.
java:71)
at
org.apache.turbine.services.intake.model.FieldFactory$3.getInstance(Fiel
dFactory.java:99)
at
org.apache.turbine.services.intake.model.FieldFactory.getInstance(FieldF
actory.java:198)
at
org.apache.turbine.services.intake.model.Group.<init>(Group.java:156)
at
org.apache.turbine.services.intake.TurbineIntakeService.getGroup(Turbine
IntakeService.java:378)
at
org.apache.turbine.services.intake.TurbineIntake.getGroup(TurbineIntake.
java:85)
at
org.apache.turbine.services.intake.IntakeTool.init(IntakeTool.java:127)
at
org.apache.turbine.services.pull.TurbinePullService.populateWithRequestT
ools(TurbinePullService.java:478)
at
org.apache.turbine.services.pull.TurbinePullService.populateContext(Turb
inePullService.java:406)
at
org.apache.turbine.services.pull.TurbinePull.populateContext(TurbinePull
.java:145)
at
org.apache.turbine.services.velocity.TurbineVelocityService.getContext(T
urbineVelocityService.java:249)
at
org.apache.turbine.services.velocity.TurbineVelocity.getContext(TurbineV
elocity.java:156)
at
org.apache.turbine.modules.pages.VelocityPage.doBuildBeforeAction(Veloci
tyPage.java:84)
at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:13
7)
at org.apache.turbine.modules.Page.build(Page.java:90)
at
org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
at org.apache.turbine.Turbine.doGet(Turbine.java:563)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.
java:450)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:18
0)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
va:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
7)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1125)
at java.lang.Thread.run(Thread.java:536)
-----Original Message-----
From: Gaasch, Derek [mailto:[EMAIL PROTECTED]
Sent: 01 March 2003 00:01
To: 'Turbine Users List'
Subject: RE: Starting With Intake
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]