关于SQL Server 2014的127.0.0.1和localhost地址无法登陆的问题

我的SQL Server 2014重新安装后想用本机ip地址或localhost登陆数据库,却出现“系统找不到指定的文件”的错误,用本机的名登陆是正常的,查过百度,也调过配置管理器,都无法解决,下面是我配置管理器和数据库的登录失败的截图,麻烦大神指点一下,小弟感激不尽!
图片说明
图片说明
图片说明
图片说明

4个回答

写的很明显了,应该是你的sqlsever 没开启允许远程连接

WWWShuaiGeCom
My-ME 不是很明白,可以详细讲解一下与带上操作步骤吗?谢谢
接近 3 年之前 回复

你说的是这个吗?这个已经开启了,一直开启了的图片说明

这个问题在CSDN的论坛已经解决了,谢了各位的回答,谢谢。下面是在论坛已解决的链接

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
No suitable driver found for jbdc:sqlserver

1.我的连接URL格式是:ct=DriverManager.getConnection("jbdc:sqlserver://localhost:1433;DatabaseName=mytest","sa","supersun"); 2.驱动字符是:Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); 3Sqljdbc42.jar包已经加入C:\Program Files\Java\jre1.8.1\lib\ext文件夹下了; 为什么还是显示没有合适的驱动呢,小白求救

关于iis能够用localhost访问但不能用127.0.0.1和本机ip地址访问的问题

如题,我的系统是win10,hosts里的内容是 # Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handled within DNS itself. 192.168.1.104 windows10.microdone.cn 请问这个问题如何解决?

java连接sqlserver数据库库出错,不知如何解决,求大神

我按网上给的一些解决办法尝试都没成功 TCP/IP已经启用,并且ip1和10的地址被设定为127.0.0.1,all端口设定为1433 ms-dos中输入telnet 127.0.0.1 1433,则出现了一个名为telnet 127.0.0.1 新的控制台,运行后错错误如下:另外,因为工作方面的原因最近经常要用java连接sql server,中间出现错误但是却不理解,有没有那本书是专门讲解这些错误的意义的 com.microsoft.sqlserver.jdbc.SQLServerException: 用户 'sa' 登录失败。 ClientConnectionId:cd23a148-7cb6-4bc9-86de-e10675fe5d1b at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:216) at com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(tdsparser.java:254) at com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:84) at com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLServerConnection.java:2908) at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:2234) at com.microsoft.sqlserver.jdbc.SQLServerConnection.access$000(SQLServerConnection.java:41) at com.microsoft.sqlserver.jdbc.SQLServerConnection$LogonCommand.doExecute(SQLServerConnection.java:2220) at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:5696) at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1715) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1326) at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:991) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:827) at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1012) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at zidingyi.GetConnectionSqlServer.getConnectionSqlServer(GetConnectionSqlServer.java:24) at zidingyi.Try.main(Try.java:8) 我的代码如下 ``` public class GetConnectionSqlServer { public void getConnectionSqlServer() { String driverName = "com.microsoft.jdbc.sqlserver.SQLServerDriver"; String dbURL = "jdbc:sqlserver://MIAO-PC\\MIAO\\\\SQLEXPRESS:1433;databasename=stmodel"; // 1433是端口,"USCSecondhandMarketDB"是数据库名称 String userName = "sa"; // 用户名 String userPwd = "sa"; // 密码 Connection dbConn = null; try { Class.forName(driverName).newInstance(); System.out.println("驱动加载成功"); } catch (Exception ex) { System.out.println("驱动加载失败"); ex.printStackTrace(); } try { dbConn = DriverManager.getConnection(dbURL, userName, userPwd); System.out.println("成功连接数据库!"); } catch (Exception e) { System.out.println("地址端口数据库用户名密码出错"); e.printStackTrace(); } finally { try { if (dbConn != null) dbConn.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } } ```

sqlserver2012无法通过jdbc连接MyElicpse 求个大神

