[jboss-jira] [JBoss JIRA] Commented: (JBAS-6368) jboss 5 GA, "Context not found as a child of Host" in server.xml
robert lazarski (JIRA)
jira-events at lists.jboss.org
Fri Jan 9 07:22:04 EST 2009
[ https://jira.jboss.org/jira/browse/JBAS-6368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12446673#action_12446673 ]
robert lazarski commented on JBAS-6368:
---------------------------------------
I know this is open source, but you've broken the most basic of features - deploying - that's existed since tomcat 4 until the latest, including at least 4.0.5-5.0.0beta4 of jboss, and haven't documented it. I've searched the jboss 5 docs, read the release notes, and I see no reference to context.xml nor service.xml files. Are you saying I need a compacted sar / war now to use jboss, ie, and can no longer use an expanded war outside the container? Please clarify. If there's some way to define a userland context.xml and keep my open wars outside the container, I'd love to hear it so I can use jboss 5. Otherwise I'm stuck on legacy jboss, as we have a long running production app.
> jboss 5 GA, "Context not found as a child of Host" in server.xml
> ----------------------------------------------------------------
>
> Key: JBAS-6368
> URL: https://jira.jboss.org/jira/browse/JBAS-6368
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Web (Tomcat) service
> Affects Versions: JBossAS-5.0.0.GA
> Environment: centos 5, jdk 6
> Reporter: robert lazarski
> Assignee: Remy Maucherat
>
> In server.xml, the following worked from at least 4.0.5 until 5.0.0.Beta4
> <Host name="localhost">
> <Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve"
> cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
> transactionManagerObjectName="jboss:service=TransactionManager" />
> <Context path="/dev" docBase="/programs/myDev" reloadable="true"/>
> </Host>
> This error now gets thrown in 5.0.0GA:
> 11:48:18,994 ERROR [AbstractKernelController] Error installing to Start: name=WebServer state=Create
> org.jboss.xb.binding.JBossXBException: Failed to parse source: Context not found as a child of Host
> at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
> at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:183)
> at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:133)
> at org.jboss.web.tomcat.service.deployers.TomcatService.startService(TomcatService.java:171)
> at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
> ...
> There are no release notes or other docs I can find explaining this change. The latest tomcat docs say:
> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
> "Context elements may be explicitly defined:
> ...
> inside a Host element in the main conf/server.xml
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list