jivejdon 3.5配置求助

09-01-09 moren
jivejdon3.5和Tomcat 5.5, jboss 4.05GA,jdk 1.5

但是出现这样的log错误:

2009-01-08 23:52:09,812 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Could not create table with SQL: CREATE CACHED TABLE JMS_MESSAGES ( MESSAGEID INTEGER NOT NULL, DESTINATION VARCHAR(255) NOT NULL, TXID INTEGER, TXOP CHAR(1), MESSAGEBLOB OBJECT, PRIMARY KEY (MESSAGEID, DESTINATION) )

java.sql.SQLException: Table already exists: JMS_MESSAGES in statement [CREATE CACHED TABLE JMS_MESSAGES]

at org.hsqldb.jdbc.Util.throwError(Unknown Source)

at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)

。。。。

2009-01-08 23:52:09,828 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Could not create table with SQL: CREATE CACHED TABLE JMS_TRANSACTIONS ( TXID INTEGER, PRIMARY KEY (TXID) )

java.sql.SQLException: Table already exists: JMS_TRANSACTIONS in statement [CREATE CACHED TABLE JMS_TRANSACTIONS]

at org.hsqldb.jdbc.Util.throwError(Unknown Source)

at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)

at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedStatement.java:95)

。。。。

2009-01-08 23:52:10,656 DEBUG [org.jboss.deployment.SARDeployer] Unregistering service UCL=jmx.loading:UCL=1445748

2009-01-08 23:52:10,656 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] UnifiedLoaderRepository removed(true) org.jboss.mx.loading.UnifiedClassLoader3@1445748{ url=null ,addedOrder=39}

2009-01-08 23:52:10,656 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/G:/eclipse/jboss-4.0.5.GA/server/default/deploy/mysql-ds.xml

org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.jca:service=LocalTxCM,name=DefaultDS

at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)

。。。。。。。。。。

2009-01-08 23:52:12,437 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors, End

2009-01-08 23:52:12,531 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Using session cookies default setting

2009-01-08 23:52:13,203 DEBUG [org.jboss.web.tomcat.filters.ReplyHeaderFilter] Adding header name: X-Powered-By='Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5'

2009-01-08 23:52:13,250 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jivejdon]] org.tuckey.web.filters.urlrewrite.utils.Log ERROR: logLevelConf: null

2009-01-08 23:52:13,312 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jivejdon]] org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)

2009-01-08 23:52:13,609 INFO [org.apache.struts.action.ActionServlet] Loading chain catalog from jar:file:/G:/eclipse/jboss-4.0.5.GA/server/default/lib/struts-core-1.3.8.jar!/org/apache/struts/chain/chain-config.xml

2009-01-08 23:52:14,718 ERROR [org.apache.commons.digester.Digester] Begin event threw exception

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

Caused by: java.lang.NoClassDefFoundError: com/jdon/strutsutil/ViewForm

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)

    

moren
2009-01-09 00:11
。。。。。。。

2009-01-08 23:52:14,906 WARN [org.apache.struts.util.PropertyMessageResources] Resource org/apache/struts/action/ActionResources_zh.properties Not Found.

2009-01-08 23:52:14,906 ERROR [org.apache.struts.action.ActionServlet] Parsing error processing resource path jndi:/localhost/jivejdon/WEB-INF/struts-config-security.xml

java.lang.reflect.InvocationTargetException

at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181)

at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207)

at org.apache.commons.digester.Digester.startElement(Digester.java:1456)

。。。。。。。。。。。。

2009-01-08 23:52:15,046 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jivejdon]] Servlet /jivejdon threw load() exception

javax.servlet.UnavailableException: Parsing error processing resource path jndi:/localhost/jivejdon/WEB-INF/struts-config-security.xml

at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:761)

at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:744)

。。。。。。。。。。。

2009-01-08 23:52:18,406 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.

2009-01-08 23:52:18,406 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by

2009-01-08 23:52:18,406 ERROR [STDERR] log4j:ERROR [WebappClassLoader

delegate: false

repositories:

/WEB-INF/classes/

----------> Parent Classloader:

] whereas object of type

2009-01-08 23:52:18,421 ERROR [STDERR] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@186db54].

2009-01-08 23:52:18,531 ERROR [STDERR] log4j:ERROR Could not create an Appender. Reported error follows.

2009-01-08 23:52:18,531 ERROR [STDERR] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender

2009-01-08 23:52:18,531 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:175)

。。。。。

009-01-08 23:52:19,046 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:

--- Incompletely deployed packages ---

org.jboss.deployment.DeploymentInfo@1d2ff4e5 { url=file:/G:/eclipse/jboss-4.0.5.GA/server/default/deploy/mysql-ds.xml }

deployer: org.jboss.deployment.XSLSubDeployer@14c7a98

status: Deployment FAILED reason: Trying to install an already registered mbean: jboss.jca:service=LocalTxCM,name=DefaultDS

state: FAILED

watch: file:/G:/eclipse/jboss-4.0.5.GA/server/default/deploy/mysql-ds.xml

altDD: null

lastDeployed: 1231429930640

lastModified: 1231429932000

mbeans:

2009-01-08 23:52:19,046 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Notified that enabled: true

2009-01-08 23:52:19,046 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Started jboss.deployment:type=DeploymentScanner,flavor=URL

banq
2009-01-09 09:19
错误比较多,一个个分析:

java.sql.SQLException: Table already exists: JMS_MESSAGES

这个可不管,是JMS的durable持久化配置错误。我们不用JMS。这个错误是由于 file:/G:/eclipse/jboss-4.0.5.GA/server/default/deploy/mysql-ds.xml 这个文件中有一个DefaultDS,这和JBoss标准配置中DefaultDS冲突,JBoss标准配置JMS是使用内存数据库hsql,实际需要改为真正数据库,这里临时解决问题,可去除mysql-ds.xml中DefaultDS.

第二个问题:Caused by: java.lang.NoClassDefFoundError: com/jdon/strutsutil/ViewForm

这是没有发现Jdon框架,必须将Jdon框架jar包拷贝到G:/eclipse/jboss-4.0.5.GA/server/default/lib目录下

moren
2009-01-09 22:57
谢谢 banq,问题解决,把lib所有文件拷贝过去就可以了。

猜你喜欢