jivejdon3在jboss3+mysql4下怎样配置?

06-03-29 alexfhq
我下载了jivejdon3的源码,把jivejdon3.war和mysql-ds.xml复制到deploy下,按照readme.txt所说的做法去配置,也在conf/login-config.xml里加上了 <application-policy name = "SecurityRealm">

<authentication>

<login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required">

<module-option name = "dsJndiName">java:/Security</module-option>

<module-option name="principalsQuery">SELECT password FROM User WHERE name = ?</module-option>

<module-option name="rolesQuery">SELECT RL.name, 'Roles' FROM role as RL, user as U , users_roles as RU WHERE U.userid = RU.userid and RU.roleid = RL.roleid and U.name = ?</module-option>

<module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=Security</module-option>

</login-module>

</authentication>

</application-policy>

但当在jivejdon3起动以后,后台总是报ERROR [JdbcTempSource] javax.naming.NameNotFoundException:JiveJdonDS not bound

ERROR [JdbcTempSSOSource] javax.naming.NameNotFoundException:Security not bound

Error [BlockQueryJDBCTemp] java.lang.NullPointerException

页面上注册不成功.另外我试过用jboss4配置过,IncludeTop.jsp里的中文还出错乱码.在网上搜过在配置jboss时,要修改standardjaws.xml和standardjbosscmp-jdbc.xml里的type-mapping=mysql,但这个好像是用到EJB才要配置的吧,请高手指点一下.把详细的配置过程写一下.万分感谢.

banq
2006-03-29 18:48
要配置JiveJdonDS 和Security 两个数据源

这和EJB无关,是JNDI配置,前者是数据源JNDI,后者是基于容器的安全机制的安全源。

alexfhq
2006-03-30 08:34
我已经按照readme里所说的,对mysql和jboss配置了.但还是不能找到数据源,还有,我在linux 下也试着配置了一把,用的是mysql+jboss3.2,但验证码的图片不能显示.请版主指出配置的全过程,谢谢.

alexfhq
2006-04-03 08:53
banq大哥提供的"http://www.jdon.com/jive/article.jsp?forum=61&thread=25141"并不能找到答案,能把数据源配置写出来吗?

猜你喜欢
2Go 1 2 下一页