Spring component-scan not working for EAR modules

Dear all,
I've been trying to migrate a Spring MVC solution from TomCat 5.5 to SAP NetWeaver NWDI for some days now, and I believe I need some help.
I've created one Software Component with two Development Components, one Web Module and one EAR Module. I have other libraries and DCs that are referenced by my Web Module as dependencies.
The EAR component references the Web Module.
The problem is that I have 3 applicationContext-*.xml files distributed among different Development Components and inside each one I do some bean initialization. I use the "component-scan" feature to load my annotated classes with @Controller, @Repository, @Service and so on.
Unfortunately, it seems that spring will only load the beans declared inside these JAR files which I have an applicationContext-XXX.xml defined. Spring won't load any classes declared inside other Development Components that doesn't have an applicationContext file configured.
So, when I try to deploy my EAR to the server (everything till deploying works fine), I get some "org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'XXX' is defined " exceptions.
So, what am I doing wrong?
Here is some of the config files that I'm using:
Inside applicationContext-AAA.xml:
<context:annotation-config />
<context:component-scan base-package=com.xxx.AAA"/>
Inside applicationContext-BBB.xml:
<context:annotation-config />
<context:component-scan base-package=com.xxx.BBB"/>
(the same for applicationContext-CCC.xml)
Inside my web.xml:
<context-param>
     <param-name>contextConfigLocation</param-name>
     <param-value>
          classpath*:applicationContext-AAA.xml
          classpath*:applicationContext-BBB.xml
          classpath*:applicationContext-CCC.xml
          </param-value>
</context-param>
<!-- LISTENERS -->
<listener>
     <listener-class>
          org.springframework.web.context.ContextLoaderListener
     </listener-class>
</listener>
Thanks and Regards,
Rafael Zanini

I have the same problem, do you find a solution ?

