Running under external tomcat

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Running under external tomcat

Mansour
I am trying to running ofbiz under a stanalone tomcat as per
https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat

I am unable to run it as described. I am using the same version of
tomcat in the document: 6.0.16

I am using the latest from SVN.

Errors I am getting, something like:

org.ofbiz.webapp.control.ControlServlet.getRequestHandler(ControlServlet.java:340)
org.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:79)
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
org.apache.catalina.core.StandardService.start(StandardService.java:516)
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
org.apache.catalina.startup.Catalina.start(Catalina.java:578)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
--------------------------------------------------------------------------------

2011-12-15 13:43:19,655 (main) [ComponentLocationResolver.java:67 :ERROR]
---- exception report ----------------------------------------------------------
Could not get root location for component with name [content], error was: org.ofbiz.base.component.ComponentException: No component found named : content
Exception: org.ofbiz.base.component.ComponentException
Message: No component found named : content
---- stack trace ---------------------------------------------------------------
org.ofbiz.base.component.ComponentException: No component found named : content
org.ofbiz.base.component.ComponentConfig.getComponentConfig(ComponentConfig.java:86)
org.ofbiz.base.component.ComponentConfig.getComponentConfig(ComponentConfig.java:61)
org.ofbiz.base.component.ComponentConfig.getRootLocation(ComponentConfig.java:260)
org.ofbiz.base.location.ComponentLocationResolver.getBaseLocation(ComponentLocationResolver.java:64)
org.ofbiz.base.location.ComponentLocationResolver.resolveLocation(ComponentLocationResolver.java:39)
org.ofbiz.base.location.FlexibleLocation.resolveLocation(FlexibleLocation.java:132)
org.ofbiz.base.location.FlexibleLocation.resolveLocation(FlexibleLocation.java:73)
org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.loadIncludes(ConfigXMLReader.java:290)
org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:111)
org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:74)
org.ofbiz.webapp.control.RequestHandler.init(RequestHandler.java:90)
org.ofbiz.webapp.control.RequestHandler.getRequestHandler(RequestHandler.java:74)
org.ofbiz.webapp.control.ControlServlet.getRequestHandler(ControlServlet.java:340)
org.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:79)
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
org.apache.catalina.core.StandardService.start(StandardService.java:516)
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
org.apache.catalina.startup.Catalina.start(Catalina.java:578)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
--------------------------------------------------------------------------------

2011-12-15 13:43:19,656 (main) [    ConfigXMLReader.java:293:ERROR]
---- exception report ----------------------------------------------------------
Error processing include at [component://content/webapp/content/WEB-INF/controller.xml]:java.net.MalformedURLException: Could not get root location for component with name [content], error was: org.ofbiz.base.component.ComponentException: No component found named : content
Exception: java.net.MalformedURLException
Message: Could not get root location for component with name [content], error was: org.ofbiz.base.component.ComponentException: No component found named : content
---- stack trace ---------------------------------------------------------------
java.net.MalformedURLException: Could not get root location for component with name [content], error was: org.ofbiz.base.component.ComponentException: No component found named : content
org.ofbiz.base.location.ComponentLocationResolver.getBaseLocation(ComponentLocationResolver.java:68)
org.ofbiz.base.location.ComponentLocationResolver.resolveLocation(ComponentLocationResolver.java:39)
org.ofbiz.base.location.FlexibleLocation.resolveLocation(FlexibleLocation.java:132)
org.ofbiz.base.location.FlexibleLocation.resolveLocation(FlexibleLocation.java:73)
org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.loadIncludes(ConfigXMLReader.java:290)
org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:111)
org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:74)
org.ofbiz.webapp.control.RequestHandler.init(RequestHandler.java:90)
org.ofbiz.webapp.control.RequestHandler.getRequestHandler(RequestHandler.java:74)
org.ofbiz.webapp.control.ControlServlet.getRequestHandler(ControlServlet.java:340)
org.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:79)
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
org.apache.catalina.core.StandardService.start(StandardService.java:516)
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
org.apache.catalina.startup.Catalina.start(Catalina.java:578)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
--------------------------------------------------------------------------------

2011-12-15 13:43:19,668 (main) [    ConfigXMLReader.java:120:INFO ] controller loaded: 0.018s, 370 requests, 160 views in jndi:/localhost/ordermgr/WEB-INF/controller.xml
2011-12-15 13:43:31,730 (org.ofbiz.service.jms.JmsListenerFactory@5caccd65) [ JmsListenerFactory.java:89 :INFO ] JMS Listener Factory Thread Finished; All listeners connected.


any advice ?

Reply | Threaded
Open this post in threaded view
|

Re: Running under external tomcat

Mansour
It has been a month, and no answer yet. Is there some missing
information, that may help solving this issue. I remember it worked with
ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
longer supported then please let me know.




On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:

