Hi All,

I am trying to create a new configuration file to store poe-switches info and use it to configure from web. I followed the document at this http://www.opennms.org/wiki/Creating_a_xmp_collector#Creating_XSD_Parsers <createconfig>

I have created a new xsd file called poe-switch-configuration.xsd and placed it in opennms-config/main/src/castor/xsd and compiled the opennms-config project. I saw the generated resources and classes for all the objects as per the xsd. The classes generated are
Poeswitch
Poeswitches
Poeswitchinfo
Portmap. With their respective descriptors.

Now I wrote a factory class called PoeSwitchConfigFactory to load and save configuration and placed at opennms-services\src\main\java\org\opennms\netmgt\config\

I tried to build the opennm-services project then it cannot find the classes which are generated by opennm-config castor. Some errors are as follows.

[ERROR] /home/dj/code/onms/svn-nms/158bnms/branches/opennms-services/src/main/java/org/opennms/netmgt/config/PoeSwitchConfigFactory.java:[95,29] cannot find symbol
symbol  : variable ConfigFileConstants
location: class org.opennms.netmgt.config.PoeSwitchConfigFactory

*--This one I edited org.opennms.netmgt.ConfigFileConstants at opennms-config-utils to list my Poe-Switch-Configuration.xml file.*

[ERROR] /home/dj/code/onms/svn-nms/158bnms/branches/opennms-services/src/main/java/org/opennms/netmgt/config/PoeSwitchConfigFactory.java:[54,104] cannot find symbol
symbol  : class ValidationException
location: class org.opennms.netmgt.config.PoeSwitchConfigFactory

--This one seems to be the casto validation exception which


These errors looks like the opennms-services project never able to find its dependencies like the opennms-castor, opennms-config mentioned in pom.xml which have all the links.

how should I resolve this issue ??

Cheers,
Reddy.

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
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