On Mon, Mar 19, 2012 at 4:58 AM, Martin Gainty <mgai...@hotmail.com> wrote:
> my understanding is that when the specific feature is not found the Factory
> will return a 'reasonable default'

Or it would be nice to have a descriptive error message with a clue
something like a "Make sure axiom-dom.jar available on your classpath"
etc.

Thanks !
>
> to wit:
> what is value of System Property org.apache.axiom.om.OMMetaFactory
> -Dorg.apache.axiom.om.OMMetaFactory=
>
> is default org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory
> (axiom-impl-version.jar) on CLASSPATH?
>
> Martin
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>> From: sagara.gunathu...@gmail.com
>> Date: Sun, 18 Mar 2012 17:08:50 +0530
>> Subject: [Axiom] OMException: No meta factory found for feature 'dom'
>> To: dev@ws.apache.org
>
>>
>> Hi all,
>>
>> I can run following code in a sample program without any issue.
>>
>> public static void main(String[] args) {
>> OMFactory doomFactory = OMAbstractFactory.getMetaFactory(
>> OMAbstractFactory.FEATURE_DOM).getOMFactory();
>>
>> }
>>
>> But running same line within a
>> AxisService#createClientSideAxisService() method result into following
>> exception. Appreciate for any idea to resolve this issue ?
>>
>> If I'm not mistaken this was supported earlier through OMFactory
>> doomFactory = DOOMAbstractFactory.getOMFactory() method.
>>
>> testWSDLWithImportsFromZIP(org.apache.axis2.client.ServiceClientTest)
>> Time elapsed: 0.112 sec <<< ERROR!
>> org.apache.axiom.om.OMException: No meta factory found for feature 'dom'
>> at
>> org.apache.axiom.om.OMAbstractFactory.getMetaFactory(OMAbstractFactory.java:157)
>> at
>> org.apache.axis2.description.AxisService.createClientSideAxisService(AxisService.java:2331)
>> at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:225)
>> at
>> org.apache.axis2.client.ServiceClientTest.testWSDLWithImportsFromZIP(ServiceClientTest.java:50)
>>
>>
>> Steps to reproduce above exception.
>>
>> 1. Add following line to AxisService#createClientSideAxisService() method
>>
>> OMFactory doomFactory =
>>
>> OMAbstractFactory.getMetaFactory(OMAbstractFactory.FEATURE_DOM).getOMFactory();
>>
>> 2. Run org.apache.axis2.client.ServiceClientTest test ( mvn clean test
>> -Dtest=org.apache.axis2.client.ServiceClientTest)
>>
>>
>>
>> Thanks !
>>
>> --
>> Sagara Gunathunga
>>
>> Blog      - http://ssagara.blogspot.com
>> Web      - http://people.apache.org/~sagara/
>> LinkedIn - http://www.linkedin.com/in/ssagara
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscr...@ws.apache.org
>> For additional commands, e-mail: dev-h...@ws.apache.org
>>



-- 
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara

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

Reply via email to