[jboss-user] [JBoss Portal] - JBoss Portal insert applet jnlp
chuaky
do-not-reply at jboss.com
Mon Dec 15 22:26:56 EST 2008
hi,
Hope some1 can help me with this query. I was going to use a mix of Richfaces and JavaFX for my project, and encountered problem with embedding JavaFX applet on JBoss Portal.
I use this environment:
- Jboss Portal 2.6.5SP1
- Seam 2.1.0SP1
- Richfaces 3.3
- Postgres 8.3.4
I got this weird error on the java console and i put all the jars and jnlp files together with the xhtml files.
Thanks in advance :)
| MissingFieldException[ The following required field is missing from the launch file: <jnlp>]
| 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 sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
| at sun.plugin2.main.client.PluginMain$StartAppletRunner.run(Unknown Source)
| at java.awt.event.InvocationEvent.dispatch(Unknown Source)
| at java.awt.EventQueue.dispatchEvent(Unknown Source)
| at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
| at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
| at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
| at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
| at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
| at java.awt.EventDispatchThread.run(Unknown Source)
| Error while initializing manager: MissingFieldException[ The following required field is missing from the launch file: <jnlp>], bail out
|
My xthml page:
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:c="http://java.sun.com/jstl/core"
| xmlns:a4j="http://richfaces.org/a4j"
| xmlns:rich="http://richfaces.org/rich"
| xmlns:s="http://jboss.com/products/seam/taglib">
| <body>
| <f:view>
|
| <h:outputText value="Welcome" styleClass="dr-pnl-b" />
| <br />
| <br />
| <rich:panel bodyClass="rich-laguna-panel-no-header">
| Testing
| </rich:panel>
|
| <applet width="500" height="500">
| <param name="jnlp_href" value="StopWatch_browser.jnlp" >
| </param>
| </applet>
|
| </f:view>
| </body>
| </html>
|
The StopWatch_browser.jnlp is:
| <?xml version="1.0" encoding="UTF-8"?>
| <jnlp spec="1.0+" href="StopWatch_browser.jnlp">
| <information>
| <title>PhotoEffects</title>
| <vendor>Sun Microsystems</vendor>
| <description kind="short">Stopwatch</description>
| <offline-allowed/>
| <shortcut>
| <desktop/>
| </shortcut>
| </information>
| <security>
| <all-permissions/>
| </security>
| <resources>
| <j2se version="1.5+"/>
| <jar href="StopWatch.jar" main="true" download="eager"/>
| <jar href="javafxrt.jar" main="true" download="eager"/>
| <jar href="Scenario.jar" main="true" download="eager"/>
| <jar href="javafxgui.jar" main="true" download="eager"/>
| <jar href="javafx-swing.jar" main="true" download="eager"/>
| <jar href="javafxc.jar" main="true" download="eager"/>
| <jar href="eula.jar" main="true" download="eager"/>
| </resources>
| <applet-desc main-class="com.sun.javafx.runtime.adapter.Applet" name="StopWatch" height="500" width="500">
| <param name="MainJavaFXScript" value="stopwatch.Main"/>
| </applet-desc>
| </jnlp>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196739#4196739
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196739
More information about the jboss-user
mailing list