Hi all,
I know this is not probably an OFBiz related issue but I know that we have several Chinese users and maybe this can be of interest for others... I'm having issues displaying Chinese characters in the OFBiz PDF reports (invoice, order etc...) created with xsl-fo: they appear as '####'. I did some research in the Internet and the problem seems related to the font family used that doesn't include the Chinese fonts. I have tried to set a different font-family in the template's fo:root element, but unfortunately I couldn't find a font family that supports the Chinese characters (e.g. I've tried with Arial in an Ubuntu box). I've also found some instructions on how to generate an ad-hoc xml file with the necessary font family description, to be embedded in the pdf reports by FOP... but the steps were not very clear to me (especially, how to map them to the OFBiz framework). Any hints on how I can solve this issue? Thanks! Jacopo |
Jacopo Cappellato пишет:
> Hi all, > > I know this is not probably an OFBiz related issue but I know that we > have several Chinese users and maybe this can be of interest for > others... > I'm having issues displaying Chinese characters in the OFBiz PDF > reports (invoice, order etc...) created with xsl-fo: they appear as > '####'. Of course. Currently Ofbiz printing subsystem doesn't work if document uses any charsets out Latin-1. (May be work for localized readers). > I did some research in the Internet and the problem seems related to > the font family used that doesn't include the Chinese fonts. > I have tried to set a different font-family in the template's fo:root > element, but unfortunately I couldn't find a font family that supports > the Chinese characters (e.g. I've tried with Arial in an Ubuntu box). > I was searching in Google and seen many links to free Chinese fonts but if you will try use font-family that have required characters the result will be the same. You have to embed used fonts to pdf. > I've also found some instructions on how to generate an ad-hoc xml > file with the necessary font family description, to be embedded in the > pdf reports by FOP... but the steps were not very clear to me > (especially, how to map them to the OFBiz framework). > > Any hints on how I can solve this issue? Steps below apply to cyrillic fonts, but I hope Chinese too. 1. Create FOP config file. Ready for use one attached to https://issues.apache.org/jira/browse/OFBIZ-1110. 2. Create font metrics for given font. (http://xmlgraphics.apache.org/fop/0.93/fonts.html) 3. Place fonts and metrics to framework/widget/config 4. Add to fop.xconf font triplets Example from my config <renderer mime="application/pdf"> <fonts> <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf"> <font-triplet name="Arial" style="normal" weight="normal"/> <font-triplet name="ArialMT" style="normal" weight="normal"/> </font> <font metrics-url="arialbd.xml" kerning="yes" embed-url="arialbd.ttf"> <font-triplet name="Arial" style="normal" weight="bold"/> <font-triplet name="ArialMT" style="normal" weight="bold"/> </font> <font metrics-url="ariali.xml" kerning="yes" embed-url="ariali.ttf"> <font-triplet name="Arial" style="italic" weight="normal"/> <font-triplet name="ArialMT" style="italic" weight="normal"/> </font> <font metrics-url="arialbi.xml" kerning="yes" embed-url="arialbi.ttf"> <font-triplet name="Arial" style="italic" weight="bold"/> <font-triplet name="ArialMT" style="italic" weight="bold"/> </font> </fonts> </renderer> 5. Modify fo.ftl to use font-family="Arial" Oleg |
I will try this later, in my chinese OS :) thank you!
2007/8/10, Oleg Andreyev <[hidden email]>: > Jacopo Cappellato пишет: > > Hi all, > > > > I know this is not probably an OFBiz related issue but I know that we > > have several Chinese users and maybe this can be of interest for > > others... > > I'm having issues displaying Chinese characters in the OFBiz PDF > > reports (invoice, order etc...) created with xsl-fo: they appear as > > '####'. > Of course. Currently Ofbiz printing subsystem doesn't work if document > uses any charsets out Latin-1. (May be work for localized readers). > > I did some research in the Internet and the problem seems related to > > the font family used that doesn't include the Chinese fonts. > > I have tried to set a different font-family in the template's fo:root > > element, but unfortunately I couldn't find a font family that supports > > the Chinese characters (e.g. I've tried with Arial in an Ubuntu box). > > > I was searching in Google and seen many links to free Chinese fonts but > if you will try use font-family that have required characters the result > will be the same. You have to embed used fonts to pdf. > > I've also found some instructions on how to generate an ad-hoc xml > > file with the necessary font family description, to be embedded in the > > pdf reports by FOP... but the steps were not very clear to me > > (especially, how to map them to the OFBiz framework). > > > > Any hints on how I can solve this issue? > Steps below apply to cyrillic fonts, but I hope Chinese too. > 1. Create FOP config file. Ready for use one attached to > https://issues.apache.org/jira/browse/OFBIZ-1110. > 2. Create font metrics for given font. > (http://xmlgraphics.apache.org/fop/0.93/fonts.html) > 3. Place fonts and metrics to framework/widget/config > 4. Add to fop.xconf font triplets > Example from my config > > <renderer mime="application/pdf"> > <fonts> > <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf"> > <font-triplet name="Arial" style="normal" weight="normal"/> > <font-triplet name="ArialMT" style="normal" weight="normal"/> > </font> > <font metrics-url="arialbd.xml" kerning="yes" embed-url="arialbd.ttf"> > <font-triplet name="Arial" style="normal" weight="bold"/> > <font-triplet name="ArialMT" style="normal" weight="bold"/> > </font> > <font metrics-url="ariali.xml" kerning="yes" embed-url="ariali.ttf"> > <font-triplet name="Arial" style="italic" weight="normal"/> > <font-triplet name="ArialMT" style="italic" weight="normal"/> > </font> > <font metrics-url="arialbi.xml" kerning="yes" embed-url="arialbi.ttf"> > <font-triplet name="Arial" style="italic" weight="bold"/> > <font-triplet name="ArialMT" style="italic" weight="bold"/> > </font> > </fonts> > </renderer> > 5. Modify fo.ftl to use font-family="Arial" > > Oleg > > |
It works in Chinese, thanks Oleg.
2007/8/10, guo weizhan <[hidden email]>: > I will try this later, in my chinese OS :) thank you! > > 2007/8/10, Oleg Andreyev <[hidden email]>: > > Jacopo Cappellato пишет: > > > Hi all, > > > > > > I know this is not probably an OFBiz related issue but I know that we > > > have several Chinese users and maybe this can be of interest for > > > others... > > > I'm having issues displaying Chinese characters in the OFBiz PDF > > > reports (invoice, order etc...) created with xsl-fo: they appear as > > > '####'. > > Of course. Currently Ofbiz printing subsystem doesn't work if document > > uses any charsets out Latin-1. (May be work for localized readers). > > > I did some research in the Internet and the problem seems related to > > > the font family used that doesn't include the Chinese fonts. > > > I have tried to set a different font-family in the template's fo:root > > > element, but unfortunately I couldn't find a font family that supports > > > the Chinese characters (e.g. I've tried with Arial in an Ubuntu box). > > > > > I was searching in Google and seen many links to free Chinese fonts but > > if you will try use font-family that have required characters the result > > will be the same. You have to embed used fonts to pdf. > > > I've also found some instructions on how to generate an ad-hoc xml > > > file with the necessary font family description, to be embedded in the > > > pdf reports by FOP... but the steps were not very clear to me > > > (especially, how to map them to the OFBiz framework). > > > > > > Any hints on how I can solve this issue? > > Steps below apply to cyrillic fonts, but I hope Chinese too. > > 1. Create FOP config file. Ready for use one attached to > > https://issues.apache.org/jira/browse/OFBIZ-1110. > > 2. Create font metrics for given font. > > (http://xmlgraphics.apache.org/fop/0.93/fonts.html) > > 3. Place fonts and metrics to framework/widget/config > > 4. Add to fop.xconf font triplets > > Example from my config > > > > <renderer mime="application/pdf"> > > <fonts> > > <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf"> > > <font-triplet name="Arial" style="normal" weight="normal"/> > > <font-triplet name="ArialMT" style="normal" weight="normal"/> > > </font> > > <font metrics-url="arialbd.xml" kerning="yes" embed-url="arialbd.ttf"> > > <font-triplet name="Arial" style="normal" weight="bold"/> > > <font-triplet name="ArialMT" style="normal" weight="bold"/> > > </font> > > <font metrics-url="ariali.xml" kerning="yes" embed-url="ariali.ttf"> > > <font-triplet name="Arial" style="italic" weight="normal"/> > > <font-triplet name="ArialMT" style="italic" weight="normal"/> > > </font> > > <font metrics-url="arialbi.xml" kerning="yes" embed-url="arialbi.ttf"> > > <font-triplet name="Arial" style="italic" weight="bold"/> > > <font-triplet name="ArialMT" style="italic" weight="bold"/> > > </font> > > </fonts> > > </renderer> > > 5. Modify fo.ftl to use font-family="Arial" > > > > Oleg > > > > > |
In reply to this post by Oleg Andreyev
Oleg,
first of all, thanks for your notes. I did what you have suggested (even if I just created the "normal" Arial font metrics, not the ones for bold and italics); now I can see in the PDF two small boxes instead of the ## characters... unfortunately I still can't see ideograms :-( Do you have any ideas about this issue? Jacopo Oleg Andreyev wrote: > Jacopo Cappellato пишет: >> Hi all, >> >> I know this is not probably an OFBiz related issue but I know that we >> have several Chinese users and maybe this can be of interest for >> others... >> I'm having issues displaying Chinese characters in the OFBiz PDF >> reports (invoice, order etc...) created with xsl-fo: they appear as >> '####'. > Of course. Currently Ofbiz printing subsystem doesn't work if document > uses any charsets out Latin-1. (May be work for localized readers). >> I did some research in the Internet and the problem seems related to >> the font family used that doesn't include the Chinese fonts. >> I have tried to set a different font-family in the template's fo:root >> element, but unfortunately I couldn't find a font family that supports >> the Chinese characters (e.g. I've tried with Arial in an Ubuntu box). >> > I was searching in Google and seen many links to free Chinese fonts but > if you will try use font-family that have required characters the result > will be the same. You have to embed used fonts to pdf. >> I've also found some instructions on how to generate an ad-hoc xml >> file with the necessary font family description, to be embedded in the >> pdf reports by FOP... but the steps were not very clear to me >> (especially, how to map them to the OFBiz framework). >> >> Any hints on how I can solve this issue? > Steps below apply to cyrillic fonts, but I hope Chinese too. > 1. Create FOP config file. Ready for use one attached to > https://issues.apache.org/jira/browse/OFBIZ-1110. > 2. Create font metrics for given font. > (http://xmlgraphics.apache.org/fop/0.93/fonts.html) > 3. Place fonts and metrics to framework/widget/config > 4. Add to fop.xconf font triplets > Example from my config > > <renderer mime="application/pdf"> > <fonts> > <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf"> > <font-triplet name="Arial" style="normal" weight="normal"/> > <font-triplet name="ArialMT" style="normal" weight="normal"/> > </font> > <font metrics-url="arialbd.xml" kerning="yes" embed-url="arialbd.ttf"> > <font-triplet name="Arial" style="normal" weight="bold"/> > <font-triplet name="ArialMT" style="normal" weight="bold"/> > </font> > <font metrics-url="ariali.xml" kerning="yes" embed-url="ariali.ttf"> > <font-triplet name="Arial" style="italic" weight="normal"/> > <font-triplet name="ArialMT" style="italic" weight="normal"/> > </font> > <font metrics-url="arialbi.xml" kerning="yes" embed-url="arialbi.ttf"> > <font-triplet name="Arial" style="italic" weight="bold"/> > <font-triplet name="ArialMT" style="italic" weight="bold"/> > </font> > </fonts> > </renderer> > 5. Modify fo.ftl to use font-family="Arial" > > Oleg |
Hi All,
Is it possible to have a deployment configuration where Apache web server being used to route request to the web container? How to deploy an OfBiz application within an Application Server? Thanks in advanced. Mathius --------------------------------- Pinpoint customers who are looking for what you sell. |
Yes, it is possible. You can use the *mod_jk* Tomcat-Apache plug-in that
handles the communication between Tomcat and Apache. You can refer the link http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html This way you can route request to the web container. Regards, Gautam Deb On 8/12/07, Mathius Allo <[hidden email]> wrote: > > Hi All, > > Is it possible to have a deployment configuration where Apache web > server being used to route request to the web container? > > How to deploy an OfBiz application within an Application Server? > > Thanks in advanced. > Mathius > > > --------------------------------- > Pinpoint customers who are looking for what you sell. |
In reply to this post by Jacopo Cappellato
there can be many things that effect this.
first is if they pdf is creating the correct code-set for the character. Second is if the Language is selected for the OS. third is if the fonts sets that support that language are loaded. Jacopo Cappellato sent the following on 8/9/2007 12:53 AM: > Hi all, > > I know this is not probably an OFBiz related issue but I know that we > have several Chinese users and maybe this can be of interest for others... > I'm having issues displaying Chinese characters in the OFBiz PDF reports > (invoice, order etc...) created with xsl-fo: they appear as '####'. > > I did some research in the Internet and the problem seems related to the > font family used that doesn't include the Chinese fonts. > I have tried to set a different font-family in the template's fo:root > element, but unfortunately I couldn't find a font family that supports > the Chinese characters (e.g. I've tried with Arial in an Ubuntu box). > > I've also found some instructions on how to generate an ad-hoc xml file > with the necessary font family description, to be embedded in the pdf > reports by FOP... but the steps were not very clear to me (especially, > how to map them to the OFBiz framework). > > Any hints on how I can solve this issue? > > Thanks! > > Jacopo > > > > > > > |
In reply to this post by Jacopo Cappellato
Jacopo,
Currently I have no own suggestions but let me attract your attention to these quotations: 6.2. Some characters are not displayed, or displayed incorrectly, or displayed as “#”. This usually means the selected font doesn't have a glyph for the character. The standard text fonts supplied with Acrobat Reader have mostly glyphs for characters from the ISO Latin 1 character set. For a variety of reasons, even those are not completely guaranteed to work, for example you can't use the fi ligature from the standard serif font. Check the overview for the default PDF fonts. If you use your own fonts, the font must have a glyph for the desired character. Furthermore the font must be available on the machine where the PDF is viewed or it must have been embedded in the PDF file. See embedding fonts. For most symbols, it is better to select the symbol font explicitely, for example in order to get the symbol for the mathematical empty set, write: <fo:inline font-family="Symbol">∅</fo:inline> The "#" shows up if the selected font does not define a glyph for the required character, for example if you try: <fo:inline font-family="Helvetica">∅</fo:inline> and The "Symbol" and "ZapfDingbats" fonts, however, currently present a problem because FOP cannot correctly determine the encoding of these two single-byte fonts through the PFM file. FOP now correctly interprets the "encoding" value in the XML font metrics file, but the PFMReader application writes "UnknownEncoding" to the generated XML file. In order to embed "Symbol" and "ZapfDingbats" you have to manually change the XML font metrics file and specify "SymbolEncoding" or "ZapfdingbatsEncoding" encoding respectively as the value for the "encoding" element. Example: <?xml version="1.0" encoding="UTF-8"?> <font-metrics type="TYPE1"> <font-name>Symbol</font-name> <embed/> <encoding>SymbolEncoding</encoding> <cap-height>673</cap-height> <x-height>766</x-height> I will try reproduce this problem and work on it but I really don't know when. Jacopo Cappellato пишет: > Oleg, > > first of all, thanks for your notes. > I did what you have suggested (even if I just created the "normal" > Arial font metrics, not the ones for bold and italics); now I can see > in the PDF two small boxes instead of the ## characters... > unfortunately I still can't see ideograms :-( > > Do you have any ideas about this issue? > > Jacopo > > Oleg Andreyev wrote: >> Jacopo Cappellato пишет: >>> Hi all, >>> >>> I know this is not probably an OFBiz related issue but I know that >>> we have several Chinese users and maybe this can be of interest for >>> others... >>> I'm having issues displaying Chinese characters in the OFBiz PDF >>> reports (invoice, order etc...) created with xsl-fo: they appear as >>> '####'. >> Of course. Currently Ofbiz printing subsystem doesn't work if >> document uses any charsets out Latin-1. (May be work for localized >> readers). >>> I did some research in the Internet and the problem seems related to >>> the font family used that doesn't include the Chinese fonts. >>> I have tried to set a different font-family in the template's >>> fo:root element, but unfortunately I couldn't find a font family >>> that supports the Chinese characters (e.g. I've tried with Arial in >>> an Ubuntu box). >>> >> I was searching in Google and seen many links to free Chinese fonts >> but if you will try use font-family that have required characters the >> result will be the same. You have to embed used fonts to pdf. >>> I've also found some instructions on how to generate an ad-hoc xml >>> file with the necessary font family description, to be embedded in >>> the pdf reports by FOP... but the steps were not very clear to me >>> (especially, how to map them to the OFBiz framework). >>> >>> Any hints on how I can solve this issue? >> Steps below apply to cyrillic fonts, but I hope Chinese too. >> 1. Create FOP config file. Ready for use one attached to >> https://issues.apache.org/jira/browse/OFBIZ-1110. >> 2. Create font metrics for given font. >> (http://xmlgraphics.apache.org/fop/0.93/fonts.html) >> 3. Place fonts and metrics to framework/widget/config >> 4. Add to fop.xconf font triplets >> Example from my config >> >> <renderer mime="application/pdf"> >> <fonts> >> <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf"> >> <font-triplet name="Arial" style="normal" weight="normal"/> >> <font-triplet name="ArialMT" style="normal" weight="normal"/> >> </font> >> <font metrics-url="arialbd.xml" kerning="yes" embed-url="arialbd.ttf"> >> <font-triplet name="Arial" style="normal" weight="bold"/> >> <font-triplet name="ArialMT" style="normal" weight="bold"/> >> </font> >> <font metrics-url="ariali.xml" kerning="yes" embed-url="ariali.ttf"> >> <font-triplet name="Arial" style="italic" weight="normal"/> >> <font-triplet name="ArialMT" style="italic" weight="normal"/> >> </font> >> <font metrics-url="arialbi.xml" kerning="yes" embed-url="arialbi.ttf"> >> <font-triplet name="Arial" style="italic" weight="bold"/> >> <font-triplet name="ArialMT" style="italic" weight="bold"/> >> </font> >> </fonts> >> </renderer> >> 5. Modify fo.ftl to use font-family="Arial" >> >> Oleg > > > |
In reply to this post by BJ Freeman
I can see the right characters in the html page, but not in the PDF page...
Jacopo BJ Freeman wrote: > there can be many things that effect this. > first is if they pdf is creating the correct code-set for the character. > Second is if the Language is selected for the OS. > third is if the fonts sets that support that language are loaded. > > > Jacopo Cappellato sent the following on 8/9/2007 12:53 AM: >> Hi all, >> >> I know this is not probably an OFBiz related issue but I know that we >> have several Chinese users and maybe this can be of interest for others... >> I'm having issues displaying Chinese characters in the OFBiz PDF reports >> (invoice, order etc...) created with xsl-fo: they appear as '####'. >> >> I did some research in the Internet and the problem seems related to the >> font family used that doesn't include the Chinese fonts. >> I have tried to set a different font-family in the template's fo:root >> element, but unfortunately I couldn't find a font family that supports >> the Chinese characters (e.g. I've tried with Arial in an Ubuntu box). >> >> I've also found some instructions on how to generate an ad-hoc xml file >> with the necessary font family description, to be embedded in the pdf >> reports by FOP... but the steps were not very clear to me (especially, >> how to map them to the OFBiz framework). >> >> Any hints on how I can solve this issue? >> >> Thanks! >> >> Jacopo >> >> >> >> >> >> >> |
In reply to this post by Gautam Deb-2
mod_proxy_ajp is another way of doing it with Apache 2.2.x. It is far
simpler than mod_jk. Thanks, Raj Gautam Deb wrote: > Yes, it is possible. You can use the *mod_jk* Tomcat-Apache plug-in that > handles the communication between Tomcat and Apache. You can refer the link > http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html > > This way you can route request to the web container. > > Regards, > Gautam Deb > > On 8/12/07, Mathius Allo <[hidden email]> wrote: > >> Hi All, >> >> Is it possible to have a deployment configuration where Apache web >> server being used to route request to the web container? >> >> How to deploy an OfBiz application within an Application Server? >> >> Thanks in advanced. >> Mathius >> >> >> --------------------------------- >> Pinpoint customers who are looking for what you sell. >> > > |
Administrator
|
From this blog I'm not sure it's the good solution yet. Do you have valuable experience with it ?
http://getahead.org/blog/joe/2006/02/01/mod_jk_is_dead_long_live_mod_proxy_ajp.html Jacques PS : though this links seem good points : http://confluence.atlassian.com/display/DOC/Running+Confluence+behind+Apache#comment-16121884 http://lenya.apache.org/docs/2_0_x/tutorials/mod_proxy_ajp.html De : "Raj Saini" <[hidden email]> > mod_proxy_ajp is another way of doing it with Apache 2.2.x. It is far > simpler than mod_jk. > > Thanks, > > Raj > Gautam Deb wrote: > > Yes, it is possible. You can use the *mod_jk* Tomcat-Apache plug-in that > > handles the communication between Tomcat and Apache. You can refer the link > > http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html > > > > This way you can route request to the web container. > > > > Regards, > > Gautam Deb > > > > On 8/12/07, Mathius Allo <[hidden email]> wrote: > > > >> Hi All, > >> > >> Is it possible to have a deployment configuration where Apache web > >> server being used to route request to the web container? > >> > >> How to deploy an OfBiz application within an Application Server? > >> > >> Thanks in advanced. > >> Mathius > >> > >> > >> --------------------------------- > >> Pinpoint customers who are looking for what you sell. > >> > > > > |
In reply to this post by Jacopo Cappellato
sounds like something in the pdf code is effecting what it put in the
output file. I did a google on pdf output not chinesses there are hits that explain this bug Jacopo Cappellato sent the following on 8/12/2007 10:52 AM: > I can see the right characters in the html page, but not in the PDF page... > > Jacopo > > BJ Freeman wrote: >> there can be many things that effect this. >> first is if they pdf is creating the correct code-set for the character. >> Second is if the Language is selected for the OS. >> third is if the fonts sets that support that language are loaded. >> >> >> Jacopo Cappellato sent the following on 8/9/2007 12:53 AM: >>> Hi all, >>> >>> I know this is not probably an OFBiz related issue but I know that we >>> have several Chinese users and maybe this can be of interest for >>> others... >>> I'm having issues displaying Chinese characters in the OFBiz PDF reports >>> (invoice, order etc...) created with xsl-fo: they appear as '####'. >>> >>> I did some research in the Internet and the problem seems related to the >>> font family used that doesn't include the Chinese fonts. >>> I have tried to set a different font-family in the template's fo:root >>> element, but unfortunately I couldn't find a font family that supports >>> the Chinese characters (e.g. I've tried with Arial in an Ubuntu box). >>> >>> I've also found some instructions on how to generate an ad-hoc xml file >>> with the necessary font family description, to be embedded in the pdf >>> reports by FOP... but the steps were not very clear to me (especially, >>> how to map them to the OFBiz framework). >>> >>> Any hints on how I can solve this issue? >>> >>> Thanks! >>> >>> Jacopo >>> >>> >>> >>> >>> >>> >>> > > > > |
In reply to this post by Jacques Le Roux
Yes, I have configured our Ofbiz + Apache HTTP 2.2 with mod_ajp_proxy.
You will need to enable proxy for httpd and mod_proxy_ajp within your virtual hosts. I am doing it Debian way. For a standard httpd.conf following should work: 1. Enable mod_proxy and mod_proxy_ajp modules in the Apache. 2. Somewhere in the global part of httpd.conf -------------------------------------------------- #turning ProxyRequests on and allowing proxying from all may allow #spammers to use your proxy to send email. ProxyRequests Off <Proxy *> AddDefaultCharset off Order deny,allow Allow from all #Allow from .example.com </Proxy> # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block ProxyVia On 3. Inside your virtual host config ----------------------------------- ProxyPreserveHost On proxyPass / ajp://localhost:8009/ RewriteEngine On RewriteRule ^/(images/.+);jsessionid=\w+$ /$1 That is it you need to make it work. Thanks, Raj Jacques Le Roux wrote: > >From this blog I'm not sure it's the good solution yet. Do you have valuable experience with it ? > > http://getahead.org/blog/joe/2006/02/01/mod_jk_is_dead_long_live_mod_proxy_ajp.html > > Jacques > > PS : though this links seem good points : > http://confluence.atlassian.com/display/DOC/Running+Confluence+behind+Apache#comment-16121884 > http://lenya.apache.org/docs/2_0_x/tutorials/mod_proxy_ajp.html > > De : "Raj Saini" <[hidden email]> > >> mod_proxy_ajp is another way of doing it with Apache 2.2.x. It is far >> simpler than mod_jk. >> >> Thanks, >> >> Raj >> Gautam Deb wrote: >> >>> Yes, it is possible. You can use the *mod_jk* Tomcat-Apache plug-in that >>> handles the communication between Tomcat and Apache. You can refer the link >>> http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html >>> >>> This way you can route request to the web container. >>> >>> Regards, >>> Gautam Deb >>> >>> On 8/12/07, Mathius Allo <[hidden email]> wrote: >>> >>> >>>> Hi All, >>>> >>>> Is it possible to have a deployment configuration where Apache web >>>> server being used to route request to the web container? >>>> >>>> How to deploy an OfBiz application within an Application Server? >>>> >>>> Thanks in advanced. >>>> Mathius >>>> >>>> >>>> --------------------------------- >>>> Pinpoint customers who are looking for what you sell. >>>> >>>> >>> > > |
Thanks a lot Raj,
I think I will try it soon and hopefully put your tip in "my" FAQ on Confluence ! It's clearly far easier than mod_jk and moreover if it's faster then it should be the new way of doing that... Jacques De : "Raj Saini" <[hidden email]> > Yes, I have configured our Ofbiz + Apache HTTP 2.2 with mod_ajp_proxy. > You will need to enable proxy for httpd and mod_proxy_ajp within your > virtual hosts. I am doing it Debian way. For a standard httpd.conf > following should work: > > 1. Enable mod_proxy and mod_proxy_ajp modules in the Apache. > > 2. Somewhere in the global part of httpd.conf > -------------------------------------------------- > #turning ProxyRequests on and allowing proxying from all may allow > #spammers to use your proxy to send email. > > ProxyRequests Off > > <Proxy *> > AddDefaultCharset off > Order deny,allow > Allow from all > #Allow from .example.com > </Proxy> > > # Enable/disable the handling of HTTP/1.1 "Via:" headers. > # ("Full" adds the server version; "Block" removes all outgoing > Via: headers) > # Set to one of: Off | On | Full | Block > > ProxyVia On > > 3. Inside your virtual host config > ----------------------------------- > ProxyPreserveHost On > proxyPass / ajp://localhost:8009/ > RewriteEngine On > RewriteRule ^/(images/.+);jsessionid=\w+$ /$1 > > That is it you need to make it work. > > Thanks, > > Raj > > Jacques Le Roux wrote: > > >From this blog I'm not sure it's the good solution yet. Do you have valuable experience with it ? > > > > http://getahead.org/blog/joe/2006/02/01/mod_jk_is_dead_long_live_mod_proxy_ajp.html > > > > Jacques > > > > PS : though this links seem good points : > > http://confluence.atlassian.com/display/DOC/Running+Confluence+behind+Apache#comment-16121884 > > http://lenya.apache.org/docs/2_0_x/tutorials/mod_proxy_ajp.html > > > > De : "Raj Saini" <[hidden email]> > > > >> mod_proxy_ajp is another way of doing it with Apache 2.2.x. It is far > >> simpler than mod_jk. > >> > >> Thanks, > >> > >> Raj > >> Gautam Deb wrote: > >> > >>> Yes, it is possible. You can use the *mod_jk* Tomcat-Apache plug-in that > >>> handles the communication between Tomcat and Apache. You can refer the link > >>> http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html > >>> > >>> This way you can route request to the web container. > >>> > >>> Regards, > >>> Gautam Deb > >>> > >>> On 8/12/07, Mathius Allo <[hidden email]> wrote: > >>> > >>> > >>>> Hi All, > >>>> > >>>> Is it possible to have a deployment configuration where Apache web > >>>> server being used to route request to the web container? > >>>> > >>>> How to deploy an OfBiz application within an Application Server? > >>>> > >>>> Thanks in advanced. > >>>> Mathius > >>>> > >>>> > >>>> --------------------------------- > >>>> Pinpoint customers who are looking for what you sell. > >>>> > >>>> > >>> > > > > |
In reply to this post by Oleg Andreyev
Oleg,
thanks for all the valuable information. I've finally managed to make it work using the SimHei font; it doesn't work with the Arial font. I really don't know why but for now it is perfectly fine for me to use the SimHei font. Thanks! Jacopo Oleg Andreyev wrote: > Jacopo, > > Currently I have no own suggestions but let me attract your attention to > these quotations: > > 6.2. Some characters are not displayed, or displayed incorrectly, or > displayed as “#”. > This usually means the selected font doesn't have a glyph for the > character. The standard text fonts supplied with Acrobat Reader have > mostly glyphs for characters from the ISO Latin 1 character set. For a > variety of reasons, even those are not completely guaranteed to work, > for example you can't use the fi ligature from the standard serif font. > Check the overview for the default PDF fonts. > > If you use your own fonts, the font must have a glyph for the desired > character. Furthermore the font must be available on the machine where > the PDF is viewed or it must have been embedded in the PDF file. See > embedding fonts. > > For most symbols, it is better to select the symbol font explicitely, > for example in order to get the symbol for the mathematical empty set, > write: > <fo:inline font-family="Symbol">∅</fo:inline> > The "#" shows up if the selected font does not define a glyph for the > required character, for example if you try: > <fo:inline font-family="Helvetica">∅</fo:inline> > > and > > > The "Symbol" and "ZapfDingbats" fonts, however, currently present a > problem because FOP cannot correctly determine the encoding of > these two single-byte fonts through the PFM file. FOP now correctly > interprets the "encoding" value in the XML font metrics file, but the > PFMReader application writes "UnknownEncoding" to the generated XML > file. In order to embed "Symbol" and "ZapfDingbats" you have to > manually change the XML font metrics file and specify "SymbolEncoding" > or "ZapfdingbatsEncoding" encoding respectively as the value for the > "encoding" element. > Example: > <?xml version="1.0" encoding="UTF-8"?> > <font-metrics type="TYPE1"> > <font-name>Symbol</font-name> > <embed/> > <encoding>SymbolEncoding</encoding> > <cap-height>673</cap-height> > <x-height>766</x-height> > > I will try reproduce this problem and work on it but I really don't know > when. > > > > Jacopo Cappellato пишет: >> Oleg, >> >> first of all, thanks for your notes. >> I did what you have suggested (even if I just created the "normal" >> Arial font metrics, not the ones for bold and italics); now I can see >> in the PDF two small boxes instead of the ## characters... >> unfortunately I still can't see ideograms :-( >> >> Do you have any ideas about this issue? >> >> Jacopo >> >> Oleg Andreyev wrote: >>> Jacopo Cappellato пишет: >>>> Hi all, >>>> >>>> I know this is not probably an OFBiz related issue but I know that >>>> we have several Chinese users and maybe this can be of interest for >>>> others... >>>> I'm having issues displaying Chinese characters in the OFBiz PDF >>>> reports (invoice, order etc...) created with xsl-fo: they appear as >>>> '####'. >>> Of course. Currently Ofbiz printing subsystem doesn't work if >>> document uses any charsets out Latin-1. (May be work for localized >>> readers). >>>> I did some research in the Internet and the problem seems related to >>>> the font family used that doesn't include the Chinese fonts. >>>> I have tried to set a different font-family in the template's >>>> fo:root element, but unfortunately I couldn't find a font family >>>> that supports the Chinese characters (e.g. I've tried with Arial in >>>> an Ubuntu box). >>>> >>> I was searching in Google and seen many links to free Chinese fonts >>> but if you will try use font-family that have required characters the >>> result will be the same. You have to embed used fonts to pdf. >>>> I've also found some instructions on how to generate an ad-hoc xml >>>> file with the necessary font family description, to be embedded in >>>> the pdf reports by FOP... but the steps were not very clear to me >>>> (especially, how to map them to the OFBiz framework). >>>> >>>> Any hints on how I can solve this issue? >>> Steps below apply to cyrillic fonts, but I hope Chinese too. >>> 1. Create FOP config file. Ready for use one attached to >>> https://issues.apache.org/jira/browse/OFBIZ-1110. >>> 2. Create font metrics for given font. >>> (http://xmlgraphics.apache.org/fop/0.93/fonts.html) >>> 3. Place fonts and metrics to framework/widget/config >>> 4. Add to fop.xconf font triplets >>> Example from my config >>> >>> <renderer mime="application/pdf"> >>> <fonts> >>> <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf"> >>> <font-triplet name="Arial" style="normal" weight="normal"/> >>> <font-triplet name="ArialMT" style="normal" weight="normal"/> >>> </font> >>> <font metrics-url="arialbd.xml" kerning="yes" embed-url="arialbd.ttf"> >>> <font-triplet name="Arial" style="normal" weight="bold"/> >>> <font-triplet name="ArialMT" style="normal" weight="bold"/> >>> </font> >>> <font metrics-url="ariali.xml" kerning="yes" embed-url="ariali.ttf"> >>> <font-triplet name="Arial" style="italic" weight="normal"/> >>> <font-triplet name="ArialMT" style="italic" weight="normal"/> >>> </font> >>> <font metrics-url="arialbi.xml" kerning="yes" embed-url="arialbi.ttf"> >>> <font-triplet name="Arial" style="italic" weight="bold"/> >>> <font-triplet name="ArialMT" style="italic" weight="bold"/> >>> </font> >>> </fonts> >>> </renderer> >>> 5. Modify fo.ftl to use font-family="Arial" >>> >>> Oleg >> >> >> > |
In reply to this post by rajsaini
Hi Raj,
I have tried to configure it using mod_proxy_ajp. The only changes that I made is to add the following line into proxy_ajp.conf under /etc/httpd/conf.d/ (i'm using FC5): LoadModule proxy_ajp_module modules/mod_proxy_ajp.so ProxyPass / ajp://localhost:8009 This seems to be working for non-ssl. I can access my module in the following: http://www.mallo.com/customer/ apache & tomcat access_log indicates that everything is ok. However, when trying to access modules that require ssl port ":8443" appears automatically the URL (https://www.mallo.com:8443/project/control/main) and I noticed the following in the apache access_log: 192.168.1.65 - - [18/Aug/2007:20:49:13 +0800] "GET /project/control/main?externalLoginKey=EL994157896198 HTTP/1.1" 302 - "http://www.mallo.com/customer/control/editCustomer?customerId=10000" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070417 Fedora/2.0.0.3-4.fc7 Firefox/2.0.0.3" After the above message, accessing non-ssl module does not seems to go through apache (even though I don't see :8080 in the URL) as I don't see any entry in the apache access_log. Any idea on how to make it work for https? Thanks, Mathius Allo Raj Saini <[hidden email]> wrote: Yes, I have configured our Ofbiz + Apache HTTP 2.2 with mod_ajp_proxy. You will need to enable proxy for httpd and mod_proxy_ajp within your virtual hosts. I am doing it Debian way. For a standard httpd.conf following should work: 1. Enable mod_proxy and mod_proxy_ajp modules in the Apache. 2. Somewhere in the global part of httpd.conf -------------------------------------------------- #turning ProxyRequests on and allowing proxying from all may allow #spammers to use your proxy to send email. ProxyRequests Off AddDefaultCharset off Order deny,allow Allow from all #Allow from .example.com # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block ProxyVia On 3. Inside your virtual host config ----------------------------------- ProxyPreserveHost On proxyPass / ajp://localhost:8009/ RewriteEngine On RewriteRule ^/(images/.+);jsessionid=\w+$ /$1 That is it you need to make it work. Thanks, Raj Jacques Le Roux wrote: > >From this blog I'm not sure it's the good solution yet. Do you have valuable experience with it ? > > http://getahead.org/blog/joe/2006/02/01/mod_jk_is_dead_long_live_mod_proxy_ajp.html > > Jacques > > PS : though this links seem good points : > http://confluence.atlassian.com/display/DOC/Running+Confluence+behind+Apache#comment-16121884 > http://lenya.apache.org/docs/2_0_x/tutorials/mod_proxy_ajp.html > > De : "Raj Saini" > >> mod_proxy_ajp is another way of doing it with Apache 2.2.x. It is far >> simpler than mod_jk. >> >> Thanks, >> >> Raj >> Gautam Deb wrote: >> >>> Yes, it is possible. You can use the *mod_jk* Tomcat-Apache plug-in that >>> handles the communication between Tomcat and Apache. You can refer the link >>> http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html >>> >>> This way you can route request to the web container. >>> >>> Regards, >>> Gautam Deb >>> >>> On 8/12/07, Mathius Allo wrote: >>> >>> >>>> Hi All, >>>> >>>> Is it possible to have a deployment configuration where Apache web >>>> server being used to route request to the web container? >>>> >>>> How to deploy an OfBiz application within an Application Server? >>>> >>>> Thanks in advanced. >>>> Mathius >>>> >>>> >>>> --------------------------------- >>>> Pinpoint customers who are looking for what you sell. >>>> >>>> >>> > > --------------------------------- Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. |
Hi Mathius,
You will need to fine tune your settings in the url.properties file. For ecommerce, you can do that in the web site under content tab. Thanks, Raj Mathius Allo wrote: > Hi Raj, > > I have tried to configure it using mod_proxy_ajp. The only changes that I made is to add the following line into proxy_ajp.conf under /etc/httpd/conf.d/ (i'm using FC5): > LoadModule proxy_ajp_module modules/mod_proxy_ajp.so > > ProxyPass / ajp://localhost:8009 > > This seems to be working for non-ssl. I can access my module in the following: > http://www.mallo.com/customer/ > apache & tomcat access_log indicates that everything is ok. > > However, when trying to access modules that require ssl port ":8443" appears automatically the URL (https://www.mallo.com:8443/project/control/main) and I noticed the following in the apache access_log: > 192.168.1.65 - - [18/Aug/2007:20:49:13 +0800] "GET /project/control/main?externalLoginKey=EL994157896198 HTTP/1.1" 302 - "http://www.mallo.com/customer/control/editCustomer?customerId=10000" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070417 Fedora/2.0.0.3-4.fc7 Firefox/2.0.0.3" > > After the above message, accessing non-ssl module does not seems to go through apache (even though I don't see :8080 in the URL) as I don't see any entry in the apache access_log. > > Any idea on how to make it work for https? > > Thanks, > Mathius Allo > > Raj Saini <[hidden email]> wrote: Yes, I have configured our Ofbiz + Apache HTTP 2.2 with mod_ajp_proxy. > You will need to enable proxy for httpd and mod_proxy_ajp within your > virtual hosts. I am doing it Debian way. For a standard httpd.conf > following should work: > > 1. Enable mod_proxy and mod_proxy_ajp modules in the Apache. > > 2. Somewhere in the global part of httpd.conf > -------------------------------------------------- > #turning ProxyRequests on and allowing proxying from all may allow > #spammers to use your proxy to send email. > > ProxyRequests Off > > > > AddDefaultCharset off > Order deny,allow > Allow from all > #Allow from .example.com > > > > # Enable/disable the handling of HTTP/1.1 "Via:" headers. > # ("Full" adds the server version; "Block" removes all outgoing > Via: headers) > # Set to one of: Off | On | Full | Block > > ProxyVia On > > 3. Inside your virtual host config > ----------------------------------- > ProxyPreserveHost On > proxyPass / ajp://localhost:8009/ > RewriteEngine On > RewriteRule ^/(images/.+);jsessionid=\w+$ /$1 > > That is it you need to make it work. > > Thanks, > > Raj > > Jacques Le Roux wrote: > >> >From this blog I'm not sure it's the good solution yet. Do you have valuable experience with it ? >> >> http://getahead.org/blog/joe/2006/02/01/mod_jk_is_dead_long_live_mod_proxy_ajp.html >> >> Jacques >> >> PS : though this links seem good points : >> http://confluence.atlassian.com/display/DOC/Running+Confluence+behind+Apache#comment-16121884 >> http://lenya.apache.org/docs/2_0_x/tutorials/mod_proxy_ajp.html >> >> De : "Raj Saini" >> >> >>> mod_proxy_ajp is another way of doing it with Apache 2.2.x. It is far >>> simpler than mod_jk. >>> >>> Thanks, >>> >>> Raj >>> Gautam Deb wrote: >>> >>> >>>> Yes, it is possible. You can use the *mod_jk* Tomcat-Apache plug-in that >>>> handles the communication between Tomcat and Apache. You can refer the link >>>> http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html >>>> >>>> This way you can route request to the web container. >>>> >>>> Regards, >>>> Gautam Deb >>>> >>>> On 8/12/07, Mathius Allo wrote: >>>> >>>> >>>> >>>>> Hi All, >>>>> >>>>> Is it possible to have a deployment configuration where Apache web >>>>> server being used to route request to the web container? >>>>> >>>>> How to deploy an OfBiz application within an Application Server? >>>>> >>>>> Thanks in advanced. >>>>> Mathius >>>>> >>>>> >>>>> --------------------------------- >>>>> Pinpoint customers who are looking for what you sell. >>>>> >>>>> >>>>> >>>> >>>> >> >> > > > > > --------------------------------- > Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. > |
Is there a guide as to what might be need to be put in the url.properties file
or what we might need to enter under the Content Tab? David On Sunday 19 August 2007, Raj Saini wrote: > Hi Mathius, > > You will need to fine tune your settings in the url.properties file. > For ecommerce, you can do that in the web site under content tab. > > Thanks, > > Raj > > Mathius Allo wrote: > > Hi Raj, > > > > I have tried to configure it using mod_proxy_ajp. The only changes that I > > made is to add the following line into proxy_ajp.conf under > > /etc/httpd/conf.d/ (i'm using FC5): LoadModule proxy_ajp_module > > modules/mod_proxy_ajp.so > > > > ProxyPass / ajp://localhost:8009 > > > > This seems to be working for non-ssl. I can access my module in the > > following: http://www.mallo.com/customer/ > > apache & tomcat access_log indicates that everything is ok. > > > > However, when trying to access modules that require ssl port ":8443" > > appears automatically the URL > > (https://www.mallo.com:8443/project/control/main) and I noticed the > > following in the apache access_log: 192.168.1.65 - - > > [18/Aug/2007:20:49:13 +0800] "GET > > /project/control/main?externalLoginKey=EL994157896198 HTTP/1.1" 302 - > > "http://www.mallo.com/customer/control/editCustomer?customerId=10000" > > "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070417 > > Fedora/2.0.0.3-4.fc7 Firefox/2.0.0.3" > > > > After the above message, accessing non-ssl module does not seems to go > > through apache (even though I don't see :8080 in the URL) as I don't see > > any entry in the apache access_log. > > > > Any idea on how to make it work for https? > > > > Thanks, > > Mathius Allo > > > > Raj Saini <[hidden email]> wrote: Yes, I have configured our Ofbiz + > > Apache HTTP 2.2 with mod_ajp_proxy. You will need to enable proxy for > > httpd and mod_proxy_ajp within your virtual hosts. I am doing it Debian > > way. For a standard httpd.conf following should work: > > > > 1. Enable mod_proxy and mod_proxy_ajp modules in the Apache. > > > > 2. Somewhere in the global part of httpd.conf > > -------------------------------------------------- > > #turning ProxyRequests on and allowing proxying from all may allow > > #spammers to use your proxy to send email. > > > > ProxyRequests Off > > > > > > > > AddDefaultCharset off > > Order deny,allow > > Allow from all > > #Allow from .example.com > > > > > > > > # Enable/disable the handling of HTTP/1.1 "Via:" headers. > > # ("Full" adds the server version; "Block" removes all outgoing > > Via: headers) > > # Set to one of: Off | On | Full | Block > > > > ProxyVia On > > > > 3. Inside your virtual host config > > ----------------------------------- > > ProxyPreserveHost On > > proxyPass / ajp://localhost:8009/ > > RewriteEngine On > > RewriteRule ^/(images/.+);jsessionid=\w+$ /$1 > > > > That is it you need to make it work. > > > > Thanks, > > > > Raj > > > > Jacques Le Roux wrote: > >> >From this blog I'm not sure it's the good solution yet. Do you have > >> > valuable experience with it ? > >> > >> http://getahead.org/blog/joe/2006/02/01/mod_jk_is_dead_long_live_mod_pro > >>xy_ajp.html > >> > >> Jacques > >> > >> PS : though this links seem good points : > >> http://confluence.atlassian.com/display/DOC/Running+Confluence+behind+Ap > >>ache#comment-16121884 > >> http://lenya.apache.org/docs/2_0_x/tutorials/mod_proxy_ajp.html > >> > >> De : "Raj Saini" > >> > >>> mod_proxy_ajp is another way of doing it with Apache 2.2.x. It is far > >>> simpler than mod_jk. > >>> > >>> Thanks, > >>> > >>> Raj > >>> > >>> Gautam Deb wrote: > >>>> Yes, it is possible. You can use the *mod_jk* Tomcat-Apache plug-in > >>>> that handles the communication between Tomcat and Apache. You can > >>>> refer the link > >>>> http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html > >>>> > >>>> This way you can route request to the web container. > >>>> > >>>> Regards, > >>>> Gautam Deb > >>>> > >>>> On 8/12/07, Mathius Allo wrote: > >>>>> Hi All, > >>>>> > >>>>> Is it possible to have a deployment configuration where Apache web > >>>>> server being used to route request to the web container? > >>>>> > >>>>> How to deploy an OfBiz application within an Application Server? > >>>>> > >>>>> Thanks in advanced. > >>>>> Mathius > >>>>> > >>>>> > >>>>> --------------------------------- > >>>>> Pinpoint customers who are looking for what you sell. > > > > --------------------------------- > > Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, > > news, photos & more. |
In reply to this post by jleroux@apache.org
Did you manage to put it in your FAQ, and is there a URL to that FAQ?
I am having problem in that this Apache Web server is also serving a number of other (non Java) things, and when I try to add this ProxyPass it gets confused with the /image files, and tries to get them from /var/www/images which of course does not work. I tried moving the ProxyPass stuff to the front of the VirtualHost, but that made no difference. David On Sunday 12 August 2007, Jacques Le Roux wrote: > Thanks a lot Raj, > > I think I will try it soon and hopefully put your tip in "my" FAQ on > Confluence ! It's clearly far easier than mod_jk and moreover if it's > faster then it should be the new way of doing that... > > Jacques > > De : "Raj Saini" <[hidden email]> > > > Yes, I have configured our Ofbiz + Apache HTTP 2.2 with mod_ajp_proxy. > > You will need to enable proxy for httpd and mod_proxy_ajp within your > > virtual hosts. I am doing it Debian way. For a standard httpd.conf > > following should work: > > > > 1. Enable mod_proxy and mod_proxy_ajp modules in the Apache. > > > > 2. Somewhere in the global part of httpd.conf > > -------------------------------------------------- > > #turning ProxyRequests on and allowing proxying from all may allow > > #spammers to use your proxy to send email. > > > > ProxyRequests Off > > > > <Proxy *> > > AddDefaultCharset off > > Order deny,allow > > Allow from all > > #Allow from .example.com > > </Proxy> > > > > # Enable/disable the handling of HTTP/1.1 "Via:" headers. > > # ("Full" adds the server version; "Block" removes all outgoing > > Via: headers) > > # Set to one of: Off | On | Full | Block > > > > ProxyVia On > > > > 3. Inside your virtual host config > > ----------------------------------- > > ProxyPreserveHost On > > proxyPass / ajp://localhost:8009/ > > RewriteEngine On > > RewriteRule ^/(images/.+);jsessionid=\w+$ /$1 > > > > That is it you need to make it work. > > > > Thanks, > > > > Raj > > > > Jacques Le Roux wrote: > > > >From this blog I'm not sure it's the good solution yet. Do you have > > > > valuable experience with it ? > > > > > > http://getahead.org/blog/joe/2006/02/01/mod_jk_is_dead_long_live_mod_pr > > >oxy_ajp.html > > > > > > Jacques > > > > > > PS : though this links seem good points : > > > http://confluence.atlassian.com/display/DOC/Running+Confluence+behind+A > > >pache#comment-16121884 > > > http://lenya.apache.org/docs/2_0_x/tutorials/mod_proxy_ajp.html > > > > > > De : "Raj Saini" <[hidden email]> > > > > > >> mod_proxy_ajp is another way of doing it with Apache 2.2.x. It is far > > >> simpler than mod_jk. > > >> > > >> Thanks, > > >> > > >> Raj > > >> > > >> Gautam Deb wrote: > > >>> Yes, it is possible. You can use the *mod_jk* Tomcat-Apache plug-in > > >>> that handles the communication between Tomcat and Apache. You can > > >>> refer the link > > >>> http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html > > >>> > > >>> This way you can route request to the web container. > > >>> > > >>> Regards, > > >>> Gautam Deb > > >>> > > >>> On 8/12/07, Mathius Allo <[hidden email]> wrote: > > >>>> Hi All, > > >>>> > > >>>> Is it possible to have a deployment configuration where Apache web > > >>>> server being used to route request to the web container? > > >>>> > > >>>> How to deploy an OfBiz application within an Application Server? > > >>>> > > >>>> Thanks in advanced. > > >>>> Mathius > > >>>> > > >>>> > > >>>> --------------------------------- > > >>>> Pinpoint customers who are looking for what you sell. |
Free forum by Nabble | Edit this page |