disable java security alerts from oracle 11g forms application - java

I have developed one application in oracle forms 11g and it has been published on oracle middleware 11g (oracle Weblogic server 11g). In this application I am using Webutility tool as well.
whenever I am trying to run the application it gives me 3 to 4 alerts as "Do you want to run this application?". Each time we have to check "I accept the risk and want to run this application." then click on Run button. actually it is irritating for the end users. Is there any way to avoid these kinds of alerts while opening the application.

Create and deploy a Deployment Rule Set (DRS).
https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/deployment_rules.html

Related

WebLogic Upgrade Causes JDBC DataSource to fail

My company uses a commercial web tool that we host on-site. It uses a Java backend and runs out of WebLogic. We recently did an upgrade to the tool and part of it was an upgrade from WebLogic 12.1.1 to 12.1.3. After the upgrade we noticed that we started getting consistent errors when it tried to do certain things.
From WebLogic's log file:
java.sql.SqlException: [FMWGEN][SQLServer JDBC Driver]Object has been closed.
The database is SQL Server 2012 Enterprise Edition (SP3) and running on a Windows Server 2012 box. It appears to only happen when the tool does a SELECT statement against a synonym to another SQL box. If I make that synonym point to something locally, it works. I have verified that Enable XA Transactions is still enabled (as it was before the upgrade).
Sadly, I am unable to turn to the company of the tool since our use of synonyms is not supported with there system. Nothing changed with the database server - what could the issue be?

Laravel Application on Oracle WebLogic Server

please i need someone to highlight firstly how i could execute php 5.x on Oracle Weblogic J2EE server and the settings required if any...
its a java based environment and i'm wondering how i could get this up and running seamlessly.
if you could provide in details the process required to get Apache working, alongside PHP, my intentions is to use it as the base for a Laravel application i'm currently working on and utilize Oracle as the backend database model...
any ideas ?

Is it possible to run two servers on a same system simultaneously? Or how can I execute a MySQL query in Eclipse while XAMPP/WAMP is not running?

I have two questions, for those which I did not get any solution sounds good for my expectations.
1. Why both XAMPP/WAMP and Apache Tomcat?
Assume if I am now running a Windows system, with Eclipse LUNA.
Now, if I have to run a query for my localhost server, how does Eclipse help?
I won't be satisfied if you say there should be an XAMPP server running live for your query to execute in Eclipse(Like they say here Database Development Using the Eclipse IDE, MySQL with Eclipse Data Tools Platform in Java).
Then why Tomcat is there?
Sorry if there is some loop hole, or may be this is a Banana-Monkey` type question. All because I don't get it clear.
And now, my second question.
2. How can I(Is it possible to) run a Java project in Eclipse with Apache Tomcat while WAMP/XAMPP is running in background in my system?
Suppose I am on the same system working with different user privileges. Say user1 runs both the XAMPP and Eclipse As Administrator. Now (or anyhow) is it possible to run a project in Apache Tomcat while WAMP/XAMPP is running in background simultaneously in the system?
I am totally confused. Helps with your comments and answers are appreciated.
Thank you.
Yes it is possible to run two servers on same system simultaneously.
Yes you can execute a MySQL query when XAMP/WAMP is not running.
It seems you don't understand your setup and the elements involved.
XAMP/WAMP contains Apache server, so a http server that can handle static html or run php scripts. It also comes with a MySQL database.
So the only important part from the Java WebAPP is the MySQL. You can start MySQL without starting apache, you can finally install MySQL yourself (it has simple windows installer). But if your application is using MySQL it has to be running for it to work (be it a XAMP version or standalone version).
Your Java Web Application requires application container to run, and it is the Tomcat. It is Apache Tomcat as it is developed under apache groupe, but it is not the same as Apache web server.
So you need tomcat to run your web app. Again you can install one yourself or use the one that comes toghether with Eclipse.
You can have many tomcats at the same time, all running (for example different version of Tomcats or Java) as long as they listen on different ports. The ports on which tomcat is runing is configured in its server.xml file under conf directory.

Alternative (cloud) deployment options for a console application

I have a fairly large console application written in Java 7 that manages a fair amount of our order processing.
The application consumes a number of web services for orders, interfaces with a database and inserts data into an ERP system. The requirements of the application specified no user interaction, so Java EE was not considered during project planning.
That being said, one of the initiatives this year is to look to the cloud for ways to eliminate cost and improve efficiency. As such I am trying to determine if a console based application can be deployed to a cloud service such as OpenShift or Heroku with little to no changes.
So, the question is: Can a Java console application be deployed to a cloud service or application server with little to no changes?
--Edit--
As mentioned below it is possible, but how? What resources should I look at to deploy a jar console application to an application server and have it run successfully?
yes it can be , atleast I tried the same with Jelastic and it worked quite well.
Please check the http://jelastic.com/docs/standalone-application for more details

How to automatically upgrade a Java application during its startup?

I have a Java 1.6 application deployed on several machines (~ 30), and started as a Windows service.
My main problem concerns the maintenance of these deployed artifacts: if I develop a new version of this application, I don't want to manually redeploy it on every machine.
Ideally, when the Windows service is starting, it checks on a remote server if an update exists, and if it is found, then it upgrades the application.
Note that it is acceptable that after this upgrade the service requires to be restarted again.
This mechanism can be compared to the Maven snapshot verification: if there is a newer version of a SNAPSHOT version on a remote repository, then Maven download it before running it.
Note that the application itself will be deployed on a Maven repository (in our case Nexus), so the check for an update will be done against this Nexus instance.
What are my technical solutions to implement such an automatically application update?
Do not hesitate to ask me more details about technical information or about the context...
Thanks.
Edit: As stated by Peter Lawrey, I can use Java Web Start. However, how can I integrate JWS within a Java application that is run as a Windows service?
I would look at Java Web Start
A common technique for this is to use a launcher. The steps are something like this:
Start the launcher.
The launcher checks to see if the application should be updated. If yes, the launcher updates the application (I think of this as "the update step").
After the update step, the launcher runs the application.

Categories