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 Christian Mallwitz

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



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



Re: Problem with Tomcat 3.2beta

2000-11-10 Thread Hans Bergsten

S Ramakrishnan wrote:
>
> 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); %>

A side note, you could use a JSP expression here instead of a scriptlet:

  <%= "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?

You should get a better error message, but I'm pretty sure the error is
caused by the fact that you use upper case ".JSP"; the standard file
extension for a JSP file is ".jsp", i.e. in lower case. Change both the
file and the URL path and I'm sure it works better.

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com

===
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