I can't find any documentation on switching from tomcat to jetty. Is
it as simple as just uncommenting the jetty line in framework/component-load.xml? Do I need to comment anything? How can I tell that jetty is running? Thanks to Joe for keeping the jetty stuff up-to-date. I see that you made a commit just back in March. -Al |
This has been asked before also. check it here if it helps
http://ofbiz.135035.n4.nabble.com/Jetty-td2278986.html |
Thanks for the reply, but what does it mean to:
Use "framework/base/config/jetty-containers.xml" instead of "framework/base/config/ofbiz-containers.xml". How do I turn one on and the other off? -Al On Mon, Jun 4, 2012 at 9:39 AM, mohd Viqar <[hidden email]> wrote: > This has been asked before also. check it here if it helps > > http://ofbiz.135035.n4.nabble.com/Jetty-td2278986.html > > -- > View this message in context: http://ofbiz.135035.n4.nabble.com/Using-jetty-instead-of-tomcat-tp4633181p4633197.html > Sent from the OFBiz - User mailing list archive at Nabble.com. |
In reply to this post by byersa
I got this from Joe Eckard and think it is worth sharing for anyone
else coming along. Thanks Joe. Switching to jetty and back is easy & painless - first you need to edit /framework/component-load.xml to make sure the jetty component is active and the catalina component is disabled. Then you need to make sure the jetty config is available - you can do that by copying the "jetty-container" section from jetty.properties into ofbiz.properties, or copy jetty.properties to ofbiz.properties in framework/base/config, or supply "jetty" as a command-line argument when running ofbiz. (e.g. "java -jar ofbiz.jar jetty" - this will cause Start.java to load the startup jetty.properties, which tells ofbiz to use framework/base/config/jetty.properties instead of the default framework/base/config/ofbiz.properties) -Al On Mon, Jun 4, 2012 at 4:49 AM, Al Byers <[hidden email]> wrote: > I can't find any documentation on switching from tomcat to jetty. Is > it as simple as just uncommenting the jetty line in > framework/component-load.xml? > > Do I need to comment anything? > > How can I tell that jetty is running? > > Thanks to Joe for keeping the jetty stuff up-to-date. I see that you > made a commit just back in March. > > -Al |
Administrator
|
Thanks Al, Joe,
Maybe this could go in https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo Or more likely https://cwiki.apache.org/confluence/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide Jacques From: "Al Byers" <[hidden email]> >I got this from Joe Eckard and think it is worth sharing for anyone > else coming along. Thanks Joe. > > Switching to jetty and back is easy & painless - first you need to > edit /framework/component-load.xml to make sure the jetty component is > active and the catalina component is disabled. Then you need to make > sure the jetty config is available - you can do that by copying the > "jetty-container" section from jetty.properties into ofbiz.properties, > or copy jetty.properties to ofbiz.properties in framework/base/config, > or supply "jetty" as a command-line argument when running ofbiz. (e.g. > "java -jar ofbiz.jar jetty" - this will cause Start.java to load the > startup jetty.properties, which tells ofbiz to use > framework/base/config/jetty.properties instead of the default > framework/base/config/ofbiz.properties) > > -Al > > On Mon, Jun 4, 2012 at 4:49 AM, Al Byers <[hidden email]> wrote: >> I can't find any documentation on switching from tomcat to jetty. Is >> it as simple as just uncommenting the jetty line in >> framework/component-load.xml? >> >> Do I need to comment anything? >> >> How can I tell that jetty is running? >> >> Thanks to Joe for keeping the jetty stuff up-to-date. I see that you >> made a commit just back in March. >> >> -Al |
Jacques,
It looks like I am not registered with apache and I don't see a way to do that. Can you tell me how I can get permission to post to the cwiki? Thanks, -Al On Wed, Jun 6, 2012 at 12:41 AM, Jacques Le Roux <[hidden email]> wrote: > Thanks Al, Joe, > > Maybe this could go in > https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo > Or more likely > https://cwiki.apache.org/confluence/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide > > Jacques > > From: "Al Byers" <[hidden email]> > >> I got this from Joe Eckard and think it is worth sharing for anyone >> else coming along. Thanks Joe. >> >> Switching to jetty and back is easy & painless - first you need to >> edit /framework/component-load.xml to make sure the jetty component is >> active and the catalina component is disabled. Then you need to make >> sure the jetty config is available - you can do that by copying the >> "jetty-container" section from jetty.properties into ofbiz.properties, >> or copy jetty.properties to ofbiz.properties in framework/base/config, >> or supply "jetty" as a command-line argument when running ofbiz. (e.g. >> "java -jar ofbiz.jar jetty" - this will cause Start.java to load the >> startup jetty.properties, which tells ofbiz to use >> framework/base/config/jetty.properties instead of the default >> framework/base/config/ofbiz.properties) >> >> -Al >> >> On Mon, Jun 4, 2012 at 4:49 AM, Al Byers <[hidden email]> >> wrote: >>> >>> I can't find any documentation on switching from tomcat to jetty. Is >>> it as simple as just uncommenting the jetty line in >>> framework/component-load.xml? >>> >>> Do I need to comment anything? >>> >>> How can I tell that jetty is running? >>> >>> Thanks to Joe for keeping the jetty stuff up-to-date. I see that you >>> made a commit just back in March. >>> >>> -Al |
In reply to this post by byersa
I think things have changed in the later versions of OFBiz. See below:
On Tue, Jun 5, 2012 at 2:01 PM, Al Byers <[hidden email]> wrote: > I got this from Joe Eckard and think it is worth sharing for anyone > else coming along. Thanks Joe. > > Switching to jetty and back is easy & painless - first you need to > edit /framework/component-load.xml to make sure the jetty component is > active and the catalina component is disabled. This part was easy enough. >Then you need to make > sure the jetty config is available - you can do that by copying the > "jetty-container" section from jetty.properties into ofbiz.properties, > or copy jetty.properties to ofbiz.properties in framework/base/config, What I ended up doing was modifying the "start.properties" file with these lines: # --- Location (relative to ofbiz.home) for (normal) container configuration #ofbiz.container.config=framework/base/config/ofbiz-containers.xml ofbiz.container.config=framework/base/config/jetty-containers.xml Note the second line was already commented out. There is a default parameter in Start.java pointing to ofbiz-containers. Then I rebuilt the start package and things seemed to work. -Al > or supply "jetty" as a command-line argument when running ofbiz. (e.g. > "java -jar ofbiz.jar jetty" - this will cause Start.java to load the > startup jetty.properties, which tells ofbiz to use > framework/base/config/jetty.properties instead of the default > framework/base/config/ofbiz.properties) > > -Al > > On Mon, Jun 4, 2012 at 4:49 AM, Al Byers <[hidden email]> wrote: >> I can't find any documentation on switching from tomcat to jetty. Is >> it as simple as just uncommenting the jetty line in >> framework/component-load.xml? >> >> Do I need to comment anything? >> >> How can I tell that jetty is running? >> >> Thanks to Joe for keeping the jetty stuff up-to-date. I see that you >> made a commit just back in March. >> >> -Al |
Administrator
|
In reply to this post by byersa
Al,
If you don't expect to use it much an easier way would be to add your changes (paragrah) in a comment at the bottom of the page (the same editor is used) and then I will update it. For the FAQ it's open to everyone, but yes I guess the best place is the production guide Thanks Jacques From: "Al Byers" <[hidden email]> > Jacques, > > It looks like I am not registered with apache and I don't see a way to > do that. Can you tell me how I can get permission to post to the > cwiki? > > Thanks, > -Al > > On Wed, Jun 6, 2012 at 12:41 AM, Jacques Le Roux > <[hidden email]> wrote: >> Thanks Al, Joe, >> >> Maybe this could go in >> https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo >> Or more likely >> https://cwiki.apache.org/confluence/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide >> >> Jacques >> >> From: "Al Byers" <[hidden email]> >> >>> I got this from Joe Eckard and think it is worth sharing for anyone >>> else coming along. Thanks Joe. >>> >>> Switching to jetty and back is easy & painless - first you need to >>> edit /framework/component-load.xml to make sure the jetty component is >>> active and the catalina component is disabled. Then you need to make >>> sure the jetty config is available - you can do that by copying the >>> "jetty-container" section from jetty.properties into ofbiz.properties, >>> or copy jetty.properties to ofbiz.properties in framework/base/config, >>> or supply "jetty" as a command-line argument when running ofbiz. (e.g. >>> "java -jar ofbiz.jar jetty" - this will cause Start.java to load the >>> startup jetty.properties, which tells ofbiz to use >>> framework/base/config/jetty.properties instead of the default >>> framework/base/config/ofbiz.properties) >>> >>> -Al >>> >>> On Mon, Jun 4, 2012 at 4:49 AM, Al Byers <[hidden email]> >>> wrote: >>>> >>>> I can't find any documentation on switching from tomcat to jetty. Is >>>> it as simple as just uncommenting the jetty line in >>>> framework/component-load.xml? >>>> >>>> Do I need to comment anything? >>>> >>>> How can I tell that jetty is running? >>>> >>>> Thanks to Joe for keeping the jetty stuff up-to-date. I see that you >>>> made a commit just back in March. >>>> >>>> -Al |
Free forum by Nabble | Edit this page |