glassfish-3

how to create empty jar file that references other jars in classpath

HI, I have a large number of jars that my j2ee app depends on, so I want to create a single jar file with manifest attribute referencing those jar files in classpath. Then I will place this file in glassfish lib dir so that jars mentioned become in classpath for application. the only problem is I dont know how to create this single ja...

how can i test an EJB using netbeans?

I have been struggling trying to test a super simple EJB project in netbeans. i have tried several examples form my java book, and an even simpler example i found online (http://javadude.wordpress.com/2010/02/22/tutorial-most-simple-test-application-for-embedded-glassfish-netbeans-hudson/). this is a super basic EJB that only just adds...

Performance in JavaEE 6 Applications (Glassfish v3) - Logging, DI, Database-Operations, EJBs, Managed Beans

The important technologies i use are: Glassfish v3, JSF 2.0, JPA 2.0, EclipseLink 2.0.2, log4j 1.2.16, commons-logging 1.1.1. My problem is that some parts of the application are pretty slow. I analysed this with the netbeans 6.8 Profiling capabilities. I. Logging - i use log4j and apache commons logging to generate logs in a logging ...

Can't redeploy .WAR that uses Axis in Glassfish 3

I have a J2EE web application that instantiates an Apache Axis SOAP client proxy as a Spring bean. When I deploy the application into a Glassfish 3 server for the first time, it succeeds. However, if I undeploy and redeploy the application, I get the following error (at the bottom of the Spring stacktrace): Instantiation of bean failed...

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

how to not throw exceptions to server.log in java

In my application I am using log4j and have a my_system.log where all the messages should be thrown. Problem I have is that when an error happens it is also showing up in server.log (I don't want this to happen). public String getAccessFlag (String userId, String participantCode, String roleId) { HashMap parmMap = new HashMap(); ...

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

Learning resource for Configuring Hibernate JPA 2.0 on Glassfish server

Hi guys, I am trying to create a new JEE project using hibernate and JPA 2.0 on the glass fish server.Can you guys provide me some resources to configure the above so that they work seemlessly. I have tried using netbeans and generated the persistence unit by using the hibernate provider,but i end up getting this error javax.persi...

Hibernate returning no results show this error INFO: Not binding factory to JNDI, no JNDI name configured

I am using JPA with hibernate and trying to connect to the a datasource to retrive information but when i run the application i get no error as such but no results are displayed when i run the following code.The question arose from a previous post located here when I was setting up the environment to do some testing of JPA with hibernate...

Configure Glassfish v3 Client-Auth Requested to want

I'm using GlassFish v3 (build 74.2) with client certificate authentication. I'd like to make the certificate authentication optional (want, not need). It seems this is possible based on this blog post, but I can't get it to work. http://blogs.sun.com/kalpana/entry/client_auth_requested_in_glassfish I've tried adding a system property,...

Best way to deploy on Glassfish V3

What is the best way to deploy my web project (or ear project) to remote server and glassfish? How to use ant-deploy.xml and build-impl.xml that netbeans create for this purpose? Using autodeploy folder and separately adding sun-resources.xml to the GF Or Using ant and.... Would you please explain me step by step? Regards ...

java web service client instance problem on glassfish v3

Hi, I have deployed web app containing web service on glassfish v3, generated client classes with wsimport, and Im using client in the same web app. I get the fallowing problem when I want to create an instance of ws client in servlet: javax.xml.ws.WebServiceException: Method daLiOpPostoji is exposed as WebMethod, but there is no corre...

setInterval jsf2.0 glassfish v3 and memory Leaks

Hi, guys i'm new and i'm not english. I have a problem with using js setInterval that simulate a user click, every X seconds, on submit button. In the page there is only one h:form and h:commandButton. I use a profiler and i see that the java.util.HashMap increase continuosly it's size. After some hours the used heap size is growed a lot...

How to change default error page(status 404 - not found) in GlassFish 3.0.1 Community Edition?

Thanks in advance! ...

How to set a default war in GlassFish 3.0.1 Community Edition?

Now I have several wars and each runs when typing in browser localhost:8080/app1 or localhost:8080/app2 etc. When I type http://localhost:8080, appears only the default page. I want to make app1 as default app, i.e. it must appear when typing localhost:8080 and others apps as secondary i.e. they must appear when typing localhost:8080...

EE 6 (GlassFish): how many containers? How many singletons?

Ok, still trying to understand the basic EE 6 concepts here. I'm hoping someone here can help me out. I'm running GlassFish v3 server Kukla with a single domain. I deploy MyEEApp.ear, which contain MyEEWebApp.war, MyEJBs.jar, and, MyUtilityLibrary.jar. My EJB jar contains a @Singleton bean called MySingleton. I then set up another serv...

problem deplotying ejb on glassfish 3

Hi. I have problem with my ejb and glassfish. When i want to deploy ejb project on glassfish, it can't. I use netbeans 6.9 (glassfish server 3 and java EE 6). mesasage in ejbmodule output: dist-directory-deploy: pre-run-deploy: In-place deployment at C:\Users\Darjan\Documents\NetBeansProjects\EJBModule4\build\classes Initializing... de...

Best way to run a command-line application that uses code running in an EE 6 environment? (GlassFish v3, MyEclipse 8.6)

Ok, back for another complicated question, I'm afraid. Please be patient: this is a lot of new stuff for me. Back in the dark ages, we were running a Frankenstein of an application on WebLogic. When we decided to move things to GlassFish v3, we all agreed that the time was nigh to do things the "right" way, from an EE 6 perspective. To...

Java Error java.io.IOException: Unable to establish loopback connection GlassFish server start

Hi i have new problem, at first, i was did one stupid thing, remove and install new Internet Security . And i know firewall to not allow start Glassfish Server. But i dont know how to solved this problem, i was check hosts file it ok, and ping localhost and 127.0.0.1 it return well. But when i start GlassFish server 3 in Netbeans it occu...

How to mange dependencies for a Glassfish JavaEE client application?

JBoss has the jbossall-client.jar which can be used in client applications for JNDI lookups and more... It is available in the JBoss maven repository. How should one do it when using Glassfish 3 in a dependency managed environment? The FAQ says in step 3 that one should refer directly to gf-client.jar in the installation directoy of gl...