Change in JSP error handling in Tomcat5.0??

2005-03-01 Thread Graba, Jan
Hi.

While testing a JSP error page that was working fine 9 months ago, I found that 
the page is not now performing its function.
Instead of displaying an appropriate error message when the associated JSP 
receives alphabetic data instead of the integer data
that it is expecting, an HTTP 500 message saying that the data manipulation JSP 
cannot be displayed is generated by the browser. 

The simple application behaves fine when valid data is entered, and the JSP 
error page itself can be rendered directly (if a
suitable check is made for the implicit object 'exception' being equal to null).

Here is the (very ordinary) error page declaration line in the data 
manipulation JSP:
%@ page errorPage=AdderError.jsp %

Here is the (equally ordinary) associated line in the JSP error page:
%@ page isErrorPage=true %

The only changes that have taken place since I last tested these pages are the 
replacement of Java SDK1.4.2 with SDK1.5.0/5.0 and
the replacement of Tomcat 4.1 with Tomcat 5.0.

It seems highly unlikely that the change of SDK could have led to this problem, 
but I suppose that there may be some change to
Tomcat (or, more likely, version 2.4 of the servlet API) that has passed me by.

Can anybody shed light on the cause of this change in behaviour?

Any assistance would be greatly appreciated.

Cheers.
Jan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JSP Error

2004-02-28 Thread Jack Lauman
I'm trying to deploy a simple JSP(2.0) page with JSTL(1.1) core tags
using Tomcat 5.0.19.  The project was build using eclipse(2.1.2) and
builds and deploys without errors.

Any help resolving this problem would be appreciated.

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

javax.servlet.ServletException: javax/servlet/jsp/tagext/TagExtraInfo
   
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

root cause 

java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo
java.lang.ClassLoader.defineClass0(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:537)
   
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1677)
   
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:900)
   
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1350)
   
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
   
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:453)
   
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:291)
   
org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:205)
   
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458)
   
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523)
   
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
org.apache.jasper.compiler.Parser.parse(Parser.java:171)
   
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:258)
   
org.apache.jasper.compiler.ParserController.parse(ParserController.java:139)
   
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
   
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
   
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
   
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)

note The full stack trace of the root cause is available in the Tomcat
logs.



Apache Tomcat/5.0.19


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jsp error

2004-02-18 Thread xavier manohar
Hello 
  
when i run a jsp file that calls a bean class in its usebean 
function,doesn't responded correctly when i executed it after running tomcat 
alone .However when i started tomcat again after starting apache server the 
jsp file worked correctly .Can any one help me to understand why this 
happens.
Regards 
mano
 




Yahoo! India Insurance Special: Be informed on the best policies, services, tools and 
more.

jsp error

2004-02-18 Thread xavier manohar
Hello 
  
when i run a jsp file that calls a bean class in its usebean 
function,doesn't responded correctly when i executed it after running tomcat 
alone .However when i started tomcat again after starting apache server the 
jsp file worked correctly .Can any one help me to understand why this 
happens.
Regards 
mano
 





Yahoo! India Insurance Special: Be informed on the best policies, services, tools and 
more.

Re: jsp error

2004-02-18 Thread Parsons Technical Services
Mano,

When you say that it runs ok after starting apache, do you also mean you are
accessing it from apache?

What is your setup and OS.

Post your web.xml and any errors.

A similar symptom occurred when the mappings were not correct.

Doug
www.parsonstechnical.com


- Original Message - 
From: xavier manohar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 12:38 PM
Subject: jsp error


 Hello

 when i run a jsp file that calls a bean class in its usebean
 function,doesn't responded correctly when i executed it after running
tomcat
 alone .However when i started tomcat again after starting apache server
the
 jsp file worked correctly .Can any one help me to understand why this
 happens.
 Regards
 mano






 Yahoo! India Insurance Special: Be informed on the best policies,
services, tools and more.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jsp error

2004-02-18 Thread xavier manohar
Hello Doug ,
  I hve not chnged any thing in the web .xml .The context path is 
still the root.
my os is windows 95
regards 
mano

Parsons Technical Services [EMAIL PROTECTED] wrote:
Mano,

When you say that it runs ok after starting apache, do you also mean you are
accessing it from apache?

What is your setup and OS.

Post your web.xml and any errors.

A similar symptom occurred when the mappings were not correct.

Doug
www.parsonstechnical.com


- Original Message - 
From: xavier manohar 

To: 
Sent: Wednesday, February 18, 2004 12:38 PM
Subject: jsp error


 Hello

 when i run a jsp file that calls a bean class in its usebean
 function,doesn't responded correctly when i executed it after running
tomcat
 alone .However when i started tomcat again after starting apache server
the
 jsp file worked correctly .Can any one help me to understand why this
 happens.
 Regards
 mano






 Yahoo! India Insurance Special: Be informed on the best policies,
services, tools and more.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Yahoo! India Insurance Special: Be informed on the best policies, services, tools and 
more.

Re: jsp error

2004-02-18 Thread Parsons Technical Services
Mano,

Please post the URLs that you are using to access the server. One with
apache started and the one when Tomcat is running alone.

Doug
- Original Message - 
From: xavier manohar [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 12:57 PM
Subject: Re: jsp error


 Hello Doug ,
   I hve not chnged any thing in the web .xml .The context
path is still the root.
 my os is windows 95
 regards
 mano

 Parsons Technical Services [EMAIL PROTECTED] wrote:
 Mano,

 When you say that it runs ok after starting apache, do you also mean you
are
 accessing it from apache?

 What is your setup and OS.

 Post your web.xml and any errors.

 A similar symptom occurred when the mappings were not correct.

 Doug
 www.parsonstechnical.com


 - Original Message - 
 From: xavier manohar

 To:
 Sent: Wednesday, February 18, 2004 12:38 PM
 Subject: jsp error


  Hello
 
  when i run a jsp file that calls a bean class in its usebean
  function,doesn't responded correctly when i executed it after running
 tomcat
  alone .However when i started tomcat again after starting apache server
 the
  jsp file worked correctly .Can any one help me to understand why this
  happens.
  Regards
  mano
 
 
 
 
 
 
  Yahoo! India Insurance Special: Be informed on the best policies,
 services, tools and more.



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 Yahoo! India Insurance Special: Be informed on the best policies,
services, tools and more.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jsp error

2004-02-18 Thread Parsons Technical Services
Mano,

Sorry for the delay. Beans and Struts is something that I haven't touched
yet. There was a thread I was involved in on servlets that could only be
accessed when going thru Apache. It turned out to be a configuration issue
on the mappings in the web.xml . There is a section on configuration on
Struts at:

http://jakarta.apache.org/struts/userGuide/building_controller.html#config

And there are some mapping that have to be done for the initial setup.

I did run across this at:
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/package-summary.html#package_description

You must use jsp:useBean to introduce a reference to an existing bean, if
you wish to reference that bean with other standard JSP tags (such as
jsp:getProperty or jsp:setProperty).

At this point all I can do is refer you back to the list.
Anyone else??

Doug



- Original Message - 
From: xavier manohar [EMAIL PROTECTED]
To: Parsons Technical Services [EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 3:10 PM
Subject: Re: re :jsp error


 This is the code
 jsp is stored in root directory
 jsp:setProperty name=mybean  property=uname   /

 jsp:getProperty name=mybean property=uname  /

 class file is stored classes in web inf of the root directory
 name.class
 public class Name
 {
 private String uname;
 public Name()
 {
 uname=null;
 }
 public void setUname(String uname)
 {
 this.uname=uname;
 }
 public String getUname()
 {
 return uname;
 }
 }
 mano
 Parsons Technical Services [EMAIL PROTECTED] wrote:
 This gives clarification that you are accessing the servers as expected.

 Post the syntax of the line in the jsp that calls the class.
 Post where this class is stored.


 - Original Message - 
 From: xavier manohar

 To: Parsons Technical Services

 Sent: Wednesday, February 18, 2004 2:49 PM
 Subject: Re: re :jsp error


  Hello Doug ,
  I am using the default port for tomcat
 http://localhost:8080/.default directory is root.for apache I am using
port
 80 the default port number
  can this add any thing to the question
  mano
 
 
  Parsons Technical Services
 wrote:
  Apache
  http://localhost/myapp/mypage.jsp
  http://xxx.xxx.xxx.xxx/myapp/mypage.jsp
  If application is in root:
  http://localhost/mypage.jsp
  http://xxx.xxx.xxx.xxx/mypage.jsp
 
 
  Tomcat
  http://localhost:8080/myapp/mypage.jsp
  http://xxx.xxx.xxx.xxx:/myapp/mypage.jsp
  If application is in root:
  http://localhost:8080/mypage.jsp
  http://xxx.xxx.xxx.xxx:/mypage.jsp
 
  xxx.xxx.xxx.xxx is IP of machine that is running Tomcat or Apache
   is port that Tomcat is listening on. 8080 is default.
  myapp is the name of your application. Not needed if app is running in
 root
  context.
  mypage is the name of the page you are trying to load.
 
  Okay list, did I get all of this right??
 
  To get to my server I use http://172.16.1.1:8080/golf
  This loads the index page.
  http://172.16.1.1:8080/golf/scores.jsp loads the scores jsp page.
  I am running Tomcat on the default port.
 
  Doug
 
  - Original Message - 
  From: xavier manohar
 
  To:
 
  Sent: Wednesday, February 18, 2004 2:18 PM
  Subject: re :jsp error
 
 
   Hello Doug,
   I don't know what the url u mean .pls let me know some
  example.
   mano
  
   Yahoo! India Insurance Special: Be informed on the best policies,
  services, tools and more.
 
 
  Yahoo! India Insurance Special: Be informed on the best policies,
 services, tools and more.


 Yahoo! India Insurance Special: Be informed on the best policies,
services, tools and more.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Insufficient Error messages on jsp error

2004-02-02 Thread Lukas sterreicher
Hello.

Since I upgraded to Tomcat 5 it's been bugging me that on errors in jsp files
(I think both compile and runtime) I just get an error like:

[ServletException in:/programtracklist.jsp] null' 

and

2004-01-16 14:58:44 ApplicationDispatcher[/yarf] Servlet.service() for servlet jsp 
threw exception
java.lang.ThreadDeath
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1253)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1213)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at org.apache.log4j.spi.LoggingEvent.init(LoggingEvent.java:145)
at org.apache.log4j.Category.forcedLog(Category.java:372)

in the logfile, wheras in Tomcat 4 on exactly the same error it gives the following 
error
that one can work with to fix the error:

[ServletException in:/programtracklist.jsp] Unable to compile class for JSP An error 
occurred at line: 162 in the jsp file: /programtracklist.jsp Generated servlet error: 
[javac] Compiling 1 source file E:\Programme\Apache Group\Tomcat 
4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot resolve 
symbol 
symbol : method setValue (int) location: class org.apache.struts.taglib.html.HiddenTag 
_jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track()); ^ 1 
error ' 

2004-01-16 15:03:08 Error compiling file: E:\Programme\Apache Group\Tomcat 
4.1\work\Standalone\localhost\yarf\/programtracklist_jsp.java [javac] Compiling 1 
source file

E:\Programme\Apache Group\Tomcat 
4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot resolve symbol
symbol  : method setValue (int)
location: class org.apache.struts.taglib.html.HiddenTag
  _jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track());
^
1 error

2004-01-16 15:03:08 ApplicationDispatcher[/yarf] Servlet.service() for servlet jsp 
threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 162 in the jsp file: /programtracklist.jsp

Generated servlet error:
[javac] Compiling 1 source file

E:\Programme\Apache Group\Tomcat 
4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot resolve symbol
symbol  : method setValue (int)
location: class org.apache.struts.taglib.html.HiddenTag
  _jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track());
^
1 error


at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)


Can you tell me why this is?
Is it possible to configure tomcat 5 to display an error message
as before in Tomcat 4?

Thanx in Advance,
Lukas sterreicher



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Insufficient Error messages on jsp error

2004-02-02 Thread Daniel Gibby
Maybe this has to do with the level of debug you have on.

Daniel Gibby

Lukas sterreicher wrote:

Hello.

Since I upgraded to Tomcat 5 it's been bugging me that on errors in jsp files
(I think both compile and runtime) I just get an error like:
[ServletException in:/programtracklist.jsp] null' 

and

2004-01-16 14:58:44 ApplicationDispatcher[/yarf] Servlet.service() for servlet jsp 
threw exception
java.lang.ThreadDeath
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1253)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1213)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at org.apache.log4j.spi.LoggingEvent.init(LoggingEvent.java:145)
at org.apache.log4j.Category.forcedLog(Category.java:372)
in the logfile, wheras in Tomcat 4 on exactly the same error it gives the following 
error
that one can work with to fix the error:
[ServletException in:/programtracklist.jsp] Unable to compile class for JSP An error occurred at line: 162 in the jsp file: /programtracklist.jsp Generated servlet error: 
[javac] Compiling 1 source file E:\Programme\Apache Group\Tomcat 4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot resolve symbol 
symbol : method setValue (int) location: class org.apache.struts.taglib.html.HiddenTag _jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track()); ^ 1 
error ' 

2004-01-16 15:03:08 Error compiling file: E:\Programme\Apache Group\Tomcat 4.1\work\Standalone\localhost\yarf\/programtracklist_jsp.java [javac] Compiling 1 
source file

E:\Programme\Apache Group\Tomcat 
4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot resolve symbol
symbol  : method setValue (int)
location: class org.apache.struts.taglib.html.HiddenTag
 _jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track());
   ^
1 error
2004-01-16 15:03:08 ApplicationDispatcher[/yarf] Servlet.service() for servlet jsp 
threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 162 in the jsp file: /programtracklist.jsp

Generated servlet error:
   [javac] Compiling 1 source file
E:\Programme\Apache Group\Tomcat 
4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot resolve symbol
symbol  : method setValue (int)
location: class org.apache.struts.taglib.html.HiddenTag
 _jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track());
   ^
1 error
at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
Can you tell me why this is?
Is it possible to configure tomcat 5 to display an error message
as before in Tomcat 4?
Thanx in Advance,
Lukas sterreicher


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Insufficient Error messages on jsp error

2004-02-02 Thread Martin Gainty
Dan
I would recommend setting up an ANT http://ant.apache.org/ script with
jsp-precompiling right after you freshen source from source control (and
before general java compile step)..this is an absolutely necessary
methodology you should utilise if you will be doing enterprise wide
development.
For that reason I use IDEs for incremental local builds only.
Regards,
Martin
P.S.
Offline topic for Dan-What did you think of the Monster ad during the
Superbowl??

- Original Message -
From: Daniel Gibby [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 02, 2004 3:20 PM
Subject: Re: Insufficient Error messages on jsp error


 Maybe this has to do with the level of debug you have on.

 Daniel Gibby

 Lukas sterreicher wrote:

 Hello.
 
 Since I upgraded to Tomcat 5 it's been bugging me that on errors in jsp
files
 (I think both compile and runtime) I just get an error like:
 
 [ServletException in:/programtracklist.jsp] null'
 
 and
 
 2004-01-16 14:58:44 ApplicationDispatcher[/yarf] Servlet.service() for
servlet jsp threw exception
 java.lang.ThreadDeath
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1253)
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1213)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
  at org.apache.log4j.spi.LoggingEvent.init(LoggingEvent.java:145)
  at org.apache.log4j.Category.forcedLog(Category.java:372)
 
 in the logfile, wheras in Tomcat 4 on exactly the same error it gives the
following error
 that one can work with to fix the error:
 
 [ServletException in:/programtracklist.jsp] Unable to compile class for
JSP An error occurred at line: 162 in the jsp file: /programtracklist.jsp
Generated servlet error:
 [javac] Compiling 1 source file E:\Programme\Apache Group\Tomcat
4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot
resolve symbol
 symbol : method setValue (int) location: class
org.apache.struts.taglib.html.HiddenTag
_jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track()); ^ 1
 error '
 
 2004-01-16 15:03:08 Error compiling file: E:\Programme\Apache
Group\Tomcat 4.1\work\Standalone\localhost\yarf\/programtracklist_jsp.java
[javac] Compiling 1
 source file
 
 E:\Programme\Apache Group\Tomcat
4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot
resolve symbol
 symbol  : method setValue (int)
 location: class org.apache.struts.taglib.html.HiddenTag
 
_jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track());
 ^
 1 error
 
 2004-01-16 15:03:08 ApplicationDispatcher[/yarf] Servlet.service() for
servlet jsp threw exception
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 An error occurred at line: 162 in the jsp file: /programtracklist.jsp
 
 Generated servlet error:
 [javac] Compiling 1 source file
 
 E:\Programme\Apache Group\Tomcat
4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot
resolve symbol
 symbol  : method setValue (int)
 location: class org.apache.struts.taglib.html.HiddenTag
 
_jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track());
 ^
 1 error
 
 
  at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:120)
  at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
  at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
 
 
 Can you tell me why this is?
 Is it possible to configure tomcat 5 to display an error message
 as before in Tomcat 4?
 
 Thanx in Advance,
 Lukas sterreicher
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jasper2 ant task does not report JSP error descriptions

2003-12-10 Thread Rodrigo Ruiz
Hi all,

I am trying to use the jasper2 task that comes with Tomcat. In 4.1.12 
version, when I had an error, it reported something similar to:

An error occurred at line: 15 in the jsp file: /NewUser.jsp

Generated servlet error:
   [javac] Compiling 1 source file
C:\project\genjsp\index_jsp.java:53: illegal start of expression
  }
  ^
But with 4.1.27, it changed and now it just reports:

 [jasper2] Compile failed; see the compiler error output for details.
 [jasper2] at 
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:844)
 [jasper2] at 
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
 ...

But no compiler error output is generated anywhere :_(

Can this be fixed? Maybe the taskdef example that comes in the javadoc 
comments of the class (org.apache.jasper.JspC) is not totally correct? 
Last time I checked the ant jspc task, it didn't compile the generated 
servlets, so it was unable to tell which JSP line contained the error.

Thanks in advance,
Rodrigo Ruiz
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Unable to compile class for JSP error in Tomcat 5.0.7

2003-08-14 Thread John Cavacas
Hi,

This is my first time trying Tomcat 5.0.7, i'm already familiar with tomcat 4.

I tried to run a simple JSP, then the Struts struts-blank.war application, 
and i keep getting this error:

org.apache.jasper.JasperException: Unable to compile class for JSP
..snip..
java.lang.IllegalArgumentException: -1

org.apache.jasper.compiler.SmapStratum$LineInfo.setOutputLineIncrement(SmapStratum.java:124)
...snip..
I've looked in bugzilla for a bug report, but didn't find anything related 
to this.

I just recently upgraded to JDK 1.4.2, but I'm not experiencing any 
problems with any other Java related application.

Any help or insight would be appreciated.

Thanks,
John
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


SERVLET-JSP ERROR

2003-02-22 Thread A.Ezhil
hi,

when i try to run a JSP file for my application ,i am getting servlet jsp currently 
unavailable.


i am using tomcat4.0 ,linux8.0...

is it anything problem with jar files in lib directory..

pls help me at earliest...
 thank u
ezhil.a


wrestling with JSP error page

2003-02-21 Thread jeff . guttadauro
Hi, all.

I'm finding that the JSP errorPage directive has a serious flaw. 
Perhaps others out there have run into this and been as frustrated as I am 
and hopefully come up with some solution...?  The flaw is that, if the 
response has already been committed, then the error page is just plopped 
into the response where the error occurred - it has no way that I see of 
generating a fresh response with just the error page content.  Then the 
problem is that, depending on where the original page died, the error page 
content may not get displayed if it's caught inside some HTML tag where 
the browser can't figure out how to render it. 

Just as an example of this which I've seen, say you have a select 
dropdown list populated from some List request attribute, so you output 
select and then go to iterate through the List.  Now, say the List is 
null, and a NullPointerException is thrown, the errorPage content gets put 
into the response right after the select tag and the browser doesn't 
display it.  (You can see it if you do View - Source, but this obviously 
defeats the purpose.)

This is quite annoying, and I'm amazed that this mechanism still 
hasn't been improved.  I searched for solutions to this, but the only 
thing I could really find was using another framework like Velocity which 
buffers the whole response and therefore can generate a completely 
different one if an exception occurs at any step of the way. 
Unfortunately, learning another framework just isn't in the cards.

Does anyone know of a way, besides maybe making the buffer size 
really huge, to get around this problem?  Would a Filter on the response 
help with this?  How would something like that work?  (Never written/used 
a Filter before)

Thanks!
-Jeff 

Re: wrestling with JSP error page

2003-02-21 Thread Will Hartung
 From: jeff.guttadauro@xx
 Sent: Friday, February 21, 2003 11:54 AM
 Subject: wrestling with JSP error page


 Does anyone know of a way, besides maybe making the buffer size
 really huge, to get around this problem?  Would a Filter on the response
 help with this?  How would something like that work?  (Never written/used
 a Filter before)

What would you recommend? It's a generic mechanism. The problem you're
seeing is that content is already on its way down the socket and can't be
stopped, so you get your error within your code. HTTP doesn't support a Oh,
Wait, just kidding, here's what I REALLY wanted to say mode. It's fairly
stupid protocol that way.

How big a buffer do you need? What if Tomcat is streaming down a huge PDF
file and hits some kind of resource limit mid stream? Yuck!

Perhaps a better solution would be to restructure your code so that anything
that might throw an exception is done before you actually start streaming
the result. Granted, that's a lot more work.

However, setting the buffer size larger is legitimate, and perhaps something
you can do for development (no doubt your exception will Never Happen
Again). Set it to something more realistic for your application.

Regards,

Will Hartung
(willh@x)




-
To unsubscribe, e-mail: tomcat-user-unsubscribe@xx
For additional commands, e-mail: tomcat-user-help@xx



Invalid JSP Error When Trying to View Source

2003-02-03 Thread John Dapper
Can anyone help me rectify an invalid JSP file error?

I am getting an invalid JSP error when trying to view the JSP example
source code through my browser.  After starting Tomcat, I am navigating
from the Tomcat welcome/index.jsp page through to view source of any
of the jsp examples( e.g.
http://localhost:8080/examples/jsp/source.jsp?/jsp/num/numguess.jsp).  

I have installed Tomcat 4.1.18 binaries on win2k.  I have JAVA_HOME set
to my jdk 1.3.1_06 directory, and have NOT set any other environment
variables. 

The error comes back on a web page titled HTTP Status 500 -  and the
exeption contents are:



org.apache.jasper.JasperException: Invalid JSP file
/jsp/num/numguess.jsp
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:248)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:493)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:43
2)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:53
4)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:530)
at java.lang.Thread.run(Thread.java:479)


root cause 

javax.servlet.ServletException: Invalid JSP file /jsp/num/numguess.jsp
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:530)
at org.apache.jsp.source_jsp._jspService(source_jsp.java:66)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:204)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193

RE: Invalid JSP Error When Trying to View Source

2003-02-03 Thread Filip Hanik
http://localhost:8080/examples/jsp/num/numguess.txt

Filip

-Original Message-
From: John Dapper [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 8:52 AM
To: [EMAIL PROTECTED]
Subject: Invalid JSP Error When Trying to View Source


Can anyone help me rectify an invalid JSP file error?

I am getting an invalid JSP error when trying to view the JSP example
source code through my browser.  After starting Tomcat, I am navigating
from the Tomcat welcome/index.jsp page through to view source of any
of the jsp examples( e.g.
http://localhost:8080/examples/jsp/source.jsp?/jsp/num/numguess.jsp).  

I have installed Tomcat 4.1.18 binaries on win2k.  I have JAVA_HOME set
to my jdk 1.3.1_06 directory, and have NOT set any other environment
variables. 

The error comes back on a web page titled HTTP Status 500 -  and the
exeption contents are:



org.apache.jasper.JasperException: Invalid JSP file
/jsp/num/numguess.jsp
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:248)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:493)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:43
2)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:53
4)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:530)
at java.lang.Thread.run(Thread.java:479)


root cause 

javax.servlet.ServletException: Invalid JSP file /jsp/num/numguess.jsp
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:530)
at org.apache.jsp.source_jsp._jspService(source_jsp.java:66)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:204)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853

Re: Invalid JSP Error When Trying to View Source

2003-02-03 Thread Justin Ruthenbeck

John --

I'm not entirely sure what you're doing, but I'm guessing source.jsp is 
supposed to return plain text of the jsp specified as the 
argument.  Assuming you can correctly access:

http://localhost:8080/examples/jsp/source.jsp

without problems, then your setup is ok.  As for your source viewing 
problem, since you're getting a jasper exception mentioning numguess.jsp, 
it looks like Tomcat is trying to serve up that jsp instead of source.jsp 
as intended.

Try changing the url to look something like:

http://localhost:8080/examples/jsp/source.jsp?jspsrc=jsp.num.numguess

In source.jsp, get the value of parameter jspsrc and parse it to 
reconstruct the actual path of the argument jsp file.  This may not be 
necessary, but I don't in general play around with potentially ambiguous 
characters in parameters.  I'm assuming you already know how to locate that 
file and get the source for it, so I won't go into that.

Hope that helps...
justin


At 08:52 AM 2/3/2003, you wrote:
Can anyone help me rectify an invalid JSP file error?

I am getting an invalid JSP error when trying to view the JSP example
source code through my browser.  After starting Tomcat, I am navigating
from the Tomcat welcome/index.jsp page through to view source of any
of the jsp examples( e.g.
http://localhost:8080/examples/jsp/source.jsp?/jsp/num/numguess.jsp).

I have installed Tomcat 4.1.18 binaries on win2k.  I have JAVA_HOME set
to my jdk 1.3.1_06 directory, and have NOT set any other environment
variables.

The error comes back on a web page titled HTTP Status 500 -  and the
exeption contents are:



org.apache.jasper.JasperException: Invalid JSP file
/jsp/num/numguess.jsp
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:248)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)




Justin Ruthenbeck
Software Engineer, NextEngine Inc.
[EMAIL PROTECTED]
Confidential -
   See http://www.nextengine.com/confidentiality.php



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




how to get meaningful exception in JSP error page

2003-01-02 Thread Brian W. Young
Happy New Year,

I'm using the errorPage=my_own_error.jsp technique.

However, the exception object in my_own_error.jsp gives me the only 
the Jasper stack trace.  It doesn't include info on what part of my own 
code bombed.  I've tried getCause() on exception but it isn't yielding much.

I basically want the bottom most part of the trace that tomcat shows on 
its own interal error page (the one you get before you use the errorPage 
directive)

Thanks for your pointers.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: how to get meaningful exception in JSP error page

2003-01-02 Thread Bill Barker
As it happens, JasperException (at least in 4.1 Jasper2) subclasses
ServletException.  You should be able to get this by casting to a
ServletException and calling getRootCause().

Brian W. Young [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Happy New Year,

 I'm using the errorPage=my_own_error.jsp technique.

 However, the exception object in my_own_error.jsp gives me the only
 the Jasper stack trace.  It doesn't include info on what part of my own
 code bombed.  I've tried getCause() on exception but it isn't yielding
much.

 I basically want the bottom most part of the trace that tomcat shows on
 its own interal error page (the one you get before you use the errorPage
 directive)

 Thanks for your pointers.





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




How to see JSP error messages while tomcat is running

2002-11-15 Thread Steven Peterson
I recently upgraded from tomcat 3 to tomcat 4.1.12 and am having trouble
debugging new jsp pages as I add them.  Whereas tomcat 3 would send the
error output of a jsp to the html page (making it easy to identify the
problem, fix it, and test it again), tomcat 4 sends the output to the
context's log file.  This would not be so bad, but the log file is
locked by my operating system (Windows 98 se) until tomcat is shutdown.
The upshot is that for every error, I have to shut down tomcat to see
what the error was.  Is there any way to see the error output of a jsp
page without shutting down tomcat either by a) having the output sent to
the html stream; or b) having the log file accessible while tomcat is
running; or c) . . . ?

Thanks,

- Steve Peterson

--
Steven Peterson, President
Frontier Productions, Inc.
310 Wesley Drive
Chapel Hill, NC 27516
http://www.frontierproductions.net
Tel: 919-942-1386
Fax: 919-933-2677



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: How to see JSP error messages while tomcat is running

2002-11-15 Thread Paul Legato
Steven Peterson wrote:

what the error was.  Is there any way to see the error output of a jsp
page without shutting down tomcat either by a) having the output sent to
the html stream; or b) having the log file accessible while tomcat is
running; or c) . . . ?



If you do your development on a Linux or Unix box, you can do b) with 
tail -f logfile while Tomcat's running and writing to the file.

As far as I know, there's no way around the questionable file locking 
semantics implemented in Windows

-Paul




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: How to see JSP error messages while tomcat is running

2002-11-15 Thread John O'Hara


If you do your development on a Linux or Unix box, you can do b) with 
tail -f logfile while Tomcat's running and writing to the file.

As far as I know, there's no way around the questionable file locking 
semantics implemented in Windows

-Paul


If you install Cygwin on a Win32 machine, you can get tail -f to work under 
Windows as well.  In fact, it is part of the default installation I 
believe.  I have done this and it works beautifully.

Regards,
John


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



JSP error handling

2002-11-06 Thread Jan Kunzmann
Hi there,

I've a problem with JSP error handling.

I tried to make custom error pages with the
% page errorPage=... % element. If an error occurs during the 
execution of my jsp page, the error page is called, but the 
javax.servlet.error.* attributes do not contain any values.

I looked into the Tomcat 4.0 source and found a valve called 
ErrorDispatcherValve. Has it something to do with jsp error handling? I 
tried to include the valve with Valve... and with Host 
errorReportingValve=, but the error page still reports the attributes 
to be null.

I use Tomcat 4.0.4 from the Debian distribution with marginal chances in 
server.xml.

Thanks in advance,
Jan


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: JSP error handling

2002-11-06 Thread Ricardo Moral
There are two valves used to handle errors. The first
one is the ErrorDispatcherValve. This is the valve
that will forward the request to the error page if
there is a uncaught exception. The second valve is the
ErrorReportValve wich is the last valve on the list of
valves of a Host and is used to generate a error
report in HTML. 

You don't need to add this valves by hand because they
are added by the start method of the StandardHost
implementation. If you are using other implementation
of the Host interface you must add this valves
yourself.

The exception of JSP's are stored under the attibute
'javax.servlet.jsp.jspException' of the request. But
you must access this value directly using the
'exception' variable already declared on the context
of the error page.


--- Jan Kunzmann [EMAIL PROTECTED] wrote:
 Hi there,
 
 I've a problem with JSP error handling.
 
 I tried to make custom error pages with the
 % page errorPage=... % element. If an error
 occurs during the 
 execution of my jsp page, the error page is called,
 but the 
 javax.servlet.error.* attributes do not contain any
 values.
 
 I looked into the Tomcat 4.0 source and found a
 valve called 
 ErrorDispatcherValve. Has it something to do with
 jsp error handling? I 
 tried to include the valve with Valve... and with
 Host 
 errorReportingValve=, but the error page still
 reports the attributes 
 to be null.
 
 I use Tomcat 4.0.4 from the Debian distribution with
 marginal chances in 
 server.xml.
 
 Thanks in advance,
 Jan
 
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: JSP error handling

2002-11-06 Thread Kris Schneider
If the errorPage attribute references another JSP, make sure that page has:

%@ page isErrorPage=true %

Otherwise, attempting to use the implicit exception object *should* result in 
an error.

I'm guessing that the javax.servlet.error.* request attributes will only get 
populated if you make use of web.xml error pages. In other words, no errorPage 
attribute in the page directive but an error-page entry in web.xml for the 
appropriate exception type.

Quoting Ricardo Moral [EMAIL PROTECTED]:

 There are two valves used to handle errors. The first
 one is the ErrorDispatcherValve. This is the valve
 that will forward the request to the error page if
 there is a uncaught exception. The second valve is the
 ErrorReportValve wich is the last valve on the list of
 valves of a Host and is used to generate a error
 report in HTML. 
 
 You don't need to add this valves by hand because they
 are added by the start method of the StandardHost
 implementation. If you are using other implementation
 of the Host interface you must add this valves
 yourself.
 
 The exception of JSP's are stored under the attibute
 'javax.servlet.jsp.jspException' of the request. But
 you must access this value directly using the
 'exception' variable already declared on the context
 of the error page.
 
 
 --- Jan Kunzmann [EMAIL PROTECTED] wrote:
  Hi there,
  
  I've a problem with JSP error handling.
  
  I tried to make custom error pages with the
  % page errorPage=... % element. If an error
  occurs during the 
  execution of my jsp page, the error page is called,
  but the 
  javax.servlet.error.* attributes do not contain any
  values.
  
  I looked into the Tomcat 4.0 source and found a
  valve called 
  ErrorDispatcherValve. Has it something to do with
  jsp error handling? I 
  tried to include the valve with Valve... and with
  Host 
  errorReportingValve=, but the error page still
  reports the attributes 
  to be null.
  
  I use Tomcat 4.0.4 from the Debian distribution with
  marginal chances in 
  server.xml.
  
  Thanks in advance,
  Jan
  
  
  --
  To unsubscribe, e-mail:  
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
  
 
 
 __
 Do you Yahoo!?
 HotJobs - Search new jobs daily now
 http://hotjobs.yahoo.com/
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 


-- 
Kris Schneider mailto:kris;dotech.com
D.O.Tech   http://www.dotech.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: JSP Error

2002-01-30 Thread Satish Reddy

Hi,
I have checked the permissions, I have Read permissions for every one
for the files in the webapps directory. I have tried to access the tomcat
directly on port 8080, but i see The Page cannot be displayed page under IE.
Do you think I have to change any configuration to access.

thank you,
Satish.

- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, January 29, 2002 3:15 PM
Subject: RE: JSP Error


 I believe this usually turns out to be a permissions issue.
 Make sure the user under which Tomcat is running has permission
 to read the webapp directories.  You can also try accessing
 Tomcat directly on port 8080 to see if behavior is different
 from accessing through Apache.

 Cheers,
 Larry

  -Original Message-
  From: Satish Reddy [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 29, 2002 2:02 PM
  To: Tomcat
  Subject: JSP Error
 
 
  Hi All,
  I am having problems running JSP using tomcat3.3a with
  Apache1.3.12. on linux. I am able to run the same JSP on
  Windows without any problems.
 
  When I tried to run the example JSP. I get this following error.
 
  2002-01-29 12:59:26 - Ctx(/EM) : Exception in R( /examples +
  /jsp/num/numguess.jsp + null)
   - org.apache.jasper.compiler.ParseException: Cannot read
  file: /jsp/num/numguess.jsp
  at
  org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
  at
  org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
  at org.apache.jasper.compiler.JspReader.init(Unknown Source)
  at
  org.apache.jasper.compiler.JspReader.createJspReader(Unknown Source)
  at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
  at
  org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
  at
  org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
  at
  org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
  at
  org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
  at
  org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
  at
  org.apache.tomcat.core.ContextManager.service(Unknown Source)
  at
  org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(U
  nknown Source)
  at
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
  at
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
   Source)
  at java.lang.Thread.run(Thread.java:475)
 
  Can anyone here please help me get through this problem.
 
  Thank you,
  -satish
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: JSP Error

2002-01-30 Thread Larry Isaacs

Check in the appropriate jasper-xxx.log file for a
Exception parsing file ... message. It should show you
the actual exception thrown.  Hopefully that will give
you a clue to the source of the error.

Cheers,
Larry

 -Original Message-
 From: Satish Reddy [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 30, 2002 9:52 AM
 To: Tomcat Users List
 Subject: Re: JSP Error
 
 
 Hi,
 I have checked the permissions, I have Read permissions 
 for every one
 for the files in the webapps directory. I have tried to 
 access the tomcat
 directly on port 8080, but i see The Page cannot be displayed 
 page under IE.
 Do you think I have to change any configuration to access.
 
 thank you,
 Satish.
 
 - Original Message -
 From: Larry Isaacs [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, January 29, 2002 3:15 PM
 Subject: RE: JSP Error
 
 
  I believe this usually turns out to be a permissions issue.
  Make sure the user under which Tomcat is running has permission
  to read the webapp directories.  You can also try accessing
  Tomcat directly on port 8080 to see if behavior is different
  from accessing through Apache.
 
  Cheers,
  Larry
 
   -Original Message-
   From: Satish Reddy [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, January 29, 2002 2:02 PM
   To: Tomcat
   Subject: JSP Error
  
  
   Hi All,
   I am having problems running JSP using tomcat3.3a with
   Apache1.3.12. on linux. I am able to run the same JSP on
   Windows without any problems.
  
   When I tried to run the example JSP. I get this following error.
  
   2002-01-29 12:59:26 - Ctx(/EM) : Exception in R( /examples +
   /jsp/num/numguess.jsp + null)
- org.apache.jasper.compiler.ParseException: Cannot read
   file: /jsp/num/numguess.jsp
   at
   org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
   at
   org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
   at 
 org.apache.jasper.compiler.JspReader.init(Unknown Source)
   at
   
 org.apache.jasper.compiler.JspReader.createJspReader(Unknown Source)
   at 
 org.apache.jasper.compiler.Compiler.compile(Unknown Source)
   at
   org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
   at
   
 org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
   at
   org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
   at
   
 org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
   at
   
 org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
   at
   org.apache.tomcat.core.ContextManager.service(Unknown Source)
   at
   
 org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(U
   nknown Source)
   at
   org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
   at
   
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
   at java.lang.Thread.run(Thread.java:475)
  
   Can anyone here please help me get through this problem.
  
   Thank you,
   -satish
  
 
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: JSP Error

2002-01-30 Thread Satish Reddy

I checked the jasper-xxx.log file, it has exceptions saying that it cannot
find method, getResourceAsStream
(String) . I also got the same kind of error when I ran the example
Servlets, it says it can not find method getSession() in HttpServletRequest.
I have all the necessary jar files in the $TOMCAT_HOMElib/coomon directory.

the Stack Trace for the jsp error is here,

2002-01-29 12:55:25 - JspReader: Exception parsing file
/jsp/num/numguess.jsp -
java.lang.NoSuchMethodError: javax.servlet.ServletContext: method
getResourceAsS
tream(Ljava/lang/String;)Ljava/io/InputStream; not found
at org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
at org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
at org.apache.jasper.compiler.JspReader.init(Unknown Source)
at org.apache.jasper.compiler.JspReader.createJspReader(Unknown
Source)
at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
at org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown
Source)
at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown
Source)
at org.apache.tomcat.core.ContextManager.processRequest(Unknown
Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(U
nknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
 Source)
at java.lang.Thread.run(Thread.java:475)

thank you,
Satish

- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, January 30, 2002 10:30 AM
Subject: RE: JSP Error


 Check in the appropriate jasper-xxx.log file for a
 Exception parsing file ... message. It should show you
 the actual exception thrown.  Hopefully that will give
 you a clue to the source of the error.

 Cheers,
 Larry

  -Original Message-
  From: Satish Reddy [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 30, 2002 9:52 AM
  To: Tomcat Users List
  Subject: Re: JSP Error
 
 
  Hi,
  I have checked the permissions, I have Read permissions
  for every one
  for the files in the webapps directory. I have tried to
  access the tomcat
  directly on port 8080, but i see The Page cannot be displayed
  page under IE.
  Do you think I have to change any configuration to access.
 
  thank you,
  Satish.
 
  - Original Message -
  From: Larry Isaacs [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Tuesday, January 29, 2002 3:15 PM
  Subject: RE: JSP Error
 
 
   I believe this usually turns out to be a permissions issue.
   Make sure the user under which Tomcat is running has permission
   to read the webapp directories.  You can also try accessing
   Tomcat directly on port 8080 to see if behavior is different
   from accessing through Apache.
  
   Cheers,
   Larry
  
-Original Message-
From: Satish Reddy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 2:02 PM
To: Tomcat
Subject: JSP Error
   
   
Hi All,
I am having problems running JSP using tomcat3.3a with
Apache1.3.12. on linux. I am able to run the same JSP on
Windows without any problems.
   
When I tried to run the example JSP. I get this following error.
   
2002-01-29 12:59:26 - Ctx(/EM) : Exception in R( /examples +
/jsp/num/numguess.jsp + null)
 - org.apache.jasper.compiler.ParseException: Cannot read
file: /jsp/num/numguess.jsp
at
org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
at
org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
at
  org.apache.jasper.compiler.JspReader.init(Unknown Source)
at
   
  org.apache.jasper.compiler.JspReader.createJspReader(Unknown Source)
at
  org.apache.jasper.compiler.Compiler.compile(Unknown Source)
at
org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
at
   
  org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
at
org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
at
   
  org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
at
   
  org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at
org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
   
  org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(U
nknown Source)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
   
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
 Source

RE: JSP Error

2002-01-30 Thread Larry Isaacs

This suggests you have some really out of date javax.servlet
classes in your JDK somehow.  Which JDK are you using and
what is in your JDK's jre/lib/ext directory (assuming Java2)?

Cheers,
Larry

 -Original Message-
 From: Satish Reddy [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 30, 2002 12:15 PM
 To: Tomcat Users List
 Subject: Re: JSP Error
 
 
 I checked the jasper-xxx.log file, it has exceptions saying 
 that it cannot
 find method, getResourceAsStream
 (String) . I also got the same kind of error when I ran the example
 Servlets, it says it can not find method getSession() in 
 HttpServletRequest.
 I have all the necessary jar files in the 
 $TOMCAT_HOMElib/coomon directory.
 
 the Stack Trace for the jsp error is here,
 
 2002-01-29 12:55:25 - JspReader: Exception parsing file
 /jsp/num/numguess.jsp -
 java.lang.NoSuchMethodError: javax.servlet.ServletContext: method
 getResourceAsS
 tream(Ljava/lang/String;)Ljava/io/InputStream; not found
 at 
 org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
 at 
 org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
 at org.apache.jasper.compiler.JspReader.init(Unknown Source)
 at 
 org.apache.jasper.compiler.JspReader.createJspReader(Unknown
 Source)
 at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
 at 
 org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
 at 
 org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown
 Source)
 at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown
 Source)
 at 
 org.apache.tomcat.core.ContextManager.processRequest(Unknown
 Source)
 at 
 org.apache.tomcat.core.ContextManager.internalService(Unknown
 Source)
 at 
 org.apache.tomcat.core.ContextManager.service(Unknown Source)
 at
 org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(U
 nknown Source)
 at 
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
  Source)
 at java.lang.Thread.run(Thread.java:475)
 
 thank you,
 Satish
 
 - Original Message -
 From: Larry Isaacs [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, January 30, 2002 10:30 AM
 Subject: RE: JSP Error
 
 
  Check in the appropriate jasper-xxx.log file for a
  Exception parsing file ... message. It should show you
  the actual exception thrown.  Hopefully that will give
  you a clue to the source of the error.
 
  Cheers,
  Larry
 
   -Original Message-
   From: Satish Reddy [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, January 30, 2002 9:52 AM
   To: Tomcat Users List
   Subject: Re: JSP Error
  
  
   Hi,
   I have checked the permissions, I have Read permissions
   for every one
   for the files in the webapps directory. I have tried to
   access the tomcat
   directly on port 8080, but i see The Page cannot be displayed
   page under IE.
   Do you think I have to change any configuration to access.
  
   thank you,
   Satish.
  
   - Original Message -
   From: Larry Isaacs [EMAIL PROTECTED]
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Sent: Tuesday, January 29, 2002 3:15 PM
   Subject: RE: JSP Error
  
  
I believe this usually turns out to be a permissions issue.
Make sure the user under which Tomcat is running has permission
to read the webapp directories.  You can also try accessing
Tomcat directly on port 8080 to see if behavior is different
from accessing through Apache.
   
Cheers,
Larry
   
 -Original Message-
 From: Satish Reddy [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 29, 2002 2:02 PM
 To: Tomcat
 Subject: JSP Error


 Hi All,
 I am having problems running JSP using tomcat3.3a with
 Apache1.3.12. on linux. I am able to run the same JSP on
 Windows without any problems.

 When I tried to run the example JSP. I get this 
 following error.

 2002-01-29 12:59:26 - Ctx(/EM) : Exception in R( /examples +
 /jsp/num/numguess.jsp + null)
  - org.apache.jasper.compiler.ParseException: Cannot read
 file: /jsp/num/numguess.jsp
 at
 org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
 at
 org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
 at
   org.apache.jasper.compiler.JspReader.init(Unknown Source)
 at

   
 org.apache.jasper.compiler.JspReader.createJspReader(Unknown Source)
 at
   org.apache.jasper.compiler.Compiler.compile(Unknown Source)
 at
 
 org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
 at

   
 org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
 at
 
 org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source

Re: JSP Error

2002-01-30 Thread Satish Reddy

yes. I had the old version of servlet jar file in jre/ext/lib. that was the
cause of the problem. Thank you very much.

It works fine now.

-satish

- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, January 30, 2002 12:55 PM
Subject: RE: JSP Error


 This suggests you have some really out of date javax.servlet
 classes in your JDK somehow.  Which JDK are you using and
 what is in your JDK's jre/lib/ext directory (assuming Java2)?

 Cheers,
 Larry

  -Original Message-
  From: Satish Reddy [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 30, 2002 12:15 PM
  To: Tomcat Users List
  Subject: Re: JSP Error
 
 
  I checked the jasper-xxx.log file, it has exceptions saying
  that it cannot
  find method, getResourceAsStream
  (String) . I also got the same kind of error when I ran the example
  Servlets, it says it can not find method getSession() in
  HttpServletRequest.
  I have all the necessary jar files in the
  $TOMCAT_HOMElib/coomon directory.
 
  the Stack Trace for the jsp error is here,
 
  2002-01-29 12:55:25 - JspReader: Exception parsing file
  /jsp/num/numguess.jsp -
  java.lang.NoSuchMethodError: javax.servlet.ServletContext: method
  getResourceAsS
  tream(Ljava/lang/String;)Ljava/io/InputStream; not found
  at
  org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
  at
  org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
  at org.apache.jasper.compiler.JspReader.init(Unknown Source)
  at
  org.apache.jasper.compiler.JspReader.createJspReader(Unknown
  Source)
  at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
  at
  org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
  at
  org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown
  Source)
  at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown
  Source)
  at
  org.apache.tomcat.core.ContextManager.processRequest(Unknown
  Source)
  at
  org.apache.tomcat.core.ContextManager.internalService(Unknown
  Source)
  at
  org.apache.tomcat.core.ContextManager.service(Unknown Source)
  at
  org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(U
  nknown Source)
  at
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
  at
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
   Source)
  at java.lang.Thread.run(Thread.java:475)
 
  thank you,
  Satish
 
  - Original Message -
  From: Larry Isaacs [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Wednesday, January 30, 2002 10:30 AM
  Subject: RE: JSP Error
 
 
   Check in the appropriate jasper-xxx.log file for a
   Exception parsing file ... message. It should show you
   the actual exception thrown.  Hopefully that will give
   you a clue to the source of the error.
  
   Cheers,
   Larry
  
-Original Message-
From: Satish Reddy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 9:52 AM
To: Tomcat Users List
Subject: Re: JSP Error
   
   
Hi,
I have checked the permissions, I have Read permissions
for every one
for the files in the webapps directory. I have tried to
access the tomcat
directly on port 8080, but i see The Page cannot be displayed
page under IE.
Do you think I have to change any configuration to access.
   
thank you,
Satish.
   
- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, January 29, 2002 3:15 PM
Subject: RE: JSP Error
   
   
 I believe this usually turns out to be a permissions issue.
 Make sure the user under which Tomcat is running has permission
 to read the webapp directories.  You can also try accessing
 Tomcat directly on port 8080 to see if behavior is different
 from accessing through Apache.

 Cheers,
 Larry

  -Original Message-
  From: Satish Reddy [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 29, 2002 2:02 PM
  To: Tomcat
  Subject: JSP Error
 
 
  Hi All,
  I am having problems running JSP using tomcat3.3a with
  Apache1.3.12. on linux. I am able to run the same JSP on
  Windows without any problems.
 
  When I tried to run the example JSP. I get this
  following error.
 
  2002-01-29 12:59:26 - Ctx(/EM) : Exception in R( /examples +
  /jsp/num/numguess.jsp + null)
   - org.apache.jasper.compiler.ParseException: Cannot read
  file: /jsp/num/numguess.jsp
  at
  org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
  at
  org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
  at
org.apache.jasper.compiler.JspReader.init(Unknown Source

JSP Error

2002-01-29 Thread Satish Reddy

Hi All,
I am having problems running JSP using tomcat3.3a with Apache1.3.12. on linux. I 
am able to run the same JSP on Windows without any problems. 

When I tried to run the example JSP. I get this following error.

2002-01-29 12:59:26 - Ctx(/EM) : Exception in R( /examples + /jsp/num/numguess.jsp + 
null)
 - org.apache.jasper.compiler.ParseException: Cannot read file: /jsp/num/numguess.jsp
at org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
at org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
at org.apache.jasper.compiler.JspReader.init(Unknown Source)
at org.apache.jasper.compiler.JspReader.createJspReader(Unknown Source)
at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
at org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(U
nknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
 Source)
at java.lang.Thread.run(Thread.java:475)

Can anyone here please help me get through this problem.

Thank you,
-satish



RE: JSP Error

2002-01-29 Thread Larry Isaacs

I believe this usually turns out to be a permissions issue.
Make sure the user under which Tomcat is running has permission
to read the webapp directories.  You can also try accessing
Tomcat directly on port 8080 to see if behavior is different
from accessing through Apache.

Cheers,
Larry

 -Original Message-
 From: Satish Reddy [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 29, 2002 2:02 PM
 To: Tomcat
 Subject: JSP Error
 
 
 Hi All,
 I am having problems running JSP using tomcat3.3a with 
 Apache1.3.12. on linux. I am able to run the same JSP on 
 Windows without any problems. 
 
 When I tried to run the example JSP. I get this following error.
 
 2002-01-29 12:59:26 - Ctx(/EM) : Exception in R( /examples + 
 /jsp/num/numguess.jsp + null)
  - org.apache.jasper.compiler.ParseException: Cannot read 
 file: /jsp/num/numguess.jsp
 at 
 org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
 at 
 org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
 at org.apache.jasper.compiler.JspReader.init(Unknown Source)
 at 
 org.apache.jasper.compiler.JspReader.createJspReader(Unknown Source)
 at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
 at 
 org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
 at 
 org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
 at 
 org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
 at 
 org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
 at 
 org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
 at 
 org.apache.tomcat.core.ContextManager.service(Unknown Source)
 at 
 org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(U
 nknown Source)
 at 
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
 at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
  Source)
 at java.lang.Thread.run(Thread.java:475)
 
 Can anyone here please help me get through this problem.
 
 Thank you,
 -satish
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




JAKARTA--------JSP ERROR!!! PLEASE HELP

2001-11-28 Thread Catalin

hi 2 all!!



I've got an app that works with jsp on an jakarta-tomcat-3.3m4 on an win2k
professional. The jsp files connet to a MSSQL db by an bean an get
data for html reports.
The rest of application work with servlets.
If I conect myself from another comp witch is in the same  network
with server,SOMETIMES(:-() I don't see any html generated by jsp and I have this error:

error 500

Internal Servlet Error:

javax.servlet.ServletException
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:455)
at 
Privacy675.RAP.archivio_list_dati_pers_1._jspService(archivio_list_dati_pers_1.java:480)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:500)
at org.apache.tomcat.core.Handler.service(Handler.java:223)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:448)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:865)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:778)
at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:150)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:435)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:505)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NullPointerException
at 
Privacy675.RAP.archivio_list_dati_pers_1._jspService(archivio_list_dati_pers_1.java:244)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:500)
at org.apache.tomcat.core.Handler.service(Handler.java:223)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:448)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:865)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:778)
at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:150)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:435)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:505)
at java.lang.Thread.run(Thread.java:484)



 can u help me? I'm running out of time!

 10x 2 all!

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: JAKARTA--------JSP ERROR!!! PLEASE HELP

