Differences between revisions 1 and 2
Revision 1 as of 2005-03-22 05:44:02
Size: 4172
Editor: anonymous
Comment: missing edit-log entry for this revision
Revision 2 as of 2009-09-20 23:50:22
Size: 4172
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Navigation trail: TurbineProjectPages - JakartaTurbine2 - JakartaTurbine2Faq - CommonIntakeProblems


Common Intake Problems

Below are common problems and solutions encountered when first using Intake.

  • Make sure that you have read the intake service and intake howto completely.
  • Also, check the mailing list archives. Intake is one of the most talked about services on the turbine-user list.
  • Please note that the version of Intake provided with Turbine 2.3 does a much better job of giving you more specific error messages when a problem occurs. Nevertheless, Intake in 2.2 works very well and saves you lots of time! It is easily worth the time spent learning how to use it.


Q: Intake won't run, and I am using sdk 1.4

A: If you have turbine running under sdk 1.4, try recompiling the turbine src with the java version you are using.

Also, fixed in Turbine 2.3


Q: Why does <code>$intake.MyGroup.mapTo($myobject)</code> not populate the form fields?

A: Assuming you have your group configured and the $intake tool enabled, does your target object ({ { { MyObject } } }) implement the org.apache.turbine.om.Retrievable interface? Putting something like the following ought to work:

public class MyObject extends BaseMyObject implements Retrievable
{
{{{    private String querykey = null; 

    public String getQueryKey() 
    { 
        if(querykey == null) 
        { 
            setQueryKey(getPrimaryKey().toString()); 
        } 
        return querykey; 
    } 
   
    public void setQueryKey(String arg) 
    { 
        querykey = arg; 
    } 

}

  • }}}

You may wonder why your Torque-generated object don't already do this? This is because Torque is a separate project from Turbine, and it would be improper for Torque generated objects to implement an interface from the Turbine project. So you must do it manually, and be glad that it is easy to do.


== A Beginners Experience With Intake == Introduction

This will be sort of a work in progress section for me, after all the help I have recieved from the community on the user list I thought it was only fair to document it on the wiki. So as I get different aspects of my intake service to work I will try and post them here.

Regards,

Stuart Townhill.

My Setup

  • TDK2.2.
  • Ant1.5.1.
  • Maven v. 1.0-beta-7.
  • Mysql Ver11.18.
  • Win XP Professional Version 2002 Service Pack 1.
  • JDK1.4.1.

Intake Setup

  • Uncomment the following lines from TurbineResources.properties (<TDK ROOT>/webapps/<APPNAME>/WEB-INF/build).

    • 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).

Problems Encountered

  • First Problem

    • At first I could never get intake to initalise. The answer to this is an elaboration of the first question on this page. Basically it is my understanding that the turbine2-2.jar (<TDK ROOT>/webapps/<APPNAME>/WEB-INF/lib) was built using JDK1.3.1 and therfore may not work correctly with JDK1.4.1.

  • Second Problem

    • As soon as I solved the first problem it seemed to trigger another problem. As soon as I browsed to my app (http://localhost:8080/<APPNAME>/servlet<APPNAME> ) I recieved an error to the tune of (Horrible Exception: java.lang.NoClassDefFoundError:org/apache/regexp/RESyntaxException).

      • Solution

      • *I had to add the following file (regexp-1.2.jar) to my (<TDK ROOT>/webapps/<APPNAME>/WEB-INF/lib). I found this file located in (<TDK ROOT>/server/lib).

Getting My First Instance Of Intake Working

Comming soon!

JakartaTurbine2Faq/CommonIntakeProblems (last edited 2009-09-20 23:50:22 by localhost)