473,748 Members | 3,585 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(contain ing 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.Decim alFormat,
java.util.*,
javax.mail.inte rnet.*,
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.c ommon.*,
com.sun.ebxml.s oapmsh.*"
%>

<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">Pa rt No.</td>
<td align="center" class="head">De scription</td>
<td align="center" class="head">Pr ice</td>
<td align="center" class="head">Qt y.</td>
<td align="center" class="head">Su btotal</td>
</tr>
<%
float stotal = 0;
float gtotal = 0;
DecimalFormat df = new DecimalFormat(" #,##0.00");

for (Enumeration e = request.getPara meterNames();e. hasMoreElements ();)
{
Object name = e.nextElement() ;
int qty = Integer.parseIn t(request.getPa rameter((String )name));
if(!(qty > 0)) { continue; }
StringTokenizer st = new StringTokenizer ((String)name," |");
String part_no = st.nextToken();
String desc = st.nextToken();
float price = Float.parseFloa t(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;gtota l += stotal; %>
<td class="stotal" align="right">$ <%= df.format(stota l) %></td>
</tr>

When i am running this file from my browser, it reports the following
error.
org.apache.jasp er.JasperExcept ion: 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_D IVIDE_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\ja va\jdk\current\ bin\javac.exe
[javac] 0x77F40000 - 0x77FF0000 C:\WINDOWS\Syst em32\ntdll.dll
[javac] 0x77E40000 - 0x77F37000 C:\WINDOWS\syst em32\kernel32.d ll
[javac] 0x77DA0000 - 0x77E3A000 C:\WINDOWS\syst em32\ADVAPI32.d ll
[javac] 0x77C90000 - 0x77D05000 C:\WINDOWS\syst em32\RPCRT4.dll
[javac] 0x77BE0000 - 0x77C33000 C:\WINDOWS\syst em32\MSVCRT.dll
[javac] 0x00280000 - 0x002F3000
C:\DOKUME~1\aru kala\LOKALE~1\T emp\ykb11.tmp
[javac] 0x77310000 - 0x7739B000 C:\WINDOWS\syst em32\COMCTL32.D LL
[javac] 0x77C40000 - 0x77C80000 C:\WINDOWS\syst em32\GDI32.dll
[javac] 0x77D10000 - 0x77D9D000 C:\WINDOWS\syst em32\USER32.dll
[javac] 0x71A80000 - 0x71A91000 C:\WINDOWS\syst em32\MPR.DLL
[javac] 0x77180000 - 0x7729A000 C:\WINDOWS\syst em32\OLE32.DLL
[javac] 0x770F0000 - 0x7717B000 C:\WINDOWS\syst em32\OLEAUT32.D LL
[javac] 0x71A30000 - 0x71A39000 C:\WINDOWS\Syst em32\WSOCK32.DL L
[javac] 0x71A10000 - 0x71A25000 C:\WINDOWS\Syst em32\WS2_32.dll
[javac] 0x71A00000 - 0x71A08000 C:\WINDOWS\Syst em32\WS2HELP.dl l
[javac] 0x6D330000 - 0x6D445000
D:\usr\local\ja va\jdk\current\ jre\bin\client\ jvm.dll
[javac] 0x76AF0000 - 0x76B1D000 C:\WINDOWS\Syst em32\WINMM.dll
[javac] 0x6D1D0000 - 0x6D1D7000
D:\usr\local\ja va\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\ja va\jdk\current\ jre\bin\verify. dll
[javac] 0x6D210000 - 0x6D228000
D:\usr\local\ja va\jdk\current\ jre\bin\java.dl l
[javac] 0x6D320000 - 0x6D32D000
D:\usr\local\ja va\jdk\current\ jre\bin\zip.dll
[javac] 0x76C50000 - 0x76C72000 C:\WINDOWS\syst em32\imagehlp.d ll
[javac] 0x6DA00000 - 0x6DA7C000 C:\WINDOWS\syst em32\DBGHELP.dl l
[javac] 0x77BD0000 - 0x77BD7000 C:\WINDOWS\syst em32\VERSION.dl l
[javac] 0x76BB0000 - 0x76BBB000 C:\WINDOWS\Syst em32\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.jasp er.compiler.Def aultErrorHandle r.javacError(De faultErrorHandl er.java:130)
at org.apache.jasp er.compiler.Err orDispatcher.ja vacError(ErrorD ispatcher.java: 293)
at org.apache.jasp er.compiler.Com piler.generateC lass(Compiler.j ava:353)
at org.apache.jasp er.compiler.Com piler.compile(C ompiler.java:37 0)
at org.apache.jasp er.JspCompilati onContext.compi le(JspCompilati onContext.java: 473)
at org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(JspServl etWrapper.java: 190)
at org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(JspServl et.java:295)
at org.apache.jasp er.servlet.JspS ervlet.service( JspServlet.java :241)
at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:853)
at org.apache.cata lina.core.Appli cationFilterCha in.internalDoFi lter(Applicatio nFilterChain.ja va:247)
at org.apache.cata lina.core.Appli cationFilterCha in.doFilter(App licationFilterC hain.java:193)
at org.apache.cata lina.core.Stand ardWrapperValve .invoke(Standar dWrapperValve.j ava:256)
at org.apache.cata lina.core.Stand ardPipeline$Sta ndardPipelineVa lveContext.invo keNext(Standard Pipeline.java:6 43)
at org.apache.cata lina.core.Stand ardPipeline.inv oke(StandardPip eline.java:480)
at org.apache.cata lina.core.Conta inerBase.invoke (ContainerBase. java:995)
at org.apache.cata lina.core.Stand ardContextValve .invoke(Standar dContextValve.j ava:191)
at org.apache.cata lina.core.Stand ardPipeline$Sta ndardPipelineVa lveContext.invo keNext(Standard Pipeline.java:6 43)
at org.apache.cata lina.core.Stand ardPipeline.inv oke(StandardPip eline.java:480)
at org.apache.cata lina.core.Conta inerBase.invoke (ContainerBase. java:995)
at org.apache.cata lina.core.Stand ardContext.invo ke(StandardCont ext.java:2415)
at org.apache.cata lina.core.Stand ardHostValve.in voke(StandardHo stValve.java:18 0)
at org.apache.cata lina.core.Stand ardPipeline$Sta ndardPipelineVa lveContext.invo keNext(Standard Pipeline.java:6 43)
at org.apache.cata lina.valves.Err orDispatcherVal ve.invoke(Error DispatcherValve .java:171)
at org.apache.cata lina.core.Stand ardPipeline$Sta ndardPipelineVa lveContext.invo keNext(Standard Pipeline.java:6 41)
at org.apache.cata lina.valves.Err orReportValve.i nvoke(ErrorRepo rtValve.java:17 2)
at org.apache.cata lina.core.Stand ardPipeline$Sta ndardPipelineVa lveContext.invo keNext(Standard Pipeline.java:6 41)
at org.apache.cata lina.core.Stand ardPipeline.inv oke(StandardPip eline.java:480)
at org.apache.cata lina.core.Conta inerBase.invoke (ContainerBase. java:995)
at org.apache.cata lina.core.Stand ardEngineValve. invoke(Standard EngineValve.jav a:174)
at org.apache.cata lina.core.Stand ardPipeline$Sta ndardPipelineVa lveContext.invo keNext(Standard Pipeline.java:6 43)
at org.apache.cata lina.core.Stand ardPipeline.inv oke(StandardPip eline.java:480)
at org.apache.cata lina.core.Conta inerBase.invoke (ContainerBase. java:995)
at org.apache.coyo te.tomcat4.Coyo teAdapter.servi ce(CoyoteAdapte r.java:223)
at org.apache.coyo te.http11.Http1 1Processor.proc ess(Http11Proce ssor.java:594)
at org.apache.coyo te.http11.Http1 1Protocol$Http1 1ConnectionHand ler.processConn ection(Http11Pr otocol.java:392 )
at org.apache.tomc at.util.net.Tcp WorkerThread.ru nIt(PoolTcpEndp oint.java:565)
at org.apache.tomc at.util.threads .ThreadPool$Con trolRunnable.ru n(ThreadPool.ja va:619)
at java.lang.Threa d.run(Thread.ja va: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 3684

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

Similar topics

5
2109
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 customer, did some changes, recompiled, zipped and sent it back to them, but then it screwed up. As a part of the debugging process, the ASP.NET has been set to run as SYSTEM, and all folders described in...
7
5019
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. I created the websetup and built the MSI, have the bundled version. Copied to webserver and ran Websetup.msi. Said I had to remove old version, which I did, then reran WebSetup.msi and keeps giving me this error. "The installer was interrupted...
9
3214
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 questions are below... "David Good" wrote: > We have a network running both Win2k and Win2k3 webservers and our web sites > reside on a UNC network share that happens to be a Network Appliance NAS.
16
2958
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: http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=632614619884218750 -------------------------------------------------------------------------------- System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed. at...
7
2933
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 Dim returnstr As String Dim URL As String = "http://www.dydomain.com/test.asp"
10
3731
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 Error in '/QuickStartv20' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file
5
3640
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 New System.Diagnostics.Process 'p.Start(MDEPDirStr & "macrun.exe", sPPTOut) p.Start("C:\WINDOWS\SYSTEM32\CALC.EXE") 'p.Start("C:\WINDOWS\SYSTEM32\macrun.exe", sPPTOut)
1
3370
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 an exception occours which is- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request.
0
1325
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 quite confused with this one from the website:====================================== Assuming you've unpacked Tomcat as ~/local/tomcat, then the Nutch war file may be installed with the commands: rm -rf ~/local/tomcat/webapps/ROOT* cp nutch*.war...
0
8823
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9363
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9238
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8237
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6793
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4593
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.