glassfish

Glassfish 2.1 WSDL/ Tester Problem

Howdy, Im having problems with my glassfish 2.1 install. I am using eclipse Hellios (which i dont think will be a factor in it) and have my glassfish set up as a server within it. I have deployed an EJB and the server see's the install and appears in the web services tab. But when i select Test or view wsdl all i get is Bad Reques...

JMS Destination creation at deployment with Glassfish 3.0.1

I'm currently trying to 'port' my Java EE 5 Application from Jboss 6 M2 to Glassfish 3.0.1 Jboss used to create my JMS Destination Queues a deployment-time thanks to the -service.xml files. I really liked this feature and I would like to find a way to do the same thing on Glassfish. Is this even possible ? ...

Connection problems with PostgreSQL XADataSource in Glassfish

I'm new to GlassFish, and our company has recently migrated an old system from JBoss 2-something to GlassFish v3. Almost everything works fine, but we are having connection problems with a PostGres (v8.1) XADataSource. We have a database entry that holds the operating mode of the site and every request pulls this information to verify ...

Glassfish: How to change the security realm for a WAR-app

I'm building a JEE6-application that runs on Glassfish v3.0.1. It's a web-application with EJBs, deployed as a WAR (EJB 3.1). Currently i'm trying to configure a login by using a JDBC-based security realm. Now i don't know how to configure my WAR-application to not use the default Glassfish Security Realm (file) and instead use my newl...

Invalid WSDL request message (HTTP 405) on WSDL request (Glassfish v3)

Hello guys, I've a web service, which is basically a @Stateless EJB annotated with @WebService, and other JAX-WS related annotations. I can deploy this bean on my machine's glassfish instance, and see its WSDL through Glassfish's administrative GUI. I can also call its methods without any problems, from a SE client. When I deploy this ...

Rewrite URL on Glassfish with Quercus' PHP

I have Glassfish 3 server and have added Quercus 4.0.7 to to be able to run PHP applications on it. Everything works perfectly with it. Now I'm trying to run Question2Answer application on my server. I was able to open application but it's not allowing me to navigate from page to page because they are using .htaccess file to rewrite the ...

UrlRewriteFilter with Glassfish

How do i integrate my glassfish v3 server with urlrewrite?Detailed step by step process would be appreciated. The reason why i want to know this is that i am deploying a php application into my glassfish server using Quercus. But Quercus relies on mod_rewrite in the Apache Server to provide URL rewrites and this is not available in gla...

GlassFish v3 JSESSIONID Multiple Subdomains and TLDs

We have one web application that is being built to serve multiple regional web site TLDs. In addition, the web application also supports thousands of dynamic subdomains. Examples include: www.example.com www.example.co.uk www.example.com.ar fred123.example.co.uk <== Thousands of this form fred123.p.example.us <== Thousands of this f...

Problem with NetBeans Web Service Client when xercesImpl.jar is on classpath

I am unable to create a Web Service Client in my NetBeans Web Application when xercesImpl.jar is included as a library. Using NetBeans 6.9 and GlassFish 3.0.1: 1.) Create new Web Application 2.) Create a new Web Service 3.) Add a new operation to the created web service (just let it return null - the implementation isn't important) 4.)...

j2ee single login from just one ip address

I am using Glassfish V3 with filerealm. How do I ensure each username can only be login into one machine at any one time. I thought of using a hashmap datastore to store the remote address, but then it would means I would need to change all the struts actions to check if the user has already login and is not from another ip address. ...

File uploading issue on glassfish server

Hi, I have written a small ruby application to upload file using multipart-form. This works fine on webrick server and glassfish gem. But deploying this application on glassfish v2.1.1 works only for small files upto 50kb and will show error page for larger files. Anybody could please help me to sort out this issue. thanks Vicky ...

JPA Entity Manger Factory injection fails (JPA 2, Eclipselink, J2EE 6)

I am trying to get a small sample web app up and running but I have run into a problem injecting the Entity Manager Factory. My persistence.xml is as follows; <persistence version="2.0" xmlns=" http://java.sun.com/xml/ns/persistene" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java...

Glashfish exception with JSF application

Hi to all, I try to run my application in glassfish appli application server.But i got struck.The server log denotes the follwing error message,How can i resolve this? [#|2010-07-14T17:53:54.152+0800|WARNING|sun-appserver2.1|javax.enterprise.system.core.classloading|_ThreadID=38;_ThreadName=Thread-396;_RequestID=cde2a094-d34e-4e64-bb22...

Embedded Glassfish v3: deploying sun-resources.xml programmatically fails

I would like to be able to package my jpa-ejb-web project as a standalone application, by using Glassfish embedded API. To use the JPA layer, I need to deploy the sun-resource.xml configuration, which should be possible with the asadmin command add-resources path\to\sun-resources.xml. I've this code to do it: String command = "add-...

i cannot see JBI in glassfish v2 of netbeans?

i cannot see JBI in services tab of my netbeans 6.0.1 i have started glassfish v2 but it only shows applications, resources and jvms. is there some thing wrong ?? how can i find JBI is installed or not and how can i install it to my netbeans 6.0.1 i am new to java and help required thanx in advance ...

Parameterizing EAR

I would like to set some read-only parameters (eg. an RMI registry host and port) to a Java EE application deployed on a Glassfish server. The usual place to do this would be the deployment descriptor, but my problem is that it is packaged in the EAR, so I cannot edit it without changing the EAR. I need something similar to setting JDBC...

Calling External Web Service via a Servlet

The current architecture has a web application (in a WAR distribution), being used to provide information to the web client via a Servlet. This Servlet garners this information from an external service via Glassfish Metro (SOAP), and then formats it accordingly for the client (JavaScript). A proxy component (JAR) has been developed to m...

How to provide access to an external resource (file) for a GlassFish web application?

I am a bit of a GlassFish beginner, so please forgive my ingnorance on the subject. Basically we are serving a game website, and to make the client downloadable by our web app we copy it into a directory within domain1. The problem with this is that when redeploying the web app the client downloadable is lost and we have to copy it acro...

"Web Services" Node is absent in GlassFish Server Open Source Edition 3.0.1

I can't see the "Web Services" Node (Menu Item in the Tree-like menu that GF admin console has on its left side) in glassfish's admin console. Is there a way to enable it in glassfish? Should I download any upgrades for glassfish to enable it? ...

Glassfish 2.1 unrelyable deployment

Hi there, i have a glassfish 2.1 server plugged into my eclipses(helious) and it seams that its very unrelable when i deploy my project. I have a very simple EAR wich i wish to deploy and view the web servies of initialy it sucseeded. Since then has been very temprimental sometimes it will deploy and other it will say its depoyed but ...