Location of GlassFish Server Logs

In general the logs are in /YOUR_GLASSFISH_INSTALL/glassfish/domains/domain1/logs/. In NetBeans go to the “Services” tab open “Servers”, right-click on your Glassfish instance and click “View Domain Server Log”. If this doesn’t work right-click on the Glassfish instance and click “Properties”, you can see the folder with the domains under “Domains folder”. Go to this folder -> … Read more

Netbeans Shortcut to Open File

Updated I’m fairly certain you are referring to the “Quick File Chooser” plugin. As someone else points out, though, there are several other candidates. I list them below… The Quick File Chooser Plugin: By default CTRL–SHIFT–O opens the Open Project dialog, and once the plugin is installed, you will get the dialog pictured here automatically: … Read more

Configure JPA to let PostgreSQL generate the primary key value

Given the table definition: CREATE TABLE webuser( idwebuser SERIAL PRIMARY KEY, … ) Use the mapping: @Entity @Table(name=”webuser”) class Webuser { @Id @SequenceGenerator(name=”webuser_idwebuser_seq”, sequenceName=”webuser_idwebuser_seq”, allocationSize=1) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator=”webuser_idwebuser_seq”) @Column(name = “idwebuser”, updatable=false) private Integer id; // …. } The naming tablename_columname_seq is the PostgreSQL default sequence naming for SERIAL and I recommend that you … Read more

The JDK is missing and is required to run some NetBeans modules

Find the file [netbeans installation directory]/etc/netbeans.conf Luckily, Linux has a find helper like find /home/ -name “netbeans.conf, in which you can change the /home/ to a location where you want to search. I found it at /usr/local/netbeans-8.1/etc/netbeans.conf Once, you found the file, the following property needs to be set: netbeans_jdkhome=”[jdk_path]” where you can find the … Read more