3 Replies Latest reply on Mar 3, 2009 11:11 PM by peterj

    Unable to access static htmls files and JSPs placed in file

    guy.finger

      Hi

      Recently I am trying to upgrade to JBoss5.0.1 GA version. Previously we are using JBoss4.2.1GA. We have some html and JSP pages need to be accessed from file system. We have placed them under C:/Root/test.war folder. To access these web these pages we have modifed following section in jboss-server.xml file available under ${JBossRoot}/server/default/conf folder and it is working fine.

      Code:

      <mbean code="org.jboss.deployment.scanner.URLDeploymentScanner"
       name="jboss.deployment:type=DeploymentScanner,flavor=URL">
      
       <attribute name="URLs">
       deploy/,../../Root/
       </attribute>
       <attribute name="RecursiveSearch">True</attribute>
      
       </mbean>


      When I am trying to browse the same file in JBoss5, i do not find this section. So I have serched the forums and tried following things to access pages. None of them are working fine.

      1) Addibng Context entry in server.xml - Failed
       2) Modified profile.xml available under /conf/bootstrap file - Not working
      
       Also read the JIRA issue entered related to this issue -
      
       https://jira.jboss.org/jira/browse/JBAS-6368

      Please advise.

      Thanks
      Raj

        • 1. Re: Unable to access static htmls files and JSPs placed in f
          peterj

          Look at the applicationURIs attribute for the SerializableDeploymentRepositoryFactory bean in the server/xxx/conf/bootstrap/profile-repository.xml file. Add new value entry(s) for your external directories.

          • 2. Re: Unable to access static htmls files and JSPs placed in f
            guy.finger

            Hi Peter

            Thanks for the response.

            I have edited the profile-repository.xml file to add my external file system entry. When I started the changes, I am getting exceptions while deploying the war file. Just wanted to let you know that I have few servlets in web.xml file which are availble in a jar file. Can you suggest me where do I need to specify the path of the jar files available in filesystem so that the jars come into Jboss classpath? We used to specify the classpath in following file in previous versions.

            $(JBossRoot}/server/default/deploy/jboss-web.deployer/META-INF/jboss-service.xml
            
            <classpath codebase="C:/Root/test1.war" archives="servlest.jar" />
            
            The above line we used to specify in that file as first line after the XML spec.


            I am looking something similar to this one.

            I only see 2 new files in that folder in JBoss 5. jboss-beans.xml and jboss-structure.xml.

            Sp please advise me with simple example.

            Thanks
            Raj
            Thanks
            Raj

            • 3. Re: Unable to access static htmls files and JSPs placed in f
              peterj

              What exceptions?

              JAR files containing servlets go into WEB-INF/lib