Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000906 [Resin] minor always 02-01-06 15:57 02-01-06 16:20
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.0.18 Product Version
  Product Build
Summary 0000906: getResource (in classloader or application) isn't returning valid for /WEB-INF
Description (rep by jmhong)

Here is the output from resin's console.
The StartupListener extends org.springframework.web.context.ContextLoaderListener
and calls
    super.contextInitialized(event);
in the beginning of is overloaded function.
    public void contextInitialized(ServletContextEvent event)

Resin 3.0.14 pro
Jdk 1.5.0_06

   <!-- Resin works only when list the context xml file explicitly -->
   Context Configuration locations for Spring XML files, these files have to be
   listed one by one to be compatiable with Resin
   <context-param>
       <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/applicationContext-hibernate.xml,
/WEB-INF/applicationContext-resources.xml,
/WEB-INF/applicationContext-security.xml,
/WEB-INF/applicationContext-service.xml,
/WEB-INF/action-servlet.xml
       </param-value>
   </context-param>

     <!-- This configuration cause the exception as attached in this mail -->
   <context-param>
       <param-name>contextConfigLocation</param-name>
       <param-value>/WEB-INF/applicationContext-*.xml,/WEB-INF/action-servlet.xml</param-value>
   </context-param>

Thanks,

-- Scott

-------------------
[01:00:27.921] Server[] starting
[01:00:28.031] Loaded Socket JNI library.
[01:00:28.031] http listening to *:8080
[01:00:28.031] hmux listening to 127.0.0.1:6802
[01:00:28.125] Host[] starting
[01:00:28.312] WebApp[http://localhost:8080] [^] starting
[01:00:29.578] In-place class redefinition (HotSwap) is not available. In-place class reloading during development requires a compatible JDK and -Xdebug.
[01:00:30.765] WebApp[http://localhost:8080/myafx] [^] starting
[myafx] DEBUG [main] StartupListener.contextInitialized(48) | initializing context...
[01:00:30.875] Loading Spring root WebApplicationContext
[myafx] ERROR [main] ContextLoader.initWebApplicationContext(205) | Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern [/WEB-INF/applicationContext-*.xml]; nested exception is java.io.FileNotFoundExceptio
n: ServletContext resource [/WEB-INF/] cannot be resolved to URL because it does not exist
java.io.FileNotFoundException: ServletContext resource [/WEB-INF/] cannot be resolved to URL because it does not exist
       at org.springframework.web.context.support.ServletContextResource.getURL(ServletContextResource.java:112)
       at org.springframework.core.io.support.PathMatchingResourcePatternResolver.isJarResource(PathMatchingResourcePatternResolver.java:306)
       at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:261)
       at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:212)
       at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:681)
       at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
       at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
       at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
       at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
       at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:269)
       at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
       at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
       at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
       at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
       at com.netcae.web.webapp.listener.StartupListener.contextInitialized(StartupListener.java:53)
       at com.caucho.server.webapp.Application.start(Application.java:1539)
       at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563)
       at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
       at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:451)
       at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:157)
       at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:610)
       at com.caucho.server.host.Host.start(Host.java:385)
       at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563)
       at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
       at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:451)
       at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:157)
       at com.caucho.server.host.HostContainer.start(HostContainer.java:468)
       at com.caucho.server.resin.ServletServer.start(ServletServer.java:934)
       at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563)
       at com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)
       at com.caucho.server.deploy.DeployController.start(DeployController.java:459)
       at com.caucho.server.resin.ResinServer.start(ResinServer.java:465)
       at com.caucho.server.resin.Resin.init(Resin.java)
       at com.caucho.server.resin.Resin.main(Resin.java:612)
[01:00:31.546] org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern [/WEB-INF/applicationContext-*.xml]; nested exception is java.io.FileN
otFoundException: ServletContext resource [/WEB-INF/] cannot be resolved to URL because it does not exist
[01:00:31.546] java.io.FileNotFoundException: ServletContext resource [/WEB-INF/] cannot be resolved to URL because it does not exist
[01:00:31.546] at org.springframework.web.context.support.ServletContextResource.getURL(ServletContextResource.java:112)
[01:00:31.546] at org.springframework.core.io.support.PathMatchingResourcePatternResolver.isJarResource(PathMatchingResourcePatternResolver.java:306)
[01:00:31.546] at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:261)
[01:00:31.546] at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:212)
[01:00:31.546] at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:681)
[01:00:31.546] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
[01:00:31.546] at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
[01:00:31.546] at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
[01:00:31.546] at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
[01:00:31.546] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:269)
[01:00:31.546] at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
[01:00:31.546] at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
[01:00:31.546] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
[01:00:31.546] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
[01:00:31.546] at com.netcae.web.webapp.listener.StartupListener.contextInitialized(StartupListener.java:53)
[01:00:31.546] at com.caucho.server.webapp.Application.start(Application.java:1539)
[01:00:31.546] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563)
[01:00:31.546] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[01:00:31.546] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:451)
[01:00:31.546] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:157)
[01:00:31.546] at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:610)
[01:00:31.546] at com.caucho.server.host.Host.start(Host.java:385)
[01:00:31.546] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563)
[01:00:31.546] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[01:00:31.546] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:451)
[01:00:31.546] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:157)
[01:00:31.546] at com.caucho.server.host.HostContainer.start(HostContainer.java:468)
[01:00:31.546] at com.caucho.server.resin.ServletServer.start(ServletServer.java:934)
[01:00:31.546] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563)
[01:00:31.546] at com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)
[01:00:31.546] at com.caucho.server.deploy.DeployController.start(DeployController.java:459)
[01:00:31.546] at com.caucho.server.resin.ResinServer.start(ResinServer.java:465)
[01:00:31.546] at com.caucho.server.resin.Resin.init(Resin.java)
[01:00:31.546] at com.caucho.server.resin.Resin.main(Resin.java:612)
[01:00:31.593] org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern [/WEB-INF/applicationContext-*.xml]; nested exception is java.io.FileN
otFoundException: ServletContext resource [/WEB-INF/] cannot be resolved to URL because it does not exist
[01:00:31.593] java.io.FileNotFoundException: ServletContext resource [/WEB-INF/] cannot be resolved to URL because it does not exist
[01:00:31.593] at org.springframework.web.context.support.ServletContextResource.getURL(ServletContextResource.java:112)
[01:00:31.593] at org.springframework.core.io.support.PathMatchingResourcePatternResolver.isJarResource(PathMatchingResourcePatternResolver.java:306)
[01:00:31.593] at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:261)
[01:00:31.593] at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:212)
[01:00:31.593] at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:681)
[01:00:31.593] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
[01:00:31.593] at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
[01:00:31.593] at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
[01:00:31.593] at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
[01:00:31.593] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:269)
[01:00:31.593] at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
[01:00:31.593] at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
[01:00:31.593] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
[01:00:31.593] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
[01:00:31.593] at com.netcae.web.webapp.listener.StartupListener.contextInitialized(StartupListener.java:53)
[01:00:31.593] at com.caucho.server.webapp.Application.start(Application.java:1539)
[01:00:31.593] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563)
[01:00:31.593] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[01:00:31.593] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:451)
[01:00:31.593] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:157)
[01:00:31.593] at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:610)
[01:00:31.593] at com.caucho.server.host.Host.start(Host.java:385)
[01:00:31.593] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563)
[01:00:31.593] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[01:00:31.593] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:451)
[01:00:31.593] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:157)
[01:00:31.593] at com.caucho.server.host.HostContainer.start(HostContainer.java:468)
[01:00:31.593] at com.caucho.server.resin.ServletServer.start(ServletServer.java:934)
[01:00:31.593] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:563)
[01:00:31.593] at com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)
[01:00:31.593] at com.caucho.server.deploy.DeployController.start(DeployController.java:459)
[01:00:31.593] at com.caucho.server.resin.ResinServer.start(ResinServer.java:465)
[01:00:31.593] at com.caucho.server.resin.Resin.init(Resin.java)
[01:00:31.593] at com.caucho.server.resin.Resin.main(Resin.java:612)

Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0000839)
ferg
02-01-06 16:20

server/10o8
 

- Issue History
Date Modified Username Field Change
02-01-06 15:57 ferg New Issue
02-01-06 16:20 ferg Note Added: 0000839
02-01-06 16:20 ferg Assigned To  => ferg
02-01-06 16:20 ferg Status new => closed
02-01-06 16:20 ferg Resolution open => fixed
02-01-06 16:20 ferg Fixed in Version  => 3.0.18


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker