Freemarker template error!      parameters.templateDir is undefined

Hi
I have a Struts2 application and work perfectly in tomcat and glashfish. When I deploy in Sun Java System Application Server, all Struts tag broken and say:
FreeMarker template error!
Expression parameters.templateDir is undefined on line 23, column 15 in template/simple/form.ftl.
The problematic instruction:
==> ${parameters.templateDir} [on line 23, column 13 in template/simple/form.ftl]
in include "/${parameters.templateDir}/simple/form-common.ftl" [on line 23, column 1 in template/simple/form.ftl]
Java backtrace for programmers:
freemarker.core.InvalidReferenceException: Expression parameters.templateDir is undefined on line 23, column 15 in template/simple/form.ftl.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at freemarker.core.Expression.getStringValue(Expression.java:118)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.Environment.renderElementToString(Environment.java:1461)
at freemarker.core.StringLiteral.getStringValue(StringLiteral.java:95)
at freemarker.core.Include.accept(Include.java:110)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.Environment.process(Environment.java:176)
at freemarker.template.Template.process(Template.java:232)
at org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:157)
at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:559)
at org.apache.struts2.components.ClosingUIBean.start(ClosingUIBean.java:59)
at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:53)
at org.apache.jsp.index_jsp._jspx_meth_s_form_0(index_jsp.java:267)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:134)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:389)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)

