JSF web app gives javascript error - 'dojo is undefined' and 'webui is unde

Hi,
BACKGROUND: I have created a Netbeans 6 Visual Web Project. I have also integrated my web app with RichFaces 3.1.3. My web application can be viewed properly and correctly when i deploy it on tomcat 6.
ARCHITECTURE: Our server configuration requires IIS to be our web server and tomcat to be our app server. Both are running on different machines. I have successfully linked up IIS 6 and tomcat 6 using the JK isapi_redirector.
PROBLEM: However, when i connect to my app via IIS, my starting page opens but the input box components on that page are not displayed and i get several javascript errors that read - 'dojo is undefined' and 'webui is undefined'.
Any help or advice in this matter will be greatly appreciated.
Thanks!!!

I managed to find a workaround. Thought i should share it with those who are faced with a similar issue.
I found that a bug report had been placed in the past with Apache Dev. However, they had said that they would not modify their logic because the servlet container spec requires it (even though isapi_redirector is only a connector and not a container). They said that there is no way for the isapi_redirector to differentiate between /foo/WEB-INF when foo is a context and when foo is just a sub-directory of the ROOT web application. So, the general consensus was to err on the side of safety and risk blocking a few requests that are valid.
However, this causes a serious issue for those using NetBeans JSF Visual Web Projects. Hence, I created my own flavour of isapi_redirector by modifying the code such that this check is not performed and leaving the onus of checking on Tomcat.
For those who are interested, the simplest way to go about this would be to force the function uri_is_web_inf (in jk_isapi_plugin.c ) to always return FALSE.

