glassfish-4

JSF 2.2 - File upload return java.lang.NullPointerException

蓝咒 提交于 2021-02-11 18:26:37
问题 <h:inputFile/> return a NullPointerException error. I know there is already a lot of stuff about this exception and uploading files with JSF but I've read it all without any success to diagnose this problem. I am using JSF 2.2 with GlassFish 4.1.1, without PrimeFaces or Tomahawk since you can handle the file upload with JSF 2.2. as I read. The goal is just to upload a picture on the remote filesystem, and copy the path to the DB to retrieve it later through a datatable. I've already checked :

JSF 2.2 - File upload return java.lang.NullPointerException

核能气质少年 提交于 2021-02-11 18:25:59
问题 <h:inputFile/> return a NullPointerException error. I know there is already a lot of stuff about this exception and uploading files with JSF but I've read it all without any success to diagnose this problem. I am using JSF 2.2 with GlassFish 4.1.1, without PrimeFaces or Tomahawk since you can handle the file upload with JSF 2.2. as I read. The goal is just to upload a picture on the remote filesystem, and copy the path to the DB to retrieve it later through a datatable. I've already checked :

How do i reset the forgotten password of glassfish server 4

限于喜欢 提交于 2021-02-08 14:25:29
问题 Recently, i change the password for admin, and unfortunately i don't remember the password of my glassfish server 4. How, can i reset the password. I've followed the instruction provided in the following link "https://superuser.com/questions/7654/how-to-reset-delete-my-glassfish-password", but it didn't help me. i went to this path "../glassfish4/glassfish/domains/MyDomain/config/" and change the "admin-keyfile" file, but still it didn't help me. 回答1: Finally, after few hours of posting the

Passing redirect-param in faces-config in jsf-2.2

倾然丶 夕夏残阳落幕 提交于 2021-02-07 17:10:04
问题 In old jsf the following code was working <navigation-rule> <from-view-id>/page1.xhtml</from-view-id> <navigation-case> <from-outcome>true</from-outcome> <to-view-id>/page2.xhtml</to-view-id> <redirect> <view-param> <name>id</name> <value>#{myBean.id}</value> </view-param> </redirect> </navigation-case> </navigation-rule> page1.xhtml code : <f:metadata> <f:viewParam id="id" name="id" value="#{myBean.id}" /> <f:viewAction action="#{myBean.init()}"/> </f:metadata> Java code : public class

Passing redirect-param in faces-config in jsf-2.2

烈酒焚心 提交于 2021-02-07 17:09:00
问题 In old jsf the following code was working <navigation-rule> <from-view-id>/page1.xhtml</from-view-id> <navigation-case> <from-outcome>true</from-outcome> <to-view-id>/page2.xhtml</to-view-id> <redirect> <view-param> <name>id</name> <value>#{myBean.id}</value> </view-param> </redirect> </navigation-case> </navigation-rule> page1.xhtml code : <f:metadata> <f:viewParam id="id" name="id" value="#{myBean.id}" /> <f:viewAction action="#{myBean.init()}"/> </f:metadata> Java code : public class

Database creation not working in eclipselink with glassfish 4 and Postgres

别来无恙 提交于 2021-01-27 13:11:33
问题 I want to create the database based on Entities. Configuration: Glassfish: GlassFish Server Open Source Edition 4.1 (build 13) Eclipselink: Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd (delivered with glassfish) Database: PostgreSQL Version: 9.4.2 Driver: PostgreSQL Native Driver Version: PostgreSQL 9.4 JDBC4.1 (build 1201) From the moment eclipselink starts creating the database I see the following statements in the logs after putting a lot of log parameters on finest: SELECT ID

How to deploy Spring boot application on Glassfish 4.1.1

纵饮孤独 提交于 2021-01-27 06:58:20
问题 Am trying to deploy a Spring Boot application on GlassFish 4.1.1, but unable to do so. I have seen and read many posts here about similar problem, but none of them seem to post a workaround that works for me. My pom looks like this <?xml version="1.0" encoding="UTF-8"?> <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<

Where would i put .war file in glassfish server?

别来无恙 提交于 2020-07-24 02:31:07
问题 I have started WebApplication1 from netbeans, now where would i put the .war file in glassfish server? Here? /home/shibly/GlassFish_Server/glassfish/domains/domain1/applications/__internal I see an empty folder named WebApplication1 in /home/shibly/GlassFish_Server/glassfish/domains/domain1/applications/__internal 回答1: Try entering http://localhost:4848 in your web browser, where you'll enter the GlassFish Administration Console. On the left side do the following Applications --> Deploy -->

Where would i put .war file in glassfish server?

旧时模样 提交于 2020-07-24 02:29:11
问题 I have started WebApplication1 from netbeans, now where would i put the .war file in glassfish server? Here? /home/shibly/GlassFish_Server/glassfish/domains/domain1/applications/__internal I see an empty folder named WebApplication1 in /home/shibly/GlassFish_Server/glassfish/domains/domain1/applications/__internal 回答1: Try entering http://localhost:4848 in your web browser, where you'll enter the GlassFish Administration Console. On the left side do the following Applications --> Deploy -->

Where would i put .war file in glassfish server?

房东的猫 提交于 2020-07-24 02:28:59
问题 I have started WebApplication1 from netbeans, now where would i put the .war file in glassfish server? Here? /home/shibly/GlassFish_Server/glassfish/domains/domain1/applications/__internal I see an empty folder named WebApplication1 in /home/shibly/GlassFish_Server/glassfish/domains/domain1/applications/__internal 回答1: Try entering http://localhost:4848 in your web browser, where you'll enter the GlassFish Administration Console. On the left side do the following Applications --> Deploy -->