70119

Destination is mandatory

Question:

I got following error while deploying my ear in wildfly 8.1.0 server

<strong>1)Error:</strong>

Caused by: javax.resource.spi.InvalidPropertyException: Destination is mandatory", "jboss.deployment.subunit.\"wildfly.ear\".\"wildfly- ejb.jar\".component.ReRattingMDB.START" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"wildfly.ear\".\"wildfly-ejb.jar\".component.ReRattingMDB.START: java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: Destination is mandatory

<strong>2)MDB CODE:</strong>

@MessageDriven(mappedName = "ReRatting_Queue",activationConfig = { @ActivationConfigProperty(propertyName="messagingType", propertyValue="javax.jms.MessageListener"), @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"), @ActivationConfigProperty(propertyName="Destination", propertyValue="java:/queue/ReRatting_Queue"), @ActivationConfigProperty(propertyName="ConnectionFactoryName", propertyValue="ConnectionFactory"), @ActivationConfigProperty(propertyName="MaxPoolSize", propertyValue="1"), @ActivationConfigProperty(propertyName="MaxMessages", propertyValue="1"), @ActivationConfigProperty(propertyName = "useJNDI", propertyValue = "true") })

<strong>3)standard-full.xml:</strong>

<jms-queue name="ReRatting_Queue"> <entry name="java:/queue/ReRatting_Queue"/> <durable>true</durable> </jms-queue>

Please help me any one why this error came and how to solve this issue in wildfly8 application server

Regards Shankar

Answer1:

I guess the property names must start with a lower case letter. You typed 'Destination' but I'm pretty sure it must be named 'destination'.

Recommend

  • Hibernate error when add @Entity
  • Changing context root for a web app under JBoss As 7
  • FacesContext not injectable in Wildfly 14 with JSF 2.3 (Mojarra, main module)
  • Automatically Start Windows Service on Install
  • Permissions error when using cli in Jboss wildfly and docker
  • JBoss AS 7 : how to make independant deployment of EJB and dependent WAR?
  • How do i compile .py to a .exe?
  • Faster Way To Simultaneously Iterate Over Rolling Window Of Two Or More Numpy Arrays?
  • Better Indy for Dephi 2007
  • Enumerating Controls on a Form
  • Xmonad multiple submap key combos
  • “mvn clean generate-source” could not resolve dependencies
  • In Java, how can I construct a File from a resource?
  • Passing variable arguments using PowerShell's Start-Process cmdlet
  • Use tryCatch within R loop
  • Is there some graphical way to create my own configuration file on SonarLint?
  • Javascript, Regex - I need to grab each section of a string contained in brackets
  • Android Studio Can't Find tools.jar
  • URLConnection doesn't work since API 10 and higher?
  • ASP.NET MVC 2 Preview 2 - display directory list rather than home/index
  • Is it possible to open regedit and navigate to straight to a specific key using process.start?
  • Typescript - Unable to get 'import' statement to function
  • Jetty Server not starting: Unable to establish loopback connection
  • ImageMagick, replace semi-transparent white with opaque white
  • Disabling Alt-F4 on a Win Forms NotifyIcon
  • Debugging ASP.NET on a built-in web server suddenly stops
  • Cannot connect to cassandra from Spark
  • Is there a amazon webstore API for customers?
  • Updating server-side rendering client-side
  • Cross-Platform Protobuf Serialization
  • Alternatives to the OPTIONAL fallback SPARQL pattern?
  • Circular dependency while pushing http interceptor
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • python regex in pyparsing
  • Angular 2 constructor injection vs direct access
  • Android Google Maps API OnLocationChanged only called once
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?
  • How can I use threading to 'tick' a timer to be accessed by other threads?