• Running 2 versions of OpenKM on one Jboss

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #5627  by weezer316
 
Jilort,

Its certainly not trivial. For example, the wiki misses out several steps, suchs as setting a new repository because jboss throws errors if you keeo the defauly .cfg configuration, never mind the errors thrown by Eclipse when you load the jodconverter-2.2.2.jar, as well as very poorly explaining what goes where in the datasources.

And please dont take this the wrong way, you dont really have to understand why someone wants to do something in order to help them achieve it. If you dont want to answer then simply dont post an answer.

Wheeler
 #5628  by jllort
 
I've been talking this morning with core OpenKM and we think it'll be really dificult to run as is 4.1 without some code change.

I suggest you try with OpenKM 3.X because that's tested by us with this kind of configuration, and sure it'll run better than 4.1.
 #5629  by weezer316
 
Jilort,

I have made a few small changes to the code for my two 4.1 installations though so.....

So you suggest dl the 3.0 installation ffrom sourceforge, then download the 3.0 source from SVN and take it from there?

Wheeler
 #5639  by weezer316
 
Jilort,

Right, im back and much further forward I downloaded 4.0 instead of 4.1 and I seem to be getting places. I have actually installed a differnt JVM, jrockit from Oracle, and its alot more stable than the defauly one that was constantly running out of space.

Now, I have 3 versions running alongside each other confortablly. They all have their own documents and cannot see each other documents which is fine. However they can see each others user. They cant log in with users from another installation, but they can see them in the admin tab. Any idea how i can get round that?

Also, getting an error on login below but i cant find the file it refers to:

OKM-009013(getTranslations)
Cant find bundle for base name
PropertyGroupBundleTSPTEST001, locale en-gb

Any ideas? Hopefully this should be the last time you ever hear of me!

Wheeler
 #5640  by jllort
 
It's not a problem hearing you :) , but it's a complicated helping.

getTranslations() read trasnlations file in jboss_home ( the bundle ). Coul you put the server.log error to understand better.
 #5650  by weezer316
 
jilort,

Right I have solved the second error with the get translations. I just downloaded the propertybundlefile and duplicated as neccesary in the jboss_home folder. However, each installation can still see the others users. See screen below. I am logged in as okmadmin but active users says only test user is active, although hes active in another installation.
okm_user_screenshot.JPG
okm_user_screenshot.JPG (132.91 KiB) Viewed 11126 times
The server log dosnt seem to refer to it. Im assuming its a configuration issue. Any Ideas? I have stuck the fw dozen lines in form server.log
Code: Select all
2010-07-03 10:57:32,896 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findAllProcessDefinitions(1076396478697809704297-17492624251)
2010-07-03 10:57:32,896 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findAllProcessDefinitions: []
2010-07-03 10:57:40,847 DEBUG [org.jboss.security.plugins.JaasSecurityManager.OpenKMTDPTEST001] CallbackHandler: org.jboss.security.auth.callback.SecurityAssociationHandler@2a5f7d1
2010-07-03 10:57:40,847 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Created securityMgr=org.jboss.security.plugins.JaasSecurityManager@2a5f7d9
2010-07-03 10:57:40,863 DEBUG [org.jboss.security.plugins.JaasSecurityManager.OpenKMTDPTEST001] CachePolicy set to: org.jboss.util.TimedCachePolicy@2a7c3c1
2010-07-03 10:57:40,863 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCachePolicy@2a7c3c1
2010-07-03 10:57:40,863 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Added OpenKMTDPTEST001, org.jboss.security.plugins.SecurityDomainContext@2a7c3e4 to map
2010-07-03 10:57:42,800 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findUserTaskInstances(1076396478697809799297-17491932671)
2010-07-03 10:57:42,800 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findUserTaskInstances: []
2010-07-03 10:57:48,268 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] ERROR: The serialization policy file 'TDPTEST001/es.git.openkm.backend.Main/89F973A1A2CA22E256DC347D63E98E25.gwt.rpc' was not found; did you forget to include it in this deployment?
2010-07-03 10:57:48,283 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] WARNING: Failed to get the SerializationPolicy '89F973A1A2CA22E256DC347D63E98E25' for module 'http://localhost:8080/OpenKMTDPTEST001/es.git.openkm.backend.Main/'; a legacy, 1.3.3 compatible, serialization policy will be used.  You may experience SerializationExceptions as a result.
2010-07-03 10:57:48,299 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] ERROR: The serialization policy file 'TDPTEST001/es.git.openkm.backend.Main/C396D69D03CF74A6DF9F30840BB8EE87.gwt.rpc' was not found; did you forget to include it in this deployment?
2010-07-03 10:57:48,299 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] WARNING: Failed to get the SerializationPolicy 'C396D69D03CF74A6DF9F30840BB8EE87' for module 'http://localhost:8080/OpenKMTDPTEST001/es.git.openkm.backend.Main/'; a legacy, 1.3.3 compatible, serialization policy will be used.  You may experience SerializationExceptions as a result.
2010-07-03 10:57:48,361 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] ERROR: The serialization policy file 'TDPTEST001/es.git.openkm.backend.Main/2416D534E8EC2F41B7C86AFE78C5664F.gwt.rpc' was not found; did you forget to include it in this deployment?
2010-07-03 10:57:48,361 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] WARNING: Failed to get the SerializationPolicy '2416D534E8EC2F41B7C86AFE78C5664F' for module 'http://localhost:8080/OpenKMTDPTEST001/es.git.openkm.backend.Main/'; a legacy, 1.3.3 compatible, serialization policy will be used.  You may experience SerializationExceptions as a result.
2010-07-03 10:58:13,216 DEBUG [org.jboss.security.plugins.JaasSecurityManager.OpenKMTDPTEST005] CallbackHandler: org.jboss.security.auth.callback.SecurityAssociationHandler@2dd9c25
2010-07-03 10:58:13,216 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Created securityMgr=org.jboss.security.plugins.JaasSecurityManager@2dd9c2d
2010-07-03 10:58:13,216 DEBUG [org.jboss.security.plugins.JaasSecurityManager.OpenKMTDPTEST005] CachePolicy set to: org.jboss.util.TimedCachePolicy@2dda70e
2010-07-03 10:58:13,216 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCachePolicy@2dda70e
2010-07-03 10:58:13,216 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Added OpenKMTDPTEST005, org.jboss.security.plugins.SecurityDomainContext@2dda731 to map
2010-07-03 10:58:37,617 INFO  [org.apache.jackrabbit.core.query.lucene.MultiIndex] Unable to delete obsolete index: _u
2010-07-03 10:59:08,908 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] ERROR: The serialization policy file 'TDPTEST001/es.git.openkm.backend.Main/C3114AB0366C7E1107A4AD13EAC2325B.gwt.rpc' was not found; did you forget to include it in this deployment?
2010-07-03 10:59:08,908 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] WARNING: Failed to get the SerializationPolicy 'C3114AB0366C7E1107A4AD13EAC2325B' for module 'http://localhost:8080/OpenKMTDPTEST001/es.git.openkm.backend.Main/'; a legacy, 1.3.3 compatible, serialization policy will be used.  You may experience SerializationExceptions as a result.
2010-07-03 10:59:08,924 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** Session token is NULL **
2010-07-03 10:59:08,924 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** ContextPath = /OpenKM **
2010-07-03 10:59:08,924 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** PathInfo = null **
2010-07-03 10:59:08,924 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** RemoteAddr = 127.0.0.1 **
2010-07-03 10:59:08,924 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** COOKIE Name = JSESSIONID, Value=4330866DD7E944947DAB46DE9EA6C584, Path=null, Domain=null **
2010-07-03 10:59:08,924 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** HEADER host = localhost:8080 **
2010-07-03 10:59:08,939 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** HEADER user-agent = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 **
2010-07-03 10:59:08,939 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** HEADER accept = text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 **
2010-07-03 10:59:08,939 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** HEADER accept-language = en-gb,en;q=0.5 **
2010-07-03 10:59:08,939 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** HEADER accept-encoding = gzip,deflate **
2010-07-03 10:59:08,939 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** HEADER accept-charset = ISO-8859-1,utf-8;q=0.7,*;q=0.7 **
2010-07-03 10:59:08,939 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** HEADER keep-alive = 115 **
2010-07-03 10:59:08,939 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** HEADER connection = keep-alive **
2010-07-03 10:59:08,939 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** HEADER content-type = text/x-gwt-rpc; charset=utf-8 **
2010-07-03 10:59:08,939 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** HEADER referer = http://localhost:8080/OpenKMTDPTEST001/es.git.openkm.backend.Main/58C19A50E6FB032A841882C9FE33A897.cache.html **
2010-07-03 10:59:08,939 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** HEADER content-length = 190 **
2010-07-03 10:59:08,939 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** HEADER cookie = JSESSIONID=4330866DD7E944947DAB46DE9EA6C584 **
2010-07-03 10:59:08,939 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** HEADER pragma = no-cache **
2010-07-03 10:59:08,939 WARN  [es.git.openkm.backend.server.OKMRemoteServiceServletAdmin] ** HEADER cache-control = no-cache **
2010-07-03 10:59:08,939 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type 'es.git.openkm.backend.client.OKMException' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.  For security purposes, this type will not be serialized.
	at com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140)
	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591)
	at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
	at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530)
	at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573)
	at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:365)
	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:546)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:804)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:97)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:111)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
	at java.lang.Thread.run(Thread.java:619)
