glassfish

persistence-unit, different hibernate.transaction.manager_lookup_class property

五迷三道 提交于 2020-03-03 06:05:46
问题 I have Java EE application, and my EJB module have persistence.xml . I deploy my app on 3 app servers: JBoss, GlassFish and WebLogic, and every server needs own hibernate.transaction.manager_lookup_class property. WL needs <property name="transaction.manager_lookup_class" value="org.hibernate.transaction.WeblogicTransactionManagerLookup" /> JBoss needs <property name="transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" /> Glass fish <property name

Glassfish adapter in Eclipse Juno missing

左心房为你撑大大i 提交于 2020-02-25 03:11:06
问题 So I have downloaded Glassfish Application Server bundle from below site in my Eclipse Juno EE. http://download.java.net/glassfish/eclipse/juno That contains App Server runtime and Glassfish server tools. I can see them in Installed Software so Im guessing they installed ok. However when I want to add new Server instance, Glassfish is missing from the server adapters list for some reason. I researched it online and did in few different ways as well (ie. dwonload from Eclipse marketplace or

Glassfish adapter in Eclipse Juno missing

点点圈 提交于 2020-02-25 03:10:09
问题 So I have downloaded Glassfish Application Server bundle from below site in my Eclipse Juno EE. http://download.java.net/glassfish/eclipse/juno That contains App Server runtime and Glassfish server tools. I can see them in Installed Software so Im guessing they installed ok. However when I want to add new Server instance, Glassfish is missing from the server adapters list for some reason. I researched it online and did in few different ways as well (ie. dwonload from Eclipse marketplace or

IBM MQ v8 and Glassfish local setup port configuration issue

点点圈 提交于 2020-02-24 12:44:06
问题 Given the following local setup: IBM WebSphere MQ Advanced for Developers V8.0 Payara 4.1.2.172 I'd like to connect to the local queue manager via JMS on other than the default port (1414). In spite I added several properties to the connection factory to configure port 1415, it seems that the server is still trying to connect via port 1414, as Payara constantly throws java.net.ConnectException . The relevant part of my domain.xml: <connector-connection-pool resource-adapter-name="wmq.jmsra"

Netbeans 11.2: No suitable Deployment Server is defined for the project or globally

假装没事ソ 提交于 2020-02-24 11:48:57
问题 I installed Netbeans 11.2 IDE on my Mac. Under Services -> Servers I added GlassFish Server as a server. Then I opened a maven project. I could "clean and build" it. Then I wanted to run it but this resulted in the following error message: No suitable Deployment Server is defined for the project or globally. I guess this has something to do with the following: there is a window in Netbeans called "Output - Java DB Database Process" and when I started the GlassFish Server the window showed me

Arquillian: Adding beans.xml causes “ArquillianServletRunner not found”

余生长醉 提交于 2020-02-23 09:40:31
问题 I am using Arquillian[1] for testing my J2EE-App in an embedded glassfish environment inside Eclipse[2]-IDE. package test.java; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.junit.Arquillian; import org.jboss.shrinkwrap.api.ArchivePaths; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.jboss.shrinkwrap.api.spec.WebArchive; import org.junit.Assert; import org.junit.Test; import org.junit.runner

glassfish: while deploying the app IOException: invalid zip file

妖精的绣舞 提交于 2020-02-15 10:10:14
问题 In deploying the EAR through the CLI, this error occurs: Exception while deploying the app [EnterpriseLegacy] : java.io.IOException: invalid zip file: file:/home/thufir/glassfish-4.1/glassfish/domains/domain1/application /EnterpriseLegacy/lib/RemoteEJB.jar and yet, Netbeans deploys the same EAR fine from within the IDE. I think the problem is that the EJB module depends on a remote interface, RemoteEJB which builds as a JAR. This JAR is included with the EAR, but I don't believe that's

Proxool java.lang.NoClassDefFoundError

大城市里の小女人 提交于 2020-02-06 08:16:05
问题 I just started using Proxool (JDBC Connection Pool manager). I downloaded the jar which is found at the following link: http://proxool.sourceforge.net/download.html. After that, I just added the jar location into the ClassPath in netbeans 7.0.1, built the project, restarted my server (which is Glassfish) and then tried to configure it as this example shows: https://java2s.com/Open-Source/Java/Database-JDBC-Connection-Pool/proxool/org/logicalcobwebs/proxool/ProxoolDataSourceTest.java.htm I

在GlassFish服务器上安装SSL证书教程

旧巷老猫 提交于 2020-02-04 04:41:05
首先你得有SSL证书,没有的可以到腾讯云和阿里云申请免费SSL证书(参考: 阿里云、腾讯云免费SSL域名证书申请教程 ),或者购买SSL证书。 背景信息 本文档证书名称以cer01为示例,如证书文件名称为cer01.pem,证书密钥文件名称为cer01.key。 操作步骤 1、在SSL证书页面,单击已签发标签,定位到需要下载的证书并单击证书卡片右下角的下载。 2、定位到其他服务器类型,并单击右侧操作栏的下载将证书压缩包下载到本地。 3、解压已下载保存到本地的证书文件。您将看到文件中有一个证书文件(以.pem为后缀或文件类型)和一个密钥文件(以.txt为后缀或文件类型)。 4、输入以下两行命令将证书和密钥文件转换成JKS格式。 openssl pkcs12 -export -in cer01.pem -inkey cer01.key -out temp.p12 -passout pass:changeit -name s1as #请用您的证书名称替换命令行中cer01.pem、用您的证书密钥替换cer01.key。转换证书格式时设置的密码必须和您Glassfish服务器中自带的证书密码一致,该证书默认密码是changeit。 keytool -importkeystore -srckeystore temp.p12 -srcstoretype PKCS12 -srcstorepass

Java EJB JNDI Beans Lookup Failed

♀尐吖头ヾ 提交于 2020-02-02 11:31:07
问题 I have the following structure in place: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.screening</groupId> <artifactId>screening</artifactId> <version>1.0-SNAPSHOT</version> <packaging>pom</packaging> <name>Screening Java Parent</name> <modules> <module>Module1</module> <module>Module2<