Menu

A fresh install: cannot login to web server

Help
Crooter
2009-05-31
2013-04-29
  • Crooter

    Crooter - 2009-05-31

    Hello all,

    I've just installed on my virtual server xProcess. My problem is that I cannot login to the xProcess web server.
    According to the manual, I've created new persons via RCP, new users for svn. I've checked that the new users have access to svn via web browser.

    The error message I see on login: "Problem logging in: user1 can not be found in the Data Source."

    I've checked the repos, there is the user user1.

    What I noticed is that on then first checkout there was an exception:

    WARNING: Load called for id PS0000000000000001 but file indexer returns null
    31.05.2009 20:36:38 com.ivis.xprocess.web.framework.MasterDataSource init
    SEVERE:
    >>>>>>>>>>>>> MasterDataSource initialization failed. Destroying.
    Exception(s):
    java.lang.NullPointerException at  com.ivis.xprocess.framework.vcs.impl.svn.SubversionProvider.load(Unknown Source)

    After restart there were no exceptions, but I couldn't login. Can anybody help?

    Versions:
    RCP: 3.1.1
    Web: 3.1.0
    OS: WXP
    Apache: 2.2.9

    Regards,
    C

     
    • Tim Shelley

      Tim Shelley - 2009-05-31

      In your web.properties file does the repository.url point to the repository and the datasource name? e.g. if my repository was http://www.someurl.com/svn and my datasource was called test it would look like this:

      repository.url=http://www.someurl.com/svn/test

      If you didn't include the datasource name as part of the repository url I would suggest:

      - stopping the web server (if running)
      - delete the repos directory that should have appeared in the place you installed the xProcess Web Server
      - restart the web server

      Regards,

      Tim.

       
      • Crooter

        Crooter - 2009-05-31

        Hi Tim,

        Thanks for prompt reply!

        Yes, it points. The 'repos' folder of the server installation contains correct working copy from the repository.

        However, I remember that first time I started the server with clean target folder in the repository (no projects were created in RCP), after the server startup I saw the 'open' folder in the 'repos'. After I created a project with some resources (users and tasks), there appeared 'My Plans' subfolder in the repository and then I cleaned up the 'repos' folder of the server. Now the 'open' folder is only in 'My_plans' subfolder, not in the 'repos' itself. Can it be a problem?

        Regards,
        C

         
    • Crooter

      Crooter - 2009-05-31

      By the way, is it okay that I use Apache 2.2.9?

       
    • Crooter

      Crooter - 2009-05-31

      One more thing: if I specify incorrect password (not the one I specified for svn account), I see 'Username and/or password not recognized.'

       
    • Crooter

      Crooter - 2009-05-31

      when I tried to reconfigure repository to point to My_Plans instead of upper folder (xprocess), on login I'm getting the error: "The account name user1 is not unique in the datasource."

      It is not clear to me what the repository folder in the web server should be.

      1. Let's assume that I've created xprocess folder in http://localhost/svn/repository.

      2. When I configure my plans as a manager in RCP, I specify http://localhost/svn/repository/xprocess as xProcess repository URL. Then RCP creates there My_Plans folder.

      3. Now when I'm configuring the web server properties, what should I specify as a repository: http://localhost/svn/repository/xprocess or http://localhost/svn/repository/xprocess/My_Plans?

      I've tried both, but no luck. In both cases on first startup I received exceptions on initialization, which did not reproduce on the next run.

      Is there a step-by-step how-to for the web configuration? Those I read were split in three parts (RCP, web and workflow servers) and did not contain detailed instructions on the following step (http://www.openxprocess.com/help/admin/web/web_server.html):
      "3. Create users and projects using the xProcess Rich Client. Each user who will log on to the web client must have a Person (with a unique and matching Account Name) created in the xProcess data source. This is a task for Project Managers or Process Engineers, using a laptop/desktop install of the xProcess Rich Client to configure the persons, processes and projects."

      The problem is that this description does not cover the subversion configuration in RCP.

       
    • Rajbir Saini

      Rajbir Saini - 2009-06-01

      I have exactly the same problem. In the console log (catalina.out) I see the NPE. In my case, I am using Linux RCP 3.2 beta and web server is 3.1. Could this be the reason?

       
    • Tim Shelley

      Tim Shelley - 2009-06-01

      Hi,

      Usually you have a datasource already created before you launch the xProces Web Server for the first time. I would still recommend:

      - stopping the xProcess Web Server
      - deleting the repos directory under the Web Server
      - start the xProcess Web Server

      This should check-out a fresh version of your datasource. If you still are having issues can you send us your web.properties files and the catalina.out log file (should be in one of the log directories under the xProcess Web Server) to support@openxprocess.com

      Regards,

      Tim.

       
    • Tim Shelley

      Tim Shelley - 2009-06-01

      Hi Rajbir,

      The Linux RCP v3.2 and Web Server 3.1 are compatible. Please see my previous post to see if that helps you.

      Regards,

      Tim.

       
    • Tim Shelley

      Tim Shelley - 2009-06-01

      Hi,

      http://localhost/svn/repository/xprocess/My_Plans seems to be the correct repository.url to use in the web.properties.

      As for the subversion configuration in the RCP you need to create a Person per SVN user, i.e.

      firstname:Fred
      lastname:Bloggs
      account name:user1

      The account name is the svn username and must be unique, e.g. not having another Person in the RCP using the same account name.

      Regards,

      Tim.

       
      • Crooter

        Crooter - 2009-06-01

        Thanks, Tim! It works now!

        My mistake was that I specified as a datasource the xprocess folder, while persons were created in My Plans.

        So,
        1. I removed all settings, cleaned up the repository,
        2. in RCP as a repository path I set http://localhost/svn
        3. datasource name set to xprocess (instead of My Plans).
        4. In the server configuration I set http://localhost/svn/xprocess as repository.url in web.properties and as datasource url in users.xml.

        On startup there was no NPE and I could login as uroot1/uroot1 (the user was previously created for SVN access with Apache's htpasswd utility).

        Conclusion: there is definitely lack of necessary details in the documentation. Or it might be a naming bug: in RCP data storage parameters have 'xprocess repository' field and 'datastorage'. It is then logically to specify the same address for repository in the web configuration as in the RCP, not the one with added datastorage name as by default.

        As one can see, the users' mistake is more or less common, so the documentation/GUI should be updated.

        Regards,
        C

         
    • Tim Shelley

      Tim Shelley - 2009-06-01

      Hi,

      I agree, the documentation needs to be expanded, I will create a change request to update the documentation.

      Regards,

      Tim.

       
    • Rajbir Saini

      Rajbir Saini - 2009-06-04

      Thanks Tim for your kind help. It is working fine now.

       

Log in to post a comment.