2 Replies Latest reply on Feb 13, 2006 12:03 PM by Paolo Salvadori

    Directory listing

    Paolo Salvadori Newbie

      Hi all,
      I set my root context of my portal instance in jboss-web.xml as following

      <?xml version="1.0"?>
      <jboss-web>
       <security-domain>java:jaas/myjaas</security-domain>
       <context-root>/MyPortal</context-root>
       <replication-config>
       <replication-trigger>SET_AND_GET</replication-trigger>
       <replication-type>SYNC</replication-type>
       </replication-config>
       <resource-ref>
       <res-ref-name>jdbc/PortalDS</res-ref-name>
       <jndi-name>java:PortalDS</jndi-name>
       </resource-ref>
      </jboss-web>


      but if i call
      http://localhost:8080/MyPortal


      i obtain the directory listing of my war app (my portal instance war) instead of the content of my portal instance. How can I do to obtain what I want?

      Thanks, Paolo.

        • 1. Re: Directory listing
          noicangi Novice

          paolo....i'am following your steps hahaha, i edit in hwlloworld.war the jboss-web.xml file for changing the path but jboss send and error that in the web.xml file doesn't found something,
          anybody knows?

          • 2. Re: Directory listing
            Paolo Salvadori Newbie

            If you use a jboss-web.xml like mine, you probably miss the resource-ref element in web.xml in your portal instance. This is the requested part of my web.xml

            <resource-ref>
             <res-ref-name>jdbc/MyPortalDS</res-ref-name>
             <res-type>javax.sql.DataSource</res-type>
             <res-auth>Container</res-auth>
             <res-sharing-scope>Shareable</res-sharing-scope>
            </resource-ref>


            the res-ref-name must be the same datasource name you have in the datasource descriptor file in the deploy folder of your jboss. (for example portal-mysql-ds.xml); other fields are unknown for me and I didn't touch them.

            I hope this is usefull to you.
            Paolo.