Skip to content

Instantly share code, notes, and snippets.

@scottmarlow
scottmarlow / gist:65072abcf73aabcbef6542550bc11f68
Created May 18, 2022
jndi problem with com/sun/ts/tests/ejb30/lite/packaging/war/enventry/JsfClient.java#appNameModuleName_from_ejblitejsf (ejblite_packaging_war_enventry_ejblitejsf_vehicle_web.war) test
View gist:65072abcf73aabcbef6542550bc11f68
1. From deployment to undeployment including failure from server.log:
[2022-05-17T23:33:14.432+0000] [glassfish 7.0] [INFO] [NCLS-DEPLOYMENT-02027] [jakarta.enterprise.system.tools.deployment.autodeploy] [tid: _ThreadID=83 _ThreadName=AutoDeployer] [timeMillis: 1652830394432] [levelValue: 800] [[
Selecting file /root/vi/glassfish7/glassfish/domains/domain1/autodeploy/ejblite_packaging_war_enventry_ejblitejsf_vehicle_web.war for autodeployment]]
[2022-05-17T23:33:14.777+0000] [glassfish 7.0] [INFO] [] [jakarta.enterprise.system.tools.deployment.common] [tid: _ThreadID=83 _ThreadName=AutoDeployer] [timeMillis: 1652830394777] [levelValue: 800] [[
visiting unvisited references]]
[2022-05-17T23:33:15.023+0000] [glassfish 7.0] [INFO] [NCLS-SECURITY-01001] [jakarta.enterprise.system.core.security] [tid: _ThreadID=83 _ThreadName=AutoDeployer] [timeMillis: 1652830395023] [levelValue: 800] [[
Java security manager is enabled.]]
@scottmarlow
scottmarlow / gist:2f44138c58d69184f8d9fbf65547d137
Created May 16, 2022
Expecting /ejblite_packaging_war_enventry_ejblitejsf_vehicle_web, but actual ejblite_packaging_war_enventry_ejblitejsf_vehicle_web
View gist:2f44138c58d69184f8d9fbf65547d137
[TEST FAILED] testName=appNameModuleNameFromEJB Failed with EJBException caused by
java.lang.RuntimeException:
Check java:module/ModuleName Expecting /ejblite_packaging_war_enventry_ejblitejsf_vehicle_web, but actual ejblite_packaging_war_enventry_ejblitejsf_vehicle_web
at com.sun.ts.tests.ejb30.common.helper.Helper.assertEquals(Helper.java:89)
at com.sun.ts.tests.ejb30.lite.packaging.war.enventry.BeanBase.appNameModuleName(BeanBase.java:116)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
@scottmarlow
scottmarlow / gist:5fb5d19538d732317edacc338b38d47b
Created May 9, 2022
com/sun/ts/tests/ejb30/lite/singleton/dependson/triangle/Client.java#triangleNoStartUp_from_ejbembed with GlassFish 7 running on JDK17
View gist:5fb5d19538d732317edacc338b38d47b
[runcts] OUT => [javatest.batch] [#|2022-05-09T14:51:23.018-0400|SEVERE||jakarta.enterprise.system.tools.deployment.common|_ThreadID=1;_ThreadName=main;_TimeMillis=1652122283018;_LevelValue=1000;|Exception while invoking class org.glassfish.ejb.startup.EjbDeployer load method
[runcts] OUT => [javatest.batch] java.lang.RuntimeException: EJB Container initialization error
[runcts] OUT => [javatest.batch] at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:210)
[runcts] OUT => [javatest.batch] at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:264)
[runcts] OUT => [javatest.batch] at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:80)
[runcts] OUT => [javatest.batch] at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:182)
[runcts] OUT => [javatest.batch] at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:289)
[runcts] OUT => [javatest.batch] at com.sun.enterprise.v3.server.ApplicationLifecycle.deplo
@scottmarlow
scottmarlow / gist:4283686070c8701a8171cfc33c743081
Created May 5, 2022
On JDK17 running com/sun/ts/tests/ejb30/lite/enventry/singleton/Client.java#clientPostConstructRecords_from_ejbembed
View gist:4283686070c8701a8171cfc33c743081
Updated each use of "ExecTSTestCmd" in jakartaee/bin/ts.jte as follows:
"
command.testExecute=com.sun.ts.lib.harness.ExecTSTestCmd \
CLASSPATH=${ts.harness.classpath}${pathsep}${ts.home}/classes${pathsep}\
${JAVA_HOME}/../lib/tools.jar${pathsep}\
${ri.modules}/security-ee.jar${pathsep}\
${ts.home}/lib/commons-httpclient-3.1.jar${pathsep}\
${ts.home}/lib/commons-logging-1.1.3.jar${pathsep}\
${ts.home}/lib/commons-codec-1.9.jar${pathsep}\
${ts.home}/lib/cssparser-0.9.25.jar${pathsep}\
@scottmarlow
scottmarlow / gist:9d51e0c7e306c02070ed5e6c8cba0453
Created May 4, 2022
eftl-jakartaeetck-run-100/44 was started to run only the `ejb30/lite/singleton` tests with JDK 17 via jakartaee-tck/job/master/1780
View gist:9d51e0c7e306c02070ed5e6c8cba0453
https://ci.eclipse.org/jakartaee-tck/job/10/job/eftl-jakartaeetck-run-100/44 was started to run only the `ejb30/lite/singleton` tests with JDK 17 via https://ci.eclipse.org/jakartaee-tck/job/jakartaee-tck/job/master/1780
1. The first error in the job console is:
command: com.sun.ts.lib.harness.ExecTSTestCmd CLASSPATH=/root/jakartaeetck/bin/xml/../../lib/tsharness.jar:/root/jakartaeetck/bin/xml/../../lib/cts.jar:/root/jakartaeetck/bin/xml/../../lib/glassfishporting.jar:/root/jakartaeetck/bin/xml/../../lib/commons-lang3-3.3.2.jar:/root/vi/glassfish7/glassfish/../javadb/lib/derbyclient.jar:/root/vi/glassfish7/glassfish/../javadb/lib/derbyshared.jar:/root/vi/glassfish7/glassfish/../javadb/lib/derbytools.jar:/root/vi/glassfish7/glassfish/lib/embedded/glassfish-embedded-static-shell.jar:/root/jakartaeetck/bin/xml/../../dist/com/sun/ts/tests/ejb30/lite/singleton/concurrency/bean/ejbembed_vehicle_ejb.jar DISPLAY=:0.0 HOME=/ TMP= windir= SYSTEMROOT= /opt/jdk-17.0.1/bin/java -Dcts.tmp=/root/jakartaeetck/bin/xml/..
View gist:67a2c64b88f8453a622931235c12ad4e
[2022-05-03T12:30:25.898+0000] [glassfish 7.0] [WARNING] [AS-DEPLOYMENT-02016] [jakarta.enterprise.system.tools.deployment.javaeefull] [tid: _ThreadID=80 _ThreadName=AutoDeployer] [timeMillis: 1651581025898] [levelValue: 900] [[
Error occurred
MultiException stack 1 of 2
java.lang.StackOverflowError
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.jvnet.hk2.osgiadapter.OSGiModuleImpl$4.loadClass(OSGiModuleImpl.java:446)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at com.sun.enterprise.v3.server.APIClassLoaderServiceImpl$APIClassLoader.loadClass(APIClassLoaderServiceImpl.java:235)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:575)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
@scottmarlow
scottmarlow / gist:bc6f9cbad4821a6775828dbbf900866c
Created May 4, 2022
Jakarta EE 10 Platform TCK test 72 failures in jsonp.pluggability.jsonprovidertests
View gist:bc6f9cbad4821a6775828dbbf900866c
[2022-05-03T13:10:16.702+0000] [glassfish 7.0] [SEVERE] [] [] [tid: _ThreadID=54 _ThreadName=Thread-8] [timeMillis: 1651583416702] [levelValue: 1000] [[
java.security.AccessControlException: access denied ("jakarta.xml.ws.WebServicePermission" "CTSPermission3_name")
at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.base/java.security.AccessController.checkPermission(AccessController.java:895)
at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager$1.run(PermissionDDWorkManager.java:334)
at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager$1.run(PermissionDDWorkManager.java:332)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager.doCheckPermission(PermissionDDWorkManager.java:332)
at com.sun.ts.tests.common.connector.whitebox.permissiondd.PermissionDDWorkManager.validateMissingPermFails(Permi
@scottmarlow
scottmarlow / gist:841b30e370ea8caa75f2ba16aef77f05
Last active May 4, 2022
jps failure deploying jsp_tagfile_directives_attribute20_web.war for jsp/spec/core_syntax/actions/element/URLClient.java\#jspElementDynamicAttributeTest
View gist:841b30e370ea8caa75f2ba16aef77f05
[2022-05-03T12:50:02.530+0000] [glassfish 7.0] [INFO] [NCLS-DEPLOYMENT-02035] [jakarta.enterprise.system.tools.deployment.autodeploy] [tid: _ThreadID=81 _ThreadName=AutoDeployer] [timeMillis: 1651582202530] [levelValue: 800] [[
[AutoDeploy] Successfully autodeployed : /root/vi/glassfish7/glassfish/domains/domain1/autodeploy/jsp_tagfile_directives_attribute20_web.war.]]
[2022-05-03T12:50:09.716+0000] [glassfish 7.0] [WARNING] [] [jakarta.enterprise.web] [tid: _ThreadID=31 _ThreadName=http-listener-1(4)] [timeMillis: 1651582209716] [levelValue: 900] [[
StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.ClassCastException: class org.glassfish.wasp.runtime.ELContextWrapper cannot be cast to class org.glassfish.wasp.runtime.ELContextImpl (org.glassfish.wasp.runtime.ELContextWrapper and org.glassfish.wasp.runtime.ELContextImpl are in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @3a6522de)
at org.glassfish.wasp.runtime.PageContextImp
@scottmarlow
scottmarlow / gist:a2106ac3fd0d8fd5e124f1e6804b392e
Created May 4, 2022
jsp failure deploying integration_sec_secbasicssl.ear for com/sun/ts/tests/integration/sec/secbasicssl/Client.java\#test_login_basic_over_ssl
View gist:a2106ac3fd0d8fd5e124f1e6804b392e
Error compiling file: /root/vi/glassfish7/glassfish/domains/domain1/generated/jsp/integration_sec_secbasicssl/integration_sec_secbasicssl_web_war/org/apache/jsp/basicSSL_jsp.java]]
[2022-05-03T12:23:39.872+0000] [glassfish 7.0] [WARNING] [] [jakarta.enterprise.web] [tid: _ThreadID=38 _ThreadName=http-listener-2(4)] [timeMillis: 1651580619872] [levelValue: 900] [[
StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
org.glassfish.wasp.WaspException: PWC6033: Error in Javac compilation for JSP
PWC6197: An error occurred at line: 28 in the jsp file: /basicSSL.jsp
PWC6199: Generated servlet error:
cannot find symbol
symbol: variable HttpUtils
@scottmarlow
scottmarlow / gist:d21103118ae3e86c25db76261b3a49ff
Last active May 3, 2022
With nightly GlassFish 7 build with mojarra 4.0.0-M7-RELEASE included, getting ViewHandlingStrategyNotFoundException from getViewDeclarationLanguage
View gist:d21103118ae3e86c25db76261b3a49ff
[2022-05-03T12:21:43.003+0000] [glassfish 7.0] [WARNING] [] [jakarta.enterprise.web] [tid: _ThreadID=30 _ThreadName=http-listener-1(3)] [timeMillis: 1651580503003] [levelValue: 900] [[
StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
com.sun.faces.application.view.ViewHandlingStrategyNotFoundException
at java.base/java.util.Optional.orElseThrow(Optional.java:408)
at com.sun.faces.application.view.ViewHandlingStrategyManager.getStrategy(ViewHandlingStrategyManager.java:57)
at com.sun.faces.application.view.ViewDeclarationLanguageFactoryImpl.getViewDeclarationLanguage(ViewDeclarationLanguageFactoryImpl.java:45)
at com.sun.faces.application.view.MultiViewHandler.getViewDeclarationLanguage(MultiViewHandler.java:407)
at jakarta.faces.application.ViewHandlerWrapper.getViewDeclarationLanguage(ViewHandlerWrapper.java:335)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:179)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:72)