how to create a remote session EJB from a client

I started from scratch. The only difference I can think of is that instead of making an EJB application, I just made an EJB module for the bean. Otherwise, I think it’s the same. structure: thufir@dur:~/NetBeansProjects$ thufir@dur:~/NetBeansProjects$ tree HelloLibrary/ HelloLibrary/ ├── build.xml ├── nbproject │   ├── build-impl.xml │   ├── genfiles.properties │   ├── private │   │   … Read more

querying embedded database in netbeans using derby

You told us I have created an embedded database … and added data to it. Thus, this database must be visible in Netbeans Services. NO ;create=true ! You should connect with the same URL you see in the properties. Nothing more. Expand Database URL or look at the bottom. con = DriverManager.getConnection(“jdbc:derby:C:/Dokumente und Einstellungen/Administrator/.netbeans-derby/sample”,”app”,”app”); In … Read more

How to integrate codeIgniter with netbeans fully

If you just want auto-complete of functions then this will do it for you. 1) Create a folder in Netbeans called ‘autocomplete‘ in ‘Source Files‘ 2) Create two files in here called something like ci_code_completion_controllers.php and ci_code_completion_models.php Add this into each file; <?php /** ********* CONTROLLERS ********* * @property CI_DB_active_record $db * @property CI_DB_forge $dbforge … Read more

Glassfish error when producing JSON

It’s a bug in Glassfish 4.1.1 https://java.net/jira/browse/JERSEY-2888 I was able to fix it in a dirty way: In glassfish/modules/org.eclipse.persistence.moxy.jar fix META-INF/MANIFEST.MF Just append the following to Import-Package: ,org.xml.sax.helpers,javax.xml.parsers;resolution:=optional,javax.naming;resolution:=optional so it looks like after: and restart GF btw: you can easy edit jars in terminal with emacs org.eclipse.persistence.moxy.jar

Styling a JavaFX 2 button using FXML only – How to add an image to a button?

Solution using only fxml As tarrsalah points out, css is the recommended way of doing this, though you can also do it in fxml if you prefer: <?import java.lang.*?> <?import java.util.*?> <?import javafx.scene.control.*?> <?import javafx.scene.image.*?> <?import javafx.scene.layout.*?> <?import javafx.scene.paint.*?> <?import javafx.scene.text.*?> <AnchorPane id=”AnchorPane” maxHeight=”-Infinity” maxWidth=”-Infinity” minHeight=”-Infinity” minWidth=”-Infinity” prefHeight=”400.0″ prefWidth=”600.0″ xmlns:fx=”http://javafx.com/fxml”> <children> <Button layoutX=”104.0″ layoutY=”81.0″ mnemonicParsing=”false” … Read more

Error starting Tomcat from NetBeans – ‘127.0.0.1*’ is not recognized as an internal or external command

Assuming you are on Windows (this bug is caused by the crappy bat files escaping), It is a bug introduced in the latest versions (7.0.56 and 8.0.14) to workaround another bug. Try to remove the ” around the JAVA_OPTS declaration in catalina.bat. It fixed it for me with Tomcat 7.0.56 yesterday. In 7.0.56 in bin/catalina.bat:179 … Read more

Can’t make Jackson and Lombok work together

If you want immutable but a json serializable POJO using lombok and jackson. Use jacksons new annotation on your lomboks builder @JsonPOJOBuilder(withPrefix = “”) I tried this solution and it works very well. Sample usage import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder; import lombok.Builder; import lombok.Value; @JsonDeserialize(builder = Detail.DetailBuilder.class) @Value @Builder public class Detail { private String url; … Read more