glassfish

Glassfish Tomcat

What is Glassfish and Tomcat for? I have sourced it and it says GlassFish is an open source application server project led by Sun Microsystems for the Java EE platform but I don't really understand. help anyone? ...

Java Hosting options in the market

What are the best Java hosting you know working with appservers like glassfish, geronimo or jboss.. I've developed an application in glassfish, now its time to take that app online... Based on your experience what hosting sellers/managers can you recommend? ...

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

How can I bind a DataSource to an InitialContext for JUnit testing?

I'm trying to run JUnit tests on database "worker" classes that do a jndi lookup on an InitialContext to get a DataSource. The worker classes are usually running on a Glassfish v3 App Server which has the appropriate jdbc resources defined. The code runs just fine when deployed on the App Server but doesn't run from the JUnit testing en...

using log4j with hibernate and glassfish 3.0.1

I'm trying to setup hibernate 3.5.3 with JPA on glassfish 3.0.1; I'm using a netbeans 6.9.1 enterprise project; I added all the required hibernate files and everything is fine except logging... I added to the project classpath like the docs say the following (only the log related jars listed): -slf4j-api-1.5.8.jar -slf4j-log4j12-1.5....

Cannot access the web server error on Glassfish v3

Hello, I have developed a web application in Eclipse 3.6 on GlassFish v3 and i am trying to add a FlexProject to it. I have deployed Dlazeds on Glassfish and i followed this tutorial to create a flex project : http://sujitreddyg.wordpress.com/2009/04/07/setting-up-blazeds/ I changed the web.xml file to match the schema but when i try...

Optimizing inter service calls with Metro JAX-WS

We are working on a SOA Project. The different modules are built as web services on the jax-ws metro glassfish stack. The tables related to a module are owned by the web service for that module and all other services requiring the data from that table need to get it by calling the web service (instead of direct database call-that is the ...

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

Error after adding Richfaces

I am running a webapp on a glassfish v3 server. I've just added richfaces to my application, but I get an error when i try running my project: INFO: Initializing Mojarra 2.0.2 (FCS b10) for context '/WMC' INFO: Unsanitized stacktrace from failed start... java.lang.RuntimeException: WEB9033: Unable to load class with name [org.ajax4jsf.t...

Glassfish v2, How Many Active Sessions?

How can I tell how many open sessions there are on a Glassfish v2 server? Is there something in the admin tool? Thanks ...

Web application performance and deployment architecture (java)

I have two questions regarding Java web application deployment and its impact on performance. We have an application deployed on serverA, with JSPs exploded in to one content directory (that means JSPs are not part of the WAR) question 1: What I knew was this was an approach for development rather than any other environments. Does this e...

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

"Unable to convert ejbRef for ejb" on CDI (Weld) injection of @Stateless EJB into @SessionScoped JSF2 bean in Glassfish

[UPDATE: After discussion on the Glassfish forums/ML at http://forums.java.net/jive/thread.jspa?messageID=480532 a bug was filed against Glassfish https://glassfish.dev.java.net/issues/show_bug.cgi?id=13040 for this issue.] I'm trying to inject a local no-interface view of a @Stateless EJB into a JSF2 @Named @javax.enterprise.context.Se...

How to control glassfish module startup order

I have several web modules. There are dependency between them, say during startup, module B will use MBean exposed by module A. How to configure glassfish to enable it start them by specific order? Or is it possible to configure it to load them concurrently. I searched quite a lot via google, but not result. BTW, I'm using glassfish-2 ...

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

Using Hibernate inside a Glassfish 3 web service

I've got a Java application that uses Hibernate for persistence. Now I'm trying to expose part of this app as a web service deployed to Glassfish 3.0.1. The code that implements the service is in a JAR file that is deployed along with the WAR file into Glassfish. The service code in the WAR has no problem accessing the classes that us...

IIOP Client Authentication and ProgrammaticLogin in Glassfish v3

Hi all In Glassfish v2 I secure my jndi lookups by enabling the "IIOP Client Authentication" checkbox in the admin console under the ORB node. In my standalone client I then perform a "ProgrammaticLogin", which then allows me to do jndi lookups. In Glassfish v3 however, I get this error if want to do any jndi lookups in the same setup...

Download Glassfish Adapter plugin separately

Dear all, Is it possible to download Glass-fish adapter plug-in for eclipse(Helios) separately not with 'Install New Software feature in eclipse'? Because I want to archive this plug-in and use it on another eclipse instances. Regards ...

Is there a Maven plugin to package Entity beans in J2EE app?

I haven't found a Maven plugin or target that will package my app and deploy it to Glassfish without error. I get this exception: [ERROR] com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while preparing the app : java.lang.RuntimeException: Could not resolve a persistence unit corresponding to the persistence...