We are moving to uPortal 2.4.2 from 2.3.2 and I'm having some trouble with relative paths and HC 1.4. If I define the runtime dir as /usr/share/uportal Hypercontent properly installs the project-definitions and sample project in /usr/share/uportal/hypercontent-repositories, however when I log in using the admin account it says I have no projects configured (this setup worked fine with 2.3.2 and all our project paths are relative to /usr/share/uportal). To fix this I have to define the repository path absolutely in Projects.xml, and to access any of the site projects I have to redefine their repository path to be absolute locations. Do yo have any suggestions about how to restore this functionality? Thanks,
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Mike,
To be honest, I don't recommend using relative paths. I ship the distribution that way to make it easier to get it up and running with minimal configuration, but we always use absolute paths in production, and the first thing I usually tell people is "make those paths absolute"! Otherwise you're dependent on the JVM's notion of the current directory, which is configured in the "user.dir" system property - if you want to use relative paths, you will have to make sure this is set how you want it.
Alex
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We are moving to uPortal 2.4.2 from 2.3.2 and I'm having some trouble with relative paths and HC 1.4. If I define the runtime dir as /usr/share/uportal Hypercontent properly installs the project-definitions and sample project in /usr/share/uportal/hypercontent-repositories, however when I log in using the admin account it says I have no projects configured (this setup worked fine with 2.3.2 and all our project paths are relative to /usr/share/uportal). To fix this I have to define the repository path absolutely in Projects.xml, and to access any of the site projects I have to redefine their repository path to be absolute locations. Do yo have any suggestions about how to restore this functionality? Thanks,
Mike
Mike,
To be honest, I don't recommend using relative paths. I ship the distribution that way to make it easier to get it up and running with minimal configuration, but we always use absolute paths in production, and the first thing I usually tell people is "make those paths absolute"! Otherwise you're dependent on the JVM's notion of the current directory, which is configured in the "user.dir" system property - if you want to use relative paths, you will have to make sure this is set how you want it.
Alex
Thanks Alex, we'll just have to bite the bullet this time and make the effort to define the paths. Thanks