473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Tomcat/Jsp Configuration Problem

I hv created one simple jsp page in root folder under C:\Tomcat 5.0\webapps\ROOT
as follows .....
<html>
<body>
Hello World.
</body>
</html>

I hAVE SET THE classpATHbut whenever i am trying to run ("http://localhost:8080/hw.jsp") the same page using IE6
it is showing "HTTP-Status 500" and the root cause as following.....
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.CompilerAd apterFactory.getCompiler(CompilerAdapterFactory.ja va:105)
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:407)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:497)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:476)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:464)
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236)
javax.servlet.http.HttpServlet.service(Htt
Oct 16 '07 #1
2 1446
r035198x
13,262 8TB
I hv created one simple jsp page in root folder under C:\Tomcat 5.0\webapps\ROOT
as follows .....
<html>
<body>
Hello World.
</body>
</html>

I hAVE SET THE classpATHbut whenever i am trying to run ("http://localhost:8080/hw.jsp") the same page using IE6
it is showing "HTTP-Status 500" and the root cause as following.....
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.CompilerAd apterFactory.getCompiler(CompilerAdapterFactory.ja va:105)
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:407)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:497)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:476)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:464)
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236)
javax.servlet.http.HttpServlet.service(Htt
Read the exception trace for the root cause.
Oct 16 '07 #2
set the classpath of java directory as set classpath of tomcat

eg: D:\Tomcat 5.5\common\lib\servlet-api.jar
Oct 16 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Steve Adams | last post by:
Hi, I have a JSP application on Tomcat that performs XSL transformations on an XML file using the xtags-1.0 taglib. Basically, I have an 'edit' page that displays a table of entities from my XML...
0
by: Kevin Sagon | last post by:
I am running a J2EE Web App under Tomcat 4.1 with Apache 2.0 proxying requests. Everything is configured and working appropriately however I ran into a problem after configuring J2EE Form...
6
by: DaiIchi | last post by:
I'm using Tomcat in standalone mode. When a URL without a filename is entered into the browser (ie. "http://myhost.mydomain.com"), and the default path does NOT have an index.html, but rather an...
1
by: anks | last post by:
hi i am facing a strange problem. when i try to run my jsp file ,the tomcat shows "file not exists" error(while file is there in the desired location). what could be the possible cause. ...
5
by: Tom Martin | last post by:
I'm a Java Web developer NEWBIE that has inherited a website that fails every 2 hours due to poor connection pooling between Tomcat 4.0.6 and mySQL. In efforts to resolve this problem, I've...
4
by: Riccardo | last post by:
Hi, This jsp code doesn't run. Why ? ----------------------------------------------------------- <%@ page import="java.sql.*" %> <%! String Query(String SQL, String DSN) {
0
by: Monica Ferrero | last post by:
Hi! I'm not sure if this is the most adequate mySQL list for this post. If not, please indicat me which one I should use... I'm using Tomcat 4.1.24 with Apache 2 and MySQL 4.0.13. I have the...
4
by: Edward V. Berard | last post by:
People, I am having problems developing Java applications on a Mac using Eclipse, MyEclipse, and Tomcat 5.5+. My current configuration: Mac OS X (10.4.5) Eclipse (3.1+) MyEclipse (4.0+)
0
by: Arun21084 | last post by:
Hi, Recently I installed an application HP SIP(Service Information Portal) on a Windows 2000 server.The application comes along with an installation of Tomcat 5.0.19. Already there was an Apache...
0
by: amie2008 | last post by:
Hi Folks, I need urgent help with tomcat-apache configuration for load balancing using the mod_proxy module. I have been trying to achieve this configuration: 2 tomcat instances load balanced...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.