Re: [opennms-devel] OpenNMS Web-App project in Eclipse
Honia A <[email protected]> Tue, 27 Jan 2009 13:23:28 -0500
| Newsgroups | gmane.network.opennms.bugs,gmane.network.opennms.devel |
|---|---|
| Message-ID | <[email protected]> |
Thanks for your reply. Sure, I can use Jetty, no problem. So far, I learned that this is the URL to access the OpenNMS I built from the source: http://localhost:8980/opennms The other thing I learned is that if I would like to make any changes to the code, the root directory for OpenNMS jetty is here: /target/opennms-1.6.1/jetty-webapps/opennms Now, I understand the next step for me would be creating a JAVA project using the existing ONMS project. I downloaded the opennms-1.6.1 source code (not the trunk, I got a tagged version) and built it to the target directory. Today, I again followed the instruction of the first link: - Opened Eclipse and created a new workspace - Added M2_REPO classpath variable and set its value to the path of my repository directory This is the step where it fails: "Lastly go to File->Import... and select General->Existing Projects into Workspace and set the root directory to ~/svn/eclipse. This will show a list of projects that are available. Select them all and click ok. " The problem is I don't see any available project listed inside the bottom window. Looks like Eclipse can not find any available project given that root directory (where both OpenNMS source code and the built files are). I am sure I can manage to just change a file using a text editor and see the output, but that's not really my intention if it make sense. I would like to have a working workspace inside Eclipse... Please help Thanks in advance > Date: Tue, 27 Jan 2009 17:38:50 +0000 > From: [email protected] > To: [email protected] > Subject: Re: [opennms-devel] OpenNMS Web-App project in Eclipse > > Take a look at the following links > http://www.opennms.org/index.php/Eclipse_and_OpenNMS > http://www.opennms.org/index.php/Development > > You could deploy the web app on Tomcat, but the builtin jetty works just > fine IMO. > > On Tue, Jan 27, 2009 at 11:37:30AM -0500, Honia A wrote: > > > > Hi all, > > > > I downloaded the source code for OpenNMS 1.6.1 and was able to build it successfully, it's now running on http://localhost:8980/ exactly as expected. The built files are in /target/opennms-1.6.1 directory. > > > > Now, I was planning on learning more about the web-app section of it and see how it works, so I installed Tomcat 5.5 and Eclipse and was wondering what to do next... > > > > I worked with Eclipse before so I understand I should be importing this existing project into eclipse. But when I get to that screen, there is not any project listed...I am guessing I didn't select the correct root directory so was wondering what the best way really is to get this to work. > > > > 1) Should I be creating a project from the existing source code which is not built yet OR I should use the source code after I built it? (inside target directory). > > > > 2) How should I deploy it to Tomcat? > > > > If you could point me to the right direction and tell me where to start from, I'd really appreciate it :-) > > > > Thanks in advance > > > -- > 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 _________________________________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ 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