logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Oracle Weblogic server Will not Launch .jnlp files
Author
Belasarius



Joined: 25 Jun 2014
Posts: 1
Location: US, Norfolk

PostPosted: Wed 25 Jun '14 18:41    Post subject: Oracle Weblogic server Will not Launch .jnlp files Reply with quote

Hi all, I'm a sub-novice in web technology but have been handed a project to migrate a web page from our old Oracle OAS 10G server to a Oracle Weblogic llg server.

The Oracle forums haven't been much help.

This page is manually deployed along with the web folder from a third-party Automic Applications Manager (formerly Appworx).

We are not using the default Apache server that ships with the product due to all the paperwork and configuration required to deploy it in a secure environment.

The old configuration is already approved to allow connection via our Oracle (Apache) webservers.

I can launch the page fine but when I call the .jsp file to launch it it opens the file instead of launching it (Windows 2008 server).

I've associated the file types, jsp and jnlp to javaws.exe. I found a reference in the old httpd.conf file and added this to the new httpd.conf file on the weblogic server. I also dug into the default install and found the same line. I've bounced the ohs to source this and it still opens instead of launches. How do I change this behavior?

AddType application/x-java-jnlp-file JNLP jnlp

This is what I'm trying to call:
Code:

<%@ page
contentType="application/x-java-jnlp-file"
%>

<%
 StringBuffer codebaseBuffer = new StringBuffer();
 codebaseBuffer.append(!request.isSecure() ? "http://" : "https://");
 codebaseBuffer.append(request.getServerName());
 if (request.getServerPort() != (!request.isSecure() ? 80 : 443))
 {
   codebaseBuffer.append(':');
   codebaseBuffer.append(request.getServerPort());
 }
String classesPath = "/uc4v812a/classes/";
String agentIn = request.getParameter("agent");
String rmiPort = request.getParameter("rmi");
String rmiHostid = request.getParameter("hostid");
String codebaseRoot = codebaseBuffer.toString();
 codebaseBuffer.append(classesPath);
StringBuffer requrl = request.getRequestURL();
System.out.println("Debug: agent: "+agentIn);
System.out.println("Debug: RMI Port: "+rmiPort);
System.out.println("Debug: HostId: "+rmiHostid);
%>
<?xml version="1.0" encoding="UTF-8"?>
<!--
j2ee
 Launch UC4 client
-->
<jnlp codebase="<%= codebaseBuffer.toString() %>" href="<%=  request.getRequestURI() %>" >
    <offline-allowed/>
    <information>
        <title><%= agentIn %> UC4 Application Manager Client</title>
        <vendor>UC4 Software, Inc.</vendor>
        <homepage href="http://support.uc4.com"/>
        <description><%= agentIn %> Applications Manager client for Web Start</description>
        <description kind="short"><%= agentIn %> Applications Manager client</description>
        <description kind="tooltip"><%= agentIn %> Applications Manager Client</description>
        <icon href="../images/UC4.gif"/>

        <offline-allowed/>
    </information>
   <application-desc main-class="com.appworx.client.screen.main.AxMain"/>
    <resources>
        <j2se version="1.6" max-heap-size="512M" />
   <j2se version="1.7" max-heap-size="512M" />
   <property name="java.security.policy" value="<%= classesPath %>../java.policy"/>
   <!--
   <property name="appworx.debug" value="true"/>
   -->
        <property name="appworx.master" value="<%= agentIn %>" />
        <property name="appworx.RMIRegistryPortNumber" value="<%= rmiPort %>"/>
        <property name="appworx.RMIHostID" value="<%= rmiHostid %>"/>

        <jar href="AppWorx.jar" main="true" />
        <jar href="AppWorxLang.jar"/>
        <jar href="uc4-ra.jar"/>
        <extension name="ClientExtensions" href="../ClientExtensions.jnlp"/>
        <extension name="JavaHelp" href="../JavaHelp.jnlp"/>
        <extension name="JavaMail" href="../JavaMail.jnlp"/>
    </resources>
    <security> <all-permissions/> </security>
</jnlp>

mod note: changed topic title and added bb tag
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 13 Aug '14 18:19    Post subject: Reply with quote

did you configure the jnlp in the xml config file?
Back to top


Reply to topic   Topic: Oracle Weblogic server Will not Launch .jnlp files View previous topic :: View next topic
Post new topic   Forum Index -> Apache