You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Kane Lo <ka...@spacesolutions.com> on 2007/04/09 11:48:21 UTC

location of static content

Hi,
   I am trying to put the static content like javascript, or image under directory for example webtools. However, it just seem like cannot find the relevant file. However if I just follow the Ofbiz standard put them under /images, then all the content come out. Are there any way to do it or go around?


2007-04-09 16:59:35,921 (http-8443-Processor23) [      ContextFilter.java:185:INFO ] [Request]: /demo/images/ofbiz.ico
2007-04-09 16:59:35,953 (http-8443-Processor23) [      ContextFilter.java:245:WARN ] [Filtered request]: /demo/images/ofbiz.ico (/control/main)
2007-04-09 16:59:35,968 (http-8443-Processor23) [      ContextFilter.java:185:INFO ] [Request]: /demo/images/maincss.css
2007-04-09 16:59:35,968 (http-8443-Processor23) [      ContextFilter.java:245:WARN ] [Filtered request]: /demo/images/maincss.css (/control/main)
2007-04-09 16:59:35,968 (http-8443-Processor25) [     ControlServlet.java:256:DEBUG] [[[main] Done rendering page, Servlet Finished- total:1.375,since last([main] Setup done...):1.375]]
2007-04-09 16:59:36,015 (http-8443-Processor23) [      ContextFilter.java:185:INFO ] [Request]: /demo/images/ofbiz_logo.jpg
2007-04-09 16:59:36,031 (http-8443-Processor23) [      ContextFilter.java:245:WARN ] [Filtered request]: /demo/images/ofbiz_logo.jpg (/control/main)
2007-04-09 16:59:36,125 (http-8443-Processor23) [      ContextFilter.java:185:INFO ] [Request]: /demo/images/valid-xhtml10.png
2007-04-09 16:59:36,125 (http-8443-Processor23) [      ContextFilter.java:245:WARN ] [Filtered request]: /demo/images/valid-xhtml10.png (/control/main)
2007-04-09 16:59:36,125 (http-8443-Processor25) [      ContextFilter.java:185:INFO ] [Request]: /demo/images/vcss.gif
2007-04-09 16:59:36,406 (http-8443-Processor25) [      ContextFilter.java:245:WARN ] [Filtered request]: /demo/images/vcss.gif (/control/main)


2007-04-09 16:59:36,656 (http-8443-Processor23) [     ControlServlet.java:192:ERROR] 
---- exception report ----------------------------------------------------------
Error in request handler: 
Exception: org.apache.catalina.connector.ClientAbortException
Message: null
---- cause ---------------------------------------------------------------------
Exception: javax.net.ssl.SSLException
Message: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Software caused connection abort: socket write error
---- cause ---------------------------------------------------------------------
Exception: javax.net.ssl.SSLException
Message: java.net.SocketException: Software caused connection abort: socket write error
---- cause ---------------------------------------------------------------------
Exception: java.net.SocketException
Message: Software caused connection abort: socket write error
---- stack trace ---------------------------------------------------------------
java.net.SocketException: Software caused connection abort: socket write error
java.net.SocketOutputStream.socketWrite0(Native Method)
java.net.SocketOutputStream.socketWrite(Unknown Source)
java.net.SocketOutputStream.write(Unknown Source)
com.sun.net.ssl.internal.ssl.OutputRecord.writeBuffer(Unknown Source)
com.sun.net.ssl.internal.ssl.OutputRecord.write(Unknown Source)
com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:746)
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:304)
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991)
org.apache.coyote.Response.action(Response.java:182)
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)
org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:94)
freemarker.core.Environment.process(Environment.java:178)
freemarker.template.Template.process(Template.java:232)
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplateAtLocation(FreeMarkerWorker.java:179)
org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:77)
org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:105)
org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:64)
org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:807)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:152)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:245)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:134)
org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:395)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:152)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:245)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:134)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:490)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:152)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:245)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:134)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90)
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:78)
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:607)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:391)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:251)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Unknown Source)

Regards
Kane Lo

Re: location of static content

Posted by Kane Lo <ka...@spacesolutions.com>.
Got it. I put /webtools/images, and then it comes out. Tq

----- Original Message ----- 
From: "Adrian Crum" <ad...@hlmksw.com>
To: <us...@ofbiz.apache.org>
Sent: Monday, April 09, 2007 10:42 PM
Subject: Re: location of static content


> There is an example of that in Party Manager.
>
> Amine AZZI wrote:
>> You can add a new path to the AllowedPaths parameter for the context 
>> filter
>> in the web.xml file of your component.
>>
>> Amine.
>>
>> 2007/4/9, Kane Lo <ka...@spacesolutions.com>:
>>
>>>
>>> I understand this is one of the ways for solving this, if the server is
>>> under my control. However, if the server is not under my control, and I
>>> just
>>> want can put the images file and application all under one single
>>> directory,
>>> like https://xxx.com/webtools/images. Then the control file and filter
>>> will
>>> prevent the static content to be displayed.
>>> 


