glassfish

Synchronous Consumer with JMS Queue

…衆ロ難τιáo~ 提交于 2020-01-06 07:03:16
问题 I want to process all the messages from a JMS Queue in Glassfish 3 in a synchronous way so I have tried to change the property Maximum Active Consumers from -1 to 1 in JMS Physical Destination in Glassfish window. I think setting this I will have only one Consumer executing OnMessage() at the same time. The problem I have reached its that when I change that property I got this error: [I500]: Caught JVM Exception: org.xml.sax.SAXParseException: Content is not allowed in prolog. [I500]: Caught

Synchronous Consumer with JMS Queue

a 夏天 提交于 2020-01-06 07:01:40
问题 I want to process all the messages from a JMS Queue in Glassfish 3 in a synchronous way so I have tried to change the property Maximum Active Consumers from -1 to 1 in JMS Physical Destination in Glassfish window. I think setting this I will have only one Consumer executing OnMessage() at the same time. The problem I have reached its that when I change that property I got this error: [I500]: Caught JVM Exception: org.xml.sax.SAXParseException: Content is not allowed in prolog. [I500]: Caught

Converting WAR to EAR and other Glassfish stories

筅森魡賤 提交于 2020-01-06 06:06:10
问题 I am really new in this so I hopefully don't make any terrible mistake. I apologize before hand if I have. In my project I was using tomcat and deploying WAR files. But now some bosses wants to deploy EAR files. So there we go. I first downloaded Glassfish (don't know if it's the apropiate application server for a newbie like me), instaled it and all (I even deployed the hello.war in the autodeploy >_< ). Then prepared an EAR file. From what I know, I just need to create an Enterprise

Converting WAR to EAR and other Glassfish stories

眉间皱痕 提交于 2020-01-06 06:05:23
问题 I am really new in this so I hopefully don't make any terrible mistake. I apologize before hand if I have. In my project I was using tomcat and deploying WAR files. But now some bosses wants to deploy EAR files. So there we go. I first downloaded Glassfish (don't know if it's the apropiate application server for a newbie like me), instaled it and all (I even deployed the hello.war in the autodeploy >_< ). Then prepared an EAR file. From what I know, I just need to create an Enterprise

Glassfish and Tomcat

大憨熊 提交于 2020-01-06 04:53:29
问题 I write a web service program on NetBeans . it's work without any problem with GlassFish server but when I want to run by Tomcat 7.x.x I received this error: Type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 6 in the generated java file Only a type can be imported. com.sun.faces.facelets.tag.jsf.core

What are the consequences of opening/closing connections within a transaction?

坚强是说给别人听的谎言 提交于 2020-01-06 04:41:26
问题 I'm trying to wrap my ahead around some strange errors, where code that seemingly should run as one transaction does not. I'll try to get all the relevant parts down, but it's quite a lot so. The project contains both Spring and EJB, so I'm not really sure if one of them is actually used here, or both. The Spring configuration contains this: <jee:jndi-lookup id="platformTransactionManager" jndi-name="java:appserver/TransactionManager" resource-ref="false" expected-type="javax.transaction

Create an “Application Client” with Maven in Java EE

断了今生、忘了曾经 提交于 2020-01-06 03:41:07
问题 I am trying to create a maven based Enterprise Application with an Application Client which runs in the Application Client Container from GlassFish. It should fit togheter as the Project template from Netbeans "Enterprise Application" + "Enterprise Application Client" but with maven and not ant. Until now I have following projects Assembly Maven Project EAR-Module EJB-Module WEB-Module (works well with inside the ear) Swing Client Module The Assembly pom.xml looks like: <project xml...

Java EE 7 updatetool installation fails

霸气de小男生 提交于 2020-01-05 08:03:16
问题 I have tried to install Java EE 7 with updatetool to be able to run Java EE Tutorial examples. But the installation of updatetool fails. I have tried to start updatetool installation from the command line on my elementary os, then I saw the error when installing updatetool. Here is an image: http://oi58.tinypic.com/x6iumx.jpg Error text example 1: Input/output error: Connection failed for URL http://pkg.oracle.com/javaeesdk/7/native/release/manifest/0/updatetool@2.3.5%2C0-56.2852

JPA (EclipseLink) connection timeouts

岁酱吖の 提交于 2020-01-05 07:27:54
问题 I am using JPA 2.0 with EclipseLink, Glassfish, and NetBeans. I am experiencing issues with connection timeouts after extended periods of inactivity. I've looked pretty hard for ways to either: (1) Check for JPA's connection and then re-establish its connection if disconnected (2) Keep the JPA's connection active as much as possible However, I can't really find a solution for either. The closest thing I can find is this post: How To modify Eclipselink JPA 2.0 connection retry behavior . If

Where to put property file in JBOSS 7 or Glassflish? (Best practice)

此生再无相见时 提交于 2020-01-05 07:13:44
问题 I have developed applications for JBOSS EAP 5 with eclipse. I placed property files under server-conf/conf/... I am now developing in Netbeans (7.2). The bundled glassfish server is used for easier development. The target environment is JBOSS EAP 6. What is the best place to place property files? A common place for both environments would be great. 回答1: If you want to have them external to the application you'll probably have to write a custom module. This isn't as bad as it sounds, check out