You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bridges-commits@portals.apache.org by at...@apache.org on 2007/02/27 03:41:33 UTC
svn commit: r512119 -
/portals/bridges/trunk/applications/springmvc/src/java/org/apache/portals/applications/springmvc/DOMTreeService.java
Author: ate
Date: Mon Feb 26 18:41:32 2007
New Revision: 512119
URL: http://svn.apache.org/viewvc?view=rev&rev=512119
Log:
Fix jdk 1.4 compile requirement
Modified:
portals/bridges/trunk/applications/springmvc/src/java/org/apache/portals/applications/springmvc/DOMTreeService.java
Modified: portals/bridges/trunk/applications/springmvc/src/java/org/apache/portals/applications/springmvc/DOMTreeService.java
URL: http://svn.apache.org/viewvc/portals/bridges/trunk/applications/springmvc/src/java/org/apache/portals/applications/springmvc/DOMTreeService.java?view=diff&rev=512119&r1=512118&r2=512119
==============================================================================
--- portals/bridges/trunk/applications/springmvc/src/java/org/apache/portals/applications/springmvc/DOMTreeService.java (original)
+++ portals/bridges/trunk/applications/springmvc/src/java/org/apache/portals/applications/springmvc/DOMTreeService.java Mon Feb 26 18:41:32 2007
@@ -19,7 +19,6 @@
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.xpath.XPathFactory;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -36,13 +35,11 @@
private static final Log log = LogFactory.getLog( DOMTreeService.class);
protected DocumentBuilderFactory domFactory = null;
- protected XPathFactory xpathFactory = null;
public void initApplicationContext() throws BeansException
{
domFactory = DocumentBuilderFactory.newInstance();
domFactory.setValidating(false);
- xpathFactory = XPathFactory.newInstance();
}
public DOMTree getDOMTree( String name, PortletRequest request )
@@ -146,7 +143,7 @@
}
catch (ParserConfigurationException e)
{
- log.error( "Cannot create DocumentBuilder due to " + e.getClass().getSimpleName() + " " + e.getMessage() );
+ log.error( "Cannot create DocumentBuilder due to " + e.getClass().getName() + " " + e.getMessage() );
}
if ( docBuilder != null )
{
@@ -156,7 +153,7 @@
}
catch (Exception e)
{
- log.error( "Cannot parse due to " + e.getClass().getSimpleName() + " " + e.getMessage() );
+ log.error( "Cannot parse due to " + e.getClass().getName() + " " + e.getMessage() );
}
}
return doc;
---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-commits-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-commits-help@portals.apache.org