glassfish

Exception occurs with JAX-RPC handler

被刻印的时光 ゝ 提交于 2019-12-24 18:58:44
问题 I have some SOAP webservices build with JAX-RPC. These work fine. But as soon as I add a handler, I get an exception. When the binding is removed from the webservices.xml, everything works fine again. The weird thing is, the handler itself isn't included in the stacktrace of the exception. I also noticed, the init and getHeaders methods of the handler are called, before the exception is raised. The handler is added to webservices.xml with the following xml: <handler> <handler-name>My Message

How do I make alternatedocroot work in glassfish 3.1.2?

不打扰是莪最后的温柔 提交于 2019-12-24 16:42:36
问题 I'm trying to get my page resources and uploaded files out of the proyect working folder (working with JSF 2 and in Netbeans IDE 7.2) so I did not know how to access them, so i started to read how to do it and I have found the "alternatedocroot"... I have been trying to get it work creating the glassfish-web file (because it was not created) and putting the property leaving my glassfish-web.xml like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish

Where is the Glassfish 4 upgrade tool

老子叫甜甜 提交于 2019-12-24 16:35:07
问题 I am trying to upgrade Glassfish 3.1.2.2 to 4.0 and according to the instructions the I should use the Upgrade tool. I have downloaded the glassfish zip and the upgrade tool is nowhere to be found. I have also looked in the update tool and it is not there. Anyone know where I can find it? 回答1: It is in the bin folder... But updating Glassfish 3 to Glassfish 4 doesn't make sense...just get Glassfish 4 from the official download site. 来源: https://stackoverflow.com/questions/20066992/where-is

WELD-001318 Cannot resolve an ambiguous dependency between . . . in GlassFish 4

末鹿安然 提交于 2019-12-24 16:27:26
问题 I have lost mainly the whole morning trying to understand what is wrong with my application without having been successfull. I have found similar questions here but I could not find an answer to my problem. first here the List of errors GlassFish 4 ist showing wenn I run my application: SEVERE: Critical error during deployment: org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318 Cannot resolve an ambiguous dependency between [Managed Bean [class com.sun.faces.flow

Getting IP Address of the remote peer in Websocket API for Java EE 7

给你一囗甜甜゛ 提交于 2019-12-24 14:34:19
问题 How can I get the IP address of the remote peer in Websocket API for Java Glassfish ? 回答1: See getRemoteAddr() You will need to cast your socket Session instance to a TyrusSession, which implements the standard JSR-356 Session interface. You might need to upgrade Tyrus, as I am not sure if the version you have supports this method. I am using Tyrus 1.7 and it works fine for me. Here is how to upgrade. 回答2: Another method, based on this answer to another question, is to get the headers of the

Cyrillic letters don't store fine with Glassfish and Mysql

点点圈 提交于 2019-12-24 13:52:39
问题 I am using Glassfish 4.0, JSF 2.2.5, MySQL 5.5 and J Conn 5.1.29. When I enter some Cyrillic letters in a form, they are saved as "ÑдÑдÑÑдÑ" in the database. I have also noticed that if the validation fails in the form, the existing Cyrillic letters in the form are modified to "ÑдÑдÑÑдÑ". It is working right if I saved them through MySQL Workbench, and they are displayed fine on the web page. The JSF page is set to UFT-8. MySQL: init_connect='SET collation_connection = utf8_unicode_ci'

Intellij 2017.2.1 issue with glassfish

人盡茶涼 提交于 2019-12-24 10:34:24
问题 I'm having issues setting up glassfish in intellij. I've set it from run/debug configuration and it reads as glassfish 4.1.1, when i run a project with it i have GlassFish requires Java SE version 6. Your JDK is version 0 . But under JRE in the glassfish configuration page i have Default(9 - Project SDK) . 来源: https://stackoverflow.com/questions/45880182/intellij-2017-2-1-issue-with-glassfish

Glassfish ssl installation with certbot

我的未来我决定 提交于 2019-12-24 08:34:51
问题 I am new to glassfish and ssl. I am using a ubuntu 14.04 server and downloaded certbot. Since glassfish server is not supported by certbot automation, i installed a certbot-auto standalone and got my new certificate files (cert1.pem chain1.pem fullchain1.pem privkey1.pem). I saw some tutorials online about installing ssl on glassfish but nothing related to certbot .pem certificates. Is there a good tutorial or instructions about installing glassfish ssl with the generated letsencrypt (.pem)

Reading JSON to map with JAX-RS

霸气de小男生 提交于 2019-12-24 08:17:47
问题 I'm writing a Java EE REST application (it runs under Glassfish 4.1) and I'm having problems reading a simple key-value JSON list. I'm trying to produce and consume a JSON using a POJO class, producing works fine, but consuming is not working. Let's get to the code. The POJO class I use for produce and consume JSON is like this: public class Transport { protected Integer id; protected String name; protected Map<String, String> fields; // ...getters and setters... } The REST resource import

Deploying multiple Java web apps to Glassfish in one go

╄→尐↘猪︶ㄣ 提交于 2019-12-24 08:15:11
问题 I have multiple (8) WAR files and 1 EAR file that I want to deploy to Glassfish without having to redeploy each application through the Admin Console. Previously in Tomcat the WAR files could just be dropped into the webapps directory, is there something similar for Glassfish? Using the asadmin command to grab a bunch of apps to dpeloy? Preferably for WAR and EAR files? 回答1: Yep - take a look at /domains/domain1/autodeply - you can drop things straight in there. (substitute domain1 with your