Reputation: 85
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
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
Reputation: 291
I just managed to deploy ofbiz in Tomcat 7. Following were the steps that i followed.
java -jar ofbiz.jar -setup tomcat6
. catalina.bat, catalina.properties, server.xml
filesfile://
references to file:////
in catalina.properties
. found this solution in a forum. this was leading to a catalina startup exceptioncomponent://
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 ServletContextListener
that 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 editorframework\start\src\org\ofbiz\base\start\start.properties
framework\base\config\ofbiz-containers.xml
And Success. Hope this helps someone!
Upvotes: 3
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