![]() Main page FAQ HOWTO Components Page Index myWMS News ![]() Mailinglist ![]() lexicon ![]() Recent Changes WikiEtiquette Find pages Unused pages Undefined pages Impressum ![]()
Set your name in
UserPreferences Referenced by
JSPWiki v2.2.33
i18n support |
Switching between versions of the application server, the database or the JDK will affect your configuration. Here are some hints for those issues. Table of ContentsSwitching the DatabaseNative SQL for LoginThe JBoss configuration contains some native SQL to check users and roles during the authorization and authentication process. Please check the syntax used in <JBOSS_HOME>/server/default/conf/login-config.xmlHypersonic/HSQLDB
<application-policy name = "myWMS">
<authentication>
<login-module
code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
flag = "required">
<module-option
name = "unauthenticatedIdentity">guest</module-option>
<module-option
name = "dsJndiName">java:/myWMSDS</module-option>
<module-option name = "principalsQuery">SELECT u.password AS PASSWD FROM mywms_user AS u WHERE u.name=?</module-option>
<module-option name = "rolesQuery">SELECT r.name AS ROLEID, 'Roles' AS Roles FROM mywms_user AS u, mywms_role AS r, mywms_user_mywms_role AS ur WHERE u.id=ur.mywms_user_id AND r.id=ur.roles_id AND u.name=?</module-option>
</login-module>
</authentication>
</application-policy>
PostgreSQL
<application-policy name = "myWMS">
<authentication>
<login-module
code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
flag = "required">
<module-option
name = "unauthenticatedIdentity">guest</module-option>
<module-option
name = "dsJndiName">java:/myWMSDS</module-option>
<module-option name = "principalsQuery">SELECT u."password" AS "PASSWD" FROM mywms_user AS u WHERE u.name=?</module-option>
<module-option name = "rolesQuery">SELECT r.name AS "ROLEID", 'Roles' AS "Roles" FROM mywms_user AS u, mywms_role AS r, mywms_user_mywms_role AS ur WHERE u.id=ur.mywms_user_id AND r.id=ur.roles_id AND u.name=?</module-option>
</login-module>
</authentication>
</application-policy>
Native SQL for System ClientThere is one native insert-statement used in class org.mywms.service.ClientServiceBean. The statement is executed in case of a missing System Client only. If this statement fails with your database, there are the following chances to prevent errors:
ConfigurationThe choice of the database affects the following files:
PostgreSQL
<property name="hibernate.dialect"
value="org.hibernate.dialect.PostgreSQLDialect" />
Hypersonic/HSQLDB
<property name="hibernate.dialect"
value="org.hibernate.dialect.HSQLDialect" />
Switching the JDKSwitch from 1.5 to 1.6Webservices will probably not work due to some removed code in the new JDK. Please also refer to The Small Potato and the JBoss Forum .
Switch from 1.6 to 1.5Please make sure to recompile every single byte of code back to the 1.5 syntax. Otherwise the JDK 1.5 will deny running the compiled classes. This applies to libraries deployed to the application server as well as to libraries distributed to subprojects and client installations.Switching JBossWhenever the JBoss is switched, please make shure, that myWMS and all depending projects use the apropriate jar-libraries from <JBOSS_HOME>/client/ and <JBOSS_HOME>/server/default/lib/.Switching to JBoss 4.2.2.GAUsually a session bean is local per definition. In 4.2.2 the annotation @Local must be specified explicitly for every bean interface.
|
||||||