[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_79526
]
Christian Schulte commented on MSUREFIRE-115:
-
I have similar problems (since more than a year!) but with the JDKs service
provider lookup mechanism. At lea
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_77008
]
Kenney Westerhof commented on MSUREFIRE-115:
Taking another look at the unit test, the line to read the resource should be
URL dateResource = getCla
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_76786
]
Ronny Naess commented on MSUREFIRE-115:
---
Anything new in this matter?
I have testresources in two test dependent jars. My artifacts has who depends
this test-jar
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_69780
]
Tim Riley commented on MSUREFIRE-115:
-
I seem to be experiencing this same issue when testing my JAXB 2.0.2 code.
Where it runs perfect in the IDE but not in maven2. I have tri
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_67344
]
Olivier Lamy commented on MSUREFIRE-115:
The workaround says :
MyClass.class.getClassloader().getResourceAsStream("foo/bar.xml")
and not
MyClass.class.getClassloader().getR
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_67343
]
Jörg Hohwiller commented on MSUREFIRE-115:
--
I have the same problem. The suggested classloader workaround does NOT work for
me.
I had "MyClass.class.getResourceAsStream("/
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_66779
]
Wim Deblauwe commented on MSUREFIRE-115:
Is it possible to put a snapshot with this fix somewhere so I can test it?
> Classloading problem for getting a resource
>
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_66519
]
Mark Holster commented on MSUREFIRE-115:
While browsing through the issue's I noticed MSUREFIRE-123 and MSUREFIRE-121
are describing the same problem, and maby MSUREFIRE-10
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_66488
]
David Boden commented on MSUREFIRE-115:
---
I have exactly the same problem running tests for which use Apache DBCP version
1.2.1 (latest). The tests can't see the *.jocl config
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_66367
]
Wim Deblauwe commented on MSUREFIRE-115:
I think so too, because I tried to use childDelegation, but it resulted in the
same problem.
> Classloading problem for getting a
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_66342
]
Mark Holster commented on MSUREFIRE-115:
As far as I can see that option only chances the delegation order for loading
the classes, but still uses the isolated classloader.
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_66340
]
Carlos Sanchez commented on MSUREFIRE-115:
--
The isolated classloader can be turned off with the childDelegation option
http://maven.apache.org/plugins/maven-surefire-plugin
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_66272
]
Wim Deblauwe commented on MSUREFIRE-115:
I would be most gratefull if you could do that. Maybe some option to turn off
the use of the isolated classloader?
> Classloading
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_66210
]
Carlos Sanchez commented on MSUREFIRE-115:
--
Although this might be an incorrect use of the API, if it works in m1 and the
IDEs it may be worth to check for a workaround in
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_66171
]
Wim Deblauwe commented on MSUREFIRE-115:
So very true, sorry about that.
so, I guess I will have to talk to the betwixt team to not use this construct:
Date.class.getResou
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_66161
]
Mark Holster commented on MSUREFIRE-115:
That's because finding a resource by the Class object difference from finding a
resource by a Classloader object: The Class.getReso
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_66157
]
Wim Deblauwe commented on MSUREFIRE-115:
I added 2 more tests, taking your suggestions into account.
{noformat}
public void testClassloading()
{
ClassLoader cla
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_66152
]
Kenney Westerhof commented on MSUREFIRE-115:
API doc for java.lang.Class:
{noformat}
public ClassLoader getClassLoader()
Returns the class loader for the class. So
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_65715
]
Mark Holster commented on MSUREFIRE-115:
I've tried to provide a patch for this issue, but after debugging for a while
i'm not sure if this is a bug: The java.util.Date cla
[ http://jira.codehaus.org/browse/MSUREFIRE-115?page=comments#action_65677
]
Adrian commented on MSUREFIRE-115:
--
I have a problem running tests using hibernate since it cannot load xml files
that should be on the classpath. This might be the same issue.
>
20 matches
Mail list logo