Top "Java-ee-6" questions

Use this tag for questions relating specifically to Java Enterprise Edition 6.

How to set JSF2 <welcome-file> with faces servlet mapping?

I have a simple JSF2 app using Facelets. My web.xml is set as follows:- <servlet-mapping> <…

jsf-2 java-ee-6
WELD-001408 Unsatisfied dependencies when injecting EntityManager

I have @Stateless bean which implements two interfaces (remote and local). I have also added @LocalBean anotation for accessing bean …

dependency-injection java-ee-6 cdi entitymanager stateless-session-bean
ASM jar - Why my java project has a dependency on this?

I have a Java project and internally it is dependent on asm jar. Strangely, I don't even know why my …

java maven-2 java-ee-6 java-bytecode-asm
javax.security.auth.login.LoginException: Security Exception

I am attempting to setup container managed security with GlassFish v3.1.2 and JSF 2.1 and primeFaces 3.4.2 The value HexValue and the …

java glassfish java-ee-6 jaas jdbcrealm
What does "org.hibernate.DuplicateMappingException" error mean?

I'm trying to force JPA/Hibernate to generate and use only lowercase tablenames. I've implemented a NamingStrategy like this: public …

java hibernate jpa java-ee-6 glassfish-3
JavaEE6 DAO: Should it be @Stateless or @ApplicationScoped?

I'm currently creating an EJB3 Data Access Class to handle all database operations in my Java EE 6-application. Now, since …

java jakarta-ee ejb java-ee-6 ejb-3.1
Cannot run arquillian tests

I'm trying to use Arquillian for some unit tests, however I can't find why they fail when deployed using Maven. …

java unit-testing java-ee-6 ejb-3.1 jboss-arquillian
EntityManager.find can't find entity, but using the Criteria API does

I've encountered a rather odd case in Java EE 6 where using the JPA EntityManager's find method along with an entity's …

hibernate jakarta-ee jpa-2.0 java-ee-6 criteria-api
Understanding cdi Instance<> and .get() vs @Inject

I'm a little confused about which to use in the following situation: Suppose the servlet creates an Application that handles …

jakarta-ee java-ee-6 cdi jboss-weld
How to define <welcome-file-list> and <error-page> in servlet 3.0's web.xml-less?

I have existing web-app which I want to convert into web.xml-less of servlet's 3.0. I've managed to make it working, …

java tomcat7 java-ee-6 servlet-3.0