2010-07-03 10:59:35,311 INFO  [org.apache.jackrabbit.core.query.lucene.MultiIndex] Unable to delete obsolete index: _r
2010-07-03 10:59:41,701 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findUserTaskInstances(1076396478697809890297-17490736481)
2010-07-03 10:59:41,701 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findUserTaskInstances: []
2010-07-03 11:00:21,165 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findUserTaskInstances(1076396478697809704297-17490337622)
2010-07-03 11:00:21,165 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findUserTaskInstances: []
2010-07-03 11:00:25,649 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findUserTaskInstances(1076396478697809799297-17490291842)
2010-07-03 11:00:25,649 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findUserTaskInstances: []
2010-07-03 11:01:34,474 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] ERROR: The serialization policy file 'TDPTEST005/es.git.openkm.backend.Main/89F973A1A2CA22E256DC347D63E98E25.gwt.rpc' was not found; did you forget to include it in this deployment?
2010-07-03 11:01:34,474 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] WARNING: Failed to get the SerializationPolicy '89F973A1A2CA22E256DC347D63E98E25' for module 'http://localhost:8080/OpenKMTDPTEST005/es.git.openkm.backend.Main/'; a legacy, 1.3.3 compatible, serialization policy will be used.  You may experience SerializationExceptions as a result.
2010-07-03 11:01:34,505 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] ERROR: The serialization policy file 'TDPTEST005/es.git.openkm.backend.Main/C396D69D03CF74A6DF9F30840BB8EE87.gwt.rpc' was not found; did you forget to include it in this deployment?
2010-07-03 11:01:34,505 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] WARNING: Failed to get the SerializationPolicy 'C396D69D03CF74A6DF9F30840BB8EE87' for module 'http://localhost:8080/OpenKMTDPTEST005/es.git.openkm.backend.Main/'; a legacy, 1.3.3 compatible, serialization policy will be used.  You may experience SerializationExceptions as a result.
2010-07-03 11:01:34,552 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] ERROR: The serialization policy file 'TDPTEST005/es.git.openkm.backend.Main/2416D534E8EC2F41B7C86AFE78C5664F.gwt.rpc' was not found; did you forget to include it in this deployment?
2010-07-03 11:01:34,552 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] WARNING: Failed to get the SerializationPolicy '2416D534E8EC2F41B7C86AFE78C5664F' for module 'http://localhost:8080/OpenKMTDPTEST005/es.git.openkm.backend.Main/'; a legacy, 1.3.3 compatible, serialization policy will be used.  You may experience SerializationExceptions as a result.
Any help gretaly appreciated!
 #5652  by weezer316
 
Also, here is the log that is created when I access the Admin tab and click users:
Code: Select all
2010-07-03 11:31:18,664 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findUserTaskInstances(1076396478697809890297-17490736481)
2010-07-03 11:31:18,664 DEBUG [es.git.openkm.module.direct.DirectWorkflowModule] findUserTaskInstances: []
 #5673  by jllort
 
If I'm right you've got a Config.java in backend too ... you might do the same process than in frontend.
 #5676  by weezer316
 
Jilort,

Right, I actually went and reinstalled version 4.1, and ive now got 3 running togther and all seems to be perfect! I have no idea why they verison 4.0's were doing that but it now appears to be ok. Very strange.

Is there a limit to the number of Openkm's there can be in one jBoss? Either a real limit or a point where it begins to slow to much? Or does it depend on your hardware?

Wheeler
 #5688  by jllort
 
Be care with memory !!! it's the major problem with jboss ( that's the major hardware limitation you'll found in this kind of installation )
 #5698  by weezer316
 
Yes I noticed that. Absolute memory hog. However, if you install jrockit JVM it seems to help no end.

By the way, is there anyway to amend the installation string, so that instead of it being localhost:8080/OpenKM it will read localhost:8080/SOMETHING? I have tried to edit the web.xml file and the jboss-web.xml but to no avail. I can get to the login page but i cant login.
 #5710  by pavila
 
Keep on mind that this feature is very experimental and not heavy tested. I recommend you to virtualize the hardware.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.