Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
9.3.0, 9.9.1
-
None
-
None
-
None
-
Java 11, Windows 10 Enterprise, Payara Server 5.201
Description
This exception did not occur in 9.0.0, was first encountered when trying to upgrade from 9.0.0 to 9.3.0 and is still present in 9.9.1.
It occurs at runtime (running under Payara 5.201) when loading any EJB.
We first came across this exception when attempting database access, but it is not limited to database access, it also occurs with a JavaMail EJB. This means the problem can be reproduced by adding only one short extra file to your quick-start templates. I have created and am attaching two extremely simple quick-start applications, based on your templates for 9.0.0 and 9.3.0. All their Java and HTML source is identical, and essentially the only difference between them is their Wicket version. The 9.0.0 version works fine, and the 9.3.0 version throws the "MethodInterceptor class not found exception" before the home page can even be displayed.
To get the 9.0.0 version working, deploy on Payara 5 and configure a JavaMail session called "mail/GmailSession" with the details of your mail server. A simple form is displayed on the home page, allowing the user to enter their email address. When the form is submitted, a test message is sent to that email address.
Diff pom.xml
$ diff -w quickstart_9_0_0/pom.xml quickstart_9_3_0/pom.xml
24c24
< <artifactId>quickstart_9_0_0</artifactId>
—
> <artifactId>quickstart_9_3_0</artifactId>
28c28
< <name>quickstart_9_0_0</name>
—
> <name>quickstart_9_3_0</name>
44,45c44,45
< <wicket.version>9.0.0</wicket.version>
< <jetty9.version>9.4.29.v20200521</jetty9.version>
—
> <wicket.version>9.3.0</wicket.version>
> <jetty9.version>9.4.38.v20210224</jetty9.version>
47c47
< <junit.version>5.6.2</junit.version>
—
> <junit.version>5.7.1</junit.version>
Diff src
$ diff -rw quickstart_9_0_0/src quickstart_9_3_0/src
diff -rw quickstart_9_0_0/src/main/webapp/WEB-INF/web.xml quickstart_9_3_0/src/main/webapp/WEB-INF/web.xml
6c6
< <display-name>quickstart_9_0_0</display-name>
—
> <display-name>quickstart_9_3_0</display-name>
20c20
< <filter-name>wicket.quickstart_9_0_0</filter-name>
—
> <filter-name>wicket.quickstart_9_3_0</filter-name>
29c29
< <filter-name>wicket.quickstart_9_0_0</filter-name>
—
> <filter-name>wicket.quickstart_9_3_0</filter-name>
Attachments
Attachments
Issue Links
- duplicates
-
WICKET-6913 Java 17 compatibility with cglib
- Resolved