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

DataBase generation fails JPA

I'm using Glassfish 4 and JPA 2.1 ans Netbeans 7. In order to generate the table I have these beans : @Entity public class Myuser implements Serializable{ @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long myuserId; …
eento
  • 761
  • 4
  • 20
  • 53
1
vote
1 answer

Migrate jsf application to Glassfish 4 and JSF 2.2

I moved a JSF application from Galssfish 3.1.2 to Glassfish 4.0 and I thought the new server release was completely back compatible. I found out it is not. I used an outdated library, Primefaces 2.X, and some components stopped working properly,…
Filippo
  • 1,123
  • 1
  • 11
  • 28
1
vote
1 answer

UTF-8 Encoding issue in EntityManager data transfer to mySQL

I have 2 projects that both use a same mySQL database. One is a Master/Detail desktop application, the other one is a JSF Crud using PrimeFaces-4.0. - Although my JDBC Connection is UTF-8 as:…
1
vote
2 answers

Installing Glassfish Server with installer fails on Windows 7

iam a complete newbie in this area and dont know what to do. For a Java ee tutorial i have to install the GlassFish server on my Windows 7. I have followed the instructions and installed the newest JDK. After i have downloaded the GlassFish native…
Pero
  • 774
  • 3
  • 15
  • 34
1
vote
3 answers

Sharing data across multiple EJBs using Context

With Glassfish realms and Context I can use UserPrincipal.getName()and isUserInRole methods to retrieve information about the logged in user. However, I need to share more data across the EJBs, e.g. information about the user I can get through…
mrik974
  • 465
  • 2
  • 7
  • 17
1
vote
2 answers

Standalone EJB client lookup in Glassfish4

Spent half a day solving the problem of ejb client lookup in glassfish 4. The bean: @Stateless @LocalBean public class TestBean implements TestRemote{ @PersistenceContext(unitName = "testunit") private EntityManager em; public String…
user3111560
1
vote
0 answers

org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:403)

I have run into this "WELD-001408 Unsatisfied dependencies for type [Injector] with qualifiers..." error when deploying a Maven project to Glassfish 4. I searched on the internet and added scope, added bean-discovery-mode="all", all other things and…
Janet
  • 772
  • 9
  • 13
1
vote
0 answers

Jersey + JPA deployment on Glassfish not working without restart

For a webapp project, I am using Eclipse + Jax-RS Jersey 2.5 + JPA 2.0, and I am facing some weird problems after deploying the application on Glassfish server from Eclipse. In fact, everything works fine if I hit "Run on server", let the deployment…
Jérémy Dutheil
  • 6,099
  • 7
  • 37
  • 52
1
vote
1 answer

GlassFish 4 and Java Mail: PKIX path building failed

i tried this tutorial (http://czetsuya-tech.blogspot.de/2012/11/how-to-send-email-in-glassfish-using.html). I am using GlassFish 4 on Windows 7 Professional 64-bit. Is this tutorial working because i got this…
Marcello90
  • 1,313
  • 4
  • 18
  • 33
1
vote
2 answers

Error deploying WAR with mysql driver to Glassfish4 on CloudBees

I'm trying to deploy a WAR on CloudBees Glassfish4 server. I've followed the instructions at the bottom of http://developer.cloudbees.com/bin/view/RUN/Glassfish4 to include the jar in the META-INF/lib directory. When I deploy with: bees app:deploy…
Erl
  • 31
  • 4
1
vote
1 answer

Glassfish 4 does not write stacktrace to set log file

I am using Glassfish 4.0. I ran asadmin set-log-attributes com.sun.enterprise.server.logging.GFFileHandler.file=$MY_LOG_FILE so that Glassfish logs to $MY_LOG_FILE and not to $GLASSFISH_PATH/domains/domain1/logs/server.log anymore. I have deployed…
pogopaule
  • 1,533
  • 2
  • 10
  • 17
1
vote
1 answer

NetBeans Glassfish REST library conflicting with Jersey library: ModelValidationException

I'm trying to make a file upload work inside a REST project running on GlassFish Server 4.0. The GlassFish server (although I find it confusing) has its own version of the Jersey library inside javax.ws.rs library which so far has worked fine, now…
dendini
  • 3,842
  • 9
  • 37
  • 74
1
vote
1 answer

AFNetworking with Java and Glassfish

This could be a longshot question, but I haven't found any specific tutorials or articles on this particular combination of technologies. My intentions are to use my own APIs (from Java Beans deployed on a GlassFish server) on the iOS device using…
Georgian
  • 8,795
  • 8
  • 46
  • 87
1
vote
1 answer

How to configure JAX-RS 2.0 with Eclipse Kepler 4.3.1?

I am having trouble adding the JAX-RS 2.0 facet to an Eclipse 4.3. Dynamic Web project with Glassfish 4.0. I tried the approach noted here and the values that are filled in for the parameters with "Disabled Library Configuration" are: JAX-RS…
CraftWeaver
  • 707
  • 1
  • 8
  • 21
1
vote
2 answers

CDI JAX-RS BeanValidation in Glassfish4

I have a simple JAX-RS InvoiceResource with an injected bean: @Path("invoices") public class InvoiceResource { @Inject private InvoiceStore invoiceDao; @POST @Produces(MediaType.APPLICATION_JSON) public Response create(@Context…
adrianmoya
  • 719
  • 1
  • 6
  • 17