[jboss-jira] [JBoss JIRA] (JBJCA-699) Wrong generated code - " AResourceAdapter must implement the javax.resource.spi.ResourceAdapter interface"

Petr Juza (Created) (JIRA) jira-events at lists.jboss.org
Fri Nov 11 01:23:45 EST 2011


Wrong generated code - " AResourceAdapter must implement the javax.resource.spi.ResourceAdapter interface"
----------------------------------------------------------------------------------------------------------

                 Key: JBJCA-699
                 URL: https://issues.jboss.org/browse/JBJCA-699
             Project: IronJacamar
          Issue Type: Bug
          Components: Code Generator
    Affects Versions: 1.1.0.Alpha3
         Environment: MacOS 10.6.8
            Reporter: Petr Juza
            Assignee: Jesper Pedersen
            Priority: Minor


Wrong generated RA classes with the following configuration:

marti-pc:codegenerator pjuza$ sh ./codegenerator.sh
Profile version (1.6/1.5/1.0) [1.6]: 1.5
Type (O/Outbound/I/Inbound/B/Bidirectional) [O]: 
Package name: com.cleverlance.smartclient.ra.httpclient
Transaction support (N/NoTransaction/L/LocalTransaction/X/XATransaction) [N]: 
Support reauthentication (Y/Yes/N/No) [N]: 
Include a ResourceAdapter (Y/Yes/N/No) [Y]: 
Resource adapter class name [AcmeResourceAdapter]: HttpClientResourceAdapterImpl
Resource adapter config properties [enter to quit]: 
    Name: 
Managed connection factory class name [AcmeManagedConnectionFactory]: HttpClientResourceAdapterImpl
Managed connection factory config properties [enter to quit]: 
    Name: 
Use ResourceAdapterAssociation (Y/Yes/N/No) [Y]: 
Managed connection class name [AcmeManagedConnection]: HttpClientManagedConnectionImpl
Use CCI (Y/Yes/N/No) [N]: 
Connection factory interface class name [AcmeConnectionFactory]: HttpClientRaConnectionFactory
Connection factory implementation class name [AcmeConnectionFactoryImpl]: HttpClientRaConnectionFactoryImpl
Connection interface class name [AcmeConnection]: ManagedClientConnection
Connection implementation class name [AcmeConnectionImpl]: ManagedClientConnectionImpl
Add methods to connection interface (Y/Yes/N/No) [N]: 
Additional managed connection factory (Y/Yes/N/No) [N]: 
Include an admin object (Y/Yes/N/No) [N]: 
Generate a MBean class (Y/Yes/N/No) [Y]: 
Build environment [A/Ant/I/Ant+Ivy/M/Maven] [A]: M
Code generated 

When you run test you get this error:
org.jboss.arquillian.container.spi.client.container.DeploymentException: Could not deploy the application: IJ020056: Deployment failed: file:/C:/Users/PETRJU~1/AppData/Local/Temp/ConnectorTestCase.rar
	at org.jboss.jca.embedded.arquillian.EmbeddedJCAContainer.deploy(EmbeddedJCAContainer.java:150)
	at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:148)
	at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:115)
...
Caused by: org.jboss.jca.validator.ValidatorException: Severity: ERROR
Section: 5.3.1
Description: A ResourceAdapter must implement the javax.resource.spi.ResourceAdapter interface.
Code: com.cleverlance.smartclient.ra.httpclient.HttpClientResourceAdapterImpl
	at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAn



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list