• Installation failed on ubuntu 9.04

  • 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.
 #3678  by matt
 
Hi,

I cannot find anybody reported the same issue before, so here it is...

I downloaded the latest OpenKM + JBoss 4.2.3 GA bundle and followed the instructions in the QUICK_INSTALL file.
After I launch run.sh, I cannot browse to the home page.
When I look at the log, boot.log looks fine. In server/default/log/server.log, I see this :
Code: Select all
2010-01-06 12:39:47,916 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/opt/openkm/server/default/deploy/jbossws.sar/
2010-01-06 12:39:47,917 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/opt/openkm/server/default/deploy/jbossws.sar/
java.lang.NoClassDefFoundError: javax/ejb/Stateless
        at org.jboss.ejb3.EJB3Util.isStateless(EJB3Util.java:42)
        at org.jboss.ejb3.EJB3Deployer.hasEjbAnnotation(EJB3Deployer.java:219)
        at org.jboss.ejb3.EJB3Deployer.accepts(EJB3Deployer.java:271)
        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)
And a lot more errors after that.
I made sure sun-java6-jdk is installed properly.

Any idea ?

Thanks
 #3687  by pavila
 
The user who starts JBoss have the read / write permissions to all the files and directories ?
 #3700  by matt
 
Yes, it is the same user that uncompressed the archive (and own all the files / directories). I also tried to run the run.sh script as sudo and that did not help (still exactly the same error in the server.log)

$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Server VM (build 14.3-b01, mixed mode)

Thanks
 #3739  by matt
 
$ sudo dpkg --get-selections | grep sun-java6-jdk
sun-java6-jdk install

As mentioned in the first post, jdk is installed.

But apparently, according to the link I posted before, that class it is complaining about is not part of the JDK but instead is in JBoss, can it be some classpath is not setup correctly or something like that ?
It is in jboss-ejb3x.jar which is in JBOSS_HOME/server/default/deploy/ejb3.deployer
 #3741  by matt
 
Found the problem... the java 1.6 JDK is correctly installed, but not used...
To get it set properly :
Code: Select all
sudo update-java-alternatives -s java-6-sun

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.