1 Reply Latest reply on Jul 6, 2011 9:46 AM by developer.gubler

    JBoss 5.1 Question

    developer.gubler

      I am creating a web service that requires the use of the @Resource annotation.  I am also required to use JBoss 5.1.  Unfortunately, I can't seem to get it going with the the @Resource annotation in it.  What do I need to do in the configuration files to get this up and running?  I have looked in many locations, but without success =(

       

      Thanks,

      dg

        • 1. Re: JBoss 5.1 Question
          developer.gubler

          I think I found the answer.  I had to modify my @Resource annotation to include the mappedName.  Thus, it looks like the following:

           


          @Resource( mappedName="java:/WebServiceContext" )

          WebServiceContext wsc; 

           

          Now that I have that, I am receiving a different error in the server.log.  This time it is making reference to "mapped-name is required for org.apache.cxf.ws.rm.RMManager/bus".  I don't know where to put an annotation for that.  Anyone know what I am missing here?

           

          Thanks,

          dg