[jboss-cvs] JBossAS SVN: r94646 - trunk/server/src/main/java/org/jboss/deployment.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat Oct 10 18:27:02 EDT 2009
Author: thomas.diesler at jboss.com
Date: 2009-10-10 18:27:02 -0400 (Sat, 10 Oct 2009)
New Revision: 94646
Modified:
trunk/server/src/main/java/org/jboss/deployment/LegacyWebXmlLessDeployer.java
Log:
[JBAS-7323] Disable Tomcat deployment for OSGi webapps
Modified: trunk/server/src/main/java/org/jboss/deployment/LegacyWebXmlLessDeployer.java
===================================================================
--- trunk/server/src/main/java/org/jboss/deployment/LegacyWebXmlLessDeployer.java 2009-10-10 22:21:56 UTC (rev 94645)
+++ trunk/server/src/main/java/org/jboss/deployment/LegacyWebXmlLessDeployer.java 2009-10-10 22:27:02 UTC (rev 94646)
@@ -56,6 +56,15 @@
if (unit instanceof VFSDeploymentUnit == false)
return;
+ // Detect and ignore OSGi WAR deployments
+ // FIXME Use typed OSGiMetaData when we have it available at runtime
+ String bundleSymbolicName = (String) unit.getAttachment("org.jboss.osgi.bundle.symbolic.name");
+ if (bundleSymbolicName != null)
+ {
+ log.debug("Ignore OSGi webapp: " + bundleSymbolicName);
+ return;
+ }
+
log.debug("Web archive doesn't contain web.xml: " + unit.getName());
unit.getTransientManagedObjects().addAttachment(JBossWebMetaData.class, new JBossWebMetaData());
}
More information about the jboss-cvs-commits
mailing list