Elouan,

Setting up JBoss + embedded tomcat + cocoon is quiet easy

>- give me some helpful links ?
There will be an article published on www.javaworld.com on the 3rd of
February on this topic, let me know what you think :)

>-  or some kind of direction of how to set up this. ?

1. Download Cocoon

2. Copy the Xalan, Xerces, FOP, Servlet and Cocoon jar files to
%TOMCAT_HOME%/lib

3.Modify the run.bat/run.sh file in the %JBOSS_HOME%/bin to include these
files. 

4. In any war file you deploy make sure it contains cocoon.properties (found
at %COCOON_HOME%/conf/cocoon.properties) at the top level and also contains
a WEB-INF directory with a web.xml file inside.

here a sample web.xml file

  <?xml version="1.0" encoding="ISO-8859-1" ?> 
  <!DOCTYPE web-app (View Source for full doctype...)> 
- <web-app>
- <!--  Start Cocoon Section 
  --> 
- <servlet>
  <servlet-name>org.apache.cocoon.Cocoon</servlet-name> 
  <servlet-class>org.apache.cocoon.Cocoon</servlet-class> 
- <init-param>
  <param-name>properties</param-name> 
  <param-value>cocoon.properties</param-value> 
  </init-param>
  </servlet>
- <servlet-mapping>
  <servlet-name>org.apache.cocoon.Cocoon</servlet-name> 
  <url-pattern>*.xml</url-pattern> 
  </servlet-mapping>
- <!--  End Cocoon Section 
  --> 
  </web-app> 

5. To test war up the samples directory (call it samples.war)inside the
cocoon distribution and include the cocoon.properties file and the web.xml
file as above.

6. Deploy it. Then point your browser to http://localhost/samples/index.xml

Let me know how you get on

>- or aware me of all the pitfalls that I should take care of ?

Always unit test :)


Eoin


_______________________________
Eoin Lane, PhD
Senior Consultant, Valtech Ltd.
_______________________________


DISCLAIMER: This e-mail contains Proprietary information some or all of
which may be legally privileged. It is for the intended recipient only.  If
an addressing or transmission error has misdirected this e-mail, please
notify the author by replying to this e-mail. If you are not the intended
recipient you must not disclose, distribute, copy, print or rely on this
e-mail. All information contained within this e-mail is subject to the Terms
& Conditions of Valtech Ltd. which are available upon request. 




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to