Resource Menu

Id : 101
Type : IMPROVEMENT
Reporter : Momo
Assignee :
Sebastien Jourdain
Priority : MAJOR
Creation Date : 21 Feb 07 09:32
Last Update Date : 28 Nov 07 04:00
Resolution : Cannot reproduce
Problem with "login"
Hi,

I've installed libresource and all is correct. But when i have to create the super user on the page Http://localhost:9000, there is an error: "C:LibreSource-Communityworksvnconfpasswd (The system cannot find the specified route)"

Can help me please? It's very important.

Thank you


Upload a new file :   
7 comment(s)
comment by Sebastien Jourdain - 26 Feb 07 11:56 AM You can try something like that with the postgres driver in you classpath.

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 by Sebastien Jourdain - 26 Feb 07 11:35 AM Are you sure that you postgres is rightly configured ?

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 by Momo - 26 Feb 07 11:00 AM Hi, I even have problems with the login. When i create a user and i try login after the system see me the error: "login failed!" I create a user named "Demo" on the postgreSQL database but i don't solve the problem.

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 by Sebastien Jourdain - 22 Feb 07 03:24 PM When you use the libresource installer, you need to have a postgres user named 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 by Momo - 22 Feb 07 03:02 PM Hi, i change the path on the file configxxx.properties, because the slash was inverted. But now when i create, correctly, the user and i try to login, the explores see me the next mesage: "Login failed ! You need to allow cookies for the authentication. " But all the cookies are allowed...some idea?
comment by Sebastien Jourdain - 21 Feb 07 11:21 AM If the problem come from the first back-slash missing, then you will need to reconfigure the LibreSoure package.

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 by Sebastien Jourdain - 21 Feb 07 11:12 AM Does the file path exist ?
Post a comment :


Wiki Syntax

Simple text filters

MnemonicRenderingComment
1 Title a style 1 heading (major heading)
1.1 Title a style 1.1 heading (minor heading)
- text a list item (with -), several lines create a single list
* text a list item (with *)
1. text an enumerated list
__bold__boldsimple bold text
~~italics~~italicssimple italic text
--strike--strikestrike through text
(empty line) produces a new paragraph
\\
 creates a line break, please use sparingly!
[/documentation] or [../documentation] or [/documentation|Doc]Like a standard linkinternal link to another document
http://www.libresource.org/http://www.libresource.org/creates a link to an external resource, special characters that come after the URL and are not part of it must be separated with a space.
\XXescape special character X (i.e. {)
---- creates a horizontal rule

Macros List

Macro syntaxe: {macroName:key1=param1|key2=param2|...}

MacroDescriptionParameters
apiGenerates links to Java or Ruby API documentation.1: class name, e.g. java.lang.Object or java.lang.Object@Java131
2: mode, e.g. Java12, Ruby, defaults to Java (optional)
asinGenerates links to DVD/CD dealers or comparison services. Configuration is read from conf/asinservices.txt1: asin number
blinkBlink a text.the text
bookmarksDisplay the user bookmarks.none
boxCreate a box in order to change the basic disposition.1. the box title (optional)
2. the floating behaviour (left or right) (optional)
3. the height of the box (px,%) (optional)
4. the width of the box (px,%) (optional)
childrenDisplay the current children list.1. uri= ...(optional) where you list the resources, the default uri is the current
2. groupby=… (optional) to group resources.The following value are available : type or owner or uri or creation or update or name
3. sort=… (optional) to sort resources. The values available are : type or owner or uri or creation or update or name
4. creation=...(optional) allows you to filter on the creation date. The values available are: Date (dd/MM/yyyy) or '+'/'-'/'!' followed by a Date(dd/MM/yyyy): allows to keep superior/inferior/exclude date
5. update=...(optional) allows you to filter on the modification date. The values available are: Date (dd/MM/yyyy) or '+'/'-'/'!' followed by a Date(dd/MM/yyyy): allows to keep superior/inferior/exclude date
6. type=...(optional) :allows you to filter resources with its type. The values available are : Project, Template, Timeline, Page, Repository, File, Forum, Thread, Message, Group, Synchronizer, BugTracker, Issue, Site, Survey, Form, DropBox
7. owner=...(optional):allows you to show only resources belonging to one user or many users.
8. limit=...(optional): allows you to limit the displayed resources
9. depth=...(optional): allows you to fix the depth of listed ressources
10. view=...(optional): to fix the view of displayed resources. The view available are : flat (default view) or count(to display the number of listed ressources) or tree(display resource following tree viewer)
codeDisplays a chunk of code with syntax highlighting, for example Java, XML and SQL. The none type will do nothing and is useful for unknown code types.1: syntax highlighter to use, defaults to java (optional)
helloSay hello example macro.1: name to print
htmlBy pass wiki engine to allow HTML code in contentthe html block
api-docsDisplays a list of known online API documentations and mappings.none
file-pathDisplays a file system path. The file path should use slashes. Defaults to windows.1: file path
imageDisplay an image.1. the image URI
2. align (right ,left or center) (optional)
3. width (optional)
4. height (optional)
inter-wikiDisplays a list of known InterWiki mappings.none
isbnGenerates links to book dealers or comparison services. Configuration is read from conf/bookservices.txt.1: isbn number
linkGenerate a weblink.unexplained, lazy programmer, probably
list-of-macrosDisplays a list of available macros.unexplained, lazy programmer, probably
loginBoxDisplay a login box.none
mailtoDisplays an email address.1: mail address
menuInclude the menu of the specified URI1. The uri for the menu to be include
newsDisplay a message thread as news.1. the thread URI
2. Max (optional)
preAllow rigid text style. (Keep text formating)none
printFieldDisplay a node forms fields values.1. (uri=) The uri on which you want to get the form value (Optional, by default=.)
2. (print=) Print or not the field label and the field value (Optional, by default=label, value, edit)
3. (field=) Print or not the specified field (Optional, by default will print all)
quoteDisplay quotations.1: source (optional)
2: displayed description, default is Source (optional)
quoteMessageQuote a message in another message by referencing only the message URI.1. The message URI to quote.
resourceInclude the view of a LibreSource resource.1. the uri of the resource (mandatory)
2. the view (optional)
3. the action (optional)
4. noaction (optional)
rfcGenerates links to RFCs.unexplained, lazy programmer, probably
rssInclude an RSS feed.1. the url of the rss feed (mandatory)
searchBoxDisplay a search box.1. the URI pattern
subProjectsDisplay the current subProjects list.none
summaryCreate the summary of a wiki page.1. the page URI (optional)
surveyDisplay results of a survey.the survey URI
tableDisplays a table.none
tableFormDisplay a table listing form results.1. (uri=) The uri on which you want to get the form value (Optional, by default use the local path)
2. (print=) Print additinal features such as a link to the data (goLink) or a link to get a CSV file (csvExport) (Optional, by default print all)
3. (field=) The list of field to show (Optional by default all)
timelineDisplay the first items of a timeline.1. the timeline URI
2. Max items (optional)
userGenerate a link to the current user page, according 'action'.1. the action (optional)
2. the link label (optional)
workspacesDisplay the user workspaces.none
xrefGenerates links to Java Xref source code.1: class name, e.g. java.lang.Object or java.lang.Object@Nanning
2: line number (optional)

Smiley

:-):-(;-):-P:-D:-[:-/:-*>:o8-):-$:-!:'(:-X =-O