Questions tagged as 'java-ee'

1
answer

How to use Files.move with Java?

I created a photo upload on my system, these photos are saved in a temp, I need to move them to a default directory, other than temp. This is the method that creates the directory: public FotoStorageLocal() { //Versao MAC //this(get...
asked by 09.05.2018 / 02:47
0
answers

consumption webservice rest returns: No 'Access-Control-Allow-Origin'

Deadlines, I have a problem to consume a third-party Webservice, when trying to consume it by java script the return I get is:    XMLHttpRequest can not load    link .   Response to preflight request does not pass access control check: No...
asked by 08.05.2018 / 16:28
0
answers

Which Hibernate annotation to use for clob

I have an attribute that takes a string and must be persisted in a clob in the oracle sql. I looked in the documentation that should be used annotation @Lob:    @Lob indicates that the property should be persisted in a Blob or a   Clob, depen...
asked by 07.05.2018 / 05:39
0
answers

How to put two versions of the same library on the same application server? [GLASSFISH]

I'm using primefaces in an app that is currently in version 5.2, but I needed a component that is only available in version 6.0 > = for another project. I use the two designs in the same glassfish installation. When I rounded one of the proje...
asked by 19.04.2018 / 14:01
0
answers

capture servlet value in jsp

Friends, I'm trying to get my jsp page days to get a value from my sent servlet. I have researched in several forums, and I have not been able to return a single value can anybody help me? Here's the snippet of code I'm using   JSP insira o c...
asked by 18.04.2018 / 20:56
0
answers

Error in project: java.sql.SQLException: Can not create JDBC driver of class '' for connect URL 'null' - JavaParaWeb

I'm studying Java for the book "Java for Web 2nd Ed.", I was going quiet, but I stopped at the following error: abr 12, 2018 11:39:31 PM org.apache.tomcat.util.digester.SetPropertiesRule begin ADVERTÊNCIA: [SetPropertiesRule]{Server/Servi...
asked by 13.04.2018 / 04:43
2
answers

Is it possible to filter a p: dataTable when the filterBy attribute is a list of objects?

I am using the P: dataTable component of Primefaces and I am having problem with the filter. I have an Email List of Sectors and within that list I have another list with the aliases of each email. Code: <h:panelGroup id=...
asked by 18.04.2018 / 01:44
0
answers

java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected AST node: query

I'm having to do a SELECT in JPA that contains an ORDER BY by selecting from another table. Small representation of tables: WhenIdiditforSQLitwasnormal,butwhenIturneditonJPA,itdidnotwork,andifItakeouttheJPAitworksnormally.  2018-03-2816:36:2...
asked by 28.03.2018 / 21:41
0
answers

How to get server path without starting FacesContext - running JOB?

I have a JOB where I need to download files in order to use them. My project is Java + JSF + CDI. It happens that at the time of the execution of JOB I have no user logged in and the return of FacesContext is null because I am not logged i...
asked by 07.04.2018 / 21:44
1
answer

Browse rows from a javaEE, jsf2 and Primefaces dataTable with the arrow keys?

I found this code on the internet, but some of it has been discontinued xhtml: <p:hotkey bind="down" update=":testform:tabletest" action="#{aBean.moveDown()}" /> aBean: public void moveDown() { FacesContext facesContext...
asked by 16.03.2018 / 19:58