geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Sturm (JIRA)" <...@geronimo.apache.org>
Subject [jira] Created: (GERONIMO-2150) error when restarting geronimo after deploying xfire spring example
Date Mon, 26 Jun 2006 12:19:31 GMT
error when restarting geronimo after deploying xfire spring example
-------------------------------------------------------------------

         Key: GERONIMO-2150
         URL: http://issues.apache.org/jira/browse/GERONIMO-2150
     Project: Geronimo
        Type: Bug
    Security: public (Regular issues) 
    Versions: 1.1    
 Environment: Java 1.5.0_06 osx
    Reporter: Christoph Sturm


AG acts weird if I restart it after deploying the xfire-spring example: I think it has to
do with the artifactId it autogenerates if there is no geronimo-web.xml
(i dont think it has anything to do with the xfire spring example, just with its filename
and that it doenst have a geronimo-web.xml)

to reproduce:
start a fresh unpacked geronimo 1.1

after its started cp xfire-spring-example-1.2-SNAPSHOT.war <GERONIMO>/deploy

geronimo deploys the war:
13:51:36,831 INFO  [Hot Deployer] Deploying xfire-spring-example-1.2-SNAPSHOT.war
13:51:37,863 WARN  [JettyModuleBuilder] Web application . does not contain a WEB-INF/geronimo-web.xml
deployment plan.  This may or may not be a problem, depending on whether you have things like
resource references that need to be resolved.  You can also give the deployer a separate deployment
plan file on the command line.
2006-06-26 13:51:39,094 INFO [org.springframework.web.context.ContextLoader] - Root WebApplicationContext:
initialization started
2006-06-26 13:51:39,149 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
- Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
2006-06-26 13:51:39,223 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
- Loading XML bean definitions from class path resource [org/codehaus/xfire/spring/xfire.xml]
2006-06-26 13:51:39,247 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
- Loading XML bean definitions from class path resource [org/codehaus/xfire/spring/customEditors.xml]
2006-06-26 13:51:39,272 INFO [org.springframework.core.CollectionFactory] - JDK 1.4+ collections
available
2006-06-26 13:51:39,429 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
- Bean factory for application context [Root WebApplicationContext]: org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [echoBean,customEditorConfigurer,xfire.serviceRegistry,xfire.transportManager,xfire,xfire.typeMappingRegistry,xfire.aegisBindingProvider,xfire.serviceFactory,xfire.servletController,xfire.messageServiceFactory,xfire.messageBindingProvider];
root of BeanFactory hierarchy
2006-06-26 13:51:39,435 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
- 11 beans defined in application context [Root WebApplicationContext]
2006-06-26 13:51:39,665 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
- Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@4a64b6]
2006-06-26 13:51:39,667 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
- Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using
default [org.springframework.context.event.SimpleApplicationEventMulticaster@74f9b2]
2006-06-26 13:51:39,670 INFO [org.springframework.ui.context.support.UiApplicationContextUtils]
- Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@862421]
2006-06-26 13:51:39,671 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
- Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [echoBean,customEditorConfigurer,xfire.serviceRegistry,xfire.transportManager,xfire,xfire.typeMappingRegistry,xfire.aegisBindingProvider,xfire.serviceFactory,xfire.servletController,xfire.messageServiceFactory,xfire.messageBindingProvider];
root of BeanFactory hierarchy]
2006-06-26 13:51:39,866 INFO [org.springframework.web.context.ContextLoader] - Using context
class [org.springframework.web.context.support.XmlWebApplicationContext] for root WebApplicationContext
2006-06-26 13:51:39,866 INFO [org.springframework.web.context.ContextLoader] - Root WebApplicationContext:
initialization completed in 772 ms
    Deployed default/xfire-spring-example-1.2-SNAPSHOT/1151322697067/war
    @ http://globalmobil:8080/xfire-spring-example-1.2-SNAPSHOT

press ctrl-c

start geronimo again


