Problem with "login" http://dev.libresource.org/home/development/bug/e36e795fc0a8001e00dd25395065d6fb Comment of : Problem with "login" http://dev.libresource.org/home/development/bug/e36e795fc0a8001e00dd25395065d6fb/fdb22ae5c0a8001e010b0594802134d4 Sebastien Jourdain 2007-02-26T11:56:56+01:00
Class.forName("org.postgresql.Driver");
Connection con = DriverManager.getConnection( "jdbc:postgresql://localhost:5432/libresource", "demo","");

Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT * FROM nodes_"); while (rs.next()) { System.out.println(rs.getString(0)); }

]]>
Comment of : Problem with "login" http://dev.libresource.org/home/development/bug/e36e795fc0a8001e00dd25395065d6fb/fd9e642bc0a8001e007da4fa3b0f66dc Sebastien Jourdain 2007-02-26T11:35:20+01:00 I mean, are you sure that a user demo with no password can access to the libresource database ?

You can give a try to run java code with JDBC and the postgresql driver available in JONAS_ROOT/lib/ext/xxx.jar

]]> Comment of : Problem with http://dev.libresource.org/home/development/bug/e36e795fc0a8001e00dd25395065d6fb/fd7e5020c0a8001e00bdb47ff20db641 Momo 2007-02-26T11:00:18+01:00 Another theme is: when i open de page http://localhost:9000 and i clicking on the "login" it leaves an error to me:

HTTP Status 500

----

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException org.esupportail.cas.server.handlers.database.LSDatabaseHandler.authenticate(Unknown Source) org.esupportail.cas.server.GenericHandler.authenticate(Unknown Source) edu.yale.its.tp.cas.servlet.Login.doGet(Unknown Source) edu.yale.its.tp.cas.servlet.Login.doPost(Unknown Source) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.


This is normal? if i want to login on the system i click on that link, is it true? I need help!]]> Comment of : Problem with "login" http://dev.libresource.org/home/development/bug/e36e795fc0a8001e00dd25395065d6fb/e9d7155ac0a8001e00539c90ecc6ec8b Sebastien Jourdain 2007-02-22T15:24:51+01:00 demo with no password which should have access to the libresource database. This is required by the CAS server. The installer don't patch dynamically the CAS package.

This is written and specified on the download page.

But you can fix it by hand if you like to play with war files… ;-)

To do so :

  1. unzip the cas war file.
  2. patch the text configuration file that specify the user and the password for the database connection. (search for jdbc:postgresql://localhost:5432/libresource)
  3. re-zip the file.
  4. rename it as a war.
  5. run config.bat
]]>
Comment of : Problem with "login" http://dev.libresource.org/home/development/bug/e36e795fc0a8001e00dd25395065d6fb/e9c27135c0a8001e001135ed444b3c6f Momo 2007-02-22T15:02:18+01:00 Comment of : Problem with "login" http://dev.libresource.org/home/development/bug/e36e795fc0a8001e00dd25395065d6fb/e3d208aec0a8001e012b01dc1868adec Sebastien Jourdain 2007-02-21T11:21:37+01:00 To do so, follow the coming steps:
  1. Edit the libresource configuration file. (should be something like ls-configxxxx.properties)
  2. Fix the file path in that file. use / instead of back-slash or put 2 back-slash.
  3. Run the config.bat script.
  4. start your Libresource with the start.bat script.
]]>
Comment of : Problem with "login" http://dev.libresource.org/home/development/bug/e36e795fc0a8001e00dd25395065d6fb/e3c9b9cac0a8001e0099c355e3820810 Sebastien Jourdain 2007-02-21T11:12:32+01:00