glassfish

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

GlassFish, CDI and Constructor Injection

Is constructor injection supported in GlassFish 3.1's implementation of CDI for managed beans? I have a @Singleton EJB into which I want to inject another managed bean (contained in the same EJB module) using constructor injection. Field injection does work. But with constructor injection I get a NullPointerException from AbstractSinglet...

Spring alternative to TimerService in EJB 3

We're using EJB TimerService:s for controlling tasks that needs to be executed on demand or triggered via a cron expression some will run every night e.g. statistic collectors and some will run every 10s e.g. checking for new orders needed to be processed we must also be able to turn them on and off. It works fine most of the time but so...

Logging application (a struts + ejb3 web application) specific logs to my own log file while server (Glassfish) specific logs to server.log

Hi, I am working on an enterprize application that is developed on Struts1.3 + EJB3.0 + Glassfish2.1.1. The requirement is to route my application logs to a file that I have defined and all server specific logs should go to glassfish's default logger i.e. server.log. I'm using log4j-1.2.15.jar and log4j.properties. The content of this...

JPA Glassfish Database Update Issue

Hi, I have an application deployed on Glassfish v3.0.1 which reads events from a table in my database. Once ready it marks them as processed. I am getting a strange error I can't explain when trying to call the method which does the update. @Override @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) public void markEventAsPr...

Can I have a singleton lifecycle webservice on glassfish V3?

Hi, I have a simple webservice created with Netbeans 6.5 and deployed into 2 glassfish servers V2.1 and V3. The ws has a basic method GetInstanceID that I call 3 times from a client. @WebService() public class FirstWS { private long m_instanceID = 0; //instance id //Log private void WriteLog(String cadena){ String msg = ""; ...

Netbeans 6.9.1 & Glassfish 2.1 Jax-Ws wsdl generation

Hi I am using netbeans 6.9.1 with Glassfish 2.1 locally installed. I have Maven Web project which has one web service with it. When I compile and run the application everything goes well. I can access the web service page but when I try open the web service wsdl url I get HTTP Status 404, resource not available... I tried to generate ...

Does Java EE security model support ACL?

I used Java EE 6 with Glassfish v3.0.1, and I wonder if Java EE security model support ACL, and if so how fine-grained is it get? EDITED I implement Security using jdbc realm via glassfish v3, that the realm at runtime look into table USER inside the database to check for authentication, by looking at the password field and authorizatio...

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

Is there a way to integrate CommonJ WorkManager with Glassfish

Is there a way to integrate CommonJ WorkManager with Glassfish ...

64Bit Edition for Netbeans and Glassfish

Why Netbeans or Glassfish doesn't have 64bit Edition Version to improve performance? Of course these both applications use JDK 64bit but why there is no any 64bit edition for improving their internal processing? I think eclipse published in both 32 and 64 bit, isn't? Regards ...

Sun Java System App Server on Netbeans 6.9.1

In adding a server on Netbeans 6.9.1 when SJSAPS 8.2 is chosen I receive an error. Something to do with the location. Can I use SJSAPS in Netbeans 6.9.1? Or have to use Java EE 5 which comes with Glassfish v2. 6.9.1 also has a choice for Glassfish v2.x but I get the same error. Reading Sun's tutorial on "Servlet Technology." See lin...

Hide 8080 on url and redirect traffic from 80 to 8080

Hello, I got a question about Tomcat + Glassfish configuration. I got 2 enterprise application running on the same machine and with JKMount i have managed to redirect traffic from 8081 to one of them and 8082 to another, but now I also need to deploy WebService. I have deployed WebService and the URL where it is accesible is http://loca...

Autodeploy in Glassfish V3 and JNDI in sun-resources.xml problem

When I want to deploy my war in glassfish v3 (Hot deploy / autodeploy) an error raised. Because of I am using database resource in my project. It's JNDI is stored in the sun-resources.xml file so when I drag & drop the war to autodeploy I take the Error. But when I use of Netbeans deploy ant script all things happens properly. My que...

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

Glassfish vhost to serve only static contents. Disable session how to?

Hello all, I have a folder in the server, that contains all the images, static files, and more its the storage of my application, I need to serve this files on a http://host:8080/storage/** context. At this moment I mount a symlink on the root of the application on the application statup called "storage", I'm trying to setup a virtualho...

Access to remote EJB running in another Glassfish(EJB-Container) from another Glassfish(Web-Container)

Dear all, I want to use two separate servers, one for web-container and one for ejb-container. The both of these two containers are Glassfish V3. But, How to use @EJB annotation in my web project to access to remote ejb-container's ejb(s). In Ejb 2.0 we have to use ejb-descriptors but what happened in Ejb3.0 and glassfish v3? thanks ...

Exception in Form authentication with Glassfish v3

I have seen this question posted many places but there seems not to be a solution for it. Therefore, I test my luck trying it here. I am using Glassfish 3.0.1 b.22 with Java EE 6 framework. Here is my form authentication inside Login.jsf <form action="j_security_check"> <h:panelGrid columns="2" bgcolor="#eff5fa" cellspacing=...

Thin(ner) standalone client for Enterprise Application

First a little background: I'm working on an enterprise application (ear) with an EJB module & an Application Client module. I also use hibernate JPA for persistence, and swingx for GUI. Those are the only third parties atm. This application is deployed on Glassfish. Everything was going well until I deployed my application for the fir...