glassfish

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

旧时模样 提交于 2020-01-05 07:13:03
问题 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

How to remotely connect to multiple Glassfish 4+ instances simultaneously?

左心房为你撑大大i 提交于 2020-01-05 03:08:24
问题 I am looking for a way to connect to multiple instances of Glassfish 4+ (JDK7-EE) simultaneously from a stand-alone Swing-based client (JDK7-SE). I successfully connect to a single instance by the following way: That's the construction of the initial context: private void connect(String address, String port) { System.setProperty("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory"); System.setProperty("com.sun.corba.ee.transport.ORBTCPTimeouts", "500:30000:20:"

JAX-RS Rest services stopped deploying on Eclipse Glassfish

女生的网名这么多〃 提交于 2020-01-04 14:02:21
问题 I've been developing a Jersey JAX-RS application on Glassfish 4.1.1 using Eclipse for about a year now. Earlier today, I was making some normal changes to some of the classes, but Eclipse was not updating the classes when I would try and do a build. I searched here on Stack Overflow, and found this answer. So I did the following steps: Project > Clean on the project you're working on. Project > Build Automatically - turned on so the code rebuilds in your workspace on saved changes. Window >

IDEA failed to start a local glassfish server

做~自己de王妃 提交于 2020-01-04 04:35:32
问题 I'm trying to start Glassfish 4.1 in Intellij IDEA 13.1.4. I've set basic settings in Run/debug configurations window - selected application server, jvm, put 2 artifacts to deploy, left startup/connection configurations default. When I try to start it the exception is thrown. Here is full stack trace: /home/glassfish/glassfish/bin/asadmin start-domain domain1 Detected server admin port: 4848 Detected server http port: 8080 [2014-11-14 03:09:49,839] Artifact ss-ear:ear: Server is no connected

Spring social /connect return 404

对着背影说爱祢 提交于 2020-01-04 03:59:26
问题 I'm trying to configure spring social inside my (maven)spring MVC secured(spring security) application but when I try to access /connect/ or /connect/providerid , I always get error 404 Here is my Glassfish server log when I try to access: Info: Mapped "{[/connect/{providerId}],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.web.servlet.view.RedirectView org.springframework.social.connect.web.ConnectController.connect(java.lang.String

What is the difference in java.lang.OutOfMemory: GC Overhead limit exceeded vs. java.lang.OutOfMemory: Multicast listener

こ雲淡風輕ζ 提交于 2020-01-04 02:07:28
问题 I am investigating the slowness in our application and eventually one of the instances in a cluster environment going down. Few weeks back I came across the error below: [#|2012-05-11T14:12:03.460-0400|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=89;_ThreadName=httpSSLWorkerThread-7311-0;_RequestID=7afaee11-c970-40dd-b5fb-29498af8e512;|StandardWrapperValve[LoginModule]: PWC1406: Servlet.service() for servlet LoginModule threw exception java.lang.OutOfMemoryError: GC

What are “Java EE 7 API Library” and “Java EE Web 7 API Library” and when to use them?

笑着哭i 提交于 2020-01-03 19:31:25
问题 I have a full-fledged Java EE project running on GlassFish 4.1 / Java EE 7 (NetBeans 8.0.2) not using Apache Maven. Depending upon the project functionality, the CDI dependency has to be added to both the projects/modules namely the EE module and the Web module (and a class library, if any). I have been confusing for a long time seeing people recommending to add either "Java EE 7 API Library" or "Java EE Web 7 API Library" to the compile-time class-path as a CDI dependency (these libraries

How to avoid network call when REST client and server are on the same server

喜夏-厌秋 提交于 2020-01-03 11:33:23
问题 I have a web application in which two of the major components are the website (implemented in Groovy and Grails) and a backend RESTful web service (implemented using JAX-RS (Jersey) and Spring). Both of these will be running in Glassfish. The website will make calls to the RESTful web service. In many cases, these components will reside on separate servers, so the website will make calls over the network to the RESTful web service. If, however, I run both applications in the same Glassfish

Maximum number of messages sent to a Queue in OpenMQ?

徘徊边缘 提交于 2020-01-03 03:22:17
问题 I am currently using Glassfish v2.1 and I have set up a queue to send and receive messages from with Sesion beans and MDBs respectively. However, I have noticed that I can send only a maximum of 1000 messages to the queue. Is there any reason why I cannot send more than 1000 messages to the queue? I do have a "developer" profile setup for the glassfish domain. Could that be the reason? Or is there some resource configuration setting that I need to modify? I have setup the sun-resources.xml

Change context path of an Entreprise Application (ear) in glassfish

a 夏天 提交于 2020-01-03 02:43:05
问题 It is possible to change the context path of a web application ( war ) in glassfish, but is there any solution to change the context path of an Entreprise application ( ear )? I tried to change it from glassfish-web.xml like this: <!-- Default context --> <context-root>/module1-web</context-root> <!-- New context --> <context-root>/erp/module1-web</context-root> but it does not work. I tried to change it from the server but there is no way to change it. Web application context path Is there