安装JdonFrameworkTest例子时出错,请高手指点

05-12-25 ye
JdonFrameworkTest例子时出错 Jboss/server/default/log/server.log:

用到的软件是jboss-4.0.1 java1.5 struts1.2.7

hghgh2005-12-25 00:23:57,174 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:

MBeans waiting for other MBeans:

ObjectName: jboss.ejb:service=EJBTimerService,persistencePolicy=database

state: CONFIGURED

I Depend On: jboss.jca:service=DataSourceBinding,name=DefaultDS

Depends On Me:

ObjectName: jboss.mq:service=InvocationLayer,type=HTTP

state: CONFIGURED

I Depend On: jboss.mq:service=Invoker

jboss.web:service=WebServer

Depends On Me:

ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo

state: CONFIGURED

I Depend On: jboss:service=TransactionManager

jboss.jca:service=DataSourceBinding,name=DefaultDS

Depends On Me:

ObjectName: jboss.mq:service=StateManager

state: CONFIGURED

I Depend On: jboss.jca:service=DataSourceBinding,name=DefaultDS

Depends On Me: jboss.mq:service=DestinationManager

ObjectName: jboss.mq:service=DestinationManager

state: CONFIGURED

I Depend On: jboss.mq:service=MessageCache

jboss.mq:service=PersistenceManager

jboss.mq:service=StateManager

Depends On Me: jboss.mq.destination:service=Topic,name=testTopic

jboss.mq.destination:service=Topic,name=securedTopic

jboss.mq.destination:service=Topic,name=testDurableTopic

jboss.mq.destination:service=Queue,name=testQueue

jboss.mq.destination:service=Queue,name=A

jboss.mq.destination:service=Queue,name=B

jboss.mq.destination:service=Queue,name=C

jboss.mq.destination:service=Queue,name=D

jboss.mq.destination:service=Queue,name=ex

jboss.mq:service=SecurityManager

jboss.mq.destination:service=Queue,name=DLQ

ObjectName: jboss.mq:service=PersistenceManager

state: CONFIGURED

I Depend On: jboss.jca:service=DataSourceBinding,name=DefaultDS

Depends On Me: jboss.mq:service=DestinationManager

ObjectName: jboss.mq.destination:service=Topic,name=testTopic

state: CONFIGURED

I Depend On: jboss.mq:service=DestinationManager

jboss.mq:service=SecurityManager

Depends On Me:

ObjectName: jboss.mq.destination:service=Topic,name=securedTopic

state: CONFIGURED

I Depend On: jboss.mq:service=DestinationManager

jboss.mq:service=SecurityManager

Depends On Me:

ObjectName: jboss.mq.destination:service=Topic,name=testDurableTopic

state: CONFIGURED

I Depend On: jboss.mq:service=DestinationManager

jboss.mq:service=SecurityManager

Depends On Me:

ObjectName: jboss.mq.destination:service=Queue,name=testQueue

state: CONFIGURED

I Depend On: jboss.mq:service=DestinationManager

jboss.mq:service=SecurityManager

Depends On Me:

ObjectName: jboss.mq.destination:service=Queue,name=A

state: CONFIGURED

I Depend On: jboss.mq:service=DestinationManager

Depends On Me:

ObjectName: jboss.mq.destination:service=Queue,name=B

state: CONFIGURED

I Depend On: jboss.mq:service=DestinationManager

Depends On Me:

ObjectName: jboss.mq.destination:service=Queue,name=C

state: CONFIGURED

I Depend On: jboss.mq:service=DestinationManager

Depends On Me:

ObjectName: jboss.mq.destination:service=Queue,name=D

state: CONFIGURED

I Depend On: jboss.mq:service=DestinationManager

Depends On Me:

ObjectName: jboss.mq.destination:service=Queue,name=ex

state: CONFIGURED

I Depend On: jboss.mq:service=DestinationManager

Depends On Me:

ObjectName: jboss.mq:service=Invoker

state: CONFIGURED

I Depend On: jboss.mq:service=TracingInterceptor

Depends On Me: jboss.mq:service=InvocationLayer,type=HTTP

jboss.mq:service=InvocationLayer,type=JVM

jboss.mq:service=InvocationLayer,type=UIL2

ObjectName: jboss.mq:service=TracingInterceptor

