glassfish-embedded

Maven Embedded Glassfish plugin

I cannot seem to get the Maven Glassfish plugin working for the life of me: <project> ... <pluginRepositories> <pluginRepository> <id>glassfish-repository</id> <name>Java.net Repository for Glassfish</name> <url>http://download.java.net/maven/glassfish&lt;/url&gt; <layout>default</layout> <snapshots...

Maven Embedded Glassfish Plugin - how to set the temporary directory?

Hi all, I am using the Maven Embedded Glassfish Plugin and it works great, but unfortunately it creates a temporary directory in my main project directory. I would like it to use target so that every time I clean the project, the embedded directory also gets wiped. Is there a setting for that? Walter ...

Configuring Seam for Glassfish

Hi all, I am still migrating to Glassfish instead of Jetty for our application servers and am running into some problems. The application starts up fine, the database tables are created by hibernate and data is imported by my database importer, so Seam is alive, running and well. It appears that Seam is not properly bound to any JSF l...

embedded glassfish: java.lang.NoClassDefFoundError: java/util/ServiceLoader

I am trying to embed glassfish inside my java program using embeded api, I am using maven2 and its pom.xml is as follows <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt; <mode...

Embedded Glassfish v3: deploying sun-resources.xml programmatically fails

I would like to be able to package my jpa-ejb-web project as a standalone application, by using Glassfish embedded API. To use the JPA layer, I need to deploy the sun-resource.xml configuration, which should be possible with the asadmin command add-resources path\to\sun-resources.xml. I've this code to do it: String command = "add-...

JSP hot-swap in Maven glassfish embedded plugin

Hi there! 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: <plugin> <groupId>org.glassfish</groupId> <artifactId>maven-embedded-glassfish-plugin</artifactId> <version>3.0.1</version> <configuration> <instanceRoot>${project.bui...

Maven Embedded Glassfish Plugin - not starting

I can't seem to get a web application running with the embedded glassfish plugin: Plugin Configuration: <plugin> <groupId>org.glassfish</groupId> <artifactId>maven-embedded-glassfish-plugin</artifactId> <version>${glassfish.version}</version> <configuration> ...

Embedded Glassfish - EJB 3.1 - @Schedule

Hi all, I am new to Java EE 6 and working on getting a number of demo applications running finally. I have an application scoped bean that has a @Schedule annotation on it that should in theory trigger that method every minute. However, that method doesn't appear to ever be invoked. It simply writes to the logs that it was called. C...

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), it's all good. Now I would like to let Hudson do those tests. At the moment it is failing w...

Use Glassfish embedded with MySQL

Hi! 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! ...

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

Hi, 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 ? <dependency> <groupId>org.glassfish.extras</groupId> <artifactId>glassfish-embedded-all</artifa...

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 = EJBContainer.createEJBContainer().getContext(); } ... test() { BookService bookService = (BookService)ct...

DB Connection with MySQL via Hibernate on Embedded Glassfish

Hi! 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 without container via Hibernate Sessionfactory) Here is my Exception Stacktrace duri...