glassfish-3

hosting an application in glassfish

旧巷老猫 提交于 2020-01-03 13:37:07
问题 I have installed glassfish 3.1 application server. created a domain and all. deployed war file and its working fine in local machine. now my problem is: I have purchased a domain e.g: abc.com How to add this domain in glassfish server I have an VPS hosting space too where i have installed the glassfish server. where can i give name server to this domain in glass fish? How can i host an website/web application in glassfish? Please any body guide me with this. 回答1: First you need to make sure

GlassFish clustering + EJB lookup

六月ゝ 毕业季﹏ 提交于 2020-01-03 05:25:17
问题 We have Glassfish cluster which has two instances. On this cluster one my EJB application is deployed and running. Now I have another EJB-Timer-application which I want to deploy on Glassfish server(domain) not on cluster then I want to access the cluster's EJB. AS per my understanding EJB timer could not deployed on a cluster because it could be run on both the instances of cluster. What are the possible ways to access it ? Thanks 回答1: You can actually deploy EJB timers on a cluster. They

unable create JMS resources in Glassfish v3.1.2 using glassfish-resources.xml

十年热恋 提交于 2020-01-03 04:59:08
问题 I am trying out the example on chapter4 of EJB3 in Action on Glassfish server. I have packaged the below glassfish-resources.xml (created with netbeans) under the META-INF directory of the ear package. However the ear fails to deploy with the error "JMS resource not created : ShippingRequestQueue". Please help me fix the issue. Update: I am able to deploy resources xml file from admin console. But it doesn't get deployed along with the ear file. <?xml version="1.0" encoding="UTF-8"?> <

JSF 2 OpenJPA 2 Glassfish 3.1 WEB9031 Error

痴心易碎 提交于 2020-01-03 01:46:14
问题 I got this error which according to Apache Support is an issue relating with Glassfish rather than OpenJPA: java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [org.apache.openjpa.util.LongId], because it has not yet been started, or was already stopped The stacktrace is: Caused by: java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [org.apache.openjpa.util.LongId], because it has not yet been started, or was already stopped at

GlassFish (real) hot deployment of JSF pages and resources (CSS etc.) in Eclipse

a 夏天 提交于 2020-01-01 19:40:52
问题 We are wondering how to setup GlassFish 3.1.2 real hot deployment, that is not just the usual setting How can I hot deploy using the glassfish adapter in Eclipse but how to make it possible that the Eclipse GlassFish plugin will silently push changed XHTML, CSS, etc. files to the server as you save the file in Eclipse. How is it officially setup? Again, I tested this several times now, hot-deploying just-changed XHTML(/JSF), CSS files on save just doesn't work. When setting to Never publish

JSF 2: h:link and getrowdata

a 夏天 提交于 2020-01-01 17:05:46
问题 If I have a h:dataTable in books.xhtml providing a list of records and I want to view a particular record, then add or edit that record, currently I have this: <h:dataTable #{BookBean.books}" var="books"> <h:link outcome="bookview" value="#{books[1]}"> <f:param name="id" value="#{books[2]}" /> </h:link> </h:dataTable> I found out that I need to include <f:param> in order to show the CSS status of clicked link; otherwise if I don't have <f:param> , every time I clicked on a link rendered by h

Check if Glassfish DAS is running programmatically

走远了吗. 提交于 2019-12-30 13:00:09
问题 How to check if Glassfish DAS is running programmatically even if it is deployed on local machine or remote machine? Using Java6 回答1: I have found a way to check if DAS is up other than Linux script. With this way it does not matter if both my application and DAS are at same machine or each installed different machine. public static boolean isUrlReachable(String host) { String URLName="http://"+host+":4848"; boolean isUp = false; try { HttpURLConnection.setFollowRedirects(false);

Making Glassfish respond to ajax request JSF 2

百般思念 提交于 2019-12-30 11:30:30
问题 I'm trying to do an ajax request to my server (Glassfish v3.1 open source edition) and for any reason the request never go to the server, running the same proyect on tomcat 7 it works correctly, there's any configuration that i should make on glassfich or anything?? im using eclipse helios, jsf 2 MyFaces 2.1.1, richfaces 4.0.0, and glassfish 3.1 open source edition here's my code <h:panelGroup> <h:inputText id="firstName" value="#{RegistrationForm.first_name}" required="true" requiredMessage=

Accessing Hibernate Session from EJB using EntityManager

余生颓废 提交于 2019-12-29 18:42:47
问题 Is it possible to obtain the Hibernate Session object from the EntityManager? I want to access some hibernate specific API... I already tried something like: org.hibernate.Session hSession = ( (EntityManagerImpl) em.getDelegate() ).getSession(); but as soon as I invoke a method in the EJB I get "A system exception occurred during an invocation on EJB" with a NullPointerException I use glassfish 3.0.1 回答1: Bozho and partenon are correct, but: In JPA 2, the preferred mechanism is entityManager

Invalid Deployment Descriptors in Deployment descriptor file WEB-INF/web.xml in archive

删除回忆录丶 提交于 2019-12-29 09:55:08
问题 i am working on Java project ,which is using GlassFish server.there is no error in project but when i tried to run it ,it is showing this error_ SEVERE: DPL8015: Invalid Deployment Descriptors in Deployment descriptor file WEB-INF/web.xml in archive [web]. Line 9 Column 22 -- cvc-complex-type.2.4.d: Invalid content was found starting with element 'description'. No child element is expected at this point. SEVERE: DPL8005: Deployment Descriptor parsing failure : cvc-complex-type.2.4.d: Invalid