You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Jozef Hartinger (Created) (JIRA)" <ji...@apache.org> on 2011/10/24 16:33:33 UTC
[jira] [Created] (TOMEE-42) TCCL.getResources() returns duplicated
when deploying with OpenEJB deployer
TCCL.getResources() returns duplicated when deploying with OpenEJB deployer
---------------------------------------------------------------------------
Key: TOMEE-42
URL: https://issues.apache.org/jira/browse/TOMEE-42
Project: TomEE
Issue Type: Bug
Environment: 1.0.0-beta-2-20111019.211229-11-plus
Reporter: Jozef Hartinger
Fix For: 1.0.0-beta-2
Attachments: test.war
Having a testing listener:
@WebListener
public class Listener implements ServletContextListener {
@Override
public void contextInitialized(ServletContextEvent sce) {
int j = 0;
try {
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
Enumeration<URL> urls = classLoader.getResources("foo.bar");
while (urls.hasMoreElements()) {
urls.nextElement();
j++;
}
System.out.println("foo.bar count: " + j);
} catch (IOException e) {
e.printStackTrace();
}
}
@Override
public void contextDestroyed(ServletContextEvent sce) {
}
}
it returns the expected count (1) when deployed using the manager app or filesystem deployment. However, it returns 2 when deployed using OpenEJB deployer service (remote arquillian container).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TOMEE-42) TCCL.getResources() returns duplicated
when deploying with OpenEJB deployer
Posted by "Jozef Hartinger (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TOMEE-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jozef Hartinger updated TOMEE-42:
---------------------------------
Attachment: test.war
> TCCL.getResources() returns duplicated when deploying with OpenEJB deployer
> ---------------------------------------------------------------------------
>
> Key: TOMEE-42
> URL: https://issues.apache.org/jira/browse/TOMEE-42
> Project: TomEE
> Issue Type: Bug
> Environment: 1.0.0-beta-2-20111019.211229-11-plus
> Reporter: Jozef Hartinger
> Fix For: 1.0.0-beta-2
>
> Attachments: test.war
>
>
> Having a testing listener:
> @WebListener
> public class Listener implements ServletContextListener {
> @Override
> public void contextInitialized(ServletContextEvent sce) {
> int j = 0;
> try {
> ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
> Enumeration<URL> urls = classLoader.getResources("foo.bar");
> while (urls.hasMoreElements()) {
> urls.nextElement();
> j++;
> }
> System.out.println("foo.bar count: " + j);
> } catch (IOException e) {
> e.printStackTrace();
> }
> }
> @Override
> public void contextDestroyed(ServletContextEvent sce) {
> }
> }
> it returns the expected count (1) when deployed using the manager app or filesystem deployment. However, it returns 2 when deployed using OpenEJB deployer service (remote arquillian container).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (TOMEE-42) TCCL.getResources() returns duplicated
when deploying with OpenEJB deployer
Posted by "David Blevins (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TOMEE-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Blevins closed TOMEE-42.
------------------------------
Resolution: Fixed
Assignee: Romain Manni-Bucau
Fixed with Arquillian unit test org.apache.openejb.arquillian.tests.getresources
> TCCL.getResources() returns duplicated when deploying with OpenEJB deployer
> ---------------------------------------------------------------------------
>
> Key: TOMEE-42
> URL: https://issues.apache.org/jira/browse/TOMEE-42
> Project: TomEE
> Issue Type: Bug
> Environment: 1.0.0-beta-2-20111019.211229-11-plus
> Reporter: Jozef Hartinger
> Assignee: Romain Manni-Bucau
> Fix For: 1.0.0-beta-2
>
> Attachments: test.war
>
>
> Having a testing listener:
> @WebListener
> public class Listener implements ServletContextListener {
> @Override
> public void contextInitialized(ServletContextEvent sce) {
> int j = 0;
> try {
> ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
> Enumeration<URL> urls = classLoader.getResources("foo.bar");
> while (urls.hasMoreElements()) {
> urls.nextElement();
> j++;
> }
> System.out.println("foo.bar count: " + j);
> } catch (IOException e) {
> e.printStackTrace();
> }
> }
> @Override
> public void contextDestroyed(ServletContextEvent sce) {
> }
> }
> it returns the expected count (1) when deployed using the manager app or filesystem deployment. However, it returns 2 when deployed using OpenEJB deployer service (remote arquillian container).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TOMEE-42) TCCL.getResources() returns
duplicated when deploying with OpenEJB deployer
Posted by "David Blevins (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TOMEE-42?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13191094#comment-13191094 ]
David Blevins commented on TOMEE-42:
------------------------------------
2011-10-24 - http://svn.apache.org/viewvc?view=revision&revision=1188254 - rmannibucau
2011-10-24 - http://svn.apache.org/viewvc?view=revision&revision=1188262 - rmannibucau
2011-10-24 - http://svn.apache.org/viewvc?view=revision&revision=1188358 - rmannibucau
2011-10-26 - http://svn.apache.org/viewvc?view=revision&revision=1189142 - rmannibucau
2011-10-30 - http://svn.apache.org/viewvc?view=revision&revision=1195198 - rmannibucau
2011-10-30 - http://svn.apache.org/viewvc?view=revision&revision=1195229 - rmannibucau
2011-11-01 - http://svn.apache.org/viewvc?view=revision&revision=1196093 - rmannibucau
2011-11-01 - http://svn.apache.org/viewvc?view=revision&revision=1196180 - rmannibucau
2011-11-06 - http://svn.apache.org/viewvc?view=revision&revision=1198591 - rmannibucau
> TCCL.getResources() returns duplicated when deploying with OpenEJB deployer
> ---------------------------------------------------------------------------
>
> Key: TOMEE-42
> URL: https://issues.apache.org/jira/browse/TOMEE-42
> Project: TomEE
> Issue Type: Bug
> Environment: 1.0.0-beta-2-20111019.211229-11-plus
> Reporter: Jozef Hartinger
> Assignee: Romain Manni-Bucau
> Fix For: 1.0.0-beta-2
>
> Attachments: test.war
>
>
> Having a testing listener:
> @WebListener
> public class Listener implements ServletContextListener {
> @Override
> public void contextInitialized(ServletContextEvent sce) {
> int j = 0;
> try {
> ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
> Enumeration<URL> urls = classLoader.getResources("foo.bar");
> while (urls.hasMoreElements()) {
> urls.nextElement();
> j++;
> }
> System.out.println("foo.bar count: " + j);
> } catch (IOException e) {
> e.printStackTrace();
> }
> }
> @Override
> public void contextDestroyed(ServletContextEvent sce) {
> }
> }
> it returns the expected count (1) when deployed using the manager app or filesystem deployment. However, it returns 2 when deployed using OpenEJB deployer service (remote arquillian container).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira