glassfish-3

UrlRewriteFilter with Glassfish

How do i integrate my glassfish v3 server with urlrewrite?Detailed step by step process would be appreciated. The reason why i want to know this is that i am deploying a php application into my glassfish server using Quercus. But Quercus relies on mod_rewrite in the Apache Server to provide URL rewrites and this is not available in gla...

File uploading issue on glassfish server

Hi, I have written a small ruby application to upload file using multipart-form. This works fine on webrick server and glassfish gem. But deploying this application on glassfish v2.1.1 works only for small files upto 50kb and will show error page for larger files. Anybody could please help me to sort out this issue. thanks Vicky ...

Parameterizing EAR

I would like to set some read-only parameters (eg. an RMI registry host and port) to a Java EE application deployed on a Glassfish server. The usual place to do this would be the deployment descriptor, but my problem is that it is packaged in the EAR, so I cannot edit it without changing the EAR. I need something similar to setting JDBC...

"Web Services" Node is absent in GlassFish Server Open Source Edition 3.0.1

I can't see the "Web Services" Node (Menu Item in the Tree-like menu that GF admin console has on its left side) in glassfish's admin console. Is there a way to enable it in glassfish? Should I download any upgrades for glassfish to enable it? ...

What is the correct maven2 phase for deployment into application server?

I'm trying to configure pom.xml so that it automatically deploys EAR archive to GlassFish application server. I want to attach this operation to the proper maven execution phase. But can't understand which one is dedicated just for this operation? Deploy? Install? Please, help. This is what I'm doing: <plugin> <artifactId>maven-antr...

Java EE 6 with GlassFish v3 and MyEclipse 8.5: Best Way to Structure Projects?

Hi all, long time listener, first time caller here. We are in the process of moving from BEA WebLogic 10 to GlassFish v3. We have successfully moved a massive project to GlassFish, and everything's working, but now we're planning for the future. Specifically, we are using MyEclipse 8.5 with a single Enterprise Application project (DCMH...

JavaEE Security,Access restricted pages: Logged out user is redirected correctly. Logged in user is not.

My app is a Java EE 6 application, running on Glassfish 3.0.1. I'm using Java EE Security, with a JDBC Realm. So i added restrictions to some of my web pages. I added the following login-config and security-constraint to my web.xml: <!-- Redirect access of restricted pages to index.jsp --> <login-config> <auth-method>FORM</auth-meth...

Enable cache of J2EE web application's resources

How can I control my web application's resource handling? I have users with extremely high latency times (~1s!) and I must test my application in such environments. What I can see right away is that my resources (css and image files) are always reloaded on every page, probably because the response header contains an Expire tag that does...

which server I should go for JBoss or GlassFish

I am project I will be using following tech. JSF 2.0, Hibernate, Spring, jBPM, JAX-WS so I am confused between chosing server and I am locked between JBoss and GlassFish please suggest me why I should use the one. I will be using Netbeans 6.8 ...

When do you need to use separate domains in Glassfish?

If you want to host multiple, fairly independent applications on a Glassfish server, do you need separate domains? In particular: Can applications in the same domain interfere with each other in some way? Can different apps in the same domain listen on different IP addresses/ports? If so, when/why would you actually use a separate do...

Setting Glassfish http headers of cacheable resources

I couldn't find a way to control how Glassfish (v3) handles HTTP(s) headers it sends whenever I request a resource (image, css...). The problem is that inside a security-enabled web application it forces a 0 expiry date for everything (even images and css), which makes the whole application feel like a slow and buggy piece of junk by for...

Looking up an EJB dynamically

I'm developing an application on Glassfish 3. I have an EJB that looks like this: @LocalBean @Stateless public class MyBean { public void doSomething() {} } My client code (running inside the same application) looks like this: MyBean mb = (MyBean) InitialContext.doLookup(MyBean.class.getName()); According to a few sources, this s...

Table naming convention for configuring a jdbcRealm in GlassFish

Hello, I am trying to configure a jdbcRealm in GlassFishV3 using existing tables that have a naming convention other than "users" and "groups"; the realm does not appear to work unless the tables are named this way. My question is, why the limitation? Is there a work around other than renaming my existing tables? Thanks, RG ...

Slow JPA startup

I created the JPA 2.0 entity classes for our whole database (~200 tables), and now each time I rebuild my application and start it for the first time I get these messages: INFO: <entity_classname> actually got transformed INFO: <entity_otherclassname> actually got transformed ... And the output of these (info) messages in Glassfish is...

Application Client Traffic Overhead in GlassFish v3

I have an EAR application with Application Client module. When this EAR file is deployed on GlassFish v2 and Application Client module is present in the cache, amount of the traffic between the client machine and the server during Application Client launch is approx. 0.7KB. But when I deploy this application on GlassFish v3 and launch ...

JPA PersistenceUnitPostProcessor not being executed on GlassFish

The Spring configuration I am using contains the definition of a persistenceUnitPostProcessor within my entityManagerFactory bean. When I run a JUnit test (i.e. outside of the container) the post processor is being invoked, yet when it participates as part of a deployed web app (running in Glassfish v3) the post processor is not being ...

Automatically start JavaDB (Derby) on GlassFish

I am planning to deploy GlassFish v3 open source edition to a production environment. It comes with JavaDB (Apache Derby) which is just want I need. The only problem is that JavaDB is not started by default when GlassFish starts. I would have to go to the command line and enter: asadmin start-database Is there away to make the datab...

glassfish v3 classpath settings

Hi, I'm developing j2ee app on glassfish v3 which will remotely call EJB deployed on jboss 5 app server. For this to work, my app has to have jboss client jars in class path. I managed to do this by packaging client jar files with my application, but this expends size by aprox 10mb, thus uploading app becomes an issue. How can I put th...

Configure Glassfish v3 with pac file?

Hi, I have web service client deployed on Glassfish v3. It needs to access a server that requires proxy access. I have a pac file (proxy auto config) but I don't if/how I can use this to configure my Glassfish instance so the my client can access the service. If it's not doable, is there another way to set up access to a proxied serv...

glassfish v3 remote jboss EJB client

Hi ladies and gents, I have some interesting issue regarding calling EJB 3 stateless deployed on Jboss 5 from Glassfish v3. I managed to do this successfully on glassfish 2.1 and jboss 5, by packing Jboss client jars with my app, but now when I do the same thing on gf3 I get ClassNotFoundException for many of jboss classes (other then ...