使用sqljdbc.jar连接jdbc时: 通过端口 1433 连接到主机 127.0.0.1 的 TCP/IP 连接失败。错误:“Connection refused: connect。请验证连接属性。确保 SQL Server 的实例正在主机上运行,且在此端口接受 TCP/IP 连接,还要确保防火墙没有阻止到此端口的 TCP 连接。 代码如下: String driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver";//驱动器 String url = "jdbc:sqlserver://127.0.0.1:1433;DatabaseName=xxxx"; String user = "sa";//用户名 String password = "sa";//密码 try { Class.forName(driver); // 加载数据库驱动 // 构建连接 Connection conn = DriverManager.getConnection(url, user, password); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); 防火墙已经关闭 没有阻止接口 telnet localhost 1433是通的 但是127.0.0.1 1433就提示连接端口:1433 失败 ping 127.0.0.1是没问题的 C盘etc/hosts中的对应localhost与127.0.0.1的内容为: # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost Sqlserver配置器已经打开 IIPALL的固定端口是1433 一直保持侦听状态 只有一个实例MSSQLSERVER windows事件日志上的错误是:服务器无法在 'any' <ipv4> 1434 上侦听。错误: 0x277a。若要继续,请通知您的系统管理员。 查看sqlserver 2012日志错误如下: Server failed to listen on 'any' <ipv4> 1434. Error: 0x277a. To proceed, notify your system administrator 错误: 26024,严重性: 16,状态: 1。 电脑已经重装成win7了 还是这个问题 sql可以和visual studio 2012连接 但是无法和MyElicpse连接 在cmd中执行netstat -ano 只有TCP [::]:1433接口在监听 找不到0.0.0.0:1433和127.0.0.1:1433这两个接口 1434只有UDP [::]:1434和0.0.0.0:1434 执行tasklist|findstr 2448(1433端口PID) 显示进程为sqlservr.exe 1433没有被占用 使用的jar包是sqljdbc4.jar ![图片说明](https://img-ask.csdn.net/upload/201610/01/1475290507_428583.png) ![图片说明](https://img-ask.csdn.net/upload/201610/01/1475290521_744595.png) ![图片说明](https://img-ask.csdn.net/upload/201610/01/1475290568_511606.png) ![图片说明](https://img-ask.csdn.net/upload/201610/01/1475290580_258520.png) ![图片说明](https://img-ask.csdn.net/upload/201610/01/1475290588_54854.png) 在之前使用win8的时候 有段时间是可以连接的 当时没有加入tomcat 大约有2到3个月没有使用这个jdbc 再拿出来学习jsp的时候 就一直提示这个错误 因为我要使用tomcat做jsp 要连接jdbc 所以这个问题很急 求大神解决一下啊 重装了好几次系统了 要崩溃了

无法使用php连接到localhost SQL Server 2012

<div class="post-text" itemprop="text"> <p>Hi I have a big problem with php connection to my local database.</p> <p>I'm running: Windows Server 2008 sp 1. SQL server 2012. My SQL server name: LRE-XP-VS2003\SQLEXPRESS. (status is running)</p> <p>This is how I'm trying to connect</p> <pre><code>$server = 'localhost'; //or 127.0.0.1 $login = 'sa'; $passwd = 'my_passwd'; $database = 'ms4033'; $port = '49717'; $con = mysqli_connect ( $server , $login, $passwd, $database, $port ); if (!$con) { die("Connection error: " . mysqli_connect_errno()); } </code></pre> <p>Result I get is spinning the loading button in browser and after long time "Internal Server Error - The FastCGI process exceeded configured activity timeout"</p> <p>For the port number I checked in <code>HKEY_LOCAL_MACHINE</code> and also directly in database </p> <pre><code> USE master GO XP_READERRORLOG 0, 1, N'Server is listening' GO </code></pre> <p>and in SQL server Configuration manager too. Without port number I get "No connection could be made because the target machine actively refused it" or "Connection error: 2002"</p> <p>I tried diseable my Firewall and it did not help.</p> <p>I'm running asp .net too and paradoxically the connection is working properly with this:</p> <pre><code>&lt;add key="connectionString" value="server=LRE-XP-VS2003\SQLEXPRESS;database=ms4033;packet size=4096;user id=sa;password=my_passw" /&gt; </code></pre> <p>Am I missing something?</p> <p>And what's difference between <code>$server = 'localhost';</code> or <code>$server = 'LRE-XP-VS2003\SQLEXPRESS';</code> ?</p> <p>Thanks a lot.</p> </div>

php5.5用PDO连接sql-server2008R2无法连接

$dbName = "sqlsrv:Server=localhost;Database=YTHIIS"; 用localhost可以连接,用计算机名也可以连接(但只限本地) $dbName = "sqlsrv:Server=127.0.0.1;Database=YTHIIS"; 用127.0.0.1无法连接,192.168.2.118局域网IP也无法连接,局域网计算机名也无法连接。 ``` <?php try { $dbName = "sqlsrv:Server=localhost;Database=YTHIIS"; $dbUser = "sa"; $dbPassword = "sa123"; $db = new PDO($dbName, $dbUser, $dbPassword); if ($db) { echo "<b style='color: green'>Database connect succeed.</b><br />"; } } catch (PDOException $e) { $content = iconv("UTF-8","gbk",$e->getMessage()); echo $content . "<br />"; echo "Hello World!"; } ?> ```

