Questions tagged as 'java-ee'

1
answer

Java / eclipse does not recognize Path GET annotation

I'm developing a Restful application, using eclipse and jersey (Without using framework). But I'm having a problem with annotations like @Path, @GET. When I use these annotations it gives an error in the package line within the class. The fol...
asked by 10.11.2015 / 18:43
1
answer

@ApplicationScoped life cycle on ear

I have an application with several WEB modules and an EJB within an EAR according to the following image: IntheEJBmoduleIcreatedanannotatedclasswith@ApplicationScoped,mygoalisforthisclasstostoreinformationthatmustbepassedbetweentheWEBprojects.I...
asked by 18.04.2016 / 16:10
1
answer

Null object fields when trying to persist with JSF and JPA

I'm trying to persist an entity and when I try to persist it throws a constraint violation error, performing the debug, I noticed that the object is instantiated because the fields are null. Entities: @MappedSuperclass public abstract class...
asked by 06.11.2015 / 01:23
1
answer

List in TextField or an editable Combobox when the user types - JavaFX

Someone more experienced, could you tell me if JavaFX has some way to make a list as you go typing in the textfield. Example: When you are going to enter your facebook email, and you type the first letter and your email appears below, exactly th...
asked by 22.10.2015 / 20:16
2
answers

How to block access to an application by the user's IP?

How do I block access to a web java application by the user's IP. The application will be hosted outside of the company environment, but it needs to be accessed by a certain profile from outside. I have in the user profile the profile of e...
asked by 23.10.2015 / 11:01
1
answer

@Inject for manually instantiated object?

I have a class called Application which is a listener , it instantiates objects of ServidorRadius where it needs to access repositories that are injected with CDI , however radiusRepository is returning null...
asked by 08.10.2015 / 23:49
1
answer

Error injecting object: returning null

When I inject an object into the class it returns null , it does not seem to be instantiated. Exception in thread "main" java.lang.NullPointerException at com.fercosmig.util.db.PopulaTabelaUsuario.main(PopulaTabelaUsuario.java:37)...
asked by 02.10.2015 / 21:21
1
answer

Target Unreachable, 'reply' returned null - SelectOneRadio

I can not get the value of my selectOneRadio , it comes as null : <p:dataTable id="exibePerguntas" var="questao" paginator="true" rowsPerPageTemplate="2,3,5,10,12" paginatorPosition="bottom" value...
asked by 30.10.2015 / 15:43
1
answer

Problem with autocomplete Primefaces

I have <p:autoComplete> working, and I have a commandButton that opens dialog so I can make a new one. The dialog opens, I fill in the fields however at the time of saving this exception is thrown:    SEVERE:...
asked by 28.08.2015 / 14:13
1
answer

commandbutton executes method, but being null values. Why are not the inputstexts values assigned to the class attributes?

In all the examples I saw in the code below, the normal occurrence was when the xhtml page was started creating a new client-type object. Through the values entered in the inputs, set the attributes of this object and the commandbutton could use...
asked by 30.08.2015 / 15:27