glassfish

Error occurred during glassfish deployment - There is no web component by the name of default here

空扰寡人 提交于 2020-01-24 19:15:08
问题 This is my first time to deploy web application on a Glassfish Server with Maven. I execute the following maven goals step by step: mvn glassfish:create-domain -P glassfish mvn glassfish:start-domain -P glassfish mvn glassfish:deploy -P glassfish Everything goes fine until the third step ( glassfish:deploy ) and the error message is [ERROR] remote failure: Error occurred during deployment: Exception while deploying the app [herald-web-services] : There is no web component by the name of

Error occurred during glassfish deployment - There is no web component by the name of default here

不羁岁月 提交于 2020-01-24 19:14:47
问题 This is my first time to deploy web application on a Glassfish Server with Maven. I execute the following maven goals step by step: mvn glassfish:create-domain -P glassfish mvn glassfish:start-domain -P glassfish mvn glassfish:deploy -P glassfish Everything goes fine until the third step ( glassfish:deploy ) and the error message is [ERROR] remote failure: Error occurred during deployment: Exception while deploying the app [herald-web-services] : There is no web component by the name of

Glassfish XML (or JSON) Response for JAX-RS Object Marshalling Results in HTTP 500 Internal Server Error

不羁的心 提交于 2020-01-24 16:32:05
问题 I am trying to get a JAX RS resource to return a response with a JSON object. When I display the response properties via println() calls in the resource class I see that the MediaType is correctly set to "application/json", that there is an entity associated with the response with the expected type (SalesOrder), status (Status.FOUND) and that the response object is an instance of OutboundJaxrsResponse. But somehow when the browser (or a Jersey client) receives the response, these response

Application is not loading after upgrading to payara 4.1.1.171

纵饮孤独 提交于 2020-01-24 11:46:05
问题 Upgraded server from glassfish 3.1 to payara 4.1.1.171 , took the glassfish config backup and restored to payara 4.1.1.171 . After that my application is not loading and in console it throws this error net::ERR_INCOMPLETE_CHUNKED_ENCODING If i change the compression attribute to 'off' then application is loading . <http request-timeout-seconds="2700" chunking-enabled="false" compressable-mime-type="text/html,text/xml,text/plain,image/gif,image/jpeg,image/png,text/css,text/javascript

Glassfish 5 ignores JAXB @XmlJavaTypeAdapter annotation?

谁说胖子不能爱 提交于 2020-01-24 09:06:32
问题 I just switched to Glassfish 5 from Glassfish 4 and I noticed that Glassfish no longer called the unmarshal method of my DateTimeAdapter class, it worked okay in Glassfish 4. The Web service class receives a json data and it should be converted automatically to the appropriate RegisterItemDTO object. I've tried putting the annotation on the getter method and it still didn't work. The unmarshal method was never called. I've made sure the json data was in the right format. Service class:

Glassfish 5 ignores JAXB @XmlJavaTypeAdapter annotation?

核能气质少年 提交于 2020-01-24 09:05:49
问题 I just switched to Glassfish 5 from Glassfish 4 and I noticed that Glassfish no longer called the unmarshal method of my DateTimeAdapter class, it worked okay in Glassfish 4. The Web service class receives a json data and it should be converted automatically to the appropriate RegisterItemDTO object. I've tried putting the annotation on the getter method and it still didn't work. The unmarshal method was never called. I've made sure the json data was in the right format. Service class:

GlassFish WAR file deployment to a non-default port

依然范特西╮ 提交于 2020-01-24 01:08:41
问题 I am attempting to deploy a war file (Oracle's APEX Listener) to a GlassFish 3.1.2.2 server deployed on an RHEL server (I am also seeing the same issues on an Ubuntu server at home). I used the following command to create the domain: $GLASSFISH_HOME/bin/asadmin create-domain --portbase 8100 myDomain [I am also creating multiple domains on the same GlassFish server (one GF instance with multiple domains) using values of 8200, 8300, and 8400 for the portbase value and using different domain

Netbeans deploy on save: how is it supposed to work?

若如初见. 提交于 2020-01-23 13:12:47
问题 I'm trying to setup deploy on save (or compile on save, or whatever I should setup) correctly in Netbeans. I'm trying to achieve this: 1) hot-replace some class when needed if the structure didn't change (push the button, new code replacing the old one) 2) copy my jsf pages (.xhtml) to glassfish on save 1) works most of the time; it sometimes doesn't after I deploy many times (why?), or if Netbeans decides for whatever reason that it should deploy the whole thing (it does... sometimes) 2)

Netbeans deploy on save: how is it supposed to work?

谁说我不能喝 提交于 2020-01-23 13:12:27
问题 I'm trying to setup deploy on save (or compile on save, or whatever I should setup) correctly in Netbeans. I'm trying to achieve this: 1) hot-replace some class when needed if the structure didn't change (push the button, new code replacing the old one) 2) copy my jsf pages (.xhtml) to glassfish on save 1) works most of the time; it sometimes doesn't after I deploy many times (why?), or if Netbeans decides for whatever reason that it should deploy the whole thing (it does... sometimes) 2)

How is a $Proxy$_$$_Weld$EnterpriseProxy$ proxy subclass implemented?

空扰寡人 提交于 2020-01-23 09:28:09
问题 In a Java EE 7 application, let's say I have a session bean class " @Stateless public class MyEJB ". When debugging under Glassfish 4, I can see that a proxy subclass named MyEJB$Proxy$_$$_Weld$EnterpriseProxy$ was created (in order to provide Java EE container services to the EJB). I am trying to figure out how these proxy subclasses are implemented. Is there a standard Java EE SPI which the proxy implementation calls, for example, to demarcate a transaction? Or is this done through