glassfish-3

EJB injection in Glassfish webapp

I've got an app that is trying to use @EJB annotation to inject remote references to EJBs in my ejb.jar file. I'm getting inconsistent results. In one case, I have a listener in web.xml that gets called and apparently has the EJB injected correctly, since I can see it connecting to the EJB and calling methods on it. In another class (...

Remote interface lookup-problem in Glassfish3

I have deployed a war-file, with actionclasses and a facade, and a jar-file with ejb-components (a stateless bean, a couple of entities and a persistence.xml) on glassfish3. My problem is that i cant find my remote interface to the stateless bean from my facade. My bean and interface looks like: @Remote public interface RecordService {...

Get Ajax4JSF (a4j component) running on Glassfish

I'm trying to build an JEE6-application on Glassfish V3, using JSF 2.0, Weld, JPA2 and Maven. Now i'm having trouble getting a simple <a4j:support> running. This is the fragment of my little example. When typing something into the inputtext, the outputtext should automatically be updated. But nothing happens (not in Firefox, not in IE8)...

Path to a file in a webapp under GlassFish

How do I specify the path to a file in a web application? I have a folder named 'templates' under WEB-INF, I've been told that under GlassFish v3 the path should look like this: ./WebContent/WEB-INF/templates but this way I'm getting a file not found exception. What do I have to change in order to make it work? ...

Java EE 6 + JPA - Exception: Message Driven Bean cant be managed bean.

I create an Enterprise Application CustomerApp that also generated two projects CustomerApp-ejb and CustomerApp-war. In the CustomerApp-ejb, I create a SessionBean call CustomerSessionBean.java as below. package com.customerapp.ejb; import javax.ejb.Stateless; import javax.ejb.LocalBean; import javax.persistence.EntityManager; import j...

How do I increase memory given to maven-glassfish-plugin?

I'm using the Maven plugin for embedded Glassfish - here's my plugin declaration: <plugin> <artifactId>maven-glassfish-plugin</artifactId> <packaging>maven-plugin</packaging> <version>1.0-alpha-4</version> <configuration> <httpPort>8080</httpPort> </configuration> </plugin> After several clicks through my data-intensive ...

Glassfish 3 Cant update JDK no way

Hello.. I was using 1.6.0_19 jdk and installed 1.6.0_20 jdk.. Glassfish doesnt like that... Here are my windows environment variables.. ALLUSERSPROFILE=C:\ProgramData ANT_HOME=C:\apache-ant-1.8.1\ APPDATA=C:\Users\Parhs\AppData\Roaming CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=PARHS-PC ComSpec=C:\Windows\system32\cm...

@Resource annotation is null at run-time.

I'm using GlassFish v3. The following field is declared in a class: @Resource private javax.sql.DataSource _data_source; The following is declared in web.xml: <data-source> <name>java:app/env/data</name> <class-name>com.mysql.jdbc.Driver</class-name> <server-name>localhost</server-name> <port-number>3306</port-number> ...

Maven Glassfish Plugin: Deploy application as exploded directory/folder

I need my JavaEE-application to be deployed on Glassfish as a directory, not a packaged WAR file. Is it possible to deploy a directory to Glassfish with the Maven Glassfish Plugin? With the admin console, it's possible. But i want to be also able to do it on the command line. ...

How to automatically drop & create tables with Glassfish v3 & PostgreSQL 8.4?

I've got a simple web app that should store data into my postgreSQL database. There's a class "Person" which is annotated as @Entity, there's a JDBC Connection Pool and a JDBC Resource. When I try to deploy it by the command asadmin deploy --name=miniejb --force=true --dropandcreatetables=true ~/workspace/miniejb/bin I get error me...

How m2eclipse create a new domain by maven-glassfish-plugin?

version is glassfish v3 I want to trying maven-glassfish-plugin but I don't know how to create a new domain . Plz step by step say me,thx. And I want to looking pom.xml,thx ...

Why i create a new domain isn't existed master password

I used maven-glassfish-plugin create a new domain but file isn't existed master-password? Why? Command is glassfish:start-domain. My pom.xml declares the following: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <ver...

Why do I keep getting Converting HEAP to MyISAM on my mysql server

We ve been having some issues with our MySQL server intermittently. It keeps throwing out a lot of these queries concurrently (thus stacking them up in my processlist). We are using a MyISAM db and connection pooling through Glassfish v3 for a Grails Application. db_user myhost:35143 db Query 39 converting HEAP to MyISAM /* mysql-conn...

Set Log Levels in Glassfish v3 (Using SLFJ4)

I am used to using Tomcat/Log4J for my logging. My current project is deployed to Glassfish v3 and I'm finding the logging set up to be painful. Searching has shown me I'm not the only one with frustrations. I was able to get Log4J logging to a separate log file defined in my log4j.properties file. However, I would like to only have ...

How to kill a glassfish server in Windows?

Hi, I tried to start a glassfishv3 server in my windows XP system with the command "asadmin start-domain". The start failed due to a timeout. When I try to start again I get an error saying that the port 4848 is allready in use by another process. When I try to stop the server with "asadmin stop-domain" I get the error that it is not ru...

GlassFishV3 Hibernate library issue

Hi, I am trying to deploy a JAR file in a GlassFishv3 server. This results in the error: com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while preparing the app : java.lang.RuntimeException: java.lang.ClassNotFoundException: org.hibernate.ejb.HibernatePersistence I thought that the class "org.hibernate.ej...

Swing Client authentication on Glassfish

Hi there, I have to authenticate a user in Glassfishv3 application server in a swing client. I can't find instructions on how to do so. Can anyone help me? ...

CDI with ejb 3.1 , weld-logger on glassfish v3.0.1

Scenario: 1) create maven ear project, create war project inside 2) add beans.xml to war project`s WEB-INF/ 3) creat simple @Steateless bean project - http://drp.ly/1j5C3t ejb bean : @Stateless @LocalBean public class TestEjb { @Inject Logger log; public TestEjb() { } @Schedule(hour = "*", minute = "*", secon...

web service with glassfish v3

I am using JSF 2.0, Spring, Hibernate and GlassFish v3 server and I need to make webservice and I am totally new to webservice can anyone suggest what kind of webservice I should go for... ...

Glassfish: How to change the security realm for a WAR-app

I'm building a JEE6-application that runs on Glassfish v3.0.1. It's a web-application with EJBs, deployed as a WAR (EJB 3.1). Currently i'm trying to configure a login by using a JDBC-based security realm. Now i don't know how to configure my WAR-application to not use the default Glassfish Security Realm (file) and instead use my newl...