glassfish

InitialContext.lookup of remote EJB fails after remote server restart

We have a setup in which EJB A is running on server A, and another EJB B is running on server B. EJB A connects to EJB B via IIOP. This setup normally works, but if server B is restarted, EJB A will fail until server A is restarted too. The issue is that if server B is restarted, all calls to InitialContext.lookup by EJB A fails with a...

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

Glassfish 2 Server Log

The webpage for this application does not open up after the application is run. The administration console says: "An error has occurred -C:/eepassion/UnZip/servletbasics/samples/hello2/build/web" Thank you for your help. Please see log info below: Oct 15, 2010 8:27:50 AM com.sun.enterprise.admin.servermgmt.launch.ASLauncher b...

What configuration and bundles are required to run an Eclipse RAP application on GlassFish 3.0?

I have an Eclipse plugin which I've written using the RAP 1.4m2 target. It runs fine using the Eclipse launcher and Equinox 3.7 (which is the default in Eclipse 3.6) . I have also configured my GlassFish 3 server to use Equinox 3.7 for OSGI. I haven't been able to get my bundle to start in this environment, however. What other configurat...

Deploying a Spring app as ear to Glassfish v3 - Ambiguous DeploymentException "Module type not recognised"

Hi, I am trying to deploy an .ear to Glassfish v3. The .ear is a "Spring" application made up of two modules: domain.jar (entities, persistence) service.jar (business logic with spring bean config). I'm creating the .ear with Maven ear plugin and the resultant dir structure of the .ear is as follows: /APP-INF/lib/domain.jar;servic...

EJB calls from grails to glassfish

Hello! I need to use EJB remote calls from my grails application. For this in previouse Servlet application I used client glassfish jar(gf-client.jar) and is's worked. How I can include gf-client.jar into build path in grails app for call EJB methodth? thank you. ...

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

Custom and flexible servlet container, or proven and relatively inflexible?

I am building a web application on top of a "custom" web framework. This framework is essentially the Equinox OSGi platform with Jetty sewn into a custom bundle (not the Equinox-supplied one, mind, as it is far too restrictive). This framework is being used to build a large Java web application, primarily using JSP. No other frameworks ...

NetBeans / Glassfish configuration

I'm writing a webapp with NetBeans 6.5.1 / Glassfish 3 and I'd like to avoid using virtual folders in the links inside of my pages (i.e. "/contacts/info.htm" instead of "/myapp/contacts/info.htm"). I tried configuring a virtual server on Glassfish using its configuration pages by I don't understand how to synchronize NetBeans with it. ...

Primefaces: Does any get p:effect to work on Glassfish

Here is my code. When I click the link Comment, a inputTextarea and commandButton suppose to appear <h:outputLink id="link" value="javascript:void(0)"> <h:outputText value="Comment"/> <p:effect type="fade" event="click" for="reply"> <f:param name="mode" value="'show'"/> </p:effect>...

Can I use JTA over different EARs which are deployed to different servers?

Hi, I'm looking into JTA as I need distributed transactions (across JPA, JMS and EHCache). I'm trying to understand whether JTA can supply an additional functionality which I'm considering. If I have 3 different servers, each running Glassfish and each server has a different EAR (a different module of mine). Can I have a transaction whic...

Maven is trying to update glassfish plugin from maven.ocean.net.au

We cannot deploy our app as Maven is trying to update glassfish plugin from maven.ocean.net.au repository, although no such repository was defined in our pom. The problem is maven.ocean.net.au isn't online and therefor our build fails. Has this happened to anybody else? ...

Netbeans, Glassfish deployment problem

I am developing a web project using Netbeans 6.9.1 and Glassfish 3.0.1. Everything was fine until I refector a sesion bean by renaming it from “outboxSession” to “OutboxSession”. Now the project cannot be deployed. I have tried many thinks like restarting Glassfish, restarting Netbeans, restarting my PC itself, deleting the built folde...

Install GlassFish on FreeBSD shared server

I asked this on superuser as well, but with no answers (even no views). If it's wrong to mention it here, please let me know or just move it. Thanks. We are using a shared server (six people with root access for each user), which is reinstalled and -configured soon. I agreed to install GlassFish for everyone to use. However, I am develo...

Problem with GlassFish tools bundle for Eclipse and running Glassfish

Hi, I've downloaded the GlassFish-Tools-Bundle-For-Eclipse-1.2 and installed it. When I run the eclipse contained in the release I'm unable to start the Glassfish server, which arrived pre-configured with the release. It seems to be looking for the server under c:\ (i.e. c:\glassfishv3\glassfish) when in reality it's under {myDevPlaces}\...

Listing and adding JMS Physical Destinations to GlassFish v3.1

Hi, After adding a destination(Queue) to Destination Resources from Admin Console at Resources/JMS Resources/Destination Resources, no physical destinations are displayed at server(Admin Server)/JMS Physical Destinations .Instead, the following error message is displayed below the heading: An error has occured Unable to list JMS Destin...

Default EJB transaction mode for asynchronous methods?

When I have an @Asynchronous method in an EJB, and I don't specify the @TransactionAttribute, then how exactly does the container handle the transaction boundaries? Obviously, it can't use the calling thread's transaction, so what does it do? Same question, but regarding methods that are triggered by the TimerService. EDIT: I think...

netcat does not work on glassfish

Hi all ... Maybe a simple explanation for this but it seems that glassfish (on port 8080) does not respond normally to netcat requests ... for example: nc localhost 8080 OPTIONS ... nothing is 'returned' and netcat exits. If you do a similar thing against www.google.com 80 you will get an expected error message returned from the ser...

Why does Eclipse not deploy dependency to Glassfish?

I am using Eclipse Helios, Glassfish 3.0.1 (Full Platform) and myfaces 2.0 . There a two projects in the workspace: A simple Java project (=> JP) and a dynamic web project (=> WP). I added JP to the classpath of WP. I added one class from JP as a managed bean to the faces-config.xml file of WP. <managed-bean> <managed-bean-name>m...

Eclipse WTP: Glassfish does not include WEB-INF/lib in classpath

Hi there, I started a new dynamic web project in eclipse helios. I integrated glassfish into eclipse and it works fine so far. Except one thing: I place my libraries (jdbc, log4j etc.) in WEB-INF/lib. Eclipse deploys that files correctly to glassfish, but glassfish does not include that directory in its classpath, so my app won't run (b...