> I am trying to running ofbiz under a stanalone tomcat as per
> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
>
> I am unable to run it as described. I am using the same version of
> tomcat in the document: 6.0.16
>
> I am using the latest from SVN.
>
> Errors I am getting, something like:
>
> org.ofbiz.webapp.control.ControlServlet.getRequestHandler(ControlServlet.java:340)
> org.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:79)
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> --------------------------------------------------------------------------------
>
> 2011-12-15 13:43:19,655 (main) [ComponentLocationResolver.java:67 :ERROR]
> ---- exception report ----------------------------------------------------------
> Could not get root location for component with name [content], error was: org.ofbiz.base.component.ComponentException: No component found named : content
> Exception: org.ofbiz.base.component.ComponentException
> Message: No component found named : content
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.base.component.ComponentException: No component found named : content
> org.ofbiz.base.component.ComponentConfig.getComponentConfig(ComponentConfig.java:86)
> org.ofbiz.base.component.ComponentConfig.getComponentConfig(ComponentConfig.java:61)
> org.ofbiz.base.component.ComponentConfig.getRootLocation(ComponentConfig.java:260)
> org.ofbiz.base.location.ComponentLocationResolver.getBaseLocation(ComponentLocationResolver.java:64)
> org.ofbiz.base.location.ComponentLocationResolver.resolveLocation(ComponentLocationResolver.java:39)
> org.ofbiz.base.location.FlexibleLocation.resolveLocation(FlexibleLocation.java:132)
> org.ofbiz.base.location.FlexibleLocation.resolveLocation(FlexibleLocation.java:73)
> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.loadIncludes(ConfigXMLReader.java:290)
> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:111)
> org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:74)
> org.ofbiz.webapp.control.RequestHandler.init(RequestHandler.java:90)
> org.ofbiz.webapp.control.RequestHandler.getRequestHandler(RequestHandler.java:74)
> org.ofbiz.webapp.control.ControlServlet.getRequestHandler(ControlServlet.java:340)
> org.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:79)
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> --------------------------------------------------------------------------------
>
> 2011-12-15 13:43:19,656 (main) [    ConfigXMLReader.java:293:ERROR]
> ---- exception report ----------------------------------------------------------
> Error processing include at [component://content/webapp/content/WEB-INF/controller.xml]:java.net.MalformedURLException: Could not get root location for component with name [content], error was: org.ofbiz.base.component.ComponentException: No component found named : content
> Exception: java.net.MalformedURLException
> Message: Could not get root location for component with name [content], error was: org.ofbiz.base.component.ComponentException: No component found named : content
> ---- stack trace ---------------------------------------------------------------
> java.net.MalformedURLException: Could not get root location for component with name [content], error was: org.ofbiz.base.component.ComponentException: No component found named : content
> org.ofbiz.base.location.ComponentLocationResolver.getBaseLocation(ComponentLocationResolver.java:68)
> org.ofbiz.base.location.ComponentLocationResolver.resolveLocation(ComponentLocationResolver.java:39)
> org.ofbiz.base.location.FlexibleLocation.resolveLocation(FlexibleLocation.java:132)
> org.ofbiz.base.location.FlexibleLocation.resolveLocation(FlexibleLocation.java:73)
> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.loadIncludes(ConfigXMLReader.java:290)
> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:111)
> org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:74)
> org.ofbiz.webapp.control.RequestHandler.init(RequestHandler.java:90)
> org.ofbiz.webapp.control.RequestHandler.getRequestHandler(RequestHandler.java:74)
> org.ofbiz.webapp.control.ControlServlet.getRequestHandler(ControlServlet.java:340)
> org.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:79)
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> --------------------------------------------------------------------------------
>
> 2011-12-15 13:43:19,668 (main) [    ConfigXMLReader.java:120:INFO ] controller loaded: 0.018s, 370 requests, 160 views in jndi:/localhost/ordermgr/WEB-INF/controller.xml
> 2011-12-15 13:43:31,730 (org.ofbiz.service.jms.JmsListenerFactory@5caccd65) [ JmsListenerFactory.java:89 :INFO ] JMS Listener Factory Thread Finished; All listeners connected.
>
>
> any advice ?
>
Reply | Threaded
Open this post in threaded view
|

Re: Running under external tomcat

Erwan de FERRIERES
Le 14/01/2012 23:54, Mansour Al Akeel a écrit :

> It has been a month, and no answer yet. Is there some missing
> information, that may help solving this issue. I remember it worked with
> ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
> longer supported then please let me know.
>
>
>
>
> On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
>> I am trying to running ofbiz under a stanalone tomcat as per
>> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
>>
>> I am unable to run it as described. I am using the same version of
>> tomcat in the document: 6.0.16
>>

Hi Mansour,

OFBiz trunk is now using tomcat 7. If you still want to use a tomcat 6,
you may take a revision before 1203470
http://svn.apache.org/viewvc?rev=1203470&view=rev (november 18th) from
the OFBiz svn.

Cheers,

--
Erwan de FERRIERES
www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: Running under external tomcat

Mansour
Perfect,
That's even better. I will try it with tomcat7.


On Sun Jan 15,2012 09:32 am, Erwan de FERRIERES wrote:

> Le 14/01/2012 23:54, Mansour Al Akeel a ?crit :
> > It has been a month, and no answer yet. Is there some missing
> > information, that may help solving this issue. I remember it worked with
> > ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
> > longer supported then please let me know.
> >
> >
> >
> >
> > On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
> >> I am trying to running ofbiz under a stanalone tomcat as per
> >> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
> >>
> >> I am unable to run it as described. I am using the same version of
> >> tomcat in the document: 6.0.16
> >>
>
> Hi Mansour,
>
> OFBiz trunk is now using tomcat 7. If you still want to use a tomcat 6,
> you may take a revision before 1203470
> http://svn.apache.org/viewvc?rev=1203470&view=rev (november 18th) from
> the OFBiz svn.
>
> Cheers,
>
> --
> Erwan de FERRIERES
> www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: Running under external tomcat

Mansour
In reply to this post by Erwan de FERRIERES
Can you please provide details about how to generating the templates for
tomcat7 ?
I can see only tomcat6 and tomcat55.

On Sun Jan 15,2012 09:32 am, Erwan de FERRIERES wrote:

> Le 14/01/2012 23:54, Mansour Al Akeel a ?crit :
> > It has been a month, and no answer yet. Is there some missing
> > information, that may help solving this issue. I remember it worked with
> > ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
> > longer supported then please let me know.
> >
> >
> >
> >
> > On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
> >> I am trying to running ofbiz under a stanalone tomcat as per
> >> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
> >>
> >> I am unable to run it as described. I am using the same version of
> >> tomcat in the document: 6.0.16
> >>
>
> Hi Mansour,
>
> OFBiz trunk is now using tomcat 7. If you still want to use a tomcat 6,
> you may take a revision before 1203470
> http://svn.apache.org/viewvc?rev=1203470&view=rev (november 18th) from
> the OFBiz svn.
>
> Cheers,
>
> --
> Erwan de FERRIERES
> www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: Running under external tomcat

Mansour
This is issue is still pending. The recent revision from trunk doesn't
work on external tomcat.
And I was not able to trouble shoot the issue.
I commented out all the app context in the generated
TOMCAT_HOME/conf/server.xml and left bi to see the results.
All I get is:


INFO: Starting service Catalina
Jan 27, 2012 2:34:36 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/bi] startup failed due to previous errors
Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig deployDescriptor

I managed to get it running in the past with 10.04, but not from
trunk. The svn doesn't show any significant changes. Any help ?


On Sun, Jan 15, 2012 at 7:46 AM, Mansour Al Akeel
<[hidden email]> wrote:

> Can you please provide details about how to generating the templates for
> tomcat7 ?
> I can see only tomcat6 and tomcat55.
>
> On Sun Jan 15,2012 09:32 am, Erwan de FERRIERES wrote:
>> Le 14/01/2012 23:54, Mansour Al Akeel a ?crit :
>> > It has been a month, and no answer yet. Is there some missing
>> > information, that may help solving this issue. I remember it worked with
>> > ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
>> > longer supported then please let me know.
>> >
>> >
>> >
>> >
>> > On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
>> >> I am trying to running ofbiz under a stanalone tomcat as per
>> >> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
>> >>
>> >> I am unable to run it as described. I am using the same version of
>> >> tomcat in the document: 6.0.16
>> >>
>>
>> Hi Mansour,
>>
>> OFBiz trunk is now using tomcat 7. If you still want to use a tomcat 6,
>> you may take a revision before 1203470
>> http://svn.apache.org/viewvc?rev=1203470&view=rev (november 18th) from
>> the OFBiz svn.
>>
>> Cheers,
>>
>> --
>> Erwan de FERRIERES
>> www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: Running under external tomcat

Mansour
Ok, I am getting closer. Here's the recent error message:


