glassfish-3

Retry login with form based container managed security

I've got a web application, deployed on GlassFish 3.0.1, which is using container managed security. It's a simple, standard form based implementation using j_security_check against a JDBCRealm. Everything to do with securing the application is fine (and I can't believe I've rolled my own security systems in the past). What I can't seem ...

Glassfish 3: Why do I have to deploy all my libraries into domains/lib/ to get it to work?

hey Guys: I just got handed over a project from another group. EJB session bean / web service. It deployed without any issue on JavaCAPS 6. However, on Oralce Glassfish V3 (3.0.1 Build 22), when I deployed the jar file (Applicaton / EJB Module), it kept complaining certain external libraries (which is included in the jar), can not be...

How can I access local files from a RESTFul web service

Hi. I try to access a local file from a RESTFul service. Is there any way to get the real path of the running service ? (as we can do in a servlet) Server : glassfish 3.0.1 IDE : Eclipse Helios Thx ...

after migration from Resin to Glassfish v3.0.1 application periodically hangs and show empty page in browser

Hello people, I faced with problem during migration web-application from Resin to GlassFish v3.0.1. Already during regression tests (with Selenium) it start to hangs. Browser shows empty page with no sources - and no meta, no head no body (Firefox, and IE). I thought it is problem of Selenium. But problem was reproduced manually and al...

What is a good way to handle slf4j logging in a web app deployed in Glassfish 3.0.1?

I have a quite ordinary web application which logs with slf4j, which is fine, and I have used several slf4j backends without any problems. Under Tomcat I just told logback to point at a location in the filesystem and log there, but now I want to deploy several independent instances of this application each in its own domain in a single ...

Integrating LDAP with Glassfish and FTP

Hello, I'm currently faced with the task of integrating a glassfish environment and an FTP-Server with LDAP. This is work for an university, we need to be able to have a number of students(which all have Login-Data via LDAP, though access is only permitted via SSL) run their own applications on a glassfish server, upload them and then r...

Add Security Role References programmatically (without using declarative EJB Deployment Descriptor)

I'm developing a Java EE 6 application using Glassfish 3.1, B06. To secure my app, i'm using a JDBCRealm and programmatic security. This works fine to check username and password. But when it comes to declaring security roles, i have a problem: To use Security Roles in Java EE 6, i have to declare those roles both in the EJB deployment ...

GlassFish v3 cargo-maven2-plugin

I see that supports GlassFish v3, but the online examples is sparse. I continue to get the same error back from cargo: Cannot find the GlassFish admin CLI JAR: admin-cli.jar Here is my pom <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.3</version> <configuration...

TimerPool error deploying app on Glassfish

Trying to get my webapp to deploy to glassfish v3 and I am getting an odd error. If I startup the container, and ping the TimerPool through the Admin Interface, all is fine. If I deploy either from Netbeans directly, or through the admin interface before I ping the timerPool, I get the following error: Caused by: Exception [EclipseLin...

Publishing messages to a JMS server on another machine ....

Hi, I need to publish messages to a topic on a JMS server running on a different machine. The server on the remote machine is Glassfish v3 (OpenMQ). From reading other posts here, I think I need to tell the remote broker to accept JMS messages from a different IP than his own i.e not localhost. Actually, I'd like that remote broker to a...

Glassfish v3 + NetBeans + Simple Authentication Simulator : Why do I get an exception related to serialization?

Greetings, fellow StackOverFlow members. I have just begun to learn how to program web-enabled applications using technologies such as Java Enterprise Beans and Java Persistence API. The official NetBeans website currently offers a bundle that (supposedly) allows me to develop said applications. A bundle that has an approximate size of ...

Java EE 6 - Embedded container EJB tests

This questiong is regarding Java EE 6, using glassfish v3 embedded-all. I have a unit test that uses EJBContainer to test my stateless EJB. Problem is I'm having trouble looking up the EJB (remote) using JNDI: setup() { ctx = EJBContainer.createEJBContainer().getContext(); } ... test() { BookService bookService = (BookService)ct...

How can I print the full stack trace with GlassFish?

I have a GlassFish web application which throws errors (listed below) to the webbrowser. But my problem is that I can't see the full stack trace. I think I have to know what the real problem is. How can I change the length of the stack trace? javax.ejb.EJBException at com.sun.ejb.containers.BaseContainer.processSystemException(BaseCont...

jRuby Glassfish v3 dispatcher error

hi all. i have ubuntu 8.10, running glassfish v3 (not prelude). first deployment of any jruby on a glassfish v3 SERVER (not the gem). i have deployed the app using the 'choose folder' method, rather than the asadmin deploy method, though i have also tried that. i get the following error message: #|2010-10-18T16:48:01.643+1100|SEVERE...

Debugging Maven Web Application on already installed Glassfish using eclipse

Hello, My problem is with respect to debugging web application on an already installed glassfish using eclipse. If I create a web project using eclipse then eclipse will let be deploy and debug application on an already installed glassfish application server. However, if I have created a web project using maven archetype, eclipse does ...

What's the best way to mix Spring MVC and CDI/JEE6?

I'm not a fan of JSF. Spring MVC makes a lot of sense to me and I've used it in the past. Can you talk me out of it or provide tips for integrating it nicely into JEE6 and share and gotchas with CDI. I don't mind having an application context just for the MVC stuff but if I use @Inject or @EJB in my MVC controllers, what's going to go ...

JWS & Secure Database Connections using Glassfish V3

I need to distribute my Swing application using JWS. I use JPA and connect to both Postgres and MSSQL. How do I ensure secure database connections? Can I use JDBC Connection Pooling configured in Glassfish? If so, how do I configure my app to use it? Best Regards. ...

CDI (Weld) / Seam 3 Persistence module / Glassfish 3 - Unexplainable exception when starting server

Ok, so I've come upon an exception that is starting to frustrate me. Let me set the scene. I am using Weld, Jboss' implementation of CDI. JPA/Hibernate for persistence. For something different I am giving it a crack on Glassfish 3 which I have not used before. I am using Maven for dependency management. Anyway, as CDI doesn't have ...

Glassfish JSF 2.0 charset problem

Hi! I'm working on a project developed with JSF 2.0 (Mojarra 2.0.3) front end and deployed on Glassfish v.3.0.1 server. Application must accept ISO-8859-2 charset and write data to MySql database. To problem is that data is not in right charset. The request Http header has attribute value: content-type: application/x-www-form-urlenco...

Deploying GWT app to Glassfish 3.0

Hello, I'm having some troubles figuring out if its possible to run a GWT Application inside a Glassfish Application Server 3.0. I was already able to run it using Tomcat, but that seemed more natural and more easy to do. Can you point out a place where I can learn how to deploy my app to glassfish? I'm currently using GWT Plugin wi...