glassfish-3

Glassfish 3 and import signed SSL certificate issue

懵懂的女人 提交于 2019-12-04 06:40:32
I am trying to install a signed SSL certificate into Glassfish but I failed. Here is the list of steps 1. I used keytool to generate new key pair (alias domain1) keytool -genkeypair -keyalg RSA -keystore glassfish/domains/domain1/config/keystore.jks -validity 1000 -alias domain1 2. Generate Certificate signing request (out - domain1.csr) keytool -certreq -alias domain1 -file **domain1.csr** -keystore glassfish/domains/domain1/config/keystore.jks 3. I used OpenSSL to generate my own Root CA certificate 3.1. Generate root CA private key ( out - rootCA.key ) openssl genrsa -out rootCA.key 1024 3

Consuming local EJB, in the same Container but different ears

一曲冷凌霜 提交于 2019-12-04 05:55:30
I'm triying to consume a Local EJB in the same Glassfish, but different ears. But Glassfish can't found the local EJB or can't consume I read this: According to the JavaEE tutorial, the client of a @Local bean "must run in the same JVM as the enterprise bean it accesses." In the first ear , I have the local Interface inside a jar @Local public interface MyLocalBean { int getNumber(int num3); } In another jar, I have the implementation @Stateless @LocalBean public class MyLocalBeanImpl implements MyLocalBean,Serializable{ public MyLocalBeanImpl() {} public int getNumber(int num3){...... In the

How to add richfaces to maven project

眉间皱痕 提交于 2019-12-04 05:05:38
问题 I'm trying to use popup component in my app. I use JSF, Glassfish. Here's my pom.xml : <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>pl.karta</groupId> <artifactId>epacjent</artifactId> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> <name>epacjent</name> <properties> <org.richfaces

Glassfish hangs after moving installation directory

做~自己de王妃 提交于 2019-12-04 04:15:49
问题 I know the answer to this, but I'm posting this here because as an app developer, I was burned by this problem several times and it took a very long time to find the answer: I've moved my glassfish installation dir , and now it hangs on startup. How can I fix this? 回答1: There are a couple strategies that you can apply to resolve this issue. The quick and dirty 'solution' is to Make sure the server is stopped. Delete the content of the osgi-cache, by removing the osgi-cache/felix directory in

Table/View 'EJB__TIMER__TBL' does not exist

跟風遠走 提交于 2019-12-04 04:05:58
问题 I have an application that runs on Glassfish 3.0.1. I've already successfully installed it on a few instances, but now I'm trying to set up a new server. Looking at the log, the deployment goes fine at first, but then I get this: [#|2010-12-06T17:53:38.020+0000|WARNING|glassfish3.0.1|org.eclipse.persistence.session.file:/opt/sun/glassfish/glassfish/domains/domain1/applications/ejb-timer-service-app/WEB-INF/classes/___EJB__Timer__App|_ThreadID=31;_ThreadName=Thread-1;| Local Exception Stack:

Can a stateless session bean have protected final method?

天涯浪子 提交于 2019-12-04 03:57:55
问题 I have defined a session bean base class. This class is abstract and contains protected final methods. A session implementation class extends the abstract class and defines additional methods. During deployment, Glassfish 3.1.2 server generates an exception stating that method is overridden. abstract class AbstractSessionBean { @PersistenceContext(unitName="primary") private EntityManager em; protected final EntityManager getEntityManager() { return em; } } @Startup @Stateless class

Facelet tag parameter not recognized by PrimeFaces p:ajax

谁说胖子不能爱 提交于 2019-12-04 03:34:50
I have a simple Facelet tag: <ui:composition> <ui:insert /> </ui:composition> which is used in order to avoid declaring multiple c:set tags. Let's say I registered it in the facelets taglib library with the name view , and use it like this: <my:view bean="#{myController}"> <p:inputText value="#{bean.value}> <p:ajax event="blur" process="@this" listener="#{bean.handleValueChanged}" /> </p:inputText> </my:view> The attribute value is perfectly resolved by p:inputText , but p:ajax throws this: Target Unreachable, identifier 'bean' resolved to null javax.el.PropertyNotFoundException: Target

The Eclipse plugin cannot communicate with the GlassFish server, status is :CREDENTIAL_ERROR

与世无争的帅哥 提交于 2019-12-03 20:07:20
问题 I am able to start Glassfish through command line. However, when I try to start the server through Eclipse I encounter the following error: The Eclipse plugin cannot communicate with the GlassFish server, status is :CREDENTIAL_ERROR I have checked my login credentials ( admin / adminadmin ) and they are correct (I'm able to login into the admin console on port 4848 with the same user/pass). Here is my system info: OS: OS X 10.6.7 Eclipse: Indigo Service Release 1 Glassfish V3.0.1 Glassfish

How do I upgrade the JSF API in GlassFish?

无人久伴 提交于 2019-12-03 18:04:07
问题 I downloaded binary which has javax.faces-2.1.13 as the latest binary release. I want to upgrade my GlassFish JSF library but it has jsf-api-jar and other impl. How do I update and where do I download the jars? 回答1: Just replace both jsf-api.jar and jsf-impl.jar in the Glassfish /modules folder by the single javax.faces.jar file. Since Mojarra 2.1.6 the build system has been changed to comply Java EE Maven rules, see also issue 2028. This resulted in the API and impl being merged into a

TypedQuery instead of normal Query in JPA

混江龙づ霸主 提交于 2019-12-03 17:47:43
问题 Is it possible to write this Query as a TypedQuery and let the two Long's run into a Object with two public Long fields inside. Query q = em.createQuery( "SELECT c.id, COUNT(t.id) " + "FROM PubText t " + "JOIN t.comm c " + "WHERE c.element = ?1 " + "GROUP BY c.id"); q.setParameter(1, e); List<?> rl = q.getResultList(); Iterator<?> it = rl.iterator(); HashMap<Long, Long> res = new HashMap<Long, Long>(); while (it.hasNext()) { Object[] n = (Object[]) it.next(); res.put((Long)n[0], (Long)n[1]);