It's not really THAT hard... usually just a matter of getting the classpath right, and for Tomcat that means copying ALL classpath files to be in the Tomcat runtime directories.

One part of what you said Shi I'm not clear about: "OFBiz is servlet container." Actually, OFBiz is not a servlet container and is instead made to use a servlet container according to the standard Servlet API. By default that servlet container is Tomcat, though in an embedded mode. The reason that we use Tomcat in an embedded mode is that the deployment model that Tomcat supports is extremely cumbersome.

The basic and unfortunate truth is that if you choose an app server you choose the deployment tools and model of that app server... and deploying large applications in some app servers is a NIGHTMARE! So, consider the effort required for deployment when deciding on an app server and deployment strategy... including for development, testing, and production.

-David


On Apr 27, 2009, at 8:29 PM, Shi Jinghai wrote:

I'm afraid it's very difficult to deploy OFBiz on external Tomcat only.
The reason behind is similar to Portal, Portal is servlet container +
JSR-168(JSR-286), OFBiz is servlet container + Entity Engine Extension.

Perhaps it's time to submit an OFBiz JSR.

Regards,

Shi Jinghai/Beijing Langhua Ltd.


在 2009-04-28二的 10:13 +0800,郑色树写道:
Yes,I did it step by step ,but got the bad result.It does not work;

2009/4/28 BJ Freeman <[email protected]>

I have not done this but have you tried this
http://docs.ofbiz.org/display/OFBTECH/Tomcat

郑色树 sent the following on 4/27/2009 6:12 PM:
I try to deploy OFBiz on external tomcat. I followed the appserver
module
README but Tomcat never read the information about the classpath write on catalina.properties. When it try to load the OFBiz webapp it throw the
exception for all the webapp:

2009-4-27 23:46:28 org.apache.catalina.core.StandardContext listenerStart
严重: Error configuring application listener of class
org.ofbiz.webapp.control.ControlEventListener
java.lang.ClassNotFoundException:
org.ofbiz.webapp.control.ControlEventListener
at

org .apache .catalina .loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at

org .apache .catalina .loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at

org .apache .catalina.core.StandardContext.listenerStart(StandardContext.java: 3786)
at
org .apache.catalina.core.StandardContext.start(StandardContext.java: 4342) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java: 719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java: 443)
at
org .apache.catalina.core.StandardService.start(StandardService.java: 516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java: 710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)




any idea?

Thanks


Kacker


--
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com

http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.




Reply via email to