Hello,

First, As I'm newbie, please appologize if I do not post in the correct 
thread (Actually, I've post this question previously on OpenNMS-Windows 
and OpenNMS-Discuss mailing lists but no answers yet...).
As OpenNMS-Devel mailing list is advised for how to build source code 
questions, I (re)send my message on this list too :


Hi,

I'm trying to compile OpenNMS based on sources R1-8-12 for Windows and 
encounter some issues :

JICMP library loading error :
I've used your ''http://www.opennms.org/wiki/Building_OpenNMS'' 
instructions
- I've used sources from opennms-source-1.8.12-1.tar.gz 
<http://sourceforge.net/projects/opennms/files/OpenNMS-Source/stable-1.8.13/opennms-source-1.8.13-1.tar.gz/download>
 

- I've built with
    clean.pl
    compile.pl
    assemble.pl -Dbuild.profile=dir
These processes seem to end well.
- I've used jicmp 1.0.9 and put jicmp.dll (from win32 directory) to 
C:\WINDOWS\system32\
- when I launch the start command
"C:\Program Files\Java\jdk1.6.0_26\bin\java" -Xmx256m 
-XX:MaxPermSize=128m 
-Dopennms.home="C:/opennms-1.8.12-1/source/target/opennms1-8-12/" -jar 
"C:/opennms-1.8.12-1/source/target/opennms-1.8.12/lib/opennms_bootstrap.jar" 
%*
it fails with error :
"Exception in thread "main" java.lang.RuntimeException: unable to load 
default properties from $OPENNMS_HOME!
    at 
org.opennms.bootstrap.Bootstrap.loadDefaultProperties(Bootsratp.java:)
    at org.opennms.bootstrap.Bootstrap.main(Bootsratp.java:)

After some research in source code, I understood that 
"libraries.properties" left, and I created a new one with :
"opennms.library.jicmp=C\:/opennms-1.8.12-1/source/target/opennms-1.8.12/lib\\jicmp.dll",
 
path where I've put the JICMP library previously.

Then, I've rebuilt OpenNMS :
- I've built with
    clean.pl
    compile.pl
    assemble.pl -Dbuild.profile=dir
These processes seem to end well.
- when I launch the start command
"C:\Program Files\Java\jdk1.6.0_26\bin\java" -Xmx256m 
-XX:MaxPermSize=128m 
-Dopennms.home="C:/opennms-1.8.12-1/source/target/opennms1-8-12/" -jar 
"C:/opennms-1.8.12-1/source/target/opennms-1.8.12/lib/opennms_bootstrap.jar" 
%*
it fails with error :
"[DEBUG] System property 'opennms.library.jicmp' set to 
'C:/opennms-1.8.12-1/source/target/opennms-1.8.12/lib\jicmp.dll.  
Attempting to load jicmp library from this location.
[INFO] Successfully loaded jicmp library.
An error occurred while attempting to start the "OpenNMS:Name=Eventd" 
service (class org.opennms.netmgt.eventd.jmx.Eventd).  Shutting down and 
exiting."

1/ I'm not sure I followed the good processes to make a Windows XP SP2 
target. What should I have done?

Configuration steps seem to be missing :
- there is no ''opennms.bat'' file in "%OPENNMS_HOME%\bin" directory as 
with Stand-Alone Windows Installer.
2/ Is there a way to rebuilt the Stand-Alone Windows Installer too? 
sources does not include this app I guess...

Thanks for your answers,
Regards

Fabrice ROBINET.

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to