
| Key: |
NUCJDOJCA-11
|
| Type: |
Bug
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Kiran Kumar
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
When deploying datanucleus in jboss AS7 the JDOClassLoaderResolver properly loads the primitive datatypes but fails to load other datatypes resulting in a
Class "java.lang.Boolean" was not found in the CLASSPATH [Class resolver called from org.datanucleus.store.types.TypeManager.loadJavaTypes (line=607)
When jboss deploys the datanucleus adapter it does not provide Thread.currentThread().getContextClassLoader() is null.
The classloader used at the time of deployment needs to be same as the one subsequently used.
|
|
Description
|
When deploying datanucleus in jboss AS7 the JDOClassLoaderResolver properly loads the primitive datatypes but fails to load other datatypes resulting in a
Class "java.lang.Boolean" was not found in the CLASSPATH [Class resolver called from org.datanucleus.store.types.TypeManager.loadJavaTypes (line=607)
When jboss deploys the datanucleus adapter it does not provide Thread.currentThread().getContextClassLoader() is null.
The classloader used at the time of deployment needs to be same as the one subsequently used.
|
Show » |
Sort Order:
|
public synchronized void setPrimaryClassLoader(String name)
{
ClassLoader thisClazzLoader = this.getClass().getClassLoader();
ClassLoader primaryClassLoader = null;
try
{
primaryClassLoader = thisClazzLoader.loadClass(name).getClassLoader();
}
catch (Exception e)
{
// ignore this error
if (PersistenceManagerImpl.LOGGER.isInfoEnabled())
{
PersistenceManagerImpl.LOGGER.info("Exception while creating PrimaryClassLoader: ", e);
}
}
properties.put("datanucleus.primaryClassLoader", primaryClassLoader);
}