JBoss Installation
These instructions are for JBoss Application Server 4.0.X.- Download and install JBoss Application Server . It's usually as simple as unzipping it in a directory. Let's call this directory $JBOSS_HOME.
- (optional) By default JBoss runs on port 8080. If you want to modify the port on which JBoss is running, edit $JBOSS_HOME/server/<mode>/deploy/jbossweb-tomcat55.sar/server.xml. Search for "8080" and replace with the port value you wish to use. Similarly change the port in $JBOSS_HOME/server/<mode>/deploy/http-invoker.sar/META-INF/jboss-service.xml to the value you like.
- Copy and expand the XWiki WAR into a directory named xwiki.war/ (note that unlike most servlet containers JBoss wants the directory name to end with .war) in $JBOSS_HOME/server/<server configuration>/deploy where server configuration is the JBoss configuration you're using.
Configuration XWiki to use a JBoss DataSource
- Uncomment the resource-ref section in XWiki's web.xml file.
- Modify XWiki's WEB-INF/hibernate.cfg.xml file to tell Hibernate to use a DataSource rather than a direct JDBC connection
- Copy the jboss-web.xml file to XWiki's WEB-INF/ directory
Version 3.4 last modified by VincentMassol on 05/03/2008 at 14:39
Comments: 4
- the DS definition is optional as by default XWiki doesn't require it and isn't configured to use it (you need to modify the hibernate.cfg.xml file to use the DS)
- The MySQL java connector is only required if you use the DS as XWiki already bundles the MySQL java connector jar
- Need to explain why there's a need for jboss-web.xml as I don't believe it's required
- Last the dfault/deploy directory is only valid if the user is using the default server configuration. Need to make this more explicit and more generic
Thanks