Re: A bizarre question about XML Parsing with JSP : XPATH - XALAN error

2008-11-22 Thread Kris Schneider
Sorry, I don't have time to look at this in detail at the moment, but
it reminds me of an issue I had with OC4J (it looks like that's what
you're using). See this Oracle forum post I made a while back:

http://forums.oracle.com/forums/thread.jspa?threadID=594677

It looks like you're running into an issue with a header whereas I was
running into an issue with request attributes, but perhaps it's a
similar bug.

On Fri, Nov 21, 2008 at 12:19 PM, Ali Riza Saral [EMAIL PROTECTED] wrote:
 Hi Ms/Mr,

 I am getting
 500 Internal Server Error
 javax.servlet.jsp.JspTagException: 
 org.apache.taglibs.standard.tag.common.xml.UnresolvableException: 
 $header:ACCEPT-ENCODİNG
at 
 org.apache.taglibs.standard.tag.common.xml.XPathUtil.fillVarStack(XPathUtil.java:784)
at 
 org.apache.taglibs.standard.tag.common.xml.XPathUtil.selectNodes(XPathUtil.java:522)
at 
 org.apache.taglibs.standard.tag.common.xml.ForEachTag.prepare(ForEachTag.java:50)
at 
 javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(LoopTagSupport.java:227)
at _books._jspService(_books.java:87)
[/books.jsp]
at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) 
 ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) 
 ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) 
 ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
  from:::
 ?xml version=1.0 encoding = 'UTF-8'?
 !DOCTYPE books [
 !ELEMENT books (book)
 !ELEMENT book (title,author,year,price)
 !ELEMENT title   (#PCDATA)
 !ELEMENT author  (#PCDATA)
 ]
 books 
  book

  titlecobol/title
  authorroy/author
 /book
 book
  titlejava/title
  authorherbert/author
 /book
 book
  titlec++/title
  authorrobert/author
 /book
 book

  titlecoldfusion/title
  authorallaire/author
 /book
 book
  titlexml unleashed/title
  authormorrison/author
 /book
 book
  titlejrun/title
  authorallaire/author
 /book
 /books

 with:
 %@ page contentType=text/html; charset=UTF-8 %
 !DOCTYPE HTML PUBLIC
  -//W3C//DTD HTML 4.01 Transitional//EN
 http://www.w3.org/TR/html4/loose.dtd;
 %@   taglib  prefix=c uri=http://java.sun.com/jsp/jstl/core; %
 %@   taglib  prefix=x uri=http://java.sun.com/jsp/jstl/xml;   %
 html
 meta http-equiv=Content-Type content=text/html; charset=UTF-8
 body
 x:parse var=doc 
c:import url=books.xml /
% System.out.print(importt\n);%
 /x:parse
  ---br
  x:forEach var=n

  select=$doc/books/book
 % System.out.print(foreach\n);%
  x:out select=$n/title  /
   br
  x:out select=$n/author  /
   br
  
  br
  /x:forEach
 /body
 /html


 I have done everything within my mental health but I can not get
 rid of this error.

 Could you please help me in regards to this matter.
 Kind regards.
 Ali R+ SARAL


 Tel : 0090-216-474 88 18
 Addr: Barbaros Mah. Sedef Sk. Onur Sit. 13/13
 Üsküdar / ISTANBUL
 TURKEY
 Blog: Large Systems and ATC (English  Turkish)
 http://largesystems-atc.blogspot.com/

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
directThought  http://www.directThought.com/


A bizarre question about XML Parsing with JSP : XPATH - XALAN error

2008-11-21 Thread Ali Riza Saral
Hi Ms/Mr,

I am getting 
500 Internal Server Error
javax.servlet.jsp.JspTagException: 
org.apache.taglibs.standard.tag.common.xml.UnresolvableException: 
$header:ACCEPT-ENCODİNG
at 
org.apache.taglibs.standard.tag.common.xml.XPathUtil.fillVarStack(XPathUtil.java:784)
at 
org.apache.taglibs.standard.tag.common.xml.XPathUtil.selectNodes(XPathUtil.java:522)
at 
org.apache.taglibs.standard.tag.common.xml.ForEachTag.prepare(ForEachTag.java:50)
at 
javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(LoopTagSupport.java:227)
at _books._jspService(_books.java:87)
[/books.jsp]
at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) 
].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) 
].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) 
].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
 from::: 
?xml version=1.0 encoding = 'UTF-8'? 
!DOCTYPE books [
!ELEMENT books (book) 
!ELEMENT book (title,author,year,price)
    !ELEMENT title   (#PCDATA)
    !ELEMENT author  (#PCDATA)
]
books     
 book
 
 titlecobol/title 
 authorroy/author 
    /book 
    book 
 titlejava/title 
 authorherbert/author 
    /book 
    book 
 titlec++/title 
 authorrobert/author 
    /book 
    book 

 titlecoldfusion/title 
 authorallaire/author 
    /book 
    book 
 titlexml unleashed/title 
 authormorrison/author 
    /book 
    book 
 titlejrun/title 
 authorallaire/author 
    /book 
/books 

with: 
%@ page contentType=text/html; charset=UTF-8 % 
!DOCTYPE HTML PUBLIC
 -//W3C//DTD HTML 4.01 Transitional//EN 
http://www.w3.org/TR/html4/loose.dtd;
[EMAIL PROTECTED] taglib  prefix=c uri=http://java.sun.com/jsp/jstl/core; 
% 
[EMAIL PROTECTED] taglib  prefix=x uri=http://java.sun.com/jsp/jstl/xml   
%   
html 
meta http-equiv=Content-Type content=text/html; charset=UTF-8
body  
x:parse var=doc 
   c:import url=books.xml /
   % System.out.print(importt\n);%
/x:parse
 ---br 
 x:forEach var=n  
 
 select=$doc/books/book 
    % System.out.print(foreach\n);%
 x:out select=$n/title  /
  br  
 x:out select=$n/author  /  
  br 
   
 br  
 /x:forEach 
/body 
/html 

 
I have done everything within my mental health but I can not get
rid of this error.
 
Could you please help me in regards to this matter.
Kind regards.
Ali R+ SARAL


Tel : 0090-216-474 88 18
Addr: Barbaros Mah. Sedef Sk. Onur Sit. 13/13
Üsküdar / ISTANBUL
TURKEY
Blog: Large Systems and ATC (English  Turkish)
http://largesystems-atc.blogspot.com/ 



  

Re: taglibs build error on OS X using DarwinPorts

2007-10-19 Thread pine88

Thanks Kris. 
Yes, I dig up a little and found my JspTagException class has only a single
constructor takes only String parameter. It appears my servlet23 MacPorts
package outdated.

thanks,

-don

 

Kris Schneider wrote:
 
 It looks like you're referencing an older version of JspTagException.
 The constructor that takes a String and a Throwable was added in JSP
 2.0 (J2EE 1.4).
 
 On 10/19/07, Don Oh [EMAIL PROTECTED] wrote:
 Hi,

 I'm new to this list... googling didn't help me so
 far. Just hoping someone on this list might be able to
 provide me quick help.

 Compiling tomcat5 on Mac OS 10.4.11, Intel Mackbook
 Pro using Darwin(Mac)Ports, I am getting the following
 error: Any ideas?

 ( All the tomcat dependencies including servlet23-api
 and  servlet24-api were built successfully up to this
 point. JAVA_HOME env. variable was set to Mac OS
 JavaVM.framework path)

 thanks,

 ---

 ---  Building jakarta-taglibs-standard-11 with target
 dist
 Error: Target org.macports.build returned: shell
 command  cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard
  ant dist
 -Dbuild.dir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/build
 -Ddist.dir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/dist
 -Djunit.jar=/opt/local/share/java/junit.jar
 -Dservlet24.jar=/opt/local/share/java/servlet24-api.jar
 -Djsp20.jar=/opt/local/share/java/jsp2-api.jar
 -Dxalan.jar=/opt/local/share/java/xalan.jar  returned
 error 1
 Command output: [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/common/xml/XPathUtil.java:552:
 cannot find symbol
 [javac] symbol  : constructor
 JspTagException(java.lang.String,javax.xml.transform.TransformerException)
 [javac] location: class
 javax.servlet.jsp.JspTagException
 [javac] throw new
 JspTagException(te.toString(), te);
 [javac]   ^
 [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/common/xml/XPathUtil.java:784:
 cannot find symbol
 [javac] symbol  : constructor
 JspTagException(java.lang.String,javax.xml.transform.TransformerException)
 [javac] location: class
 javax.servlet.jsp.JspTagException
 [javac] throw new
 JspTagException(te.toString(), te);
 [javac]   ^
 [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/el/core/IfTag.java:65:
 cannot find symbol
 [javac] symbol  : constructor
 JspTagException(java.lang.String,javax.servlet.jsp.JspException)
 [javac] location: class
 javax.servlet.jsp.JspTagException
 [javac] throw new
 JspTagException(ex.toString(), ex);
 [javac]   ^
 [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/el/core/WhenTag.java:63:
 cannot find symbol
 [javac] symbol  : constructor
 JspTagException(java.lang.String,javax.servlet.jsp.JspException)
 [javac] location: class
 javax.servlet.jsp.JspTagException
 [javac] throw new
 JspTagException(ex.toString(), ex);
 [javac]   ^
 [javac] Note:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/common/core/ImportSupport.java
 uses or overrides a deprecated API.
 [javac] Note: Recompile with -Xlint:deprecation
 for details.
 [javac] Note: Some input files use unchecked or
 unsafe operations.
 [javac] Note: Recompile with -Xlint:unchecked for
 details.
 [javac] 33 errors

 BUILD FAILED
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/build.xml:178:
 Compile failed; see the compiler error output for
 details.
 
 -- 
 Kris Schneider mailto:[EMAIL PROTECTED]
 directThought  http://www.directThought.com

Re: taglibs build error on OS X using DarwinPorts

2007-10-19 Thread Kris Schneider
It looks like you're referencing an older version of JspTagException.
The constructor that takes a String and a Throwable was added in JSP
2.0 (J2EE 1.4).

On 10/19/07, Don Oh [EMAIL PROTECTED] wrote:
 Hi,

 I'm new to this list... googling didn't help me so
 far. Just hoping someone on this list might be able to
 provide me quick help.

 Compiling tomcat5 on Mac OS 10.4.11, Intel Mackbook
 Pro using Darwin(Mac)Ports, I am getting the following
 error: Any ideas?

 ( All the tomcat dependencies including servlet23-api
 and  servlet24-api were built successfully up to this
 point. JAVA_HOME env. variable was set to Mac OS
 JavaVM.framework path)

 thanks,

 ---

 ---  Building jakarta-taglibs-standard-11 with target
 dist
 Error: Target org.macports.build returned: shell
 command  cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard
  ant dist
 -Dbuild.dir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/build
 -Ddist.dir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/dist
 -Djunit.jar=/opt/local/share/java/junit.jar
 -Dservlet24.jar=/opt/local/share/java/servlet24-api.jar
 -Djsp20.jar=/opt/local/share/java/jsp2-api.jar
 -Dxalan.jar=/opt/local/share/java/xalan.jar  returned
 error 1
 Command output: [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/common/xml/XPathUtil.java:552:
 cannot find symbol
 [javac] symbol  : constructor
 JspTagException(java.lang.String,javax.xml.transform.TransformerException)
 [javac] location: class
 javax.servlet.jsp.JspTagException
 [javac] throw new
 JspTagException(te.toString(), te);
 [javac]   ^
 [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/common/xml/XPathUtil.java:784:
 cannot find symbol
 [javac] symbol  : constructor
 JspTagException(java.lang.String,javax.xml.transform.TransformerException)
 [javac] location: class
 javax.servlet.jsp.JspTagException
 [javac] throw new
 JspTagException(te.toString(), te);
 [javac]   ^
 [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/el/core/IfTag.java:65:
 cannot find symbol
 [javac] symbol  : constructor
 JspTagException(java.lang.String,javax.servlet.jsp.JspException)
 [javac] location: class
 javax.servlet.jsp.JspTagException
 [javac] throw new
 JspTagException(ex.toString(), ex);
 [javac]   ^
 [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/el/core/WhenTag.java:63:
 cannot find symbol
 [javac] symbol  : constructor
 JspTagException(java.lang.String,javax.servlet.jsp.JspException)
 [javac] location: class
 javax.servlet.jsp.JspTagException
 [javac] throw new
 JspTagException(ex.toString(), ex);
 [javac]   ^
 [javac] Note:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/common/core/ImportSupport.java
 uses or overrides a deprecated API.
 [javac] Note: Recompile with -Xlint:deprecation
 for details.
 [javac] Note: Some input files use unchecked or
 unsafe operations.
 [javac] Note: Recompile with -Xlint:unchecked for
 details.
 [javac] 33 errors

 BUILD FAILED
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/build.xml:178:
 Compile failed; see the compiler error output for
 details.

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
directThought  http://www.directThought.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



taglibs build error on OS X using DarwinPorts

2007-10-19 Thread Don Oh
Hi,

I'm new to this list... googling didn't help me so
far. Just hoping someone on this list might be able to
provide me quick help.

Compiling tomcat5 on Mac OS 10.4.11, Intel Mackbook
Pro using Darwin(Mac)Ports, I am getting the following
error: Any ideas?

( All the tomcat dependencies including servlet23-api
and  servlet24-api were built successfully up to this
point. JAVA_HOME env. variable was set to Mac OS
JavaVM.framework path)

thanks,

---

---  Building jakarta-taglibs-standard-11 with target
dist
Error: Target org.macports.build returned: shell
command  cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard
 ant dist
-Dbuild.dir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/build
-Ddist.dir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/dist
-Djunit.jar=/opt/local/share/java/junit.jar
-Dservlet24.jar=/opt/local/share/java/servlet24-api.jar
-Djsp20.jar=/opt/local/share/java/jsp2-api.jar
-Dxalan.jar=/opt/local/share/java/xalan.jar  returned
error 1
Command output: [javac]
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/common/xml/XPathUtil.java:552:
cannot find symbol
[javac] symbol  : constructor
JspTagException(java.lang.String,javax.xml.transform.TransformerException)
[javac] location: class
javax.servlet.jsp.JspTagException
[javac] throw new
JspTagException(te.toString(), te);
[javac]   ^
[javac]
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/common/xml/XPathUtil.java:784:
cannot find symbol
[javac] symbol  : constructor
JspTagException(java.lang.String,javax.xml.transform.TransformerException)
[javac] location: class
javax.servlet.jsp.JspTagException
[javac] throw new
JspTagException(te.toString(), te);
[javac]   ^
[javac]
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/el/core/IfTag.java:65:
cannot find symbol
[javac] symbol  : constructor
JspTagException(java.lang.String,javax.servlet.jsp.JspException)
[javac] location: class
javax.servlet.jsp.JspTagException
[javac] throw new
JspTagException(ex.toString(), ex);
[javac]   ^
[javac]
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/el/core/WhenTag.java:63:
cannot find symbol
[javac] symbol  : constructor
JspTagException(java.lang.String,javax.servlet.jsp.JspException)
[javac] location: class
javax.servlet.jsp.JspTagException
[javac] throw new
JspTagException(ex.toString(), ex);
[javac]   ^
[javac] Note:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/src/org/apache/taglibs/standard/tag/common/core/ImportSupport.java
uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation
for details.
[javac] Note: Some input files use unchecked or
unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for
details.
[javac] 33 errors

BUILD FAILED
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_jakarta-taglibs-standard-11/work/jakarta-taglibs-standard-1.1.2-src/standard/build.xml:178:
Compile failed; see the compiler error output for
details.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error with taglib parseDate

2007-08-07 Thread Kris Schneider
On 8/6/07, T. Lamine Ba [EMAIL PROTECTED] wrote:
 Hi all,

 I use parseDate in webapp www.buildtrees.com as follows:

 ***
 fmt:parseDate var=birthdate value=${param.birthdate}
 pattern=MMM-dd- /
 ***

 It works great when I visit the site with my computers.  On the other
 hand, some of my web visitors produce the error below:

 ***
 Exception: javax.servlet.jsp.JspException: In parseDate, value
 attribute can not be parsed: OCT-02-2002

 Error message: In parseDate, value attribute can not be parsed:
 OCT-02-2002
 ***

 I suspect the problem is browser related.  Does anyone has a solution
 for this?  I searched the internet, but I could not find anything that
 could help, primarily because I have not been able to reproduce the
 error with my computers.  I had to wait for a web surfer with the wrong
 configuration to access the site.

Browser-based locale setting could certainly cause this to fail. If
you want to force the app to always use English, you should probably
include the following in web.xml:

context-param
  param-namejavax.servlet.jsp.jstl.fmt.locale/param-name
  param-valueen_US/param-value
/context-param

If you just want to change that specific tag, try the parseLocale attribute:

fmt:parseDate var=birthdate
   value=${param.birthdate}
   pattern=MMM-dd-
   parseLocale=en_US/

 All help appreciated.

 Lamine

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
directThought  http://www.directThought.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error with taglib parseDate

2007-08-07 Thread T. Lamine Ba
Thx much for the tip Kris.

Lamine.

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 07, 2007 9:14 AM
To: Tag Libraries Users List
Subject: Re: Error with taglib parseDate

On 8/6/07, T. Lamine Ba [EMAIL PROTECTED] wrote:
 Hi all,

 I use parseDate in webapp www.buildtrees.com as follows:

 ***
 fmt:parseDate var=birthdate value=${param.birthdate}
 pattern=MMM-dd- /
 ***

 It works great when I visit the site with my computers.  On the other
 hand, some of my web visitors produce the error below:

 ***
 Exception: javax.servlet.jsp.JspException: In parseDate, value
 attribute can not be parsed: OCT-02-2002

 Error message: In parseDate, value attribute can not be parsed:
 OCT-02-2002
 ***

 I suspect the problem is browser related.  Does anyone has a solution
 for this?  I searched the internet, but I could not find anything that
 could help, primarily because I have not been able to reproduce the
 error with my computers.  I had to wait for a web surfer with the
wrong
 configuration to access the site.

Browser-based locale setting could certainly cause this to fail. If
you want to force the app to always use English, you should probably
include the following in web.xml:

context-param
  param-namejavax.servlet.jsp.jstl.fmt.locale/param-name
  param-valueen_US/param-value
/context-param

If you just want to change that specific tag, try the parseLocale
attribute:

fmt:parseDate var=birthdate
   value=${param.birthdate}
   pattern=MMM-dd-
   parseLocale=en_US/

 All help appreciated.

 Lamine

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
directThought  http://www.directThought.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error with taglib parseDate

2007-08-06 Thread T. Lamine Ba
Hi all,

I use parseDate in webapp www.buildtrees.com as follows:

*** 
fmt:parseDate var=birthdate value=${param.birthdate}
pattern=MMM-dd- /
***

It works great when I visit the site with my computers.  On the other
hand, some of my web visitors produce the error below:

***
Exception: javax.servlet.jsp.JspException: In parseDate, value
attribute can not be parsed: OCT-02-2002 

Error message: In parseDate, value attribute can not be parsed:
OCT-02-2002
***

I suspect the problem is browser related.  Does anyone has a solution
for this?  I searched the internet, but I could not find anything that
could help, primarily because I have not been able to reproduce the
error with my computers.  I had to wait for a web surfer with the wrong
configuration to access the site.

All help appreciated.

Lamine


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mailer-taglib v1.1 error when changing database

2007-05-03 Thread Vikram Reddy

hello guys,
Did any one use I18N Tag Library from Apache,  I have a question on that.

I have some of the labels hardcoded in the java bean which are displayed on
the UI, not sure how I can convert them using the Tag, Can any one throw
some light on this please.. I would really appreciate that.

right now, in my jsp page, I am simply using this tag : i18n:message key=
label.name /  for converting.

- V



On 5/3/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:


On 5/3/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:

 The actual data that is being passed to SendTag.java would give clues
here.

But please do not post the actual data , this is just for your
information.

I personally avoid posting my e-mail addresses or other e-mail
addresses on forums and mailing lists to avoid my e-mails being
harvested by spam bots roaming the Internet :-)


 -Regards
 Rashmi


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: mailer-taglib v1.1 error when changing database

2007-05-02 Thread José Navas

Philip

It seems that there is no validation on ae.getPos( ), may be it's beyond
ref.length( )

When you change the database, the data changes, so the problem occurs.

Just a hunch.

Regards,
Navas


On 5/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 Hi Philip,

 I haven't worked with the mailer-taglib, but I'm familiar with other
 taglibs and some basic concepts of taglibs and also the specific error
 you are getting, I'm not sure if I can help but I'll try.

 It would be useful for us to see relevant snippets of code that causes
 this error, in order to diagnose the problem.

 Please post the section between
   mt:send

   /mt:send

 and also post any other code that you think is relevant.

 According to the documentation

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/StringIndexOutOfBoundsException.html
 this error java.lang.StringIndexOutOfBoundsException: String index out
 of range: -1 is caused when . indicate that an index is either
 negative or greater than the size of the string.

 And the above error is occurring when the substring method is invoked
 on something in
 org.apache.taglibs.mailer.SendTag.doStartTag(SendTag.java:265)

 Looking at line 265 of SendTag.java would give additional clues.

 -Regards
 Rashmi

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


Hi Rashmi,

Thanks for your interest:

as follows is info as requested. It is odd because it is exactly same code
as when I use dummy database, which works. I have verified correct mysql
parameters however will look into what the database is actually pulling up
and see if there are problems there.
thanks


-
block of code around 265:sendtag.java
-
// check for more than one address
if (ref.indexOf(',') != -1) {
// position of the start of the error inducing address
int pos = ref.substring(0, ae.getPos()).indexOf(',') +
1;
// extract the error inducing address
ref = ref.substring(pos, ref.indexOf(','));
}


-
mt code:
-
mt:mail server=mail.strangecargo.org.uk
to=[EMAIL PROTECTED] authenticate=true
user=[EMAIL PROTECTED] password= subject=Strange
Cargo Newsletter 

c:forEach var=subs items=${subscribers.rows} varStatus=status
mt:addrecipient type =bcc${subs.subscriberemail}/mt:addrecipient
/c:forEach

mt:from[EMAIL PROTECTED]/mt:from
mt:message type=html
${testhere}/mt:message
mt:send/
/mt:mail
-
mt info:
-
to: is populated
bcc: is populated with correct mysql parameters

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: mailer-taglib v1.1 error when changing database

2007-05-02 Thread Rashmi Rubdi

Hi Navas,

On 5/2/07, José Navas [EMAIL PROTECTED] wrote:

Philip

It seems that there is no validation on ae.getPos( ), may be it's beyond
ref.length( )


SendTag.java is in the Mailer JAR file, so if the problem is indeed in
SendTag.java and we could fix it here, I think it would be equivalent
to submitting a patch.



When you change the database, the data changes, so the problem occurs.


I agree too.


Just a hunch.

Regards,
Navas



-Regards
Rashmi

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mailer-taglib v1.1 error when changing database

2007-05-02 Thread Rashmi Rubdi

Hi Philip,

On 5/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

-
block of code around 265:sendtag.java
-
// check for more than one address
if (ref.indexOf(',') != -1) {
// position of the start of the error inducing address
int pos = ref.substring(0, ae.getPos()).indexOf(',') + 1;
// extract the error inducing address
ref = ref.substring(pos, ref.indexOf(','));
}


As Navas mentioned, the error is occurring, because the input data
changed and something in the input data is triggering the error. But,
we could patch SendTag.java in case it needs to be fixed.

In the above lines of code, ref is a String variable that contains
comma separated values.

I don't know what the variable ae holds, if ae.getPos() returns a
value that is either less than 0 or greater than ref.length() - 1 then
you'd get the java.lang.StringIndexOutOfBoundsException

Also if pos is greater than or equal to ref.length() , or less than 0
or if ref.indexOf(',') is 0 and pos is greater than 0 , you get
java.lang.StringIndexOutOfBoundsException

I would temporarily put System.out.println statements and see what's in the
ref, pos and ae variables --- but that might not be a good idea in
this case if there are thousands of e-mail addresses.

Another way to debug the above would be with a debugging tool (most
IDEs have them), set a breakpoint and watch the values of  ref, ae and
pos variables.





-
mt code:
-
mt:mail server=mail.strangecargo.org.uk
to=[EMAIL PROTECTED] authenticate=true
user=[EMAIL PROTECTED] password= subject=Strange
Cargo Newsletter 

c:forEach var=subs items=${subscribers.rows} varStatus=status
mt:addrecipient type =bcc${subs.subscriberemail}/mt:addrecipient
/c:forEach

mt:from[EMAIL PROTECTED]/mt:from
mt:message type=html
${testhere}/mt:message
mt:send/
/mt:mail


The actual data that is being passed to SendTag.java would give clues here.

-Regards
Rashmi

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mailer-taglib v1.1 error when changing database

2007-05-02 Thread Rashmi Rubdi

On 5/3/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:


The actual data that is being passed to SendTag.java would give clues here.


But please do not post the actual data , this is just for your information.

I personally avoid posting my e-mail addresses or other e-mail
addresses on forums and mailing lists to avoid my e-mails being
harvested by spam bots roaming the Internet :-)



-Regards
Rashmi



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mailer-taglib v1.1 error when changing database

2007-05-01 Thread Rashmi Rubdi

Hi Philip,

I haven't worked with the mailer-taglib, but I'm familiar with other
taglibs and some basic concepts of taglibs and also the specific error
you are getting, I'm not sure if I can help but I'll try.

It would be useful for us to see relevant snippets of code that causes
this error, in order to diagnose the problem.

Please post the section between
mt:send

/mt:send

and also post any other code that you think is relevant.

According to the documentation
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/StringIndexOutOfBoundsException.html
this error java.lang.StringIndexOutOfBoundsException: String index out
of range: -1 is caused when . indicate that an index is either
negative or greater than the size of the string.

And the above error is occurring when the substring method is invoked
on something in
org.apache.taglibs.mailer.SendTag.doStartTag(SendTag.java:265)

Looking at line 265 of SendTag.java would give additional clues.

-Regards
Rashmi

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Getting a error while trying to run the examples in standard-examples.war

2007-04-12 Thread Madhukar M

Hi,
   I downloaded the  standard-examples.war, copied it to Tomcat
4.1\webappsdirectory.
The application got extrated successfully.
I launched the application by using the URL
http://localhost:8080/standard-examples/index.html

When I try to run any of the application susing the link provided i am
getting the error below.

Please let me know what is the issue.

Thanks,
M.Madhukar



HTTP Status 500 -
--

*type* Exception report

*message*

*description* *The server encountered an internal error () that prevented it
from fulfilling this request.*

*exception*

org.apache.jasper.JasperException: This absolute uri
(http://java.sun.com/jsp/jstl/core) cannot be resolved in either
web.xml or the jar files deployed with this application
at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:60)
at 
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:385)
at 
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:109)
at 
org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:116)
at 
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:309)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:336)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:750)
at org.apache.jasper.compiler.Parser.parse(Parser.java:77)
at 
org.apache.jasper.compiler.ParserController.parse(ParserController.java:157)
at 
org.apache.jasper.compiler.ParserController.parse(ParserController.java:111)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:183)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595

Re: Getting a error while trying to run the examples in standard-examples.war

2007-04-12 Thread Rahul Akolkar

Please make sure you're subscribed to this list, so we don't have to
moderate your emails through.

You're using a JSP 1.2 container and a JSP 2.0 taglib. Either switch
to Tomcat 5.5.x (or 5.0.x) or use JSTL 1.0.

-Rahul


On 4/12/07, Madhukar M [EMAIL PROTECTED] wrote:

Hi,
I downloaded the  standard-examples.war, copied it to Tomcat
4.1\webappsdirectory.
The application got extrated successfully.
I launched the application by using the URL
http://localhost:8080/standard-examples/index.html

When I try to run any of the application susing the link provided i am
getting the error below.

Please let me know what is the issue.

Thanks,
M.Madhukar



HTTP Status 500 -
--

*type* Exception report

*message*

*description* *The server encountered an internal error () that prevented it
from fulfilling this request.*

*exception*

org.apache.jasper.JasperException: This absolute uri
(http://java.sun.com/jsp/jstl/core) cannot be resolved in either
web.xml or the jar files deployed with this application
at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:60)
at 
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:385)
at 
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:109)
at 
org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:116)
at 
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:309)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:336)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:750)
at org.apache.jasper.compiler.Parser.parse(Parser.java:77)
at 
org.apache.jasper.compiler.ParserController.parse(ParserController.java:157)
at 
org.apache.jasper.compiler.ParserController.parse(ParserController.java:111)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:183)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection

JSTL JSP compile error

2006-03-19 Thread avilay parekh
Hi,

I have been trying to run JSPs with JSTL on tomcat 5.0.28 without any success.

My setup:

$CATALINA_ROOT/
webapps/
   tp/
   login.html
   two2.jsp
   WEB-INF/
   web.xml
   lib/
   jstl.jar
   standard.jar

Here is what two2.jsp looks like:
-
[EMAIL PROTECTED] contentType=text/html%
[EMAIL PROTECTED] prefix=c uri=http://java.sun.com/jsp/jstl/core; %
html
headtitlePost Data Viewer/title/head
body
h2Here is your posted data/h2

c:forEach var=map_entry items=${param}
   strongc:out value=${map_entry.key} //strong:
   c:out value=${map_entry.value} /brbr
/c:forEach

/body
/html
-

Here is the error I get when tomcat access two2.jsp:
-
org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
C:\Program 
Files\Java\jakarta-tomcat-5.0.28\work\Catalina\localhost\tp\org\apache\jsp\two2_jsp.java:97:
_jspx_meth_c_out_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext,int[])
in org.apache.jsp.two2_jsp cannot be applied to
(org.apache.taglibs.standard.tag.rt.core.ForEachTag,javax.servlet.jsp.PageContext,int[])
 if (_jspx_meth_c_out_0(_jspx_th_c_forEach_0,
_jspx_page_context, _jspx_push_body_count_c_forEach_0))
 ^


Generated servlet error:
C:\Program 
Files\Java\jakarta-tomcat-5.0.28\work\Catalina\localhost\tp\org\apache\jsp\two2_jsp.java:101:
_jspx_meth_c_out_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext,int[])
in org.apache.jsp.two2_jsp cannot be applied to
(org.apache.taglibs.standard.tag.rt.core.ForEachTag,javax.servlet.jsp.PageContext,int[])
 if (_jspx_meth_c_out_1(_jspx_th_c_forEach_0,
_jspx_page_context, _jspx_push_body_count_c_forEach_0))
 ^

2 errors


I found a similar issue on this mailing list and the suggested fixes
were to copy tagPlugins.xml to WEB-INF and to make sure that jstl.jar
and standard.jar are not present in any other common or shared libs
apart from my webapp lib directory.

Tomcat was not loading jstl.jar and standard.jar from anywhere else,
there are only present in my WEB-INF/lib directory. When I copy
tagPlugins.xml to WEB-INF I get another error:

-
org.apache.jasper.JasperException
   
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NullPointerException
   org.apache.jsp.two2_jsp._jspService(two2_jsp.java:191)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
---

Here is the java code where it chokes:

Object _jspx_temp0=
new String(${param});
Iterator _jspx_temp1 = null;
if (_jspx_temp0 instanceof Object[])
_jspx_temp1=toIterator((Object[])_jspx_temp0);
else if (_jspx_temp0 instanceof boolean[])
_jspx_temp1=toIterator((boolean[])_jspx_temp0);
else if (_jspx_temp0 instanceof byte[])
_jspx_temp1=toIterator((byte[])_jspx_temp0);
else if (_jspx_temp0 instanceof char[])
_jspx_temp1=toIterator((char[])_jspx_temp0);
else if (_jspx_temp0 instanceof short[])
_jspx_temp1=toIterator((short[])_jspx_temp0);
else if (_jspx_temp0 instanceof int[])
_jspx_temp1=toIterator((int[])_jspx_temp0);
else if (_jspx_temp0 instanceof long[])
_jspx_temp1=toIterator((long[])_jspx_temp0);
else if (_jspx_temp0 instanceof float[])
_jspx_temp1=toIterator((float[])_jspx_temp0);
else if (_jspx_temp0 instanceof double[])
_jspx_temp1=toIterator((double[])_jspx_temp0);
else if (_jspx_temp0 instanceof Collection)
_jspx_temp1=((Collection)_jspx_temp0).iterator();
else if (_jspx_temp0 instanceof Iterator)
_jspx_temp1=(Iterator)_jspx_temp0;
else if (_jspx_temp0 instanceof Enumeration)
_jspx_temp1=toIterator((Enumeration)_jspx_temp0);
else if (_jspx_temp0 instanceof Map)
_jspx_temp1=((Map)_jspx_temp0).entrySet().iterator();

while (_jspx_temp1.hasNext()){
   _jspx_page_context.setAttribute(
   map_entry, _jspx_temp1.next());
:::
}


while statement gets a NullPointerException.

Any help is much appreciated.

Regards,
Avilay Parekh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



PropertyEditor error

2006-03-16 Thread Mujahid Ali

I have a custom tag in which I am evaluating an attribute as follow:

(Locale)ExpressionEvaluatorManager.evaluate(locale, expr, 
Locale.class, this, pageContext)


But I get an error:

javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute locale with 
value en_US: Attempt to convert String en_US to type java.util.Locale, but there is 
no PropertyEditor for that type (null)
at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Unknown 
Source)
at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Unknown 
Source)
at 
org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(Unknown
 Source)


I am using standard.jar (v 1.1).

If I want to convert a String to Locale object, I assume I need to 
define some sort of PropertyEditor??


Any help is appreciated.

Thanks,

Mujahid

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



xpath error

2006-02-20 Thread David Schwartz
I just intalled tomcat 5.5.15  jre1.5.0_06. getting the following error...

org.apache.jasper.JasperException: org/apache/xpath/VariableStack

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

javax.servlet.ServletException: org/apache/xpath/VariableStack

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.Logon_jsp._jspService(org.apache.jsp.Logon_jsp:230)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NoClassDefFoundError: org/apache/xpath/VariableStack

org.apache.taglibs.standard.tag.common.xml.ForEachTag.prepare(ForEachTag.java:49)

javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(LoopTagSupport.java:227)

org.apache.jsp.Logon_jsp._jspx_meth_x_forEach_0(org.apache.jsp.Logon_jsp:295)
org.apache.jsp.Logon_jsp._jspService(org.apache.jsp.Logon_jsp:158)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


David Schwartz






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: xpath error

2006-02-20 Thread Murray Steele
Sounds like your xalan jars are missing.  But as far as I'm aware they  
should come pre-bundled with tomcat *and* the jre (admittedly I'm on  
4.1 and 1.4 respectively, so I could be out of date).


Maybe you should check the classpath of your tomcat or grab a xalan  
from http://xml.apache.org/xalan-j/index.html and put the jar in the  
WEB-INF/lib/ folder of your webapp and see if that fixes it.  Although  
I've a feeling that Tomcat might do some oh, that's a xalan jar, I've  
my own one of them, I won't load it when it comes to looking at jars  
in /WEB-INF/lib/ so you could perhaps try putting it somewhere else  
(e.g. /common/lib if that still exists in tomcat 5.5)


Muz

On 20 Feb 2006, at 13:49, David Schwartz wrote:

I just intalled tomcat 5.5.15  jre1.5.0_06. getting the following  
error...


org.apache.jasper.JasperException: org/apache/xpath/VariableStack
	 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServl 
etWrapper.java:510)
	 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j 
ava:375)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 
314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

javax.servlet.ServletException: org/apache/xpath/VariableStack
	 
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCon 
textImpl.java:858)
	 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageConte 
xtImpl.java:791)

org.apache.jsp.Logon_jsp._jspService(org.apache.jsp.Logon_jsp:230)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j 
ava:332)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 
314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NoClassDefFoundError: org/apache/xpath/VariableStack
	 
org.apache.taglibs.standard.tag.common.xml.ForEachTag.prepare(ForEachTa 
g.java:49)
	 
javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(LoopTagSupport.ja 
va:227)
	 
org.apache.jsp.Logon_jsp._jspx_meth_x_forEach_0(org.apache.jsp.Logon_js 
p:295)

org.apache.jsp.Logon_jsp._jspService(org.apache.jsp.Logon_jsp:158)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j 
ava:332)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 
314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


David Schwartz






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Murray Steele
Head of Development

Peoples Archive
w: http://www.peoplesarchive.com
t: 0207 323 0323
d: 0207 631 9147

This email has been scanned by Postini.
For more information please visit http://www.postini.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: xpath error

2006-02-20 Thread David Schwartz

Thanks Murray.
That was perfect.
I downloaded xalan  copied the following jars to tomcat/common/lib...

xalan.jar
xercesImpl.jar
xml-apis.jar.

Note: The xalan download contains the required xerces jars.


Quoting Murray Steele [EMAIL PROTECTED]:

Sounds like your xalan jars are missing.  But as far as I'm aware 
they  should come pre-bundled with tomcat *and* the jre (admittedly 
I'm on  4.1 and 1.4 respectively, so I could be out of date).


Maybe you should check the classpath of your tomcat or grab a xalan  
from http://xml.apache.org/xalan-j/index.html and put the jar in the  
WEB-INF/lib/ folder of your webapp and see if that fixes it.  
Although  I've a feeling that Tomcat might do some oh, that's a 
xalan jar, I've  my own one of them, I won't load it when it comes 
to looking at jars  in /WEB-INF/lib/ so you could perhaps try putting 
it somewhere else  (e.g. /common/lib if that still exists in tomcat 
5.5)


Muz

On 20 Feb 2006, at 13:49, David Schwartz wrote:


I just intalled tomcat 5.5.15  jre1.5.0_06. getting the following  error...

org.apache.jasper.JasperException: org/apache/xpath/VariableStack
	 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServl 
etWrapper.java:510)
	 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j 
ava:375)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 
314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

javax.servlet.ServletException: org/apache/xpath/VariableStack
	 
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCon 
textImpl.java:858)
	 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageConte 
xtImpl.java:791)

org.apache.jsp.Logon_jsp._jspService(org.apache.jsp.Logon_jsp:230)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j 
ava:332)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 
314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NoClassDefFoundError: org/apache/xpath/VariableStack
	 
org.apache.taglibs.standard.tag.common.xml.ForEachTag.prepare(ForEachTa 
g.java:49)
	 
javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(LoopTagSupport.ja 
va:227)
	 
org.apache.jsp.Logon_jsp._jspx_meth_x_forEach_0(org.apache.jsp.Logon_js 
p:295)

org.apache.jsp.Logon_jsp._jspService(org.apache.jsp.Logon_jsp:158)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j 
ava:332)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 
314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


David Schwartz






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Murray Steele
Head of Development

Peoples Archive
w: http://www.peoplesarchive.com
t: 0207 323 0323
d: 0207 631 9147

This email has been scanned by Postini.
For more information please visit http://www.postini.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






David Schwartz
Array Software Inc.
http://www.arrayone.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



xpath error

2006-02-17 Thread David Schwartz
I just intalled tomcat 5.5.15  jre1.5.0_06.
Getting an xpath error...
org.apache.jasper.JasperException: org/apache/xpath/VariableStack

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Am I missing dependencies?

David Schwartz






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JSTL Error

2005-09-29 Thread Vijaya S
Hello,

I am struggling with the JSTL error for the past two days. Can someone help
me in this?

In my JSP, I have the following code to populate bean array properties.

c:forEach var=vsr items=${vsroute}
c:catch var=coercionError
   tr
tdc:out value=${vsr.fromcity} //td
tdc:out value=${vsr.tocity} //td
tdc:out value=${vsr.dbcities} //td
tdc:out value=${vsr.duom} //td
/tr
/c:catch
c:if test=${not empty coercionError}
trtdRoute Disp Err :/td
  tdbrfont color=#FFc:out
value=${coercionError}//font/td
/tr
/c:if
 /c:forEach

The bean 'vsroute' is correctly built from the action.

I get the following error from the JSP
javax.servlet.jsp.JspException: An error occurred while evaluating custom
action attribute value with value ${vsr.fromcity}: Unable to find a
value for fromcity in object of class DBObjs.subscriber.vo.VSRouteVO
using operator . (null)

I did a google search on this and there was a suggestion that the older jsp
may be cached in tomcat work folder and I did remove that. Even then I get
this error.

I have around four rows in the bean array and I get four times the above
error as I am catching the error within the forEach loop.

Thanks in advance for the help.

Vijaya



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSTL Error

2005-09-29 Thread Kurakula, Suneetha (HCF)
I think getFromcity() is missing in the vsr bean. Please check it out.

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
e.org] On Behalf Of Vijaya S
Sent: Thursday, September 29, 2005 3:43 AM
To: taglibs-user@jakarta.apache.org
Subject: JSTL Error

Hello,

I am struggling with the JSTL error for the past two days. Can someone help
me in this?

In my JSP, I have the following code to populate bean array properties.

c:forEach var=vsr items=${vsroute}
c:catch var=coercionError
   tr
tdc:out value=${vsr.fromcity} //td
tdc:out value=${vsr.tocity} //td
tdc:out value=${vsr.dbcities} //td
tdc:out value=${vsr.duom} //td
/tr
/c:catch
c:if test=${not empty coercionError}
trtdRoute Disp Err :/td
  tdbrfont color=#FFc:out
value=${coercionError}//font/td
/tr
/c:if
 /c:forEach

The bean 'vsroute' is correctly built from the action.

I get the following error from the JSP
javax.servlet.jsp.JspException: An error occurred while evaluating custom
action attribute value with value ${vsr.fromcity}: Unable to find a
value for fromcity in object of class DBObjs.subscriber.vo.VSRouteVO
using operator . (null)

I did a google search on this and there was a suggestion that the older jsp
may be cached in tomcat work folder and I did remove that. Even then I get
this error.

I have around four rows in the bean array and I get four times the above
error as I am catching the error within the forEach loop.

Thanks in advance for the help.

Vijaya



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tag lib error

2005-07-04 Thread Stephen Hathorne


folks-

What's wrong with this jsp fragment?

c:set var=myval value=125000 /
tdfont size=4fmt:formatNumber type=CURRENCY value=${myval}
 //font/td

When I run it, I get the following error:

According to TLD or attribute directive in tag file, attribute value does not
accept any expressions and currency

Now, if I use the value 12500 in the fmt:formatNumber type=CURRENCY

value=125000 / I don't have a problem, it displays correctly. 

In particular I am extracting a row of values from a database, adding them up

and trying to display the resulting value as a $ amount.

I have tried using both the 1.0 and 1.1 taglibs, I am using Tomcat 5.5.9, along

with MySQL. hints? email direct is acceptable as well.

Thanks in advance. 

[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tag lib error

2005-07-04 Thread Wendy Smoak

From: Stephen Hathorne [EMAIL PROTECTED]


What's wrong with this jsp fragment?

c:set var=myval value=125000 /
tdfont size=4fmt:formatNumber type=CURRENCY value=${myval}
//font/td

When I run it, I get the following error:

According to TLD or attribute directive in tag file, attribute value does 
not

accept any expressions and currency


It works fine for me, and prints: $125,000.00

I think you might be using the wrong tld... I'm using:
  %@ taglib uri=http://java.sun.com/jstl/core; prefix=c %

--
Wendy Smoak 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to debug jsp compilation error in Tomcat 5.5 ?

2005-06-17 Thread Woodchuck
hi Rahul,

sorry somehow i missed seeing your response until now..

--- Rahul P Akolkar [EMAIL PROTECTED] wrote:

 Woodchuck [EMAIL PROTECTED] wrote on 06/16/2005 05:14:04 PM:
  hihi all!!
  
  this is my 8th jakarta mailing list and my first question to
  taglibs-user!! :) snip/
 
 Welcome :-)

thanks! :)


 
  my question is, how do i debug something like this:
  
  org.apache.jasper.JasperException: h3Validation error messages
 from
  TagLibraryValidator for c_rt/h3p894: Illegal text inside
 c:choose
  tag: table /pp894: Illegal text inside c:choose tag: 
 snap/
 
 Make sure c:choose contains no non-whitespace text, outside of
 child 
 c:when and c:otherwise elements.

ok, i will definitely check this right now.  what about comments?...
can comments such as %-- my comment blah blah --% exist outside the
c:when and c:otherwise elements (within c:choose)?

woodchuck



 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[SOLVED] Re: how to debug jsp compilation error in Tomcat 5.5 ?

2005-06-17 Thread Woodchuck
--- Rahul P Akolkar [EMAIL PROTECTED] wrote:

 Woodchuck [EMAIL PROTECTED] wrote on 06/17/2005 09:38:52 AM:
  hi Rahul,
  
  sorry somehow i missed seeing your response until now..
 
 The lists have been slow. Please do not send multiple copies :-)

i also noticed there seems to be multiple copies of my original post. 
i do not know why, i only sent once.  but at the time i e-mailed, i
know the mailing list was experiencing some issues and i have seen
other ppl's posts multiplied many times as well all happening around
the same time period.  

the jakarta mailing lists have been flaky ever since it had lots of
problems a few weeks ago since then it has not been the same and
sometimes i still receive a message saying my post did not go through
because my e-mail address is not subscribed to the list -- but this
message comes *after* my message is successfully posted to the list!

it seems it is still not working 100%

 
   Make sure c:choose contains no non-whitespace text, outside of
   child 
   c:when and c:otherwise elements.
  
  ok, i will definitely check this right now.  what about
 comments?...
  can comments such as %-- my comment blah blah --% exist outside
 the
  c:when and c:otherwise elements (within c:choose)?
 
 That is fine. You shouldn't have HTML / XML style comments (thats
 part of 
 template text).

aha!  just as you stated, i found HTML tags sitting within c:choose
but outside of c:when and c:otherwise

well, i guess this was ok in Struts 1.1 but not anymore in Struts 1.2.7
(or is this an unintentional change?)

thanks, Rahul, and everyone that tried to help! :)

woodchuck



 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [SOLVED] Re: how to debug jsp compilation error in Tomcat 5.5 ?

2005-06-17 Thread Rahul P Akolkar
Woodchuck [EMAIL PROTECTED] wrote on 06/17/2005 11:18:17 AM:
  The lists have been slow. Please do not send multiple copies :-)
 
 i also noticed there seems to be multiple copies of my original post. 
 i do not know why, i only sent once. 

OK, sorry about the banter ;-) It seems we had quite a few incidences like 
that yesterday.

 aha!  just as you stated, i found HTML tags sitting within c:choose
 but outside of c:when and c:otherwise

 well, i guess this was ok in Struts 1.1 but not anymore in Struts 1.2.7
 (or is this an unintentional change?)

The message is produced by the standard's TLVs (JSTL). The behavior you 
are seeing is expected (the semantics of c:choose means the intent of 
having template text outside a legal child is unclear). Not sure why it 
worked for you before.

 
 thanks, Rahul, and everyone that tried to help! :)

You're welcome.

-Rahul


how to debug jsp compilation error in Tomcat 5.5 ?

2005-06-16 Thread Woodchuck
hihi all!!

this is my 8th jakarta mailing list and my first question to
taglibs-user!! :)

my question is, how do i debug something like this:

org.apache.jasper.JasperException: h3Validation error messages from
TagLibraryValidator for c_rt/h3p894: Illegal text inside c:choose
tag: table /pp894: Illegal text inside c:choose tag:
tr/pp894: Illegal text inside c:choose tag: td
sty/pp894: Illegal text inside c:choose tag:
/td/pp894: Illegal text inside c:choose tag:
td/pp923: Illegal text inside c:choose tag:
/td/pp923: Illegal text inside c:choose tag:
/tr/pp923: Illegal text inside c:choose tag:
/table/p

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:72)

org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1549)
org.apache.jasper.compiler.Validator.validate(Validator.java:1495)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:157)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



to give some context about this, i am upgrading my web app from:
 - windows 2000
 - jdk1.4.2_07
 - tomcat 4.1.24
 - struts 1.1

to this:
 - windows 2003 server
 - jdk1.5.0_03
 - tomcat 5.5.9
 - struts 1.2.7

my web app worked fine in my original setup, but in the new
configuration the majority of pages are fine, but i'm getting this
error on one page which i do not know why.

i have done the following:
  - changed to version 2.4 dtd in my web.xml
  - changed to version 1.2 dtd in struts-config.xml
  - referenced the run-time TLDs in my jsps (ie. core_rt, fmt_rt)

but now i get this TagLibraryValidator error messages.

how do i go about finding what my problem is?  how do i use the unique
id's given in the error message?  (ie. the 894 or 923 id numbers)

please and thanks!!
woodchuck

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to debug jsp compilation error in Tomcat 5.5 ?

2005-06-16 Thread Woodchuck
the final jsp is huge.  it is composed of many included jsps.  trust
me, it is pretty nasty.  i spent several solid hours on this so far.  i
manually assembled the jsp together (ie. as if there were no includes
at all) and it came to around 1700 lines long, and this is with all the
tags intact (ie. not the final html rendered form).  and i searched
everywhere i used c:choose to see if anything funny resembling the
error messages, but didn't see anything.

as i said, the jsp works fine without a hitch in my old setup.  without
any modifications at all to the jsp, it is choking in the new
Tomcat/JDK/Struts configuration.

how do i go about debugging such a problem?  is there a way to debug in
real-time the jsp as it's being assembled and compiled (ie. setting
breakpoints and stepping through the code)?  i'm at a loss at how to
debug this situation...  

woodchuck



--- David Schwartz [EMAIL PROTECTED] wrote:

 Where's the jsp code?
 
 Quoting Woodchuck [EMAIL PROTECTED]:
 
  hihi all!!
 
  this is my 8th jakarta mailing list and my first question to
  taglibs-user!! :)
 
  my question is, how do i debug something like this:
 
  org.apache.jasper.JasperException: h3Validation error messages
 from
  TagLibraryValidator for c_rt/h3p894: Illegal text inside
 c:choose
  tag: table /pp894: Illegal text inside c:choose tag:
  tr/pp894: Illegal text inside c:choose tag: td
  sty/pp894: Illegal text inside c:choose tag:
  /td/pp894: Illegal text inside c:choose tag:
  td/pp923: Illegal text inside c:choose tag:
  /td/pp923: Illegal text inside c:choose tag:
  /tr/pp923: Illegal text inside c:choose tag:
  /table/p
 
 

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
 
 

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
 
 

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:72)
 
 

org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1549)
  
 org.apache.jasper.compiler.Validator.validate(Validator.java:1495)
  
 org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:157)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
 
 

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
 
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
 
 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
 
 

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
 
 

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
 
 

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
  
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
 
 

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
 
 

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
 
 

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
  
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 
 
  to give some context about this, i am upgrading my web app from:
   - windows 2000
   - jdk1.4.2_07
   - tomcat 4.1.24
   - struts 1.1
 
  to this:
   - windows 2003 server
   - jdk1.5.0_03
   - tomcat 5.5.9
   - struts 1.2.7
 
  my web app worked fine in my original setup, but in the new
  configuration the majority of pages are fine, but i'm getting this
  error on one page which i do not know why.
 
  i have done the following:
- changed to version 2.4 dtd in my web.xml
- changed to version 1.2 dtd in struts-config.xml
- referenced the run-time TLDs in my jsps (ie. core_rt, fmt_rt)
 
  but now i get this TagLibraryValidator error messages.
 
  how do i go about finding what my problem is?  how do i use the
 unique
  id's given in the error message?  (ie. the 894 or 923 id numbers)
 
  please and thanks!!
  woodchuck
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
 
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL

Re: Error: javax/servlet/jsp/tagext/TagLibraryValidator

2005-03-07 Thread PGibbonsX
yept, that was it, the incompatibilities with Tomcat and Java.
 
many thanks
pg


Error: javax/servlet/jsp/tagext/TagLibraryValidator

2005-03-04 Thread PGibbonsX
Hi There,
i need some help working out how to fix the above error. 
 
When i code the following line:  
%@ taglib uri=/jstl-c prefix=c %
in my jsp page i  get some crazy errors:
 
 
exception  
javax.servlet.ServletException: javax/servlet/jsp/tagext/TagLibraryValidator


org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)


javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root  cause 
java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator

java.lang.ClassLoader.defineClass0(Native 
Method)


java.lang.ClassLoader.defineClass(ClassLoader.java:539)


java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)


java.net.URLClassLoader.defineClass(URLClassLoader.java:251)


 
etc.
 
 
I have downloaded jakarta-tomcat-5.5.4   jakarta-taglibs-standard-1.1.2.  
Also i have ammended web.xml to:
 
!-- JSTL Deployment --
taglib
taglib-uri/jstl-c/taglib-uri
taglib-location/WEB-INF/c.tld/taglib-location
/taglib


And i have copied standard.jar  jstl.jar to  ROOT/WEB-INF/lib  ( is this the 
right place)  the all the  tld's to /WEB-INF.  Also i'm running 1.4.2_07.
 
how do i get taglibs to work propoerly. I've seem numerous posts on the web  
about this but never a fix..
 
thanks in advance pg


Re: Error: javax/servlet/jsp/tagext/TagLibraryValidator

2005-03-04 Thread Kris Schneider
From http://jakarta.apache.org/tomcat/tomcat-5.5-doc/setup.html

If using a J2SE 1.4 JRE, the compatibility package must be downloaded and
expanded inside the folder where Tomcat was installed.

Have you done that? You may also want to grab the lates TC 5.5 version (5.5.7).
For the last couple versions of JSP, there really isn't any reason to install
TLD files and use taglib elements in web.xml for packaged taglibs. So, delete
the TLD files from WEB-INF and remove the taglib elements from web.xml. The
standard taglib directive for JSTL 1.1's core taglib is:

%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %

Placing jstl.jar and standard.jar in WEB-INF/lib is correct.

Quoting [EMAIL PROTECTED]:

 Hi There,
 i need some help working out how to fix the above error. 
  
 When i code the following line:  
 %@ taglib uri=/jstl-c prefix=c %
 in my jsp page i  get some crazy errors:
  
  
 exception  
 javax.servlet.ServletException: javax/servlet/jsp/tagext/TagLibraryValidator
 
 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
 
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 root  cause 
 java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
 
 java.lang.ClassLoader.defineClass0(Native 
 Method)
 
 
 java.lang.ClassLoader.defineClass(ClassLoader.java:539)
 
 
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
 
 
 java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
 
 
  
 etc.
  
  
 I have downloaded jakarta-tomcat-5.5.4   jakarta-taglibs-standard-1.1.2.  
 Also i have ammended web.xml to:
  
 !-- JSTL Deployment --
 taglib
 taglib-uri/jstl-c/taglib-uri
 taglib-location/WEB-INF/c.tld/taglib-location
 /taglib
 
 
 And i have copied standard.jar  jstl.jar to  ROOT/WEB-INF/lib  ( is this the
 
 right place)  the all the  tld's to /WEB-INF.  Also i'm running 1.4.2_07.
  
 how do i get taglibs to work propoerly. I've seem numerous posts on the web 
 
 about this but never a fix..
  
 thanks in advance pg

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Update: tag expression error

2004-11-15 Thread David Liles
Thanks for the info. As for the mapping, in the web.xml file there is a mapping 
that indicates that the c tld is associated to the version I'm referencing, 
but I'll look deeper into the tld contained within the JAR file.

 [EMAIL PROTECTED] 11/12/04 05:45PM 
 From: David Liles [mailto:[EMAIL PROTECTED] 
 4. c-1_0.tld, taglibs-iterators.tld are in the WEB-INF folder 
 (plus other required tld's)

Why?  The tld files are in their respective .jar files and should work
from there.  Maybe one of your environments is using the tld in the .jar
file, and the other is using the one in WEB-INF?

And you have:
 %@ taglib uri=/WEB-INF/tld/c prefix=c %

So wouldn't it be looking for c.tld, not c-1_0.tld as you wrote above?
I haven't had tld's loose in WEB-INF for a long time, I don't remember
how it works.

Something to try... look in your standard.jar and find the tld file.
View it, and there will be a line like this:
   urihttp://java.sun.com/jstl/core/uri

Removing the tld from under WEB-INF and change the %@ taglib in your
JSP to:
   %@ taglib uri=http://java.sun.com/jstl/core; prefix=c %
(With the URI matching the one you found in the TLD file.)

I have no idea why it works one place and not the other, but I've
experienced something similar with code working fine on my Windows
development PC and refusing to cooperate on my HP-UX web server.

-- 
Wendy Smoak




-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Update: tag expression error

2004-11-12 Thread David Liles
On a hunch, I moved the code and supporting jsp's to our production box which 
is Windows 200 with Tomcat 5.0.x. When we view a page with the below text 
everything displays as expected. (URL: http://www.minimoon.biz )
 
What I can't figure out is why this does not work on the local laptop where it 
is being developed (Eclipse 3.x with Tomcat 5.0.x) but on our server it works 
fine.

Any thoughts?

-David


 [EMAIL PROTECTED] 11/10/04 08:48AM 
I am experiencing an error with the 1.2 Iterators tag when trying to use the 
forColumns feature.

My local development environment is as follows:

1. TomCat 5.0.x
2. Struts 1.2
3. jstl.jar, standard.jar and taglibs-iterator.jar are located in the /lib 
folder (plus other required jar files)
4. c-1_0.tld, taglibs-iterators.tld are in the WEB-INF folder (plus other 
required tld's)

I am creating an ArrayList of beans and sending them to the jsp. The page does 
not fully load and in the Eclipse console I see the below error. Here is the 
text of the jsp that is causing the error:

%@ taglib uri=/WEB-INF/tld/c prefix=c %
%@ taglib uri=http://jakarta.apache.org/taglibs/iterators-1.0; prefix=iter 
%
HTML
HEAD
META http-equiv=Content-Type content=text/html; charset=ISO-8859-1
TITLEdisplay.jsp/TITLE
/HEAD
BODY
P
table width=600 border=1 cellspacing=0
iter:forColumns var=itemBean items=${inventory} columns=4
tr
td c:out value=${itemBean[0].itemName} default=/
brc:out value=${itemBean[0].description} default=//td
tdc:out value=${itemBean[1].itemName} default=/
brc:out value=${itemBean[1].description} default=//td
tdc:out value=${itemBean[2].itemName} default=/
brc:out value=${itemBean[2].description} default=//td
tdc:out value=${itemBean[3].itemName} default=/
brc:out value=${itemBean[3].description} default=//td
/tr
/iter:forColumns
/table
/P
/BODY
/HTML

-- ERROR --

Nov 9, 2004 8:50:51 PM org.apache.struts.taglib.tiles.InsertTag$InsertHandler 
doEndTag
SEVERE: ServletException in '/admin/displayInventory.jsp': 
/admin/displayInventory.jsp(38,0) According to TLD or attribute directive in 
tag file, attribute items does not accept any expressions
org.apache.jasper.JasperException: /admin/displayInventory.jsp(38,0) According 
to TLD or attribute directive in tag file, attribute items does not accept any 
expressions
at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:376)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
at 
org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:941)
at 
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:696)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Validator.validate(Validator.java:1475)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:581)
at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101)
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:137)
at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:758)
at 
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:890)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)
at 
org.apache.jsp.layout.coreLayout_jsp._jspx_meth_tiles_insert_2(coreLayout_jsp.java:218)
at 
org.apache.jsp.layout.coreLayout_jsp._jspx_meth_html_html_0

Re: Update: tag expression error

2004-11-12 Thread Dakota Jack
Why do you say that this is the code causing the problem?  It looks as
if the problem is in the tiles insert tag?

Jack


On Fri, 12 Nov 2004 08:05:37 -0600, David Liles
[EMAIL PROTECTED] wrote:
 On a hunch, I moved the code and supporting jsp's to our production box which 
 is Windows 200 with Tomcat 5.0.x. When we view a page with the below text 
 everything displays as expected. (URL: http://www.minimoon.biz )
 
 What I can't figure out is why this does not work on the local laptop where 
 it is being developed (Eclipse 3.x with Tomcat 5.0.x) but on our server it 
 works fine.
 
 Any thoughts?
 
 -David
 
  [EMAIL PROTECTED] 11/10/04 08:48AM 
 I am experiencing an error with the 1.2 Iterators tag when trying to use the 
 forColumns feature.
 
 My local development environment is as follows:
 
 1. TomCat 5.0.x
 2. Struts 1.2
 3. jstl.jar, standard.jar and taglibs-iterator.jar are located in the /lib 
 folder (plus other required jar files)
 4. c-1_0.tld, taglibs-iterators.tld are in the WEB-INF folder (plus other 
 required tld's)
 
 I am creating an ArrayList of beans and sending them to the jsp. The page 
 does not fully load and in the Eclipse console I see the below error. Here is 
 the text of the jsp that is causing the error:
 
 %@ taglib uri=/WEB-INF/tld/c prefix=c %
 %@ taglib uri=http://jakarta.apache.org/taglibs/iterators-1.0; 
 prefix=iter %
 HTML
 HEAD
 META http-equiv=Content-Type content=text/html; charset=ISO-8859-1
 TITLEdisplay.jsp/TITLE
 /HEAD
 BODY
 P
 table width=600 border=1 cellspacing=0
 iter:forColumns var=itemBean items=${inventory} columns=4
 tr
 td c:out value=${itemBean[0].itemName} default=/
 brc:out value=${itemBean[0].description} default=//td
 tdc:out value=${itemBean[1].itemName} default=/
 brc:out value=${itemBean[1].description} default=//td
 tdc:out value=${itemBean[2].itemName} default=/
 brc:out value=${itemBean[2].description} default=//td
 tdc:out value=${itemBean[3].itemName} default=/
 brc:out value=${itemBean[3].description} default=//td
 /tr
 /iter:forColumns
 /table
 /P
 /BODY
 /HTML
 
 -- ERROR --
 
 Nov 9, 2004 8:50:51 PM org.apache.struts.taglib.tiles.InsertTag$InsertHandler 
 doEndTag
 SEVERE: ServletException in '/admin/displayInventory.jsp': 
 /admin/displayInventory.jsp(38,0) According to TLD or attribute directive in 
 tag file, attribute items does not accept any expressions
 org.apache.jasper.JasperException: /admin/displayInventory.jsp(38,0) 
 According to TLD or attribute directive in tag file, attribute items does not 
 accept any expressions
 at 
 org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
 at 
 org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:376)
 at 
 org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
 at 
 org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:941)
 at 
 org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:696)
 at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
 at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
 at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
 at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
 at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
 at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
 at org.apache.jasper.compiler.Validator.validate(Validator.java:1475)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
 at 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
 at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
 at 
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
 at 
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
 at 
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
 at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:581)
 at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101)
 at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:137)
 at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:758

Re: Update: tag expression error

2004-11-12 Thread David Liles
Excuse my lack of knowledge, but what is a tiles insert tag?

What has me confused is why it works in production but not on the development 
laptop.

 [EMAIL PROTECTED] 11/12/04 08:35AM 
Why do you say that this is the code causing the problem?  It looks as
if the problem is in the tiles insert tag?

Jack


On Fri, 12 Nov 2004 08:05:37 -0600, David Liles
[EMAIL PROTECTED] wrote:
 On a hunch, I moved the code and supporting jsp's to our production box which 
 is Windows 200 with Tomcat 5.0.x. When we view a page with the below text 
 everything displays as expected. (URL: http://www.minimoon.biz )
 
 What I can't figure out is why this does not work on the local laptop where 
 it is being developed (Eclipse 3.x with Tomcat 5.0.x) but on our server it 
 works fine.
 
 Any thoughts?
 
 -David
 
  [EMAIL PROTECTED] 11/10/04 08:48AM 
 I am experiencing an error with the 1.2 Iterators tag when trying to use the 
 forColumns feature.
 
 My local development environment is as follows:
 
 1. TomCat 5.0.x
 2. Struts 1.2
 3. jstl.jar, standard.jar and taglibs-iterator.jar are located in the /lib 
 folder (plus other required jar files)
 4. c-1_0.tld, taglibs-iterators.tld are in the WEB-INF folder (plus other 
 required tld's)
 
 I am creating an ArrayList of beans and sending them to the jsp. The page 
 does not fully load and in the Eclipse console I see the below error. Here is 
 the text of the jsp that is causing the error:
 
 %@ taglib uri=/WEB-INF/tld/c prefix=c %
 %@ taglib uri=http://jakarta.apache.org/taglibs/iterators-1.0; 
 prefix=iter %
 HTML
 HEAD
 META http-equiv=Content-Type content=text/html; charset=ISO-8859-1
 TITLEdisplay.jsp/TITLE
 /HEAD
 BODY
 P
 table width=600 border=1 cellspacing=0
 iter:forColumns var=itemBean items=${inventory} columns=4
 tr
 td c:out value=${itemBean[0].itemName} default=/
 brc:out value=${itemBean[0].description} default=//td
 tdc:out value=${itemBean[1].itemName} default=/
 brc:out value=${itemBean[1].description} default=//td
 tdc:out value=${itemBean[2].itemName} default=/
 brc:out value=${itemBean[2].description} default=//td
 tdc:out value=${itemBean[3].itemName} default=/
 brc:out value=${itemBean[3].description} default=//td
 /tr
 /iter:forColumns
 /table
 /P
 /BODY
 /HTML
 
 -- ERROR --
 
 Nov 9, 2004 8:50:51 PM org.apache.struts.taglib.tiles.InsertTag$InsertHandler 
 doEndTag
 SEVERE: ServletException in '/admin/displayInventory.jsp': 
 /admin/displayInventory.jsp(38,0) According to TLD or attribute directive in 
 tag file, attribute items does not accept any expressions
 org.apache.jasper.JasperException: /admin/displayInventory.jsp(38,0) 
 According to TLD or attribute directive in tag file, attribute items does not 
 accept any expressions
 at 
 org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
 at 
 org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:376)
 at 
 org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
 at 
 org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:941)
 at 
 org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:696)
 at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
 at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
 at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
 at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
 at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
 at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
 at org.apache.jasper.compiler.Validator.validate(Validator.java:1475)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
 at 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
 at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
 at 
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
 at 
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
 at 
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
 at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:581

Re: Update: tag expression error

2004-11-12 Thread David Liles
After looking at this further, the error is not with the tiles tag, but 
actually at the iter tag based on the following error message text:

According to TLD or attribute directive in tag file, attribute items does not 
accept any expressions

This is saying that the items attribute is the cause. My confusion is then 
why is this working in production and not on the development box when the files 
in the WEB-INF and WEB-INF\lib are the same?

New ideas?
-David

 [EMAIL PROTECTED] 11/12/04 08:35AM 
Why do you say that this is the code causing the problem?  It looks as
if the problem is in the tiles insert tag?

Jack


On Fri, 12 Nov 2004 08:05:37 -0600, David Liles
[EMAIL PROTECTED] wrote:
 On a hunch, I moved the code and supporting jsp's to our production box which 
 is Windows 200 with Tomcat 5.0.x. When we view a page with the below text 
 everything displays as expected. (URL: http://www.minimoon.biz )
 
 What I can't figure out is why this does not work on the local laptop where 
 it is being developed (Eclipse 3.x with Tomcat 5.0.x) but on our server it 
 works fine.
 
 Any thoughts?
 
 -David
 
  [EMAIL PROTECTED] 11/10/04 08:48AM 
 I am experiencing an error with the 1.2 Iterators tag when trying to use the 
 forColumns feature.
 
 My local development environment is as follows:
 
 1. TomCat 5.0.x
 2. Struts 1.2
 3. jstl.jar, standard.jar and taglibs-iterator.jar are located in the /lib 
 folder (plus other required jar files)
 4. c-1_0.tld, taglibs-iterators.tld are in the WEB-INF folder (plus other 
 required tld's)
 
 I am creating an ArrayList of beans and sending them to the jsp. The page 
 does not fully load and in the Eclipse console I see the below error. Here is 
 the text of the jsp that is causing the error:
 
 %@ taglib uri=/WEB-INF/tld/c prefix=c %
 %@ taglib uri=http://jakarta.apache.org/taglibs/iterators-1.0; 
 prefix=iter %
 HTML
 HEAD
 META http-equiv=Content-Type content=text/html; charset=ISO-8859-1
 TITLEdisplay.jsp/TITLE
 /HEAD
 BODY
 P
 table width=600 border=1 cellspacing=0
 iter:forColumns var=itemBean items=${inventory} columns=4
 tr
 td c:out value=${itemBean[0].itemName} default=/
 brc:out value=${itemBean[0].description} default=//td
 tdc:out value=${itemBean[1].itemName} default=/
 brc:out value=${itemBean[1].description} default=//td
 tdc:out value=${itemBean[2].itemName} default=/
 brc:out value=${itemBean[2].description} default=//td
 tdc:out value=${itemBean[3].itemName} default=/
 brc:out value=${itemBean[3].description} default=//td
 /tr
 /iter:forColumns
 /table
 /P
 /BODY
 /HTML
 
 -- ERROR --
 
 Nov 9, 2004 8:50:51 PM org.apache.struts.taglib.tiles.InsertTag$InsertHandler 
 doEndTag
 SEVERE: ServletException in '/admin/displayInventory.jsp': 
 /admin/displayInventory.jsp(38,0) According to TLD or attribute directive in 
 tag file, attribute items does not accept any expressions
 org.apache.jasper.JasperException: /admin/displayInventory.jsp(38,0) 
 According to TLD or attribute directive in tag file, attribute items does not 
 accept any expressions
 at 
 org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
 at 
 org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:376)
 at 
 org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
 at 
 org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:941)
 at 
 org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:696)
 at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
 at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
 at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
 at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
 at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
 at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
 at org.apache.jasper.compiler.Validator.validate(Validator.java:1475)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
 at 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
 at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
 at 
 org.apache.catalina.core.ApplicationDispatcher.doInclude

RE: Update: tag expression error

2004-11-12 Thread Wendy Smoak
 From: David Liles [mailto:[EMAIL PROTECTED] 
 4. c-1_0.tld, taglibs-iterators.tld are in the WEB-INF folder 
 (plus other required tld's)

Why?  The tld files are in their respective .jar files and should work
from there.  Maybe one of your environments is using the tld in the .jar
file, and the other is using the one in WEB-INF?

And you have:
 %@ taglib uri=/WEB-INF/tld/c prefix=c %

So wouldn't it be looking for c.tld, not c-1_0.tld as you wrote above?
I haven't had tld's loose in WEB-INF for a long time, I don't remember
how it works.

Something to try... look in your standard.jar and find the tld file.
View it, and there will be a line like this:
   urihttp://java.sun.com/jstl/core/uri

Removing the tld from under WEB-INF and change the %@ taglib in your
JSP to:
   %@ taglib uri=http://java.sun.com/jstl/core; prefix=c %
(With the URI matching the one you found in the TLD file.)

I have no idea why it works one place and not the other, but I've
experienced something similar with code working fine on my Windows
development PC and refusing to cooperate on my HP-UX web server.

-- 
Wendy Smoak




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tag expression error

2004-11-10 Thread David Liles
I am experiencing an error with the 1.2 Iterators tag when trying to use the 
forColumns feature.

My local development environment is as follows:

1. TomCat 5.0.x
2. Struts 1.2
3. jstl.jar, standard.jar and taglibs-iterator.jar are located in the /lib 
folder (plus other required jar files)
4. c-1_0.tld, taglibs-iterators.tld are in the WEB-INF folder (plus other 
required tld's)

I am creating an ArrayList of beans and sending them to the jsp. The page does 
not fully load and in the Eclipse console I see the below error. Here is the 
text of the jsp that is causing the error:

%@ taglib uri=/WEB-INF/tld/c prefix=c %
%@ taglib uri=http://jakarta.apache.org/taglibs/iterators-1.0; prefix=iter 
%
HTML
HEAD
META http-equiv=Content-Type content=text/html; charset=ISO-8859-1
TITLEdisplay.jsp/TITLE
/HEAD
BODY
P
table width=600 border=1 cellspacing=0
iter:forColumns var=itemBean items=${inventory} columns=4
tr
td c:out value=${itemBean[0].itemName} default=/
brc:out value=${itemBean[0].description} default=//td
tdc:out value=${itemBean[1].itemName} default=/
brc:out value=${itemBean[1].description} default=//td
tdc:out value=${itemBean[2].itemName} default=/
brc:out value=${itemBean[2].description} default=//td
tdc:out value=${itemBean[3].itemName} default=/
brc:out value=${itemBean[3].description} default=//td
/tr
/iter:forColumns
/table
/P
/BODY
/HTML

-- ERROR --

Nov 9, 2004 8:50:51 PM org.apache.struts.taglib.tiles.InsertTag$InsertHandler 
doEndTag
SEVERE: ServletException in '/admin/displayInventory.jsp': 
/admin/displayInventory.jsp(38,0) According to TLD or attribute directive in 
tag file, attribute items does not accept any expressions
org.apache.jasper.JasperException: /admin/displayInventory.jsp(38,0) According 
to TLD or attribute directive in tag file, attribute items does not accept any 
expressions
at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:376)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
at 
org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:941)
at 
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:696)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Validator.validate(Validator.java:1475)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:581)
at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101)
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:137)
at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:758)
at 
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:890)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)
at 
org.apache.jsp.layout.coreLayout_jsp._jspx_meth_tiles_insert_2(coreLayout_jsp.java:218)
at 
org.apache.jsp.layout.coreLayout_jsp._jspx_meth_html_html_0(coreLayout_jsp.java:132)
at org.apache.jsp.layout.coreLayout_jsp._jspService(coreLayout_jsp.java:67)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service

Error: org.xml.sax.SAXParseException: Content is not allowed in prolog.

2004-10-22 Thread Jordy van der Vliet
All,
 
I have the following code working in a tomcat 5.0 working with jstl 1.1 on
one
machine, but at another machine also with tomcat 5.0.28 and jstl 1.1 the
code gives the
following error: org.xml.sax.SAXParseException: Content is not allowed in
prolog.
 
%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' %
%@ taglib uri='http://java.sun.com/jsp/jstl/xml'  prefix='x' %
 
c:import var=nieuwsXML url=nieuws.xml/
 
x:parse doc=${nieuwsXML} var=nieuwsDOC  /

For test purposes i stripped down the XML file down to the following:
 
?xml version=1.0?
testhallo/test
 
Does anyone have an idea what is causing this problem? Maybe some problem
with jar/jstl versions ? like different xalan jars? jdk versions?
 
I have no idea what this error precisely means and how to solve it. Thanks
in
advance for any tips.
 
Cheers, 
 Jordy van der Vliet
 
 


 
 


RE: Error: org.xml.sax.SAXParseException: Content is not allowed in prolog.

2004-10-22 Thread Jordy van der Vliet
One small addition to my own problem,

The following seems to work :
x:parse doc=?xml version=1.0?testhallo/test  var=nieuwsDOC  /

So since x:parse doc=${nieuwsXML} var=nieuwsDOC  / gives the Content
is not allowed in prolog, my guess is that the ${} is not doing its work and
its trying to parse that string. Anyone has a clue why it is recognizing
${} on one of my tomcat instantion and not in the other one?

Cheers, 
Jordy


-Original Message-
From: Jordy van der Vliet [mailto:[EMAIL PROTECTED] 
Sent: vrijdag 22 oktober 2004 23:09
To: [EMAIL PROTECTED]
Subject: Error: org.xml.sax.SAXParseException: Content is not allowed in
prolog.

All,
 
I have the following code working in a tomcat 5.0 working with jstl 1.1 on
one machine, but at another machine also with tomcat 5.0.28 and jstl 1.1 the
code gives the following error: org.xml.sax.SAXParseException: Content is
not allowed in prolog.
 
%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' % %@ taglib
uri='http://java.sun.com/jsp/jstl/xml'  prefix='x' %
 
c:import var=nieuwsXML url=nieuws.xml/
 
x:parse doc=${nieuwsXML} var=nieuwsDOC  /

For test purposes i stripped down the XML file down to the following:
 
?xml version=1.0?
testhallo/test
 
Does anyone have an idea what is causing this problem? Maybe some problem
with jar/jstl versions ? like different xalan jars? jdk versions?
 
I have no idea what this error precisely means and how to solve it. Thanks
in advance for any tips.
 
Cheers, 
 Jordy van der Vliet
 
 


 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error: org.xml.sax.SAXParseException: Content is not allowed in prolog.

2004-10-22 Thread Rahul P Akolkar
c:import var=nieuwsXML url=nieuws.xml 
  x:parse doc=${nieuwsXML} var=nieuwsDOC  /
/c:import

-Rahul


x:out error

2004-10-05 Thread Ben Anderson
Hi,
I'm battling what seems to be a pretty elementary problem:
x:parse var=xrpcResponse
 person
firstname nickname=falseBen/firstname
lastnameAnderson/lastname
/person
/x:parse
x:out select=$xrpcResponse//firstname/
This should work, correct? I've been trying so many variations of this 
and nothing seems to work. I'm on Resin 2.19, but am using jakarta's 
standard taglibs.
Any ideas?
Thanks,
Ben


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: x:out error

2004-10-05 Thread Hassan Schroeder
Ben Anderson wrote:
I'm battling what seems to be a pretty elementary problem:
x:parse var=xrpcResponse
 person
firstname nickname=falseBen/firstname
lastnameAnderson/lastname
/person
/x:parse
x:out select=$xrpcResponse//firstname/
This should work, correct? 
Confirmed that it works on Tomcat 5.0.28 using 2.4 spec/JSTL 1.1 :-)
HTH,
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: x:out error

2004-10-05 Thread Ben Anderson
Thanks for the sanity check.  I got it fixed.  It was a dependency 
issue.  For someone reason I had placed jaxen in one of the 
classloaders.  Not too sure why I did that - but deleting it fixed my 
problem.
-Ben

Hassan Schroeder wrote:
Ben Anderson wrote:
I'm battling what seems to be a pretty elementary problem:
x:parse var=xrpcResponse
 person
firstname nickname=falseBen/firstname
lastnameAnderson/lastname
/person
/x:parse
x:out select=$xrpcResponse//firstname/
This should work, correct? 

Confirmed that it works on Tomcat 5.0.28 using 2.4 spec/JSTL 1.1 :-)
HTH,

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat 5 JSTL compile error

2004-09-14 Thread Patrick Bourke
Hi all,
I'm trying to get up and running with the JSTL standard tags, and am 
receiving a compile error that I can't sort out. I've got a simple page 
with which I'm tying to use the JSTL core and fmt namespaces. Here is my 
JSP page:

