Skip to main content

How to setup JBoss to work with Sun Java Studio Creator

Posted by ddevore on January 23, 2006 at 6:07 AM PST

This is a guide for setting up JBoss 4.0.1sp1 and JBoss 4.0.3sp1 to work with Sun Java Studio Creator, (referred to as Creator hereafter). By default JBoss does not include JSTL (Java Standard Tag Library) or JSF (Java Server Faces). Hence, to deploy an application to JBoss which is developed in Creator you must modify the default JBoss setup.

JBoss 4.0.1sp1 setup
Creator Release 1
Copy the jstl.jar and standard.jar files from the CREATOR_INSTALL_DIR/modules/autoload/ext directory to the JBOSS_SERVER_DEPLOY_DIR/jbossweb-tomcat50.sar directory.

Creator Release 2
Copy the jstl.jar and standard.jar files from the CREATOR_INSTLL_DIR/enterprise1/config/TagLibraries/JSTL11 directory to the JBOSS_SERVER_DEPLOY_DIR/jbossweb-tomcat50.sar directory.

JBoss 4.0.3sp1 setup
Creator Release 1
Copy the jstl.jar and standard.jar files from the CREATOR_INSTALL_DIR/modules/autoload/ext directory to the JBOSS_SERVER_DEPLOY_DIR/jbossweb-tomcat55.sar directory.

Creator Release 2
Copy the jstl.jar and standard.jar files from the CREATOR_INSTLL_DIR/enterprise1/config/TagLibraries/JSTL11 directory to the JBOSS_SERVER_DEPLOY_DIR/jbossweb-tomcat55.sar directory.

Required for Both JBoss 4.0.1sp1 and JBoss 4.0.3sp1
Since JBoss runs the MyFaces from Apache by default you must remove their libraries. These libraries are in the JBOSS_SERVER_DEPLOY_DIR/jbossweb-tomcat50.sar/jstl-libs or JBOSS_SERVER_DEPLOY_DIR/jbossweb-tomcat55.sar/jstl-libs directory. Remove the jstl-libs directory and the JBOSS_SERVER/tmp and JBOSS_SERVER/work directories. The latter two directories are created when you start JBoss and cache the jstl-libs files.

Run the Application
Start the JBoss application server, deploy an application and navigate to the URL for the application just deployed. The application should run with no errors.