941 [main] INFO org.ofbiz.entity.GenericDelegator - Doing entity
definition check...
951 [main] INFO NoModule - [initReservedWords] array length=1023
977 [ofbiz-config-0] INFO org.ofbiz.entity.GenericDelegator -
Delegator "default" initializing helper "localderby" for entity group
"org.ofbiz".
1024 [ofbiz-config-0] INFO org.ofbiz.entity.GenericDelegator - Doing
database check as requested in entityengine.xml with addMissing=true
10494 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil -
Database Product Name is Apache Derby
10495 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil -
Database Product Version is 10.8.2.2 - (1181258)
10495 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil -
Database Driver Name is Apache Derby Embedded JDBC Driver
10495 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil -
Database Driver Version is 10.8.2.2 - (1181258)
10495 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil -
Database Driver JDBC Version is 4.0
10495 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil -
Database Setting/Support Information (those with a * should be true):
10498 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
supports transactions     [true]*
10498 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
isolation None            [false]
10498 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
isolation ReadCommitted   [true]
10498 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
isolation ReadUncommitted [true]
10498 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
isolation RepeatableRead  [true]
10499 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
isolation Serializable    [true]
10499 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
forward only type         [true]
10499 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
scroll sensitive type     [false]
10499 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
scroll insensitive type   [true]
10500 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - - is
case sensitive         [false]
10500 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
stores LowerCase          [false]
10500 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
stores MixedCase          [false]
10500 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
stores UpperCase          [true]
10501 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - - max
table name length     [128]
10501 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - - max
column name length    [128]
10501 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
concurrent connections    [0]
10501 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
concurrent statements     [0]
10501 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
ANSI SQL92 Entry          [true]
10502 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
ANSI SQL92 Intermediate   [false]
10502 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
ANSI SQL92 Full           [false]
10502 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
ODBC SQL Grammar Core     [false]
10502 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
ODBC SQL Grammar Extended [false]
10503 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
ODBC SQL Grammar Minimum  [true]
10503 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
outer joins               [true]*
10503 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
limited outer joins       [true]
10504 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
full outer joins          [false]
10504 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
group by                  [true]*
10504 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
group by not in select    [true]
10504 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
column aliasing           [true]
10504 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
order by not in select    [false]
10504 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
alter table add column    [true]*
10504 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
non-nullable column       [true]*
10510 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
default fetchsize        [1]
10510 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil - -
named parameters         [ SKIPPED ]
10510 [ofbiz-config-0] INFO org.ofbiz.entity.jdbc.DatabaseUtil -
Getting Table Info From Database
10980 [main] ERROR org.ofbiz.entity.GenericDelegator -
---- exception report ----------------------------------------------------------
Failure in findListIteratorByCondition operation for entity
[DynamicView]: org.ofbiz.entity.GenericModelException: Could not find
definition for entity name EntityKeyStore. Rolling back transaction.
Exception: org.ofbiz.entity.GenericModelException
Message: Could not find definition for entity name EntityKeyStore
---- stack trace ---------------------------------------------------------------
org.ofbiz.entity.GenericModelException: Could not find definition for
entity name EntityKeyStore
org.ofbiz.entity.model.ModelReader.getModelEntity(ModelReader.java:452)
org.ofbiz.entity.GenericDelegator.findCountByCondition(GenericDelegator.java:1840)
org.ofbiz.entity.util.EntityCrypto.<init>(EntityCrypto.java:58)


I still don't know the solution. Anyone ?


On Fri, Jan 27, 2012 at 2:46 PM, Mansour Al Akeel
<[hidden email]> wrote:

> This is issue is still pending. The recent revision from trunk doesn't
> work on external tomcat.
> And I was not able to trouble shoot the issue.
> I commented out all the app context in the generated
> TOMCAT_HOME/conf/server.xml and left bi to see the results.
> All I get is:
>
>
> INFO: Starting service Catalina
> Jan 27, 2012 2:34:36 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
> Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/bi] startup failed due to previous errors
> Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig deployDescriptor
> INFO: Deploying configuration descriptor manager.xml
> Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig deployDescriptor
>
> I managed to get it running in the past with 10.04, but not from
> trunk. The svn doesn't show any significant changes. Any help ?
>
>
> On Sun, Jan 15, 2012 at 7:46 AM, Mansour Al Akeel
> <[hidden email]> wrote:
>> Can you please provide details about how to generating the templates for
>> tomcat7 ?
>> I can see only tomcat6 and tomcat55.
>>
>> On Sun Jan 15,2012 09:32 am, Erwan de FERRIERES wrote:
>>> Le 14/01/2012 23:54, Mansour Al Akeel a ?crit :
>>> > It has been a month, and no answer yet. Is there some missing
>>> > information, that may help solving this issue. I remember it worked with
>>> > ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
>>> > longer supported then please let me know.
>>> >
>>> >
>>> >
>>> >
>>> > On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
>>> >> I am trying to running ofbiz under a stanalone tomcat as per
>>> >> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
>>> >>
>>> >> I am unable to run it as described. I am using the same version of
>>> >> tomcat in the document: 6.0.16
>>> >>
>>>
>>> Hi Mansour,
>>>
>>> OFBiz trunk is now using tomcat 7. If you still want to use a tomcat 6,
>>> you may take a revision before 1203470
>>> http://svn.apache.org/viewvc?rev=1203470&view=rev (november 18th) from
>>> the OFBiz svn.
>>>
>>> Cheers,
>>>
>>> --
>>> Erwan de FERRIERES
>>> www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: Running under external tomcat