Tomcat 修改成本地IP,但本地访问不了,但127.0.0.1可以

Tomcat在可以localhost可以访问,但是无法通过本地ip访问,是怎么回事,帮忙分析一下,谢谢

linux下 远程访问mssql,出错Adaptive Server is unavailable

目前状况,在lnmp环境下,需要远程访问一台服务器上的sqlserver数据库,远程访问已经设置好了 linux下php扩展pdo_dblib 和 mssql 都已经安装完毕,并且 freetds 访问远程数据库都是 没问题的 ![图片说明](https://img-ask.csdn.net/upload/201804/26/1524730637_241732.png) 然而在php中做连接时却出现问题,php代码 ![图片说明](https://img-ask.csdn.net/upload/201804/26/1524730898_260323.png) 报错 SQLSTATE[HY000] Unable to connect: Adaptive Server is unavailable or does not exist (severity 9)

问题:mac系统下localhost能打开,但localhost/xxx.php打不开

最近在学习 PHP,搭建环境后,在 Safari 能打开 http://localhost,显示 It works! 接着改动了 DocumentRoot 的地址为 Sites 文件的地址(“/Users/用户名/Sites”),让后创建新 php 文件,能在 Safari 中通过 http://localhost/xxx.php 可后来就不能打开了,只能打开 http://localhost,显示 It works! 这是怎么回事?是哪里配置出错了吗?

tomcat启动报数据库连接池

[2018-06-15 09:52:20] [ERROR] [com.alibaba.druid.pool.DruidDataSource:903] {dataSource-104} init error java.sql.SQLException: com.microsoft.sqlserver.jdbc.SQLServerDriver at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:600) at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:815) at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43 tomcat8+maven3.5.3;之前成功的,后来就报这个问题了,另一台电脑没报错; hibernate.dialect=org.hibernate.dialect.SQLServerDialect validationQuery.sql=SELECT 1 jdbc.url.jeecg=jdbc:sqlserver://localhost:1433;DatabaseName=jeecg jdbc.username.jeecg=sa jdbc.password.jeecg=123 jdbc.dbType=sqlserver

如何使用数据库服务器访问localhost?

<div class="post-text" itemprop="text"> <p>My connection database localhost in env file is like this :</p> <pre><code>DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=chelsea DB_USERNAME=root DB_PASSWORD=terry </code></pre> <p>It's using database local</p> <p>I want access localhost using database server</p> <p>I change the connection in env file to be like this :</p> <pre><code>DB_CONNECTION=mysql DB_HOST=31.220.56.75 DB_PORT=3306 DB_DATABASE=chelsea DB_USERNAME=root DB_PASSWORD=terry </code></pre> <p>Then, I access my localhost, there is exist error like this :</p> <pre><code>QueryException in Connection.php line 769: SQLSTATE[HY000] [1045] Access denied for user 'root'@'114.121.233.117' (using password: YES) (SQL: select * from `users` where `users`.`deleted_at` is null) </code></pre> <p>Is there any people who can help me?</p> </div>

[symfony2] Wamp + sqlserver

<div class="post-text" itemprop="text"> <p>I use symfony2 on Wamp which is connect on a SQL server DB. (yes, I cry )</p> <p>When i start project with </p> <pre><code>php app/console server:run </code></pre> <p>it's all good, it's slow, but my website is ok on 127.0.0.1:8000, Doctrine2 connect to the sql-server DB without a problem.</p> <p>my problem : when i go on localhost/MyProject/web/app_php.php (means that i use wamp and not 'server:run'). Symfony throw a exception : PDOException : could not find driver. I suffer for days to install those drivers on wamp/bin/php5.x.x/etc.</p> <p>for more details, I install :</p> <p>-basic wamp : Apache : 2.4.9 MySQL : 5.6.17 PHP : 5.5.12 PHPMyAdmin : 4.1.14 SqlBuddy : 1.3.3 XDebug : 2.2.5</p> <p>-Symfony 2.6.5</p> <p>-php_pdo_sqlsrv_55_ts.dll</p> <p>-php_sqlsrv_55_ts.dll</p> <p>-Change the php ini and add those dll to extension.</p> <p>-install IIS and Microsoft ODBC Driver 11 as require microsoft here: <a href="http://www.microsoft.com/en-us/download/details.aspx?id=20098" rel="nofollow">http://www.microsoft.com/en-us/download/details.aspx?id=20098</a></p> <p><strong><em>I don't know what i miss</em></strong>. how can it work with server:run and not with Wamp...?</p> <p>Windows will kill me soon.</p> </div>

Seafile部署在windows server 2012 r2服务器上,局域网其他电脑无法访问

各位大佬好, 今天把Seafile部署在windows server 2012 r2服务器上,同时也按照seafile手册进行配置,防火墙我已经允许放行,但是只能localhost访问,局域网其他电脑无法访问。查看日志文件发现Error如下: 2017-10-18 18:04:43,654 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /media/js/jq.min.js Traceback (most recent call last): File "C:\SeafileProgram\seafile-server-6.0.7\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\handlers\base.py", line 108, in get_response response = middleware_method(request) File "C:\SeafileProgram\seafile-server-6.0.7\seahub\seahub\base\middleware.py", line 66, in process_request cur_note = cache.get('CUR_TOPINFO') if cache.get('CUR_TOPINFO') else \ File "C:\SeafileProgram\seafile-server-6.0.7\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py", line 41, in get if not self._is_expired(f): File "C:\SeafileProgram\seafile-server-6.0.7\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py", line 141, in _is_expired self._delete(f.name) File "C:\SeafileProgram\seafile-server-6.0.7\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py", line 72, in _delete os.remove(fname) WindowsError: [Error 32] : 'D:\\seafile-server\\seahub_cache\\ceec404 22771f78d283f254429d1d993.djcache' 网上其他清缓存方法已经试过了,但还是不能解决问题,请大神帮忙解决

大神在哪? 通过端口 1433 连接到主机 localhost 的 TCP/IP 连接失败。

十月 10, 2015 12:14:16 下午 com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin 警告: ConnectionID:14 Prelogin error: host localhost port 1433 Unexpected end of prelogin response after 0 bytes read 十月 10, 2015 12:14:16 下午 org.apache.catalina.core.StandardContext loadOnStartup 严重: Servlet threw load() exception com.microsoft.sqlserver.jdbc.SQLServerException: 通过端口 1433 连接到主机 localhost 的 TCP/IP 连接失败。错误:“驱动程序收到意外的登录前响应。请验证连接属性,并检查 SQL Server 的实例正在主机上运行,且在此端口接受 TCP/IP 连接。该驱动程序只能与 SQL Server 2000 或更高版本一起使用。”。 at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1368) at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1355) at com.microsoft.sqlserver.jdbc.SQLServerConnection.Prelogin(SQLServerConnection.java:1151) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1054) at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:833) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:716) at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:841) at java.sql.DriverManager.getConnection(DriverManager.java:571) at java.sql.DriverManager.getConnection(DriverManager.java:187) at org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConnectionBuilder.java:39) at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159) at org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:211) at org.logicalcobwebs.proxool.ProxoolDataSource.getConnection(ProxoolDataSource.java:97) at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:82) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446) at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167) at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:142) at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:85) at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1353) at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:558) at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:374) at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:263) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:101) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635) at com.eweaver.base.security.service.logic.AcegiCacheManager$$EnhancerByCGLIB$$6373dcba.getAuthorityFromCache(<generated>) at com.eweaver.base.security.service.acegi.DBMethodDefinitionSource.lookupAttributes(DBMethodDefinitionSource.java:74) at org.acegisecurity.intercept.method.AbstractMethodDefinitionSource.getAttributes(AbstractMethodDefinitionSource.java:51) at org.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:229) at org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:63) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635) at org.light.portal.core.service.spring.PortalServiceImpl$$EnhancerByCGLIB$$38b0f553.init(<generated>) at org.light.portlet.core.impl.PortletContainerImpl.init(PortletContainerImpl.java:99) at org.light.portal.Servlet.init(Servlet.java:77) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4350) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4659) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

从同事能运行的eclipse导入到IDEA的项目配置过tomcat后报严重 [RMI TCP Connection(3)-127.0.0.1] 错误

"C:\Program Files\Apache Software Foundation\Tomcat 8.0\bin\catalina.bat" run [2020-01-04 01:22:07,300] Artifact susong:war exploded: Waiting for server connection to start artifact deployment... Using CATALINA_BASE: "C:\Users\cd\.IntelliJIdea2018.1\system\tomcat\Unnamed_wuranyuan" Using CATALINA_HOME: "C:\Program Files\Apache Software Foundation\Tomcat 8.0" Using CATALINA_TMPDIR: "C:\Program Files\Apache Software Foundation\Tomcat 8.0\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.7.0_80" Using CLASSPATH: "C:\Program Files\Apache Software Foundation\Tomcat 8.0\bin\bootstrap.jar;C:\Program Files\Apache Software Foundation\Tomcat 8.0\bin\tomcat-juli.jar" 04-Jan-2020 13:22:13.122 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.47 04-Jan-2020 13:22:13.125 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 29 2017 13:46:41 UTC 04-Jan-2020 13:22:13.125 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.47.0 04-Jan-2020 13:22:13.125 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 7 04-Jan-2020 13:22:13.125 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 6.1 04-Jan-2020 13:22:13.125 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 04-Jan-2020 13:22:13.125 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files\Java\jdk1.7.0_80\jre 04-Jan-2020 13:22:13.125 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.7.0_80-b15 04-Jan-2020 13:22:13.125 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation 04-Jan-2020 13:22:13.125 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\cd\.IntelliJIdea2018.1\system\tomcat\Unnamed_wuranyuan 04-Jan-2020 13:22:13.125 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 8.0 04-Jan-2020 13:22:13.126 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\cd\.IntelliJIdea2018.1\system\tomcat\Unnamed_wuranyuan\conf\logging.properties 04-Jan-2020 13:22:13.126 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 04-Jan-2020 13:22:13.126 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote= 04-Jan-2020 13:22:13.126 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099 04-Jan-2020 13:22:13.126 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false 04-Jan-2020 13:22:13.126 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false 04-Jan-2020 13:22:13.126 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1 04-Jan-2020 13:22:13.126 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 04-Jan-2020 13:22:13.126 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 04-Jan-2020 13:22:13.126 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 8.0\endorsed 04-Jan-2020 13:22:13.126 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\cd\.IntelliJIdea2018.1\system\tomcat\Unnamed_wuranyuan 04-Jan-2020 13:22:13.126 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 8.0 04-Jan-2020 13:22:13.126 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 8.0\temp 04-Jan-2020 13:22:13.126 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_80\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;D:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\SMART Technologies\Education Software\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\CADSeePlus;F:\software\ANDROID\android-sdk-windows\platform-tools;E:\opencv\opencv\build\x64\vc12\bin;E:\opencv\opencv\build\x86\vc12\bin;C:\Program Files (x86)\税务证书应用客户端;.\Library;.\Security\BiSafe;.\Security\Koal;C:\Users\cd\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Java\jdk1.8.0_131\bin;D:\Program Files\Apache\maven\bin;. 04-Jan-2020 13:22:13.227 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"] 04-Jan-2020 13:22:13.256 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 04-Jan-2020 13:22:13.259 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"] 04-Jan-2020 13:22:13.270 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 04-Jan-2020 13:22:13.270 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 439 ms 04-Jan-2020 13:22:13.296 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina 04-Jan-2020 13:22:13.296 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.47 04-Jan-2020 13:22:13.306 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"] 04-Jan-2020 13:22:13.327 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"] 04-Jan-2020 13:22:13.343 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 72 ms Connected to server [2020-01-04 01:22:13,389] Artifact susong:war exploded: Artifact is being deployed, please wait... 04-Jan-2020 13:22:17.320 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1733) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:484) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:433) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1487) at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:97) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1328) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1420) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:848) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) at sun.rmi.transport.Transport$2.run(Transport.java:202) at sun.rmi.transport.Transport$2.run(Transport.java:199) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:198) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoClassDefFoundError: org/apache/commons/configuration/ConfigurationException at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2509) at java.lang.Class.getDeclaredFields(Class.java:1819) at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106) at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:256) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:86) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:63) at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:336) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:786) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:307) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5213) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) ... 44 more Caused by: java.lang.ClassNotFoundException: org.apache.commons.configuration.ConfigurationException at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1339) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167) ... 58 more 04-Jan-2020 13:22:17.327 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.tomcat.util.modeler.BaseModelMBean.invoke Exception invoking method manageApp java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:757) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1733) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [2020-01-04 01:22:17,378] Artifact susong:war exploded: Error during artifact deployment. See server log for details. at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:484) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:433) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1487) at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:97) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1328) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1420) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:848) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) at sun.rmi.transport.Transport$2.run(Transport.java:202) at sun.rmi.transport.Transport$2.run(Transport.java:199) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:198) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) 04-Jan-2020 13:22:17.328 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.tomcat.util.modeler.BaseModelMBean.invoke Exception invoking method createStandardContext javax.management.RuntimeOperationsException: Exception invoking method manageApp at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:308) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:484) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:433) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1487) at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:97) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1328) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1420) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:848) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) at sun.rmi.transport.Transport$2.run(Transport.java:202) at sun.rmi.transport.Transport$2.run(Transport.java:199) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:198) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:757) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1733) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) ... 35 more 04-Jan-2020 13:22:23.307 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\manager 04-Jan-2020 13:22:23.405 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\manager has finished in 98 ms "C:\Program Files\Apache Software Foundation\Tomcat 8.0\bin\catalina.bat" stop Using CATALINA_BASE: "C:\Users\cd\.IntelliJIdea2018.1\system\tomcat\Unnamed_wuranyuan" Using CATALINA_HOME: "C:\Program Files\Apache Software Foundation\Tomcat 8.0" Using CATALINA_TMPDIR: "C:\Program Files\Apache Software Foundation\Tomcat 8.0\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.7.0_80" Using CLASSPATH: "C:\Program Files\Apache Software Foundation\Tomcat 8.0\bin\bootstrap.jar;C:\Program Files\Apache Software Foundation\Tomcat 8.0\bin\tomcat-juli.jar" 04-Jan-2020 13:26:09.457 信息 [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance. 04-Jan-2020 13:26:09.458 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"] 04-Jan-2020 13:26:09.515 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"] 04-Jan-2020 13:26:09.567 信息 [main] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina 04-Jan-2020 13:26:09.578 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"] 04-Jan-2020 13:26:09.580 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"] 04-Jan-2020 13:26:09.581 信息 [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"] 04-Jan-2020 13:26:09.581 信息 [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"] Disconnected from server

无法使Code Igniter连接到本地SQL Server Express实例

<div class="post-text" itemprop="text"> <p>I have been struggling for the last three hours with the following issue and so far I can't get this to work properly.</p> <p>I have an SQL Express instance running in my PC, I have checked already the port <code>1433</code> is listening by running <code>netstat -an</code>:</p> <p><a href="https://i.stack.imgur.com/qy4eU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qy4eU.png" alt="enter image description here"></a></p> <p>I am able to connect through <code>telnet</code> by using the following command:</p> <pre><code>telnet SQLEXPRESS 1433 </code></pre> <p>This is how my <code>database.php</code> file looks like:</p> <pre><code>$active_group = 'mssql_common'; $db['mssql_common']['hostname'] = 'SQLEXPRESS'; $db['mssql_common']['username'] = 'ssEPA_User'; $db['mssql_common']['password'] = '**********'; $db['mssql_common']['database'] = 'ssEPA_DEV'; $db['mssql_common']['dbdriver'] = 'mssql'; $db['mssql_common']['dbprefix'] = ''; $db['mssql_common']['pconnect'] = false; $db['mssql_common']['db_debug'] = true; $db['mssql_common']['cache_on'] = false; $db['mssql_common']['cachedir'] = ''; $db['mssql_common']['char_set'] = 'utf8'; $db['mssql_common']['dbcollat'] = 'utf8_general_ci'; $db['mssql_common']['swap_pre'] = ''; $db['mssql_common']['autoinit'] = true; $db['mssql_common']['stricton'] = false; $db['mssql_common']['port'] = 1433; </code></pre> <p>But for some reason, unknown to me, I keep getting the following error:</p> <blockquote> <p>Unable to connect to your database server using the provided settings. Filename: core/Loader.php Line Number: 346</p> </blockquote> <p>For the <code>hostname</code> setting I have tried all this combinations (one at a time):</p> <pre><code>$db['mssql_common']['hostname'] = 'SQLEXPRESS'; // instance name $db['mssql_common']['hostname'] = 'ARX1607\SQLEXPRESS'; // pc_name\instance name $db['mssql_common']['hostname'] = 'localhost'; $db['mssql_common']['hostname'] = '127.0.0.1'; $db['mssql_common']['hostname'] = '192.168.56.1'; // DHCP address </code></pre> <p>None of the above worked. This is driving me crazy!!! </p> <blockquote> <p><strong>Note:</strong> I am using Code Igniter 2.3.1 (legacy application and I can't upgrade) and PHP 5.3.3 (do not ask me why :p lol) The app is running inside a VirtualBox box using Vagrant so PHP, Apache are on the server side (guest), SQLServer is on Windows side (host).</p> </blockquote> <p>Does any have any ideas?</p> <p>I have checked a few posts here like:</p> <ul> <li><a href="https://stackoverflow.com/questions/50071924/how-to-connect-code-igniter-3-1-8-with-sql-server-2000">How to connect code igniter 3.1.8 with sql server 2000</a></li> <li><a href="https://stackoverflow.com/questions/8669337/codeigniter-mssql-connection/13433923">CodeIgniter MSSQL connection</a></li> <li><a href="https://stackoverflow.com/questions/19431447/codeigniter-how-to-setup-connection-to-a-sql-server-2008">Codeigniter: How to setup connection to a SQL server (2008)</a></li> <li><a href="https://stackoverflow.com/questions/8669337/codeigniter-mssql-connection">CodeIgniter MSSQL connection</a></li> </ul> <p>And tried almost everything but use <code>sqlsrv</code> driver. Again, any ideas? </p> <p>The <code>mssql</code> driver is installed and enabled see below:</p> <p><a href="https://i.stack.imgur.com/Awm1W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Awm1W.png" alt="enter image description here"></a></p> </div>

