Re: Test, Migrating to Turbine 4.0-M1

[email protected] Fri, 25 May 2012 11:25:57 +0200
Newsgroups gmane.comp.jakarta.turbine.user
Message-ID <[email protected]>
Hi Thomas,

ok, the patch was meant for explanation, but I think you are able cope 
with it.

cheers,
Johannes

Am 25.05.2012 10:56, schrieb [email protected]:
> Hi Thomas,
>
> thanks, I got it: A webapp using Turbine-4.0-M1, based on the mentioned
> maven archetype project.
>
> Some, for me necessary: missing dependencies for pom.xml:
> * org.apache.fulcrum:fulcrum-cache
> * org.apache.fulcrum:fulcrum-upload
>
> and some modifies in TurbineResource.properties:
> *
> services.RunDataService.default.parameter.parser=org.apache.fulcrum.parser.DefaultParameterParser
>
> *
> services.RunDataService.default.cookie.parser=org.apache.fulcrum.parser.DefaultCookieParser
>
> *
> services.AvalonComponentService.containerConfiguration=${applicationRoot}/WEB-INF/conf/containerConfiguration.xml
>
>
> see attached patch file accordingly.
>
> cheers,
> Johannes
>
>
> Am 05.05.2012 16:04, schrieb Thomas Vandahl:
>> Hi Johannes,
>>
>> Am 03.05.2012 09:44, schrieb [email protected]:
>>> Is there any special support for maven from turbine 4.0, e.g. a project
>>> template?
>>
>> Just a quick reply that there are drafts of maven-archetypes available
>> that you could try. The web applications created from them are tested.
>> See http://www.mail-archive.com/[email protected]/msg00429.html
>>
>> Bye, Thomas.
>>
>>
>> ---------------------------------------------------------------------
>> 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]
turbine-4.0-archetype-webapp.patch.correctedVersion (text/plain, 2.3 KB)
Index: src/main/resources/archetype-resources/pom.xml
===================================================================
--- src/main/resources/archetype-resources/pom.xml	(revision 1341769)
+++ src/main/resources/archetype-resources/pom.xml	(working copy)
@@ -213,6 +213,16 @@
             <artifactId>fulcrum-yaafi</artifactId>
             <version>1.0.6</version>
         </dependency>
+		<dependency>
+            <groupId>org.apache.fulcrum</groupId>
+            <artifactId>fulcrum-cache</artifactId>
+            <version>1.1.0</version>
+        </dependency>
+		<dependency>
+            <groupId>org.apache.fulcrum</groupId>
+            <artifactId>fulcrum-upload</artifactId>
+            <version>1.0.4</version>
+        </dependency>
 
         <dependency>
             <groupId>junit</groupId>
Index: src/main/resources/archetype-resources/src/main/webapp/WEB-INF/conf/TurbineResources.properties
===================================================================
--- src/main/resources/archetype-resources/src/main/webapp/WEB-INF/conf/TurbineResources.properties	(revision 1341769)
+++ src/main/resources/archetype-resources/src/main/webapp/WEB-INF/conf/TurbineResources.properties	(working copy)
@@ -361,8 +361,8 @@
 # -------------------------------------------------------------------
 
 services.RunDataService.default.run.data=org.apache.turbine.services.rundata.DefaultTurbineRunData
-services.RunDataService.default.parameter.parser=org.apache.turbine.util.parser.DefaultParameterParser
-services.RunDataService.default.cookie.parser=org.apache.turbine.util.parser.DefaultCookieParser
+services.RunDataService.default.parameter.parser=org.apache.fulcrum.parser.DefaultParameterParser
+services.RunDataService.default.cookie.parser=org.apache.fulcrum.parser.DefaultCookieParser
 
 # -------------------------------------------------------------------
 #
@@ -663,7 +663,7 @@
 #
 # Name and location to the configuration file for the components.
 #
-services.AvalonComponentService.containerConfiguration = WEB-INF/conf/containerConfiguration.xml
+services.AvalonComponentService.containerConfiguration = #var("applicationRoot")/WEB-INF/conf/containerConfiguration.xml
 services.AvalonComponentService.earlyInit= true
 
 # -------------------------------------------------------------------