[ http://jira.jboss.com/jira/browse/JBAS-555?page=history ]
Scott M Stark closed JBAS-555:
------------------------------
Resolution: Out of Date
> java:comp not bound when java2ClassLoadingCompliance false
> ----------------------------------------------------------
>
> Key: JBAS-555
> URL: http://jira.jboss.com/jira/browse/JBAS-555
> Project: JBoss Application Server
> Type: Bug
> Components: Web (Tomcat) service
> Versions: JBossAS-3.2.6 Final
> Reporter: SourceForge User
> Assignee: Scott M Stark
>
>
> SourceForge Submitter: bonhamcm .
> Tested in both JBoss 3.2.0RC4 Tomcat 4.1.18 and
> JBoss 3.2.2beta Tomcat 4.1.24, Win2K, Sun JDK
> 1.4.1_02.
> When java2ClassLoadingCompliance is set to false in
> jboss-web.xml, the java:comp context cannot be
> accessed. It appears that that the ENC context is
> loaded by the FactoryURLClassLoader before the
> application has read the jboss-web.xml file to see that it
> should actually be loaded by the WebAppClassLoader
> since java2ClassLoadingCompliance is false.
> javax.naming.NameNotFoundException: comp not bound
> at org.jnp.server.NamingServer.getBinding
> (NamingServer.java:495)
> at org.jnp.server.NamingServer.getBinding
> (NamingServer.java:503)
> at org.jnp.server.NamingServer.getObject
> (NamingServer.java:509)
> at org.jnp.server.NamingServer.lookup
> (NamingServer.java:253)
> at org.jnp.interfaces.NamingContext.lookup
> (NamingContext.java:500)
> at org.jnp.interfaces.NamingContext.lookup
> (NamingContext.java:479)
> at javax.naming.InitialContext.lookup
> (InitialContext.java:347)
> at
> org.jboss.test.classloader.scoping.override.web.log4j113.
> ENCServlet.processRequest(ENCServlet.java:56)
> at
> org.jboss.test.classloader.scoping.override.web.log4j113.
> ENCServlet.doGet(ENCServlet.java:35)
> at javax.servlet.http.HttpServlet.service
> (HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service
> (HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalD
> oFilter(ApplicationFilterChain.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:256)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipe
> lineValveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke
> (ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:191)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipe
> lineValveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.valves.CertificatesValve.invoke
> (CertificatesValve.java:246)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipe
> lineValveContext.invokeNext(StandardPipeline.java:641)
> at
> org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke
> (ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContext.invoke
> (StandardContext.java:2415)
> at
> org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:180)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipe
> lineValveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke
> (ErrorDispatcherValve.java:171)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipe
> lineValveContext.invokeNext(StandardPipeline.java:641)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:172)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipe
> lineValveContext.invokeNext(StandardPipeline.java:641)
> at
> org.apache.catalina.valves.AccessLogValve.invoke
> (AccessLogValve.java:509)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipe
> lineValveContext.invokeNext(StandardPipeline.java:641)
> at
> org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke
> (ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:174)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipe
> lineValveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke
> (ContainerBase.java:995)
> at
> org.apache.coyote.tomcat4.CoyoteAdapter.service
> (CoyoteAdapter.java:223)
> at
> org.apache.coyote.http11.Http11Processor.process
> (Http11Processor.java:594)
> at
> org.apache.coyote.http11.Http11Protocol$Http11Connect
> ionHandler.processConnection(Http11Protocol.java:392)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt
> (PoolTcpEndpoint.java:565)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunna
> ble.run(ThreadPool.java:619)
> at java.lang.Thread.run(Thread.java:536)
> Also, in jboss-web.xml, if java2ClassLoadingCompliance
> is set to true, then the application still behaves as if it
> were false.
> A simple testcase is attached.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development