Launching applications in Client Machines in Portlets
I need to launch the applications running in client machine for eg . Command ,
Notepad etc, within the Portlet using weblogic portal server 8.1 . How do i implement
the same?
Hi Mani,
Please have a look at the pre and post installation guides available here:
SAP Access Control 10.0 [original link is broken]
Regards,
Luis
Similar Messages
-
Deployment of JavaFX Web application on client machine(Windows OS.)
Problem Statement:
Deployment of JavaFX Web application on client machine(Windows OS.)
Error: unable to load the native libarary(JNI Windows dll) i.e. throws java.lang.UnsatisfiedLinkError exception.
Problem Description:
I have create the JavaFX application which have dependency on Native library written in Java Native Interface(JNI).
When the application is deployed on Apache 6.0 Tomcat Server(Copied .html file *.jnlp file and .jar file) and when client machine hit the html page in internet explorer version 8.0 its throws the following error(java.lang.UnsatisfiedLinkError: no JNIHelloWorld in java.library.path)
Note:
I have created the jar file which have my "JNIHelloWorld' native library dll in root directory. I have signed the jar with same signature which i have used for signing for my application Jar file.
I have mentioned the native library jar in JNLP file resource keyword as follows:
<resources os=Windows>
<nativelib href="JNIHelloWorld.jar" download="eager" />
</resources>
The complete jnlp file content is in "JavaFXApplication.jnlp file:" section below.
The description of error is as follows:
Match: beginTraversal
Match: digest selected JREDesc: JREDesc[version 1.6+, heap=-1--1, args=null, href=http://java.sun.com/products/autodl/j2se, sel=false, null, null], JREInfo: JREInfo for index 0:
platform is: 1.7
product is: 1.7.0_07
location is: http://java.sun.com/products/autodl/j2se
path is: C:\Program Files\Java\jre7\bin\javaw.exe
args is: null
native platform is: Windows, x86 [ x86, 32bit ]
JavaFX runtime is: JavaFX 2.2.1 found at C:\Program Files\Java\jre7\
enabled is: true
registered is: true
system is: true
Match: ignoring maxHeap: -1
Match: ignoring InitHeap: -1
Match: digesting vmargs: null
Match: digested vmargs: [JVMParameters: isSecure: true, args: ]
Match: JVM args after accumulation: [JVMParameters: isSecure: true, args: ]
Match: digest LaunchDesc: http://10.187.143.68:8282/KPIT/JavaFXApplication20.jnlp
Match: digest properties: []
Match: JVM args: [JVMParameters: isSecure: true, args: ]
Match: endTraversal ..
Match: JVM args final:
Match: Running JREInfo Version match: 1.7.0.07 == 1.7.0.07
*Match: Running JVM args match: have:<> satisfy want:<>*
*java.lang.UnsatisfiedLinkError: no JNIHelloWorld in java.library.path*
* at java.lang.ClassLoader.loadLibrary(Unknown Source)*
* at java.lang.Runtime.loadLibrary0(Unknown Source)*
* at java.lang.System.loadLibrary(Unknown Source)* at javafxapplication20.JavaFXApplication20.<clinit>(JavaFXApplication20.java:41)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.sun.javafx.applet.FXApplet2.init(FXApplet2.java:63)
at com.sun.deploy.uitoolkit.impl.fx.FXApplet2Adapter.init(FXApplet2Adapter.java:207)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Java Plug-in 10.7.2.11
Using JRE version 1.7.0_07-b11 Java HotSpot(TM) Client VM
User home directory = C:\Users\io839
Please find my native library code and JavaFX application code:
Native library JNI Code:
JavaFXApplication.java:
JNIEXPORT jstring JNICALL Java_javafxapplication_SampleController_printString(JNIEnv *env, jobject envObject)
string str = "hello JNI";
jstring jniStr = env->NewStringUTF(str.c_str());
return jniStr;
JavaFX Application code:
JavaFXApplication.java:
package javafxapplication;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class JavaFXApplication extends Application {
@Override
public void start(Stage stage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("Sample.fxml"));
Scene scene = new Scene(root);
stage.setScene(scene);
stage.show();
* The main() method is ignored in correctly deployed JavaFX application.
* main() serves only as fallback in case the application can not be
* launched through deployment artifacts, e.g., in IDEs with limited FX
* support. NetBeans ignores main().
* @param args the command line arguments
public static void main(String[] args) {
launch(args);
static{
System.loadLibrary("JNIHelloWorld");
SampleController.java file:
package javafxapplication;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Label;
public class SampleController implements Initializable {
@FXML
private Label label;
private native String printString();
@FXML
private void handleButtonAction(ActionEvent event) {
System.out.println("You clicked me!");
String str = printString();
label.setText(str);
@Override
public void initialize(URL url, ResourceBundle rb) {
// TODO
//String str = printString();
JavaFXApplication.jnlp file:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="JavaFXApplication.jnlp">
<information>
<title>JavaFXApplication20</title>
<vendor>io839</vendor>
<description>Sample JavaFX 2.0 application.</description>
<offline-allowed/>
</information>
<resources>
<jfx:javafx-runtime version="2.2+" href="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
</resources>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="JavaFXApplication.jar" size="20918" download="eager" />
</resources>
<resources os=Windows>
<nativelib href="JNIHelloWorld.jar" download="eager" />
</resources>
<security>
<all-permissions/>
</security>
<applet-desc width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback" name="JavaFXApplication" >
<param name="requiredFXVersion" value="2.2+"/>
</applet-desc>
<jfx:javafx-desc width="800" height="600" main-class="javafxapplication.JavaFXApplication" name="JavaFXApplication" />
<update check="always"/>
</jnlp>No problem.
Make sure your resources are set at the proper location. Could be that tje jni.jar is under a 'lib' folder?
Normally you don't have to worry about deployment a lot if you are using like Netbeans 7.2 or higher.
When you press 'Clean and build' it creates your deployed files in the 'dist' folder.
You can change specification by adapting the build.xml file.
Of course lot of different possibilities are available for deployment!
You can find lot of info here:
[http://docs.oracle.com/javafx/2/deployment/jfxpub-deployment.htm|http://docs.oracle.com/javafx/2/deployment/jfxpub-deployment.htm]
Important to know is if you want to work with
- a standalone application (self-contained or not)
- with webstart
- or with applets
(In my case I'm using webstart, but also Self-Contained Application Packaging (jre is also installed!) -
Unable to launch application on Linux machine
Hi,
We have a Java based product developed as desktop application. This product has a tree structure built-in. and while connecting to few of the nodes, we are getting the following error: "*Cannot write XdndAware property*".
Note:
1. We are running the application on a Linux machine.
2. We are using JNLP to launch the application.
3. Only few nodes are causing this issue.
4. Tried putting -DsuppressSwingDropSupport=true in JNLP file, but no progress.
5. This happens on JDK1.6.0_23 and above
Can someone help us to resolve this issue.
Thank you.
Regards,
KNPLet me explain my current requirement.
1. All the client jars should be downloaded every time I click a link (as of now its a JNLP link, but this can change).
2. And this should be platform independent
3. I stated in the earlier description I should be able to pass arguments (suppressSwingDropSupport, etc) to VM to resolve the actual issue.
Can someone please suggest any other approach?
I have one more generic question: Can I write my own JNLP defining XSD & DTD, so that it can accept all the arguments whichever I can pass to the VM? If so, how to do this?
Please respond -
Unable to launch application from my machine:Bad MIME Type
Hi,
The following error message was printed when I tried to access the SwingSet2 demo from the Java Web Start site.
An error occurred while launching/running the application.
Title: SwingSet2
Vendor: Sun Microsystems, Inc.
Category: Download Error
Bad MIME type returned from server when accessing resource: http://java.sun.com/products/javawebstart/apps/SwingSet2.jnlp - text/html
Can you please suggest what is to be done to rectufy this problem?
Regards,
SatishBad MIME type returned from server when accessing
resource:
http://java.sun.com/products/javawebstart/apps/SwingSet
.jnlp - text/htmlit should return application/x-java-jnlp-file.
My guess is that you use proxy which messes up headers.
Otherwise try to reinstall Web Start, then enable the console and log output in Web Start's advanced preferences to get more clues what's going on.
Regards,
Marc -
Launch application like "word"
Hello all,
I have build an intranet with resin2.0.16 and JDK1.3.
And in this intranet i want to launch application on client PC.
I can run any application for the moment but only in the web server.
Is it possible to run application on the client pc ?
Thanks for reply
IbouddhaI suppose you could create an applet that launches a program on the client. You would have to sign it to get around the security restrictions.
-
Calling Activex from Flex -- Downloading activex on client machine.
Hi,
I am buling a webapplication(RIA) in flex and hosting it in IIS. I need to call an activex from this web application. Also when I try to access the application from client machine , I should be able to download the activex on client through application.
Please provide any possible help.what oleg2 is writins is oke but I think
it is easier to write you one wrap around this sql-call, because then you have to parse some parameters and do other additional stuff
PROCEDURE "P_EXECUTE_WORKFLOW"("P_WORKSPACE" IN VARCHAR2, "P_LOCATION_NAME" IN VARCHAR2, "P_WORKFLOW_NAME" IN VARCHAR2, "P_CUSTOM_PARAMS" IN VARCHAR2 DEFAULT '","', "P_SYSTEM_PARAMS" IN VARCHAR2 DEFAULT '","') ; -
Connecting to sql server database mdf file without installing sql server on client machine?
I am creating a window application that need to use sql server database. I want to install this application to client machine without installing sql server so that my application can still connect to a database i.e mdf file that i will be providing at client
system.
How can i connect to a database(mdf) on client machine through my window application without installing sql server. ? I dont know is it possible or not.
If possible what will be the connection string in that case. Database need not be used in network.you cant connect and view the internals of mdf file unless it being attached to a sql server instance as a database.
The sql server instance can be installed in any box which is in the same domain and then you can connect from your application to it.
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
JNLP and launching a Fat Client application (.exe)
Hi,
Is JNLP the correct technology to use if I want to launch a Fat Client application (Mozilla Firefox) from a portlet.
I realise I am jumping outside the whole portal and web environment by doing this but I want to make sure I am on the right track.
Are there any examples of this type of scenario that I could use and look at ? The examples I have seen thus far are all related to java based applications.
If someone could point me in the right direction I would be grateful.
Thanks,
Portal_Man.OK, I think I now know how to trick to not look for that dependency.
Please ignore the question. -
JavaFX application is cached on client machine
Hi,
I have a developed a browser embedded JavaFx application and deployed on a production machine. When I deploy a newer version of .jar file on production machine it is not updated on all client machines because the .jar file is cached. The only way the end user can get latest version of my javafx application is by clearing cache files from java control panel.
Is there a way I can force my application to always download the latest version of jar file from server?
Thanks,
SridharI have updated the java version on some of the boxes I've tested. I am now noticing that on some PC browsers with IE, the tabbing will only tab them through the browser and not the javafx application.
I am going to have to deploy as a webstart application for now.
I will have to work out the kinks later. -
Java Script in OAF to open a client machine Application
I was trying to use java script in OAF to open any kind of application located on client machine like notepad, calc etc..
Here is my original java script
<html>
<script Language="JScript">
function runcmd() {
File='mspaint.exe';
WSH=new ActiveXObject('WScript.Shell');
WSH.run(File);
</SCRIPT>
<input type="button" value="run" onclick="runcmd()"/>
<html>And my code OAF processRequest is
String s = "function runcmd() {File='mspaint.exe';WSH=new ActiveXObject('WScript.Shell');WSH.run(File);}";
//getting body bean
OABodyBean bodyBean = (OABodyBean)pageContext.getRootWebBean();
//attaching javascript function to page
pageContext.putJavaScriptFunction("runcmd", s);
// calling this function on load of body bean
String javaS = "javascript:runcmd();";
bodyBean.setOnLoad(javaS);And when run it doesn't open application.
Also can the java script be attached to a button click.
Thanks
Edited by: user11376651 on Aug 25, 2011 6:36 AM
Edited by: user11376651 on Aug 26, 2011 7:30 AMhi
I see that you are using ActiveXObject , it works only in IE 6 or earlier versions try using XMLHTTPREQUEST. -
Send the auto mail Attachment using client machine outlook application
Hi all,
we are using the following EBS & Database
Database Server
RDBMS : 11.2.0.3.0
Oracle Applications : 12.1.2
i would like to send the file as a attachment using client machine outlook application.
the(.TXT) file has generated by the concurrent program and stored in the oracle server in specific oracle DB directory path. now my requirement is after generating the file then same file has to send mail to specific mail id using client machine outlook application.can anybody suggest me how to do this
(i tried to send mail using UTL_SMTP.DATA but this standard procedure is allowing the file attachment size up to KB only.)
Thanks in advance.kknr wrote:
Hi all,
we are using the following EBS & Database
Database Server
RDBMS : 11.2.0.3.0
Oracle Applications : 12.1.2
i would like to send the file as a attachment using client machine outlook application.
the(.TXT) file has generated by the concurrent program and stored in the oracle server in specific oracle DB directory path. now my requirement is after generating the file then same file has to send mail to specific mail id using client machine outlook application.can anybody suggest me how to do this
(i tried to send mail using UTL_SMTP.DATA but this standard procedure is allowing the file attachment size up to KB only.)
Thanks in advance.Please see old threads for the same topic/discussion.
https://forums.oracle.com/forums/search.jspa?threadID=&q=Send+AND+Email+AND+Attachment+AND+Concurrent&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
https://forums.oracle.com/forums/search.jspa?threadID=&q=Send+AND+Email+AND+Output+AND+Concurrent&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
Writing into a file in clients' machine from a jsp application
is it possible to write some data fetched from database into a .CSV file on the clients machine from an JSP application?
signed applets is one possibility , any other possibilities are there?
thanks
Mohammed Rafeeq([email protected])* @(#)ExcelServlet.java
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;
import java.util.*;
import java.sql.*;
* @author M.Rajendra
public class ExcelServlet extends HttpServlet {
public void init(ServletConfig config)throws ServletException{
super.init(config);
} // end of init method
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException,IOException {
doPost(req,res);
} // end of doGet method
public void doPost(HttpServletRequest req,HttpServletResponse res)
throws ServletException,IOException {
HttpSession session = req.getSession(true); // session is already created at loginscreen
OutputStream oout = res.getOutputStream();
res.setHeader("Content-disposition","filename=excel.csv");
//res.setContentType("application/octet-stream");
FileInputStream fis = new FileInputStream("D:\\JRun3.1\\servers\\default\\default-app\\WEB-INF\\classes\\test.csv");
//here i am reading a csv file, we can output whatever format and set filename of ours
byte[] buf = new byte[1024]; //get from statics
int bytesRead = 0;
while((bytesRead = fis.read(buf)) != -1){
oout.write(buf,0,bytesRead);
oout.close();
fis.close();
}//end of doPost method
public void destroy() {
}// end of destroy
} //end of ExcelServlet class -
BOE 4.0 Report Application Server Connectivity from client machine
Hi,
We have installed BO 4.0 for RAS. We configured the RAS to pick up the rpt files from local repository, that is from the machine which the Bo is installed.
But when we try to access the RAS from client machine to process report it is not accepting the request,
1. Do I need to grant access to any specific user group?
2. What is the user id which the Report Application Service runs in the machine?
3. Do I need to add / manage any guest acoount to request from client machine?
4. How to accept other user request to process reports?
Here is the error details,
Message Number: -2147217397
Message Description: The user account has been disabled. (FWB 00012)
Please advise,
Thanks,
FebiginR
Edited by: FebiginR on Jan 17, 2012 8:17 PMThanks for your support.
I searched in otn and i got the information
http://www.oracle.com/technology/sample_code/products/forms/extracted/getclientinfo/readme.html?_template=/ocom/print
1)But in Deployment section of this document the first point is copy entire sab and its subdirectories ........ot <oracle_home>\orant\forms60\java directory.
I can't understand what is "sab" where should i look for it.
2) Place the signed JavaBean JAR file (getclientinfo.jar.sig) in the codebase directory being used to deploy Oracle Forms Server 6i applications.
Can you kindly explain this.
3) where should we write <ARCHIVE = "f60all.jar, getclientinfo.jar.sig">
Can you kindly explain this.
Thanking you in anticipation.
Regards,
Devendra -
How to access application server 10g, if client machine is proxy settings.
hi,
i have installed oracle application server 10gR2, on vertual machine, windows2003
my forms are stored in forms folder , i can access the application/forms
throuhg client machines, if proxy setting is unchecked, but if proxy is chacked can't access application.
as there with the user machine is required with proxy setting. how
to access the application. i mean what is the configuration.
in application server so that any computer (client machine)
can access weather it is having proxy setting or not.now i enabled the java console to see the trace, there i found. if proxy is checked in client brouser with 8080 port which is required by organisation.
Oracle JInitiator: Version 1.3.1.22
Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\fresh
Proxy Configuration: Manual Configuration
Proxy: eproxy:8080
Proxy Overrides:
Jar cache disabled by user
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
load: class oracle.forms.engine.Main not found.
java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Where as if there if i remove proxy setting by uncheck. then application goes smoothly. -
Project goes into a setup launch when first run on client machine
I have sequenced Project STD 2013 on Win 7. During sequencing, it ran fine.
When I install on client machine and launch shortcut, the setup window opens but than comes up with error window that says the installer path can only contain 115 characters..choose shorter path.
I am at a loss as to what to do.Are you using AUOrganizer?
If so, this issue has been reported a couple of time before.... and that will be the cause of your issues. It is not correctly configured.....
Example thread...
http://www.logicprohelp.com/forum/viewtopic.php?f=1&t=104191
Maybe you are looking for
-
How can we see the data in dummy profitcenter
Hi i have doubt about dummy profit center.how can we display the entries in dummy profit center.can any body tell me pls........ regards prasad
-
How do I reset an icloud email password on my iphone? It is not my apple id password. I cannot see anything in the online support at Apple.
-
I have lost my address bar, how do i get it back
i have lost my address bar, how do i get it back
-
Looks like a bug in Java ... what's going on he
I can't really recreate this problem, but it occurs in situations like the one below. Unfortunately the program is just too complex to post it all here. In other words, I'm not sure if this exact code will produce the bug, but it happens sometimes in
-
'Microsoft.SharePoint.Taxonomy.ScriptForWebTaggingUI' is null or not an object
This is regarding SharePoint 2010 Search Refiners for people search. When I click on Show More option in Job Title or Building name Refiner, it doesn't expand and all I see is javascript error popping in IE status bar. 'Microsoft.SharePoint.Taxonomy.