RE: No jsp compiles

2005-02-08 Thread Brian McGovern
Follow Up: in case anyone had the same issue.  

It was my installation of tomcat.  I blew away old instance, downloaded 
binaries again and this time JSP's compiled fine.  My guess is that the 
original tar ball was either a result of an incomplete download or was just 
simply the wrong one.  Who knows.



-Original Message-
From: Brian McGovern [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 08, 2005 12:53 PM
To: Tomcat Users List
Subject: No jsp compiles


I just installed tomcat 5.0.28 and java 1.4.2_06 on redhat and no JSP compiles, 
with the following error:  Even jsp with one line in them

Any ideas?

org.apache.jasper.JasperException: Unable to compile class for JSP

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

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
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.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCompilerExist(CompilerAdapterFactory.java:143)

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:97)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

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

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
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)



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



Re: No jsp compiles

2005-02-08 Thread David Smith
Can we get a little detail on your environment?:
- which Redhat?
- Java SDK or JRE?
- value of your JAVA_HOME environment variable (# echo $JAVA_HOME)?
One possibility that comes to mind is you are required to have the SDK 
for all versions of Tomcat up though the 5.0.x series.  Tomcat 5.5 uses 
Jikes (I think).

--David
Brian McGovern wrote:
I just installed tomcat 5.0.28 and java 1.4.2_06 on redhat and no JSP compiles, 
with the following error:  Even jsp with one line in them
Any ideas?
org.apache.jasper.JasperException: Unable to compile class for JSP
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:520)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
	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.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCompilerExist(CompilerAdapterFactory.java:143)
	org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:97)
	org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
	org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
	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)


 

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


No jsp compiles

2005-02-08 Thread Brian McGovern
I just installed tomcat 5.0.28 and java 1.4.2_06 on redhat and no JSP compiles, 
with the following error:  Even jsp with one line in them

Any ideas?

org.apache.jasper.JasperException: Unable to compile class for JSP

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

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
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.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCompilerExist(CompilerAdapterFactory.java:143)

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:97)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

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

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
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)




RE: No .jsp compiles

2002-11-14 Thread Glen Eustace
I knew it would be something fundamental !!

I had jre installed NOT jdk !!

Work fine now, thanks.

On Fri, 2002-11-15 at 07:50, John Trollinger wrote:
> It is part of the jdk from sun.. And it should go in common/lib
> 
> > -Original Message-
> > From: Glen Eustace [mailto:geustace@;godzone.net.nz] 
> > Sent: Thursday, November 14, 2002 1:44 PM
> > To: Tomcat Users List
> > Subject: RE: No .jsp compiles
> > 
> > 
> > I don't have tools.jar on my server, where do I get it from 
> > and where should it be stored ?
> > 
> > On Fri, 2002-11-15 at 02:43, John Trollinger wrote:
> > > Make sure you have the tools.jar in your classpath
> > 
> > -- 
> > 
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > =-=-=-=-=
> > Glen and Rosanne Eustace,
> > GodZone Internet Services, a division of AGRE Enterprises 
> > Ltd., P.O. Box 8020, Palmerston North, New Zealand 5301
> > Ph/Fax: +64 6 357 8168, Mob: +64 21 424 015
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
> > 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
> 
-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Glen and Rosanne Eustace,
GodZone Internet Services, a division of AGRE Enterprises Ltd.,
P.O. Box 8020, Palmerston North, New Zealand 5301
Ph/Fax: +64 6 357 8168, Mob: +64 21 424 015


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




RE: No .jsp compiles

2002-11-14 Thread John Trollinger
It is part of the jdk from sun.. And it should go in common/lib

> -Original Message-
> From: Glen Eustace [mailto:geustace@;godzone.net.nz] 
> Sent: Thursday, November 14, 2002 1:44 PM
> To: Tomcat Users List
> Subject: RE: No .jsp compiles
> 
> 
> I don't have tools.jar on my server, where do I get it from 
> and where should it be stored ?
> 
> On Fri, 2002-11-15 at 02:43, John Trollinger wrote:
> > Make sure you have the tools.jar in your classpath
> 
> -- 
> 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> =-=-=-=-=
> Glen and Rosanne Eustace,
> GodZone Internet Services, a division of AGRE Enterprises 
> Ltd., P.O. Box 8020, Palmerston North, New Zealand 5301
> Ph/Fax: +64 6 357 8168, Mob: +64 21 424 015
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




RE: No .jsp compiles

2002-11-14 Thread Glen Eustace
I don't have tools.jar on my server, where do I get it from and where
should it be stored ?

On Fri, 2002-11-15 at 02:43, John Trollinger wrote:
> Make sure you have the tools.jar in your classpath

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Glen and Rosanne Eustace,
GodZone Internet Services, a division of AGRE Enterprises Ltd.,
P.O. Box 8020, Palmerston North, New Zealand 5301
Ph/Fax: +64 6 357 8168, Mob: +64 21 424 015



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: No .jsp compiles

2002-11-14 Thread Glen Eustace
RH 7.3, 2.4.18-10
Tomcat 4.1.12
Apache 1.3.27 but I am not even using that yet.
J2RE1.4.1

On Thu, 2002-11-14 at 21:26, Francesca Arecco wrote:
> Which configuration do you have?
> 
> I've the same problem on
> Win 2k
> Tomcat  4.1.12
> Apache 2.0.42
> mod_jk2-2.0.42
> Everything runs fine with servlet, when I try to execute  a JSP I get 
> the same error as you.

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Glen and Rosanne Eustace,
GodZone Internet Services, a division of AGRE Enterprises Ltd.,
P.O. Box 8020, Palmerston North, New Zealand 5301
Ph/Fax: +64 6 357 8168, Mob: +64 21 424 015



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: No .jsp compiles

2002-11-14 Thread John Trollinger
Make sure you have the tools.jar in your classpath

> -Original Message-
> From: Glen Eustace [mailto:geustace@;godzone.net.nz] 
> Sent: Wednesday, November 13, 2002 11:57 PM
> To: [EMAIL PROTECTED]
> Subject: No .jsp compiles
> 
> 
> 
> I seem to have something fundamentally wrong with my 
> installation but do not have sufficient experience with 
> Tomcat or Java to identify what it is.  All .jsp pages give 
> the following sort of error.
> 
> Returned in Browser.
> 
> root cause 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: -1 in the jsp file: null
> 
> Generated servlet error:
> [javac] Compiling 1 source file
> 
> 
> at
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa
> ultErrorHandler.java:120)
> at
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis
> patcher.java:293)
> at
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)
> 
> 
> >From logs
> -
> 2002-11-14 17:34:52 StandardHost[jsp.godzone.net.nz]: 
> Installing web application at context path /agree from URL 
file:/home22/agree 2002-11-14 17:34:52 WebappLoader[/agree]: Deploying
class repositories to work directory
/var/tomcat4/work/Standalone/jsp.godzone.net.nz/agree
2002-11-14 17:34:52 WebappLoader[/agree]: Deploy class files
/WEB-INF/classes to /home22/agree/WEB-INF/classes 2002-11-14 17:34:53
StandardManager[/agree]: Seeding random number generator class
java.security.SecureRandom 2002-11-14 17:34:53 StandardManager[/agree]:
Seeding of random number generator has been completed 2002-11-14
17:34:53 StandardWrapper[/agree:default]: Loading container servlet
default 2002-11-14 17:34:54 default: init 2002-11-14 17:34:54
StandardWrapper[/agree:invoker]: Loading container servlet invoker
2002-11-14 17:34:54 invoker: init 2002-11-14 17:34:54 jsp: init
2002-11-14 17:34:56 Error compiling file:
/var/tomcat4/work/Standalone/jsp.godzone.net.nz/agree/count_jsp.java
[javac] Compiling 1 source file

2002-11-14 17:34:56 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:477)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:182)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)




--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




Re: No .jsp compiles

2002-11-14 Thread Francesca Arecco
Which configuration do you have?

I've the same problem on
Win 2k
Tomcat  4.1.12
Apache 2.0.42
mod_jk2-2.0.42
Everything runs fine with servlet, when I try to execute  a JSP I get 
the same error as you.




Glen Eustace wrote:

I seem to have something fundamentally wrong with my installation but do
not have sufficient experience with Tomcat or Java to identify what it
is.  All .jsp pages give the following sort of error.

Returned in Browser.

root cause 
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
   [javac] Compiling 1 source file


   at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
   at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
   at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)


From logs

-
2002-11-14 17:34:52 StandardHost[jsp.godzone.net.nz]: Installing web
application at context path /agree from URL file:/home22/agree
2002-11-14 17:34:52 WebappLoader[/agree]: Deploying class repositories
to work directory /var/tomcat4/work/Standalone/jsp.godzone.net.nz/agree
2002-11-14 17:34:52 WebappLoader[/agree]: Deploy class files
/WEB-INF/classes to /home22/agree/WEB-INF/classes
2002-11-14 17:34:53 StandardManager[/agree]: Seeding random number
generator class java.security.SecureRandom
2002-11-14 17:34:53 StandardManager[/agree]: Seeding of random number
generator has been completed
2002-11-14 17:34:53 StandardWrapper[/agree:default]: Loading container
servlet default
2002-11-14 17:34:54 default: init
2002-11-14 17:34:54 StandardWrapper[/agree:invoker]: Loading container
servlet invoker
2002-11-14 17:34:54 invoker: init
2002-11-14 17:34:54 jsp: init
2002-11-14 17:34:56 Error compiling file:
/var/tomcat4/work/Standalone/jsp.godzone.net.nz/agree/count_jsp.java
[javac] Compiling 1 source file

2002-11-14 17:34:56 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
   at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:477)
   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:182)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

 





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




No .jsp compiles

2002-11-13 Thread Glen Eustace

I seem to have something fundamentally wrong with my installation but do
not have sufficient experience with Tomcat or Java to identify what it
is.  All .jsp pages give the following sort of error.

Returned in Browser.

root cause 
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file


at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)


>From logs
-
2002-11-14 17:34:52 StandardHost[jsp.godzone.net.nz]: Installing web
application at context path /agree from URL file:/home22/agree
2002-11-14 17:34:52 WebappLoader[/agree]: Deploying class repositories
to work directory /var/tomcat4/work/Standalone/jsp.godzone.net.nz/agree
2002-11-14 17:34:52 WebappLoader[/agree]: Deploy class files
/WEB-INF/classes to /home22/agree/WEB-INF/classes
2002-11-14 17:34:53 StandardManager[/agree]: Seeding random number
generator class java.security.SecureRandom
2002-11-14 17:34:53 StandardManager[/agree]: Seeding of random number
generator has been completed
2002-11-14 17:34:53 StandardWrapper[/agree:default]: Loading container
servlet default
2002-11-14 17:34:54 default: init
2002-11-14 17:34:54 StandardWrapper[/agree:invoker]: Loading container
servlet invoker
2002-11-14 17:34:54 invoker: init
2002-11-14 17:34:54 jsp: init
2002-11-14 17:34:56 Error compiling file:
/var/tomcat4/work/Standalone/jsp.godzone.net.nz/agree/count_jsp.java
[javac] Compiling 1 source file

2002-11-14 17:34:56 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:477)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:182)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)




--
To unsubscribe, e-mail:   
For additional commands, e-mail: