glassfish-4

HTTP Status 500 - Internal Server Error on Glassfish

时间秒杀一切 提交于 2020-01-07 03:19:27
问题 I recently changed my domain SSL certificate since the old one was expiring. The certificate was successfully installed on glassfish and I my application was up and running. The challenge comes in whenever I log in to glassfish admin console , I get " HTTP Status 500 - Internal Server Error " . I use ubuntu 14.04 server. Any help will be highly appreciated. 回答1: I had the same problem after updating the SSL-certificate on my servers... After I run the following command in the admin console I

Running JUnit Tests on embedded glassfish 4 causing WARNING: AS-CDI-005

孤街醉人 提交于 2020-01-05 07:51:43
问题 I want to run JUnit Tests on an Embedded Glassfish 4 using CDI. It end up with an endless loop of the following output: WARNING: AS-CDI-005 Okt 22, 2013 4:49:23 PM org.glassfish.weld.BeanDeploymentArchiveImpl handleEntry Can anybody help Chears 回答1: What worked for me is putting your app name in the properties when creating the EJB container Map<Object, Object> properties = new HashMap<Object, Object>(); properties.put(EJBContainer.APP_NAME, "your_app_name"); EJBContainer ejbContainer =

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:"

javax.ejb.EJBException java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName

一个人想着一个人 提交于 2020-01-02 20:13:13
问题 I'm working on a JavaEE application with EJB. I have an Entity called Medico which code is: @Entity public class Medico implements Serializable{ /** * */ private static final long serialVersionUID = 1L; /** * */ public Medico(String nome_medico, String morada_medico, String esp, GregorianCalendar dnasc_medico, int tel_medico) { //construtor parametrico super(); this.nome_medico = nome_medico; this.morada_medico = morada_medico; this.esp = esp; this.dnasc_medico = dnasc_medico; this.tel_medico

Glassfish 4 Admin not running from Netbeans 7.4 (Password Incorrect)

若如初见. 提交于 2019-12-28 20:43:22
问题 I am trying to run Glassfish 4 using Netbeans 7.4 IDE, but I am receiving an error dialog like Please check server admin user name and password properties. Also please check the server log file for other possible causes. I am passing the correct user name and password, I have ensured the same by running the glassfish 4 from the windows command prompt, it is running properly, but it is not running from Netbeans 7.4 Server log also attached for your reference. [2013-08-21T21:09:02.736+0530]

Tables for entities with boolean fields not created

≯℡__Kan透↙ 提交于 2019-12-25 13:17:11
问题 i tried to switch a connection pool in GlassFish 4 from MySQL to Derby. I am using Spring-Data-JPA with JPA/Hibernate. The problem is that not all tables are created with the derby pool. The tables for entities which have at least one boolean field are not created. I found nothing in the log files. :( My applicationContext.xml: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema

glassfish 4.0 admin console connection pool ping fails

穿精又带淫゛_ 提交于 2019-12-25 04:19:58
问题 With this error: Ping Connection Pool failed for postgreSQLPool. Connection could not be allocated because: FATAL: database "/localhost:5432/mydatabase" does not exist Pool configuration is as follows: Pool Name: postgreSQLPool Resource Type: javax.sql.ConnectionPoolDataSource Datasource Classname: org.postgresql.ds.PGConnectionPoolDataSource portNumber: 5432 databaseName: myDatabase datasourceName: myDatabaseDS roleName: myRole networkProtocol: jdbc:postgresql: serverName: //localhost user:

Change index.html for index.jsp (JavaEE+Glassfish)

你。 提交于 2019-12-25 02:44:25
问题 I have a little problem. Is it possible 'delete' index.html and create (to replace index.html) index.jsp? How? I don't find any files (web.xml, glassfish-resource.xml) with the address to the home page (index.html) to change it (for index.jsp). I have not found an answer on the Internet... Thanks for replies! 回答1: What you need is to configure the welcome-file-list for your application. By default, it's index.html, which is why you don't find anything defining it. Take a look at web.xml

Primefaces DataTable+LazyDataModel won't pass setPropertyActionListener in request scope

百般思念 提交于 2019-12-24 18:58:06
问题 I have a Primefaces DataTable based on LazyDataModel. I successfully managed to load data in the table but I am not being able to use setPropertyActionListener to show the selected items in a Dialog nor to edit rows. I am using request scope and I noticed this issue seems to be solved in session scope, but I would rather use the former (View scope won't even load data in the table). I already tried to override getRowData and getRowKey methods but they don't even get called. I have none of

Where is the Glassfish 4 upgrade tool

老子叫甜甜 提交于 2019-12-24 16:35:07
问题 I am trying to upgrade Glassfish 3.1.2.2 to 4.0 and according to the instructions the I should use the Upgrade tool. I have downloaded the glassfish zip and the upgrade tool is nowhere to be found. I have also looked in the update tool and it is not there. Anyone know where I can find it? 回答1: It is in the bin folder... But updating Glassfish 3 to Glassfish 4 doesn't make sense...just get Glassfish 4 from the official download site. 来源: https://stackoverflow.com/questions/20066992/where-is