Questions tagged as 'java-ee'

0
answers

JSF and JPA with EclipseLink: Inserting element twice in the database

I'm working on software and I'm having a headache to insert some related objects. It is inserting this object twice and the error is not visible. To see the whole project, follow the link from github: Complete Project . The classes that are...
asked by 03.12.2017 / 15:24
0
answers

Write image format in the database

By registering the product data in my database it presents the error in getFileType at line 124 follows error Line 124 String extensao = nomeDoArquivo.substring(nomeDoArquivo.indexOf('.' + 1)); java.lang.StringIndexOutOfBoundsException: S...
asked by 26.10.2017 / 03:31
1
answer

Error trying to delete with DELETE method using web service rest in Java [duplicate]

I created a REST Web Service in Java. All operations are working less than DELETE which returns the following error: HTTPDELETEmethod:@DELETE@Path("excluir/{idpromocao}") public void excluir(@PathParam("idpromocao") int idpromocao){...
asked by 25.10.2017 / 04:40
2
answers

Uploading files and data SERVLET

How do I receive files and other parameters in Servlet? Here is the shipping code: <form action="myservlet" method="post" enctype="multipart/form-data"> <input type="text" name="mytext"> <input type="file" name="...
asked by 01.11.2017 / 22:05
1
answer

Write method has no action and link of Dependent x Driver is not done

When developing a simple application where the dependent is bound to its responsible who is a driver, when I click to create the bind and write dependent nothing happens, only the following message is posted without interrupting the application....
asked by 28.10.2017 / 19:30
1
answer

Repeated ID with facelets

The problem is that in a project that I use facelets is telling me that there is a component with the ID repeated. Although I have scanned the code behind finding that ID repeated, I did not find it, so I believe the error is related to the inco...
asked by 09.08.2017 / 14:43
1
answer

ConvertNumber of JSF negative values

Negative monetary values, when using the native JSF converter, <f:convertNumber type="currency"/> , are left with the character ' - ', before the R $. For example: -R$ 56.134.726,99 .xhtml <p:column>...
asked by 23.08.2017 / 18:29
0
answers

API JMF or Something Similar Multiplatform [closed]

I have a project to do in java, that I will need the JMF to work with the media in general, the project is nothing more than a program to run the ads on TV's that stay in malls and etc. They recommended me to use JMF, I had never heard of it,...
asked by 25.08.2017 / 13:08
0
answers

Maven does not load all WebService classes wsdl mail

Good afternoon! Personal, I'm trying to use a web service from the wsdl mail to be able to do the search of the address from the zip, and to download the classes I'm making use of maven, which seems to me that works perfectly it brings me...
asked by 12.07.2017 / 19:23
1
answer

Consume .jar in java web project

I created a .jar (script.jar) file that contains the "print ()" method only returns a string and I would like that when I click a button in my Java Web application (JavaEE) this "print executed. Script.jar file method package jardeteste.met...
asked by 12.04.2017 / 18:06