JBoss Configurations

From Skyway Wiki

Jump to: navigation, search

This page describes any considerations regarding the deployment of fully or partially generated Spring MVC and Spring Web Flow applications to JBoss application servers.

This page has been updated to reflect the use of Skyway Builder 6.3.

JBoss 4.2.2

Here are the steps to deploy to JBoss 4.2.2:

  • From the Enterprise Configuration tab of the Spring DSL, configure the project as follows:
    • Container: Other
      • Transactions: Atomikos
      • Persistence: Hibernate
  • Do a clean build of the project (Project-->Clean...)
  • Export the "Web" project as a WAR (Right-click-->Export-->WAR file)
  • Update hibernate libraries in JBoss (i.e. C:\java\jboss-4.2.2.GA\server\default\lib) with hibernate libraries from exported war file (WEB-INF\lib)
  • Deploy project by copying WAR file to deploy folder (i.e. C:\java\jboss-4.2.2.GA\server\default\deploy)

JBoss 5.1

Here are the steps to deploy to JBoss 5.1:

  • From the Enterprise Configuration tab of the Spring DSL, configure the project as follows:
    • Container: JBoss
      • Transactions: Container
      • Persistence: Container
  • Do a clean build of the project (Project-->Clean...)
  • From the Category Mapping tab of the Spring DSL, check Disable automatic dependency updates to projects
  • Set the target runtime of the web project to JBoss 5.1 (Right-click-->Properties-->Targeted Runtimes)
    • This assumes you've already added JBoss 5.1 as a target runtime
  • Remove the following classpath entries in the Java Build Path (Right-click-->Properties-->Java Build Path-->Libraries)
    • Hibernate
    • Atomikos
    • CXF (do not remove this library if you are using Web Services)
    • Webservice
    • (the database driver that you are using if the entry exists)
  • Copy data-sources-ds.xml into the <JBoss home>/server/default/deploy directory
  • Put the database driver into the <JBoss home>/server/default/lib directory
  • In eclipse, open the server editor for Jboss server and increase timeout to 120 seconds (might need more depending on size and number of apps)

Web Services

  • In addition to the previous libraries, also remove the following library
    • Xml
  • Create a lib directory under the WebContent/WEB-INF directory in your web project if it does not exist
  • Add the XmlSchema-1.4.2.jar to the lib directory
Personal tools