Ok, looks like getting the tagged version working is not really ideal (and not
possible either!), so I used SVN to get the trunk code. version 1.7.1-SNAPSHOT.
Followed the instruction I found on opennms website and built it successfully
which is a good thing:
cd eclipse
./build.sh install # this will take some time
./build.sh clean
./build.sh eclipse:eclipse
Then when it's finished, I saw a note recommending to run the same command wih
-DdownloadJavadocs=true
in order to check remote responsibilities for Javadoc.
When I run that command, it failed and I thought it might have messed up
everything.
Therefore, I removed the entire source directory and started all over again but
I can't
build it anymore and somewhere during the build process it fails and shows the
error message below:
[INFO] [castor:generate {execution: default}]
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/notificationCommands.xsd
log4j:WARN No appenders could be found for logger
(org.exolab.castor.xml.UnmarshalHandler).
log4j:WARN Please initialize the log4j system properly.
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/users.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/chart-configuration.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/model-import.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/thresholding-config.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/opennms-server.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/jmx-datacollection-config.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/snmp-interface-poller-configuration.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/categories.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/vulnscand-configuration.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/threshd-configuration.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/dhcpd-configuration.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/opennms-datasources.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/rtc-configuration.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/webui-colors.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/wmi-datacollection.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/snmp-config.xsd
[INFO] Processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/ami-config.xsd
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Castor execution failed
Embedded error: An Exception occurred processing
/root/Desktop/Honia/Download/eclipse/opennms-config/src/main/castor/ami-config.xsd
Error reading import file 'http://xmlns.opennms.org/xsd/types':
java.net.ConnectException: Connection timed out
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 minutes 46 seconds
[INFO] Finished at: Tue Feb 03 14:23:46 EST 2009
[INFO] Final Memory: 36M/66M
[INFO] ------------------------------------------------------------------------
I looked at the ami-config.xsd file and this is the path whichimport uses:
<import namespace="http://xmlns.opennms.org/xsd/types"
schemaLocation="http://xmlns.opennms.org/xsd/types">
</import>
I am behind a firewall so tried to access the path from the browser and it
worked with no problem... Please help!
Thanks,
honia
From: honia2...@hotmail.com
To: opennms-devel@lists.sourceforge.net
Date: Fri, 30 Jan 2009 15:18:07 -0500
Subject: Re: [opennms-devel] OpenNMS Web-App project in Eclipse
Shahzada,
Thanks again for helping me :-) Just wanted to let you know that I was able to
build the source code for eclipse and this time when tried to import the
projects, all of them were listed there!
I then selected them all and clicked OK so everything got imported. After the
build was finished, I got 13,739 errors... I paste some of them below for your
review. Could it be because I built the tagged source code and not the trunk??
Also, I have Eclipse Version: 3.4.1 Build id: M20080911-1700, in order for
running the Web-App project as server, should I get the WTP installed or it is
something which could be done with this version of Eclipse?
Thanks in advance!
Description Resource Path Location Type
_actionEventList cannot be resolved ActionEvents.java
opennms-config/target/generated-sources/castor/org/opennms/netmgt/config/vacuumd
line 107 Java Problem
_actionEventList cannot be resolved ActionEvents.java
opennms-config/target/generated-sources/castor/org/opennms/netmgt/config/vacuumd
line 213 Java Problem
_actionEventList cannot be resolved ActionEvents.java
opennms-config/target/generated-sources/castor/org/opennms/netmgt/config/vacuumd
line 264 Java Problem
_actionEventList cannot be resolved or is not a field ActionEvents.java
opennms-config/target/generated-sources/castor/org/opennms/netmgt/config/vacuumd
line 42 Java Problem
_actionEventList cannot be resolved or is not a field ActionEvents.java
opennms-config/target/generated-sources/castor/org/opennms/netmgt/config/vacuumd
line 60 Java Problem
_actionEventList cannot be resolved or is not a field ActionEvents.java
opennms-config/target/generated-sources/castor/org/opennms/netmgt/config/vacuumd
line 75 Java Problem
_actionEventList cannot be resolved or is not a field ActionEvents.java
opennms-config/target/generated-sources/castor/org/opennms/netmgt/config/vacuumd
line 86 Java Problem
_actionEventList cannot be resolved or is not a field ActionEvents.java
opennms-config/target/generated-sources/castor/org/opennms/netmgt/config/vacuumd
line 103 Java Problem
_actionEventList cannot be resolved or is not a field ActionEvents.java
opennms-config/target/generated-sources/castor/org/opennms/netmgt/config/vacuumd
line 104 Java Problem
_actionEventList cannot be resolved or is not a field ActionEvents.java
opennms-config/target/generated-sources/castor/org/opennms/netmgt/config/vacuumd
line 122 Java Problem
_actionEventList cannot be resolved or is not a field ActionEvents.java
opennms-config/target/generated-sources/castor/org/opennms/netmgt/config/vacuumd
line 134 Java Problem
_actionEventList cannot be resolved or is not a field ActionEvents.java
opennms-config/target/generated-sources/castor/org/opennms/netmgt/config/vacuumd
line 144 Java Problem
_actionEventList cannot be resolved or is not a field ActionEvents.java
opennms-config/target/generated-sources/castor/org/opennms/netmgt/config/vacuumd
line 170 Java Problem
_actionEventList cannot be resolved or is not a field ActionEvents.java
opennms-config/target/generated-sources/castor/org/opennms/netmgt/config/vacuumd
line 225 Java Problem
> Date: Thu, 29 Jan 2009 23:29:56 +0000
> From: ha...@hatimonline.com
> To: opennms-devel@lists.sourceforge.net
> Subject: Re: [opennms-devel] OpenNMS Web-App project in Eclipse
>
> Just to make sure that I do every thing similar to your setup I checked
> out the said branch of opennms and made an eclipse project of it. And I
> can easily import the project in my eclipse IDE after doing
>
> ./build eclipse:eclipse
>
> This is not to build the project as such but to make it as an eclipse
> project
>
> And the folder you would import would be the whole cheked out folder and
> not the target folder.
>
> On Wed, Jan 28, 2009 at 01:00:08PM -0500, Honia A wrote:
> >
> > Shahzada,
> >
> > Thanks for the info, I really appreciate it. In answer to your questions:
> >
> > 1) No, I didn't build it using the eclipse command, this is how I built it:
> > ./build.sh install assembly:directory-inlineand it built it in a directory
> > name target.
> >
> > And let me mention this again that I got a tagged version and not the
> > trunk, this is the command I ran:
> > svn co
> > https://opennms.svn.sourceforge.net/svnroot/opennms/opennms/tags/opennms-1.6.1
> > You think I should have gotten the trunk instead?2) I tried importing the
> > cose base itself but Eclipse can't find any project to list...
> >
> > What do you suggest I should do? Please let me know.
> --
> Shahzada Hatim Mushtaq
> Open Source Software Developer &
> Graduate Student - Software Engineering and Technology
> Chalmers University of Technology
> Götebog, Sweden
> Mobile: +46-76-5825564
> Web: http://hatimonline.com
> IRC: geoaxis <irc.freenode.net>
> Skype: hatimonline
Windows Live™ Hotmail®:…more than just e-mail. Check it out.
_________________________________________________________________
Hotmail® goes where you go. On a PC, on the Web, on your phone.
http://www.windowslive-hotmail.com/learnmore/versatility.aspx#mobile?ocid=TXT_TAGHM_WL_HM_versatility_121208
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
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