You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ferdie Romero <fe...@gmail.com> on 2012/12/12 15:51:30 UTC
According to TLD or attribute directive in tag file, attribute xml
does not accept any expressions
Hi Guys,
We are having issues upon testing our newly upgraded tomcat/apache. We
encounter the error below:
Dec 12, 2012 9:13:10 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [] threw
exception [/Header.jsp (line: 35, column: 0) According to TLD or attribute
directive in tag file, attribute xml does not accept any expressions] with
root cause
Here’s a portion of the Header.jsp file containing line 35:
32 <div id="body-container">^M
33 <div class="block">^M
34 <div id="header">^M
35 <x:transform xml = "${inputDoc}"^M
36 xslt = "${topNavStylesheet}">^M
37 <x:param name="telcoValue" value="${param.telcoValue}" />^M
38 <x:param name="businessUnit" value="${param.businessUnit}" />^M
39 </x:transform>^M
here's a portion of our web.xml:
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
We also downloaded and installed in /opt/app/cms/apache-tomcat-7.0.32/lib
and /opt/app/cms/apache-tomcat-7.0.32/webapps/ROOT/WEB-INF/lib the
following:
-rw-r--r-- 1 root sys 407178 Dec 12 07:43
javax.servlet.jsp.jstl-1.2.1.jar
-rw-r--r-- 1 root sys 32522 Dec 12 07:43
javax.servlet.jsp.jstl-api-1.2.1.jar
Are there any other files we need to update. Your help will be highly
appreciated.
Thanks.
Re: According to TLD or attribute directive in tag file, attribute
xml does not accept any expressions
Posted by Mark Eggers <it...@yahoo.com>.
On 12/12/2012 8:27 AM, Ferdie Romero wrote:
> Hi,
>
> I already tried using
>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>^M
> and
>
> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>^M but I
> got the same error.
>
> Thanks.
>
> On Wed, Dec 12, 2012 at 11:56 PM, Mark Eggers <it...@yahoo.com>
> wrote:
>
>> On 12/12/2012 6:51 AM, Ferdie Romero wrote:
>>
>>> Hi Guys,
>>>
>>> We are having issues upon testing our newly upgraded
>>> tomcat/apache. We encounter the error below:
>>>
>>>
>>>
>>> Dec 12, 2012 9:13:10 AM
>>> org.apache.catalina.core.**StandardWrapperValve invoke
>>>
>>> SEVERE: Servlet.service() for servlet [jsp] in context with path
>>> [] threw exception [/Header.jsp (line: 35, column: 0) According
>>> to TLD or attribute directive in tag file, attribute xml does not
>>> accept any expressions] with root cause
>>>
>>>
>>> Here’s a portion of the Header.jsp file containing line 35:
>>>
>>>
>>>
>>> 32 <div id="body-container">^M
>>>
>>> 33 <div class="block">^M
>>>
>>> 34 <div id="header">^M
>>>
>>> 35 <x:transform xml = "${inputDoc}"^M
>>>
>>> 36 xslt = "${topNavStylesheet}">^M
>>>
>>> 37 <x:param name="telcoValue" value="${param.telcoValue}"
>>> />^M
>>>
>>> 38 <x:param name="businessUnit" value="${param.businessUnit}"
>>> />^M
>>>
>>> 39 </x:transform>^M
>>>
>>>
>>>
>>> here's a portion of our web.xml:
>>>
>>>
>>>
>>> <web-app
>>> xmlns="http://java.sun.com/**xml/ns/javaee<http://java.sun.com/xml/ns/javaee>
>>>
>>>
"
>>> xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance<http://www.w3.org/2001/XMLSchema-instance>
>>>
>>>
"
>>> xsi:schemaLocation="http://**java.sun.com/xml/ns/javaee<http://java.sun.com/xml/ns/javaee>
>>>
>>>
http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>"
>>> version="3.0">
>>>
>>>
>>>
>>> We also downloaded and installed in
>>> /opt/app/cms/apache-tomcat-7.**0.32/lib and
>>> /opt/app/cms/apache-tomcat-7.**0.32/webapps/ROOT/WEB-INF/lib the
>>> following:
>>>
>>>
>>>
>>> -rw-r--r-- 1 root sys 407178 Dec 12 07:43
>>> javax.servlet.jsp.jstl-1.2.1.**jar -rw-r--r-- 1 root sys
>>> 32522 Dec 12 07:43 javax.servlet.jsp.jstl-api-1.**2.1.jar
>>>
>>>
>>>
>>> Are there any other files we need to update. Your help will be
>>> highly appreciated.
>>>
>>>
>>>
>>> Thanks.
>>>
>>>
>> Make sure you're using the right URI in the taglib declaration at
>> the top of your page. The 1.0 ones don't take expressions if I
>> recall correctly.
>>
>> . . . just my two cents. /mde/
Please don't top-post. Top-posting makes the conversation difficult to
follow for those late to the thread.
I'm thinking it should be:
<%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>
Then again, I'm a systems person, and not so much of a Java programmer.
I got hit with this when exploring some internationalization work. I needed:
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
to fix the problem.
. . . . just my two cents.
/mde/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: According to TLD or attribute directive in tag file, attribute
xml does not accept any expressions
Posted by Ferdie Romero <fe...@gmail.com>.
Hi,
I already tried using
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>^M
and
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>^M
but I got the same error.
Thanks.
On Wed, Dec 12, 2012 at 11:56 PM, Mark Eggers <it...@yahoo.com> wrote:
> On 12/12/2012 6:51 AM, Ferdie Romero wrote:
>
>> Hi Guys,
>>
>> We are having issues upon testing our newly upgraded tomcat/apache.
>> We encounter the error below:
>>
>>
>>
>> Dec 12, 2012 9:13:10 AM org.apache.catalina.core.**StandardWrapperValve
>> invoke
>>
>> SEVERE: Servlet.service() for servlet [jsp] in context with path []
>> threw exception [/Header.jsp (line: 35, column: 0) According to TLD
>> or attribute directive in tag file, attribute xml does not accept any
>> expressions] with root cause
>>
>>
>> Here’s a portion of the Header.jsp file containing line 35:
>>
>>
>>
>> 32 <div id="body-container">^M
>>
>> 33 <div class="block">^M
>>
>> 34 <div id="header">^M
>>
>> 35 <x:transform xml = "${inputDoc}"^M
>>
>> 36 xslt = "${topNavStylesheet}">^M
>>
>> 37 <x:param name="telcoValue" value="${param.telcoValue}" />^M
>>
>> 38 <x:param name="businessUnit" value="${param.businessUnit}"
>> />^M
>>
>> 39 </x:transform>^M
>>
>>
>>
>> here's a portion of our web.xml:
>>
>>
>>
>> <web-app xmlns="http://java.sun.com/**xml/ns/javaee<http://java.sun.com/xml/ns/javaee>
>> "
>> xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance<http://www.w3.org/2001/XMLSchema-instance>
>> "
>> xsi:schemaLocation="http://**java.sun.com/xml/ns/javaee<http://java.sun.com/xml/ns/javaee>
>> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd<http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd>"
>> version="3.0">
>>
>>
>>
>> We also downloaded and installed in
>> /opt/app/cms/apache-tomcat-7.**0.32/lib and
>> /opt/app/cms/apache-tomcat-7.**0.32/webapps/ROOT/WEB-INF/lib the
>> following:
>>
>>
>>
>> -rw-r--r-- 1 root sys 407178 Dec 12 07:43
>> javax.servlet.jsp.jstl-1.2.1.**jar -rw-r--r-- 1 root sys
>> 32522 Dec 12 07:43 javax.servlet.jsp.jstl-api-1.**2.1.jar
>>
>>
>>
>> Are there any other files we need to update. Your help will be
>> highly appreciated.
>>
>>
>>
>> Thanks.
>>
>>
> Make sure you're using the right URI in the taglib declaration at the
> top of your page. The 1.0 ones don't take expressions if I recall
> correctly.
>
> . . . just my two cents.
> /mde/
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org<us...@tomcat.apache.org>
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: According to TLD or attribute directive in tag file, attribute
xml does not accept any expressions
Posted by Mark Eggers <it...@yahoo.com>.
On 12/12/2012 6:51 AM, Ferdie Romero wrote:
> Hi Guys,
>
> We are having issues upon testing our newly upgraded tomcat/apache.
> We encounter the error below:
>
>
>
> Dec 12, 2012 9:13:10 AM org.apache.catalina.core.StandardWrapperValve
> invoke
>
> SEVERE: Servlet.service() for servlet [jsp] in context with path []
> threw exception [/Header.jsp (line: 35, column: 0) According to TLD
> or attribute directive in tag file, attribute xml does not accept any
> expressions] with root cause
>
>
> Here’s a portion of the Header.jsp file containing line 35:
>
>
>
> 32 <div id="body-container">^M
>
> 33 <div class="block">^M
>
> 34 <div id="header">^M
>
> 35 <x:transform xml = "${inputDoc}"^M
>
> 36 xslt = "${topNavStylesheet}">^M
>
> 37 <x:param name="telcoValue" value="${param.telcoValue}" />^M
>
> 38 <x:param name="businessUnit" value="${param.businessUnit}"
> />^M
>
> 39 </x:transform>^M
>
>
>
> here's a portion of our web.xml:
>
>
>
> <web-app xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
>
>
>
> We also downloaded and installed in
> /opt/app/cms/apache-tomcat-7.0.32/lib and
> /opt/app/cms/apache-tomcat-7.0.32/webapps/ROOT/WEB-INF/lib the
> following:
>
>
>
> -rw-r--r-- 1 root sys 407178 Dec 12 07:43
> javax.servlet.jsp.jstl-1.2.1.jar -rw-r--r-- 1 root sys
> 32522 Dec 12 07:43 javax.servlet.jsp.jstl-api-1.2.1.jar
>
>
>
> Are there any other files we need to update. Your help will be
> highly appreciated.
>
>
>
> Thanks.
>
Make sure you're using the right URI in the taglib declaration at the
top of your page. The 1.0 ones don't take expressions if I recall correctly.
. . . just my two cents.
/mde/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org