[EMAIL PROTECTED] language=java contentType=text/html %
[EMAIL PROTECTED] prefix=c uri=http://java.sun.com/jsp/jstl/core; %
[EMAIL PROTECTED] prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt; %
... (html snipped) ...
User is ${user.username}br
This login was at ${user.loginDate}br
Last login was ${user.lastLoginDate}br
c:forEach var=prop items=${user.dataMap}
c:out value=${prop.key}/ = c:out value=${prop.value}/br/
/c:forEach
... (html snipped) ...
I have placed jstl.jar and standard.jar from 
jakarta-taglibs-standard-1.1.1 in my tomcat's shared/lib directory. 
(I've also tried the versions from 1.1.0 with the same result).

When I hit this page I get the following error:
- Could not complete request
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
C:\tomcat5\work\Catalina\localhost\SCS\org\apache\jsp\WEB_002dINF\jsp\homepage\homepage_jsp.java:128: 
_jspx_meth_c_out_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext,int[]) 
in org.apache.jsp.WEB_002dINF.jsp.homepage.homepage_jsp cannot be 
applied to 
(org.apache.taglibs.standard.tag.rt.core.ForEachTag,javax.servlet.jsp.PageContext,int[])
  if (_jspx_meth_c_out_0(_jspx_th_c_forEach_0, 
_jspx_page_context, _jspx_push_body_count_c_forEach_0))
  ^
Generated servlet error:
C:\tomcat5\work\Catalina\localhost\SCS\org\apache\jsp\WEB_002dINF\jsp\homepage\homepage_jsp.java:133: 
_jspx_meth_c_out_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext,int[]) 
in org.apache.jsp.WEB_002dINF.jsp.homepage.homepage_jsp cannot be 
applied to 
(org.apache.taglibs.standard.tag.rt.core.ForEachTag,javax.servlet.jsp.PageContext,int[])
  if (_jspx_meth_c_out_1(_jspx_th_c_forEach_0, 
_jspx_page_context, _jspx_push_body_count_c_forEach_0))
  ^

This is strange, as ForEachTag should be assignable to a JspTag argument 
in the methods _jspx_meth_c_out_0 and _jspx_meth_c_out_1.

Here are the details of my setup:
tomcat 5.0.28
j2sdk 1.4.2_05-b4
winxp home
jstl.jar and standard.jar in TOMCAT_HOME/shared/lib
no additional JSTL specific changes to web.xml, server.xml, etc
Any help or pointers would be greatly appreciated!
Patrick.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 JSTL compile error

2004-09-14 Thread Kris Schneider
If you dump stuff in $CATALINA_HOME/shared/lib, then Tomcat internal classes
can't see it:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html

Generally speaking, it's best to keep taglib JAR files in the app's WEB-INF/lib
directory.

Quoting Patrick Bourke [EMAIL PROTECTED]:

 Hi all,
 
 I'm trying to get up and running with the JSTL standard tags, and am 
 receiving a compile error that I can't sort out. I've got a simple page 
 with which I'm tying to use the JSTL core and fmt namespaces. Here is my 
 JSP page:
 
 [EMAIL PROTECTED] language=java contentType=text/html %
 [EMAIL PROTECTED] prefix=c uri=http://java.sun.com/jsp/jstl/core; %
 [EMAIL PROTECTED] prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt; %
 ... (html snipped) ...
 User is ${user.username}br
 This login was at ${user.loginDate}br
 Last login was ${user.lastLoginDate}br
 c:forEach var=prop items=${user.dataMap}
   c:out value=${prop.key}/ = c:out value=${prop.value}/br/
 /c:forEach
 ... (html snipped) ...
 
 I have placed jstl.jar and standard.jar from 
 jakarta-taglibs-standard-1.1.1 in my tomcat's shared/lib directory. 
 (I've also tried the versions from 1.1.0 with the same result).
 
 When I hit this page I get the following error:
 
 - Could not complete request
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 Generated servlet error:

C:\tomcat5\work\Catalina\localhost\SCS\org\apache\jsp\WEB_002dINF\jsp\homepage\homepage_jsp.java:128:
 

_jspx_meth_c_out_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext,int[])
 
 in org.apache.jsp.WEB_002dINF.jsp.homepage.homepage_jsp cannot be 
 applied to 

(org.apache.taglibs.standard.tag.rt.core.ForEachTag,javax.servlet.jsp.PageContext,int[])
if (_jspx_meth_c_out_0(_jspx_th_c_forEach_0, 
 _jspx_page_context, _jspx_push_body_count_c_forEach_0))
^
 Generated servlet error:

C:\tomcat5\work\Catalina\localhost\SCS\org\apache\jsp\WEB_002dINF\jsp\homepage\homepage_jsp.java:133:
 

_jspx_meth_c_out_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext,int[])
 
 in org.apache.jsp.WEB_002dINF.jsp.homepage.homepage_jsp cannot be 
 applied to 

(org.apache.taglibs.standard.tag.rt.core.ForEachTag,javax.servlet.jsp.PageContext,int[])
if (_jspx_meth_c_out_1(_jspx_th_c_forEach_0, 
 _jspx_page_context, _jspx_push_body_count_c_forEach_0))
^
 
 
 This is strange, as ForEachTag should be assignable to a JspTag argument 
 in the methods _jspx_meth_c_out_0 and _jspx_meth_c_out_1.
 
 Here are the details of my setup:
 tomcat 5.0.28
 j2sdk 1.4.2_05-b4
 winxp home
 jstl.jar and standard.jar in TOMCAT_HOME/shared/lib
 no additional JSTL specific changes to web.xml, server.xml, etc
 
 Any help or pointers would be greatly appreciated!
 
 Patrick.

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 JSTL compile error

2004-09-14 Thread Patrick Bourke
Hi Kris,
Thanks!
I thought I had tested it under the app's WEB-INF/lib, but the jars were 
also in tomcat's shared/lib at the time. I also got it working via a 
tagPlugins.xml in the app's WEB-INF, but this way is much cleaner. 
Serves me right for deviating from the docs.

Cheers,
Patrick.
Kris Schneider wrote:
If you dump stuff in $CATALINA_HOME/shared/lib, then Tomcat internal classes
can't see it:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html
Generally speaking, it's best to keep taglib JAR files in the app's WEB-INF/lib
directory.
Quoting Patrick Bourke [EMAIL PROTECTED]:

Hi all,
I'm trying to get up and running with the JSTL standard tags, and am 
receiving a compile error that I can't sort out. I've got a simple page 
with which I'm tying to use the JSTL core and fmt namespaces. Here is my 
JSP page:

[EMAIL PROTECTED] language=java contentType=text/html %
[EMAIL PROTECTED] prefix=c uri=http://java.sun.com/jsp/jstl/core; %
[EMAIL PROTECTED] prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt; %
... (html snipped) ...
User is ${user.username}br
This login was at ${user.loginDate}br
Last login was ${user.lastLoginDate}br
c:forEach var=prop items=${user.dataMap}
c:out value=${prop.key}/ = c:out value=${prop.value}/br/
/c:forEach
... (html snipped) ...
I have placed jstl.jar and standard.jar from 
jakarta-taglibs-standard-1.1.1 in my tomcat's shared/lib directory. 
(I've also tried the versions from 1.1.0 with the same result).

When I hit this page I get the following error:
- Could not complete request
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
C:\tomcat5\work\Catalina\localhost\SCS\org\apache\jsp\WEB_002dINF\jsp\homepage\homepage_jsp.java:128:

_jspx_meth_c_out_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext,int[])
in org.apache.jsp.WEB_002dINF.jsp.homepage.homepage_jsp cannot be 
applied to 

(org.apache.taglibs.standard.tag.rt.core.ForEachTag,javax.servlet.jsp.PageContext,int[])
  if (_jspx_meth_c_out_0(_jspx_th_c_forEach_0, 
_jspx_page_context, _jspx_push_body_count_c_forEach_0))
  ^
Generated servlet error:

C:\tomcat5\work\Catalina\localhost\SCS\org\apache\jsp\WEB_002dINF\jsp\homepage\homepage_jsp.java:133:

_jspx_meth_c_out_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext,int[])
in org.apache.jsp.WEB_002dINF.jsp.homepage.homepage_jsp cannot be 
applied to 

(org.apache.taglibs.standard.tag.rt.core.ForEachTag,javax.servlet.jsp.PageContext,int[])
  if (_jspx_meth_c_out_1(_jspx_th_c_forEach_0, 
_jspx_page_context, _jspx_push_body_count_c_forEach_0))
  ^

This is strange, as ForEachTag should be assignable to a JspTag argument 
in the methods _jspx_meth_c_out_0 and _jspx_meth_c_out_1.

Here are the details of my setup:
tomcat 5.0.28
j2sdk 1.4.2_05-b4
winxp home
jstl.jar and standard.jar in TOMCAT_HOME/shared/lib
no additional JSTL specific changes to web.xml, server.xml, etc
Any help or pointers would be greatly appreciated!
Patrick.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat 4.1.30 error with xtags

2004-08-26 Thread Tarik Mokhtari
Hi,

I'm migrating our tomcat 4.0.1 to 4.1.30.
An exception is raised on tomcat 4.1.30 (the code works on tomcat 4.0.1)

java.lang.Exception
at
org.apache.taglibs.xtags.tags.TagHelper.getInputNodes(TagHelper.java:141)
at
org.apache.taglibs.xtags.tags.AbstractXPathTag.getInputNodes(AbstractXPathTa
g.java:171)
at
org.apache.taglibs.xtags.tags.AbstractXPathTag.getInputNodes(AbstractXPathTa
g.java:166)
at
org.apache.taglibs.xtags.tags.ValueOfTag.doStartTag(ValueOfTag.java:101)
at
org.apache.jsp.rubPlanning_jsp._jspx_meth_xtags_valueOf_0(rubPlanning_jsp.ja
va:105)
at
org.apache.jsp.rubPlanning_jsp._jspService(rubPlanning_jsp.java:79)
...

the rubPlanning.jsp code:

%@ page import=java.io.StringReader %
%@ taglib uri=http://jakarta.apache.org/taglibs/xtags-1.0; prefix=xtags
%

%
StringReader readStringXml = new StringReader(?xml
version=\1.0\?list1/list);
%

table width=100% border=0 cellspacing=0 cellpadding=0
bordercolor=#00
tr
  td
xtags:parse reader=%=readStringXml% /
xtags:valueOf select=/list /
/td
/tr
/table

I tried:
- an old xtags jar but also the last one
- the latest dom4j
same error ...

any idea.
Thanks in advance.

Tarik Mokhtari.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Custom Tag Error

2004-08-20 Thread Kris Schneider
It looks like the TLD contains:

tagclassoreilly.examples.Hello/tagclass

So make sure your Java source includes the appropriate package declaration:

package oreilly.examples;

From the comments in that article, it looks like people ran into a few issues
with the code.

Quoting Java Techie [EMAIL PROTECTED]:

 Hi,
 Deploying my first Custom Tag Example; 
 
 **ERROR**:
 org.apache.jasper.JasperException: /hello.jsp(9,16)
 Unable to load tag handler class Hello for tag
 sample:hello
 

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
   

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)
 
 .jsp is in the app. root folder.
 .tld is in same folder.
 .class is also in same folder/tried in classes folder.
 ref:
 http://www.onjava.com/pub/a/onjava/2000/12/15/jsp_custom_tags.html
 any other configuration reqd?
 
 Thanks.

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Custom Tag Error

2004-08-20 Thread Helios Alonso
Ensure:
1) Your jsp points sample tagspace to an URI
%@ taglib uri=http://myhost.com/mytags/samples; prefix=sample %
2) The WEB-INF/web.xml includes an entry for the URI, pointing to the TLD
  taglib
taglib-urihttp://myhost.com/mytags/samples/taglib-uri
taglib-location/WEB-INF/samples.tld/taglib-location
  /taglib
I'd put the tld in the WEB-INF folder, and the reference to the TLD would 
be /WEB-INF/x.tld

(oh, and if you use Linux verify read permissions ;-))
At 15:47 19/08/2004 -0700, you wrote:
Hi,
Deploying my first Custom Tag Example;
**ERROR**:
org.apache.jasper.JasperException: /hello.jsp(9,16)
Unable to load tag handler class Hello for tag
sample:hello
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)
.jsp is in the app. root folder.
.tld is in same folder.
.class is also in same folder/tried in classes folder.
ref:
http://www.onjava.com/pub/a/onjava/2000/12/15/jsp_custom_tags.html
any other configuration reqd?
Thanks.

___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Custom Tag Error

2004-08-19 Thread Java Techie
Hi,
Deploying my first Custom Tag Example; 

**ERROR**:
org.apache.jasper.JasperException: /hello.jsp(9,16)
Unable to load tag handler class Hello for tag
sample:hello

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)

.jsp is in the app. root folder.
.tld is in same folder.
.class is also in same folder/tried in classes folder.
ref:
http://www.onjava.com/pub/a/onjava/2000/12/15/jsp_custom_tags.html
any other configuration reqd?

Thanks.



___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cannot load class error

2004-08-02 Thread Martin Cooper
You haven't exactly given us much to go on... ;-)

My first guess is that you don't have all of the JSTL 1.0.x jars in
your WEB-INF/lib directory, as required.

Beyond that, we're going to need more information about what the exact
error is, and what your app config looks like, before we can help you.
Unfortunately, most of us are not mind-readers. ;-)

--
Martin Cooper


On Mon, 02 Aug 2004 05:17:35 +, emily chen [EMAIL PROTECTED] wrote:
 Hi there,
 when I use c:set  in my jsp code,( on apache2 and tomcat4.1.30) it
 has Cannot load class set error. It's not because of the c.tld cannot be
 found, I've checked path and it's a different error if c.tld cannot be
 found.
 Anyone know how to solve this?
 Thanks,
 Emily
 
 _
 Is your PC infected? Get a FREE online computer virus scan from McAfee®
 Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cannot load class error

2004-08-01 Thread emily chen
Hi there,
when I use c:set  in my jsp code,( on apache2 and tomcat4.1.30) it
has Cannot load class set error. It's not because of the c.tld cannot be
found, I've checked path and it's a different error if c.tld cannot be
found.
Anyone know how to solve this?
Thanks,
Emily
_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to locate tld file wihin parse error?

2004-07-21 Thread Soledad Tabuenca
Thanks Kris!

I thoght that Tomcat (server.xml) would provide some
kind of parameter to obtain the name of the file,
however your solution works perfectly and it solves my
problem.



--- Kris Schneider [EMAIL PROTECTED] escribió:  I
usually try to do this sort of validation with Ant
 during a build. Something
 like this:
 
 property name=j2ee.home
 location=C:/j2sdkee1.3.1/
 
 property name=taglib.dtd
 value=web-jsptaglibrary_1_2.dtd/
 property name=taglib.dtd.publicId
   value=-//Sun Microsystems, Inc.//DTD JSP
 Tag Library 1.2//EN/
 
 xmlcatalog id=dtd
   dtd publicId=${taglib.dtd.publicId}
   

location=jar:file:///${j2ee.home}/lib/j2ee.jar!/javax/servlet/jsp/resources/${taglib.dtd}/
 /xmlcatalog
 
 ..
 
 target name=xmlvalidate depends=build
   xmlvalidate lenient=false warn=true
 xmlcatalog refid=dtd/
 fileset dir=${build.dir}/META-INF
   include name=*.tld/
 /fileset
   /xmlvalidate
 /target
 
 target name=dist depends=xmlvalidate
   jar jarfile=${dist.dir}/${ant.project.name}.jar
 basedir=${build.dir}/
 /target
 
 Quoting Soledad Tabuenca [EMAIL PROTECTED]:
 
  Hi!
  
  When I startup tomcat, I obtain the attached
 typical
  parsing error because the tags are not in a
 suitable
  order within a tld file. 
  
  My question is, is there a way to know which is
 the
  tld file that contains this parse error?
  
  In server.xml, I have set the xmlvalidation =
 true,
  debugs to a high level and log files
 (catalina.out,
  log_...) just show the line and column of the
 error
  but not the name of the file.
  
  I have more than 20 tld files, and I would like to
  know if there is a better way to find it than
  searching file to file
  
  Thanks
  
  
  
  
  SEVERE: Parse Error at line 20 column 11: The
 content
  of element type tag must match
 

(name,tag-class,tei-class?,body-content?,display-name?,small-icon?,large-icon?,description?,variable*,attribute*,example?).
  org.xml.sax.SAXParseException: The content of
 element
  type tag must match
 

(name,tag-class,tei-class?,body-content?,display-name?,small-icon?,large-icon?,description?,variable*,attribute*,example?).
 
 -- 
 Kris Schneider mailto:[EMAIL PROTECTED]
 D.O.Tech   http://www.dotech.com/
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
  



__
Yahoo! lanza su nueva tecnología de búsquedas
¿te atreves a comparar?
http://busquedas.yahoo.es

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to locate tld file wihin parse error?

2004-07-20 Thread Soledad Tabuenca
Hi!

When I startup tomcat, I obtain the attached typical
parsing error because the tags are not in a suitable
order within a tld file. 

My question is, is there a way to know which is the
tld file that contains this parse error?

In server.xml, I have set the xmlvalidation = true,
debugs to a high level and log files (catalina.out,
log_...) just show the line and column of the error
but not the name of the file.

I have more than 20 tld files, and I would like to
know if there is a better way to find it than
searching file to file

Thanks




SEVERE: Parse Error at line 20 column 11: The content
of element type tag must match
(name,tag-class,tei-class?,body-content?,display-name?,small-icon?,large-icon?,description?,variable*,attribute*,example?).
org.xml.sax.SAXParseException: The content of element
type tag must match 
(name,tag-class,tei-class?,body-content?,display-name?,small-icon?,large-icon?,description?,variable*,attribute*,example?).



__
Yahoo! lanza su nueva tecnología de búsquedas
¿te atreves a comparar?
http://busquedas.yahoo.es

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to locate tld file wihin parse error?

2004-07-20 Thread Kris Schneider
I usually try to do this sort of validation with Ant during a build. Something
like this:

property name=j2ee.home location=C:/j2sdkee1.3.1/

property name=taglib.dtd value=web-jsptaglibrary_1_2.dtd/
property name=taglib.dtd.publicId
  value=-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN/

xmlcatalog id=dtd
  dtd publicId=${taglib.dtd.publicId}
  
location=jar:file:///${j2ee.home}/lib/j2ee.jar!/javax/servlet/jsp/resources/${taglib.dtd}/
/xmlcatalog

..

target name=xmlvalidate depends=build
  xmlvalidate lenient=false warn=true
xmlcatalog refid=dtd/
fileset dir=${build.dir}/META-INF
  include name=*.tld/
/fileset
  /xmlvalidate
/target

target name=dist depends=xmlvalidate
  jar jarfile=${dist.dir}/${ant.project.name}.jar basedir=${build.dir}/
/target

Quoting Soledad Tabuenca [EMAIL PROTECTED]:

 Hi!
 
 When I startup tomcat, I obtain the attached typical
 parsing error because the tags are not in a suitable
 order within a tld file. 
 
 My question is, is there a way to know which is the
 tld file that contains this parse error?
 
 In server.xml, I have set the xmlvalidation = true,
 debugs to a high level and log files (catalina.out,
 log_...) just show the line and column of the error
 but not the name of the file.
 
 I have more than 20 tld files, and I would like to
 know if there is a better way to find it than
 searching file to file
 
 Thanks
 
 
 
 
 SEVERE: Parse Error at line 20 column 11: The content
 of element type tag must match

(name,tag-class,tei-class?,body-content?,display-name?,small-icon?,large-icon?,description?,variable*,attribute*,example?).
 org.xml.sax.SAXParseException: The content of element
 type tag must match

(name,tag-class,tei-class?,body-content?,display-name?,small-icon?,large-icon?,description?,variable*,attribute*,example?).

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jsp 2.0 el string functions error

2004-06-22 Thread Þorgils Völundarson
Thank you for your reply. I found out that fn:length function can't be used 
to get the length of an integer object from sql query. So instead I changed 
my query to get the length of the variable and passed that to my 
fn:substring function. It appears that fn:length can only be done on 
strings but SELECT LENGTH() can be used both for integer and string functions

At 14:13 21.6.2004, you wrote:
Basically, it means you're passing something to the c:forEach tag that it
can't iterate over. In other words, it's not an array, a Collection, an
Iterator, an Enumeration, a Map, a String, or null. Could you provide an
example of how you're using c:forEach?
Quoting Þorgils Völundarson [EMAIL PROTECTED]:
 Does anybody know what this error is and how to awoid it?

  root cause
  javax.servlet.jsp.JspTagException: Don't know how to iterate over
 supplied items in forEach

 I'm using java web services (jwsdp-1.3) on linux. When I use the sql 
taglib
 to get data from database and then try to use el string functions on the
 outcome the error message above is given. This is the line of code I'm
 using which by the way works perfectly with static string

  ${fn:substring(nullString,1, fn:length(nullString)) }

 Appreciate any help

 Regards,
 Thorgils Volundarson
 Icelandic Cancer Registry
 [EMAIL PROTECTED]

--
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Kveðja,
Þorgils Völundarson
Krabbameinsfélag Íslands, Krabbameinsskrá
Beinn sími: 540 1973
netfang: [EMAIL PROTECTED]
gsm: 698 5302
__
Krabbameinsfélagið er áhugamannafélag
rekið fyrir velvild almennings.
Þitt framlag skiptir máli!
Krabbameinsfélag Íslands er áhugamannafélag
sem var stofnað fyrir meira en hálfri öld og er
tilgangur þess að styðja og efla í hvívetna
baráttuna gegn krabbameini.  Krabbameinsfélagið
sinnir mikilvægu fræðslu- og leitarstarfi, stundar
rannsóknir og annast skráningu krabbameina.
Á vegum félagsins starfa stuðningshópar sjúklinga og veitt er símráðgjöf og 
heimahlynning.


Re: jsp 2.0 el string functions error

2004-06-21 Thread Kris Schneider
Basically, it means you're passing something to the c:forEach tag that it
can't iterate over. In other words, it's not an array, a Collection, an
Iterator, an Enumeration, a Map, a String, or null. Could you provide an
example of how you're using c:forEach?

Quoting Þorgils Völundarson [EMAIL PROTECTED]:

 Does anybody know what this error is and how to awoid it?
 
  root cause
  javax.servlet.jsp.JspTagException: Don't know how to iterate over 
 supplied items in forEach
 
 I'm using java web services (jwsdp-1.3) on linux. When I use the sql taglib 
 to get data from database and then try to use el string functions on the 
 outcome the error message above is given. This is the line of code I'm 
 using which by the way works perfectly with static string
 
  ${fn:substring(nullString,1, fn:length(nullString)) }
 
 Appreciate any help
 
 Regards,
 Thorgils Volundarson
 Icelandic Cancer Registry
 [EMAIL PROTECTED]

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jsp 2.0 el string functions error

2004-06-17 Thread Þorgils Völundarson
Does anybody know what this error is and how to awoid it?
root cause
javax.servlet.jsp.JspTagException: Don't know how to iterate over 
supplied items in forEach

I'm using java web services (jwsdp-1.3) on linux. When I use the sql taglib 
to get data from database and then try to use el string functions on the 
outcome the error message above is given. This is the line of code I'm 
using which by the way works perfectly with static string

${fn:substring(nullString,1, fn:length(nullString)) }
Appreciate any help
Regards,
Thorgils Volundarson
Icelandic Cancer Registry
[EMAIL PROTECTED]


RE: x:parse error - Cannot inherit from final class

2004-05-24 Thread David Schwartz
Hi Kris
That worked!
Thanks

David Schwartz

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 23, 2004 11:04 AM
To: Tag Libraries Users List
Subject: Re: x:parse error - Cannot inherit from final class

Where do you have Xerces/Xalan installed? If they're not in
$CATALINA_HOME/common/endorsed, try putting them there:

xalan.jar
xercesImpl.jar
xml-apis.jar

I'm also assuming you're running some flavor of JDK 1.4...

David Schwartz wrote:
 Just upgraded to tomcat 5.0.24.
 Getting error in x:parse. I have xerces 2.6.2.

 java.lang.VerifyError: Cannot inherit from final class
   java.lang.ClassLoader.defineClass0(Native Method)
   java.lang.ClassLoader.defineClass(ClassLoader.java:502)
  
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
   java.net.URLClassLoader.access$100(URLClassLoader.java:54)
   java.net.URLClassLoader$1.run(URLClassLoader.java:193)
   java.security.AccessController.doPrivileged(Native Method)
   java.net.URLClassLoader.findClass(URLClassLoader.java:186)
  

org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader
 .java:485)
  

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
 .java:820)
  

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
 .java:721)
   java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
  
 org.apache.taglibs.standard.tag.common.xml.ForEachTag.prepare(Unknown
 Source)
   javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(Unknown
 Source)
   org.apache.jsp.logon_jsp._jspx_meth_x_forEach_0(logon_jsp.java:279)
   org.apache.jsp.logon_jsp._jspService(logon_jsp.java:171)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
 98)
  
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


 David Schwartz

--
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: x:parse error - Cannot inherit from final class

2004-05-23 Thread Kris Schneider
Where do you have Xerces/Xalan installed? If they're not in 
$CATALINA_HOME/common/endorsed, try putting them there:

xalan.jar
xercesImpl.jar
xml-apis.jar
I'm also assuming you're running some flavor of JDK 1.4...
David Schwartz wrote:
Just upgraded to tomcat 5.0.24.
Getting error in x:parse. I have xerces 2.6.2.
java.lang.VerifyError: Cannot inherit from final class
java.lang.ClassLoader.defineClass0(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:502)

java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
java.net.URLClassLoader.access$100(URLClassLoader.java:54)
java.net.URLClassLoader$1.run(URLClassLoader.java:193)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:186)

org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader
.java:485)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:820)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:721)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

org.apache.taglibs.standard.tag.common.xml.ForEachTag.prepare(Unknown
Source)
javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(Unknown
Source)
org.apache.jsp.logon_jsp._jspx_meth_x_forEach_0(logon_jsp.java:279)
org.apache.jsp.logon_jsp._jspService(logon_jsp.java:171)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
98)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
David Schwartz
--
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


x:parse error - Cannot inherit from final class

2004-05-22 Thread David Schwartz
Just upgraded to tomcat 5.0.24.
Getting error in x:parse. I have xerces 2.6.2.

java.lang.VerifyError: Cannot inherit from final class
java.lang.ClassLoader.defineClass0(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:502)

java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
java.net.URLClassLoader.access$100(URLClassLoader.java:54)
java.net.URLClassLoader$1.run(URLClassLoader.java:193)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:186)

org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader
.java:485)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:820)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:721)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

org.apache.taglibs.standard.tag.common.xml.ForEachTag.prepare(Unknown
Source)
javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(Unknown
Source)
org.apache.jsp.logon_jsp._jspx_meth_x_forEach_0(logon_jsp.java:279)
org.apache.jsp.logon_jsp._jspService(logon_jsp.java:171)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
98)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


David Schwartz


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5 JKHandler error

2004-05-16 Thread David Schwartz
I upgraded from tomcat 4.1.24 to 5.0.24.
When starting tomcat the following error is logged in stdout.log.

What causes this?

May 16, 2004 11:04:06 PM org.apache.commons.modeler.Registry
registerComponent
SEVERE: Error registering
Catalina:type=protocolHandler,className=org.apache.jk.server.JkCoyoteHandler
javax.management.MBeanRegistrationException: nested exception is
javax.management.ReflectionException: Cannot find Class for
org.apache.jk.core.JkHandlernested exception is
java.lang.ClassNotFoundException: org.apache.jk.core.JkHandler
javax.management.ReflectionException: Cannot find Class for
org.apache.jk.core.JkHandlernested exception is
java.lang.ClassNotFoundException: org.apache.jk.core.JkHandler
java.lang.ClassNotFoundException: org.apache.jk.core.JkHandler
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:854)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:721)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at
org.apache.commons.modeler.BaseModelMBean.getAttributeClass(BaseModelMBean.j
ava:558)
at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:467)
at
mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanSer
verInterceptor.java:209)
at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer
verInterceptor.java:123)
at
mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanS
erverInterceptor.java:79)
at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer
verInterceptor.java:123)
at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer
verInterceptor.java:123)
at
mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(Cont
extClassLoaderMBeanServerInterceptor.java:144)
at mx4j.server.MBeanServerImpl.invoke(MBeanServerImpl.java:1353)
at org.apache.jk.core.JkHandler.preRegister(JkHandler.java:174)
at
org.apache.jk.server.JkCoyoteHandler.preRegister(JkCoyoteHandler.java:529)
at
org.apache.commons.modeler.BaseModelMBean.preRegister(BaseModelMBean.java:13
97)
at
mx4j.server.interceptor.InvokerMBeanServerInterceptor.registration(InvokerMB
eanServerInterceptor.java:150)
at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(DefaultMB
eanServerInterceptor.java:113)
at
mx4j.server.interceptor.SecurityMBeanServerInterceptor.registration(Security
MBeanServerInterceptor.java:128)
at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(DefaultMB
eanServerInterceptor.java:113)
at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(DefaultMB
eanServerInterceptor.java:113)
at
mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.registratio
n(ContextClassLoaderMBeanServerInterceptor.java:108)
at
mx4j.server.MBeanServerImpl.registerImpl(MBeanServerImpl.java:1051)
at
mx4j.server.MBeanServerImpl.registerMBeanImpl(MBeanServerImpl.java:1002)
at
mx4j.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:978)
at
org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
at
org.apache.commons.modeler.Registry.registerComponent(Registry.java:346)
at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1487)
at
org.apache.catalina.core.StandardService.start(StandardService.java:485)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)

David Schwartz


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Xtags with tomcat 5.016 specific error

2004-04-19 Thread Benedetto Dell'Ariccia
Hi,
this is exactly the error that I receive whit the xtags library used on 
tomcat 5.016

The same code worked correctly with tomcat 4.xx, and work correctly 
still now but just for 5-10 times,
after this period I receive the error and I have to recompile the jsp again.

Is it possible that this jsp is not perfectly comliant with tomcat 5.xx?

Tnx
Benny
  
ERROR-
Servlet.service() for servlet jsp threw exception
org.dom4j.DocumentException: Error on line -1 of document  : Premature 
end of file. Nested exception: Premature end of file.
   at org.dom4j.io.SAXReader.read(SAXReader.java:339)
   at org.dom4j.io.SAXReader.read(SAXReader.java:256)
   at 
org.apache.taglibs.xtags.xpath.ParseTag.doAfterBody(ParseTag.java:138)
  
ERROR-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: IOException: Stream closed error when using custom tags

2004-04-15 Thread Martin Cooper
Without seeing any of your JSP page or the code for your custom tag, it's a
little hard for us to help you out... ;-)

If you could provide more information, we might be able to help.

--
Martin Cooper


