user1006585
user1006585

Reputation: 85

Deploying OFBiz on External Application Server

Any one succeeded in deploying OFBiz on external application server Tomcat/ Jboss.

I tried to install ofbiz on Tomcat and Jboss in both cases i am facing issues. I used the following configurations to install ofbiz on appservers:

OFBiz Version: 10.04

Tomcat:6

JBoss 5.0.1

If any one having idea on deploying ofbiz on external app server, please reply to me...

Upvotes: 2

Views: 3988

Answers (3)

Tamer Mohamed
Tamer Mohamed

Reputation: 11

i succeeded to deploy both OFBiz 9.04 and 10.04 to external tomcat v6.0.16 please, view this post deploying OFBIz 10.04 to tomcat 6

Upvotes: 1

arajashe
arajashe

Reputation: 291

I just managed to deploy ofbiz in Tomcat 7. Following were the steps that i followed.

  • generated the setup for tomcat6 using java -jar ofbiz.jar -setup tomcat6.
  • manually merged the catalina.bat, catalina.properties, server.xml files
  • i had to change all file:// references to file://// in catalina.properties. found this solution in a forum. this was leading to a catalina startup exception
  • next i found out that the webapplication deployments were failing as none of the component:// resource paths were getting resolved. found that this was because the Component Container was not getting initailized. As a result of this even scanning for entity xml files was failing and hence the schema was not getting created automatically in the database. this initialization happens through the org.ofbiz.base.start.Start class this is called when java -jar ofbiz.jar is called.... i solved this issue with a somewhat dirty workaround. I created a custom ServletContextListenerthat in turn calls new Start().init(args, true) where args is a string array with just one entry start. I had to register this Listener in every web.xml file, i basically did a find and append my listener after the entry <listener><listener-class>org.ofbiz.webapp.control.ControlEventListener</listener-class></listener> in all the web.xmls as tomcat can load webapps in any order and we dont know which will be loaded first. to ensure the listener only does its job once, i simply used a boolean static flag. I picked ControlEventListener as a starting point so that i could do a simple global regex find and replace across web.xml files using a text editor
  • the next problem i faced was that inspite of setting ofbiz.home system property, it was getting ignored, set this is start.properties in framework\start\src\org\ofbiz\base\start\start.properties
  • And the final issue i had to sort out was to prevent the init method from attempting to load the Catalina container. I solved this by simply commenting out the catalina container entry in framework\base\config\ofbiz-containers.xml

And Success. Hope this helps someone!

Upvotes: 3

Mansour
Mansour

Reputation: 686

I have reported it in JIRA https://issues.apache.org/jira/browse/OFBIZ-4682

With this issue unresolved, you need to deploy any webapp you under ofbiz. A user on the mailing list suggested I use two tomcat instances and just change the port.

There seems no interest in fixing it. Maybe if this issues receives more votes, it will be considered for fixing.

sorry not much help !

Upvotes: 0

Related Questions