You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Borislav Kapukaranov (JIRA)" <ji...@apache.org> on 2012/10/18 01:04:03 UTC

[jira] [Created] (TOMEE-479) Can't use custom typed resource references and factories

Borislav Kapukaranov created TOMEE-479:
------------------------------------------

             Summary: Can't use custom typed resource references and factories
                 Key: TOMEE-479
                 URL: https://issues.apache.org/jira/browse/TOMEE-479
             Project: TomEE
          Issue Type: Bug
          Components: Compliance Checks
    Affects Versions: 1.5.0
         Environment: Mac OS X
            Reporter: Borislav Kapukaranov
         Attachments: catalina.out, MyApplication.war

I followed a simple tutorial of how to add resource references of a custom type with its custom object factory in my web application. 
The tutorial is from Tomcat's documentation: http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#Adding_Custom_Resource_Factories

I created my app and deployed it on a plain Tomcat and it worked just fine.
However when I tried it on a TomEE 1.5.0 it couldn't even deploy...

I'm attaching both the application and the catalina logs taken from TomEE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TOMEE-479) Can't use custom typed resource references and factories

Posted by "Borislav Kapukaranov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478499#comment-13478499 ] 

Borislav Kapukaranov commented on TOMEE-479:
--------------------------------------------

Oh yeah, worked for me too, copied the context in wrong path :)
Thanks!
                
> Can't use custom typed resource references and factories
> --------------------------------------------------------
>
>                 Key: TOMEE-479
>                 URL: https://issues.apache.org/jira/browse/TOMEE-479
>             Project: TomEE
>          Issue Type: Bug
>          Components: Compliance Checks
>    Affects Versions: 1.5.0
>         Environment: Mac OS X
>            Reporter: Borislav Kapukaranov
>             Fix For: 1.5.1
>
>         Attachments: catalina.out, catalina.out, MyApplicationContextOutside.war, MyApplication.war
>
>
> I followed a simple tutorial of how to add resource references of a custom type with its custom object factory in my web application. 
> The tutorial is from Tomcat's documentation: http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#Adding_Custom_Resource_Factories
> I created my app and deployed it on a plain Tomcat and it worked just fine.
> However when I tried it on a TomEE 1.5.0 it couldn't even deploy...
> I'm attaching both the application and the catalina logs taken from TomEE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TOMEE-479) Can't use custom typed resource references and factories

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478495#comment-13478495 ] 

Romain Manni-Bucau commented on TOMEE-479:
------------------------------------------

putting context.xml in conf/ worked for me
                
> Can't use custom typed resource references and factories
> --------------------------------------------------------
>
>                 Key: TOMEE-479
>                 URL: https://issues.apache.org/jira/browse/TOMEE-479
>             Project: TomEE
>          Issue Type: Bug
>          Components: Compliance Checks
>    Affects Versions: 1.5.0
>         Environment: Mac OS X
>            Reporter: Borislav Kapukaranov
>         Attachments: catalina.out, catalina.out, MyApplicationContextOutside.war, MyApplication.war
>
>
> I followed a simple tutorial of how to add resource references of a custom type with its custom object factory in my web application. 
> The tutorial is from Tomcat's documentation: http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#Adding_Custom_Resource_Factories
> I created my app and deployed it on a plain Tomcat and it worked just fine.
> However when I tried it on a TomEE 1.5.0 it couldn't even deploy...
> I'm attaching both the application and the catalina logs taken from TomEE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TOMEE-479) Can't use custom typed resource references and factories

Posted by "Borislav Kapukaranov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478478#comment-13478478 ] 

Borislav Kapukaranov commented on TOMEE-479:
--------------------------------------------

The app is requested on http://localhost:8080/MyApplication/MyServlet
                
> Can't use custom typed resource references and factories
> --------------------------------------------------------
>
>                 Key: TOMEE-479
>                 URL: https://issues.apache.org/jira/browse/TOMEE-479
>             Project: TomEE
>          Issue Type: Bug
>          Components: Compliance Checks
>    Affects Versions: 1.5.0
>         Environment: Mac OS X
>            Reporter: Borislav Kapukaranov
>         Attachments: catalina.out, MyApplication.war
>
>
> I followed a simple tutorial of how to add resource references of a custom type with its custom object factory in my web application. 
> The tutorial is from Tomcat's documentation: http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#Adding_Custom_Resource_Factories
> I created my app and deployed it on a plain Tomcat and it worked just fine.
> However when I tried it on a TomEE 1.5.0 it couldn't even deploy...
> I'm attaching both the application and the catalina logs taken from TomEE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TOMEE-479) Can't use custom typed resource references and factories

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478479#comment-13478479 ] 

Romain Manni-Bucau commented on TOMEE-479:
------------------------------------------

did you try on the snapshot (https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.5.1-SNAPSHOT/)? think it has been fixed, at least with META-INF/context.xml
                
> Can't use custom typed resource references and factories
> --------------------------------------------------------
>
>                 Key: TOMEE-479
>                 URL: https://issues.apache.org/jira/browse/TOMEE-479
>             Project: TomEE
>          Issue Type: Bug
>          Components: Compliance Checks
>    Affects Versions: 1.5.0
>         Environment: Mac OS X
>            Reporter: Borislav Kapukaranov
>         Attachments: catalina.out, MyApplication.war
>
>
> I followed a simple tutorial of how to add resource references of a custom type with its custom object factory in my web application. 
> The tutorial is from Tomcat's documentation: http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#Adding_Custom_Resource_Factories
> I created my app and deployed it on a plain Tomcat and it worked just fine.
> However when I tried it on a TomEE 1.5.0 it couldn't even deploy...
> I'm attaching both the application and the catalina logs taken from TomEE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (TOMEE-479) Can't use custom typed resource references and factories