shanmugampl [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi All,

I have a custom tag, which iterates through a data and provides a url
 to be included during every iteration. When i display the url as  a
 string, everything works fine. But when i try to include it through the
 jsp:include tag i am getting the following error.

 java.io.IOException: Stream closed

org.apache.jasper.runtime.BodyContentImpl.ensureOpen(BodyContentImpl.java:62
4)


 Once i get this error, reverting back to the old case(displaying the url
 as a string) also throws the same error.
 I cannot figure out the problem.

 Also i have disabled tagpooling. Can anyone help me out on this.

 Thanks
 Shanmugam PL




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



error when i try to use jstl xml tags in a page that doesn't participate in the session

2004-04-14 Thread Aadi Deshpande
Hi,

If i have a page that does not participate in the session ( via  %@ 
page session=false % )

Whenever I try to access some variable ( via either 
x:set/x:out/x:forEach ) i get the following error ( listed at end )

Is this a known issue?  Shouldn't the XPathUtil ignore the session scope 
when it should not be accessing it?

thanks,
-a
java.lang.IllegalStateException: Cannot access session scope in page 
that does not participate in any session
   at 
org.apache.jasper.runtime.PageContextImpl.doGetAttributeNamesInScope(PageContextImpl.java:546)
   at 
org.apache.jasper.runtime.PageContextImpl.getAttributeNamesInScope(PageContextImpl.java:532)
   at 
org.apache.taglibs.standard.tag.common.xml.XPathUtil.getVariableQNames(Unknown 
Source)
   at 
org.apache.taglibs.standard.tag.common.xml.XPathUtil.fillVarStack(Unknown 
Source)
   at 
org.apache.taglibs.standard.tag.common.xml.XPathUtil.selectNodes(Unknown 
Source)
   at 
org.apache.taglibs.standard.tag.common.xml.SetTag.doStartTag(Unknown Source)
   at 
org.apache.jsp.templates.yesterday_005fanswer_005fcallout_jsp._jspx_meth_x_set_0(yesterday_005fanswer_005fcallout_jsp.java:253)
   at 
org.apache.jsp.templates.yesterday_005fanswer_005fcallout_jsp._jspService(yesterday_005fanswer_005fcallout_jsp.java:124)
   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
   at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
   at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
   at 
org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(Unknown 
Source)
   at 
org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(Unknown 
Source)
   at 
org.apache.jsp.promotions.moms_005fservice_005fthanks_jsp._jspx_meth_c_import_1(moms_005fservice_005fthanks_jsp.java:239)
   at 
org.apache.jsp.promotions.moms_005fservice_005fthanks_jsp._jspx_meth_cms_bodyModule_0(moms_005fservice_005fthanks_jsp.java:184)
   at 
org.apache.jsp.promotions.moms_005fservice_005fthanks_jsp._jspx_meth_c_param_0(moms_005fservice_005fthanks_jsp.java:142)
   at 
org.apache.jsp.promotions.moms_005fservice_005fthanks_jsp._jspx_meth_c_import_0(moms_005fservice_005fthanks_jsp.java:100)
   at 
org.apache.jsp.promotions.moms_005fservice_005fthanks_jsp._jspService(moms_005fservice_005fthanks_jsp.java:64)
   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
   at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
   at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
   at clubmom.framework.DisplayServlet.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
   at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
   at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
   at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
   at 
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:712

RE: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3 andj2sdk1.4.1_06

2004-03-17 Thread qwerty7890q
thank you guys for your time.

I'll try to upgrade to Tomcat 4 or 5.


-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 1:43 AM
To: Tag Libraries Users List
Subject: RE: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3
andj2sdk1.4.1_06


On Wed, 17 Mar 2004 [EMAIL PROTECTED] wrote:

 I still have the distribution that I used to install Tomcat. I replaced
the
 jar files with those of the dist and I got the same thing.

 I tried Tomcat 5 and the taglisb-image-exemples is working.

 Upgrading to a newer Tomcat version would be much more dificult than
trying
 to work around the taglibs itself, because I have to upgrade my
applications
 too that are already developped and deployed under tomcat 3.2.3.

Tomcat 3.2.3 really is quite ancient. How about trying Tomcat 3.3.2, which
is the latest version of that era of Tomcat, released recently?

Unless you're doing something rather unusual, you shouldn't have to
upgrade your apps just to use a newer version of Tomcat.

--
Martin Cooper





 -Original Message-
 From: Roy Benjamin [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 16, 2004 1:54 PM
 To: Tag Libraries Users List
 Subject: Re: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3
 andj2sdk1.4.1_06


 Not sure if this is helpful, but I'd be very reluctant
 to adopt a 'replace all methods' approach. Event if it
 were to work, you probably have not actually found the
 problem.

 The first thing I would do is to grab another copy
 (download) of Tomcat and untar it into a temp directory.
 Then I'd check to be sure the various jar files are all
 exactly the same between your failing run-time and the
 fresh download.  I've occasionally had trouble with
 corrupted jar files...

 Then I'd try the same with a later version of Tomcat,
 possibly this might help?  Or try reinstalling Tomcat
 again.

 Roy


 On Tue, 2004-03-16 at 09:07, [EMAIL PROTECTED] wrote:
  Hi !
 
  I'm reposting the emai and hoping that someone could finaly help me to
  resolve the problem.
 
  I installed the image-examples under webapps in Tomcat v3.2.3 using
  j2sdk1.4.1_06 and I when I run http://myserver/image-examples/index.jsp
I
  get an Internal Servlet Error with a root cause:
  java.lang.NoSuchMethodError:
 

javax.servlet.http.HttpServletRequest.getRequestURL()Ljava/lang/StringBuffer
  ;
 
  I think the problem is with the servlet.jar that comes with tomcat
3.2.3.
 
  I made a quick search in google and I found that someone suggested to
  replace all methods
  javax.servlet.http.HttpServletRequest.getRequestURL() with
  javax.servlet.http.HttpUtils.getRequestURL(request)
  http://mail.sourceid.org/pipermail/sso-users/2003-May/000119.html
 
  I don't know if this will work if I do this in taglibs-source code, but
is
  there any work around already available without the need to upgrade my
  tomcat webserver or JDK to a newer version?
 
  thank you for your help.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Internal Servlet Error using Taglibs-image on Tomcat 3.2.3 and j2sdk1.4.1_06

2004-03-16 Thread qwerty7890q
Hi !

I'm reposting the emai and hoping that someone could finaly help me to
resolve the problem.

I installed the image-examples under webapps in Tomcat v3.2.3 using
j2sdk1.4.1_06 and I when I run http://myserver/image-examples/index.jsp I
get an Internal Servlet Error with a root cause:
java.lang.NoSuchMethodError:
javax.servlet.http.HttpServletRequest.getRequestURL()Ljava/lang/StringBuffer
;

I think the problem is with the servlet.jar that comes with tomcat 3.2.3.

I made a quick search in google and I found that someone suggested to
replace all methods
javax.servlet.http.HttpServletRequest.getRequestURL() with
javax.servlet.http.HttpUtils.getRequestURL(request)
http://mail.sourceid.org/pipermail/sso-users/2003-May/000119.html

I don't know if this will work if I do this in taglibs-source code, but is
there any work around already available without the need to upgrade my
tomcat webserver or JDK to a newer version?

thank you for your help.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3 an d j2sdk1.4.1_06

2004-03-16 Thread Felix Velasco
I don't think you can do it without upgrading your Tomcat version.
You're using the 2.2 servlet API, and need at least the 2.3 version of the
api for custom tags, even if you downgrade the code to use the
HttpUtils.getRequestURL deprecated method.

Félix

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 16 March 2004 18:08
To: Tag Libraries Users List
Subject: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3 and
j2sdk1.4.1_06


Hi !

I'm reposting the emai and hoping that someone could finaly help me to
resolve the problem.

I installed the image-examples under webapps in Tomcat v3.2.3 using
j2sdk1.4.1_06 and I when I run http://myserver/image-examples/index.jsp I
get an Internal Servlet Error with a root cause:
java.lang.NoSuchMethodError:
javax.servlet.http.HttpServletRequest.getRequestURL()Ljava/lang/StringBuffer
;

I think the problem is with the servlet.jar that comes with tomcat 3.2.3.

I made a quick search in google and I found that someone suggested to
replace all methods
javax.servlet.http.HttpServletRequest.getRequestURL() with
javax.servlet.http.HttpUtils.getRequestURL(request)
http://mail.sourceid.org/pipermail/sso-users/2003-May/000119.html

I don't know if this will work if I do this in taglibs-source code, but is
there any work around already available without the need to upgrade my
tomcat webserver or JDK to a newer version?

thank you for your help.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3 and j2sdk1.4.1_06

2004-03-16 Thread qwerty7890q
they are not specifying servlet 2.3 in the doc. Theyère sating any jsp 1.1
and Java 1.2
http://jakarta.apache.org/taglibs/sandbox/doc/image-doc/index.html

I cannot upgrade tomcat because many applications are already running on
3.2.2, may be in the future.

Thanks.



-Original Message-
From: Felix Velasco [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 12:18 PM
To: 'Tag Libraries Users List'
Subject: RE: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3
and j2sdk1.4.1_06


I don't think you can do it without upgrading your Tomcat version.
You're using the 2.2 servlet API, and need at least the 2.3 version of the
api for custom tags, even if you downgrade the code to use the
HttpUtils.getRequestURL deprecated method.

Félix

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 16 March 2004 18:08
To: Tag Libraries Users List
Subject: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3 and
j2sdk1.4.1_06


Hi !

I'm reposting the emai and hoping that someone could finaly help me to
resolve the problem.

I installed the image-examples under webapps in Tomcat v3.2.3 using
j2sdk1.4.1_06 and I when I run http://myserver/image-examples/index.jsp I
get an Internal Servlet Error with a root cause:
java.lang.NoSuchMethodError:
javax.servlet.http.HttpServletRequest.getRequestURL()Ljava/lang/StringBuffer
;

I think the problem is with the servlet.jar that comes with tomcat 3.2.3.

I made a quick search in google and I found that someone suggested to
replace all methods
javax.servlet.http.HttpServletRequest.getRequestURL() with
javax.servlet.http.HttpUtils.getRequestURL(request)
http://mail.sourceid.org/pipermail/sso-users/2003-May/000119.html

I don't know if this will work if I do this in taglibs-source code, but is
there any work around already available without the need to upgrade my
tomcat webserver or JDK to a newer version?

thank you for your help.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3 and j2sdk1.4.1_06

2004-03-16 Thread Roy Benjamin
Not sure if this is helpful, but I'd be very reluctant
to adopt a 'replace all methods' approach. Event if it
were to work, you probably have not actually found the
problem.

The first thing I would do is to grab another copy
(download) of Tomcat and untar it into a temp directory.
Then I'd check to be sure the various jar files are all
exactly the same between your failing run-time and the
fresh download.  I've occasionally had trouble with
corrupted jar files...

Then I'd try the same with a later version of Tomcat, 
possibly this might help?  Or try reinstalling Tomcat
again.

Roy


On Tue, 2004-03-16 at 09:07, [EMAIL PROTECTED] wrote:
 Hi !
 
 I'm reposting the emai and hoping that someone could finaly help me to
 resolve the problem.
 
 I installed the image-examples under webapps in Tomcat v3.2.3 using
 j2sdk1.4.1_06 and I when I run http://myserver/image-examples/index.jsp I
 get an Internal Servlet Error with a root cause:
 java.lang.NoSuchMethodError:
 javax.servlet.http.HttpServletRequest.getRequestURL()Ljava/lang/StringBuffer
 ;
 
 I think the problem is with the servlet.jar that comes with tomcat 3.2.3.
 
 I made a quick search in google and I found that someone suggested to
 replace all methods
 javax.servlet.http.HttpServletRequest.getRequestURL() with
 javax.servlet.http.HttpUtils.getRequestURL(request)
 http://mail.sourceid.org/pipermail/sso-users/2003-May/000119.html
 
 I don't know if this will work if I do this in taglibs-source code, but is
 there any work around already available without the need to upgrade my
 tomcat webserver or JDK to a newer version?
 
 thank you for your help.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3 andj2sdk1.4.1_06

2004-03-16 Thread qwerty7890q
I still have the distribution that I used to install Tomcat. I replaced the
jar files with those of the dist and I got the same thing.

I tried Tomcat 5 and the taglisb-image-exemples is working.

Upgrading to a newer Tomcat version would be much more dificult than trying
to work around the taglibs itself, because I have to upgrade my applications
too that are already developped and deployed under tomcat 3.2.3.



-Original Message-
From: Roy Benjamin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 1:54 PM
To: Tag Libraries Users List
Subject: Re: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3
andj2sdk1.4.1_06


Not sure if this is helpful, but I'd be very reluctant
to adopt a 'replace all methods' approach. Event if it
were to work, you probably have not actually found the
problem.

The first thing I would do is to grab another copy
(download) of Tomcat and untar it into a temp directory.
Then I'd check to be sure the various jar files are all
exactly the same between your failing run-time and the
fresh download.  I've occasionally had trouble with
corrupted jar files...

Then I'd try the same with a later version of Tomcat,
possibly this might help?  Or try reinstalling Tomcat
again.

Roy


On Tue, 2004-03-16 at 09:07, [EMAIL PROTECTED] wrote:
 Hi !

 I'm reposting the emai and hoping that someone could finaly help me to
 resolve the problem.

 I installed the image-examples under webapps in Tomcat v3.2.3 using
 j2sdk1.4.1_06 and I when I run http://myserver/image-examples/index.jsp I
 get an Internal Servlet Error with a root cause:
 java.lang.NoSuchMethodError:

javax.servlet.http.HttpServletRequest.getRequestURL()Ljava/lang/StringBuffer
 ;

 I think the problem is with the servlet.jar that comes with tomcat 3.2.3.

 I made a quick search in google and I found that someone suggested to
 replace all methods
 javax.servlet.http.HttpServletRequest.getRequestURL() with
 javax.servlet.http.HttpUtils.getRequestURL(request)
 http://mail.sourceid.org/pipermail/sso-users/2003-May/000119.html

 I don't know if this will work if I do this in taglibs-source code, but is
 there any work around already available without the need to upgrade my
 tomcat webserver or JDK to a newer version?

 thank you for your help.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3 andj2sdk1.4.1_06

2004-03-16 Thread Martin Cooper
On Wed, 17 Mar 2004 [EMAIL PROTECTED] wrote:

 I still have the distribution that I used to install Tomcat. I replaced the
 jar files with those of the dist and I got the same thing.

 I tried Tomcat 5 and the taglisb-image-exemples is working.

 Upgrading to a newer Tomcat version would be much more dificult than trying
 to work around the taglibs itself, because I have to upgrade my applications
 too that are already developped and deployed under tomcat 3.2.3.

Tomcat 3.2.3 really is quite ancient. How about trying Tomcat 3.3.2, which
is the latest version of that era of Tomcat, released recently?

Unless you're doing something rather unusual, you shouldn't have to
upgrade your apps just to use a newer version of Tomcat.

--
Martin Cooper





 -Original Message-
 From: Roy Benjamin [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 16, 2004 1:54 PM
 To: Tag Libraries Users List
 Subject: Re: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3
 andj2sdk1.4.1_06


 Not sure if this is helpful, but I'd be very reluctant
 to adopt a 'replace all methods' approach. Event if it
 were to work, you probably have not actually found the
 problem.

 The first thing I would do is to grab another copy
 (download) of Tomcat and untar it into a temp directory.
 Then I'd check to be sure the various jar files are all
 exactly the same between your failing run-time and the
 fresh download.  I've occasionally had trouble with
 corrupted jar files...

 Then I'd try the same with a later version of Tomcat,
 possibly this might help?  Or try reinstalling Tomcat
 again.

 Roy


 On Tue, 2004-03-16 at 09:07, [EMAIL PROTECTED] wrote:
  Hi !
 
  I'm reposting the emai and hoping that someone could finaly help me to
  resolve the problem.
 
  I installed the image-examples under webapps in Tomcat v3.2.3 using
  j2sdk1.4.1_06 and I when I run http://myserver/image-examples/index.jsp I
  get an Internal Servlet Error with a root cause:
  java.lang.NoSuchMethodError:
 
 javax.servlet.http.HttpServletRequest.getRequestURL()Ljava/lang/StringBuffer
  ;
 
  I think the problem is with the servlet.jar that comes with tomcat 3.2.3.
 
  I made a quick search in google and I found that someone suggested to
  replace all methods
  javax.servlet.http.HttpServletRequest.getRequestURL() with
  javax.servlet.http.HttpUtils.getRequestURL(request)
  http://mail.sourceid.org/pipermail/sso-users/2003-May/000119.html
 
  I don't know if this will work if I do this in taglibs-source code, but is
  there any work around already available without the need to upgrade my
  tomcat webserver or JDK to a newer version?
 
  thank you for your help.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Internal Servlet Error using Taglibs-image on Tomcat 3.2.3 and j2sdk1.4.1_06

2004-03-14 Thread qwerty7890q
Hi !

I installed the image-examples under webapps in Tomcat v3.2.3 using
j2sdk1.4.1_06 and I when I run http://myserver/image-examples/index.jsp I
get an Internal Servlet Error with a root cause:
java.lang.NoSuchMethodError:
javax.servlet.http.HttpServletRequest.getRequestURL()Ljava/lang/StringBuffer
;

I think the problem is with the servlet.jar that comes with tomcat 3.2.3.

I made a quick search in google and I found that someone suggested to
replace all methods
javax.servlet.http.HttpServletRequest.getRequestURL() with
javax.servlet.http.HttpUtils.getRequestURL(request)
http://mail.sourceid.org/pipermail/sso-users/2003-May/000119.html

I don't know if this will work if I do this in taglibs-source code, but is
there any work around already available without the need to upgrade my
tomcat webserver or JDK to a newer version?

thank you for your help.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3 and j2sdk1.4.1_06

2004-03-14 Thread Gaurav Vaish
Do you have the servlet.jar in your classpath?




Cheers,
Gaurav
http://gallery.mastergaurav.net/


- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 15, 2004 11:16
Subject: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3 and
j2sdk1.4.1_06


 Hi !

 I installed the image-examples under webapps in Tomcat v3.2.3 using
 j2sdk1.4.1_06 and I when I run http://myserver/image-examples/index.jsp I
 get an Internal Servlet Error with a root cause:
 java.lang.NoSuchMethodError:

javax.servlet.http.HttpServletRequest.getRequestURL()Ljava/lang/StringBuffer
 ;

 I think the problem is with the servlet.jar that comes with tomcat 3.2.3.

 I made a quick search in google and I found that someone suggested to
 replace all methods
 javax.servlet.http.HttpServletRequest.getRequestURL() with
 javax.servlet.http.HttpUtils.getRequestURL(request)
 http://mail.sourceid.org/pipermail/sso-users/2003-May/000119.html

 I don't know if this will work if I do this in taglibs-source code, but is
 there any work around already available without the need to upgrade my
 tomcat webserver or JDK to a newer version?

 thank you for your help.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3 and j2sdk1.4.1_06

2004-03-14 Thread qwerty7890q
yes

CLASSPATH=...:$TOMCAT_HOME/lib/servlet.jar:...

export ... CLASSPATH ...


-Original Message-
From: Gaurav Vaish [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 1:50 AM
To: Tag Libraries Users List
Subject: Re: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3
and j2sdk1.4.1_06


Do you have the servlet.jar in your classpath?




Cheers,
Gaurav
http://gallery.mastergaurav.net/


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 15, 2004 11:16
Subject: Internal Servlet Error using Taglibs-image on Tomcat 3.2.3 and
j2sdk1.4.1_06


 Hi !

 I installed the image-examples under webapps in Tomcat v3.2.3 using
 j2sdk1.4.1_06 and I when I run http://myserver/image-examples/index.jsp I
 get an Internal Servlet Error with a root cause:
 java.lang.NoSuchMethodError:

javax.servlet.http.HttpServletRequest.getRequestURL()Ljava/lang/StringBuffer
 ;

 I think the problem is with the servlet.jar that comes with tomcat 3.2.3.

 I made a quick search in google and I found that someone suggested to
 replace all methods
 javax.servlet.http.HttpServletRequest.getRequestURL() with
 javax.servlet.http.HttpUtils.getRequestURL(request)
 http://mail.sourceid.org/pipermail/sso-users/2003-May/000119.html

 I don't know if this will work if I do this in taglibs-source code, but is
 there any work around already available without the need to upgrade my
 tomcat webserver or JDK to a newer version?

 thank you for your help.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dbTag Error

2004-02-26 Thread Derek Haidle
Felipe,

You are using the B1 version, I'm using Current. 
Could that be the problem?  I'm going to download the
B1 version and give that a shot.  This is just really
weird.

Any other ideas?

Thanks!
Derek


--- Felipe Leme [EMAIL PROTECTED] wrote:
 On Wed, 2004-02-25 at 16:27, Derek Haidle wrote:
 
  What .jar/class file am I missing and where do I
 get it?!?  
 
 That class should be in dbtags.jar:
 
 [EMAIL PROTECTED]/java/taglibs/dbtags/WEB-INF/lib:
 unzip -t
 /usr/local/Jakarta/taglibs/dbtags-1.0-B1/dbtags.jar
 |grep TEI
 testing:

org/apache/taglibs/dbtags/connection/ConnectionTEI.class
  
 OK
 testing:

org/apache/taglibs/dbtags/preparedstatement/PreparedStatementTEI.class
  
 OK
 testing:

org/apache/taglibs/dbtags/resultset/BaseGetterTEI.class
  
 OK
 testing:

org/apache/taglibs/dbtags/resultset/ResultSetTEI.class
   OK
 testing:

org/apache/taglibs/dbtags/statement/StatementTEI.class
   OK
 
 
 
  Or am I doing something else incorrectly?
 
 You doesn't seems to be doing anything wrong.
 Anyway, what web
 container/server are you using? If it's a JSP 1.2 or
 later container
 (like Tomcat 4.x), I'd suggest that you remove the
 taglib element on
 web.xml and use the taglib's full URI:
 
 %@ taglib
 uri=http://jakarta.apache.org/taglibs/dbtags;
 prefix=sql
 %
 
 
 
 
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dbTag Error

2004-02-26 Thread Felipe Leme
Hi Derek,


On Thu, 2004-02-26 at 14:13, Derek Haidle wrote:

 You are using the B1 version, I'm using Current.

You mean jakarta-taglibs-dbtags-current.tar.gz, from the web site?
That's just a link to B1, which is the latest version anyway.

 Could that be the problem?  I'm going to download the

I don't think so.

 Any other ideas?

That's a weird problem. Maybe your .jar is corrupted - did you try to
unzip it and check if all files are there?


Felipe



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



dbTag Error

2004-02-25 Thread Derek Haidle

Ok, I'm sure this is just a class file that I'm missing, but if I create a JSP page 
with just this line:

%@ taglib uri=/WEB-INF/dbtags.tld prefix=sql %

I get this error:

org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: 
org.apache.taglibs.dbtags.connection.ConnectionTEI
(Rest of the stack removed for brevity.)

root cause:

java.lang.ClassNotFoundException: org.apache.taglibs.dbtags.connection.ConnectionTEI

(Again the rest of the stack removed for brevity.)

I've copied the dbtags.jar to my /lib/ directory, placed the dbtags.tld in the 
/WEB-INF/ directory and put the following reference in my web.xml file:

taglib
  taglib-urihttp://jakarta.apache.org/taglibs/dbtags/taglib-uri
  taglib-location/WEB-INF/dbtags.tld/taglib-location
/taglib

What .jar/class file am I missing and where do I get it?!?  Or am I doing something 
else incorrectly?

Thanks!

Derek

 


-
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

Attribute select has no value error

2004-02-08 Thread Moazam Raja
Hi all, I'm having a very frustrating problem which is probably very 
simple to solve.

I downloaded the jakarta-taglibs-standard-1.0.5 and have installed it 
(the standard.jar file) into my webapps WEB-INF/lib area. I'm using 
Tomcat 4.1.29.

I have a JSP page which is trying to connect to a JDBC mySQL database 
but I keep getting this error when I try to compile:


articles.jsp [19:7] Attribute select has no value
Errors compiling articles.

Here is my source code:

%@ taglib uri=http://java.sun.com/jstl/core; prefix=c %
%@ taglib uri=http://java.sun.com/jstl/sql; prefix=sql %
sql:setDataSource dataSource=dataSource 
driver=org.gjt.mm.mysql.Driver url=jdbc:mysql://localhost/moazam 
user=user password=pass /

c:set var=browser value=${header['User-Agent']}/
c:out value=${browser}/
brbr
sql:query var=articles dataSource=${dataSource}
select * from Articles
/sql:query
table
c:forEach var=row items=${articles.row}
   tr
   tdc:out value=${articles.ID} //td
   tdc:out value=${articles.Author} //td
   tdc:out value=${articles.Title} //td
   tdc:out value=${articles.Topic} //td
   /tr
/c:forEach
/table

Now...the error refers to [19:7] and line 19 is:

select * from Articles

I know that my taglib is setup correctly because if I comment out all 
the SQL stuff, the Core taglib which outputs the user-agent works fine.

I've searched with Google for this error and can not find anything...

Any ideas?

Thanks.

-Moazam

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Attribute select has no value error

2004-02-08 Thread Hassan Schroeder
Moazam Raja wrote:

I have a JSP page which is trying to connect to a JDBC mySQL database 
but I keep getting this error when I try to compile:


articles.jsp [19:7] Attribute select has no value
Errors compiling articles.


sql:query var=articles dataSource=${dataSource}
select * from Articles
/sql:query
You SQL statement goes in the *body* of the tag:

  sql:query var=articles dataSource=${dataSource}

  select * from Articles

  /sql:query

HTH,
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Attribute select has no value error

2004-02-08 Thread Moazam Raja
I found the solution...I had standard.jar in my WEB-INF/lib but I did 
not have jstl.jar in there.

-Moazam

Moazam Raja wrote:

All,

I changed the SQL statement syntax, but I get this error now when I 
try to compile..

articles.jsp [-1:-1]
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
   ..
Do I not have the mySQL JDBC driver in the right place?

-Moazam

Hassan Schroeder wrote:

You SQL statement goes in the *body* of the tag:

  sql:query var=articles dataSource=${dataSource}

  select * from Articles

  /sql:query

HTH,




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Error in String Tag Library Doc

2004-01-23 Thread James Watkin
There's an error in the Jakarta Project: String Tag Library Version: 1.0.1 doc:

http://jakarta.apache.org/taglibs/doc/string-doc/string-1.0.1/index.html

In the Configuration section, the line:

taglib-location/WEB-INF/string.tld/taglib-location

should read:

taglib-location/WEB-INF/taglibs-string.tld/taglib-location

- Jim

__
James Watkin
ACIS Software Development
The Anderson School at UCLA
[EMAIL PROTECTED]
Voice: 1-310-825-5030
  Fax: 1-310-825-4835
__ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


c:import Not Throwing Error For Bad In-Context-JSP url Attribute

2004-01-22 Thread James Watkin
There seems to be an inconsistent behavior in the way c:import throws 
errors for non-existent files. When the c:import url attribute is an 
in-context-jsp (like pageHeader.jsp) that doesn't exist, no error is 
thrown. However, when the url attribute is a file: that doesn't exist, an 
error is thrown. Can anyone confirm, or explain this behavior?

I'm using the following pattern:

c:catch var=importError
c:import url=${param.pageURL}/
/c:catch
c:if test=${not empty importError}
c:out value=${importError.message}/
/c:if
Thank you.

- Jim

__
James Watkin
ACIS Software Development
The Anderson School at UCLA
[EMAIL PROTECTED]
Voice: 1-310-825-5030
  Fax: 1-310-825-4835
__ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: c:import Not Throwing Error For Bad In-Context-JSP url Attribute

2004-01-22 Thread Kris Schneider
I think this is addressed in the 7.4 c:import section of the JSTL 1.0 
Spec. There's an explanation of how errors are handled for internal vs. 
external resources. Give it a look and see if it helps.

James Watkin wrote:

There seems to be an inconsistent behavior in the way c:import throws 
errors for non-existent files. When the c:import url attribute is an 
in-context-jsp (like pageHeader.jsp) that doesn't exist, no error is 
thrown. However, when the url attribute is a file: that doesn't exist, 
an error is thrown. Can anyone confirm, or explain this behavior?

I'm using the following pattern:

c:catch var=importError
c:import url=${param.pageURL}/
/c:catch
c:if test=${not empty importError}
c:out value=${importError.message}/
/c:if
Thank you.

- Jim

__
James Watkin
ACIS Software Development
The Anderson School at UCLA
[EMAIL PROTECTED]
Voice: 1-310-825-5030
  Fax: 1-310-825-4835
__
--
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: c:import Not Throwing Error For Bad In-Context-JSP url Attribute

2004-01-22 Thread James Watkin
I'm not an expert in this area, but after looking at the spec:
http://jcp.org/aboutJava/communityprocess/final/jsr052/index.html
it seems like a JspException should be thrown, even for internal URLs. It's 
quite possible that I'm overlooking something though.

- Jim

At 05:50 PM 1/22/2004 -0500, you wrote:
I think this is addressed in the 7.4 c:import section of the JSTL 1.0 
Spec. There's an explanation of how errors are handled for internal vs. 
external resources. Give it a look and see if it helps.

James Watkin wrote:

There seems to be an inconsistent behavior in the way c:import throws 
errors for non-existent files. When the c:import url attribute is an 
in-context-jsp (like pageHeader.jsp) that doesn't exist, no error is 
thrown. However, when the url attribute is a file: that doesn't exist, 
an error is thrown. Can anyone confirm, or explain this behavior?
I'm using the following pattern:
c:catch var=importError
c:import url=${param.pageURL}/
/c:catch
c:if test=${not empty importError}
c:out value=${importError.message}/
/c:if
Thank you.
- Jim
__
James Watkin
ACIS Software Development
The Anderson School at UCLA
[EMAIL PROTECTED]
Voice: 1-310-825-5030
  Fax: 1-310-825-4835
__
--
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

__
James Watkin
ACIS Software Development
The Anderson School at UCLA
[EMAIL PROTECTED]
Voice: 1-310-825-5030
  Fax: 1-310-825-4835
__ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: c:import Not Throwing Error For Bad In-Context-JSP url Attribute

2004-01-22 Thread Kris Schneider
For an internal URL, try the equivalent JSP:

%
String path = request.getParameter(pageURL);
RequestDispatcher rd = request.getRequestDispatcher(path);
rd.include(request, response);
%
It seems to behave the same way. With TC 4.1.29, I don't see any log 
info about the include, but on WLS 8.1.2 I get the following:

...Included resource or file /foo.jsp not found from requested 
resource /import.jsp.

No exceptions are thrown, however, just an error logged.

James Watkin wrote:

I'm not an expert in this area, but after looking at the spec:
http://jcp.org/aboutJava/communityprocess/final/jsr052/index.html
it seems like a JspException should be thrown, even for internal URLs. 
It's quite possible that I'm overlooking something though.

- Jim

At 05:50 PM 1/22/2004 -0500, you wrote:

I think this is addressed in the 7.4 c:import section of the JSTL 
1.0 Spec. There's an explanation of how errors are handled for 
internal vs. external resources. Give it a look and see if it helps.

James Watkin wrote:

There seems to be an inconsistent behavior in the way c:import 
throws errors for non-existent files. When the c:import url 
attribute is an in-context-jsp (like pageHeader.jsp) that doesn't 
exist, no error is thrown. However, when the url attribute is a 
file: that doesn't exist, an error is thrown. Can anyone confirm, 
or explain this behavior?
I'm using the following pattern:
c:catch var=importError
c:import url=${param.pageURL}/
/c:catch
c:if test=${not empty importError}
c:out value=${importError.message}/
/c:if
Thank you.
- Jim
__
James Watkin
ACIS Software Development
The Anderson School at UCLA
[EMAIL PROTECTED]
Voice: 1-310-825-5030
  Fax: 1-310-825-4835
__


--
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

__
James Watkin
ACIS Software Development
The Anderson School at UCLA
[EMAIL PROTECTED]
Voice: 1-310-825-5030
  Fax: 1-310-825-4835
__
--
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


error 401 with io tag

2003-11-14 Thread Ehizogie
Hello Everyone,
I'm having a problem with security when I try to access a protected
resource using the io:request / tag. 
Im using the io tag to execute an http command on the default manager
application of tomcat 4.1.24 from within another web application sitting
on the same server.

Ive deployed the io taglibs sample application on the same server as
the tomcat manager installation so that they have the following context
paths.

http://localhost:8080/manager
http://localhost:8080/io-examples

Within the io-examples context I've modified the Jakarta.jsp sample page
to persecute a command on the default tomcat manager application.

My code is as follows:

[EMAIL PROTECTED] uri=http://jakarta.apache.org/taglibs/io-1.0; prefix=io %

io:request url=http://localhost:8082/manager/list/  


Ive set up tomcat 4.1.24 to execute single sign on, and implemented the
same role for both the io-examples application and the manager
application and have confirmed that using that role I have access to
both applications.
This way once I Log into either application I dont need to Login to the
other application.

However whenever I execute the page it throws an http: 401 security
access error.
Does anyone have an Idea on how I can work around this..?

Im running windows 2k server , with j2sdk1.4.0 b ,tomcat 4.1.24.


Ehizogie Binitie
Chief Technology Strategist
Rancard Solutions Ltd.
www.rancard.solutions.com
4th Floor GCB Towers, Kwame Nkrumah Circle
Accra Ghana

E-mail: [EMAIL PROTECTED]
Office: ++ 233-21-246155
Mobile: ++233-20-211-2373
Fax:   ++233-21-246146

 

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error in tld

2003-09-22 Thread Martin van Dijken
Try putting the DOCTYPE on one line. The white-space might confuse the xmlparser.

Martin

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: vrijdag 19 september 2003 14:32
 To: Tag Libraries Users List
 Subject: Error in tld
 
 
 
 Now Iam getting this error
 
 The processing instruction must begin with the name of the target
  
 
 Ananth R
 Project Associate
 Electronic Enterprise Laboratory
 Computer Science and Automation
 Indian Institute Of Science
 Bangalore
 
 -
 Phone:(off) 2932368-111
   (cdma)9844140340 
 
 e-mail:[EMAIL PROTECTED]
[EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Grtting an Error while using forEach tag

2003-07-05 Thread shanmugampl
Dear All,

 I am using forEach tag for iterating over an ArrayList present in 
the session scope. The code I have used is

core:forEach var=image items=${TREE-IMAGES}
  --
  --
/core:forEach
 When i execute this page I get the following error

An error occurred while evaluating custom action attribute items with 
value ${TREE-IMAGES}: Attempt to coerce a value of type 
java.util.ArrayList to type java.lang.Long (null

 But if I get the value and store it in a different name the forEach 
tag works properly. The changed code is

%
java.util.ArrayList list = 
(java.util.ArrayList)pageContext.findAttribute(TREE-IMAGES);
session.setAttribute(IMAGES,list); %
core:forEach var=image items=IMAGES
   -
   -
/core:forEach

 This works properly. Will there be a problem if there is a - in the 
variabe name or have i misunderstood something.

Thanks
Shanmugam PL
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


The Custom Tag Library Extension for Dreamweaver UltraDev (CTLX) error!

2003-06-20 Thread niksa_os
Hi.

I have Apache Tomcat 5.0.2, jdk 1.4.1, Dreamweaver MX ver.6 and
jakarta-taglibs-ultradev4-20030615.zip.

I follow The Custom Tag Library Extension For UltraDev tutorial.
-http://jakarta.apache.org/taglibs/doc/ultradev4-doc/index.html

I can start Live Data but I don't have anything in Use a Custom Tag
Library and in Edit Custom Tags?
In Use a Custom Tag Library - Select Tag to Insert I only have No Tag
Library in Use.

I'm stuck in Tutorial section: Open the extension's Use a Custom Tag
Library floater by selecting Window|Use Custom .

Anybody can help!

Thanks.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: The Custom Tag Library Extension for Dreamweaver UltraDev (CTLX) error!

2003-06-20 Thread niksa_os
I try this with Tomcat 4.1.12 and Tomcat 5. I don't know why but I can't
start DW extension for Tag Lib.

It doesn't work with Tomcat 4 but..

.. I can make web site in DW, but when I click on the green down arrow
to get the entire site I get this error:
An error occured - cannot get struts.jar. The operation completed
successfully. And I click OK.
I get web site and I can start Live Data.
Then I open Use a Custom Tag Library where I can see 3 struts tld but when
I click Use Tag Library, I get Tag Library struts not found on server.

Where I need to put that?


Output:

Apache Tomcat/4.0.3
tld = null
tld = jndi:/localhost/TLDParser/tlds/struts-bean.tld
You entered jndi:/localhost/TLDParser/tlds/struts-bean.tld
java.net.UnknownHostException: java.sun.com
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
at
org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2723)
at
org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1154)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488)
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:1
79)
at
org.apache.taglibs.tools.ultradev.ctlx.TLDParser.parseTLD(TLDParser.java:172
)
at
org.apache.taglibs.tools.ultradev.ctlx.TLDParser.doGet(TLDParser.java:150)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
Filt
erChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.
java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:2
43)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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.ja
va:1
90)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java
:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012
)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:536)



 Hi.

 I have Apache Tomcat 5.0.2, jdk 1.4.1, Dreamweaver MX ver.6 and
 jakarta-taglibs-ultradev4-20030615.zip.

 I follow The Custom Tag Library Extension For UltraDev tutorial.
 -http://jakarta.apache.org/taglibs/doc/ultradev4-doc/index.html

 I can start Live Data but I don't have anything in Use a Custom Tag
 Library and in Edit Custom Tags?
 In Use a Custom Tag Library - Select Tag to Insert I only have No Tag
 Library in Use.

 I'm stuck in Tutorial section: Open the extension's Use a Custom Tag
 Library floater by selecting Window|Use Custom .

 Anybody can help!

 Thanks

