Instead of trying to keep this document available, I'll just post what I have here.
Also, at the advice of the nice people on the forum, I have switched to using NetBeans 5.5
and it integrates with JBoss very nicely.
JBoss And Sun Creator Idiosyncrasies
by Nick Powers
Reference
* JBoss Appliction Server - version 4.0.5.GA in the default configuration.
- I installed it using the JEMS installer.
* MySQL - version 4.1.22
* JConnection - version 3.0.17
Purpose
This document will list all of the funny configurations I have to do to setup the JBoss
server.
Deploy a JSF project via Sun Creator
JBoss has components called JBossFaces that work like JFaces, but are not compatible with
Sun Creator's version. There is an article that references these problems. The old
way to replace the files and an Alternative Tomahawk option and Replacement option. I
only got the Table and action components to work if I replaced the JSF jars with Sun's
as described below.
* Delete the jsf-libs directory under the following:
<jboss_home>\server\default\deploy\jbossweb-tomcat55.sar
* Add jstl.jar and standard.jar into following directory:
<jboss_home>\server\default\deploy\jbossweb-tomcat55.sar
* Leave the sun JSF jars in the web/lib directory.
* Create a jboss-web.xml that has the following lines:
| <jboss-web>
| <resource-ref>
| <res-ref-name>jdbc/MySQLDS</res-ref-name>
| <jndi-name>java:/jdbc/MySQLDS</jndi-name>
| </resource-ref>
| </jboss-web>
|
- This defines the data source. Place it into the web\WEB-INF directory of the
Creator project
* Enter the following lines to the web.xml of the Creator project:
|
<listener><listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class></listener>
|
- You can not put this into the web.xml file in your Sun Creator project. It will not
deploy.
- This will be placed in the WEB-INF directory.
* Remove the log4j jar from the WEB-INF/lib directory as it causes problems with the one
defined in the JBoss Server.
Make jmx-console Work Again
* insert the following into the
<jboss_home>\server\default\deploy\management\console-mgr.sar\web-console.war\WEB-INF\jboss-web.xml
file:
| <jboss-web>
| <!-- Uncomment the security-domain to enable security. You will
| need to edit the htmladaptor login configuration to setup the
| login modules used to authentication users.
| -->
| <security-domain>java:/jaas/jmx-console</security-domain>
| <depends>jboss.admin:service=PluginManager</depends>
| </jboss-web>
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995732#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...