axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-1448) ServiceLifeCycle.startUp should happen before MessageReciever processing
Date Thu, 19 Oct 2006 13:26:35 GMT
     [ http://issues.apache.org/jira/browse/AXIS2-1448?page=all ]

Deepal Jayasinghe resolved AXIS2-1448.
--------------------------------------

    Resolution: Fixed

fixed the issue in current SVN

> ServiceLifeCycle.startUp should happen before MessageReciever processing
> ------------------------------------------------------------------------
>
>                 Key: AXIS2-1448
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1448
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>         Environment: linux, java 5
>            Reporter: robert lazarski
>         Assigned To: Deepal Jayasinghe
>
> If ServiceLifeCycle.startUp inits a dependency that the MR needs, there will be an exception
on server startup . The pasted stack trace below happens before the first print statement
in startUp() , "Starting spring init" . It'd be helpful if startUp() is called before the
MR: 
> Error in schema generating null
> java.lang.reflect.InvocationTargetException
>        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:585)
>        at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:248)
>        at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:266)
>        at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:91)
>        at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:83)
>        at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:117)
>        at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:533)
>        at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:200)
>        at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:210)
>        at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:157)
>        at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:84)
>        at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:256)
>        at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:72)
>        at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:359)
>        at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:304)
>        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
>        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
>        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
>        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
>        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
>        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
>        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
>        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
>        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
>        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
>        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
>        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>        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:585)
>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> Caused by: org.apache.axis2.AxisFault: Axis2 Can't find Spring's
> ApplicationContext; nested exception is:
>        java.lang.Exception: Axis2 Can't find Spring's ApplicationContext
>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
>        at org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier.getServiceObject(SpringAppContextAwareObjectSupplier.java:61)
>        ... 44 more
> Caused by: java.lang.Exception: Axis2 Can't find Spring's ApplicationContext
>        at org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier.getServiceObject(SpringAppContextAwareObjectSupplier.java:51)
>        ... 44 more
> Starting spring init
> Note that startIp() still can init things fine.  The exception is what I'm trying to
get rid of. 

-- 
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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message