Hi,

Good catch Sameera. It seems that this issue has occurred since the spring
framework bundle in patch0009 includes a Service-Provider-Interface for
javax.servlet.ServletContainerInitializer. So, I have removed the
META-INF/services/javax.servlet.ServletContainerInitializer from spring
framework bundle, and tested in the AM pack provided by Ratha. I couldn't
re-produce it so far. I have added this file and several other config files
(META-INF/{spring.schemas, spring.handlers} etc.) to spring framework in
patch0009 to fix some issues in AS.

Since you need to provide packs to QA, I will remove this particular file
from spring framework bundle. @Ratha, it would be great if you can test
this out. You will have to do following step.

1. Remove the file
"META-INF/services/javax.servlet.ServletContainerInitializer" from
spring-framework bundle in patch0009
2. Restart the server

Thanks,
KasunG


On Mon, Jul 14, 2014 at 12:31 PM, Vijayaratha Vijayasingam <rat...@wso2.com>
wrote:

> Hi sameera;
> Thanks ..looks like this solved the issue..I restarted the server several
> times, but haven't faced any issue..
> May i know how do you find the root cause? so, we won't disturb core team
> to fix these type issues?
>
> thanks
>
>
> On 14 July 2014 11:53, Sameera Jayasoma <same...@wso2.com> wrote:
>
>> Hi Ratha,
>>
>> Can you try to reproduce by removing the following jar from patch0009?
>>
>> repository/components/patches/patch0009/spring.framework_3.1.0.wso2v1.jar
>>
>> Thanks,
>> Sameera.
>>
>>
>> On Wed, Jul 9, 2014 at 6:49 PM, Vijayaratha Vijayasingam <rat...@wso2.com
>> > wrote:
>>
>>> Is there any recent change in the *core.util module* which causes this
>>> issue?
>>>
>>>
>>> osgi> ls 454
>>> Components in bundle org.wso2.carbon.utils:
>>> ID      State                   Component Name                  Located
>>> in bundle
>>> 155     Active
>>> org.wso2.carbon.context.internal.CarbonContextDiscoveryServiceComponent
>>> org.wso2.carbon.utils(bid=454)
>>> 156     Active
>>> org.wso2.carbon.context.internal.CarbonContextServiceComponent
>>> org.wso2.carbon.utils(bid=454)
>>> 157     Unsatisfied
>>> org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent
>>> org.wso2.carbon.utils(bid=454)
>>> osgi> comp 157
>>>
>>>         Component[
>>>         name = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent
>>>         factory = null
>>>         autoenable = true
>>>         immediate = true
>>>         implementation =
>>> org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent
>>>         state = Unsatisfied
>>>         properties =
>>> {service.pid=org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent}
>>>         serviceFactory = false
>>>         serviceInterface = null
>>>         references = {
>>>                 Reference[name = configuration.context.service,
>>> interface = org.wso2.carbon.utils.ConfigurationContextService, policy =
>>> dynamic, cardi
>>> nality = 1..1, target = null, bind = setConfigurationContextService,
>>> unbind = unsetConfigurationContextService]
>>>         }
>>>         located in bundle = org.wso2.carbon.utils_4.2.0 [454]
>>> ]
>>> Dynamic information :
>>>   *The component is NOT satisfied
>>>   The following references are not satisfied:
>>>     Reference[name = configuration.context.service, interface =
>>> org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic,
>>> cardinality = 1..
>>> 1, target = null, bind = setConfigurationContextService, unbind =
>>> unsetConfigurationContextService]
>>>   Component configurations :
>>>     Configuration properties:
>>>       service.pid =
>>> org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent
>>>       component.name =
>>> org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent
>>>       component.id = 156
>>>     Instances:
>>>
>>>
>>> On 9 July 2014 18:28, Vijayaratha Vijayasingam <rat...@wso2.com> wrote:
>>>
>>>> when i get*  "java.lang.*
>>>> *ClassNotFoundException: 
>>>> org.wso2.carbon.tomcat.ext.**servlet.DelegationServlet"
>>>> *issue
>>>> here are the osgi out put;
>>>>
>>>> *osgi> headers 421*
>>>> Bundle headers:
>>>>  Bnd-LastModified = 1404369790626
>>>>  Build-Jdk = 1.6.0_45
>>>>  Built-By = root
>>>>  Bundle-Description = This bundle contains custom tomcat extensions
>>>> such as tomcat valves,etc
>>>>  Bundle-DocURL = http://wso2.com
>>>>  Bundle-License = http://www.apache.org/licenses/LICENSE-2.0
>>>>  Bundle-ManifestVersion = 2
>>>>  Bundle-Name = org.wso2.carbon.tomcat.ext
>>>>  Bundle-SymbolicName = org.wso2.carbon.tomcat.ext
>>>>  Bundle-Vendor = WSO2 Inc
>>>>  Bundle-Version = 4.2.0
>>>>  Created-By = Apache Maven Bundle Plugin
>>>>
>>>> Export-Package =
>>>>
>>>> org.wso2.carbon.tomcat.ext.service;uses:="org.apache.commons.logging,org.apache.catalina,org.apache.catalina.core";version="4.2.0",o
>>>>
>>>> rg.wso2.carbon.tomcat.ext.scan;uses:="javax.servlet,org.apache.tomcat,org.apache.tomcat.util.res,org.apache.tomcat.util.file,org.apache.juli.logging,o
>>>>
>>>> rg.eclipse.osgi.framework.adaptor,org.apache.tomcat.util.scan";version="4.2.0",org.wso2.carbon.tomcat.ext.valves;uses:="org.wso2.carbon.registry.core.
>>>>
>>>> service,org.apache.catalina.connector,org.apache.commons.logging,org.apache.catalina.valves,org.wso2.carbon.user.api,org.wso2.carbon.registry.api,org.
>>>>
>>>> wso2.carbon.registry.core.ghostregistry,org.wso2.carbon.context,javax.servlet,org.wso2.carbon.user.core.service,org.apache.catalina,
>>>> org.wso2.carbon.to
>>>>
>>>> mcat.ext.utils,javax.servlet.http,org.apache.juli.logging,org.apache.tomcat.util.res,org.wso2.carbon.core.session,org.apache.catalina.ha,
>>>> org.apache.ax
>>>>
>>>> is2.clustering,org.wso2.carbon.tomcat.ext.saas,org.wso2.carbon.tomcat.ext.realms,org.wso2.carbon.user.core.tenant,org.apache.coyote,
>>>> org.wso2.carbon.ba
>>>>
>>>> se";version="4.2.0",org.wso2.carbon.tomcat.ext.saas;version="4.2.0",org.wso2.carbon.tomcat.ext.utils;version="4.2.0",org.wso2.carbon.tomcat.ext.filter
>>>>
>>>> ;uses:="javax.servlet";version="4.2.0",org.wso2.carbon.tomcat.ext.realms;uses:="org.apache.catalina.realm,org.apache.commons.logging,org.wso2.carbon.u
>>>>
>>>> ser.core.service,org.wso2.carbon.user.api,org.wso2.carbon.utils.multitenancy,org.wso2.carbon.tomcat.ext.saas,org.wso2.carbon.context";version="4.2.0",
>>>>
>>>> org.wso2.carbon.tomcat.ext.transport;uses:="org.wso2.carbon.tomcat.api,org.apache.commons.logging,org.wso2.carbon.base.api,org.wso2.carbon.core";versi
>>>>
>>>> on="4.2.0",org.wso2.carbon.tomcat.ext.servlet;uses:="javax.servlet,org.apache.commons.logging,org.wso2.carbon.utils,org.eclipse.equinox.http.servlet,j
>>>>
>>>> avax.servlet.http,org.wso2.carbon.base";version="4.2.0",org.wso2.carbon.tomcat.ext.transport.statistics;uses:="org.apache.commons.logging,org.wso2.car
>>>> bon.tomcat.ext.utils";version="4.2.0"
>>>>
>>>>
>>>> *osgi> ss 454*
>>>>
>>>>
>>>>
>>>>
>>>> *"Framework is launched."id      State       Bundle*
>>>> *osgi> diag 454*
>>>> reference:file:../plugins/org.wso2.carbon.utils_4.2.0.jar [454]
>>>>   Direct constraints which are unresolved:
>>>>     Missing optionally imported package javax.activation_[1.1.0,2.0.0).
>>>>     Missing optionally imported package
>>>> org.jivesoftware.smackx.muc_0.0.0.
>>>> osgi> ls -c 454
>>>> Components in bundle org.wso2.carbon.utils:
>>>> ID      Component details
>>>> 155     Component[
>>>>         name =
>>>> org.wso2.carbon.context.internal.CarbonContextDiscoveryServiceComponent
>>>>         factory = null
>>>>         autoenable = true
>>>>         immediate = true
>>>>         implementation =
>>>> org.wso2.carbon.context.internal.CarbonContextDiscoveryServiceComponent
>>>>         state = Unsatisfied
>>>>         properties =
>>>> {service.pid=org.wso2.carbon.context.internal.CarbonContextDiscoveryServiceComponent}
>>>>         serviceFactory = false
>>>>         serviceInterface = null
>>>>         references = {
>>>>                 Reference[name = discoveryService, interface =
>>>> org.wso2.carbon.base.DiscoveryService, policy = dynamic, cardinality =
>>>> 0..1, target = n
>>>> ull, bind = setDiscoveryService, unbind = unsetDiscoveryService]
>>>>         }
>>>>         located in bundle = org.wso2.carbon.utils_4.2.0 [454]
>>>> ]
>>>> Dynamic information :
>>>>   The component is satisfied
>>>>   The following references are not satisfied:
>>>>     Reference[name = discoveryService, interface =
>>>> org.wso2.carbon.base.DiscoveryService, policy = dynamic, cardinality =
>>>> 0..1, target = null, bind =
>>>> setDiscoveryService, unbind = unsetDiscoveryService]
>>>>   Component configurations :
>>>>     Configuration properties:
>>>>       service.pid =
>>>> org.wso2.carbon.context.internal.CarbonContextDiscoveryServiceComponent
>>>>       component.name =
>>>> org.wso2.carbon.context.internal.CarbonContextDiscoveryServiceComponent
>>>>       component.id = 154
>>>>     Instances:
>>>>
>>>> org.eclipse.equinox.internal.ds.impl.ComponentInstanceImpl@52d15077
>>>>
>>>> 156     Component[
>>>>         name =
>>>> org.wso2.carbon.context.internal.CarbonContextServiceComponent
>>>>         factory = null
>>>>         autoenable = true
>>>>         immediate = true
>>>>         implementation =
>>>> org.wso2.carbon.context.internal.CarbonContextServiceComponent
>>>>         state = Unsatisfied
>>>>         properties =
>>>> {service.pid=org.wso2.carbon.context.internal.CarbonContextServiceComponent}
>>>>         serviceFactory = false
>>>>         serviceInterface = null
>>>>         references = {
>>>>                 Reference[name = registry.service, interface =
>>>> org.wso2.carbon.registry.api.RegistryService, policy = dynamic, cardinality
>>>> = 1..1, tar
>>>> get = null, bind = setRegistryService, unbind = unsetRegistryService]
>>>>                 Reference[name = userRealmService, interface =
>>>> org.wso2.carbon.user.api.UserRealmService, policy = dynamic, cardinality =
>>>> 1..1, target
>>>>  = null, bind = setUserRealmService, unbind = unsetUserRealmService]
>>>>         }
>>>>         located in bundle = org.wso2.carbon.utils_4.2.0 [454]
>>>> ]
>>>> Dynamic information :
>>>>   The component is satisfied
>>>>   All component references are satisfied
>>>>   Component configurations :
>>>>     Configuration properties:
>>>>       service.pid =
>>>> org.wso2.carbon.context.internal.CarbonContextServiceComponent
>>>>       component.name =
>>>> org.wso2.carbon.context.internal.CarbonContextServiceComponent
>>>>       component.id = 155
>>>>     Instances:
>>>>
>>>> org.eclipse.equinox.internal.ds.impl.ComponentInstanceImpl@2bf9df1b
>>>>         Bound References:
>>>>
>>>> String[org.wso2.carbon.user.core.service.RealmService,org.wso2.carbon.user.api.UserRealmService]
>>>>                 ->
>>>> org.wso2.carbon.user.core.common.DefaultRealmService@6eaf3d6
>>>>
>>>> String[org.wso2.carbon.registry.core.service.RegistryService,org.wso2.carbon.registry.api.RegistryService]
>>>>                 ->
>>>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService@7f4cbc7d
>>>>
>>>> 157     Component[
>>>>         name =
>>>> org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent
>>>>         factory = null
>>>>         autoenable = true
>>>>         immediate = true
>>>>         implementation =
>>>> org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent
>>>>         state = Unsatisfied
>>>>         properties =
>>>> {service.pid=org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent}
>>>>         serviceFactory = false
>>>>         serviceInterface = null
>>>>         references = {
>>>>                 Reference[name = configuration.context.service,
>>>> interface = org.wso2.carbon.utils.ConfigurationContextService, policy =
>>>> dynamic, cardi
>>>> nality = 1..1, target = null, bind = setConfigurationContextService,
>>>> unbind = unsetConfigurationContextService]
>>>>         }
>>>>         located in bundle = org.wso2.carbon.utils_4.2.0 [454]
>>>> ]
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> *Dynamic information :  *The component is NOT satisfied  The following
>>>> references are not satisfied:    Reference[name =
>>>> configuration.context.service, interface =
>>>> org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic,
>>>> cardinality = 1.. 1, target = null, bind = setConfigurationContextService,
>>>> unbind = unsetConfigurationContextService]  Component configurations :
>>>> Configuration properties:      service.pid =
>>>> org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent
>>>> component.name <http://component.name> =
>>>> org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent
>>>> component.id <http://component.id> = 156*
>>>>     Instances:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On 8 July 2014 23:25, Vijayaratha Vijayasingam <rat...@wso2.com> wrote:
>>>>
>>>>> Sameera/KasunG;
>>>>>
>>>>> In AM 1.7.1 packs, we are getting[1,2]
>>>>> Whenever i get the above issue, i checked the
>>>>> packages/services/components..and i do not see any issue with their 
>>>>> status..
>>>>>
>>>>> Looks like same issue reported already(subj: G-REG 5.0.0-SNAPHOST
>>>>> start-up failure in Jenkins build)
>>>>>
>>>>> [1][2014-07-08 22:44:54,745] ERROR - StandardContext Servlet / threw
>>>>> load() exception
>>>>> java.lang.ClassNotFoundException:
>>>>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet
>>>>>         at
>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
>>>>>         at
>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
>>>>>         at
>>>>> org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
>>>>>         at
>>>>> org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
>>>>>         at
>>>>> org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
>>>>>         at
>>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1137)
>>>>>         at
>>>>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081)
>>>>>
>>>>> [2]2014-07-08 21:46:08,587] ERROR - StandardContext Exception starting
>>>>> filter JaggeryFilter
>>>>> ava.lang.ClassNotFoundException:
>>>>> org.jaggeryjs.jaggery.core.JaggeryFilter
>>>>>        at
>>>>> org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:138)
>>>>>        at
>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
>>>>>        at
>>>>> org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
>>>>>        at
>>>>> org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
>>>>>        at
>>>>> org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
>>>>>        at
>>>>> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:257)
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> -Ratha
>>>>> mobile: (+94)755906608
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> -Ratha
>>>> mobile: (+94)755906608
>>>>
>>>
>>>
>>>
>>> --
>>> -Ratha
>>> mobile: (+94)755906608
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://sameera.adahas.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> -Ratha
> mobile: (+94)755906608
>



-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to