Exception when trying to run com.jagronet.dhcp.server

33 views
Skip to first unread message

Nagy

unread,
Aug 24, 2017, 8:55:09 AM8/24/17
to jagornet-dhcpv6-users
I am trying to run "com.jagornet.dhcp.server" as a java application but I got an exception shown below and unable to solve it. If you have any tips that can help with that exception, I will be happy to read them. Attached all the console output when trying to run.

Thanks in advance.
------------------------------------------------------------------------
DhcpServer ABORT!
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)
2017-08-24 14:21:26,697 [Thread-0] INFO  com.jagornet.dhcp.server.JagornetDhcpServer - Stopping Jagornet DHCPv6 Server
Stopping Jagornet DHCPv6 Server: Thu Aug 24 14:21:26 EET 2017


consoleOutput.txt

Nagy

unread,
Aug 24, 2017, 8:58:28 AM8/24/17
to jagornet-dhcpv6-users
I am running windows 7 and have the environment variable jagornet_dhcp_home pointing to bin/conf/db/build/..etc folder of the dhcp sever 

Greg Rabil

unread,
Aug 27, 2017, 10:49:17 PM8/27/17
to jagornet-dhcpv6-users
Assuming that you are using dhcpserver.bat file to run the server, you need to set the environment variable called JAGORNET_DHCP_HOME (all CAPS) to the directory where you unzipped the Windows binary download.
Reply all
Reply to author
Forward
0 new messages