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 not starting after changes made to http listener 1 in glassfish admin console

After changing the port number from 8080 to 8181 of the http listener and checking on the box to enable its security from the admin console, glassfish wouldn't start anymore and I can't access the admin consol anymore (to cancel the changes I did)…
0
votes
2 answers

I've been trying to get a value from an HTML input box posted into an Oracle Thin database through JSP for hours with no luck

I'm using Netbeans and the Oracle-thin connection has been tested and verified multiple times. I'm in dire straits right now because I'm all out of ideas. I'm using Glassfish 4.1 for this. Here's my code: index.html !DOCTYPE html>
0
votes
0 answers

commandLink only works with a h and p version

I'm having this really weird issue where my commandLinkonly work if I have BOTH links in the same view. Works fine, both links:
Gemtastic
  • 6,253
  • 6
  • 34
  • 53
0
votes
0 answers

Could not find or load main class in Glassfish 4.1

I am trying to start the domain in Glassfish 4.1 and I am getting the following error message Waiting for domain1 to start .Error starting domain domain1. The server exited prematurely with exit code 1. Before it died, it produced the following…
0
votes
2 answers

Cannot connect Intellij to Glassfish 4

I have Intellij IDEA and I cannot connect it to Glassfish 4. When I try to Debug, the error message that I get is: Artifact exploded: Server is not connected. Deploy is not available. I've started Intellij using JDK 8. I don't know what can I do…
Alexandru
  • 11
  • 2
  • 5
0
votes
1 answer

Jax-rs initialize subresource There was no object available for injection

I've got a subresource class which must be initialized with a parameter from the path and which also contains a reference to an EJB which must be injected. Resource class: @Path("widgets") public class MasterResource{ @Inject WidgetBean…
KG6ZVP
  • 3,610
  • 4
  • 26
  • 45
0
votes
1 answer

how can I fix : org.springframework.dao.InvalidDataAccessApiUsageException

I am working on a dynamic Web Application and I am stucked in this error : org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into…
fadhloun anis
  • 525
  • 1
  • 6
  • 13
0
votes
1 answer

spring Integration kafka outboundchannel object Injection Error by glassfish

Added @ImportResource("classpath:outbound-kafka-integration.xml") on top of my SpringConfig class where i create beans in Java code... Added below dependency in pom.xml org.springframework.integration
shiv455
  • 7,384
  • 19
  • 54
  • 93
0
votes
1 answer

How to deploy EJB module in Glassfish with jar dependencies

I have a maven EJB module with dependency of two SE modules, one of domain entities and other with persistence entities. com.mycompany.modules entities
0
votes
1 answer

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default) on project dukes-store

I want setup duke forest application on glassfish so for that i used the javaee 7 sdk and after that while performing maven install from command line it gives following errors [INFO]…
Yogesh Doke
  • 1,706
  • 2
  • 12
  • 20
0
votes
1 answer

JSF 2.2 - File upload return java.lang.NullPointerException

return a NullPointerException error. I know there is already a lot of stuff about this exception and uploading files with JSF but I've read it all without any success to diagnose this problem. I am using JSF 2.2 with GlassFish 4.1.1,…
Paul
  • 1,410
  • 1
  • 14
  • 30
0
votes
1 answer

How to solve cross-domain error in Oracle Mapviewer hosted on Glassfish

I have made an HTML5 application (hosted on localhost) that interacts with a remote MapViewer server (hosted on a remote server using Glassfish 4) using it's JavaScript library.
0
votes
1 answer

Deploy War File in Glassfish Fails

I am trying to deploy some SmartGWT apps. They all use HSQLDB for persistence. They all run fine when using Super Dev Mode in Eclipse. They all fail similarly when I try to deploy them to Glassfish. This is the log I got from one…
carlossierra
  • 4,479
  • 4
  • 19
  • 30
0
votes
1 answer

GlassFish 4 error starting domain domain1 listening for transport dt_socket at address: 9009 Error: could not find or load main class files

I am trying to run GlassFish4 on Windows 7. At glassfish4\bin I run asadmin start-domain -d and I get the following error message: Waiting for domain 1 to start. Error starting domain domain1. The server exited prematurely with exit code…
anonymous
  • 71
  • 2
  • 6
0
votes
1 answer

p:socket Error during WebSocket handshake: Unexpected response code: 200

I'm running Glassfish 4, EclipseLink 2.5 with primefaces 5.3. When I post an event to the primefaces event bus and attempt to update my datagrid component it will update in the submitting browser, but in a seperate session (second user) the update…
zobbo
  • 117
  • 2
  • 13