关于运行cat的问题

发布于 2021-11-26 15:44:47 字数 10654 浏览 854 评论 8

当我安装完毕之后,使用命令“cd cat-home;mvn jetty:run" 启动成功后,试图通过http://localhost:2281/cat/来访问项目时报了如下异常:

Error occured when handling uri: /cat/r

完整异常信息如下:

[06-11 21:35:52.726] [ERROR] [HttpServlet] Error occured when handling uri: /cat/r

java.lang.RuntimeException: Error occured during creating instance of class org.unidal.web.mvc.ActionContext

at org.unidal.lookup.util.ReflectUtils.createInstance(ReflectUtils.java:17)

at org.unidal.web.mvc.lifecycle.DefaultRequestLifecycle.createActionContext(DefaultRequestLifecycle.java:47)

at org.unidal.web.mvc.lifecycle.DefaultRequestLifecycle.handleRequest(DefaultRequestLifecycle.java:248)

at org.unidal.web.mvc.lifecycle.DefaultRequestLifecycle.handle(DefaultRequestLifecycle.java:155)

at org.unidal.web.MVC.service(MVC.java:72)

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

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)

at com.dianping.cat.servlet.DomainFilter.doFilter(DomainFilter.java:79)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)

at com.dianping.cat.servlet.CatFilter$Context.handle(CatFilter.java:359)

at com.dianping.cat.servlet.CatFilter$CatHandler$3.handle(CatFilter.java:212)

at com.dianping.cat.servlet.CatFilter$Context.handle(CatFilter.java:357)

at com.dianping.cat.servlet.CatFilter$CatHandler$4.handle(CatFilter.java:258)

at com.dianping.cat.servlet.CatFilter$Context.handle(CatFilter.java:357)

at com.dianping.cat.servlet.CatFilter$CatHandler$2.handle(CatFilter.java:195)

at com.dianping.cat.servlet.CatFilter$Context.handle(CatFilter.java:357)

at com.dianping.cat.servlet.CatFilter$CatHandler$1.handle(CatFilter.java:102)

at com.dianping.cat.servlet.CatFilter$Context.handle(CatFilter.java:357)

at com.dianping.cat.servlet.CatFilter.doFilter(CatFilter.java:43)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)

at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)

at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)

at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)

at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)

at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)

at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

at org.mortbay.jetty.Server.handle(Server.java:326)

at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)

at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)

at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)

at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)

at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)

at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)

at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

[06-11 21:35:55.810] [ERROR] [HttpServlet] Error occured when handling uri: /cat/r

java.lang.RuntimeException: Error occured during creating instance of class org.unidal.web.mvc.ActionContext

at org.unidal.lookup.util.ReflectUtils.createInstance(ReflectUtils.java:17)

at org.unidal.web.mvc.lifecycle.DefaultRequestLifecycle.createActionContext(DefaultRequestLifecycle.java:47)

at org.unidal.web.mvc.lifecycle.DefaultRequestLifecycle.handleRequest(DefaultRequestLifecycle.java:248)

at org.unidal.web.mvc.lifecycle.DefaultRequestLifecycle.handle(DefaultRequestLifecycle.java:155)

at org.unidal.web.MVC.service(MVC.java:72)

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

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)

at com.dianping.cat.servlet.DomainFilter.doFilter(DomainFilter.java:79)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)

at com.dianping.cat.servlet.CatFilter$Context.handle(CatFilter.java:359)

at com.dianping.cat.servlet.CatFilter$CatHandler$3.handle(CatFilter.java:212)

at com.dianping.cat.servlet.CatFilter$Context.handle(CatFilter.java:357)

at com.dianping.cat.servlet.CatFilter$CatHandler$4.handle(CatFilter.java:258)

at com.dianping.cat.servlet.CatFilter$Context.handle(CatFilter.java:357)

at com.dianping.cat.servlet.CatFilter$CatHandler$2.handle(CatFilter.java:195)

at com.dianping.cat.servlet.CatFilter$Context.handle(CatFilter.java:357)

at com.dianping.cat.servlet.CatFilter$CatHandler$1.handle(CatFilter.java:102)

at com.dianping.cat.servlet.CatFilter$Context.handle(CatFilter.java:357)

at com.dianping.cat.servlet.CatFilter.doFilter(CatFilter.java:43)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)

at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)

at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)

at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)

at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)

at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)

at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

at org.mortbay.jetty.Server.handle(Server.java:326)

at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)

at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)

at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)

at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)

at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)

at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)

at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

请知道的指教下,谢谢!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

韬韬不绝 2021-12-01 21:06:44

我也遇到过这个问题,后来试的结果是:jdk1.7而且得是32位的才行

心欲静而疯不止 2021-12-01 21:06:37

建议JDK去官方下载RPM安装,再构建试试,你下面的提示可能有tool.jar找不到之类的。

疾风者 2021-12-01 21:04:15

升级了,试了也不行,找不到这个jar

噩梦成真你也成魔 2021-12-01 21:00:09

回复
找到了https://raw.githubusercontent.com/dianping/cat/mvn-repo/org/unidal/maven/plugins/codegen/2.3.2/codegen-2.3.2.jar

为你鎻心 2021-12-01 20:02:16

请问楼主,你是怎么构建成功的,好像找不到

    ```

    org.unidal.maven.plugins:codegen-maven-plugin:jar:2.1.3

    ```

混吃等死 2021-12-01 17:58:54

安装JDK7后,更改JAVA变量,重新构建项目和CAT配置,显示正常。

笑红尘 2021-12-01 17:53:59

用jdk7不要用8!

离去的眼神 2021-11-30 21:42:08

你应该是没有按照上面步骤运行

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文