Posted by "Borislav Kapukaranov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TOMEE-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Borislav Kapukaranov resolved TOMEE-479.
----------------------------------------

       Resolution: Duplicate
    Fix Version/s: 1.5.1

duplicate with 
https://issues.apache.org/jira/browse/TOMEE-452
                
> Can't use custom typed resource references and factories
> --------------------------------------------------------
>
>                 Key: TOMEE-479
>                 URL: https://issues.apache.org/jira/browse/TOMEE-479
>             Project: TomEE
>          Issue Type: Bug
>          Components: Compliance Checks
>    Affects Versions: 1.5.0
>         Environment: Mac OS X
>            Reporter: Borislav Kapukaranov
>             Fix For: 1.5.1
>
>         Attachments: catalina.out, catalina.out, MyApplicationContextOutside.war, MyApplication.war
>
>
> I followed a simple tutorial of how to add resource references of a custom type with its custom object factory in my web application. 
> The tutorial is from Tomcat's documentation: http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#Adding_Custom_Resource_Factories
> I created my app and deployed it on a plain Tomcat and it worked just fine.
> However when I tried it on a TomEE 1.5.0 it couldn't even deploy...
> I'm attaching both the application and the catalina logs taken from TomEE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TOMEE-479) Can't use custom typed resource references and factories

Posted by "Borislav Kapukaranov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478489#comment-13478489 ] 

Borislav Kapukaranov commented on TOMEE-479:
--------------------------------------------

Indeed the snapshot works with META-INF/context.xml inside the app. 
I tried configuring it outside in the /conf dir. When I requested the Servlet it failed with the same error about the service provider.

>From the exception it looks like OpenEjb is trying to do Tomcat's work by reading the web.xml on its own. I'm curious is there a way to switch that off - a property maybe? Why the fix for META-INF/context.xml is not working in this case?
                
> Can't use custom typed resource references and factories
> --------------------------------------------------------
>
>                 Key: TOMEE-479
>                 URL: https://issues.apache.org/jira/browse/TOMEE-479
>             Project: TomEE
>          Issue Type: Bug
>          Components: Compliance Checks
>    Affects Versions: 1.5.0
>         Environment: Mac OS X
>            Reporter: Borislav Kapukaranov
>         Attachments: catalina.out, catalina.out, MyApplicationContextOutside.war, MyApplication.war
>
>
> I followed a simple tutorial of how to add resource references of a custom type with its custom object factory in my web application. 
> The tutorial is from Tomcat's documentation: http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#Adding_Custom_Resource_Factories
> I created my app and deployed it on a plain Tomcat and it worked just fine.
> However when I tried it on a TomEE 1.5.0 it couldn't even deploy...
> I'm attaching both the application and the catalina logs taken from TomEE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TOMEE-479) Can't use custom typed resource references and factories

Posted by "Borislav Kapukaranov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TOMEE-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Borislav Kapukaranov updated TOMEE-479:
---------------------------------------

    Attachment: catalina.out
                MyApplication.war

Attached WAR that reproduces the problem and logs from TomEE
                
> Can't use custom typed resource references and factories
> --------------------------------------------------------
>
>                 Key: TOMEE-479
>                 URL: https://issues.apache.org/jira/browse/TOMEE-479
>             Project: TomEE
>          Issue Type: Bug
>          Components: Compliance Checks
>    Affects Versions: 1.5.0
>         Environment: Mac OS X
>            Reporter: Borislav Kapukaranov
>         Attachments: catalina.out, MyApplication.war
>
>
> I followed a simple tutorial of how to add resource references of a custom type with its custom object factory in my web application. 
> The tutorial is from Tomcat's documentation: http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#Adding_Custom_Resource_Factories
> I created my app and deployed it on a plain Tomcat and it worked just fine.
> However when I tried it on a TomEE 1.5.0 it couldn't even deploy...
> I'm attaching both the application and the catalina logs taken from TomEE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TOMEE-479) Can't use custom typed resource references and factories

Posted by "Borislav Kapukaranov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TOMEE-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Borislav Kapukaranov updated TOMEE-479:
---------------------------------------

    Attachment: catalina.out
                MyApplicationContextOutside.war

Uploaded new files that exercise the issue.
                
> Can't use custom typed resource references and factories
> --------------------------------------------------------
>
>                 Key: TOMEE-479
>                 URL: https://issues.apache.org/jira/browse/TOMEE-479
>             Project: TomEE
>          Issue Type: Bug
>          Components: Compliance Checks
>    Affects Versions: 1.5.0
>         Environment: Mac OS X
>            Reporter: Borislav Kapukaranov
>         Attachments: catalina.out, catalina.out, MyApplicationContextOutside.war, MyApplication.war
>
>
> I followed a simple tutorial of how to add resource references of a custom type with its custom object factory in my web application. 
> The tutorial is from Tomcat's documentation: http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#Adding_Custom_Resource_Factories
> I created my app and deployed it on a plain Tomcat and it worked just fine.
> However when I tried it on a TomEE 1.5.0 it couldn't even deploy...
> I'm attaching both the application and the catalina logs taken from TomEE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira