-
-
Notifications
You must be signed in to change notification settings - Fork 45

Description
@Frederic-P commented on Mar 22, 2018, 1:01 PM UTC:
What is the problem
In the browser when pointing to the url: http://localhost:8080/exist/apps/dashboard/
I get:
This site can’t be reached
localhost refused to connect.
Search Google for localhost 8080 exist apps dashboard
ERR_CONNECTION_REFUSED
What did you expect
I expected the dashboard to be there as it was before server restart.
Describe how to reproduce or add a test
My goal is to add the JDBC-MYSQL connector. For this I have only found documentation dating back from 2007: https://exist-db.org/exist/apps/wiki/HowTo/SQLDatabases/
- Open conf.xml
- append
<module class="org.exist.xquery.modules.sql.SQLModule" uri="[http://exist-db.org/xquery/sql](http://exist-db.org/xquery/sql)" />
to this file.
- The documentation does not provide information where this code needs to be pasted... Since it is a module I placed the code between the
<modules> </modules>
tag which start at line 418. - Save conf.xml & close conf.xml
- Stop server and quit eXist-db
- Restart service
- Launch eXist-db
6 go to http://localhost:8080/exist/apps/dashboard/
Context information
Please always add the following information
- eXist-db version: 4.0.0.
- Java version: Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
- Windows 10 Enterprise
- 64 bit
- Yes: added
<module class="org.exist.xquery.modules.sql.SQLModule" uri="[http://exist-db.org/xquery/sql](http://exist-db.org/xquery/sql)" />
in between the<modules></modules>
tags.
Log information
The eXist-db Log has the following error message:
2018-03-22 13:43:12,959 [main] INFO (Configuration.java []:175) - Reading configuration from file .\conf.xml
2018-03-22 13:43:13,006 [main] ERROR (JettyStart.java [run]:177) - configuration error: Required attribute id is missing for module
org.exist.util.DatabaseConfigurationException: Required attribute id is missing for module
at org.exist.util.Configuration.configureIndexer(Configuration.java:1429) ~[exist.jar:4.0.0]
at org.exist.util.Configuration.(Configuration.java:199) ~[exist.jar:4.0.0]
at org.exist.util.SingleInstanceConfiguration.(SingleInstanceConfiguration.java:57) ~[exist.jar:4.0.0]
at org.exist.util.SingleInstanceConfiguration.(SingleInstanceConfiguration.java:49) ~[exist.jar:4.0.0]
at org.exist.jetty.JettyStart.run(JettyStart.java:162) [exist-optional.jar:4.0.0]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_161]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_161]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_161]
at org.exist.yajsw.Main.start(Main.java:47) [classes/:?]
at org.exist.yajsw.Main.main(Main.java:65) [classes/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_161]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_161]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_161]
at org.rzo.yajsw.app.WrapperJVMMain.executeMain(WrapperJVMMain.java:60) [wrapperApp.jar:?]
at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:43) [wrapperApp.jar:?]
Note
- Removing the added code and restarting the server allows eXist to work again.
- Is there an up to date reference to connect eXist to MYSQL?
This issue was moved by @dizzzz from eXist-db/exist/issues/1778.