glassfish

Java EE installer crashing on Mac OS X Mavericks

时光怂恿深爱的人放手 提交于 2020-01-02 18:05:13
问题 Trying to install Java EE 7/Glassfish 4 on OS 10.9 Mavericks and it crashes every time. I have tried installing the Apple JDK and the Oracle JDK and neither work. Has anyone ran into this? I remember installing on 10.8 and it worked just fine. Thanks! Environment Variables: $ echo $JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home Output: $ chmod +x java_ee_sdk-7-jdk7-macosx-x64.sh $ ./java_ee_sdk-7-jdk7-macosx-x64.sh Extracting the installer archive... Extracting the

How to create a @Singleton bean that implements a @WebService

China☆狼群 提交于 2020-01-02 10:15:30
问题 EDITED: after believing this is a NetBeans 7.0 editor bug. It still compiles and is deployable. I want to convert my webservice which is @WebService;@Stateless implementation into a @Singleton bean but when I replace the @WebService with @Singleton annotation... I get the image below in my IDE Editor of course when I do something silly like having both @WebService and @Stateless and deploy in glassfish I get: severe error: Annotations processing failed for... below is a link (there are more,

slf4j with glassfish is ignoring logback

爷,独闯天下 提交于 2020-01-02 08:28:27
问题 In a java-ee maven project I have I'm wanting to use slf4j with logback, however I believe inclusion of the 'glassfish-embedded-all' artifact from org.glassfish.extras is causing the JDK14LoggerAdapter to be used instead. Removing this artifact causes the logging to work as expected, however causes test failures due to java-ee api issues as described on this question - Testing against Java EE 6 API. The exact pom entry causing the problem, I believe, is: <dependency> <groupId>org.glassfish

Set project stage for JavaServer Faces with JNDI configuration/lookup in Glassfish v3

六眼飞鱼酱① 提交于 2020-01-02 07:08:32
问题 I'm trying to set the project stage for JavaServer Faces in a GlassFish application server v3 with a JNDI property. I set the stage property to Development stage, but my application received always the Production stage. I use GlassFish Server Open Source Edition 3.1 (build 43) on a windows system. For rendering the project stage in the JSF page I use this: <h:outputText value="Stage:#{facesContext.application.projectStage}"/> Is anything else necessary to use the project stage in an

How to access EJB on remote server?

我与影子孤独终老i 提交于 2020-01-02 07:04:33
问题 I am using a GlassFish-3.1.2 server running in my subnet (192.168.1.3:3700). I already deployed an enterprise app including an EJB in which i defined a business method. Now I want to remotely access the EJB from my java application client. How do i have to setup the JNDI resp. the InitialContext object for doing the lookup of the EJB ? How do I need to define the properties? Btw. I had to run "asadmin enabled-secure-admin" in order to make the GlassFish server work on the LAN. Probably I also

Password Encryption Algorithm in Glassfish 4

你说的曾经没有我的故事 提交于 2020-01-02 03:29:13
问题 I've recently updated Glassfish from 3.1.2 to 4.0 and wanted to set up a JDBCRealm that I used before on my app which uses FORM based authentication. The passwords are hashed with SHA-256 in the database (that is the default Digest Algorithm option). The realm has a property that became mandatory in this Glassfish version: Password Encryption Algorithm. Quite incredibly, the official Glassfish documentation says it's optional, and the note under the input field says it is a risk to leave it

Password Encryption Algorithm in Glassfish 4

限于喜欢 提交于 2020-01-02 03:29:10
问题 I've recently updated Glassfish from 3.1.2 to 4.0 and wanted to set up a JDBCRealm that I used before on my app which uses FORM based authentication. The passwords are hashed with SHA-256 in the database (that is the default Digest Algorithm option). The realm has a property that became mandatory in this Glassfish version: Password Encryption Algorithm. Quite incredibly, the official Glassfish documentation says it's optional, and the note under the input field says it is a risk to leave it

The JavaEE 8 Tutorial, deploy failed on hello1 project

匆匆过客 提交于 2020-01-02 02:55:27
问题 I'm try to learn Java EE 8, I have followed the official guide at https://javaee.github.io/tutorial/ but I have this problem: --- cargo-maven2-plugin:1.4.4:redeploy (deploy) @ hello1 --- [DeployerRedeployMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-glassfish:jar:1.4.4 for container glassfish5x ------------------------------------------------------------------------ BUILD FAILURE ------------------------------------------------------------------------ Total time: 4

GlassFish (real) hot deployment of JSF pages and resources (CSS etc.) in Eclipse

a 夏天 提交于 2020-01-01 19:40:52
问题 We are wondering how to setup GlassFish 3.1.2 real hot deployment, that is not just the usual setting How can I hot deploy using the glassfish adapter in Eclipse but how to make it possible that the Eclipse GlassFish plugin will silently push changed XHTML, CSS, etc. files to the server as you save the file in Eclipse. How is it officially setup? Again, I tested this several times now, hot-deploying just-changed XHTML(/JSF), CSS files on save just doesn't work. When setting to Never publish

Trigger function when Undeploying application

谁说我不能喝 提交于 2020-01-01 16:59:57
问题 How do I automatically trigger Java function to stop Quartz scheduler jobs when I deploy/undeploy/redeploy JEE5 application in Glassfish. 回答1: Implement ServletContextListener and hook on contextDestroyed() . Basic example: public class Config implements ServletContextListener { public void contextInitialized(ServletContextEvent event) { // Write code here which should be executed on webapp startup. } public void contextDestroyed(ServletContextEvent event) { // Write code here which should be