Hi again,
Used javaw -viewer to view the .jnlp file and found something that might be of interest.
Also, forgot to say before that we're using OpenNMS 1.6.1.
<jnlp spec="1.5+" codebase="
http://opennms/opennms/webstart/" href="
http://opennms/opennms/webstart/app.jnlp">
<information>
<title>OpenNMS Remote Poller (GUI)</title>
<vendor>The OpenNMS Group</vendor>
<homepage href="null"/>
<shortcut online="false">
<desktop/>
<menu submenu="OpenNMS"/>
</shortcut>
</information>
<security>
<all-permissions/>
</security>
<update check="timeout" policy="always"/>
<resources>
<java version="1.5+"/>
<jar href="
http://opennms/opennms/webstart/opennms-remote-poller-jar-with-dependencies.jar" version="1.6.1" download="eager" main="true"/>
</resources>
<application-desc main-class="org.opennms.poller.remote.Main">
<argument>--gui</argument>
<argument>--url</argument>
<argument>
http://opennms/opennms</argument>
</application-desc>
</jnlp>
I noticed that the jar is specified as "
http://opennms/opennms/webstart/opennms-remote-poller-jar-with-dependencies.jar" in the jnlp file. However, that file does not exist! "opennms-remote-poller-1.6.1-jar-with-dependencies.jar" file does exist (note: no "1.6.1"). Could this cause the problem?
So, I copied opennms-remote-poller-1.6.1-jar-with-dependencies.jar to opennms-remote-poller-jar-with-dependencies.jar, but the webstart still does not work.
Downloaded the jar file and ran it manually resulting in a stacktrace (tried without the --location as well):
C:\Documents and Settings\23058582\Desktop>java -jar opennms-remote-poller-1.6.1
-jar-with-dependencies.jar --gui --location TEST --url
http://opennmsopennms
FATAL - Exception occurred during registration!
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 6 in
XML document from class path resource [META-INF/opennms/applicationContext-remo
tePollerBackEnd.xml] is invalid; nested exception is org.xml.sax.SAXParseExcepti
on: cvc-elt.1: Cannot find the declaration of element 'beans'.
Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration
of element 'beans'.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unkno
wn Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Sou
rce)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
own Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.s
canRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocum
ent(DefaultDocumentLoader.java:76)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
eanDefinitions(XmlBeanDefinitionReader.java:361)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:313)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:290)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:173)
at org.springframework.context.support.AbstractXmlApplicationContext.loa
dBeanDefinitions(AbstractXmlApplicationContext.java:112)
at org.springframework.context.support.AbstractXmlApplicationContext.loa
dBeanDefinitions(AbstractXmlApplicationContext.java:79)
at org.springframework.context.support.AbstractRefreshableApplicationCon
text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)
at org.springframework.context.support.AbstractApplicationContext.obtain
FreshBeanFactory(AbstractApplicationContext.java:389)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:324)
at org.springframework.context.support.ClassPathXmlApplicationContext.
(ClassPathXmlApplicationContext.java:122)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:76)
at org.opennms.poller.remote.Main.createAppContext(Main.java:191)
at org.opennms.poller.remote.Main.run(Main.java:80)
at org.opennms.poller.remote.Main.main(Main.java:241)
Jimisola
Jeff Gehlbach wrote:
Here's what you should see when you browse to OPENNMS_SERVER:8980/
opennms/webstart/app.jnlp -- a Java Web Start downloader:
You may be asked whether to trust a signing certificate, after which
the remote poller GUI window should appear and prompt you to register
to an available monitoring location:
After registering, the remote poller window will refresh to look like
this:
You should also see the new remote location monitor listed in the page
at
http://OPENNMS_SERVER:8980/opennms/distributed/
locationMonitorList.htm.
How far down this walk-through are you getting?
-jeff
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQopennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss