You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/08/28 10:22:25 UTC

DO NOT REPLY [Bug 49836] New: Exception in Jasper Task (Tomcat 7 and Ant 1.8.1)

https://issues.apache.org/bugzilla/show_bug.cgi?id=49836

           Summary: Exception in Jasper Task (Tomcat 7 and Ant 1.8.1)
           Product: Ant
           Version: 1.8.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Build Process
        AssignedTo: notifications@ant.apache.org
        ReportedBy: hanumanthkumark@yahoo.com


org.apache.jasper.JasperException: jsp:getProperty for bean with name
'_patient'. Name was not previously introduced as per JSP.5.3
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)


I have set the below property in tomcat 7.0/conf/catalina.policy

    permission java.util.PropertyPermission
     "org.apache.jasper.compiler.Generator.STRICT_GET_PROPERTY", "false";

still getting the same exception, Please advice

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49836] Exception in Jasper Task (Tomcat 7 and Ant 1.8.1)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49836

J.M. (Martijn) Kruithof <jk...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from J.M. (Martijn) Kruithof <jk...@apache.org> 2010-08-29 02:58:30 EDT ---
1) The jasper2 ant task is part of tomcat to my knowledge (not part of ant).
2) I does not use the catalina.policy file, this file is typically used by the
tomcat engine.
3) By setting security manager permissions (which is done using
cataline.policy) it is not possible to set system properties.

Please check your environment, if the problem persists, please ask at the user
list of the product you take the jasper2 task from.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49836] Exception in Jasper Task (Tomcat 7 and Ant 1.8.1)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49836

--- Comment #1 from Kumar <ha...@yahoo.com> 2010-08-28 04:27:11 EDT ---
This is my jasper task

<jasper2
     listErrors="true"
     validateXml="false"
         uriroot="${testProj.path}" 
         webXmlFragment="${testProj.target}/${TODAY}/generated_web.xml" 
         outputDir="${testProj.build}" />

getting exception when this is executed

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.