Problem with Tomcat 3.2beta

2000-11-09 Thread S Ramakrishnan


Hi -



I am using Tomcat 3.2 beta with JDK1.3

on a NT4.0 workstation.



Loading a trivial JSP file causes

the exception given below.



What is causing this error?



Thanks,



Rk







java.lang.NullPointerException

at java.io.File.(File.java:185)

at 
org.apache.jasper.compiler.JspCompiler.isOutDated(JspCompiler.java:307
)

at 
org.apache.jasper.compiler.JspCompiler.(JspCompiler.java:99)

at 
org.apache.jasper.JspEngineContext.createCompiler(JspEngineContext.jav
a:317)

at 
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:450)

at 
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:1
46)

at 
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:424)

at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary
(JspServlet.java:152)

at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServ
let.java:164)

at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:30
9)

at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)

at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:38
7)

at org.apache.tomcat.core.Handler.service(Handler.java:263)

at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)

at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.j
ava:786)

at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)

at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpConnectionHandler.java:210)

at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:4
07)

at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:
498)

at java.lang.Thread.run(Thread.java:479)


---
S  Ramakrishnan,  Cisco  Systems  Inc.,  San  Jose,  Ca


Re: Problem with Tomcat 3.2beta

2000-11-10 Thread S Ramakrishnan

Yes the cases match (at any rate, its an NT
system).

The file is under $TOMCAT_HOME\webapps\ROOT
and is named A.JSP.

The JSP file is trivial:

  
   Bajji 
  
 
 <% int x = 5 ; %>
 <% out.println("X = " + x); %>
 
  
  

The URL I request is http://localhost:8080/webapps/ROOT/A.JSP

Could it be due to JDK version?
Does Tomcat3.2beta not work
with JDK1.3?

Rk

- Original Message -
From: "Christian Mallwitz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "'S Ramakrishnan'" <[EMAIL PROTECTED]>
Sent: Friday, November 10, 2000 1:02 AM
Subject: RE: Problem with Tomcat 3.2beta


> Can you check that upper/lowercase in your URL is the same as in your file
> systems ...
> Christian
> --
> Christian Mallwitz INTERSHOP Communications Germany
> Senior Software Engineerphone: +49 3641 894 334
>
>
>
> -Original Message-
> From: S Ramakrishnan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 10, 2000 07:28
> To: [EMAIL PROTECTED]
> Subject: Problem with Tomcat 3.2beta
>
>
> Hi -
>
> I am using Tomcat 3.2 beta with JDK1.3
> on a NT4.0 workstation.
>
> Loading a trivial JSP file causes
> the exception given below.
>
> What is causing this error?
>
> Thanks,
>
> Rk
>
>
>
> java.lang.NullPointerException
> at java.io.File.(File.java:185)
> at
> org.apache.jasper.compiler.JspCompiler.isOutDated(JspCompiler.java:307
> )
> at
> org.apache.jasper.compiler.JspCompiler.(JspCompiler.java:99)
> at
> org.apache.jasper.JspEngineContext.createCompiler(JspEngineContext.jav
> a:317)
> at
> org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:450)
> at
> org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:1
> 46)
> at
> org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:424)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary
> (JspServlet.java:152)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServ
> let.java:164)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:30
> 9)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:38
> 7)
> at org.apache.tomcat.core.Handler.service(Handler.java:263)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.j
> ava:786)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
> (HttpConnectionHandler.java:210)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:4
> 07)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:
> 498)
> at java.lang.Thread.run(Thread.java:479)
>
> ---
> S Ramakrishnan, Cisco Systems Inc., San Jose, Ca
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Thin Client Charting

2000-11-13 Thread S Ramakrishnan

Hi -

Instead of running a charting widget
on the browser, I'd like to run the
chart JavaBean on the web server and
export the bitmap images periodically
to the browser via HTML as follows:

 start charting ===> 
   < bitmap/gif =   

Is it possible to implement this
scheme with JSP? What are the
problems with approach?

Rk

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Can someone fix this please?

2000-12-19 Thread S Ramakrishnan

Hi -

I have so far received over 200 pieces of email from
[EMAIL PROTECTED]

I have contacted [EMAIL PROTECTED]
and the kai.claussen also.

It must be easy for the administrators of this list
to unsubscribe [EMAIL PROTECTED]
particularly in view of the fact that the bounced message says:

   " X.400 Status769
 Explanation User Kai Claussen/FT/DCAG/DCX@WK-EMEA2 not listed in
public
 Name & Address Book"

Why is this being allowed to continue?

Pl help.

Thanks,

Rk
x77309
- Original Message -
To: "S Ramakrishnan" <[EMAIL PROTECTED]>
From: <[EMAIL PROTECTED]>
Sent: Tuesday, December 19, 2000 2:43 PM
Subject: Re: Webservers/Servlet Contianers on NT


   Status Distribution December 19, 2000 23:41:08


The message regarding "Re: Webservers/Servlet Contianers on NT" sent on
December 19, 2000 23:41:08 was sent by

Status Recipient
  TypeTo
  Native Name [EMAIL PROTECTED]
  Foreign Native Name [EMAIL PROTECTED]\n\n\nSMTP



Recipients

Status Reporters
  TypeFrom
  Name Domain LOTUS
  Native Name CN=Kai Claussen/OU=FT/OU=DCAG/O=DCX@WK-EMEA2
  Foreign Native Name CN=Kai
Claussen/OU=FT/OU=DCAG/O=DCX\nWK-EMEA2\n\n
  OrganizationDCX
  Org Unit 1  DCAG
  Org Unit 2  FT
  Last Name   Claussen
  First Name  Kai



Status  769
Explanation Invalid recipient

X.400 Status769
Explanation User Kai Claussen/FT/DCAG/DCX@WK-EMEA2 not listed in public
Name & Address Book


---
S Ramakrishnan, Cisco Systems Inc., San Jose, Ca

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: here we go again.

2001-01-15 Thread S Ramakrishnan

I have been in various mailing lists for the past 12 years
on the Internet myself. Most of the mailing lists come
with a FAQ that describes:

  1. the answers to the most commonly raised questions
  2. topics that *seem* related to the mailing list but that
  do not belong in  the list
  3. methods to get off the mailing list

All the three help reduce the traffic on the list.

A user of the list is expected to check the relevance of
her question to the list (#3), then check to find the
answer to her question in the FAQ (#1) and then finally
decide to post on the list, if the answer is still not clear
and if the question is relevant to the forum.

May we adopt this method before someone posts a question
on HTTP or TCP/IP (closely related to web programming) to
this list?

Thanks,

Rk

 > From: "Daniel Lynn" <[EMAIL PROTECTED]>
 > Sent: Tuesday, January 16, 2001 12:45 AM

 > > Now, for those of you who don't believe me, I look forward to the
day
 > > when your company hands you a set of software to debug that is
written
 > > in 4 languages you don't know and has no documentation and is
running on
 > > a server that you have never used which runs on a computer with an
 > > operating system you aren' familiar with and then you have two
choices:
 > > 1) log onto all of these lists and get told how stupid you are for
 > > asking dumb questions or 2) ask on here and get told how stupid you
are
 > > for asking on the wrong list.

---
S Ramakrishnan, Cisco Systems Inc., San  Jose, Ca

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Calling the same jsp

2001-01-16 Thread S Ramakrishnan

Just use the same jsp file name for the
POST or GET action in the form.

Hans Bergsten's (O'Reilly) book has
an example of such usage.

Rk
x77309
- Original Message -
From: "Singh, Jasbinder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 11:13 AM
Subject: Calling the same jsp


> Hi All,
>
> I call a jsp called "abc.jsp".
> In that jsp I set some parameters and then need to call the same jsp
again.
> Do I need to call a servlet and then call the jsp "abc.jsp" again or do I
> have a way to call the same jsp directly ?
>
> Thanks
> JS
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Generating XML or HTML from the JSP page

2001-01-17 Thread S Ramakrishnan

Hi -

I need the JSP pages to generate HTML for real-time
viewing and XML for report generation. In either
case, the data source is the same.

Is it possible to have the JSP page generate
an XML document or an HTML document
based on the value of a request parameter?

Or is a more elegant solution to have the JSP
page generate only XML and use an XSLT based
XML->HTML converter?

Thanks,

Rk

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Exception with jsp:forward

2001-01-18 Thread S Ramakrishnan

Hi -


I have a page that posts a form and based on the
input forwards to a different page:

  # bajji.jsp
  
  

  <% String s = request.getParameter("sname");
if (s.equals("silk")) {
   %>
 
   <% } %>


Hence if the input is "silk" the request is forwarded to silksmitha.jsp.
The jsp:forward directive issues an exception that

java.io.IOException: Error: Attempt to clear a buffer that's already been
flushed


Is this because the output has been already partially written to
before the jsp:forward?

Thanks,

Rk

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Exception with jsp:forward

2001-01-18 Thread S Ramakrishnan

I tried the same template with

  Cotton Kamala
  Rayon Revathi
  Nylex Nalini
  Polyester Parimala
  Shiffon Shiela
  Rexin Radha
&   Khadder Kala

It yields the same error.
What could be wrong?

Rk
x77309

- Original Message -
From: "Venkat" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 7:32 PM
Subject: Re: Exception with jsp:forward


> perhaps your server is not aware of the popularity of bajjis, silk and
> silksmitha, hence is rejecting your forward directive -;)
>
> try some other names
>
> cheers
>
> .venkat (Venkata Ratnam Vadlamannati)
> Daiichi Media Pte. Ltd
> 21, Kim Keat Road
> Singapore - 328805
>
> Tel: +65 849 8666 Extn.405
>+65 9439 0394
> Fax: +65 256 5922
> URLs: http://www.daiichimedia.com
>    http://www.moreatonce.com
> - Original Message -
> From: "S Ramakrishnan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, January 19, 2001 9:53 AM
> Subject: Exception with jsp:forward
>
>
> > Hi -
> >
> >
> > I have a page that posts a form and based on the
> > input forwards to a different page:
> >
> >   # bajji.jsp
> >   
> >   
> >
> >   <% String s = request.getParameter("sname");
> > if (s.equals("silk")) {
> >%>
> >  
> ><% } %>
> >
> >
> > Hence if the input is "silk" the request is forwarded to silksmitha.jsp.
> > The jsp:forward directive issues an exception that
> >
> > java.io.IOException: Error: Attempt to clear a buffer that's already
been
> > flushed
> >
> >
> > Is this because the output has been already partially written to
> > before the jsp:forward?
> >
> > Thanks,
> >
> > Rk

---
S Ramakrishnan, Cisco Systems Inc., San Jose, Ca

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets