Still no luck...
I still have the "newapp" webapp that gets built by default if you don't
change any of the property files for tdk (2.1) setup. Nothing had been
changed in it, and all I did was:
1) uncomment,
"services.IntakeService.classname=org.apache.turbine.services.intake.Turbine
IntakeService"
2) uncomment, "tool.request.om=org.apache.turbine.om.OMTool"
3) uncomment,
"tool.request.intake=org.apache.turbine.services.intake.IntakeTool"
4) add, "services.IntakeService.xml.path=/WEB-INF/conf/newapp-inputs.xml"
And I get the same error, what am I doing wrong?
-kevin
-----Original Message-----
From: Kevin Clark [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 5:29 PM
To: [EMAIL PROTECTED]
Subject: RE: Intake init
I made the changes described below, however, it didn't fix the problem.
Interestingly, I completely removed the [app]-inputs.xml file and recieved
the same error. Also, does a <group> need to have a mapToObject="..." or is
it optional. Also #2, I assumed the "mapToObect=" was appended to the
"basePackage" due to the trailing dot in "basePackage"... is this true, and
if so, how would I map to an object such as TurbineUser with a base package
or "org.apache.turbine" as well as an object of my own? leave base package
empty & specify the full path to the class? I may just be misunderstanding
something... and if any more info is needed to troubleshoot my intake
problem, just let me know.
-----Original Message-----
From: Jeffrey B. Woodward [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 3:22 PM
To: [EMAIL PROTECTED]
Subject: Re: Intake init
The intake docs are a bit aged. The xml for the rules have changed a bit:
instead of:
<rule minLength="5">A Username must be at least five characters</rule>
the rule is now written as:
<rule name="minLength" value="5">A Username must be at least five
characters</rule>
Similar is true of all the other rules; i.e., they are all in the form of:
<rule name="rule_name" value="value_of_constraint">message</rule>
-Jeff Woodward
Project Manager - Systems and Systems Integration
The fMRI Data Center
Dartmouth College
6162 Moore Hall
[EMAIL PROTECTED]
----- Original Message -----
From: "Kevin Clark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 13, 2001 1:34 PM
Subject: Intake init
> I'm having a problem with intake, during init I get this error in
> turbine.log:
>
> *******************************************************
> [Mon Aug 13 12:01:36 CDT 2001] -- INFO -- Start Initializing service
(late):
> PoolBrokerService
> [Mon Aug 13 12:01:36 CDT 2001] -- INFO -- Finish Initializing service
> (late): PoolBrokerService
> [Mon Aug 13 12:01:37 CDT 2001] -- WARN -- IDBroker is being used with db:
> default
> which does not support transactions. It is possible to
> generate duplicate keys, if multiple JVM's are used or other
> means are used to write to the database.
> [Mon Aug 13 12:01:37 CDT 2001] -- ERROR --
> Exception: org.apache.turbine.util.TurbineException
> Stack Trace follows:
> java.lang.NullPointerException
> at
>
org.apache.turbine.services.intake.xmlmodel.AppData.getGroup(AppData.java:12
> 8)
> at
>
org.apache.turbine.services.intake.TurbineIntakeService.getGroup(TurbineInta
> keService.java:368)
> rethrown as org.apache.turbine.util.TurbineException
> at
>
org.apache.turbine.services.intake.TurbineIntakeService.getGroup(TurbineInta
> keService.java:372)
> at
>
org.apache.turbine.services.intake.TurbineIntake.getGroup(TurbineIntake.java
> :85)
> at
> org.apache.turbine.services.intake.IntakeTool.init(IntakeTool.java:131)
> at
>
org.apache.turbine.services.pull.TurbinePullService.populateWithRequestTools
> (TurbinePullService.java:479)
> at
>
org.apache.turbine.services.pull.TurbinePullService.populateContext(TurbineP
> ullService.java:415)
> at
>
org.apache.turbine.services.pull.TurbinePull.populateContext(TurbinePull.jav
> a:145)
> etc...
> **********************************************************
>
> Per the documentation, I added:
>
> services.IntakeService.xml.path=WEB-INF/conf/[app]-inputs.xml
>
> to tr.props. And in that file, I have:
>
> <?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
> <!DOCTYPE input-data SYSTEM
> "http://jakarta.apache.org/turbine/dtd/intake.dtd">
> <!-- PUBLIC "-//Apache//Apache-Turbine-Intake Application Data//EN" -->
> <input-data basePackage="org.[company].[app].">
> <group class="NewUser" key="newuser">
> <field name="Username" key="u" type="String">
> <rule minLength="5">A Username must be at least five characters</rule>
> </field>
> <field name="Email" key="e" type="String">
> <rule minLength="1">Please enter an email address</rule>
> <rule mask=".+@.+\..+">Please enter a valid email address</rule>
> </field>
> </group>
> </input-data>
>
> Also, I uncommented the "services.IntakeService.classname=..." line, and
the
> "tool.request.intake=..." line. Does anyone know what I'm doing wrong?
>
> -kevin
>
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]