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

JMS API 2.0 when does the connection get closed?

I'm working with JMS API simplified version 2.0 and I have a problem. I send a message through messageProducer = context.createProducer(); messageProducer.send(destination,message); Before doing that I create the message through this…
eng_mazzy
  • 1,049
  • 4
  • 23
  • 39
0
votes
1 answer

Error when deploying war file on GlassFish 4 server (cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param')

I am trying to deploy a war application (the application was written to be deployed on jetty and it access an underlying postgres database) on a glassfish 4 application server. I used the GlassFish admin console to deploy the war file and I am…
skiabox
  • 3,449
  • 12
  • 63
  • 95
0
votes
2 answers

glassfish4, javacompiler classloader error on CompilationTask.call method - cannot find symbol

using glassfish4, jdk1.7 errors in task.call() method, >compiler.err.cant.resolve.location.args >padm.exforms.MemoryFileManager$JavaSourceFromString[mfm:///CM.java]]] >cannot find symbol symbol: method getVal(int,int) location: class…
nnn
  • 23
  • 9
0
votes
1 answer

java.lang.AbstractMethodError For Java 7 and Glassfish 4.0 but it Working perfectly in Java 6 with Glassfish 3.1.2

I am trying to login the my application, I am getting the below error in my glassfish console. javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean: java.lang.AbstractMethodError at…
0
votes
0 answers

ubuntu 14 glassfish4 shutdown without log

I had install Glassfish 4 on ubuntu 14 server. After some configurations everything seems to work fine,but sometimes it random shut down I had install jdk 1.7 60 release but i don't understand why it die during the night. I can't figure why jvm or…
0
votes
1 answer

How can I deploy from within STS 3.5.1 (Spring Tool Suite) to a remote GlassFish 4 server?

I use Netbeans 8 and can deploy to my debian server, by just clicking the play button. Now I want to be able to do the same from within the spring tool suite. So what do I have to do? UPDATE (2014-06-30): This helped me:…
0
votes
0 answers

JAX-WS. SOAP response body tag to custom tag

I am receiving a deploy time error in Glassfish 4 when I try to deploy JAX-WS service with a @WebResult annotated method. Below are the artifacts. @WebService(name = "TestMartCatalog", targetNamespace = "http://www.testmart.com") public interface…
VedVrat
  • 103
  • 3
  • 12
0
votes
1 answer

PathParam from previous websocket call is submitted

I am using JavaEE 7 and Glassfish 4 as my project setup and I would like to use websockets. As browser I have used Chrome 35.0.1916.153. My endpoint should receive a message through websockets and broadcast this message to other users within the…
zerni
  • 87
  • 4
0
votes
0 answers

Glassfish 4.0 with Primefaces 5.0 triggers automatically all methods

I'm deploying my little website on glassfish and I have a 2 method what runs a python file. Methon one is just runs the python file nothing more. When I access to a site it automatically call all the functions... public void reservate() { …
0
votes
1 answer

can't access administration page in Glassfish 4 on Ubuntu 14

I have a Glassfish 4 server on Ubuntu 14 virtualBox. This virtual machine has 2 network interfaces. From the host machine (Windows 7) I can't access the Glassfish administration page, although I have enabled secure administration in the server. Any…
SShehab
  • 1,039
  • 3
  • 17
  • 31
0
votes
1 answer

glassfish-4 + spring jndi name java:comp/env/jdbc/

In spring web-app we have a bean in glassfish4 config this source declared as jdbc/testRes it's all work but if we…
0
votes
1 answer

Glassfish 4 - TransactionRequiredException using Hibernate and CDI @Transactional

I am getting the following exception: javax.el.ELException: javax.persistence.TransactionRequiredException at com.sun.el.parser.AstValue.invoke(AstValue.java:279) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304) at…
tak3shi
  • 2,305
  • 1
  • 20
  • 33
0
votes
0 answers

JSF 2.2 checkbox onChange listener works only on second click

I am using Mojarra 2.2.0 from Glassfish 4.0. I have a search-form and I want to execute an action after selecting a checkbox, but the action is only executed on the second click.
user3347451
  • 39
  • 1
  • 6
0
votes
0 answers

Log the IP address of incoming requests in server.log file in GlassFish

I want to log the IP address of incoming requests to my GlassFish's log. After doing some research, I found out how. But the problem here is that I learned how to log it in the access-log file. Is there any way to log the IP address in the…
SHA33
  • 115
  • 9
0
votes
1 answer

Glassfish4 throw exception when I declare validation.xml file on classpath

I've tried to declare a custom validator for @NotNull constraint and Glassfish4 throw this exception when find /META-INF/validation.xml. Project works fine if I omit this file. Exception while dispatching an event java.lang.IllegalStateException:…