访问被拒绝'用户名'@'localhost',如何测试数据库密码?

<div class="post-text" itemprop="text"> <p>在UbuntuVM中,我一直收到: </p> <blockquote> <p>SQLSTATE[HY000] [1045] Access denied for user 'username'@'localhost' (using password: YES)</p> </blockquote> <hr> <h1>更新</h1> <p>在.env文件中我已经像这样配置了数据库: </p> <pre><code>DB_HOST=45.55.88.57 DB_DATABASE=b-prod DB_USERNAME=root DB_PASSWORD=********* UNIX_SOCKET=/var/run/mysqld/mysqld.sock </code></pre> <p>效果很好。</p> <hr> <p>但当我使用下面这个时: </p> <pre><code>DB_HOST=45.55.88.57 DB_DATABASE=b-prod DB_USERNAME=b &lt;---------------------------------------------- DB_PASSWORD=********* UNIX_SOCKET=/var/run/mysqld/mysqld.sock </code></pre> <p>却不起作用了。</p> <p>我还应该调查些什么来防止这件事? </p> <hr> <p>我感觉密码可能错了。</p> <p>如何测试我的数据库密码?DB_PASSWORD=********* ?</p> <hr> <p>这是我所有的用户: </p> <pre><code>mysql&gt; SELECT User,Host FROM mysql.user; +------------------+-------------+ | User | Host | +------------------+-------------+ | root | % | | root | 127.0.0.1 | | root | 45.55.88.57 | | root | ::1 | | root | b | | b | localhost | | debian-sys-maint | localhost | | root | localhost | +------------------+-------------+ 8 rows in set (0.00 sec) </code></pre> </div>

求myexclipse+tomcat+sql server数据库连接的详细配置

我试了好多次,不是数据库链接不上,不知道为什么,然后就是连接上数据库了,然后tomcat能正常启动,但是http://localhost:8080/网页就是打不开,试着改了端口号,关了防火墙,换了浏览器都打不开。用http://127.0.0.1:8080还是无济于事,已经重新配置了很多遍了还是如此,希望各位大神可以指点一下

碰到no suitable driver found for jdbc:mysql//localhost:3306/qzhao 错误

