SECTION: command line interaction ant -Dglassfish.home=${GF_HOME} create-ql-domain Buildfile: /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/tests/quicklook/build.xml setOSConditions: asenv-unix: asenv-windows: create-ql-domain: [echo] Using port 4848 for Admin. [echo] Using default port 8080 for HTTP Instance. [echo] Using default port 7676 for JMS. [echo] Using default port 3700 for IIOP. [echo] Using default port 8181 for HTTP_SSL. [echo] Using default port 3820 for IIOP_SSL. [echo] Using default port 3920 for IIOP_MUTUALAUTH. [echo] Using default port 8686 for JMX_ADMIN. [echo] Using default port 6666 for OSGI_SHELL. [echo] Using default port 9009 for JAVA_DEBUGGER. [echo] Distinguished Name of the self-signed X.509 Server Certificate is: [echo] [CN=makati.us.oracle.com,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US] [echo] Distinguished Name of the self-signed X.509 Server Certificate is: [echo] [CN=makati.us.oracle.com-instance,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US] [echo] No domain initializers found, bypassing customization step [echo] Domain qltest-domain created. [echo] Domain qltest-domain admin port is 4848. [echo] Domain qltest-domain allows admin login as user "admin" with no password. [echo] Command create-domain executed successfully. BUILD SUCCESSFUL Total time: 29 seconds -bash-3.00$ ant -Dglassfish.home=${GF_HOME} add-quicklook-policy-grants Buildfile: /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/tests/quicklook/build.xml add-quicklook-policy-grants: BUILD SUCCESSFUL Total time: 1 second -bash-3.00$ ant -Dglassfish.home=${GF_HOME} start_server_with_security_manager_enabled Buildfile: /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/tests/quicklook/build.xml start_server_with_security_manager_enabled: setOSConditions: verify-xml: [echo] Verify Domain.xml verify-xml-unix: [exec] The domains directory /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/distributions/glassfish/target-20120112/glassfish3/glassfish/domains [exec] contains multiple domains. Please specify a domain. [exec] Available domains: domain1, qltest-domain [exec] Command verify-domain-xml failed. [exec] Result: 1 verify-xml-windows: setOSConditions: start-derby: start-derby-unix: start-derby-windows: setOSConditions: start-server-felix: [echo] +-----------------------------+ [echo] | | [echo] | S T A R T I N G GLASSFISH | [echo] | in Felix mode | [echo] | | [echo] +-----------------------------+ start-server-felix-unix: [exec] Waiting for qltest-domain to start ................ [exec] [exec] Successfully started the domain : qltest-domain [exec] domain Location: /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/distributions/glassfish/target-20120112/glassfish3/glassfish/domains/qltest-domain [exec] Log File: /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/distributions/glassfish/target-20120112/glassfish3/glassfish/domains/qltest-domain/logs/server.log [exec] Admin Port: 4848 [exec] Command start-domain executed successfully. start-server-felix-windows: setOSConditions: enable-security-manager: enable-security-manager-unix: [exec] Created 1 option(s) [exec] Command create-jvm-options executed successfully. enable-security-manager-windows: setOSConditions: stop-server: [echo] stopping server stop-server-unix: [exec] Waiting for the domain to stop ... [exec] Command stop-domain executed successfully. stop-server-windows: [copy] Copying 1 file to /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/distributions/glassfish/target-20120112/glassfish3/glassfish/domains/domain1/logs setOSConditions: start-server-felix: [echo] +-----------------------------+ [echo] | | [echo] | S T A R T I N G GLASSFISH | [echo] | in Felix mode | [echo] | | [echo] +-----------------------------+ start-server-felix-unix: [exec] Waiting for qltest-domain to start ......... [exec] [exec] Successfully started the domain : qltest-domain [exec] domain Location: /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/distributions/glassfish/target-20120112/glassfish3/glassfish/domains/qltest-domain [exec] Log File: /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/distributions/glassfish/target-20120112/glassfish3/glassfish/domains/qltest-domain/logs/server.log [exec] Admin Port: 4848 [exec] Command start-domain executed successfully. start-server-felix-windows: BUILD SUCCESSFUL Total time: 44 seconds -bash-3.00$ cd bean-validator/simple-bv-servlet -bash-3.00$ ant -Dglassfish.home=${GF_HOME} all Buildfile: /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/tests/quicklook/bean-validator/simple-bv-servlet/build.xml compile-tests: [echo] compiling test client to ../../classes/test [javac] /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/tests/quicklook/gfproject/build-impl.xml:120: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds build: build-impl: archive-type: [echo] archive-type is war build-war: [echo] Now creating a war file ../../dist/bv/simple-bv-servlet.war [delete] Deleting directory /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/tests/quicklook/classes/bv/app [delete] Deleting directory /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/tests/quicklook/dist/bv [mkdir] Created dir: /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/tests/quicklook/classes/bv/app [mkdir] Created dir: /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/tests/quicklook/dist/bv [javac] /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/tests/quicklook/gfproject/build-impl.xml:201: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 2 source files to /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/tests/quicklook/classes/bv/app [mkdir] Created dir: /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/tests/quicklook/classes/bv/app/META-INF [copy] Warning: Could not find file /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/tests/quicklook/bean-validator/simple-bv-servlet/metadata/persistence.xml to copy. [war] Building war: /makati1/edburns/workareas/glassfish-GLASSFISH_3_1_2/tests/quicklook/dist/bv/simple-bv-servlet.war archive-type: [echo] archive-type is war build-ear: archive-type: [echo] archive-type is war build-appclient-ear: archive-type: [echo] archive-type is war build-jar: deploy: setOSConditions: deploy-v3-impl: [echo] deploying simple-bv-servlet.war deploy-v3-impl-unix: [exec] Application deployed with name simple-bv-servlet. [exec] Command deploy executed successfully. deploy-v3-impl-windows: runtest: runtest-impl: setOSConditions: asenv-unix: asenv-windows: checkTestNGXML: runtest-impl-class: [echo] =============Starting TestNG test at ../../classes/test ============ [testng] [Parser] Running: [testng] bv [testng] [testng] PASSED: executeServlet [testng] [testng] =============================================== [testng] bv_servlet_simple [testng] Tests run: 1, Failures: 0, Skips: 0 [testng] =============================================== [testng] [testng] [testng] =============================================== [testng] bv [testng] Total tests run: 1, Failures: 0, Skips: 0 [testng] =============================================== [testng] setOSConditions: asenv-unix: asenv-windows: checkTestNGXML: runtest-impl-xml: undeploy: setOSConditions: undeploy-v3-impl: [echo] simple-bv-servlet undeploy-v3-impl-unix: [exec] Command undeploy executed successfully. undeploy-v3-impl-windows: all: BUILD SUCCESSFUL Total time: 21 seconds SECTION: relevant log output [#|2012-01-12T07:17:00.237-0800|INFO|glassfish3.1.2|org.hibernate.validator.util.Version|_ThreadID=7;_ThreadName=Thread-11;|Hibernate Validator 4.2.0.Final|#] [#|2012-01-12T07:17:00.634-0800|INFO|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=7;_ThreadName=Thread-11;|SEC1001: Security Manager is ON.|#] [#|2012-01-12T07:17:00.970-0800|INFO|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=7;_ThreadName=Thread-11;|SEC1010: Entering Security Startup Service|#] [#|2012-01-12T07:17:00.979-0800|INFO|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=7;_ThreadName=Thread-11;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#] [#|2012-01-12T07:17:01.043-0800|INFO|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=7;_ThreadName=Thread-11;|SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.|#] [#|2012-01-12T07:17:01.047-0800|INFO|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=7;_ThreadName=Thread-11;|SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.|#] [#|2012-01-12T07:17:01.060-0800|INFO|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=7;_ThreadName=Thread-11;|SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.|#] [#|2012-01-12T07:17:01.077-0800|INFO|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=7;_ThreadName=Thread-11;|SEC1011: Security Service(s) Started Successfully|#] [#|2012-01-12T07:17:01.514-0800|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=7;_ThreadName=Thread-11;|WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]|#] [#|2012-01-12T07:17:01.534-0800|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=7;_ThreadName=Thread-11;|WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181]|#] [#|2012-01-12T07:17:01.549-0800|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=7;_ThreadName=Thread-11;|WEB0169: Created HTTP listener [admin-listener] on host/port [0.0.0.0:4848]|#] [#|2012-01-12T07:17:01.600-0800|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=7;_ThreadName=Thread-11;|WEB0171: Created virtual server [server]|#] [#|2012-01-12T07:17:01.610-0800|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=7;_ThreadName=Thread-11;|WEB0171: Created virtual server [__asadmin]|#] [#|2012-01-12T07:17:01.926-0800|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=7;_ThreadName=Thread-11;|WEB0172: Virtual server [server] loaded default web module []|#] [#|2012-01-12T07:17:03.551-0800|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=7;_ThreadName=Thread-11;|WEB0671: Loading application [simple-bv-servlet] at [/simple-bv-servlet]|#] [#|2012-01-12T07:17:03.779-0800|INFO|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=7;_ThreadName=Thread-11;|simple-bv-servlet was successfully deployed in 4,981 milliseconds.|#] [#|2012-01-12T07:17:06.432-0800|INFO|glassfish3.1.2|javax.enterprise.system.core.security|_ThreadID=8;_ThreadName=Thread-11;|JACC Policy Provider:Failed Permission Check: context (" simple-bv-servlet/simple-bv-servlet ") , permission (" (org.osgi.framework.AdminPermission (id=13) resolve,resource) ") |#] SECTION: Notes: Note that the exception shown in the initial bug filing: [#|2011-09-12T12:47:22.022-0700|WARNING|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=8;_ThreadName=Thread-11;|StandardWrapperValve[SimpleBVServlet]: PWC1406: Servlet.service() for servlet SimpleBVServlet threw exception java.security.AccessControlException: Access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) at java.security.AccessController.checkPermission(AccessController.java:108) at java.lang.SecurityManager.checkPermission(SecurityManager.java:544) at java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:118) at com.ibm.oti.reflect.AnnotationHelper$AnnotationInvocationHandler.compare(AnnotationHelper.java:186) is *NOT* occurring with the patch in place.