JBossWS SVN: r6223 - in common/trunk/src/main/java/org/jboss/wsf/common: utils and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-04 05:22:10 -0400 (Fri, 04 Apr 2008)
New Revision: 6223
Added:
common/trunk/src/main/java/org/jboss/wsf/common/utils/
common/trunk/src/main/java/org/jboss/wsf/common/utils/UUIDGenerator.java
Log:
Add common utils
Copied: common/trunk/src/main/java/org/jboss/wsf/common/utils/UUIDGenerator.java (from rev 6221, stack/native/trunk/src/main/java/org/jboss/ws/core/utils/UUIDGenerator.java)
===================================================================
--- common/trunk/src/main/java/org/jboss/wsf/common/utils/UUIDGenerator.java (rev 0)
+++ common/trunk/src/main/java/org/jboss/wsf/common/utils/UUIDGenerator.java 2008-04-04 09:22:10 UTC (rev 6223)
@@ -0,0 +1,121 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.wsf.common.utils;
+
+import java.security.SecureRandom;
+
+/**
+ * Generates the string form of IETF variant UUIDs.
+ *
+ * See <a href="http://www.ietf.org/internet-drafts/draft-mealling-uuid-urn-05.txt">
+ * the latest IETF draft</a> for more information about UUID generation.
+ *
+ * Currently only pseudo random (type 4) UUIDs are supported.
+ *
+ * @author <a href="mailto:jason@stacksmash.com">Jason T. Greene</a>
+ */
+public class UUIDGenerator
+{
+ private static SecureRandom rand;
+
+ private static String bytesToHex(byte[] buffer, int offset, int length)
+ {
+ long value = 0;
+ for (int i = 0, countDown = 8 * length; i < length; i++)
+ {
+ value |= (buffer[offset + i] & 0xffL) << (countDown -= 8);
+ }
+
+ return Long.toHexString(value);
+ }
+
+ /**
+ * Generates a pseudo random UUID and returns it in byte array form.
+ *
+ * @return a UUID byte array in network order
+ */
+ public static byte[] generateRandomUUIDBytes()
+ {
+ if (rand == null)
+ rand = new SecureRandom();
+
+ byte[] buffer = new byte[16];
+ rand.nextBytes(buffer);
+
+ // Set version to 3 (Random)
+ buffer[6] = (byte) ((buffer[6] & 0x0f) | 0x40);
+ // Set variant to 2 (IETF)
+ buffer[8] = (byte) ((buffer[8] & 0x3f) | 0x80);
+
+ return buffer;
+ }
+
+ /**
+ * Generates a pseudo random UUID and returns it the IETF specified
+ * String form. See {@link #convertToString(byte[])} for a description
+ * of the format.
+ *
+ * @return a UUID in IETF string form.
+ */
+ public static String generateRandomUUIDString()
+ {
+ return convertToString(generateRandomUUIDBytes());
+ }
+
+ /**
+ * Converts a UUID in byte array form to the IETF string format.
+ *
+ * <p>The BNF follows:
+ * <pre>
+ * UUID = <time_low> "-" <time_mid> "-"
+ * <time_high_and_version> "-"
+ * <variant_and_sequence> "-"
+ * <node>
+ * time_low = 4*<hexOctet>
+ * time_mid = 2*<hexOctet>
+ * time_high_and_version = 2*<hexOctet>
+ * variant_and_sequence = 2*<hexOctet>
+ * node = 6*<hexOctet>
+ * hexOctet = <hexDigit><hexDigit>
+ * hexDigit =
+ * "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
+ * | "a" | "b" | "c" | "d" | "e" | "f"
+ * | "A" | "B" | "C" | "D" | "E" | "F"
+ * </pre>
+ *
+ * @param uuid a 16 byte
+ * @return the IETF string form of the passed UUID
+ */
+ public static String convertToString(byte[] uuid)
+ {
+ if (uuid.length != 16)
+ throw new IllegalArgumentException("A UUID must be 16 bytes!");
+
+ String string = bytesToHex(uuid, 0, 4) + "-"
+ + bytesToHex(uuid, 4, 2) + "-"
+ + bytesToHex(uuid, 6, 2) + "-"
+ + bytesToHex(uuid, 8, 2) + "-"
+ + bytesToHex(uuid, 10, 6);
+
+ return string;
+ }
+}
\ No newline at end of file
18 years
JBossWS SVN: r6222 - in framework/trunk/src/main/java/org/jboss/wsf/framework: handler and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-04 05:21:30 -0400 (Fri, 04 Apr 2008)
New Revision: 6222
Added:
framework/trunk/src/main/java/org/jboss/wsf/framework/handler/
framework/trunk/src/main/java/org/jboss/wsf/framework/handler/GenericHandler.java
framework/trunk/src/main/java/org/jboss/wsf/framework/handler/GenericLogicalHandler.java
framework/trunk/src/main/java/org/jboss/wsf/framework/handler/GenericSOAPHandler.java
Log:
Add generic handlers
Copied: framework/trunk/src/main/java/org/jboss/wsf/framework/handler/GenericHandler.java (from rev 6221, stack/native/trunk/src/main/java/org/jboss/ws/core/jaxws/handler/GenericHandler.java)
===================================================================
--- framework/trunk/src/main/java/org/jboss/wsf/framework/handler/GenericHandler.java (rev 0)
+++ framework/trunk/src/main/java/org/jboss/wsf/framework/handler/GenericHandler.java 2008-04-04 09:21:30 UTC (rev 6222)
@@ -0,0 +1,81 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.wsf.framework.handler;
+
+// $Id$
+
+import javax.xml.ws.handler.Handler;
+import javax.xml.ws.handler.MessageContext;
+
+/**
+ * A generic jaxws handler
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 13-Aug-2006
+ */
+public abstract class GenericHandler implements Handler
+{
+ private String handlerName;
+
+ public String getHandlerName()
+ {
+ return handlerName;
+ }
+
+ public void setHandlerName(String handlerName)
+ {
+ this.handlerName = handlerName;
+ }
+
+ public boolean handleMessage(MessageContext msgContext)
+ {
+ Boolean outbound = (Boolean)msgContext.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
+ if (outbound == null)
+ throw new IllegalStateException("Cannot obtain required property: " + MessageContext.MESSAGE_OUTBOUND_PROPERTY);
+
+ return outbound ? handleOutbound(msgContext) : handleInbound(msgContext);
+ }
+
+ protected boolean handleOutbound(MessageContext msgContext)
+ {
+ return true;
+ }
+
+ protected boolean handleInbound(MessageContext msgContext)
+ {
+ return true;
+ }
+
+ public boolean handleFault(MessageContext messagecontext)
+ {
+ return true;
+ }
+
+ public void close(MessageContext messageContext)
+ {
+ }
+
+ public String toString()
+ {
+ return (handlerName != null ? handlerName : super.toString());
+ }
+}
Copied: framework/trunk/src/main/java/org/jboss/wsf/framework/handler/GenericLogicalHandler.java (from rev 6221, stack/native/trunk/src/main/java/org/jboss/ws/core/jaxws/handler/GenericLogicalHandler.java)
===================================================================
--- framework/trunk/src/main/java/org/jboss/wsf/framework/handler/GenericLogicalHandler.java (rev 0)
+++ framework/trunk/src/main/java/org/jboss/wsf/framework/handler/GenericLogicalHandler.java 2008-04-04 09:21:30 UTC (rev 6222)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.wsf.framework.handler;
+
+// $Id$
+
+import javax.xml.ws.handler.LogicalHandler;
+import javax.xml.ws.handler.LogicalMessageContext;
+
+
+/**
+ * A generic jaxws logical handler
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 13-Aug-2006
+ */
+public class GenericLogicalHandler<C extends LogicalMessageContext> extends GenericHandler implements LogicalHandler
+{
+}
Copied: framework/trunk/src/main/java/org/jboss/wsf/framework/handler/GenericSOAPHandler.java (from rev 6221, stack/native/trunk/src/main/java/org/jboss/ws/core/jaxws/handler/GenericSOAPHandler.java)
===================================================================
--- framework/trunk/src/main/java/org/jboss/wsf/framework/handler/GenericSOAPHandler.java (rev 0)
+++ framework/trunk/src/main/java/org/jboss/wsf/framework/handler/GenericSOAPHandler.java 2008-04-04 09:21:30 UTC (rev 6222)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.wsf.framework.handler;
+
+// $Id$
+
+import java.util.HashSet;
+import java.util.Set;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.handler.LogicalMessageContext;
+import javax.xml.ws.handler.soap.SOAPHandler;
+
+/**
+ * A generic jaxws soap handler
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 13-Aug-2006
+ */
+public abstract class GenericSOAPHandler<C extends LogicalMessageContext> extends GenericHandler implements SOAPHandler
+{
+ // The header blocks that can be processed by this Handler instance
+ private Set<QName> headers = new HashSet<QName>();
+
+ /** Gets the header blocks that can be processed by this Handler instance.
+ */
+ public Set<QName> getHeaders()
+ {
+ return headers;
+ }
+
+ /** Sets the header blocks that can be processed by this Handler instance.
+ */
+ public void setHeaders(Set<QName> headers)
+ {
+ this.headers = headers;
+ }
+}
18 years
JBossWS SVN: r6221 - framework/branches/hbraun/src/main/java/org/jboss/wsf/framework/deployment.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2008-04-03 14:17:05 -0400 (Thu, 03 Apr 2008)
New Revision: 6221
Removed:
framework/branches/hbraun/src/main/java/org/jboss/wsf/framework/deployment/RegisterEndpointDeploymentAspect.java
Modified:
framework/branches/hbraun/src/main/java/org/jboss/wsf/framework/deployment/EndpointRegistryDeploymentAspect.java
Log:
Cleanup refactoring
Modified: framework/branches/hbraun/src/main/java/org/jboss/wsf/framework/deployment/EndpointRegistryDeploymentAspect.java
===================================================================
--- framework/branches/hbraun/src/main/java/org/jboss/wsf/framework/deployment/EndpointRegistryDeploymentAspect.java 2008-04-03 18:16:58 UTC (rev 6220)
+++ framework/branches/hbraun/src/main/java/org/jboss/wsf/framework/deployment/EndpointRegistryDeploymentAspect.java 2008-04-03 18:17:05 UTC (rev 6221)
@@ -39,14 +39,10 @@
{
private EndpointRegistry registry;
- public EndpointRegistryDeploymentAspect()
- {
- SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
- registry = spiProvider.getSPI(EndpointRegistryFactory.class).getEndpointRegistry();
- }
-
public void create(Deployment dep)
{
+ SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
+ EndpointRegistry registry = spiProvider.getSPI(EndpointRegistryFactory.class).getEndpointRegistry();
for (Endpoint ep : dep.getService().getEndpoints())
{
registry.register(ep);
@@ -55,6 +51,9 @@
public void destroy(Deployment dep)
{
+ SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
+ EndpointRegistry registry = spiProvider.getSPI(EndpointRegistryFactory.class).getEndpointRegistry();
+
for (Endpoint ep : dep.getService().getEndpoints())
{
registry.unregister(ep);
Deleted: framework/branches/hbraun/src/main/java/org/jboss/wsf/framework/deployment/RegisterEndpointDeploymentAspect.java
===================================================================
--- framework/branches/hbraun/src/main/java/org/jboss/wsf/framework/deployment/RegisterEndpointDeploymentAspect.java 2008-04-03 18:16:58 UTC (rev 6220)
+++ framework/branches/hbraun/src/main/java/org/jboss/wsf/framework/deployment/RegisterEndpointDeploymentAspect.java 2008-04-03 18:17:05 UTC (rev 6221)
@@ -1,60 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.wsf.framework.deployment;
-
-import org.jboss.wsf.spi.management.EndpointRegistry;
-import org.jboss.wsf.spi.management.EndpointRegistryFactory;
-import org.jboss.wsf.spi.deployment.DeploymentAspect;
-import org.jboss.wsf.spi.deployment.Deployment;
-import org.jboss.wsf.spi.deployment.Endpoint;
-import org.jboss.wsf.spi.SPIProvider;
-import org.jboss.wsf.spi.SPIProviderResolver;
-
-/**
- * A deployer that registers the endpoints
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 20-Apr-2007
- */
-public class EndpointRegistryDeploymentAspect extends DeploymentAspect
-{
- public void create(Deployment dep)
- {
- SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
- EndpointRegistry registry = spiProvider.getSPI(EndpointRegistryFactory.class).getEndpointRegistry();
- for (Endpoint ep : dep.getService().getEndpoints())
- {
- registry.register(ep);
- }
- }
-
- public void destroy(Deployment dep)
- {
- SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
- EndpointRegistry registry = spiProvider.getSPI(EndpointRegistryFactory.class).getEndpointRegistry();
-
- for (Endpoint ep : dep.getService().getEndpoints())
- {
- registry.unregister(ep);
- }
- }
-}
\ No newline at end of file
18 years
JBossWS SVN: r6220 - stack/native/branches/hbraun.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2008-04-03 14:16:58 -0400 (Thu, 03 Apr 2008)
New Revision: 6220
Modified:
stack/native/branches/hbraun/native-3.0.iml
stack/native/branches/hbraun/version.properties
Log:
jboss-common 2.2.3
Modified: stack/native/branches/hbraun/native-3.0.iml
===================================================================
--- stack/native/branches/hbraun/native-3.0.iml 2008-04-02 16:52:10 UTC (rev 6219)
+++ stack/native/branches/hbraun/native-3.0.iml 2008-04-03 18:16:58 UTC (rev 6220)
@@ -528,6 +528,24 @@
<SOURCES />
</library>
</orderEntry>
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../jbossas/trunk/thirdparty/jboss/jboss-deployers/lib/jboss-deployers-spi.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MODULE_DIR$/../../../../../jbossas/trunk/thirdparty/jboss/jboss-deployers/lib/jboss-deployers-structure-spi.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
<orderEntryProperties />
</component>
</module>
Modified: stack/native/branches/hbraun/version.properties
===================================================================
--- stack/native/branches/hbraun/version.properties 2008-04-02 16:52:10 UTC (rev 6219)
+++ stack/native/branches/hbraun/version.properties 2008-04-03 18:16:58 UTC (rev 6220)
@@ -49,7 +49,7 @@
hibernate=3.2.1.GA
javassist=3.6.0.GA
jaxen=1.1-beta-10
-jboss-common-core=2.0.2.GA
+jboss-common-core=2.2.3.GA
jboss-common-logging-log4j=2.0.2.GA
jboss-common-logging-spi=2.0.2.GA
jboss-javaee=5.0.0.Beta3
18 years
JBossWS SVN: r6219 - in legacy: tags and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-04-02 12:52:10 -0400 (Wed, 02 Apr 2008)
New Revision: 6219
Added:
legacy/tags/jbossws-1.2.1.GA_CP03/
Removed:
legacy/branches/jbossws-1.2.1.GA_CP03/
Log:
[JBPAPP-576] Tag the release.
Copied: legacy/tags/jbossws-1.2.1.GA_CP03 (from rev 6218, legacy/branches/jbossws-1.2.1.GA_CP03)
18 years
JBossWS SVN: r6218 - legacy/branches/jbossws-1.2.1.GA_CP03/build.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-04-02 12:51:24 -0400 (Wed, 02 Apr 2008)
New Revision: 6218
Modified:
legacy/branches/jbossws-1.2.1.GA_CP03/build/version.properties
Log:
[JBPAPP-576] Set the release version.
Modified: legacy/branches/jbossws-1.2.1.GA_CP03/build/version.properties
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP03/build/version.properties 2008-04-02 16:45:46 UTC (rev 6217)
+++ legacy/branches/jbossws-1.2.1.GA_CP03/build/version.properties 2008-04-02 16:51:24 UTC (rev 6218)
@@ -5,8 +5,8 @@
specification.vendor=JBoss (http://www.jboss.org)
specification.version=jbossws-1.2
-version.id=1.2.1.GA_CP01
-repository.id=1.2.1.GA_CP01
+version.id=1.2.1.GA_CP03
+repository.id=1.2.1.GA_CP03
implementation.title=JBoss Web Services (JBossWS)
implementation.url=http://www.jboss.org/products/jbossws
18 years
JBossWS SVN: r6217 - legacy/branches.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-04-02 12:45:46 -0400 (Wed, 02 Apr 2008)
New Revision: 6217
Added:
legacy/branches/jbossws-1.2.1.GA_CP03/
Log:
[JBPAPP-576] Branch for CP release.
Copied: legacy/branches/jbossws-1.2.1.GA_CP03 (from rev 6216, legacy/branches/jbossws-1.2.1.GA_CP)
18 years
JBossWS SVN: r6216 - legacy/branches/jbossws-1.2.1.GA_CP/integration-jboss42/src/resources/jbossws.war/WEB-INF.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-04-02 12:43:00 -0400 (Wed, 02 Apr 2008)
New Revision: 6216
Modified:
legacy/branches/jbossws-1.2.1.GA_CP/integration-jboss42/src/resources/jbossws.war/WEB-INF/jboss-web.xml
legacy/branches/jbossws-1.2.1.GA_CP/integration-jboss42/src/resources/jbossws.war/WEB-INF/web.xml
Log:
[JBPAPP-733] Secure the jbossws web application.
Modified: legacy/branches/jbossws-1.2.1.GA_CP/integration-jboss42/src/resources/jbossws.war/WEB-INF/jboss-web.xml
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP/integration-jboss42/src/resources/jbossws.war/WEB-INF/jboss-web.xml 2008-04-02 16:31:42 UTC (rev 6215)
+++ legacy/branches/jbossws-1.2.1.GA_CP/integration-jboss42/src/resources/jbossws.war/WEB-INF/jboss-web.xml 2008-04-02 16:43:00 UTC (rev 6216)
@@ -5,10 +5,9 @@
"http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
<jboss-web>
-
- <!--
- <security-domain>java:/jaas/jbossws</security-domain>
- -->
+
+ <security-domain>java:/jaas/jmx-console</security-domain>
+
<context-root>jbossws</context-root>
</jboss-web>
Modified: legacy/branches/jbossws-1.2.1.GA_CP/integration-jboss42/src/resources/jbossws.war/WEB-INF/web.xml
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP/integration-jboss42/src/resources/jbossws.war/WEB-INF/web.xml 2008-04-02 16:31:42 UTC (rev 6215)
+++ legacy/branches/jbossws-1.2.1.GA_CP/integration-jboss42/src/resources/jbossws.war/WEB-INF/web.xml 2008-04-02 16:43:00 UTC (rev 6216)
@@ -34,6 +34,32 @@
<url-pattern>/pclink</url-pattern>
</servlet-mapping>
+ <!-- A security constraint that restricts access -->
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>jbossws</web-resource-name>
+ <description>Security configuration that only allows users with the
+ role 'JBossAdmin' to access the JBossWS console web application
+ </description>
+ <url-pattern>/*</url-pattern>
+ <http-method>GET</http-method>
+ <http-method>POST</http-method>
+ </web-resource-collection>
+ <auth-constraint>
+ <role-name>JBossAdmin</role-name>
+ </auth-constraint>
+ </security-constraint>
+
+
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ <realm-name>JBossWS Management Console</realm-name>
+ </login-config>
+
+ <security-role>
+ <role-name>JBossAdmin</role-name>
+ </security-role>
+
<!--
currently the W3C haven't settled on a media type for WSDL;
http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
18 years
JBossWS SVN: r6215 - legacy/branches/jbossws-1.2.1.GA_CP/integration-jboss42.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-04-02 12:31:42 -0400 (Wed, 02 Apr 2008)
New Revision: 6215
Modified:
legacy/branches/jbossws-1.2.1.GA_CP/integration-jboss42/build.xml
Log:
[JBPAPP-737] Explode jbossws-context.war
Modified: legacy/branches/jbossws-1.2.1.GA_CP/integration-jboss42/build.xml
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP/integration-jboss42/build.xml 2008-04-02 14:22:45 UTC (rev 6214)
+++ legacy/branches/jbossws-1.2.1.GA_CP/integration-jboss42/build.xml 2008-04-02 16:31:42 UTC (rev 6215)
@@ -107,21 +107,24 @@
</jar>
<!-- Build jbossws-context.war -->
- <war warfile="${jboss42.output.lib.dir}/jbossws-context.war" webxml="${jboss42.resources.dir}/jbossws.war/WEB-INF/web.xml">
+ <mkdir dir="${jboss42.output.lib.dir}/jbossws-context.war"/>
+ <copy todir="${jboss42.output.lib.dir}/jbossws-context.war">
+ <fileset dir="${jboss42.resources.dir}/jbossws.war">
+ <include name="**"/>
+ </fileset>
+ </copy>
+ <copy todir="${jboss42.output.lib.dir}/jbossws-context.war">
<fileset dir="${core.resources.dir}/jbossws.war">
<include name="index.html"/>
<include name="styles.css"/>
</fileset>
- <webinf dir="${jboss42.resources.dir}/jbossws.war/WEB-INF">
- <include name="jboss-web.xml"/>
- </webinf>
- </war>
+ </copy>
<!-- Build jbossws42.sar -->
<jar jarfile="${jboss42.output.lib.dir}/jbossws42.sar" manifest="${build.etc.dir}/default.mf">
<fileset dir="${jboss42.output.lib.dir}">
<include name="jbossws-jboss42-integration.jar"/>
- <include name="jbossws-context.war"/>
+ <include name="jbossws-context.war/**"/>
</fileset>
<fileset dir="${core.output.lib.dir}">
<include name="jbossws-core.jar"/>
18 years