Questions tagged as 'java'

1
answer

Apache in different different programming languages

What is the difference between the Apache server for PHP (Wan) and the Web Container Apache TomCat?     
asked by 09.09.2016 / 20:04
1
answer

How to manipulate the object returned by envelope.getResponse ()?

I'm having trouble catching an object that I retune from my connection to the server, I log in and it returns me a getResponse . response = envelope.getResponse(); In this response comes the client code and system permissions code,...
asked by 26.10.2016 / 12:21
1
answer

Dependency injection with bean in tomcat

I was trying a resource injection but I'm not following. I'm studying for the Web Components exam, so I was practicing some code. I'm following an example given by the Tomcat 7 documentation, link , but I have not yet achieved success in my...
asked by 27.10.2016 / 19:37
1
answer

Mapping classes HIBERNATE

Well, I have a question about an exercise that was passed in the facul recently. I have to map classes with JPA, Hibernate and I'm having a bit of trouble in mapping the relationships of those classes. The problem is this, the exercise is a...
asked by 06.09.2016 / 16:54
1
answer

Difference between List and and Return in Entity

Hello, I have a question when I get the data of a SQL query, there is the possibility of pulling by list and by Entity, what would be the "most correct" or usability of each? public List<Usuario> buscarTodos(Usuario mod){...} public Usua...
asked by 02.08.2016 / 20:58
4
answers

Selenium can not find by id

I'm running a test with testNG along with Selenium org.openqa.selenium.By Test, do this search: driver.findElement(By.id("idRoleCheck:0")).click(); It gives the following error:    org.openqa.selenium.ElementNotVisibleException: ele...
asked by 23.09.2016 / 16:27
1
answer

"Error: Can not issue data manipulation statements with executeQuery ()" no Select

Doing the method to select all data from a table, however it is returning me error. console: Open bench. java.sql.SQLException: No value specified for parameter 1 No value specified for parameter 1 at com.mysql.jdbc.SQLError.createSQL...
asked by 23.09.2016 / 10:27
1
answer

Working with Dates in JavaWeb

Hello, I'm doing a project that manages all the projects in my company, I'm using Hibernate, JavaWeb, primefaces, TDD and MVC standard . My entity is shaped like this for date variables: @Temporal(value = TemporalType.TIMESTAMP) @Colu...
asked by 22.09.2016 / 03:25
2
answers

Find the jdbc mysql driver and establish connection

I'm trying to make a connection to java directly with jdbc. I inserted in the project the jdbc mysql jar in the project properties, javabuildpath and adding the external jar. I am taking the following example and it seems to me that you can not...
asked by 22.09.2016 / 20:11
1
answer

Error clicking a button to access site

I tried to make the user click on a particular button, it was directed to a website, in this case google, but it did not work. The app starts normally, but when you click the button the app stops at nothing: Thisappearsintheeventlog:NullP...
asked by 14.01.2017 / 01:04