Skip to content

Instantly share code, notes, and snippets.

<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2010, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2010, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
WorkManager wm = new WorkManagerImpl();
final InjectedValue<QueueExecutor> injectShortRunningExecutor = new InjectedValue<QueueExecutor>();
final InjectedValue<QueueExecutor> injectLongRunningExecutor = new InjectedValue<QueueExecutor>();
final WorkManagerService wmService = new WorkManagerService(wm, injectLongRunningExecutor, injectLongRunningExecutor);
final BatchServiceBuilder<WorkManager> wmServiceBuilder = builder.addService(ConnectorServices.WORKMANAGER_SERVICE,
wmService);
wmServiceBuilder.addDependency(ThreadsServices.EXECUTOR.append(shortRunningThreadPool), QueueExecutor.class,
injectShortRunningExecutor);
wmServiceBuilder.addDependency(ThreadsServices.EXECUTOR.append(longRunningThreadPool), QueueExecutor.class,
22:49:33,331 ERROR [server] Service [service jboss.deployment.chain.rar."org.jboss.as.connector.deployers.ParsedRaDeploymentProcessor"] start failed: org.jboss.msc.service.StartException in service
service jboss.deployment.chain.rar."org.jboss.as.connector.deployers.ParsedRaDeploymentProcessor": Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1037)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_18]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_18]
at java.lang.Thread.run(Thread.java:636) [:1.6.0_18]
Caused by: java.lang.NullPointerException
at com.arjuna.ats.internal.arjuna.common.ClassloadingUtility.loadAndInstantiateClass(ClassloadingUtility.java:73)
at com.arjuna.ats.jta.common.JTAEnvironmentBean.getTransactionManager(JTAEnvironmentBean.java:156)
at com.arjuna.ats.jta.TransactionManager.transactionManager(TransactionManager.java:76)
final ModuleDependencies dependenciesAttachment = getAttachedDependencies(context);
final ModuleConfig.Dependency[] dependencies = dependenciesAttachment != null ? dependenciesAttachment.getDependencies() : NO_DEPS;
final Module module = context.getAttachment(ModuleDeploymentProcessor.MODULE_ATTACHMENT_KEY);
if (module == null)
throw new DeploymentUnitProcessingException("Failed to get module attachment for deployment: " + context.getName());
final ClassLoader classLoader = module.getClassLoader();
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
19:27:56,964 TRACE [modules] Finding class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer from Module "module:org.jboss.logmanager:main" from default
19:27:56,964 TRACE [modules] Class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer not found from Module "module:org.jboss.logmanager:main" from default
19:27:56,964 TRACE [modules] Finding class org.jboss.as.connector.deployers.ParsedRaDeploymentProcessor$AS7RaDeployer from Module "module:org.jboss.logmanager:main" from default
19:27:56,964 TRACE [modules] Class org.jboss.as.connector.deployers.ParsedRaDeploymentProcessor$AS7RaDeployer not found from Module "module:org.jboss.logmanager:main" from default
19:27:56,965 TRACE [modules] Finding class org.jboss.jca.core.naming.ExplicitJndiStrategy from Module "module:org.jboss.logmanager:main" from default
19:27:56,965 TRACE [modules] Class org.jboss.jca.core.naming.ExplicitJndiStrategy not found from Module "module:org.jboss.logmanager:main" from default
19:27:56,961 ERROR [deployment
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
21:58:03,153 ERROR [deployment] Caught exception handling update (param is 6ebd0457-5cfb-4670-8ab4-ff9d041d44b9): org.jboss.msc.service.StartException in service service jboss.naming.context.java.global.ra16outjbossra_rar: Failed to create sub-context with name 'java:global/ra16outjbossra_rar' in context 'org.jboss.as.naming.NamingContext@9d532ae'
at org.jboss.as.deployment.naming.ContextService.start(ContextService.java:65)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1001)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_18]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_18]
at java.lang.Thread.run(Thread.java:636) [:1.6.0_18]
Caused by: javax.naming.NameNotFoundException: Name 'global' not found in context ''
at org.jboss.as.naming.util.NamingUtils.nameNotFoundException(NamingUtils.java:66)
at org.jboss.as.naming.InMemoryNamingStore$NodeTraversingVisitor.visit(InMemoryNami