Re: Unable to find a javac compiler error

2004-10-19 Thread Antony Paul
Tomcat needs the tools.jar(For Sun JDK) in Tomcat classpath. Usually
this is placed in the TOMCAT_HOME\common\lib directory. If it is not
there then copy it to there from JAVA_HOME\lib directory. Restart
Tomcat and try the JSP page.

rgds
Antony Paul


On Mon, 18 Oct 2004 17:38:07 +0200, Andrea Mennini [EMAIL PROTECTED] wrote:
 Hi,
 
 I'm trying to run this silly hello.jsp, just to be sure tomcat 5.0.28 is
 running under win2k:
 
 ===
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 !--
 Simple HTML file to test server setup and configuration.
 
 Taken from More Servlets and JavaServer Pages
 from Prentice Hall and Sun Microsystems Press,
 http://www.moreservlets.com/.
 (C) 2002 Marty Hall; may be freely used or adapted.
 --
 HTML
 HEADTITLEJSP Test/TITLE/HEAD
 BODY BGCOLOR=#FDF5E6
 H1JSP Test/H1
 Time: %= new java.util.Date() %
 /BODY
 /HTML
 ===
 
 When I run it, I receive a message like this one:
 
 ===
 Unable to find a javac compiler;
 
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK
 
 ===
 
 I've got a command line and typed %JAVA_HOME%\bin\javac, and javac is run.
 
 What am I doing wrong?
 
 TIA
 
 --
 
 Andrea
 
 ICQ:5459894
 Registered Linux User #24583
 
 -
 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: Unable to find a javac compiler error

2004-10-19 Thread Andrea Mennini
Antony Paul wrote:
Tomcat needs the tools.jar(For Sun JDK) in Tomcat classpath. Usually
[...]
 

No. It does not work.
This is the error:
==
*type* Exception report
*message*
*description* _The server encountered an internal error () that 
prevented it from fulfilling this request._

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

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
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)
*root cause*
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
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)
--
Andrea Mennini
Cisco Certified Network Associate (CCNA (r))
ICQ:5459894
Registered Linux User #24583

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


Re: Unable to find a javac compiler error

2004-10-19 Thread Harald Henkel
Dumb question:

Did you install a Javac compiler ?

This is included only in the J2SDK, not in the JRE.

Andrea Mennini wrote:
 
 Antony Paul wrote:
 
 Tomcat needs the tools.jar(For Sun JDK) in Tomcat classpath. Usually
 [...]
 
 
 No. It does not work.
 
 This is the error:
 
 ==
 
 *type* Exception report
 
 *message*
 
 *description* _The server encountered an internal error () that
 prevented it from fulfilling this request._
 
 *exception*
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
 
 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
 org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
 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)
 
 *root cause*
 
 Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK
 
 org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
 org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
 org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
 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)
 
 --
 
 Andrea Mennini
 Cisco Certified Network Associate (CCNA (r))
 
 ICQ:5459894
 Registered Linux User #24583
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

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



Re: Unable to find a javac compiler error

2004-10-19 Thread Andrea Mennini
Harald Henkel wrote:
Dumb question:
Did you install a Javac compiler ?
This is included only in the J2SDK, not in the JRE.
 

It's not dumb, but I have installed it. I have solver the problem by setting the 
CATALINA_HOME variable, although I don't understand why it works right now.
--
Andrea 

ICQ:5459894
Registered Linux User #24583

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


Re: Unable to find a javac compiler error

2004-10-19 Thread Harald Henkel


Andrea Mennini wrote:
 
 Harald Henkel wrote:
 
 Dumb question:
 Did you install a Javac compiler ?
 This is included only in the J2SDK, not in the JRE.
 
 
 It's not dumb, but I have installed it. I have solver the problem by setting the 
 CATALINA_HOME variable, although I don't understand why it works right now.

Well, did you start tomcat from a console (DOS command line) which was
open already before the installation of Tomcat and or Java ?
Then maybe the environment variables JAVA_HOME/CATALINA_HOME were not
available (although already set/defined) when starting tomcat...


BTW, you are sending mails to the mailing list with a request for reply
(Return Receipt).
This is somewhat annoying, because you have to click that dumb message
away. I at least wouldn't send such a reply to newgroup postings.

Regards,
Harald

-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

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



Re: Unable to find a javac compiler error

2004-10-19 Thread Andrea Mennini
Harald Henkel wrote:
Well, did you start tomcat from a console (DOS command line) which was
open already before the installation of Tomcat and or Java ?
 

No. After the install I rebooted (under windoze it's the best way to 
ensure that all is set up)

BTW, you are sending mails to the mailing list with a request for reply
(Return Receipt).
This is somewhat annoying, because you have to click that dumb message
away. I at least wouldn't send such a reply to newgroup postings.
 

Yes, you're right and my apologizes for this.
Anyway, I didn't mind it too much (but I'll do in the future) because 
usually mailing lists are set up to filter reply requests. I set it on 
by mistake but, if I would get from this list some valid email address 
to spam, it could be a good way to do it.

Cheers
--
Andrea 

ICQ:5459894
Registered Linux User #24583

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


Re: Unable to find a javac compiler error

2004-10-19 Thread Ben Souther
Do you have a full j2sdk or just a jre?
You will need a full j2sdk (unless you are using tc5.5+).

If so, is your JAVA_HOME evironment variable pointing to it?



On Tue, 2004-10-19 at 03:00, Andrea Mennini wrote:
 Antony Paul wrote:
 
 Tomcat needs the tools.jar(For Sun JDK) in Tomcat classpath. Usually
 [...]
   
 
 No. It does not work.
 
 This is the error:
 
 ==
 
 *type* Exception report
 
 *message*
 
 *description* _The server encountered an internal error () that 
 prevented it from fulfilling this request._
 
 *exception*
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
   
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
   org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
   org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
   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)
 
 *root cause*
 
 Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK
   
 org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
   org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
   org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
   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]



Unable to find a javac compiler error

2004-10-18 Thread Andrea Mennini
Hi,
I'm trying to run this silly hello.jsp, just to be sure tomcat 5.0.28 is 
running under win2k:

===
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
!--
Simple HTML file to test server setup and configuration.
 
Taken from More Servlets and JavaServer Pages
from Prentice Hall and Sun Microsystems Press,
http://www.moreservlets.com/.
(C) 2002 Marty Hall; may be freely used or adapted.
--
HTML
HEADTITLEJSP Test/TITLE/HEAD
BODY BGCOLOR=#FDF5E6
H1JSP Test/H1
Time: %= new java.util.Date() %
/BODY
/HTML
===

When I run it, I receive a message like this one:
===
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
===
I've got a command line and typed %JAVA_HOME%\bin\javac, and javac is run.
What am I doing wrong?
TIA
--
Andrea 

ICQ:5459894
Registered Linux User #24583

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