Page 1 of 1

Installation failed on ubuntu 9.04

PostPosted:Wed Jan 06, 2010 8:54 pm
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

Re: Installation failed on ubuntu 9.04

PostPosted:Thu Jan 07, 2010 11:45 am
by pavila
The user who starts JBoss have the read / write permissions to all the files and directories ?

Re: Installation failed on ubuntu 9.04

PostPosted:Thu Jan 07, 2010 11:46 am
by pavila
Post the output of:
Code: Select all
$ java -version

Re: Installation failed on ubuntu 9.04

PostPosted:Thu Jan 07, 2010 6:53 pm
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

Re: Installation failed on ubuntu 9.04

PostPosted:Fri Jan 08, 2010 7:51 pm
by matt

Re: Installation failed on ubuntu 9.04

PostPosted:Sun Jan 10, 2010 5:52 pm
by pavila
Did you installed the JDK or JRE ? You need the first one.

Re: Installation failed on ubuntu 9.04

PostPosted:Tue Jan 12, 2010 6:26 pm
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

[SOLVED] Installation failed on ubuntu 9.04

PostPosted:Tue Jan 12, 2010 10:29 pm
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