安装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就可以。

gujc
2006-01-11 09:28
真是太棒了,公司Y面的程序也有@拥},始K以是程序上面的}。今天Google了一下常e`,]想到找到了@e,而且正是@加入jar包的}。太xx您了。

IceWolf_wg
2006-02-15 15:24
我也遇到类似的问题,请达人指教。

我用JBUILDER2006和JBOSS4.0.0联合编译,JDK5.0,JdonFramework1.3,配置时将例子samples-1.3\SimpleJdonFrameworkTest\lib下的文件全部拷贝到JBOSS的DEFULT/LIB下。

编译时也没有错误。

如上所述的,我已经在JBOSS的\server\default\deploy目录下看到了testApplication.ear和testWeb.war。

为什么还会出现以下问题呢:

...

...

15:01:52,125 INFO [A] Bound to JNDI name: queue/A

15:01:52,125 INFO Bound to JNDI name: queue/B

15:01:52,125 INFO [C] Bound to JNDI name: queue/C

15:01:52,125 INFO [D] Bound to JNDI name: queue/D

15:01:52,125 INFO [ex] Bound to JNDI name: queue/ex

15:01:52,156 INFO [testTopic] Bound to JNDI name: topic/testTopic

15:01:52,156 INFO [securedTopic] Bound to JNDI name: topic/securedTopic

15:01:52,156 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic

15:01:52,156 INFO [testQueue] Bound to JNDI name: queue/testQueue

15:01:52,171 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093

15:01:52,234 INFO [DLQ] Bound to JNDI name: queue/DLQ

15:01:52,609 INFO [MailService] Mail Service bound to java:/Mail

15:01:52,750 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/C:/jboss-4.0.0/server/default/deploy/jmx-console.war/

15:01:53,062 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C:/jboss-4.0.0/server/default/deploy/management/web-console.war/

15:01:55,718 INFO [TomcatDeployer] deploy, ctxPath=/testWeb, warUrl=file:/C:/jboss-4.0.0/server/default/tmp/deploy/tmp57221testWeb-exp.war/

15:01:56,531 INFO [WebappClassLoader] validateJarFile(C:\jboss-4.0.0\server\default\tmp\deploy\tmp57221testWeb-exp.war\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

15:01:57,078 INFO [InitPlugIn] look up a config: com.jdon.framework.test.jdonframework.xml

15:01:57,093 INFO [InitPlugIn] got the config: com.jdon.framework.test.jdonframework.xml

15:01:57,281 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.0.0/server/default/deploy/testApplication.ear

15:01:57,328 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss-4.0.0/server/default/deploy/testApplication.ear

org.jboss.deployment.DeploymentException: Failed to find module file: testWeb.war

at org.jboss.deployment.EARDeployer.init(EARDeployer.java:243)

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

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

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

at sun.reflect.GeneratedMethodAccessor29.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:141)

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

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

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:242)

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

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

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:271)

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

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:141)

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:242)

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.GeneratedMethodAccessor5.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:141)

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:242)

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

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

at $Proxy4.start(Unknown Source)

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

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

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

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

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

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:141)

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

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

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:242)

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

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

at $Proxy5.deploy(Unknown Source)

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

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

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

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

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

15:01:57,343 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

Incompletely deployed packages:

org.jboss.deployment.DeploymentInfo@f29a25d { url=file:/C:/jboss-4.0.0/server/default/deploy/testApplication.ear }

deployer: org.jboss.deployment.EARDeployer@111ded2

status: null

state: FAILED

watch: file:/C:/jboss-4.0.0/server/default/deploy/testApplication.ear

altDD: null

lastDeployed: 1139986917328

lastModified: 1139986917281

mbeans:

banq
2006-02-15 17:58
主要错误在如下:

[MainDeployer] Could not initialise deployment: file:/C:/jboss-4.0.0/server/default/deploy/testApplication.ear

org.jboss.deployment.DeploymentException: Failed to find module file: testWeb.war

在testApplication.ear包中没有发现testWeb.war.你可用winrar解压开testApplication.ear看看。

IceWolf_wg
2006-02-15 18:25
嗯,是没有,麻烦问一下,这会不会是我配置的问题。

另外,我现在的testWeb.war包有近18M,包括了所有*.jar,如果是DEPLOY到JBOSS上,是不是应该除去这些Archiver?

testApplication.ear只有十几K,是没有把WAR包添加进去。

请教老大如何处置?

IceWolf_wg
2006-02-16 09:05
抱歉,testWeb.war太大是我添加了过多没用的*.jar的问题。

不过我试过sample下的所有例子,都是在era里找不到war的出的错,我试着更改配置文件,但都没成功。

请banq老大明示好么,谢谢啊。

banq
2006-02-16 09:32
直接部署test.war就可以,不必用ear

IceWolf_wg
2006-02-16 11:05
谢谢,不好意思,这种问题都没考虑到,现在DEPLOY成功了

我在mysql-ds.xml里的配置是:

<jndi-name>MySqlDS</jndi-name>

<connection-url>jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8</connection-url>

<driver-class>com.mysql.jdbc.Driver</driver-class>

<user-name>root</user-name>

<password>admin</password>

在数据库test里已经初始化testuser表,并且加入数据.

运行UserListAction.do时,还报这个错,javax.servlet.ServletException: getPageIterator's result is null, check your ModelListAction subclass

麻烦问一下这是什么错?

另外,我想看看PermissionTest的权限拦截机制的效果,我在浏览:

http://www.jdon.com:8080/testWeb

实例的时候,看到的操作是全部权限,这种效果如何体现?谢谢

IceWolf_wg
2006-02-16 11:08
这是全部错误:

11:03:31,890 INFO [STDOUT] 06-2-16 11:03:31 [Debug:com.jdon.container.pico.PicoContainerWrapper:Verbose]

11:03:31,890 INFO [STDOUT] lookup: name=modelManager

11:03:31,890 INFO [STDOUT] 06-2-16 11:03:31 [Debug:com.jdon.container.pico.PicoContainerWrapper:Verbose]

11:03:31,890 INFO [STDOUT] Not find the component in container :modelManager

11:03:31,890 INFO [STDOUT] 06-2-16 11:03:31 [Debug:com.jdon.container.pico.PicoContainerWrapper:Verbose]

11:03:31,890 INFO [STDOUT] lookup: name=webServiceFactory

11:03:31,968 INFO [STDOUT] 06-2-16 11:03:31 [Debug:com.jdon.container.pico.PicoContainerWrapper:Verbose]

11:03:31,968 INFO [STDOUT] Not find the component in container :webServiceFactory

11:03:31,968 ERROR [UserListAction] java.lang.NullPointerException

11:03:31,968 WARN [RequestProcessor] Unhandled Exception thrown: class java.lang.Exception

11:03:31,968 ERROR [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:421)

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

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

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

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:44)

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

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)

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

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

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)

麻烦了

IceWolf_wg
2006-02-16 14:03
不好意思,问题在配置的问题,这我再看看:

2006-02-16 11:31:43,078 ERROR [org.jboss.mq.sm.jdbc.JDBCStateManager] Starting failed jboss.mq:service=StateManager

org.jboss.mq.SpyJMSException: Error creating connection to the database.; - nested throwable: (java.lang.SecurityException: Invalid authentication attempt, principal=null)

2006-02-16 11:31:43,078 WARN [org.jboss.system.ServiceController] Problem starting service jboss.mq:service=StateManager

org.jboss.mq.SpyJMSException: Error creating connection to the database.; - nested throwable: (java.lang.SecurityException: Invalid authentication attempt, principal=null)

2006-02-16 11:31:43,140 ERROR [org.jboss.security.auth.spi.UsersRolesLoginModule] Failed to load users/passwords/role files

java.io.IOException: Properties file users.properties not found

2006-02-16 11:31:43,171 ERROR [org.jboss.mq.pm.jdbc2.PersistenceManager] Starting failed jboss.mq:service=PersistenceManager

java.lang.SecurityException: Invalid authentication attempt, principal=null

IceWolf_wg
2006-02-16 16:47
请问老大,我需要配置login-config.xml么,为什么我翻来复去都是

javax.servlet.ServletException: getPageIterator's result is null, check your ModelListAction subclass

这个错呢?拜托了,我真给整晕了。

猜你喜欢
2Go 1 2 下一页