我在家里的电脑上用eclipse建了一个简单的hibernate工程. 运行的时候碰到no suitable driver found for jdbc:mysql//localhost:3306/qzhao 异常。 我在网上搜了很多答案,比如把jar放在jre/lib/ext下面,都不行。 奇怪的是在我单位工作电脑上,同样的项目就能work。也没有把jar包放在jre下面。我家里用的是win7,jdk装在C:\pogram files下面。连接配置都是好的。还有家里mysql是和eclipse装在同一台电脑上。工作单位是在服务器上。 请高手解释?昨晚折腾了一夜。最后网速暴慢就睡觉了。 [b]问题补充:[/b] 我的不是一个web程序,就是一个普通的eclipse java project。我已经把jar加到eclipse project里面了。而且用这个jar包用一般的java code可以连接啊 [b]问题补充:[/b] 谢谢各位的答案 出现这样的情况,一般有四种原因: 一:连接URL格式出现了问题(Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/XX","root","XXXX") [qzhao]:我的配置如下: <!-- Database connection settings --> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="connection.url">jdbc:mysql://10.111.3.244:3306/qzhao_opbook</property> <property name="connection.username">qzhao</property> <property name="connection.password">qzhao</property> <!-- JDBC connection pool (use the built-in) --> <property name="connection.pool_size">1</property> <!-- SQL dialect --> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <!-- Enable Hibernate's automatic session context management --> <property name="current_session_context_class">thread</property> <!-- Disable the second-level cache --> <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> <!-- Echo all executed SQL to stdout --> <property name="show_sql">true</property> <!-- Drop and re-create the database schema on startup --> <property name="hbm2ddl.auto">update</property> <mapping resource="org/hibernate/tutorial/domain/Event.hbm.xml" /> 而且在我单位电脑能work 二:驱动字符串出错(com.mysql.jdbc.Driver) 三:Classpath中没有加入合适的mysql_jdbc驱动(驱动要和你的数据库版本一致) 这个我用的是mysql-connector-java-5.0.4-bin.jar,数据库是5.0 四:驱动jar包放的位置不对 我把它加到eclipse project build path里面的。同样在单位电脑上可以工作的。所以我很疑惑,难道是因为家里的电脑jdk路径下面有空格或者是win7的原因?? [b]问题补充:[/b] 问题找到了,是url错了。 分就给walsh吧

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

springboot+jwt实现token登陆权限认证

一 前言 此篇文章的内容也是学习不久,终于到周末有时间码一篇文章分享知识追寻者的粉丝们,学完本篇文章,读者将对token类的登陆认证流程有个全面的了解,可以动态搭建自己的登陆认证过程;对小项目而已是个轻量级的认证机制,符合开发需求;更多精彩原创内容关注公主号知识追寻者,读者的肯定,就是对作者的创作的最大支持; 二 jwt实现登陆认证流程 用户使用账号和面发出post请求 服务器接受到请求后使用私...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

程序员写出这样的代码,能不挨骂吗?

当你换槽填坑时,面对一个新的环境。能够快速熟练,上手实现业务需求是关键。但是,哪些因素会影响你快速上手呢?是原有代码写的不够好?还是注释写的不够好?昨夜...

外包程序员的幸福生活

今天给你们讲述一个外包程序员的幸福生活。男主是Z哥,不是在外包公司上班的那种,是一名自由职业者,接外包项目自己干。接下来讲的都是真人真事。 先给大家介绍一下男主,Z哥,老程序员,是我十多年前的老同事,技术大牛,当过CTO,也创过业。因为我俩都爱好喝酒、踢球,再加上住的距离不算远,所以一直也断断续续的联系着,我对Z哥的状况也有大概了解。 Z哥几年前创业失败,后来他开始干起了外包,利用自己的技术能...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

早上躺尸,晚上干活:硅谷科技公司这么流行迟到?

硅谷科技公司上班时间OPEN早已不是什么新鲜事,早九晚五是常态,但有很多企业由于不打卡,员工们10点、11点才“姗姗来迟”的情况也屡见不鲜。 这种灵活的考勤制度为人羡慕,甚至近年来,国内某些互联网企业也纷纷效仿。不过,硅谷普遍弹性的上班制度是怎么由来的呢?这种“流行性迟到”真的有那么轻松、悠哉吗? 《动态规划专题班》 课程试听内容: 动态规划的解题要领 动态规划三大类 求最值/计数/可行性 常...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

终于懂了TCP和UDP协议区别

终于懂了TCP和UDP协议区别

Python爬虫,高清美图我全都要(彼岸桌面壁纸)

爬取彼岸桌面网站较为简单,用到了requests、lxml、Beautiful Soup4

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

Java岗开发3年,公司临时抽查算法,离职后这几题我记一辈子

前几天我们公司做了一件蠢事,非常非常愚蠢的事情。我原以为从学校出来之后,除了找工作有测试外,不会有任何与考试有关的事儿。 但是,天有不测风云,公司技术总监、人事总监两位大佬突然降临到我们事业线,叫上我老大,给我们组织了一场别开生面的“考试”。 那是一个风和日丽的下午,我翘着二郎腿,左手端着一杯卡布奇诺,右手抓着我的罗技鼠标,滚动着轮轴,穿梭在头条热点之间。 “淡黄的长裙~蓬松的头发...

大胆预测下未来5年的Web开发

在2019年的ReactiveConf 上,《Elm in Action》的作者Richard Feldman对未来5年Web开发的发展做了预测,很有意思,分享给大家。如果你有机会从头...

立即提问
相关内容推荐