• OpenKM doesn't start on Ubuntu 8.10, run.sh errors

  • 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.
 #1446  by kernel_script
 
Hi everybody.

OpenKM looks very nice to work with, but i\'m having troubles to launch it. I Run Ubuntu 8.10, Apache 2, and both Java 1.5 and Java 1.6

I downloded the \"OpenKM-3.0-RC2_JBoss-4.2.2.GA.zip\" file and unzipped it to \"/opt\" and when i hit \"/opt/OpenKM-3.0-RC2_JBoss-4.2.2.GA/bin/run.sh\" on the Terminal, it give me a lot of errors:

# /opt/OpenKM-3.0-RC2_JBoss-4.2.2.GA/bin/run.sh
=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /opt/OpenKM-3.0-RC2_JBoss-4.2.2.GA

JAVA: java

JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true

CLASSPATH: /opt/OpenKM-3.0-RC2_JBoss-4.2.2.GA/bin/run.jar

=========================================================================

13:35:01,372 INFO [Server] Starting JBoss (MX MicroKernel)...
13:35:01,388 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
13:35:01,389 INFO [Server] Home Dir: /opt/OpenKM-3.0-RC2_JBoss-4.2.2.GA
13:35:01,390 INFO [Server] Home URL: file:/opt/OpenKM-3.0-RC2_JBoss-4.2.2.GA/
13:35:01,391 INFO [Server] Patch URL: null
13:35:01,391 INFO [Server] Server Name: default
13:35:01,392 INFO [Server] Server Home Dir: /opt/OpenKM-3.0-RC2_JBoss-4.2.2.GA/server/default
13:35:01,392 INFO [Server] Server Home URL: file:/opt/OpenKM-3.0-RC2_JBoss-4.2.2.GA/server/default/
13:35:01,392 INFO [Server] Server Log Dir: /opt/OpenKM-3.0-RC2_JBoss-4.2.2.GA/server/default/log
13:35:01,418 INFO [Server] Server Temp Dir: /opt/OpenKM-3.0-RC2_JBoss-4.2.2.GA/server/default/tmp
13:35:01,444 INFO [Server] Root Deployment Filename: jboss-service.xml
13:35:04,984 INFO [ServerInfo] Java version: 1.5.0_16,Sun Microsystems Inc.
13:35:04,984 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_16-b02,Sun Microsystems Inc.
13:35:04,984 INFO [ServerInfo] OS-System: Linux 2.6.27-7-generic,i386
13:35:06,426 INFO [Server] Core system initialized
13:35:13,472 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName=\'jboss.remoting:service=NetworkRegistry\', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@1a6684f)]
13:35:13,551 ERROR [MainDeployer] Could not create deployment: file:/opt/OpenKM-3.0-RC2_JBoss-4.2.2.GA/server/default/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.reflect.InvocationTargetException
at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)
at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
... 36 more
Caused by: javax.management.MBeanException
at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
... 41 more
Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName=\'jboss.remoting:service=NetworkRegistry\', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@1a6684f)]
at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
... 51 more
Caused by: java.lang.RuntimeException: Exception creating identity: kernel-script: kernel-script
at org.jboss.remoting.ident.Identity.get(Identity.java:211)
at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
... 56 more
Failed to boot JBoss:
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.reflect.InvocationTargetException
at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)
at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
... 36 more
Caused by: javax.management.MBeanException
at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
... 41 more
Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName=\'jboss.remoting:service=NetworkRegistry\', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@1a6684f)]
at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
... 51 more
Caused by: java.lang.RuntimeException: Exception creating identity: kernel-script: kernel-script
at org.jboss.remoting.ident.Identity.get(Identity.java:211)
at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
... 56 more
13:35:13,683 INFO [Server] Runtime shutdown hook called, forceHalt: true
13:35:13,683 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
13:35:13,729 INFO [Server] Shutdown complete
Shutdown complete
Halting VM

Please help, thanks in advance.
 #1447  by pavila
 
Post the output of \"java -version\", please. And verify that is not a permissions problem. JBoss also need internet access for deploying OpenKM webservices.
 #1448  by kernel_script
 
Thanks for the quick reply pavila.

Here some outputs:

$ java -version
java version \"1.5.0_16\"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)
And
$ update-alternatives --config java

Existem 2 alternativas que fornecem \'java\'.

Seleção Alternativa
-----------------------------------------------
+ 1 /usr/lib/jvm/java-6-sun/jre/bin/java
* 2 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java

Pressione enter para manter o padrão[*] ou digite o número da seleção:

I have Internet access.

About permissions i don\'t know, how i set up this issue? \"chmod -R 777 /opt/OpenKM-3.0-RC2_JBoss-4.2.2.GA\" ?
 #1451  by pavila
 
The java version is the same I have installed on my Ubuntu (I also work on Ubuntu 8.10) The command chmod ugo+w /opt/OpenKM-3.0-RC2_JBoss-4.2.2.G -R should be enough, but you should manage better these permissions if you want to deploy OpenKM in the real world.
 #1453  by kernel_script
 
pavila wrote:You have installed the sun-java5-jdk package, isn\'t it?
Yes i have.

What you mean with:
"but you should manage better these permissions if you want to deploy OpenKM in the real world."?

--

I will try this command that you said right now and see what happens.

Thanks.

--

Edit

No luck. I got the same errors as before :(
 #1463  by pavila
 
A \"chmod 777\" will leave all the files readables by everybody and it can be a security risk. I don\'t understand why OpenKM fails on your system because I have made several installations in Ubuntu and always works ok.
 #1468  by kernel_script
 
pavila wrote:A "chmod 777" will leave all the files readables by everybody and it can be a security risk. I don\'t understand why OpenKM fails on your system because I have made several installations in Ubuntu and always works ok.
Ah that, i know about the permissions, i suggested it only for a test purpose, to see if i got OpenKM to work, later, of course, i would manage permissions properly.

Well, i tried OpenKM also on Ubuntu 8.04 with Java 1.6 and got a 404 Error complaining about OpenKM...

Looks like i have no luck at all with OpenKM, well, if someone else have some tip, plesae say, i really want put it to work.

What OpenKM version you run pavila? It is possible to download a old one?

Thanks pavila for your attention.
 #1469  by pavila
 
We released the final version a couple of days ago. Download OpenKM-3.0_JBoss-4.2.2.GA.zip,

$ unzip OpenKM-3.0_JBoss-4.2.2.GA.zip
$ cd OpenKM-3.0_JBoss-4.2.2.GA
$ ./bin/run.sh

And the server will start without problems (first time throws but you can ignore it, it won\'t be shown next time you start JBoss)
 #1471  by kernel_script
 
pavila wrote:We released the final version a couple of days ago. Download OpenKM-3.0_JBoss-4.2.2.GA.zip,

$ unzip OpenKM-3.0_JBoss-4.2.2.GA.zip
$ cd OpenKM-3.0_JBoss-4.2.2.GA
$ ./bin/run.sh

And the server will start without problems (first time throws but you can ignore it, it won\'t be shown next time you start JBoss)
Thanks, i will download the final version to make one more couple of tries.
 #1479  by kernel_script
 
pavila wrote:We released the final version a couple of days ago. Download OpenKM-3.0_JBoss-4.2.2.GA.zip,

$ unzip OpenKM-3.0_JBoss-4.2.2.GA.zip
$ cd OpenKM-3.0_JBoss-4.2.2.GA
$ ./bin/run.sh

And the server will start without problems (first time throws but you can ignore it, it won\'t be shown next time you start JBoss)
I downloaded that one, still doesn\'t work, same errors as before :(

If somebody know some tip, hint, anything to help, please. Thanks in advance.
 #1502  by kernel_script
 
pavila wrote:Try on another machine with Ubuntu , for example.
I don\'t have another machine to try. I tried on Mandriva One 2009 LiveCD, on Ubuntu 8.04 LiveCD, Linux Mint LiveCD, and OpenSolaris LiveCD, dude, OpenSolaris! With the full Java environment already installed and configured.

And do not worked in any of it :(

In Ubuntu 8.10 JBoss doesn\'t even launch, on other OSs, if i delete OpenKm.ear, i can get JBoss to launch, but OpenKM not, i go to locallhost:8080/OpenKM and it ever complain about a 404 error that OpenKM service are not been available, and when i go to localhost:8080 JBoss are normally running. I don\'t know what\'s wrong, if it is me, or application, or the Hardware i try it :(

Thanks. Any more tips or hints are welcome.

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.