Similar Messages

  • Function Module not working for old Role

    Dears
    Function Module not working for old Role
    Function Module: /VIRSA/BAPI_AE_USERS_FOR_ROLES
    Before EHP4 upgrade this functional module working fine, but after updated users are not visible.
    We have chekced if the users are assigned directly users are visible but indirect (Position Based) assignment users are not apprearing.
    Pl check the fucntion module with given roles below and identify the root cause,
    EP_TRVL_ALL_CAB     - Old Role
    EP_TRN_TRVL_DRGC_V2 - New Role
    Regards
    Krishna Mohan CH
    9704500717

    Krishna,
    I do not think this BAPI is meant to be called by anyone but the application using it, and its functionality may therefore change without notice.
    What are you trying to achieve? Maybe there's a better way to do that...
    Frank.

  • Component Allocation LSMW not working for materials having alternative BOMs

    Hi Experts,
    I have a requirement in Component allocation LSMW.
    Component Allocation LSMW was created using a material which do not have an alternative BOM and the LSMW NOT working for materials having alternative BOMs. Currently iam using Batch Input Recording method in LSMW.Can any one suggest me is it possible by recording method in Lsmw. Because in transaction CA02 when we click the CompAlloc button in application tool bar we get a pop up screen with alternative BOM's, we have to choose any of them. If we choose any of the alternatie BOM in the pop up screen then it will be fixed always, but depending upon my flat file value of alternate BOM i need to pick the value. It is not static.
    Can any one suggest me is there any BAPI for this requirement.
    Your hel will be greatly appreciated.
    Thanks & Regards,
    Venkat.

    Use BDC instead of LSMW, that will solve your problem.

  • I installed OS X Mavericks and now my Epson Scanner Perfection Series V330 Photo refuses to open. Is there a new driver available? I am scanning my work for a book publication and I need my scanner urgently. I tried Image capture but scanner is not detect

    I installed OS X Mavericks and now my Epson Scanner Perfection Series V330 Photo refuses to open. Is there a new driver available? I am scanning my work for a book publication and I need my scanner urgently. I tried Image capture but scanner is not detected.

    Looks like all Epson scanners will fail under Mvrx. And who knows when an updated driver will be available. It's not as if they have had a while to do it already.
    After I noticed mine wouldn't work, I deleted my Workforce 610 and re-added it by pressing the + and instead of going for the IP versions that may pop up, that they say to do under normal conditions, select the Bonjour version. When you select the new printer/scanner in the Printers & Scanners Control Panel, then open the control window and then look in the dock and see if your printer is there. Right click on it and go to "Keep in Dock" for easy Access. In the printer panel there should be a little picture of a scanner on the right side. Click on it or type Commmand-3 and the built-in scanner software/utility will come up. After playing with it I think it's better than and there are some cool features that are not in the stock Epson software.
    Hope this helps.

  • Software Update Point Switching is not working for some Clients

    Hi there,
    I found nothing similar here and I hope this is the right section.
    I´m running ConfigMgr 2012 R2 where one of the Site Systems from one of the Primaries is located in an untrusted Forest in a perimeter Network. The Site System there has the MP, SUP and DB Roles. In general it works great. The Systems in that untrusted Forest
    get the SCCM Agent pushed, see and can install published Software packages and receive Windows Updates. But there are a few systems where everything works, except Windows Updates.
    So I had a deeper look at what is happening and found out that the SUP switching is not working for them. They always try to contact the SUP from the Primary, which they cannot reach (this is intended).
    From how I understand SUP switching as described here
    http://blogs.technet.com/b/configmgrteam/archive/2013/03/27/software-update-points-in-cm2012sp1.aspx#pi140062=1
    the Windows Update Agent tries to connect to a SUP every 30 minutes and after 4 failed attempts he will try to connect to the next one until he finds one which works.
    As I said before, this seems to work for most systems in the untrusted forest, but some do not make any intentions to switch the SUP.
    So my next step was to find out from where the Update Agent can get the information of the available SUPs. I think they either don´t receive the information that other SUPs exist, or if the Information is there, they don´t realize that there´s an error and
    make no attempt to switch.
    I used the System Center Support Center to gather all Information from some of the systems with that problems (Log Files, WMI information, registry information, policies etc.) but I cannot find where SCCM or the Update Agent store the information which SUPs
    are available in my environment.
    I´m sure the problem is on the Systems which fail to connect to the right SUP and not in the SCCM infrastructure itself, because for most of the systems everything is working just perfect. Unfortunately in the Blog Post above there´s also no information
    where this information is stored and how it is obtained by the clients. In the comments there´s even one post which describes the same problem I have here, but there was no answer. I hope someone can point me into the right direction, because I´m stuck currently.
    Things I tried additionally to all the log file / WMI / registry sniffing:
    Removing the Software Distribution Folder and restarting the Windows Update Agent
    Removing the WindowsUpdate Registry folder in the HKLM\SOFTWARE\Policies\Windows section in the Registry and restarting the Windows Update Agent.
    Tried to reset the WUAgent with wuauclt /Resetauthorization additionally to the steps above.
    I also tried to manually set the WUServer and WUStatusServer Keys in the registry to the new Server, but as soon as the next Update Scan cycle runs, the value is set back to the URL of the Primary Sites SUP
    Is someone having additional ideas? It seems to me older systems are more affected (which were configured for a standard WSUS before SCCM 2012 was deployed) than newer ones which were installed when SCCM was in place already. But I don´t know what else to
    "reset" on those machines without reinstalling them.

    Thank you very much for your response. I must have missed that one by looking through numerous Logfiles. In this, there´s indeed a list of all available SUPs. So according to the LocationServices.log the machine should have a choice.
    The WMI Key however, contains just one entry and this is the URL of the Primaries SUP which is not reachable in the untrusted forest. Is it OK that the WMI entry includes only one entry? If yes, what process is putting the results from the LocationServices
    into WMI? It seems like the Windows Update Agent is feeded from the WMI Key then. If this is the case my problems seems to be the "communication path" between these two components.
    Is this the job from the SCCM Agent, the Windows Update Agent or maybe some third component I´m not aware of? I wonder how I can fix this.

  • IPhone 6 External Mic not working for Siri/Dictation

    I am finding that the external mic on my iPhone 6 works for phone calls and voice memos, but does not work for Siri/Dictation.  When I plug in the earbuds, they work for everything (including Siri/Dictation).
    Was chatting to Apple support who had me reset all settings.  I thought that worked, but realized that after a reset, Siri is off and I was talking to "Voice control" (which works).  When I turned Siri back on, it does not work.
    I have two questions for the community to see if you can help:
    1- I have been assuming this must be a software problem since the mic does work for non-Siri access.  But is that true?  Is there a hardware component that Siri depends on which could be faulty here?
    2- If it is software, what action should I try to address it?  I have done a reset all settings already and that did not help.
    Doug

    Hi, everyone.  I talked to Apple Genius at Apple Store last week, she said it should be a software issue and I needed to reset my iphone 6 plus as a new device and I can not use the backup restore from my iCloud, it was because the microphone bug or glitch can be in the backup also. Ok, followed her advice, erased all contents and set my iphone as a new device , the microphone worked for an hour, but went bad again.  I used "voice memo" app from Apple to test the microphone. It is the best tool since it doesn't involve any provider's network and it doesn't need another person's phone to listen and test.  If you can hear your voice recording clearly, then the mic works.  I tested it 3-4 times a day for a few days now, half of the time the mic doesn't work.  So, set as a new device isn't working. The issue is intermittent and it comes and goes as it likes, so very annoying. I carry my Apple EarPods with me in these past few days ust in case I need to make important phone calls.  Will need to go back to Apple Genius this weekend for sure.  Will give update after the weekend.

  • Additional Fields for ESS-Business Card Not Working for Certain Countries

    Dear Experts,
    We were trying to configure the additional fields to be displayed in Business Card - Overview Screen for all countries. We don't have problem configure and get the new fields display for Malaysia (Molga = 14) but having problem for the field to display for Hong Kong (Molga = 27) and Singapore (Molga - 25).
    The strange thing is I am following the same steps as I configured for Malaysia. Somehow it is not working for Hong Kong and Singapore. As I understand, there is only 1 place to configure in SPRO for this requirement:
    Personnel Management -> Employee Self-Service -> Service-Specific Settings -> Own Data -> Customizing of Personal Information Screens -> Determine Fields for Business Card on Overview Screen
    Please help!

    Hi Siddhart,
    Thank you for the information. We are currently in EhP3 with below Support Components installed.
    Software Component: SAP_HR
    Release: 600
    Level: 60
    Highest Support Package: SAPKE60060
    Software Component: EA-HR
    Release: 603
    Level: 34
    Highest Support Package: SAPK-60334INEAHR
    The note 1159911 provided is within SAPK-60304INEAHR. Thus, I don't think this is the root cause of this inconsistency base on the Highest Support Package installed in our system.
    Anymore hint? Anyone? Please...

  • Reg: FM - DATE_CONVERT_TO_FACTORYDATE not working for 2011

    Hi All,
    The FM - DATE_CONVERT_TO_FACTORYDATE was working correctly so long.
    This FM is not working for the year 2011 alone!!
    When i check the FM, it is actually a C module which is called and is not allowed for debugging.
    Can anyone help as to what could be the problem. Will some customizing solve the issue?
    Kindly help.
    Also let me know if there is an alternative FM for this DATE_CONVERT_TO_FACTORYDATE.
    Thanks in advance.
    Regards
    Shanthi

    Hi Shanti,
    see SAP Note 1529649: Factory Calendar expires 2010
    kind regards
    Paul Q

  • GUI_DOWNLOAD does not work for background printing

    Hi,
    Need some help urgently.
    Function moduel GUI_DOWNLOAD does not work for background printing. I want to know how this issue can be handled or we have to use some other function module.
    We are using this in a report and i get the error dump OBJECTS_OBJREF_NOT_ASSIGNED when we run this report in background.
    Kindly suggest.
    Best Regards,
    Abbasi

    you can not use gui_download in background.
    Try searching first, this thing has been posted a thousand times already

  • CF10 64bit  Apache connector (mod_jk.so) does not work for Apache2.4.3 (windows)

    CF10 64bit  Apache connector (mod_jk.so) does not work for Apache2.4.3 (win64), where can I get a module that works?
    I get this error from Apache :
    C:\www\Apache2.4\bin>httpd -t
    httpd: Syntax error on line 741 of C:/www/Apache2.4/conf/httpd.conf: Syntax error on line 2 of C:/www/Apache2.4/conf/mod_jk.conf: Cannot load C:\\ColdFusion10\\config\\wsconfig\\1\\mod_jk.so into server: The specified procedure could not be found.
    I have already tried manually extracting the pre-built mod_jk22.so from the wsconfig.jar with same results.
    If I switch to Apache 2.2.22 64bit, it does work.  what I need is to be able to run on Apache 2.4.

    Please check out this link.
    http://rob.brooks-bilson.com/index.cfm/2012/2/21/Installing-ColdFusion-10-with-Apache-on-W indows
    In this link, they are configuring with Apache 2.2 only.
    When we were working colfusion 9 with Linux and apache, we had the same problem, it will work when it connect to Apache 2.0 but not with Apache 2.2 version.

  • Automatic Selected Item of List Builder Component Does not work (anymore)

    Hi all,
    Í'm working with Xcelsius Engage 2008 (version 5.3.2.0) and the automatic selection of an item at runtime of the list builder component does not work anymore. In a previous version it worked very well.
    Here's the case: at runtime I want that the list builder component automatically puts the first item in the list to the destination section and selects it, so that a graph can show the underlying pushed data. In the previous version it worked o.k., but now at runtime the destination section remains empty at startup. If I interactively select an item from the source section to the destination section and update the list builder, the data is shown correctly, but it must done automatically, which worked o.k. in an earlier version of Xcelsius 2008...
    This are my settings of the list builder component (which was running correctly earlier..):
    -at the general tab I defined a range of labels
    -at the general tab I defined 2 data column insertion series
    -at the behaviour-common tab I defined selected items: position mode; items: the first item of the label list; insert items at runtime
    -all of the data comes from an external xml data source
    You can find an example of the visualisation at: http://onderzoek2.evinet.nl/projecten/10169/dynarap.htm. You will see that at start-up there is no item visible and selected in the destination section of the list builder....
    I've tried every combinations of settings, build up the component from scratch, but its not working (anymore).
    Greetings Erik-Jan Vriens

    Hi njnits,
    Print view button is a standard component of Xcelsius: look at it in the IDE
    Exporting to Powerpoint is also a standard functionality, so yes. For this particular dashboard/report all data resides in an external xml-file which have to be accessible for Powerpoint
    All visualisations, not only the table,  in this/report fetch their data from an external xml-file, but a QaaWS-connection will also do the trick. You will have to write this dedicated service. In our case the xml-data is also generated automatically.
    The external data is best defined as a sort of matrix, consisting of approx. 100 columns by 1000 rows. I agree it takes a lot of Xcelsius but it does the job....
    Hopes this info helps....

  • EP6.0 SP2 to EP 7 upgrade - UWL not working for PCR approvals

    Hi there,
    Following the EP 7.0 migration, the UWL is not working for PCR approvals.  Following the registration of the WebFlowConnector, using the default configuration, clicking a PCR approval item in the Inbox brings up the following error:
    HTTP handler for starting an external service cannot be read
    In order to rectify this, the following configuration file was uploaded.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd' [  ]>
    <UWLConfiguration version="1.0">
      <ItemTypes>
        <ItemType name="uwl.task.webflow.TS50000075" connector="WebFlowConnector" defaultView="defaultView" defaultAction="launchIView" executionMode="default">
          <ItemTypeCriteria systemId="D46CLNT080" externalType="TS50000075" connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchIView" handler="IViewLauncher">
              <Properties>
                <Property name="iview" value="com.sap.pct.hcm.isrdispatcher.default"/>
                <Property name="openInNewWindow" value="yes"/>
              </Properties>
              <Descriptions default="launchIView"/>
            </Action>
          </Actions>
        </ItemType>
      </ItemTypes>
    </UWLConfiguration>
    Following the new configuration, clicking the item HAS NO EFFECT i.e. no window, no action, nothing.  The only available option available is an option to Forward the item.
    I have tried the following ItemType names with the same result:
    1. uwl.task.webflow.TS50000075.D46CLNT080
    2. uwl.task.webflow.D46CLNT080_TS50000075
    Has anyone encountered this before?
    Cheers
    John

    FYI.  The problem seems to be occuring as a result of the running EP7.0 with a SAP R/3 46C backend.
    I did manage to get this working in the end.  I had to create an iView say "myISRDispatcher" based on the portal component com.sap.pct.hcm.isrdispatcher.default.  Update the UWL configuration to refer tot his PCD location as shown below:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd' [  ]>
    <UWLConfiguration version="1.0">
      <ItemTypes>
        <ItemType name="uwl.task.webflow.TS50000075" connector="WebFlowConnector" defaultView="defaultView" defaultAction="launchIView" executionMode="default">
          <ItemTypeCriteria systemId="D46CLNT080" externalType="TS50000075" connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchIView" handler="IViewLauncher">
              <Properties>
                <Property name="iview" value="pcd:portal_content/myISRDispatcher"/>
                <Property name="openInNewWindow" value="yes"/>
              </Properties>
              <Descriptions default="launchIView"/>
            </Action>
          </Actions>
        </ItemType>
      </ItemTypes>
    </UWLConfiguration>

  • Will Infoset Query work for Function Module

    HI Can someone let me know will a Infoset wuery works for Function module or not. I have 3 tables which i need to extract on, i am building a Infoset Query on 2 tables and using this in my Function Module to join on 3rd table. I have some conditions on 3rd tbale which i need to pull only those records.
    When ever i check the syntax it always gives me a message
    The type "ZUSERLOGINQRY" is unknown. ( This is my Infoset query name).
    Can any one help me on this.
    Thanks,
    Kris.

    HI Pat thanks for responding i havent done this earlier so i am not sure how to declare une code under Infoset Query ---> Extras. I am getting some duplicates in Infoset Query, can you let me know how to clear all those duplicates...
    Appreciate you help.
    Kris.

  • Export to powerpoint not working for certain views

    Hi All,
    I am in the process of implementation of STVN 2.1 Pre EHP3 version of Nakisa OrgChart for one of my clients.
    During testing, it is observed that export to powerpoint object is not working for the following views.
    1. Condensed Org. Chart
    2. Compressed OrgChart -Only works when we expand at least one position
    3. Horizontal OrgChart - Condensed children-Only works when we expand at least one position
    In all the other views the export to Powerpoint object are working fine.
    Export of powerpoint image is working in all the scenarios. We are facing issue only with powerpoint object.
    I have implemented Export Pack 3.0 for OrgChart.
    J. Thomas

    Hi Luke,
    Thanks for the response.
    Yes...I have installed SP1.0. I have also applied Export Pack 3.0.
    The following features are working fine.
    1) Export to PDF
    2) Export to JPEG
    3) Export to Powerpoint Image.
    Export to Powerpoint Object is also working fine if the style is 'Vertical'. The issue is only in case of 'Condensed', 'Compressed' and 'Horizontal OrgChart - Condensed children' sytles. Here again, if we expand at least one position, the export is working.
    The error message that is flashed for the user is the usual one....pasted below.
    Object Variable or With Blovk Variable Not Set.
    Export To PowerPoint 
    Compatibility 
    We currently support:
    Microsoft PowerPoint 2000 / 2002
    Microsoft PowerPoint 2003
    Note: To ensure compatability, you may be prompted to install "Service Pack 6 for Visual Basic Runtime." If so, you must accept the installation and once installed it may ask for a system reboot which you may ignore. 
    ActiveX Security 
    Depending on your browser settings, you may be prompted to install 'Nakisa Office Components.cab'. This is our ActiveX component that will allow you to use our Exporting functionality.
    You may also be prompted to allow the ActiveX to run. If so, you must select 'Yes' to continue.
    Note: If you are not prompted and the export fails to occur, please verify your Microsoft Office installation and verify your browser's ActiveX settings are set to 'Enable' or 'Prompt'.
    In the log file, the following error message is displayed.
    ERROR: ChartingXMLProcessor : generateLayoutXML : Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 1, position 5081.
    Warm regards,
    J. Thomas

  • Smart file component(html5smartfile) not working

    votefavorite
    I have been working on developing a custom extjs console to enable author drop an asset usinghtml5smartfile component. But somehow, the html5smartfile component is not working the way it should. The Area where an author can drop an asset is not displaying. The same is working fine if i am creating a CQ5 dialog. But in my case where i have created a window it's not working.
    i have declared my smartfile component like this :-
    var assetLinkDropField = { xtype: 'html5smartfile', fieldLabel: 'Asset Link', ddAccept: 'video/.*',ddGroups: 'media', fileReferenceParameter: './linkUrl', name: './linkUrl', allowUpload: false, allowFileNameEditing: false, allowFileReference: true, transferFileName: false };
    but this is rendering like this:-
    i have tried a lot, after working for 8-10 hours, i found out that the CQ5 dialog updates the view for the component but in case of my window, i have to update it myself. Thus, with a slight manipulation, i just succeeded in displaying the drag area by by tweaking the declaration like this:-
    var assetLinkDropField = { xtype: 'html5smartfile', fieldLabel: 'Asset Link', ddAccept: 'video/.*',ddGroups: 'media', fileReferenceParameter: './linkUrl', name: './linkUrl', allowUpload: false, allowFileNameEditing: false, allowFileReference: true, transferFileName: false, listeners: { afterlayout: function () { this.updateView(); } } }
    so now the panel looks like:-
    but still the Drag and Drop is not working. My Window declaration is like this:-
    win = new CQ.Ext.Window({ height          : 750, width           : 700, layout          : 'anchor', // animateTarget   : btn.el, closeAction     : 'close', // Prevent destruction on Close id              : 'manageLinkWindow', title           : '<b>Multi Link Widget Dialog</b>', frame           : true, draggable       : false,modal           : false, //Mask entire page constrain       : true, buttonAlign     : 'center', items : [assetLinkDropField] }); }
    Can anyone please look into this issue. I am stuck here for 3 days. Thanks in Advance.

    add a slider component to the main (loading) swf's library.

Maybe you are looking for

  • How do I export images in the correct order?

    Hello, this is probably an easy question - how do I export my images in the order in which they were taken? At the moment, the first image I've taken is exported last (so img_6700 is given the name image-099 and img_6799 is given image-001). I tried

  • Cannot view Keynote slides except in slideshow or slide navigator

    I'm using Keynote '09 version 5.0.3 (791) on Macbook Pro Intel Core 2 Duo with OS X 10.6.3. Been working fine ... always. Today I installed the latest Apple update and ... bad times. Firstly, many of my settings (screensaver, desktop, etc.) have chan

  • FreeRADIUS rlm_krb5 seg fault

    I'm having a few problems setting up freeRadius with a kerberos backend on arch and would really appreciate a little help. Kernal: Linux 3.11.6-1-ARCH i686 freeradius 3.0.0-1 All the configuration changes I have made to the default configs are listed

  • Photoshop CS5 & Epson Stylus 3800 problem (Mac)

    I am experiencing a frustrating problem with Adobe Photoshop CS5 and Epson Stylus Pro 3800 printer with a Mac. Trying to print on H-M paper, using the appropriate settings (see below), I find that under "Print Settings" on the printer driver, all the

  • Importing from entourage 2001

    hello I just bought a new iMac G5 and I would like to import my mail from my old computer, where I was using entourage 2001....it is driving me nuts trying to do this! I have tried searching in the Microsoft User Folder for a Mail folder to copy to m