cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] SpringPetstore Mon Jun 21 17:00:02 2004
Date Mon, 21 Jun 2004 15:00:02 GMT
Page: http://wiki.cocoondev.org/Wiki.jsp?page=SpringPetstore , version: 3 on Sun Jun 21 14:31:02
2004 by UgoCei

+ ! Installation instructions
+ 
+ # Unzip the file in the src/blocks directory of your Cocoon 2.1.5 or CVS HEAD working directory.
+ # Edit spring/conf/spring.xconf and set the value of the {{<classpath>}} element to
the absolute path to the {{dynjava}} subdirectory.
+ # Build Cocoon. This block depends on the following blocks, so be sure to include them in
your {{local.blocks.properties}}: forms, databases, hsqldb. Exclude JARs validation from {{local.build.properties}}.
+ # Run Cocoon ({{cocoon servlet}}) and navigate to the "Spring" sample.
+ 
+ ! Authentication
+ 
+ In order for authentication to work, you need to manually configure the container, as this
is not done by the build procedure. This are the steps required:
+ 
+ * Put a file named {{petstore.realm.properties}} in the {{tools/jetty/conf}} directory.
Its contents should match the following:
+ 
+ {{{
+ j2ee: j2ee, petstore
+ ACID: ACID, petstore
+ }}}
+ 
+ * Edit the {{tools/jetty/conf/main.xml}} and insert the following at the end (just before
the closing {{</Configure>}} tag):
+ 
+ {{{
+ <Call name="addRealm">
+   <Arg>
+     <New class="org.mortbay.http.HashUserRealm">
+       <Arg>PetStore</Arg>
+       <Arg><SystemProperty name="jetty.home" default="."/>/tools/jetty/conf/pe
+ tstore.realm.properties</Arg>
+     </New>
+   </Arg>
+ </Call>
+ }}}
+ 



Mime
View raw message