wangsantai 发表于 2018-3-6 14:40:52

这是在线生成代码功能 点击代码生成就这样了 数据连接...

HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.jeecgframework.codegenerate.util.CodeResourceUtiltype Exception reportmessage Handler processing failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.jeecgframework.codegenerate.util.CodeResourceUtildescription The server encountered an internal error that prevented it from fulfilling this request.exceptionorg.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.jeecgframework.codegenerate.util.CodeResourceUtil        org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletionWithError(DispatcherServlet.java:1280)        org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:958)        org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)        org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)        org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)        javax.servlet.http.HttpServlet.service(HttpServlet.java:620)        org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)        javax.servlet.http.HttpServlet.service(HttpServlet.java:727)        org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)        org.jeecgframework.core.aop.GZipFilter.doFilter(GZipFilter.java:119)        com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:140)        org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)        org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)        org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)        org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
root causejava.lang.NoClassDefFoundError: Could not initialize class org.jeecgframework.codegenerate.util.CodeResourceUtil        org.jeecgframework.web.cgform.controller.generate.GenerateController.gogenerate(GenerateController.java:117)        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        java.lang.reflect.Method.invoke(Method.java:606)        org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)        org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)        org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)        org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:747)        org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:676)        org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)        org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)        org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)        org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)        org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)        javax.servlet.http.HttpServlet.service(HttpServlet.java:620)        org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)        javax.servlet.http.HttpServlet.service(HttpServlet.java:727)        org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)        org.jeecgframework.core.aop.GZipFilter.doFilter(GZipFilter.java:119)        com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:140)        org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)        org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)        org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)        org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.54 logs.

admin 发表于 2018-3-7 15:08:12

环境没搭建好

wangsantai 发表于 2018-3-7 22:31:18

admin 发表于 2018-3-7 15:08 static/image/common/back.gif
环境没搭建好

我连接本地数据库没问题连接线上数据库就不行了线上是linux操作系统 tomcat8 jdk7 mysql

admin 发表于 2018-3-8 09:28:54

换tomcat7试试
页: [1]
查看完整版本: 这是在线生成代码功能 点击代码生成就这样了 数据连接...