<div dir="ltr">Can you provide your JAR?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 18 December 2013 22:23, jguenth <span dir="ltr"><<a href="mailto:jguenth@co.pierce.wa.us" target="_blank">jguenth@co.pierce.wa.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, I'm trying to upload the JAR to the kie-wb maven repository via the<br>
kie-wb Artifact Repository page. Since the kie-ci module is already on the<br>
webapps classpath, I assume there are no other work-arounds to try.<br>
<br>
I debugged the MinimalPomParser method below and found the InputStream<br>
passed in was a ByteArrayInputStream with a count of 10038 and it's position<br>
was also 10038; as if it had already been read to end of file. While in<br>
debug, I set the position to zero and let it continue. Sure enough, it<br>
uploaded succesfully!<br>
<br>
static PomModel parse(String path, InputStream is) {<br>
MinimalPomParser handler = new MinimalPomParser();<br>
try {<br>
SAXParserFactory factory = SAXParserFactory.newInstance();<br>
factory.setValidating( false );<br>
factory.setNamespaceAware( false );<br>
<br>
SAXParser parser = factory.newSAXParser();<br>
parser.parse( is, handler );<br>
} catch (Exception e) {<br>
throw new RuntimeException("Unable to parse File '" + path +<br>
"'", e);<br>
}<br>
<br>
Perhaps something is reading the InputStream before calling the parse method<br>
and not creating a new InputStream to parse.<br>
<br>
Unfortunately, I keep getting the error below when I try to add a drools<br>
rule to my project. It is also failing in the MinimalPomParser because of<br>
the same problem above.<br>
<br>
"Unable to complete your request. The following exception occurred:<br>
org.kie.scanner.embedder.MavenEmbedderException: Failed to read artifact<br>
descriptor for org.piercecountywa.linx.core:domain:jar:1.8.0-SNAPSHOT."<br>
<br>
Regards,<br>
Jay<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/kie-wb-6-0-0-tomcat7-Error-uploading-maven-jar-that-is-part-of-a-multi-module-maven-project-tp4027338p4027356.html" target="_blank">http://drools.46999.n3.nabble.com/kie-wb-6-0-0-tomcat7-Error-uploading-maven-jar-that-is-part-of-a-multi-module-maven-project-tp4027338p4027356.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br></div>