3 Replies Latest reply on May 19, 2003 10:46 PM by theone

    EAR deployment

    theone Newbie

      Hi, Pardon me for the lesser knowledge of the subject. I am trying to deploy a .EAR file in the "deploy" directory of JBOSS-3.0.4. My directory structure is :-

      MyApp.ear
      ---->META-INF
      ---->MySample.war
      (META-INF has got an application.xml which is : -


      <display-name>Sampleapp</display-name>



      <web-uri>MySample.war</web-uri>
      <context-root>MySample</context-root>


      .....)
      MySample.war has following files:-
      index.jsp
      WEB-INF
      WEB-INF has
      web.xml with the required entries
      images(dir having images)
      classes--->lib
      classes--->A Servlet class

      All the files are in the exploded format.
      Servlet runs ok whenever i hit it from the html page. The PROBLEM is "I dont get my images for the

      tags in my html file. Why is it behaving this way. Can somebody tell me what is the root of this ear-war file,
      and in the exploded format am i supposed to give the war files with a ".war" extension.

      plz hlp.

      regards,
      tone









        • 1. Re: EAR deployment
          Harald Gliebe Novice

          Do you get the image with
          ?
          You have to add the context-root or use relative URLs.

          Regards,
          Harald

          • 2. Re: EAR deployment
            theone Newbie

            hi,
            Thanx for reply. I have already added the context root in my application.xml file. I had also provided my application.xml in the original question. And when i am giving path like... , this is already a relative path. Plz correct me if i am mistaken somewhere. i also tried the way u suggested
            But it doesnt work. I am also confused regarding the root of the application. is it the .ear directory or the .war directory.
            Plz help

            regards,
            TOne.

            • 3. Re: EAR deployment
              theone Newbie

              hi,
              Thanx for reply. I have already added the context root in my application.xml file. I had also provided my application.xml in the original question. And when i am giving path like... , this is already a relative path. Plz correct me if i am mistaken somewhere. i also tried the way u suggested
              But it doesnt work. I am also confused regarding the root of the application. is it the .ear directory or the .war directory.
              Plz help

              regards,
              TOne.