2001-11-28 Thread Ralph Einfeldt

Have a closer look at the root cause of the servlet exception:

In this case a NullPointerException in line 244 of 
the generated java file archivio_list_dati_pers_1.java

So take look at this file, to see what causes the Exception.

 -Ursprüngliche Nachricht-
 Von: Catalin [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 28. November 2001 23:35
 An: [EMAIL PROTECTED]
 Betreff: JAKARTAJSP ERROR!!! PLEASE HELP
snip/
 Root cause:
 java.lang.NullPointerException
 at 
 Privacy675.RAP.archivio_list_dati_pers_1._jspService(archivio_
 list_dati_pers_1.java:244)
snip/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Servlets and JSP Error Pages

2001-10-01 Thread Brendan McKenna

Hi,

Is there a way to route exceptions thrown in servlets to a JSP 
error page?


Brendan
-- 
Brendan McKennaEmail: [EMAIL PROTECTED]
Development Strategist Phone: +353-61-338177
Taringold Ltd. Fax:   +353-61-338065





Re: Servlets and JSP Error Pages

2001-10-01 Thread Zsolt Horvath

I think it's easier:
Put this line every JSP:

1. %@ page errorPage=errorHandler.jsp%
2. Create an errorhandler JSP. (Example is attached.)

Every throwable error will redirect to errorhandler.jsp.

bye: horZsolt

- Original Message -
From: Arnaud Héritier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 01, 2001 3:45 PM
Subject: RE: Servlets and JSP Error Pages


It's not a really clean solution but you can do it like this :

try{
.
}catch(Exception e){
RequestDispatcher rd =
getServletContext().getRequestDispatcher(MyErrorPage.jsp);
request.setAttribute(javax.servlet.jsp.jspException, e);
rd.forward(request, response);
}

I tested it and it works.

arno

 -Message d'origine-
 De: Brendan McKenna [SMTP:[EMAIL PROTECTED]]
 Date: lundi 1 octobre 2001 15:35
 À: [EMAIL PROTECTED]
 Objet: Servlets and JSP Error Pages

 Hi,

 Is there a way to route exceptions thrown in servlets to a JSP
 error page?


 Brendan
 --
 Brendan McKennaEmail: [EMAIL PROTECTED]
 Development StrategistPhone: +353-61-338177
 Taringold Ltd.Fax:   +353-61-338065




 errorHandler.jsp


Jasper JSP error

2001-01-29 Thread Per Olesen

Hi

I'm trying to deploy a war which I've developed using weblogic, and 
which deploys fine there. But deploying it in tomcat gives me an 
exception from jasper saying:

-
org.apache.jasper.compiler.CompileException: 
/var/tomcat/webapps/webhelp/example/helpmain.jsp(4,0) Invalid 
jsp:include tag
at 
org.apache.jasper.compiler.IncludeGenerator.(IncludeGenerator.java)
at 
org.apache.jasper.compiler.JspParseEventListener.handleInclude(JspParseEventListener.java)

--

So it doesn't like my jsp:include. Previously someone pointed out to 
me about case sensitive in errorPage attribute, but I can't see that 
that should be the problem here.

Any ideas about whats happening here?

Regards,
Per Olesen

-- 
Per Olesen, Systems Architect @ Nordija ApS, www.nordija.com
Phone: (+45)23389581, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Jasper JSP error

2001-01-29 Thread Per Olesen

Hi,

Found the answer to my own problem. Maybe I should just read the 
JSP-spec more closely. The flush-attribute is apparently mandatory, but 
weblogic does not check this.

Regards,
Per Olesen

-- 
Per Olesen, Systems Architect @ Nordija ApS, www.nordija.com
Phone: (+45)23389581, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




JSP ERROR 500 with jdk1.3

2001-01-22 Thread Kasparian, Raffi J.

I recently installed Tomcat and am was relieved and very excited that it was
so easy to install. However, I just discovered that the JSP examples
generate errors such as the following if I set JAVA_HOME=jdk1.3 but work
just fine for JAVA_HOME=jdk1.2.2. 

Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:
javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
Root cause: 
java.lang.NoSuchMethodError
at
org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:209)
at
jsp.num._0002fjsp_0002fnum_0002fnumguess_0002ejspnumguess_jsp_0._jspService(
_0002fjsp_0002fnum_0002fnumguess_0002ejspnumguess_jsp_0.java:150)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: .jsp error after install