after the restart this error is logged: 
2006-06-26 13:52:32,059 ERROR [org.apache.geronimo.deployment.hot.DirectoryMonitor] - Unable
to scan file /Users/christophsturm/Projects/geronimo-1.1/deploy/xfire-spring-example-1.2-SNAPSHOT.war
during initialization
java.lang.IllegalArgumentException: Invalid id: xfire-spring-example-1.2-SNAPSHOT
        at org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:49)
        at org.apache.geronimo.deployment.hot.DirectoryHotDeployer.getDeploymentTime(DirectoryHotDeployer.java:215)
        at org.apache.geronimo.deployment.hot.DirectoryMonitor.initialize(DirectoryMonitor.java:233)
        at org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMonitor.java:206)
        at java.lang.Thread.run(Thread.java:613)
2006-06-26 13:52:36,063 INFO [org.apache.geronimo.deployment.hot.Hot Deployer] - Deploying
xfire-spring-example-1.2-SNAPSHOT.war
2006-06-26 13:52:36,767 WARN [org.apache.geronimo.jetty.deployment.JettyModuleBuilder] - Web
application . does not contain a WEB-INF/geronimo-web.xml deployment plan.  This may or may
not be a problem, depending on whether you have things like resource references that need
to be resolved.  You can also give the deployer a separate deployment plan file on the command
line.
2006-06-26 13:52:37,513 DEBUG [org.apache.geronimo.gbean.runtime.GBeanSingleReference] - Waiting
to start default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war?J2EEApplication=null,WebModule=default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war,j2eeType=Servlet,name=default
because no targets are running for reference JettyServletRegistration matching the patterns
default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war?J2EEApplication=null,j2eeType=WebModule,name=default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war
2006-06-26 13:52:37,513 DEBUG [org.apache.geronimo.gbean.runtime.GBeanSingleReference] - Waiting
to start default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war?J2EEApplication=null,WebModule=default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war,j2eeType=Servlet,name=xfire
because no targets are running for reference JettyServletRegistration matching the patterns
default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war?J2EEApplication=null,j2eeType=WebModule,name=default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war
2006-06-26 13:52:37,541 INFO [org.springframework.web.context.ContextLoader] - Root WebApplicationContext:
initialization started
2006-06-26 13:52:37,590 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
- Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
2006-06-26 13:52:37,615 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
- Loading XML bean definitions from class path resource [org/codehaus/xfire/spring/xfire.xml]
2006-06-26 13:52:37,651 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
- Loading XML bean definitions from class path resource [org/codehaus/xfire/spring/customEditors.xml]
2006-06-26 13:52:37,672 INFO [org.springframework.core.CollectionFactory] - JDK 1.4+ collections
available
2006-06-26 13:52:37,817 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
- Bean factory for application context [Root WebApplicationContext]: org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [echoBean,customEditorConfigurer,xfire.serviceRegistry,xfire.transportManager,xfire,xfire.typeMappingRegistry,xfire.aegisBindingProvider,xfire.serviceFactory,xfire.servletController,xfire.messageServiceFactory,xfire.messageBindingProvider];
root of BeanFactory hierarchy
2006-06-26 13:52:37,822 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
- 11 beans defined in application context [Root WebApplicationContext]
2006-06-26 13:52:37,888 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
- Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@36d6a9]
2006-06-26 13:52:37,889 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
- Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using
default [org.springframework.context.event.SimpleApplicationEventMulticaster@d94949]
2006-06-26 13:52:37,892 INFO [org.springframework.ui.context.support.UiApplicationContextUtils]
- Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@81a33b]
2006-06-26 13:52:37,893 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
- Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [echoBean,customEditorConfigurer,xfire.serviceRegistry,xfire.transportManager,xfire,xfire.typeMappingRegistry,xfire.aegisBindingProvider,xfire.serviceFactory,xfire.servletController,xfire.messageServiceFactory,xfire.messageBindingProvider];
root of BeanFactory hierarchy]
2006-06-26 13:52:38,053 INFO [org.springframework.web.context.ContextLoader] - Using context
class [org.springframework.web.context.support.XmlWebApplicationContext] for root WebApplicationContext
2006-06-26 13:52:38,053 INFO [org.springframework.web.context.ContextLoader] - Root WebApplicationContext:
initialization completed in 512 ms
2006-06-26 13:52:38,056 WARN [org.apache.geronimo.jetty.JettyWebAppContext] - JettyWebAppContext
failed
2006-06-26 13:52:38,056 ERROR [org.apache.geronimo.gbean.runtime.GBeanInstanceState] - Error
while starting; GBean is now in the FAILED state: abstractName="default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war?J2EEApplication=null,j2eeType=WebModule,name=default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war"
java.lang.IllegalStateException: Web app root system property already set to different value:
'webapp.root' = [/Users/christophsturm/Projects/geronimo-1.1/repository/default/xfire-spring-example-1.2-SNAPSHOT/1151322697067/xfire-spring-example-1.2-SNAPSHOT-1151322697067.war]
instead of [/Users/christophsturm/Projects/geronimo-1.1/repository/default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/xfire-spring-example-1.2-SNAPSHOT-1151322756200.war]
- Choose unique values for the 'webAppRootKey' context-param in your web.xml files!
        at org.springframework.web.util.WebUtils.setWebAppRootSystemProperty(WebUtils.java:99)
        at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:117)
        at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:51)
        at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:495)
        at org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppContext.java:401)
        at org.mortbay.util.Container.start(Container.java:72)
        at org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppContext.java:389)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:981)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:374)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:512)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:493)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
        at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$cb7cd1d.startConfiguration(<generated>)
        at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
        at java.lang.Thread.run(Thread.java:613)
