Page 1 of 1

Installation on other version of JBoss AS

PostPosted:Fri Mar 26, 2010 8:09 am
by Samb1985
I would like to know if its possible to use OpenKM with another version of JBoss AS 5.1 ? If is possible how can I install the web application to my server where running JBoss AS 5.1 to avoid to install another istances of JBoss AS 4.2 that create conflict.

Re: Installation on other version of JBoss AS

PostPosted:Sat Mar 27, 2010 12:02 pm
by jllort
Probably you'll get some problem with webservices and could be some problem on classes isolation.

Let's try it, I've got deployed OpenKM 5.0 ( still not released and in beta stage in jboss 5 ) we could try with 4.0:
Related files to be copied:
Code: Select all
%JBOSS_HOME%/PropertyGroup*.*
%JBOSS_HOME%/OpenKM.cfg
%JBOSS_HOME%/repository.xml
%JBOSS_HOME%/indexing_configuration.xml
%JBOSS_HOME%/server/default/deploy/OpenKM.war
%JBOSS_HOME%/server/default/deploy/openkm-dx.xml
special case copy from %JBOSS_HOME%/server/default/conf/login-config.xml only the <application-policy name = "OpenKM"> ---- </application-policy>

If you've got problems with class loader ( colisions in jboss 5.1, probably you'll got it ), you need to add a file called jboss-classloading.xml into OpenKM.war/WEB-INF ( you can use winrar to put there ).
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<classloading xmlns="urn:jboss:classloading:1.0" 
        name="OpenKM.war" 
        domain="DefaultDomain" 
        export-all="NON_EMPTY" 
        import-all="true">
</classloading>

Re: Installation on other version of JBoss AS

PostPosted:Mon Mar 29, 2010 10:19 am
by Samb1985
I'll try it on JBoss AS 5.1

Now I will see OpenKM.war (in JBoss AS Administration Console) in Web Application section:

Name:OpenKM.war
Version:--
Description:a standalone web application (WAR)
Traits
Path: [Jboss root]/server/default/deploy/OpenKM.war
Exploded?: no
Context Root: OpenKM
Virtual Hosts: localhost

Status: Available/UP

But if I go to: http://localhost:8080/OpenKM/ will display:
HTTP Status 404 - /OpenKM/
type Status report
message /OpenKM/
description The requested resource (/OpenKM/) is not available.

How can I resolve it ?

Re: Installation on other version of JBoss AS

PostPosted:Mon Mar 29, 2010 11:55 am
by jllort
We need to see server.log errors !!!

Suggestion : Don't try it in your actual jboss 5.1 installation, try with some new jboss 5.1, and after here runs well copy to your production environment.

Re: Installation on other version of JBoss AS

PostPosted:Mon Mar 29, 2010 1:50 pm
by Samb1985
jllort wrote:We need to see server.log errors !!!

Suggestion : Don't try it in your actual jboss 5.1 installation, try with some new jboss 5.1, and after here runs well copy to your production environment.
I just try it in a new jboss 5.1
Now it work well following your indication.
The problem was in recreating .war.