2001-01-03 Thread Derek Mc Connon

where abouts do you set up the Java Home variable


- Original Message -
From: Randy Layman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 03, 2001 6:27 AM
Subject: RE: .jsp error after install



 You didn't set JAVA_HOME to include the jdk.

 Randy

 -Original Message-
 From: Gary Lyons [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 03, 2001 9:07 AM
 To: [EMAIL PROTECTED]
 Subject: .jsp error after install


 Hi,

 I just installed tomcat3.2.1 on Solaris 8 on a SPARC Ultra. The install
 went well and after starting the stand alone server I tried to run the
 exaples included with the distribution from the
 http://myhost:8080/examples/jsp/index.html page. The servlet examples
 ran well but the .jsp examples all return the error below. I have poured

 through my conf files and can't find anything obvious. Any help
 appreciated.

 Gary Lyons

 Error: 500

 Location: /examples/jsp/num/numguess.jsp

 Internal Servlet Error:

 javax.servlet.ServletException: sun/tools/javac/Main
 at java.lang.Throwable.fillInStackTrace(Native Method)
 at java.lang.Throwable.fillInStackTrace(Compiled Code)
 at java.lang.Throwable.(Compiled Code)
 at java.lang.Exception.(Compiled Code)
 at javax.servlet.ServletException.(ServletException.java:161)
 at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

 at org.apache.tomcat.core.Handler.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
 at
 org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(Compiled Code)
 at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi
 led

 Code)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
 Code)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
 at java.lang.Thread.run(Compiled Code)

 Root cause:

 java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at

org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)

 at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
 at
 org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
 at
 org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)

 at
 org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
 at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
 rvlet.java:152)

 at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:164)

 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)

 at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

 at org.apache.tomcat.core.Handler.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
 at
 org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(Compiled Code)
 at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi
 led

 Code)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
 Code)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
 at java.lang.Thread.run(Compiled Code)




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: .jsp error after install

2001-01-03 Thread Michael Wentzel

the script files in TOMCAT_HOME/bin/ setup all of your
environment params.

 where abouts do you set up the Java Home variable
 


--
Michael Wentzel
Software Developer
Software As We Think

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: .jsp error after install

2001-01-03 Thread Randy Layman


In your environment before you launch the shell script, or add it to
the shell script explicitly.

On NT this would be:
set JAVA_HOME=c:\jdk1.2
tomcat start

On UNIX under a bash shell (I believe, its been a while):
export JAVA_HOME=/usr/local/jdk1.2
tomcat start

Randy

-Original Message-
From: Derek Mc Connon [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 03, 2022 8:33 PM
To: [EMAIL PROTECTED]
Subject: Re: .jsp error after install


where abouts do you set up the Java Home variable


- Original Message -
From: Randy Layman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 03, 2001 6:27 AM
Subject: RE: .jsp error after install



 You didn't set JAVA_HOME to include the jdk.

 Randy

 -Original Message-
 From: Gary Lyons [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 03, 2001 9:07 AM
 To: [EMAIL PROTECTED]
 Subject: .jsp error after install


 Hi,

 I just installed tomcat3.2.1 on Solaris 8 on a SPARC Ultra. The install
 went well and after starting the stand alone server I tried to run the
 exaples included with the distribution from the
 http://myhost:8080/examples/jsp/index.html page. The servlet examples
 ran well but the .jsp examples all return the error below. I have poured

 through my conf files and can't find anything obvious. Any help
 appreciated.

 Gary Lyons

 Error: 500

 Location: /examples/jsp/num/numguess.jsp

 Internal Servlet Error:

 javax.servlet.ServletException: sun/tools/javac/Main
 at java.lang.Throwable.fillInStackTrace(Native Method)
 at java.lang.Throwable.fillInStackTrace(Compiled Code)
 at java.lang.Throwable.(Compiled Code)
 at java.lang.Exception.(Compiled Code)
 at javax.servlet.ServletException.(ServletException.java:161)
 at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

 at org.apache.tomcat.core.Handler.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
 at
 org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(Compiled Code)
 at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi
 led

 Code)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
 Code)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
 at java.lang.Thread.run(Compiled Code)

 Root cause:

 java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at

org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)

 at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
 at
 org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
 at
 org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)

 at
 org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
 at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
 rvlet.java:152)

 at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:164)

 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)

 at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

 at org.apache.tomcat.core.Handler.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
 at
 org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(Compiled Code)
 at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi
 led

 Code)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
 Code)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
 at java.lang.Thread.run(Compiled Code)




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]