Could not initialize class

java.lang.NoClassDefFoundError: Could not initialize class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping

0

1个回答

springmvc的jar包没有导入或者没有添加到配置文件的dependency里面

0
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
NULL 博文链接:https://smartgwt.iteye.com/blog/1252268
解决hbase client在windows环境下报NoClassDefFound问题
解决hbase client在windows环境下报Could not initialize class org.fusesource.jansi.internal.Kernel32的问题,把jar包放入hbase client的lib包下,重新运行hbase.cmd shell即可
关于在java6中使用XFire时碰到的一个问题Could not initialize Service
在一个采用了XFire作为WebService框架Web项目中,添加由JDK1.6 wsimport命令生成的一个WebService客户端调用,在客户端调用时出现了如下问题 log4j:WARN No appenders could be found for logger (org.codehaus.xfire.jaxws.Provider). log4j:WARN Please i
linux上实现视频截图
使用javacpp技术,在32位linux系统上实现视频截图功能,注意so文件放在liberary_path里面
Jacob组件无法初始化问题
我用的是Jacob-1.9.jar,操作系统是32位,运行打开本地Excel文件时报错, java.lang.NoClassDefFoundError: Could not initialize class com.jacob.com.ComThread 经排查,是因为未将jacob.dll拷贝至%JAVA_HOME%\jre\bin目录所致。 另外,C:\Windows\System32目
视频截图-javacv
获取视频截图--javacv之前在相关文章评论过,有人问我当中遇到的问题,所以写出来maven依赖<dependency> <groupId>org.bytedeco</groupId> <artifactId>javacv</artifactId> <version>0.8</versio...
使用JDBC出现NoClassDefFoundError异常的解决方法
今天在学习JDBC的过程中,运行一个JDBC的Java时报错,错误如下: Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class me.gacl.utils.JdbcUtils at me.gacl.demo.Test.main(Test.java:30) 查了一下,这个异
JCO连接SAP时tomcat报错
jco连接SAP时,请务必将文件:sapjcorfc.dll,librfc32放到 C:\WINDOWS\system32\下边。 否则报错如下: xception in thread "main" java.lang.ExceptionInInitializerError: JCO.classInitialize():[color=red] Could not load middlewar...
记一次sapjco 运行时错误排查
记一次sapjco 运行时错误排查记一次sapjco 运行时错误排查 定位问题 确认问题 解决方案 小记 Caused by: java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC' JCO.nati
请大家帮忙看看poi读取excel表,为什么.xls可以,.xlsx不行?还报错
import java.io.File; import java.io.FileInputStream; import java.util.ArrayList; import java.util.List; import org.apache.commons.io.FileUtils; import org.apache.poi.hssf.usermodel.HSSFWorkbo
tomcat运行出错,请问这个问题怎么解决?
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler process 严重: null java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.util.buf.ByteChunk at org.apache.tomcat.ut
java.lang.NoClassDefFoundError: Could not initialize class
java.lang.Exception: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:229)rn at com.tesco.interceptor.ExceptionInterceptor.intercept(ExceptionInterceptor.java:45)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:167)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:207)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:74)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rnrn ……rnrn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:121)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:170)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:123)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.tesco.interceptor.SessionValidateInterceptor.intercept(SessionValidateInterceptor.java:59)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:50)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:504)rn at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn at com.tesco.filter.Log4jNdcFilter.doFilter(Log4jNdcFilter.java:41)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(Unknown Source)rn at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)rn at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)rn at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)rn Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.tesco.action.ServiceLocator at com.tesco.action.BaseAction.getBean(BaseAction.java:48)rn at com.tesco.action.RegisterAction.regist(RegisterAction.java:136)rn ... 121 more
Could not initialize class com.demo.hibernate.util.HibernateSessionFactory
请教这个错误是怎么回事?rnjava.lang.NoClassDefFoundError: Could not initialize class com.demo.hibernate.util.HibernateSessionFactoryrnrnrnHibernateSessionFactory.java代码:rnpackage com.demo.hibernate.util;rnimport org.hibernate.HibernateException;rnimport org.hibernate.Session;rnimport org.hibernate.cfg.*;rnrnpublic class HibernateSessionFactory rnrn private static String CONFIG_FILE_LOCATION="/hibernate.cfg.xml";rn private static final ThreadLocal threadLocal= new ThreadLocal();rn private static final Configuration cfg = new Configuration();rn private static org.hibernate.SessionFactory sessionFactory;rn rn public static Session currentSession() throws HibernateExceptionrn Session session=(Session)threadLocal.get();rn if(session == null)rn if(sessionFactory == null)rn tryrn cfg.configure(CONFIG_FILE_LOCATION);rn sessionFactory=cfg.buildSessionFactory();rn rn catch(Exception e)rn System.out.println("%%%% Error Creating SessionFactory %%%%");rn e.printStackTrace();rn rn rn session=sessionFactory.openSession();rn threadLocal.set(session);rn rn return session;rn rn rn public static void closeSession() throws HibernateExceptionrn Session session=(Session)threadLocal.get();rn threadLocal.set(null);rn if(session != null)rn session.close();rn rn rnrn
SSL方式连接Netty服务端失败:OpenSslEngine类无法加载NoSuchMethodError异常排查分析
一. netty客户端通过ssl方式连接服务端失败 最近在重构项目代码,在测试时在本地通过ssl的方式连接服务端,服务端通过SniHandler处理ssl连接时,报一下异常: 2019-05-27 17:32:26,104 110948 [nioEventLoopGroup-3-2] ERROR c.t.p.b.m.h.ChannelDisconnectedHandler(128) - Co...
Nutch Could not initialize class
description The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: Could not initialize class org.apache.jsp.search_jsprn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: Could not initialize class org.apache.jsp.search_jsprn sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)rn sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)rn java.lang.reflect.Constructor.newInstance(Unknown Source)rn java.lang.Class.newInstance0(Unknown Source)rn java.lang.Class.newInstance(Unknown Source)rn org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:142)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.rnrn今天刚接触JAVA 是开源Nutch 网页可以抓取可以了 就是不能搜索 搜索就提示以上信息
Could not initialize class com.sun.javafx.iio.jpeg.JPEGImageLoader
Exception in thread "JavaFX Application Thread" java.lang.NoClassDefFoundError: Could not initialize class com.sun.javafx.iio.jpeg.JPEGImageLoader怎么解决这个问题
Could not initialize class com.stuman.dao.hibernate.HibernateUtil
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: Servlet execution threw an exceptionrn com.stuman.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:89)rnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: Could not initialize class com.stuman.dao.hibernate.HibernateUtilrn com.stuman.web.struts.action.LoginAction.execute(LoginAction.java:49)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn com.stuman.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:89)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.rnrn
Could not initialize class org.apache.jasper.el.ELContextImpl
HTTP Status 500 - java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImplrnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImplrnrndescription The server encountered an internal error that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImplrn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:728)rnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImplrn org.apache.jasper.compiler.Validator$ValidateVisitor.prepareExpression(Validator.java:1568)rn org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:747)rn org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:954)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2434)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:475)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)rn org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1795)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:217)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:728)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/7.0.39 logs.rnrn怎么解决?
dubbo服务治理框架
官方文档学习:http://dubbo.apache.org/en-us/docs/user/quick-start.html 1、spring+dubbo+zookeeper集群环境搭建(示例学习) 1.1、zookeeper集群搭建 zookeeper下载地址:https://www.apache.org/dyn/closer.cgi/zookeeper/ (1)将zookeeper解...
kafka集群/单节点部署
kafka集群/单节点部署
Linux上跑使用Tesseract-OCR技术的Tess4j踩的坑
在Java通过Tess4j使用Tesseract-OCR技术时,须加载对应操作系统所使用的动态链接文件。在Linux下是.so文件,而在Win下是.dll文件。官方规定可以将这些文件以特定的命名及路径放置在项目的classpath路径下,例如这个样子 这样, 系统在要加载Tesseract时会先把动态链接库加载到内存中以便使用,这种做法在Win上跑是没有问题的,项目启动Tess4j会自动去C...
springmvc 集成activiti 保存model模型时 linnux 服务器上面报错,但在windows服务器上面却可以
问题一:Can't connect to X11 window server using 'localhost:11.0' as the value of 以下一行代码有可能解决问题,找到tomcat 的bin目录catalina.sh 文件,加上 export CATALINA_OPTS="-Djava.awt.headless=true" 这一句 问题二:java.lang....
swt-gdip-win32-4763.dll下载
org.eclipse.swt.SWTException: Unable to load graphics library [GDI+ is required] (java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.swt.internal.gdip.GdiplusStartupInput)替换文件
关于mybatis测试类测试时报NoClassDefFoundError的异常
问题描述:工程里有一个MyBatisUtil.java的工具类,封装用来对SqlSession进行openSqlSession和close的, 工具类中通过流获取mybatis-config.xml的配置文件 InputStream is= Resources.getResourceAsStream(“mybatis-config.xml”); 然后把相应的mapper.xml都写好了 sele...
springboot中使用jackson容易引起的报错
  问题: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat...
biee12c图形图表不显示问题解决办法
解决obiee12c图形图表不显示问题 java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
Hbase连接异常,JAR包冲突解决攻略
Hbase连接异常(JAR包冲突),问题分析和解决攻略
(crm笔记)阶段一总结
crm项目的架构 * 创建web工程 * 引入jar包 * mysql的驱动包 * hibernate需要的jar包 * spring需要的jar包 * struts2需要的jar包 * jstl 需要的jar包 * junit需要的jar包 包的介绍cn.itcast.crm.cont
解决多线程下使用懒加载时,可能会出现的could not initialize proxy - no Session问题
这里使用的框架是spring、jpa和hibernate的整合,针对一个请求中扩大session的范围可参考这个做法,在web.xml配置文件加入,主要要在核心过滤器前面,这里加的过滤器是openEntityManagerInViewFilter,因为使用的是spring jpa的session会话: <!-- 解决懒加载 no session(会话无效)问题 --> <...
7 常见问题
  cnblogs-DOC 1.服务器环境 2.安装Redis3.安装Zookeeper4.安装MPush5.安装Alloc服务6.完整测试7.常见问题     1.访问http:\/\/alloc_ip:9999,输出的IP地址不正确 问题: 1)服务器存在多个网卡(包括虚拟网卡)。 2)服务器部署在公网地址后,对外提供服务。 解决方法: 在mpush.conf配置文件中,...
hbase常见问题及解决方案(二)
hbase常见问题总结二 之前介绍了工作中遇到的一些比较基础的问题,下面介绍一些看起来没有那么简单的问题 1. 类找不见的问题!(自己写的类找不见的问题!) 出现该问题的情形: hbase和hadoop的hdfs,mapreduce整合使用的时候: 18/04/16 18:25:06 INFO mapreduce.JobSubmitter: Cleaning up the stag...
java.lang.NoClassDefFoundError: Could not initialize class cn.elvis.utils.JdbcUt
写的jdbc工具类,前期写了测试正确,但发布到tomcat中就报这样的错误。rnjavax.servlet.ServletException: Servlet execution threw an exceptionrnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: Could not initialize class cn.elvis.utils.JdbcUtilsrn cn.elvis.dao.impl.UserDaoImpl.find(UserDaoImpl.java:180)rn cn.elvis.service.impl.BusinessServiceImpl.register(BusinessServiceImpl.java:15)rn cn.elvis.web.controller.RegisterServlet.doGet(RegisterServlet.java:40)rn cn.elvis.web.controller.RegisterServlet.doPost(RegisterServlet.java:77)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:641)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rnrn下面是我的工具类代码rn[code=Java]rnpublic final class JdbcUtils rnrn private static String driver="com.microsoft.sqlserver.jdbc.SQLServerDriver";rn private static String url="jdbc:sqlserver://localhost:1433;DatabaseName=JspWebDb";rn private static String user="sa";rn private static String psw="12345";rn rn private JdbcUtils()rn rn private static JdbcUtils instanse=new JdbcUtils();rn rn public static JdbcUtils getInstanse()rn rn return instanse;rn rn rn staticrn tryrn Class.forName(driver);rn rn catch(ClassNotFoundException e)rn rn throw new ExceptionInInitializerError(e);rn rn rn rn rn public static Connection getConnection() throws SQLExceptionrn rn return DriverManager.getConnection(url,user,psw);rn rn rn rn public static void free(ResultSet rs,Statement st,Connection conn)rn rn if(rs!=null)rn try rn rs.close();rn catch (SQLException e) rn e.printStackTrace();rn rn finallyrn rn if(st!=null)rn try rn st.close();rn catch (SQLException e) rn rn e.printStackTrace();rn rn finallyrn rn if(conn!=null)rn try rn conn.close();rn catch (SQLException e) rn rn e.printStackTrace();rn rn rn rn rn rn rn rn rnrnrnrn[/code]
java.lang.NoClassDefFoundError: Could not initialize class jihe.Test3
public class index extends Action rn rn rn public ActionForward execute(ActionMapping mapping, ActionForm form,rn HttpServletRequest request, HttpServletResponse response) throws Exception rn rn Test3 t=new Test3();rn rn List m= t.findAllUser();rn rn request.setAttribute("sutao", m);rn rn rn //request.removeAttribute(mapping.getAttribute());rn rn return mapping.findForward("ss");rn rnrn就是这个ACTION不知道有没有错?
java.lang.NoClassDefFoundError: Could not initialize class com.jacob.com.ComThre
本地main测试所有方法都正常,各种转换都可以.rn放tomcat里面跑起来后,一切正常.rn进行word转换时候,出现如下报错rnjdk是1.7的.rnjar包是1.18版本的,jdk/bin先考过dll了rnsystem32里面也考了.rnjava.lang.NoClassDefFoundError: Could not initialize class com.jacob.com.ComThread
Sqoop1.99.6安装遇到的问题
HADOOP2.7.1+Sqoop1.99.6+hbase-1.2.0+hive-2.0.0 遇到这个问题,困了三天!!! 结果是版本不兼容的问题。真特么够了。 下载地址 http://apache.mirrors.pair.com/db/derby/db-derby-10.11.1.1/db-derby-10.11.1.1-bin.tar.gz 我的$SQOOP_HOME是配置的/
老问题Could not initialize class
引用一个包(我把包放到JRE/LIB/EXT里面,)rnJAVA编译运行都能通过,用SERVLET或JAVABEAN在JSP页面调用的时候总是找不到类rn
java.lang.NoClassDefFoundError: Could not initialize class SQLite.JDBC2x.Databas
rnjava.lang.NoClassDefFoundError: Could not initialize class SQLite.JDBC2x.DatabaseXrnrn这个异常是怎么回事?该如何解决呢?rnrn在线,急等。。。。。。。。。。。。
请教javax.servlet.ServletException: Could not initialize class
在测试SERVLET的时候出现上面的错误,网上看到说是CLASSPATH的问题,我把那个包放到jre/lib/ext文件中,还在CLASSPATH里添加了这个包,还是出现错误,请教!
java.lang.NoClassDefFoundError: Could not initialize class com.library.hibernate
exceptionrnrnjava.lang.reflect.InvocationTargetExceptionrn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:597)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243)rn com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252)rn org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)rn org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
MD5加密
package com.appdev.bsf.server.common; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.security.MessageDigest; import sun.misc.BASE64Decode...