473,411 Members | 2,210 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,411 software developers and data experts.

Error encountered in running a JSP file in Tomcat...Pls. Help

Hai Colleagues,

I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've
transferred a set of folders(containing jsp files) into tomcat's
webapps directory(to /webapps/bob , /webapps/sue) and i have added the
folders bob, sue in my server.xml(in the context path).

When i am trying to run jsp files from my browser, it works fine. But,
the following jsp files reports some exceptions which is quite hard to
understand. Here is my JSP file:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">

<html>
<head>
<title>Sue's Sprockets Messaging Service</title>
<link rel=stylesheet type="text/css" href="/bob/css/basic.css"
title="Basic Styles">
</head>
<body>

<%@ page language="java"
import="java.io.*,
java.net.*,
java.text.DecimalFormat,
java.util.*,
javax.mail.internet.*,
org.w3c.dom.*,
org.apache.soap.*,
org.apache.soap.rpc.*,
org.apache.soap.server.*,
org.apache.soap.messaging.*,
org.apache.soap.transport.*,
org.apache.soap.util.xml.*,
com.sun.ebxml.common.*,
com.sun.ebxml.soapmsh.*"
%>

<table align="center" width="600">
<tr>
<td colspan="5" align="center"><img src="/bob/images/logo.gif"
border="0"></td>
</tr>
<tr>
<td>
<form action="/bob/actions/order_send.jsp"><table
align="center" width="600" cellspacing="0" cellpadding="0">
<tr>
<td align="center" class="head">Part No.</td>
<td align="center" class="head">Description</td>
<td align="center" class="head">Price</td>
<td align="center" class="head">Qty.</td>
<td align="center" class="head">Subtotal</td>
</tr>
<%
float stotal = 0;
float gtotal = 0;
DecimalFormat df = new DecimalFormat("#,##0.00");

for (Enumeration e = request.getParameterNames();e.hasMoreElements();)
{
Object name = e.nextElement();
int qty = Integer.parseInt(request.getParameter((String)name ));
if(!(qty > 0)) { continue; }
StringTokenizer st = new StringTokenizer((String)name,"|");
String part_no = st.nextToken();
String desc = st.nextToken();
float price = Float.parseFloat(st.nextToken());
%>
<input type="hidden" name="<%= part_no + "|" + desc + "|" + price
%>" value="<%= qty %>">
<tr>
<td class="stotal"><%= part_no %></td>
<td class="stotal"><%= desc %></td>
<td class="stotal" align="right">$<%= df.format(price) %></td>
<td class="stotal" align="right"><%= qty %></td>
<% stotal = qty*price;gtotal += stotal; %>
<td class="stotal" align="right">$<%= df.format(stotal) %></td>
</tr>

When i am running this file from my browser, it reports the following
error.
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] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.

[javac] Unexpected Signal : EXCEPTION_FLT_DIVIDE_BY_ZERO occurred
at PC=0xB6BCFA
[javac] Function=[Unknown.]
[javac] Library=(N/A)

[javac] NOTE: We are unable to locate the function name symbol for
the error
[javac] just occurred. Please refer to release documentation
for possible
[javac] reason and solutions.

[javac] Current Java thread:

[javac] Dynamic libraries:
[javac] 0x00400000 - 0x00408000
D:\usr\local\java\jdk\current\bin\javac.exe
[javac] 0x77F40000 - 0x77FF0000 C:\WINDOWS\System32\ntdll.dll
[javac] 0x77E40000 - 0x77F37000 C:\WINDOWS\system32\kernel32.dll
[javac] 0x77DA0000 - 0x77E3A000 C:\WINDOWS\system32\ADVAPI32.dll
[javac] 0x77C90000 - 0x77D05000 C:\WINDOWS\system32\RPCRT4.dll
[javac] 0x77BE0000 - 0x77C33000 C:\WINDOWS\system32\MSVCRT.dll
[javac] 0x00280000 - 0x002F3000
C:\DOKUME~1\arukala\LOKALE~1\Temp\ykb11.tmp
[javac] 0x77310000 - 0x7739B000 C:\WINDOWS\system32\COMCTL32.DLL
[javac] 0x77C40000 - 0x77C80000 C:\WINDOWS\system32\GDI32.dll
[javac] 0x77D10000 - 0x77D9D000 C:\WINDOWS\system32\USER32.dll
[javac] 0x71A80000 - 0x71A91000 C:\WINDOWS\system32\MPR.DLL
[javac] 0x77180000 - 0x7729A000 C:\WINDOWS\system32\OLE32.DLL
[javac] 0x770F0000 - 0x7717B000 C:\WINDOWS\system32\OLEAUT32.DLL
[javac] 0x71A30000 - 0x71A39000 C:\WINDOWS\System32\WSOCK32.DLL
[javac] 0x71A10000 - 0x71A25000 C:\WINDOWS\System32\WS2_32.dll
[javac] 0x71A00000 - 0x71A08000 C:\WINDOWS\System32\WS2HELP.dll
[javac] 0x6D330000 - 0x6D445000
D:\usr\local\java\jdk\current\jre\bin\client\jvm.d ll
[javac] 0x76AF0000 - 0x76B1D000 C:\WINDOWS\System32\WINMM.dll
[javac] 0x6D1D0000 - 0x6D1D7000
D:\usr\local\java\jdk\current\jre\bin\hpi.dll

[javac] ****************
[javac] Another exception has been detected while we were handling
last error.
[javac] 0x6D300000 - 0x6D30D000
D:\usr\local\java\jdk\current\jre\bin\verify.dll
[javac] 0x6D210000 - 0x6D228000
D:\usr\local\java\jdk\current\jre\bin\java.dll
[javac] 0x6D320000 - 0x6D32D000
D:\usr\local\java\jdk\current\jre\bin\zip.dll
[javac] 0x76C50000 - 0x76C72000 C:\WINDOWS\system32\imagehlp.dll
[javac] 0x6DA00000 - 0x6DA7C000 C:\WINDOWS\system32\DBGHELP.dll
[javac] 0x77BD0000 - 0x77BD7000 C:\WINDOWS\system32\VERSION.dll
[javac] 0x76BB0000 - 0x76BBB000 C:\WINDOWS\System32\PSAPI.DLL

[javac] Dumping information about last error:
[javac] ERROR REPORT FILE = (N/A)
[javac] PC = 0x00B6BCFA
[javac] SIGNAL = -1073741682
[javac] Local Time = Tue Jul 29 04:09:37 2003
[javac] FUNCTION NAME = (N/A)
[javac] OFFSET = 0xFFFFFFFF
[javac] LIBRARY NAME = (N/A)
[javac] Please check ERROR REPORT FILE for further information, if
there is any.
[javac] Good bye.
at org.apache.jasper.compiler.DefaultErrorHandler.jav acError(DefaultErrorHandler.java:130)
at org.apache.jasper.compiler.ErrorDispatcher.javacEr ror(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass( Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compil er.java:370)
at org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:473)
at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(St andardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
at org.apache.catalina.valves.ErrorDispatcherValve.in voke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:641)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:641)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(Co yoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)
Simply i can't understand how to proceed further. Pls. help me whether
i have done the right things in the JSP file and in placing my
folders.

Waiting for ur reply and thanx for spending ur valuable time.

regards,
Jagdeesh.
Jul 17 '05 #1
0 3637

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Kim Nørby Andersen | last post by:
Hello there I am lost. i receive the output in the bottom, from a site that runs excellently on our development server, but dies on the customer. We have had a first version running at the...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
7
by: | last post by:
Hi all, I have a simple .aspx page running on net 2.0 that is trying to do a http post to a remote server. Here is the code Private Function ProcessRequests(ByVal strbody As String) As String...
10
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
1
by: ajos | last post by:
hi evrybdy, the problem is:- i had this running before in jsp but when i changed the jsp page using struts tags there occoured a problem... when i enter values in the 2 text boxes and click enter...
0
by: archaaa | last post by:
Im trying to install nutch-0.7 on windows xp(sp 2) using cygwin and tomcat 4.0 under the guidance of http://lucene.apache.org/nutch/tutorial.html. All went well until the search was made. Im also...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.