Dwayne Schultz [
http://community.jboss.org/people/dwayne%40schultz.net] created the
discussion
"'No ConnectorMetaData found for mdf' when embedding rar in ear"
To view the discussion, visit:
http://community.jboss.org/message/578231#578231
--------------------------------------------------------------
Hello,
I am having some difficulty when trying to embed a rar inside an ear. When the rar and
ear are deployed separately, they seem to work fine. This is the exception I get when the
rar is embedded:
14:59:31,195 INFO [JBossASKernel] Added
bean(jboss.j2ee:ear=dropboxmq_xyz.ear,jar=dropboxmq_xyz.jar,name=dropboxmq/XyzMDB,service=EJB3)
to KernelDeployment of: dropboxmq_xyz.jar
14:59:31,226 ERROR [AbstractKernelController] Error installing to Real:
name=vfs:///Users/dwayne/system/jboss-6.0.0.20100911-M5/server/default/deploy/dropboxmq_xyz.ear
state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException:
Error during deploy:
vfs:///Users/dwayne/system/jboss-6.0.0.20100911-M5/server/default/deploy/dropboxmq_xyz.ear
at
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
[:2.2.0.Alpha7]
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185)
[:2.2.0.Alpha7]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)
[:2.2.0.Alpha7]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)
[:2.2.0.Alpha7]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491)
[:2.2.0.Alpha7]
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
[jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)
[jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
[jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)
[:2.2.0.Alpha7]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)
[:2.2.0.Alpha7]
at
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)
[:2.2.0.Alpha7]
at
org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)
[:6.0.0.20100911-M5]
at
org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:130)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:148)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94)
[:0.1.0.Alpha1]
at
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
[jboss-kernel.jar:2.2.0.Alpha10]
at
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
[jboss-kernel.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
[jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)
[jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.profileservice.dependency.ProfileServiceController.activate(ProfileServiceController.java:188)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.AbstractProfileService.activateProfile(AbstractProfileService.java:170)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:117)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:89)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:97)
[:0.1.0.Alpha1]
at
org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:130)
[:6.0.0.20100911-M5]
at
org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56)
[:6.0.0.20100911-M5]
at
org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827)
[jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at
org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417)
[jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_22]
Caused by: java.lang.IllegalStateException: No ConnectorMetaData found for mdf rarName:
dropboxmq_xyz.ear#dropboxmq.rar
at
org.jboss.resource.deployers.builder.ManagedConnectionFactoryBuilder.buildConstructor(ManagedConnectionFactoryBuilder.java:104)
[:6.0.0.20100911-M5]
at
org.jboss.resource.deployers.builder.AbstractBuilder.buildService(AbstractBuilder.java:56)
[:6.0.0.20100911-M5]
at org.jboss.resource.deployers.builder.AbstractBuilder.build(AbstractBuilder.java:65)
[:6.0.0.20100911-M5]
at
org.jboss.resource.deployers.ManagedConnectionFactoryDeployer.deploy(ManagedConnectionFactoryDeployer.java:179)
[:6.0.0.20100911-M5]
at
org.jboss.resource.deployers.ManagedConnectionFactoryDeployer.deploy(ManagedConnectionFactoryDeployer.java:52)
[:6.0.0.20100911-M5]
at
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
[:2.2.0.Alpha7]
at
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
[:2.2.0.Alpha7]
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
[:2.2.0.Alpha7]
... 41 more
14:59:31,373 INFO [service] Removing bootstrap log handlers
14:59:31.443|ERROR|org.jboss.profileservice.bootstrap|Thread-2 Failed to load profile::
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete
deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS IN ERROR:
Deployment
"vfs:///Users/dwayne/system/jboss-6.0.0.20100911-M5/server/default/deploy/dropboxmq_xyz.ear"
is in error due to the following reason(s): java.lang.IllegalStateException: No
ConnectorMetaData found for mdf rarName: dropboxmq_xyz.ear#dropboxmq.rar
at
org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228)
at
org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905)
at
org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87)
at
org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:118)
at
org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:133)
at
org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56)
at
org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827)
at
org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417)
at java.lang.Thread.run(Thread.java:680)
Here is the structure of my ear:
$ find .
.
./dropboxmq.rar
./dropboxmq_xyz.jar
./lib
./lib/commons-logging-1.1.1.jar
./lib/log4j-1.2.16.jar
./META-INF
./META-INF/application.xml
./META-INF/dropboxmq-ds.xml
./META-INF/jboss-app.xml
Here is my application.xml:
<application
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/application_5.xsd"
version="5">
<display-name>DropboxMQ</display-name>
<module>
<connector>dropboxmq.rar</connector>
</module>
<module>
<ejb>dropboxmq_xyz.jar</ejb>
</module>
</application>
Here is my jboss-app.xml:
<jboss-app>
<loader-repository>
net.sf.dropboxmq:archive=dropboxmq_xyz.ear
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
<module>
<service>META-INF/dropboxmq-ds.xml</service>
</module>
</jboss-app>
Here is my -ds.xml:
<connection-factories>
<tx-connection-factory>
<jndi-name>jms/XAConnectionFactory</jndi-name>
<xa-transaction/>
<rar-name>dropboxmq_xyz.ear#dropboxmq.rar</rar-name>
<connection-definition>javax.jms.XAConnectionFactory</connection-definition>
<config-property name="JmsProviderAdapterJNDI"
type="java.lang.String">DropboxMQ</config-property>
</tx-connection-factory>
</connection-factories>
And finally, here is my MDB:
package net.sf.dropboxmq.adaptors;
import javax.ejb.ActivationConfigProperty;
import javax.ejb.MessageDriven;
import javax.jms.Message;
import javax.jms.MessageListener;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jboss.ejb3.annotation.ResourceAdapter;
@MessageDriven( name = "dropboxmq/XyzMDB", messageListenerInterface =
MessageListener.class,
activationConfig =
{
@ActivationConfigProperty( propertyName = "destinationType",
propertyValue = "javax.jms.Queue" ),
@ActivationConfigProperty( propertyName = "destination",
propertyValue = "queue/xyz" )
} )
@ResourceAdapter( "dropboxmq_xyz.ear#dropboxmq.rar" )
public class XyzMDB implements MessageListener
{
private static final Log log = LogFactory.getLog( XyzMDB.class );
@Override public void onMessage( final Message message )
{
log.info( "Message received" );
}
}
I see some references to similar errors but nothing looks current or relevant. Any help
is appreciated!
Dwayne
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/578231#578231]
Start a new discussion in IronJacamar at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]