Re: [opennms-devel] Building OpenNMS to use in Eclipse - Failed:cannot find symbol

Honia A <[email protected]> Mon, 23 Mar 2009 10:32:44 -0400
Newsgroups gmane.network.opennms.bugs,gmane.network.opennms.devel
Message-ID <[email protected]>
--===============5105231771320739535==
Content-Type: multipart/alternative;
	boundary="_b133d227-2d30-482c-ba7a-4860ee1bb3fa_"

--_b133d227-2d30-482c-ba7a-4860ee1bb3fa_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Benjamin=2C DJ Gregor=2C=20

Thanks for your replies. I was finally able to find a way to avoid that bui=
ld problem.
Got version 1.6.2-1 stable downloaded and then followed the online instruct=
ion:

- ./build.sh install ----> Build Successful
-./build.sh clean ----> Build Successful
-./build.sh eclipse:eclipse ----> Build Successful

Added a new classpath variable called M2_REPO and set its value to root/.m2=
/repository.

(After this step=2C I looked under root directory as I'm guessing that was =
the home directory for user root and couldn't find a folder called .m2=2C e=
ven under hidden ones...)

Then imported them all into eclipse and did a project clean and ran into a =
bigger problem.=20

Eclipse found 15294 errors and 300 warnings which I paste some of the error=
s here for your review:

_actionEventList cannot be resolved    opennms-config/target/generated-sour=
ces/castor/org/opennms/netmgt/config/vacuumd    ActionEvents.java    line 2=
64    1237817647370    52599

_actionEventList cannot be resolved or is not a field    opennms-config/tar=
get/generated-sources/castor/org/opennms/netmgt/config/vacuumd    ActionEve=
nts.java    line 294    1237817647372    52605

_actionList cannot be resolved or is not a field    opennms-config/target/g=
enerated-sources/castor/org/opennms/netmgt/config/vacuumd    Actions.java  =
  line 170    1237817647314    52561


And many more... Not to mention that I can't run opennms-webapp on the serv=
er either=2C it shows an error message=2C something like there is nothing t=
o be shown on the server...

Could you guys please help me find out the problem? I tried to follow the m=
anual step by step and really have no clue why it failed.

Thanks in advance=2C
honia=20



> Date: Fri=2C 20 Mar 2009 15:36:35 -0400
> From: [email protected]
> To: [email protected]
> Subject: Re: [opennms-devel] Building OpenNMS to use in Eclipse - Failed:=
cannot find symbol
>=20
> Honia A wrote:
>=20
> > 2- I looked for the .m2 directory and the only folders/references to
> > Maven are as follows:
> >=20
> > - /root/Desktop/src/eclipse/maven/bin/m2
> >=20
> > - /root/m2_repo (it's hidden) ---> I recall creating this when i get to
> > the step in the manual where it instruc to create a variable in eclipse
> > software:
> >=20
> > "Add a classpath variable called M2_REPO and set its value to |<your
> > home dir>/.m2/repository|. (Note: eclipse does not accept the '~'
> > character) "
> >=20
> > The ~/.m2/repository doesn't event exist on my machine...it's
> > weird...sue=2C let me get the 1.6.2 and build that one but will running
> > three build commands mentioned in the manual be sufficient or i'll have
> > to manually create that .m2 directory?
>=20
> Ah=2C OK=2C if you're on windows=2C the point is the same=2C but I don't =
know
> the exact location.  :)  On unix=2C "~" means your home directory=2C so I
> would assume you have a homedir/.m2/ directory=2C or else maven is someho=
w
> configuration to use another location.
>=20
> You can't have run maven and *not* had it put things *somewhere* --
> wherever that location is (it's easy to tell=2C it should be filled with
> hundreds of jar files in subdirectories)=2C delete it to clear it out=2C =
so
> you can be sure you're getting the right stuff.
>=20
>=20
> --=20
> Benjamin Reed
> The OpenNMS Group
> http://www.opennms.org/
>=20
>=20

_________________________________________________________________
Get quick access to your favorite MSN content with Internet Explorer 8.=20
http://ie8.msn.com/microsoft/internet-explorer-8/en-us/ie8.aspx?ocid=3DB037=
MSN55C0701A=

--_b133d227-2d30-482c-ba7a-4860ee1bb3fa_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style>
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 10pt=3B
font-family:Verdana
}
</style>
</head>
<body class=3D'hmmessage'>
Benjamin=2C DJ Gregor=2C <br><br>Thanks for your replies. I was finally abl=
e to find a way to avoid that build problem.<br>Got version 1.6.2-1 stable =
downloaded and then followed the online instruction:<br><br>- ./build.sh in=
stall ----&gt=3B Build Successful<br>-./build.sh clean ----&gt=3B Build Suc=
cessful<br>-./build.sh eclipse:eclipse ----&gt=3B Build Successful<br><br>A=
dded a new classpath variable called M2_REPO and set its value to <code>roo=
t/.m2/repository</code>.<br><br>(After this step=2C I looked under root dir=
ectory as I'm guessing that was the home directory for user root and couldn=
't find a folder called .m2=2C even under hidden ones...)<br><br>Then impor=
ted them all into eclipse and did a project clean and ran into a bigger pro=
blem. <br><br>Eclipse found 15294 errors and 300 warnings which I paste som=
e of the errors here for your review:<br><br>_actionEventList cannot be res=
olved&nbsp=3B&nbsp=3B&nbsp=3B opennms-config/target/generated-sources/casto=
r/org/opennms/netmgt/config/vacuumd&nbsp=3B&nbsp=3B&nbsp=3B ActionEvents.ja=
va&nbsp=3B&nbsp=3B&nbsp=3B line 264&nbsp=3B&nbsp=3B&nbsp=3B 1237817647370&n=
bsp=3B&nbsp=3B&nbsp=3B 52599<br><br>_actionEventList cannot be resolved or =
is not a field&nbsp=3B&nbsp=3B&nbsp=3B opennms-config/target/generated-sour=
ces/castor/org/opennms/netmgt/config/vacuumd&nbsp=3B&nbsp=3B&nbsp=3B Action=
Events.java&nbsp=3B&nbsp=3B&nbsp=3B line 294&nbsp=3B&nbsp=3B&nbsp=3B 123781=
7647372&nbsp=3B&nbsp=3B&nbsp=3B 52605<br><br>_actionList cannot be resolved=
 or is not a field&nbsp=3B&nbsp=3B&nbsp=3B opennms-config/target/generated-=
sources/castor/org/opennms/netmgt/config/vacuumd&nbsp=3B&nbsp=3B&nbsp=3B Ac=
tions.java&nbsp=3B&nbsp=3B&nbsp=3B line 170&nbsp=3B&nbsp=3B&nbsp=3B 1237817=
647314&nbsp=3B&nbsp=3B&nbsp=3B 52561<br><br><br>And many more... Not to men=
tion that I can't run opennms-webapp on the server either=2C it shows an er=
ror message=2C something like there is nothing to be shown on the server...=
<br><br>Could you guys please help me find out the problem? I tried to foll=
ow the manual step by step and really have no clue why it failed.<br><br>Th=
anks in advance=2C<br>honia <font style=3D"" color=3D"#ff0000"><strong></st=
rong></font><br><br><br><br>&gt=3B Date: Fri=2C 20 Mar 2009 15:36:35 -0400<=
br>&gt=3B From: [email protected]<br>&gt=3B To: [email protected]=
forge.net<br>&gt=3B Subject: Re: [opennms-devel] Building OpenNMS to use in=
 Eclipse - Failed:cannot find symbol<br>&gt=3B <br>&gt=3B Honia A wrote:<br=
>&gt=3B <br>&gt=3B &gt=3B 2- I looked for the .m2 directory and the only fo=
lders/references to<br>&gt=3B &gt=3B Maven are as follows:<br>&gt=3B &gt=3B=
 <br>&gt=3B &gt=3B - /root/Desktop/src/eclipse/maven/bin/m2<br>&gt=3B &gt=
=3B <br>&gt=3B &gt=3B - /root/m2_repo (it's hidden) ---&gt=3B I recall crea=
ting this when i get to<br>&gt=3B &gt=3B the step in the manual where it in=
struc to create a variable in eclipse<br>&gt=3B &gt=3B software:<br>&gt=3B =
&gt=3B <br>&gt=3B &gt=3B "Add a classpath variable called M2_REPO and set i=
ts value to |&lt=3Byour<br>&gt=3B &gt=3B home dir&gt=3B/.m2/repository|. (N=
ote: eclipse does not accept the '~'<br>&gt=3B &gt=3B character) "<br>&gt=
=3B &gt=3B <br>&gt=3B &gt=3B The ~/.m2/repository doesn't event exist on my=
 machine...it's<br>&gt=3B &gt=3B weird...sue=2C let me get the 1.6.2 and bu=
ild that one but will running<br>&gt=3B &gt=3B three build commands mention=
ed in the manual be sufficient or i'll have<br>&gt=3B &gt=3B to manually cr=
eate that .m2 directory?<br>&gt=3B <br>&gt=3B Ah=2C OK=2C if you're on wind=
ows=2C the point is the same=2C but I don't know<br>&gt=3B the exact locati=
on.  :)  On unix=2C "~" means your home directory=2C so I<br>&gt=3B would a=
ssume you have a homedir/.m2/ directory=2C or else maven is somehow<br>&gt=
=3B configuration to use another location.<br>&gt=3B <br>&gt=3B You can't h=
ave run maven and *not* had it put things *somewhere* --<br>&gt=3B wherever=
 that location is (it's easy to tell=2C it should be filled with<br>&gt=3B =
hundreds of jar files in subdirectories)=2C delete it to clear it out=2C so=
<br>&gt=3B you can be sure you're getting the right stuff.<br>&gt=3B <br>&g=
t=3B <br>&gt=3B -- <br>&gt=3B Benjamin Reed<br>&gt=3B The OpenNMS Group<br>=
&gt=3B http://www.opennms.org/<br>&gt=3B <br>&gt=3B <br><br /><hr />Get qui=
ck access to your favorite MSN content with Internet Explorer 8. <a href=3D=
'http://ie8.msn.com/microsoft/internet-explorer-8/en-us/ie8.aspx?ocid=3DB03=
7MSN55C0701A' target=3D'_new'>Download FREE now!</a></body>
</html>=

--_b133d227-2d30-482c-ba7a-4860ee1bb3fa_--


--===============5105231771320739535==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--===============5105231771320739535==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
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
--===============5105231771320739535==--