最近使用eclipse进行自动化测试时,遇到一种情况,无法调起浏览器,且有报错,如下: org.openqa.selenium.WebDriverException: failed to lookup address information: nodename nor servname provided, or not known Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T15:28:36.4Z…
今天在Mac系统上启动Java Web项目的时候,提示了Java.net.UnknownHostException: yangxiaomindeMacBook-Pro.local nodename nor servname provided类似的错误,然而同样的项目在windows的环境下是可以正常启动运行的.然后在网上找到了解决办法,虽然是英文的,但是根据说的做法,确实可以解决这个问题.现在将这个问题的解决办法分享给大家. 首先看下异常的提示信息: [java] view plain copy…
今天一不小心更新了Mac系统,然后在启动Java Web项目的时候,提示了java.net.UnknownHostException: MAC-mini-local nodename nor servname provided类似的错误,然而同样的项目在windows的环境下是可以正常启动运行的. 网上搜查一堆找到个能解决问题的网页,说貌似因为主机的名称变了,找不到映射的主机 就是这个:MAC-mini-local 解决办法 分享给大家步骤: 1.打开终端,输入命令sudo vi /privat…
问题: 在Eclipse中运行Web项目Jsp网页启动Tomcat时提示端口被占用: Several ports (8005, 8080, 8009) required by Tomcat v9.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this…
一个pymssql 的程序在解释器上运行正常,但是用py2exe打包后,提示 ImportError: No module named _mssql 百度了半天无果,然后bing,结果bing还是比百度靠谱,某神网的这段话,让我有了灵感,英语真心不怎么好滴说: FYI there is a separate newsgroup for py2exe at gmane.comp.python.py2exe. You may want to post there also. Just as a su…
首先报错误: web项目web.xml文件如下: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee"          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"          xsi:schemaLocation=…
解决办法 替换ADT中的ddmlib.jar文件. 下载ADT对应的zip包,解压出ddmlib.jar文件 放到eclipse\configuration\org.eclipse.osgi\bundles目录搜索ddmlib.jar并替换, 我找出的路径是eclipse\configuration\org.eclipse.osgi\bundles\262\1\.cp\libs 也可直接下载对应的jar文件:https://pan.baidu.com/s/1WmTEzWp-We0fmwT4vdY…
1.tomcat默认端口是8080,可以修改通过tomcat的端口 修改tomcat\conf\server.xml     结果运行程序,还是报"Port 8080 required by Tomcat 9.0 Server at localhost is already in use... 的错误, 把eclipse的tomcat 去掉,重新配置,就可以了.…
使用软链接的方法: 1.打开终端进入到eclipse安装主目录下:mkdir jre 2.cd jre 3.ln -s /home/zhoushuo/app/jdk1.8.0_102/bin bin…
1.当大家用linux的yum时,是不是经常会遇到下面的情况Loaded plugins: fastestmirrorExisting lock /var/run/yum.pid: another copy is running as pid 3404.Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memory : 41 M RSS (2…