Questions tagged [glassfish-embedded]

104 questions
15
votes
2 answers

cannot get SLF4J working with glassfish 4

I have configured glassfish 3 to use SLF4J in the past by using the SLF4J JUL bridge and it worked fine. The problem I'm having now is that if I use my same setup, SLF4J complains about there being duplicate SLF4J bindings on the classpath and…
Walter
  • 1,290
  • 2
  • 21
  • 46
10
votes
1 answer

Embedded Glassfish, security and Arquillian questions

I want to test my EJBs on an embedded Glassfish using Arquillian. The important thing is that I have to have security up because my bean logic does some programmatic security checking (sessionContext.isCallerInRole(role)). Is it possible to…
Koohoolinn
  • 1,427
  • 6
  • 20
  • 29
10
votes
1 answer

Arquillian - programmatic configuration

I am writing integration tests using Arquillian with embedded glassfish 3.1.2.2 using TestNG. I want to be able to run those tests in parallel, and for this case i need to dynamically configure glassfish ports and database name (we already have this…
botchniaque
  • 4,698
  • 3
  • 35
  • 63
9
votes
3 answers

How to deal with classpath conflict

In my project, I'm using both glassfish-embedded 3.1.1 and the guava lib... The problem is that glassfish comes with the old implementation of guava (ie google-collections)... This results in NoSuchMethodError at runtime, for example when using…
sly7_7
  • 11,961
  • 3
  • 40
  • 54
9
votes
4 answers

Maven Embedded Glassfish plugin

I cannot seem to get the Maven Glassfish plugin working for the life of me: ... glassfish-repository Java.net Repository for Glassfish
Walter White
8
votes
1 answer

How to test login/authentication with Arquillian - Java EE 7

We have a Java EE 7 application and use Arquillian to test stuff. Now we want to check for some permissions of the currently logged in user. My question is quite basic, how do I login a user when inside a testcase? I have read ProgrammaticLogin…
bmurauer
  • 989
  • 8
  • 24
7
votes
2 answers

NetBeans 7.0 , JUnit and Glassfish Embedded 3.1: Does not work

I am trying to JUnit Test a J2EE Web Application with NB 7.0, JUnit and the embedded Glassfish Server in a Win7Professional machine. I broke it down to just test a plain simple Hello-World Web App with a single Session Bean. I have the…
SDReyes
  • 9,798
  • 16
  • 53
  • 92
7
votes
2 answers

Any best practices for dealing with Java EE and java.endorsed.dirs?

I've recently run into a problem with glassfish standalone (v3.1) vs glassfish embedded (v3.1) vs java SE and the way java.endorsed.dirs is used. The specific problem I had is here, but I don't think it's the last time I'm going to run into…
Ryan J
  • 2,502
  • 5
  • 31
  • 41
5
votes
2 answers

What is the official Maven repository for Embedded GlassFish?

http://maven.glassfish.org/content/groups/glassfish/ looks like it should be GlassFish's official Maven repository, but it currently hosts only up to version 3.1.1-b05 of glassfish-embedded-all (see…
Fernando Correia
  • 21,803
  • 13
  • 83
  • 116
5
votes
2 answers

Obtaining Context from an embedded Glassfish 3.1

Does anyone now a way to obtain server Context using Embeddable API (using org.glassfish.embeddable.GlassFish, not javax.ejb.embeddable.EJBContainer)? It would be possible if there's a way to obtain EJBContainer from a running Glassfish, but I can't…
LeXXXa
  • 71
  • 5
5
votes
0 answers

Glassfish embedded with Maven - License FileNotFoundException

i'm using Netbeans 8.0, Windows 8, Java EE 7, Maven web application project and glassfish 4. When I try to run unit tests with embeddable EJB Container the creation of the container fails with following exception: SEVERE: Error while expanding…
thinkU
  • 113
  • 1
  • 5
5
votes
3 answers

Errors when executing maven install with glassfish-embedded-all and arquillian-glassfish-embedded-3.1 artifacts

I'm trying to execute maven install on a pom and the result shown is: Grave: SEC5054: Certificate has expired This result appears just after test execution begins. I have been googling over this problem but I've only found solutions that are…
JPCF
  • 2,232
  • 5
  • 28
  • 50
5
votes
0 answers

Embedded ActiveMQ in Embedded Glassfish (using maven-embedded-glassfish-plugin)

Im trying to run a ActiveMQ glassfish embedded using the maven-embedded-glassfish-plugin. I have separately completed below tutorials, so I know the basics. The goal is to have a setup that builds in one click and avoids 3pp libraries in svn. 1…
Aksel Willgert
  • 11,367
  • 5
  • 53
  • 74
4
votes
2 answers

how do I get started unit testing a Java EE JAX-RS app using embedded GlassFish and Java DB/Derby, ideally in NetBeans sans Maven?

I'm relatively new to JAX-RS, JPA, GlassFish, Java DB, and NetBeans, and I'd like to write unit tests for my code. [Version numbers are at the bottom.] However, I'm stuck on where to begin. I've done a good bit of searching, but I don't yet have a…
Matthew Cornell
  • 4,114
  • 3
  • 27
  • 40
4
votes
1 answer

Maven Embedded Glassfish Plugin - Datasource and JDBC driver

I'm trying to follow this approach to create a datasource for embedded glassfish. The only significant difference between the tutorial and my code is that I'm running the server using the official maven plugin and the embedded-glassfish:run goal.…
Anthony Accioly
  • 21,918
  • 9
  • 70
  • 118
1
2 3 4 5 6 7