You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Werner Froidevaux (Created) (JIRA)" <ji...@apache.org> on 2011/10/21 00:06:10 UTC
[jira] [Created] (TOMEE-39) context.xml of WAR not loaded
context.xml of WAR not loaded
-----------------------------
Key: TOMEE-39
URL: https://issues.apache.org/jira/browse/TOMEE-39
Project: TomEE
Issue Type: Bug
Affects Versions: 1.0.0-beta-2
Environment: Linux, Java6
Reporter: Werner Froidevaux
A WAR's context.xml is not loaded.
If the context.xml is put in the WAR in META-INF/context.xml it is not loaded. This works with Tomcat 6 + OpenEJB.
I attached a simple EAR containing a web module with a valid META-INF/context.xml. As test modify the context.xml so that it is invalid, e.g.
<Context
this context.xml is not valid
path="/opencrx-core-CRX"
docBase="${catalina.home}/apps/opencrx-core-CRX/opencrx-core-CRX.war"
>
</Context>
TomEE deploys the EAR without warnings or errors.
I tested a real EAR with a context.xml defining a realm which is also not loaded.
--
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-39) context.xml of WAR not loaded
Posted by "Romain Manni-Bucau (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TOMEE-39?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Romain Manni-Bucau closed TOMEE-39.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.0.0-beta-2
Assignee: Romain Manni-Bucau
cool, sorry for the multiple tries
> context.xml of WAR not loaded
> -----------------------------
>
> Key: TOMEE-39
> URL: https://issues.apache.org/jira/browse/TOMEE-39
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.0.0-beta-2
> Environment: Linux, Java6
> Reporter: Werner Froidevaux
> Assignee: Romain Manni-Bucau
> Fix For: 1.0.0-beta-2
>
> Attachments: opencrx-core-CRX.ear
>
>
> A WAR's context.xml is not loaded.
> If the context.xml is put in the WAR in META-INF/context.xml it is not loaded. This works with Tomcat 6 + OpenEJB.
> I attached a simple EAR containing a web module with a valid META-INF/context.xml. As test modify the context.xml so that it is invalid, e.g.
> <Context
> this context.xml is not valid
> path="/opencrx-core-CRX"
> docBase="${catalina.home}/apps/opencrx-core-CRX/opencrx-core-CRX.war"
> >
> </Context>
> TomEE deploys the EAR without warnings or errors.
> I tested a real EAR with a context.xml defining a realm which is also not loaded.
--
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-39) context.xml of WAR not loaded
Posted by "Werner Froidevaux (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TOMEE-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13132896#comment-13132896 ]
Werner Froidevaux commented on TOMEE-39:
----------------------------------------
I tried with apache-tomee-1.0.0-beta-2-20111021.174029-15-webprofile.tar.gz
I get the same result, however the stack trace looks a little bit different:
TomcatWebAppBuilder.start /opencrx-rest-CRX
java.lang.NullPointerException
at org.apache.tomee.catalina.TomcatJndiBuilder.mergeJava(TomcatJndiBuilder.java:223)
at org.apache.tomee.catalina.TomcatJavaJndiBinder.lifecycleEvent(TomcatJavaJndiBinder.java:33)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.startup.Catalina.start(Catalina.java:621)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
> context.xml of WAR not loaded
> -----------------------------
>
> Key: TOMEE-39
> URL: https://issues.apache.org/jira/browse/TOMEE-39
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.0.0-beta-2
> Environment: Linux, Java6
> Reporter: Werner Froidevaux
> Attachments: opencrx-core-CRX.ear
>
>
> A WAR's context.xml is not loaded.
> If the context.xml is put in the WAR in META-INF/context.xml it is not loaded. This works with Tomcat 6 + OpenEJB.
> I attached a simple EAR containing a web module with a valid META-INF/context.xml. As test modify the context.xml so that it is invalid, e.g.
> <Context
> this context.xml is not valid
> path="/opencrx-core-CRX"
> docBase="${catalina.home}/apps/opencrx-core-CRX/opencrx-core-CRX.war"
> >
> </Context>
> TomEE deploys the EAR without warnings or errors.
> I tested a real EAR with a context.xml defining a realm which is also not loaded.
--
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-39) context.xml of WAR not loaded
Posted by "Romain Manni-Bucau (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TOMEE-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13132505#comment-13132505 ]
Romain Manni-Bucau commented on TOMEE-39:
-----------------------------------------
i just commited a fix, it will take some time to be redeployed but it should work (at least i managed to change the path of the context throught META-INF/context.xml)
> context.xml of WAR not loaded
> -----------------------------
>
> Key: TOMEE-39
> URL: https://issues.apache.org/jira/browse/TOMEE-39
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.0.0-beta-2
> Environment: Linux, Java6
> Reporter: Werner Froidevaux
> Attachments: opencrx-core-CRX.ear
>
>
> A WAR's context.xml is not loaded.
> If the context.xml is put in the WAR in META-INF/context.xml it is not loaded. This works with Tomcat 6 + OpenEJB.
> I attached a simple EAR containing a web module with a valid META-INF/context.xml. As test modify the context.xml so that it is invalid, e.g.
> <Context
> this context.xml is not valid
> path="/opencrx-core-CRX"
> docBase="${catalina.home}/apps/opencrx-core-CRX/opencrx-core-CRX.war"
> >
> </Context>
> TomEE deploys the EAR without warnings or errors.
> I tested a real EAR with a context.xml defining a realm which is also not loaded.
--
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-39) context.xml of WAR not loaded
Posted by "Romain Manni-Bucau (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TOMEE-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13132859#comment-13132859 ]
Romain Manni-Bucau commented on TOMEE-39:
-----------------------------------------
hmm, i'm not sure you've got the good version, can you have another try soon please?
> context.xml of WAR not loaded
> -----------------------------
>
> Key: TOMEE-39
> URL: https://issues.apache.org/jira/browse/TOMEE-39
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.0.0-beta-2
> Environment: Linux, Java6
> Reporter: Werner Froidevaux
> Attachments: opencrx-core-CRX.ear
>
>
> A WAR's context.xml is not loaded.
> If the context.xml is put in the WAR in META-INF/context.xml it is not loaded. This works with Tomcat 6 + OpenEJB.
> I attached a simple EAR containing a web module with a valid META-INF/context.xml. As test modify the context.xml so that it is invalid, e.g.
> <Context
> this context.xml is not valid
> path="/opencrx-core-CRX"
> docBase="${catalina.home}/apps/opencrx-core-CRX/opencrx-core-CRX.war"
> >
> </Context>
> TomEE deploys the EAR without warnings or errors.
> I tested a real EAR with a context.xml defining a realm which is also not loaded.
--
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-39) context.xml of WAR not loaded
Posted by "Romain Manni-Bucau (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TOMEE-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13132103#comment-13132103 ]
Romain Manni-Bucau commented on TOMEE-39:
-----------------------------------------
did you try to define a context in server.xml for your webapp? (soemething witha docBase like apps/opencrx-core-CRX/opencrx-webapp)
> context.xml of WAR not loaded
> -----------------------------
>
> Key: TOMEE-39
> URL: https://issues.apache.org/jira/browse/TOMEE-39
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.0.0-beta-2
> Environment: Linux, Java6
> Reporter: Werner Froidevaux
> Attachments: opencrx-core-CRX.ear
>
>
> A WAR's context.xml is not loaded.
> If the context.xml is put in the WAR in META-INF/context.xml it is not loaded. This works with Tomcat 6 + OpenEJB.
> I attached a simple EAR containing a web module with a valid META-INF/context.xml. As test modify the context.xml so that it is invalid, e.g.
> <Context
> this context.xml is not valid
> path="/opencrx-core-CRX"
> docBase="${catalina.home}/apps/opencrx-core-CRX/opencrx-core-CRX.war"
> >
> </Context>
> TomEE deploys the EAR without warnings or errors.
> I tested a real EAR with a context.xml defining a realm which is also not loaded.
--
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-39) context.xml of WAR not loaded
Posted by "Romain Manni-Bucau (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TOMEE-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133710#comment-13133710 ]
Romain Manni-Bucau commented on TOMEE-39:
-----------------------------------------
can you have a try with the last one please?
> context.xml of WAR not loaded
> -----------------------------
>
> Key: TOMEE-39
> URL: https://issues.apache.org/jira/browse/TOMEE-39
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.0.0-beta-2
> Environment: Linux, Java6
> Reporter: Werner Froidevaux
> Attachments: opencrx-core-CRX.ear
>
>
> A WAR's context.xml is not loaded.
> If the context.xml is put in the WAR in META-INF/context.xml it is not loaded. This works with Tomcat 6 + OpenEJB.
> I attached a simple EAR containing a web module with a valid META-INF/context.xml. As test modify the context.xml so that it is invalid, e.g.
> <Context
> this context.xml is not valid
> path="/opencrx-core-CRX"
> docBase="${catalina.home}/apps/opencrx-core-CRX/opencrx-core-CRX.war"
> >
> </Context>
> TomEE deploys the EAR without warnings or errors.
> I tested a real EAR with a context.xml defining a realm which is also not loaded.
--
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-39) context.xml of WAR not loaded
Posted by "Werner Froidevaux (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TOMEE-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133725#comment-13133725 ]
Werner Froidevaux commented on TOMEE-39:
----------------------------------------
It tested with apache-tomee-1.0.0-beta-2-20111022.170518-16-webprofile.tar.gz and it works. Perfect!
> context.xml of WAR not loaded
> -----------------------------
>
> Key: TOMEE-39
> URL: https://issues.apache.org/jira/browse/TOMEE-39
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.0.0-beta-2
> Environment: Linux, Java6
> Reporter: Werner Froidevaux
> Attachments: opencrx-core-CRX.ear
>
>
> A WAR's context.xml is not loaded.
> If the context.xml is put in the WAR in META-INF/context.xml it is not loaded. This works with Tomcat 6 + OpenEJB.
> I attached a simple EAR containing a web module with a valid META-INF/context.xml. As test modify the context.xml so that it is invalid, e.g.
> <Context
> this context.xml is not valid
> path="/opencrx-core-CRX"
> docBase="${catalina.home}/apps/opencrx-core-CRX/opencrx-core-CRX.war"
> >
> </Context>
> TomEE deploys the EAR without warnings or errors.
> I tested a real EAR with a context.xml defining a realm which is also not loaded.
--
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-39) context.xml of WAR not loaded
Posted by "Werner Froidevaux (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TOMEE-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13132853#comment-13132853 ]
Werner Froidevaux commented on TOMEE-39:
----------------------------------------
I tested with apache-tomee-1.0.0-beta-2-20111021.160446-14-webprofile.tar.gz:
According to the console the context.xml are recognized:
using context file /home/wfro/temp/apache-tomee-webprofile-1.0.0-beta-2-SNAPSHOT/apps/opencrx-core-CRX/opencrx-ldap-CRX/META-INF/context.xml
using context file /home/wfro/temp/apache-tomee-webprofile-1.0.0-beta-2-SNAPSHOT/apps/opencrx-core-CRX/opencrx-imap-CRX/META-INF/context.xml
using context file /home/wfro/temp/apache-tomee-webprofile-1.0.0-beta-2-SNAPSHOT/apps/opencrx-core-CRX/opencrx-caldav-CRX/META-INF/context.xml
using context file /home/wfro/temp/apache-tomee-webprofile-1.0.0-beta-2-SNAPSHOT/apps/opencrx-core-CRX/opencrx-carddav-CRX/META-INF/context.xml
using context file /home/wfro/temp/apache-tomee-webprofile-1.0.0-beta-2-SNAPSHOT/apps/opencrx-core-CRX/opencrx-rest-CRX/META-INF/context.xml
using context file /home/wfro/temp/apache-tomee-webprofile-1.0.0-beta-2-SNAPSHOT/apps/opencrx-core-CRX/opencrx-news-CRX/META-INF/context.xml
using context file /home/wfro/temp/apache-tomee-webprofile-1.0.0-beta-2-SNAPSHOT/apps/opencrx-core-CRX/opencrx-core-CRX/META-INF/context.xml
using context file /home/wfro/temp/apache-tomee-webprofile-1.0.0-beta-2-SNAPSHOT/apps/opencrx-core-CRX/opencrx-ical-CRX/META-INF/context.xml
using context file /home/wfro/temp/apache-tomee-webprofile-1.0.0-beta-2-SNAPSHOT/apps/opencrx-core-CRX/opencrx-airsync-CRX/META-INF/context.xml
using context file /home/wfro/temp/apache-tomee-webprofile-1.0.0-beta-2-SNAPSHOT/apps/opencrx-core-CRX/opencrx-vcard-CRX/META-INF/context.xml
using context file /home/wfro/temp/apache-tomee-webprofile-1.0.0-beta-2-SNAPSHOT/apps/opencrx-core-CRX/opencrx-webdav-CRX/META-INF/context.xml
However, a few lines later in the log I get the following exception:
TomcatWebAppBuilder.start /opencrx-rest-CRX
java.lang.NullPointerException
at org.apache.tomee.catalina.TomcatJndiBuilder.mergeJava(TomcatJndiBuilder.java:218)
at org.apache.tomee.catalina.TomcatJavaJndiBinder.lifecycleEvent(TomcatJavaJndiBinder.java:33)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
at org.apache.catalina.startup.Catalina.start(Catalina.java:621)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
My context.xml contains the following nested element:
<Realm className="org.apache.catalina.realm.CombinedRealm">
<Realm
className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"
/>
</Realm>
> context.xml of WAR not loaded
> -----------------------------
>
> Key: TOMEE-39
> URL: https://issues.apache.org/jira/browse/TOMEE-39
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.0.0-beta-2
> Environment: Linux, Java6
> Reporter: Werner Froidevaux
> Attachments: opencrx-core-CRX.ear
>
>
> A WAR's context.xml is not loaded.
> If the context.xml is put in the WAR in META-INF/context.xml it is not loaded. This works with Tomcat 6 + OpenEJB.
> I attached a simple EAR containing a web module with a valid META-INF/context.xml. As test modify the context.xml so that it is invalid, e.g.
> <Context
> this context.xml is not valid
> path="/opencrx-core-CRX"
> docBase="${catalina.home}/apps/opencrx-core-CRX/opencrx-core-CRX.war"
> >
> </Context>
> TomEE deploys the EAR without warnings or errors.
> I tested a real EAR with a context.xml defining a realm which is also not loaded.
--
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-39) context.xml of WAR not loaded
Posted by "Werner Froidevaux (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TOMEE-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13132604#comment-13132604 ]
Werner Froidevaux commented on TOMEE-39:
----------------------------------------
Setting an attribute of the element <Context> (such as 'path') does work now.
However, nested elements are still ignored.
You can test it by adding a realm definition
<Realm
className="xxx.org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"
/>
to the context.xml. It does not matter what you put as className, the definition seems to be ignored.
> context.xml of WAR not loaded
> -----------------------------
>
> Key: TOMEE-39
> URL: https://issues.apache.org/jira/browse/TOMEE-39
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.0.0-beta-2
> Environment: Linux, Java6
> Reporter: Werner Froidevaux
> Attachments: opencrx-core-CRX.ear
>
>
> A WAR's context.xml is not loaded.
> If the context.xml is put in the WAR in META-INF/context.xml it is not loaded. This works with Tomcat 6 + OpenEJB.
> I attached a simple EAR containing a web module with a valid META-INF/context.xml. As test modify the context.xml so that it is invalid, e.g.
> <Context
> this context.xml is not valid
> path="/opencrx-core-CRX"
> docBase="${catalina.home}/apps/opencrx-core-CRX/opencrx-core-CRX.war"
> >
> </Context>
> TomEE deploys the EAR without warnings or errors.
> I tested a real EAR with a context.xml defining a realm which is also not loaded.
--
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-39) context.xml of WAR not loaded
Posted by "Romain Manni-Bucau (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TOMEE-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13132619#comment-13132619 ]
Romain Manni-Bucau commented on TOMEE-39:
-----------------------------------------
i just committed another patch, i'll try to run the deployment in the afternoon, hope it will be enough
> context.xml of WAR not loaded
> -----------------------------
>
> Key: TOMEE-39
> URL: https://issues.apache.org/jira/browse/TOMEE-39
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.0.0-beta-2
> Environment: Linux, Java6
> Reporter: Werner Froidevaux
> Attachments: opencrx-core-CRX.ear
>
>
> A WAR's context.xml is not loaded.
> If the context.xml is put in the WAR in META-INF/context.xml it is not loaded. This works with Tomcat 6 + OpenEJB.
> I attached a simple EAR containing a web module with a valid META-INF/context.xml. As test modify the context.xml so that it is invalid, e.g.
> <Context
> this context.xml is not valid
> path="/opencrx-core-CRX"
> docBase="${catalina.home}/apps/opencrx-core-CRX/opencrx-core-CRX.war"
> >
> </Context>
> TomEE deploys the EAR without warnings or errors.
> I tested a real EAR with a context.xml defining a realm which is also not loaded.
--
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-39) context.xml of WAR not loaded
Posted by "David Blevins (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TOMEE-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13191097#comment-13191097 ]
David Blevins commented on TOMEE-39:
------------------------------------
2011-10-21 - http://svn.apache.org/viewvc?view=revision&revision=1187205 - rmannibucau
2011-10-22 - http://svn.apache.org/viewvc?view=revision&revision=1187705 - rmannibucau
> context.xml of WAR not loaded
> -----------------------------
>
> Key: TOMEE-39
> URL: https://issues.apache.org/jira/browse/TOMEE-39
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.0.0-beta-2
> Environment: Linux, Java6
> Reporter: Werner Froidevaux
> Assignee: Romain Manni-Bucau
> Fix For: 1.0.0-beta-2
>
> Attachments: opencrx-core-CRX.ear
>
>
> A WAR's context.xml is not loaded.
> If the context.xml is put in the WAR in META-INF/context.xml it is not loaded. This works with Tomcat 6 + OpenEJB.
> I attached a simple EAR containing a web module with a valid META-INF/context.xml. As test modify the context.xml so that it is invalid, e.g.
> <Context
> this context.xml is not valid
> path="/opencrx-core-CRX"
> docBase="${catalina.home}/apps/opencrx-core-CRX/opencrx-core-CRX.war"
> >
> </Context>
> TomEE deploys the EAR without warnings or errors.
> I tested a real EAR with a context.xml defining a realm which is also not loaded.
--
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-39) context.xml of WAR not loaded
Posted by "Werner Froidevaux (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TOMEE-39?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Werner Froidevaux updated TOMEE-39:
-----------------------------------
Attachment: opencrx-core-CRX.ear
> context.xml of WAR not loaded
> -----------------------------
>
> Key: TOMEE-39
> URL: https://issues.apache.org/jira/browse/TOMEE-39
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.0.0-beta-2
> Environment: Linux, Java6
> Reporter: Werner Froidevaux
> Attachments: opencrx-core-CRX.ear
>
>
> A WAR's context.xml is not loaded.
> If the context.xml is put in the WAR in META-INF/context.xml it is not loaded. This works with Tomcat 6 + OpenEJB.
> I attached a simple EAR containing a web module with a valid META-INF/context.xml. As test modify the context.xml so that it is invalid, e.g.
> <Context
> this context.xml is not valid
> path="/opencrx-core-CRX"
> docBase="${catalina.home}/apps/opencrx-core-CRX/opencrx-core-CRX.war"
> >
> </Context>
> TomEE deploys the EAR without warnings or errors.
> I tested a real EAR with a context.xml defining a realm which is also not loaded.
--
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