I have a Java-JSF Web Application on GlassFish, in which I want to use connection pooling. Therefore I created an application scoped bean that serves with Connection instances for other beans:
import java.sql.Connection;
import java.sql.SQLException;
import javax.sql.DataSource;
import javax.naming.Context;
import javax.naming.InitialCo...
Hi,
I'm writing Grails application, that sometimes responds with 422 http status code (on invalid AJAX calls). While deployed on Glassfish, container includes default error page after my view's rendered text.
How to change this behaviour?
Regards,
Tarmo
...
Hi all,
Technical summary: I'm developing a Java web service deployed on GlassFish v3, running on CentOS 5.
My web service uses functionality provided by a native library (.so) . The native library works fine, however I am not having much luck in configuring the environment correctly to load the native library yet not be affected by we...
Hello,
on WIN XP SP3 and Netbeans 6.7.1 IDE,
I have installed Java SDK 6.17 which includes JavaDB. I set the JavaDB directory to ...\Java\JavaDB at the Java installation script with %DERBY_HOME% set accordingly and %PATH% including %DERBY_HOME%\bin
Later on I installed GlassFish-V3 Prelude which - surprise surprise - comes with its o...
Hi All,
I posted this very same item on SERVERFAULT, but got no reply. So here goes:
I'm currently in the process of finishing up a Rails application. I am using Warbler to package it up as a ".war" file and am using GlassFish to deploy it. I do this because the application is to be distributed to companies for in-house use. Arguably ...
Hello,
i have a User class with a field for the e-mail-address and a password.
@NotNull
@Size(min=6)
@Pattern(flags=Pattern.Flag.CASE_INSENSITIVE ,regexp="[^ ]*")
private String password = null;
@NotNull)
@Size(max=60)
@EmailUse // Check if the email-address is already in the database
@Email
private String emailAddress = null;
This...
Hello,
I'm trying to get an LDAP-Connection with the attributes provided by a glassfish custom-resource.
My jndi settings:
Resourcetype: javax.naming.directory.Directory
Factory-Class: com.sun.jndi.ldap.LdapCtxFactory
Parameters:
java.naming.security.credentials = myPassword
java.naming.security.principal = cn=ldapUser,ou=myOrganizat...
Hey!
Migrating to GlassFish v3 / JDK6u18 / NB6.8 makes me a lot of headscratching, and I'm quite confused now. My project (JSF, RichFaces, Spring) works fine with GlassFish v2 + JDK6u17. I'm using the same JAR's, and the same JSF version.
One of my JSP's contains a <rich:tree>, this renders just fine, but if I post the values on this p...
I am trying to deploy my class project as web service on glassfish. I was told that this is really simple and netbeans does all the work and even creates the WSDL for you. I see where you can make a webservice client. But where do you go to make the webservice?
...
Hello,
i search a way how i can access a class in the sessionscope.
I have this class:
@ManagedBean
@SessionScoped
public class UserManagerBean implements Serializable{...}
and i will access some fields from a other bean. How can i do this?
Thank you
...
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'm using the code in this example example and in the runUpdate() function which i put in a javabean in a web application in Netbeans 6.8 with Glassfish v3.
It seems i have an encoding problem because question marks appear in the table.
I have tried so far:
In nbproject->private->private.properties add runtime.encoding=UTF-8>
In proje...
I have a spring MVC application that is deployed on a glassfish server. During execution of this application I get a ThreadDeath exception. The exception occurs on the first form submission of the application (which involves a query to a DB using hibernate). The error goes away if I restart the application server. I shouldn't have to res...
I have a web-app that requires two settings:
A JDBC datasource
A string token
I desperately want to be able to deploy one .war to various different containers (jetty,tomcat,gf3 minimum) and configure these settings at application level within the container.
My code does this:
InitialContext ctx = new InitialContext();
Context envCt...
I wrote a EJB session beans and deployed it on the GlassFish application server. i can call it easily with @EJB annotation from a local JSF web application but i dont know how to call it from a JSF web application that deployed on the remote machine (another machine).
can i dot this with @EJB annotation and how ?
...
I've implemented a system of web services using Eclipse / Apache Axis2 / GlassFish. Now I need to extends the system's functionality through BPEL. What's the most straightforward way of achieving this?
I've found numerous examples on how to use BPEL in Apache ODE, so should I add ODE to my existing application (and, if so, how)? I woul...
How do i keep the java mail transport object alive or connected.
I have written this in my code in a simple class file inside a web application : -
@Resource(name = "myMailServer")
private Session mailSession;
Transport transport ;
public boolean sendMail(String recipient, String subject, String text) {
boolean exe = fal...
Hi
I am new to Java EE. I tried to get some first examples running (JPA).
I am using Glassfish v3. The trouble is that I don't get the App Server injecting
the EntityManager. Hear is one example http://www.adam-bien.com/roller/abien/entry/ejb_3_persistence_jpa_for
which I extended with a JSP client.
Entity:
package beans;
import ...
I'm attempting to use hibernate entity manager with mysql and glassfish. I'm getting the following error when attempting to use a JTA datasource:
Caused by: org.hibernate.HibernateException: The chosen transaction strategy requires access to the JTA TransactionManager
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFact...
Hey,
I want to start GlassFish in case it crashes or so. Is this possible someway if I don't have administrator privilege on the Linux based server?
Any help would be appreciated!
Daniel
...