Hi,

If you have put the jar into the correct location, then check weather that
jar starts properly using OSGI console. Start the server with -DosgiConsole
option and type "ss axis2-json" which will show you the bundle status.

Ruchira

On Wed, Oct 13, 2010 at 11:23 PM, Vitor Rodrigues <
vitor.rodrig...@pessoaseprocessos.com> wrote:

> First of all thks Hiranya,
>
> I droped the jars into the described places and add the following
> messageBuilders and messageFormatters, in the axis2.xml :
>
> <messageBuilder contentType="application/json"
> class="org.apache.axis2.json.JSONOMBuilder"/>
> <messageBuilder contentType="application/json/badgerfish"
> class="org.apache.axis2.json.JSONBadgerfishOMBuilder"/>
> <messageBuilder contentType="text/javascript"
> class="org.apache.axis2.json.JSONOMBuilder"/>
>
> <messageFormatter contentType="application/json"
> class="org.apache.axis2.json.JSONMessageFormatter"/>
> <messageFormatter contentType="application/json/badgerfish"
> class="org.apache.axis2.json.JSONBadgerfishMessageFormatter"/>
> <messageFormatter contentType="text/javascript"
> class="org.apache.axis2.json.JSONMessageFormatter"/>
>
>
> And it gave me this error:
>
>  FATAL -  WSO2 Carbon initialization Failed
> INFO   | jvm 1    | 2010/10/13 18:48:23 | org.apache.axis2.AxisFault:
> Exception occured while loading the Axis configuration from
> /opt/wso2wsas-3.2.0/././repository/conf/axis2.xml
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:175)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:76)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:293)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:208)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:100)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
> INFO   | jvm 1    | 2010/10/13 18:48:23 | Caused by:
> org.apache.axis2.deployment.DeploymentException: A ClassNotFoundException
> error occurred while validating the message builder
> org.apache.axis2.json.JSONOMBuilder
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.apache.axis2.deployment.DescriptionBuilder$2.run(DescriptionBuilder.java:306)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:132)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.apache.axis2.deployment.DescriptionBuilder.findAndValidateSelectorClass(DescriptionBuilder.java:291)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.apache.axis2.deployment.DescriptionBuilder.processMessageBuilders(DescriptionBuilder.java:228)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.apache.axis2.deployment.AxisConfigBuilder.processMessageBuilders(AxisConfigBuilder.java:771)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:234)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConfiguration(CarbonAxisConfigurator.java:255)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:173)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       ... 8 more
> INFO   | jvm 1    | 2010/10/13 18:48:23 | Caused by:
> java.lang.ClassNotFoundException: org.apache.axis2.json.JSONOMBuilder
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> java.lang.Class.forName0(Native Method)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> java.lang.Class.forName(Class.java:169)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.apache.axis2.util.Loader.loadClass(Loader.java:261)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.apache.axis2.util.Loader.loadClass(Loader.java:229)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       at
> org.apache.axis2.deployment.DescriptionBuilder$2.run(DescriptionBuilder.java:298)
> INFO   | jvm 1    | 2010/10/13 18:48:23 |       ... 15 more
>
>
> Help?
>
>>
>>
>> 2010/10/13 Hiranya Jayathilaka <hira...@wso2.com>
>>
>> Hi Victor,
>>>
>>> The jettison OSGi bundle can be downloaded from [1]. You can deploy it
>>> into repository/components/dropins directory. Axis2 JSON jar can be
>>> downloaded from [2]. This however is not an OSGi bundle. So you should copy
>>> it into repository/components/lib.
>>>
>>> Thanks,
>>> Hiranya
>>>
>>> [1] -
>>> http://dist.wso2.org/maven2/org/codehaus/jettison/wso2/jettison/1.0.1.wso2v1/
>>> [2] - http://dist.wso2.org/maven2/org/apache/axis2/axis2-json/
>>>
>>> On Wed, Oct 13, 2010 at 9:21 PM, Vitor Rodrigues <
>>> vitor.rodrig...@pessoaseprocessos.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I use WSO2 WSAS for my Web services for a long time but today my boss
>>>> wants the response of the webservices to be in JSON. I look up in google 
>>>> and
>>>> your post:
>>>> http://wso2.org/library/knowledge-base/add-json-support-wso2-wsas come
>>>> up.
>>>> But where are the OSGI bundles of the jars? I log in and didn't saw them
>>>> attached to the post. Can someone provide them to me please?
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Carbon-dev mailing list
>>>> Carbon-dev@wso2.org
>>>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Hiranya Jayathilaka
>>> Senior Software Engineer;
>>> WSO2 Inc.;  http://wso2.org
>>> E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
>>> Blog: http://techfeast-hiranya.blogspot.com
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>>
>>   [image: Logo Email Signature P&P]
>>  *Vitor Rodrigues*
>> Professional Developer
>> vitor.rodrig...@pessoaseprocessos.com
>>    mob: +351 93 406 61 08
>> tel: +351 21 778 38 39
>> fax: +351 21 778 38 40
>>   www.pessoaseprocessos.com
>>
>> Lisboa   *   Porto   *   Luanda
>>
>> Meus Perfis: [image: Blog RSS] <http://goingandroid.blogspot.com/>[image:
>> LinkedIn] <http://pt.linkedin.com/in/vitorrodriguesfrompep>
>> Outros Contactos: [image: Skype/]vitormarodrigues [image: Google Talk/]
>> vitor.alves.rodrigues
>>
>>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Ruchira Wageesha
Software Engineer - WSO2 Inc. www.wso2.com

Email: ruch...@wso2.com Blog: ruchirawagee...@blogspot.com
Mobile: +94771083016, +94714439028

Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to