controls and performance penalties all over the place.
-chris
-Original Message-
From: Mark Thomas
Sent: Wednesday, March 29, 2023 8:37 PM
To: users@tomcat.apache.org
Subject: Re: [org.apache.jasper.JasperException: Unable to compile class for
JSP] with root cause
Hi,
I am unable to
@tomcat.apache.org
Subject: Re: [org.apache.jasper.JasperException: Unable to compile class for
JSP] with root cause
Hi,
I am unable to reproduce this with a clean build of the current 9.0.x source.
I built the sample application without configuring the connection to Azure.
Once deployed, it failed with
mycompany.com:5432",
"connect";
// permission java.net.SocketPermission "*.noaa.gov:80", "connect";
// };
//
// The permissions granted to the context WEB-INF/classes directory
// grant codeBase "file:${catalina.base}/webapps/examples/WEB-INF/classes/-&q
java.net.SocketPermission "*.noaa.gov:80", "connect";
// };
//
// The permissions granted to the context WEB-INF/classes directory
// grant codeBase "file:${catalina.base}/webapps/examples/WEB-INF/classes/-" {
// };
//
// The permission granted to your JDBC driver
// grant
62ed6ee logs]$ cat localhost.2023-03-24.log
24-Mar-2023 13:46:19.866 SEVERE [https-jsse-nio-8643-exec-4]
org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service()
for servlet [jsp] in context with path [/msal4j-servlet-auth] threw
exception [org.apache.jasper.JasperException: Unab
Servlet.service() for
servlet [jsp] in context with path [/msal4j-servlet-auth] threw exception
[org.apache.jasper.JasperException: Unable to compile class for JSP] with root
cause
java.lang.NullPointerException: Cannot invoke
"java.io.InputStream.close()&qu
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Konstantin,
On 4/12/12 12:44 PM, Christopher Schultz wrote:
> Ashima has sent the original JSP and the translated .java file to
> me. The interesting parts are here:
Also, there isn't much in the way of directives in the original JSP.
First, some dec
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Konstantin,
On 4/12/12 10:03 AM, Konstantin Kolinko wrote:
> What is the type and value of _jspx_dependants field?
Ashima has sent the original JSP and the translated .java file to me.
The interesting parts are here:
// Starting at line 21 (filen
Konstantin, responding to your questions:
[What is the type and value of _jspx_dependants field? ]
*private static java.util.Map
_jspx_dependants;
It does match the method return type!*
[Can you cite with what parameters "JspServlet" in your web.xml is
configured, exactly?]
jsp
Christopher, response to your questions:
[Can you confirm that after you try to access the .jsp from the
browser, the timestamp on the .java file changes?] -* It does not change.
ALL the .java and .class files have the same timestamp as the .jsp files
which is the same as when the war was deployed
2012/4/12 Ashima Sharma :
> Most of the jsps have this issue...but it happens randomly. For e.g., i wd
> be able to access the registration page 5 times w/o any issue, and the 6th
> time I'd get this error.
> Its bizarre that tomcat tries to recompile the already compiled jsp at some
> random point
> matter which jsp:
>
> 2012-04-04 09:55:26,022 ERROR
> [org.apache.struts.tiles.taglib.InsertTag] - ServletException in
> '/WEB-INF/pages/register/userProfileBodyTile.jsp':
> classFile.delete() failed org.apache.jasper.JasperException: Unable
> to compile class for JSP at
> org.apache.jasper.Js
ileBodyTile.jsp':
classFile.delete() failed
org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:661)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
g 2 exceptions (for
> random jsps) -
>
> *2012-04-10 18:27:45,751 ERROR
> [org.apache.struts.tiles.taglib.InsertTag] - ServletException in
> '/WEB-INF/pages/registration/registration.jsp': Unable to compile
> class for JSP: * *An error occurred at line: 49 in the generat
rtTag] -
ServletException in '/WEB-INF/pages/registration/registration.jsp': Unable
to compile class for JSP: *
*An error occurred at line: 49 in the generated java file*
*This method must return a result of type Map*
*
*
*AND*
*
*
*
2012-04-10 18:36:58,501 ERROR [org.apache.struts.tiles.t
On 11/01/2012 20:44, Justin Larose wrote:
> ma...@apache.org wrote on 01/11/2012 01:19:17 PM:
>
>> From: ma...@apache.org
>> To: Tomcat Users List
>> Date: 01/11/2012 01:20 PM
>> Subject: Re: Error: Unable to compile class for JSP
>>
>> Justin Larose
ma...@apache.org wrote on 01/11/2012 01:19:17 PM:
> From: ma...@apache.org
> To: Tomcat Users List
> Date: 01/11/2012 01:20 PM
> Subject: Re: Error: Unable to compile class for JSP
>
> Justin Larose wrote:
> >> > An error occurred at line: 230 in the jsp file
Justin Larose wrote:
>> > An error occurred at line: 230 in the jsp file: /object_table.jsp
>> > The type Part is ambiguous
>> > 227:{
>> > 228: //do nothing here - we don't want the filter to be
>displayed
>> > for lifecycles
>> > 229: }
>> > 230: else if (objType.eq
On 11/01/2012 16:56, Justin Larose wrote:
>>> An error occurred at line: 230 in the jsp file: /object_table.jsp
>>> The type Part is ambiguous
>>> 227:{
>>> 228: //do nothing here - we don't want the filter to be
> displayed
>>> for lifecycles
>>> 229: }
>>> 230: else i
> > An error occurred at line: 230 in the jsp file: /object_table.jsp
> > The type Part is ambiguous
> > 227:{
> > 228: //do nothing here - we don't want the filter to be
displayed
> > for lifecycles
> > 229: }
> > 230: else if (objType.equals(Part.class))
> > 231:
On 11/01/2012 13:53, Justin Larose wrote:
> An error occurred at line: 230 in the jsp file: /object_table.jsp
> The type Part is ambiguous
> 227:{
> 228: //do nothing here - we don't want the filter to be displayed
> for lifecycles
> 229: }
> 230: else if (objType.equal
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 230 in the jsp file: /object_table.jsp
The type Part is ambiguous
227:{
228: //do nothing here - we don't want the filter to be displayed
for lifecycles
229: }
230: else if (objType.e
internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException: Unable to compile class for JSP:
>
>
> An error occurred at line: 18 in the generated java file
> The return type is incompatible with JspSourceDependent.getD
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 18 in the generated java file
The return type is incompatible with JspSourceDependent.getDependants()
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93
Thanks. I did not find the bug listed when I searched.
>>> Rainer Jung <[EMAIL PROTECTED]> 4/1/2008 11:33 AM >>>
It's a known bug, which has beend discussed on the developers list only
very recently. See
http://marc.info/?t=12066709823&r=1&w=2
Your workaround (using ant 1.5) seems fine. Th
It's a known bug, which has beend discussed on the developers list only
very recently. See
http://marc.info/?t=12066709823&r=1&w=2
Your workaround (using ant 1.5) seems fine. The final solution is still
pending, but it's quite possible, that Mark does a fix for the future
4.1.38. This sti
This is an upgrade from Apache2.0.59/Tomcat4.1.31/mod_jk 1.2.15 to
Apache2.0.63/Tomcat4.1.37/mod_jk 1.2.36 on Netware 6.5 sp7. Except for JSP
compiles, everything including HTML, servlets and precompiled JSPs works.
Ant.jar is there in CATALINA_HOME\common\lib. The problem is with Ant v1.7
int
From: "Gaurav Kushwaha" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
Sent: Tuesday, April 17, 2007 11:40 PM
Subject: Re: Unable to compile class for JSP
I am using Idea. Even that has an option to compile the jsps though. I will
try that. What exactly do you mean by inclu
Tuesday, April 17, 2007 9:36 PM
Subject: Unable to compile class for JSP
> Hi,
> I am getting "Unable to compile class for JSP" error in one of my
JSPs
> which was working perfectly until 2 days back. It says:
>
> An error occurred at line: 10 in the jsp fi
uot;
Sent: Tuesday, April 17, 2007 9:36 PM
Subject: Unable to compile class for JSP
Hi,
I am getting "Unable to compile class for JSP" error in one of my JSPs
which was working perfectly until 2 days back. It says:
An error occurred at line: 10 in the jsp file: /WEB-INF/jsps/L
Hi,
I am getting "Unable to compile class for JSP" error in one of my JSPs
which was working perfectly until 2 days back. It says:
An error occurred at line: 10 in the jsp file: /WEB-INF/jsps/Listing.jsp
String perspective = null;
^
This jsp is being included in anoth
TED]>
Sent: Wednesday, March 21, 2007 5:00 PM
Subject: AW: Unable to compile class for JSP
Hi everybody,
thanks for your help, which I really appreciate!
I still don't know exactly what it was, but I fixed it by doing the
following:
- uninstall tomcat
- reinstall it, not having it run
ted
"tomcat 4.1" because I hade problems with spaces in path before. Now it
works!
Bye
Peter
>- Original Message -
>From: <[EMAIL PROTECTED]>
>To:
>Sent: Tuesday, March 20, 2007 12:21 PM
>Subject: Unable to compile class for JSP
>
>
>Hi,
>
&
Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 12:21 PM
To: users@tomcat.apache.org
Subject: Unable to compile class for JSP
Hi,
This might be a silly question, but it seems to be quite a common
problem (lots or links in google). But none of the offered so
I get the following message:
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp
- Original Message -
From: <[EMAIL PROTECTED]>
To:
Sent: Tuesday, March 20, 2007 12:21 PM
Subject: Unable to compile class for JSP
Hi,
This might be a silly question, but it seems to be quite a common
problem (lots or links in google). But none of the offered solutions so
far worked.
So
>
> Trying the JSP examples coming with it, I get the following message:
>
>
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
Hi Peter,
did you check that the JAVA_HOME enviroment variable is properl
e.org
Subject: Unable to compile class for JSP
Hi,
This might be a silly question, but it seems to be quite a common
problem (lots or links in google). But none of the offered solutions so
far worked.
So I am asking the people who probably know!
I installed tomcat 4.1.29 with JDK 1.4.2
T
the following message:
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
read many posts but could found any good
solution.
plz help me :)
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
The return type is incompatible with JspSourceDependent.getDependants()
org.apache.jasper.compiler.DefaultErrorHandler.
users@tomcat.apache.org
Sent: Monday, March 19, 2007 1:52:58 PM
Subject: Can't solve problem: Unable to compile class for JSP
Hallo,
i tried to solve this problem and i read many posts but could found any good
solution.
plz help me :)
org.apache.jasper.JasperException: Unable to compile cl
Hallo,
i tried to solve this problem and i read many posts but could found any good
solution.
plz help me :)
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
The return type is incompatible with JspSourceDependent.getDependants
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Subject: RE: Unable to compile class for JSP
>
> Well, umm, actually I wasn't aware that the default package
> isn't allowed.
Quoting from section 11.2 of the JSP spec:
"However, as of JDK 1.4, importing class
Well, umm, actually I wasn't aware that the default package isn't allowed. I
just considered it poor practice to use. Let me go fix that. Thanks.
"Caldarale wrote:
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Subject: Unable to compile class for J
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Subject: Unable to compile class for JSP
>
> Class foo is in the default package.
>
> Beside using the default package, what am I doing wrong?
Since you seem to be aware the using the default package is not allowed,
why
Hi,
I'm having a newbie type of problem with getting a JSP to compile. Seems it
can't find my class.
Rest of error messages:
Generated servlet error:
The import FOO cannot be resolved
Following files are located in Tomcat/webapps/VIP
Code:
Home.jsp
<%@ page import="java.util.*" %>
Home Pa
trace :
"
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
The method handlePageException(Exception) in the type PageContext is not
applicable for the arguments (Throwable)
> From: Stuart Lowes [mailto:[EMAIL PROTECTED]
> Subject: Re: HTTP 500 error JasperException: Unable to
> compile class for JSP
>
> Also these are the default directory layout and environment
> variables in the Debian contrib 'tomcat4' packages.
Some of these
Thanks for the responses. :) I'm still unable to get this working
though, the same error is produced. Is it possible I am missing a
dependency or two? apt-get in Debian installs a few dependencies
automatically, but maybe there are some others not specified in the .deb
dependency list?
Serlet
Stuart Lowes ha scritto:
Catalina logfile:
-
Using CATALINA_BASE: /var/lib/tomcat4
Using CATALINA_HOME: /usr/share/tomcat4
Using CATALINA_TMPDIR: /var/lib/tomcat4/temp
I saw it just now. CATALINA_BASE and CATALINA_HOME shouldn't point to
the same directory? I think that Tomca
Antonio Petrelli wrote:
Stuart Lowes ha scritto:
I've been trying to get tomcat4 running on Debian sarge for the past
week and a bit and am now at a loss for what to try or where to look.
Try to copy /lib/tools.jar in /common/lib
Thanks for the suggestion, Antonio. I tried this with a symlin
Stuart Lowes ha scritto:
Hi list,
I've been trying to get tomcat4 running on Debian sarge for the past
week and a bit and am now at a loss for what to try or where to look.
I'm new to tomcat and not much of a Java expert either..
Try to copy /lib/tools.jar in /common/lib
52 matches
Mail list logo