ASDeploymentException: Could not resolve a persistence unit corresponding

Hi Everyone,
I have been modifying our enterprise application to include 3 .war flies rather than 2 .war files previously. When I deploy the new .ear file, I get the following deployment exception.
I have tried adding the ejb reference for ejb "BiLinkGroupFacade" to the web.xml file for the new .war package, however when I do this I get teh same exception for another ejb in our enterprise app.
Has anyone encountered this problem before?
Thanks very much for your time,
lpg
Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Could not resolve a persistence unit corresponding to the persistence-context-ref-name [ca.avant.amber.bilink.BiLinkGroupFacade/em] in the scope of the module called []. Please verify your application.
at com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPCRefs(BundleDescriptor.java:702)
at com.sun.enterprise.deployment.EjbBundleDescriptor.findReferencedPUs(EjbBundleDescriptor.java:862)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:165)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:132)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
at com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
at com.sun.enterprise.deployment.backend.AppDeployer.postDeploy(AppDeployer.java:392)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:251)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:276)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:294)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:555)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:564)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(AutoDeployer.java:545)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:492)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:267)
at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:374)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
;_RequestID=c409950f-6e65-40b8-91dd-35b49289d322;|"DPL8011: autodeployment failure while deploying the application : Could not resolve a persistence unit corresponding to the persistence-context-ref-name [ca.avant.amber.bilink.BiLinkGroupFacade/em] in the scope of the module called []. Please verify your application.
[AutoDeploy] Autodeploy failed : /home/lgrimes/MyRuntimeEnv/lgdomain9.1/autodeploy/amber.ear.

This error deals with EntityManager configuration rather than EJB references. It means you have a @PersistenceContext dependency that cannot be resolved to its corresponding persistence unit. If the unitName attribute is specified, then the deployment code is not finding a persistence unit matching that name. If there's no unitName specified then there are 0 persistence units found.

