NoSuchMethodError: org.jboss.logging.Logger.debugf(Ljava/lang/String)

If you are using Hibernate 5.+ and Glassfish 4.X or other earlier version , you will probably see this error. That's happening because there is a conflict between Glassfish modules and your project dependency, more specifically the lib org.jboss.logging. It's happening because the method org.jboss.logging.Logger.debugf is only available in the jboss-logging version 3.3.0 or later and there is on … Continue lendo NoSuchMethodError: org.jboss.logging.Logger.debugf(Ljava/lang/String)

Fixando o caminho do JDK no Glassfish

Caso esteja desejando fixar o caminho do JDK no Glassfish, ao invés de usar a variável de ambiente, basta ir até a pasta ".....\glassfish\config\" e no arquivo bat "asenv.bat" editar seu conteúdo, inserindo uma linha de comando informando a variável AS_JAVA, por exemplo, "set AS_JAVA=C:\Program Files\Java\jdk1.8.0_40". Depois disso e de ter salvo o arquivo, execute … Continue lendo Fixando o caminho do JDK no Glassfish

Important note on Jersey 2.0 in GlassFish 4.0!

Outro dia testei executar o Jersey 2.0 no Glassfish 4.0 e o servidor não conseguia identificar as rotas que eu especifiquei no web.xml e @Path nas classes dos recursos. Navegando na web em buscas de respostas encontrei isso: Unfortunately, in case you are playing with the GlassFish 4.0 release (build 4.0-b89) there is a task … Continue lendo Important note on Jersey 2.0 in GlassFish 4.0!