Similar Messages

  • Visual Web JSF web app unable to render. The theme tries to access META-INF

    Hi,
    BACKGROUND: I have created a Netbeans 6 Visual Web Project using the default Visual Web JSF Theme. My web application can be viewed properly and correctly when i deploy it on tomcat 6.
    ARCHITECTURE: Our server configuration requires IIS to be our web server and tomcat to be our app server. Both are running on different machines. I have successfully linked up IIS 6 and tomcat 6 using the JK isapi_redirector.
    PROBLEM: However, when i connect to my app via IIS, my starting page opens but the input box components on that page are not displayed and i get several javascript errors that read - 'dojo is undefined' and 'webui is undefined'.
    PROBLEM DETAILS: I found that the page being served had a lot of files being requested from a META-INF folder. I have attached a snippet here.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#" xmlns:waistate="http://www.w3.org/2005/07/aaa">
    <head>
    <title></title><link rel="stylesheet" type="text/css" href="/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/css/css_master-all.css" /><link rel="stylesheet" type="text/css" href="/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/css/ie.css" /><script type="text/javascript">var djConfig={"parseOnLoad":false,"isDebug":false}</script><script type="text/javascript" src="/BMC/theme/META-INF/json2_0/json.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/prototype1_5/prototype.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/com_sun_faces_ajax.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/dojo1_0_1/dojo/dojo.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/dojo1_0_1/dijit/dijit.js"></script><script type="text/javascript">dojo.registerModulePath("webui.suntheme", "/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/javascript");</script><script type="text/javascript" src="/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/javascript/webui-jsfx.js"></script><script type="text/javascript">webui.suntheme.bootstrap.init({"debug":false,"theme":{"locale":"en-US","prefix":"/BMC/theme","modulePath":"/com/sun/webui/jsf/suntheme4_1_1/javascript/theme","bundle":"suntheme","module":"webui.suntheme.theme"}});</script><link id="link1" rel="stylesheet" type="text/css" href="/BMC/resources/stylesheet.css" />I think the JK isapi_connector in IIS is preventing access to the META-INF path and the isapi_director log file says - "*+[emerg] HttpFilterProc::jk_isapi_plugin.c (1282): [BMC/theme/META-INF/json2_0/json.js] points to the web-inf or meta-inf directory. Somebody tries to hack into the site!!!+*". The same message is repeated for several more javascript files that are being served from under the META-INF path.
    Any help or advice in this matter will be greatly appreciated.
    Thanks!!!

    I managed to find a workaround. Thought i should share it with those who are faced with a similar issue.
    I found that a bug report had been placed in the past with Apache Dev. However, they had said that they would not modify their logic because the servlet container spec requires it (even though isapi_redirector is only a connector and not a container). They said that there is no way for the isapi_redirector to differentiate between /foo/WEB-INF when foo is a context and when foo is just a sub-directory of the ROOT web application. So, the general consensus was to err on the side of safety and risk blocking a few requests that are valid.
    However, this causes a serious issue for those using NetBeans JSF Visual Web Projects. Hence, I created my own flavour of isapi_redirector by modifying the code such that this check is not performed and leaving the onus of checking on Tomcat.
    For those who are interested, the simplest way to go about this would be to force the function uri_is_web_inf (in jk_isapi_plugin.c ) to always return FALSE.

  • Have uploaded and installed CC 2014. Several apps give this error when I try to start them:  "Unable to launch Adobe InDesign as you do not have sufficient permissions to access the preferences folders" -or- The icon in the dock bounces once, and nothing

    Have uploaded and installed CC 2014. Several apps give this error when I try to start them:  "Unable to launch Adobe InDesign as you do not have sufficient permissions to access the preferences folders"
    -or-
    The icon in the dock bounces once, and nothing happens.

    Windows or Mac, and exactly which operating system version?

  • Since uploading Maverick, my Microsoft apps give an error message "(the app) quit unexpectedly.  Click Reopen to open the application again."  However, this does nothing but renew this window.  What to do?

    Since uploading Maverick, all of my Microsoft apps give an error message "(name of the app) quit unexpectedly.  Click Reopen to open the application again."  However, this does nothing but renew this window.  I have to click on the "OK" button to get rid of the error message.  What to do?

    Very Important, how much Free Space is on your Hard Drive first of all? Click on the Macintosh HD on the Desktop, then do a Get Info on it.
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    Do they launch OK while in Safe Mode?

  • CMS for JSF Web App

    Hello Experts,
    I am new to Java Web Development, just moving from PHP, HTML, CSS and JS.
    Normally, when I build web apps.. I create a simple CMS using PHP and MySQL for the website. So am wondering if there is a CMS for JSF Web Apps.
    I am new, so am open to suggestions and advise.
    Thanks in advance,
    Shina

    There is Flexive. http://www.flexive.org/
    But like Java itself, it is aimed more at enterprise solutions and thus is far more complex than your average PHP CMS "solution".

  • How can I use  EntityManager in my pojo class in a JSF web app?

    Hi guys,
    I need to use EntityManager in my pojo class in a JSF web app. Because pojo is not managed by web container, I cant use resource injection.
    Is there any way I do that ? Thanks.

    If you want something done fast, then why don't you try reading the API. The API:
    a) points your to the Swing tutoral on "Using Text Components" which has a working example
    b) shows you 3 ways to load data into the JEditorPane.

  • HT5137 the hobbit Kom app gives fatal error message

    The hobbit kom app gives fatal error message. What do I do ?

    Hi dersto11,
    Thanks for using Apple Support Communities.  This article has steps to try if an app you purchased is not functioning as expected:
    iOS: Troubleshooting applications purchased from the App Store
    http://support.apple.com/kb/ts1702
    Cheers,
    - Ari

  • Can't download mountain lion from app store, shows error message: retry/cancel and starts from begining

    can't download mountain lion from app store, shows error message: retry/cancel and starts from begining,
    I alreasy paid for it
    Can I get a direct download link other than from app store

    Try opening the Terminal utility in your system and running the following command to open the system's caches folder:
    open $TMPDIR../C
    Then locate and remove the folder called "com.apple.appstore" and then try relaunching the App Store and downloading the installer again.

  • Javascript error "'_jspDir' is undefined" when clicking af:selectInputDate

    I have a af:selectInputDate component inside a af:showDetailItem (af:showDetailItem is inside a af:showOneTab).
    When the attribute Disclose of the af:showDetailItem set to true. There are no probelms to pop up date picker. But if the Disclose set to false, I got the javascript error : '_jspDir' is undefined. This error only happend in IE (my version is IE7).
    Any ideas / helps?
    JDeveloper 10.1.3.3.0 (cannot upgrade to JDeveloper 11g)
    Thanks
    Joyce
    Message was edited by:
    xpp

    Hi,
    doesn't reproduce on 10.1.3.4
    Frank

  • HT201210 I have a iPhone 3 g, I'm doing update and give me error 1015 Please help and thank you

    I have a iPhone 3 g, I'm doing update and give me error 1015 Please help and thank you

    You can not get help here per the terms of service. Discussing jailbroken devices is forbidden.
    The ONLY thing we can advise you to do is try putting the phone in DFU mode (google for instructions) and restore it.
    Beyond that, you're on your own.

  • Delete document button in ribbon gives javascript error: g is not a function

    Hello,
    We have a default SharePoint 2010 installation. So an out of the box site template, out of the box document libraries/lists etc, out of the box theme (default one) etc.
    When we check the checkbox next to a document in the shared documents library, the tab in the ribbon automatically switches to the document tab. In this tab there is a button "delete document". When I click that I get a confirmation request, I click OK,
    and then I get a little yellow box in the upper right corner that tells me SharePoint is deleting the document, and then nothing happens.
    The document stays where it is, no refresh of the page as SharePoint should do...
    I have a javascript error, and in FireFox it tells me "g is not a function" on line 2 of the file inplview.js?rev=AohvE9XEf%2FI78tuaw1TGAA
    Line 2 contains like 100 javascript functions on the same line, so it's impossible to find out which function or command throws the error.
    This is not a file created by me, so I guess it comes with SharePoint and that I should not touch it.
    So what do I do now?
    I have another server that we use for SharePoint testing, and there the button works as it should, so it's not SharePoint either...
    Problem is that we use this server to give basic SharePoint trainings to our employees, so it's not a very good start when we have to say the delete button is broken but will work in the actual production environment...

    Hi Stefan,
    In our case the problem was caused because initially we had set the authentication to basic authentication, and then changed the setting to claims based authentication. Somehow this causes SharePoint to give errors.
    I don't know if the same error occurs when you choose claims based authentication from the beginning (so without changing it after creating the web application).
    In our case we had the same behavior, in the ribbon the button didn't work, but in the context menu it did work.
    I don't have any other info, as I said in my previous post, I couldn't find any info on this issue on the net. We figured this one out ourselves. I don't know how to keep the claims based authentication, for us it was just a test to try out that type of
    authentication. Since we were running into problems and we didn't really need it we reverted it back to basic authentication.

  • Office Web Apps deploy certificate error

    IIS Using Domain Certificate, when access "https://fqdn/hosting/discovery"  with certificate error. 
    Office web apps using same CA with Front End Server.
    new web farm with this new certificate name.
    Any suggest?
    Thanks.

    When you get the certificate are you able to view the certificate details? Do they match the name of the site?
    Do you have the appropriate root certificate installed on the client that you are browsing from?
    If this helped you please click "Vote As Helpful" if it answered your question please click "Mark As Answer"
    Georg Thomas | Lync MVP
    Blog www.lynced.com.au | Twitter
    @georgathomas
    Lync Edge Port Check (Beta)
    This forum post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Portlet editor's rich text editor gives javascript error 'access denied'

    I created a header portlet using the Publisher's published content portlet template. When I try to edit the portlet content using the rich text editor in the portlet editor window, I get a javascript error in the status bar stating 'access denied'. I can't even type into the rich text editor window, it's totally disabled. Not that I see anything in there anyway. I'm logged in as admin. I've gone into the publisher explorer admin portlet and even 'published' the portlet's content, but to no avail. When I try to 'add header portlet' in my experience definition and try to use this portlet, nothing shows up, where the header portlet should be is just collapsed so my banner is just the top bar view bumped right on top of the nav view. (p.s. does anyone know how to take the alui doc's suggestion of 'disabling the topbar view and nav view' so that I can construct what I want entirely in a header portlet? Anyway, first things first, how do I get that access denied message to disappear in my header portlet's rich text editor and how the heck do I get it show up? Help.

    There's probably not a developer in the forum that doesn't uncheck that box the moment they rebuild their machine/ennvironment. Changing the format of error messaging is hardly a fix for the error itself. Personally, I'm uploading 'file content items' now. I create the content in notepad and then upload > file content item. Then create a portlet that uses the pre-existing (was installed w/ publisher using their pte) 'published content item' web service. Go into the portlet's settings and associate the portlet w/ the content item you uploaded. Voila.
    As far as using their rich text editor to create new content, I personally have no need anymore. However I'm sure our content managers will probably have to soon so I hope our latest installation will accommodate them w/o error, because I've never been aware of an actual fix to this problem.

  • Aperture Help gives Javascript error

    I just tried to open "Help" in Aperture and got this message:
    "The Help Library requires JavaScript. If JavaScript is not enabled, you will not be able to view all the content."
    How do I enable JavaSript?
    Thanks

    I have also been having Javascript issues since 10.6.5 but only on my MBP. My MBA and iMac seem fine. My problem manifests itself on various websites where javascript actions on buttons just don't happen. I have been on the same sites on my MBA and iMac and these same buttons are working OK. Every time I repair permissions, there are screeds of java and javascript errors and repairs. If I then do a restart, javascript works for a short period of a minute or so and then stops. I get the same issue on Safari and Firefox. Java and javascript are turned on at both browsers. I had no javascript issues prior to 10.6.5.
    I just know if I phone up Applecare, I will get the same old fatuous and lazy answer: "Have you done a clean re-install and if not, we suggest you do." Yea right, with the amount of apps I have, that will only take me 2+ days! Back in the good old days, Applecare folks knew what they were talking about and were not just reading off a list.
    Wilson

  • Excel Web App gives 404 when using Sharepoint's Interactive Preview mode

    I'm trying to open the Office Web apps in Sharepoint's Interactive Preview mode.
    This works like a charm for, for example, Word and Powerpoint.
    However, upon opening an Excel file, the officeapps.live.com returns a 404 not found.
    Google hasn't been very helpful to me for this issue, is there anyone who has experienced a similar problem?
    Data from Chrome's devtools: "GET https ://euc-excel.officeapps.live.com/x/_layouts/xlpreview.aspx?wdRepost=(..) 404 (Not Found)"
    and Telerik's Fiddler: 
    This gives the 404: "GET /x/_layouts/xlpreview.aspx?wdRepost=1&access_token=e(..)"
    However, it's referred to by another Excel preview link which gives a 200 status:
    "GET /x/_layouts/xlpreview.aspx?ui=en&rs=en&WOPISrc=(..)"
    I hope anyone can help me out on this matter ! :-)
    Kind regards,
    Alex Schouls

    I'm trying to open the Office Web apps in Sharepoint's Interactive Preview mode.
    This works like a charm for, for example, Word and Powerpoint.
    However, upon opening an Excel file, the officeapps.live.com returns a 404 not found.
    Google hasn't been very helpful to me for this issue, is there anyone who has experienced a similar problem?
    Data from Chrome's devtools: "GET https ://euc-excel.officeapps.live.com/x/_layouts/xlpreview.aspx?wdRepost=(..) 404 (Not Found)"
    and Telerik's Fiddler: 
    This gives the 404: "GET /x/_layouts/xlpreview.aspx?wdRepost=1&access_token=e(..)"
    However, it's referred to by another Excel preview link which gives a 200 status:
    "GET /x/_layouts/xlpreview.aspx?ui=en&rs=en&WOPISrc=(..)"
    I hope anyone can help me out on this matter ! :-)
    Kind regards,
    Alex Schouls

Maybe you are looking for

  • HT2534 I want to use an iTunes gift card as the back up for in app purchases for a so called free app instead of my credit card or having my bank account emptied.

    I want to use an iTunes gift card as the back up for in app purchases for a so called free app instead of my credit card or having my bank account emptied. How can I do this? I saw something about gift cards can only be used for music or movies, not

  • Problem with WhatsApp

    I have lost my WhatsApp message history and now when I start a conversation, I get the message "Message History Disabled: no Media Card found". Current chats are kept but as soon as I restart the device, they are lost. If I go into the Files part of

  • Cost Center Status

    Gurus, How do I get the cost center active/inactive status? I am currently creating an interface of SAP to another system. The status of the cost center is required. I check t-code: OKENN but can not trace which table the status is maintained. Thanks

  • Valution appearing in deactivated mode

    Dear Gurus When I am trying to valuate a inspection lot in result recording screen(qe01) it is in deactivated mode .What can be the possible reason for it? Regards Sandip Sarkar

  • Indesign crashes when opening

    When I go to open Indesign, the pink opening screen box thing opens, to start the program. But whenever it gets to "Starting up Trackers", the program crashes and won't open. Please help!