Similar Messages

  • "Could not resolve a persistence unit" error...

    Hello,
    I created a Netbeans Visual Web application. I added an Entity Class from a database table. A resource is added into Server Resources part. when I look at its properties, I see that it's JNDI name is set to "bitkiwiki" and I check the Sun Application Server's JDBC Resources and I see "bitkiwiki" in JDBC Resources.
    My controller class has a EntityManagerFactory element:
        @PersistenceUnit(unitName = "bitkiwiki")
        private EntityManagerFactory emf;When I compile the project it compiles successfully but when I deploy it, I get an error like this:
    Deploying application in domain failed; Deployment Error -- Could not resolve a persistence unit corresponding to the persistence-unit-ref-name .......
    The Persistance UnitName exists in the server resources but it still complains about it.
    What's the problem you think?
    Thanks.

    In the persistence.xml you have something like this:
    <persistence-unit name="EJBCustomerPU" transaction-type="JTA">
    <jta-data-source>cust</jta-data-source>
    <properties>
    </properties>
    </persistence-unit>
    The unitName in the annotation should equal "EJBCustomerPU". I think the "bitkiwiki" is wrong. The "cust" in the above persistence.xml should be the resource you mention in the jdbc section of the app server admin.

  • "TNS could not resolve service name" in Discoverer4i

    Hi All,
    I just installed the older version Discoverer 4i and pasted the TNSNAMES in the corresponding folders. I can login via disco viewer but not in Discoverer Desktop.
    When login through Discoverer Desktop it throughs an error like 'TNS could not resolve the service name' but eventhough I have pasted the TNSNAMES.
    Please suggest me is there any change will do in Windows Registry? and after installed the Disco4i I have installed the Disco10g which is working perfectly.
    Please suggest and help me what should I do.
    Thanks,
    Kamal

    Hi Akshay Salkar,
    Find the file tnsname.ora file there you modify the following
    myora =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = [IP ADDRESS OF YOUR
    SYSTEM] )(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = myora)
    all the best

  • ORA-12514: TNS:listener could not resolve SERVICE_NAME given in conne

    I am running Oracle 8.1.7.1.4 on Windows 2000. After I created a database TEST using a script created by my previous colleague, I got the following error:
    sqlplus SYSTEM/PASSWORD@TEST
    ERROR:
    ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor
    Enter user-name:
    But if I enter system as username and the password, I could connect to sqlplus without any problem.
    I checked the OracleServiceTest is running as a Service, and here is what in my tnsnames.ora.
    TEST.UNHQ.UN.ORG =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TEST)
    Here is what in my listener.ora file.
    (SID_DESC =
    (GLOBAL_DBNAME = TEST)
    (ORACLE_HOME = d:\oracle\ora817)
    (SID_NAME = TEST)
    The following is what in my sqlnet.ora file.
    NAMES.DEFAULT_DOMAIN = unhq.un.org
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
    Here are a few important lines in my init.ora file.
    db_name=TEST
    instance_name = TEST
    service_names = TEST
    I tried to use sqlplus system/[email protected], but got the same error.
    Any help would be greatly appreciated.
    Thanks,
    Jane

    Hi Werner:
    Thank you very much for your suggestions. Yeah, I have
    a db_domain = UNHQ.UN.ORG in my init.ora file. I tried
    to append it manually into the service_names in my
    init.ora file and made corresponding changes to
    tnsnames.ora file. Now I could access to TEST database
    without any problem.
    I have another question. How can I prevent the
    db_domain from appending to SERVICE_NAMES by default?
    By set it to db_domain="" or just don't have it in my
    init.ora file? I don't want to have the domain name
    appearing in my SERVICE_NAMES.
    Thanks,
    Jane

  • DNS Set Up system throw as ORA-12154; TNS :could not resolve the connect id

    Hi,
    While i'm creating DNS set up system throws below message
    unable to connect
    SQLState=08004
    DNS Set Up for instantclient(win32-10.2.0.4) system throw as ORA-12154; TNS :could not resolve the connect identified specified.
    operationg system:xp
    dir path:C:\Oracle\instantclient10_2
    TNSNAMES.ORA(C:\Oracle\instantclient10_2\NetWork\ADMIN) Contants
    YourTNSName =sankar
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT =1521))
    (CONNECT_DATA =
    (SID =sankar)
    (SERVER = DEDICATED)
    dir contains:
    sqresus.dll,
    sqresja.dll
    sqoras32.dll
    sqora32.dll
    oraociei10.dll
    oraocci10.dll
    orannzsbb10.dll
    ojdbc14.jar
    ocijdbc10.dll
    ociw32.dll
    oci.dll
    classes12.jar

    user7197586 wrote:
    Hi
    I have been created one DBLink it's created but when i am trying to access the data through the link it's raise error as
    "ORA-12154: TNS:could not resolve the connect identifier specified"
    CREATE
    PUBLIC DATABASE LINK
    Vrd_tcplink
    CONNECT TO
    "SAPVRD"
    IDENTIFIED BY
    "manager123"
    USING
    'VRD_TCP.WORLD'
    created this above dblink
    Kindly Suggest to wau out.
    Regards,
    Sachin
    When using a dblink, the database with the link is acting as a client to the remote database ... exactly like sqlplus running on the db server.
    read: http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/ ora-12154tns-03505

  • Session closed due to Error: Could not Resolve hos...

    Hi,
    I''m trying to sort out connection issues for my auntie. She has a BT Homehub 5 with the latest firmware.
    However, she is suffering from reboots and lost connections all the time. I have reviewed the log files and it is full of the following messages:
    74.270000 CWMP Session closed due to error: Could not resolve host
    Any ideas as i am stumped. Its a fairly recent installation ( 4 months or so) and she has only recently started to use the Wifi. It was ok when wired.
    Simon

    If it is DEFINITELY a wireless problem only, then download InSSider and run the program. This will tell you if you have are using a congested wifi channel.......
    You can then go into the settings and after picking a less congested channel, turn off the "smart wireless" setting.....
    Although the wireless problem wouldn't cause the rebooting problem......
    If you found this post helpful, then please click the star on the left, after all, I'm only trying to help........

  • Could not resolve fx:Script (or fx: Declarations to a component implementation

    Hi,
    I am trying to compile a file into swf using mxmlc in command line.  When it is a very simple mxml, compile is successful. But when the file  contaion the fx name space, I get a compile error like: could not  resolve COMPONENT_NAME to a component implementation.
    I have to be able to do this, without the help of Flash Builder  because I am working on a project where I will need to generate swf  files from mxml files  which we generate the code of.
    I tried it with SDK version 4.0.0.,  version 4.1.0 build 16076 and 4.5.0. build 20967. And I also tried it in 3 different computers. Note: Our notebooks has Windows 7 OS - locale:Turkish.
     I read that this error is specific to some locales like Turkish here: http://forums.adobe.com/message/892431#892431, . But I couldnt find the solution.
    Any suggestions?
    The simple code I am trying to compile is(which is generated by Flash Builder 4 and can be compiled there):
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                      xmlns:s="library://ns.adobe.com/flex/spark"
                      xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
    </s:Application>

    Could you please file a bug at http://bugs.adobe.com/jira with sample code that fails to compile on a Turkish system, so that we can track this problem and fix it in a future release?
    Gordon Smith
    Adobe Flex SDK Team

  • Upgrade from Burrito to 4.5, Could not resolve MobileApplication tag?

    Hello:
    As the topic states, I just upgraded from Burrito to 4.5 today. I imported my app and I get the following error:
    Could not resolve <s:MobileApplication> to a component implementation.    ...    line 6    Flex Problem
    Did they take out MobileApplication? If so how can I support the back button on my Xoom device now?
    Paul

    MobileApplication was renamed to ViewNavigatorApplication.
    Here's an example of how you would cancel the back button in the final 4.5 release:
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView"
            backKeyPressed="view1_backKeyPressedHandler()">
        <fx:Script>
            <![CDATA[
                private function view1_backKeyPressedHandler():void {
                    event.preventDefault();
                    // do something else here 
            ]]>
        </fx:Script>
    </s:View>

  • AIR SDK 3.6 Could not resolve component

    I have Flash Builder 4.6 and the AIR SDK version is 3.5, Today i update the AIR SDK version to 3.6, However when i debug the appliction, the Flash Builder popup a error for "Could not resolve <s:ViewNavigatorApplication> to a component implementation." .
    I have downloaded AIR SDK3.6 from here: http://www.adobe.com/devnet/air/air-sdk-download.html

    Hi Jack,
    Please download AIR SDK from a small note below on http://www.adobe.com/devnet/air/air-sdk-download.html
    for flex users.
    Note : Flex users will need to download the original AIR SDK without the new compiler.
    Please let us know if this fixes your issue.
    Thanks,
    Krati

  • Could not resolve...

    Hi everyone,
    I'm currently playing around with the examples in AFCS and
    noticed when running Flexternal.mxml that I get an error at line 27
    <rtc:AdobeHSAuthenticator authenticationKey="{authToken}"
    id="auth"/>
    Severity and Description Path Resource Location Creation Time
    Id Could not resolve <rtc:AdobeHSAuthenticator> to a
    component implementation. AFCS_Playground/src Flexternal.mxml line
    27 1237318325609 57
    Any ideas? I'm pretty sure I set up the SDK properly,
    thanks

    Hi,
    There was a bug on our side in the example since we updated
    the namespace recently in last release. So, in the application tag
    in Flexternal.mxml you need to specify xmlns:rtc="AfcsNameSpace"
    instead of "CocomoNameSpace" . and the error will be fixed. I am
    also attaching the entire code with the update in case you need it.
    Thanks again for the catch.
    Regards
    Hironmay Basu

  • Error: Could not resolve s:SolidColor to a component implementation

    So I have a library project and in that project I have a CustomDataGridBackgroundSkin file which is as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
                 xmlns:s="library://ns.adobe.com/flex/spark"
                 xmlns:mx="library://ns.adobe.com/flex/mx"
                 minWidth="25" minHeight="25">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <!-- layer 4: fill highlight -->
        <s:Rect left="0" right="0" top="0" height="100%" >
            <s:fill>
                <spark:SolidColor color="0x968f89" alpha="1" />
            </s:fill>
        </s:Rect>
    </s:SparkSkin>
    I am simply trying to get an ant task to compile this library to SWC, but I am getting a " Error: Could not resolve <s:SolidColor> to a component implementation" error during compile.  The only way to fix it is to add these lines of code (bold).
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
                 xmlns:s="library://ns.adobe.com/flex/spark"
                 xmlns:mx="library://ns.adobe.com/flex/mx"
                xmlns:spark="mx.graphics.*"
                 minWidth="25" minHeight="25">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <!-- layer 4: fill highlight -->
        <s:Rect left="0" right="0" top="0" height="100%" >
            <s:fill>
                <spark:SolidColor color="0x968f89" alpha="1" />
            </s:fill>
        </s:Rect>
    </s:SparkSkin>
    I can also get this error to go away if I put this line in my build.xml file: "<include-sources dir="${src.dir}" includes="*"/>"
    But then I get this error => "[compc] Error: Unsupported file type: C:\dev_projects\features\flex4version\web\OneVoice\src\components.xml"
    components.xml is my manifest file.
    Anyone know what the issue is?  Why would I need the xmlns:spark="mx.graphics.*" namespace when I have xmlns:s="library://ns.adobe.com/flex/spark"?

    Curious. Which version of the Flex SDK are you using?
    Does this work if you try in a brand new project using Flex 4.1 or Flex Hero?
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx">
        <s:controlBarContent>
            <s:Button label="goto s1" click="currentState = 's1';" />
            <s:Button label="goto s2" click="currentState = 's2';" />
            <s:Button id="sdkVer" initialize="sdkVer.label = mx_internal::VERSION;" click="System.setClipboard(sdkVer.label);" />
        </s:controlBarContent>
        <s:states>
            <s:State name="s1" />
            <s:State name="s2" />
        </s:states>
        <s:Rect left="30" right="20" top="20" bottom="30" >
            <s:fill>
                <s:SolidColor color="0x968f89" color.s2="haloOrange" alpha="1" />
            </s:fill>
        </s:Rect>
    </s:Application>
    Peter

  • Could not resolve mx:DataGrid to a component implementation

    I'm very new at this. Building a mobile app. Running the latest Flex/FlashBuilder (4.6). When I compile I get this error: "could not resolve <mx:DataGrid> to a component implementation". Here is my code:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- dpcontrols/DataGridPassData.mxml -->
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        title="Jobs List">
              <fx:Script>
                        <![CDATA[
                                  import mx.collections.*;
                                  private var DGArray:Array = [
                                            {Lease:'Bagby Heirs', Well:'1', Location:'Quitman', Customer:'Fair Oil Company', ScheduleDate:'2/23/2012', ServiceDate:'5/16/2012'},
                                            {Lease:'ITU', Well:'301', Location:'Ingram Trinity', Customer:'Southwest Operating, Inc.', ScheduleDate:'3/19/2012', ServiceDate:'4/25/2012'},
                                            {Lease:'ITU', Well:'81', Location:'ITU', Customer:'Southwest Operating, Inc.', ScheduleDate:'3/19/2012', ServiceDate:'4/25/2012'},
                                            {Lease:'Tolliver A', Well:'5', Location:'Turner Town', Customer:'SEDI', ScheduleDate:'4/16/2012', ServiceDate:'5/11/2012'},
                                            {Lease:'W R Cady', Well:'1', Location:'Coffield', Customer:'Green River Resource', ScheduleDate:'5/9/2012', ServiceDate:'4/10/2012'},
                                            {Lease:'Royal National Bar', Well:'2', Location:'Coffield', Customer:'Green River Resource', ScheduleDate:'5/9/2012', ServiceDate:'4/10/2012'},
                                            {Lease:'Pan American L', Well:'1', Location:'Chandler', Customer:'East Texas Oil & Gas', ScheduleDate:'5/14/2012', ServiceDate:'6/8/2012'},
                                            {Lease:'Paluxy B Sand', Well:'5', Location:'West Tyler', Customer:'Culver & Cain', ScheduleDate:'6/1/2012', ServiceDate:'5/25/2012'},
                                            {Lease:'Wh Pittman Hei', Well:'2', Location:'Quitman', Customer:'Southwest Operating, Inc.', ScheduleDate:'7/10/2012', ServiceDate:'6/18/2012'},
                                            {Lease:'Vivian Pruitt', Well:'1', Location:'Crow - Hwy 80M', Customer:'Buffco Productions, Inc.', ScheduleDate:'8/7/2012', ServiceDate:'8/29/2012'}
                                  [Bindable]
                                  public var initDG:ArrayList;
                                  //Initialize initDG ArrayList variable from the Array.
                                  //If you use this technique to process an HTTPService,
                                  //WebService, or RemoteObject result, use an ArrayCollection
                                  //rather than an ArrayList.
                                  public function initData():void {
                                            initDG=new ArrayList(DGArray);
                        ]]>
              </fx:Script>
              <!--s:states>
              <s:State name="loginState"/>
              <s:State name="State1"/>
              </s:states-->
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
                          <fx:Component className="AlertMsgDay">
                                  <s:SkinnablePopUpContainer x="70" y="300">
                                            <s:TitleWindow title="Filtering" close="close()">
                                                      <s:VGroup horizontalAlign="center" paddingTop="8" paddingBottom="8" paddingLeft="8" paddingRight="8" gap="5" width="100%">
                                                                <s:Label text="This button will filter jobs to show only TODAY."/>
                                                                <s:Button label="OK" click="close()"/>
                                                      </s:VGroup>
                                            </s:TitleWindow>
                                  </s:SkinnablePopUpContainer>
                        </fx:Component>
                        <fx:Component className="AlertMsgWeek">
                                  <s:SkinnablePopUpContainer x="70" y="300">
                                            <s:TitleWindow title="Filtering" close="close()">
                                                      <s:VGroup horizontalAlign="center" paddingTop="8" paddingBottom="8" paddingLeft="8" paddingRight="8" gap="5" width="100%">
                                                                <s:Label text="This button will filter jobs to show only THIS WEEK."/>
                                                                <s:Button label="OK" click="close()"/>
                                                      </s:VGroup>
                                            </s:TitleWindow>
                                  </s:SkinnablePopUpContainer>
                        </fx:Component>
              </fx:Declarations>
              <s:BorderContainer x="10"  y="111" borderColor="#808080" cornerRadius="5" borderWeight="2" width="98%" height="369">
                        <s:Scroller width="100%" height="363" verticalScrollPolicy="on">
                                  <s:Group width="100%" height="100%">
                                            <mx:DataGrid id="myGrid" width="900" height="350" dataProvider="{initDG}" >  <<<< THE ERROR IS HERE
                                                      <mx:columns>
                                                                <mx:DataGridColumn dataField="Lease" />
                                                                <mx:DataGridColumn dataField="Well" />
                                                                <mx:DataGridColumn dataField="Location" />
                                                                <mx:DataGridColumn dataField="Customer" />
                                                                <mx:DataGridColumn dataField="ScheduleDate" headerText="Schedule Date" />
                                                                <mx:DataGridColumn dataField="ServiceDate" headerText="Service Date" />
                                                      </mx:columns>
                                            </mx:DataGrid>
                                  </s:Group>
                        </s:Scroller>
              </s:BorderContainer>
              <s:Label x="10" y="10" width="96" height="53" fontSize="24" text="Sort by:"
                                   verticalAlign="middle"/>
              <s:Button id="btn_show_today" x="104" y="11" width="105" height="53" label="Today"
                                    fontSize="13" fontWeight="bold" click="(new AlertMsgDay()).open(this, false);"/>
              <s:Button id="btn_show_week" x="216" y="11" width="105" height="53" label="Week"
                                    fontSize="13" fontWeight="bold" click="(new AlertMsgWeek()).open(this, false);"/>
              <s:Button x="348" y="10" width="184" height="53" label="Edit this Job" fontSize="18" click="navigator.pushView(views.JobFormView);"/>
    </s:View>

    I'm very new at this. Building a mobile app. Running the latest Flex/FlashBuilder (4.6). When I compile I get this error: "could not resolve <mx:DataGrid> to a component implementation". Here is my code:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- dpcontrols/DataGridPassData.mxml -->
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        title="Jobs List">
              <fx:Script>
                        <![CDATA[
                                  import mx.collections.*;
                                  private var DGArray:Array = [
                                            {Lease:'Bagby Heirs', Well:'1', Location:'Quitman', Customer:'Fair Oil Company', ScheduleDate:'2/23/2012', ServiceDate:'5/16/2012'},
                                            {Lease:'ITU', Well:'301', Location:'Ingram Trinity', Customer:'Southwest Operating, Inc.', ScheduleDate:'3/19/2012', ServiceDate:'4/25/2012'},
                                            {Lease:'ITU', Well:'81', Location:'ITU', Customer:'Southwest Operating, Inc.', ScheduleDate:'3/19/2012', ServiceDate:'4/25/2012'},
                                            {Lease:'Tolliver A', Well:'5', Location:'Turner Town', Customer:'SEDI', ScheduleDate:'4/16/2012', ServiceDate:'5/11/2012'},
                                            {Lease:'W R Cady', Well:'1', Location:'Coffield', Customer:'Green River Resource', ScheduleDate:'5/9/2012', ServiceDate:'4/10/2012'},
                                            {Lease:'Royal National Bar', Well:'2', Location:'Coffield', Customer:'Green River Resource', ScheduleDate:'5/9/2012', ServiceDate:'4/10/2012'},
                                            {Lease:'Pan American L', Well:'1', Location:'Chandler', Customer:'East Texas Oil & Gas', ScheduleDate:'5/14/2012', ServiceDate:'6/8/2012'},
                                            {Lease:'Paluxy B Sand', Well:'5', Location:'West Tyler', Customer:'Culver & Cain', ScheduleDate:'6/1/2012', ServiceDate:'5/25/2012'},
                                            {Lease:'Wh Pittman Hei', Well:'2', Location:'Quitman', Customer:'Southwest Operating, Inc.', ScheduleDate:'7/10/2012', ServiceDate:'6/18/2012'},
                                            {Lease:'Vivian Pruitt', Well:'1', Location:'Crow - Hwy 80M', Customer:'Buffco Productions, Inc.', ScheduleDate:'8/7/2012', ServiceDate:'8/29/2012'}
                                  [Bindable]
                                  public var initDG:ArrayList;
                                  //Initialize initDG ArrayList variable from the Array.
                                  //If you use this technique to process an HTTPService,
                                  //WebService, or RemoteObject result, use an ArrayCollection
                                  //rather than an ArrayList.
                                  public function initData():void {
                                            initDG=new ArrayList(DGArray);
                        ]]>
              </fx:Script>
              <!--s:states>
              <s:State name="loginState"/>
              <s:State name="State1"/>
              </s:states-->
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
                          <fx:Component className="AlertMsgDay">
                                  <s:SkinnablePopUpContainer x="70" y="300">
                                            <s:TitleWindow title="Filtering" close="close()">
                                                      <s:VGroup horizontalAlign="center" paddingTop="8" paddingBottom="8" paddingLeft="8" paddingRight="8" gap="5" width="100%">
                                                                <s:Label text="This button will filter jobs to show only TODAY."/>
                                                                <s:Button label="OK" click="close()"/>
                                                      </s:VGroup>
                                            </s:TitleWindow>
                                  </s:SkinnablePopUpContainer>
                        </fx:Component>
                        <fx:Component className="AlertMsgWeek">
                                  <s:SkinnablePopUpContainer x="70" y="300">
                                            <s:TitleWindow title="Filtering" close="close()">
                                                      <s:VGroup horizontalAlign="center" paddingTop="8" paddingBottom="8" paddingLeft="8" paddingRight="8" gap="5" width="100%">
                                                                <s:Label text="This button will filter jobs to show only THIS WEEK."/>
                                                                <s:Button label="OK" click="close()"/>
                                                      </s:VGroup>
                                            </s:TitleWindow>
                                  </s:SkinnablePopUpContainer>
                        </fx:Component>
              </fx:Declarations>
              <s:BorderContainer x="10"  y="111" borderColor="#808080" cornerRadius="5" borderWeight="2" width="98%" height="369">
                        <s:Scroller width="100%" height="363" verticalScrollPolicy="on">
                                  <s:Group width="100%" height="100%">
                                            <mx:DataGrid id="myGrid" width="900" height="350" dataProvider="{initDG}" >  <<<< THE ERROR IS HERE
                                                      <mx:columns>
                                                                <mx:DataGridColumn dataField="Lease" />
                                                                <mx:DataGridColumn dataField="Well" />
                                                                <mx:DataGridColumn dataField="Location" />
                                                                <mx:DataGridColumn dataField="Customer" />
                                                                <mx:DataGridColumn dataField="ScheduleDate" headerText="Schedule Date" />
                                                                <mx:DataGridColumn dataField="ServiceDate" headerText="Service Date" />
                                                      </mx:columns>
                                            </mx:DataGrid>
                                  </s:Group>
                        </s:Scroller>
              </s:BorderContainer>
              <s:Label x="10" y="10" width="96" height="53" fontSize="24" text="Sort by:"
                                   verticalAlign="middle"/>
              <s:Button id="btn_show_today" x="104" y="11" width="105" height="53" label="Today"
                                    fontSize="13" fontWeight="bold" click="(new AlertMsgDay()).open(this, false);"/>
              <s:Button id="btn_show_week" x="216" y="11" width="105" height="53" label="Week"
                                    fontSize="13" fontWeight="bold" click="(new AlertMsgWeek()).open(this, false);"/>
              <s:Button x="348" y="10" width="184" height="53" label="Edit this Job" fontSize="18" click="navigator.pushView(views.JobFormView);"/>
    </s:View>

  • Could not resolve mx:Script

    I have tried many samples with script tags but everytime I
    get this error message:
    Could not resolve <mx:Script> to a component
    implementation.
    Sample :
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    </mx:Script>
    </mx:Application>
    What is this? What do I do false ?
    Thanks.

    No , it does not work:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()">
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="400" height="300">
    <mx:Script>
    <![CDATA[
    ]]>
    </mx:Script>
    </mx:Canvas>
    </mx:Application>
    I have tried this simple code on 2 machines. Both is WinXP
    Pro ( Turkish version ). Is that the reason for the error : Turkish
    Windows ?
    I can build an ActionScript Project. That works.. Also,
    FlexProject works. But I just can not use script in it. It gives
    that error mentioned in that topic.( on 2 machines the same)

  • Could not resolve sparks component with Air 3.6 Beta

    Description
    Resource
    Path
    Location
    Type
    Could not resolve <s:SolidColor> to a component implementation.
    ExpandingItemRenderer.mxml
    /ProjectTest/src/renderers
    line 59
    Flex Problem
    Could not resolve <s:State> to a component implementation.
    ExpandingItemRenderer.mxml
    /ProjectTest/src/renderers
    line 33
    Flex Problem
    Could not resolve <s:State> to a component implementation.
    ExpandingItemRenderer.mxml
    /ProjectTest/src/renderers
    line 34
    Flex Problem
    Could not resolve <s:Transition> to a component implementation.
    ExpandingItemRenderer.mxml
    /ProjectTest/src/renderers
    line 38
    Flex Problem
    Could not resolve <s:Transition> to a component implementation.
    ExpandingItemRenderer.mxml
    /ProjectTest/src/renderers
    line 47
    Flex Problem
    This is what i get with the latest Air 3.6 Beta SDK with a mobile project !
    FB 4.7 shows the <mx:Transition> potential match but not the <s:Transition>. Its the same for all the other errors it shows the potential matches
    Can someone provide a solution I even tried to add sparks.swc as external SWC but it doesn t work.

    I Still have theses errors :
    Description
    Resource
    Path
    Location
    Type
    Could not resolve <s:State> to a component implementation.
    MessageBox.mxml
    line 129
    Flex Problem
    Could not resolve <s:State> to a component implementation.
    MessageBox.mxml
    line 130
    Flex Problem
    Could not resolve <s:State> to a component implementation.
    MessageBox.mxml
    line 131
    Flex Problem
    Even if I added the spark.swc
    But the other errors are gone !

  • Could not resolve Script

    I am getting an error message "Could not resolve <Script>
    to a component implementation." This is the code I am attempting to run, from
    the tutorials offered by Adobe.
    <Script>
    {import mx.controls.Alert;}
    </Script>
    I've tried this without brackets, with <> symbols, around the import, and everytime I get an error. any suggestions? I'm brand new to flex, but for the most part find it rather simple to do. however, when i get an error it's impossible to figure out how to fix it!

    the <fx:Script> worked. Thanks!!

Maybe you are looking for

  • How to close goods receipt PO

    Hi All, We are using SAP 8.8 how to close Goods Receipt PO that has been pulled to A/P Invoice with a partial amount of freight ? i.e. Our GRPO has freight 5000. On pressing COPY FROM button in A/P invoice we selected that GRPO On Pressing Customize

  • PHOTOSHOP C6 OIL PAINT FILTER DOES NOT WORKING

    PHOTOSHOP C6 OIL PAINT FILTER DOES NOT WORKING Adobe Photoshop Version: 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00) x32 Operating System: Windows 7 32-bit Version: 6.1 System architecture: Intel CPU Family:6, Model:7, Stepping:10 with MMX, SSE

  • TS1292 i forgot my security question answers how do i reset them?

    i just added $15 onto my account and it asked me for my security question answers and i forgot them. how do i reset the answers?

  • How can I solve a system of linear equations for the non trivial solution?

    I want to solve the equation A Q =0 where A is a 1xn matrix and Q is an nxn matrix for A. I tried using the Solve Linear Equations sub.vi but it just gave me the trivial solution. What can I do to solve this?

  • App windows disappear when new app opened

    I don't use spaces. I am on a mac. This seems to be something that only happens in 10.6 I'm working in (for example) Mail. I need to check on something in (for example) a Word file. I open Word. Mail disappears. It hasn't quit, BUT I have to go to th