Pisit wrote:
> 
> I'm using Tapestry 5.0.18+Tomcat 6.0+FCKEditor (from T5Components)
> For Windows server, it's work perfectly but for Linux has encounter HTTP
> 404 error
> i've found that it unable to access
> /assets/org/apache/tapestry/commons/jslibs/scripts/fckeditor/editor/fckeditor.html
> and other .html files
> but for other extension such  .css, .js or image format works fines. Any
> suggestion?
> 
> Thanks in advance. 
> Dave.
> 

Hi. i'm again, Pisit
Thanks for every replying.
and sorry for my late responsing.

Today i'm do some test case to find real source of problem
so I create test.html and test.js in my
"com.megasofts.tapestry.jslibs.scripts.test" package (not in jar files)
and try access both of them with this...

URL resource =
this.getClass().getClassLoader().getResource("/com/megasofts/tapestry/jslibs/scripts/test/test.html");
InputStream is = resource.openStream();
// ... and do somthing with the stream

So, this is the result
http://megasofts.com/componentfactory/t5components/editor

as you see. It's able to access both of them for Windows and Linux
but when i try access via asset path by web browser the result is...

Windows
../asset/com/megasofts/tapestry/jslibs/scripts/test/test.html   > OK!
../asset/com/megasofts/tapestry/jslibs/scripts/test/test.js             > OK!

Linux 
../asset/com/megasofts/tapestry/jslibs/scripts/test/test.html   > HTTP Status
404
../asset/com/megasofts/tapestry/jslibs/scripts/test/test.js             > OK!

at this point i'm sure that problem is not case-sensitive issue as these
file name are lower-case.
but it look like the problem occurs when try access HTML files or other
extension that not CSS, IMAGE or JS files
in my case, the fckeditor trys to inculde fckeditor.html with iframe
 <iframe id="editor___Frame"
src="../assets/org/apache/tapestry/commons/jslibs/scripts/fckeditor/editor/fckeditor.html?InstanceName=editor&amp;Toolbar=Default"
...
so problem is occur. T-T

it may be relate to tomcat security configuration issue? or
"UnprotectedAssets" topic?
but I still don't have any idea to solve this. maybe i need to change my
server to Jetty which it is the last choice.
So please help me. 

Thanks again.
Dave

-- 
View this message in context: 
http://www.nabble.com/Can%27t-access-HTML-files-in-classpath-resouce-tp23380286p23391845.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to