Topic
12 replies Latest Post - ‏2012-10-02T13:34:38Z by Mobiletechs
LaksSundar
LaksSundar
4 Posts
ACCEPTED ANSWER

Pinned topic Worklight Environment Issues

‏2012-07-10T02:30:57Z |
I installed Worklight Plug-in and tried creating a sample App. However, I have the following issue:
2012-07-09 22:30:15] iphone build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Problem reading info.plist file /Users/xxxxx/Mobile/trial/MyWorklightProject/apps/MyWorklightApp/iphone/native/MyWorklightProjectMyWorklightAppIphone-Info.plist (No such file or directory) Nested exception: /Users/xxxxx/Mobile/trial/MyWorklightProject/apps/MyWorklightApp/iphone/native/MyWorklightProjectMyWorklightAppIphone-Info.plist (No such file or directory)
2012-07-09 22:30:15 android build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Error while reading XML file: /Users/xxxxx/Mobile/trial/MyWorklightProject/apps/MyWorklightApp/android/native/AndroidManifest.xml (No such file or directory) Nested exception: /Users/xxxxx/Mobile/trial/MyWorklightProject/apps/MyWorklightApp/android/native/AndroidManifest.xml (No such file or directory)
2012-07-09 22:30:15 A core eclipse exception has occurred: Failed to read project description file from location '/Users/xxxxx/Mobile/trial/MyWorklightProject/apps/MyWorklightApp/android/native/.project'.

My Environment

Mac- OS X 10.7.4
Eclipse - 3.7.2
Worklight Plug-in 5.0.1.293

