<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>I might add that in the long run this distinction will disappear
as I work on integration at the bottom most layer.</tt><br>
<br>
On 02/01/2012 04:04 PM, Thomas Diesler wrote:
<blockquote cite="mid:4F29546A.4030604@jboss.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<tt>Folks,<br>
<br>
here is a friendly reminder that your DUPs must take OSGi
deployments into consideration. So if you mark a given DU as of
type foo, you must make sure that foo is also supported as an
OSGi bundle deployment.<br>
<br>
I constantly fix DUPs that assume that every deployment is a
module deployment. Here is the latest one<br>
</tt>
<blockquote><tt>Caused by: java.lang.NullPointerException<br>
at
org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:101)<br>
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113)</tt><br>
</blockquote>
<tt>Generally, I don't mind fixing those since I cannot assume
that you even know/care what an OSGi bundle deployment is ;-)<br>
<br>
However, on our way to x.y.z.Final we probably want to avoid
these basic errors.<br>
<br>
What do you need to do is to check that a given DU does not
contain a valid OSGi Manifest before you mark it as "your type"<br>
</tt>
<blockquote><tt> public void deploy(final
DeploymentPhaseContext phaseContext) throws
DeploymentUnitProcessingException {<br>
DeploymentUnit deploymentUnit =
phaseContext.getDeploymentUnit();<br>
if(deploymentUnit.hasAttachment(Attachments.OSGI_MANIFEST)) {<br>
return;<br>
}<br>
if(deploymentUnit.getName().toLowerCase().endsWith(WAR_EXTENSION))
{<br>
DeploymentTypeMarker.setType(DeploymentType.WAR,
deploymentUnit);<br>
}<br>
}<br>
</tt></blockquote>
<tt>Please take a minute to review your "entry point" DUP and make
sure it ignores OSGi deployments if you are not prepared to
handle them.<br>
<br>
cheers<br>
-thomas<br>
</tt>
<blockquote><br>
</blockquote>
<tt><br>
</tt>
<blockquote><br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
jboss-as7-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
</pre>
</body>
</html>