Questions tagged [glassfish-embedded]

104 questions
0
votes
1 answer

maven-embedded-glassfish-plugin throws a ClassNotFoundException

I have configured my pom file to use maven-embedded-glassfish-plugin. In fact this is the jersey-webapp artifact that generates the project. The plugin section of the pom is as below:- org.glassfish …
VDev
  • 2,287
  • 5
  • 25
  • 27
0
votes
1 answer

Testing EJB with embedded container. How can I log in?

I'm trying to test my EJBs with the embedded container. container = EJBContainer.createEJBContainer(); But I have some of my methods that are restricted to some roles. So, my question is. How can I log into the container so I can test these methods…
marcelocbf
  • 117
  • 2
  • 11
0
votes
0 answers

Migration Glassfish 3.1 to Payara 5 - CDI and EJB injections contexts

In order to prepare a migration from Glassfish 3 to Payara 5 I created a small PoC with two endpoints that invoke a service, one through the CDI context and the other through the EJB context. This PoC is based on payara micro archetype and had…
tiagomistral
  • 143
  • 8
0
votes
0 answers

Run Java App on Heroku with glassfish-embedded

This is my first post on Stackoverflow. I am beginner in JAVA development. my project is running on a local server glassfish but I would like to deploy it on heroku using glassfish-embedded. I have this error when I try to suscribe a new user…
LotF
  • 31
  • 4
0
votes
1 answer

could not find Factory: javax.faces.context.FacesContextFactory - using embedded glassfish 3.0

I'm trying to run a simple jsf-2.0 tutorial using embedded glassfish 3.0 and keep getting this error. Have been searching solutions on this forum and the internet and seems getting no where. Here is the pom: …
sarahTheButterFly
  • 1,894
  • 3
  • 22
  • 36
0
votes
0 answers

Arquillian & Testcontainers: Invalid Oracle URL

I'm trying to embed a Database-Testcontainer in an existing arquillian-test with embedded-glassfish as a container. I'm using a JNDI-datasource defined in a glassfish-resources.xml- and a persistence.xml-File. That's why I'm trying to use the…
Ben
  • 447
  • 4
  • 13
0
votes
1 answer

How to setup JUnit tests for Glassfish Embeddable EJBContainer + EclipseLink JPA?

I'm trying to use EJB 3.1 Embeddable EJBContainer on Glassfish 3.1 for integration testing my EJB's. There's a classloading issue I can't figure out. My ejbs are build into dum-ejb.jar. They use EclipseLink JPA. I also create EJB client jar…
user449236
  • 513
  • 1
  • 4
  • 6
0
votes
1 answer

Persistent error : http status 503

Here's the scenario: At work, for a glassfish server, i'm having a persistent error http status 503, whenever I test a specific wsdl (corresponding to a specific glassfish module), in a web browser. For te same server glassfish, i have other…
Vitor
  • 1
  • 6
0
votes
1 answer

Websocket application doesnt run in glassfish embedded, but runs in standalone version

Good evening, I have a simple websocket application. It runs fine if I deploy it to standalone glassfish server either using asadmin command or my IDE. When I use glassfish-embedded, everything seems fine (no error messages), but I get 404 at…
zelitomas
  • 113
  • 8
0
votes
1 answer

Payara-Micro Embedded with Java EE

I have a Java EE application (with maven) which currently is packaged into a .war file. What I want to do now is execute this project with a Payara Micro Embedded server. This is done like this: public static void main(String[] args) { …
0
votes
1 answer

DB Connection with MySQL via Hibernate on Embedded Glassfish

I have a problem to connect my MySQL Database via Hibernate/ JPA2 on a Embedded Glassfish. My Environment: Maven 2 Embedded Glassfish (integrated via Maven Plugin) Eclipse + M2Plugin Hibernate 3.5.6 MySQL (@localhost) (runs and can be connected…
mastercrusty
  • 1
  • 1
  • 1
0
votes
1 answer

Do I need to install glassfish server to use it as embedded server in application?

I am trying to use glassfish as a embedded server in my ejb3.1 project. below are my maven dependencies.. But when I run my tests it fails to deploy ejb modules. do I need to set javaee.home or some more variable ?
user237673
0
votes
1 answer

Use Glassfish embedded with MySQL

Well, the title says almost everything, how can I define a jdbc-connection in an embedded glassfish to be able to use a MySQL database as a jdbc resource?? Thanks for your replies!
Federico Nafria
  • 1,397
  • 14
  • 39
0
votes
1 answer

Hudson + JUnit + embedded GlassFish, how to provide domain configuration?

I'm using NetBeans and GlassFish 3.0.1 to create an EJB3 application. I have written a few Unit Tests, which get run via JUnit and make use of the embedded GlassFish. Whenever I run these tests on my development machine (so from within NetBeans),…
Hank
  • 4,597
  • 5
  • 42
  • 84
0
votes
2 answers

Glassfish embedded can't deploy EJB modules

I have searched through Stackoverflow to find an answer for my problem, found some very similar problems, but no answer. What I am trying to do: Create a simple junit test, where a Glassfish 4.1 embedded container is started, and a simple operation…
csabee
  • 217
  • 2
  • 12