me0wster / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

web app with javamelody deploy on resin4.0.x,can startup but jstl tag can not parse #244

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.web app with javamelody deploy on  resin4.0.x
2.startup and open the jsp
3.the jsp can not display(jstl tag can not parse)

What version of the product are you using? On what application server, JDK,
operating system?
javamelody-1.3.9.0
jdk 1.7
linux

Please provide any additional information below.

Original issue reported on code.google.com by Nigel.sq...@gmail.com on 13 Aug 2012 at 10:36

GoogleCodeExporter commented 9 years ago
I am also experiencing problems with resin 4.0.29 - when javamelody is enabled, 
some jsp requests just create a blank page (empty response).
Do you also get a blank page?

Original comment by mineral_...@gmx.de on 13 Aug 2012 at 5:32

GoogleCodeExporter commented 9 years ago
no
my problem is el tag can't parse,return like this:${item.name}

Original comment by Nigel.sq...@gmail.com on 14 Aug 2012 at 3:25

GoogleCodeExporter commented 9 years ago
Ok.
Then I created a seperate issue for my problem, see:

http://code.google.com/p/javamelody/issues/detail?id=245

Original comment by mineral_...@gmx.de on 14 Aug 2012 at 10:26

GoogleCodeExporter commented 9 years ago
Can you submit an example of jsp to reproduce the problem?
And what is your exact version of resin?

Original comment by evernat@free.fr on 16 Aug 2012 at 3:27

GoogleCodeExporter commented 9 years ago
I had tested on resin-4.0.23/26/29,and has the same problem!
And I had upl4oaded the jsp

Original comment by Nigel.sq...@gmail.com on 17 Aug 2012 at 2:33

Attachments:

GoogleCodeExporter commented 9 years ago
For whatever reason unknown to me, Resin does not like to have a 
"META-INF/web-fragment.xml" file inside the javamelody jar file.

If this file is inside the jar file then Resin seems to think that the webapp 
is a servlet api v2.5 or v2.4 compatible webapp, and not a servlet api v3.0 
compatible webapp.
And then Resins does not compile the jsp correctly. It displays "${1+10}" for 
your index.jsp.

If you remove the "META-INF/web-fragment.xml" from the javamelody jar, using 
web.xml only, (and if you remove the WEB-INF/work directory of the webapp), 
then it works.
Resins compiles the jsp correctly. It displays "11" for your index.jsp.
And also the javamelody monitoring works.
For example, the attached webapp (test.war) has a javamelody jar file without 
META-INF/web-framgent.xml and it works correctly.

Original comment by evernat@free.fr on 21 Aug 2012 at 9:18

Attachments:

GoogleCodeExporter commented 9 years ago
By the way, I think that you have found a Resin bug. There is certainly no 
reason why a META-INF/web-fragment.xml such as [1] would cause Resin to think 
of a v2.5 compatible webapp.
You could submit an issue in their issue tracker (http://bugs.caucho.com/) and 
attach the test.war and test-ko.war examples.

[1] 
https://code.google.com/p/javamelody/source/browse/trunk/javamelody-core/src/mai
n/resources/META-INF/web-fragment.xml

Original comment by evernat@free.fr on 21 Aug 2012 at 9:22

Attachments:

GoogleCodeExporter commented 9 years ago
thanks for your help!
It work!

Original comment by Nigel.sq...@gmail.com on 22 Aug 2012 at 2:11

GoogleCodeExporter commented 9 years ago
I have created an issue for Resin:
http://bugs.caucho.com/view.php?id=5200

so closing this one.

Original comment by evernat@free.fr on 30 Aug 2012 at 5:04

GoogleCodeExporter commented 9 years ago
It will be fixed in Resin 4.0.31, according to
http://bugs.caucho.com/view.php?id=5200

Original comment by evernat@free.fr on 30 Aug 2012 at 8:38