state: CONFIGURED

I Depend On: jboss.mq:service=SecurityManager

Depends On Me: jboss.mq:service=Invoker

ObjectName: jboss.mq:service=SecurityManager

state: CONFIGURED

I Depend On: jboss.mq:service=DestinationManager

Depends On Me: jboss.mq.destination:service=Topic,name=testTopic

jboss.mq.destination:service=Topic,name=securedTopic

jboss.mq.destination:service=Topic,name=testDurableTopic

jboss.mq.destination:service=Queue,name=testQueue

jboss.mq:service=TracingInterceptor

jboss.mq.destination:service=Queue,name=DLQ

ObjectName: jboss.mq.destination:service=Queue,name=DLQ

state: CONFIGURED

I Depend On: jboss.mq:service=DestinationManager

jboss.mq:service=SecurityManager

Depends On Me:

ObjectName: jboss.mq:service=InvocationLayer,type=JVM

state: CONFIGURED

I Depend On: jboss.mq:service=Invoker

Depends On Me:

ObjectName: jboss.mq:service=InvocationLayer,type=UIL2

state: CONFIGURED

I Depend On: jboss.mq:service=Invoker

Depends On Me:

MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:

ObjectName: jboss.jca:service=DataSourceBinding,name=DefaultDS

state: NOTYETINSTALLED

I Depend On:

Depends On Me: jboss.ejb:service=EJBTimerService,persistencePolicy=database

jboss:service=KeyGeneratorFactory,type=HiLo

jboss.mq:service=StateManager

jboss.mq:service=PersistenceManager

2005-12-25 00:25:36,136 ERROR [com.jdon.model.query.PageIteratorJDBCTemp] org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: com.mysql.jdbc.Driver)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: com.mysql.jdbc.Driver)))

2005-12-25 00:25:36,136 ERROR [com.jdon.model.query.PageIteratorSolver] getPageIterator error:java.lang.Exception: SQLException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: com.mysql.jdbc.Driver)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: com.mysql.jdbc.Driver)))

2005-12-25 00:25:36,146 DEBUG [com.jdon.aop.reflection.MethodInvokerUtil] method invoke successfully

2005-12-25 00:25:36,146 DEBUG [com.jdon.aop.interceptor.PoolInterceptor] realease a object:com.jdon.framework.test.service.TestServicePOJOImp to pool

2005-12-25 00:25:36,146 DEBUG [com.jdon.bussinessproxy.dyncproxy.DynamicProxyWeaving] call method:getAllUsers finish!

2005-12-25 00:25:36,156 WARN [org.apache.struts.action.RequestProcessor] Unhandled Exception thrown: class java.lang.Exception

2005-12-25 00:25:36,166 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[action]: Servlet.service() for servlet action threw exception

java.lang.Exception: getPageIterator's result is null, check your ModelListAction subclass

at com.jdon.strutsutil.ModelListAction.execute(ModelListAction.java:74)

at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)

at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)

at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

at com.jdon.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:92)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)

at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

at java.lang.Thread.run(Thread.java:595)

用到的软件是jboss-4.0.1 java1.5 struts1.2.7

banq
2005-12-25 19:16
1.首先去除server/default/deploy/jms目录,暂时不用,提高性能

2.找出第一个ERROR:

[com.jdon.model.query.PageIteratorJDBCTemp] org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: com.mysql.jdbc.Driver)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: com.mysql.jdbc.Driver)))

其中关键是:java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

表示你没有将mysql JDBC包放入JBoss环境,可直接将mysqlXXXX.jar拷贝到Server/default/lib下重新启动以上错误全部消除。

ye
2005-12-25 20:37
非常高兴!可以运行了!感觉真爽!

但当我查看default\log\server.log时,不有错误存在:

DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/jboss-4.0.1/server/default/deploy/testApplication.ear -> file:/C:/jboss-4.0.1/server/default/deploy/testApplication.ear

2005-12-25 20:31:03,589 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:

Incompletely deployed packages:

org.jboss.deployment.DeploymentInfo@f98bde9d { url=file:/C:/jboss-4.0.1/server/default/deploy/jms.rar }

deployer: org.jboss.resource.deployment.RARDeployer@17361e2

status: null

state: FAILED

