JBossWS SVN: r9268 - in stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss: ws/metadata/config and 3 other directories.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2009-02-09 07:40:50 -0500 (Mon, 09 Feb 2009)
New Revision: 9268
Modified:
stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/extensions/security/SecurityStore.java
stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/metadata/config/JBossWSConfigFactory.java
stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/metadata/wsdl/xmlschema/JBossXSEntityResolver.java
stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/tools/JavaToXSD.java
stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java
stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java
Log:
Merge revision 8363
Modified: stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/extensions/security/SecurityStore.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/extensions/security/SecurityStore.java 2009-02-09 12:33:57 UTC (rev 9267)
+++ stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/extensions/security/SecurityStore.java 2009-02-09 12:40:50 UTC (rev 9268)
@@ -25,6 +25,7 @@
import java.io.BufferedReader;
import java.io.File;
+import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.reflect.Constructor;
@@ -136,11 +137,12 @@
if (storeType == null)
storeType = "jks";
- KeyStore keyStore = null;
+ KeyStore keyStore = null;
+ InputStream stream = null;
try
{
log.debug("loadStore: " + storeURL);
- InputStream stream = storeURL.openStream();
+ stream = storeURL.openStream();
if (stream == null)
throw new WSSecurityException("Cannot load store from: " + storeURL);
@@ -166,6 +168,20 @@
{
throw new WSSecurityException("Problems loading " + type + ": " + ex.getMessage(), ex);
}
+ finally
+ {
+ if (stream != null)
+ {
+ try
+ {
+ stream.close();
+ }
+ catch (IOException ioe)
+ {
+ log.warn(ioe.getMessage(), ioe);
+ }
+ }
+ }
return keyStore;
}
Modified: stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/metadata/config/JBossWSConfigFactory.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/metadata/config/JBossWSConfigFactory.java 2009-02-09 12:33:57 UTC (rev 9267)
+++ stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/metadata/config/JBossWSConfigFactory.java 2009-02-09 12:40:50 UTC (rev 9268)
@@ -24,6 +24,7 @@
//$Id$
import java.io.IOException;
+import java.io.InputStream;
import java.net.URL;
import org.jboss.logging.Logger;
@@ -71,6 +72,7 @@
if(log.isDebugEnabled()) log.debug("parse: " + configURL);
Object wsConfig;
+ InputStream is = null;
try
{
Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
@@ -78,13 +80,14 @@
unmarshaller.setSchemaValidation(true);
String nsURI = getNamespaceURI(configURL);
+ is = configURL.openStream();
if (URN_JAXRPC_CONFIG.equals(nsURI))
{
- wsConfig = unmarshaller.unmarshal(configURL.openStream(), new OMFactoryJAXRPC(), null);
+ wsConfig = unmarshaller.unmarshal(is, new OMFactoryJAXRPC(), null);
}
else if (URN_JAXWS_CONFIG.equals(nsURI))
{
- wsConfig = unmarshaller.unmarshal(configURL.openStream(), new OMFactoryJAXWS(), null);
+ wsConfig = unmarshaller.unmarshal(is, new OMFactoryJAXWS(), null);
}
else
{
@@ -100,6 +103,20 @@
{
throw new WSException("Failed to read config file: " + configURL, e);
}
+ finally
+ {
+ if (is != null)
+ {
+ try
+ {
+ is.close();
+ }
+ catch (IOException ioe)
+ {
+ if(log.isDebugEnabled()) log.warn(ioe.getMessage(), ioe);
+ }
+ }
+ }
return wsConfig;
}
Modified: stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/metadata/wsdl/xmlschema/JBossXSEntityResolver.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/metadata/wsdl/xmlschema/JBossXSEntityResolver.java 2009-02-09 12:33:57 UTC (rev 9267)
+++ stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/metadata/wsdl/xmlschema/JBossXSEntityResolver.java 2009-02-09 12:40:50 UTC (rev 9268)
@@ -21,8 +21,9 @@
*/
package org.jboss.ws.metadata.wsdl.xmlschema;
-// $Id$
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
@@ -36,6 +37,7 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.ws.core.utils.ResourceURL;
+import org.jboss.wsf.common.IOUtils;
import org.xml.sax.EntityResolver;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
@@ -157,15 +159,19 @@
private XMLInputSource getXMLInputSource(URL url, XMLResourceIdentifier resId) throws IOException
{
- InputStream inputStream = new ResourceURL(url).openStream();
- InputSource inputSource = new InputSource(inputStream);
+ InputStream urlStream = new ResourceURL(url).openStream();
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ IOUtils.copyStream(baos, urlStream); // [JBWS-2325]
+ InputSource inputSource = new InputSource(new ByteArrayInputStream(baos.toByteArray()));
return getXMLInputSource(inputSource, resId);
}
- private XMLInputSource getXMLInputSource(InputSource inputSource, XMLResourceIdentifier resId)
+ private XMLInputSource getXMLInputSource(InputSource inputSource, XMLResourceIdentifier resId) throws IOException
{
String encoding = inputSource.getEncoding();
- InputStream byteStream = inputSource.getByteStream();
- return new XMLInputSource(resId.getPublicId(), resId.getExpandedSystemId(), resId.getBaseSystemId(), byteStream, encoding);
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ IOUtils.copyStream(baos, inputSource.getByteStream()); // [JBWS-2325]
+ InputStream is = new ByteArrayInputStream(baos.toByteArray());
+ return new XMLInputSource(resId.getPublicId(), resId.getExpandedSystemId(), resId.getBaseSystemId(), is, encoding);
}
}
\ No newline at end of file
Modified: stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/tools/JavaToXSD.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/tools/JavaToXSD.java 2009-02-09 12:33:57 UTC (rev 9267)
+++ stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/tools/JavaToXSD.java 2009-02-09 12:40:50 UTC (rev 9268)
@@ -165,6 +165,7 @@
Iterator<String> it = locs.keySet().iterator();
while (it.hasNext())
{
+ InputStream in = null;
try
{
String nsURI = it.next();
@@ -176,7 +177,7 @@
XMLInputSource inputSource = new XMLInputSource(null, url.toExternalForm(), null);
InputSource tmpSrc = resolver.resolveEntity(null, url.toExternalForm());
- InputStream in = tmpSrc.getByteStream() != null ? tmpSrc.getByteStream() : new ResourceURL(url).openStream();
+ in = tmpSrc.getByteStream() != null ? tmpSrc.getByteStream() : new ResourceURL(url).openStream();
inputSource.setByteStream(in);
SchemaGrammar grammar = (SchemaGrammar)loader.loadGrammar(inputSource);
@@ -193,6 +194,20 @@
{
throw new IllegalStateException("Cannot parse schema", ex);
}
+ finally
+ {
+ if (in != null)
+ {
+ try
+ {
+ in.close();
+ }
+ catch (IOException ioe)
+ {
+ log.warn(ioe.getMessage(), ioe);
+ }
+ }
+ }
}
XSModel xsmodel = new XSModelImpl(gs);
@@ -242,46 +257,4 @@
helper.setWsdlStyle(style);
}
- //******************************************************************
- // PRIVATE METHODS
- //******************************************************************
-
- /**
- * FIXME: JBXB-33
- */
- private SchemaBindingResolver getSchemaBindingResolver(final Map<String, URL> map)
- {
- return new SchemaBindingResolver()
- {
- public String getBaseURI()
- {
- throw new UnsupportedOperationException("getBaseURI is not implemented.");
- }
-
- public void setBaseURI(String baseURI)
- {
- throw new UnsupportedOperationException("setBaseURI is not implemented.");
- }
-
- public SchemaBinding resolve(String nsUri, String baseURI, String schemaLocation)
- {
- throw new UnsupportedOperationException("resolve is not implemented.");
- }
-
- public LSInput resolveAsLSInput(String nsUri, String baseUri, String schemaLocation)
- {
- URL url = map.get(nsUri);
- if (url != null)
- try
- {
- return new LSInputAdaptor(url.openStream(), null);
- }
- catch (IOException e)
- {
- log.error("URL is bad for schema parsing");
- }
- return null;
- }
- };
- }
}
Modified: stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java 2009-02-09 12:33:57 UTC (rev 9267)
+++ stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java 2009-02-09 12:40:50 UTC (rev 9268)
@@ -582,6 +582,17 @@
{
throw new WSException(ex);
}
+ finally
+ {
+ try
+ {
+ outputStream.close();
+ }
+ catch (IOException ioe)
+ {
+ throw new WSException(ioe);
+ }
+ }
}
private void handleException(Exception ex) throws ServletException
Modified: stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java 2009-02-09 12:33:57 UTC (rev 9267)
+++ stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java 2009-02-09 12:40:50 UTC (rev 9268)
@@ -261,14 +261,7 @@
}
finally
{
- try
- {
- if (fos != null) fos.close();
- }
- finally
- {
- is.close();
- }
+ if (fos != null) fos.close();
}
if (log.isDebugEnabled())
15 years, 11 months
JBossWS SVN: r9267 - stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/core/jaxws/handler.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2009-02-09 07:33:57 -0500 (Mon, 09 Feb 2009)
New Revision: 9267
Modified:
stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java
Log:
Merge revision 8362
Modified: stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java 2009-02-09 12:31:12 UTC (rev 9266)
+++ stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java 2009-02-09 12:33:57 UTC (rev 9267)
@@ -21,8 +21,8 @@
*/
package org.jboss.ws.core.jaxws.handler;
-// $Id: MessageContextImpl.java 275 2006-05-04 21:36:29Z jason.greene(a)jboss.com $
-
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.net.URL;
@@ -37,6 +37,7 @@
import org.jboss.ws.metadata.umdm.EndpointMetaData;
import org.jboss.ws.metadata.umdm.OperationMetaData;
import org.jboss.ws.metadata.umdm.ServiceMetaData;
+import org.jboss.wsf.common.IOUtils;
import org.jboss.xb.binding.NamespaceRegistry;
import org.xml.sax.InputSource;
@@ -135,7 +136,9 @@
{
try
{
- InputSource inputSource = new InputSource(wsdlURL.openStream());
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ IOUtils.copyStream(baos, wsdlURL.openStream()); // [JBWS-2325] ensure file descriptors are closed
+ InputSource inputSource = new InputSource(new ByteArrayInputStream(baos.toByteArray()));
put(MessageContext.WSDL_DESCRIPTION, inputSource);
}
catch (IOException ex)
15 years, 11 months
JBossWS SVN: r9266 - stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2009-02-09 07:31:12 -0500 (Mon, 09 Feb 2009)
New Revision: 9266
Modified:
stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java
Log:
Merge revision 8286
Modified: stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java 2009-02-09 12:28:52 UTC (rev 9265)
+++ stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java 2009-02-09 12:31:12 UTC (rev 9266)
@@ -275,16 +275,8 @@
log.debug("XMLSchema import published to: " + xsdURL);
// recursively publish imports
- InputStream xsdStream = xsdURL.openStream();
- try
- {
- Element subdoc = DOMUtils.parse(xsdStream);
- publishSchemaImports(xsdURL, subdoc, published);
- }
- finally
- {
- xsdStream.close();
- }
+ Element subdoc = DOMUtils.parse(xsdURL.openStream());
+ publishSchemaImports(xsdURL, subdoc, published);
}
}
}
15 years, 11 months
JBossWS SVN: r9265 - in stack/native/branches/dlofthouse/JBPAPP-1687: src/main/java/org/jboss/ws/tools/wsdl and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2009-02-09 07:28:52 -0500 (Mon, 09 Feb 2009)
New Revision: 9265
Modified:
stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java
stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java
stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java
stack/native/branches/dlofthouse/JBPAPP-1687/version.properties
Log:
Merge revisions 8284,8285
Modified: stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java 2009-02-09 12:28:08 UTC (rev 9264)
+++ stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java 2009-02-09 12:28:52 UTC (rev 9265)
@@ -137,8 +137,14 @@
appendDefinitions(builder, namespace);
appendBody(builder, namespace);
- writeBuilder(builder, resolved.writer, resolved.charset);
- resolved.writer.close();
+ try
+ {
+ writeBuilder(builder, resolved.writer, resolved.charset);
+ }
+ finally
+ {
+ resolved.writer.close();
+ }
}
}
Modified: stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java 2009-02-09 12:28:08 UTC (rev 9264)
+++ stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java 2009-02-09 12:28:52 UTC (rev 9265)
@@ -186,7 +186,7 @@
ClassLoader classLoader = endpoint.getService().getDeployment().getRuntimeClassLoader();
if (classLoader == null)
throw new IllegalStateException("Deployment has no classloader associated");
-
+
// Set the thread context class loader
ClassLoader ctxClassLoader = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(classLoader);
@@ -203,7 +203,7 @@
{
// Reset the thread context class loader
Thread.currentThread().setContextClassLoader(ctxClassLoader);
-
+
try
{
out.close();
@@ -231,7 +231,7 @@
throw new IllegalStateException("Cannot obtain endpoint meta data");
Type type = sepMetaData.getType();
-
+
// Build the message context
CommonMessageContext msgContext;
if (type == EndpointMetaData.Type.JAXRPC)
@@ -253,12 +253,12 @@
if (invContext instanceof ServletRequestContext)
{
ServletRequestContext reqContext = (ServletRequestContext)invContext;
-
+
ServletContext servletContext = reqContext.getServletContext();
HttpServletRequest httpRequest = reqContext.getHttpServletRequest();
httpResponse = reqContext.getHttpServletResponse();
headerSource = new ServletHeaderSource(httpRequest, httpResponse);
-
+
if (type == EndpointMetaData.Type.JAXRPC)
{
msgContext.put(MessageContextJAXRPC.SERVLET_CONTEXT, servletContext);
@@ -330,6 +330,17 @@
// clear thread local storage
ThreadLocalAssociation.clear();
+ try
+ {
+ if (outStream != null)
+ {
+ outStream.close();
+ }
+ }
+ catch (IOException ex)
+ {
+ WSException.rethrow(ex);
+ }
}
}
@@ -354,15 +365,21 @@
}
else
{
- resMessage.writeTo(outputStream);
+ try
+ {
+ resMessage.writeTo(outputStream);
+ }
+ finally
+ {
+ outputStream.close();
+ }
}
}
/**
* Handle a request to this web service endpoint
*/
- private MessageAbstraction processRequest(Endpoint ep, MimeHeaderSource headerSource, InvocationContext reqContext, InputStream inputStream)
- throws BindingException
+ private MessageAbstraction processRequest(Endpoint ep, MimeHeaderSource headerSource, InvocationContext reqContext, InputStream inputStream) throws BindingException
{
CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
@@ -480,11 +497,11 @@
private long initRequestMetrics(Endpoint endpoint)
{
long beginTime = 0;
-
+
EndpointMetrics metrics = endpoint.getEndpointMetrics();
if (metrics != null)
beginTime = metrics.processRequestMessage();
-
+
return beginTime;
}
@@ -548,7 +565,7 @@
if (ServerConfig.UNDEFINED_HOSTNAME.equals(serverConfig.getWebServiceHost()) == false)
wsdlHost = serverConfig.getWebServiceHost();
-
+
log.debug("WSDL request, using host: " + wsdlHost);
WSDLRequestHandler wsdlRequestHandler = new WSDLRequestHandler(epMetaData);
Modified: stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java 2009-02-09 12:28:08 UTC (rev 9264)
+++ stack/native/branches/dlofthouse/JBPAPP-1687/src/main/java/org/jboss/wsf/stack/jbws/WSDLFilePublisher.java 2009-02-09 12:28:52 UTC (rev 9265)
@@ -105,9 +105,10 @@
wsdlFile.getParentFile().mkdirs();
// Get the wsdl definition and write it to the wsdl publish location
+ Writer fWriter = null;
try
{
- Writer fWriter = IOUtils.getCharsetFileWriter(wsdlFile, Constants.DEFAULT_XML_CHARSET);
+ fWriter = IOUtils.getCharsetFileWriter(wsdlFile, Constants.DEFAULT_XML_CHARSET);
WSDLDefinitions wsdlDefinitions = serviceMetaData.getWsdlDefinitions();
new WSDLWriter(wsdlDefinitions).write(fWriter, Constants.DEFAULT_XML_CHARSET);
@@ -141,6 +142,13 @@
{
throw new WSException("Cannot publish wsdl to: " + wsdlFile, e);
}
+ finally
+ {
+ if (fWriter != null)
+ {
+ fWriter.close();
+ }
+ }
}
}
@@ -245,17 +253,38 @@
if (is == null)
throw new IllegalArgumentException("Cannot find schema import in deployment: " + resourcePath);
- FileOutputStream fos = new FileOutputStream(targetFile);
- IOUtils.copyStream(fos, is);
- fos.close();
- is.close();
+ FileOutputStream fos = null;
+ try
+ {
+ fos = new FileOutputStream(targetFile);
+ IOUtils.copyStream(fos, is);
+ }
+ finally
+ {
+ try
+ {
+ if (fos != null) fos.close();
+ }
+ finally
+ {
+ is.close();
+ }
+ }
if (log.isDebugEnabled())
log.debug("XMLSchema import published to: " + xsdURL);
- // recursivly publish imports
- Element subdoc = DOMUtils.parse(xsdURL.openStream());
- publishSchemaImports(xsdURL, subdoc, published);
+ // recursively publish imports
+ InputStream xsdStream = xsdURL.openStream();
+ try
+ {
+ Element subdoc = DOMUtils.parse(xsdStream);
+ publishSchemaImports(xsdURL, subdoc, published);
+ }
+ finally
+ {
+ xsdStream.close();
+ }
}
}
}
Modified: stack/native/branches/dlofthouse/JBPAPP-1687/version.properties
===================================================================
--- stack/native/branches/dlofthouse/JBPAPP-1687/version.properties 2009-02-09 12:28:08 UTC (rev 9264)
+++ stack/native/branches/dlofthouse/JBPAPP-1687/version.properties 2009-02-09 12:28:52 UTC (rev 9265)
@@ -25,7 +25,7 @@
# Dependend integration projects
jbossws-spi=1.0.0.GA_CP01-brew
-jbossws-common=1.0.0.GA_CP03-brew
+jbossws-common=1.0.0.GA_CP-SNAPSHOT
jbossws-framework=2.0.1.GA_CP03-brew
jbossws-jboss40=2.0.1.GA
jbossws-jboss42=2.0.1.GA_CP01
15 years, 11 months
JBossWS SVN: r9264 - stack/native/branches/dlofthouse.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2009-02-09 07:28:08 -0500 (Mon, 09 Feb 2009)
New Revision: 9264
Added:
stack/native/branches/dlofthouse/JBPAPP-1687/
Log:
Working area
Copied: stack/native/branches/dlofthouse/JBPAPP-1687 (from rev 9263, stack/native/branches/jbossws-native-2.0.1.SP2_CP)
15 years, 11 months
JBossWS SVN: r9263 - common/branches/jbossws-common-1.0.0.GA_CP/src/main/java/org/jboss/wsf/common.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2009-02-09 07:23:17 -0500 (Mon, 09 Feb 2009)
New Revision: 9263
Modified:
common/branches/jbossws-common-1.0.0.GA_CP/src/main/java/org/jboss/wsf/common/DOMUtils.java
Log:
[JBPAPP-1687] Each request results to an open file descriptor.
Modified: common/branches/jbossws-common-1.0.0.GA_CP/src/main/java/org/jboss/wsf/common/DOMUtils.java
===================================================================
--- common/branches/jbossws-common-1.0.0.GA_CP/src/main/java/org/jboss/wsf/common/DOMUtils.java 2009-02-09 11:04:10 UTC (rev 9262)
+++ common/branches/jbossws-common-1.0.0.GA_CP/src/main/java/org/jboss/wsf/common/DOMUtils.java 2009-02-09 12:23:17 UTC (rev 9263)
@@ -169,6 +169,10 @@
{
throw new IOException(e.toString());
}
+ finally
+ {
+ xmlStream.close();
+ }
}
/** Parse the given input source and return the root Element
@@ -185,6 +189,19 @@
{
throw new IOException(e.toString());
}
+ finally
+ {
+ InputStream is = source.getByteStream();
+ if (is != null)
+ {
+ is.close();
+ }
+ Reader r = source.getCharacterStream();
+ if (r != null)
+ {
+ r.close();
+ }
+ }
}
/** Create an Element for a given name
15 years, 11 months
JBossWS SVN: r9262 - stack/native/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2009-02-09 06:04:10 -0500 (Mon, 09 Feb 2009)
New Revision: 9262
Modified:
stack/native/trunk/modules/testsuite/test-excludes-jboss500.txt
stack/native/trunk/modules/testsuite/test-excludes-jboss510.txt
stack/native/trunk/modules/testsuite/test-excludes-jboss600.txt
Log:
[JBWS-2509] Updating excludes
Modified: stack/native/trunk/modules/testsuite/test-excludes-jboss500.txt
===================================================================
--- stack/native/trunk/modules/testsuite/test-excludes-jboss500.txt 2009-02-09 11:01:09 UTC (rev 9261)
+++ stack/native/trunk/modules/testsuite/test-excludes-jboss500.txt 2009-02-09 11:04:10 UTC (rev 9262)
@@ -18,7 +18,5 @@
# [JBWS-2433] Investigate why JMS related tests are sometimes failing and sometimes not
org/jboss/test/ws/jaxrpc/samples/jmstransport/*TestCase.*
org/jboss/test/ws/jaxws/samples/jmstransport/*TestCase.*
-
-# [JBWS-2509] dar.JMSClientTestCase contains AS4 specific code
org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.*
Modified: stack/native/trunk/modules/testsuite/test-excludes-jboss510.txt
===================================================================
--- stack/native/trunk/modules/testsuite/test-excludes-jboss510.txt 2009-02-09 11:01:09 UTC (rev 9261)
+++ stack/native/trunk/modules/testsuite/test-excludes-jboss510.txt 2009-02-09 11:04:10 UTC (rev 9262)
@@ -15,7 +15,5 @@
# [JBWS-2433] Investigate why JMS related tests are sometimes failing and sometimes not
org/jboss/test/ws/jaxrpc/samples/jmstransport/*TestCase.*
org/jboss/test/ws/jaxws/samples/jmstransport/*TestCase.*
-
-# [JBWS-2509] dar.JMSClientTestCase contains AS4 specific code
org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.*
Modified: stack/native/trunk/modules/testsuite/test-excludes-jboss600.txt
===================================================================
--- stack/native/trunk/modules/testsuite/test-excludes-jboss600.txt 2009-02-09 11:01:09 UTC (rev 9261)
+++ stack/native/trunk/modules/testsuite/test-excludes-jboss600.txt 2009-02-09 11:04:10 UTC (rev 9262)
@@ -15,7 +15,5 @@
# [JBWS-2433] Investigate why JMS related tests are sometimes failing and sometimes not
org/jboss/test/ws/jaxrpc/samples/jmstransport/*TestCase.*
org/jboss/test/ws/jaxws/samples/jmstransport/*TestCase.*
-
-# [JBWS-2509] dar.JMSClientTestCase contains AS4 specific code
org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.*
15 years, 11 months
JBossWS SVN: r9261 - stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2009-02-09 06:01:09 -0500 (Mon, 09 Feb 2009)
New Revision: 9261
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.java
Log:
[JBWS-2509] using MessageCount property on AS 5
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.java 2009-02-09 08:55:55 UTC (rev 9260)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.java 2009-02-09 11:01:09 UTC (rev 9261)
@@ -82,18 +82,26 @@
private int getMessageCount(String queue) throws Exception
{
ObjectName oname = ObjectNameFactory.create("jboss.mq.destination:service=Queue,name=" + queue);
- String result = (String)getServer().invoke(oname, "listMessageCounter", null, null);
- Element table = DOMUtils.parse(result);
- NodeList ths = table.getFirstChild().getChildNodes();
- int p = -1;
- for (int i=0; i<ths.getLength(); i++)
+ if (isTargetJBoss5OrGreater())
{
- if (ths.item(i).getTextContent().equalsIgnoreCase("Count"))
- p = i;
+ return (Integer)getServer().getAttribute(oname, "MessageCount");
}
- if (p == -1)
- throw new Exception("Cannot read the queue message count!");
- String count = table.getLastChild().getChildNodes().item(p).getTextContent();
- return Integer.parseInt(count);
+ else
+ {
+ String result = (String)getServer().invoke(oname, "listMessageCounter", null, null);
+ Element table = DOMUtils.parse(result);
+ NodeList ths = table.getFirstChild().getChildNodes();
+ int p = -1;
+ for (int i=0; i<ths.getLength(); i++)
+ {
+ if (ths.item(i).getTextContent().equalsIgnoreCase("Count"))
+ p = i;
+ }
+ if (p == -1)
+ throw new Exception("Cannot read the queue message count!");
+ String count = table.getLastChild().getChildNodes().item(p).getTextContent();
+ return Integer.parseInt(count);
+ }
}
+
}
15 years, 11 months
JBossWS SVN: r9260 - stack/native/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-02-09 03:55:55 -0500 (Mon, 09 Feb 2009)
New Revision: 9260
Modified:
stack/native/trunk/modules/testsuite/test-excludes-jboss500.txt
stack/native/trunk/modules/testsuite/test-excludes-jboss510.txt
stack/native/trunk/modules/testsuite/test-excludes-jboss600.txt
Log:
[JBWS-2433] excluding tests
Modified: stack/native/trunk/modules/testsuite/test-excludes-jboss500.txt
===================================================================
--- stack/native/trunk/modules/testsuite/test-excludes-jboss500.txt 2009-02-09 08:20:33 UTC (rev 9259)
+++ stack/native/trunk/modules/testsuite/test-excludes-jboss500.txt 2009-02-09 08:55:55 UTC (rev 9260)
@@ -15,6 +15,10 @@
# [JBWS-2217] Fix BPEL jaxrpc samples
org/jboss/test/ws/jaxrpc/samples/wsbpel/hello/*TestCase.*
+# [JBWS-2433] Investigate why JMS related tests are sometimes failing and sometimes not
+org/jboss/test/ws/jaxrpc/samples/jmstransport/*TestCase.*
+org/jboss/test/ws/jaxws/samples/jmstransport/*TestCase.*
+
# [JBWS-2509] dar.JMSClientTestCase contains AS4 specific code
org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.*
Modified: stack/native/trunk/modules/testsuite/test-excludes-jboss510.txt
===================================================================
--- stack/native/trunk/modules/testsuite/test-excludes-jboss510.txt 2009-02-09 08:20:33 UTC (rev 9259)
+++ stack/native/trunk/modules/testsuite/test-excludes-jboss510.txt 2009-02-09 08:55:55 UTC (rev 9260)
@@ -12,6 +12,10 @@
# [JBWS-2217] Fix BPEL jaxrpc samples
org/jboss/test/ws/jaxrpc/samples/wsbpel/hello/*TestCase.*
+# [JBWS-2433] Investigate why JMS related tests are sometimes failing and sometimes not
+org/jboss/test/ws/jaxrpc/samples/jmstransport/*TestCase.*
+org/jboss/test/ws/jaxws/samples/jmstransport/*TestCase.*
+
# [JBWS-2509] dar.JMSClientTestCase contains AS4 specific code
org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.*
Modified: stack/native/trunk/modules/testsuite/test-excludes-jboss600.txt
===================================================================
--- stack/native/trunk/modules/testsuite/test-excludes-jboss600.txt 2009-02-09 08:20:33 UTC (rev 9259)
+++ stack/native/trunk/modules/testsuite/test-excludes-jboss600.txt 2009-02-09 08:55:55 UTC (rev 9260)
@@ -12,6 +12,10 @@
# [JBWS-2217] Fix BPEL jaxrpc samples
org/jboss/test/ws/jaxrpc/samples/wsbpel/hello/*TestCase.*
+# [JBWS-2433] Investigate why JMS related tests are sometimes failing and sometimes not
+org/jboss/test/ws/jaxrpc/samples/jmstransport/*TestCase.*
+org/jboss/test/ws/jaxws/samples/jmstransport/*TestCase.*
+
# [JBWS-2509] dar.JMSClientTestCase contains AS4 specific code
org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.*
15 years, 11 months
JBossWS SVN: r9259 - stack/cxf/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-02-09 03:20:33 -0500 (Mon, 09 Feb 2009)
New Revision: 9259
Modified:
stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt
Log:
[JBWS-2307] excluding on AS42
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt 2009-02-09 08:17:14 UTC (rev 9258)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt 2009-02-09 08:20:33 UTC (rev 9259)
@@ -51,6 +51,9 @@
# [CXF-2011] Asynchronous client behaves improperly
org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousProxyTestCase.*
+# [JBWS-981] @WebContext defined virtual hosts only being fixed for JBoss 5
+org/jboss/test/ws/jaxws/jbws981/JBWS981TestCase.*
+
# [JBWS-1655] Add support for endpoint address rewriting
org/jboss/test/ws/jaxws/jbws2150/**
@@ -79,12 +82,12 @@
# [JBWS-2240] PortComponent from jboss.xml descriptor is not parsed
org/jboss/test/ws/jaxws/jbws2241/**
+# [JBWS-2307] Stub properties not propagated through service-ref (fixed in AS 5.x and above)
+org/jboss/test/ws/jaxws/jbws2307/JBWS2307TestCase.*
+
# [JBWS-2330] Failed to deploy service with multiple bindings
org/jboss/test/ws/jaxws/jbws2278/**
-# [JBWS-981] @WebContext defined virtual hosts only being fixed for JBoss 5
-org/jboss/test/ws/jaxws/jbws981/JBWS981TestCase.*
-
# [JBWS-2478] Investigate why WS-Security CXF tests are failing
org/jboss/test/ws/jaxws/samples/wsse/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt 2009-02-09 08:17:14 UTC (rev 9258)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt 2009-02-09 08:20:33 UTC (rev 9259)
@@ -51,6 +51,9 @@
# [CXF-2011] Asynchronous client behaves improperly
org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousProxyTestCase.*
+# [JBWS-981] @WebContext defined virtual hosts only being fixed for JBoss 5
+org/jboss/test/ws/jaxws/jbws981/JBWS981TestCase.*
+
# [JBWS-1655] Add support for endpoint address rewriting
org/jboss/test/ws/jaxws/jbws2150/**
@@ -79,12 +82,12 @@
# [JBWS-2240] PortComponent from jboss.xml descriptor is not parsed
org/jboss/test/ws/jaxws/jbws2241/**
+# [JBWS-2307] Stub properties not propagated through service-ref (fixed in AS 5.x and above)
+org/jboss/test/ws/jaxws/jbws2307/JBWS2307TestCase.*
+
# [JBWS-2330] Failed to deploy service with multiple bindings
org/jboss/test/ws/jaxws/jbws2278/**
-# [JBWS-981] @WebContext defined virtual hosts only being fixed for JBoss 5
-org/jboss/test/ws/jaxws/jbws981/JBWS981TestCase.*
-
# [JBWS-2478] Investigate why WS-Security CXF tests are failing
org/jboss/test/ws/jaxws/samples/wsse/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt 2009-02-09 08:17:14 UTC (rev 9258)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt 2009-02-09 08:20:33 UTC (rev 9259)
@@ -51,6 +51,9 @@
# [CXF-2011] Asynchronous client behaves improperly
org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousProxyTestCase.*
+# [JBWS-981] @WebContext defined virtual hosts only being fixed for JBoss 5
+org/jboss/test/ws/jaxws/jbws981/JBWS981TestCase.*
+
# [JBWS-1655] Add support for endpoint address rewriting
org/jboss/test/ws/jaxws/jbws2150/**
@@ -79,12 +82,12 @@
# [JBWS-2240] PortComponent from jboss.xml descriptor is not parsed
org/jboss/test/ws/jaxws/jbws2241/**
+# [JBWS-2307] Stub properties not propagated through service-ref (fixed in AS 5.x and above)
+org/jboss/test/ws/jaxws/jbws2307/JBWS2307TestCase.*
+
# [JBWS-2330] Failed to deploy service with multiple bindings
org/jboss/test/ws/jaxws/jbws2278/**
-# [JBWS-981] @WebContext defined virtual hosts only being fixed for JBoss 5
-org/jboss/test/ws/jaxws/jbws981/JBWS981TestCase.*
-
# [JBWS-2478] Investigate why WS-Security CXF tests are failing
org/jboss/test/ws/jaxws/samples/wsse/**
15 years, 11 months