Java Security Exception list does not work - java

I have a problem with adding sites to the java security exception list.
According to the documentation (http://java.com/en/download/faq/exception_sitelist.xml) the exception list does exactly what I want.
Stop this stupid security message and let me use the application which I KNOW is secure.
Following setup:
Ubuntu Development machine, running application server with a little java applet on the login page (Do not ask why, I don't know thats how the application works).
If I use my local browser everything works fine.
But I have to test the site with Windows in an virtual box VM.
I have an IE8/Win7 image from modern.ie running.
I installed the latest java on this VM and every time I try to login the Java applet is blocked because of my security settings (yeah.. "my").
I added the hostname of my machine to the exception list in the java control panel (in the vm of course).
But this does not change anything it.
The application runs at http://myhost:1234/APPLICATION-NAME
I've added every possible combination to the exception list like:
http://myhost
http://myhost:1234 (with and without trailing /)
http://myhost:1234/APPLICATION-Name (with and without trailing /).
nothing worked.
Does anyone know if this exception list thing still works as stated on the FAQ page from oracle?
Why is there not a button named "oracle I know what I'm doing".

Related

Windows could not start service, Error 1053: The service did not respond to the start or control request in a timely fashion

I have created a Java program then I need to install it as windows service.
First I run the jar directly from console and it ran as I wish, then I compile the jar to exe and I ran it as Admin ran OK.
But when I run it from windows service I got following error,
Error 1053: The service did not respond to the start or control request in a timely fashion
I also tried to set Account and password on Log On Tab, but not resolved yet.
It's not possible to resolve the actual problem with the information given by you, so I will provide you the steps necessary to debug the problem.
Use logging in your application to see what causes the error: Apache Log4j
You can use the Windows Event Viewer to see what happens when you start your Windows Service. This is very useful if the problem happens before the start of the application itself.
Click on Start / Windows symbol, type Event Viewer and press Enter. In the left hand tree-menu, click Windows Logs and then Application.

How to run sudo poweroff in java

I am a jsp developer. I need to shut down my slow, unresponsive, laggy, (you get the point) development ubuntu "server" sometimes, when its keyboard stops responding to input. I already have tomcat configured properly, and even when my keyboard stops responding, I can use it as a server (accessing webpages served by tomcat). My idea is to make a jsp page that calls sudo poweroff. But I have no idea how to do that. I have tried
Runtime.getRuntime.exec("sudo poweroff");
but it does not work for me. I have already edited the sudoers file to allow the tomcat user to perform this action without requiring a password. How can I make this happen?
If the user running tomcat has sudo perms (w/o a password), it should be doable - but the call should be something like this:
Runtime.getRuntime().exec(new String[]{"sudo", "poweroff"});
The command and parameters can't all be passed in one big string.
Check out the docs for more info: https://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#exec(java.lang.String[])
PS: This is probably a bad idea. :)

How to stop java warning pop ups from appearing again and again

I have a self signed application, when i load it in browser it give this warning (Do you want to run this application) each time. I don't want this pop up to appear. I have tried all the settings in java configure setting.
https://www.java.com/en/download/help/java_blocked.xml
Java has further enhanced security to make the user system less
vulnerable to external exploits. Starting with Java 7 Update 51, Java
does not allow users to run applications that are not signed
(unsigned), self-signed (not signed by trusted authority) or that are
missing permission attributes.
WORKAROUND
It is highly recommended not to run these types of applications. However if you still want to run these apps, run only if you understand the risks and implications.
As a workaround, you can use the Exception Site list feature to run the applications blocked by security settings. Adding the URL of the blocked application to the Exception Site list allows it to run with some warnings.
Steps to Add URLs to the Exception Site list
Go to the Java Control Panel (On Windows Click Start and then Configure Java)
Click on the Security tab
Click on the Edit Site List button
Click Add in the Exception Site List window
Add url to Exception Site list
Click in the empty field under the Location field to enter the URL

Samsung Remote Test Lab application blocked by Java

I'm trying to get Samsung Remote Test Lab working on my Windows 8 machine, but I get an error whenever I try to run their JNPL file downloaded from the site:
"Application Blocked by Security Settings" : "Your security settings have blocked a self-signed application from running"
I've looked at adding an exception in the Java security settings, but don't know what address to specify in the exception.
Anyone come across this problem or suggestions on how to get around it?
I had the same issue on Mac.
I "solved" it by going to System Preferences -> Java -> Security and changing Security Level from High to Medium.
The other solution explained here would be adding the URL to the exception list.
The URL would be http://img-developer.samsung.com I think, I haven't tried that though.

Tomcat as service unable to work with system clipboard?

I made a password manager as java web application (Tapestry to be precise) and idea is as follows, when you click on button next to password label, the matching password should be copied to system clipboard. It works perfectly when I start tomcat the standard way (run startup.bat), but that's not what I need. I need my tomcat to start as Windows service at startup, but in this case, everything in my application works perfectly except coping to clipboard. No error occurs, nor I get anything wrong in the log, text just doesn't copy.
Can someone tell me why is this the case, and what can cause such behavior? Can it be that service doesn't have right to mess with clipboard and if so, can I make it work?
Any help is welcome
When tomcat runs as a service, it does not run was a user linked to the main windows GUI, so all the awt functionalities are disabled. The only way to get some of them back is to add
-Djava.awt.headless=true
to the tomcat startup parameters - see http://support.sas.com/kb/12/599.html
However, this may be not enough as each user has his own console, so tomcat will copy into its own user console - you should run tomcat with the same user as the local logged in user, making the "run as a .bat" the easiest option.

Categories