glassfish

How do you share Java Caching System (JCS) resource across multiple EJB

I am using JCS to store the ldap search results which should be shared by multiple EJB. I have created a singleton class to initialize JCS only once but due to EJB's classloader, it's been initialized multiple times with its own copy. so search resources are not shared. How are you guys resolving issue where you need to share the cache ...

Weird java.io.IOException: Server returned HTTP response code: 503 for URL

I am writing a servlet jsp under Glassfish to download a file from a website, do some processing and display the result in webpage. When I deploy the servlet, it gave me: java.io.IOException: Server returned HTTP response code: 503 for URL: www.websitename.com error. I check the status code 503 out and it turns out to be a server ove...

how do I speed up netbeans' localhost?

I've just switched from radrails to netbeans. So far, so good. But I have noticed that radrails used to serve up pages a lot faster on localhost. I've left the server on glassfish, what can I do to make it run faster I'm on windows xp ...

JMS client does not receive messages

I am using Glassfish JMS. I am able to add messages to a queue. I can see the messages using the QueueBrowser object. However the MessageConsumer (nor the QueueReceiver) cannot receice any message and return null. Message expiration is set to 0 and I remember to open the connection. Any ideas? Here is the code: Session session ...

Help getting JSTL to run within tomcat and eclipse

I've been trying to get this to run, but I can't. I'm using Eclipse Galileo, Tomcat 5.5.23 and have several JSTLs around. My latest try was to use the glassfish jar file "jstl-impl-1.2.jar". I placed it in tomcat's shared lib, added it as external jar into my eclipe project and exported it. Could anybody tell me, which jars to load in ...

Netbeans and Glassfish performance

I was wondering if anyone had any performance options that might work for me. I am using Netbeans 6.1 and Glassfish V2 on my work laptop and the memory requirements are getting a little tiresome. I have 3 gb of ram and I frequently have to kill everything and restart it due to PermGen Space errors. I've played with the mem sizes as well...

How to reference file resource in a JSF Application

Hey there, I want to dynamically reference an XSD from a bean, how is this possible? I already added the XSD to the project, so it's located somewhere in the GlassFish domain. Any thoughts will be appreciated! Daniel Szalay ...

Where exactly is the JTA Transaction demarcation for CMT respected?

I'm trying to fully understand the JTA demarcation with CMT. The behavior I am experiencing is that only the first @TransactionAttribute of the method is respected on the EJB and subsequent method invocations of the same bean with different @TransactionAttribute annotations are not. Example: @Stateless @TransactionAttribute(Transact...

Setting a parameter as a list for an IN expression

Whenever I try to set a list as a parameter for use in an IN expression I get an Illegal argument exception. Various posts on the internet seem to indicate that this is possible, but it's certainly not working for me. I'm using Glassfish V2.1 with Toplink. Has anyone else been able to get this to work, if so how? here's some example ...

Glassfish v3 Mac

I have trouble launching Glassfish v3 on Mac In Windows, after installation of Glassfish v3 Shortcuts for Starting and Stopping server are added to Start Menu In Mac how do I start the server? I tried executing ./asadmin start-domain domain1 but it gives me an error for missing .xml files Any sort of help is appreciated, Thank you ...

How to use lazy property loading with glassfish + toplink essentials

I have a query: select p from Product p Which gives me the results I expect, but one of the columns (let's call it massiveDescription) is big, and since I'm querying the full list of products I want to exclude it. I added @Basic(fetch=FetchType.LAZY) to getMassiveDescription() but this made no difference (the generated sql still incl...

EJB Authentication and Authorization

Is there any way to extend the authentication operation which connects a client application to an EJB, using standard JAAS/container-based security? I'm looking for a way to use more than just a username to authenticate the user (in this case a domain name is also needed). Ideally I'd like to be able to use the SessionContext.getCallerPr...

jndi.properties in JBoss and GlassFish deployment

Currently an EJB / Web Application project uses a JBoss-specific JNDI configuration file, placed either in the conf directory or in the Jar file (both works fine). How can I make this project portable between JBoss (4.2.3 or 5) and GlassFish 3? Is there a recommended way to set different JNDI configuration parameters depending on the co...

Lookup Local EJB from Glassfish LifeCycle module

I can look up the remote interface of an EJB3 from a Glassfish 2.1 using the global jndi name. However, as I understand, if this were not a LC module but an EJB (Servlet), I would have an ejb-local-ref entry in its ejb-jar.xml (web.xml). Is there a place to define Local references for an LC module? Thanks! ...

Glassfish and Ant

Hi. I'm just in search how to deploy my project to the remote Glassfish v.2 server. It's easily could be done by installing Glassfish server on local computer and using as-admin tool but it's just a waste of space, time and recourses... The better way is to use jar files with defined Ant tasks(like you do with Tomcat or GAE), but as i fo...

How to configure CXF web services so that Glassfish can monitor them

We deploy web services implemented by using the CXF framework on the Glassfish application server. Glassfish has the possibility to monitor Web Services deployed on the server through it's management console. We would like to be able to use these monitor features of Glassfish towards the web services implemented by using CXF, but when w...

Deploy war through netbeans onto glassfish v3 beta

The same .war file deploys fine onto Glassfish v2.1. I don't know the last time I tried v3, but I was wanting to check out hot-deploy functionality as it's rumored to be working in netbeans 6.8 with glassfish v3. So, I deploy just like usual and I get the following error: SEVERE: Exception while invoking class org.glassfish.ejb.startu...

Unable to load jars in a Rails app on Glassfish

Hi all, I have a Rails app that I'm trying to deploy onto Glassfish using the Glassfish gem, but it's unable to load the jar files I've written. I've tried passing the jars' path to jruby explicitly with jruby -I, but no luck. Any tips? Thanks a bunch ...

How can I configure a Servlet in Eclipse to use a JPA project?

I am using Eclipse Galileo and I wanted to deploy a simple application, using JPA, GlassFish 2.1 and MySQL 5. Unfortunately, I could not find any tutorials for GlassFish 2.1 (just for 3.0, but I cannot use it). I created a JPA project, added a MySQL5 connection and generated an Entity from the database. The generate JPA class is: pac...

How can I add a InterBase JDBC connection pool in GlassFish V3?

Using: InterBase 2007, latest interclient.jar (8.1.8), GlassFish v3 b68. I try to configure the connection pool in the web admin console page "Edit Connection Pool" with these settings: Resource Type: javax.sql.DataSource Datasource Classname: interbase.interclient.DataSource A 'ping' in the same screen returns this error message: ...