排行榜

  • 用户榜
  • 标签榜
  • 冲榜分奖金

频道

最新最热悬赏待采纳 筛选
  • 3

    回答

  • 35

    浏览

在eclipse里弄了个Tomcat,不把webapp放进去可以正常启动,一把webapp放进去就启动不了Tomcat,显示的问题是  

  • 5

    回答

  • 36

    浏览

Java类代码如下、 package com.servlet; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.PrintWriter; public class PryingHtml extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { super.doGet(req, resp); //通过响应的回传流回html数据页面 resp.setContentType("text/html; charset=UTF-8"); PrintWriter writer = resp.getWriter(); writer.write(" <!DOCTYPE html>\r\n"); writer.write(" <html lang=\"en\">\r\n"); writer.write(" <<head>\r\n"); writer.write(" <meta charset=\"UTF-8\">\r\n"); writer.write(" <title>Title</title>\r\n"); writer.write(" </head>\r\n"); writer.write(" <body>\r\n"); writer.write(" <!DOCTYPE html>\r\n"); writer.write(" <body>\r\n"); writer.write(" 这是html页面....\r\n"); writer.write(" <body>\r\n"); writer.write("</html>\r\n"); } }    web.xml代码如下。 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" version="4.0"> <servlet> <servlet-name>PryingHtml</servlet-name> <servlet-class>com.servlet.PryingHtml</servlet-class> </servlet> <servlet-mapping> <servlet-name>PryingHtml</servlet-name> <url-pattern>/PryingHtml</url-pattern> </servlet-mapping> </web-app>  

  • 5

    回答

  • 52

    浏览

g跟着书第一个实践配置下来,代码就是一个简单的访问界面的内容,但是运行之后却找不到连接,该怎样修改  谢谢

  • 6

    回答

  • 54

    浏览

  • 1

    回答

  • 11

    浏览

public class UserManage { private JdbcTemplate jt = null; public List<User> selectAll(){ jt= new JdbcTemplate(DruidUtlis.getDs()); String sql ="select * from usermanage"; List<User> users=null; try { users = jt.query(sql, new BeanPropertyRowMapper<User>(User.class)); }catch (Exception e){ return null; } return users; } 我的疑问主要是这样的,我定义的数据库的user表中是有一个id属性的,但是当我使用jdbctemplate封装数据库数据为user对象的时候(User对象的定义如上图) ,刚好就能把我定义的user的属性和数据库的列名对应的封装为user对象,从而省略了对id属性的封装,这是为什么,难道jdbctemplate封装属性的时候 ,是根据我定义的user类型的属性,去找的数据库相同的列名进行封装的吗?

  • 5

    回答

  • 34

    浏览

  SpirngMVC可以进入Controller,且成功返回逻辑视图并转发到目标路径,但是前端还是报404错误。   这里是控制台信息   这里是前端报出的信息     这个是web.xml配置文件 <?xml version="1.0" encoding="UTF-8"?> <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 http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> <display-name></display-name> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <!-- 指定Spring Bean的配置文件所在目录 在web.xml中通过contextConfigLocation配置spring, contextConfigLocation参数定义了要装入的 Spring 配置文件。 --> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext-*.xml</param-value> </context-param> <!-- spring字符编码过滤器start--> <filter> <!--① Spring 编码过滤器 --> <filter-name>encodingFilter</filter-name> <filter-class> org.springframework.web.filter.CharacterEncodingFilter </filter-class> <!--② 编码方式 --> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> <!--③ 强制进行编码转换 --> <init-param> <param-name>forceEncoding</param-name> <param-value>true</param-value> </init-param> </filter> <!-- ② 过滤器的匹配 URL --> <filter-mapping> <filter-name>encodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <!-- spring字符编码过滤器end--> <!-- Spring MVC配置 --> <servlet> <servlet-name>spring</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:springmvc-servlet.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>spring</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> <!-- Spring配置 --> <!-- 当系统启动的时候,spring需要进行一些资源加载或者配置,都需要使用此监听去做 --> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <!-- log4j配置start --> <context-param> <param-name>log4jConfigLocation</param-name> <param-value>classpath:log4j.properties</param-value> </context-param> <context-param> <!-- 指定系统根目录路径 --> <param-name>webAppRootKey</param-name> <param-value>SMBMMVC.root</param-value> </context-param> <!-- Spring 加载 Log4j 的监听 --> <listener> <listener-class> org.springframework.web.util.Log4jConfigListener </listener-class> </listener> <!-- log4j配置end --> </web-app>   因为能进入controller,所以应该不是controller的问题,就没把那一层的代码po上来,求各位大兄弟帮忙看看,是不是web.xml除了问题?

  • 2

    回答

  • 18

    浏览

RT.   通过路由上网.路由上做了映射.外网的机器通过公网IP可以访问,局域网内的机器通过局域网IP,公网IP,也能访问   就本机不能通过公网IP访问,用127.0.0.1 可以.局域网IP也可以.就公网不行   我当年也遇过这问题.好像说是 什么 回溯还是回流问题..现在怎么搜也搜不到了..   求大佬们指点下

回答 goodkenneth
采纳率33.3%
27天前
  • 1

    回答

  • 37

    浏览

提示程序包javax.servlet不存在

回答 Aphraaa
采纳率100%
27天前
  • 1

    回答

  • 18

    浏览

  • 3

    回答

  • 23

    浏览

10-Apr-2021 23:15:17.834 严重 [main] org.apache.catalina.core.StandardServer.await Failed to create server shutdown socket on address [localhost] and port [80] (base port [80] and offset [0])         java.net.BindException: Address already in use: JVM_Bind                 at java.net.DualStackPlainSocketImpl.bind0(Native Method)                 at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)                 at java.net.AbstractPlainSocketImpl.bind(Unknown Source)                 at java.net.PlainSocketImpl.bind(Unknown Source)                 at java.net.ServerSocket.bind(Unknown Source)                 at java.net.ServerSocket.<init>(Unknown Source)                 at org.apache.catalina.core.StandardServer.await(StandardServer.java:584)                 at org.apache.catalina.startup.Catalina.await(Catalina.java:721)                 at org.apache.catalina.startup.Catalina.start(Catalina.java:667)                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)                 at java.lang.reflect.Method.invoke(Unknown Source)                 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343)                 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474)

