Resource Menu


posted by Sebastien Jourdain at Dec 13, 2008 11:24 AM
Quote
Thanks for your feed back...

LibreSource Team

posted by aceol at Dec 12, 2008 5:21 PM
Quote
Ok, it works with a mix of mod_jk and url rewriting.

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

posted by Sebastien Jourdain at Dec 12, 2008 1:58 AM
Quote
Ok, this might be the case...

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.

posted by aceol at Dec 11, 2008 1:04 PM
Quote
sorry for the formatting error, the answer for bootstraping is:

"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

posted by aceol at Dec 11, 2008 1:03 PM
Quote
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) ! 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

posted by Sebastien Jourdain at Dec 10, 2008 7:56 PM
Quote
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
posted by aceol at Dec 10, 2008 7:20 PM
Quote
Dear All,

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