facebook

Null Pointer in Adding a Deployment

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #304311 Reply

    danrod13
    Participant

    I am trying to make a clone of an existing project in MyEclipse 7.5 so that I can do some feasibility testing.

    The creation of the new project based on me copying/pasting the entire project directory into a newly named directory at the same level has worked perfectly, except I cannot create a deployment for Tomcat.

    If I try to add a deployment specific to Tomcat 6.x it chooses the ..\webapps\ROOT directory as the Deploye Location and will not let me alter the setting. If I choose a custom deployment, I get an error

    Add Deployment encountered a problem.

    The .log file in my \.metadata\ directory says:

    
    !ENTRY org.eclipse.core.jobs 4 2 2009-12-02 12:07:30.733
    !MESSAGE An internal error occurred during: "Add Deployment".
    !STACK 0
    java.lang.NullPointerException
        at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.isSourceFolder(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.copyContainer(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.copyContainer(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.Deployment.resyncAll(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.ModuleDeployment.deployAsExplodedArchive(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.jobs.A.ÄÂ�(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.jobs.A.run(Unknown Source)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    

    Any thoughts on how I can resolve the NPE or even a better way to clone a project?

    Tx!

    #304347 Reply

    danrod13,
    Can you copy paste your installation details from MyEclipse > Installation Summary > installation Details?

    better way to clone a project

    Can you try creating a new workspace and importing the project into it? This way you will have the project in two different workspaces.
    The following are the steps:
    1. To create a new workspace, from the menu bar go to File > Switch Workspace > Other and create a new workspace.
    2. In the new workspace, from the menu bar select File > Import.
    3. In the wizard select General > Existing project into workspace and click Next
    4. Now select the option “Select Root Directory” and browse to your project in previous workspace. This will create the same project in the new workspace.
    Let me know if that helps.

    #304370 Reply

    danrod13
    Participant

    Thanks Shalini, As I was posting a response and attempting your solution, I stumbled across the issue. I copied my project folder over and tried to create a new project with it. In doing that my .metadata file got corrupted and was pointing to the ROOT directory as the deploy location. This caused all kind of issues that snowballed into a corrupt deployment.

    I created a new workspace, started over and all is good now.

    Thanks for the help!

    #304395 Reply

    You are welcome..

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Null Pointer in Adding a Deployment

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in