location of static content

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

location of static content

Kane Lo
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
Reply | Threaded
Open this post in threaded view
|

Re: location of static content

G.Venkata Phanindra
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 <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|

Re: location of static content

Kane Lo
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" <[hidden email]>
To: <[hidden email]>
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 <[hidden email]> 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?
>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: location of static content

Amine AZZI
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 <[hidden email]>:

>
> 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" <[hidden email]>
> To: <[hidden email]>
> 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 <[hidden email]> 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?
> >>
> >>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: location of static content

Adrian Crum
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 <[hidden email]>:
>
>>
>> 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" <[hidden email]>
>> To: <[hidden email]>
>> 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 <[hidden email]> 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?
>> >>
>> >>
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: location of static content

Kane Lo
Got it. I put /webtools/images, and then it comes out. Tq

----- Original Message -----
From: "Adrian Crum" <[hidden email]>
To: <[hidden email]>
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 <[hidden email]>:
>>
>>>
>>> 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.
>>>