Validation error in Tag Library at deploy time

I am trying to deploy a JSF2 app to NW CE 7.1 EHP1. This application deploy's fine to Tomcat. When I deploy to SAP it gives an error: Error in parsing [META-INF/primefaces-i.tld] TLD file in the following [D:\usr\sap\NCX\J00\j2ee\cluster\apps\com.sap\IDMear\servlet_jsp\IDM\root\WEB-INF\lib\primefaces-1.0.0.jar] JAR file.
[EXCEPTION]
com.sap.engine.lib.xml.parser.NestedSAXParseException: Fatal Error: org.xml.sax.SAXParseException: Validation error : line: 13; col: 16; :description : Element is not allowed.(:main:, row=13, col=17) -> org.xml.sax.SAXParseException: Validation error : line: 13; col: 16; :description : Element is not allowed.
at com.sap.engine.lib.xml.parser.DOMParser.parse(DOMParser.java:140)
at com.sap.engine.lib.xml.parser.DOMParser.parse(DOMParser.java:174)
at com.sap.engine.lib.processor.SchemaProcessor.parse(SchemaProcessor.java:197)
at com.sap.engine.services.servlets_jsp.server.deploy.descriptor.TagLibDescriptor.loadDescriptorFromStream(TagLibDescriptor.java:90)
From looking at the TLD XSD for JEE 5, the Description field should be allowed. Do you know why it is not comparing the TLD against the correct schema or if there is another explanation?
This is a 3rd party faces component library. Here is where it fails:
<?xml version="1.0" encoding="UTF-8"?>
<taglib xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1">
     <tlib-version>1.2</tlib-version>
     <short-name>i</short-name>
     <uri>http://primefaces.prime.com.tr/touch</uri>
     <tag>
          <name>application</name>
          <tag-class>org.primefaces.touch.component.application.ApplicationTag</tag-class>
          <body-content>JSP</body-content>
          <attribute>
               <name>id</name>
               <required>false</required>
               <description><![CDATA[Id of the component]]></description>               <rtexprvalue>false</rtexprvalue>
          </attribute>
Any suggestions would be appreciated.

It looks like the 3rd party tld did not have the description in the correct order. It has been corrected in a new build.

Similar Messages

  • Validation error for tag cfloop

    Hi All,
    Complete newbie to CF here.  I've inherited (or bought) an online business which has its site written in CF.  I haven't done this sort of stuff before but do work SQL for a living and object oriented stuff plus have done a bit of html and php so CF isn't mind blowing to me (in its simple form).
    I've downloaded my site on to my computer to run a local copy that I can hack to pieces if needs be.  For some reason, I have a few problems with the site running locally.  The first error I'm getting is a Attribute validation error for tag cfloop.
    Basically, index.cfm has this bit of code in it:
    <cfinvoke component="#datasets#" method="storedProcedure" returnvariable="getFeaturedWineries_qry">
        <cfinvokeargument name="storedProcedure" value="usp_GetFeaturedWineries">
    </cfinvoke>
    Ok, easy enough.  Anyway, there's a call down the page to:
    <cfinclude template = "#REQUEST.CFMPath#includes/displayFeaturedWineries.cfm">
    Within displayFeaturedWineries.cfm is the code that calls the stored proc invoked above:
    <cfloop query="getFeaturedWineries_qry" startrow="1" endrow="2">
    Bam, that's where the error occurs.  "The value of the attribute query, which is currently getFeaturedWineries_qry, is invalid.
    What???  The stored proc exists and it only returns two records (which begs me to wonder why you would have startrow and endrow but anyway, it doesn't work with or without it).
    The other interesting thing is that this works on production, NO PROBLEM!!!  WTF?  How can it work on production but not locally.
    The only thing I'm starting to think is:
    a)  I've missed a setting somewhere in CF or
    b)  I'm running Apache as compared to IIS or
    c)  I'm running SQL 2008 and CF 9 which will no doubt be different to the production host server.
    Should B or C be causing THAT type of problem??
    Thanks,
    Matt

    I'm not sure what code apart from the above is going to show you what you could possibly need to solve this, but here goes.  The following is only snippets of the code, but they are the relavant snippets.  Other stored procs work.  The cfdump for getFeaturedWineries_qry shows 'usp_getFeaturedWineries'.  I know its there because I've been unable to run "EXEC usp_getFeaturedWineries" after copying it straight out of the code.  As previously stated, there are other stored procs which are running fine.
    datasets.cfc
        <cffunction name="storedProcedure">
            <cfargument name="storedProcedure" required="Yes" type="string">
            <cfstoredproc procedure = "#ARGUMENTS.storedProcedure#"
                          datasource = "#REQUEST.DSN_NAME#"
                          username   = "#REQUEST.DSN_USER#"
                          password   = "#REQUEST.DSN_PASS#"
                          returncode = "Yes">
                <cfprocresult name="storedProcedure" resultset="1">
            </cfstoredproc>
            <cfreturn storedProcedure>
        </cffunction>
    application.cfm
        <!--- DATA SOURCE VARIABLES --->
        <cfset DSN_NAME = "boutiqueWineriesTest">
        <cfset DSN_USER = "coldfusion">
        <cfset DSN_PASS = "coldfusion">
    index.cfm
    <cfobject component="#COMP_REF#.datasets" name="datasets">
    <cfinvoke component="#datasets#" method="storedProcedure" returnvariable="getFeaturedWineries_qry">
        <cfinvokeargument name="storedProcedure" value="usp_getFeaturedWineries">
    </cfinvoke>
    <cfinclude template = "#REQUEST.CFMPath#includes/displayFeaturedWineries.cfm">
    displayFeaturedWineries.cfm
             <cfloop query="getFeaturedWineries_qry" startrow="1" endrow="2">
    Attribute validation error for tag cfloop.
    The value of the attribute query, which is currently  getFeaturedWineries_qry, is invalid.                                                                                  The error occurred in C:\apps\iishome\includes\displayFeaturedWineries.cfm:  line 33
    Called from C:\apps\iishome\index.cfm: line 399
    Called from C:\apps\iishome\index.cfm: line 79
    Called from C:\apps\iishome\index.cfm: line 1
    31 :      <tr>
    32 :           <td width="626" colspan="3" class="productCenter_bg2">
    33 :          <cfloop query="getFeaturedWineries_qry" startrow="1" endrow="2">
    34 :              <div class="productCennews">
    35 :                  <table border="0" cellspacing="0" cellpadding="0">

  • Need help... Context validation error for tag cfscript.

    Code:
        <cffunction name="computeHash" access="public" returntype="String">
          <cfargument name="password" type="string" />
          <cfargument name="salt" type="string" />
          <cfargument name="iterations" type="numeric" required="false" default="1024" />
          <cfargument name="algorithm" type="string" required="false" default="SHA512" />
          <cfscript>
            var hashed = '';
            var i = 1;
            hashed = hash( password & salt, arguments.algorithm, 'UTF-8' );
            for (i = 1; i <= iterations; i++) {
              hashed = hash( hashed & salt, arguments.algorithm, 'UTF-8' );
            return hashed;
          </cfscript>
        </cffunction>
    Error on web app:
    Context  validation error for tag cfscript.
    The start tag must have a matching  end tag. An explicit end tag can be provided by adding </cfscript>. If the  body of the tag is empty you can use the shortcut <cfscript .../>. The CFML compiler was processing:
    a cfscript tag beginning on line 11, column 12.
    a cfscript tag beginning on line 11, column 12.
    The  error occurred in xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\salty.cfc: line  11
    9 :        <cfargument name="iterations" type="numeric" required="false" default="1024" />
    10 :        <cfargument name="algorithm" type="string" required="false" default="SHA512" />
    11 :        <cfscript>
    12 :           var hashed = '';
    13 :           var i = 1;
    I am completely lost on why it's fumbling with why it says there's no closing tag.  Help!!!!
    Thanks

    What's on lines 1-7 of that file?
    That code compiles fine for me on CF8 & CF9, so that's not where the error is.
    You're not trying to compile it on any earlier version of CF than CF8 are you?  The < and ++ operators are not valid prior to CF8.  CFMX7 might see the < as a stray angle bracket, and get confused.  I don't have CFMX7 running here to test the exact error that would produce, sorry.
    Adam

  • Newly created portal access failure: error in tag library

    I get an error when accessing a newly created portlet. The following
    exceptions appear upon access:
    Wed Aug 23 16:57:12 PDT 2000:<E> <ServletContext-General> Servlet failed
    with Ex
    ception
    weblogic.servlet.jsp.JspException: (line -1): Error in tag library at: 'cm':
    no
    handler for tagname='printProperty'
    at
    weblogic.servlet.jsp.StandardTagLib.jspException(StandardTagLib.java:
    138)
    at
    weblogic.servlet.jsp.StandardTagLib.getTI(StandardTagLib.java:334)
    at
    weblogic.servlet.jsp.StandardTagLib.genericStartBegin(StandardTagLib.
    java:475)
    at
    weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:53
    5)
    at
    weblogic.servlet.jsp.JspLexer.mOPEN_EXTENSION_TAG(JspLexer.java:1844)
    at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1513)
    at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1400)
    at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:816)
    at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
    at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116)
    at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:248)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
    at
    weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
    java:187)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:118)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:142)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
    cherImpl.java:153)
    at
    com.beasys.commerce.axiom.jsp.JspServiceManager.service(JspServiceMan
    ager.java:1033)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:124)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
    textImpl.java:744)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
    textImpl.java:692)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
    ContextManager.java:251)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
    a:363)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Wed Aug 23 16:57:12 PDT 2000:<I> <ServletContext-General> servletimages:
    init

    Bryan -
    It looks like you tried <cm:printProperty>, when the tag is actually
    <cm:printproperty>. Tag names and parameters are case-sensitive.
    Greg
    Bryan Beam wrote:
    I get an error when accessing a newly created portlet. The following
    exceptions appear upon access:
    Wed Aug 23 16:57:12 PDT 2000:<E> <ServletContext-General> Servlet failed
    with Ex
    ception
    weblogic.servlet.jsp.JspException: (line -1): Error in tag library at: 'cm':
    no
    handler for tagname='printProperty'
    at
    weblogic.servlet.jsp.StandardTagLib.jspException(StandardTagLib.java:
    138)
    at
    weblogic.servlet.jsp.StandardTagLib.getTI(StandardTagLib.java:334)
    at
    weblogic.servlet.jsp.StandardTagLib.genericStartBegin(StandardTagLib.
    java:475)
    at
    weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:53
    5)
    at
    weblogic.servlet.jsp.JspLexer.mOPEN_EXTENSION_TAG(JspLexer.java:1844)
    at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1513)
    at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1400)
    at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:816)
    at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
    at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116)
    at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:248)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
    at
    weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
    java:187)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:118)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:142)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
    cherImpl.java:153)
    at
    com.beasys.commerce.axiom.jsp.JspServiceManager.service(JspServiceMan
    ager.java:1033)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:124)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
    textImpl.java:744)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
    textImpl.java:692)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
    ContextManager.java:251)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
    a:363)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Wed Aug 23 16:57:12 PDT 2000:<I> <ServletContext-General> servletimages:
    init[greg.smith.vcf]

  • Error parsing tag-library file

    Anyone know how to tackle this one?
    Error parsing JSP page /AnteDateLogin.jsp line 3
    Error parsing tag-library file:/u01/web/ias102/j2ee/home/applications/antedate/antedate/WEB-INF/lib/uixtags.jar: Illegal XML character: &#x0;.
    Here is what goes to the console.
    ora03 $ at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.javaorg.xml.sax.SAXParseException: Illegal XML character: &#x0;.
    at org.apache.crimson.parser.InputEntity.fatal(InputEntity.java:1038)
    at org.apache.crimson.parser.InputEntity.parsedContent(InputEntity.java:593)
    at org.apache.crimson.parser.Parser2.content(Parser2.java:1747)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
    at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
    at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
    at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
    at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:179)
    at com.evermind.xml.JavaxXMLUtils.getJavaxDocument(JavaxXMLUtils.java:35)
    at com.evermind.xml.XMLUtils.getDocument(XMLUtils.java:157)
    at com.evermind.server.http.TagLibraryInfoImplBase.parse(TagLibraryInfoImplBase.java:82)
    at com.evermind.server.http.TagLibraryInfoImplBase.<init>(TagLibraryInfoImplBase.java:47)
    at com.evermind.server.http.TagLibraryArchive.<init>(TagLibraryArchive.java:40)
    at com.evermind.server.http.TagLibraryArchive.getArchive(TagLibraryArchive.java:98)
    at com.evermind.server.http.TagLibraryStorage.getTagLibContext(TagLibraryStorage.java:183)
    at com.evermind.server.http.HttpApplication.getTagLibContext(HttpApplication.java:5897)
    at com.evermind.server.http.JSPPageCompilation.addTagLibTag(JSPPageCompilation.java:2229)
    at com.evermind.server.http.JSPPageCompilation.compile(JSPPageCompilation.java:278)
    at com.evermind.server.http.JSPPage.compile(JSPPage.java:115)
    at com.evermind.server.http.HttpApplication.getJSP(HttpApplication.java:5324)
    at com.evermind.server.http.HttpApplication.serviceJSP(HttpApplication.java:5423)
    at com.evermind.server.http.JSPServlet.service(JSPServlet.java:31)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:508)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:177)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)

    Doe anybody have an idea?

  • Error in tag library at: 'wl'

    Hello,
    I've installed WLCS on WinNT with WebLogic Server 5.1.0 and when I want to
    edit example portlets, I get following error:
    "Error in tag library at 'wl': For tag 'repeat', cannot load extra info
    class 'weblogic.jsp.tags.RepeatTagInfo'".
    I have't installed any WLCS service packs yet - are they necessary to run
    the examples?
    Thanks for any help,
    Marek.

    Hi there!
    Now its running perfectly when its with the same database along which the wlcs is
    shipped i.e, cloudscape. But when i swithched the db to oracle i get the same error
    Could you help me out.
    Thanx in advance,
    chalma.
    chalma wrote:
    Hi There!
    Is that you people were discussing the problem in WLCS3.2. Cause i too face the
    same problem.
    Thanx,
    chalma.
    Ginny Peterson wrote:
    Hi Marek,
    The weblogic-tags-510.jar file is missing from your WEBLOGIC_CLASSPATH.
    Check your set-environment.bat file (or the Unix shell script that you use
    to start the server) and make sure your WEBLOGIC_CLASSPATH includes
    weblogic-tags-510.jar, AND that this file actually exists in the location
    that your WEBLOGIC_CLASSPATH specifies.
    The weblogic-tags-510.jar file was introduced with SP6 for WLS 5.1.
    Although it was an optional file with SP6, it is required when using WLCS
    (see http://edocs.bea.com/wlcs310/install/prepinst.htm).
    You shouldn't need any service packs to run the WLCS examples.
    - Ginny
    "Marek Bialkowski" <[email protected]> wrote in message
    news:[email protected]..
    Hello,
    I've installed WLCS on WinNT with WebLogic Server 5.1.0 and when I want to
    edit example portlets, I get following error:
    "Error in tag library at 'wl': For tag 'repeat', cannot load extra info
    class 'weblogic.jsp.tags.RepeatTagInfo'".
    I have't installed any WLCS service packs yet - are they necessary to run
    the examples?
    Thanks for any help,
    Marek.

  • Attribute validation error for tag CFQUERY

    I have a CF application that's running fine on a shared host. I now have a VPS running version of CF 9. When I try to use this on the VPS, I get the following error:
    Attribute validation error for tag CFQUERY.
    The value of the attribute datasource, which is currently '', is invalid.
    The datasource is being set in application.cfc, and again works just fine in the shared environment.
    The only differences is the shared is running on Windows, and the VPS is Linux. Also, the Windows is running version 9,0,1,274733 and the Linux is 9,0,0,251028
    Any help would be greatly appreciated.

    bbholdem wrote:
    I have a CF application that's running fine on a shared host. I now have a VPS running version of CF 9. When I try to use this on the VPS, I get the following error:
    Attribute validation error for tag CFQUERY.
    The value of the attribute datasource, which is currently '', is invalid.
    The cause of the error is obvious. Somewhere in your application, the cfquery tag is used as follows, with an empty string as datasource:
    <cfquery datasource="">
    </cfquery>
    That is a mistake. The error message should tell you where that occurs.

  • Validation errors weblogic-webservices.xml during deploy for valid dd

    Hi,
    I am trying to set the login-config for my JAXWS EJB webservice endpoint, but I weblogic doesn't accept my weblogic-webservices.xml
    I validated my weblogic-webservices.xml using several xml validator tools and all say it is valid.
    Here is the weblogic-webservices.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-webservices
         xmlns="http://xmlns.oracle.com/weblogic/weblogic-webservices"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
         xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-webservices http://xmlns.oracle.com/weblogic/weblogic-webservices/1.1/weblogic-webservices.xsd http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <webservice-description>
    <webservice-description-name>AppManager</webservice-description-name>
    <port-component>
    <port-component-name>AppManager</port-component-name>
    <service-endpoint-address>
    <webservice-contextpath>/AppManagerService</webservice-contextpath>
    <webservice-serviceuri>/AppManager</webservice-serviceuri>
    </service-endpoint-address>
    <login-config>
    <j2ee:auth-method>BASIC</j2ee:auth-method>
    <j2ee:realm-name>myrealm</j2ee:realm-name>
    </login-config>
    </port-component>
    </webservice-description>
    </weblogic-webservices>
    Here are the validation errors I get during deployment:
    VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a: Expected elements 'auth-method@http://java.sun.com/xml/ns/j2ee realm-name@http://java.sun.com/xml/ns/j2ee form-login-config@http://java.sun.com/xml/ns/j2ee' instead of 'auth-method@http://xmlns.oracle.com/weblogic/weblogic-webservices' here in element login-config@http://xmlns.oracle.com/weblogic/weblogic-webservices:<null> problem: cvc-complex-type.2.4a: Expected elements 'auth-method@http://java.sun.com/xml/ns/j2ee realm-name@http://java.sun.com/xml/ns/j2ee form-login-config@http://java.sun.com/xml/ns/j2ee' instead of 'realm-name@http://xmlns.oracle.com/weblogic/weblogic-webservices' here in element login-config@http://xmlns.oracle.com/weblogic/weblogic-webservices:<null>
    Error VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a: Expected elements 'auth-method@http://java.sun.com/xml/ns/j2ee realm-name@http://java.sun.com/xml/ns/j2ee form-login-config@http://java.sun.com/xml/ns/j2ee' instead of 'auth-method@http://xmlns.oracle.com/weblogic/weblogic-webservices' here in element login-config@http://xmlns.oracle.com/weblogic/weblogic-webservices:<null> problem: cvc-complex-type.2.4a: Expected elements 'auth-method@http://java.sun.com/xml/ns/j2ee realm-name@http://java.sun.com/xml/ns/j2ee form-login-config@http://java.sun.com/xml/ns/j2ee' instead of 'realm-name@http://xmlns.oracle.com/weblogic/weblogic-webservices' here in element login-config@http://xmlns.oracle.com/weblogic/weblogic-webservices:<null>
    If I remove the namespace indicator 'j2ee' it complains about the same. So it would seem that weblogic ignores the 'j2ee' resulting indeed in a invalid xml.
    Can someone please help me to a weblogic-webservices.xml (example with login-config) that was accepted by weblogic?
    Thanks a lot,
    Eltjo.

    Hi,
    Please try the following: ( Looks like you are mixing the Tag contents of web.xml  as well as weblogic-webservice.xml   together.... )
    weblogic-webservice.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-webservices xmlns="http://www.bea.com/ns/weblogic/weblogic-webservices" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-webservices http://www.bea.com/ns/weblogic/weblogic-webservices/1.0/weblogic-webservices.xsd">
          <webservice-description>
              <webservice-description-name>AppManager</webservice-description-name>
              <port-component>
              <port-component-name>AppManager</port-component-name>
                     <service-endpoint-address>
                        <webservice-contextpath>/AppManagerService</webservice-contextpath>
                        <webservice-serviceuri>/AppManager</webservice-serviceuri>
                     </service-endpoint-address>
              </port-component>
          </webservice-description>
    </weblogic-webservices>And Now provide the <login-config> information separately inside *"web.xml"* file
    <login-config>
         <auth-method>BASIC</j2ee:auth-method>
         <realm-name>myrealm</j2ee:realm-name>
    </login-config>.
    Thanks
    Jay SenSharma

  • Custom tag library called multiple times

    Hi ppl ,
    I have a custom tag library which i use to populate some menu components. When i do call my custom tag library though , it is called multiple times, use case is as follows.
    I have menu tabs and menu bars which thanks to Mr.Brenden is working splendidly as so:-
    <af:menuTabs>
    <af:forEach var="menuTab" items="#{bindings.menu.vwUserMenuTabRenderer.rangeSet}">
    <af:commandMenuItem text="#{menuTab.MenuLabel}"
    shortDesc="#{menuTab.MenuHint}"
    rendered="true"
    immediate="true"
    selected="#{sessionScope.selectedMenuId == menuTab.MenuId }"
    onclick="fnSetSelectedValue('#{menuTab.MenuId}')" >
    </af:commandMenuItem>
    </af:forEach>
    </af:menuTabs>
    <af:menuBar>
    <af:forEach var="menuBar" items="#{bindings.menu.vwUserMenuBarRenderer.rangeSet}">
    <af:commandMenuItem onclick="return clickreturnvalue()"
    onmouseover="dropdownmenu(this, event,#{menuBar.MenuId}, '150px')"
    onmouseout="delayhidemenu()"
    text="#{menuBar.MenuLabel}"
    action="#{menuBar.MenuUri}"
    rendered="#{menuBar.ParentId == sessionScope.selectedMenuId}"
    immediate="true" />
    </af:forEach>
    </af:menuBar>
    </afc:cache>
    now all of this code is within a subview , and just directly below the subview tag , i have the call to my custom tag library:-
    <myCustomTagLib:menuCascade />
    only issue now is that assuming i have in all 7 menu bar components, the doStartTag is called 7 times. the relevant code within my custom tag class is as follows :-
    public int doStartTag() throws JspException {
    return (EVAL_BODY_INCLUDE);
    public int doEndTag() throws JspException {
    try {
    declareVariables();
    return EVAL_PAGE;
    }catch (Exception ioe) {
    throw new JspException(ioe.getMessage());
    and within my declareVariables method i do an out of the jscript ( out.print(jscript.toString()); ) which is a simple string generated based on certain conditions...
    now it seems to be working fine on the front end , but when i view the source of the page, i notice that the declaration is called multiple times, and this happens because the doStartTag method is called multiple times, i haven't even nested the call to the custom tag within the menu components , any clue as to whats going wrong ?
    Cheers
    K

    Hi,
    if you add the following print statement
    System.out.println("rendering "+FacesContext.getCurrentInstance().getViewRoot().getViewId());
    Then the output in my case is
    07/04/24 08:14:04 rendering /BrowsePage.jsp
    07/04/24 08:14:05 rendering /otn_logo_small.gif
    The image comes from the file system, which means it is rendered by the JSF lifecycle. If you reference the image with a URL then the lifecycle doesn't render the image but only refrences it.
    To avoid your prepare render code to be executed multiple times, just check for jsp and jspx file extensions, which will guarantee that your code only executes for JSF pages, not for loaded files.
    The reason why this happens is because the JSF filter is set to /faces , which means all files that are loaded through that path
    Frank

  • Error in tag library descriptor in iplanet 6.1 service park 4

    Hi Guys,
    Im getting this exception from my jsp deployed to SunOne Web Server 6.1 (or Iplanet 6.1 as others know) service pack 4
    org.apache.jasper.JasperException: WEB4083: No such tag bundle in the tag library imported with prefix i18n
    I already toggle between actions below:
    1. By referring to specific tld from WEB-INF/ in the JSP
    <%@taglib prefix="i18n" uri="/WEB-INF/tlds/taglibs-i18n.tld"%>
    note: the needed library file is already in WEB-INF/lib/
    2. Invoking this line (this is only available for Servlet 2.3 and 2.4 specifications)
    <%@taglib prefix="i18n" uri="http://jakarta.apache.org/taglibs/i18n-1.0"%>
    note: the needed library file is already in WEB-INF/lib/
    3. Invoking this line (if not Servlet 2.3 and 2.4 specifications)
    <%@taglib prefix="i18n" uri="http://jakarta.apache.org/taglibs/i18n-1.0"%>
    added lines below in web.xml:
    BEGIN
    <taglib>
         <taglib-uri>http://jakarta.apache.org/taglibs/i18n-1.0</taglib-uri>
         <taglib-location>/WEB-INF/taglibs-i18n.tld</taglib-location>
    </taglib>
    END
    note: the needed library file is already in WEB-INF/lib/
    4. By referring directly to the specific jar file from WEB-INF/lib/ in the JSP
    <%@ taglib prefix="i18n" uri="/WEB-INF/lib/taglibs-i18n.jar"%>
    Please help.
    Thanks,
    Eson.

    Use this :
    <taglib>
    <taglib-uri>http://jakarta.apache.org/taglibs/i18n-1.0</taglib-uri>
    <taglib-location>/WEB-INF/i18n.tld</taglib-location>
    </taglib>
    in your web.xml file

  • Simultaneous Client and Server Form Validation using Custom Tag Library

    I am developing a custom tag library for validator tags
    which are capable of doing client side validation (Javascript)
    and server side (Java). My problem is with the development
    of a regular expression based validator. Because of differences
    in the way Javascript and Java handle regular expressions
    i can not use the same regular expression for both types of
    validation. Is there any way to convert a valid regular
    expression from the java.util.regex format into the Javascript
    format or vice versa? My major problems are with the (or, ||)
    statements and the user of backslashes.

    If you are speaking of RE syntax flavours, they are basically the same(namely perl5 flavour). Any expression that works in JS should work in j.u.regex too.
    Though, their usage is quite different.
    So, there is no need for convertion of expressions.
    But porting the code may be not so trivial.

  • Find errors in jsff code on deploy time

    Hi all,
    I am trying to build my application ear file with ojdeploy. Everything works fine, but I want to let the deployment stop, or 'crash', whenever there are errors in the java and/or jsff code.
    On compilation errors in the java code this works out of the box (logical), but for errors in my jsff code not. I always get a succesful deployment even when tags are missing or malformed in jsff code.
    Even when I have the <jsp-descriptor> <precompile>true</precompile> </jsp-descriptor> tags in my weblogic.xml, weblogic will not detect any errors in the jsff code in my adf library jar while installing the application.
    I want to use automatic builds from a Hudson server, for this I think it is a must have to only build and deploy code in which there are no technical errors.
    Does anyone have any ideas?
    Matthijs

    Matthijs,
    Be cautious with upgrading without understanding the consequences... 11.1.1.3 to 11.1.2 is a big upgrade, and will require you to upgrade your weblogic as well (for deployment).
    11.1.1.5 (I haven't tested to see if ojdeploy will fail on jsff error in that release) would also require you to upgrade your weblogic, but is a bit less change from an architecture perspective (it's still JSF 1.2, whereas 11.1.2 will be JSF 2.0).
    John

  • Getting a Formula Error in Application Library during Deployment

    Hi,
    We're getting an odd error which baffles me... In the app library, we're deploying an app to Planning and get the following error:
    Detail : Deployment update from product:An Exception occurred during Application deployment.: Unable to load the following resource: %RESOURCE_NAME%com.hyperion.planning.olap.HspVerifyOutlineException: Verify Outline failed with the following errors:
         Error [102000000] detected in member "Acct7055": Level 0 virtual members must have a formula associated with them
    In EPMA, that account has a formula and is tagged with HSP_UDF. After deployment, Planning shows correctly the account as dynamic calc, with the formula, and the UDA. But in EAS, the account reverts back to nevershare, with no formula.
    Any ideas welcomed!. thanks.

    I hit this error in Planning for an upper level Account member of type NeverShare. In my case, the upper level member in question need was shared by 2 different planning databases, so Planning was trying to create an XREF formula for the upper level member was of type NeverShare. I resolved this issue by using the UDA member HSP_NOLINK, which tell's planning not to create the XREF formula.

  • Commerce server 3.2 tag library error

    I have installed the following components on Solaris 2.7:-
    - Java1.3
    - WebLogic5.1
    - SP6
    - Commerce Server 3.2
    The commerce server seems to start fine except the following exception
    when the Create User button is clicked from the Admin screen. Any help
    is appreciated.
    Leo
    6th Dimension-
    Tue Jan 02 11:14:15 PST 2001:<I> <WebAppServletContext-tools> *.jsp:
    init
    Tue Jan 02 11:14:15 PST 2001:<I> <WebAppServletContext-tools>
    FlowManager: init
    Tue Jan 02 11:14:26 PST 2001:<E> <WebAppServletContext-tools> Servlet
    failed with Exception
    weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
    'wl': For tag 'repeat', cannot load extra info class
    'weblogicx.jsp.tags.RepeatTagInfo'
    at
    weblogic.servlet.jsp.StandardTagLib.jspException(StandardTagLib.java:138)
    at
    weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:201)
    at
    weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib.java:146)
    at
    weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:125)
    at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:87)
    at
    weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:3739)
    at
    weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:3495)
    at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3356)
    at
    weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1694)
    at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1535)
    at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1425)
    at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:825)
    at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
    at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116)
    at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242)
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:265)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180)
    at
    weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:181)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:141)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:154)
    at
    com.beasys.commerce.foundation.flow.ServletDestinationHandler.handleDestination(ServletDestinationHandler.java:51)
    at
    com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:448)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:761)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:708)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
    Tue Jan 02 11:14:26 PST 2001:<I> <ServletContext-General> servletimages:
    init

    To be more specific, I put the jar file in the $WEBLOGIC_HOME/lib directory.
    -Brad.
    "Brad Christiansen" <[email protected]> wrote:
    >
    I was getting the same exception until I put the weblogic-510-tags.jar file (found in the SP6 zip file) in a directory referenced by the WEBLOGIC_CLASSPATH environment variable.
    -Brad.
    Leo Fu <[email protected]> wrote:
    I have installed the following components on Solaris 2.7:-
    - Java1.3
    - WebLogic5.1
    - SP6
    - Commerce Server 3.2
    The commerce server seems to start fine except the following exception
    when the Create User button is clicked from the Admin screen. Any help
    is appreciated.
    Leo
    6th Dimension-
    Tue Jan 02 11:14:15 PST 2001:<I> <WebAppServletContext-tools> *.jsp:
    init
    Tue Jan 02 11:14:15 PST 2001:<I> <WebAppServletContext-tools>
    FlowManager: init
    Tue Jan 02 11:14:26 PST 2001:<E> <WebAppServletContext-tools> Servlet
    failed with Exception
    weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
    'wl': For tag 'repeat', cannot load extra info class
    'weblogicx.jsp.tags.RepeatTagInfo'
    at
    weblogic.servlet.jsp.StandardTagLib.jspException(StandardTagLib.java:138)
    at
    weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:201)
    at
    weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib.java:146)
    at
    weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:125)
    at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:87)
    at
    weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:3739)
    at
    weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:3495)
    at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3356)
    at
    weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1694)
    at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1535)
    at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1425)
    at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:825)
    at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
    at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116)
    at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242)
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:265)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180)
    at
    weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:181)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:141)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:154)
    at
    com.beasys.commerce.foundation.flow.ServletDestinationHandler.handleDestination(ServletDestinationHandler.java:51)
    at
    com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:448)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:761)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:708)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
    Tue Jan 02 11:14:26 PST 2001:<I> <ServletContext-General> servletimages:
    init

  • How to use the JRun Custom tag library wiith Weblogic 5.1?

    Hello,
    is it possible to use the JRUN Tag Library with Bea Weblogic 5.1? We
    got an error message like:
    weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
    'jrun': T
    here is no setter method for property 'code', for Tag class
    'allaire.taglib.Serv
    letTag'
    Thank you for any info!
    Stefan

    Hi Joe,
    I don't know, however someone that follows the JSP newsgroup [1] may be
    able to help. Could you try your post there.
    Thanks,
    Bruce
    [1]
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.jsp
    Joe Kamenar wrote:
    >
    I have a question. I need to do a sort on news articles in our database, sorting
    by the date they were posted. I then want to take only the top 6 articles. We
    are using Weblogic 5.1. When I use the following statement, 6 articles are taken
    from the database, then sorted, which ends up leaving out the most recent articles:
    <cm:select contentHome="com.beasys.commerce.axiom.document.Document" query="<%=contentQuery%>"
    sortby = "creationDate DESC, headlineDate DESC" max="6" id="contentList" />
    I need to get ALL the articles for the sort, then just take the most recent 6.
    So, I know that I can use the following code and monitor the counter variable,
    "i". But, how do i do this to only display the top 6 items?
    <es:foreachinarray id="content" array="contentList" type="com.beasys.commerce.axiom.content.Content"
    counterId="i">
    <% myStr=content.getIdentifier(); %>
    <% if (i<6) {
    %>
    <div class="marginText">
    <cm:printproperty id="content" name="title" encode="html" />  
    <a href="<%=new String(news_display.jsp?id="+myStr)%">">more</a>
    </div>
    <% } %>
    </es:foreachinarray>
    However, when I run this, no results show up. What is the correct way to do this?
    - Joe</a>

Maybe you are looking for