Hi Odinart,
Please post your question in
ASP.NET forums.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Error Script 5009 "Object" undefined in a Page with an iFrame IE9

    in some pages of my application (apex 4.0) i use an iframe to a google map.
    i use iframes because i want to use complex functionality in multiple pages of my apex app.
    this works finr in most browsers except ie9: the iFram page is not shown correct, in the console the error script 5009 object undefined in jquery-1.4.2.min.js, Line 21 Character 105
    is reported.
    mr google says that this is an known problem when loading jquery multiple times in one page for example if u use an iframe.
    my first idea was to disable the loading of the jqurey.js by removing the appropriate lines in the page template.
    but it seems to me, that lot of code is not part of the template, but is genereted by the apex engine for expample these lines can not be found in the page templates
    {<script type="text/javascript">var apex_img_dir = "/i/", htmldb_Img_Dir = apex_img_dir;</script>
    <script src="/i/libraries/jquery/1.4.2/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_4_0.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_legacy_4_0.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_widget_4_0.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_dynamic_actions_4_0.js" type="text/javascript"></script>
    any ideas how i can overcome the problem, except using another browser?
    merry xmas
    peter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    push

  • Attempting to Upload an FSG template error

    Hi,
    We are facing issue,while uploading the FSG template error on web ADI,can you please suggest us how to resolve the issue.
    Exception Name: oracle.apps.bne.exception.BneFatalException - Error loading class:
    Log File Bookmark: 408173
    Navigartion path:
    GL Super User -> Launch Journal Wizard -> Functional Actuals - Multiple -> Create
    Document

    Thanks for the reply.
    Please note issue is happening only on load balancer environment and we had tested by removing the load balancer its working fine.
    Our instance is 4 node application tier(shared appl_top) with load balancer running R12,issue is only happening on load balancer environment,if we change load balancer environment to single node its working fine,
    Please guide me,is there any setup required on load balancer side??
    Errors are showing in bne.log
    oracle.apps.bne.exception.BneFatalException: Error loading class:
    at oracle.apps.bne.webui.BneApplicationFactory.loadApplicationObject(BneApplicationFactory.java:138)
    at oracle.apps.bne.webui.BneApplicationFactory.createPageObject(BneApplicationFactory.java:77)
    at oracle.apps.bne.webui.BneApplicationService.loadPageHandle(BneApplicationService.java:326)
    at oracle.apps.bne.webui.BneApplicationService.handleRequest(BneApplicationService.java:144)
    at oracle.apps.bne.framework.BneBajaServlet.doRequest(BneBajaServlet.java:246)
    at oracle.apps.bne.framework.BneBaseServlet.doGet(BneBaseServlet.java:79)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:610)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:359)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Edited by: rag100mn on Jul 2, 2009 9:13 AM

  • Cannot open : Error 2  Photoshop is Undefined

    When I try to open Bridge from Photoshop CS5, I get the message:
    Error 2 Photoshop is undefined
    Line: 1
    ->  photoshop.invokeBridge (false, false, '');

    Guess a little sleepy when I posted.  You need to hold down the ctrl key and start
    Bridge.  Some users have to click on Bridge
    icon and then IMMEDIATELY hold down the Crtl key.  Should get a
    reset window.
    The icon I am talking about is the desktop shortcut icon to open Bridge.

  • Error 2: SAVE_FOLDER is undefined. Line: 361 -

    Hi.
    Every time I try to run a script it comes up with the following message
    Error 2: SAVE_FOLDER is undefined. Line: 361 ->
    I've tried uninstalling and reinstalling photoshop/deleting the script from all sources/reinstalling the script/reset photoshop settings by pressing shift+control+alt whilst starting photoshop... but none of these work.
    The script that I am trying to run is a Facebook Photo Optimiser by Code&Hustle. I run the script on other identical computers so I know it is nothing to do with the script.
    If anyone can help it it would be so much appreciated as this is really frustrating and I'm completely stuck!
    Thank you.

    I’m afraid that the people who might be able to help may need more than that to go on, the code for example.
    If you bought the Script have you contacted Code&Hustle?

  • OI template error - Failed to create template

    Hi,
    I was under the impression that the Excel snapshot templates could be customized and tried to do this but it didn't work. I restored the master (copied it back to the template folder) but got an error message when I try to (re)set the template paths:  Failed to create template (template name here).
    I uninstalled OI completely and reinstalled (both server and client) but still get the above message, even when I changed the path where the templates are installed. This is only on the workstations, not on the server so I'm thinking that there is something on the workstation that is stored that doesn't get uninstalled when the add-on is uninstalled.
    Even though the templates are installed in the folders indicated in the OI Company Setup, the snapshot templates are not available when in Outlook, no doubt because of this error message; there is something that isn't properly installed that links the templates to Outlook.
    Any ideas how I get rid of this message? Don't see why uninstall would not fix this; sounds like a bug with the add-on.
    Thank you,
    Heather
    Edited by: Heather Wilkinson on Mar 16, 2010 12:27 PM

    Hi Heather,
    Have you checked this thread yet?
    Re: Outlook Integration Add-On Templates Error
    Thanks,
    Gordon

  • Getting error massage in youtube while open video clips Error: BVDCORE.videoFormats is undefined

    Error: BVDCORE.videoFormats is undefined
    massage appear in youtube while opening any video clips

    Update "Easy Youtube Downloader" addon :)

  • Error.'_CF_checkboxposition' is undefined

    I have a form named 'boxdetail.cfm' and it has 2 buttons in
    the form. It calls form 'boxposition.cfm'.
    Everything works fine except when I click the any button
    there is an error "error.'_CF_checkboxposition' is undefined".
    I looked into the source and it's generated automatically by
    coldfusion.
    How can I handle this error?
    Thanks for any input!
    <cfform name="boxdetail" action="boxposition.cfm"
    method="post" >
    <h4>Manage Box<b></b></h4>
    <p>
    </p>
    <table border="0" cellpadding="3" cellspacing="0"
    class="copy">
    <tr><td><input type="submit" name="Operation"
    value="Add Position" /></td>
    <td><input type="submit" name="Operation"
    value="Remove Position" /></td>

    Do you have a closing cfform tag?

  • Error on EPCMPROXY is undefined

    Hi,
      I encountered an error message 'EPCMPROXY is undefined' when I have two BSP applications on the same page subscribing to the MSS teamviewer. This problem happens intermittently when I try to change the employee in the MSS teamviewer, to display detailed infomation in the two BSP applications.
    In the two BSP applications, I use the following codes to subscribe to the MSS teamviewer upon change of the selected employee. I have tried to use two different procedure name for EPCMPROXY and myreceiveEvent. But the problem still exists. Anyone provide some help on this?
    <SCRIPT src="epcfproxy.js"></SCRIPT>
    <script language=javascript>
    var lnDotPos = document.domain.indexOf( "." );
    if (lnDotPos >= 0) document.domain = document.domain.substr( lnDotPos + 1 );
    EPCMPROXY2.subscribeEvent( 'urn:com.sap.pct.hcm.orgmanagement:CurrentObject', 'objectChanged', window, 'myreceiveEvent2' );
    function myreceiveEvent2( eventObj2 )
        var dataKey2=eventObj2.dataObject;
        Emp2.EmpID.value = dataKey2.substr(6,8);
        Emp2.submit();
    </script>

    Hi Detlev,
    Answer to your questions:
    1) I have purposely named one BSP application with EPCMPROXY and the other BSP application with EPCMPROXY2, thinking that it may solve the runtime error, but it didn't.
    2) If I display either one of the BSP applications, then the program will work without any error. If both BSP applications are displayed in the same page, then the runtime error will occur.
    Any idea what is causing this problem?
    Regards,
    Seow Ting

  • Error 2 photoshop is undefined

    I am having an error 2 problem when I am using Lightroom 5.5 (updated a couple of days ago) to open as smart object in Photoshop CC (also updated a couple of days ago) and do some editing using NIK plugins. (I use the Photographers Plan for CC.) This is NOT the CC 2014 which I uninstalled yesterday because I didn't see the need to download all my 3rd party plugins again and not using all the perks of new version anyways! But that is another issue. I use a desktop with Windows 7, 64-bit OS.
    My error reads as follows:
    Error 2: photoshop is undefined
    Line: 1
    - photoshop.notifyLightroomDocClosed (`lightroom-2.0`, `A4E67B5D-9602-4368-BA38-3FD9BDC84243`,")
    Does anyone know what and why this is happening? Thanks for your help.

    Please check Photoshop (2014) Extensions greyed out, extension manager not recognizing photoshop 2014
    Hope it helps you,
    Regards
    Rajshree

  • Error 2 Photoshop is undefined   Line: 1 -   photoshop.invokeBridge(false,false, ");

    Error 2 Photoshop is undefined
    Line: 1
    ->  photoshop.invokeBridge (false, false, '');
    I always get this error whenever I would try to open my bridge. And for some reason I can't even find bridge icon, I probably accedentally deleted it. But is there anything I can do to fix this problem? I tried to download and install CS 5 Bridge update wouldn't help at all. PLZ HELP!!!!!!!

    Bridge is not a seperate product.  It is part of Photoshop or a Photoshop suite, so can not be downloaded.
    If you type in Bridge.exe in the windows search box does it find the file?
    If not you will have to reinstall Photoshop or what suite you bought.  If that is the case I would uninstal them first and then reinstall.  If you deleted Bridge you probable fouled up file associations.

  • Error Message:  "Error 2: photoshop is undefined" ????

    I've looked both on the Adobe site & in this Forum to see if this error message is addressed, and I do not find it anywhere. Here's what I get every time I open CS2:
    Error 2: photoshop is undefined
    Line:1
    -> photoshop launchBridgeInBackground ();
    I click OK & PS opens.
    Doing this on my Intel Duo iMac, OS 10.4.11, 2GB
    Is there a Fix for this issue?
    What does it mean & what effect, if any, does this have?
    Do I need to do anything about this?
    Thank you.

    Nevertheless, the suggested solutions apply.
    For instance:
    Solution 2: Re-create Photoshop and Bridge preferences.
    Solution 3: Delete the Adobe StartupScripts folder, and then remove and reinstall all Adobe Creative Suite 2.0 applications.
    etc

  • RoboHelp 10 Compile Error: Cannot find xml definition file Template Error

    Does anyone know how to resolve this error? I'm exhausted googling.
    I generated Webhelp and got the error below. When I View the Help, nothing displays; IE browser does not open the Help.
    Initializing compiler...
    Generating WebHelp 5.50 (10.0.0.287)...
    Error: Cannot find xml definition file C:\Program Files (x86)\Adobe\Adobe RoboHelp 10\RoboHTML\webhelp5Ext\template_skin\webhelp5skin.xml.
    Template Error: can not resolve macro: WEBHELP_TEMPLATE.pane.navpane.dhtml
    Template Error: can not resolve macro: WEBHELP_TEMPLATE.pane.navpane.list
    Template Error: can not resolve macro: WEBHELP_TEMPLATE.pane.toolbar
    Template Error: can not resolve macro: WEBHELP_TEMPLATE.pane.minibar
    Template Error: can not resolve macro: WT_DS_TOC_ICON_PAGE_REMOTE
    Template Error: can not resolve macro: WEBHELP_TEMPLATE.topic
    Template Error: can not resolve macro: WEBHELP_TEMPLATE.frame
    Processing TOC data...
    Processing Glossary data...
    Processing Context-sensitive-Help data...
    Updating HTML topics...
    Finished updating HTML topics in 5 sec(s) : total 431 topic(s).
    Processing Full-text-search data...
    Finished processing Full-Text-Search data in 41 sec(s)
    Applying WebHelp 5.50 Template...
    ..........................Template Error: can not resolve macro: WT_DS_SEARCHFORM_GO in C:\FuelsManager Primus\Web Application\Projects\FMHelp\Cirrus\whfform.htm
    Error: Fail to update Template file whskin_frmset010.htm
    Error: Fail to update Template file whskin_frmset01.htm
    Error: Fail to update Template file whskin_frmset0.htm
    Finished applying Template in 10 sec(s)
    Finished compiling WebHelp in 107 sec(s)
    Compilation complete.

    Why Robo 8 would remove RH10 files is beyond me.
    A reinstall of RH is sure to fix it. But if you PM me your email
    address, I can send you a copy of the file (might save you a reinstall).
    Kind regards,
    Willam

  • ORA-12012: error on auto execute of job 754461 ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, parameters in command "RCPT TO:" unrecognized or missing ORA-06512: at "SYS.UTL_SMTP", line 20 ORA-06512: at "SYS.UTL_SMTP",

    Hi ,
    I am getting below error frequently in alert log of database.
    ORA-12012: error on auto execute of job 754461
    ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, parameters in command "RCPT TO:" unrecognized or missing
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 240
    ORA-06512: at "APPS.EIS_UTIL_PKG", line 94
    ORA-06512: at "APPS.HKD_PO_ADDON_PKG", line 110
    ORA-06512: at line 1

    You have a job running in the database. Its job ID is 754461
    It looks as if that job runs APPS.HKD_PO_ADDON_PKG
    That job is attempting to send mail using UTL_SMTP and apparently passing some strange value to SMTP server for the RCPT TO: parameter.

  • Since upgrading to new Firefox i get Error messages in Firefox and Thunderbird whenever I open a new tab: Type Error: classes (cid) is undefined or Components (cid) is undefined. How can I fix this? It shows up constantly.

    This "Type Error: classes (cid) is undefined" or this "Type Error: Components (cid) is undefined keeps popping up in a small pop up box every time I open a tab or switch from Thunderbird to Firefox to open a site,

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

Maybe you are looking for

  • How to delete 1 file from CD?

    If I only want to delete one file from a cd that contains many files, how do I do this? I don't want to erase the whole cd!

  • Can I person use the same key for Apple software multiply times when he formats his computer?

    Lets say I bought Apple Final Cut Studio comes with the six discs and serial. Can I use that serial multiply times on my Apple Mac Pro 12 Core when I reformat It? Cause I always format my computers and I don't have to re buy the software to activate

  • Edit in Photoshop - Photoshop opens the file doesn't load

    I'm using Photoshop Elements 7 and Photoshop CS4. Previously when I chose the Edit in Photoshop option from PSE7 Photoshop CS4 would launch and the selected image would be loaded. Now when I choose Edit in Photoshop from PSE7 Photoshop CS4 launches b

  • Editable form printing issues

    Hi, I have created a form with InDesign CS6, simple text fields with a submit button set up to send it via email to my colleague. I have saved it as reader extended. Recepients can open and complete the form as well as save it. However they can't pri

  • Unable to create rule file

    Hi, I am trying to create a rule file in one essbase cube using the level 0 export (extract in column format) from another cube of a different application. Level0 data file is saved in the local machine from where I am running Essbase. While creating