BJ Freeman
In reply to this post by Mansour
Just a guess, Hans put in some code for vitural server. might want to
check it out

Mansour Al Akeel sent the following on 1/27/2012 11:46 AM:

> This is issue is still pending. The recent revision from trunk doesn't
> work on external tomcat.
> And I was not able to trouble shoot the issue.
> I commented out all the app context in the generated
> TOMCAT_HOME/conf/server.xml and left bi to see the results.
> All I get is:
>
>
> INFO: Starting service Catalina
> Jan 27, 2012 2:34:36 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
> Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/bi] startup failed due to previous errors
> Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig deployDescriptor
> INFO: Deploying configuration descriptor manager.xml
> Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig deployDescriptor
>
> I managed to get it running in the past with 10.04, but not from
> trunk. The svn doesn't show any significant changes. Any help ?
>
>
> On Sun, Jan 15, 2012 at 7:46 AM, Mansour Al Akeel
> <[hidden email]> wrote:
>> Can you please provide details about how to generating the templates for
>> tomcat7 ?
>> I can see only tomcat6 and tomcat55.
>>
>> On Sun Jan 15,2012 09:32 am, Erwan de FERRIERES wrote:
>>> Le 14/01/2012 23:54, Mansour Al Akeel a ?crit :
>>>> It has been a month, and no answer yet. Is there some missing
>>>> information, that may help solving this issue. I remember it worked with
>>>> ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
>>>> longer supported then please let me know.
>>>>
>>>>
>>>>
>>>>
>>>> On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
>>>>> I am trying to running ofbiz under a stanalone tomcat as per
>>>>> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
>>>>>
>>>>> I am unable to run it as described. I am using the same version of
>>>>> tomcat in the document: 6.0.16
>>>>>
>>>
>>> Hi Mansour,
>>>
>>> OFBiz trunk is now using tomcat 7. If you still want to use a tomcat 6,
>>> you may take a revision before 1203470
>>> http://svn.apache.org/viewvc?rev=1203470&view=rev (november 18th) from
>>> the OFBiz svn.
>>>
>>> Cheers,
>>>
>>> --
>>> Erwan de FERRIERES
>>> www.nereide.biz
>
Reply | Threaded
Open this post in threaded view
|

Re: Running under external tomcat

Mansour
BJ,
Can you please provide me more details about how to start with it ?
documentation ? source code ?


On Sat, Jan 28, 2012 at 6:24 AM, BJ Freeman <[hidden email]> wrote:

> Just a guess, Hans put in some code for vitural server. might want to
> check it out
>
> Mansour Al Akeel sent the following on 1/27/2012 11:46 AM:
> > This is issue is still pending. The recent revision from trunk doesn't
> > work on external tomcat.
> > And I was not able to trouble shoot the issue.
> > I commented out all the app context in the generated
> > TOMCAT_HOME/conf/server.xml and left bi to see the results.
> > All I get is:
> >
> >
> > INFO: Starting service Catalina
> > Jan 27, 2012 2:34:36 PM org.apache.catalina.core.StandardEngine start
> > INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
> > Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
> > SEVERE: Error listenerStart
> > Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
> > SEVERE: Context [/bi] startup failed due to previous errors
> > Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> > INFO: Deploying configuration descriptor manager.xml
> > Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> >
> > I managed to get it running in the past with 10.04, but not from
> > trunk. The svn doesn't show any significant changes. Any help ?
> >
> >
> > On Sun, Jan 15, 2012 at 7:46 AM, Mansour Al Akeel
> > <[hidden email]> wrote:
> >> Can you please provide details about how to generating the templates for
> >> tomcat7 ?
> >> I can see only tomcat6 and tomcat55.
> >>
> >> On Sun Jan 15,2012 09:32 am, Erwan de FERRIERES wrote:
> >>> Le 14/01/2012 23:54, Mansour Al Akeel a ?crit :
> >>>> It has been a month, and no answer yet. Is there some missing
> >>>> information, that may help solving this issue. I remember it worked
> with
> >>>> ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
> >>>> longer supported then please let me know.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
> >>>>> I am trying to running ofbiz under a stanalone tomcat as per
> >>>>> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
> >>>>>
> >>>>> I am unable to run it as described. I am using the same version of
> >>>>> tomcat in the document: 6.0.16
> >>>>>
> >>>
> >>> Hi Mansour,
> >>>
> >>> OFBiz trunk is now using tomcat 7. If you still want to use a tomcat 6,
> >>> you may take a revision before 1203470
> >>> http://svn.apache.org/viewvc?rev=1203470&view=rev (november 18th) from
> >>> the OFBiz svn.
> >>>
> >>> Cheers,
> >>>
> >>> --
> >>> Erwan de FERRIERES
> >>> www.nereide.biz
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Running under external tomcat

