glassfish

tomcat or glassfish as comet server?

they are both free but i think glassfish has some limitation or when you reach up to a certain nr of users (comet) then you have to pay? is that correct? if true, could you use tomcat as a comet server? if not, then which free comet servers are there supporting long polling and iframe? ...

Using @Resource to load environment entries

Hi, I'm trying to load bean runtime configuration. @Stateless public class MyBean implements MyLocal{ @Resource String runtimeSetting1="default_value"; //.... } I cannot find out how to create custom resource on app server side (Glassfish) - I have no idea what I should enter in "Factory Class" field. Maybe there is a be...

@WebServiceRef in managed bean don't work

Hi, I have created simple JSF page and managed bean for that page. I'm using Eclipse 3.5 SR1 ("for Java EE Developers" version) and Glassfish v2.1. Here is my page: <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <html> <head> <title>Simple page</title...

cant start glassfish within netbeans

when i click on Run it displays and error message: Starting GlassFish v3 Domain GlassFish v3 Domain start failed. /Volumes/Private/noname/Sites/projects/java/MyFirstServlet/nbproject/build-impl.xml:602: Deployment error: GlassFish v3 Domain start failed. See the server log for details. BUILD FAILED (total time: 2 minutes 0 seconds) bu...

Communication between 2 web services on 2 systems.

We have a java ws deployed on Glassfish talking to another java ws deployed on glassfish (both are JEE 5 and both are being developed on netbeans 6.7.1). So neither of these ws use SSL, but when the main ws calls the other we are getting this error: WSTX-COORDINATOR-3005: registerResponse sent to EPR '<?xml version="1.0" encoding="UTF-...

Where is sun-appserv-ant.jar for Glassfish v3

Where is sun-appserv-ant.jar in Glassfish v3 I have created a small sample EJB project and I want to use ant to deploy the application to Glassfish v3. Ive spent a lot of time on google trying to achieve this and all ant samples seem to refer to a jar file called "sun-appserv-ant.jar" which is supposed to be located in the modules dire...

jspx script element on GlassFish v3

The .war is served from GlassFish v3. I am trying to include a javascript file from my jspx. <script type="text/javascript" src="/base/interface/Service.js"></script> I get the following in my http response <script src="/base/interface/Service.js" type="text/javascript" /> The problem is that it should include the </script> tag. I...

What is the best java webservice framework?

I currently use Apache Axis. But I am creating a new project in Intellij IDEA and I have the option to add one of the following: 1) Apache Axis 2) Glassfish /JAX-WS 2.x RI / Metro 1.x / JWSDP 2.0 3) Restful Web services I am choosing Axis because it's the one I am used to, but I am still wondering if it's the easier option. ...

Maximum URI length in Grizzly (GlassFish) and Tomcat

Is there a maximum length (not default value) for URIs in Tomcat and in Grizzly (GlassFish 3)? I want to create a RESTful API which should be able to receive big GET requests. ...

How to pick CXF over Metro on Glassfish

Hello all, I'm having the following problem (reported there by someone else) when running my webapp under Glassfish, while under Jetty it works fine.. javax/xml/ws/spi/Provider mentions creating a META-INF/services/javax.xml.ws.spi.Provider resource, but this is already supplied with CXF and creating an additional resource file does no...

Diagnosing 404 error issue with servlet (Eclipse and Glassfish 3)

I am in the process of writing a Java web app and am having issues getting my servlet to work properly. This is from my web.xml file: <servlet> <description>Called to process any forms on the website</description> <display-name>Form Processing Servlet</display-name> <servlet-name>FormAction</servlet-name> <servlet-cla...

Glassfish JSP null pointer exception

I'm currently migrating a Spring application from the JBoss J2EE container to Sun's Glassfish J2EE container and although it is the same code, I am getting a confusing error during a specific point in my application. The error occurs every time my controller redirects (using the redirect keyword) to a page handled by spring web flow. I'v...

Glassfish v3 / JNDI entry cannot be found problems!

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

Servlet 3 issues with @WebFilter and @WebServlet deployment

I am trying to migrate my existing servlets and filters defined in web.xml file to @WebServlet and @WebFilter annotations on Glassfish V3 server. Currently web.xml defined 12 servlets and 6 filters . Tried removing one servlet from web.xml file and added @WebServlet annotation to Java servlet file . But having difficulty in accessing t...

glassfish can't find my wsdl when WAR is deployed

I have a CXF service service that I created WSDL first and when I deploy the WAR into glassfish app server 2.1.1, I get the following exception: java.io.FileNotFoundException: C:\Sun\AppServer\domains\domain1\config\TestService.wsdl If I put the WSDL in that location, everything works fine. How do I setup my WAR so that the TestServic...

Client did not send n bytes as expected

We get this error: [#|2009-08-12T11:38:31.803-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=16;_ThreadName=httpSSLWorkerThread-38080-3;_RequestID=8b3571bb-3c36-43f1-9e38-6947ca376436;|WebModule[]Exception while dispatching incoming RPC call javax.servlet.ServletException: Client did not send 142 bytes as e...

J2EE/Glassfish Application Logic

Hi, I am trying to understand where some of my application logic should go in my J2EE Application. I am new to J2EE and am looking at loading a lot of unstructured data from a legacy database and building a clean object model for use by my application. From my investigation I see J2EE apps have 2 components, Enterprise Bean and Web Appl...

Problem running standalone Glassfish v3 client as Eclipse plugin

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

Creating ANT script to deploy to glassfish, run junit tests and then un-deploy

Hey guys, I have a j2ee app which I am building with Netbeans. My task is to modify the build.xml so that after the app builds, ANT deploys the app to a server, runs Junit tasks on the app, and then un-deploys the app. So far I have the deploy and un-deploy working but I'm running into some trouble running the junit tasks. I have a c...

How to integrate OpenID into GlassFish?

I want to integrate OpenID as an authentication mechanism into GlassFish 3.1 (preview). The Development Guide says that JSR 196 could be used to implement custom authentication mechanisms like OpenID. Is there already an OpenID authenticator for GlassFish conforming to JSR 196? Or is there a tutorial how to write one (somewhere in the b...