Not able to compile servlet
Hello
I would like some one to help me.
I have WindowsXp professional on my Laptop. I downloaded jdk and I am able to compile and run the core java files.
I downloaded j2sdk1.4.2_10 from the website www.java.sun.com. and then set the path in the environment variables. But in the command promt I was not able to compile the servlet.
Could you please guide me about what more has to be done so that The servlet can compile.
Thanking you
**MAJOR SPAMMING SCUM BAG ALERT**
I was puzzled in that you asked a SQL Server question in one post and then in another thread asked a Oracle related question... and then I noticed you had cross posted one of your questions at JavaRanch and I was more annoyed....
and then I found this....
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=10&t=002447
You sir -> Michael Byrd -> are a scum sucking dirtbag.
To quickly explain. Mr. Byrd posts his messages (which he copies wholesale from other posters) so that he can get better google caching for the website listed in his profile.
This is such scummy behaviour I don't even know what to say. Other than basically everyone that has ever helped you had totally wasted their time.
You are scum. Your company is scum. I hope you rot in hell.
Similar Messages
-
Not Able to compile Servlet from ?
Hi All,
I am not able to compile Servlet from my package:
1) I Have set the CLASSPATH Variable using below line in System Variables:
C:\CC4\prog\jakarta-tomcat-4.1.30\common\lib\servlet.jar
2) Also Set the CATALINA_HOME with value
C:\CC4\prog\jakarta-tomcat-4.1.30
as per above setting servlet should be compiled but still i m getting error message:
1) C:\CC4\prog\jakarta-tomcat-4.1.30\project\classes\com\example>javac ListenerTest
er.java
ListenerTester.java:17: cannot resolve symbol
symbol : class Dog
location: class com.example.ListenerTester
Dog dog = (Dog) getServletContext().getAttribute("dog");
^
ListenerTester.java:17: cannot resolve symbol
symbol : class Dog
location: class com.example.ListenerTester
Dog dog = (Dog) getServletContext().getAttribute("dog");
^
2 errors
2) Error while compiling other file:
C:\CC4\prog\jakarta-tomcat-4.1.30\project\classes\com\example>javac MyServletCon
textListener.java
MyServletContextListener.java:12: cannot resolve symbol
symbol : class Dog
location: class com.example.MyServletContextListener
Dog d = new Dog(dogBreed);
^
MyServletContextListener.java:12: cannot resolve symbol
symbol : class Dog
location: class com.example.MyServletContextListener
Dog d = new Dog(dogBreed);
^
2 errors
So what could be the posible solution here :
do reply !!!
please
Thanks
prabhatI have added servlet.jar in the classpath. But the program is not compiling.The error message says that it can not find classes like ServletConfig, ServletException, Cookie etc. Please help.
-
NOT able to compile servlet and EE java files
hi
i am not able to compile java files of servlet
it is showing cannot resolve symbol for servlet classes
since i have installed tomcat j2sdk1.4.2_06 and also facing problem with the classpath since i have to set the classpath everytime as i have already created it in environment variables
show me the way out**MAJOR SPAMMING SCUM BAG ALERT**
I was puzzled in that you asked a SQL Server question in one post and then in another thread asked a Oracle related question... and then I noticed you had cross posted one of your questions at JavaRanch and I was more annoyed....
and then I found this....
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=10&t=002447
You sir -> Michael Byrd -> are a scum sucking dirtbag.
To quickly explain. Mr. Byrd posts his messages (which he copies wholesale from other posters) so that he can get better google caching for the website listed in his profile.
This is such scummy behaviour I don't even know what to say. Other than basically everyone that has ever helped you had totally wasted their time.
You are scum. Your company is scum. I hope you rot in hell. -
Not able to compile servlet pgm - using Tomcat
Hi,
I have a servlet pgm that I'm trying to compile.I using Tomcat application server.I have my servlet class in D:\servlet_wrk\project1\src
and my deployment descriptor in D:\servlet_wrk\project1\etc
my CLASSPATH var is set to C:\Sun\AppServer\jdk\bin
and
my PATH var is set to C:\Sun\AppServer\bin.
When I compile my servlet class Ch1Servlet.java in the command line from the directory
D:\servlet_wrk\project1 using the command
javac -classpath D:\applications\tomcat-5.5.12\common\lib\servlet-api.jar -d classes src/Ch1Servlet.java,
it says error:cannot read: src/Ch1Servlet.java
Can somebody help me to solve this problem and help me to compile my servlet class.
Thanks.**MAJOR SPAMMING SCUM BAG ALERT**
I was puzzled in that you asked a SQL Server question in one post and then in another thread asked a Oracle related question... and then I noticed you had cross posted one of your questions at JavaRanch and I was more annoyed....
and then I found this....
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=10&t=002447
You sir -> Michael Byrd -> are a scum sucking dirtbag.
To quickly explain. Mr. Byrd posts his messages (which he copies wholesale from other posters) so that he can get better google caching for the website listed in his profile.
This is such scummy behaviour I don't even know what to say. Other than basically everyone that has ever helped you had totally wasted their time.
You are scum. Your company is scum. I hope you rot in hell. -
I am not able to compile a program on my mac...
I am not able to compile a program on my mac; i am getting the following message :"Class names, 'ClassName.Java', are only accepted if annotation processing is explicitly requested". I am new to programming, and I am using a MAC. Any suggestions? I am typing: "Javac ClassName.Java" at the command prompt.
You might want to be posting to the developer forum here:
https://discussions.apple.com/community/developer_forums -
Not able to compile wrapped package bodies.
Hi All
Can anybody pls help me finding me the reason why I m not able to compile .plb (wrapped package body). There are no compilation errors. But when I run the .plb file (as @xyz.plb), sqlplus window hangs. No error shown. Everytime I had to close the window after waiting for 8-10 minutes.
This is happening only with 11 files out of 200.Rest were compiled.
Any ideas? Do we have any other way to wrap than using pl/sql wrap utility or pl/sql plug-in for wrapping(which is actually the same as former)??
ThanksInAdvance!!
Keep striking the iron until it's hot!yes, I did check for locks from pl/sql developer only. No Locks.
I waited for 10 minutes for a 6 kb .plb file to get compiled. But had to close the session after that.
I am using oracle 10g, pl/sql developer 7.1.0.1337
sql*plus Release 10.2.0.2.0 -
Hi Java Gurus
I am not able to compile this code Pl help
class For {
public static void main (String [] args) {
int I = 0;
show:
if (I < 2) {
System.out.print("I is " + I);
I++;
continue show;
}class For {
public static void main (String [] args) {
for(int i = 0; i < 2; i++){
System.out.print("I is " + i);
}this does the same as your program: the for loop is the best for this, but i agree with the others read some tutorials on loops in java. As posted before java has no concept of the GoTo syntax, loops or recursion are your only options -
I am not able to compile forms and my form application is close
Hi All,
There is strange problem arising in my system. I am not able compile the forms from my machine.MY machine is having Vista as OS and I have installed the latest 10g release of forms (the vista compaitable version). Also I am not able to open any of the existing and developed forms for one One Oracle Retail product. The existing forms were build on 10g version 2. (10.0.2). But when I am trying to open the forms, the application hangs immediately and then its says explorer is closing, the program has some problems. The same error comes in both the cases.
Thanks & Regards,
DebabrataDebabrata,
First You must read this topic from Steve Cosner:
Forms 10g installed and running on Windows Vista
After You must to install Forms 10g under Window Vista following the instruction in the topic.
At this time Form Builder work fine; but the Compiler called from Framework return errors and the program hang.
I have tried to run frmcmp.exe outside the Form Builder and the program newly abort.
I have sended my Form to Steve Cosner and I attend a reply.
Bye
Gaetano -
OCI demos-not able to compile on red hat Linux
Can anyone narrate how can I get the OCI routines (demo) working.
I feel that they are failing to run. what are the check points needed
that I should verify that an OCI program executes.
Does this needs any special settings or running any script files
before hand?.
I am running on Red hat 6.1 and Oracle 8.1.6 based on Linux.
when I detected the installations, following program folders are
missing
1. plsql/public
2. lib/libextp.a
I used one of the porgrams in the sample oci13.c and changed the user
account and password. I then compiled as follows
gcc -I(include files) -c oci13new.c
But after this it gave me successfully the object file. But I could not
able to link this to produce any a.out file!.
Can anyone suggest how can I do this?
NatStep 1) is needed, you cannot got directly from 8.1.5 to 10g.
When you are on level 8.1.7.4 (Step 2)) there are alternatives to export/import, for example DBUA. But first, you are right, you have to build up a 8.1.7.4 database on Linux, because this release does not allow other methods of transportation across different platforms. Or you import directly into a new built database on Linux.
For database upgrade see
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14238/preup.htm#sthref52
Step 3) is described step-by-step here:
http://www.oracle.com/technology/pub/articles/chan_sing2rac_install.html -
Hi
I am new to J2me technology. i downloaded cldc and midp. i have jdk already installed at c:\program files\java\jdk.
when i try to compile i got error saying not able to find javax.microedition.midlet.* package
please tell me how to install cldc and midp to run my first programHello
I would suggest using an IDE for writing the code (like eclipse maybe) and testing it on Sun's Wireless Toolkit which comes already with all the needed libraries.
Of course you can find all this information by searching google..
Mihai -
Not able to compile .pll or .fmb through installation file in R12 Upgrade.
While compiling .pll or .fmb individually using this command
1. frmcmp_batch module=$AU_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmb userid=apps/appla1na output_file=$XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmx compile_all=special batch=yes
OR
2.frmcmp_batch module=XXIB_I10_EXT_SEARCH.fmb userid=apps/appla1na output_file=$XXIB_TOP/forms/US/XXIB_I10_EXT_SEARCH.fmx compile_all=special
The file gets compiled and .plx & .fmx is generated.
Same command in .install file doesnt get compiled. Sample given below
# +======================================================================+
# Generation of English Forms
# +======================================================================+
echo "------------------------------- " | tee -a $LOG_FILE
echo "Generating Forms in English ... " | tee -a $LOG_FILE
echo "------------------------------- \n" | tee -a $LOG_FILE
export FORMS_PATH=$AU_TOP/resource:$AU_TOP/forms/US:$XXIB_TOP/forms/US:$FORMS_PATH
#exportFORMS60_PATH=$XXIB_TOP/forms/US:$AU_TOP/resource:$XXIB_TOP/resource:$AU_TOP/forms/US:$FORMS60_PATH
rmf $XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmx
#commented out for R12 Upgrade by KISHAN WIPRO
#f60gen $XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmb $APPS_LOGIN_ID Compile_All=YES output_file=$XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmx >> $LOG_FILE 2>> $LOG_FILE
#command used to compile in R12
frmcmp_batch module=$AU_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmb userid=$APPS_LOGIN_ID output_file=$XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmx compile_all=special batch=yes
if [ $? -eq 0 ];
then
echo "Billed Accounts Level Form Generation successful. " | tee -a $LOG_FILE
else
echo "Billed Accounts Level Form Generation failed. \n Please check the log file for error details and re-run." | tee -a $LOG_FILE
exit 1
fi
Need some help urgent
Contact me @ [email protected]
Edited by: 862540 on Oct 2, 2011 11:23 PMHi,
I have tried it, by inserting it before the form compilation code the echo command works , but then while compilation it gives me an error as file not found . This file XXIB_I10_BA_BALEVEL.fmb is existing in the given path . Is it a problem with the userid being given so. As i am able to compile the file individually(During individual compilation i have hard coded the username and password), not through a installlation file . Have even checked the FORMS_PATH even thats right .
Command used in installation file :
# +======================================================================+
echo "------------------------------- " | tee -a $LOG_FILE
echo "Generating Forms in English ... " | tee -a $LOG_FILE
echo "------------------------------- \n" | tee -a $LOG_FILE
export FORMS_PATH=$AU_TOP/resource:$AU_TOP/forms/US:$XXIB_TOP/forms/US:$FORMS_PATH
#export FORMS60_PATH=$XXIB_TOP/forms/US:$AU_TOP/resource:$XXIB_TOP/resource:$AU_TOP/forms/US:$FORMS60_PATH
rmf $XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmx
#commented out for R12 Upgrade by KISHAN WIPRO
#f60gen $XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmb $APPS_LOGIN_ID Compile_All=YES output_file=$XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmx >> $LOG_FILE 2>> $LOG_FILE
echo "Starting with compilation of English Form BA_BALEVEL"
frmcmp_batch module=XXIB_I10_BA_BALEVEL.fmb userid=$APPS_LOGIN_ID output_file=$XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmx compile_all=special
if [ $? -eq 0 ];
then
echo "Billed Accounts Level Form Generation successful. " | tee -a $LOG_FILE
else
echo "Billed Accounts Level Form Generation failed. \n Please check the log file for error details and re-run." | tee -a $LOG_FILE
exit 1
fi
Not able to diagonis the error .
Regards
KISHAN.M.G -
Not able to compile from command prompt
Hi,
I have a javafx class which calls java object. I'm able to compile project from NetBeans but not from command prompt.
When i compile from command prompt compiler shows error saying it can not identify symbol (treats java class name as symbol).
I have already compiled my java class, and is in same dir as my java fx class.
Any reason for such beahviour?? and some solution plsssimport java.lang.Math;
import javafx.application.*;
import javafx.input.*;
import javafx.scene.*;
import java.lang.System;
import com.sun.javafx.runtime.sequence.*;
import java.util.Iterator;
import dekoh.photo.command.ImageService;
public class ImageRotater extends CustomNode{
public attribute image: Image;
public attribute x: Number;
public attribute y: Number;
public attribute angle: Number;
private attribute startX: Number = 0.0;
private attribute startY: Number = 0.0;
private attribute startA: Number = 0.0;
private attribute moverOpacity: Number;
private attribute rotatorOpacity: Number;
private function toggle(mo:Boolean, ro:Boolean): Void {
moverOpacity = if (mo) 0.5 else 0.0;
rotatorOpacity = if (ro) 0.5 else 0.0;
public function create(): Node {
var cx = image.width / 2.0;
var cy = image.height / 2.0;
var mover = Circle {
cursor: Cursor.CROSSHAIR,
radius: 20,
centerX: cx, centerY: cy,
anchorX: bind x + cx,
anchorY: bind y + cy,
fill: bind Color.rgb(200, 200, 255, moverOpacity),
onMouseMoved: function(e:MouseEvent):Void {
toggle(true,false);
onMouseExited: function(e:MouseEvent):Void {
toggle(false,false);
onMousePressed: function(e:MouseEvent):Void {
toggle(true,false);
startX = e.getStageX();
startY = e.getStageY();
onMouseDragged: function(e:MouseEvent):Void {
toggle(true,false);
x = x + e.getStageX() - startX;
y = y + e.getStageY() - startY;
startX = e.getStageX();
startY = e.getStageY();
var rotator = ShapeSubtract {
cursor: Cursor.HAND,
fill: bind Color.rgb(200, 200, 255, rotatorOpacity),
onMouseExited: function(e:MouseEvent):Void {
toggle(false,false);
a: Circle {
centerX: cx, centerY: cy, radius: mover.radius * 3.0,
b: Circle {
centerX: cx, centerY: cy, radius: mover.radius,
var border = Rectangle{
width: image.width, height: image.height
arcWidth: 20, arcHeight: 20,
return Group {
anchorX: cx, anchorY: cy,
rotate: bind angle,
translateX: bind x,
translateY: bind y,
content: [ ImageView {
clip: border,
image: image, clipAntialiased: true,
}, DelegateShape {
shape: border,
stroke: Color.rgb(200, 200, 200, 1.0), strokeWidth: 4,
}, rotator, mover ]
var contents:ImageRotater[] = [];
var i = 0;
var urls = ImageService.getUrlList(); // calling static method of java class
var j=0;
while(j<urls.size()){
var img:Images = urls.get(j) as Images; // another java class.
var imgRot = ImageRotater {
image: Image { url: img.getUrl() },
x:img.getX(), y:img.getY(), angle:90
insert imgRot into contents;
j++;
Frame {
title: "JavaFX"
width: 1080, height: 480
visible: true
closeAction: function() {
java.lang.System.exit(0);
stage: Stage {
fill: null
content: contents
On Compiling from command prompt
F:\dekohv6\butterfly\installer\samples\picApp\src\dekoh\photo\command>javafxc ImageRotater.fx
ImageRotater.fx:17: cannot find symbol
symbol : class ImageService
location: package dekoh.photo.command
import dekoh.photo.command.ImageService;
^
ImageRotater.fx:115: cannot find symbol
symbol : variable ImageService
location: class dekoh.photo.command.ImageRotater
var urls = ImageService.getUrlList();
^
ImageRotater.fx:118: cannot find symbol
symbol : variable Images
location: class dekoh.photo.command.ImageRotater
var img:Images = urls.get(j) as Images;
^
ImageRotater.fx:118: cannot find symbol
symbol : variable Images
location: class dekoh.photo.command.ImageRotater
var img:Images = urls.get(j) as Images;
^ -
Not able to compile java program
Hi
I a using Netweaver to deelope the java code.I have written a javaprogram .But when choose the option Run as
a javaApplication it giving the following error
Source locator doesnot Exist:org.eclipse.jdt.debug.ui.javaSourceLocatorHi,
I am able to compile and run perfectly Java programs. The steps goes as:
1. File --> New --> Project --> Java --> Java Project --> give a <project name> --> Finish
2. File --> New --> Class --> give a classname, and package name.
3. Put main method and give a System.out.println("Hello");
Source code:
package com.i3l.trg;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello");
4.Goto Run --> Run As --> 2 Java Application.
5. You will get a output as "Hello" in java console.
Cheers!!!
Sukanta Rudra
PS: Liberally donate points.
The full source code is -
Not able to compile an xml file using jasper reports through jsp page
hi,
i have compiled an xml file and got html,pdf etc using jasperreports but that was from an java application and now i want to convert this application to an jsp page so i have copied these jar files "commons-beanutils-1.5.jar","commons-collections-2.1.jar","commons-digester-1.3.jar","itext-1.01.jar","jasperreports-0.5.2.jar" to the folder "C:\Program Files\Apache Tomcat 4.0\webapps\examples\WEB-INF\lib" and have set classpath to these jar files.
my application(java class invoked by a servlet) is in C:\Program Files\Apache Tomcat 4.0\webapps\examples\WEB-INF\classes.
i m using this API "JasperCompileManager.compileReportToFile(fileName);"
but i m getting following error:
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Invoker service() exception
at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:504)
at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2312)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:536)
root cause
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.apache.commons.digester.Digester.(Digester.java:345)
at dori.jasper.engine.xml.JRXmlDigester.(JRXmlDigester.java:115)
at dori.jasper.engine.xml.JRXmlLoader.prepareDigester(JRXmlLoader.java:446)
at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:384)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:371)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:339)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)
at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:102)
at jasper_interact.file_exporter(jasper_interact.java:44)
at reportcontroller.doGet(reportcontroller.java:59)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:446)
at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2312)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:536)
i have one folder "C:\Program Files\Apache Tomcat 4.0\org\apache\commons\logging" containing some LogFactory calsses but i dont know where to put this folder so that tomcat can find them.
please help me..
i know i may not be clear to u but plz give me some way out i m totally stucked.
manishhi,
thanx for your reply.
ya i have "commons-logging-1.0.2.jar" file but when i tried to put it with other jar files and set the class path and run the application thru tomcat then it automatically stops the tomact.and when i removed this perticular logging jar file then tomcat works normally but gives the error which i mentioned before.
i have also tried the second option u suggested, by putting the LogFactory class files in "C:\Program Files\Apache Tomcat 4.0\webapps\examples\WEB-INF\classes\org\apache\commons\logging" but that was not working.shud i set some classpath for them? or shud i have to import these packages........ but when i copied this folder "org" to C:\Program Files\Apache Tomcat 4.0\webapps\examples\WEB-INF\classes and in program wrote import org.* then copilation error occured "no such package found.
what to do now.
manish -
J2EE app server not able to compile JSP
Hi,
I have just installed J2EE app server and am trying to deploy a JSP. The following error is generated. can anyone help me please.
Thank you,
Deepika.
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
If using an alternate Java compiler, please check its installation and access path.
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:348)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:424)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:448)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:551)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)This is a known issue.
Here's an explanation of the behaviour you are seeing:
The misleading error message is printed only in the case where a javac
compilation error line number cannot be mapped back to a line number
in the JSP source code.
The internal representation of a JSP element ("JSP node") in the JSP compiler
contains the following info:
- The begin line number of the JSP element in the JSP page
- The begin and end line numbers ("range") of the Java code that was
generated for the JSP element
When attempting to map a javac error line number back to the JSP
source line, we determine the range into which the javac error line
number falls, and retrieve the JSP source number of the JSP element
associated with that range.
However, in some cases, it is impossible to trace a javac error line
number back to the JSP element that caused the error. For example,
consider the following scriptlet:
<%
String query = request.getParameter("query");
if(query != null) {
out.println(query);
} else {
out.println("(null)");
// } // <-- !Missing brace syntax error
%>
Since the JSP compiler wraps the generated code into a
try-catch-finally block, the above syntax error in the scriptlet
causes havoc with that try-catch-finally block, and results in 3 javac
errors:
<file>jsp.java:<line1>: 'catch' without 'try'
} catch (Throwable t) {
^
<file>jsp.java:<line2>: 'try' without 'catch' or 'finally'
try {
^
<file>jsp.java:<line3>: '}' expected
Notice that all of the above javac error numbers are outside the range
of the java line numbers corresponding to the scriptlet that caused the
error, and therefore cannot be mapped back to any line numbers in the
JSP page source.
AS 8.0 PE does not handle this case correctly, and prints out the
misleading error message (though the real error message can be found
in the server log).
Notice that this problem is going to be fixed in AS 8.1, so that if a
javac error line number cannot be mapped back to a JSP page line
number, the javac error is still returned to the client.
In AS 8.0 PE, you need to check your server log to find out why the compilation failed.
If you still have any problems, send me your JSP, and I will take a look at it.
Thanks,
Jan
Maybe you are looking for
-
Change page size in PDF (Acrobat 9)
I have created a PDF file and under document properties it says that the default page size is 11.69 x 8.26 in. I want to change this to A3, but cannot find the option or any help on this. The PDF was created using the PDF printer from an application
-
Voice Memos How to email large memo's
I've noticed quite a few people mentioning they take large voice memo's ie: larger than 1 hour. Thanks to loads of older posts I've figured out how to get my 1 1/2 hour memo onto my PC and how to convert it to MP3. But how can I email it??? Zipping d
-
Error in Preview and Print in Crystal Report Viewer 2.0.0.7 in Workstation
Hi Guys, I am encountering a problem when clicking preview and print in Crystal Report Viewer 2.0.0.7. It returns an error Unhandled exception has occurred in your application. If you click Continue the application will ignore and attempt to continue
-
INV.MTL_ONHAND_QUANTITIES
This is an Oracle Apps specific question. I am not sure if this is the right forum. I need to move some inventory from one location to another in the mtl_onhand_quantities table. I belive that I should be using the mtl_transactions_interface to do so
-
Create and Approve leave's either using BAPI or IDoc
Hello Experts, My requirment is to create a leave from my JSP in to SAP(Employee Login), then there will be a approval process where in my manger will approve the leave from his JSP(Manager login). Approach 1: If I use BAPI for this approach what are