初学接触Jdon,配置tomcat问题

07-10-23 hbz2007sunny

Banq老大:

java.lang.reflect.UndeclaredThrowableException

at $Proxy0.getAllUsers(Unknown Source)

at com.jdon.framework.test.web.UserListAction.doPost(UserListAction.java:55)

at com.jdon.framework.test.web.UserListAction.doGet(UserListAction.java:39)

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

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

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

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

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)

at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)

at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:688)

at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:658)

at org.apache.jsp.index_jsp._jspService(index_jsp.java:43)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

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

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

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

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

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

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

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

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

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

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

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

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

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

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

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

at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

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

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

Caused by: java.lang.Throwable: java.lang.Throwable: java.lang.NoClassDefFoundError: org/apache/commons/collections/CursorableLinkedList

at com.jdon.bussinessproxy.dyncproxy.DynamicProxyWeaving.invoke(DynamicProxyWeaving.java:68)

... 37 more

banq
2007-10-23 15:20

这是错误不准确,打开日志,寻找第一个ERROR才是出错根本原因

hbz2007sunny
2007-10-24 10:32

banq老师:

2007-10-24 10:09:47,011 [http-8080-Processor25] INFO com.jdon.container.builder.ContainerDirector - <======== Jdon Framework started successfully! =========>

2007-10-24 10:09:47,011 [http-8080-Processor25] DEBUG com.jdon.controller.service.WebServiceFactory - <==============================>start: JdonFramework core entrance

2007-10-24 10:09:47,011 [http-8080-Processor25] DEBUG com.jdon.controller.service.WebServiceFactory - <===============>Looking up new service='testService '

2007-10-24 10:09:47,021 [http-8080-Processor25] DEBUG com.jdon.bussinessproxy.config.TargetMetaDefXmlLoader - [JdonFramework]metaDefs size:2

2007-10-24 10:09:47,021 [http-8080-Processor25] ERROR com.jdon.container.access.UserTargetMetaDefFactory - [JdonFramework] not found service definition in jdonframework.xml for testService

hbz2007sunny
2007-10-24 10:34

jdonFramework.xml配置:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE app PUBLIC "-//JDON//DTD Framework 2005 1.0 //EN" "http://www.jdon.com/jdonframework.dtd">

<app>

<services>

<pojoService name="testService" class="com.jdon.framework.test.service.TestServicePOJOImp" >

</pojoService>

<pojoService name="constants" class="com.jdon.framework.test.Constants">

<constructor value="java:comp/env/jdbc/TestDS"/>

</pojoService>

</services>

</app>

hbz2007sunny
2007-10-24 10:46

已解决