Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Why do you have <code>hibernate.connection.driver_class=org.postgresql.drivers</code> in the properties file? Shouldn't it be <code>org.postgresql.Driver</code> instead?</p> <p>Edit:</p> <p>Ah! Looks like Jadasite uses the properties file to load the driver class.</p> <p>From <code>com/jada/jpa/connection/JpaConnection.java</code> class:</p> <pre><code>67 68 public void init(String driver, String url, String user, String password) throws Exception { 69 this.driver = driver; 70 this.url = url; 71 this.user = user; 72 this.password = password; 73 74 HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;(); 75 map.put(Environment.DRIVER, driver); 76 map.put(Environment.URL, url); 77 map.put(Environment.USER, user); 78 map.put(Environment.PASS, password); 79 factory = Persistence.createEntityManagerFactory("jadaSite", map); 80 } </code></pre> <p>Which is read as (in <code>com/jada/system/Initializer.java</code>):</p> <pre><code> 111 if (requireInstall) { 112 if (!installCompleted) { 113 log("Installation has not been done. Skipping custom initialization."); 114 log("Please proceed to installation and remmember to restart before continue."); 115 log("Awaiting installation...."); 116 return; 117 } 118 try { 119 Properties installProperties = installer.getConfigProperties(); </code></pre> <p>Which comes from (in <code>com/jada/install/process/Installer.java</code>):</p> <pre><code> 345 public Properties getConfigProperties() throws IOException { 346 String filename = servletLocation + Constants.CONFIG_PROPERTIES_FILENAME; 347 File file = new File(filename); 348 FileInputStream input = new FileInputStream(file); 349 Properties properties = new Properties(); 350 properties.load(input); 351 return properties; 352 } </code></pre> <p>Which is read from the file (in <code>com/jada/util/Constants.java</code>):</p> <pre><code> 275 public static final String CONFIG_PROPERTIES_FILENAME = "WEB-INF/jada.properties"; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload