Hi Gordon,
You want a RoutingRequest, which is a newer class merging what used to
be called a Request and a TraverseOptions.
Where did you find this bit of XML? I see that there are still
references to TraverseOptions on the GraphBuilder wiki page, but in the
section on contraction hierarchies which are no longer maintained and
annotated as such in the documentation.
-Andrew
On 05/18/2013 07:10 AM, Gordon Tam wrote:
> Hello,
>
> i'm trying to incorporate the following configuration in my
> graph-builder.xml:
>
> ----------
> <bean id="graphBuilderTask"
> class="org.opentripplanner.graph_builder.GraphBuilderTask">
> <!-- typical config -->
> <property name="path" value="/otp" />
>
> <property name="modes">
> <bean class="org.opentripplanner.routing.core.TraverseOptions">
> <property name="mode" value="WALK" />
> <property name="optimize" value="QUICK" />
> </bean>
> </property>
> <property name="contractionFactor" value="0.992" />
> ----------
>
> however, when i run:
>
> java -Xmx2048m -jar lib/graph-builder.jar graph-builder.xml
>
>
> I get the following error:
>
> ----------
> Exception in thread "main"
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'graphBuilderTask' defined in file
> [/otp/graph-builder.xml]: Cannot create inner bean
> 'org.opentripplanner.routing.core.TraverseOptions#1a50ca0c' of type
> [org.opentripplanner.routing.core.TraverseOptions] while setting bean
> property 'modes'; nested exception is
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
> find class [org.opentripplanner.routing.core.TraverseOptions] for bean
> with name 'org.opentripplanner.routing.core.TraverseOptions#1a50ca0c'
> defined in file [/otp/graph-builder.xml]; nested exception is
> java.lang.ClassNotFoundException:
> org.opentripplanner.routing.core.TraverseOptions
> ----------
>
> When I open the org.opentripplaner.routing.core via netbeans, the
> TraverseOptions class is clearly not there...
>
> My OTP was pulled down today with the following steps:
> ----------
> git clone git://
github.com/openplans/OpenTripPlanner.git
> cd OpenTripPlanner
> mvn install integration-test -DskipTests -P interactive
> ----------
>
> Have I missed a step?
>
> Regards,
> Gordon
>
> --
> You received this message because you are subscribed to the Google
> Groups "OpenTripPlanner Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
opentripplanner...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>