You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2018/07/27 17:03:22 UTC
[Bug 62577] New: apache cannot be resolved or is not a field
https://bz.apache.org/bugzilla/show_bug.cgi?id=62577
Bug ID: 62577
Summary: apache cannot be resolved or is not a field
Product: Tomcat 7
Version: 7.0.76
Hardware: PC
Status: NEW
Severity: blocker
Priority: P2
Component: Jasper
Assignee: dev@tomcat.apache.org
Reporter: xleepoi@gmail.com
Target Milestone: ---
When test.jsp pages have a variable name like org
For example:
<%
String org = (String)session.getAttribute("organization_id");
%>
The test.jsp will show 500 error ,The error information like below:
"org.apache.jasper.JasperException: Unable to compile class for JSP"
"apache cannot be resolved or is not a field"
When I change this variable name to others like : org_parm\org_id
This jsp can be displayed normally
In my environment(Windows 7 x64) , this 500 error will only appear when Tomcat
version>= 7.0.76 (even includes Tomcat 8.5)
Everything is good when Tomcat version <=7.0.75
A same problem on internet like this:
http://techierg.blogspot.com/2011/07/jsp-compilation-error-apache-cannot-be.html
But this comments posted in 2011 , Perhaps in other environments, this error
will appear in earlier Tomcat server versions
On the Internet , people only know the variable name "org" have some
compatibility issues
But no one can tell the reason
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62577] apache cannot be resolved or is not a field
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62577
xlee poi <xl...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |NEEDINFO
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62577] apache cannot be resolved or is not a field
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62577
xlee poi <xl...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
Status|NEW |NEEDINFO
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62577] apache cannot be resolved or is not a field
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62577
xlee poi <xl...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WONTFIX |---
--- Comment #2 from xlee poi <xl...@gmail.com> ---
(In reply to Mark Thomas from comment #1)
> It is a conflict with the package of the same name.
> Look at the Java source (in the work directory) to see exactly what the
> conflict is.
> You need to use a different variable name.
Thank you for your reply
Finally, I found that conflicts occurred between taglib tags and "org"
variables
This is the simplest jsp example:
<%@ taglib prefix="c"
uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<%
String org = (String)session.getAttribute("org_id");
%>
<body>
<c:if test="true">
<%=System.currentTimeMillis()%>
</c:if>
</body>
</html>
I understand that this is a conflict
But I don't understand why the old version of Tomcat has no problem.
Theoretically Tomcat's minor upgrades(7.0.75==>7.0.76) should not change
compatibility
Our legacy project takes the "org" variable as the basic parameter of the JSP.
Hundreds of pages use the variable
Recently I want to upgrade the Tomcat server to the new version
Maybe I can only give up
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62577] apache cannot be resolved or is not a field
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62577
--- Comment #3 from xlee poi <xl...@gmail.com> ---
I found this issue in the link below
https://access.redhat.com/solutions/307583
"
This issue was known as tomcat bug but it is totally wrong.
According to tomcat
bug-ziller,https://issues.apache.org/bugzilla/show_bug.cgi?id=42475, tomcat
engineer also marked it as a WONTFIX.
What is the main reason to cause this issue is that JBossweb uses jasper to
compile jsp file. In detail, package name of jasper is started with
"org.apache.jasper." hence org variable which declared before tag make
something wrong in grammar.
"
I think I can only give up :-(
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62577] apache cannot be resolved or is not a field
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62577
xlee poi <xl...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #5 from xlee poi <xl...@gmail.com> ---
I see. Thank you for your reply.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62577] apache cannot be resolved or is not a field
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62577
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|NEEDINFO |RESOLVED
--- Comment #4 from Mark Thomas <ma...@apache.org> ---
You should look at the changelog for 7.0.76, specifically the Jasper section,
to understand why you see the error from that version onwards.
Note: There are are constructs that would cause a conflict prior to 7.0.76
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62577] apache cannot be resolved or is not a field
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62577
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|NEEDINFO |RESOLVED
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
It is a conflict with the package of the same name.
Look at the Java source (in the work directory) to see exactly what the
conflict is.
You need to use a different variable name.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62577] apache cannot be resolved or is not a field
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62577
xlee poi <xl...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |Windows 7
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org