Questions tagged [glassfish-4]

Fourth version of the popular Java EE open source application server and the reference implementation of the Java EE 7.

Java EE 7 brings the new versions of the many Java enterprise and Web technologies, such as EJB 3.2, JMS 2.0, JPA 2.1, Servlet 3.1 etc. GlassFish is an open source server that represents a reference implementation of Java EE standard. In its fourth version, GlassFish offers the complete Java EE 7 (JSR-342) platform. It is a first certified application server that fully supports Java EE 7.

This tag is for questions specific to version 4. For generall questions to GlassFish see:

908 questions
0
votes
0 answers

Specified location is not a valid domain. -docker

We used Docker to build a development environment If you try to work with an existing server Specified location is not a valid domain. The error appears. enter image description here I've tried all the other answers, but it's impossible because it's…
KIm
  • 1
0
votes
1 answer

Glassfish 4, Eclipse IDE 2019-03 - CustomRealm: AppservPasswordLoginModule cannot be resolved to a type

I would like to implement a Custom Realm by overriding the security classes but I'm getting an error: AppservPasswordLoginModule cannot be resolved to a type The import com.sun.appserv cannot be resolved I followed the steps from this tutorial:…
0
votes
0 answers

How to configure X-Frame Options in Http header in Glassfish Server

I've created a Java Web Application which is hosted by Glassfish Sever 4.1. In the Web Application there is a page which is having an IFrame which redirects to a specific CRM website. While redirecting I'm getting; Refused to display…
0
votes
0 answers

Out of memory caused by TrimmableHeapBuffer

I am facing Out Of Memory issues on Glassfish 4.0 (Build 89) server. Version of grizzly from \glassfish\glassfish\modules\nucleus-grizzly-all.jar is version="2.3.1" Whenever I face this issue, there is always at-least one thread with following…
0
votes
1 answer

The server exited prematurely with exit code 1 GlassFish 4

I've been trying to start the glassfish server domain with the following command asadmin start-domain domain1 but the result wasn't the expected. This what the outputs is throwing out: Waiting for domain1 to start .Error starting domain domain1. The…
Eduardojls
  • 11
  • 5
0
votes
1 answer

Why does the glassfish server only load a bean after it has been restarted?

When the rtu.smallview.xhtml action event is triggered it requests info from the java bean, from the database select and hands it back to the xhtml. The xhtml was not displaying the data from the database, so I added breakpoints in the java bean to…
Bender Bending
  • 729
  • 8
  • 25
0
votes
1 answer

Glassfish4 : Waffle SSO Servlet Filter gives Basic auth login popup

I'm trying to implement SSO in my application (using Waffle's example) , where I have kept following jars in app server's lib…
A W
  • 1,041
  • 11
  • 18
0
votes
1 answer

java.lang.AbstractMethodError: org.jboss.resteasy.cdi.CdiPropertyInjector.inject(Ljava/lang/Object;)V

I have a web application using JSF 2.2, glassfish 4.1 and RestEasy 3.1.2. Everything works well on local host, but when I try to deploy the war file to aws elastic beanstalk, the application doesn't display anything, after checking the logs on aws,…
0
votes
0 answers

jax-rs & mvc: return view as string issue

I'm using javax.ws.rs-api and javax.mvc maven libraries to build an mvc restful web based app. but i cant return view.the preAdd method return view just as a simple string. it does'nt return actual view. my webserver is…
alex
  • 7,551
  • 13
  • 48
  • 80
0
votes
1 answer

deployment error occurred while uploading app file (ords.war) on glassfish3 server

I've just installed the glassfish server version 3 and I've uploaded the ords.war file to deploy it on the web server please if anyone have the answer leave it in the comment. Thanks in advance. Exception while loading the app : CDI deployment…
Mr.hill
  • 11
  • 4
0
votes
1 answer

Packaging an Angular project as a webapp with Maven

Here's a bit of a strange question : I have an Angular project that talks to a Restful Java application. I was looking for help to package it as a Maven webapp project which can then generate/build a WAR file. Is that something that can me done…
javshak
  • 179
  • 2
  • 15
0
votes
0 answers

Glassfish4: Exceptions because of Java9 module-info.class in WEB-INF/lib/jackson-*.jar inside war file?

I'd like to avoid getting javax.enterprise.system.tools.deployment.common: Exception while visiting module-info.class exceptions like the one below in my log file during Glassfish4 startup and deployment. We're using glassfish4 under Java8 and…
Peter V. Mørch
  • 13,830
  • 8
  • 69
  • 103
0
votes
1 answer

org.apache.jasper.JasperException after deploying project on glassfish4

after deploying my JSP application on glassfish4 on Eclipse 4.16.0 (using jdk1.8.0_251) and publish it locally the server response is that: jasper exception my web.xml file is:
M47714
  • 1
  • 1
0
votes
0 answers

Issues with Postgres connections pool on Payara/Glassfish

I run a JEE application on Payara 4.1 which uses PostgreSQL 9.5.8. The connection pool is configured in following way.
Marek Puchalski
  • 3,286
  • 2
  • 26
  • 35
0
votes
0 answers

Problem with converting JSF1.2 applicationto JSF2.2 Glassfish deployment error: Exception while loading the app : CDI deployment failure:WELD-001408:

I am in the process of trying to convert a suite of applicationss from JSF1.2 to JSF2.2. I have successfully converted 2 but am having a problem with the third. When I try to deploy it to GlassFish 4.1, I get the following errors from the GF…
user1539401
  • 293
  • 1
  • 3
  • 10