Jacques Le Roux
Administrator
Consider also https://cwiki.apache.org/confluence/display/OFBIZ/SVN+Tips+-+svn_load_dirs+Vendor+Branch

Jacques

From: "Mansour Al Akeel" <[hidden email]>

> BJ,
> Can you please provide me more details about how to start with it ?
> documentation ? source code ?
>
>
> On Sat, Jan 28, 2012 at 6:24 AM, BJ Freeman <[hidden email]> wrote:
>
>> Just a guess, Hans put in some code for vitural server. might want to
>> check it out
>>
>> Mansour Al Akeel sent the following on 1/27/2012 11:46 AM:
>> > This is issue is still pending. The recent revision from trunk doesn't
>> > work on external tomcat.
>> > And I was not able to trouble shoot the issue.
>> > I commented out all the app context in the generated
>> > TOMCAT_HOME/conf/server.xml and left bi to see the results.
>> > All I get is:
>> >
>> >
>> > INFO: Starting service Catalina
>> > Jan 27, 2012 2:34:36 PM org.apache.catalina.core.StandardEngine start
>> > INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
>> > SEVERE: Error listenerStart
>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.core.StandardContext start
>> > SEVERE: Context [/bi] startup failed due to previous errors
>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig
>> deployDescriptor
>> > INFO: Deploying configuration descriptor manager.xml
>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.HostConfig
>> deployDescriptor
>> >
>> > I managed to get it running in the past with 10.04, but not from
>> > trunk. The svn doesn't show any significant changes. Any help ?
>> >
>> >
>> > On Sun, Jan 15, 2012 at 7:46 AM, Mansour Al Akeel
>> > <[hidden email]> wrote:
>> >> Can you please provide details about how to generating the templates for
>> >> tomcat7 ?
>> >> I can see only tomcat6 and tomcat55.
>> >>
>> >> On Sun Jan 15,2012 09:32 am, Erwan de FERRIERES wrote:
>> >>> Le 14/01/2012 23:54, Mansour Al Akeel a ?crit :
>> >>>> It has been a month, and no answer yet. Is there some missing
>> >>>> information, that may help solving this issue. I remember it worked
>> with
>> >>>> ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
>> >>>> longer supported then please let me know.
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>> On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
>> >>>>> I am trying to running ofbiz under a stanalone tomcat as per
>> >>>>> https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat
>> >>>>>
>> >>>>> I am unable to run it as described. I am using the same version of
>> >>>>> tomcat in the document: 6.0.16
>> >>>>>
>> >>>
>> >>> Hi Mansour,
>> >>>
>> >>> OFBiz trunk is now using tomcat 7. If you still want to use a tomcat 6,
>> >>> you may take a revision before 1203470
>> >>> http://svn.apache.org/viewvc?rev=1203470&view=rev (november 18th) from
>> >>> the OFBiz svn.
>> >>>
>> >>> Cheers,
>> >>>
>> >>> --
>> >>> Erwan de FERRIERES
>> >>> www.nereide.biz
>> >
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Running under external tomcat

Mansour
Jacques
Thank you, but this has to do with using SVN for a custom ofbiz. I don't
understand how it would contribute to the solution of the problem of not
being able to deploy to existing tomcat.
Can you please kindly elaborate  ?


On Wed, Feb 1, 2012 at 12:47 AM, Jacques Le Roux <
[hidden email]> wrote:

