出现“Error running ‘ServerStarter‘: Command line is too long.

本文介绍了如何解决IntelliJ IDEA中遇到的命令行过长问题,通过在.workspace.xml文件中添加dynamic.classpath属性,将其值设置为true,可以将长类路径写入文件并由应用程序启动器加载,避免命令行限制。此外,解释了dynamic.classpath选项的作用和实现原理,并提供了相关资料链接供深入理解。
部署运行你感兴趣的模型镜像
处理方式如下:
1)
.idea/workspace.xml的下述条目下
<component name="PropertiesComponent">
添加一条
<property name="dynamic.classpath" value="true" />
2)
调整shorten command line
--附加说明--
说明零:
以上不一定百分百解决问题
说明一:
dynamic.classpath作用:
该选项控制如何将classpath传递给JVM:通过命令行或通过文件。大多数操作系统都有最大的命令行限制,当它超过时,IDEA将无法运行您的应用程序。 当命令行长于32768个字符时,IDEA建议您切换到动态类路径。长类路径被写入文件,然后由应用程序启动器读取并通过系统类加载器加载。 如果您对实施细节感兴趣,可以查看IDEA社区版的源代码,JdkUtil.java文件,setupJVMCommandLine方法
说明二:
期望了解更多,转载:
IDEA命令行缩短器助你解决此问题:Command line is too long. - 知乎

 

您可能感兴趣的与本文相关的镜像

ACE-Step

ACE-Step

音乐合成
ACE-Step

ACE-Step是由中国团队阶跃星辰(StepFun)与ACE Studio联手打造的开源音乐生成模型。 它拥有3.5B参数量,支持快速高质量生成、强可控性和易于拓展的特点。 最厉害的是,它可以生成多种语言的歌曲,包括但不限于中文、英文、日文等19种语言

