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

Cannot run simple servlet on GlassFish-4

My simple REST based webservice does encounter a problem when I try do run it. It seems that the deployment succeeds, but when I access the servlet I get this error: WARNING: StandardWrapperValve[MySimpleServer]: Servlet.service() for servlet…
Rox
  • 2,647
  • 15
  • 50
  • 85
1
vote
1 answer

How to deploy a Java EE application in Intellij Idea

Do you know how to deploy correctly a java EE application in IntelliJ IDEA? I don't like using NetBeans on Mac Os X. It has poor performance on my system. I have got some issues in running and deploying correctly an application on that. For…
Mazzy
  • 13,354
  • 43
  • 126
  • 207
1
vote
1 answer

Trouble with a mapped class (OneToMany) containing OneToOne mappings

I have been trying to map some "OneToOne" relationships between two users via an intermediate class called Guardian. When i try to retrieve a user (and his guardians) i get an internal server error in return from Glassfish (Open edition v4.0). There…
Anders
  • 125
  • 1
  • 3
  • 13
1
vote
1 answer

Install Metro 2.0 on Glassfish 4

I uninstalled metro newer version from glassfish 4 and tried to install metro 2.0. But i could not see 2.0 version under pkg -fa metro command. How can i install metro 2.0 in glassfish 4. Please advice.
Kevin
  • 407
  • 2
  • 7
  • 22
1
vote
0 answers

Error occurred during deployment: Exception while deploying the app: Invalid URL Pattern: [{0}]

I am trying to deploy an war file in glassfish-4 and it seems that it has an error. I tried to check the server log and here is the result. This is what is in the server log: Exception during lifecycle processing java.lang.IllegalArgumentException:…
user3230425
  • 695
  • 2
  • 7
  • 12
1
vote
0 answers

is this SOAP request valid?

a soap client (Control-M) produces the following header:
user2867869
  • 183
  • 6
1
vote
1 answer

glassfish smtp from name

We use a GlassFish server (JavaEE 7) with JavaMail. Afaik, the official E-Mail RFC states that mail addresses may look something like this: Tom Tester which would include a nicer representation than using only the email…
bmurauer
  • 989
  • 8
  • 24
1
vote
1 answer

Java EE 7 Application not deploying on Glassfish 4 Sever after switching from Mojarra to MyFaces

Currently we have a problem when we try to deploy our Java EE 7 application to a glassfish 4.0 server. Before we changed the JSF implementation from JSF Mojarra 2.2.0 to MyFaces 2.2.2 it worked pretty well. Heres the error…
user3218708
  • 55
  • 1
  • 1
  • 8
1
vote
1 answer

Expression Language (EL) not working in Embedded Glassfish 4.0

I have this code in a .xhtml file: But the maxlength…
Joe Almore
  • 4,036
  • 9
  • 52
  • 77
1
vote
1 answer

Transaction realization in JPA

I'm trying to understand what is transaction in JPA. Say I have an application deployed to glassfish with persistence:
corvax
  • 1,095
  • 1
  • 10
  • 35
1
vote
2 answers

javax.el.PropertyNotFoundException Target Unreachable, identifier 'xxxController' resolved to null

I was using @ManagedBean and try to change to CDI @Named as the former one will be deprecated. As soon as I changed one of my controller class to use CDI, I hit the exception saying the controller is resolved to null. I have googled many posts…
HxHxH
  • 11
  • 3
1
vote
1 answer

VisualVM 1.3.7 cannot get the list of Java Web Applications from GlassFish

When I run a Java application (simple application with a main method) the VisualVM list it as running application. However, after running my Java Web application on NetBeans, VisualVM 1.3.7 just shows NetBeans IDE 7.2.1 (pid 4708), VisualVM and…
AlexCartio1
  • 238
  • 3
  • 9
  • 29
1
vote
0 answers

JSF - commandbutton in newly AJAX rendered form doesn't fire

In my JSF 2.2 application on Glassfish 4.0, i need to allow update of single fields within a page. For each field, i created a h:form containing two ui:fragments. Each of there fragments is rendered based on the value of a boolean edit attribute…
Valentino
  • 138
  • 1
  • 6
1
vote
1 answer

Jersey 2.0 - Glassfish 4 Cast exception

I am trying to deploy a simple application that displays the status of a restful service using jersey and glassfish 4. I am getting the following exception: org.glassfish.jersey.internal.ServiceConfigurationError:…
user2287966
  • 257
  • 1
  • 4
  • 10
1
vote
2 answers

why am I receiving NullPointerException on my jsp file?

Once I click on a anchor tag on my jsp page, it perfectly works but the following exception will be thrown in console, based on this answer, I removed the jap-api*.jar files from my dependencies folder but the application still throws the…
AlexCartio1
  • 238
  • 3
  • 9
  • 29