You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Boris Boehlen (JIRA)" <ji...@codehaus.org> on 2005/10/24 16:25:11 UTC
[jira] Created: (MNG-1303) Parsing XML document commons-digester fails in testcase
Parsing XML document commons-digester fails in testcase
-------------------------------------------------------
Key: MNG-1303
URL: http://jira.codehaus.org/browse/MNG-1303
Project: Maven 2
Type: Bug
Components: maven-surefire-plugin
Versions: 2.0
Environment: commons-digester 1.7; JDK 1.5.0_05
Reporter: Boris Boehlen
I use the common-digester to parse a configuration file. When I do this in a test case I get the following error.
javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at org.apache.commons.digester.Digester.getFactory(Digester.java:490)
at org.apache.commons.digester.Digester.getParser(Digester.java:693)
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)
at org.apache.commons.digester.Digester.parse(Digester.java:1704)
at i3.grasgxl.core.ConfigurationLoader.load(ConfigurationLoader.java:107)
Worked properly with Maven 1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-1303) surefire should include bootclasspath when running tests
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1303?page=all ]
Brett Porter updated MNG-1303:
------------------------------
Description:
I use the common-digester to parse a configuration file. When I do this in a test case I get the following error.
javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at org.apache.commons.digester.Digester.getFactory(Digester.java:490)
at org.apache.commons.digester.Digester.getParser(Digester.java:693)
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)
at org.apache.commons.digester.Digester.parse(Digester.java:1704)
at i3.grasgxl.core.ConfigurationLoader.load(ConfigurationLoader.java:107)
Worked properly with Maven 1.
was:
I use the common-digester to parse a configuration file. When I do this in a test case I get the following error.
javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at org.apache.commons.digester.Digester.getFactory(Digester.java:490)
at org.apache.commons.digester.Digester.getParser(Digester.java:693)
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)
at org.apache.commons.digester.Digester.parse(Digester.java:1704)
at i3.grasgxl.core.ConfigurationLoader.load(ConfigurationLoader.java:107)
Worked properly with Maven 1.
Summary: surefire should include bootclasspath when running tests (was: Parsing XML document commons-digester fails in testcase)
the fix for this is to have the bootclasspath included in the surefire classloader
> surefire should include bootclasspath when running tests
> --------------------------------------------------------
>
> Key: MNG-1303
> URL: http://jira.codehaus.org/browse/MNG-1303
> Project: Maven 2
> Type: Bug
> Components: maven-surefire-plugin
> Versions: 2.0
> Environment: commons-digester 1.7; JDK 1.5.0_05
> Reporter: Boris Boehlen
> Attachments: my-app.zip
>
>
> I use the common-digester to parse a configuration file. When I do this in a test case I get the following error.
> javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found
> at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
> at org.apache.commons.digester.Digester.getFactory(Digester.java:490)
> at org.apache.commons.digester.Digester.getParser(Digester.java:693)
> at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)
> at org.apache.commons.digester.Digester.parse(Digester.java:1704)
> at i3.grasgxl.core.ConfigurationLoader.load(ConfigurationLoader.java:107)
> Worked properly with Maven 1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-1303) Parsing XML document commons-digester fails in testcase
Posted by "Lester Ecarma (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1303?page=comments#action_49361 ]
Lester Ecarma commented on MNG-1303:
------------------------------------
I think you just need to include a XML parser engine to your build. commons-digester does not include a jaxp implementation library in its dependency list. For example, try adding to your pom something like
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.6.2</version>
</dependency>
> Parsing XML document commons-digester fails in testcase
> -------------------------------------------------------
>
> Key: MNG-1303
> URL: http://jira.codehaus.org/browse/MNG-1303
> Project: Maven 2
> Type: Bug
> Components: maven-surefire-plugin
> Versions: 2.0
> Environment: commons-digester 1.7; JDK 1.5.0_05
> Reporter: Boris Boehlen
> Attachments: my-app.zip
>
>
> I use the common-digester to parse a configuration file. When I do this in a test case I get the following error.
> javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found
> at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
> at org.apache.commons.digester.Digester.getFactory(Digester.java:490)
> at org.apache.commons.digester.Digester.getParser(Digester.java:693)
> at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)
> at org.apache.commons.digester.Digester.parse(Digester.java:1704)
> at i3.grasgxl.core.ConfigurationLoader.load(ConfigurationLoader.java:107)
> Worked properly with Maven 1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-1303) surefire should include bootclasspath when running tests
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1303?page=comments#action_52350 ]
John Casey commented on MNG-1303:
---------------------------------
committed version of IsolatedClassLoader with loadClass(..) impl commented out, and new constructor allowing a parent ClassLoader. This works for this test case, but since it dramatically changes the classloading strategy for surefire, I wanted jason to take a look at it.
> surefire should include bootclasspath when running tests
> --------------------------------------------------------
>
> Key: MNG-1303
> URL: http://jira.codehaus.org/browse/MNG-1303
> Project: Maven 2
> Type: Bug
> Components: maven-surefire-plugin
> Versions: 2.0
> Environment: commons-digester 1.7; JDK 1.5.0_05
> Reporter: Boris Boehlen
> Attachments: my-app.zip
>
>
> I use the common-digester to parse a configuration file. When I do this in a test case I get the following error.
> javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found
> at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
> at org.apache.commons.digester.Digester.getFactory(Digester.java:490)
> at org.apache.commons.digester.Digester.getParser(Digester.java:693)
> at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)
> at org.apache.commons.digester.Digester.parse(Digester.java:1704)
> at i3.grasgxl.core.ConfigurationLoader.load(ConfigurationLoader.java:107)
> Worked properly with Maven 1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-1303) Parsing XML document commons-digester fails in testcase
Posted by "Boris Boehlen (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1303?page=comments#action_49467 ]
Boris Boehlen commented on MNG-1303:
------------------------------------
>From my point of view this is acceptable workaround.
However, at least with JDK 5 this should not be necessary as it has built in XML parser support. So I don't think that it should not be necessary to include a jaxp implementation.
Or am I wrong? If not, I would vote against closing this issue as fixed.
> Parsing XML document commons-digester fails in testcase
> -------------------------------------------------------
>
> Key: MNG-1303
> URL: http://jira.codehaus.org/browse/MNG-1303
> Project: Maven 2
> Type: Bug
> Components: maven-surefire-plugin
> Versions: 2.0
> Environment: commons-digester 1.7; JDK 1.5.0_05
> Reporter: Boris Boehlen
> Attachments: my-app.zip
>
>
> I use the common-digester to parse a configuration file. When I do this in a test case I get the following error.
> javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found
> at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
> at org.apache.commons.digester.Digester.getFactory(Digester.java:490)
> at org.apache.commons.digester.Digester.getParser(Digester.java:693)
> at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)
> at org.apache.commons.digester.Digester.parse(Digester.java:1704)
> at i3.grasgxl.core.ConfigurationLoader.load(ConfigurationLoader.java:107)
> Worked properly with Maven 1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-1303) surefire should include bootclasspath
when running tests
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1303?page=comments#action_53240 ]
John Casey commented on MNG-1303:
---------------------------------
I've rolled the IsolatedClassLoader changes back out, since it would introduce pollutants from the jdk like xerces.
> surefire should include bootclasspath when running tests
> --------------------------------------------------------
>
> Key: MNG-1303
> URL: http://jira.codehaus.org/browse/MNG-1303
> Project: Maven 2
> Type: Bug
> Components: maven-surefire-plugin
> Versions: 2.0
> Environment: commons-digester 1.7; JDK 1.5.0_05
> Reporter: Boris Boehlen
> Attachments: my-app.zip
>
>
> I use the common-digester to parse a configuration file. When I do this in a test case I get the following error.
> javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found
> at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
> at org.apache.commons.digester.Digester.getFactory(Digester.java:490)
> at org.apache.commons.digester.Digester.getParser(Digester.java:693)
> at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)
> at org.apache.commons.digester.Digester.parse(Digester.java:1704)
> at i3.grasgxl.core.ConfigurationLoader.load(ConfigurationLoader.java:107)
> Worked properly with Maven 1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Closed: (MNG-1303) surefire should include bootclasspath
when running tests
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1303?page=all ]
Jason van Zyl closed MNG-1303:
------------------------------
Resolution: Fixed
This test case now works.
> surefire should include bootclasspath when running tests
> --------------------------------------------------------
>
> Key: MNG-1303
> URL: http://jira.codehaus.org/browse/MNG-1303
> Project: Maven 2
> Type: Bug
> Components: maven-surefire-plugin
> Versions: 2.0
> Environment: commons-digester 1.7; JDK 1.5.0_05
> Reporter: Boris Boehlen
> Assignee: Jason van Zyl
> Attachments: my-app.zip
>
>
> I use the common-digester to parse a configuration file. When I do this in a test case I get the following error.
> javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found
> at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
> at org.apache.commons.digester.Digester.getFactory(Digester.java:490)
> at org.apache.commons.digester.Digester.getParser(Digester.java:693)
> at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)
> at org.apache.commons.digester.Digester.parse(Digester.java:1704)
> at i3.grasgxl.core.ConfigurationLoader.load(ConfigurationLoader.java:107)
> Worked properly with Maven 1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-1303) Parsing XML document commons-digester fails in testcase
Posted by "Boris Boehlen (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1303?page=all ]
Boris Boehlen updated MNG-1303:
-------------------------------
Attachment: my-app.zip
Most simple test case based upon what "archetype:create" creates for you.
Only shows the error!
> Parsing XML document commons-digester fails in testcase
> -------------------------------------------------------
>
> Key: MNG-1303
> URL: http://jira.codehaus.org/browse/MNG-1303
> Project: Maven 2
> Type: Bug
> Components: maven-surefire-plugin
> Versions: 2.0
> Environment: commons-digester 1.7; JDK 1.5.0_05
> Reporter: Boris Boehlen
> Attachments: my-app.zip
>
>
> I use the common-digester to parse a configuration file. When I do this in a test case I get the following error.
> javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found
> at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
> at org.apache.commons.digester.Digester.getFactory(Digester.java:490)
> at org.apache.commons.digester.Digester.getParser(Digester.java:693)
> at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)
> at org.apache.commons.digester.Digester.parse(Digester.java:1704)
> at i3.grasgxl.core.ConfigurationLoader.load(ConfigurationLoader.java:107)
> Worked properly with Maven 1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-1303) surefire should include bootclasspath when running tests
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1303?page=comments#action_50141 ]
Brett Porter commented on MNG-1303:
-----------------------------------
this should be done by delegating to the system classloader, rather than including specific jars into the isolated classloader
> surefire should include bootclasspath when running tests
> --------------------------------------------------------
>
> Key: MNG-1303
> URL: http://jira.codehaus.org/browse/MNG-1303
> Project: Maven 2
> Type: Bug
> Components: maven-surefire-plugin
> Versions: 2.0
> Environment: commons-digester 1.7; JDK 1.5.0_05
> Reporter: Boris Boehlen
> Attachments: my-app.zip
>
>
> I use the common-digester to parse a configuration file. When I do this in a test case I get the following error.
> javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found
> at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
> at org.apache.commons.digester.Digester.getFactory(Digester.java:490)
> at org.apache.commons.digester.Digester.getParser(Digester.java:693)
> at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)
> at org.apache.commons.digester.Digester.parse(Digester.java:1704)
> at i3.grasgxl.core.ConfigurationLoader.load(ConfigurationLoader.java:107)
> Worked properly with Maven 1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org