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
11
votes
1 answer

POST using JAX-RS 2.0 Client API

I have a REST Service which exposes a POST service using Form Parameters: @POST @Path("/add") @Produces("text/html") public Response create(@FormParam("key")String key, @FormParam("value")String value) { …
user2824073
  • 2,407
  • 10
  • 39
  • 73
11
votes
1 answer

Quartz vs Java EE 7 scheduler

I'm a java EE developer which has used until now frameworks like Quartz to schedule tasks. I can see that Java EE 7 features a ManagedScheduledExecutorService to schedule single or repeating tasks. As I have never used in real projects this new…
user2824073
  • 2,407
  • 10
  • 39
  • 73
10
votes
4 answers

How to implement push to client using Java EE 7 WebSockets?

I've browsed a lot of Web Socket examples, presentation slides and they are mostly concentrated on a rather simple scenarios in which client-server communication is initiated by the client. I am interested in another scenario, which seems to be…
Piotr Kochański
  • 21,862
  • 7
  • 70
  • 77
10
votes
1 answer

Mock or build a Jersey InboundJaxrsResponse

I'm fairly new developing jersey client, and has run into some problems with some testing. First off all I maybe should mention that my application is all client side, no server side stuff at all. My problem is that I would like to create a Response…
Robert
  • 4,602
  • 4
  • 22
  • 33
10
votes
1 answer

Is @javax.annotation.ManagedBean a CDI bean defining annotation?

The Question Given that the archive we deploy is an "implicit bean archive" (see below), using @javax.inject.Inject to inject a @javax.annotation.ManagedBean into another managed bean work in WildFly 8.1.0, but it won't work in GlassFish 4.0.1-b08…
Martin Andersson
  • 18,072
  • 9
  • 87
  • 115
9
votes
1 answer

How to test a Java EE7 Websocket

I have implemented a WebSocket using the api provided with Java EE 7. Additionally I have implemented a client that requests my WebSocket without any problems. To be sure this remains working when performing some code changes I want to implement…
J. Su.
  • 451
  • 1
  • 6
  • 18
9
votes
2 answers

How to manage Lazy Loading in Mapstruct?

I am dealing with a problem related with lazy loaded objects from the database. Let's say that we have the below entity. @Entity(name = "User") @Table(name = "USERS") public class User{ @Id @GeneratedValue private int id …
Dorin Brage
  • 158
  • 1
  • 5
  • 14
9
votes
2 answers

Configuring proxy for JAX-RS 2.0 client API

I have an application that is running on a Java EE 7 application server (WildFly), that queries another service using REST resources. In previous applications I have used the Jersey 1.x client API. Access to the REST service is granted through a web…
Max Fichtelmann
  • 3,366
  • 1
  • 22
  • 27
9
votes
1 answer

Java EE 7 Json.createBuilderFactory(config) - what can you do with a non-null config?

I was trying to use the Java EE 7 JsonBuilder and have been having trouble understanding the config parameter for createBuilderFactory. Yes, one can leave it blank or null, but what else can one do? JsonBuilderFactory factory =…
Bradley Slavik
  • 875
  • 7
  • 13
9
votes
2 answers

How Create Gradle sharedManifest for multiple projects?

I have multiple java projects. these projects are creating jar,war and ear files using gradle. In each project I have used manifest file to maintain the meta data like version,date-time... Fro this I have included the manifest file creation logic in…
user3496599
  • 1,207
  • 2
  • 12
  • 28
9
votes
5 answers

javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL does not work anymore since Java EE 7 / EL 3.0

javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL true Does not work with the latest Mojarra 2.2.5 on both glassfish 4 and wildfly 8 Final I have…
Sphynx
  • 492
  • 5
  • 13
9
votes
6 answers

Maven not showing up in Eclipse (Kepler) even after m2e install

I've seen that others have had this problem where Maven doesn't show up for them in Eclipse after installing the m2e plugin, but most of the solutions seem to suggest doing something like "Configure>Convert to Maven." But Maven is not showing up for…
Kyle Walker
  • 559
  • 3
  • 12
  • 25
9
votes
3 answers

Serialize Pojos to JSON using new standard javax.json

I like the idea of having a standard for JSON serialization in Java, javax.json is a great step forward you can do an object graph like this: JsonObject jsonObject3 = Json.createObjectBuilder() .add("name", "Ersin") .add("surname",…
Nestor Hernandez Loli
  • 1,412
  • 3
  • 21
  • 26
8
votes
4 answers

Deploying a war file to Tomcat on a VPS

I am being having a lot of issues deploying my war file on my VPS. I have java-8 and tomcat-8. My server is an Apache/2.2.22 (Debian) and my HTTP is on port 80 and tomcat on 8080. Currently if you go to www.sdfasdfasdf.com you get an empty directory…
Mike3355
  • 11,305
  • 24
  • 96
  • 184
8
votes
1 answer

java.lang.NullPointerException at org.eclipse.persistence.platform.server.ServerPlatformUtils.createServerPlatform(ServerPlatformUtils.java)

EclipseLink 2.6.1 (final) throws the following exception upon deploying a Java EE application on GlassFish Server 4.1. This had not been happening prior to upgrading from 2.6.0. Warning: java.lang.NullPointerException at…
Tiny
  • 27,221
  • 105
  • 339
  • 599
1 2
3
81 82