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
2 answers

why glassfish 4.1 runs in netbeans 8.0 but in eclipse luna does not

I´m trying to work with eclipse and export my web apps made in netbeans, i just add a new server, download glassfish tools, and shows me an error: Unable to start server due following issues: Launch process failed with exit code 1 Launching…
greg dorian
  • 136
  • 1
  • 3
  • 14
0
votes
2 answers

Can Two Session Bean Implement Same Remote Interface?

I'm a newbie to ejb .I want to know is can two session beans implement the same remote(local) interface, if not why? The code example is welcome. Thanks for any help!
Vu NG
  • 280
  • 3
  • 20
0
votes
0 answers

Error in Deploying Java Enterprise Application on Glassfish 3.1

I have an enterprise application and on deploying I get the following error message. Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: …
0
votes
1 answer

@PostConstruct not called in Glassfish

I have such dependencies: javax javaee-api 7.0 com.sun.faces
katch
  • 1
  • 1
0
votes
2 answers

glashfish 4.1 not start on ubuntu server 14.04

I follow http://www.lyonlabs.org/howto/howdoi-glassfish.html to install Glassfish 4.1 on Ubuntu 14.04 server. But when I try to start glassfish server it show: remote server does not listen for requests on [localhost:4848] is the server up Thanks
Sanjeetjh
  • 31
  • 2
  • 13
0
votes
1 answer

Cannot Deploy Project involving Crawler4j

After I add the crawler4j jar file with the dependencies (I am not Maven) into the classpath library, I try deploying and running the project but my Glassfish 4.1 shows the following error; Severe: Exception during lifecycle…
0
votes
1 answer

Older "java.version" value in GlassFish than on console

Operating system: Ubuntu 12.04, GlassFish version: 4.0.1 (build 10) In a GlassFish servlet I print the Java version in processRequest with this code: out.println("

" + System.getProperty("java.version") + "

"); out.println("

" +…

mjn
  • 36,362
  • 28
  • 176
  • 378
0
votes
1 answer

Concurrency on Stateless Bean

I have two session bean: A stateless session Bean called AuctionFrontEnd. A singleton session Bean called StateAuctionFrontEnd In the StateAuctionFrontAnd there is a HashMap and the methods for put and remove element from HashMap. The Concurrency…
melix
  • 468
  • 4
  • 16
0
votes
1 answer

Does Arquillian support Java EE 7?

On the official Arquillian site I found table with supported container adapters https://docs.jboss.org/author/display/ARQ/Container+adapters. There is only one Java EE 7 container and it is in category "Container adapters managed outside of the…
guest
  • 1,696
  • 4
  • 20
  • 31
0
votes
0 answers

java ee7 GF4 change schema properties at runtime

I'm working with java ee7 and glassfish 4 or wildfly 8.0.1. In an application I need to change database at runtime. For example I need to switch from mydb2014 to mydb2015 based on user choice. Number, name of database, access credentials, host and…
assistbss
  • 527
  • 7
  • 25
0
votes
1 answer

glassfish won't deploy with database

is supposed to connect to a phpmyadmin database on an easyphp server insert a record on the users database and all of this goes through web services via glassfish server but this isn't happening netbeans says that glassfish is running because it…
Chris Bennett
  • 161
  • 1
  • 3
  • 14
0
votes
1 answer

Glassfish : "Non Transactional Settings" option in JDBC Pools

In Glassfish, there is a JDBC Pool option called Non Transactional Connections So am I correct in thinking that "Non Transactional Connections" is the same as setting auto-commit=false ? If that is correct, then why, when this option is disabled…
Little Code
  • 1,315
  • 2
  • 16
  • 37
0
votes
1 answer

A thread for more beans if beans are deployed in the same application server?

I am trying to implement ( for exercise ) , with Java EE , the algorithm of active replication. I encountered an unexpected problem. I have this function (pseudo-code): public boolean doOperation() in the frontEnd EJB{ sendJMSMessageToTopic(); …
melix
  • 468
  • 4
  • 16
0
votes
0 answers

Cannot use documentViewer (Primefaces Extensions)

I use Primefaces 5.1, Primefaces Extensions 3.0.0 and GlassFish 4.0 in my project and have many problems with pe:documentViewer. My code is: in xhtml
Marin
  • 1,010
  • 1
  • 10
  • 37
0
votes
1 answer

How to organise internationalizing a Netbeans/Glasshfish project

I've got an existing Netbeans/Glassfish web application that was created automatically using one of the Netbeans wizards. The project structure has /src /conf /java/com/java source here /web /WEB-INF /css /img etc I'm not…
Tim B
  • 40,716
  • 16
  • 83
  • 128