glassfish-4

NetBeans - “sun-resources.xml” vs. “glassfish-resources.xml”

两盒软妹~` 提交于 2019-12-01 17:23:20
Do you know how Netbeans decides which filename to use for the application-scoped resources: sun-resources.xml or glassfish-resources.xml ? Is this name configurable or hard-coded? As far as I understand GlassFish supports sun-resources.xml for backward compatibility. But according to "Application Deployment Guide" preferred filename is glassfish-resources.xml . I run relatively recent version of Netbeans - 8.0.2 with GlassFish 4.1, but I get generated sun-resources.xml file. This looks odd and confusing. On the other hand I've seen people having troubles with glassfish-resources.xml : https:/

NetBeans - “sun-resources.xml” vs. “glassfish-resources.xml”

只谈情不闲聊 提交于 2019-12-01 16:33:44
问题 Do you know how Netbeans decides which filename to use for the application-scoped resources: sun-resources.xml or glassfish-resources.xml ? Is this name configurable or hard-coded? As far as I understand GlassFish supports sun-resources.xml for backward compatibility. But according to "Application Deployment Guide" preferred filename is glassfish-resources.xml . I run relatively recent version of Netbeans - 8.0.2 with GlassFish 4.1, but I get generated sun-resources.xml file. This looks odd

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required

馋奶兔 提交于 2019-12-01 08:06:51
Before posting this question here: I looked up at 1) Glassfish 3.1.2.2 in IDEA 11.1.4: "PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required" 2) How do I specify the jdk for a glassfish domain? 3) http://alvinalexander.com/blog/post/java/fixing-glassfish-jdk-path-problem-solved 4) https://www.java.net//node/702274 5) "PWC6345: There is an error in invoking javac." error when using Jetty WTP plugin to deploy a JSP page on Jetty I am able to open the glassfish admin window in eclipse, but when I am trying to run my project, I get this annoying error: "org.apache

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required

点点圈 提交于 2019-12-01 05:39:56
问题 Before posting this question here: I looked up at 1)Glassfish 3.1.2.2 in IDEA 11.1.4: "PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required" 2) How do I specify the jdk for a glassfish domain? 3) http://alvinalexander.com/blog/post/java/fixing-glassfish-jdk-path-problem-solved 4) https://www.java.net//node/702274 5) "PWC6345: There is an error in invoking javac." error when using Jetty WTP plugin to deploy a JSP page on Jetty I am able to open the glassfish

WELD-001408 Unsatisfied dependencies for type [Validator]

流过昼夜 提交于 2019-12-01 05:07:22
问题 I'm unable to deploy my project after migrating it from Java EE 6 to Java EE 7. I already have CDI enabled (beans.xml with bean-discovery-mode="all" for backwards compatibility) The deployment error does not seem to be related to my code since it mentions a "Validator" class trying to be injected at org.hibernate.validator.internal.cdi.interceptor.ValidationInterceptor I don't have a clue of what is going on here. I'm using GlassFish 4.0. Here's the stack trace of the exception generated at

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

CDI deployment failure:WELD-001414 Bean name is ambiguous

青春壹個敷衍的年華 提交于 2019-12-01 04:09:56
I have an application, which has multiple modules and various dependencies. When I deploy the application on Glassfish 4, I am getting error: org.jboss.weld.exceptions.DeploymentException: WELD-001414 Bean name is ambiguous. Name JerseyClassAnalyzer resolves to beans: [Managed Bean [class org.glassfish.jersey.internal.inject.JerseyClassAnalyzer] with qualifiers [@Default @Named @Any], Managed Bean [class org.glassfish.jersey.internal.inject.JerseyClassAnalyzer] with qualifiers [@Default @Named @Any]] What can be the cause? I saw already topics about this and the solution was to edit the

Error - illegal to have multiple occurrences of 'contentType' with different values

纵然是瞬间 提交于 2019-12-01 01:21:51
问题 I have a dynamic web project in Eclipse which I run on Glassfish4. In the project, there is an index.jsp file given below. When I run this jsp on the server, I get the error: org.apache.jasper.JasperException: /index.jsp(1,1) PWC5988: Page directive: illegal to have multiple occurrences of 'contentType' with different values (old: text/html, new: text/html; charset=ISO-8859-1) This is an internal server error with the description - The server encountered an internal error that prevented it

Problems with glassfish 4 Debug in IDEA 12.1

[亡魂溺海] 提交于 2019-11-30 18:34:15
I'm trying to debug glassfish 4 application in IntelliJ IDEA12.1 and am getting the following: D:\tools\glassfish4\glassfish\bin\asadmin.bat start-domain --debug domain1 [2013-06-28 03:58:34,480] Artifact exchange-web:war: Server is not connected. Deploy is not available. Detected server admin port: 4848 Detected server http port: 8080 Attempting to start domain1.... Please look at the server log for more details..... But nothing started. And there is no error in log. So what should I do to resolve this? Had also trouble with that after upgrading to GF 4.1. Problem was, that IntelliJ itself

How to display images located in glass fish folder?

独自空忆成欢 提交于 2019-11-30 16:12:47
I am using JSF and glassfish 4.0. I know that all the images that are placed in images directory under the resources folder of the project can be accessed directly. I wanted to know how I can display images which are located in glass fish folder.I created a images folder under glass fish domains and I want to display this images in the JSF page. Could anyone let me know how I can do that? I am new to this so need some help. <?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