Re: location of static content

Posted by Adrian Crum <ad...@hlmksw.com>.
There is an example of that in Party Manager.

Amine AZZI wrote:
> You can add a new path to the AllowedPaths parameter for the context filter
> in the web.xml file of your component.
> 
> Amine.
> 
> 2007/4/9, Kane Lo <ka...@spacesolutions.com>:
> 
>>
>> I understand this is one of the ways for solving this, if the server is
>> under my control. However, if the server is not under my control, and I
>> just
>> want can put the images file and application all under one single
>> directory,
>> like https://xxx.com/webtools/images. Then the control file and filter
>> will
>> prevent the static content to be displayed.
>>
>> ----- Original Message -----
>> From: "G.Venkata Phanindra" <ph...@gmail.com>
>> To: <us...@ofbiz.apache.org>
>> Sent: Monday, April 09, 2007 6:24 PM
>> Subject: Re: location of static content
>>
>>
>> > Hi,
>> >            If u r using Apache Server u can configure using the rewrite
>> > rules.Or place the folder where ever u want and just create a symbolic
>> > link
>> > in the images folder.
>> >
>> > Regards
>> > Phani
>> >
>> > On 4/9/07, Kane Lo <ka...@spacesolutions.com> wrote:
>> >>
>> >> Hi,
>> >>    I am trying to put the static content like javascript, or image
>> under
>> >> directory for example webtools. However, it just seem like cannot find
>> >> the
>> >> relevant file. However if I just follow the Ofbiz standard put them
>> under
>> >> /images, then all the content come out. Are there any way to do it or
>> go
>> >> around?
>> >>
>> >>
>>
>>
> 

Re: location of static content

Posted by Amine AZZI <ba...@gmail.com>.
You can add a new path to the AllowedPaths parameter for the context filter
in the web.xml file of your component.

Amine.

2007/4/9, Kane Lo <ka...@spacesolutions.com>:
>
> I understand this is one of the ways for solving this, if the server is
> under my control. However, if the server is not under my control, and I
> just
> want can put the images file and application all under one single
> directory,
> like https://xxx.com/webtools/images. Then the control file and filter
> will
> prevent the static content to be displayed.
>
> ----- Original Message -----
> From: "G.Venkata Phanindra" <ph...@gmail.com>
> To: <us...@ofbiz.apache.org>
> Sent: Monday, April 09, 2007 6:24 PM
> Subject: Re: location of static content
>
>
> > Hi,
> >            If u r using Apache Server u can configure using the rewrite
> > rules.Or place the folder where ever u want and just create a symbolic
> > link
> > in the images folder.
> >
> > Regards
> > Phani
> >
> > On 4/9/07, Kane Lo <ka...@spacesolutions.com> wrote:
> >>
> >> Hi,
> >>    I am trying to put the static content like javascript, or image
> under
> >> directory for example webtools. However, it just seem like cannot find
> >> the
> >> relevant file. However if I just follow the Ofbiz standard put them
> under
> >> /images, then all the content come out. Are there any way to do it or
> go
> >> around?
> >>
> >>
>
>

Re: location of static content

Posted by Kane Lo <ka...@spacesolutions.com>.
I understand this is one of the ways for solving this, if the server is 
under my control. However, if the server is not under my control, and I just 
want can put the images file and application all under one single directory, 
like https://xxx.com/webtools/images. Then the control file and filter will 
prevent the static content to be displayed.

----- Original Message ----- 
From: "G.Venkata Phanindra" <ph...@gmail.com>
To: <us...@ofbiz.apache.org>
Sent: Monday, April 09, 2007 6:24 PM
Subject: Re: location of static content


> Hi,
>            If u r using Apache Server u can configure using the rewrite
> rules.Or place the folder where ever u want and just create a symbolic 
> link
> in the images folder.
>
> Regards
> Phani
>
> On 4/9/07, Kane Lo <ka...@spacesolutions.com> wrote:
>>
>> Hi,
>>    I am trying to put the static content like javascript, or image under
>> directory for example webtools. However, it just seem like cannot find 
>> the
>> relevant file. However if I just follow the Ofbiz standard put them under
>> /images, then all the content come out. Are there any way to do it or go
>> around?
>>
>> 


Re: location of static content

Posted by "G.Venkata Phanindra" <ph...@gmail.com>.
Hi,
            If u r using Apache Server u can configure using the rewrite
rules.Or place the folder where ever u want and just create a symbolic link
in the images folder.

Regards
Phani

On 4/9/07, Kane Lo <ka...@spacesolutions.com> wrote:
>
> Hi,
>    I am trying to put the static content like javascript, or image under
> directory for example webtools. However, it just seem like cannot find the
> relevant file. However if I just follow the Ofbiz standard put them under
> /images, then all the content come out. Are there any way to do it or go
> around?
>
>
> 2007-04-09 16:59:35,921 (http-8443-Processor23) [      ContextFilter.java:185:INFO
> ] [Request]: /demo/images/ofbiz.ico
> 2007-04-09 16:59:35,953 (http-8443-Processor23) [      ContextFilter.java:245:WARN
> ] [Filtered request]: /demo/images/ofbiz.ico (/control/main)
> 2007-04-09 16:59:35,968 (http-8443-Processor23) [      ContextFilter.java:185:INFO
> ] [Request]: /demo/images/maincss.css
> 2007-04-09 16:59:35,968 (http-8443-Processor23) [      ContextFilter.java:245:WARN
> ] [Filtered request]: /demo/images/maincss.css (/control/main)
> 2007-04-09 16:59:35,968 (http-8443-Processor25) [     ControlServlet.java:256:DEBUG]
> [[[main] Done rendering page, Servlet Finished- total:1.375,since
> last([main] Setup done...):1.375]]
> 2007-04-09 16:59:36,015 (http-8443-Processor23) [      ContextFilter.java:185:INFO
> ] [Request]: /demo/images/ofbiz_logo.jpg
> 2007-04-09 16:59:36,031 (http-8443-Processor23) [      ContextFilter.java:245:WARN
> ] [Filtered request]: /demo/images/ofbiz_logo.jpg (/control/main)
> 2007-04-09 16:59:36,125 (http-8443-Processor23) [      ContextFilter.java:185:INFO
> ] [Request]: /demo/images/valid-xhtml10.png
> 2007-04-09 16:59:36,125 (http-8443-Processor23) [      ContextFilter.java:245:WARN
> ] [Filtered request]: /demo/images/valid-xhtml10.png (/control/main)
> 2007-04-09 16:59:36,125 (http-8443-Processor25) [      ContextFilter.java:185:INFO
> ] [Request]: /demo/images/vcss.gif
> 2007-04-09 16:59:36,406 (http-8443-Processor25) [      ContextFilter.java:245:WARN
> ] [Filtered request]: /demo/images/vcss.gif (/control/main)
>
>
> 2007-04-09 16:59:36,656 (http-8443-Processor23) [     ControlServlet.java
> :192:ERROR]
> ---- exception report
> ----------------------------------------------------------
> Error in request handler:
> Exception: org.apache.catalina.connector.ClientAbortException
> Message: null
> ---- cause
> ---------------------------------------------------------------------
> Exception: javax.net.ssl.SSLException
> Message: Connection has been shutdown: javax.net.ssl.SSLException:
> java.net.SocketException: Software caused connection abort: socket write
> error
> ---- cause
> ---------------------------------------------------------------------
> Exception: javax.net.ssl.SSLException
> Message: java.net.SocketException: Software caused connection abort:
> socket write error
> ---- cause
> ---------------------------------------------------------------------
> Exception: java.net.SocketException
> Message: Software caused connection abort: socket write error
> ---- stack trace
> ---------------------------------------------------------------
> java.net.SocketException: Software caused connection abort: socket write
> error
> java.net.SocketOutputStream.socketWrite0(Native Method)
> java.net.SocketOutputStream.socketWrite(Unknown Source)
> java.net.SocketOutputStream.write(Unknown Source)
> com.sun.net.ssl.internal.ssl.OutputRecord.writeBuffer(Unknown Source)
> com.sun.net.ssl.internal.ssl.OutputRecord.write(Unknown Source)
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
> com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
> org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(
> InternalOutputBuffer.java:746)
> org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
> org.apache.coyote.http11.InternalOutputBuffer.flush(
> InternalOutputBuffer.java:304)
> org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991)
> org.apache.coyote.Response.action(Response.java:182)
> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)
> org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
> org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:94)
> freemarker.core.Environment.process(Environment.java:178)
> freemarker.template.Template.process(Template.java:232)
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplateAtLocation(
> FreeMarkerWorker.java:179)
> org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:77)
> org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(
> HtmlWidget.java:105)
> org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:64)
>
> org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString
> (ModelScreenWidget.java:807)
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(
> ModelScreenWidget.java:152)
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(
> ModelScreenWidget.java:245)
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java
> :134)
> org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString
> (ModelScreenWidget.java:395)
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(
> ModelScreenWidget.java:152)
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(
> ModelScreenWidget.java:245)
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java
> :134)
>
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString
> (ModelScreenWidget.java:490)
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(
> ModelScreenWidget.java:152)
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(
> ModelScreenWidget.java:245)
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java
> :134)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90)
> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(
> ScreenWidgetViewHandler.java:78)
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java
> :607)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:391)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:252)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:251)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:202)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:213)
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:178)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :126)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :148)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
> java.lang.Thread.run(Unknown Source)
>
> Regards
> Kane Lo




-- 
G.Venkata Phanindra
Mob:: 9849852989