[jbosstools-issues] [JBoss JIRA] (JBIDE-20830) "src-resolve: Cannot resolve the name 'javaee:jboss-ejb-beanType'

The Alchemist (JIRA) issues at jboss.org
Mon Sep 28 10:31:00 EDT 2015


     [ https://issues.jboss.org/browse/JBIDE-20830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

The Alchemist updated JBIDE-20830:
----------------------------------
    Description: 
If you have the following {{ejb-jar.xml}}, which I got from the Jboss Wiki:

{code:xml}
<?xml version="1.0"?>    
<jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
               xmlns="http://java.sun.com/xml/ns/javaee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:s="urn:security:1.1"
               xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
               version="3.1"
               impl-version="2.0">
    <enterprise-beans>
        <message-driven>
            <ejb-name>ReplyingMDB</ejb-name>
            <ejb-class>org.jboss.as.test.integration.ejb.mdb.messagedestination.ReplyingMDB</ejb-class>
            <activation-config>
                <activation-config-property>
                    <activation-config-property-name>destination</activation-config-property-name>
                    <activation-config-property-value>java:jboss/mdbtest/messageDestinationQueue
                    </activation-config-property-value>
                </activation-config-property>
            </activation-config>
        </message-driven>
    </enterprise-beans>
    <assembly-descriptor>
        <s:security>
            <ejb-name>DDMyDomainSFSB</ejb-name>
            <s:security-domain>myDomain</s:security-domain>
            <s:run-as-principal>myPrincipal</s:run-as-principal>
        </s:security>
    </assembly-descriptor>
</jboss:ejb-jar>
{code}

You'll get a few warnings:
!screenshot.png!

In the console:

{noformat}
Description	Resource	Path	Location	Type
Referenced file contains errors (jar:file:/Users/me/Applications/sts-bundle/STS.app/Contents/Eclipse/plugins/org.jboss.tools.as.catalog_3.1.0.Beta2-v20150723-0026-B29.jar!/schema/xsd/jboss-ejb3-2_0.xsd).  For more information, right click on the message in the Problems View and select "Show Details..."	jboss-ejb3.xml	/my-project/src/main/resources/META-INF	line 1	XML Problem

{noformat}

  was:
If you have the following {{ejb-jar.xml}}, which I got from the Jboss Wiki:

{code:xml}
<?xml version="1.0"?>    
<jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
               xmlns="http://java.sun.com/xml/ns/javaee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:s="urn:security:1.1"
               xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
               version="3.1"
               impl-version="2.0">
    <enterprise-beans>
        <message-driven>
            <ejb-name>ReplyingMDB</ejb-name>
            <ejb-class>org.jboss.as.test.integration.ejb.mdb.messagedestination.ReplyingMDB</ejb-class>
            <activation-config>
                <activation-config-property>
                    <activation-config-property-name>destination</activation-config-property-name>
                    <activation-config-property-value>java:jboss/mdbtest/messageDestinationQueue
                    </activation-config-property-value>
                </activation-config-property>
            </activation-config>
        </message-driven>
    </enterprise-beans>
    <assembly-descriptor>
        <s:security>
            <ejb-name>DDMyDomainSFSB</ejb-name>
            <s:security-domain>myDomain</s:security-domain>
            <s:run-as-principal>myPrincipal</s:run-as-principal>
        </s:security>
    </assembly-descriptor>
</jboss:ejb-jar>
{code}

You'll get a few warnings:
!screenshot.png!



> "src-resolve: Cannot resolve the name 'javaee:jboss-ejb-beanType'
> -----------------------------------------------------------------
>
>                 Key: JBIDE-20830
>                 URL: https://issues.jboss.org/browse/JBIDE-20830
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: ejb3
>            Reporter: The Alchemist
>            Priority: Minor
>         Attachments: screenshot.png
>
>
> If you have the following {{ejb-jar.xml}}, which I got from the Jboss Wiki:
> {code:xml}
> <?xml version="1.0"?>    
> <jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
>                xmlns="http://java.sun.com/xml/ns/javaee"
>                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>                xmlns:s="urn:security:1.1"
>                xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
>                version="3.1"
>                impl-version="2.0">
>     <enterprise-beans>
>         <message-driven>
>             <ejb-name>ReplyingMDB</ejb-name>
>             <ejb-class>org.jboss.as.test.integration.ejb.mdb.messagedestination.ReplyingMDB</ejb-class>
>             <activation-config>
>                 <activation-config-property>
>                     <activation-config-property-name>destination</activation-config-property-name>
>                     <activation-config-property-value>java:jboss/mdbtest/messageDestinationQueue
>                     </activation-config-property-value>
>                 </activation-config-property>
>             </activation-config>
>         </message-driven>
>     </enterprise-beans>
>     <assembly-descriptor>
>         <s:security>
>             <ejb-name>DDMyDomainSFSB</ejb-name>
>             <s:security-domain>myDomain</s:security-domain>
>             <s:run-as-principal>myPrincipal</s:run-as-principal>
>         </s:security>
>     </assembly-descriptor>
> </jboss:ejb-jar>
> {code}
> You'll get a few warnings:
> !screenshot.png!
> In the console:
> {noformat}
> Description	Resource	Path	Location	Type
> Referenced file contains errors (jar:file:/Users/me/Applications/sts-bundle/STS.app/Contents/Eclipse/plugins/org.jboss.tools.as.catalog_3.1.0.Beta2-v20150723-0026-B29.jar!/schema/xsd/jboss-ejb3-2_0.xsd).  For more information, right click on the message in the Problems View and select "Show Details..."	jboss-ejb3.xml	/my-project/src/main/resources/META-INF	line 1	XML Problem
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list