[root@yfw ~]# cd /opt/openfire/bin [root@yfw bin]# sudo chown -R openfire:openfire /opt/openfire [root@yfw bin]# sudo chmod +x /opt/openfire/bin/start.sh [root@yfw bin]# # 重载服务 [root@yfw bin]# sudo systemctl daemon-reload [root@yfw bin]# [root@yfw bin]# # 启动 [root@yfw bin]# sudo systemctl start openfire [root@yfw bin]# [root@yfw bin]# # 查看日志 [root@yfw bin]# sudo journalctl -u openfire -f -- Logs begin at Fri 2025-11-14 17:23:34 CST. -- Nov 15 16:58:15 yfw.szrengjing.com start.sh[1219378]: at java.lang.Class.newInstance(Class.java:645) [?:?] Nov 15 16:58:15 yfw.szrengjing.com start.sh[1219378]: at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] Nov 15 16:58:15 yfw.szrengjing.com start.sh[1219378]: at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Nov 15 16:58:15 yfw.szrengjing.com start.sh[1219378]: 启动服务器时出错。有关详细信息,请查看日志文件。 Nov 15 16:58:15 yfw.szrengjing.com start.sh[1219378]: Critical Error! The home directory has not been configured, Nov 15 16:58:15 yfw.szrengjing.com start.sh[1219378]: which will prevent the application from working correctly. Nov 15 16:58:15 yfw.szrengjing.com stop.sh[1219402]: Process not running, but PID file exists. Cleaning up. Nov 15 16:58:15 yfw.szrengjing.com systemd[1]: openfire.service: Succeeded. Nov 15 17:03:28 yfw.szrengjing.com systemd[1]: Started OpenFire XMPP Server. Nov 15 17:03:28 yfw.szrengjing.com start.sh[1221408]: Starting OpenFire in foreground mode... Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: Could not locate home Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: java.io.FileNotFoundException Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at org.jivesoftware.openfire.XMPPServer.locateOpenfire(XMPPServer.java:1126) Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:365) Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at java.base/java.lang.Class.newInstance(Class.java:645) Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: 17:03:29.516 [main] ERROR org.jivesoftware.openfire.XMPPServer - null Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: java.io.FileNotFoundException: null Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at org.jivesoftware.openfire.XMPPServer.locateOpenfire(XMPPServer.java:1126) ~[xmppserver-5.0.2.jar:5.0.2] Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:365) ~[xmppserver-5.0.2.jar:5.0.2] Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at java.lang.Class.newInstance(Class.java:645) [?:?] Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: 启动服务器时出错。有关详细信息,请查看日志文件。 Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: Critical Error! The home directory has not been configured, Nov 15 17:03:29 yfw.szrengjing.com start.sh[1221408]: which will prevent the application from working correctly. Nov 15 17:03:29 yfw.szrengjing.com stop.sh[1221434]: Process not running, but PID file exists. Cleaning up. Nov 15 17:03:29 yfw.szrengjing.com systemd[1]: openfire.service: Succeeded.
11-16
[root@yfw ~]# cd /opt/openfire/bin [root@yfw bin]# sudo chmod +x /opt/openfire/bin/start.sh [root@yfw bin]# sudo chown -R openfire:openfire /opt/openfire [root@yfw bin]# sudo su - openfire Last login: Sat Nov 15 17:44:19 CST 2025 on pts/0 ✅ JAVA_HOME: /usr/lib/jvm/java-11-openjdk ✅ Maven home: /opt/maven ✅ Java version: openjdk version "11.0.13" 2021-10-19 LTS ✅ Environment loaded for openfire PATH = /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/lib/jvm/java-11-openjdk/bin:/opt/maven/bin:/usr/local/ffmpeg/bin:/opt/spark/bin JAVA_HOME = /usr/lib/jvm/java-11-openjdk [openfire@yfw ~]$ cd /opt/openfire [openfire@yfw openfire]$ ./bin/start.sh --no-daemon Starting OpenFire in foreground mode... 17:53:48.527 [main] ERROR org.jivesoftware.util.XMLProperties - Error reading XML properties org.dom4j.DocumentException: Error on line 1 of document : Premature end of file. at org.dom4j.io.SAXReader.read(SAXReader.java:511) ~[dom4j-2.1.4.jar:?] at org.dom4j.io.SAXReader.read(SAXReader.java:408) ~[dom4j-2.1.4.jar:?] at org.jivesoftware.util.XMLProperties.buildDoc(XMLProperties.java:810) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.XMLProperties.<init>(XMLProperties.java:160) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.loadSecurityProperties(JiveGlobals.java:1312) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.isXMLPropertyEncrypted(JiveGlobals.java:1010) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.XMLProperties.getProperty(XMLProperties.java:212) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.XMLProperties.getProperty(XMLProperties.java:171) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:310) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:367) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Caused by: org.xml.sax.SAXParseException: Premature end of file. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204) ~[?:?] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:178) ~[?:?] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400) ~[?:?] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) ~[?:?] at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1471) ~[?:?] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1013) ~[?:?] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605) ~[?:?] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112) ~[?:?] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:542) ~[?:?] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:889) ~[?:?] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:825) ~[?:?] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) ~[?:?] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1224) ~[?:?] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637) ~[?:?] at org.dom4j.io.SAXReader.read(SAXReader.java:494) ~[dom4j-2.1.4.jar:?] ... 20 more 17:53:48.554 [main] ERROR org.jivesoftware.util.JiveGlobals - Unable to load default security properties from: /opt/openfire/conf/openfire.xml java.io.IOException: Error on line 1 of document : Premature end of file. at org.jivesoftware.util.XMLProperties.buildDoc(XMLProperties.java:814) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.XMLProperties.<init>(XMLProperties.java:160) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.loadSecurityProperties(JiveGlobals.java:1312) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.isXMLPropertyEncrypted(JiveGlobals.java:1010) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.XMLProperties.getProperty(XMLProperties.java:212) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.XMLProperties.getProperty(XMLProperties.java:171) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:310) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:367) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] 17:53:48.569 [main] ERROR org.jivesoftware.util.JiveProperties - null java.lang.NullPointerException: null at java.lang.Class.forName0(Native Method) ~[?:?] at java.lang.Class.forName(Class.java:375) ~[?:?] at org.jivesoftware.database.DefaultConnectionProvider.start(DefaultConnectionProvider.java:99) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectionManager.java:652) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.database.DbConnectionManager.ensureConnectionProvider(DbConnectionManager.java:109) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:162) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:472) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:108) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:84) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:547) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.cache.CacheFactory.<clinit>(CacheFactory.java:102) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:381) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Database setup or configuration error: Please verify your database settings and check the logs/openfire.log file for detailed error messages. 17:53:51.152 [main] ERROR org.jivesoftware.openfire.XMPPServer - Database could not be accessed java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] java.lang.IllegalArgumentException: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1020) at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) at java.base/java.lang.Class.newInstance(Class.java:645) at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) ... 11 more 17:53:51.153 [main] ERROR org.jivesoftware.openfire.XMPPServer - java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised java.lang.IllegalArgumentException: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1020) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) ~[xmppserver-5.0.2.jar:5.0.2] ... 11 more Error starting the server. Please check the log files for more information.[root@yfw ~]# cd /opt/openfire/bin [root@yfw bin]# sudo chmod +x /opt/openfire/bin/start.sh [root@yfw bin]# sudo chown -R openfire:openfire /opt/openfire [root@yfw bin]# sudo su - openfire Last login: Sat Nov 15 17:44:19 CST 2025 on pts/0 ✅ JAVA_HOME: /usr/lib/jvm/java-11-openjdk ✅ Maven home: /opt/maven ✅ Java version: openjdk version "11.0.13" 2021-10-19 LTS ✅ Environment loaded for openfire PATH = /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/lib/jvm/java-11-openjdk/bin:/opt/maven/bin:/usr/local/ffmpeg/bin:/opt/spark/bin JAVA_HOME = /usr/lib/jvm/java-11-openjdk [openfire@yfw ~]$ cd /opt/openfire [openfire@yfw openfire]$ ./bin/start.sh --no-daemon Starting OpenFire in foreground mode... 17:53:48.527 [main] ERROR org.jivesoftware.util.XMLProperties - Error reading XML properties org.dom4j.DocumentException: Error on line 1 of document : Premature end of file. at org.dom4j.io.SAXReader.read(SAXReader.java:511) ~[dom4j-2.1.4.jar:?] at org.dom4j.io.SAXReader.read(SAXReader.java:408) ~[dom4j-2.1.4.jar:?] at org.jivesoftware.util.XMLProperties.buildDoc(XMLProperties.java:810) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.XMLProperties.<init>(XMLProperties.java:160) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.loadSecurityProperties(JiveGlobals.java:1312) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.isXMLPropertyEncrypted(JiveGlobals.java:1010) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.XMLProperties.getProperty(XMLProperties.java:212) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.XMLProperties.getProperty(XMLProperties.java:171) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:310) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:367) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Caused by: org.xml.sax.SAXParseException: Premature end of file. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204) ~[?:?] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:178) ~[?:?] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400) ~[?:?] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) ~[?:?] at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1471) ~[?:?] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1013) ~[?:?] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605) ~[?:?] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112) ~[?:?] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:542) ~[?:?] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:889) ~[?:?] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:825) ~[?:?] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) ~[?:?] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1224) ~[?:?] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637) ~[?:?] at org.dom4j.io.SAXReader.read(SAXReader.java:494) ~[dom4j-2.1.4.jar:?] ... 20 more 17:53:48.554 [main] ERROR org.jivesoftware.util.JiveGlobals - Unable to load default security properties from: /opt/openfire/conf/openfire.xml java.io.IOException: Error on line 1 of document : Premature end of file. at org.jivesoftware.util.XMLProperties.buildDoc(XMLProperties.java:814) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.XMLProperties.<init>(XMLProperties.java:160) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.loadSecurityProperties(JiveGlobals.java:1312) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.isXMLPropertyEncrypted(JiveGlobals.java:1010) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.XMLProperties.getProperty(XMLProperties.java:212) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.XMLProperties.getProperty(XMLProperties.java:171) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:310) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:367) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] 17:53:48.569 [main] ERROR org.jivesoftware.util.JiveProperties - null java.lang.NullPointerException: null at java.lang.Class.forName0(Native Method) ~[?:?] at java.lang.Class.forName(Class.java:375) ~[?:?] at org.jivesoftware.database.DefaultConnectionProvider.start(DefaultConnectionProvider.java:99) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectionManager.java:652) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.database.DbConnectionManager.ensureConnectionProvider(DbConnectionManager.java:109) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:162) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:472) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:108) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:84) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:547) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.cache.CacheFactory.<clinit>(CacheFactory.java:102) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:381) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Database setup or configuration error: Please verify your database settings and check the logs/openfire.log file for detailed error messages. 17:53:51.152 [main] ERROR org.jivesoftware.openfire.XMPPServer - Database could not be accessed java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] java.lang.IllegalArgumentException: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1020) at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) at java.base/java.lang.Class.newInstance(Class.java:645) at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) ... 11 more 17:53:51.153 [main] ERROR org.jivesoftware.openfire.XMPPServer - java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised java.lang.IllegalArgumentException: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1020) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) ~[xmppserver-5.0.2.jar:5.0.2] ... 11 more Error starting the server. Please check the log files for more information. ^CHalting server... Server halted [openfire@yfw openfire]$ [root@yfw ~]# cd /opt/openfire/bin -bash: [root@yfw: command not found [openfire@yfw openfire]$ [root@yfw bin]# sudo chmod +x /opt/openfire/bin/start.sh XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFr-bash: [root@yfw: command not found [openfire@yfw openfire]$ [root@yfw bin]# sudo chown -R openfire:openfire /opt/openfire -bash: [root@yfw: command not found mpl.java:542) ~[?:?] at com.sun.org.apac[openfire@yfw openfire]$ [root@yfw bin]# sudo su - openfire parsers.XML11Con-bash: [root@yfw: command not found [openfire@yfw openfire]$ Last login: Sat Nov 15 17:44:19 CST 2025 on pts/0 figuration.parse(XML11Configuration.java:889) ~[?:-bash: Last: command not found [openfire@yfw openfire]$ ✅ JAVA_HOME: /usr/lib/jvm/java-11-openjdk -bash:: command not found [openfire@yfw openfire]$ ✅ Maven home: /opt/maven rnal.parsers.XML11Configura-bash:: command not found [openfire@yfw openfire]$ ✅ Java version: openjdk version "11.0.13" 2021-10-19 LTS (XML11Configuration.java:825) ~[?:?] at c-bash:: command not found [openfire@yfw openfire]$ ✅ Environment loaded for openfire -bash:: command not found che.xerces.internal.pa[openfire@yfw openfire]$ PATH = /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usrdk/bin:/opt/maven/bin:/usr/local/ffmpeg/bin:/opt/spark/bin e.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXPa-bash: PATH: command not found [openfire@yfw openfire]$ JAVA_HOME = /usr/lib/jvm/java-11-openjdk rser.java:1224) ~[?:?] at com.sun.or-bash: JAVA_HOME: command not found [openfire@yfw openfire]$ [openfire@yfw ~]$ cd /opt/openfire -bash: [openfire@yfw: command not found [openfire@yfw openfire]$ [openfire@yfw openfire]$ ./bin/start.sh --no-daemon rserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637)-bash: [openfire@yfw: command not found [openfire@yfw openfire]$ Starting OpenFire in foreground mode... SAXReade-bash: Starting: command not found [openfire@yfw openfire]$ 17:53:48.527 [main] ERROR org.jivesoftware.util.XMLProperties - Error reading XML properties 94) ~[dom4j-2.1.4.jar:?] ... 20 more 17:53:48.554 [main] ERROR-bash: 17:53:48.527: command not found [openfire@yfw openfire]$ org.dom4j.DocumentException: Error on line 1 of document : Premature end of file. org.jivesoftware.util.JiveGlobals - Unable to load default security properties fro-bash: org.dom4j.DocumentException:: command not found [openfire@yfw openfire]$ at org.dom4j.io.SAXReader.read(SAXReader.java:511) ~[dom4j-2.1.4.jar:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.dom4j.io.SAXReader.read(SAXReader.java:408) ~[dom4j-2.1.4.jar:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.util.XMLProperties.buildDoc(XMLProperties.java:810) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.util.XMLProperties.<init>(XMLProperties.java:160) [xmppserver-5.0.2.jar:5.0.2] veGlobals.loa-bash: init/dev/fd/62: No such file or directory -bash: XMLProperties.java:160: command not found [openfire@yfw openfire]$ at org.jivesoftware.util.JiveGlobals.loadSecurityProperties(JiveGlobals.java:1312) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.util.JiveGlobals.isXMLPropertyEncrypted(JiveGlobals.java:1010) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.util.XMLProperties.getProperty(XMLProperties.java:212) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' etProperty(XMLProperties.java:212) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.XMLProperties.g[openfire@yfw openfire]$ at org.jivesoftware.util.) [xmppserver-5.0.2.jar:5.0.2]roperties.java:171) -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:310) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:367) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] al.reflect.NativeConstructo-bash: XMLProperties.java:160: command not found -bash: init/dev/fd/62: No such file or directory -bash: XMPPServer.java:221: command not found [openfire@yfw openfire]$ at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] -bash: syntax error near unexpected token `(' onstructo[openfire@yfw openfire]$ at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstanconstructorAccessorImpl.java:77) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] -bash: syntax error near unexpected token `(' tructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInst[openfire@yfw openfire]$ at java.lang.reflect.Cons99) [?:?]ewInstanceWithCaller(Constructor.java:49 -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] -bash: syntax error near unexpected token `(' ava:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactor[openfire@yfw openfire]$ at jdk.internal.reflect.Rava:347) [?:?]ry.newInstance(ReflectionFactory.ja -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.lang.Class.newInstance(Class.java:645) [?:?] -bash: syntax error near unexpected token `(' ry.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.Ser[openfire@yfw openfire]$ at org.jivesoftware.openfva:92) [startup.jar:5.0.2]start(ServerStarter.jav -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ Caused by: org.xml.sax.SAXParseException: Premature end of file. JiveProperties - null java.lang.NullPointerException: null -bash: XMPPServer.java:221: command not found -bash: Caused: command not found [openfire@yfw openfire]$ at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204) ~[?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:178) ~[?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400) ~[?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) ~[?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1471) ~[?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1013) ~[?:?] -bash: syntax error near unexpected token `(' :162) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.loadProperties(J[openfire@yfw openfire]$ at com.suLDocumentScannerImpl.java:605) ~[?:?]DocumentScannerImpl.next(XML -bash: syntax error near unexpected token `(' iveProperties.java:472) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.init(JivePropertie[openfire@yfw openfire]$ at com.XMLNSDocumentScannerImpl.java:112) ~[?:?]DocumentScannerImpl.next(X -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:542) ~[?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:889) ~[?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:825) ~[?:?] -bash: syntax error near unexpected token `(' itialize(XMPPServer.java:381) [xmppserver-5.0.2.jar:5.0.2] at o[openfire@yfw openfire]$ at com.sun.org.apache.xerces.internal.parsers.XMLParser.parseava:141) ~[?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1224) ~[?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637) ~[?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.dom4j.io.SAXReader.read(SAXReader.java:494) ~[dom4j-2.1.4.jar:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ ... 20 more va:77) [?:?] at jdk-bash: ...: command not found [openfire@yfw openfire]$ 17:53:48.554 [main] ERROR org.jivesoftware.util.JiveGlobals - Unable to load default security properties from: /opt/openfire/conf/openfire.xml .internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.C-bash: 17:53:48.554: command not found [openfire@yfw openfire]$ java.io.IOException: Error on line 1 of document : Premature end of file. onstructor.newInstanceWithCaller(Constructor.java:499) [?:?] at jav-bash: java.io.IOException:: command not found [openfire@yfw openfire]$ at org.jivesoftware.util.XMLProperties.buildDoc(XMLProperties.java:814) ~[xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.util.XMLProperties.<init>(XMLProperties.java:160) ~[xmppserver-5.0.2.jar:5.0.2] at java.lang.Class.newInstance(Class.java:6-bash: init/dev/fd/62: No such file or directory [openfire@yfw openfire]$ -bash: XMLProperties.java:160: command not found ava:1312) [xmppserver-5.0.2.jar:5.0.2]lobals.loadSecurityProperties(JiveGlobals.ja -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.util.JiveGlobals.isXMLPropertyEncrypted(JiveGlobals.java:1010) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.util.XMLProperties.getProperty(XMLProperties.java:212) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.util.XMLProperties.getProperty(XMLProperties.java:171) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:310) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:367) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] -bash: XMLProperties.java:160: command not found -bash: init/dev/fd/62: No such file or directory -bash: XMPPServer.java:221: command not found [openfire@yfw openfire]$ at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ -bash: XMPPServer.java:221: command not found onstructorAccessorImpl.java:77) [?:?]eConstructorAccessorImpl.newInstance(NativeCo -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.lang.Class.newInstance(Class.java:645) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ 17:53:48.569 [main] ERROR org.jivesoftware.util.JiveProperties - null onstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jiveso-bash: 17:53:48.569: command not found [openfire@yfw openfire]$ java.lang.NullPointerException: null -bash: java.lang.NullPointerException:: command not found [openfire@yfw openfire]$ at java.lang.Class.forName0(Native Method) ~[?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.lang.Class.forName(Class.java:375) ~[?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.database.DefaultConnectionProvider.start(DefaultConnectionProvider.java:99) ~[xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectionManager.java:652) ~[xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.database.DbConnectionManager.ensureConnectionProvider(DbConnectionManager.java:109) ~[xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:162) ~[xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:472) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:108) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:84) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:547) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.util.cache.CacheFactory.<clinit>(CacheFactory.java:102) [xmppserver-5.0.2.jar:5.0.2] -bash: clinit/dev/fd/62: No such file or directory -bash: CacheFactory.java:102: command not found [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:381) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] -bash: CacheFactory.java:102: command not found -bash: init/dev/fd/62: No such file or directory penfire.starter.ServerStarter.main(ServerStarter.-bash: XMPPServer.java:221: command not found [openfire@yfw openfire]$ at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.lang.Class.newInstance(Class.java:645) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ Database setup or configuration error: Please verify your database settings and check the logs/openfire.log file for detailed error messages. -bash: Database: command not found -bash: XMPPServer.java:221: command not found [openfire@yfw openfire]$ 17:53:51.152 [main] ERROR org.jivesoftware.openfire.XMPPServer - Database could not be accessed itialised at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1020)-bash: 17:53:51.152: command not found [openfire@yfw openfire]$ java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) [xmppserver-5.0.2.jar:5.0.2] ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] a-bash: syntax error near unexpected token `(' t jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.refle[openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.starerver-5.0.2.jar:5.0.2] [xmppse -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] t java.lang-bash: init/dev/fd/62: No such file or directory [openfire@yfw openfire]$ -bash: XMPPServer.java:221: command not found Method) ~[?:?]internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.lang.Class.newInstance(Class.java:645) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ -bash: XMPPServer.java:221: command not found va:92) [startup.jar:5.0.2]e.openfire.starter.ServerStarter.start(ServerStarter.jav -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ java.lang.IllegalArgumentException: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1020) -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) -bash: init/dev/fd/62: No such file or directory -bash: XMPPServer.java:221: command not found [openfire@yfw openfire]$ at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.base/java.lang.Class.newInstance(Class.java:645) -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ ... 11 more -bash: XMPPServer.java:221: command not found -bash: ...: command not found [openfire@yfw openfire]$ 17:53:51.153 [main] ERROR org.jivesoftware.openfire.XMPPServer - java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ java.lang.IllegalArgumentException: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1020) ~[xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) [xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] -bash: init/dev/fd/62: No such file or directory [openfire@yfw openfire]$ at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at java.lang.Class.newInstance(Class.java:645) [?:?] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Check JDBC properties; data source was not be initialised -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ -bash: XMPPServer.java:221: command not found 1010) ~[xmppserver-5.0.2.jar:5.0.2]e.XMPPServer.verifyDataSource(XMPPServer.java:1 -bash: syntax error near unexpected token `(' [openfire@yfw openfire]$ ... 11 more -bash: ...: command not found [openfire@yfw openfire]$ Error starting the server. Please check the log files for more information. -bash: Error: command not found -bash: XMPPServer.java:221: command not found [openfire@yfw openfire]$
11-16
[root@yfw ~]# cd /opt/openfire [root@yfw openfire]# sudo systemctl stop openfire [root@yfw openfire]# ps aux | grep openfire | grep -v grep [root@yfw openfire]# rm -f /opt/openfire/logs/openfire.pid [root@yfw openfire]# ss -tulnp | grep ':9090\|:5222' [root@yfw openfire]# sudo systemctl start openfire [root@yfw openfire]# tail -f /opt/openfire/logs/nohup.out at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) ~[xmppserver-5.0.2.jar:5.0.2] ... 11 more 启动服务器时出错。有关详细信息,请查看日志件。 Halting server... Server halted 16:25:21.035 [main] ERROR org.jivesoftware.database.DbConnectionManager - Failed to create database '/opt/openfire/embedded-db', see the next exception for details. java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.jdbc.InternalDriver$1.run(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.jdbc.InternalDriver$1.run(Unknown Source) ~[derby-10.14.2.0.jar:?] at java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?] at org.apache.derby.jdbc.InternalDriver.getNewEmbedConnection(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source) ~[derby-10.14.2.0.jar:?] at java.sql.DriverManager.getConnection(DriverManager.java:681) ~[java.sql:?] at java.sql.DriverManager.getConnection(DriverManager.java:252) ~[java.sql:?] at org.apache.commons.dbcp2.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:119) ~[commons-dbcp2-2.9.0.jar:2.9.0] at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:374) ~[commons-dbcp2-2.9.0.jar:2.9.0] at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:918) ~[commons-pool2-2.9.0.jar:2.9.0] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:431) ~[commons-pool2-2.9.0.jar:2.9.0] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:356) ~[commons-pool2-2.9.0.jar:2.9.0] at org.apache.commons.dbcp2.PoolingDataSource.getConnection(PoolingDataSource.java:141) ~[commons-dbcp2-2.9.0.jar:2.9.0] at org.jivesoftware.database.DefaultConnectionProvider.getConnection(DefaultConnectionProvider.java:88) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectionManager.java:656) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.database.DbConnectionManager.ensureConnectionProvider(DbConnectionManager.java:101) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:162) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:472) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:108) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:84) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:547) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.cache.CacheFactory.<clinit>(CacheFactory.java:102) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:381) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Caused by: org.apache.derby.iapi.error.StandardException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(Unknown Source) ~[derby-10.14.2.0.jar:?] ... 41 more Caused by: org.apache.derby.iapi.error.StandardException: Directory /opt/openfire/embedded-db already exists. at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.services.monitor.StorageFactoryService$10.run(Unknown Source) ~[derby-10.14.2.0.jar:?] at java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?] at org.apache.derby.impl.services.monitor.StorageFactoryService.createServiceRoot(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.services.monitor.FileMonitor.createPersistentService(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.EmbedConnection$5.run(Unknown Source) ~[derby-10.14.2.0.jar:?] at java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?] at org.apache.derby.impl.jdbc.EmbedConnection.createPersistentService(Unknown Source) ~[derby-10.14.2.0.jar:?] ... 38 more 16:25:23.579 [main] ERROR org.jivesoftware.util.JiveProperties - ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:472) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:108) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:84) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:547) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.cache.CacheFactory.<clinit>(CacheFactory.java:102) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:381) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Database setup or configuration error: Please verify your database settings and check the logs/openfire.log file for detailed error messages. 16:25:26.205 [main] ERROR org.jivesoftware.openfire.XMPPServer - Database could not be accessed java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] java.lang.IllegalArgumentException: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1020) at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) at java.base/java.lang.Class.newInstance(Class.java:645) at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) ... 11 more 16:25:26.206 [main] ERROR org.jivesoftware.openfire.XMPPServer - java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. java.lang.IllegalArgumentException: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1020) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) ~[xmppserver-5.0.2.jar:5.0.2] ... 11 more 启动服务器时出错。有关详细信息,请查看日志文件。 tail: /opt/openfire/logs/nohup.out: file truncated 16:25:27.771 [main] ERROR org.jivesoftware.util.JiveGlobals - Unable to load default Openfire properties from: /opt/openfire/conf/openfire.xml java.io.IOException: XML properties file must be writable: openfire.xml at org.jivesoftware.util.XMLProperties.<init>(XMLProperties.java:156) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.loadOpenfireProperties(JiveGlobals.java:1276) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:308) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:367) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Openfire 5.0.2 [2025年11月15日 下午4:25:27] 管理控制台正在侦听 http://124.71.230.244:9090 Halting server... Server halted Halting server... Server halted 16:25:39.285 [main] ERROR org.jivesoftware.database.DbConnectionManager - Failed to create database '/opt/openfire/embedded-db', see the next exception for details. java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.jdbc.InternalDriver$1.run(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.jdbc.InternalDriver$1.run(Unknown Source) ~[derby-10.14.2.0.jar:?] at java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?] at org.apache.derby.jdbc.InternalDriver.getNewEmbedConnection(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source) ~[derby-10.14.2.0.jar:?] at java.sql.DriverManager.getConnection(DriverManager.java:681) ~[java.sql:?] at java.sql.DriverManager.getConnection(DriverManager.java:252) ~[java.sql:?] at org.apache.commons.dbcp2.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:119) ~[commons-dbcp2-2.9.0.jar:2.9.0] at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:374) ~[commons-dbcp2-2.9.0.jar:2.9.0] at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:918) ~[commons-pool2-2.9.0.jar:2.9.0] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:431) ~[commons-pool2-2.9.0.jar:2.9.0] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:356) ~[commons-pool2-2.9.0.jar:2.9.0] at org.apache.commons.dbcp2.PoolingDataSource.getConnection(PoolingDataSource.java:141) ~[commons-dbcp2-2.9.0.jar:2.9.0] at org.jivesoftware.database.DefaultConnectionProvider.getConnection(DefaultConnectionProvider.java:88) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectionManager.java:656) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.database.DbConnectionManager.ensureConnectionProvider(DbConnectionManager.java:101) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:162) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:472) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:108) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:84) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:547) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.cache.CacheFactory.<clinit>(CacheFactory.java:102) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:381) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Caused by: org.apache.derby.iapi.error.StandardException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(Unknown Source) ~[derby-10.14.2.0.jar:?] ... 41 more Caused by: org.apache.derby.iapi.error.StandardException: Directory /opt/openfire/embedded-db already exists. at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.services.monitor.StorageFactoryService$10.run(Unknown Source) ~[derby-10.14.2.0.jar:?] at java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?] at org.apache.derby.impl.services.monitor.StorageFactoryService.createServiceRoot(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.services.monitor.FileMonitor.createPersistentService(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.EmbedConnection$5.run(Unknown Source) ~[derby-10.14.2.0.jar:?] at java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?] at org.apache.derby.impl.jdbc.EmbedConnection.createPersistentService(Unknown Source) ~[derby-10.14.2.0.jar:?] ... 38 more 16:25:41.834 [main] ERROR org.jivesoftware.util.JiveProperties - ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:472) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:108) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:84) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:547) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.cache.CacheFactory.<clinit>(CacheFactory.java:102) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:381) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Database setup or configuration error: Please verify your database settings and check the logs/openfire.log file for detailed error messages. 16:25:44.521 [main] ERROR org.jivesoftware.openfire.XMPPServer - Database could not be accessed java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] java.lang.IllegalArgumentException: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1020) at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) at java.base/java.lang.Class.newInstance(Class.java:645) at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) ... 11 more 16:25:44.522 [main] ERROR org.jivesoftware.openfire.XMPPServer - java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. java.lang.IllegalArgumentException: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1020) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) ~[xmppserver-5.0.2.jar:5.0.2] ... 11 more 启动服务器时出错。有关详细信息,请查看日志文件。 tail: /opt/openfire/logs/nohup.out: file truncated 16:25:45.770 [main] ERROR org.jivesoftware.util.JiveGlobals - Unable to load default Openfire properties from: /opt/openfire/conf/openfire.xml java.io.IOException: XML properties file must be writable: openfire.xml at org.jivesoftware.util.XMLProperties.<init>(XMLProperties.java:156) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.loadOpenfireProperties(JiveGlobals.java:1276) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:308) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:367) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Openfire 5.0.2 [2025年11月15日 下午4:25:45] 管理控制台正在侦听 http://ecs-124-71-230-244.compute.hwclouds-dns.com:9090 Halting server...
最新发布
11-16
[root@yfw ~]# cd /opt/openfire/bin [root@yfw bin]# ./openfire.sh OPENFIRE_HOME is empty, trying to find it OPENFIRE_HOME is set to /opt/openfire Openfire 5.0.2 [2025年11月15日 下午6:50:14] 管理控制台正在侦听: http://0.0.0.0:9090 https://0.0.0.0:9091 Successfully loaded plugin 'admin'. Successfully loaded plugin 'search-1.7.5'. Finished processing all plugins. 缺少 user-status 的数据库架构。正在尝试安装… 数据库更新成功。 Successfully loaded plugin 'userstatus-1.3.0'. Finished processing all plugins. Nov 15, 2025 6:57:12 PM com.sun.jersey.api.core.PackagesResourceConfig init INFO: Scanning for root resource and provider classes in the packages: org.jivesoftware.openfire.plugin Successfully loaded plugin 'userservice-2.1.3'. Finished processing all plugins. Successfully loaded plugin 'usercreation-1.4.1'. Finished processing all plugins. Successfully loaded plugin 'presence-1.7.4'. Finished processing all plugins. Successfully loaded plugin 'restapi-1.12.0'. Finished processing all plugins. ^CHalting server... Server halted [root@yfw bin]# sudo systemctl restart openfire [root@yfw bin]# ./openfire.sh OPENFIRE_HOME is empty, trying to find it OPENFIRE_HOME is set to /opt/openfire Openfire 5.0.2 [2025年11月15日 下午7:03:37] 管理控制台正在侦听: http://0.0.0.0:9090 https://0.0.0.0:9091 Successfully loaded plugin 'admin'. Successfully loaded plugin 'presence-1.7.4'. Successfully loaded plugin 'search-1.7.5'. Successfully loaded plugin 'usercreation-1.4.1'. Successfully loaded plugin 'restapi-1.12.0'. Successfully loaded plugin 'userstatus-1.3.0'. Nov 15, 2025 7:03:40 PM com.sun.jersey.api.core.PackagesResourceConfig init INFO: Scanning for root resource and provider classes in the packages: org.jivesoftware.openfire.plugin Successfully loaded plugin 'userservice-2.1.3'. Finished processing all plugins. ^CHalting server... Server halted [root@yfw bin]# ls -la /opt/openfire/bin/start.sh ls: cannot access '/opt/openfire/bin/start.sh': No such file or directory [root@yfw bin]# ls -l total 20 drwxr-xr-x 3 root root 4096 Sep 16 00:48 extra -rwxr-xr-x 1 root root 5180 Feb 1 1980 openfirectl -rwxr-xr-x 1 root root 5803 Feb 1 1980 openfire.sh [root@yfw bin]# sudo -u openfire /opt/openfire/bin/openfire.sh JAVA_HOME is empty, trying to find it JAVA_HOME is set to /usr/lib/jvm/java-11-openjdk-11.0.13.0.8-4.el8_5.x86_64 OPENFIRE_HOME is empty, trying to find it OPENFIRE_HOME is set to /opt/openfire Error: LinkageError occurred while loading main class org.jivesoftware.openfire.starter.ServerStarter java.lang.UnsupportedClassVersionError: org/jivesoftware/openfire/starter/ServerStarter has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0 [root@yfw bin]# ./openfire.sh OPENFIRE_HOME is empty, trying to find it OPENFIRE_HOME is set to /opt/openfire Openfire 5.0.2 [2025年11月15日 下午7:16:21] 管理控制台正在侦听: http://0.0.0.0:9090 https://0.0.0.0:9091 Successfully loaded plugin 'admin'. Successfully loaded plugin 'restapi-1.12.0'. Successfully loaded plugin 'search-1.7.5'. Successfully loaded plugin 'usercreation-1.4.1'. Successfully loaded plugin 'presence-1.7.4'. Successfully loaded plugin 'userstatus-1.3.0'. Nov 15, 2025 7:16:24 PM com.sun.jersey.api.core.PackagesResourceConfig init INFO: Scanning for root resource and provider classes in the packages: org.jivesoftware.openfire.plugin Successfully loaded plugin 'userservice-2.1.3'. Finished processing all plugins. ^CHalting server... Server halted [root@yfw bin]# sudo cat > /etc/systemd/system/openfire.service << 'EOF' > [Unit] > Description=OpenFire XMPP Server > Documentation=https://www.igniterealtime.org/projects/openfire/ > After=network.target > > [Service] > Type=simple > User=openfire > Group=openfire > WorkingDirectory=/opt/openfire > Environment="OPENFIRE_HOME=/opt/openfire" > Environment="JAVA_HOME=/usr/lib/jvm/java-17-openjdk" > Environment="LANG=en_US.UTF-8" > > ExecStart=/usr/lib/jvm/java-17-openjdk/bin/java \ > -DopenfireHome=/opt/openfire \ > -Dopenfire.lib.dir=/opt/openfire/lib \ > -cp "/opt/openfire/lib/*" \ > org.jivesoftware.openfire.starter.ServerStarter > > ExecStop=/bin/kill -TERM $MAINPID > Restart=on-failure > RestartSec=10 > StandardOutput=journal > StandardError=journal > LimitNOFILE=65536 > TimeoutStopSec=300 > > [Install] > WantedBy=multi-user.target > EOF [root@yfw bin]# sudo cat > /etc/systemd/system/openfire.service << 'EOF' > [Unit] > Description=OpenFire XMPP Server > Documentation=https://www.igniterealtime.org/projects/openfire/ > After=network.target > > [Service] > Type=simple > User=openfire > Group=openfire > WorkingDirectory=/opt/openfire > Environment="OPENFIRE_HOME=/opt/openfire" > Environment="JAVA_HOME=/usr/lib/jvm/java-17-openjdk" > Environment="LANG=en_US.UTF-8" > > ExecStart=/usr/lib/jvm/java-17-openjdk/bin/java \ > -DopenfireHome=/opt/openfire \ > -Dopenfire.lib.dir=/opt/openfire/lib \ > -cp "/opt/openfire/lib/*" \ > org.jivesoftware.openfire.starter.ServerStarter > > ExecStop=/bin/kill -TERM $MAINPID > Restart=on-failure > RestartSec=10 > StandardOutput=journal > StandardError=journal > LimitNOFILE=65536 > TimeoutStopSec=300 > > [Install] > WantedBy=multi-user.target > EOF [root@yfw bin]# # 重载 systemd 配置 [root@yfw bin]# sudo systemctl daemon-reload [root@yfw bin]# [root@yfw bin]# # 设置开机自启 [root@yfw bin]# sudo systemctl enable openfire [root@yfw bin]# [root@yfw bin]# # 启动服务(后台运行) [root@yfw bin]# sudo systemctl start openfire [root@yfw bin]# [root@yfw bin]# # 查看状态 [root@yfw bin]# sudo systemctl status openfire ● openfire.service - OpenFire XMPP Server Loaded: loaded (/etc/systemd/system/openfire.service; enabled; vendor preset: disabled) Active: active (running) since Sat 2025-11-15 19:21:43 CST; 28ms ago Docs: https://www.igniterealtime.org/projects/openfire/ Main PID: 1272585 (java) Tasks: 10 (limit: 23712) Memory: 8.1M CGroup: /system.slice/openfire.service └─1272585 /usr/lib/jvm/java-17-openjdk/bin/java -DopenfireHome=/opt/openfire -Dopenfire.lib.di> Nov 15 19:21:43 yfw.szrengjing.com systemd[1]: Started OpenFire XMPP Server. [root@yfw bin]# # 实时查看日志 [root@yfw bin]# sudo journalctl -u openfire.service -f -- Logs begin at Fri 2025-11-14 20:42:48 CST. -- Nov 15 19:21:32 yfw.szrengjing.com systemd[1]: openfire.service: Failed with result 'exit-code'. Nov 15 19:21:43 yfw.szrengjing.com systemd[1]: openfire.service: Service RestartSec=10s expired, scheduling restart. Nov 15 19:21:43 yfw.szrengjing.com systemd[1]: openfire.service: Scheduled restart job, restart counter is at 69. Nov 15 19:21:43 yfw.szrengjing.com systemd[1]: Stopped OpenFire XMPP Server. Nov 15 19:21:43 yfw.szrengjing.com systemd[1]: Started OpenFire XMPP Server. Nov 15 19:21:43 yfw.szrengjing.com java[1272585]: 19:21:43.780 [main] ERROR org.jivesoftware.util.JiveGlobals - Error - the user running this application can not read and write to the specified home directory (/opt/openfire). Please grant the executing user read and write permissions. Nov 15 19:21:43 yfw.szrengjing.com java[1272585]: Critical Error! The home directory has not been configured, Nov 15 19:21:43 yfw.szrengjing.com java[1272585]: which will prevent the application from working correctly. Nov 15 19:21:43 yfw.szrengjing.com java[1272585]: Openfire 5.0.2 [Nov 15, 2025, 7:21:43 PM] Nov 15 19:21:45 yfw.szrengjing.com java[1272585]: Admin console listening at http://ecs-124-71-230-244.compute.hwclouds-dns.com:9090 ^C [root@yfw bin]# ps aux | grep openfire openfire 1272585 12.7 5.0 3639436 191888 ? Ssl 19:21 0:05 /usr/lib/jvm/java-17-openjdk/bin/java -DopenfireHome=/opt/openfire -Dopenfire.lib.dir=/opt/openfire/lib -cp /opt/openfire/lib/* org.jivesoftware.openfire.starter.ServerStarter root 1272797 0.0 0.0 12136 1136 pts/0 S+ 19:22 0:00 grep --color=auto openfire [root@yfw bin]# sudo systemctl status openfire ● openfire.service - OpenFire XMPP Server Loaded: loaded (/etc/systemd/system/openfire.service; enabled; vendor preset: disabled) Active: active (running) since Sat 2025-11-15 19:21:43 CST; 1min 29s ago Docs: https://www.igniterealtime.org/projects/openfire/ Main PID: 1272585 (java) Tasks: 35 (limit: 23712) Memory: 161.2M CGroup: /system.slice/openfire.service └─1272585 /usr/lib/jvm/java-17-openjdk/bin/java -DopenfireHome=/opt/openfire -Dopenfire.lib.di> Nov 15 19:21:43 yfw.szrengjing.com systemd[1]: Started OpenFire XMPP Server. Nov 15 19:21:43 yfw.szrengjing.com java[1272585]: 19:21:43.780 [main] ERROR org.jivesoftware.util.JiveGlo> Nov 15 19:21:43 yfw.szrengjing.com java[1272585]: Critical Error! The home directory has not been configu> Nov 15 19:21:43 yfw.szrengjing.com java[1272585]: which will prevent the application from working correct> Nov 15 19:21:43 yfw.szrengjing.com java[1272585]: Openfire 5.0.2 [Nov 15, 2025, 7:21:43 PM] Nov 15 19:21:45 yfw.szrengjing.com java[1272585]: Admin console listening at http://ecs-124-71-230-244.co> [root@yfw bin]# ls -la /opt/openfire/ total 504 drwxr-xr-x 11 root root 4096 Nov 15 18:34 . drwxr-xr-x. 7 root root 4096 Nov 15 18:30 .. drwxr-xr-x 3 root root 4096 Sep 16 00:48 bin -rwxr-xr-x 1 root root 439708 Feb 1 1980 changelog.html drwxr-xr-x 2 root root 4096 Nov 15 19:16 conf drwxr-xr-x 4 root root 4096 Sep 16 00:48 dist drwxr-xr-x 5 root root 4096 Sep 16 00:48 documentation drwxr-xr-x 2 root root 4096 Sep 16 00:48 .install4j drwxr-xr-x 2 root root 12288 Sep 16 00:48 lib -rwxr-xr-x 1 root root 10837 Feb 1 1980 LICENSE.html drwxr-xr-x 2 root root 4096 Nov 15 18:34 logs drwxr-xr-x 9 root root 4096 Nov 15 18:59 plugins -rwxr-xr-x 1 root root 5350 Feb 1 1980 README.html drwxr-xr-x 6 root root 4096 Sep 16 00:48 resources [root@yfw bin]# sudo chown -R openfire:openfire /opt/openfire [root@yfw bin]# sudo chmod -R 755 /opt/openfire [root@yfw bin]# sudo chmod -R 775 /opt/openfire/logs /opt/openfire/conf /opt/openfire/plugins /opt/openfire/embedded-db chmod: cannot access '/opt/openfire/embedded-db': No such file or directory [root@yfw bin]# ls -la /opt/openfire/ total 504 drwxr-xr-x 11 openfire openfire 4096 Nov 15 18:34 . drwxr-xr-x. 7 root root 4096 Nov 15 18:30 .. drwxr-xr-x 3 openfire openfire 4096 Sep 16 00:48 bin -rwxr-xr-x 1 openfire openfire 439708 Feb 1 1980 changelog.html drwxrwxr-x 2 openfire openfire 4096 Nov 15 19:16 conf drwxr-xr-x 4 openfire openfire 4096 Sep 16 00:48 dist drwxr-xr-x 5 openfire openfire 4096 Sep 16 00:48 documentation drwxr-xr-x 2 openfire openfire 4096 Sep 16 00:48 .install4j drwxr-xr-x 2 openfire openfire 12288 Sep 16 00:48 lib -rwxr-xr-x 1 openfire openfire 10837 Feb 1 1980 LICENSE.html drwxrwxr-x 2 openfire openfire 4096 Nov 15 18:34 logs drwxrwxr-x 9 openfire openfire 4096 Nov 15 18:59 plugins -rwxr-xr-x 1 openfire openfire 5350 Feb 1 1980 README.html drwxr-xr-x 6 openfire openfire 4096 Sep 16 00:48 resources [root@yfw bin]# sudo systemctl daemon-reload [root@yfw bin]# sudo systemctl restart openfire [root@yfw bin]# sudo journalctl -u openfire.service -f --since "1 minute ago" -- Logs begin at Fri 2025-11-14 20:42:48 CST. -- Nov 15 19:25:46 yfw.szrengjing.com systemd[1]: Stopping OpenFire XMPP Server... Nov 15 19:25:46 yfw.szrengjing.com java[1272585]: Halting server... Nov 15 19:25:46 yfw.szrengjing.com java[1272585]: Server halted Nov 15 19:25:46 yfw.szrengjing.com systemd[1]: openfire.service: Main process exited, code=exited, status=143/n/a Nov 15 19:25:46 yfw.szrengjing.com systemd[1]: openfire.service: Failed with result 'exit-code'. Nov 15 19:25:46 yfw.szrengjing.com systemd[1]: Stopped OpenFire XMPP Server. Nov 15 19:25:46 yfw.szrengjing.com systemd[1]: Started OpenFire XMPP Server. Nov 15 19:25:48 yfw.szrengjing.com java[1273581]: Openfire 5.0.2 [2025年11月15日 下午7:25:48] Nov 15 19:25:50 yfw.szrengjing.com java[1273581]: 管理控制台正在侦听: Nov 15 19:25:50 yfw.szrengjing.com java[1273581]: http://0.0.0.0:9090 Nov 15 19:25:50 yfw.szrengjing.com java[1273581]: https://0.0.0.0:9091 Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: Nov 15, 2025 7:25:51 PM com.sun.jersey.api.core.PackagesResourceConfig init Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: INFO: Scanning for root resource and provider classes in the packages: Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: org.jivesoftware.openfire.plugin Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: 19:25:51.332 [PluginMonitorExec-5] ERROR org.jivesoftware.openfire.container.PluginServlet - An unexpected problem occurred while attempting to register servlets for plugin 'org.jivesoftware.openfire.plugin.UserServicePlugin@40846186'. Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: java.lang.ExceptionInInitializerError: null Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.lang.Class.forName0(Native Method) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.lang.Class.forName(Class.java:375) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at jdk.proxy5.$Proxy86.<clinit>(Unknown Source) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:1053) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:1039) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at com.sun.jersey.server.impl.application.WebApplicationImpl$26.run(WebApplicationImpl.java:1626) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.security.AccessController.doPrivileged(AccessController.java:318) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at com.sun.jersey.server.impl.application.WebApplicationImpl.createProxy(WebApplicationImpl.java:1623) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at com.sun.jersey.server.impl.application.WebApplicationImpl.<init>(WebApplicationImpl.java:335) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at com.sun.jersey.server.impl.container.WebApplicationProviderImpl.createWebApplication(WebApplicationProviderImpl.java:55) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at com.sun.jersey.spi.container.WebApplicationFactory.createWebApplication(WebApplicationFactory.java:66) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at com.sun.jersey.spi.container.servlet.ServletContainer.create(ServletContainer.java:412) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.create(ServletContainer.java:327) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:603) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:207) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:394) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:577) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at javax.servlet.GenericServlet.init(GenericServlet.java:180) ~[jetty-servlet-api-4.0.6.jar:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at org.jivesoftware.openfire.plugin.JerseyWrapper.init(JerseyWrapper.java:83) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at org.jivesoftware.openfire.container.PluginServlet.registerServlets(PluginServlet.java:193) ~[xmppserver-5.0.2.jar:5.0.2] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:628) ~[xmppserver-5.0.2.jar:5.0.2] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask.lambda$run$3(PluginMonitor.java:354) ~[xmppserver-5.0.2.jar:5.0.2] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.lang.Thread.run(Thread.java:833) [?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:122) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:91) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at javax.ws.rs.core.EntityTag.<clinit>(EntityTag.java:35) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: ... 31 more Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: Caused by: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.lang.Class.forName0(Native Method) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at java.lang.Class.forName(Class.java:375) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:62) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:155) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:105) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:91) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: at javax.ws.rs.core.EntityTag.<clinit>(EntityTag.java:35) ~[?:?] Nov 15 19:25:51 yfw.szrengjing.com java[1273581]: ... 31 more
11-16
[root@yfw ~]# cd /opt/openfire [root@yfw openfire]# sudo systemctl stop openfire [root@yfw openfire]# sleep 3 [root@yfw openfire]# rm -rf /opt/openfire/embedded-db/* [root@yfw openfire]# rm -f /opt/openfire/logs/openfire.pid [root@yfw openfire]# > /opt/openfire/logs/nohup.out [root@yfw openfire]# sudo systemctl stop openfire [root@yfw openfire]# sleep 3 [root@yfw openfire]# rm -rf /opt/openfire/embedded-db/* [root@yfw openfire]# rm -f /opt/openfire/logs/openfire.pid [root@yfw openfire]# > /opt/openfire/logs/nohup.out [root@yfw openfire]# ls /opt/openfire/lib/derby*.jar ls: cannot access '/opt/openfire/lib/derby*.jar': No such file or directory [root@yfw openfire]# cd /tmp [root@yfw tmp]# wget https://repo1.maven.org/maven2/org/apache/derby/derby/10.14.2.0/derby-10.14.2.0.jar --2025-11-15 15:46:50-- https://repo1.maven.org/maven2/org/apache/derby/derby/10.14.2.0/derby-10.14.2.0.jar Resolving repo1.maven.org (repo1.maven.org)... 104.18.19.12, 104.18.18.12, 2606:4700::6812:130c, ... Connecting to repo1.maven.org (repo1.maven.org)|104.18.19.12|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 3232770 (3.1M) [application/java-archive] Saving to: ‘derby-10.14.2.0.jar’ derby-10.14.2.0.jar 100%[======================================>] 3.08M 2.40MB/s in 1.3s 2025-11-15 15:46:53 (2.40 MB/s) - ‘derby-10.14.2.0.jar’ saved [3232770/3232770] [root@yfw tmp]# sudo cp derby-10.14.2.0.jar /opt/openfire/lib/ [root@yfw tmp]# sudo chown openfire:openfire /opt/openfire/lib/derby-10.14.2.0.jar [root@yfw tmp]# sudo su - openfire -s /bin/bash -c ' > cat > /opt/openfire/conf/openfire.xml << EOF > <?xml version="1.0" encoding="UTF-8"?> > <!-- > OpenFire Configuration File > DO NOT EDIT WHILE SERVER IS RUNNING > --> > <jive> > <adminConsole> > <port>9090</port> > <securePort>9091</securePort> > <secure>false</secure> > <!-- 关键:防止 NPE --> > <encryption>none</encryption> > </adminConsole> > > <!-- 设置语言 --> > <locale>en_US</locale> > > <!-- 内嵌 Derby 数据库 --> > <database> > <defaultProvider> > <driver>org.apache.derby.jdbc.EmbeddedDriver</driver> > <serverURL>jdbc:derby:/opt/openfire/embedded-db;create=true</serverURL> > <username></username> > <password></password> > </defaultProvider> > </database> > > <!-- 强制进入安装向导 --> > <setup>true</setup> > </jive> > EOF > ' ✅ Environment loaded for openfire PATH = /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/lib/jvm/java-11-openjdk/bin:/opt/maven/bin:/usr/local/ffmpeg/bin:/opt/spark/bin JAVA_HOME = /usr/lib/jvm/java-11-openjdk [root@yfw tmp]# sudo chown openfire:openfire /opt/openfire/conf/openfire.xml [root@yfw tmp]# sudo chmod 644 /opt/openfire/conf/openfire.xml [root@yfw tmp]# sudo systemctl start openfire [root@yfw tmp]# tail -f /opt/openfire/logs/nohup.out 15:47:39.948 [main] ERROR org.jivesoftware.util.JiveGlobals - Unable to load default security properties from: /opt/openfire/conf/openfire.xml java.io.IOException: XML properties file must be writable: security.xml at org.jivesoftware.util.XMLProperties.<init>(XMLProperties.java:156) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.loadSecurityProperties(JiveGlobals.java:1312) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.isXMLPropertyEncrypted(JiveGlobals.java:1010) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.XMLProperties.getProperty(XMLProperties.java:212) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.XMLProperties.getProperty(XMLProperties.java:171) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:310) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:367) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] 15:47:40.369 [main] ERROR org.jivesoftware.database.DbConnectionManager - Failed to create database '/opt/openfire/embedded-db', see the next exception for details. java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.jdbc.InternalDriver$1.run(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.jdbc.InternalDriver$1.run(Unknown Source) ~[derby-10.14.2.0.jar:?] at java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?] at org.apache.derby.jdbc.InternalDriver.getNewEmbedConnection(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source) ~[derby-10.14.2.0.jar:?] at java.sql.DriverManager.getConnection(DriverManager.java:681) ~[java.sql:?] at java.sql.DriverManager.getConnection(DriverManager.java:252) ~[java.sql:?] at org.apache.commons.dbcp2.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:119) ~[commons-dbcp2-2.9.0.jar:2.9.0] at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:374) ~[commons-dbcp2-2.9.0.jar:2.9.0] at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:918) ~[commons-pool2-2.9.0.jar:2.9.0] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:431) ~[commons-pool2-2.9.0.jar:2.9.0] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:356) ~[commons-pool2-2.9.0.jar:2.9.0] at org.apache.commons.dbcp2.PoolingDataSource.getConnection(PoolingDataSource.java:141) ~[commons-dbcp2-2.9.0.jar:2.9.0] at org.jivesoftware.database.DefaultConnectionProvider.getConnection(DefaultConnectionProvider.java:88) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectionManager.java:656) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.database.DbConnectionManager.ensureConnectionProvider(DbConnectionManager.java:109) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:162) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:472) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:108) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:84) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:547) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.cache.CacheFactory.<clinit>(CacheFactory.java:102) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:381) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Caused by: org.apache.derby.iapi.error.StandardException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(Unknown Source) ~[derby-10.14.2.0.jar:?] ... 41 more Caused by: org.apache.derby.iapi.error.StandardException: Directory /opt/openfire/embedded-db already exists. at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.services.monitor.StorageFactoryService$10.run(Unknown Source) ~[derby-10.14.2.0.jar:?] at java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?] at org.apache.derby.impl.services.monitor.StorageFactoryService.createServiceRoot(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.services.monitor.FileMonitor.createPersistentService(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Unknown Source) ~[derby-10.14.2.0.jar:?] at org.apache.derby.impl.jdbc.EmbedConnection$5.run(Unknown Source) ~[derby-10.14.2.0.jar:?] at java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?] at org.apache.derby.impl.jdbc.EmbedConnection.createPersistentService(Unknown Source) ~[derby-10.14.2.0.jar:?] ... 38 more 15:47:42.927 [main] ERROR org.jivesoftware.util.JiveProperties - ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:472) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:108) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:84) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:547) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.util.cache.CacheFactory.<clinit>(CacheFactory.java:102) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:381) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:658) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Database setup or configuration error: Please verify your database settings and check the logs/openfire.log file for detailed error messages. 15:47:45.576 [main] ERROR org.jivesoftware.openfire.XMPPServer - Database could not be accessed java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] java.lang.IllegalArgumentException: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1020) at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) at java.base/java.lang.Class.newInstance(Class.java:645) at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) ... 11 more 15:47:45.576 [main] ERROR org.jivesoftware.openfire.XMPPServer - java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. java.lang.IllegalArgumentException: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1020) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:666) [xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:221) [xmppserver-5.0.2.jar:5.0.2] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) [?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) [?:?] at java.lang.Class.newInstance(Class.java:645) [?:?] at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92) [startup.jar:5.0.2] at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56) [startup.jar:5.0.2] Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 attempts. The exception from the last attempt is as follows: java.sql.SQLException: Failed to create database '/opt/openfire/embedded-db', see the next exception for details. at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:204) ~[xmppserver-5.0.2.jar:5.0.2] at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:1010) ~[xmppserver-5.0.2.jar:5.0.2] ... 11 more 启动服务器时出错。有关详细信息,请查看日志文件。
11-16
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值