> Consider also https://cwiki.apache.org/**confluence/display/OFBIZ/SVN+**
> Tips+-+svn_load_dirs+Vendor+**Branch<https://cwiki.apache.org/confluence/display/OFBIZ/SVN+Tips+-+svn_load_dirs+Vendor+Branch>
>
> Jacques
>
> From: "Mansour Al Akeel" <[hidden email]>
>
>  BJ,
>> Can you please provide me more details about how to start with it ?
>> documentation ? source code ?
>>
>>
>> On Sat, Jan 28, 2012 at 6:24 AM, BJ Freeman <[hidden email]> wrote:
>>
>>  Just a guess, Hans put in some code for vitural server. might want to
>>> check it out
>>>
>>> Mansour Al Akeel sent the following on 1/27/2012 11:46 AM:
>>> > This is issue is still pending. The recent revision from trunk doesn't
>>> > work on external tomcat.
>>> > And I was not able to trouble shoot the issue.
>>> > I commented out all the app context in the generated
>>> > TOMCAT_HOME/conf/server.xml and left bi to see the results.
>>> > All I get is:
>>> >
>>> >
>>> > INFO: Starting service Catalina
>>> > Jan 27, 2012 2:34:36 PM org.apache.catalina.core.**StandardEngine
>>> start
>>> > INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
>>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.core.**StandardContext
>>> start
>>> > SEVERE: Error listenerStart
>>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.core.**StandardContext
>>> start
>>> > SEVERE: Context [/bi] startup failed due to previous errors
>>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.**HostConfig
>>> deployDescriptor
>>> > INFO: Deploying configuration descriptor manager.xml
>>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.**HostConfig
>>> deployDescriptor
>>> >
>>> > I managed to get it running in the past with 10.04, but not from
>>> > trunk. The svn doesn't show any significant changes. Any help ?
>>> >
>>> >
>>> > On Sun, Jan 15, 2012 at 7:46 AM, Mansour Al Akeel
>>> > <[hidden email]> wrote:
>>> >> Can you please provide details about how to generating the templates
>>> for
>>> >> tomcat7 ?
>>> >> I can see only tomcat6 and tomcat55.
>>> >>
>>> >> On Sun Jan 15,2012 09:32 am, Erwan de FERRIERES wrote:
>>> >>> Le 14/01/2012 23:54, Mansour Al Akeel a ?crit :
>>> >>>> It has been a month, and no answer yet. Is there some missing
>>> >>>> information, that may help solving this issue. I remember it worked
>>> with
>>> >>>> ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
>>> >>>> longer supported then please let me know.
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>> On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
>>> >>>>> I am trying to running ofbiz under a stanalone tomcat as per
>>> >>>>> https://cwiki.apache.org/**confluence/display/OFBTECH/**Tomcat<https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat>
>>> >>>>>
>>> >>>>> I am unable to run it as described. I am using the same version of
>>> >>>>> tomcat in the document: 6.0.16
>>> >>>>>
>>> >>>
>>> >>> Hi Mansour,
>>> >>>
>>> >>> OFBiz trunk is now using tomcat 7. If you still want to use a tomcat
>>> 6,
>>> >>> you may take a revision before 1203470
>>> >>> http://svn.apache.org/viewvc?**rev=1203470&view=rev<http://svn.apache.org/viewvc?rev=1203470&view=rev>(november 18th) from
>>> >>> the OFBiz svn.
>>> >>>
>>> >>> Cheers,
>>> >>>
>>> >>> --
>>> >>> Erwan de FERRIERES
>>> >>> www.nereide.biz
>>> >
>>>
>>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Running under external tomcat

Jacques Le Roux
Administrator
OOps... sorry Mansour,

I replied to the wrong line in my email client

Jacques

From: "Mansour Al Akeel" <[hidden email]>

> Jacques
> Thank you, but this has to do with using SVN for a custom ofbiz. I don't
> understand how it would contribute to the solution of the problem of not
> being able to deploy to existing tomcat.
> Can you please kindly elaborate  ?
>
>
> On Wed, Feb 1, 2012 at 12:47 AM, Jacques Le Roux <
> [hidden email]> wrote:
>
>> Consider also https://cwiki.apache.org/**confluence/display/OFBIZ/SVN+**
>> Tips+-+svn_load_dirs+Vendor+**Branch<https://cwiki.apache.org/confluence/display/OFBIZ/SVN+Tips+-+svn_load_dirs+Vendor+Branch>
>>
>> Jacques
>>
>> From: "Mansour Al Akeel" <[hidden email]>
>>
>>  BJ,
>>> Can you please provide me more details about how to start with it ?
>>> documentation ? source code ?
>>>
>>>
>>> On Sat, Jan 28, 2012 at 6:24 AM, BJ Freeman <[hidden email]> wrote:
>>>
>>>  Just a guess, Hans put in some code for vitural server. might want to
>>>> check it out
>>>>
>>>> Mansour Al Akeel sent the following on 1/27/2012 11:46 AM:
>>>> > This is issue is still pending. The recent revision from trunk doesn't
>>>> > work on external tomcat.
>>>> > And I was not able to trouble shoot the issue.
>>>> > I commented out all the app context in the generated
>>>> > TOMCAT_HOME/conf/server.xml and left bi to see the results.
>>>> > All I get is:
>>>> >
>>>> >
>>>> > INFO: Starting service Catalina
>>>> > Jan 27, 2012 2:34:36 PM org.apache.catalina.core.**StandardEngine
>>>> start
>>>> > INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
>>>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.core.**StandardContext
>>>> start
>>>> > SEVERE: Error listenerStart
>>>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.core.**StandardContext
>>>> start
>>>> > SEVERE: Context [/bi] startup failed due to previous errors
>>>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.**HostConfig
>>>> deployDescriptor
>>>> > INFO: Deploying configuration descriptor manager.xml
>>>> > Jan 27, 2012 2:34:37 PM org.apache.catalina.startup.**HostConfig
>>>> deployDescriptor
>>>> >
>>>> > I managed to get it running in the past with 10.04, but not from
>>>> > trunk. The svn doesn't show any significant changes. Any help ?
>>>> >
>>>> >
>>>> > On Sun, Jan 15, 2012 at 7:46 AM, Mansour Al Akeel
>>>> > <[hidden email]> wrote:
>>>> >> Can you please provide details about how to generating the templates
>>>> for
>>>> >> tomcat7 ?
>>>> >> I can see only tomcat6 and tomcat55.
>>>> >>
>>>> >> On Sun Jan 15,2012 09:32 am, Erwan de FERRIERES wrote:
>>>> >>> Le 14/01/2012 23:54, Mansour Al Akeel a ?crit :
>>>> >>>> It has been a month, and no answer yet. Is there some missing
>>>> >>>> information, that may help solving this issue. I remember it worked
>>>> with
>>>> >>>> ofbiz-10.04 . If running under tomcat for 11.04 or trunk-SVN, is no
>>>> >>>> longer supported then please let me know.
>>>> >>>>
>>>> >>>>
>>>> >>>>
>>>> >>>>
>>>> >>>> On Thu Dec 15,2011 03:53 pm, Mansour Al Akeel wrote:
>>>> >>>>> I am trying to running ofbiz under a stanalone tomcat as per
>>>> >>>>> https://cwiki.apache.org/**confluence/display/OFBTECH/**Tomcat<https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat>
>>>> >>>>>
>>>> >>>>> I am unable to run it as described. I am using the same version of
>>>> >>>>> tomcat in the document: 6.0.16
>>>> >>>>>
>>>> >>>
>>>> >>> Hi Mansour,
>>>> >>>
>>>> >>> OFBiz trunk is now using tomcat 7. If you still want to use a tomcat
>>>> 6,
>>>> >>> you may take a revision before 1203470
>>>> >>> http://svn.apache.org/viewvc?**rev=1203470&view=rev<http://svn.apache.org/viewvc?rev=1203470&view=rev>(november 18th) from
>>>> >>> the OFBiz svn.
>>>> >>>
>>>> >>> Cheers,
>>>> >>>
>>>> >>> --
>>>> >>> Erwan de FERRIERES
>>>> >>> www.nereide.biz
>>>> >
>>>>
>>>>
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Running under external tomcat

