[jira] Created: (JDO-494) ERROR org.apache.tools.ant.AntClassLoader
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > [jira] Created: (JDO-494) ERROR org.apache.tools.ant.AntClassLoader




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Created: (JDO-494) ERROR org.apache.tools.ant.AntClassLoader  
Craig Russell (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-07-07 12:11 AM

ERROR org.apache.tools.ant.AntClassLoader running maven build on api2
---------------------------------------------------------------------

Key: JDO-494
URL: https://issues.apache.org/jira/browse/JDO-494
Project: JDO
Issue Type: Bug
Components: api2
Affects Versions: JDO 2 maintenance release 1
Reporter: Craig Russell
Assignee: Matthew T. Adams
Priority: Blocker
Fix For: JDO 2 maintenance release 1


I get this error when running the api20 maven build from the tip  of
the trunk:

Testsuite: javax.jdo.JDOHelperConfigTest
Tests run: 19, Failures: 0, Errors: 18, Time elapsed: 0.124 sec

Testcase:  testPositive00_PMF0_GetNamedPMFPropertie
s
(javax.jdo.JDOHelperConfigTest):     Caused an ERROR
org.apache.tools.ant.AntClassLoader
at
javax.jdo.JDOHelperConfigTest.testPositive00_PMF0_GetNamedPMFProperti
es(JDOHelperConfigTest.java:57)

The error occurs at the line that constructs a new class loader:

URLClassLoader loader = new JDOConfigTestClassLoader(
JDOCONFIG_CLASSPATH_PREFIX,
(URLClassLoader) getClass().getClassLoader());

I don't recognize the error. The stack trace doesn't show where in
the constructor the error is.

Any clues?

Craig

public class JDOConfigTestClassLoader extends URLClassLoader {

public JDOConfigTestClassLoader(String partialPathToIgnore,
URLClassLoader unparent) {
this(new String[]{partialPathToIgnore}, unparent);
}

public JDOConfigTestClassLoader(String[] partialPathsToIgnore,
URLClassLoader unparent) {
super(new URL[]{}, null);
addNonTestURLs(partialPathsToIgnore == null ? new String[]
{} : partialPathsToIgnore, unparent);
}

// HACK:  need to identify a better way of controlling test  classpath
protected void addNonTestURLs(String[] partialPathsToIgnore,  URLClassLo
ader unparent) {
URL[] urls = unparent.getURLs();
for (int i = 0; i < urls.length; i++) {
URL url = urls[i];
String urlString = url.toString();
for (int j = 0; j < partialPathsToIgnore.length; j++) {
if (urlString.indexOf(partialPathsToIgnore[j]) ==  -1) {
addURL(url);
}
}
}
}
}


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:26 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register