Hi Robert, On 30.10.13 00:56, Robert Lee wrote: > I cannot find a way around the java.langNoSuchFieldError:ROLE > thrown by: in TurbineRunDataService
A stack trace would be helpful. But see below. > pool = > (PoolService)TurbineServices.getInstance().getService(PoolService.ROLE); > > I have been trying the Pool and Factory Services as in > > pom.xml > <dependency> > <groupId>org.apache.fulcrum</groupId> > <artifactId>fulcrum-pool</artifactId> > <version>1.0.4</version> > </dependency> This looks ok to me. > TR.props > services.PoolService.classname=org.apache.fulcrum.pool.DefaultPoolService > services.FactoryService.classname=org.apache.fulcrum.factory.FactoryService; These two services should not be configured in TR.props. See the step-by-step-guide at http://wiki.apache.org/turbine/Turbine4/Turbine4.0M1/Migrate233 > roleConfiguration.xml > > <role > name="org.apache.fulcrum.pool.PoolService" > shorthand="pool" > default-class="org.apache.fulcrum.pool.DefaultPoolService"/> > > <role > name="org.apache.fulcrum.factory.FactoryService" > shorthand="factory" > default-class="org.apache.fulcrum.factory.DefaultFactoryService"/> > > What is the best workaround for this? I can go back to Turbine 2.4 or > 4.0-M2 if none exist within M1. It looks as if you have different versions of the PoolService in your classpath. Look into your WEB-INF/lib directory to see what is there. If all fails, you may try to create a new Turbine 4 project from the maven-archetype as described in https://blogs.apache.org/turbine/entry/maven_archetypes_for_apache_turbine HTH. Bye, Thomas. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