Re: The Custom Tag Library Extension for Dreamweaver UltraDev (CTLX) error!

2003-06-20 Thread Michael Duffy

Sounds like you need to download the Struts JAR from
http://jakarta.apache.org/struts/ and put it in your
WEB-INF/lib.

--- niksa_os [EMAIL PROTECTED] wrote:
 I try this with Tomcat 4.1.12 and Tomcat 5. I don't
 know why but I can't
 start DW extension for Tag Lib.
 
 It doesn't work with Tomcat 4 but..
 
 .. I can make web site in DW, but when I click
 on the green down arrow
 to get the entire site I get this error:
 An error occured - cannot get struts.jar. The
 operation completed
 successfully. And I click OK.
 I get web site and I can start Live Data.
 Then I open Use a Custom Tag Library where I can
 see 3 struts tld but when
 I click Use Tag Library, I get Tag Library struts
 not found on server.
 
 Where I need to put that?
 
 
 Output:
 
 Apache Tomcat/4.0.3
 tld = null
 tld = jndi:/localhost/TLDParser/tlds/struts-bean.tld
 You entered
 jndi:/localhost/TLDParser/tlds/struts-bean.tld
 java.net.UnknownHostException: java.sun.com
 at

org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
 at

org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2723)
 at

org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1154)
 at

org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488)
 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:1
 79)
 at

org.apache.taglibs.tools.ultradev.ctlx.TLDParser.parseTLD(TLDParser.java:172
 )
 at

org.apache.taglibs.tools.ultradev.ctlx.TLDParser.doGet(TLDParser.java:150)
 at

javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 Filt
 erChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.
 java:193)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:2
 43)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 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.ja
 va:1
 90)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
 46)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 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:2343)
 at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
 )
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
 java
 :170)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
 )
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 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:5
 66)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
 1012
 )
 at

org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
 )
 at java.lang.Thread.run(Thread.java:536)
 
 
 
  Hi.
 
  I have Apache Tomcat 5.0.2, jdk 1.4.1, Dreamweaver
 MX ver.6 and
  jakarta-taglibs-ultradev4-20030615.zip.
 
  I follow The Custom Tag Library Extension For
 UltraDev tutorial.
 

-http://jakarta.apache.org/taglibs/doc/ultradev4-doc/index.html
 
  I can start Live Data but I don't have anything in
 Use a Custom Tag
  Library and in Edit Custom

Re: The Custom Tag Library Extension for Dreamweaver UltraDev (CTLX) error!

2003-06-20 Thread niksa_os
I have struts.jar in my WEB-INF/lib. I check this first.

I try with Tomcat 4.0.6 and I get error that useTagLib.js has error in line
256, I think.
This line was last line in file that return true.

Very strange. Every Tomcat version different error.

Anyone?



 Sounds like you need to download the Struts JAR from
 http://jakarta.apache.org/struts/ and put it in your
 WEB-INF/lib.

 --- niksa_os [EMAIL PROTECTED] wrote:
  I try this with Tomcat 4.1.12 and Tomcat 5. I don't
  know why but I can't
  start DW extension for Tag Lib.
 
  It doesn't work with Tomcat 4 but..
 
  .. I can make web site in DW, but when I click
  on the green down arrow
  to get the entire site I get this error:
  An error occured - cannot get struts.jar. The
  operation completed
  successfully. And I click OK.
  I get web site and I can start Live Data.
  Then I open Use a Custom Tag Library where I can
  see 3 struts tld but when
  I click Use Tag Library, I get Tag Library struts
  not found on server.
 
  Where I need to put that?
 
 
  Output:
 
  Apache Tomcat/4.0.3
  tld = null
  tld = jndi:/localhost/TLDParser/tlds/struts-bean.tld
  You entered
  jndi:/localhost/TLDParser/tlds/struts-bean.tld
  java.net.UnknownHostException: java.sun.com
  at
 
 org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
  at
 

org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2723)
  at
 
 org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1154)
  at
 
 org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488)
  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:1
  79)
  at
 

org.apache.taglibs.tools.ultradev.ctlx.TLDParser.parseTLD(TLDParser.java:172
  )
  at
 
 org.apache.taglibs.tools.ultradev.ctlx.TLDParser.doGet(TLDParser.java:150)
  at
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
  Filt
  erChain.java:247)
  at
 

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
  ain.
  java:193)
  at
 

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
  va:2
  43)
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
  66)
  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.ja
  va:1
  90)
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
  66)
  at
 

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
  46)
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
  64)
  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:2343)
  at
 

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
  )
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
  66)
  at
 

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
  java
  :170)
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
  64)
  at
 

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
  )
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
  64)
  at
 
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
  64)
  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:5
  66)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at
 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 

org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
  1012
  )
  at
 

org.apache.catalina.connector.http.HttpProcessor.run

JSTL error

2003-03-14 Thread mailinglist
Hi,

I installed Sun jwsdp-1_1 and copied jstl-examples.war in Tomcat 4.1.18
webapps (not the one shipped with Sun jwsdp) but I get an error when I try
the examples:

HTTP 500
javax.servlet.ServletException: Cannot inherit from final class
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
etc...

Is there a problem with jstl-1.0.3 and Tomcat 4.1.x ?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSTL error

2003-03-14 Thread Pierre Delisle


mailinglist wrote:
Hi,

I installed Sun jwsdp-1_1 and copied jstl-examples.war in Tomcat 4.1.18
webapps (not the one shipped with Sun jwsdp) but I get an error when I try
the examples:
HTTP 500
javax.servlet.ServletException: Cannot inherit from final class
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
etc...
Is there a problem with jstl-1.0.3 and Tomcat 4.1.x ?
No. It is xerces that's causing the problem.

Simply replace xercesImpl.jar located in tomcat-4.1.18/common/endorsed with
xercesImpl.jar found in jwsdp-1.1/jaxp-1.2.2/lib/endorsed.
Everything should then be back to normal.
-- Pierre



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Error with c:forEach JSTL tag

2003-03-12 Thread Chen, Gin
I'm kind of guessing here but I believe that you have a corrupted archive
file.
Go thru all the jar files that you unpacked for Taglibs and try to open them
up individually.
In particular try: C:\jasic\JRockitVM\jre\lib\i18n.jar

By the way, once you get this working you might not see what you want since
you have:
 td class=fieldContent${item['firstName']}/td
 td class=fieldContent${item['lastName']}/td
Those need to be wrapped in c:out tags unless ur using JSP 2.0
-Tim

-Original Message-
From: Mike Deegan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 5:11 PM
To: [EMAIL PROTECTED]
Subject: Error with c:forEach JSTL tag


I am having problems implementing the c:forEach JSTL tag.
I am using Resin 3.0.

I get the following error (see below) when trying to display following JSP
code
... displays ok without the c:forEach tag

===

%@ page language=java %
%@ taglib uri=jstl/fmt prefix=fmt %
%@ taglib uri=jstl/x prefix=x %
%@ taglib uri=jstl/c prefix=c %
fmt:setLocale value=en /
fmt:setBundle basename=application /
table align=center border=2 cellspacing=2 cellpadding=2
width=80%
  tr
   td class=fieldNamefmt:message
key=nameLst.colheader.firstName//td
   td class=fieldNamefmt:message
key=nameLst.colheader.lastName//td
  /tr
  c:forEach var=item items=${requestScope.myNameBean}
tr
 td class=fieldContent${item['firstName']}/td
 td class=fieldContent${item['lastName']}/td
/tr
  /c:forEach
/table

===

Can anyone offer suggestions on where to start looking to solve this
problem.
I have searched in vain for similar problems and solutions.

Regards
Mike


 [ServletException in:/portlets/NameLst.jsp]
com.caucho.java.JavaCompileException:
C:/jasic/resin/webapps/webCMS/WEB-INF/work/_portlets/_namelst__jsp.java:0:0:
0:0: Semantic Warning: The file classes is not a valid directory.
C:/jasic/resin/webapps/webCMS/WEB-INF/work/_portlets/_namelst__jsp.java:0:0:
0:0: Semantic Warning: The file C:\jasic\JRockitVM\jre\classes is not a
valid directory.
C:/jasic/resin/webapps/webCMS/WEB-INF/work/_portlets/_namelst__jsp.java:0:0:
0:0: Semantic Warning: The file C:\jasic\JRockitVM\jre\lib\i18n.jar does
not exist or else is not a valid zip file. /portlets/NameLst.jsp:1: Semantic
Error: In type ForEachTag, the checked exception JspTagException
specified by method java.lang.Object getCurrent() throws
javax.servlet.jsp.JspTagException;, inherited from type
javax.servlet.jsp.jstl.core.LoopTagSupport, is not assignable to any
exception in the throws clause of the overridden method java.lang.Object
getCurrent(); declared in type javax.servlet.jsp.jstl.core.LoopTag.
/portlets/NameLst.jsp:1: Semantic Error: In type ForEachTag, the method
java.lang.Object getLoopStatus() throws
javax.servlet.jsp.JspTagException;, inherited from type
javax.servlet.jsp.jstl.core.LoopTagSupport, does not have the same return
type as the method javax.servlet.jsp.jstl.core.LoopTagStatus
getLoopStatus();, inherited from type javax.servlet.jsp.jstl.core.LoopTag.
/portlets/NameLst.jsp:1: Semantic Error: In type ForEachTag, the checked
exception JspTagException specified by method java.lang.Object
getLoopStatus() throws javax.servlet.jsp.JspTagException;, inherited from
type javax.servlet.jsp.jstl.core.LoopTagSupport, is not assignable to any
exception in the throws clause of the overridden method
javax.servlet.jsp.jstl.core.LoopTagStatus getLoopStatus(); declared in
type javax.servlet.jsp.jstl.core.LoopTag. /portlets/NameLst.jsp:18:
Semantic Error: A candidate for type ForEachTag was found, but it is
invalid and needs to be fixed before this type will successfully compile

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >