Questions tagged [java-ee-7]

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

Java Enterprise Edition 7 (JEE7) is a specification defining a collection of Java-based technologies and how they interoperate. JEE7 incorporates the features of technologies of JEE6, including EJB3, JPA, JSF, CDI, etc. and adding new features like WebSockets, etc.

Numerous implementations are available in the form of both commercial products and open source projects.

Information

This tag is specific for the Java EE 7 version. See the tag for general Java EE questions.

Useful links

1224 questions
0
votes
1 answer

What is the magic behind the scene of Java ee jms?

I've just started with Java ee 7, and here is something I couldnt get the idea of how it magically works. I follow the example from the book Beginning Java EE 7 by Antonio Goncalves. I managed to compile and deploye the code of chapter 13 (about…
jAckOdE
  • 2,402
  • 8
  • 37
  • 67
0
votes
1 answer

@Transactional annotation java.lang.IllegalArgumentException: Transaction must be running

I am using JavaEE7 and container managed transactions in my Project. Although i have @Transactional annotation on method, i am getting "Transaction must be running" exception. Code seems as…
bilal
  • 103
  • 1
  • 1
  • 5
0
votes
1 answer

Custom bean validation does not `@inject` CDI beans and does not interpolate message?

I am using GF4 with bean validation. I am trying to @Inject a service bean in my custom validator but I get a null value. public class TestValidator implements ConstraintValidator<>{ @Inject Service myService; } Isn't this suppose to be working…
Ioannis Deligiannis
  • 2,679
  • 5
  • 25
  • 48
0
votes
1 answer

JMS application on cloudBees with Amazon EC2 broker

I have a Java ee 7 JMS app, I would like deploy it on CloudBees. I have tried a simple app with cloudAMQP, it work. But CloudAMQP offers hosted RabbitMQ service. I have to use JMS client, because my code is implement in java JMS. The last day, I…
0
votes
2 answers

A connection pool error in CloudBees Java EE/Glassfish 4 Full plateform

CloudBees is add a new Java EE 7/Glassfish 4 Full plateform in their clickstart. If I understand correctly, this mean that it support all Java EE 7 features(contain JMS app). But when I run my JMS app, it log a error "Failed to obtain/create…
0
votes
1 answer

Packaging optional JPA entity classes

I was reading the following post to package JSF pages into jar files, which is great for including only those modules of a system that a client needs: Packaging Facelets files (templates, includes, composites) in a JAR I'd like to do something…
John Manko
  • 1,828
  • 27
  • 51
0
votes
1 answer

How to use/configure JAX-RS 2.0, SpringSecurity 3.1.+, EJB 3.2 all together

I am currently trying to setup a project with these main technologies: Java EE 7 EJB 3.2 JAX-RS (Jersey) 2.0 Glassfish 4 Spring Security 3.1.5 I saw that it is possible to write something like that @Stateless @Path("apath") public class…
Laurent
  • 156
  • 2
  • 11
0
votes
1 answer

Java EE database Facade Connection Error

I am trying to connect to a database using Facade. I am using Netbeans 7.3.1 JDK 1.7 and JAva EE 7. There is a Enterprise Application, a client application couple of beans and a class library. I mostly used the insert code method in netbeans to…
kousha
  • 752
  • 2
  • 10
  • 23
0
votes
1 answer

NetBeans 7.4 not creating jar files properly

I am developing a project for a Java Enterprise Applications class. I have an application with an ejb module that has "facade" classes from a class library that connects to a simple Twitter-like database. All the logic is working fine, however, when…
gamda
  • 580
  • 6
  • 24
0
votes
1 answer

How to create Java web application using Struts and GlassFish?

I can not find any resources on how to create a simple (Hello World) web application using Struts and GlassFish in Eclipse. The best thing I found was this. They are however not using GlassFish, and so I do not have the XML files they are talking…
Xyzk
  • 1,332
  • 2
  • 21
  • 36
0
votes
1 answer

Using java ee 7 batch processing in Netbeans 7.4 and Glassfish 4

Hi I've created an new Maven Enterprise Application, which gives me 3 modules: {proj}-ear, {proj}-web and {proj}-ejb. I think my Facelets and JSF beans should be in {proj}-web, but in this module, I cannot import from javax.batch.*. If I put the…
cpliu338
  • 645
  • 1
  • 7
  • 20
0
votes
1 answer

JSF h:messages render global message is not rerendered

I'm trying to display global error messages which are sent from EJB with: FacesContext.getCurrentInstance().addMessage( null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Please…
sarah.ferguson
  • 3,167
  • 2
  • 23
  • 31
0
votes
1 answer

GeoIP2 with Glassfish. Is it possible?

Is it possible to use GeoIP2 with Glassfish server? I use maven for GeoIP2 com.maxmind.geoip2 geoip2 0.5.0 I get the following error: SEVERE: …
Pavel
  • 1,278
  • 2
  • 17
  • 34
0
votes
1 answer

I'm getting an Error using built-in Constraint Annotations using Maven

I'm using maven 3, junit 4.11, hibernate.validator 5.0.1.Final and jdk 1.7. When using a standard built-in constraint annotation, I get the following error, which doesn't appear using a self-written constraint class. I have no clue why this is…
heinzbent
  • 26
  • 2
0
votes
1 answer

Java-EE 7 Json Spec - Read/Write capability?

Just started writing some code with the JSON reference library (http://docs.oracle.com/javaee/7/api/javax/json/package-summary.html), and run into a simple problem. With a simple but "ugly" solution. JsonObjects are 'immutable', despite being…
iain
  • 101
  • 1