Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-12102

my annotated servlets from modules directory is not getting loaded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 7.1.0.ER2
    • Classloading
    • None
    • Hide

      Steps:
      1. created jandex.idx for simple.jar
      simple.jar is just having a servlet which just says helloworld.(Note: I have used annotation to mark it as servlet)
      2. moved my servlet(simple.jar) to modules directory. <jboss location>/modules/simple/main
      3. created modules.xml in which resource-root points to simple.jar
      4. In my war file i dont have anything other than META-INF/jboss-deployment-structure.xml which points to 'simple' module with annotations="true" and deployed the war file
      5. brought up the jboss and tried to access the <localhost>/simple/Simple
      note: simple=application name and Simple=servlet name

      Can you please let me know what i am missing in 7.X series?

      Show
      Steps: 1. created jandex.idx for simple.jar simple.jar is just having a servlet which just says helloworld.(Note: I have used annotation to mark it as servlet) 2. moved my servlet(simple.jar) to modules directory. <jboss location>/modules/simple/main 3. created modules.xml in which resource-root points to simple.jar 4. In my war file i dont have anything other than META-INF/jboss-deployment-structure.xml which points to 'simple' module with annotations="true" and deployed the war file 5. brought up the jboss and tried to access the <localhost>/simple/Simple note: simple=application name and Simple=servlet name Can you please let me know what i am missing in 7.X series?

      ->i have a simple ANNOTATED helloworld servlet but i moved it to modules directory(jar file). Created jandex index too.
      -> In my war file i just have a jboss-deployment-structure.xml to point to that module.

      After deployment, when i try to access that servlet it says resource not available.

      Above scenario works perfectly in wildfly.

        1. module.xml
          1 kB
        2. simple.jar
          2 kB
        3. simple.war
          1 kB

              pjurak Petr Jurak (Inactive)
              sganeshraj Ganeshraj S (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: