Questions tagged [glassfish-embedded]

104 questions
4
votes
0 answers

Embedded GlassFish 3.1 No longer able to statically get server reference

I am working with the new embeddable api in GlassFish 3.1 and have come across a problem. Previously using the old embedded api I could call a static method to get a currently running…
Magnus Smith
  • 827
  • 2
  • 11
  • 28
4
votes
1 answer

How to get a Server.log in Embedded Glassfish

I'm using Embedded Glassfish to do some In-Container-Tests with Arquillian. Now, when my test fails, i always get stacktraces from the tests that are cluttered with Arquillian-specific stuff. But there are few informations about what the real reason…
Wolkenarchitekt
  • 20,170
  • 29
  • 111
  • 174
4
votes
2 answers

Why Lazy Fetching is not working JPA

i have a hard time understanding the lazy fetching since i does not work for as i read about it in a book, they say that in lazy fetching jpa will load the entities only when they are accessed through geters so i created an Arquillian project to…
achabahe
  • 2,445
  • 1
  • 12
  • 21
4
votes
3 answers

Java EE 6 - Embedded container EJB tests

This questiong is regarding Java EE 6, using glassfish v3 embedded-all. I have a unit test that uses EJBContainer to test my stateless EJB. Problem is I'm having trouble looking up the EJB (remote) using JNDI: setup() { ctx =…
Dzhu
  • 4,311
  • 5
  • 36
  • 48
4
votes
1 answer

JSP hot-swap in Maven glassfish embedded plugin

I am trying to setup embedded glassfish maven plugin and I succeeded, but I can't make jsp files to be hot-swapped. Here is my config: org.glassfish maven-embedded-glassfish-plugin
glaz666
  • 8,707
  • 19
  • 56
  • 75
4
votes
1 answer

How to test @RolesAllowed secured EJB3.1 with embedded glassfish

I have a @RolesAllowed protected @Stateless EJB that I'm trying to JUnit-4 test with embedded GlassFish container. The most recent hurdle I've overcoming has been GlassFish domain configuration for persistence unit and security realm. Map
Ian at SSU
  • 409
  • 3
  • 17
3
votes
1 answer

Embedded Glassfish and `imqcmd`

We are using an embedded Glassfish Server in our testing environment. We use the org.glassfish.embeddable.CommandRunner interface to execute administrative tasks (i.e., what we do with asadmin with a standard standalone Glassfish…
Matteo
  • 14,696
  • 9
  • 68
  • 106
3
votes
1 answer

Glassfish embedded with JUnit for EJB testing

I ran into a big issue, what I cannot solve. I trying write a small application with JavaEE6 and EJB. I would like set up testing environment with EJBContainer and Glassfish Embedded. This project is created via Maven but the EJBContainer is booted…
Gabor Garami
  • 1,245
  • 8
  • 26
3
votes
0 answers

activeMq rar autodeployed in glassfish embedded

Is it possibile to autodeploy activeMq rar into glassfish embedded? I tried many ways using glassfish-embedded-all-3.1b11 upto 3.2b06 but had no luck. In particular, I'd like to use javax.ejb.embeddable.EJBContainer api instead of dynamically…
Vincenzo Cerbone
  • 404
  • 5
  • 12
3
votes
0 answers

how can one use 'embedded-glassfish:admin' to create a datasource

There a many articals pointing to embedded-glassfish:admin when it comes to create a datasource for embedded glassfish. But at the end there is now good description of how this should actually…
domi
  • 2,167
  • 1
  • 28
  • 45
3
votes
0 answers

Interceptors doesn't work in Unit tests

I am get Interceptors working on the application server. I have annotated EJB: @Stateless @Named("accountsEJB") public class AccountsEJB { @PersistenceContext(unitName = "weducationPU") private EntityManager em; // . . . other methods …
gooamoko
  • 658
  • 12
  • 32
3
votes
1 answer

ProgrammaticLogin doesnt work in arquillian tests

I'm trying to simulate a login using the ProgrammaticLogin class in my arquillian tests in an embedded glassfish. my code is the following:…
3
votes
1 answer

Same but Different domain.xml when running Embedded Glassfish 4.0

Apparently, it is not a good idea to use an existing domain.xml file, generated when creating a new domain using asadmin create-domain new_domain, and later use it when running an embedded instance of Glassfish. DataSources can not be found…
kungcc
  • 1,832
  • 5
  • 25
  • 48
3
votes
0 answers

Embedded Glassfish "randomly" responds to requests after restart and redeploy

We use embedded glassfish version 3.2-b06 for integration tests. The problem is that sometimes test that call our web service (RESTful) returns a 404 response and sometimes 200. For example: @Test public void test() throws Exception { int code =…
Anthony Tsivarev
  • 881
  • 3
  • 13
  • 25
3
votes
0 answers

org.apache.catalina.LifecycleException: PWC2769: Manager has not yet been started in maven glassfish plugin (3.1)

i user maven glassfish plugin (3.1) and i got this error . so help me ..... error : Feb 14, 2013 1:54:31 PM org.apache.catalina.core.StandardContext start SEVERE: PWC1305: Exception during cleanup after start…
Kamlesh
  • 517
  • 3
  • 10
  • 28