Yes, the verification went through with the change.
Thanks Sanjeeb.
Regards,
Jaideep
Sanjeeb Kumar Sahoo wrote:
> Hi Binod,
>
> That seems to be a correct failure. The modified sun deployment
> descriptor is still referring to EJb 2.0 DTD as it still contains
> *-//Sun Microsystems, Inc.//DTD Sun ONE Application Server 7.0 EJB
> 2.0//EN* as its public Id.
>
> Try changing that to *-//Sun Microsystems, Inc.//DTD Application Server
> 8.1 EJB 2.1//EN*
>
> Thanks,*
> *Sahoo
>
> Binod wrote:
>
>>
>> BTW, what happens if you dont verify and just deploy it...
>>
>> Sahoo, would you take a look at this error?
>>
>> - Binod.
>>
>>> Hi Binod,
>>> I changed the DDs to EJB2.1, but still the same error :(.
>>>
>>> Here are the modified DDs.
>>>
>>> *******************
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>>
>>> <ejb-jar version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>>> http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
>>> <display-name>SimpleMessageJAR</display-name>
>>> <enterprise-beans>
>>> <message-driven>
>>> <display-name>SimpleMessageEJB</display-name>
>>> <ejb-name>SimpleMessageEJB</ejb-name>
>>> <ejb-class>test.mdb.TestMDB</ejb-class>
>>> <messaging-type>javax.jms.MessageListener</messaging-type>
>>> <transaction-type>Container</transaction-type>
>>>
>>> <message-destination-type>javax.jms.Queue</message-destination-type>
>>> <resource-ref>
>>> <res-ref-name>jms/QCFactory</res-ref-name>
>>> <res-type>javax.jms.QueueConnectionFactory</res-type>
>>> <res-auth>Container</res-auth>
>>> <res-sharing-scope>Shareable</res-sharing-scope>
>>> </resource-ref>
>>> </message-driven>
>>> </enterprise-beans>
>>> <assembly-descriptor>
>>> <container-transaction>
>>> <method>
>>> <ejb-name>SimpleMessageEJB</ejb-name>
>>> <method-name>onMessage</method-name>
>>> <method-params>
>>> <method-param>javax.jms.Message</method-param>
>>> </method-params>
>>> </method>
>>> <trans-attribute>Required</trans-attribute>
>>> </container-transaction>
>>> </assembly-descriptor>
>>> </ejb-jar>
>>>
>>> *****************
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>>
>>> <!DOCTYPE sun-ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Sun ONE
>>> Application Server 7.0 EJB 2.0//EN'
>>> 'http://www.sun.com/software/sunone/appserver/dtds/sun-ejb-jar_2_1-1.dtd'>
>>>
>>>
>>> <!-- Copyright 2002 Sun Microsystems, Inc. All rights reserved. -->
>>>
>>> <sun-ejb-jar>
>>>
>>> <enterprise-beans>
>>>
>>> <unique-id>1</unique-id>
>>>
>>> <ejb>
>>>
>>> <ejb-name>SimpleMessageEJB</ejb-name>
>>>
>>> <jndi-name>jms/SampleQueue</jndi-name>
>>>
>>> <resource-ref>
>>>
>>> <res-ref-name>jms/QCFactory</res-ref-name>
>>>
>>> <!--
>>>
>>> jndi-name below should be the name of connector-resource
>>> created in step 1 of configuration section above
>>>
>>> -->
>>>
>>> <jndi-name>jms/QCFactory</jndi-name>
>>>
>>> <default-resource-principal>
>>>
>>> <name>guest</name>
>>>
>>> <password>guest</password>
>>>
>>> </default-resource-principal>
>>>
>>> </resource-ref>
>>>
>>> <mdb-resource-adapter>
>>> <!-- The resource adapter mid element ties the generic ra for
>>> JMS with this particular MDB -->
>>>
>>> <resource-adapter-mid>genericra</resource-adapter-mid>
>>>
>>> <activation-config>
>>>
>>> <activation-config-property>
>>>
>>>
>>> <activation-config-property-name>DestinationType</activation-config-property-name>
>>>
>>>
>>>
>>> <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
>>>
>>>
>>> </activation-config-property>
>>>
>>> <activation-config-property>
>>>
>>>
>>> <activation-config-property-name>DestinationProperties</activation-config-property-name>
>>>
>>>
>>>
>>> <activation-config-property-value>imqDestinationName=Queue</activation-config-property-value>
>>>
>>>
>>> </activation-config-property>
>>>
>>> <activation-config-property>
>>>
>>>
>>> <activation-config-property-name>MaxPoolSize</activation-config-property-name>
>>>
>>>
>>>
>>> <activation-config-property-value>32</activation-config-property-value>
>>>
>>> </activation-config-property>
>>>
>>> <activation-config-property>
>>>
>>>
>>> <activation-config-property-name>RedeliveryAttempts</activation-config-property-name>
>>>
>>>
>>>
>>> <activation-config-property-value>0</activation-config-property-value>
>>>
>>> </activation-config-property>
>>>
>>> <activation-config-property>
>>>
>>>
>>> <activation-config-property-name>ReconnectAttempts</activation-config-property-name>
>>>
>>>
>>>
>>> <activation-config-property-value>4</activation-config-property-value>
>>>
>>> </activation-config-property>
>>>
>>> <activation-config-property>
>>>
>>>
>>> <activation-config-property-name>ReconnectInterval</activation-config-property-name>
>>>
>>>
>>>
>>> <activation-config-property-value>10</activation-config-property-value>
>>>
>>> </activation-config-property>
>>>
>>> <activation-config-property>
>>>
>>>
>>> <activation-config-property-name>RedeliveryInterval</activation-config-property-name>
>>>
>>>
>>>
>>> <activation-config-property-value>1</activation-config-property-value>
>>>
>>> </activation-config-property>
>>>
>>> <activation-config-property>
>>>
>>>
>>> <activation-config-property-name>SendBadMessagesToDMD</activation-config-property-name>
>>>
>>>
>>>
>>> <activation-config-property-value>true</activation-config-property-value>
>>>
>>>
>>> </activation-config-property>
>>>
>>> <activation-config-property>
>>>
>>>
>>> <activation-config-property-name>DeadMessageDestinationClassName</activation-config-property-name>
>>>
>>>
>>>
>>> <activation-config-property-value>com.sun.messaging.Queue</activation-config-property-value>
>>>
>>>
>>> </activation-config-property>
>>>
>>> <activation-config-property>
>>>
>>>
>>> <activation-config-property-name>DeadMessageDestinationProperties</activation-config-property-name>
>>>
>>>
>>>
>>> <activation-config-property-value>imqDestinationName=DMDtest</activation-config-property-value>
>>>
>>>
>>> </activation-config-property>
>>>
>>> </activation-config>
>>>
>>> </mdb-resource-adapter>
>>>
>>> </ejb>
>>>
>>> </enterprise-beans>
>>> </sun-ejb-jar>
>>>
>>> **********************
>>> The error from verifier is exactly the same.
>>>
>>>
>>> Regards,
>>> Jaideep
>>>
>>>
>>> Binod wrote:
>>>
>>>> Is that because you are using EJB 2.0 DTD? You should probably try
>>>> with EJB 2.1 DTD.
>>>>
>>>> - Binod.
>>>>
>>>>> Hi,
>>>>> I am trying to use genericra to connect to the SunMQ.
>>>>> I have taken the sample MDB configuration, i.e. deployment
>>>>> descriptors, and just changed the ejb class to my sample class.
>>>>> When I try to deploy it I got verification error. Can someone tell
>>>>> me what is wrong here or is there some issue with the verifier. I
>>>>> am using AS8.1
>>>>>
>>>>> Here are the DD's and the error that I get.
>>>>>
>>>>> *********************
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise
>>>>> JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
>>>>>
>>>>> <ejb-jar>
>>>>> <display-name>SimpleMessageJAR</display-name>
>>>>> <enterprise-beans>
>>>>> <message-driven>
>>>>> <display-name>SimpleMessageEJB</display-name>
>>>>> <ejb-name>SimpleMessageEJB</ejb-name>
>>>>> <ejb-class>test.mdb.TestMDB</ejb-class>
>>>>> <transaction-type>Container</transaction-type>
>>>>> <message-driven-destination>
>>>>> <destination-type>javax.jms.Queue</destination-type>
>>>>> </message-driven-destination>
>>>>> <resource-ref>
>>>>> <res-ref-name>jms/QCFactory</res-ref-name>
>>>>> <res-type>javax.jms.QueueConnectionFactory</res-type>
>>>>> <res-auth>Container</res-auth>
>>>>> <res-sharing-scope>Shareable</res-sharing-scope>
>>>>> </resource-ref>
>>>>> </message-driven>
>>>>> </enterprise-beans>
>>>>> <assembly-descriptor>
>>>>> <container-transaction>
>>>>> <method>
>>>>> <ejb-name>SimpleMessageEJB</ejb-name>
>>>>> <method-name>onMessage</method-name>
>>>>> <method-params>
>>>>> <method-param>javax.jms.Message</method-param>
>>>>> </method-params>
>>>>> </method>
>>>>> <trans-attribute>Required</trans-attribute>
>>>>> </container-transaction>
>>>>> </assembly-descriptor>
>>>>> </ejb-jar>
>>>>>
>>>>>
>>>>> **************************
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>
>>>>> <!DOCTYPE sun-ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Sun
>>>>> ONE Application Server 7.0 EJB 2.0//EN'
>>>>> 'http://www.sun.com/software/sunone/appserver/dtds/sun-ejb-jar_2_0-0.dtd'>
>>>>>
>>>>>
>>>>> <!-- Copyright 2002 Sun Microsystems, Inc. All rights reserved. -->
>>>>>
>>>>> <sun-ejb-jar>
>>>>>
>>>>> <enterprise-beans>
>>>>>
>>>>> <unique-id>1</unique-id>
>>>>>
>>>>> <ejb>
>>>>>
>>>>> <ejb-name>SimpleMessageEJB</ejb-name>
>>>>>
>>>>> <jndi-name>jms/SampleQueue</jndi-name>
>>>>>
>>>>> <resource-ref>
>>>>>
>>>>> <res-ref-name>jms/QCFactory</res-ref-name>
>>>>>
>>>>> <!--
>>>>>
>>>>> jndi-name below should be the name of connector-resource
>>>>> created in step 1 of configuration section above
>>>>>
>>>>> -->
>>>>>
>>>>> <jndi-name>jms/QCFactory</jndi-name>
>>>>>
>>>>> <default-resource-principal>
>>>>>
>>>>> <name>guest</name>
>>>>>
>>>>> <password>guest</password>
>>>>>
>>>>> </default-resource-principal>
>>>>>
>>>>> </resource-ref>
>>>>>
>>>>> <resource-env-ref>
>>>>>
>>>>> <resource-env-ref-name>jms/clientQueue</resource-env-ref-name>
>>>>>
>>>>> <!--
>>>>>
>>>>> jndi-name below should be the name of admin-object-resource
>>>>> created in step 2 of section above
>>>>>
>>>>> -->
>>>>>
>>>>> <jndi-name>jms/clientQueue</jndi-name>
>>>>>
>>>>> </resource-env-ref>
>>>>>
>>>>> <mdb-resource-adapter>
>>>>> <!-- The resource adapter mid element ties the generic ra
>>>>> for JMS with this particular MDB -->
>>>>>
>>>>> <resource-adapter-mid>genericra</resource-adapter-mid>
>>>>>
>>>>> <activation-config>
>>>>>
>>>>> <activation-config-property>
>>>>>
>>>>>
>>>>> <activation-config-property-name>DestinationType</activation-config-property-name>
>>>>>
>>>>>
>>>>>
>>>>> <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
>>>>>
>>>>>
>>>>> </activation-config-property>
>>>>>
>>>>> <activation-config-property>
>>>>>
>>>>>
>>>>> <activation-config-property-name>DestinationProperties</activation-config-property-name>
>>>>>
>>>>>
>>>>>
>>>>> <activation-config-property-value>imqDestinationName=Queue</activation-config-property-value>
>>>>>
>>>>>
>>>>> </activation-config-property>
>>>>>
>>>>> <activation-config-property>
>>>>>
>>>>>
>>>>> <activation-config-property-name>MaxPoolSize</activation-config-property-name>
>>>>>
>>>>>
>>>>>
>>>>> <activation-config-property-value>32</activation-config-property-value>
>>>>>
>>>>>
>>>>> </activation-config-property>
>>>>>
>>>>> <activation-config-property>
>>>>>
>>>>>
>>>>> <activation-config-property-name>RedeliveryAttempts</activation-config-property-name>
>>>>>
>>>>>
>>>>>
>>>>> <activation-config-property-value>0</activation-config-property-value>
>>>>>
>>>>> </activation-config-property>
>>>>>
>>>>> <activation-config-property>
>>>>>
>>>>>
>>>>> <activation-config-property-name>ReconnectAttempts</activation-config-property-name>
>>>>>
>>>>>
>>>>>
>>>>> <activation-config-property-value>4</activation-config-property-value>
>>>>>
>>>>> </activation-config-property>
>>>>>
>>>>> <activation-config-property>
>>>>>
>>>>>
>>>>> <activation-config-property-name>ReconnectInterval</activation-config-property-name>
>>>>>
>>>>>
>>>>>
>>>>> <activation-config-property-value>10</activation-config-property-value>
>>>>>
>>>>>
>>>>> </activation-config-property>
>>>>>
>>>>> <activation-config-property>
>>>>>
>>>>>
>>>>> <activation-config-property-name>RedeliveryInterval</activation-config-property-name>
>>>>>
>>>>>
>>>>>
>>>>> <activation-config-property-value>1</activation-config-property-value>
>>>>>
>>>>> </activation-config-property>
>>>>>
>>>>> <activation-config-property>
>>>>>
>>>>>
>>>>> <activation-config-property-name>SendBadMessagesToDMD</activation-config-property-name>
>>>>>
>>>>>
>>>>>
>>>>> <activation-config-property-value>true</activation-config-property-value>
>>>>>
>>>>>
>>>>> </activation-config-property>
>>>>>
>>>>> <activation-config-property>
>>>>>
>>>>>
>>>>> <activation-config-property-name>DeadMessageDestinationClassName</activation-config-property-name>
>>>>>
>>>>>
>>>>>
>>>>> <activation-config-property-value>com.sun.messaging.Queue</activation-config-property-value>
>>>>>
>>>>>
>>>>> </activation-config-property>
>>>>>
>>>>> <activation-config-property>
>>>>>
>>>>>
>>>>> <activation-config-property-name>DeadMessageDestinationProperties</activation-config-property-name>
>>>>>
>>>>>
>>>>>
>>>>> <activation-config-property-value>imqDestinationName=DMDtest</activation-config-property-value>
>>>>>
>>>>>
>>>>> </activation-config-property>
>>>>>
>>>>> </activation-config>
>>>>>
>>>>> </mdb-resource-adapter>
>>>>>
>>>>> </ejb>
>>>>>
>>>>> </enterprise-beans>
>>>>> </sun-ejb-jar>
>>>>>
>>>>> **********************
>>>>>
>>>>> The Verifier error I am getting is
>>>>>
>>>>> ***************
>>>>> ---------------------------
>>>>> STATIC VERIFICATION RESULTS
>>>>> ---------------------------
>>>>>
>>>>>
>>>>> ----------------------------------
>>>>> NUMBER OF FAILURES/WARNINGS/ERRORS
>>>>> ----------------------------------
>>>>> # of Failures : 0
>>>>> # of Warnings : 0
>>>>> # of Errors : 1
>>>>>
>>>>> -----------------------------------------------------
>>>>> ERRORS THAT OCCURED WHILE RUNNING STATIC VERIFICATION
>>>>> -----------------------------------------------------
>>>>>
>>>>> Error Name : Problem in parsing the xml file
>>>>> Error Description : org.xml.sax.SAXParseException: Element type
>>>>> "mdb-resource-adapter" must be declared.
>>>>> at
>>>>> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
>>>>>
>>>>> at
>>>>> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
>>>>>
>>>>> at
>>>>> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
>>>>>
>>>>> at
>>>>> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
>>>>>
>>>>> at
>>>>> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1960)
>>>>>
>>>>> at
>>>>> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:795)
>>>>>
>>>>> at
>>>>> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
>>>>>
>>>>> at
>>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
>>>>>
>>>>> at
>>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
>>>>>
>>>>> at
>>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
>>>>>
>>>>> at
>>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
>>>>>
>>>>> at
>>>>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
>>>>>
>>>>> at
>>>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
>>>>>
>>>>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
>>>>> at
>>>>> com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:256)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.deployment.archivist.Archivist.readRuntimeDeploymentDescriptor(Archivist.java:271)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.deployment.archivist.ApplicationArchivist.readRuntimeDeploymentDescriptor(ApplicationArchivist.java:336)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:689)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.tools.verifier.VerificationHandler.getApplicationDescriptor(VerificationHandler.java:159)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.tools.verifier.VerificationHandler.verifyArchive(VerificationHandler.java:62)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.tools.verifier.Verifier.verify(Verifier.java:75)
>>>>> at
>>>>> com.sun.enterprise.tools.verifier.Verifier.main(Verifier.java:53)
>>>>>
>>>>>
>>>>> ----------------------------------
>>>>> END OF STATIC VERIFICATION RESULTS
>>>>> ----------------------------------
>>>>>
>>>>>
>>>>> ***************
>>>>>
>>>>> Regards,
>>>>> Jaideep
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe_at_genericjmsra.dev.java.net
>>>>> For additional commands, e-mail: users-help_at_genericjmsra.dev.java.net
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_genericjmsra.dev.java.net
>>>> For additional commands, e-mail: users-help_at_genericjmsra.dev.java.net
>>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_genericjmsra.dev.java.net
>>> For additional commands, e-mail: users-help_at_genericjmsra.dev.java.net
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_genericjmsra.dev.java.net
> For additional commands, e-mail: users-help_at_genericjmsra.dev.java.net
>