For EJB and JAR packaging you should place the beans.xml
in src/main/resources/META-INF/
.
For WAR packaging you should place the beans.xml
in src/main/webapp/WEB-INF/
.
Remember that only .java
files should be put in the src/main/java
and src/test/java
directories. Resources like .xml
files should be in src/main/resources
.
Related Contents:
- Why use @PostConstruct?
- Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved
- Java EE 6 @javax.annotation.ManagedBean vs. @javax.inject.Named vs. @javax.faces.ManagedBean
- Should I use @EJB or @Inject
- How to create a modular JSF 2.0 application?
- How to programmatically inject a Java CDI managed bean into a local variable in a (static) method
- What exactly is Java EE?
- How do I load a file from resource folder?
- Adding external library to artifact jar in IntelliJ IDEA
- Why is spawning threads in Java EE container discouraged?
- What is an uber jar?
- IntelliJ inspection gives “Cannot resolve symbol” but still compiles code
- PowerMockito mock single static method and return object
- Eclipse can’t find XML related classes after switching build path to JDK 10
- Dealing with “Xerces hell” in Java/Maven?
- Difference between Java SE/EE/ME?
- Can I connect to SQL Server using Windows Authentication from Java EE webapp?
- How to configure encoding in Maven?
- Difference of Maven JAXB plugins
- How to read request.getInputStream() multiple times
- Jersey Maven quickstart archetype in Eclipse
- UTF-8 text is garbled when form is posted as multipart/form-data
- EJB 3.1 @LocalBean vs no annotation
- Maven: How to change path to target directory from command line?
- Compile and execute a JDK preview feature with Maven
- Execute jar file with multiple classpath libraries from command prompt
- Maven Compilation Error: (use -source 7 or higher to enable diamond operator)
- Where are compiled JSP Java (*__jsp.java) files?
- Cannot change version of project facet Dynamic Web Module to 3.0?
- When to use EntityManager.find() vs EntityManager.getReference() with JPA
- How to add an extra source directory for maven to compile and include in the build jar?
- What are Shadow Variables in Java? [duplicate]
- Ambari 2.7.5 installation failure on CentOS 7
- IntelliJ doesn’t load javafx packages from Maven dependencies (JavaFX 17)
- Valid JAR signature for JavaFX projects
- Does JAXB support xsd:restriction?
- Why Maven uses JDK 1.6 but my java -version is 1.7
- Maven resource filtering not working – because of spring boot dependency [duplicate]
- How do CDI and EJB compare? interact?
- What is local/remote and no-interface view in EJB?
- Is it possible to build a java project only once using eclipse and share?
- How to create a Java / Maven project that works in Visual Studio Code?
- Run Spring-boot’s main using IDE
- How to create spring-based executable jar with maven?
- How do you enable JMX in Websphere?
- Hibernate Criteria for Dates
- how to create a remote session EJB from a client
- Maven- No plugin found for prefix ‘spring-boot’ in the current project and in the plugin groups
- Maven build failed: “Unable to locate the Javac Compiler in: jre or jdk issue”
- PersistenceUnit vs PersistenceContext