glassfish-3

Can EJB 3.1 Lite be exposed via Remote interface?

十年热恋 提交于 2019-12-11 07:55:45
问题 So I have written an application Expose my business logic via Remote interface for App Client, and Local interface for Web module. Just find out that our server has limited memory, so I need to make Glassfish to be light weight. Unfortunately, GF Full Profile is not light weight (using GF 3.1.1 RC atm), therefore I am looking at the Web profile of GlassFish. Now there is a answer saying that Remote interface is not a feature of EJB Lite here ( exposes a Remote client view. This feature is not

Glassfish: JTA/JPA transaction not rolling back

╄→гoц情女王★ 提交于 2019-12-11 07:54:53
问题 I am running Glassfish 3.1.1 with an Oracle database and have run into an issue with transactions not rolling back, but only on one specific environment so far. The same application works as expected on other machines. However, two separate Glassfish domains on the same machine are impacted. Within the affected environment, I have similar results with both a container-managed transactions (CMT) inside an EJB that throws a RuntimeException, and a bean-managed transaction (BMT) with

When a class file change, Can I make the glassfish server not restart but still reflect the change?

萝らか妹 提交于 2019-12-11 07:08:56
问题 When a class file change, Can I make the glassfish server not restart but still reflect the change ? I mean the glassfish sever doesn't redeployment(or publish) the application, but only redeployment the class that has changed. 回答1: If this is meant to be done while development, you can give a shot to JRebel. 回答2: There are a number of ways to redeploy an application onto GlassFish 3.1 that do not require that you restart the server. The method I would recommend is 'asadmin redeploy --name

Diagnosing an EclipseLink connection delay?

浪尽此生 提交于 2019-12-11 05:58:43
问题 I am using a GlassFish 3.1.2 server and my web application uses EclipseLink 3.1.2 as a JPA provider. GlassFish is running locally, the MySQL server is remote. The problem is that when I start my server the server hangs for a long time, with the following line as the last thing in the log. [#|2012-03-26T14:37:31.765-0700|INFO|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/alan/NetBeansProjects/MyApp/target/MyApp/WEB-INF/classes/_com.myapp|_ThreadID=10;_ThreadName=Thread-3;

Logging Level on Glassfish-3 JPA Eclipselink

六月ゝ 毕业季﹏ 提交于 2019-12-11 05:28:04
问题 How do I setup a EAR and a Glassfish Server that it shows FINE level on the development server but the same ear shows INFO level on the productive machines? In the moment I change config in the persistence.xml every time i deploy onto the productive machines. But s.t. i forget and the machine starts flooding the log files. 回答1: You must put in the <jvm-options>-Declipselink.logging.level=FINE</jvm-options> into your config.xml java-config tag on your development machine. And do NOT put in the

how to stay on the same page after clicking submit button

梦想与她 提交于 2019-12-11 04:54:26
问题 I'm creating a login form and in that if any input is wrong then i want to stay on the same page and notify the client to enter the correct input I want to stay on this page http://localhost:8080/loginpage/ but after every click i'm redirected to http://localhost:8080/loginpage/?UserName=UserName&pword=&ConfirmPassword=&Email=Email&FirstName=First+Name&LastName=Last+Name&cars=male&Signup=Signup . I have written a code for this but it does not seem to work. if(t!==0) { var er="Email-id already

Session replication not working in glassfish on multi node cluster

风流意气都作罢 提交于 2019-12-11 03:06:21
问题 Session replication not working in glassfish on multi node cluster 1) application contains distributable tag in web.xml 2) application when deployed in cluster c1, which contains 2 instances present on same node, session replication works. 3) Same application when deployed in cluster c2, which contains 2 instances present on two CentOS machines, session replication does not works. Following are content of glassfish-web.xml (if required for reference) : <glassfish-web-app error-url="">

Managing shared libraries in GlassFish Server Open Source Edition 3.1.2

余生长醉 提交于 2019-12-11 02:02:42
问题 What my question is all war files deployed in Glassfish are using same code base but with different database names , so libraries used in all war files are same. 1)Can Glassfish have shared lib folder similar to tomcat, if yes need steps. 回答1: Glassfish has shared libraris too, just copy your libraries in one of following directories and restart Glassfish. glassfish-3.1.2\glassfish\domains\domain1\lib : which will share libraries across all applications deployed to domain1 glassfish-3.1.2

Servlet requests are executed sequentially for no apparent reason in Glassfish v3

我是研究僧i 提交于 2019-12-11 01:55:36
问题 I'm using Glassfish 3 Web profile and can't get http workers to execute concurrently requests on a servlet. This is how i observed the problem. I've made a very simple servlet, that writes the current thread name to the standard output and sleep for 10 seconds : protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { System.out.println(Thread.currentThread().getName()); try { Thread.sleep(10000); // 10 sec } catch

Glassfish - java.lang.NoClassDefFoundError

我的未来我决定 提交于 2019-12-11 00:52:53
问题 I was following this blog to run a sample websocket application in glasshfish. The deployment failed with the following error. But the mentioned class file is available in the pom.xml and it is listed in the dependencies as well. Could you please help? Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.NoClassDefFoundError: org/glassfish/websocket/spi/Endpoint.