watch: file:/C:/jboss-4.0.1/server/default/deploy/jms.rar

altDD: null

lastDeployed: 1135513855948

lastModified: 1135513856000

mbeans:

MBeans waiting for other MBeans:

ObjectName: jboss.ejb:service=EJBTimerService,persistencePolicy=database

state: CONFIGURED

I Depend On: jboss.jca:service=DataSourceBinding,name=DefaultDS

Depends On Me:

ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo

state: CONFIGURED

I Depend On: jboss:service=TransactionManager

jboss.jca:service=DataSourceBinding,name=DefaultDS

Depends On Me:

MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:

ObjectName: jboss.jca:service=DataSourceBinding,name=DefaultDS

state: NOTYETINSTALLED

I Depend On:

Depends On Me: jboss.ejb:service=EJBTimerService,persistencePolicy=database

jboss:service=KeyGeneratorFactory,type=HiLo

2005-12-25 20:31:03,609 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Notified that enabled: true

请banq 多多指教,谢谢!

ye
2005-12-25 20:48
不好意思,刚才贴出的错误不全面,现在改为:

2005-12-25 20:30:55,948 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/C:/jboss-4.0.1/server/default/deploy/jms.rar

org.jboss.deployment.DeploymentException: Could not find meta data META-INF/ra.xml for deployment file:/C:/jboss-4.0.1/server/default/deploy/jms.rar

at org.jboss.deployment.SimpleSubDeployerSupport.getMetaDataResource(SimpleSubDeployerSupport.java:195)

at org.jboss.deployment.SimpleSubDeployerSupport.init(SimpleSubDeployerSupport.java:101)

at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)

at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)

at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)

at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

at $Proxy8.deploy(Unknown Source)

at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)

at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)

at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)

at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)

at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)

at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)

at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)

at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)

at $Proxy0.start(Unknown Source)

at org.jboss.system.ServiceController.start(ServiceController.java:416)

at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)

at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)

at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

at $Proxy4.start(Unknown Source)

at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)

at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)

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

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

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)

at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)

at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

at $Proxy5.deploy(Unknown Source)

at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)

at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)

at org.jboss.Main.boot(Main.java:162)

at org.jboss.Main$1.run(Main.java:423)

at java.lang.Thread.run(Thread.java:595)

2005-12-25 20:30:56,018 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@f98bde9d{ url=file:/C:/jboss-4.0.1/server/default/deploy/jms.rar, deployedLastModified=0 }

2005-12-25 20:31:03,579 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/jboss-4.0.1/server/default/deploy/testApplication.ear -> file:/C:/jboss-4.0.1/server/default/deploy/testApplication.ear

2005-12-25 20:31:03,589 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:

Incompletely deployed packages:

org.jboss.deployment.DeploymentInfo@f98bde9d { url=file:/C:/jboss-4.0.1/server/default/deploy/jms.rar }

deployer: org.jboss.resource.deployment.RARDeployer@17361e2

status: null

state: FAILED

watch: file:/C:/jboss-4.0.1/server/default/deploy/jms.rar

altDD: null

lastDeployed: 1135513855948

lastModified: 1135513856000

mbeans:

MBeans waiting for other MBeans:

ObjectName: jboss.ejb:service=EJBTimerService,persistencePolicy=database

state: CONFIGURED

I Depend On: jboss.jca:service=DataSourceBinding,name=DefaultDS

Depends On Me:

ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo

state: CONFIGURED

I Depend On: jboss:service=TransactionManager

jboss.jca:service=DataSourceBinding,name=DefaultDS

Depends On Me:

MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:

ObjectName: jboss.jca:service=DataSourceBinding,name=DefaultDS

state: NOTYETINSTALLED

I Depend On:

Depends On Me: jboss.ejb:service=EJBTimerService,persistencePolicy=database

jboss:service=KeyGeneratorFactory,type=HiLo

2005-12-25 20:31:03,609 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Notified that enabled: true

2005-12-25 20:31:03,609 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Started jboss.deployment:type=DeploymentScanner,flavor=URL

请banq 帮帮忙,谢谢!

banq
2005-12-26 10:04
没有关系,这是JMS错误,与我们程序无关,换个新的JBoss就可以。

猜你喜欢
4Go 1 2 3 4 下一页