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

Setting correct folder for beans.xml #1179

Closed
wants to merge 1 commit into from

Conversation

jbescos
Copy link
Member

@jbescos jbescos commented May 29, 2023

Fixes Issue
helidon-io/helidon#6799

Related Issue(s)
helidon-io/helidon#6799

Describe the change
There are a couple of tests here that creates the beans.xml in WEB-INF. Correct me if I am wrong, but I think the correct folder is WEB-INF/classes/META-INF.

Additional context
This makes some issues in Helidon Arquillian container because when it does not find a beans.xml it will create a default one. I can fix it in Helidon if this PR does not make sense.

CC @alwin-joseph @anajosep @arjantijms @cesarhernandezgt @dblevins @m0mus @edbratt @gurunrao @jansupol @jgallimore @kazumura @kwsutter @LanceAndersen @bhatpmk @RohitKumarJain @shighbar @gthoman @brideck @OndroMih @dmatej
@starksm64 @scottmarlow

Signed-off-by: Jorge Bescos Gascon <[email protected]>
@jbescos
Copy link
Member Author

jbescos commented Jun 1, 2023

@starksm64 I think you created the tests. Does this change make sense to you?.

@gurunrao gurunrao requested review from starksm64 and scottmarlow June 1, 2023 04:38
@jbescos
Copy link
Member Author

jbescos commented Jun 5, 2023

Reading the spec, in the section 2.11.1. Bean archives, it says:

The beans.xml file must be named:
• META-INF/beans.xml

My understanding is that WEB-INF/beans.xml is not a valid name.

@jbescos
Copy link
Member Author

jbescos commented Jun 5, 2023

My bad, I found it can be in WEB-INF, int the section17.1. Bean archive with EJB Session Beans:

In a war, the beans.xml file must be named:
• WEB-INF/beans.xml or WEB-INF/classes/META-INF/beans.xml.

Closing.

@jbescos jbescos closed this Jun 5, 2023
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

Successfully merging this pull request may close these issues.

1 participant