glassfish-4.1

PrimeFaces oncomplete backing method called on page load

蓝咒 提交于 2019-12-02 08:28:44
问题 PrimeFaces 5.0, JSF 2.2, Glassfish 4.1.1, I'm assuming that something in my setup isn't configured correctly but I'm not sure what to look at... So I'm using managedbeans to back JSF pages. Within the PrimeFace elements on the page if I use an oncomplete property the method it refers to gets called on the page load. I don't want it to call the method on each page load and i don't believe it should be! I have tested this through several pages and within different elements. I first noticed this

GlassFish 4.1 alternatedocroot, Access static contents

[亡魂溺海] 提交于 2019-12-02 04:41:23
问题 I need to access some images with this URL http://localhost:8080/static/img1.jpg The images are in "/home/andrea/Documents", the application context is "/". I'm using GlassFish 4.1.1. In the /WEB-INF directory of project I've got the following: (glassfish-web.xml) <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd"> <glassfish-web-app>

PrimeFaces oncomplete backing method called on page load

一世执手 提交于 2019-12-02 03:52:11
PrimeFaces 5.0, JSF 2.2, Glassfish 4.1.1, I'm assuming that something in my setup isn't configured correctly but I'm not sure what to look at... So I'm using managedbeans to back JSF pages. Within the PrimeFace elements on the page if I use an oncomplete property the method it refers to gets called on the page load. I don't want it to call the method on each page load and i don't believe it should be! I have tested this through several pages and within different elements. I first noticed this issue with a <p:fileupload> element where I was trying to call a method, using oncomplete, once all

GlassFish 4.1 alternatedocroot, Access static contents

末鹿安然 提交于 2019-12-02 00:34:57
I need to access some images with this URL http://localhost:8080/static/img1.jpg The images are in "/home/andrea/Documents", the application context is "/". I'm using GlassFish 4.1.1. In the /WEB-INF directory of project I've got the following: (glassfish-web.xml) <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd"> <glassfish-web-app> <parameter-encoding default-charset="UTF-8" /> <property name="alternatedocroot_1" value="from=/static/* dir=

Cargo remote deployment Glassfish 4.1 Fails GlassFish uses 100% CPU

家住魔仙堡 提交于 2019-12-01 08:19:55
I have the following Problem with GlassFih 4.1 and Cargo. I try to deploy an ear on a remote GlassFish 4.1 Server. Without success... Maven command: mvn cargo:redeploy The Glassfish Server takes 100% of the CPU and that's it. The Maven process remains blocked... I have tried on a remote ubuntu and on a remote windows server. On the same remote server with Glassfish 3.1.2.2 the remote deployment works perfectly. Did anybody hava the same issue, and did find a solution? I guess that the following cargo config is ok, since it works with GF 3.1.2.2 (with deployment-client version 3.1.2.2 and

Cargo remote deployment Glassfish 4.1 Fails GlassFish uses 100% CPU

核能气质少年 提交于 2019-12-01 06:37:31
问题 I have the following Problem with GlassFih 4.1 and Cargo. I try to deploy an ear on a remote GlassFish 4.1 Server. Without success... Maven command: mvn cargo:redeploy The Glassfish Server takes 100% of the CPU and that's it. The Maven process remains blocked... I have tried on a remote ubuntu and on a remote windows server. On the same remote server with Glassfish 3.1.2.2 the remote deployment works perfectly. Did anybody hava the same issue, and did find a solution? I guess that the

Upgrading Jackson in GlassFish 4.1

亡梦爱人 提交于 2019-12-01 04:16:13
I am using GlassFish 4.1, which includes Jackson 2.3.2. I would like to upgrade to the newest version of Jackson (currently 2.4.4). Is the procedure for upgrading Jackson in GlassFish 4.1 as simple as: a) stopping GlassFish b) deleting the osgi-cache c) replacing the Jackson 2.3.2 jars in the glassfish/modules directory with newer versions d) starting GlassFish Thanks. Please @see https://java.net/jira/browse/GLASSFISH-21141 The procedure I followed was asadmin stop-domain delete felix cache $rm -rf domains/domain1/osgi-cache/felix/ copy jackson- -2.4.2.jars as modules/jackson- .jar asadmin

java.lang.NullPointerException at org.eclipse.persistence.platform.server.ServerPlatformUtils.createServerPlatform(ServerPlatformUtils.java)

冷暖自知 提交于 2019-11-30 03:26:36
问题 EclipseLink 2.6.1 (final) throws the following exception upon deploying a Java EE application on GlassFish Server 4.1. This had not been happening prior to upgrading from 2.6.0. Warning: java.lang.NullPointerException at org.eclipse.persistence.platform.server.ServerPlatformUtils.createServerPlatform(ServerPlatformUtils.java:101) at org.eclipse.persistence.sessions.factories.SessionManager.init(SessionManager.java:77) at org.eclipse.persistence.sessions.factories.SessionManager.<clinit>

Mac: JSF: why are development stage JSF web apps not always catching composite component changes?

妖精的绣舞 提交于 2019-11-29 15:33:14
Mac OS X: Yosemite 10.10.5 NetBeans8.1beta or NetBeans8.1 Glassfish4.1 or Glassfish4.1.1 Mojarra 2.2.7 or 2.2.12 [2016-08-14 EDIT: or 2.2.8-17] [EDIT: Primefaces 5.3] I am an experienced NetBeans + JSF developer, which is to say I know how it is supposed to work, and usually works, but this is for some reason no longer working properly, on one (and only one as far as I can tell) MacBook Pro machine [EDIT: 2016-08-14 and also on a MacMini with the same OS X Version]. Short description of the problem: A few days ago, while I was happily developing a large JSF/Primefaces web application, I found

Mac: JSF: why are development stage JSF web apps not always catching composite component changes?

余生长醉 提交于 2019-11-28 09:27:35
问题 Mac OS X: Yosemite 10.10.5 NetBeans8.1beta or NetBeans8.1 Glassfish4.1 or Glassfish4.1.1 Mojarra 2.2.7 or 2.2.12 [2016-08-14 EDIT: or 2.2.8-17] [EDIT: Primefaces 5.3] I am an experienced NetBeans + JSF developer, which is to say I know how it is supposed to work, and usually works, but this is for some reason no longer working properly, on one (and only one as far as I can tell) MacBook Pro machine [EDIT: 2016-08-14 and also on a MacMini with the same OS X Version]. Short description of the