Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

illegal-access, jdk-11, jsr376, on jboss wildfly 17 #1089

Closed
StephenDoody opened this issue Jul 31, 2019 · 6 comments
Closed

illegal-access, jdk-11, jsr376, on jboss wildfly 17 #1089

StephenDoody opened this issue Jul 31, 2019 · 6 comments
Assignees
Labels
bug Solved This ticket has been solved. If it's still open, we're waiting for the user's confirmation.
Milestone

Comments

@StephenDoody
Copy link

No description provided.

@StephenDoody
Copy link
Author

I was experimenting with bootsfaces-1.4.1 on wildfly 17 , received:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.as.server.deployment.reflect.ClassReflectionIndex (jar:file:/C:/Wildfly/wildfly-17.0.1.Final/modules/system/layers/base/org/jboss/as/server/main/wildfly-server-9.0.2.Final.jar!/) to field java.util.Date.gcal

For details, please see the JBoss forum post: https://developer.jboss.org/message/990456?et=watches.email.thread#990456

The combination of the bootsfaces META-INF/faces-config.xml


java.util.Date as current datetime available by #{now}. ]]>

now
java.util.Date
request

Causes the JBoss server deployment to attempt to treat java.util.Date as a managed bean, which then causes java-11 to issue illegal-access warnings.

Thanks to JBoss developer, Jaikiran Pai for the root cause investigation support.

My $0.1
Reconsider #Now use of a long deprecated Date class?
Update bootsfaces to a JPMS/JDK-11 ready version, and test with Wildfly.
Publish some doc/info on intended future support for JPMS/jdk-11, I couldn't find anything relevant.

Kind regards

Stephen Doody
sd AT acm DOT org

@stephanrauh
Copy link
Collaborator

@StephenDoody Please have a look at the current developer version 1.4.2-SNAPSHOT. I've removed #{now} yesterday because OmniFaces provides the same bean, only better.

@StephenDoody
Copy link
Author

@StephenDoody Please have a look at the current developer version 1.4.2-SNAPSHOT. I've removed #{now} yesterday because OmniFaces provides the same bean, only better.

@stephanrauh Please verify which maven repo holds that published artifact? could not locate it, got: Could not find artifact net.bootsfaces:bootsfaces:pom:1.4.2-SNAPSHOT in Maven Central (https://repo1.maven.org/maven2/)

<dependency> <groupId>net.bootsfaces</groupId> <artifactId>bootsfaces</artifactId> <version>1.4.2-SNAPSHOT</version> </dependency>

@stephanrauh
Copy link
Collaborator

It's in the snapshot directory of Maven Central. Try this one:

	<repositories>
		<repository>
			<id>central</id>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
	</repositories>

@StephenDoody
Copy link
Author

@stephanrauh
Yep, that did it, no illegal access warnings deploying to Wildfly17 running on AWS Corretto OpenJDK-11

Please advise when the change becomes permanent.

Thank you for the prompt response.

Kind Regards
Steve

@stephanrauh stephanrauh self-assigned this Aug 2, 2019
@stephanrauh stephanrauh added bug Solved This ticket has been solved. If it's still open, we're waiting for the user's confirmation. labels Aug 2, 2019
@stephanrauh stephanrauh added this to the v1.5.0 milestone Aug 2, 2019
@geopossachs geopossachs modified the milestones: v1.5.0, v1.4.2 Sep 1, 2019
@geopossachs
Copy link
Collaborator

geopossachs commented Sep 1, 2019

We solved the issue by "remove undocumented bean #{now}" #1086

We recommend using the following third library:
http://showcase.omnifaces.org/managedbeans/now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Solved This ticket has been solved. If it's still open, we're waiting for the user's confirmation.
Projects
None yet
Development

No branches or pull requests

3 participants