Custom taglib and inexplicable jsp compilation issue

Can someone explain what could possibly be happening here? I have been working on this for two days to no avail.
With the following configuration, my jsp behaves as I expect it to on Tomcat, but fails to compile both for Jetty and the Maven2 jspc plugin
deepfij.tld
<taglib version="2.0" xmlns="http://java.sun.com/xml/ns/j2ee [3]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd">
<tlib-version>1.0</tlib-version>
<short-name>deepfij</short-name>
<uri>com.fijimf.deepfij</uri>
<tag>
<name>menuItem</name>
<tag-class>com.fijimf.deepfij.web.tag.MenuItemTag</tag-class>
<body-content>scriptless</body-content>
<attribute>
<name>item</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
menubar.jsp
<%@ taglib prefix="df" uri="/WEB-INF/tlds/deepfij.tld"%>
<c:forEach var="page" items="${menuRootPages}">
<df:menuItem item="${page}" />  
</c:forEach>
MenuItemTag.java
package com.fijimf.deepfij.web.tag;
.With the error: com.fijimf.deepfij.web.tag cannot be resolved to a type.
BUT*, if I move MenuItemTag into the package com.fijimf.web, and correspondingly change the .tld, everything works as expected.
Is this a bug, or is there a constraint in taglib packages I don't know about?
Any guidance would be great, because I'd like to put classes where I want them.

This is most likely a bug on the server. The JSP formatted Tag Files usually have a .tag extension on them ( [see tutorial|http://java.sun.com/javaee/5/docs/tutorial/doc/bnama.html] ). The server is probably looking at yyy.xxx.tag and trying to use it as if it was a Tag File named xxx.tag, rather than a package.

Similar Messages

  • Awful Customer service and handling of my issues

    Hi,
    Not quite sure where to begin but i would like someone to take notice of my concerns as it appears no one in the service center is. I have never received such a poor service and whats worse is that the information i have been given appears to be false.
    The issue started over a month, in november my ex partner bought me a brand new laptop from littlewoods, a G505s, the AMD quad core, ati 2GB graphics, supposedly the works, anyways after about a month it got really hot and then eventually the screen went blank and would not show any picture, so i contact Lenovo who arranged to collect the laptop and repair it.
    The laptop was received on the 17th of January in germany at there so called repair center, i called them each day to check the status and at first was told to wait the 10 days, then after the 10 days, ui was then told to wait 28 days, then two weeks after the initial contact i was told they would find out how long the parts would take to arrive and so fourth, this went on for weeks. Eventually after nearly four weeks, i was told the parts would take too long and so they would issue me with a returns code if i coudl provide proof of purchase. The problem is the laptop was apresent and my ex girlfreind was not playing ball so thinking that i would have to wait for the laptop to be returned, low and behold i come back from work and there we go, they returned the laptop UNREPAIRED.
    I received a document with it saying that they have diganosed the problem as the motherboard being faulty however they have so called resolved this issue by returning the laptop without being repaired, which i did not ask for them to do, i asked for it to be repaired or replaced under the warranty which they are legally obliged to.
    When i contacted LENOVO about this, i was put through to a rude senior supervisor who was very rude and unhelpful, stating that i had to provide this and when i tried to explain that i was unsatisfied that it had taken so long for this to get brought to my attention he claimed i was being abusive. I asked for an email address to email into and he refused to provide this, i asked to escalate the call, he refused. I think considering i have worked in customer services for over two years i know how these work and there are complaints procedures in which if a complain is not resolved then it gets escalated if the customer requires this however it appears Lenovo and this so called senior does not feel the same way.
    All i want is my laptop replaced or repaired, an email address to send my formal complaint about this member of staff and my outstanding issues resolved, as i was given [email protected]

    welcome to the BT community forum where customers help customers and only BT employees are the forum mods
    are you connected directly via a filter to the NTE5 master or test socket or to somewhere else? Is the master the only phone socket in your home?
    Have you tried the quiet line test? - dial 17070 option 2 - should hear nothing - best done with a corded phone. if cordless phone you may hear a 'dull hum' which is normal  if you hear noise then you need to report a phone fault to 151
    regardless of which ISP you use apart from cable the engineers will be exactly the same as all the lines are owned by openreach and treat all ISPs exactly the same
    Someone may then be able to offer help/assistance/suggestions to your problem
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • JSP compilation issue

    Hello,
    When we use the exploded war format we are getting some issues in JSP precompilation.
    The issue comes only when we do some local changes to the JSPs in the domain directly and refresh the webpage without restarting the server.
    A sample error is given below.
    Compilation of JSP File '/en/abc/xyz.jsp' failed:
    xyz.jsp:19:5: The page failed validation from validator: "Illegal scope attribute without var in "c:set" tag.".
    <c:set var="targetContentEnabled" value="${tmpTargetContentEnabled}" scope="session" />
    ^-------------------------------------------------------------------------------------^
    xyz.jsp:27:1: The page failed validation from validator: "Illegal scope attribute without var in "c:set" tag.".
    <c:set target="${sessionScope.WDSContext}" property="site" value="${requestScope.SITENAME}" scope="session"/>
    ^-----------------------------------------------------------------------------------------------------------^
    xyz.jsp:28:1: The page failed validation from validator: "Illegal scope attribute without var in "c:set" tag.".
    <c:set target="${sessionScope.WDSContext}" property="market" value="${requestScope.MARKET}" scope="session"/>
    Can any one shed some light in to the issue ?
    You help is greatly appreciated.
    Thanks.

    Hello,
    Here is the error details.
    <Jun 8, 2012 12:32:30 PM GMT> <Info> <HTTP> <BEA-101344> <frontendapp: Attempting to precompile /en/Admin/localization/includes/actions/ajax/SM.jsp,
    since the class file associated with it was not found in the webapp classpath.>
    <Jun 8, 2012 12:32:40 PM GMT> <Warning> <HTTP> <BEA-101212> <frontendapp:online Failure while Precompiling JSPs: weblogic.servlet.jsp.CompilationException:
    BKGD.jsp:12:18: The page failed validation from validator: "Illegal scope attribute without var in "c:set" tag.".
    <%@ include file="Panels/MiniRuleLink.jsi" %>
    ^-----------------------^
    BKGD.jsp:12:18: The page failed validation from validator: "Illegal scope attribute without var in "c:set" tag.".
    <%@ include file="Panels/MiniRuleLink.jsi" %>
    ^-----------------------^
    BKGD.jsp:12:18: The page failed validation from validator: "Illegal scope attribute without var in "c:set" tag.".
    <%@ include file="Panels/MiniRuleLink.jsi" %>
    ^-----------------------^
    BKGD.jsp:12:18: The page failed validation from validator: "Illegal scope attribute without var in "c:set" tag.".
    <%@ include file="Panels/MiniRuleLink.jsi" %>
    Edited by: 939426 on Jun 12, 2012 5:17 AM

  • Custom taglibs and XScript

    Hi guys,
    To simplify my jsp's in a portal 8.1 application I am considering
    implementing some custom tags for often used constructs.
    In this task I would like to pass some objects to the task-handler
    and wonder if I can utilize dynamically attributes through the use
    of XScript expressions.
    Basically I want to implement a custom tag that will allow me to
    do the following:
    <custom:mytag value="{container.item.username}"/>
    and then in the handler resolve {container.item.username} to
    the correct object.
    If not, how can I solve the issue of passing the object to my
    custom tag?
    TIA,
    Claus Ljunggren

    Eddie,
    Thank you very much for your reply.
    Actually I startet out using the exact method you suggest, but I found a
    twist to make the solution far more elegant (in my oppinion that is).
    My primary reason for creating the tags was to get rid of all those annoying
    scriptlets. So naturally I didn't like the <%=%>'s! But it turns out that I
    don't need them in my jsp's at all.
    The netui-data:getData tag puts the value in the pageContext and the
    pageContext is directly available from the TagSupport class! This means that
    I can look the value up from the tag-handler instead of the jsp page. So all
    I have to do is pass the name of the variable in the pageContext to my
    tag-handler. End result beeing :
    JSP:
    <netui-data:getData value="{container.item.username}" resultId="username"/>
    <custom:mytag resultId="username"/>
    TAG-HANDLER:
    public int doStartTag() {
    String value = (String) pageContext.getAttribute(resultId);
    Not the XScript vision I had, but close enough ... for now ;-)
    Regards,
    Claus Ljunggren
    "Eddie O'Neil" <[email protected]> wrote in message
    news:[email protected]...
    Claus--
    In 8.1, NetUI didn't expose a JSP tag SDK and thus we're not supportingbuilding custom tags that
    extends NetUI ones.
    That being said, there are some who are doing this, but there won't bea migration path for it
    going from 8.1.x to 9.0.
    The same functionality could be accomplished through a combination ofthe NetUI getData tag and
    runtime expressions on your custom tags. For example:
    <netui-data:getData value="{container.item.username}"resultId="theValue"/>
    <custom:mytag value="<%= pageContext.getAttribute(theValue) %>"/>
    This would also set your tags up well for the next WLS version and forNetUI in Beehive where we've
    started using JSP 2.0 EL for expressions.
    Hope that helps!
    Eddie
    Claus Ljunggren wrote:
    Hi guys,
    To simplify my jsp's in a portal 8.1 application I am considering
    implementing some custom tags for often used constructs.
    In this task I would like to pass some objects to the task-handler
    and wonder if I can utilize dynamically attributes through the use
    of XScript expressions.
    Basically I want to implement a custom tag that will allow me to
    do the following:
    <custom:mytag value="{container.item.username}"/>
    and then in the handler resolve {container.item.username} to
    the correct object.
    If not, how can I solve the issue of passing the object to my
    custom tag?
    TIA,
    Claus Ljunggren

  • JSP compiler issue

    Hi,
    I have a JSP based web application that works well when deployed in Tomcat 6. I am trying to deploy it in jboss 4.2.1, everything seems to be ok but when I try to access to a JSP page I have the following error
    java.lang.IllegalStateException: No Java compiler available
         org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:229)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    my JAVA_HOME is set to use a JDK 1.5, but it should work with a JRE as the Tomcat embedded in jboss has its own compiler. I changed the web deployer configuration to use the sun compiler instead of the default but I have the same problem despite tools.jar is in the classpath. Has someone had this problem before or could someone help me on the issue ?
    Thanks,
    Cyril

    Hi here is what JBOSS displays at startup, everything seems to be right and points to a JDK
    JBOSS_HOME: D:\java\jboss\jboss-4.2.1.GA
    JAVA: D:\java\jdk1.5.0_12\bin\java
    JAVA_OPTS: -Djava.library.path="D:\java\jboss\jboss-4.2.1.GA\bin\native;..." -Dprogram.name=run.bat -server -Xms256m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
    CLASSPATH: D:\java\jdk1.5.0_12\lib\tools.jar;D:\java\jboss\jboss-4.2.1.GA\bin\run.jar
    To use sun compiler instead of jdt in tomcat I modified web.xml in JBOSS_HOME\server\default\deploy\jboss-web.deployer\conf and added the following to the jsp servlet configuration
    <init-param>
    <param-name>compilerClassName</param-name>
    <param-value>com.sun.tools.javac.main.Main</param-value>
    </init-param>
    <init-param>
    <param-name>compilerTargetVM</param-name>
    <param-value>1.5</param-value>
    </init-param>
    <init-param>
    <param-name>compilerSourceVM</param-name>
    <param-value>1.5</param-value>
    </init-param>
    but I have the same error as when I use the jdt compiler. I'm clueless on what else I could try from here, I posted also the issue on jboss forums last week but haven't got an answer so far, I suspect a classloader side effect with my application as I get the same error accessing the jboss web-console only when my application is deployed.

  • Intermittently successful JSP compilation issue

    Hi,
    I am facing a weird issue. I feel this is the right place. If not kindly point me to right place.
    We are using Solaris SPARC machines.
    We have a bunch of JSP files which compile fine on a sun4u machine.
    bash-2.05$ uname -a
    SunOS YYYY 5.10 Generic_141444-09 sun4u sparc SUNW,Sun-Fire-V245
    But the same bunch of files throws error on compilation on sun4v machine.
    bash-2.03$ uname -a
    SunOS XXXX 5.10 Generic_141414-01 sun4v sparc SUNW,Sun-Fire-T1000
    We are using the weblogic.appc to compile it. These are the options we are using it with to aid debugging.
    -g -lineNumbers -verbose -forceGeneration -keepgenerated
    What makes it even weird is that around 30% of time the compilation is success. But remaining 70% of time it fails.
    The Weblogic installer is same on both machines.
    The Java is same on both machines. (jdk1.6)
    The error is something like this:
    [jspc] Compiling /xyz/abc.jsp
    There are 1 nested errors:
    weblogic.utils.compiler.ToolFailureException: jspc failed with errors :weblogic.servlet.jsp.CompilationException: abc.jsp:42:18: Syntax error on token "}", { expected after this token
    If I open the file at that line number there is no } to be seen.
    Also the errors keep varying in content. I mean they are of similar type in the sense that they have Syntax errors but on different compilation runs their contents are different.
    Like this is something which we have seen too.
    weblogic.utils.compiler.ToolFailureException: jspc failed with errors :weblogic.servlet.jsp.CompilationException: xyz.jsp:34:47: Syntax error on token "if", Identifier expected
    The file names vary. The error exact text varies.
    But the thing which is really strange is that sometimes it complies just fine.
    We clear off all the class files before compiling so that the JSP files do get compiled.
    Any pointers as to where to look at?
    Regards
    Edited by: I_Kept_walking on Sep 8, 2011 7:02 AM
    Edited by: I_Kept_walking on Sep 8, 2011 7:07 AM

    Its around 70 odd JSP. And also i do not see any out of memory errors.
    Is there any way I can get more info out of it.
    I have seen that -g parameter in case of weblogic appc compiler puts the debug info in the class file.
    -g :Compiles debugging information into a class file.
    Which class file? Where its located? And if anyway to analyze that class file??Anyone has any idea?

  • A Custom Component and the JSP source that get's generated

    I'm writing a Custom Component library and I'm at a point where I need to understand how the JSP source that gets generate when my component is dragged from the palete is created and how it relates to the properties I define in the Metadata files.
    In particular I have a component that is an extension of the DataTable component and I'd like to control what get's dropped onto the page when the user drags over my component.
    Don

    See the "Building and Customizing JavaServer Faces Technology Components" technology theme page at http://developers.sun.com/prodtech/javatools/jscreator/reference/themes/buildingjsf/index.html. The Hands-On Examples and "Design-Time API User Guide (pdf)" linked from that page should help.

  • JSP Compilation Issue with Tomcat 4.0.6

    Hi There,
    I've been checking the following issue online for sometime but I just can't seem to figure what is wrong with the server setup. I've this very simple JSP page processing the form variables submitted to an action page which is another JSP page. Thecode segement in the target JSP is like this;
    if(request.getParameter("contactUsSubmit")!=null)
    }Whenever I try to use request.getParameter("XYZ") in the target page just like above, I get following error from Tomcat;
    Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: org/apache/jasper/runtime/JspException
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspException
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
         at org.apache.jsp.contact$jsp._jspService(contact$jsp.java:174)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
         at java.lang.Thread.run(Thread.java:534)
    When I comment the code fragment, it works. It is not about what is in the if statment is true, I can assure you. Consider it as simple output to ease your mind.
    Any ideas why this might be happening? I'vve tried the same code with Resin 2.x and Tomcat 5.5 , it works just fine. Do you think there is something missed with the Tomcat setup or the Tomcat version (4.0.6) on that specific server is no good?
    Any comments are greatly appreciated.
    Thanks in advance...
    Regards,
    Mert

    Hi There,
    As you said using equals would not work as it should be a valid String in order for the eqauls function to work.
    Unfortuantely I can't access the Servlet created or the log files. It has crossed my mind too but this is a setup by the service provider and they don't let you nose into their business but they ahvedone something wrong with their system as far I can think.
    I've wanted to print the output to the web but when i use the request.getParameter it just creates the error.
    Java service is provided optional and as any optional service it is not well supported so I need to make them some pointers. So any more ideas?
    Cheers,
    Mert

  • OC4J 10.1.3.1 and Spring - jsp:include issues

    Hi,
    I've got a strange problem when using OC4J 10.1.3.1 together with Spring framework.
    I have several controllers in spring that generate things like page headers, footers, and other common elements. Historically I've merged these into a page with jsp:include or a c:import directive in the page.
    However, with the newer versions of OC4J, it will retrieve the content for the first request, and then repeat that same content for each subsequent request.
    If I replace that controller request with a direct .jsp page request, those elements are inserted and merged without any problem into the main page.
    I haven't had this problem on other servers... nor have I had the problem with OC4J until the latest release... Does anybody have an idea how to allow me to merge this Spring-Controller generated content with a jsp page successfully?
    thanks!

    Sure, I've examined it a few times when I've adjusted various JSP options.. mostly around the tag handling. By the way, right now I have Tag Resuse Default set to "compiletime with release", though I've tried the other options as well.
    __ojsp_s_out.write(__oracle_jsp_text[0]);
    /*@lineinfo:translated-code*//*@lineinfo:6^5*/ {
    String __url=OracleJspRuntime.toStr("/global/globalHeader.do");
    // Include
    pageContext.include( __url,false);
    if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) return;
    /*@lineinfo:generated-code*/
    __ojsp_s_out.write(__oracle_jsp_text[1]);
    /*@lineinfo:translated-code*//*@lineinfo:11^1*/ {
    String __url=OracleJspRuntime.toStr("/global/globalNav.do");
    // Include
    pageContext.include( __url,false);
    if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) return;
    /*@lineinfo:generated-code*/
    __ojsp_s_out.write(__oracle_jsp_text[5]);
    /*@lineinfo:translated-code*//*@lineinfo:35^1*/ {
    String __url=OracleJspRuntime.toStr("/global/globalFooter.do");
    // Include
    pageContext.include( __url,false);
    if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) return;
    There are three obviously.. and with this page execution I see the first one (globalHeader.do) duplicated three times in the final page.
    thanks!

  • JSP custom taglib

    Hi, I've a big problem:
    I tried to realize my first custom taglib for converting a .jasper file (a precompilated formatted meta-document) into a PDF file but I poorly failed... :(
    Unfortunatly, although the code run correctly into a main class into a stand alone sample application, the same code (opportunely adapted) doesen't work correctly if used by a JSP with its relative custom tag library.
    The error message is:
    javax.servlet.ServletException: Error loading expression class : report_semplice
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:872)
         org.apache.jasper.runtime.PageContextImpl.access$1100(PageContextImpl.java:114)
         org.apache.jasper.runtime.PageContextImpl$12.run(PageContextImpl.java:792)
         java.security.AccessController.doPrivileged(Native Method)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:790)
         org.apache.jsp.reportPDF_jsp._jspService(reportPDF_jsp.java:82)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:141)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
    root cause
    javax.servlet.jsp.JspTagException: Error loading expression class : report_semplice
         com.tag.GeneratePDF.doEndTag(GeneratePDF.java:72)
         org.apache.jsp.reportPDF_jsp._jspx_meth_JR_GeneratePDF_0(reportPDF_jsp.java:99)
         org.apache.jsp.reportPDF_jsp._jspService(reportPDF_jsp.java:71)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:141)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
    The code of the taglib class is:
    package com.tag;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import net.sf.jasperreports.engine.*;
    import net.sf.jasperreports.engine.export.*;
    import net.sf.jasperreports.engine.util.*;
    import net.sf.jasperreports.view.*;
    import java.sql.*;
    import org.apache.commons.logging.*;
    import java.io.*;
    import java.util.*;
    public class GeneratePDF extends TagSupport
      private String sourceFileName = "C:\\default.jasper";
      private String destinationFileName = "C:\\default.pdf";
      public void setSourceFileName(String sourceFileName)
        this.sourceFileName = sourceFileName;
      public void setDestinationFileName(String destinationFileName)
        this.destinationFileName = destinationFileName;
      public int doStartTag()
          return SKIP_BODY;
      public int doEndTag() throws JspTagException
        try
            //Passaggio parametri da passare al jasper.
            Map parameters = new HashMap();
            parameters.put("param1", new Integer(1));
            //Preparazione del file da stampare (in questa fase si esegue la query e si inseriscono
            //i valori estratti dalla query)
            JasperPrint jasperPrint=JasperFillManager.fillReport(sourceFileName, parameters, getConnection());
            // a schermo
            // JasperViewer.viewReport(jasperPrint);
           // test
           //pageContext.getOut().println("Destination File:" + destinationFileName);       
        //Creazione del PDF
            JasperExportManager.exportReportToPdfFile(jasperPrint, destinationFileName);
        //    System.exit(0);
           catch(Exception e)
                { throw new JspTagException(e.getMessage());
        return EVAL_PAGE;
    /**Metodo per creare la connessione al DB*/
    private static Connection getConnection() throws ClassNotFoundException, SQLException {
    //Change these settings according to your local configuration
    String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
    String connectString = "jdbc:odbc:gecoware";
    String user = "admin";
    String password = "password";
    Class.forName(driver);
    Connection conn = DriverManager.getConnection(connectString, user, password);
    return conn;
    The .TLD file is:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
        <tlibversion>1.0</tlibversion>
        <jspversion>1.1</jspversion>
        <shortname>JR</shortname>
        <uri>ReportTags</uri>
        <info>Tag library per la generazione di report a partire da files .jasper</info>
        <tag>
            <name>GeneratePDF</name>
            <tagclass>com.tag.GeneratePDF</tagclass>
            <bodycontent>empty</bodycontent>
            <info>Tag per la generazione di PDF</info>
            <attribute>
              <name>sourceFileName</name>
            </attribute>
            <attribute>
              <name>destinationFileName</name>
            </attribute>
        </tag>
    </taglib>
    And the JSP code is:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ taglib uri="ReportTags" prefix="JR" %>
    <html>
    <head>
    <title>GeneratePDF</title>
    </head>
    <body>
    <JR:GeneratePDF sourceFileName="c:\\report_semplice.jasper" destinationFileName="c:\\report1.pdf"/>
    </body>
    </html>
    I hope that someone could help me...
    Thank you,
    AleX

    Hi,
              I think that the container can not identify the tag's ,what you are trying to use.
              As per the j2ee specification , we need to follow the procedure to use the taglib as given below
              Procedure for using a Tag Lib :
              â€¢ Copy tag lib jar files under WEB-INF/lib ( if tag handler supplied as classes without package a jar file then we need to copy the classes under WEB_INF/classes.
              â€¢ Copy the tld files files under WEB-INF or create a directory under WEB-INF and copy tld files under this directory.
              â€¢ We need to give the information about the tag libraries in web.xml by adding the following lines to it as,
              <taglib>
              <taglib-uri>http://www.inet.com/taglibs/bodytags</taglib-uri>
              <taglib-location>/WEB-INF/tlib/tlib1.tld </taglib-location>
              </taglib>
              To use tags in jsp file we need to add taglib directive as ,
              <%@ taglib uri="http://www.inet.com/taglibs/samptags" prefix=“abc"%>
              Every tag can support zero or more number of attributes and a tag may or may not support body content.
              weblogic server try to parse the .tld file whenever the tags are encountered in jsp files.
              As per the .tld file the container identify the attributes of the tags which were defined in .tld file.
              ------ Anilkumar kari

  • "Occasionally" successful compilation issue on sun4v machine.

    Hi,
    I have created a thread on JSP section of the forum for this.
    Intermittently successful JSP compilation issue
    But I am putting the link here too because the only difference between the success and failed case is the platform we are using. We are using Solaris SPARC machines.
    The compilation is a success on sun4u machine.
    But on sun4v is mostly a failure (sometimes it succeeds though strangely).
    I will be very grateful if you can go through the thread I have shared above and share some pointers on this.
    Regards

    Post Author: usaitconsultant
    CA Forum: JAVA
    Hi Ted,
    Thanks for the reply.The file is not available in the server. Though, I checked CMS and I found an instance in history tab and the status is failed with error below. 
                Error Message:
                A variable prevented the data provider Query 1 with BANRRD30 from being refreshed. (DMA0008).When I checked my codes, I found out that the object Im using is for web intelligence data provider. However, I cannot find any documentation and example for passing parameter values in desktop intelligence data provider. Any idea on this? You think this is not suported by Report Engine SDK?Thanks.    

  • JSP complilation issue (JAVAC message file is broken)

    i am facing a jsp compilation issue with error message JAVAC message file is broken .
    i have one main jsp in which i have one module of about 4000 line of coding.i splitted this file in 4 segments and included them in main jsp. Each segment is included using
    <jsp:include page="Module_ProductsTab_PAOChangeValid_Apply.jsp" flush="true">
    <jsp:param name="adspot" value="dotcom3" />
    <jsp:param name="page" value="ProdTab" />
                             </jsp:include>
    tag , but now it takes as much long time to load that would result in page timeout.
    can anyone give me input how i handle this issue?

    This sounds like a corrupt installation.
    Try uninstalling java and re-installing it. (With 1.4.2_04 if you can)

  • Custom Taglibs

    Hi all
    Can any one tell me y Custom Taglibs came innto field what use to be there before and how they are used. what are the advantages and disadvantages of Custom Taglibs
    And also about struts tags
    Thanx in
    advance

    Tag libs keep scriptlets out of JSPs.
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPTags.html

  • Workflow activity stuck at Custom Nodes and is in Active Status

    Hi Team,
    We have one issue with our Custom Order Management--> Order  Booking workflow. Can you please help us.
    Issue:
    Our Workflow Activities are in the following sequence.
    Start --> Activity A ---> Activity B --> Activity C --> End
    Code at Activities A, B, C involves Third part tool Integrations which involves business events, invoking Https Urls with Req/Res Xmls
    Ideally whenever an issue encounters at any one of these nodes, either workflow should go back or should proceed further.
    But in our case, process gets stuck at some Node (either A, B or C) with Activity status as ACTIVE. Upon checking Workflow diagram, seems there is no 'Y' or 'N' signal from any one of the above activities, once processes at respective Activity's gets completed.
    Can you please review this issue and suggest if anything could be checked.
    1) We came across some hint in google and found that missing COMMIT statement could be the issue.
         But we checked our custom code and there is no issue with COMMIT.
    2) We have even checked the FINAL RETURN status at each of the Activity's by adding debug messages and we could see that the return value is appropriate but not sure what is causing this
         issue.
    Upon retrying the Activity from Workflow Administrator resp, the same activity (that is stuck before) is getting Completed Normally.
    Also this is an intermittent issue and not sure, if this is happening inconsistently due to some environment params or some load related.
    Request you to review the problem and suggest if anything needs to be checked.
    Thank you,
    Lokesh G
    Oracle Apps Consultant

    Hi Team,
    Request you to please check the issue and provide your suggestions.
    Your help is much appreciated.
    Thanks
    Sreenivasulu M

  • Custom TagLib & JSP Helpers

    I've written a custom tag library for some advanced UI components (tabbedpane, toolbar, tree, etc.) that I've been distributing for free as a .jar file with the associated .tld file. So far, so good.
    Now I want to write some more advanced tags (i.e. a DateSelection and Calculator tag) that will require some helper JSP files (and possibly images) to render the actual calendar and calculator.
    My plan is to have the tag generate a textfield with a hyerplink image to it's right. When clicked the image would load the helper JSP file in a new window. The user would do his thing and when done, the JSP would reload the parent window so the textfield could grab the result from the request and display it.
    My question is how to package this. I would like to keep this thing as a single self contained .jar file that could be easily placed in the WEB-INF directory of a user's webapp and VIOLA, it's done.
    Can I reference a .JSP (& | images) stored in this jar file or will the user have to be responsible for placing the JSP(s) (and the hyperlink images) within their context path? This would add some possible support issues (you know what I mean) and being a freeware package I'd like to avoid that at all costs.
    You guys have been tremendous help so far. Thanks.

    how will mailing the jar help ?
    I dont think you can include it all in the jarfile. Best thing is to make an entire war file with the developed taglib and jsp's.
    The user then should deploy the war file and ervything should work.

Maybe you are looking for

  • Creative Zen Touch Skin PLEEEAASSEEE HELP!!!

    Who out there wants a skin for their Creative Zen Touch? Who is tired of the monopoly that Vaja cases has and forces you to buy their horrific case for 70 Big Ones? Who is tired of the Creative Case that is included and is extremely bulky and doesnt

  • DaisyDisk deleted my password somehow. Macbook will not boot up.

    Okay, so I downloaded DaisyDisk to clean and optimize my Macbook 15" white E2008. I deleted some files and found useless, but then I went to delete some more, and it asked me for admin password, and my admin password did not work. So I logout and log

  • Update Query very slow

    Hi All I have three setups on which i have to run same query which is mentioned below. The execution plan on all three setups is same for the mentioned query. Still in one of the setup the query is taking almost 8 Hrs to complete. while in rest 2 set

  • Yahoo BrowserPlus file upload

    Hi, I'd like to offer my users file uploads via the groovy new Yahoo BrowserPlus. The BrowserPlus API call takes a URL parameter, documented as: "The url to POST the file to. Can be relative to invoking URL, e.g. if service is invoked from http://www

  • Desktop disappearing from network

    I have a Linksys WRT54GL, a desktop on ethernet, and a laptop on wireless. The desktop stays on all the time, does not go into hibernation or standby. I turn the laptop on only when I am ready to use it. Out of the blue, when I turn on the laptop now