留言板
aui_lang.jsp missing
I recently started trying to use aui in our templates and ran into an almost immediate blocker. I'm trying something as simple as using a button and for some reason I'm getting a 404 when the page attempts to request aui_lang.jsp.
I was able to do some digging and found the below information but I have no idea why liferay/aui would be requesting the incorrect location for the lang file.
/connect/html/js/liferay/aui_lang.jsp - actual file
/connect/html/js/aui/aui_lang.jsp - where the page is requesting
Any ideas on where i could start to fix this?
Thanks
I was able to do some digging and found the below information but I have no idea why liferay/aui would be requesting the incorrect location for the lang file.
/connect/html/js/liferay/aui_lang.jsp - actual file
/connect/html/js/aui/aui_lang.jsp - where the page is requesting
Any ideas on where i could start to fix this?
Thanks
Based on the URL, I'm guessing you did not deploy Liferay as the root (master) web app?
We did but we're using the contextPath configurations to serve it off of the /connect you see below. Even with that though, the URLs are completely off and I'm not sure why.
So you've followed the docs such as https://www.liferay.com/documentation/liferay-portal/6.2/user-guide/-/ai/making-liferay-coexist-with-other-java-ee-applicatio-1 for the context path changes?
Yep, we've been using liferay for years and have been on 6.1 for at least a year and a half at this point. This is the first time I've attempted to use AUI within my web content though and we haven't seen any issues with AUI as part of the default liferay plugins...at least as far as we know.
Odd that it's not picking up the context path changes...
Easy short term fix, though, do a JSP hook to copy the aui_lang.jsp page to the location that it's looking for. Potentially you can find a match for it in jira, but I don't know how often Liferay is used on a non-root context and if anyone else has hit upon the issue before you...
Easy short term fix, though, do a JSP hook to copy the aui_lang.jsp page to the location that it's looking for. Potentially you can find a match for it in jira, but I don't know how often Liferay is used on a non-root context and if anyone else has hit upon the issue before you...
Hmmm, but it is picking up the contextPath, the sub-path is actually incorrect and I'm not sure why. Also, when i tried manually including it, it removed the error but there seemed to be a syntax error or something in the file which prevented the rest of my javascript from executing.
/connect/html/js/liferay/aui_lang.jsp - actual file
/connect/html/js/aui/aui_lang.jsp - where the page is requesting
Thanks
/connect/html/js/liferay/aui_lang.jsp - actual file
/connect/html/js/aui/aui_lang.jsp - where the page is requesting
Thanks