Let me know if I'm missing something
  • SystemAdmin
    SystemAdmin
    300 Posts
    ACCEPTED ANSWER

    Re: Worklight Environment Issues

    ‏2012-07-27T17:33:29Z  in response to LaksSundar
    Hello LaksSundar,

    I have a similar environment (OSX 10.7.4, Eclipse 3.7.2, WL 5.0.1, XCode 4.3.3) and I made this video that shows how to start from scratch and end with a Worklight application that uses jQuery Mobile for Android and iOS: https://vimeo.com/45374545

    Maybe you missed a step and the video helps =]

    Make sure you have XCode and ADT (Android Developer Tools)+Android SDK installed before trying to build/run those projects using those environments.
  • SystemAdmin
    SystemAdmin
    300 Posts
    ACCEPTED ANSWER

    Re: Worklight Environment Issues

    ‏2012-08-20T16:21:42Z  in response to LaksSundar
    Hi LaksSundar,

    Did Carlos' video help? If so can you mark this post answered? Thanks.

    Barbara Hampson
    Manager, IBM Worklight Mobile Platform
  • SystemAdmin
    SystemAdmin
    300 Posts
    ACCEPTED ANSWER

    Re: Worklight Environment Issues

    ‏2012-08-20T19:16:01Z  in response to LaksSundar
    I've hit something like this today as well, on my mac which has been working without incident for weeks. The only difference I can note today is that I did a switch workspace and created a new workspace for the exercise I am conducting right now. I did not select any of the copy settings. I have seen a few additional strange things like inability to delete the failed iPhone environment due to file permissions issues. Maybe the new workspaces aren't being "seeded" properly?
    2012-08-20 15:08:42 android build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Error while reading XML file: /Users/jeffo/Documents/workspace/newproject/NewProject/apps/NewApplication/android/native/AndroidManifest.xml (No such file or directory) Nested exception: /Users/jeffo/Documents/workspace/newproject/NewProject/apps/NewApplication/android/native/AndroidManifest.xml (No such file or directory)
    2012-08-20 15:08:42 iphone build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Problem reading info.plist file /Users/jeffo/Documents/workspace/newproject/NewProject/apps/NewApplication/iphone/native/NewProjectNewApplicationIphone-Info.plist (No such file or directory) Nested exception: /Users/jeffo/Documents/workspace/newproject/NewProject/apps/NewApplication/iphone/native/NewProjectNewApplicationIphone-Info.plist (No such file or directory)
    2012-08-20 15:08:42 A core eclipse exception has occurred: Failed to read project description file from location '/Users/jeffo/Documents/workspace/newproject/NewProject/apps/NewApplication/android/native/.project'.
    I've got:
    OS X 10.7.4
    Eclipse Version: Indigo Service Release 2
    IBM Worklight Studio 1.0.0.v20120710_1938
    • SystemAdmin
      SystemAdmin
      300 Posts
      ACCEPTED ANSWER

      Re: Worklight Environment Issues

      ‏2012-08-24T15:32:25Z  in response to SystemAdmin
      I've been having this problem for a few days on Linux ... I assumed that it was a Linux issue, but suddenly this morning I saw it on Mac. I don't know what has changed. I am running:

      Indigo SR2
      Worklight 5.0.1.299-developer-edition
      ADT 20.0.3.v201208082019-427395

      error is:

      A core eclipse exception has occurred: Failed to read project description file from location '/Users/dhuyvett/Documents/workspace3/Test/apps/Test/android/native/.project'.

      This happens when I try to add an Android Environment to an App
  • SystemAdmin
    SystemAdmin
    300 Posts
    ACCEPTED ANSWER

    Re: Worklight Environment Issues

    ‏2012-09-14T13:18:14Z  in response to LaksSundar
    Hi all. I have the same problem when i try to create a new iPad or iPhone Environment.
    The strange thing is that one week ago i build normally this environments with my project, but I try to create a nwe once and the result is the same.
    2012-09-14 15:00:21 ipad build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Problem reading info.plist file /Users/francesco/Documents/workspace/aaaa/apps/aaaaaaaaa/ipad/native/projectNameAppNameIpad-Info.plist (No such file or directory) Nested exception: /Users/francesco/Documents/workspace/aaaa/apps/aaaaaaaaa/ipad/native/projectNameAppNameIpad-Info.plist (No such file or directory)

    My env

    Mac-OS X 10.6.8
    Eclipse - Indigo Server Release 2
    Worklight Studio 5.0.30.v20120808 (I think the last one)
    • SystemAdmin
      SystemAdmin
      300 Posts
      ACCEPTED ANSWER

      Re: Worklight Environment Issues

      ‏2012-09-17T15:23:19Z  in response to SystemAdmin
      Can you check your Studio version?

      For 5.0.0.3 development, I have 5.0.2.407-developer-edition

      For 5.0.0.2 development, I have 5.0.1.299-developer-edition.

      Currently the versioning scheme for studio plugins is a bit ... confusing (its being worked on) but that version number that you have looks odd.
      • SystemAdmin
        SystemAdmin
        300 Posts
        ACCEPTED ANSWER

        Re: Worklight Environment Issues

        ‏2012-09-24T18:59:15Z  in response to SystemAdmin
        Hi,

        I'm having the same problem. I've been successfully creating and running Android apps but today I'm getting an error when I add an Android environment. I see the following errors.

        2012-09-24 14:48:16 android build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Error while reading XML file: /Users/davidwhitehouse/Documents/workspace1/TestProject/apps/TestApp/android/native/AndroidManifest.xml (No such file or directory) Nested exception: /Users/davidwhitehouse/Documents/workspace1/TestProject/apps/TestApp/android/native/AndroidManifest.xml (No such file or directory)
        2012-09-24 14:48:17

        A core eclipse exception has occurred: Failed to read project description file from location '/Users/davidwhitehouse/Documents/workspace1/TestProject/apps/TestApp/android/native/.project'.
        the app->android->native folder only has 'assets' and 'res' the other folders and files are missing.

        I checked the Eclipse workspace .log file but didn't see any error messages
        I also tried created a project in a new workspace.

        Here's my environment:

        Mac OSK 10.8.1
        Android
        Eclipse Java EE IDE for Web Developers.
        Version: Indigo Service Release 2
        Build id: 20120216-1857

        IBM Worklight Studio 5.0.30.v20120808_2026 com.ibm.imp.tools.feature.feature.group IBM

        Regards, David
        • LaksSundar
          LaksSundar
          4 Posts
          ACCEPTED ANSWER

          Re: Worklight Environment Issues

          ‏2012-09-26T18:34:53Z  in response to SystemAdmin
          I have hit the same issue again and iPhone app won't build. Looks like there is very little help available in documentation for this error.

          By the way, last time when I had the error I got around it by doing a clean Install - Eclipse + Worklight. I know that would work but hate to do it again now
          • LaksSundar
            LaksSundar
            4 Posts
            ACCEPTED ANSWER

            Re: Worklight Environment Issues

            ‏2012-09-26T18:40:30Z  in response to LaksSundar
            This time I opened eclipse with option clean and here is what I see in the logs. Looks like something is broken w.r.t ClassTransformer. Is there a fix available for this or should I need to do a reinstall of Eclipse + Worklight?

            24 WorklightPU WARN Framework Event Dispatcher openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightPU', root URL bundleresource://86.fwk1431814845/. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
            184 WorklightPU INFO Framework Event Dispatcher openjpa.Runtime - Starting OpenJPA 1.2.2
            237 WorklightPU INFO Framework Event Dispatcher openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.HSQLDictionary".
            1 WorklightReportsPU WARN Framework Event Dispatcher openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightReportsPU', root URL bundleresource://85.fwk1431814845/. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
            • LaksSundar
              LaksSundar
              4 Posts
              ACCEPTED ANSWER

              Re: Worklight Environment Issues

              ‏2012-09-27T18:31:29Z  in response to LaksSundar
              Ok, Looks like I figured out a possible solution without re-install. This works on my Mac, so not sure about Windows!

              Here's what I did:

              Restarted the Mac, ran eclipse -clean on same workspace and tried again.

              Not sure if it is something to do with cleanup in terms of Worklight Derby DB but seems like a really tricky one to figure out.
              • SystemAdmin
                SystemAdmin
                300 Posts
                ACCEPTED ANSWER

                Re: Worklight Environment Issues

                ‏2012-10-01T23:16:35Z  in response to LaksSundar
                Using a Mac I ran across this same error and I resolved it without needing to even restart Eclipse. Here's what I did:

                1) Delete the iPhone environment from the project.
                2) Using another project in my workspace that contained an iPhone environment, perform a Build all and Deploy.
                3) From a terminal window run the following command on your workspace folder: chflags -R nouchg ./workspace
                4) Add an iPhone environment and perform a Build all and Deploy in the project that had problems.
                • Mobiletechs
                  Mobiletechs
                  2 Posts
                  ACCEPTED ANSWER

                  Re: Worklight Environment Issues

                  ‏2012-10-02T13:34:38Z  in response to SystemAdmin
                  wow.. how did U figure that? was the eclipse complaining about a shared workspace?

                  are U sharing this workspace between multiple eclipse runtimes?

                  :)
                  Nitin