Questions tagged as 'java'

1
answer

Define which method is not serialized

I have a rest service that returns the object of a class that contains the following structure as a response: public class LocalizacaoLinhaWrapper implements Serializable { ... private List<LocalizacaoLinha> linhasFavor...
asked by 17.09.2015 / 00:12
1
answer

JBoss AS 7 using proxy with HTTPS

I have a JBoss server on my development machine. In the company where we work we have a proxy. I need to test the Google recaptcha. It uses https. I configured the proxy information in the system-properties tag of the standalone.xml...
asked by 17.09.2015 / 13:46
1
answer

Error while deploying SOAP web service with Maven and Apache Tomcat

I build a JAX-WS application by Maven, but I'm not able to deploy it to the Tomcat application server. Here are my artifacts: pom.xml : <project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns:xsi = "http://www.w3.or...
asked by 05.09.2015 / 15:02
1
answer

How do I populate an arraylistType with a result fetched from the mysql database using Hibernate?

On many topics I see a piece of code I can not reproduce: Query query = session.createQuery() I can not create this session object with the createQuery () method as an option. Can someone show me an example of how to populate an ArrayList...
asked by 05.09.2015 / 16:16
1
answer

Error registered the JDBC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister

I am making a JavaWeb system using jsp that is in this topic: Doubt in query database, error in query , and in a query with the database, I came across a driver error that is Right below. I use the netbeans IDE with server gl...
asked by 21.08.2015 / 20:59
1
answer

java.lang.ClassCastException: Error in JSF Converter

I'm implementing the Converter below: @FacesConverter(forClass = Cargo.class) public class CargoConverter implements Converter { @Inject private CargosRepository cargoRepository; public CargoConverter() { } @Override...
asked by 13.10.2015 / 02:47
1
answer

Sub-report on ireport

I'm trying to make a report where each code has x clients. Example Code 1: Bruno Rodrigo Fernando Code 2: Rafael João I retrieve these codes from a database, for example: 1 Bruno 1 Rodrigo 1 Fernando 2 Rafael 2 João As you can...
asked by 13.10.2015 / 20:21
1
answer

IReport - Sub report with same main datasource

I am developing a relatório and it has a subrelatorio that must have the same DATA SOURCE of the relatório main, so the dataSourceExpression of the subreport is as follows: <dataSourceExpression>...
asked by 13.10.2015 / 22:32
1
answer

Error java.lang.NoClassDefFoundError in Java WEB with JSF

Hello, I'm getting the following error message when I run the project: java.lang.NoClassDefFoundError: javax/enterprise/context/spi/Contextual at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) a...
asked by 03.12.2015 / 18:58
1
answer

@Size, using hibernate validator, acknowledges error in value that should pass validation

I have a Java SE application where I can not use the @size annotation. This annotation is handled by org.hibernate.validator.Size. It has a user field in the template in which I do this: @Size(min = 1, max = 30) @Column(name = "CAMPO")...
asked by 06.08.2015 / 20:16