artsrun-gasparyan / jwebsocket

Automatically exported from code.google.com/p/jwebsocket
0 stars 0 forks source link

bootstrap.xml file not found exception #169

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have tried this with the latest jwebsocket.  
I have a fresh install of tomcat 6.0 on a windows system.
I have updated the tomcat lib directory with the jwebsocket bundle.jar and the 
tomcat conf with jwebsocket.xml (according to documentation).
I have created a simple context listener that 
executes:JWebSocketFactory.start();

I keep getting a spring framework exception:
2012-03-22 14:23:43,048 ERROR - LogViewerServletContextListener: EXCEPTION:
org.springframework.beans.factory.BeanDefinitionStoreException: IOException 
parsing XML document from file [C:\Program Files\Apache Software 
Foundation\Tomcat 6.0\conf\Resources\bootstrap.xml]; nested exception is 
java.io.FileNotFoundException: C:\Program Files\Apache Software 
Foundation\Tomcat 6.0\conf\Resources\bootstrap.xml (The system cannot find the 
path specified)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
    at org.jwebsocket.spring.JWebSocketBeanFactory.load(JWebSocketBeanFactory.java:47)
    at org.jwebsocket.factory.JWebSocketFactory.start(JWebSocketFactory.java:123)
    at org.jwebsocket.factory.JWebSocketFactory.start(JWebSocketFactory.java:89)
    at com.alu.nms.logviewer.web.server.LogViewerServletContextListener.contextInitialized(LogViewerServletContextListener.java:41)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    at org.apache.catalina.core.StandardService.start(StandardService.java:525)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.io.FileNotFoundException: C:\Program Files\Apache Software 
Foundation\Tomcat 6.0\conf\Resources\bootstrap.xml (The system cannot find the 
path specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at org.springframework.core.io.FileSystemResource.getInputStream(FileSystemResource.java:110)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
    ... 29 more

Any suggestion? do I need to manually add the bootstrap.xml file from 
somewhere?  What did I miss?

Thanks

Original issue reported on code.google.com by karenlis...@gmail.com on 22 Mar 2012 at 6:30

GoogleCodeExporter commented 9 years ago
Hi, Can you find solution for the problem? i am also facing with the same 
problem.

Original comment by ugurk...@gmail.com on 12 Apr 2012 at 9:30