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
4
votes
1 answer

Jersey constructor injection with @Context not working

Following up on this SO thread, my question is whether I'm doing something fundamentally wrong here: Using GlassFish 4.1, I'm trying to write a MessageBodyReader that has a constructor like this: package com.acme; import…
Hein Blöd
  • 1,553
  • 1
  • 18
  • 25
4
votes
3 answers

java.net.BindException: Address already in use: bind

I get an error using glassfish like this : java.net.BindException: Address already in use: bind, but i think i have changed the port of the server like this: And i think i have changed the port to be 9999. But nothing is effected. This is all port…
user3505775
  • 339
  • 2
  • 6
  • 20
4
votes
0 answers

Configuring Apache Archiva on Glassfish 4.1

I've deployed Archiva 2.2.0 on Glassfish 4.1.1 however something about the configuration is puzzling me. I've followed the Glassfish specific guide here. and modified the domain.xml but I expected the embedded database (within Archiva WAR) to be…
D-Dᴙum
  • 7,689
  • 8
  • 58
  • 97
4
votes
0 answers

How to deploy Spring boot application on Glassfish 4.1.1

Am trying to deploy a Spring Boot application on GlassFish 4.1.1, but unable to do so. I have seen and read many posts here about similar problem, but none of them seem to post a workaround that works for me. My pom looks like this
Karthik Balasubramanian
  • 1,127
  • 4
  • 13
  • 36
4
votes
1 answer

Integrating Swagger 2.0 with Glassfish 4.1 OSGi REST project

Do I need to specifically include the JAX-RS and HttpServlet jars to integrate Swagger 2.0 into my JAX-RS project? I am trying to present my RESTful services developed in the following specifications: Java NetBeans IDE 8.0.2 [Maven] OSGi 4.2 The…
danskianz
  • 43
  • 5
4
votes
3 answers

Restful Web application (security) in java

we are developing two web application Application A : Restful web-services running on glassfish Server . Application B : Dynamics web application running on Tomcat Server . I am accessing Application A only by my Application B , I dont want any…
4
votes
2 answers

Glassfish 4 can't enable remote admin?

I have a Glassfish 4 server running on a headless Debian VM. I can access the application just fine, but I cannot seem to access the admin port from anything other than localhost. I'd like to be able to access it so I can remotely deploy/debug from…
Austin
  • 680
  • 1
  • 9
  • 23
4
votes
2 answers

GlassFish 4.1 in Eclipse errors java.io.FileNotFoundException: null/config/domain.xml (file or directory does not exist)

I'm trying to start glassfish from eclipse luna but I have this error Unable to start server due following issues: java.io.FileNotFoundException: null/config/domain.xml (file or directory does not exist) Glassfish works correctly if I start it with…
Domenico
  • 89
  • 2
  • 9
4
votes
1 answer

Starting Glassfish4 on Windows cmd Null Pointer Exp

I checked the site but could not find the solution. I tried "asadmin start-domain" asadmin start-domain domain1" and I edited asenv file in conf folder AS_JAVA as JAVA_HOME (I said this because some people may suggest this too) but I could not…
abidinberkay
  • 1,857
  • 4
  • 36
  • 68
4
votes
3 answers

Passing redirect-param in faces-config in jsf-2.2

In old jsf the following code was working /page1.xhtml true /page2.xhtml
bob-cac
  • 1,272
  • 2
  • 17
  • 35
4
votes
1 answer

In EJB 3.1, how technically does the container proxy and effectively spoof my no-interface object?

In EJB 3.1, I can create a no-interface session bean. When this is injected into other classes, they receive an object that has the same type as my pojo, and yet what they actually get is a stub that by a chain of classes interacts with my pojo. How…
user384842
  • 1,946
  • 3
  • 17
  • 24
4
votes
1 answer

GlassFish 4.1 + Hibernate 4.3 = Cannot override mapping through orm.xml

I get this exception when I try to override the mapping of an entity through the orm.xml file: 2014-11-10T20:08:30.815+0100|Severe: Exception while preparing the app : [PersistenceUnit: irems-main] Unable to build Hibernate…
Georgian
  • 8,795
  • 8
  • 46
  • 87
4
votes
2 answers

How do I use Glass fish server with eclipse luna for Java EE?

I thought that Glass Fish server came with Eclipse when you install the Glass fish tools for Java EE. However, after trying to install the Glass fish tools, it said there was nothing to update. Ok, so when I try to start the server, it asks for…
Bruce Whealton
  • 1,051
  • 2
  • 14
  • 25
4
votes
3 answers

Jersey custom SecurityContext on EJB jax-rs resource

I am trying to implement my own ContainerRequestFilter and configure SecurityContext. It works well on jax-rs resources but EJB jax-rs throws javax.ejb.AccessLocalException Only relevant thing I found is 4 years old and the workaround doesn't seem…
Richard Časár
  • 323
  • 2
  • 8
4
votes
0 answers

JSF / PrimeFaces / AJAX Requests / WEbFilter and viewexpired exceptions

I'm beginning a new JavaEE7 project which requires PrimeFaces 5.0 components. JSF implementation is Mojarra 2.2.0. After setting initial project dependencies I went to implement handling of user sessions, and handling viewExpiredException…
D00de
  • 880
  • 3
  • 7
  • 26