facebook

ME 2013 can’t open ant-based web project correctly

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #339241 Reply

    Michael Stacey
    Participant

    Myeclipse->Project Facets included Dynamic Web Module 2.4
    Clicking on Myeclipse->Project Facets->Web gives error; “The currently displayed page contains invalid values”

    web project will not deploy

    #339262

    support-swapna
    Moderator

    stacey11,

    Sorry that you are seeing this issue.

    Did you try creating a java project from an existing Ant Build file?
    Can you please elaborate on what exact steps you have taken to help us replicate the issue at our end ?

    Also if possible, please attach the project which exhibits the issue for us to take a look.

    #339271

    Michael Stacey
    Participant

    @support-swapna wrote:

    stacey11,

    Sorry that you are seeing this issue.

    Did you try creating a java project from an existing Ant Build file?
    Can you please elaborate on what exact steps you have taken to help us replicate the issue at our end ?

    Also if possible, please attach the project which exhibits the issue for us to take a look.

    No, I did not try creating a java project from an existing Ant build file; this project has run fine until “upgrading” to me 2013.

    I can attach the .project file, but the project itself is too large.

    This is really frustrating as I was advised to upgrade to 2013 to correct problems…

    .project:

    <?xml version="1.0" encoding="UTF-8"?>
    <projectDescription>
            <name>crlsql</name>
            <comment></comment>
            <projects>
            </projects>
            <buildSpec>
                    <buildCommand>
                            <name>org.eclipse.wst.common.project.facet.core.builder</name>
                            <arguments>
                            </arguments>
                    </buildCommand>
                    <buildCommand>
                            <name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
                            <arguments>
                            </arguments>
                    </buildCommand>
                    <buildCommand>
                            <name>com.cenqua.clover.core.prejavabuilder</name>
                            <arguments>
                            </arguments>
                    </buildCommand>
                    <buildCommand>
                            <name>org.eclipse.jdt.core.javabuilder</name>
                            <arguments>
                            </arguments>
                    </buildCommand>
                    <buildCommand>
                            <name>com.cenqua.clover.core.postjavabuilder</name>
                            <arguments>
                            </arguments>
                    </buildCommand>
                    <buildCommand>
                            <name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
                            <arguments>
                            </arguments>
                    </buildCommand>
                    <buildCommand>
                            <name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
                            <arguments>
                            </arguments>
                    </buildCommand>
                    <buildCommand>
                            <name>com.ibm.etools.validation.validationbuilder</name>
                            <arguments>
                            </arguments>
                    </buildCommand>
                    <buildCommand>
                            <name>com.ibm.sse.model.structuredbuilder</name>
                            <arguments>
                            </arguments>
                    </buildCommand>
                    <buildCommand>
                            <name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
                            <arguments>
     </arguments>
                    </buildCommand>
                    <buildCommand>
                            <name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
                            <arguments>
                            </arguments>
                    </buildCommand>
            </buildSpec>
            <natures>
                    <nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
                    <nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
                    <nature>org.eclipse.jdt.core.javanature</nature>
                    <nature>com.cenqua.clover.core.clovernature</nature>
                    <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
            </natures>
    </projectDescription>

    .mymetadata

    <?xml version="1.0" encoding="UTF-8"?>
    <project-module
      type="WEB"
      name="crlsql"
      id="myeclipse.1247764859761"
      context-root="/crlsql"
      j2ee-spec="1.4"
      archive="crlsql.war">
      <attributes>
        <attribute name="webrootdir" value="web" />
      </attributes>
    </project-module>
    #339273

    Michael Stacey
    Participant

    @support-swapna wrote:

    stacey11,

    Sorry that you are seeing this issue.

    Did you try creating a java project from an existing Ant Build file?
    Can you please elaborate on what exact steps you have taken to help us replicate the issue at our end ?

    Also if possible, please attach the project which exhibits the issue for us to take a look.

    More information. When I delete the project and try and recreate it, ME reports that it needs to be migrated, but when I attempt to migrate it, I get the following error:

    Migration of ,,, has encountered a problem
    Operation “Migrate ME Project references and deployment settings to Deployment Assembly” has failed to perform migration actions. Error for project crlsql.
    java.lang.NullPointerException

    #339275

    support-piotr
    Participant

    stacey11,

    To correctly determine source of the issue I need more details, as this is definitely an issue specific to your project configuration. Could you please open Error Log view, delete all entries, then reproduce all of your errors (especially the migration issue), export log and attach it here? Please attach screenshots of the preference pages, which are validated with errors, as well. It would be great if you could zip all configuratin files of the project, i.e. “.project”, “.classpath”, “.mymetadata” and “.settings” folder, and attach them here.

    What was your original issue?

    #339280

    Michael Stacey
    Participant

    The original issue is ME2013 cannot migrate/open/deploy an existing project handled by the previous version.

    I’ve created a compressed tar file containing the information and screenshots, but your webapp won’t allow it to be attached.

    What extensions are allowed?

    Attachments:
    You must be logged in to view attached files.
    #339315

    support-piotr
    Participant

    stacey11,

    Thanks for all the information! For some reason, your project is missing Module Core nature and two builders, which should get installed along with Web facet. After importing project into ME, before migrating it, please edit “.project” file and add:

    <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
    

    To enable validation of JSP source files, you should also add:

    <buildCommand>
       <name>org.eclipse.wst.validation.validationbuilder</name>
       <arguments>
       </arguments>
    </buildCommand>
    

    To enable validation of JS files add:

    <buildCommand>
        <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
        <arguments>
        </arguments>
    </buildCommand>
    

    Let us know how it works for you!

    #339320

    Michael Stacey
    Participant

    That cured it. Any idea why?

    #339322

    support-piotr
    Participant

    Great to hear that!

    This information was supposed to be there. I have no idea why it was missing; maybe someone has made some changes to .project file, or something else went wrong in the past. I am going to add additional migration operation to ensure that nothing like that happens again.

    Let us know if you need any more help 🙂

    #340523

    support-tony
    Keymaster

    Project migration has been fixed, as per the above post. The fix is in SR1, which is now available via the downloads page or the in-product update. Update sites should be available later this week.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: ME 2013 can’t open ant-based web project correctly

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