Normally this error occurs if axiom-dom.jar is not in the class path.
Can you check that?

Andreas

On Sun, Mar 18, 2012 at 12:38, Sagara Gunathunga
<[email protected]> wrote:
> 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: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to