<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Jaroslaw, look for any test timeouts. As
<st1:City w:st="on"><st1:place w:st="on">Adrian</st1:place></st1:City>
mentioned, it is some test failing to teardown and tests timing out are likely
suspects. Debug them first. If you see no test timeouts, then the
problem becomes harder. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In that case, would it be realistic for JBossTestCase
to assert that the number of deployments remain constant between each deploy
and undeploy()? Could be a simple mechanism to flag bad tests.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
jboss-development-bounces@lists.jboss.org [mailto:jboss-development-bounces@lists.jboss.org]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Jaroslaw Kijanowski<br>
<b><span style='font-weight:bold'>Sent:</span></b> Saturday, August 12, 2006
10:58 AM<br>
<b><span style='font-weight:bold'>To:</span></b>
jboss-development@lists.jboss.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [JBoss-dev]
InstanceAlreadyExistsException afterundeploy andrepeated deploy in <st1:place
w:st="on"><st1:City w:st="on">JBoss</st1:City> <st1:State w:st="on">AS</st1:State></st1:place>
5.0.0 Beta</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>Hello,<br>
I've got the following issue with <st1:place w:st="on"><st1:City w:st="on">JBoss</st1:City>
<st1:State w:st="on">AS</st1:State></st1:place> 5.0.0 Beta:<br>
After I run a test (in "one-test" mode, so no previous test caused an
time out etc.), I see on the server console that the corresponding jar is
undeploying and the home interfaces are unbinding. But when I run the test
again, I get InstanceAlreadyExistsException:</span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'><br>
11:43:12,406 INFO [Server] JBoss (MX MicroKernel) [5.0.0.Beta (build:
CVSTag=HE<br>
AD date=200608071122)] Started in 1m:3s:563ms<br>
11:43:53,046 INFO [EjbModule] Deploying Customer<br>
11:43:53,234 INFO [EjbModule] Deploying Account<br>
11:43:53,250 INFO [EjbModule] Deploying Teller<br>
11:43:53,281 INFO [EjbModule] Deploying Bank<br>
11:43:54,687 INFO [ProxyFactory] Bound EJB Home 'Customer' to jndi
'bank/Custom<br>
er'<br>
11:43:54,703 INFO [ProxyFactory] Bound EJB Home 'Account' to jndi
'bank/Account<br>
'<br>
11:43:54,718 INFO [ProxyFactory] Bound EJB Home 'Teller' to jndi
'bank/Teller'<br>
11:43:54,734 INFO [ProxyFactory] Bound EJB Home 'Bank' to jndi
'bank/Bank'<br>
11:43:54,734 INFO [EJBDeployer] Deployed:
file:/D:/jboss-svn4/jboss-head/testsu<br>
ite/output/lib/bank.jar<br>
11:44:02,093 INFO [EJBDeployer] Undeploying:
file:/D:/jboss-svn4/jboss-head/tes<br>
tsuite/output/lib/bank.jar<br>
11:44:02,125 INFO [ProxyFactory] Unbind EJB Home 'Bank' from jndi
'bank/Bank'<br>
11:44:02,125 INFO [EjbModule] Undeployed Bank<br>
11:44:02,125 INFO [ProxyFactory] Unbind EJB Home 'Teller' from jndi
'bank/Telle<br>
r'<br>
11:44:02,125 INFO [EjbModule] Undeployed Teller<br>
11:44:02,125 INFO [ProxyFactory] Unbind EJB Home 'Account' from jndi
'bank/Acco<br>
unt'<br>
11:44:02,140 INFO [EjbModule] Undeployed Account<br>
11:44:02,140 INFO [ProxyFactory] Unbind EJB Home 'Customer' from jndi
'bank/Cus<br>
tomer'<br>
11:44:02,140 INFO [EjbModule] Undeployed Customer<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>*************<br>
An now I run the test again:<br>
*************<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>11:44:17,390 INFO [EjbModule]
Deploying Customer<br>
11:44:17,421 INFO [EjbModule] Deploying Account<br>
11:44:17,421 INFO [EjbModule] Deploying Teller<br>
11:44:17,437 INFO [EjbModule] Deploying Bank<br>
11:44:17,453 INFO [EntityContainer] Registration is not done -> stop<br>
11:44:17,453 ERROR [AbstractKernelController] Error installing to Create:
name=j<br>
boss.j2ee:module=bank.jar,service=EjbModule,uid=29596937 state=Configured
mode=M<br>
anual requiredState=Create<br>
javax.management.InstanceAlreadyExistsException:
jboss.j2ee:jndiName=bank/Custom<br>
er,service=EJB already registered.<br>
at
org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistr<br>
y.java:765)<br>
at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMB<br>
eanRegistry.java:234)<br>
.<br>
.<br>
.<br>
11:44:17,531 INFO [EJBDeployer] Deployed:
file:/D:/jboss-svn4/jboss-head/testsu<br>
ite/output/lib/bank.jar<br>
11:44:17,968 INFO [EJBDeployer] Undeploying:
file:/D:/jboss-svn4/jboss-head/tes<br>
tsuite/output/lib/bank.jar<br>
******************<br>
I saw similar issues for previous versions of the AS (all resolved) but I think
this is the first for the Beta 5.0 version.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
</div>
</body>
</html>