Author: richard.opalka(a)jboss.com
Date: 2008-05-28 03:30:31 -0400 (Wed, 28 May 2008)
New Revision: 7184
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/DescriptorDeploymentAspect.java
Log:
[JBWS-2174] fixing regression on AS 4.2.x
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/DescriptorDeploymentAspect.java
===================================================================
---
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/DescriptorDeploymentAspect.java 2008-05-27
09:02:32 UTC (rev 7183)
+++
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/DescriptorDeploymentAspect.java 2008-05-28
07:30:31 UTC (rev 7184)
@@ -213,8 +213,20 @@
// put cxf config URL to the property map
contextParams.put(CXFServletExt.PARAM_CXF_BEANS_URL, cxfURL.toExternalForm());
- if (dep.getType() == DeploymentType.JAXWS_EJB3)
+ boolean jbossWebMetaDataAvailable = true;
+
+ try
{
+ Class.forName("org.jboss.metadata.web.jboss.JBossWebMetaData");
+ }
+ catch (Exception ignore)
+ {
+ // we are not running on AS 5
+ jbossWebMetaDataAvailable = false;
+ }
+
+ if (jbossWebMetaDataAvailable && (dep.getType() ==
DeploymentType.JAXWS_EJB3))
+ {
// put cxf config URL to generated web app context params
JBossWebMetaData jbwmd = dep.getAttachment(JBossWebMetaData.class);
if (jbwmd != null)
Show replies by date