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

Glassfish, OSGi web application bundle (WAB) and virtual servers

After all tests with WAB it seems that GF(4) can work only with virtual server "server" (default virtual server) and ignores all other virtual servers. So my question - has anyone succeeded in setting different virtual servers for wab\eab in one…
user2022068
0
votes
1 answer

Logging not working when using MyLogger class and static methods

I deployed a JavaEE web app on Glassfish4 server in an EC2 instance. Everything works fine, but when I tried to add logging capabilities I cannot find the logs. I created a MyLogger static class just to begin (I still have to learn a lot about…
sthor69
  • 638
  • 1
  • 10
  • 25
0
votes
1 answer

JAX-RS Obtain more data with authorization

I am writing a RESTful web service with Java and Glassfish 4. I successfully setup a jdbc realm. I am able to lock certain URLs through the web.xml. Now i want to have a resource which changes it´s value if the user is authorized or not.…
perotom
  • 851
  • 13
  • 33
0
votes
1 answer

Configure 2 log servlets in glassfish slf4j

I am trying to deploy a couple of servlets in glassfish . Both work but I just get one of them printing logs in its own file. The other I don't know to to do it. I followed this tutorial to make it works for one…
Biribu
  • 3,615
  • 13
  • 43
  • 79
0
votes
1 answer

JSF 2.2 Table conditional rendering not working

Im trying to display a simple table with an @Entity infos using the following tag-libs: xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core" Here's the mapped entity attribute, a boolean: @NotNull @Column(name =…
vcorrea
  • 101
  • 2
  • 8
0
votes
1 answer

GlassFish randomly selects wrong JCA ConnectionFactory for Injection

I am in the process of writing a JCA Resource Adapter for FTP and SFTP. As my goal is to be able to use one protocol completely independent from the other, I have two different ManagedConnectionFactory classes, one for each protocol. Both have…
l4mpi
  • 5,103
  • 3
  • 34
  • 54
0
votes
1 answer

download file using JSF 2.2 return content-length=0

I'm trying to download file from a JSF page, but when checking the content-length in the browser I find it 0. This is my method in the managed Bean : public void downloadFile() throws IOException { HttpServletResponse response =…
fati lem
  • 69
  • 2
  • 12
0
votes
2 answers

How to deploy java application on different server?

If i want to deploy one application on different servers like Open Source Glassfish or TomEE. How can I achieve that without having to include different libraries for each application server? As an example if would like to use Jersey as the rest…
André
  • 167
  • 2
  • 8
0
votes
1 answer

WELD-001408 Unsatisfied dependencies for type [Configuration]

I am trying to deploy a web application (.war) to glassfish v4. The same application works on jetty (via maven-jetty-plugin). The application uses jersey 2.7, eclipselink 2.5.0 and servlet 3.0 specifications. When I try to deploy from the admin…
Fabian
  • 363
  • 2
  • 6
0
votes
2 answers

Change index.html for index.jsp (JavaEE+Glassfish)

I have a little problem. Is it possible 'delete' index.html and create (to replace index.html) index.jsp? How? I don't find any files (web.xml, glassfish-resource.xml) with the address to the home page (index.html) to change it (for index.jsp). I…
Marco_Díaz
  • 3
  • 1
  • 1
  • 2
0
votes
4 answers

NullPointerException when Starting Glassfish 4.0 in Eclipse on OSX Mavericks

I am using Mac 10.9 OSX Mavericks and Eclipse IDE for Java EE Developers(kepler). I've installed Glassfish 4.0 using the 'new server' option in eclipse and the latest JDK - Java SE 7 [1.7.0_55]. but when trying to start the server, I get this error…
Nick Ruta
  • 450
  • 6
  • 14
0
votes
10 answers

Netbeans IDE8 Glassfish 4, GlassFish Server: Administrator port is occupied by null

I just downloaded Netbeans IDE7 with the Glassfish 4. I just made a project to test it out and see how it goes, and I got this error right from the start: Could not start GlassFish Server: DAS port is occupied while server is not…
Jenny Pouwels
  • 3
  • 1
  • 2
  • 6
0
votes
0 answers

Upload file using jsf 2, jpa 2 to a system directory without using tomahwak, or primefaces

I'm using glassfish 4.0, eclipse,I want to upload file to an xhtml page then show them in another xhtml using only jsf2 jpa2 and ejb 3 without any libraries such as tomahwak or primefaces ... Also files should be stored in a system folder, and the…
fati lem
  • 69
  • 2
  • 12
0
votes
2 answers

com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid resource

I'm trying to figure out where is the definition of the above resources stored. My application does not have and never had such resource defined. So I'm actually sure this is some kind of server reference but the question is where such stuff could…
smoczyna
  • 489
  • 6
  • 18
0
votes
1 answer

Difference between deploy and create-application-ref in GlassFish?

What is the difference between deploying a web-app to GlassFish using the (asadmin) deploy command as opposed to using create-application-ref? I read the documentation in https://glassfish.java.net/docs/4.0/application-deployment-guide.pdf but I am…
Basixp
  • 115
  • 6