Top "Java-ee-6" questions

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

jax-rs retrieve form parameters

I'm trying to retrieve some parameters that are passed to jax-rs from a posted form with the HttpServletRequest. However, my …

java rest jakarta-ee java-ee-6 jax-rs
Where should beans.xml be placed?

I've just upgraded to NetBeans 7.1 from 7.0. On opening a JSF managed bean it "helpfully" told me that it couldn't find …

java-ee-6 glassfish-3
Can't instantiate javax.servlet.ServletException

I am trying to create instance of class javax.servlet.ServletException with following code public class MyTroubleViewer { public static void …

java maven-2 servlets jakarta-ee java-ee-6
"@inject"-ed attribute remains null

I am trying to inject a service into my bean but it is always null. I get the following error: …

java jakarta-ee dependency-injection java-ee-6 javabeans
EJB3 + JEE6: What is a persistent Timer?

I'm just about to use the new EJB3 TimerService (as part of Java EE 6), and as usual, I'm impressed by …

ejb-3.0 timer java-ee-6
JPA Nested Transactions And Locking

Consider the scenario two methods exists in different stateless bean public class Bean_A { Bean_B beanB; // Injected or whatever …

java jpa jpa-2.0 java-ee-6
Spring - Weird Error in Bean Creation

Any idea why I am getting this exception? Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name …

java spring dependency-injection java-ee-6 cglib
Select MAX timestamp with JPA2 Criteria API

So my entity has: @Column(name="TS", nullable=false) private java.sql.Timestamp timestamp; My generated MetaModel has: public static …

java generics jpa-2.0 java-ee-6 criteria-api
@OneToOne(optional=false) and @JoinColumn(nullable=false) used together

I've bumped into this example in JPA 2.0 FR Specification, 11.1.37. OneToOne Annotation, page 403: @OneToOne(optional=false) @JoinColumn(name="CUSTREC_ID", unique=…

java annotations jpa-2.0 java-ee-6 nullable
JSR-303 Bean Validation for enum fields

I have a simple bean with enum field public class TestBean{ @Pattern(regexp = "A|B") //does not work private TestEnum …

jakarta-ee java-ee-6 bean-validation