tomcat5.0上部署jivejdon出现的问题,请banq大哥研究研究

ilovebbs
07-09-16 16 654

<################################>Action: JdonFramework core entrance
2000-09-16 17:29:08,875 [http8080-Processor24] DEBUG com.jdon.bussinessproxy.dyncproxy.DynamicProxyWeaving - [JdonFramework]<################>execute method=com.jdon.jivejdon.service.ForumService.getForums
2000-09-16 17:29:08,875 [http8080-Processor24] DEBUG com.jdon.aop.AopClient - [JdonFramework] enter AOP invoker2 for:com.jdon.jivejdon.service.imp.ForumServiceImp method:getForums
2000-09-16 17:29:08,875 [http8080-Processor24] DEBUG com.jdon.aop.joinpoint.AdvisorChainFactory - [JdonFramework] enter create PointcutAdvisor
2000-09-16 17:29:08,875 [http8080-Processor24] ERROR com.jdon.util.Debug - com.jdon.aop.AopClient
java.lang.NullPointerException
at java.util.ArrayList.addAll(ArrayList.java:473)
at com.jdon.aop.joinpoint.AdvisorChainFactory.create(AdvisorChainFactory.java:58)
at com.jdon.aop.AopClient.invoke(AopClient.java:92)
at com.jdon.bussinessproxy.dyncproxy.DynamicProxyWeaving.invoke(DynamicProxyWeaving.java:62)
at $Proxy0.getForums(Unknown Source)
at com.jdon.jivejdon.presentation.action.ForumListAction.getPageIterator(ForumListAction.java:38)
at com.jdon.strutsutil.ModelListAction.execute(ModelListAction.java:69)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet.create(AdvisorChainFactory.java:58)
at com.jdon.aop.AopClient.invoke(AopClient.java:92)
... 48 more
2000-09-16 17:29:08,875 [http8080-Processor24] ERROR com.jdon.strutsutil.ModelListAction - getPageIterator not be implemented, you must implement either of them
2000-09-16 17:29:09,000 [http8080-Processor25] DEBUG com.jdon.controller.service.WebServiceFactory - <==============================>start: JdonFramework core entrance
2000-09-16 17:29:09,000 [http8080-Processor25] DEBUG com.jdon.controller.service.WebServiceFactory - <===============>Looking up new service='forumMessageQueryService'

ilovebbs
2007-09-16 17:53

由于发帖文字限制所以中间一部分错误信息被截取,下面是JDNI的配置信息:
<Context path="/jivejdon" docBase="C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jivejdon" debug="0" reloadable="true">
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/security?user=root&password=3c508"
digest="MD5" userTable="user" userNameCol="name" userCredCol="password"
userRoleTable="role" roleNameCol="name"/>
-->

<Resource name="jdbc/jivejdon" auth="Container" type="javax.sql.DataSource" />
<ResourceParams name="jdbc/jivejdon">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost:3306/jivejdon</value>
</parameter>
<parameter>
<name>username</name>
<value>root</value>
</parameter>
<parameter>
<name>password</name>
<value>3c508</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>20</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>20</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>-1</value>
</parameter>
</ResourceParams>
<Resource name="jdbc/security" auth="Container" type="javax.sql.DataSource" />
<ResourceParams name="jdbc/security">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost:3306/security</value>
</parameter>
<parameter>
<name>username</name>
<value>root</value>
</parameter>
<parameter>
<name>password</name>
<value>3c508</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>20</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>20</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>-1</value>
</parameter>
</ResourceParams>
</Context>

ilovebbs
2007-09-16 17:54

下面是daos.xml的配置情况
<!-- DataSource -->
<component name="jdbcTempSource"
class="com.jdon.jivejdon.dao.sql.JdbcTempSource">
<!-- JBoss JNDI-->
<!-- tomcat jndi <constructor value="java:/JiveJdonDS"/> -->
<constructor value="java:comp/env/jdbc/jivejdon"/>
</component>

<!-- DataSource for SSO -->
<component name="jdbcTempSSOSource"
class="com.jdon.jivejdon.dao.sql.JdbcTempSSOSource">
<!-- jboss jndi --> <!-- tomcat jndi <constructor value="java:/Security"/> -->
<constructor value="java:comp/env/jdbc/security"/>
</component>

ilovebbs
2007-09-16 18:01

权限部分我使用的是tomcat的tomcat_user.xml
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="Admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="admin" password="admin" roles="Admin"/>
</tomcat-users>
现在的 情况是论坛的 页面可以出来,但论坛的内容出不来,用http://localhost:8080/jivejdon/admin入口登录后管理功能不能用,或出现权限错误,或内容无法列表,列表系统tcp链接,没有链接mysql数据库的链接。我用jboss服务器就正常。请banq大哥研究研究!

banq
2007-09-17 12:03

目前不能在Tomcat下使用Jivejdon3.

我已经在JiveJdon3 readme中说了,由于Tomcat的权限realm对角色数据表有特定要求,JiveJdon3没有符合其设计,所以,JiveJdon3只能在对角色数据表没有限定设计的服务器上使用,例如JBoss/Weblogic等。

另外一种可能市更改JiveJdon3的角色数据表,这个以后会考虑。

4Go 1 2 3 4 下一页