1 2 3 Previous Next 30 Replies Latest reply on Jul 14, 2017 7:38 AM by sganeshraj Go to original post
      • 30. Re: Problem packaging wsimport generated classes as AS 7 module
        sganeshraj

        Hi Tomaz Cerar,

        I just followed the procedure/steps you mentioned. Still i am unable to access the servlet which i moved to modules directory.

        When I try to do the same in wildfly it works.

         

        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?

         

        Regards,

        Ganeshraj.S

        1 2 3 Previous Next