File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Error executing JPetStore Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "Error executing JPetStore" Watch "Error executing JPetStore" New topic
Author

Error executing JPetStore

Girish Varde
Greenhorn

Joined: Jul 09, 2004
Posts: 23
I am executing the JPetStore example in the Spring samples, and using Eclipse. I am getting following exception

Dec 2, 2005 4:51:13 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from file [D:\dev\examples\jpetstore\clientContext.xml]
org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'hessianProxy' defined in file [D:\dev\examples\jpetstore\clientContext.xml]: Class that bean class [org.springframework.remoting.caucho.HessianProxyFactoryBean] depends on not found; nested exception is java.lang.NoClassDefFoundError: com/caucho/hessian/client/HessianRuntimeException
java.lang.NoClassDefFoundError: com/caucho/hessian/client/HessianRuntimeException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:88)
at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:65)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:369)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:335)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitions(DefaultXmlBeanDefinitionParser.java:266)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:186)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:246)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:163)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:81)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268)
at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:83)
at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:68)
at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:59)
at org.springframework.samples.jpetstore.service.client.OrderServiceClient.main(OrderServiceClient.java:88)
Exception in thread "main"


I am running OrderServiceClient.

I have included all required jars in eclipse class path.

I am stuck up as it's difficult to learn spring without example.

Thanks in advance for your help
Junilu Lacar
Ranch Hand

Joined: Feb 26, 2001
Posts: 3008
Are you sure the spring-remoting.jar is in your classpath?


Junilu
[How to Ask Questions] [How to Answer Questions] [MiH]
 
 
subject: Error executing JPetStore
 
Threads others viewed
Error registering bean And Classnotfound Exception
cvc-complex-type.2.3:Element 'beans' cannot have character [children] type's content type is element
[beans.xml] cannot be opened because it does not exist
FileNotFoundException for context file
FileNotFoundException
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture