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

ConnectorRuntimeException: Invalid resource

I am creating an enterprise java application using netbeans 8.0.1 java EE6 and glassfish server 4.1.1 attached with netbeans. When I have created the db in mysql and connected successfully and created entity class from database and session bean for…
Siluni Upeksha
  • 419
  • 2
  • 6
  • 17
1
vote
0 answers

Stateless Session Bean method returned without completing transaction

I use glassfish 4.1 My code is @Stateless @TransactionManagement(TransactionManagementType.BEAN) public class IslemEJB { @PersistenceContext(unitName = "etobsSentinelPU") private EntityManager em; @Resource …
aysegulP
  • 443
  • 3
  • 6
  • 18
1
vote
0 answers

grails takes long TTFB time in dev and prod for very first call

I am using grails 2.4.4 and glassfish 4.1 and Java 8. For Database Call When i put a very first request to server it is taking long TTFB time (around 19s). After that for each request it takes only(around 800 ms)TTFB. For Static Pages Even for…
Hardik Patel
  • 937
  • 3
  • 14
  • 39
1
vote
1 answer

"web container has not yet been started" on persisting an entity via jax-rs

The problem: I'm trying to implement a simple jax-rs service that would be persisting entities passed as jsons. A part of the stack I'm using is: GlassFish 4.0 Jersey 2.0 Hibernate 5.1.0.Final Oracle jdbc 12.1.0.2.0 Currently I'm receiving…
Nick
  • 130
  • 1
  • 10
1
vote
0 answers

Configuring glassfish server / application correctly to point to different schemes

Ive built an application that running on a glassfish server, currently i have one scheme that its pointing to. What is the best way configure my application / glassfish server so that i have one url like www.example.co.uk/ but after the forward…
1
vote
2 answers

autodeploy web service java with glassfish server 4.1.1?

How can I do to deploy the web service automatically,I have the webService.war file ?I'm working with glassfish 4.1.1 and use a external library postgresql-9.4-1203.jdbc4.jar and I dont know how deploy the .war file thanks.
Bakke Medina
  • 307
  • 2
  • 3
  • 10
1
vote
1 answer

Trying access a remote EJB from a stand-alone, non-EE Java client

I have two laptops. Both are connected to the Internet via my home wi-fi router. laptop1: testing Java Enterprise Edition 7 applications, using NetBeans 8 and GlassFish 4 laptop2: testing Java Standard Edition 7 applications, using Eclipse Mars Here…
softwarelover
  • 1,009
  • 1
  • 10
  • 22
1
vote
0 answers

Timeout for HTTP_BAD_GATEWAY.html.var in GlassFish 4?

I'm struggling to find the timeout configuration in GlassFish 4 to solve the below problem: The application implements a so-called tunneling, serving contents of few connecting portals to users. It opens up an HTTP connection, passes on user's…
1
vote
3 answers

How do I solve GlassFish error 'Glassfish server runtime requires full JDK instead of JRE' while configuring GlassFish server?

I am going through a strange problem which I dont know how to fix. I am trying to configure GlassFish 4.0 in my eclipse. When I click on GlassFish 4.0 from the server list and hit next, it throws an error stating: Glassfish server runtime requires…
Moses
  • 43
  • 7
1
vote
1 answer

MessageBodyWriter not found for media type=application/json even while Jackson is included

I've seen some solutions to this problem but it seems like following them doesn't solve my problem. I am returning a simple string array and when I return it, I am getting this error: Severe: MessageBodyWriter not found for media…
mikebz
  • 3,277
  • 8
  • 37
  • 50
1
vote
0 answers

Again on Glassfish 4 and java.lang.IllegalStateException: isHexDigit

After almost a year without any problem suddenly my Glassfish web application is not working any more. In the browser the requested pages are truncated and bad formatted. The log is full of the following exceptions: [2016-01-04T17:45:21.263+0100]…
Filippo
  • 1,123
  • 1
  • 11
  • 28
1
vote
0 answers

Glassfish webapp with maven system dependency

I have a collaborative project that is a webapp being deployed to a Glassfish installation. The project depends on an external dependency. This dependency is a system level dependency for the following reasons Using mvn install isn't workable as…
PDStat
  • 5,513
  • 10
  • 51
  • 86
1
vote
0 answers

Configuring SSL on glassfish-4

Am trying to configure glassfish-4 for SSL but it seems i can't get it to work. By default glassfish uses port 8181 for SSL which of course works very well from my localhost prompting the browser to add the certificate in its truststore but from…
odich daniel
  • 87
  • 2
  • 12
1
vote
1 answer

Websocket @OnOpen not fired on Glassfish 4.1.1 Payara 4.1.1.115 Tyrus 1.11

I'm actually in a nightmare. My webapp uses websockets for the chat and here comes the problem: Using Glassfish 4.1u13 everything worked fine, until I activated the Access Log Monitoring. since that, every ws request was made 2 times and the web…
1
vote
0 answers

Force Glassfish 4 to generate 2.0 wsdl

By default @Webservice on Glassfish 4 generates wsdl 1.1. How can I force Glassfish 4 to generate 2.0 wsdl ? To me it seems impossible, please confirm or deny below arguments: Glassfish 4 uses metro implementation, jax-ws…
bastiat
  • 1,799
  • 2
  • 19
  • 38