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

javaee-8.0 doesn't work with Websphere Liberty samples. #42

Open
yibolisolace opened this issue Jul 5, 2023 · 0 comments
Open

javaee-8.0 doesn't work with Websphere Liberty samples. #42

yibolisolace opened this issue Jul 5, 2023 · 0 comments

Comments

@yibolisolace
Copy link

I am following the Websphere Liberty integration guide: https://codelabs.solace.dev/codelabs/websphere-liberty/index.html?index=..%2F..index#4
I found that when enabling javaee-8.0 in server.xml:

<featureManager>
    <feature>javaee-8.0</feature>
</featureManager>

It returns below error when running the samples:

[7/4/23, 18:18:28:117 EDT] 0000005b com.ibm.ejs.container.LocalExceptionMappingStrategy E CNTR0019E: EJB threw an unexpected (non-declared) exception during invocation of method "onMessage". Exception data: javax.ejb.EJBException: The EJB reference in the ConsumerMDB component in the test.jar module of the test application could not be resolved; nested exception is: com.ibm.ejs.container.EJBNotFoundException: CNTR4012E: The ejbModule.com.solace.sample.Producer remote interface for the ProducerSB enterprise bean in the test.jar module in the test application could not be obtained for injection because remote interfaces are not supported by any of the features configured in the server.xml file.

If I remove javaee-8.0 and add following instead:

<featureManager>
    <feature>localConnector-1.0</feature>
    <feature>ejbRemote-3.2</feature>
	<feature>mdb-3.2</feature>
	<feature>ejbHome-3.2</feature>
	<feature>ejb-3.2</feature>
	<feature>jms-2.0</feature>
	<feature>jca-1.7</feature>
	<feature>jndi-1.0</feature>
</featureManager>

The samples works fine. I am using Websphere Liberty 23.0.0.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant