Re: Problem installing JSPTL under TC4.0b7 -- never mind

2001-09-06 Thread Dmitri Plotnikov

I found the problem myself.  Turned out I was supposed to specify the
expression evaluator first.

In order to diagnose this, I had to rebuild jasper with my system.outs in
it.  You gotta agree with me that the error message was not particularly
descriptive.

Thanks,

- Dmitri Plotnikov
[EMAIL PROTECTED]

- Original Message -
From: Dmitri Plotnikov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 05, 2001 8:13 PM
Subject: Problem installing JSPTL under TC4.0b7


 I have been trying to get JSPTL to run.  The docs say that I should be
using
 TC4.0b6, but that one is no longer available. So I decided to try TC4.0b7.

 I believe I followed the installation instructions to the letter:

 1. I made sure TC4.0b7 was running fine - I ran examples, including the
one
 using a taglib
 2. I copied jsptl-jx.tld into WEB-INF/jsp
 3. I copied jsptl.jar into WEB-INF/lib
 4. I updated web.xml accordingly
 5. My JSP looks like this:
  %@ taglib uri=http://java.sun.com/jsptl/ea/jx; prefix=jx %
  html
  body
  jx:expr value=1/
  /body
  /html

 When I hit this JSP, I got the following exception:

 org.apache.jasper.JasperException: TagLibraryValidator in jx library -
 invalid page: SAXException: java.util.EmptyStackException
  at

org.apache.jasper.compiler.JspParseEventListener.validate(JspParseEventListe
 ner.java:1127)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:219)
  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:528)
  at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
 rvlet.java:176)
  at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:188)
  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458)
  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:243)
  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:215)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
  at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
 .java:472)
  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:2314)
  at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
 )
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
  at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
  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
 :163)
  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:
 1000)
  at

org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1093
 )
  at java.lang.Thread.run(Thread.java:484)


 I am sure it is my own fault, I am just don't know what it is that I did
 wrong.

 Please, help.  As I am not currently a subscriber of this newsgroup, I
would
 appreciate it if you CC'ed [EMAIL PROTECTED] on your response.

 Thank you in advance,

 - Dmitri Plotnikov
 [EMAIL PROTECTED]





XTags: Usage of org.dom4j.Documents?

2001-09-06 Thread Manuel Tromm

Hi folks,

I've got a question about using XTags:

The common way to use the XTags, is to parse an XML document 
from somewhere by using the xtags:parse-Tag.
After the XML-Code has been parsed, it can be accessed
by the different X-Tags...

Sometimes I have to use the XML-Source
(that is needed as input for XTags) twice or more or
at completely different locations of my web-application.
For this reason I've added the XML-Code to a cache.
The problem is now, that every time when the XTags-JSP is
requested, the XML-Input has to be parsed by the XTags again.
That means a lack of performance. 

Now my question: Because the XTags are built on top
of the dom4j, I'd like to know if there is any way to use
an (already parsed!) org.dom4j.Document as input for
XTags, so that I don't have to parse XML-Sources twice?
If yet there is no way, I'd like to ask the developers
to provide an appropriate Tag, because I think it would be
also quite helpful for other users.

Does someone know a solution?


Regards,
Manuel Tromm



Re: Problem installing JSPTL under TC4.0b7 -- never mind

2001-09-06 Thread Shawn Bayern

On Wed, 5 Sep 2001, Dmitri Plotnikov wrote:

 In order to diagnose this, I had to rebuild jasper with my system.outs
 in it.  You gotta agree with me that the error message was not
 particularly descriptive.

I do. :-)

Part of the reason this wasn't diagnosed well is that the
jx:expressionLanguage tag and the whole idea of switching between
expression languages is most likely going to be a temporary one.

Of course, that's just an excuse.  But my point is that the ugliness will
probably go away soon anyway.

Shawn Bayern
JSPTL Reference-implementation Lead




Re: Taglibs under JDK 1.1

2001-09-06 Thread Morgan Delagrange

DBTags probably does not support JDK 1.1.  We haven't made any explicit
attempt to do so, and there are probably Java 2 collections at the least.

- Original Message -
From: Alexander Anderson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 05, 2001 6:38 PM
Subject: Taglibs under JDK 1.1


 Greetings,

 May I ask if Taglibs, more specifically DBTags, has any
 dependencies on Java 2 features? I would like to know because I get
 NoClassDefFoundError when trying dbtags-examples.

 I am using Jakarta Tomcat 3.2.1 with JDK 1.1.8.

 By the way, here's the exact error message:

 #v+
   Error: 500

 Location: /dbtags-examples/jdbc.jsp

Internal Servlet Error:
 javax.servlet.ServletException
 at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:
 404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:37
 2)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager
 .java:797)
 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:74
 3)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnecti
 on(HttpConnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java
 :416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.jav
 a:498)
 at java.lang.Thread.run(Thread.java)

Root cause:
 java.lang.NoClassDefFoundError
 #v-


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com