Webview in an Applet not working from a self signed jar - java

I have made an app using Java FX and WebView. Everything works fine when deployed as an application in a standalone jar. When I try to integrate the same as a browser embedded application (applet), I can see the interface which I've developed, but no URL is loading.
After googling, I came to know (from the JavaFX deployment documentation) that I have to sign my application. I did self sign my application and tried to run it. But it still did not work.
Do I have to obtain a secure certificate for running WebView in browser?
This browser embedded application is for internal usage and not for wide distribution.

Related

How to load a java web app in the terminal?

I have a java web app developed on Struts and deployed on a Tomcat server. I want to run commands and use the functions of the app using the console - something like in 'rails console' such that even if the server was not running, the entire app environment is loaded and the app is usable from the terminal itself.
I have tried Grails (Groovy) but couldn't figure out how to interface the java app with it as 'grails console' works for app developed on Grails.
How to go about doing this?

Java Security Setting block JavaFX 8 jnlp from running

I developed a javaFX 8 application and i need to view it with Java Web Start. Java security settings keeps blocking my application even after Self signing it. is there a way to resolve this issue?

Chrome packaged app using Java plugin

I am building a chrome packaged app and want to make use of a Java applet. I read in many places that there is a bug which will not allow Java applets to be loaded in chrome due to a proprietary protocol that Java doesn't recognize, namely, chrome-extension://
http://crbug.com/30258
I instead, hosted the java applet on a server alongside an html page that embeds the applet. Then in my packaged app, I am using a sandboxed web view tag to point to the externally hosted page that contains the applet. Through JavaScripts postMessage protocol, I can communicate to the applet indirectly. This worked about a month and a half ago. Since then, I have been unable to have the java applet load in the packaged app. I get Chrome's puzze-piece image and the error message:
This plugin only works on the desktop
I have been unable to load the applet as of recent.
Any ideas?

Converting a java web start application (jnlp) to an applet

I have a java application which is a java web start application. It is used to administer a remote server. Now I want to convert it to an applet to run in the browser. Is there an easy way to achieve this. What are my options to achieve this? By the way my java application stores and reads some conf files on the client file system. Would this be a problem if I run my application as an applet?
That shouldn't be too hard since Sun/Oracle introduced JNLP support for applets in version 6u10 (1.6.0_10).
In short:
Adapt your app to the applet lifecycle,
set the permissions correctly and
sign it with an official certificate.
(and of course embedd your applet in a web page)

Set permissions for GlassFish application (a war deployment)

I am totally new to java/GlassFish deployment. I am using solr for the search functions of my rails app. i can able to set the mater password for the domain from the shell. It was fine. It greets with authentication screen when i tried to launch GlassFish portal.
But i could't find how to set the permissions for my deployed solr war instance. Can someone help me how to do this?
There are a number of tutorials that outline what you need to do to secure a web app deployed onto GlassFish.
This is a tutorial on developing a secure a web app that you are creating in NetBeans for deployment onto GlassFish.
This is chapter from the Java EE 6 Tutorial describes how to secure access to a web app.

Categories