Thread: flXHR problem
View Single Post
  #1 (permalink)  
Old May 20th, 2010, 04:16 AM
savswsoft savswsoft is offline
Registered User
 
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default flXHR problem

Hello,

I've read all threads related to flXHR problems, but it seems it's the new one.
I have the following structure of my files:
Code:
scripts/
         hellow.js
         libs/
              jquery-1.4.js
              strophe.js
              strophe.flxhr.js
              flXHR/
                     checkplayer.js
                     flensed.js
                     flXHR.js
                     flXHR.swf
                     flXHR.vbs
                     swfobject.js
                     updateplayer.swf
hellow.html
Content of hellow.html file (header section only):
Code:
<!-- Standard script links:-->
<script src="scripts/libs/jquery-1.4.js"></script>
<script src="scripts/libs/jquery-ui-1.8.1.custom.js"></script>
<script src="scripts/libs/strophe.js"></script>
<!--flXHR lib and plugin for Strophe -->
<script src="scripts/libs/flXHR/flXHR.js"></script>
<script src="scripts/libs/flXHR/checkplayer.js"></script>
<script src="scripts/libs/flXHR/flensed.js"></script>
<script src="scripts/libs/flXHR/swfobject.js"></script>
<script src="scripts/libs/strophe.flxhr.js"></script>

<script src="scripts/hellow.js"></script>
I use Tomcat as application server, and when i try to view hellow.html using URL: http://localhost:8080/MyTestProject/hellow.html
I can go to all files, not related to flXHR. I can see, for example strophe.js file, when I choose "View Source" in MF and click the link.
But when I try to go to "scripts/libs/flXHR/flXHR.js" I'm getting 404 error code.
But file exists.

After that I opened my hellow.html file not using URL, but using file protocol:
file:///C:/Users/.../MyTestProject/WebContent/hellow.html
When I opened View Source and clicked the "scripts/libs/flXHR/flXHR.js" link I got the file.

So my question is this, why flXHR-related files can not be found by application server (Tomcat6)