Hi Hasanthi,

Jars inside plugins directory are written in the bundles.info file. Though
you replace a jar with a new version, it won't get affected since original
version is written in bundles.info file. You can apply the new jar as a
patch or place the new jar inside droppings folder (given the jar is an
OSGI bundle. Else place it in lib folder). Since the new jar is a newer
version, IMO placing it in droppings folder is bit better. Normally we
patch the jar with the same version.

On Thu, Mar 12, 2015 at 9:51 PM, Hasanthi Purnima Dissanayake <
[email protected]> wrote:

> Hi Tharindu,
> I solved the problem by creating a higher patch number inside the patches
> folder as you suggested. Thanks for your guidance.
>
> Hasanthi Dissanayake
>
> Software Engineer | WSO2
>
> E: [email protected] <[email protected]>
> M :0718407133| http://wso2.com <http://wso2.com/>
>
> On Thu, Mar 12, 2015 at 9:24 PM, Tharindu Edirisinghe <[email protected]>
> wrote:
>
>> Hi Hasanthi,
>>
>> Replacing the jar files directly in the plugins folder is not recommended
>> because when you start IS, the jars in the plugins folder can get replaced
>> by the jars in patch folders. Can you create a folder with a higher patch
>> number than existing (eg : patch0999) inside
>> <IS_HOME>/repository/components/patches folder and copy the particular jar
>> file into that. Then restart IS.
>>
>> Regards,
>> Tharindu
>>
>> On Thu, Mar 12, 2015 at 9:04 PM, Hasanthi Purnima Dissanayake <
>> [email protected]> wrote:
>>
>>> Hi Tharindu,
>>> No I did not create a patch folder. I just replaced the
>>> spring.framework_3.2.9.wso2v1.jar inside
>>> product-is/modules/distribution/target/wso2is-5.1.0-SNAPSHOT/repository/components/plugins
>>> with spring.framework_3.1.0.wso2v1.jar which is inside patch0000 in the IS
>>> 5.0.0 release. Please guide me what should I do to recover from the above
>>> error.
>>>
>>> Thanks.
>>>
>>> Hasanthi Dissanayake
>>>
>>> Software Engineer | WSO2
>>>
>>> E: [email protected] <[email protected]>
>>> M :0718407133| http://wso2.com <http://wso2.com/>
>>>
>>> On Thu, Mar 12, 2015 at 8:44 PM, Tharindu Edirisinghe <
>>> [email protected]> wrote:
>>>
>>>> Hi Hasanthi,
>>>>
>>>> "As per the instructions I got, I replaced
>>>> spring.framework_3.2.9.wso2v1.
>>>> jar with spring.framework_3.1.0.wso2v1.jar which is inside patch0000 in
>>>> the IS 5.0.0"
>>>>
>>>> How did you replace the jar ? Did you create a new patch folder with a
>>>> large number than the existing patches and put the jar inside it ?
>>>>
>>>> Regards,
>>>> Tharindu
>>>>
>>>> On Thu, Mar 12, 2015 at 8:12 PM, Hasanthi Purnima Dissanayake <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi team,
>>>>> I am developing openid session management as my fast track training
>>>>> project. when I'm using [1] as the authorize endpoint url I got below
>>>>> error. As per the instructions I got, I replaced
>>>>> spring.framework_3.2.9.wso2v1.jar with spring.framework_3.1.0.wso2v1.jar
>>>>> which is inside patch0000 in the IS 5.0.0 release. But still I get the 
>>>>> same
>>>>> error.
>>>>>
>>>>> org.springframework.beans.factory.BeanCreationException: Error creating 
>>>>> bean with name 'tokEP': Cannot resolve reference to bean 
>>>>> 'authzEndpointBean' while setting bean property 'serviceBeans' with key 
>>>>> [0]; nested exception is 
>>>>> org.springframework.beans.factory.BeanCreationException: Error creating 
>>>>> bean with name 'authzEndpointBean' defined in URL 
>>>>> [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]: Instantiation of bean 
>>>>> failed; nested exception is java.lang.NoClassDefFoundError: 
>>>>> org/wso2/carbon/identity/oauth/cache/CacheKey
>>>>>   
>>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
>>>>>   
>>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
>>>>>   
>>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
>>>>>   
>>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
>>>>>   
>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
>>>>>   
>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
>>>>>   
>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
>>>>>   
>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>>>>>   
>>>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>>>>>   
>>>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>>>>   
>>>>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
>>>>>   
>>>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
>>>>>   
>>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
>>>>>   
>>>>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
>>>>>   
>>>>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
>>>>>   
>>>>> org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:160)
>>>>>   org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
>>>>>   
>>>>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:71)
>>>>>   
>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
>>>>>   
>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>>>>>   
>>>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)
>>>>>   
>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>>>>   
>>>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>>>>>   
>>>>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>>>>>   
>>>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)
>>>>>   
>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
>>>>>   
>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>>>>>   
>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
>>>>>   
>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>>>>>   
>>>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
>>>>>   
>>>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
>>>>>   
>>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1721)
>>>>>   
>>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1679)
>>>>>   
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>>>>>   
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>>>>>   java.lang.Thread.run(Thread.java:662)
>>>>> [1]https://localhost:9443/oauth2/authorize
>>>>>
>>>>> Any help is highly appreciated.
>>>>>
>>>>> Thanks and Regards,
>>>>>
>>>>> Hasanthi Dissanayake
>>>>>
>>>>> Software Engineer | WSO2
>>>>>
>>>>> E: [email protected] <[email protected]>
>>>>> M :0718407133| http://wso2.com <http://wso2.com/>
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> [email protected]
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Tharindu Edirisinghe
>>>> Software Engineer | WSO2 Inc
>>>> Identity Server Team
>>>> mobile : +94 775 181586
>>>>
>>>
>>>
>>
>>
>> --
>>
>> Tharindu Edirisinghe
>> Software Engineer | WSO2 Inc
>> Identity Server Team
>> mobile : +94 775 181586
>>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to