[
https://issues.jboss.org/browse/JBAS-8834?page=com.atlassian.jira.plugin....
]
Daniel Bevenius commented on JBAS-8834:
---------------------------------------
Server log output when running: ./build.sh one-test
-Dtest=org.jboss.test.web.test.EncAnnotationsUnitTestCase
{noformat}
10:39:27,921 INFO [org.jboss.deployment.MainDeployer] deploy,
url=file:/Users/danbev/work/jboss/as/as6/trunk/testsuite/output/lib/simple-mock.beans
10:39:27,942 WARN
[org.jboss.aop.microcontainer.beans.metadata.ConfigureLifecycleBeanMetaDataFactory] The
use of manager has been deprecated and is unnecessary
10:39:27,979 ERROR [STDERR] MockDataSource
10:39:27,995 INFO [org.jboss.deployment.MainDeployer] deploy,
url=file:/Users/danbev/work/jboss/as/as6/trunk/testsuite/output/lib/simple-annonly.war
10:39:28,126 WARN [org.jboss.deployment.MappedReferenceMetaDataResolverDeployer]
Unresolved references exist in
JBossWebMetaData:[#web-app:AnnotatedEJBReferenceMetaData{name=ejb/bean3,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=jbosstest/ejbs/UnsecuredEJB,resolved-jndi-name=null,beanInterface=interface
org.jboss.test.web.mock.StatelessSessionHome},
#web-app:AnnotatedEJBReferenceMetaData{name=ejb/CtsBmp,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=ejbcts/BMPBean,resolved-jndi-name=null,beanInterface=interface
org.jboss.test.web.mock.EntityHome},
#web-app:AnnotatedEJBReferenceMetaData{name=ejb/local/bean3,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=jbosstest/ejbs/local/ENCBean1,resolved-jndi-name=null,beanInterface=interface
org.jboss.test.web.mock.StatelessSessionLocalHome}]
10:39:28,777 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy,
ctxPath=/simple-annonly
10:39:28,985 INFO [org.jboss.test.web.servlets.StandaloneENCAnnotationsServlet]
InitialContext.env:
10:39:28,986 INFO [org.jboss.test.web.servlets.StandaloneENCAnnotationsServlet] Key:
java.naming.factory.initial, value: org.jnp.interfaces.NamingContextFactory
10:39:28,986 INFO [org.jboss.test.web.servlets.StandaloneENCAnnotationsServlet] Key:
java.naming.factory.url.pkgs, value:
org.jboss.naming:org.jnp.interfaces:org.jboss.naming:org.jnp.interfaces
10:39:28,986 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/simple-annonly].[ENCServlet]]
Servlet.service() for servlet ENCServlet threw exception:
javax.naming.NameNotFoundException: ejb not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771) [:5.0.5.Final]
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779) [:5.0.5.Final]
at org.jnp.server.NamingServer.getObject(NamingServer.java:785) [:5.0.5.Final]
at org.jnp.server.NamingServer.lookup(NamingServer.java:396) [:5.0.5.Final]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728) [:5.0.5.Final]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688) [:5.0.5.Final]
at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_20]
at org.jboss.test.web.servlets.ENCTester.testEjbRefs(ENCTester.java:120) [:]
at org.jboss.test.web.servlets.ENCTester.testENC(ENCTester.java:73) [:]
at
org.jboss.test.web.servlets.StandaloneENCAnnotationsServlet.processRequest(StandaloneENCAnnotationsServlet.java:102)
[:]
at
org.jboss.test.web.servlets.StandaloneENCAnnotationsServlet.doGet(StandaloneENCAnnotationsServlet.java:123)
[:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
[:]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
[:]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:]
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)
[:6.1.0-SNAPSHOT]
at
org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
[:1.1.0.Final]
at
org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
[:1.1.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
[:6.1.0-SNAPSHOT]
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
[:6.1.0-SNAPSHOT]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
[:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[:]
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
[:6.1.0-SNAPSHOT]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:]
at
org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)
[:6.1.0-SNAPSHOT]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
[:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)
[:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:]
at java.lang.Thread.run(Thread.java:637) [:1.6.0_20]
10:39:29,008 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] undeploy,
ctxPath=/simple-annonly
{noformat}
Looking at jboss-beans.xml in simple-mock.beans:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: encbinding-jboss-beans.xml 109322 2010-11-14 14:18:12Z jaikiran $ -->
<deployment xmlns="urn:jboss:bean-deployer:2.0">
<!-- Define a Jndi binding aspect/annotation that exposes beans via jndi
when they are registered with the kernel.
-->
<aop:lifecycle-configure xmlns:aop="urn:jboss:aop-beans:1.0"
name="DependencyAdvice"
class="org.jboss.aop.microcontainer.aspects.jndi.JndiLifecycleCallback"
classes="(a)org.jboss.aop.microcontainer.aspects.jndi.JndiBinding"
manager-bean="AspectManager"
manager-property="aspectManager">
</aop:lifecycle-configure>
<!-- The jndi bindings -->
<bean name="ENC.MockDS"
class="org.jboss.test.web.mock.MockDataSource">
<annotation>@org.jboss.aop.microcontainer.aspects.jndi.JndiBinding(name="java:/MockDS")</annotation>
</bean>
<bean name="ENC/ejb/bean3"
class="org.jboss.test.web.mock.StatelessHomeBean">
<annotation>@org.jboss.aop.microcontainer.aspects.jndi.JndiBinding(name="jbosstest/ejbs/UnsecuredEJB")</annotation>
</bean>
<bean name="ENC/ejb/local/bean3"
class="org.jboss.test.web.mock.StatelessLocalHomeBean">
<annotation>@org.jboss.aop.microcontainer.aspects.jndi.JndiBinding(name="jbosstest/ejbs/local/ENCBean1")</annotation>
</bean>
<bean name="ENC/ejb/CtsBmp"
class="org.jboss.test.web.mock.EntityHomeBean">
<annotation>(a)org.jboss.aop.microcontainer.aspects.jndi.JndiBinding(name="ejbcts/BMPBean")</annotation>
</bean>
<bean name="ENC/mdr/ConsumesProducesJNDIName"
class="org.jboss.test.web.mock.QueueBean">
<annotation>(a)org.jboss.aop.microcontainer.aspects.jndi.JndiBinding(name="MockQueueA")</annotation>
</bean>
<bean name="ENC/TestQueue"
class="org.jboss.test.web.mock.QueueBean">
<annotation>(a)org.jboss.aop.microcontainer.aspects.jndi.JndiBinding(name="MockQueueB")</annotation>
</bean>
<bean name="ENC/TestTopic"
class="org.jboss.test.web.mock.TopicBean">
<annotation>(a)org.jboss.aop.microcontainer.aspects.jndi.JndiBinding(name="MockTopicA")</annotation>
</bean>
</deployment>
{code}
The JNDI binding name for _ENC/ejb/bean3_ above is _jbosstest/ejbs/UnsecuredEJB_.
Now the test is failing in row 120 of
src/main/org/jboss/test/web/servlets/ENCTester.java:
{code:java}
//do lookup on bean specified without ejb-link
Object ejb = initCtx.lookup("ejb/bean3");
{code}
Using the JNDI binding name will make the test pass but I'm not sure that this is what
was the original intent of the test.
org.jboss.test.web.test.Enc*UnitTestCase
----------------------------------------
Key: JBAS-8834
URL:
https://issues.jboss.org/browse/JBAS-8834
Project: Legacy JBoss Application Server 6
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: Test Suite
Reporter: Shelly McGowan
Assignee: Shelly McGowan
Fix For: 6.1.0
org.jboss.test.web.test.EncXmlUnitTestCase.testAltRequestInfoServlet
org.jboss.test.web.test.EncAnnotationsUnitTestCase.testAltRequestInfoServlet
java.io.IOException: Expected reply code:200, actual=500
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira