change context for libresource + get back data http://dev.libresource.org/home/community/forum/change_context_for_libresource_get_back_data RE : change context for libresource + get back data http://dev.libresource.org/home/community/forum/change_context_for_libresource_get_back_data/RE_change_context_for_libresource_get_back_data_4 Sebastien Jourdain 2008-12-13T11:24:52+01:00 LibreSource Team]]> RE : change context for libresource + get back data http://dev.libresource.org/home/community/forum/change_context_for_libresource_get_back_data/RE_change_context_for_libresource_get_back_data_3 aceol 2008-12-12T17:21:44+01:00 For who it may help, this is what I'have done: (I consider that mod_jk and mod_writing for apache are installed)
  • configure my workers for mod_jk: in /etc/apache2/workers.properties:
workers.java_home=/usr/lib/jvm/java
ps=/
worker.list=worker1,worker2,worker3,loadbalancer

#tomcat worker.worker1.port=8009 worker.worker1.host=localhost worker.worker1.type=ajp13 worker.worker1.lbfactor=1 #jboss worker.worker2.port=8019 worker.worker2.host=localhost worker.worker2.type=ajp13 worker.worker2.lbfactor=1 #jonas worker.worker3.port=9010 worker.worker3.host=localhost worker.worker3.type=ajp13 worker.worker3.lbfactor=1

  • use mod_jk to redirect jonas root to port 80: in /etc/apache2/conf.d/mod_jk.conf
JkMount / worker3
   JkMount /* worker3
  • rewrite / url to /libresource: in /etc/apache2/conf.d/mod_rewrite.conf
  • configure Jonas: in JONAS/conf/server.xml:
add a connector:
<Connector
    port="9010" minProcessors="5" maxProcessors="75"
    acceptCount="10" debug="20" protocol="AJP/1.3"/>

specify which worker to use:

<Engine  jvmRoute="worker3"   name="jonas" defaultHost="localhost">

uncomment the

<Cluster ...>....</cluster>
  • configure libresource url's: in JONAS/conf/libresourceConfig.properties
replace
kernel.serverUrl=http://mint.bio.uniroma2.it:9000
with
kernel.serverUrl=http://mint.bio.uniroma2.it/libresource

Libresource is now accessible from http://xxx/libresource

Arnaud]]> RE : change context for libresource + get back data http://dev.libresource.org/home/community/forum/change_context_for_libresource_get_back_data/RE_change_context_for_libresource_get_back_data_2 Sebastien Jourdain 2008-12-12T01:58:27+01:00 The initial design of LibreSource forced the user to set LS as a root web app. We've add some improvement but it might be unfinished on this point. Instead we use other naming host in order to manage LS as another virtual host.

You could also look at apache url rewriting in order to keep LS on root context and expose LS with a context path.]]> RE : change context for libresource + get back data http://dev.libresource.org/home/community/forum/change_context_for_libresource_get_back_data/RE_change_context_for_libresource_get_back_data_1 aceol 2008-12-11T13:04:58+01:00 "Importing Bootstrap.xml (5804314 o.) at (you are ls://xxxx/users/root) "

Thanks for your fast answer.

I can indeed use apache and map it to port 80 (with mod_jk and two workers). But I can't keep LibreSource on the root of the server, where several other applications are deployed, including a root portal. That's why I modified:

  • Distribution/ls-config.properties (kernel.serverUrl=http://XXX/libresource)
  • Distribution/build.properties (services.web.context=/libresource
but LibreSource keeps looking at the root. Even for instance for bootstrapping: http://xxxx/Import?defaultBootstrap&nodecorator If I enter the http://xxxx/libresource/Import... url, it goes back again to the root :
code: null
mporting Bootstrap.xml (5804314 o.) at (you are ls://xxxx/users/root)

You should update both :
  • Distribution/ls-config.properties (kernel.serverUrl=http://XXX)
  • Distribution/build.properties (services.web.context=/)
But why don't you use an apache server as a front server to shift the port 9000 to 80

]]> RE : change context for libresource + get back data http://dev.libresource.org/home/community/forum/change_context_for_libresource_get_back_data/RE_change_context_for_libresource_get_back_data_0 aceol 2008-12-11T13:03:05+01:00 I can indeed use apache and map it to port 80 (with mod_jk and two workers). But I can't keep LibreSource on the root of the server, where several other applications are deployed, including a root portal. That's why I modified:

  • Distribution/ls-config.properties (kernel.serverUrl=http://XXX/libresource)
  • Distribution/build.properties (services.web.context=/libresource
but LibreSource keeps looking at the root. Even for instance for bootstrapping: http://xxxx/Import?defaultBootstrap&nodecorator If I enter the http://xxxx/libresource/Import... url, it goes back again to the root :
code: null
mporting Bootstrap.xml (5804314 o.) at (you are ls://xxxx/users/root) ! code !

You should update both :
  • Distribution/ls-config.properties (kernel.serverUrl=http://XXX)
  • Distribution/build.properties (services.web.context=/)
But why don't you use an apache server as a front server to shift the port 9000 to 80

]]> RE : change context for libresource + get back data http://dev.libresource.org/home/community/forum/change_context_for_libresource_get_back_data/RE_change_context_for_libresource_get_back_data Sebastien Jourdain 2008-12-10T19:56:40+01:00

  • Distribution/ls-config.properties (kernel.serverUrl=http://XXX)
  • Distribution/build.properties (services.web.context=/)
  • But why don't you use an apache server as a front server to shift the port 9000 to 80]]> change context for libresource + get back data http://dev.libresource.org/home/community/forum/change_context_for_libresource_get_back_data/change_context_for_libresource_get_back_data aceol 2008-12-10T19:20:25+01:00 I'm managing several public databases at the University of Rome. I recently tried LibreSource to manage our development, with the Jonas installer (port 9000). We have used it for a few months now and I want to make it public.

    It is not possible for us to keep it working on jonas. Our other web-applications are already installed on jboss which already use port 80/8080. We can't keep it as a second server running on port 9000, because administrators only accept connections to port 80.

    After some configuration, I succeeded in deploying it on jboss. As I cannot obviously keep it on the root url, I modified the configuration file: in Distribution/build.properties: services.web.context=/libresource in Distribution/ls-config.properties: kernel.serverUrl=http://160.80.34.4:8080/libresource

    the application is running, I can access to http://localhost:8080/libresource/ (which redirect me to /libresource/Bootstrap). But when I want to bootstrap the installation, I'm redirected to the root /Import page, instead of "/libresource/Import' as I was expecting.

    By adding manually the "/libresource/" part to the url, I managed to launch the bootstrap, but the reason of this problem may be linked to my second problem:

    I don't want to loose what has been previously done on our JONAs server, so I configured the application to access the previous database. The access is okay (I can log) but I can't see my old pages. Is there any way to get them back on my new jboss server.

    Thank you very much,

    Arnaud

    ]]>