If this original tld file is valid according to that dtd then you have found a bug in our tld handling. I've opened GERONIMO-3782 to track this.

thanks
david jencks

On Jan 24, 2008, at 12:41 AM, jithesh wrote:


Hi ,

Thanks for ur responses...

I have modified those parts and its not shown any error this time. Here is
the content on the
 \META-INF\scriptfree.tld.


<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2// EN"
        "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
<taglib>
  <tlib-version>1.0</tlib-version>
  <jsp-version>1.2</jsp-version>
  <short-name>scriptfree</short-name>
  <uri>http://jakarta.apache.org/taglibs/standard/scriptfree</uri>

Thanks ,
Jithesh




djencks wrote:

umm, isn't it fairly clear from the error message?

WEB-INF\lib\standard.jar!\META-INF\scriptfree.tld

Can you tell us if this file starts out with

<taglib xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd";
version="2.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://java.sun.com/xml/ns/javaee";>

or if it uses earlier xmlns or version?

thanks
david jencks

On Jan 23, 2008, at 10:28 PM, jithesh wrote:


Thanks for your response...

Will u please provide the file name that i need to modify the text.

Thanks,
Jithesh PM



Jarek Gawor-2 wrote:

Move the <description> element to the top of the <init-param>
element.
For example, change:

    <init-param>
       <param-name>allowDeclarations</param-name>
       <param-value>false</param-value>
       <description>Controls whether or not declarations are
considered valid.</description>
     </init-param>

to:

    <init-param>
       <description>Controls whether or not declarations are
considered valid.</description>
       <param-name>allowDeclarations</param-name>
       <param-value>false</param-value>
     </init-param>

Jarek

On Jan 24, 2008 12:48 AM, jithesh <[EMAIL PROTECTED]> wrote:

Hi,

  Thanks for your response.....

 Here is my server log description

15:45:25,078 WARN  [JspModuleBuilderExtension] Invalid
transformed taglib
org.apache.xmlbeans.XmlException: Invalid deployment descriptor:
errors:

D:\Program
Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D:
\Program
Files\IBM\WebSphere\AppServerCommunityEdition\repository\default
\securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib
\standard.jar!\META-INF\scriptfree.tld:21:7:
error: cvc-complex-type.2.4b: Element not allowed:
[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element
[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee

D:\Program
Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D:
\Program
Files\IBM\WebSphere\AppServerCommunityEdition\repository\default
\securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib
\standard.jar!\META-INF\scriptfree.tld:28:7:
error: cvc-complex-type.2.4b: Element not allowed:
[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element
[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee

D:\Program
Files\IBM\WebSphere\AppServerCommunityEdition\bin\jar:file:D:
\Program
Files\IBM\WebSphere\AppServerCommunityEdition\repository\default
\securedmd\1200996902765\securedmd-1200996902765.war\WEB-INF\lib
\standard.jar!\META-INF\scriptfree.tld:35:7:
error: cvc-complex-type.2.4b: Element not allowed:
[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee in element
[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee

Descriptor:
<taglib xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd";
version="2.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://java.sun.com/xml/ns/javaee";>
  <description>Validates JSP pages to prohibit use of scripting
elements.</description>
  <tlib-version>1.0</tlib-version>
  <short-name>scriptfree</short-name>
  <uri>http://jakarta.apache.org/taglibs/standard/scriptfree</uri>
  <validator>
    <description>Validates prohibitions against scripting
elements.</description>

<validator-class>javax.servlet.jsp.jstl.tlv.ScriptFreeTLV</
validator-class>
    <init-param>
      <param-name>allowDeclarations</param-name>
      <param-value>false</param-value>
      <description>Controls whether or not declarations are
considered
valid.</description>
    </init-param>
    <init-param>
      <param-name>allowScriptlets</param-name>
      <param-value>false</param-value>
<description>Controls whether or not scriptlets are considered
valid.</description>
    </init-param>
    <init-param>
      <param-name>allowExpressions</param-name>
      <param-value>false</param-value>
<description>Controls whether or not top-level expressions are
considered valid.</description>
    </init-param>
    <init-param>
      <description>Controls whether or not expressions used to
supply
request-time
        attribute values are considered valid.</description>
      <param-name>allowRTExpressions</param-name>
      <param-value>false</param-value>
    </init-param>
  </validator>
  <!--Every TLD needs at least one 'tag' element.  We happily
oblige.-->
  <tag>
    <description>Does nothing.</description>
    <name>noop</name>
    <tag-class>javax.servlet.jsp.tagext.TagSupport</tag-class>
    <body-content>empty</body-content>
  </tag>
</taglib>

        at
org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validateDD
(XmlBeansUtil.java:223)
        at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.co nv
ertToTaglibSchema(JspModuleBuilderExtension.java:675)
        at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.pa rs
eTldFile(JspModuleBuilderExtension.java:433)
        at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.ge tL
istenerClasses(JspModuleBuilderExtension.java:420)
        at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.cr ea
teJspClassFinder(JspModuleBuilderExtension.java:180)
        at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.ad dG
Beans(JspModuleBuilderExtension.java:149)
        at
org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension$
$FastClassByCGLIB$$1f60ab3b.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:
53)


Please provide a solution to resolve this....

Thanks and regards
Jithesh PM
--
View this message in context:
http://www.nabble.com/Geronimo-2.0-tp15036324s134p15059152.html
Sent from the Apache Geronimo - Users mailing list archive at
Nabble.com.





--
View this message in context: http://www.nabble.com/Geronimo-2.0-
tp15036324s134p15059432.html
Sent from the Apache Geronimo - Users mailing list archive at
Nabble.com.





--
View this message in context: http://www.nabble.com/Geronimo-2.0- tp15036324s134p15060754.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Reply via email to