Hi Manjula, I saw similar error in a new build, I think some issue with axiom, please try replace with an old axiom jar.
Lahiru On Thu, Jan 6, 2011 at 11:07 AM, Manjula Rathnayake <manju...@wso2.com>wrote: > Hi all, > > I am getting following error when trying to invoke a web service. > > log4j:WARN Continuable parsing error 23 and column 69 > log4j:WARN Document root element "log4j:configuration", must match DOCTYPE > root "null". > log4j:WARN Continuable parsing error 23 and column 69 > log4j:WARN Document is invalid: no grammar found. > log4j:WARN No appenders could be found for logger > (org.apache.axis2.deployment.FileSystemConfigurator). > log4j:WARN Please initialize the log4j system properly. > > java.lang.NoSuchMethodError: > org.apache.axiom.om.OMAbstractFactory.getMetaFactory()Lorg/apache/axiom/om/OMMetaFactory; > at > org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:85) > at > org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:71) > at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:590) > at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:575) > at > org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97) > at > org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:89) > at > org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:861) > at > org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116) > at > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) > at > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210) > at > org.wso2.carbon.messagebox.sqs.client.TestQueueService.getQueueServiceStub(TestQueueService.java:152) > at > org.wso2.carbon.messagebox.sqs.client.TestQueueService.createQueue(TestQueueService.java:187) > at > org.wso2.carbon.messagebox.sqs.client.TestQueueService.testQueueServiceScenario1(TestQueueService.java:59) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at > com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:108) > at > com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:42) > at > com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:192) > at > com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:64) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115) > > In following code sample, the error throws at line, ConfigurationContext > ctx = > ConfigurationContextFactory.createConfigurationContextFromFileSystem(getClientRepoPath(), > null); > > public QueueServiceStub getQueueServiceStub(String userName, String > password) > throws AxisFault, XMLStreamException, FileNotFoundException { > > ConfigurationContext ctx = > ConfigurationContextFactory.createConfigurationContextFromFileSystem(getClientRepoPath(), > null); > QueueServiceStub stub = new QueueServiceStub(ctx, " > https://localhost:9443/services/QueueService"); > > System.setProperty("javax.net.ssl.trustStore", getKeyStorePath()); > System.setProperty("javax.net.ssl.trustStorePassword", > "wso2carbon"); > stub._getServiceClient().engageModule("rampart"); > StAXOMBuilder builder = new StAXOMBuilder(getSecurityPolicyPath()); > Policy policy = > PolicyEngine.getPolicy(builder.getDocumentElement()); > > stub._getServiceClient().getOptions().setProperty(RampartMessageData.KEY_RAMPART_POLICY, > policy); > stub._getServiceClient().getOptions().setUserName(userName); > stub._getServiceClient().getOptions().setPassword(password); > > return stub; > } > > Complete client code is attached here. > > Any idea on how to solve above problem will be useful. > > Thanks > > > -- > Manjula Rathnayaka > Software Engineer > WSO2, Inc. > Mobile:+94 77 743 1987 > > _______________________________________________ > Carbon-dev mailing list > Carbon-dev@wso2.org > https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- Lahiru Gunathilake Senior Software Engineer - WSO2 Inc. www.wso2.com Email:lah...@wso2.com <email%3alah...@wso2.com> Blog: www.lahiru.org Mobile: +94716381143 Lean . Enterprise . Middleware
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev