exception
梦里断魂
人之所以能,是因为相信能。
展开
-
jetty 跑 Java Exception:"PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is r
根据报错提示的字面意思,应该是程序要用到完整的 JDK,而不单是一个裸的 JRE,于是我看了下 Eclipse 运行依赖的 Java 环境,果然不是我 JDK 的下的 JRE。 第一步、 第二步、 第三步、原创 2016-09-27 00:43:24 · 1227 阅读 · 0 评论 -
linux安装tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
这两天我们的开发机重启了好几次,发现每次重启后我的tomcat总是没有启动。 检查java路径,配置正确,后来拿普通账号启动tomcat时报如下的错:1 Neither the JAVA_HOME nor the JRE_HOME environment variable is defined2 At least one of these environment var转载 2018-01-25 11:26:13 · 725 阅读 · 0 评论 -
tomcat shutdown.sh结束不了,Could not contact localhost:8005
使用./shutdown.sh关闭Tomcat,有时会关闭成功,有时会出现关闭错误;Jul 06, 2017 10:57:37 AM org.apache.catalina.startup.Catalina stopServer SEVERE: Could not contact localhost:8005. Tomcat may not be running. Jul 06, 2017转载 2018-01-25 11:22:49 · 3781 阅读 · 0 评论 -
windows 80端口占用问题
使用 netstat -ano 发现80端口被占用。如图所示: 于是打开 IIS 管理器。在 IIS 根目录右击 —>停止 之后在回头来 继续在cmd中运行 netstat -ano 发现80端口已经没有占用了。转载 2017-10-26 13:01:08 · 386 阅读 · 0 评论 -
Eclipse恢复已删除的文件和代码、svn使用了还原,但本地的没有提交找回没提交代码的方法
做项目时将SVN数据更新,结果项目出错,使用还原,结果本地的没有提交的代码被覆盖了,这下急了,到处找方法恢复,问了好多朋友在网上查资料,大部分说不能恢复,昨晚试了好多方法都没恢复,心想还是死心把利用周末的时间赶出来,今天早上来了还是有点不死心,就继续Google,结果发现了一个帖子(帖子是英文的),情况貌似和我的差不多,我试着照着帖子的图片操作,还真找到了更新前我增加的文件,那些有改动的代码还是被覆转载 2017-08-21 12:02:45 · 1403 阅读 · 0 评论 -
NoClassDefFoundError 找不见类部分情况分析
com/google/common/base/Preconditions guava-r09.jarorg/apache/commons/math3/primes/Primes commons-math3-3.2.jarorg/apache/commons/logging/LogFactory commons-logging-1.1.1.jarorg/apache/commons/conf原创 2017-08-03 10:45:04 · 428 阅读 · 0 评论 -
Cannot change version of project facet Dynamic web module to 3.0解决方法
1.看下web.xml版本<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee原创 2016-12-08 18:41:31 · 310 阅读 · 0 评论 -
Exception: MISCONF Redis is configured to save RDB snapshots
今天在redis中执行setrange name 1 chun 命令时报了如下错误提示:(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled.转载 2017-03-28 15:32:56 · 303 阅读 · 0 评论 -
Absent Code attribute in method that is not native or abstract in class file javax/mail/Session 解决方式
解决方式个人使用成功,不保证所有情况,可以试着测试一下1.将 javaee-api-5.jar 删除jar包冲突的问题这个包只是个空壳,没有真正实现功能,为了用于开发时web应用的编译,不能用于程序运行。参考自:http://blog.csdn.net/zjb_bill/article/details/8534721原创 2017-01-17 13:34:53 · 3261 阅读 · 1 评论 -
maven的pom报plugins的解决方法
maven的pom报plugins却是的解决方法.引用Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be re转载 2016-12-16 22:24:26 · 2171 阅读 · 0 评论 -
web.xml is missing and <failOnMissingWebXml> is set to true解决方法
在maven模块化构建项目的时候遇到了如下报错信息:web.xml is missing and is set to true。这时候需要右击项目——>Java EE Tools——>Generate Deployment Descriptor Stub.然后系统会在src/main/webapp/WEB_INF文件加下创建web.xml文件。错误解决!当然这个方法是针对web项目的解决方案,如果转载 2016-12-08 18:46:44 · 570 阅读 · 0 评论 -
Java compiler level does not match the version of the installed Java project facet解决方法
从别的地方导入一个项目的时候,经常会遇到eclipse/Myeclipse报Description Resource Path Location Type Java compiler level does not match the version of the installed Java project facet.出现这个问题的原因是因为,eclipse/myeclipse的jdk编译版本与原创 2016-12-08 18:27:49 · 462 阅读 · 0 评论 -
${pageContext.request.contextPath} 报错
引入jar包<dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <version>2.2</version></dependency>原创 2016-11-11 12:10:50 · 826 阅读 · 0 评论 -
JAVA_HOME从jdk8变到jdk7错误:Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersi
电脑装了jdk8,JAVA_HOME也是设置的8.不删除8变回7.改了JAVA_HOME,并且path值里的C:\ProgramData\Oracle\Java\javapath也删了运行java -version,报错Error: Registry key ‘Software\JavaSoft\Java Runtime Environment’\CurrentVersion’has v...转载 2018-11-19 17:19:51 · 426 阅读 · 0 评论