Have you put the axis2-jason jar file into the repository/components/lib??

Ruwan

On 10/13/10 11:23 PM, Vitor Rodrigues 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 <[email protected]
    <mailto:[email protected]>>

        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
        <[email protected]
        <mailto:[email protected]>> 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
            [email protected] <mailto:[email protected]>
            https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev




-- Hiranya Jayathilaka
        Senior Software Engineer;
        WSO2 Inc.; http://wso2.org
        E-mail: [email protected] <mailto:[email protected]>;  Mobile:
        +94 77 633 3491
        Blog: http://techfeast-hiranya.blogspot.com

        _______________________________________________
        Carbon-dev mailing list
        [email protected] <mailto:[email protected]>
        https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev




--
    Logo Email Signature P&P
        
    *Vitor Rodrigues*
    Professional Developer
    [email protected]
    <mailto:[email protected]>
    mob: +351 93 406 61 08
    tel: +351 21 778 38 39
    fax: +351 21 778 38 40
    www.pessoaseprocessos.com <http://www.pessoaseprocessos.com>

    Lisboa   *   Porto   *   Luanda

    Meus Perfis: Blog RSS <http://goingandroid.blogspot.com/>LinkedIn
    <http://pt.linkedin.com/in/vitorrodriguesfrompep>
    Outros Contactos: Skype/vitormarodrigues Google
    Talk/vitor.alves.rodrigues


_______________________________________________
Carbon-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev


--
Ruwan Linton
Software Architect&  Product Manager, WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.com

Lean . Enterprise . Middleware

phone: +1 408 754 7388 ext 51789
email: [email protected]; cell: +94 77 341 3097
blog: http://blog.ruwan.org
linkedin: http://www.linkedin.com/in/ruwanlinton
tweet: http://twitter.com/ruwanlinton

_______________________________________________
Carbon-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to