Brocade Fibre Channel Networking Community

Expand all | Collapse all

Launch of Webtools from within BNA failing due to invalid jnlp file

  • 1.  Launch of Webtools from within BNA failing due to invalid jnlp file

    Posted 05-05-2015 11:00 AM

    We just upgraded BNA to 12.3.4, and now, when we try to launch the webtools, from within BNA, for any of our san directors/switches, we are getting a failure in java, where it says it could not launch the application.

     

    Looking at the detail exception information, I see the following:

     

    JNLParseException[ Could not parse launch file. Error at line 0.]
    at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
    at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory._buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main.access$000(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:745)

     

     

    The launch file it's trying to run is:

     

    <%@page contentType="application/x-java-jnlp-file" info="JNLP Client" %>
    <%@page import="com.brocade.dcm.system.Version"%>
    <%@page import="com.brocade.dcm.system.SystemPropertiesUtil" %>
    <%@page import="java.util.Map" %>

    <%
    StringBuilder uri = new StringBuilder(request.getScheme());
    uri.append("://").append(request.getServerName());
    if (request.getServerPort() != (!request.isSecure() ? 80 : 443)) {
    uri.append(':').append(request.getServerPort());
    }
    String homepage = uri.toString();
    String docroot = uri + request.getContextPath();
    String jnlppath = request.getRequestURI();
    String codebase = homepage + jnlppath.substring(0, jnlppath.indexOf("wtproxy.jnlp"));

    String initHeap = "64m";
    String maxHeap = System.getProperty("webtools.jvm.maxheap.size", "512m");

    String server = request.getServerName();
    String sslenabled = "false";
    if(request.isSecure()) {
    sslenabled = "true";
    }
    String switchname = request.getParameter("switchname");
    String switchip = request.getParameter("switchip");
    String wtpage = request.getParameter("wtpage");
    String token = request.getParameter("token");
    String sessionId = request.getParameter("sessionId");

    String task = request.getParameter("task");
    String taskParameters = request.getParameter("taskParameters");

    String wthtmlpage = "/switchexplorer.html";
    String wtmainclass = "com.brocade.web.switchview.SwitchExplorerApplet";
    String wtsubtitle = "Switch Explorer";
    if ("PORT_PAGE".equals(wtpage)) {
    wtmainclass = "com.brocade.web.port.view.PortAdminApplet" ;
    wthtmlpage = "/portadmin.html";
    wtsubtitle = "Port Admin";
    } else if ("ADMIN_PAGE".equals(wtpage)) {
    wtmainclass = "com.brocade.web.admin.SwitchAdminApplet" ;
    wthtmlpage = "/admin.html";
    wtsubtitle = "Switch Admin";
    } else if ("FCR_PAGE".equals(wtpage)) {
    wtmainclass = "com.brocade.web.fcr.views.FCRAdminApplet" ;
    wthtmlpage = "/fcradmin.html";
    wtsubtitle = "FCR Admin";
    } else if ("PERF_PAGE".equals(wtpage)) {
    wtmainclass = "com.brocade.web.newperf.PerfMonitorApplet" ;
    wthtmlpage = "/performancemonitor.html";
    wtsubtitle = "Performance Monitor";
    } else if ("FW_PAGE".equals(wtpage)) {
    wtmainclass = "com.brocade.web.newfw.FabricWatchApplet" ;
    wthtmlpage = "/fabricwatch.html";
    wtsubtitle = "Fabric Watch";
    } else if ("NS_PAGE".equals(wtpage)) {
    wtmainclass = "com.brocade.web.zoning.NameServerApplet_SS" ;
    wthtmlpage = "/NSTableShow.html";
    wtsubtitle = "Name Server";
    }


    int port = Integer.getInteger("jboss.remoting.connector.port", 24600);

    Version version = Version.getInstance();
    StringBuilder product = new StringBuilder("Web Tools");
    product.append(' ').append(version.getMajor()).append('.').append(version.getMinor());
    String oemDisplayName = version.getProperty("product." + version.getBuildOem() + ".displayname");

    String defaultProtocol = "http";
    String connectorProtocol = "0";
    int defaultPort = 80;
    try {
    Map


     

    Peter


    #BrocadeFibreChannelNetworkingCommunity


  • 2.  Re: Launch of Webtools from within BNA failing due to invalid jnlp file

    Posted 05-18-2015 09:02 PM

    Hi Peter,

     

    Did you managed to solve this issue?

    I having the same issue, can you please share if you had found the solution?

     

    Thank you.

     

     

    Regards,

    Liem


    #BrocadeFibreChannelNetworkingCommunity