facebook

Deployment failed with NPE for tomcat7 jsp project

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

    morpheus1958
    Participant

    I am new to jsp and very new to myclipse, so pardon my lack of knowledge.

    While playing around with my jsp web project, I deleted “.me_tcat7” folder under ~/Workspaces/MyEclipse 2015 CI/.metadata/

    Now, when I try to run the project I see “deployment failed” error in server view.
    When I hover over it, it says – Deployment failed , NullPointerException.

    Please see attached screenshot.

    It also says , See error logs for details,
    where do I look for error logs?

    I created another project and do see “.me_tcat7” folder created again, but I suspect that I am missing some important files as continue to receive this nullpointer exception.

    Any help, pointers, thoughts would be highly appreciated.

    Thanks in advance.

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

    support-swapna
    Moderator

    morpheus1958,

    Sorry that you are seeing this issue.

    Can you please switch to a new workspace, import the project and try deploying to MyEclipse Tomcat ? If you are seeing issues with deployment, please send us the error log. The error log for MyEclipse is located at <workspace dir>/.metadata/.log

    Here is a tutorial which walks you through creation and deployment of a simple web project in MyEclipse : https://www.genuitec.com/products/myeclipse/learning-center/web/myeclipse-web-project-tutorial/

    Please go through our tutorials for Web development in MyEclipse which will help you get started : https://www.genuitec.com/products/myeclipse/learning-center/web/

    Here is the link to our documentation store in MyEclipse : https://www.genuitec.com/products/myeclipse/learning-center/

    Let us know how it works for you.

    #354039 Reply

    morpheus1958
    Participant

    Thanks for the prompt reply and for the links, while I try the steps you recommended, please find the log file attached with this message.

    Also here in an excerpt from the log file:


    !SUBENTRY 1 com.genuitec.eclipse.server.core 4 0 2015-04-04 22:34:42.748
    !MESSAGE There were issues during deployment to server MyEclipse Tomcat v7.0. See Error Log for details.
    !SUBENTRY 2 MyEclipse Tomcat v7.0 4 0 2015-04-04 22:34:42.748
    !MESSAGE Deployment failed
    !SUBENTRY 3 MyEclipse Tomcat v7.0 4 0 2015-04-04 22:34:42.748
    !MESSAGE java.lang.NullPointerException
    !STACK 1
    com.genuitec.eclipse.core.GenuitecCoreException: java.lang.NullPointerException
    at com.genuitec.eclipse.server.core.deployment.ModuleDeployer.internalProcess(ModuleDeployer.java:77)
    at com.genuitec.eclipse.server.core.deployment.AbstractDeploymentProcessor.processDeployment(AbstractDeploymentProcessor.java:79)
    at com.genuitec.eclipse.server.core.GenuitecAppServerBehaviour.internalPublishDeployment(GenuitecAppServerBehaviour.java:234)
    at org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.internalPublishDeployment(TomcatServerBehaviour.java:300)
    at com.genuitec.eclipse.server.core.GenuitecAppServerBehaviour.publishDeployment(GenuitecAppServerBehaviour.java:104)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.intPublishDeployment(ServerBehaviourDelegate.java:1288)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishDeployments(ServerBehaviourDelegate.java:1266)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish2(ServerBehaviourDelegate.java:1045)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:782)
    at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3331)
    at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:353)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: java.lang.NullPointerException
    at com.genuitec.eclipse.server.core.deployment.ModuleDeployer.internalProcess(ModuleDeployer.java:59)
    … 11 more
    !SUBENTRY 4 com.genuitec.eclipse.server.core 4 0 2015-04-04 22:34:42.748
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.server.core.deployment.ModuleDeployer.internalProcess(ModuleDeployer.java:59)
    at com.genuitec.eclipse.server.core.deployment.AbstractDeploymentProcessor.processDeployment(AbstractDeploymentProcessor.java:79)
    at com.genuitec.eclipse.server.core.GenuitecAppServerBehaviour.internalPublishDeployment(GenuitecAppServerBehaviour.java:234)
    at org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.internalPublishDeployment(TomcatServerBehaviour.java:300)
    at com.genuitec.eclipse.server.core.GenuitecAppServerBehaviour.publishDeployment(GenuitecAppServerBehaviour.java:104)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.intPublishDeployment(ServerBehaviourDelegate.java:1288)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishDeployments(ServerBehaviourDelegate.java:1266)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish2(ServerBehaviourDelegate.java:1045)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:782)
    at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3331)
    at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:353)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    #354040 Reply

    morpheus1958
    Participant

    attaching the log file.

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

    morpheus1958
    Participant

    BTW, Swapna,
    as per your suggestion, I tried switching to a new workspace and tried importing the project, but now I get error while migrating sprint facet, here is the error message:

    Operation “Install Spring Facet” has failed to perform migration actions.
    Operation “Install Spring Facet” has failed to perform migration actions. Error for project [prjName].
    Operation “Install Spring Facet” has failed to perform migration actions. Error for project [prjName].
    java.lang.NullPointerException
    Operation “Install Spring Facet” has failed to perform migration actions. Error for project [prjName].
    java.lang.NullPointerException

    #354042 Reply

    support-swapna
    Moderator

    morpheus1958,

    Thank you for the files.

    Can you please clarify if you are able to deploy any another project to MyEclipse Tomcat ? Start MyEclipse with -clean, switch to a new workspace, create a sample web project and check if it can be deployed to MyEclipse Tomcat.

    Please refer to this FAQ on starting MyEclipse with -clean : https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/

    If you are seeing issues deploying a simple web project to MyEclipse Tomcat, then please send us the .log file which is located at <workspace dir>/.metadata/.log

    Can you please also send us the project files (your original project which results in migration issues) to help us replicate the issue at our end? You can strip the project of its source code and send us all the .* files (.settings,.classpath,.project etc) along with the pom.xml if its a maven project.

    Also please share the MyEclipse Installation Details from MyEclipse > Installation Summary > Installation Details.

    #354056 Reply

    morpheus1958
    Participant

    Thanks Swapna for your help.
    I created a workspace from scratch and imported the project (ignored above mentioned spring facet errors as my project doesn’t use it), and did not run into the error again.
    Thanks for your time.

    #354062 Reply

    support-swapna
    Moderator

    morpheus1958,

    Glad that deployment works.

    Please send us the project files and the MyEclipse Installation Details to help us investigate the Spring facet error during import.

    Let us know if you see any issues with MyEclipse.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Deployment failed with NPE for tomcat7 jsp project

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