I'm guessing you have a file name case sensitivity problem.
The Windows file system is case-insensitive. The commonly used file systems on 
Linux are case-sensitive.
On windows: bettertooltip.js and betterToolTip.js are the same file. On Linux, 
they are two different files.
Check your files and the way you're referring to them to make sure they are the 
same.

Tapestry is case-insensitive in many places, but when it comes to finding 
files, it follows whatever the OS does.

Cheers,

Robert

On Jun 27, 2012, at 6/276:09 PM , filiprd wrote:

> Hi all,
> 
> This is my first post, so here is a quick introduction! My name is Filip, I
> am currently a PhD student (AI), and I've been using Tapestry for quite a
> while. And now I have a small problem that I've been trying to solve, but I
> was not able to find a solution here nor on other pages.
> 
> I use Tapestry 5.3.3 for my application, for which I use jQuery in one page.
> The issue is the following:
> The app works perfectly fine when I run it using maven, or if I deploy a WAR
> file in the Tomcat server that runs on my local machine (Windows). However,
> the app throws an exception when the same WAR is deployed in one of our
> servers (Linux).
> 
> The exception is the following:
> 
> /Unable to locate asset 'context:js/jquery.betterToolTip.js' (the file does
> not exist)./
> 
> The js files are located in /src/main/webapp/js/ / folder. I use @Import
> annotation to include them:
> 
> /@Import(library={"context:js/jquery-1.3.1.min.js",
> "context:js/jquery.betterToolTip.js"})
> public class Index{
> ...
> }/
> 
> And for some reason, when deployed on the server it does not work. My guess
> was that there is an issue with the permissions to access the files, but I
> was told by the person who maintains the server that it is not the problem.
> Also, the thing that confuses me is that it works on Tomcat on my laptop.
> 
> I tried to fix it, but without any success. If someone might have a clue of
> what is the problem or how to solve it, I would appreciate any hints.
> 
> Cheers,
> Filip
> 
> 
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/jQuery-file-does-not-exist-when-deployed-on-Tomcat-tp5714125.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
> 


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

Reply via email to