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

Can glassfish 3 and glassfish 4 work together on same machine but for 2 different projects

Glassfish 3 was installed on my machine for one java project. Now I have to set up another java project using Glassfish 4. While deploying new project's EAR, I am getting below error. I have double check everything like domain.xml, environment…
Sushant
  • 145
  • 1
  • 2
  • 12
-1
votes
2 answers

Java Project clustering for high avaiability: How to serialize classes from third parties frameworks used in the project?

I'm allocating my project to Payara Server with clustering for high avaiability. My project is in Java Web and it uses JSF Framework with Primefaces with some extended classes, like DataTable, for example…
-1
votes
1 answer

jsp code to display error message in validation. Where should I include in this code?

How can I display the error message as part of validation controls in jsp code given below? Where should I include the code? I have tried using out.print("Invalid username or password"); in between these codes, but it doesnt…
Navi
  • 1
  • 3
-1
votes
2 answers

Glassfih and Apache configuration with two NIC cards

I've an Ubuntu 16.04 server with two NIC cards. Both of them are configured with static IP and set to different hosts. At this time, I've running Apache and glassfish through the same interface (only one of the cards), Apache listen on the port 80…
jcoder8
  • 163
  • 1
  • 9
-1
votes
1 answer

EJB taking long time to return data to Backing bean

I have project which JSF 2 and Primefaces 5.2 in frontend. EJB3 and JPA with eclipselink for backend processing deployed on Glassfish 4 server. Issue: For opening page I am fetching data using postconstruct method in backing bean which inturn calls…
yashwanth
  • 1
  • 2
-1
votes
1 answer

Spring Security 4 Throws HTTP Status 404 Error in One Machine But Works Fine In Another

I am working in developing a Java application that runs on Glassfish 4.1 and uses Spring Security 4.2.0 for user authentication. Spring Security has been working fine in my development environment as well as in the production server for several…
carlossierra
  • 4,479
  • 4
  • 19
  • 30
-1
votes
2 answers

How to deploy a .war on a remote glassfish server given we have access to the server?

I have .war file and an access to remote glassfish server. I want to deploy the .war file on the server.
djangogirl
  • 151
  • 1
  • 1
  • 7
-1
votes
1 answer

What I need to setup netbeans for broadleaf commerce with glassfish 4.1?

I tried broadleaf with eclipse but it still gives more errors and I am familiar with netbeans and glassfish i setup the mysql server and created new schema. I don't know how to create tables broadleaf does not provided schema creation file. Can…
Yogesh Doke
  • 1,706
  • 2
  • 12
  • 20
-1
votes
1 answer

How can I publish my restful webservice to internet?

I don't have much knowledge about webservices. Now developing a server side code with Restful webservices. Also deployed my server side application in Glassfish 4. My webservice is doing its work. I checked by giving the below url in my local…
Gnik
  • 7,120
  • 20
  • 79
  • 129
-1
votes
1 answer

JPA; Setting 'transaction-type' on annotation

I'm using Eclipselink's implementation of JPA and this is how I'm instantiating persistence context: @PicketLink @PersistenceContext(unitName = "txPersistUnit.security") private EntityManager txEmSec; this is persistence unit…
greengold
  • 1,184
  • 3
  • 18
  • 43
-1
votes
2 answers

How to initialize some class, which is not a Servlet on glassfish4?

I have web application in Java code, which uses servlets. My question is how to initialize some java class, which is not servlet. I understand that if the client connects - the servlet then prints the output. But only "if client connects". Is it…
Ernestas Gruodis
  • 8,567
  • 14
  • 55
  • 117
-1
votes
1 answer

Glassfish4 tries to inject EJB in Spring context

I am trying to upgrade to Glassfish 4 for an application that uses a combination of EJBs and Spring beans. This worked fine on Glassfish3. When i try to deploy I get errors of this type: org.jboss.weld.exceptions.DeploymentException: WELD-001408:…
Tobb
  • 11,850
  • 6
  • 52
  • 77
-1
votes
1 answer

How to configure CDI in jersey 2.x version?

I often encountering the deployment issue with the glass fish. It is showing CDI deployment failure at injector resource. I am connecting to the data base through glass fish jdbc connection pool. and Injecting the data source using @inject…
SivaTeja
  • 378
  • 1
  • 3
  • 16
-1
votes
1 answer

How to get data from the database?

I am having problem with getting data from the database (JavaDB). Exactly, I think the error is in the UserBean class in the method GetAllUsersFromTable. It is maybe bc I get entities incorrectly from the database. I have tried to write…
user1282256
  • 183
  • 1
  • 6
  • 16
-1
votes
2 answers

How to take out project name after installing glassfish 4?

While using Glassfish 3, I could access all files on root such as localhost:8080/index.jsp but after installing GlassFish 4 I need to add the project name, localhost:8080/projectName/index.jsp how to take that out?
J888
  • 1,944
  • 8
  • 42
  • 76
1 2 3
60
61