Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-944

Empty JNDI 'java:' tree w/servlet 2.3 web container first

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • JBossAS-3.2.6 Final
    • None
    • None

    Description

      SourceForge Submitter: pjaromin .
      OS: Solaris 9
      JDK: HotSpot 1.4.2 SE (build 1.4.2-b28, mixed mode)

      Using a "clean" install of JBoss 3.2.3 (November 2003),
      install both webapps - test1.war and test2.war - in the
      'deploy' directory.

      Visit test1 - http://localhost:8080/test1/jndi.do

      The web page output should look like:
      ----------------------------------------------
      CHILDREN of java:
      NAME: XAConnectionFactory TYPE:
      org.jboss.mq.SpyXAConnectionFactory
      NAME: DefaultDS TYPE:
      org.jboss.resource.adapter.jdbc.WrapperDataSource
      NAME: SecurityProxyFactory TYPE:
      org.jboss.security.SubjectSecurityProxyFactory
      NAME: DefaultJMSProvider TYPE:
      org.jboss.jms.jndi.JBossMQProvider
      NAME: comp TYPE: javax.naming.Context
      NAME: ConnectionFactory TYPE:
      org.jboss.mq.SpyConnectionFactory
      NAME: JmsXA TYPE:
      org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl
      NAME: jaas TYPE: javax.naming.Context
      NAME: timedCacheFactory TYPE: javax.naming.Context
      NAME: TransactionPropagationContextExporter TYPE:
      org.jboss.tm.TransactionPropagationContextFactory
      NAME: Mail TYPE: javax.mail.Session
      NAME: StdJMSPool TYPE:
      org.jboss.jms.asf.StdServerSessionPoolFactory
      NAME: TransactionPropagationContextImporter TYPE:
      org.jboss.tm.TransactionPropagationContextImporter
      NAME: TransactionManager TYPE: org.jboss.tm.TxManager
      ----------------------------------------------

      Next, visit http://localhost:8080/test2/index.do

      By default, using the JBoss Classloader and Java2
      compliance in tomcat, you will receive an error -
      'java.lang.NoSuchMethodError:
      test.webui.actions.UserInfo.getCount2()I' - when
      attempting to view "test2/index.do" since there is an
      incompatible version of the same class loaded in "test1".

      Edit the file
      default/deploy/jbossweb-tomcat41.sar/META-INF/jboss-service.xml

      and change the following attributes to "false":

      <attribute
      name="Java2ClassLoadingCompliance">true</attribute>
      <attribute name="UseJBossWebLoader">true</attribute>

      ...next, either remove the management app or edit
      web-console.war/WEB-INF/jboss-web.xml and add
      <class-loading java2ClassLoadingCompliance='true'/>

      Now, restart the app server. (run.sh -c default).

      You should be able to visit both web apps without error
      this time, however, the output will list no children of
      "java:" in the InitialContext:

      http://localhost:8080/test1/jndi.do
      http://localhost:8080/test2/index.do

      OUTPUT of http://localhost:8080/test1/jndi.do
      ----------------------------------------------
      CHILDREN of java:
      ----------------------------------------------

      Attachments

        Activity

          People

            starksm64 Scott Stark (Inactive)
            sourceforge-user SourceForge legacy user (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: