This page last changed on Nov 09, 2012 by ericnhitterdal.

I've gotten everything else configured but to run the dsc security system protocol i need the following.

For some reason my applicationContext.xml isn't able to find the following path... but i've verified it is there (as below). I've looked at http://www.openremote.org/display/forums/DSCit100 <--- this post
and did everything as stated.... i've verified the path matches in the applicationContext.xml file and can't figure out why it can't find the class...

org.openremote.controller.protocol.dscit100.DSCIT100CommandBuilder

I have the following files...in the following directory ~/Desktop/OpenRemote-Controller-2.0.0/webapps/controller/WEB-INF/classes/org/openremote/controller/protocol/dscit100
rw-rr- 1 root root 7353 Nov 9 04:29 DSCIT100CommandBuilder.java
rw-rr- 1 root root 5454 Nov 9 04:29 DSCIT100Command.java
rw-rr- 1 root root 1199 Nov 9 04:29 DSCIT100Connection.java
rw-rr- 1 root root 7924 Nov 9 04:29 DSCIT100ConnectionManager.java
rw-rr- 1 root root 7056 Nov 9 04:29 ExecuteCommand.java
rw-rr- 1 root root 5996 Nov 9 04:29 IpConnection.java
rw-rr- 1 root root 3811 Nov 9 04:29 Packet.java
rw-rr- 1 root root 10816 Nov 9 04:29 PanelState.java
rw-rr- 1 root root 6120 Nov 9 04:29 ReadCommand.java
rw-rr- 1 root root 1594 Nov 9 04:29 StateDefinition.java

but im getting the following error. They are in the correct path... just not sure why its not seeing the files... it defined them as a class, but they are actually .java files and not .class files....
but im following the directions exactly as Quintin Paulson mentions here http://www.openremote.org/display/forums/DSCit100

Any idea what the issue may be?

=============================================================================

Application initialization failed:
Cannot find class org.openremote.controller.protocol.dscit100.DSCIT100CommandBuilder for bean with name 'dscit100CommandBuilder' defined in class path resource applicationContext.xml; nested $

=============================================================================

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class org.openremote.controller.protocol.dscit100.DSCIT100CommandBuilder for bean with name 'dscit100CommandBuilder' d$
Caused by: java.lang.ClassNotFoundException: org.openremote.controller.protocol.dscit100.DSCIT100CommandBuilder
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:177)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:313)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:912)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:165)
at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:687)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:397)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:330)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
at org.openremote.controller.spring.SpringContext.<init>(SpringContext.java:74)
at org.openremote.controller.spring.SpringContext.<init>(SpringContext.java:69)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.openremote.controller.bootstrap.Startup.loadServiceContext(Startup.java:81)
at org.openremote.controller.bootstrap.servlet.ServletStartup.initializeServiceContext(ServletStartup.java:190)

The DSC files are not included in the regular download available from SourceForge. This is coming soon.

Posted by mredeker at Nov 10, 2012 20:52

Marcus -

Thanks for the response. I already have the files though (per the first part of my post).

I have the following files which I built with ant and everything built successfully. I followed the directions from Quintin Paulson here, http://www.openremote.org/display/forums/DSCit100

the files are in the following directory ~/Desktop/OpenRemote-Controller-2.0.0/webapps/controller/WEB-INF/classes/org/openremote/controller/protocol/dscit100

rw-rr- 1 root root 7353 Nov 9 04:29 DSCIT100CommandBuilder.java
rw-rr- 1 root root 5454 Nov 9 04:29 DSCIT100Command.java
rw-rr- 1 root root 1199 Nov 9 04:29 DSCIT100Connection.java
rw-rr- 1 root root 7924 Nov 9 04:29 DSCIT100ConnectionManager.java
rw-rr- 1 root root 7056 Nov 9 04:29 ExecuteCommand.java
rw-rr- 1 root root 5996 Nov 9 04:29 IpConnection.java
rw-rr- 1 root root 3811 Nov 9 04:29 Packet.java
rw-rr- 1 root root 10816 Nov 9 04:29 PanelState.java
rw-rr- 1 root root 6120 Nov 9 04:29 ReadCommand.java
rw-rr- 1 root root 1594 Nov 9 04:29 StateDefinition.java

Posted by ericnhitterdal at Nov 11, 2012 01:23

The files need to be compiled which is the process to translate them from .java to .class.
Did you to the "ant compile" step? That should produce the .class files.

Posted by mredeker at Nov 11, 2012 13:45

Marcus -

Thanks for the replies. I was able dig around some more and found a Build directory where all the files were being moved to after a build. I made a reply in the forum post here (like the following note) http://www.openremote.org/display/forums/DSCit100

Actually, in the steps above, you need to copy the folder and .class files from

/Controller_2_0_0_Alphas_DSCIT100/build/classes/org/openremote/controller/protocol/dscit100

into

OpenRemote-Controller-2.0.0/webapps/controller/WEB-INF/classes/org/openremote/controller/protocol/

Posted by ericnhitterdal at Nov 12, 2012 16:42
Document generated by Confluence on Jun 05, 2016 09:30