glassfish

JNDI lookup of EJB 3 inside ear file on glassfish v2

I have sun-ejb-jar.xml <ejb> <ejb-name>TestBean</ejb-name> <ejb-ref> <ejb-ref-name>ejb/TestLocal</ejb-ref-name> <jndi-name>ejb/TestLocal</jndi-name> </ejb-ref> </ejb> </enterprise-beans> and ejb-jar.xml http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"> <ent...

where is " <groupId>org.glassfish.embedded</groupId>" repository here?

I want to use <groupId>org.glassfish.embedded</groupId> in my dependencies. What repository should I use? ...

Sun Java repository isn't exist Resource nexus-maven-repository-index.properties

I use maven-embedded-glassfish-plugin but repository show the message: Unable to update index for maven2-repository.dev.java.net|http://download.java.net/maven/glassfish/: Resource nexus-maven-repository-index.properties does not exist is bug?or this properties dose not exist? ...

Glassfish JAAS active directory

I'm attempting to use JAAS in Glassfish to handle authentication and authorization in my web applications against Active Directory. First off I have written some POJO programs that can successfully connect to my AD and authenticate against the users and groups I have setup. So I am confident that the usernames, passwords, and groups I'm ...

I follow this maven-glassfish-plugin example but error message,why?

Yesterday,I read the glassfish embed example this address is: http://weblogs.java.net/blog/arungupta/archive/2008/11/totd_56_simple.html but I running the command glassfish:run had a error message No plugin found for prefix 'glassfish' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] availab...

Getting GlassFish Adapter to Work in Eclipse 3.6 (Helios)

I recently downloaded the JEE+BIRT package of Eclipse 3.6 (Helios) for 32-bit Windows (Windows Vista, I know...) to give it a whirl. I am using this alongside the J2EE package of the JDK Sun provides, which of course includes GlassFish v3. This is a clean installation with the old .eclipse configuration directory and Eclipse workspace fo...

Glassfish admin console won't load

I am trying to load the Glassfish V3 admin console but I can't get beyond the log in screen. The credentials I am using are valid but it never makes it to the main admin screen. Glassfish is installed on a server without an internet connection which I think may be the issue. On my local machine I have no issues at all. I think the admi...

Can't get jsps to isntantiate java classes in glassfish

I'm trying to a simple thing: instantiate a normal Java Object from a JSP deployed in the default domain on GlassFish. GlassFish can never seem to find the class so I keep getting NoClassDefFoundErrors. The JSP is found, but not the classes. I have put copies of the package directory containing the class everywhere, in almost every di...

JavaEE6+REST: How do I get all REST resources at runtime?

Hello, everyone! Is there a possibility to get a list of all registered REST resources at runtime? With REST resources I mean: either classes which have annotations such as @Path(...) and are considered by the server at runtime (so traversing all classes using reflection would not do), or URIs of all paths (REST class can have mult...

Maven Cargo configuring a Glassfish 2.1 instance to run integration-tests?

I was wondering whether it is possible to use Maven2 to automatically configure a Glassfish 2.1 with JNDI Resources, Datasources and Mail-Sessions for my integration tests. Also I wonder whether it is possible to create some sort of benchmarks that might then be tracked using continuum or Hudson. ...

Glassfish as an OSGi Container

I'm evaluating OSGi containers and the subject came up of using Glassfish to contain my OSGi application components. My question is: Is Glassfish good for this? Does anybody have any experience using it in this way? Background: - The application is not a Java EE application, it's a Spring application. - I've been evaluating Felix + Tom...

Glassfish v3 and XPath.compile error

We are migrating fairly new web application from tomcat to glassfish and everything is working well except for some xpath code that is used to parse some xml returned from a third party service. The code works wonderful in tomcat but not in glassfish for some reason. Here is a snippet that throws an null pointer exception: XPathExpress...

Glassfish Error when deploying working GF 2.1 to Glassfish 3 and switching to maven at the same time - Killing me!

Everything builds just fine in Maven and Ant, but will only deploy when building with Ant. It is an EJB jar I am deploying that is @Stateless and has @WebService tags as well [#|2010-06-30T19:23:29.045-0500|SEVERE|glassfishv3.0|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=62;_ThreadName=Thread-1;|Exception while ...

How can I set environment variables in glassfish for a specific application (or domain)

Okay here is my setup: Running JRUBY (and a JRuby on Rails application) on a glassfish server (not gem!!!). Jruby has been installed via RVM (http://rvm.beginrescueend.com/). The RoR application has it's own gemset. (managed by rvm) Now my problem is, that I don't know how to tell glassfish to use a different GEM_HOME and GEM_PATH env...

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

GlassFish 2.1.1 - TopLink (JPA1) Persistence Exception 7106 - String Encryption Mistery...

I'm using NetBeans 6.8 and Glassfish Enterprise Server 2.1.1 ((v2.1 Patch06)(9.1_02 Patch12)) (build b31g-fcs). I created a servlet and used Netbeans code generation features to imlement persistence using TopLink (JPA1). When I try to create an Entity Manager with the following code: EntityManagerFactory entityManagerFactory=Persiste...

EJB 3.1 in war package in WEB-INF/classes - javax.ejb.CreateException: Could not create stateless EJB

I think, I misunderstood rules of packaging ejb beans in war package. Goal: I want to use ejb beans in war package. Scenario: I have some bean in my war: @Stateless public class RegistrationServiceBean { @PersistenceContext(unitName = "Utopia") EntityManager em; public RegistrationServiceBean() {} @Schedule(hour = "...

CDI not working in ear deployed to glassfish v3.0.1

I have some problem with using weld logger injection. Scenario: I have ear with ejb-jar inside. This is my ejb bean: @Stateless @LocalBean public class PartnersService { @Inject Logger log; @PersistenceContext(unitName = "Utopia") EntityManager em; public PartnersService() { } public OasysPartnerEntity g...

Can't connect to cassandra : NodeContext killing all pooled connections for session

When I try to connect to cassandra within my java application I receive the exception at the end of this message. I am using pelops library to access database. Database is working on linux and my development environment is on windos 7. Intresting line is WARNING: 10.0.0.7 NodeContext killing all pooled connections for session 44 10.0....