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

JBOSS - Previos execution of timer is still progress,timer state is IN_TIMEOUT

I am using JBOSS EAP 6.4 . I have schedule some schedulers in my ScedulerBean using EJB @Shedule annotation as follows. Here the ShedulerBean is dependson StartupBean. @Singleton @DependsOn("StartupBean") public class SchedulerBean { private…
4
votes
1 answer

Dropwizard Hibernate Configuration

I am new to Dropwizard and so far everything was going well till I started messing with Hibernate and MySQL. My problem is: Hibernate won't create tables and consequently no columns in my DB. The only warning I get when running my jar file is:…
CannotCode
  • 125
  • 1
  • 2
  • 10
4
votes
1 answer

Does CDI @Transactional REQUIRES_NEW works in local methods

Does CDI @Transactional(Transactional.TxType.REQUIRES_NEW) works when is called inside the same bean: @Transactional public void method1() { for(...) { method2(); } } @Transactional(Transactional.TxType.REQUIRES_NEW) public void…
lujop
  • 13,504
  • 9
  • 62
  • 95
4
votes
1 answer

WildFly: randomly salted passwords in Java EE application

What is the WildFly (8.2) way to work with randomly salted passwords stored in a database? Is an implementation of org.jboss.crypto.digest.DigestCallback (in the password validation process) meant to have access to the salt part from the…
Jens Piegsa
  • 7,399
  • 5
  • 58
  • 106
4
votes
1 answer

Deployment error when defining a security-domain

I am working on a JavaEE7 tutorial ; currently I am trying to establish a security domain using wildfly 8.2.0. These are the settings I use: jboss-web.xml: my-aktion The part of…
Jannis Alexakis
  • 1,279
  • 4
  • 19
  • 38
4
votes
1 answer

How to create ManagedThreadFactory instance inside Glassfish V4.0

I am calling rabbitMQ client (and not server) from inside my Java code running in Glassfish V4.0 (build 89) container to connect to rabbitmq server on another machine. As per rabbitmq client document, we should supply a ManagedThreadFactory instance…
rjha94
  • 4,292
  • 3
  • 30
  • 37
4
votes
1 answer

Marshaling / Demarshaling JSON with Java EE 7 / Glassfish 4.1 results in null object

I upgraded to Java EE 7 from Java EE 6 and some of my REST services stopped working. Narrowing it down, it appears this change seems to have come about when Jersey switched from Jackson to MOXy in Java EE 7. My service looks…
andand
  • 17,134
  • 11
  • 53
  • 79
4
votes
2 answers

Removing the previous session, if it is already active (if a user forgot to log out) using JAAS

Let the following class be a session scoped CDI managed bean. @Named @SessionScoped public class SessionUtils implements Serializable { private MapsessionMap; private static final long serialVersionUID=1l; public…
Tiny
  • 27,221
  • 105
  • 339
  • 599
4
votes
1 answer

java.lang.NullPointerException at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:272) while accessing JAX-WS services

I'm getting the following exception while implementing JAX-WS services in a Java EE 7 application. Warning: Internal Server error: /Test-war/Test.xhtml java.lang.NullPointerException at…
Tiny
  • 27,221
  • 105
  • 339
  • 599
4
votes
2 answers

Required jars for RestEasy Client

I need to provide a java REST client, which should contain all required jars in one bundle. I chose RestEasy as REST framwork, since the server application is done on a JBoss. Nearly all examples I found so far use either an application container…
Alexander Rühl
  • 6,769
  • 9
  • 53
  • 96
4
votes
2 answers

How do I intercept selective methods and classes in JAX-RS in Java EE 7 compliant container?

I want to intercept any class or methods annotated with @Foo Class level interception: @Foo @path("/foo") public class Attack {...} Method level interception: @path("/bar") public class defend { @Foo @GET public String myMethod(){....} I want to…
brain storm
  • 30,124
  • 69
  • 225
  • 393
4
votes
1 answer

The NetBeans IDE issues unusual compiler errors on "Clean and Build" or external changes.The IDE becomes unaware of the JPA generated static metamodel

I'm completely tired of using the NetBeans IDE 8.x (currently using 8.0.1) for months - it just looks like a hell (seriously). When some external changes are made to the project (especially a Java EE web application - containing hundredth of Java…
Tiny
  • 27,221
  • 105
  • 339
  • 599
4
votes
1 answer

Java EE7 - Bean discovery none

I understand why someone would want to use bean discovery all or annotated but I cannot imagine when you'd need to use the discovery-none property. Can anyone provide me with a good scenario where you'd use bean discovery none? Thanks
Mircea Badescu
  • 291
  • 3
  • 7
  • 16
4
votes
0 answers

JSF / PrimeFaces / AJAX Requests / WEbFilter and viewexpired exceptions

I'm beginning a new JavaEE7 project which requires PrimeFaces 5.0 components. JSF implementation is Mojarra 2.2.0. After setting initial project dependencies I went to implement handling of user sessions, and handling viewExpiredException…
D00de
  • 880
  • 3
  • 7
  • 26
4
votes
1 answer

mvc pattern in java ee and migrating from spring to java ee 7

I used spring MVC in the following manner: @Controller class MyControllerClass { @RequestMapping... method(){ ServiceCall()... //put something to modelAndView object here and redirect to jsp page. return "home"; //…
Talha
  • 699
  • 2
  • 12
  • 33