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

Exception while deploying Tyrus websocket as OSGI bundle on Glassfish

I have running tyrus websocket server standalone and without any problem but when i deploy OSGI bundle and try to start a tyrus server from bundleActivator class then getting exception otherwise when i run tyrus server locally it is running without…
user565
  • 871
  • 1
  • 22
  • 47
0
votes
1 answer

Read external Files with GlassFish / Vaadin?

I would like to make .txt-files accessible for my VaadinApp on a GlassfishServer. Lets say I have a .txt-file, its content is 12345. Now, when I click a button on my Vaadin StartPage, I would like to show the Data that has been written into this…
Zesa Rex
  • 412
  • 1
  • 4
  • 16
0
votes
0 answers

why the exception (java.lang.IllegalStateException: Queue full) occured when i use jpa(eclipselink)

here is my code,em is mean EntityManager,i try to query about 490000 record from the table of db,then the exception occured as warning and the output of remaining id is missing,but when i query 5000 record or less from the table,this exception is…
godtree
  • 1
  • 4
0
votes
0 answers

Connection failure with Oracle DB in intellij idea

I opened a database through glassfish4 server but When I want to access database with Intellij Idea I get these errors: Settings in Glassfish:
Frollo
  • 29
  • 5
0
votes
2 answers

Java ,Glassfish ,The connection is closed

I'm facing an issue with Payara server 4.1.1.164. In the log, I found error Connection reset first, then all the connection became not available with error The connection is closed. I need to restart my application to get everything back, the…
alex wei
  • 1
  • 1
0
votes
1 answer

JSF login failing

Im new to developing with Java & JSF (this is part of Uni studies); I'm using NetBeans 8.2, GlassFish 4.1.1 (with Derby DB), JSF 2.2: While my login is failing authentication via a jdbcRealm which I can't figure out), its also never redirecting to…
BlissSol
  • 374
  • 10
  • 23
0
votes
1 answer

Bundling JSF in WAR for Payara fails with JSF1051 GlassFishInjectionProvider does not extend DiscoverableInjectionProvider

I need to bundle JSF implementation in my WAR file due to known bug in the original mojarra implementation. I am not allowed to replace the JSF implementation in the modules, so i am using the useBundledJsf property. Running Payara Version: Payara…
tak3shi
  • 2,305
  • 1
  • 20
  • 33
0
votes
1 answer

Error in Web Services java (jsp) StandardWrapperValve[]:... threw exception java.nio.channels.ClosedByInterruptException

I'm developing the web service and in it weka use, weka query the data stored in the database (sql server 2008), to generate clustering models, from the weka gui takes in creating the models 19 minutes and there does not occur any Problem , But when…
0
votes
0 answers

Enabling JMS MDB manually or start by delay time

Sometimes I have exceptions below in glassfish log when deploying web project java.lang.NullPointerException at org.apache.naming.resources.WebDirContext.lookupFromJars(WebDirContext.java:325) at…
Bagdat
  • 308
  • 4
  • 15
0
votes
1 answer

@PersistanceContext, EntityManager getting null, hibernate with jpa 2.1

first of all, sorry for my bad english. Im working in a java web app with oracle 11g, using the java automatic tool to construct the entities. After debugging i noticed the null EntityManager. Here is the code. Controller: @WebServlet(urlPatterns =…
0
votes
1 answer

How to change context path of glassfish using linux

I want to change the context-path of application in glassfish using linux. I cannot access the 4848 of glassfish due to some restrictions, i can only access it thru linux.
George
  • 263
  • 5
  • 17
0
votes
1 answer

MOXyJsonProvider not working

In my REST applications (under GlassFish 4.1.2) I want to convert POJOs to JSON and back again. The examples all make it look easy but I am missing something. Here is my application: @ApplicationPath("/") public class RootApp extends Application…
AlanObject
  • 9,613
  • 19
  • 86
  • 142
0
votes
1 answer

Logback RollingFileAdapter does not work as expected in Payara Server

I already did search over stackoverflow and google it alot, but my problem is not solved yet. Problem: In code I have these loggers: @Stateless public class NotificatrionService implements INotificationService { private final static Logger…
Vielinko
  • 1,659
  • 1
  • 13
  • 17
0
votes
2 answers

How to display arabic text from database?

i'm trying to read some arabic text from a mysql database,i'm using jsf2 and jpa ,EclipseLink as ORM. I've already added useUnicode=yes&characterEncoding=UTF-8&characterSetResults=UTF-8 to my connection pool and my database has…
0
votes
1 answer

MQ 7.5 + Glassfish 4 Integration

I am trying to setup IBM MQ 7.5.0.2 + Glassfish 4(Payara) JDK 8 and using Camel Integration as a Client I have followed deploying RAR approach however I am unable to make a connection from Glassfish to MQ The Connection Pool ping fails stating "Ping…
JGekp
  • 33
  • 7