Page 1 of 1

ERROR [MainDeployer] Could not create deployment: file:/opt/

PostPosted:Thu Jun 23, 2011 5:28 pm
by kimini
Hi there,

first, sorry for my bad english. I´m running OpenKM 5.1.5 on archlinux 64 bit with openjdk6. OpenKM is installed in /opt and i get the following error
Code: Select all
ERROR [MainDeployer] Could not create deployment: file:/opt/jboss-4.2.3.GA/server/default/conf/jboss-service.xml
I start OpenKm with root right. What´s going wrong. Under Ubuntu it runs without problems.

Re: ERROR [MainDeployer] Could not create deployment: file:/

PostPosted:Sat Jun 25, 2011 11:18 am
by jllort
1- first you must install java sun jdk, not openjdk.
2- probably you've got some port binding that jboss needs, pay attention on server.log, probably there's some binding port error ( normally it causes jboss could not starting correctly ). ( could be some tomcat or other application that is yet binding some port that jboss needs, server.log must show the error).

Re: ERROR [MainDeployer] Could not create deployment: file:/

PostPosted:Fri Aug 05, 2011 2:27 pm
by Klemens
Hi,

I have the same problem on debian amd64. I'm using sun-java6-jdk. I can't check server.log because it's not created. Jboss crashes during boot, and only boot.log is created. I haven't found any port binding problem in boot.log. The first error is "Could not create deployment: ....". any ideas?

Re: ERROR [MainDeployer] Could not create deployment: file:/

PostPosted:Mon Aug 08, 2011 11:18 am
by jllort
sure jdk is default java runtime environment, if not use java-alternates or configure JAVA_HOME in your run.sh

Re: ERROR [MainDeployer] Could not create deployment: file:/

PostPosted:Mon Aug 08, 2011 4:41 pm
by Klemens
Thanks for advice but I was sure that java was OK because it was the only one java installed on the host, but I've checked fo sure :)
Code: Select all
root@openkm:/opt/jboss-4.2.3.GA/bin# java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Since I thoungt it is JBoss problem not OpenKM I've started to serach JBoss forum, and found people with the same problem. In my case I have the wrong hostname in /etc/hosts. My system is VM on ESXi and I use my template installation fo OpenKM and change hostname from debain to openkm, but forgot to update hosts file.

For future if anyone will have the same error message simply try to run
Code: Select all
./run.sh -c minimal
If the JBoss server starts that probably you have wrong hostname in /etc/hosts. Now I'm going further, I'm preparing for a little strugle because I don't have direct connection to Internet .

Re: ERROR [MainDeployer] Could not create deployment: file:/

PostPosted:Tue Aug 09, 2011 7:49 am
by jllort
If your openkm has no internet connection take a look here http://wiki.openkm.com/index.php/Troubl ... connection