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 (...
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 {...
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)...
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?
...
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...
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 ...
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...
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> ...
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.
...
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...
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
...
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...
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...
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 ...
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...
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...
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?
...
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...
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...
...
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...