glassfish

Glassfish v21 - is there a way to customize admin console login page per domain?

I have two to three domains under a single glassfish installation. Is there a known way to customize admin console login page based on the domain I am trying to administrator? (host/port) ...

Automatically deploy mbean to Glassfish from ear

I have an ear file that contains an mBean. Is there someway that when I deploy the ear that I can get Glassfish to recognize the mBean and deploy it as well? ...

How do I change a specific MDB max-pool-size at runtime on Glassfish

I'd like to be able to change the max-pool-size value at runtime. Currently I have to modify the xml and restart Glassfish. Any ideas? ...

Can't create new "enterprise" project in netbeans

I'm running netbeans 6.7.1 on Ubuntu Karmic. On the services tab I added a new glassfish v3 prelude server, I installed it to my home directory using the download button. I started the server and opened localhost:4848 to verify I can get into the admin panel. Then I did file->new projct and created a new java web->web application. On t...

JSF Resource sends 304 not modified afer redeployment

Hi! I use outputStylesheet and outputScript for some resources. But when I've made changes to the development project and want to redeploy in the production environment (upload the WAR to Glassfish admin console) the response code for the resources are 304 (not modified) which means that the browser wont pickup the changes before the c...

Timer Service in ejb 3.1 - schedule calling timeout problem

Hi Guys, I have created simple example with @Singleton, @Schedule and @Timeout annotations to try if they would solve my problem. The scenario is this: EJB calls 'check' function every 5 secconds, and if certain conditions are met it will create single action timer that would invoke some long running process in asynchronous fashion. (it...

how to invoke a webservice from one container in another container in glassfish

I have webservices deployed on two containers in two separate servers A and B. A webMethod in 'Server A' needs to invoke a webmethod in 'Server B'. I have created a client stub for Sever B. Im trying to make 'Server A' use this client stub and talk to Server B. I get an exception while trying to instantiate the port object specifically ...

How to launch Glassfish v3 without backgrounding

Glassfish v3 is launched as follows: ./bin/asadmin start-domain <domain-name> This script eventually runs: exec "$JAVA" -jar "$AS_INSTALL_LIB/admin-cli.jar" "$@" admin-cli.jar eventually launches another process, effectively putting itself into the background. I would like to launch glassfish without putting itself in the backgrou...

Maven Embedded Glassfish Plugin - how to set the temporary directory?

Hi all, I am using the Maven Embedded Glassfish Plugin and it works great, but unfortunately it creates a temporary directory in my main project directory. I would like it to use target so that every time I clean the project, the embedded directory also gets wiped. Is there a setting for that? Walter ...

Which tools to use and how to find file descriptors leaking from Glassfish?

We release new code to production every week and Glassfish hasn't had any problems. This weekend we had to move racks at our hosting provider. There were not any code changes (they just powered off, moved, re-racked and powered on) but we're on a new network infrastructure and suddenly we're leaking file descriptors like a sieve. So I...

Configuring Seam for Glassfish

Hi all, I am still migrating to Glassfish instead of Jetty for our application servers and am running into some problems. The application starts up fine, the database tables are created by hibernate and data is imported by my database importer, so Seam is alive, running and well. It appears that Seam is not properly bound to any JSF l...

Which application server should i choose for my project ?

Hi folks, I am currently developing an application for some researchers in my university.It's a small java program that you can use by command line. The next step is to package that program and deploy it to an application server. Some clients program will submit requests to the server who will call the tool that I wrote. Lately, we will ...

Problem between Glassfish and Spring Security Basic Authentication

Hi! I am enabling a simple HTTP Basic Authentication with Spring security in my project. My environment is an Glassfish Server (bundled with Netbeans), and almost everything works perfect: I have set up it to just ask for authentication with the POST method, with hardcoded users with "user-service", and it works with user names with no s...

Converting WAR to EAR and other Glassfish stories

Hello! I am really new in this so I hopefully don't make any terrible mistake. I apologize before hand if I have. In my project I was using tomcat and deploying WAR files. But now some bosses wants to deploy EAR files. So there we go. I first downloaded Glassfish (don't know if it's the apropiate application server for a newbie like m...

GlassFish Security Realm, Active Directory and Referral

I've setup up a Security Realm in Glassfish to authenticate against an Active Directory server. The configuration of the realm is as follows: Class Name: com.sun.enterprise.security.auth.realm.ldap.LDAPRealm JAAS context: ldapRealm Directory: ldap://172.16.76.10:389/ Base DN: dc=smallbusiness,dc=local search-filter: (&(objectClass=use...

EJB3 JNDI Lookup Failure in JEE application client

I'm trying to access an EJB3 from a JEE client-application, but keep getting nothing but lookup failures. The client application is running within the JEE Application Client Container. My JEE Application 'CoreServer' is exposing a number of beans with remote interfaces. I have no problem accessing them from a Web Application deployed on...

SSL configuration in glassfish

http://weblogs.java.net/blog/kalali/archive/2010/02/27/how-install-godaddy-certificate-your-glassfish-v3 i have followed this article . successfully downloaded certificates from verisign .downloaded trial certificates. now when i try to get using https:// it shows connection not found.. temporarily i have created 192.1.200.104 alias ...

GlassFish Starting Up Java SE Client - No Initial Context Exception

Hi I have developed a java se client that calls some session beans on a glassfish server v3. I connect to the bean remote interface like this. context = new InitialContext(); em = (ICrudService) context.lookup("java:global/BackITServer/CrudServiceImpl"); This works fine from inside eclipse (gf-client on build path). When I export my...

Glassfish V3 SSL configuration CipherSuites may not be null at

I have configured SSL with glassfish V3 i have followed this http://javadude.wordpress.com/2010/04/06/getting-started-with-glassfish-v3-and-ssl/ but now on console i am getting following exception constantly but on front end it works fine. SEVERE: ProtocolChain exception java.lang.IllegalArgumentException: CipherSuites may not be null...

GLassfish SSL Configuration Page Level

How to secure only some of the pages from the whole web application under glassfish V3 ? ...