[jboss-jira] [JBoss JIRA] Updated: (JBAS-5006) org.jboss.test.naming

Shelly McGowan (JIRA) jira-events at lists.jboss.org
Thu Nov 29 15:13:46 EST 2007


     [ http://jira.jboss.com/jira/browse/JBAS-5006?page=all ]

Shelly McGowan updated JBAS-5006:
---------------------------------

    Fix Version/s:  JBossAS-5.0.0.Beta3
      Description: 
The root cause of failures - further debugging in progress.
==============================================
org.jboss.test.naming.test.InternalNamingClassReplacementUnitTestCase:
org.jboss.test.naming.test.EjbLinkUnitTestCase:

.ear,  naming.ear, fails to deploy due to unresolved ejb-links.  The archive is packaged:

jar tvf ../naming.ear
META-INF/
META-INF/MANIFEST.MF
namingb.jar
subdir/
subdir/naminga.jar
META-INF/application.xml

where application.xml defines ejb modules:
<application>
        <display-name>naming ear test</display-name>

        <module>
                <ejb>subdir/naminga.jar</ejb>
        </module>

        <module>
                <ejb>namingb.jar</ejb>
        </module>
</application>

META-INF/ejb-jar.xml for SessionB bean in module namingb.jar
references SessionA in ejb-ref element:
   <ejb-ref>
           <ejb-ref-type>Session</ejb-ref-type>
            <home>org.jboss.test.naming.interfaces.TestEjbLinkHome</home>
            <remote>org.jboss.test.naming.interfaces.TestEjbLink</remote>
            <ejb-link>subdir/naminga.jar#SessionA</ejb-link>
         </ejb-ref>


15:55:18,720 INFO  [MainDeployer] deploy,
url=file:/NotBackedUp/smcgowan/TRUNK/trunk/testsuite/output/lib/naming.ear
15:55:18,831 WARN  [ReferenceMetaDataResolverDeployer] Unresolved references
exist in JBossMetaData: [ejb/NoLinkLocalSessionA/ejb-local-ref/null]
15:55:18,868 INFO  [EjbModule] Deploying SessionB
15:55:18,925 WARN  [EjbUtil50] Got Exception when looking for DeploymentUnit:
java.lang.NullPointerException
15:55:18,927 ERROR [AbstractKernelController] Error installing to Start:
name=jboss.j2ee:jndiName=naming/SessionB,service=EJB state=Create mode=Manual
requiredState=Installed
org.jboss.deployment.DeploymentException: Failed to resolve ejb-link:
subdir/naminga.jar#SessionA make by ejb-name: ejb/RelativeSessionA
        at org.jboss.ejb.Container.setupEnvironment(Container.java:1175)
        at org.jboss.ejb.Container.startService(Container.java:885)
        at
org.jboss.ejb.SessionContainer.startService(SessionContainer.java:396)


=====================================================
Testsuite: org.jboss.test.naming.test.SimpleUnitTestCase
Tests run: 10, Failures: 0, Errors: 1, Time elapsed: 5.624 sec

Testcase: testNameChanges took 0.003 sec
        Caused an ERROR
Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
        at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
        at javax.naming.InitialContext.getNameParser(InitialContext.java:439)
        at org.jboss.test.naming.test.SimpleUnitTestCase.testNameChanges(SimpleUnitTestCase.java:117)


public void testNameChanges() throws Exception
   {
      getLog().debug("+++ testNameChanges");
      InitialContext ctx = getInitialContext();
117:      Name name = ctx.getNameParser("").parse("jnp://" + getServerHost() + "/jmx");

      Name copy = (Name) name.clone();
      Object obj = ctx.lookup(name);
      getLog().debug("lookup("+name+") = "+obj);
      assertTrue("name.equals(copy), name="+name, name.equals(copy));
   }




=======================================
org.jboss.test.naming.test.NamingStressTestCase and
org.jboss.test.naming.test.ENCUnitTestCase

20:17:09,305 ERROR [TestENCBean] failed
javax.naming.NamingException: Could not dereference object [Root exception is
javax.naming.NameNotFoundException: SomeWebSite not bound]
        at
org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1254)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:760)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
        at org.jboss.test.naming.ejb.TestENCBean.testURL(TestENCBean.java:213)
        at
org.jboss.test.naming.ejb.TestENCBean.accessENC(TestENCBean.java:100)
        at
org.jboss.test.naming.ejb.TestENCBean.stressENC(TestENCBean.java:77)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

20:17:09,305 ERROR [TestENCBean] failed
javax.naming.NamingException: Could not dereference object [Root exception is
javax.naming.NameNotFoundException: SomeWebSite not bound]
        at
org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1254)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:760)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
        at org.jboss.test.naming.ejb.TestENCBean.testURL(TestENCBean.java:213)
        at
org.jboss.test.naming.ejb.TestENCBean.accessENC(TestENCBean.java:100)

   <resource-ref>
            <description>SomeWebSite HomePage</description>
            <res-ref-name>url/IndirectURL</res-ref-name>
            <res-type>java.net.URL</res-type>
            <res-auth>Container</res-auth>
         </resource-ref>


=======================================
org.jboss.test.naming.test.ExternalContextUnitTestCase:
naming.jar:

tcase: testExternalContexts took 0.052 sec
        Caused an ERROR
no protocol:
/NotBackedUp/smcgowan/TRUNK/trunk/testsuite/output/lib/extcontext.sar
java.net.MalformedURLException: no protocol:
/NotBackedUp/smcgowan/TRUNK/trunk/testsuite/output/lib/extcontext.sar
        at java.net.URL.<init>(URL.java:567)
        at java.net.URL.<init>(URL.java:464)
        at java.net.URL.<init>(URL.java:413)
        at
org.jboss.test.JBossTestServices.getDeployURL(JBossTestServices.java:211)
        at
org.jboss.test.JBossTestServices.redeploy(JBossTestServices.java:300)
        at org.jboss.test.JBossTestCase.redeploy(JBossTestCase.java:264)
        at
org.jboss.test.naming.test.ExternalContextUnitTestCase.setUp(ExternalContextUnitTestCase.java:106)

==============================================


