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

Rob Stryker (JIRA) issues at jboss.org
Mon Feb 15 04:05:00 EST 2016


    [ https://issues.jboss.org/browse/JBIDE-20830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162778#comment-13162778 ] 

Rob Stryker commented on JBIDE-20830:
-------------------------------------

The following diff makes this xml validate:

{code}
[rob at rawbdor aaa]$ diff two.txt one.txt 
3,8c3,8
<                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">
---
> 	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xmlns:s="urn:security"
> 	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://www.jboss.org/j2ee/schema/jboss-ejb3-spec-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">

{code}

I'm not sure what needs to be updated to fix this... I assume the wiki page?  

For completion, this is a complete version of the successfully validating xml:

{code}
<?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"
	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://www.jboss.org/j2ee/schema/jboss-ejb3-spec-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}

> "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: Sub-task
>          Components: upstream
>            Reporter: The Alchemist
>            Assignee: Rob Stryker
>            Priority: Minor
>             Fix For: 4.4.0.Alpha1
>
>         Attachments: screenshot.png
>
>
> h2. Offending ejb-jar.xml
> If you have the following {{ejb-jar.xml}}, which I got from [this Wildfly Wiki page|https://docs.jboss.org/author/display/WFLY8/jboss-ejb3.xml+Reference]:
> {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}
> h2. Errors/Warnings
> 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}
> h2. Related issues
> * https://bugzilla.redhat.com/show_bug.cgi?id=1193543



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


More information about the jbosstools-issues mailing list