sukhram.bharti
In reply to this post by Mansour
BJ, Mansour,


I looked through the problem..the main problem is entities/components are not getting loaded.
I was able to solve an get my 11.04 code working under tomcat6.

Sharing details of changes that will make it work upto 10.04 (though further analysis may be needed to bring this to same capability as trunk works in )...

1) org.ofbiz.webapp.control.ContextFilter
>>Added code load containers before calling getContainers() <<


    // load the containers
        try{
        ContainerLoader.loadContainers(CONTAINER_CONFIG, null);
        } catch (StartupException e) {
            Debug.logError(e, module);
            throw new ServletException("Unable to load containers; cannot start ContextFilter");
        }

        Container container = getContainers();
2) org.ofbiz.base.container.ContainerLoader
>>Added following method <<<
 public static synchronized void loadContainers(String config, String[] args) throws StartupException {
       
        if(containerMap.isEmpty()) {
        Config cfg = new Config();
        cfg.containerConfig = config;
        ContainerLoader loader = new ContainerLoader();
        loader.load(cfg, args);
        }
    }

I am not a commitor etc. on ofbiz. Hope this helps and someone can properly check in.
Reply | Threaded
Open this post in threaded view
|

Re: Running under external tomcat

Jacques Le Roux
Administrator
Hi Sukhram,

This seems interesting could you carry the burden a little more far?
1) create a Jira for this, see https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices
2) complete/comment if necessary at https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat

TIA

Jacques

From: "sukhram.bharti" <[hidden email]>

> BJ, Mansour,
>
>
> I looked through the problem..the main problem is entities/components are
> not getting loaded.
> I was able to solve an get my 11.04 code working under tomcat6.
>
> Sharing details of changes that will make it work upto 10.04 (though further
> analysis may be needed to bring this to same capability as trunk works in
> )...
>
> 1) org.ofbiz.webapp.control.ContextFilter
>>>Added code load containers before calling getContainers() <<
>
>
>    *// load the containers
>        try{
>        ContainerLoader.loadContainers(CONTAINER_CONFIG, null);
>        } catch (StartupException e) {
>            Debug.logError(e, module);
>            throw new ServletException("Unable to load containers; cannot
> start ContextFilter");
>        }*
>        Container container = getContainers();
> 2) org.ofbiz.base.container.ContainerLoader
>>>Added following method <<<
> public static synchronized void loadContainers(String config, String[]
> args) throws StartupException {
>      
>        if(containerMap.isEmpty()) {
>        Config cfg = new Config();
>        cfg.containerConfig = config;
>        ContainerLoader loader = new ContainerLoader();
>        loader.load(cfg, args);
>        }
>    }
>
> I am not a commitor etc. on ofbiz. Hope this helps and someone can properly
> check in.
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Running-under-external-tomcat-tp4201942p4636432.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.