I've been having problems trying to call an EJB's method from a Java Application Client.
Here is the code.
EJB Remote Interface
package com.test;
import javax.ejb.Remote;
@Remote
public interface HelloBeanRemote {
public String sayHello();
}
EJB
package com.test;
import javax.ejb.Stateless;
@Stateless (name="HelloBeanExamp...
Hello,
I'm developing a standalone client that invokes some EJB methods on Glassfish v3. This works well until I'm integrating the client into an Eclipse plugin for running in our RCP application. In this setting there seems to be a classloader problem on initializing the naming context and I get the exception listed below. (The client ...
I have an EJB Project with a @Singleton EJB defined as:
@LocalBean
@Singleton
@Startup
public class DataModelBean implements DataModelBeanLocal {
I then have another EJB Project with another EJB:
@LocalBean
@Singleton
@Startup
@EJB(beanInterface=DataModelBeanLocal.class,name="DataModelBeanLocal")
@DependsOn("DataModelBeanLocal")
pu...
I have installed Glassfish v3 on a standalone server running ubuntu-server 9.10.
I can open the Admin website if I use a browser running on the server by browsing to:
http:// localhost:4848/
I would like to access it from a remote machine by browsing to something like
http:// mydomain.com:4848/
The firewall is definitely allowing tra...
I am working on a Java EE 6 Enterprise Application that runs on my local Glassfish3 installation. One of my EJBs needs to send messages to a remote JMS Broker which is located somewhere on the Internet.
Unfortunately, the Internet connection is rather unreliable, so my idea is to first send the messages to the local Glassfish's own JMS...
Hi all,
I would like a web application to learn things about its environment so that it can describe various details when an exception occurs.
How would I get the ip address(es) that glassfish is running on within the web application?
I would like to also take a snapshot of the configuration, JDBC connections, JMS, JNDI, etc. Is this...
Hello,
I have a problem. I need to host many (tens, hundreds) of small identical JAVA web applications that have different loads during one time. I want to use Glassfish V3. Do I need to use a load balancer and clusters or something else? Advise where can I find information about similar problems and their solutions...
Best regards,
Al...
I cannot seem to get the Maven Glassfish plugin working for the life of me:
<project>
...
<pluginRepositories>
<pluginRepository>
<id>glassfish-repository</id>
<name>Java.net Repository for Glassfish</name>
<url>http://download.java.net/maven/glassfish</url>
<layout>default</layout>
<snapshots...
I'm developing a web app using netbeans with GlassFishv3.
Every once in a while when I add a new feature in my app, glassfish starts nagging with stupid errors, after a lot of time wasting and panicking, i restart glassfish and run my application again, then suddenly the errors all go away and my site starts acting correctly. (or in cas...
hi,
I am using netbeans 6.8, and glassfish v3, and making a simple jms application to work.
I got this:
com.sun.enterprise.container.common.spi.util.InjectionException:
Exception attempting to inject Unresolved Message-Destination-Ref
jms/[email protected]@null into class enterpriseapplication4.Main
Code:
public class Main ...
Hi...
I´m using glassfishv3 for few days. But i don´t know how to get log4j working with the v3.
In glassfishv2 there was a "System Classpath" field which you could used in order to point to your log4j.properties file.
But in glassfishv3 "System Classpath" is not supported any more.
So where i have to put the log4j.properties file on...
I imagine this is a pretty generic error. I cant seem to find any documentation on it.
I am simply attempting to run a java web project with jsp's and beans... using netbeans 6.8 on windows xp.
Thoughts? apologies for such a newb question.
-Kirb
...
I have an application client which calls a SOAP service. I've used wsimport from the glassfish distribution to generate the ws classes, and everything works fine in Glassfish v2. When I run it (webstart) from v3, the app runs fine, but when I initiate a SOAP call, I get
Exception in thread "Thread-146" java.lang.NoClassDefFoundError: c...
Related to this question. It appears that Glassfish is exporting slf4j into my application and overriding my logging solution. Is it possible for me to override Glassfish's logging and have my own logging solution take precedence? After searching, I have only found ways to modify the log using logging.properties.
I am not married to my...
I am using java.util.logging in an EJB application running on glassfish v3. I can see the log messages in server.log but i don't seem to be able to configure the logging level in glassfish\domains\domain1\config\logging.properties. If I use:
Logger logger = Logger.getLogger("com.foo");
To obtain the logger and log with:
logger.info("...
I'm reasonably new to JEE, so this might be stupid.. bear with me pls :D
I would like to inject a stateless session bean into a message-driven bean. Basically, the MDB gets a JMS message, then uses a session bean to perform the work. The session bean holds the business logic.
Here's my Session Bean:
@Stateless
public class TestBean im...
Hi
I want to set up a virtual server for subdomain
my domain is redirected from
pradyut.dyndns.org
to pradyut.dyndns.org/WebApplicationSecurity
using a virtual server whose default web module is
WebApplicationSecurity
I have used the string "${com.sun.aas.hostName},pradyut.dyndns.org"
in the hosts of the virtual server
now to the qu...
Hi,
I have glassfish installed on a server with a JMS ConnectionFactory set up jms/MyConnectionFactory with a resource type or javax.jms.ConnectionFactory.
I now want to access this from a client application on my local machine for this I have the following:
public static void main(String[] args) {
try{
Properties ...
I'm trying to test a session bean (NetBeans 6.8, Glassfish V3). Unfortunately, the embedded glassfish is unable to start properly, as it tries to connect to a remote JMS Provider (at localhost:7676):
$ ant test
...
[junit] Mar 23, 2010 12:13:51 PM com.sun.messaging.jms.ra.ResourceAdapter start
[junit] INFO: MQJMSRA_RA1101: SJSMQ JMS Res...
I need to connect to a MongoDB instance from my EJB3 application, running on glassfish 3.0.1. The Mongo project provides a set of drivers, and I'm able to use them in a standalone Java application.
How would I use them in a JEE application? Or maybe better phrasing: how would I make a 3rd party library available to my application when i...