Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Web Services
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Forum:
Web Services
java.lang.RuntimeException: Malformed uri: p1
srinivas kumarr
Greenhorn
Posts: 7
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am constantly getting this exception while generating service code using axis2
Retrieving document at 'src/main/resources/SecureService.wsdl'. - Malformed uri: p1 java.lang.RuntimeException: Malformed uri: p1 at org.apache.neethi.PolicyReference.getRemoteReferedElement(PolicyReference.java:162) at org.apache.neethi.PolicyReference.getRemoteReferencedPolicy(PolicyReference.java:176) at org.apache.neethi.PolicyReference.normalize(PolicyReference.java:112) at org.apache.axis2.util.PolicyUtil.getMergedPolicy(PolicyUtil.java:290) at org.apache.axis2.description.AxisBindingMessage.calculateEffectivePolicy(AxisBindingMessage.java:290) at org.apache.axis2.description.AxisBindingMessage.getEffectivePolicy(AxisBindingMessage.java:223) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getBindingPolicyFromMessage(AxisServiceBasedMultiLanguageEmitter.java:284) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2802) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2340) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2224) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2138) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2064) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1389) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:253) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) at com.jpmc.CodeGenerator.main(CodeGenerator.java:6) - Malformed uri: p1 java.lang.RuntimeException: Malformed uri: p1 at org.apache.neethi.PolicyReference.getRemoteReferedElement(PolicyReference.java:162) at org.apache.neethi.PolicyReference.getRemoteReferencedPolicy(PolicyReference.java:176) at org.apache.neethi.PolicyReference.normalize(PolicyReference.java:112) at org.apache.axis2.util.PolicyUtil.getMergedPolicy(PolicyUtil.java:290) at org.apache.axis2.description.AxisBindingMessage.calculateEffectivePolicy(AxisBindingMessage.java:290) at org.apache.axis2.description.AxisBindingMessage.getEffectivePolicy(AxisBindingMessage.java:223) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getBindingPolicyFromMessage(AxisServiceBasedMultiLanguageEmitter.java:284) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getOutputElement(AxisServiceBasedMultiLanguageEmitter.java:2875) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2344) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2224) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2138) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2064) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1389) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:253) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) at com.jpmc.CodeGenerator.main(CodeGenerator.java:6) - The .\src\main\java\com\ttdev\ss\SecureServiceSkeleton.java file cannot be overwritten. - The .\src\main\java\com\ttdev\ss\SecureServiceMessageReceiverInOut.java file cannot be overwritten.
POM file:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>SecureClient</groupId> <artifactId>SecureClient</artifactId> <version>0.0.1-SNAPSHOT</version> <dependencies> <dependency> <groupId>wsdl4j</groupId> <artifactId>wsdl4j</artifactId> <version>1.6.1</version> </dependency> <dependency> <groupId>org.apache.xerces</groupId> <artifactId>xercesImpl</artifactId> <version>2.9.1</version> </dependency> <dependency> <groupId>xerces</groupId> <artifactId>xerces</artifactId> <version>2.4.0</version> </dependency> <dependency> <groupId>org.apache.axis2</groupId> <artifactId>axis2-codegen</artifactId> <version>1.5.2</version> </dependency> <dependency> <groupId>org.apache.axis2</groupId> <artifactId>axis2-adb-codegen</artifactId> <version>1.5.2</version> </dependency> <dependency> <groupId>org.apache.rampart</groupId> <artifactId>rampart</artifactId> <version>1.4</version> <type>mar</type> </dependency> <dependency> <groupId>org.apache.rampart</groupId> <artifactId>rampart-core</artifactId> <version>1.4</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build> </project>
Any help is appreciated.
Ivan Krizsan
Ranch Hand
Posts: 2198
1
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi!
Is there anything in your WSDL that uses the p1 URI?
Have you tried using the tools in Metro (web service stack) on the WSDL to generate client artifacts?
Best wishes!
My free books and tutorials:
http://www.slideshare.net/krizsan
There are 10 kinds of people in this world. Those that understand binary get this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Tomcat and Axis2
Error deploying Axis2 web service created by Maven
Axis2 - Getting "Auth.xml can't be resolved" error
Error deploying Axis2 web service created by Maven
java.lang.ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender
More...