Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
AppFuseSupport




JSPWiki v2.2.33

[RSS]


Hide Menu

AppFuseOnJBoss


Difference between version 15 and version 14:

At line 86 changed 2 lines.
!!JBoss 4.0 Changes to AppFuse Security Instructions
Contributed by Josh Sents
!!JBoss 4.0.2 and AppFuse 1.8+
At line 89 changed 4 lines.
In the login-config.xml change
{{{ <module-option name = "dsJndiName">jdbc/mysql</module-option> }}}
To
{{{ <module-option name = "dsJndiName">java:/jdbc/mysql</module-option> }}}
;:''Contributed by Ivan Coro (ivcoro at hotmail)''
At line 90 added 15 lines.
(1) First, you need to copy the entire appfuse deployment dir under jboss deploy dir. The default deploy dir in JBoss is something like "/server/default/deploy/". I needed to rename the dir as "appfuse.war" (Notice the .war in the name) so that jboss can detect it and reload it without errors.
(2) Next, you need to configure the datasource in jboss. For this, you need another file named "appfuse-ds.xml" and this file needs to be placed in the "deploy" dir of JBoss, at the same level of your deployed app dir, i.e., /server/default/deploy/. The contents of the file are:
{{{
<datasources>
<local-tx-datasource>
<jndi-name>jdbc/appfuse</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/appfuse</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>test</user-name>
<password>test</password>
</local-tx-datasource>
</datasources>
}}}
At line 95 changed 1 line.
Create a WEB-INF/[jboss-web.xml] file inside Appfuse.jar with the following contents
(3) Next, You need a new file named "jboss-web.xml" which should be inside WEB-INF dir of you app. This file is needed for jboss deployment. The contents of this file is as follows:
At line 98 changed 3 lines.
<?xml version="1.0" encoding="UTF-8" ?>
<jboss-web>
<context-root>/appfuse</context-root>
<?xml version="1.0" encoding="UTF-8" ?>
<jboss-web>
<context-root>/appfuse</context-root>
At line 102 changed 7 lines.
<res-ref-name>jdbc/mysql</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:jdbc/mysql</jndi-name>
</resource-ref>
<security-domain>java:/jaas/appfuse</security-domain>
</jboss-web>
}}}
<res-ref-name>jdbc/appfuse</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:jdbc/appfuse</jndi-name>
</resource-ref>
</jboss-web>
}}
%%note __NOTE:__ You need to change the word "appfuse" to the name of the app instance you created if you are not using the default app that comes with appfuse.%%
(4) Restart JBoss service.

Back to AppFuseOnJBoss, or to the Page History.