> org.jboss.test.naming
> ---------------------
>
>                 Key: JBAS-5006
>                 URL: http://jira.jboss.com/jira/browse/JBAS-5006
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>            Reporter: Shelly McGowan
>         Assigned To: Shelly McGowan
>             Fix For:  JBossAS-5.0.0.Beta3
>
>
> The root cause of failures - further debugging in progress.
> ==============================================
> org.jboss.test.naming.test.InternalNamingClassReplacementUnitTestCase:
> org.jboss.test.naming.test.EjbLinkUnitTestCase:
> .ear,  naming.ear, fails to deploy due to unresolved ejb-links.  The archive is packaged:
> jar tvf ../naming.ear
> META-INF/
> META-INF/MANIFEST.MF
> namingb.jar
> subdir/
> subdir/naminga.jar
> META-INF/application.xml
> where application.xml defines ejb modules:
> <application>
>         <display-name>naming ear test</display-name>
>         <module>
>                 <ejb>subdir/naminga.jar</ejb>
>         </module>
>         <module>
>                 <ejb>namingb.jar</ejb>
>         </module>
> </application>
> META-INF/ejb-jar.xml for SessionB bean in module namingb.jar
> references SessionA in ejb-ref element:
>    <ejb-ref>
>            <ejb-ref-type>Session</ejb-ref-type>
>             <home>org.jboss.test.naming.interfaces.TestEjbLinkHome</home>
>             <remote>org.jboss.test.naming.interfaces.TestEjbLink</remote>
>             <ejb-link>subdir/naminga.jar#SessionA</ejb-link>
>          </ejb-ref>
> 15:55:18,720 INFO  [MainDeployer] deploy,
> url=file:/NotBackedUp/smcgowan/TRUNK/trunk/testsuite/output/lib/naming.ear
> 15:55:18,831 WARN  [ReferenceMetaDataResolverDeployer] Unresolved references
> exist in JBossMetaData: [ejb/NoLinkLocalSessionA/ejb-local-ref/null]
> 15:55:18,868 INFO  [EjbModule] Deploying SessionB
> 15:55:18,925 WARN  [EjbUtil50] Got Exception when looking for DeploymentUnit:
> java.lang.NullPointerException
> 15:55:18,927 ERROR [AbstractKernelController] Error installing to Start:
> name=jboss.j2ee:jndiName=naming/SessionB,service=EJB state=Create mode=Manual
> requiredState=Installed
> org.jboss.deployment.DeploymentException: Failed to resolve ejb-link:
> subdir/naminga.jar#SessionA make by ejb-name: ejb/RelativeSessionA
>         at org.jboss.ejb.Container.setupEnvironment(Container.java:1175)
>         at org.jboss.ejb.Container.startService(Container.java:885)
>         at
> org.jboss.ejb.SessionContainer.startService(SessionContainer.java:396)
> =====================================================
> Testsuite: org.jboss.test.naming.test.SimpleUnitTestCase
> Tests run: 10, Failures: 0, Errors: 1, Time elapsed: 5.624 sec
> Testcase: testNameChanges took 0.003 sec
>         Caused an ERROR
> Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
> javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
>         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
>         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
>         at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
>         at javax.naming.InitialContext.getNameParser(InitialContext.java:439)
>         at org.jboss.test.naming.test.SimpleUnitTestCase.testNameChanges(SimpleUnitTestCase.java:117)
> public void testNameChanges() throws Exception
>    {
>       getLog().debug("+++ testNameChanges");
>       InitialContext ctx = getInitialContext();
> 117:      Name name = ctx.getNameParser("").parse("jnp://" + getServerHost() + "/jmx");
>       Name copy = (Name) name.clone();
>       Object obj = ctx.lookup(name);
>       getLog().debug("lookup("+name+") = "+obj);
>       assertTrue("name.equals(copy), name="+name, name.equals(copy));
>    }
> =======================================
> org.jboss.test.naming.test.NamingStressTestCase and
> org.jboss.test.naming.test.ENCUnitTestCase
> 20:17:09,305 ERROR [TestENCBean] failed
> javax.naming.NamingException: Could not dereference object [Root exception is
> javax.naming.NameNotFoundException: SomeWebSite not bound]
>         at
> org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1254)
>         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:760)
>         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
>         at org.jboss.test.naming.ejb.TestENCBean.testURL(TestENCBean.java:213)
>         at
> org.jboss.test.naming.ejb.TestENCBean.accessENC(TestENCBean.java:100)
>         at
> org.jboss.test.naming.ejb.TestENCBean.stressENC(TestENCBean.java:77)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 20:17:09,305 ERROR [TestENCBean] failed
> javax.naming.NamingException: Could not dereference object [Root exception is
> javax.naming.NameNotFoundException: SomeWebSite not bound]
>         at
> org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1254)
>         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:760)
>         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
>         at org.jboss.test.naming.ejb.TestENCBean.testURL(TestENCBean.java:213)
>         at
> org.jboss.test.naming.ejb.TestENCBean.accessENC(TestENCBean.java:100)
>    <resource-ref>
>             <description>SomeWebSite HomePage</description>
>             <res-ref-name>url/IndirectURL</res-ref-name>
>             <res-type>java.net.URL</res-type>
>             <res-auth>Container</res-auth>
>          </resource-ref>
> =======================================
> org.jboss.test.naming.test.ExternalContextUnitTestCase:
> naming.jar:
> tcase: testExternalContexts took 0.052 sec
>         Caused an ERROR
> no protocol:
> /NotBackedUp/smcgowan/TRUNK/trunk/testsuite/output/lib/extcontext.sar
> java.net.MalformedURLException: no protocol:
> /NotBackedUp/smcgowan/TRUNK/trunk/testsuite/output/lib/extcontext.sar
>         at java.net.URL.<init>(URL.java:567)
>         at java.net.URL.<init>(URL.java:464)
>         at java.net.URL.<init>(URL.java:413)
>         at
> org.jboss.test.JBossTestServices.getDeployURL(JBossTestServices.java:211)
>         at
> org.jboss.test.JBossTestServices.redeploy(JBossTestServices.java:300)
>         at org.jboss.test.JBossTestCase.redeploy(JBossTestCase.java:264)
>         at
> org.jboss.test.naming.test.ExternalContextUnitTestCase.setUp(ExternalContextUnitTestCase.java:106)
> ==============================================

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list