Questions tagged as 'java'

0
answers

Problem starting tomcat server 8

Feb25,20189:39:49PMorg.apache.tomcat.util.digester.SetPropertiesRulebeginWARNING:[SetPropertiesRule]{Server/Service/Engine/Host/Context}Settingproperty'source'to'org.eclipse.jst.jee.server:orcamento'didnotfindamatchingproperty.Feb25,20189:39:49...
asked by 26.02.2018 / 01:45
4
answers

How to compare Strings in Java?

The == operator says that the Strings are different, and they store the same literal value, see example: public class TesteString { public static void main(String[] args) { String str1 = "teste"; String str2 = "Otes...
asked by 03.02.2014 / 16:19
0
answers

CSS does not load Spring created with JForge

I'm trying to load my style sheet into a JSP page, with Spring and Maven, but the file does not recognize CSS, via import, I already tried several forms but it does not load, I need help: Follow my code, to be an idea of how it is. Packag...
asked by 28.02.2018 / 04:51
0
answers

Error creating object of type JSONObject

I'm trying to create a WebService that returns me one or more data from the database, using JSON as a return. @Path("teste") @Produces(MediaType.APPLICATION_JSON) public JSONObject teste() { JSONObject obj = new JSONObject()...
asked by 28.02.2018 / 05:31
2
answers

Break lines in a list coming from the bank

I have this Dao that does a Search to the Database Sql Server public String nomeTabela() { String nomeData = ""; String nomeAlarme = ""; String nomeRecebe = ""; ConexaoDao conexao = new ConexaoDao();...
asked by 28.02.2018 / 15:54
0
answers

Android - java.lang.NullPointerException

I am making an application to send some characters through Bluetooth to an Arduino, however, I can not save the mac address of the module used. The error is exactly here:    EXTRA_ADDRESS = data.getExtras (). getString (MAC_ADRESS); MainAc...
asked by 24.02.2018 / 19:31
0
answers

Would it be possible to send pre-programmed messages via messaging applications?

I am making an application in AndroidStudio / Java that needs to send messages consistently, it consists of a program of evaluation of quality of commerce, that when it is evaluated how bad a sms will be sent to a specific number, however sendin...
asked by 23.02.2018 / 18:54
0
answers

Problem APACHE and TOMCAT

I have a serious problem: When I access the address by the root it picks up, more when I set the route, of the problem. link
asked by 01.03.2018 / 13:20
1
answer

Java.Lang.NullPoinerException when trying to insert database data into a JComboBox [duplicate]

Today my team and I encountered a problem when trying to do something seemingly simple: display the surname of an official in a JComboBox. The problem is that at the time of opening the screen we receive a NullPointerException and the Combo is...
asked by 23.02.2018 / 20:27
1
answer

Error to play data from the search screen for registration screen for editing

Gentlemen, I'm having trouble getting the objs from my client search screen, and playing on the registration screen for editing the same. My search screen has a button with a <p:button outcome="/cliente/CadastroCliente.xhtml" icon="ui-in...
asked by 01.03.2018 / 14:54