glassfish

Deploying JSF application on a Glassfish cluster

When I deploy a JSF application on a Glassfish V2.1 Patch02 Cluster, the following exception is thrown while loading the first page. java.security.ProviderException: update() failed at sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:557) at sun.security.pkcs11.P11Cipher.engineUpdate(P11Cipher.java:457) at sun.se...

file path in WebApplication using GlassFish

I'm using a class to get a property file under the source folder. But it doesn't work! After checking, I found that the default path by using the File f = new File("/src/ss.properties"); is not the web application path but the glassfish config path! What can I do if I want to fetch the property file stored in the "classes" path? Usually ...

Why does calling close() on an InitialContext break JNDI for all future lookups (Glassfish)?

The second JNDI lookup in the code below fails with an exception when running as a standalone application against Glassfish (which has been configured to expose a QueueConnectionFactory and a DataSource via JNDI). However, the code works fine when the line jndiContext.close() is removed. In the real code, the call to close() is being ma...

UnknkownHostException

Please help; Am trying to deploy a web application. The build is returning successful,and am not getting any errors on the sever.log however am getting a http 503 error:the requested service() is not currently available and also my Java DB Database Process has this message Warning: UnknkownHostException: intracare: intracare. Could not...

Unexpected JAXRPC endpoint, this version is not supported 1.1

I'm trying to compile a webservice through NetBeans 6.7 using Glassfish v3 as the host is there anyway to fix this issue: 'Unexpected JAXRPC endpoint, this version is not supported 1.1' ...

BlazeDS on Glassfish

Is there a way to use BlazeDS on a Glassfish server? If so how? ...

XSD, JaxWS, and Glassfish

I have a xsd with quite a few pattern restrictions in it and this xsd is used in our wsdl. When we deploy the ear to glassfish and bring up the wsdl and xsd in a browser all of our pattern restrictions are stripped out. Why? How can I eliminate the stripping of our restrictions. Here is a snippet: ...

glassfish hosting

I will need to develop/deploy an EAR (webapp + ejbs, webservices) and its the time to know 'where on Internet?'. this Ear is a simple webapp jsf + ejbs 3, webservices. app: affiliations system for who: health sector users: aprox 2000 users are going to hit (get affiliated) to the app, aprox only 50 simultanely. server: sun glassfish v2 ...

Redirects in Glassfish (adding trailing slash)

Is it possible to add a trailing slash to the default context of an application? Example: http://www.uri.com/foo -> http://www.uri.com/foo/ I added the following redirect to the server properties: redirect_1: from=/foo url-prefix=/foo/ and this ends up in a loop... Several other configurations also didn't work :-/ I'm using glass...

java.lang.ClassNotFoundException: DataSource in Glassfish

I'm getting a weird problem in GlassFish 2.1 - I'm a beginner with this container and I'm having trouble pinning this down. I have a new install of GlassFish 2.1 with a JDBC connection pool defined called testDerbyPool. I then have a resource defined called jdbc/testDerbyPool pointing at that pool. The resource type is javax.sql.DataSou...

How to install glassfish into netbeans

Glassfish had already been into Netbeans. But i forgot the password and username. (it wasn't admin, adminadmin) So i reinstall to desktop. I followed glassfish configuration After that i tried to associate Netbeans and glassfish. first i create Netbeans 6.7.1 Tools/ servers / add Server / glassfish v2.1 server location is choosen where ...

How to configure my log4j ( using Glassfish ) to log in the logs directory, not in config?

Hi, I have the following line in my log4j.properties file: log4j.appender.logfile.File=MyApplication.log My log file appears in MyDomain/config directory, but I would like it to land in the MyDomain/logs directory. How can I achieve that? I am not allowed to modify the startserv script. Thanks in advance for your help! ...

How to implement pessimistic locking in JPA with Glassfish 2.1?

When trying to setup a lock (pessimistic), with the following code: em.lock(controlnumbers, LockModeType.WRITE); em.refresh(controlnumbers); I am getting the following exception: [#|2009-09-10T15:42:48.324-0400|INFO|sun-appserver2.1|javax.enterprise.system.container.ejb|_ThreadID=31;_ThreadName=httpSSLWorkerThread-8080-19;| javax.ejb...

IIS and Glassfish in Windows 7

I installed the newest version of Windows 7. This is my development box, so I have glassfish installed, which I use for Java applications. Also, I use IIS to run PHP applications. I run both servers on port 80, but never at the same time. However, since I set up IIS, I can't get glassfish to run. In eclipse, it always gives the follow...

Which java webserver is most suitable here?

Hey, I am developing a simple web application which contains these 3 components: client that uses Ajax,javascript, html to display data on the browser. Java webserver that interfaces between the client and data processing entity. data processing entity, implemented in C++. I need to decide which java webserver to use. Some options ...

windows-1252 character 146 is stopping POST data reaching servlet in glassfish v2

An HTTP POST request is made to my servlet. There is a posted form parameter in the http request that my code in the servlet retrieves for further processing named "payload". When the value of the payload includes the windows-1252 character "’" (ascii value 146), HttpServletRequest instance method getParameter("payload") returns null. ...

Glassfish resource settings update

If you make changes to a resource setting (the max pool size on a connection pool for example) via the glassfish web interface do you have to restart the app server for the changes to take effect or does it all happen on the fly. Thanks ...

Is there support for Glassfish in BlazeDS?

Duplicate http://stackoverflow.com/questions/1365026/blazeds-on-glassfish I have a question about BlazeDS and Glassfish. Is it true that there is no support for Blaze in GlassFish?? The following blog has a "hack" solution, but I can't find an 'official' solution. ...

Glassfish with BlazeDS and Security

Hi, Security in BlazeDS in Glassfish doesn't work. The Valve API in the Tomcat version of Glassfish is different from the official Tomcat. The only option is to hack an "Glassfish" TomcatValve, http://anachronymous.com/2009/01/flex-blazeds-and-glassfish-part-1.html but is this a good solution for an productive system ? Please don't...

Log4J properties file - where to put it

I wrote a web service project using netbeans 6.7.1 with glassfish v2.1, put log4j.properties to the root dir of project and use static Logger logger = Logger.getLogger(MyClass.class); in Constructor: PropertyConfigurator.configure("log4j.properties"); and in functions: logger.info("..."); logger.error("..."); ... but, it is error in...