[jboss-jira] [JBoss JIRA] Commented: (JBAS-5257) jboss:service=defaultClassLoader is not registered with dynamic webapp deployment
Dimitris Andreadis (JIRA)
jira-events at lists.jboss.org
Thu Jun 12 06:43:15 EDT 2008
[ http://jira.jboss.com/jira/browse/JBAS-5257?page=comments#action_12416695 ]
Dimitris Andreadis commented on JBAS-5257:
------------------------------------------
Thomas, you need to provide an integration test in AS, so we can get somebody to look at.
As Adrian pointed in the forum, it's not really an issue of the jboss:service=defaultClassloader to not be found. This is not used anymore.
Quoting:
"The relevant code is in the ServiceDeployer:
Code:
public void deploy(DeploymentUnit unit, ServiceMetaData deployment) throws DeploymentException
{
ObjectName name = deployment.getObjectName();
try
{
ObjectName loaderName = deployment.getClassLoaderName();
if (loaderName == null)
{
ClassLoader cl = unit.getClassLoader();
if (cl != null && cl instanceof RepositoryClassLoader)
loaderName = ((RepositoryClassLoader) cl).getObjectName();
// TODO add to RealClassLoader
else if (cl != null && cl instanceof RealClassLoader)
loaderName = ((RealClassLoader) cl).getObjectName();
else
loaderName = defaultClassLoader;
}
I'd guess the actual classloader Thomas is passing in, is not a RealClassLoader
(but it probably has one as a parent) so this code should loop through
ClassLoader::getParent() until it finds one that is, before trying to use
"defaultClassLoader" which doesn't look like it is even configured."
> jboss:service=defaultClassLoader is not registered with dynamic webapp deployment
> ---------------------------------------------------------------------------------
>
> Key: JBAS-5257
> URL: http://jira.jboss.com/jira/browse/JBAS-5257
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Deployers
> Reporter: Thomas Diesler
> Assigned To: Dimitris Andreadis
> Fix For: JBossAS-5.0.0.CR1
>
>
> [tdiesler at tdvaio trunk]$ ant -Dtest=jaxws/endpoint test
> tests-run-internal:
> [junit] Running org.jboss.test.ws.jaxws.endpoint.EndpointTestCase
> [junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 2.678 sec
> [junit] Test org.jboss.test.ws.jaxws.endpoint.EndpointTestCase FAILED
> 21:00:51,741 INFO [TomcatDeployment] deploy, ctxPath=/jaxws-endpoint-servlet, vfsUrl=
> 21:00:51,876 INFO [DefaultEndpointRegistry] register: jboss.ws:context=jaxws-endpoint,endpoint=EndpointBean
> 21:00:52,080 INFO [WSDLFilePublisher] WSDL published to: file:/home/tdiesler/svn/jbossas/trunk/build/output/jboss-5.0.0.CR1/server/default/data/wsdl/endpoint-deployment/TestService1845.wsdl
> 21:00:52,089 ERROR [AbstractKernelController] Error installing to Instantiated: name=jboss.jacc:id=endpoint-deployment,service=jacc state=Described mode=Manual requiredState=Configured
> org.jboss.deployment.DeploymentException: Unable to createMBean for jboss.jacc:service=jacc,id=endpoint-deployment
> at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:52)
> ...
> Caused by: javax.management.InstanceNotFoundException: jboss:service=defaultClassLoader is not registered.
> at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:529)
> at org.jboss.mx.server.MBeanServerImpl.getClassLoader(MBeanServerImpl.java:1094)
> at org.jboss.system.ServiceCreator.installPlainMBean(ServiceCreator.java:191)
> at org.jboss.system.ServiceCreator.install(ServiceCreator.java:115)
> It seems that the JACC service does not use the classloader that was supplied whit the webapp deployment
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list