回答 Big head
采纳率100%
26天前
  • 7

    回答

  • 71

    浏览

我想要生成这样的表格     重新修改和页面显示的内容,和实体类  

  • 3

    回答

  • 50

    浏览

  • 2

    回答

  • 29

    浏览

idea将项目生成war包后在linux部署java项目,tomcat访问不到项目,tomcat启动正常,可以访问root下的默认界面,但是我部署的项目就访问不了,在浏览器报404,这是为什么? ip:8080/war解压后的名字/index.jsp

回答 酷爱码
采纳率69.2%
25天前
  • 1

    回答

  • 40

    浏览

框架是struts2的2.5.26加spring4加hibernate3,主要提示如下错误: [12 09:46:26,076 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Using SessionFactory 'sessionFactory' for OpenSessionInViewFilter [12 09:46:26,077 DEBUG] [http-bio-8080-exec-4] support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'sessionFactory' [12 09:46:26,077 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Opening single Hibernate Session in OpenSessionInViewFilter [12 09:46:26,077 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Opening Hibernate Session [12 09:46:26,077 DEBUG] [http-bio-8080-exec-4] impl.SessionImpl - opened session at timestamp: 16181919860 [12 09:46:26,119 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Closing single Hibernate Session in OpenSessionInViewFilter [12 09:46:26,119 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Closing Hibernate Session [12 09:46:30,666 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Using SessionFactory 'sessionFactory' for OpenSessionInViewFilter [12 09:46:30,666 DEBUG] [http-bio-8080-exec-4] support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'sessionFactory' [12 09:46:30,666 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Opening single Hibernate Session in OpenSessionInViewFilter [12 09:46:30,666 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Opening Hibernate Session [12 09:46:30,666 DEBUG] [http-bio-8080-exec-4] impl.SessionImpl - opened session at timestamp: 16181919906 [12 09:46:30,840 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Closing single Hibernate Session in OpenSessionInViewFilter [12 09:46:30,840 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Closing Hibernate Session [12 09:46:30,844 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Using SessionFactory 'sessionFactory' for OpenSessionInViewFilter [12 09:46:30,844 DEBUG] [http-bio-8080-exec-4] support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'sessionFactory' [12 09:46:30,844 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Opening single Hibernate Session in OpenSessionInViewFilter [12 09:46:30,844 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Opening Hibernate Session [12 09:46:30,844 DEBUG] [http-bio-8080-exec-4] impl.SessionImpl - opened session at timestamp: 16181919908 [12 09:46:30,847 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Closing single Hibernate Session in OpenSessionInViewFilter [12 09:46:30,847 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Closing Hibernate Session [12 09:46:32,028 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Using SessionFactory 'sessionFactory' for OpenSessionInViewFilter [12 09:46:32,028 DEBUG] [http-bio-8080-exec-4] support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'sessionFactory' [12 09:46:32,028 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Opening single Hibernate Session in OpenSessionInViewFilter [12 09:46:32,028 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Opening Hibernate Session [12 09:46:32,028 DEBUG] [http-bio-8080-exec-4] impl.SessionImpl - opened session at timestamp: 16181919920 [12 09:46:32,032 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Closing single Hibernate Session in OpenSessionInViewFilter [12 09:46:32,032 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Closing Hibernate Session    

skillet_fans
采纳率0%
25天前
  • 3

    回答

  • 25

    浏览

如题,最近项目中在开发一个预约机小票打印的功能,现在的效果是:点击打印之后,可以在服务器上的一个文件夹内生成一个html格式的小票样式,然后客户端就可以看到这个html并点击打印。现在就是想实现一个跳转预览打印的功能,能够使得用户点击打印后,不是弹出html页面,而是html的预览打印页面。

  • 6

    回答

  • 41

    浏览

我的java程序是bat调用jar包启动的,运行一段时间会出现JAVA SE。。。 已停止运行的弹框,这个时候java进程也没关闭,是处于一种卡死阻塞的状态,浏览器访问系统会一直连接响应,但是连接不上,现在这种状态是不可控的,我就想每当出现这种状态就去重启程序,想写个这样的脚本,望大佬指点!!!!急

  • 3

    回答

  • 43

    浏览

1.我在如下页面输入相应的信息,数据库没有成功插入记录。 2.我已经排除了后段代码问题,在如下直接运行可以直接插入到数据库。 所以可能是web.xml或者是控制端的问题 3.下面是两个jsp文件的代码 请大神们帮我看看哪里除了问题

  • 2

    回答

  • 20

    浏览

导入的别人的项目,先尝试着能不能修改,结果果然连title都无法修改,在百度上搜的方法,比如Tomcat-clean,删除项目重新添加,清除浏览器缓存,能用的都用了,依然无法修改,该怎么办呀,是配置的问题吗

  • 2

    回答

  • 23

    浏览

平时windows下启动tomcat,通过star.bat后,黑窗口会一直显示在桌面,如果项目报错时可以在tomcat黑窗口中查看; 现在通过windows开机自动启动tomcat后,黑窗口就不显示了,请问怎么能把黑窗口显示出来呀???

回答 滨海之君
采纳率60%
24天前
  • 4

    回答

  • 18

    浏览

  • 1

    回答

  • 22

    浏览

每个web应用都重新配了一个Service,配置如下: <Service name="Catalina0"> <Connector port="7000" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <Engine name="Catalina0" defaultHost="localhost"> <Realm className="org.apache.catalina.realm.LockOutRealm"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> </Realm> <Host name="localhost" appBase="xx_webapps/XXSso_7000" unpackWARs="true" autoDeploy="true"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b" /> </Host> </Engine> </Service> 然后在manager和probe里都看不到里面的应用了,查看日志应用都已经正常启动,接口也是通的,就是监控里看不到。 奇怪的是之前在windows服务器上同样的配置是可以看到的,这次转移到ubuntu上就不行了。 图上这里只能监控到默认的webapps下的应用

  • 3

    回答

  • 22

    浏览

  用IDEA写的javaWeb项目,部署的Tomcat出现的404错误

回答 qq_44948420
采纳率60%
24天前
  • 4

    回答

  • 54

    浏览

现在我创建了一个小说表,我想获取表中对应图书名(bookName)的所有图书章节(title),但是我不知道怎么用Servlet来接收搜索到的数据,应该用集合吗?我希望把接收到的数据通过EL表达式${u.title}带到页面上,但是我不知道应该怎么操作才能让带出来的数据按顺序排序,请教各位大佬怎么实现这些功能 create table novel( id varchar(32) auto_increment not null, bookNeme varchar(20) not null, author varchar(12) not null, content text not null, title varchar(255) not null, bookId int(11)not null, primary key(id) )ENGINE=InnoDB DEFAULT CHARSET=utf8;  

回答 何永康
采纳率80%
23天前
  • 8

    回答

  • 69

    浏览

今天把公司的项目部署到本地的tomcat  启动tomcat-service服务之后跳转到默认登录页面 输入账号密码点击登录之后直接404 也没啥提示  看日志也整不明白 请问有大佬知道大概是哪个方面的问题吗 怎么解决呢?

  • 1

    回答

  • 31

    浏览

四月 14, 2021 5:04:26 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: 使用APR版本[1.7.0]加载了基于APR的Apache Tomcat本机库[1.2.26]。 四月 14, 2021 5:04:26 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: APR功能:IPv6[true]、sendfile[true]、accept filters[false]、random[true]。 四月 14, 2021 5:04:26 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL 信息: OpenSSL成功初始化 [OpenSSL 1.1.1i  8 Dec 2020] 四月 14, 2021 5:04:26 下午 org.apache.coyote.AbstractProtocol init 信息: 初始化协议处理器 ["http-apr-8080"] 四月 14, 2021 5:04:26 下午 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 769 ms 四月 14, 2021 5:04:26 下午 org.apache.catalina.core.StandardService startInternal 信息: 正在启动服务[Catalina] 四月 14, 2021 5:04:26 下午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.108 四月 14, 2021 5:04:26 下午 org.apache.coyote.AbstractProtocol start 信息: 开始协议处理句柄["http-apr-8080"] 四月 14, 2021 5:04:26 下午 org.apache.catalina.startup.Catalina start 信息: Server startup in 61 ms  

  • 3

    回答

  • 24

    浏览

代码如下 ClassPathResource resource = new ClassPathResource("/home/tomcat/apache-tomcat-9.0.43/tempPositionStr.properties"); File file = new File(String.valueOf(resource.getFile())); 报错如下: java.io.FileNotFoundException: class path resource [home/tomcat/apache-tomcat-9.0.43/tempPositionStr.properties] cannot be resolved to URL because it does not exist   从报错的路径来看,home目录前面的斜杠被忽略了?这是为什么?

hzk11o11k11o
采纳率66.7%
22天前
  • 2

    回答

  • 63

    浏览

at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)     at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator.processOneAttribute(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)     at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)     at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)     ... 62 more 鍥涙湀 15, 2021 10:06:17 涓婂崍 org.apache.catalina.core.StandardContext listenerStart 涓ラ噸: 寮傚父灏嗕笂涓嬫枃鍒濆鍖栦簨浠跺彂閫佸埌绫荤殑渚﹀惉鍣ㄥ疄渚�.[org.jeecgframework.web.system.listener.InitListener] org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 58 in XML document from file [D:\importProject\tapWater\WEB-INF\classes\spring-mvc-timeTask.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 58; columnNumber: 23; cvc-id.2: There are multiple occurrences of ID value 'executor'.     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)     at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)     at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)     at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)     at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)     at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)     at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)     at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5128)     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5653)     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1007)     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:983)     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:639)     at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1899)     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:302)     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:636)     at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:580)     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:302)     at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)     at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)     at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)     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 java.security.AccessController.doPrivileged(Native Method)     at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1427)     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: org.xml.sax.SAXParseException; lineNumber: 58; columnNumber: 23; cvc-id.2: There are multiple occurrences of ID value 'executor'.     at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)     at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator.processOneAttribute(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)     at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)     at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)     ... 62 more 鍥涙湀 15, 2021 10:06:17 涓婂崍 org.apache.catalina.core.StandardContext listenerStart 涓ラ噸: 寮傚父灏嗕笂涓嬫枃鍒濆鍖栦簨浠跺彂閫佸埌绫荤殑渚﹀惉鍣ㄥ疄渚�.[org.jeecgframework.web.system.listener.OnlineListener] org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 58 in XML document from file [D:\importProject\tapWater\WEB-INF\classes\spring-mvc-timeTask.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 58; columnNumber: 23; cvc-id.2: There are multiple occurrences of ID value 'executor'.     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)     at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)     at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)     at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)     at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)     at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)     at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)     at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5128)     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5653)     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1007)     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:983)     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:639)     at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1899)     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:302)     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:636)     at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:580)     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:302)     at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)     at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)     at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)     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 java.security.AccessController.doPrivileged(Native Method)     at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1427)     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: org.xml.sax.SAXParseException; lineNumber: 58; columnNumber: 23; cvc-id.2: There are multiple occurrences of ID value 'executor'.     at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)     at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator.processOneAttribute(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)     at org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)     at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)     at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)     at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)     ... 62 more 鍥涙湀 15, 2021 10:06:17 涓婂崍 org.apache.catalina.core.ApplicationContext log 淇℃伅: Closing Spring root WebApplicationContext 鍥涙湀 15, 2021 10:06:17 涓婂崍 org.apache.catalina.core.StandardContext listenerStop 涓ラ噸: 渚嬪鎯呭喌鍙戦�佷笂涓嬫枃鍒犻櫎浜嬩欢[org.springframework.web.context.ContextLoaderListener]锛屼互渚垮垪琛ㄥ疄渚� java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext     at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)     at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1066)     at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1040)     at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:988)     at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:556)     at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:142)     at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5174)     at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5865)     at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:187)     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1007)     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:983)     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:639)     at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1899)     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:302)     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:636)     at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:580)     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:302)     at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)     at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)     at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)     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 java.security.AccessController.doPrivileged(Native Method)     at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1427)     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) 鍥涙湀 15, 2021 10:06:17 涓婂崍 org.apache.catalina.core.ApplicationContext log 淇℃伅: Shutting down log4j