Error when trying to run "com.jagornet.dhcp.server"

45 views
Skip to first unread message

nagymo...@hotmail.com

unread,
Aug 27, 2017, 10:50:49 PM8/27/17
to jagornet-dhcpv6-users
Hi, 
I am trying to run  "com.jagornet.dhcp.server" as a java application using eclipse. It starts fine but I get an exception
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in class path resource [com/jagornet/dhcp/context_jdbc_datasource.xml]: Could not resolve placeholder 'jagornet.dhcp.home'
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209)
at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:220)
at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:84)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:656)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:446)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at com.jagornet.dhcp.server.JagornetDhcpServer.start(JagornetDhcpServer.java:194)
at com.jagornet.dhcp.server.JagornetDhcpServer.main(JagornetDhcpServer.java:950)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I am running windows 10 and have the environment variable JAGORNET_DHCP_HOME pointing to the folder containing bin/build/conf/db/etc. related to jagornet DHCP server.
Do you have any tips to solve the above exception ?
attached the complete console output.
Thanks in advance.
consoleOutput.txt

Greg Rabil

unread,
Aug 27, 2017, 11:02:04 PM8/27/17
to jagornet-dhcpv6-users
If you are running the server from the Eclipse project, you will need to run the JagornetDhcpServer class, and set the VM arguments to -Djagornet.dhcp.home=${workspace_loc:Jagornet-DHCP}
Reply all
Reply to author
Forward
0 new messages