By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,569 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,569 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.