Antwort: Cannot get Turbine 4.0-M1 to initalize in Tomcat7

"Georg Kallidis" <[email protected]> Wed, 30 Oct 2013 09:31:26 +0100
Newsgroups gmane.comp.jakarta.turbine.user
Message-ID <OFAC21500F.E0362177-ONC1257C14.00289AF7-C1257C14.002ED189@cedis.fu-berlin.de>
Hi Robert, did you recompile fulcrum-pool-1.0.4.jar? I get a similar
error, if PoolService.ROLE is not set (commented), but the exception is
thrown then from DefaultParserService:

ERROR avalon - Servicing the following service failed : parser
java.lang.NoSuchFieldError: ROLE
	at org.apache.fulcrum.parser.DefaultParserService.service
(DefaultParserService.java:311)

How could the parser service start, without the pool service??

Best regards, Georg



                                                                                                                                   
  Von:        Robert Lee <[email protected]>                                                                                    
                                                                                                                                   
  An:         Turbine Users List <[email protected]>,                                                                        
                                                                                                                                   
  Datum:      30.10.2013 01:24                                                                                                     
                                                                                                                                   
  Betreff:    Cannot get Turbine 4.0-M1 to initalize in Tomcat7                                                                    
                                                                                                                                   





I am still trying running Turbine 4.0-M1.

I cannot find a way around the java.langNoSuchFieldError:ROLE
thrown by: in TurbineRunDataService

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>
TR.props
services.PoolService.classname=org.apache.fulcrum.pool.DefaultPoolService

services.FactoryService.classname=org.apache.fulcrum.factory.FactoryService;

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.