Skip to content

Instantly share code, notes, and snippets.

====================[ Build | rest_description | Debug ]========================
/root/clion-2018.2.6/bin/cmake/linux/bin/cmake --build /root/CLionProjects/rest_description/cmake-build-debug --target rest_description -- -j 1
Scanning dependencies of target rest_description
[ 20%] Building CXX object CMakeFiles/rest_description.dir/service/BankerService.cpp.o
In file included from /usr/local/include/pistache/serializer/rapidjson.h:11:0,
from /root/CLionProjects/rest_description/service/BankerService.cpp:5:
/usr/local/include/pistache/description.h: In instantiation of ‘Pistache::Rest::Schema::PathBuilder::bind(Result (Cls::*)(Args ...), Obj)::<lambda(const Pistache::Rest::Request&, Pistache::Http::ResponseWriter)> [with Result = void; Cls = Accountsss::Accounts; Args = {const Pistache::Rest::Request&, Pistache::Http::ResponseWriter}; Obj = Accountsss::Accounts]’:
/usr/local/include/pistache/description.h:332:13: required from ‘struct Pistache::Rest::Schema::PathBuilder::bind(Result (Cls::*)(
====================[ Build | rest_description | Debug ]========================
/root/clion-2018.2.6/bin/cmake/linux/bin/cmake --build /root/CLionProjects/rest_description/cmake-build-debug --target rest_description -- -j 1
Scanning dependencies of target rest_description
[ 33%] Building CXX object CMakeFiles/rest_description.dir/rest_description.cc.o
In file included from /root/CLionProjects/rest_description/rest_description.cc:8:0:
/usr/local/include/pistache/description.h: In instantiation of ‘Pistache::Rest::Schema::PathBuilder::bind(Result (Cls::*)(Args ...), Obj)::<lambda(const Pistache::Rest::Request&, Pistache::Http::ResponseWriter)> [with Result = void; Cls = Accountsss::Accounts; Args = {const Pistache::Rest::Request&, Pistache::Http::ResponseWriter}; Obj = Accountsss::Accounts]’:
/usr/local/include/pistache/description.h:332:13: required from ‘struct Pistache::Rest::Schema::PathBuilder::bind(Result (Cls::*)(Args ...), Obj) [with Result = void; Cls = Accountsss::Accounts; Args = {const Pistache::
curl -XGET 'http://localhost:9200/_cat/health?v'
{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}
uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: BindTransportException[Failed to bind to [9300-9400]]; nested: BindException[Cannot assign requested address];
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125) ~[elasticsearch-5.0.2.jar:5.0.2]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) ~[elasticsearch-5.0.2.jar:5.0.2]
at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) ~[elasticsearch-5.0.2.jar:5.0.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96) ~[elasticsearch-5.0.2.jar:5.0.2]
at org.elasticsearch.cli.Command.main(Command.java:62) ~[elasticsearch-5.0.2.jar:5.0.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89) ~[elasticsearch-5.0.2.jar:5.0.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82) ~[elasticsearch-5.0.2.jar:5.0.2]
Caused by: org.elasticsearch.transport.BindTransportException: Failed to bind to [9300-9400]
<form action="${pageContext.request.contextPath}/blog/q.html" class="navbar-form navbar-right" role="search" method="post" onsubmit="return checkData()" accept-charset="utf-8">
<div class="form-group" >
<input type="text" id="q" name="q" value="${q }" class="form-control" placeholder="请输入要查询的关键字...">
</div>
<button type="submit" class="btn btn-default">搜索</button>
</form>
/**
* 根据关键字查询相关博客信息
org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/apache/solr/common/params/SolrParams
at org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletionWithError(DispatcherServlet.java:1303)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:977)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:869)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
Building GCC requires GMP 4.2 , MPFR 2.4.0 and MPC 0.8.0 .
java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.getDeclaredMethods(Class.java:1975)
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:572)
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:489)
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:475)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1065)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1038)
@edidada
edidada / pom.xml
Created May 19, 2018 03:01
why must dependency commons-fileupload?
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>top.edidada</groupId>
<artifactId>curd</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
软件版本
IDEA 2017.3
tomcat 8.5
java 8
centos 7.4
idea部署项目到远成的tomcat上,报错
Error running 192.168.7.1
Unable to connect to the 192.168.7.1:1099
tomcat目录下/bin/catalina.sh 文件末尾添加了如下文本