2006-06-26 13:52:38,058 DEBUG [org.apache.geronimo.gbean.runtime.GBeanSingleReference] - Waiting
to start default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war?J2EEApplication=null,WebModule=default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war,j2eeType=Servlet,name=jsp
because no targets are running for reference JettyServletRegistration matching the patterns
default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war?J2EEApplication=null,j2eeType=WebModule,name=default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war
org.apache.geronimo.kernel.config.LifecycleException: start of default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war
failed
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:529)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:493)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
        at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$cb7cd1d.startConfiguration(<generated>)
        at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
        at java.lang.Thread.run(Thread.java:613)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown start exception
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:440)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:512)
        ... 12 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war
failed to start due to the following reasons:
  The service J2EEApplication=null,WebModule=default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war,j2eeType=Servlet,name=default
did not start because default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war?J2EEApplication=null,j2eeType=WebModule,name=default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war
did not start.
  The service J2EEApplication=null,WebModule=default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war,j2eeType=Servlet,name=xfire
did not start because default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war?J2EEApplication=null,j2eeType=WebModule,name=default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war
did not start.
  The service J2EEApplication=null,j2eeType=WebModule,name=default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war
did not start because the doStart method threw an exception. 
java.lang.IllegalStateException: Web app root system property already set to different value:
'webapp.root' = [/Users/christophsturm/Projects/geronimo-1.1/repository/default/xfire-spring-example-1.2-SNAPSHOT/1151322697067/xfire-spring-example-1.2-SNAPSHOT-1151322697067.war]
instead of [/Users/christophsturm/Projects/geronimo-1.1/repository/default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/xfire-spring-example-1.2-SNAPSHOT-1151322756200.war]
- Choose unique values for the 'webAppRootKey' context-param in your web.xml files!
        at org.springframework.web.util.WebUtils.setWebAppRootSystemProperty(WebUtils.java:99)
        at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:117)
        at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:51)
        at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:495)
        at org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppContext.java:401)
        at org.mortbay.util.Container.start(Container.java:72)
        at org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppContext.java:389)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:981)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:374)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:512)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:493)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
        at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$cb7cd1d.startConfiguration(<generated>)
        at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
        at java.lang.Thread.run(Thread.java:613)

  The service J2EEApplication=null,WebModule=default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war,j2eeType=Servlet,name=jsp
did not start because default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war?J2EEApplication=null,j2eeType=WebModule,name=default/xfire-spring-example-1.2-SNAPSHOT/1151322756200/war
did not start.

        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:403)
        ... 14 more
2006-06-26 13:52:38,144 WARN [org.apache.geronimo.deployment.hot.Hot Deployer] - Unable to
start some modules for /Users/christophsturm/Projects/geronimo-1.1/deploy/xfire-spring-example-1.2-SNAPSHOT.war

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message