facebook

NullPointerException on Tomcat deploy

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

    I’m running MyEclipse version 8.0-20091120 on a 64-bit Windows 7 machine. I am getting an error when I deploy my application as an exploded archive to Tomcat 5.5.26. Upon clicking the “Finish” button, MyEclipse begins deploying, and if I open up the /webapps folder in my Tomcat installation, I can see files being deployed, but then the following error message appears:

    @MyEclipse wrote:

    ‘Add Deployment’ has encountered a problem.
    An internal error occurred during “Add Deployment”.

    Opening the corresponding entry in the Error Log gives the following details:

    An internal error occurred during: "Add Deployment".
    java.lang.NullPointerException
    at com.genuitec.eclipse.core.librarymgmt.ModuleManager.getModulePreferences(ModuleManager.java:432)
    at com.genuitec.eclipse.core.librarymgmt.ModuleManager.loadModuleIds(ModuleManager.java:310)
    at com.genuitec.eclipse.core.librarymgmt.ModuleManager.loadModules(ModuleManager.java:279)
    at com.genuitec.eclipse.core.librarymgmt.ModuleManager.getModules(ModuleManager.java:83)
    at com.genuitec.eclipse.core.librarymgmt.ModuleManager.getModules(ModuleManager.java:69)
    at com.genuitec.eclipse.core.librarymgmt.ModuleManager.initializeModules(ModuleManager.java:57)
    at com.genuitec.eclipse.core.librarymgmt.ModuleManager.getModuleForLibraryId(ModuleManager.java:151)
    at com.genuitec.eclipse.ast.deploy.core.packaging.WarPackager.deployUserLibsOnClasspath(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.packaging.DefaultPackagerStrategy.deployUserLibsOnClasspath(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.packaging.PackageUtils.deployUserLibsOnClasspath(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.WebDeployment.ć(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.WebDeployment.doProjectTypeSpecificPostResyncAll(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)
    
    Session Data:
    eclipse.buildId=unknown
    java.version=1.6.0_13
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86

    I don’t know whether this is relevant, but MyEclipse seems to believe that my 64-bit box is only 32-bit.

    The application still seems to deploy successfully, and I can run it just fine, so this may be more of an annoyance than a showstopper. Still, I worry that some part of the application didn’t get fully deployed and I just haven’t discovered it yet.

    The .log file contains essentially the same information:

    !ENTRY org.eclipse.core.jobs 4 2 2010-03-11 10:30:49.439
    !MESSAGE An internal error occurred during: "Add Deployment".
    !STACK 0
    java.lang.NullPointerException
        at com.genuitec.eclipse.core.librarymgmt.ModuleManager.getModulePreferences(ModuleManager.java:432)
        at com.genuitec.eclipse.core.librarymgmt.ModuleManager.loadModuleIds(ModuleManager.java:310)
        at com.genuitec.eclipse.core.librarymgmt.ModuleManager.loadModules(ModuleManager.java:279)
        at com.genuitec.eclipse.core.librarymgmt.ModuleManager.getModules(ModuleManager.java:83)
        at com.genuitec.eclipse.core.librarymgmt.ModuleManager.getModules(ModuleManager.java:69)
        at com.genuitec.eclipse.core.librarymgmt.ModuleManager.initializeModules(ModuleManager.java:57)
        at com.genuitec.eclipse.core.librarymgmt.ModuleManager.getModuleForLibraryId(ModuleManager.java:151)
        at com.genuitec.eclipse.ast.deploy.core.packaging.WarPackager.deployUserLibsOnClasspath(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.packaging.DefaultPackagerStrategy.deployUserLibsOnClasspath(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.packaging.PackageUtils.deployUserLibsOnClasspath(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.WebDeployment.ć(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.WebDeployment.doProjectTypeSpecificPostResyncAll(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)

    After the error occurs, when I try to close the Project Deployments window, I get the following message:

    @MyEclipse wrote:

    A deployment is currently in progress. If you close this dialog the deployment will continue in the background but you must wait for it to complete before running your application. Do you still want to close this dialog?

    The error apparently caused MyEclipse to not realize that it’s already stopped deploying.

    Installation details

    *** Date: 
    Thursday, March 11, 2010 10:22:20 AM MST
    
    ** System properties:
    OS=WindowsVista
    OS version=6.1.0
    Java version=1.6.0_13
    
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 8.0
    Build id: 8.0-20091120
    
    
    *** Eclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 8.0
    Build id: 8.0-20091120
    
    
    
    
    
    
    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Users\rwalker.MSHARE\AppData\Local\Genuitec\Profiles\MyEclipse 8.0\myeclipse.exe
    -name
    Myeclipse
    --launcher.library
    C:\Users\rwalker.MSHARE\AppData\Local\Genuitec\Profiles\MyEclipse 8.0\../../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
    -startup
    C:\Users\rwalker.MSHARE\AppData\Local\Genuitec\Profiles\MyEclipse 8.0\../../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    -install
    C:/Users/rwalker.MSHARE/AppData/Local/Genuitec/Profiles/MyEclipse 8.0
    -configuration
    configuration
    -vm
    C:/Users/rwalker.MSHARE/AppData/Local/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll
    #306737 Reply

    “Tomcat deplay.” Sheesh. I wish these forums allowed one to edit one’s posts; I don’t see any such option.

    #306756 Reply

    Brian Fernandes
    Moderator

    Can you tell us what kind of project this is? Have you added any capabilities to your web project?

    Also, can you paste your .project, .classpath and .mymetadata files here please? That will help us track the NPE you are running into.

    On another note – can you try creating a brand new web project (just use the defaults) and deploy that – does that work without errors?

    Sorry for the inconvenience caused.

    #306891 Reply

    Sorry for the delay, it’s been really busy here!

    According to Project Properites > MyEclipse, the project has Web and Reporting capabilities installed. It is a Tapestry project, but we’re using Tapestry 4, so the Tapestry capability has been disabled since it only handles Tapestry 3.

    .project

    <?xml version="1.0" encoding="UTF-8"?>
    <projectDescription>
        <name>report</name>
        <comment></comment>
        <projects>
            <project>share</project>
        </projects>
        <buildSpec>
            <buildCommand>
                <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>org.eclipse.jdt.core.javabuilder</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>de.bb.bje.eclipse.IncrementalJspBuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</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>
        </buildSpec>
        <natures>
            <nature>com.genuitec.eclipse.reporting.reportnature</nature>
            <nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
            <nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
            <nature>org.eclipse.jdt.core.javanature</nature>
        </natures>
    </projectDescription>

    .classpath

    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
        <classpathentry kind="src" path="src"/>
        <classpathentry kind="src" path="/share"/>
        <classpathentry kind="lib" path="/share/lib/jakarta-oro-2.0.8.jar" sourcepath="C:/Dev/Apache/ORO/jakarta-oro-2.0.8/src/java"/>
        <classpathentry kind="lib" path="/share/lib/jaxrpc-1.1.jar"/>
        <classpathentry kind="lib" path="/share/lib/jl030.jar"/>
        <classpathentry kind="lib" path="/share/lib/odmg-3.0.jar"/>
        <classpathentry kind="lib" path="/share/lib/saaj.jar"/>
        <classpathentry kind="lib" path="/share/lib/tritonus_mp3.jar"/>
        <classpathentry kind="lib" path="/share/lib/tritonus_share.jar"/>
        <classpathentry kind="lib" path="/share/lib/commons-beanutils-1.7.jar"/>
        <classpathentry kind="lib" path="/share/lib/commons-digester-1.6.jar"/>
        <classpathentry kind="lib" path="/share/lib/castor-0.9.9-xml.jar"/>
        <classpathentry kind="lib" path="/share/lib/wss4j.jar" sourcepath="//Island/development/Libs/WSS4J/WSS4J_1_1_0_FINAL/src"/>
        <classpathentry kind="lib" path="/share/lib/opensaml-1.0.1.jar"/>
        <classpathentry kind="lib" path="/share/lib/cglib-nodep-2.1_3.jar"/>
        <classpathentry kind="lib" path="/share/lib/opencsv-1.3.jar" sourcepath="C:/Dev/opencsv-1.3/src">
            <attributes>
                <attribute name="javadoc_location" value="file:/C:/Dev/opencsv-1.3/doc/"/>
            </attributes>
        </classpathentry>
        <classpathentry kind="lib" path="/share/lib/xmlsec-1.3.0.jar"/>
        <classpathentry kind="lib" path="/share/lib/hivemind-1.1.1.jar">
            <attributes>
                <attribute name="javadoc_location" value="file:/C:/Dev/Apache Group/hivemind-1.1.1/docs/hivemind/apidocs/"/>
            </attributes>
        </classpathentry>
        <classpathentry kind="lib" path="/share/lib/hivemind-lib-1.1.1.jar"/>
        <classpathentry kind="lib" path="/share/lib/javassist-3.4.jar" sourcepath="C:/Dev/javassist-3.4/src/main"/>
        <classpathentry kind="lib" path="/share/lib/tapestry-spring-0.1.2.jar" sourcepath="C:/Dev/Apache Group/Tapestry-4.1/tapestry-spring-0_1_2">
            <attributes>
                <attribute name="javadoc_location" value="http://howardlewisship.com/tapestry-javaforge/tapestry-spring/apidocs/"/>
            </attributes>
        </classpathentry>
        <classpathentry kind="lib" path="/share/lib/antlr-2.7.6.jar"/>
        <classpathentry kind="lib" path="/share/lib/commons-codec-1.3.jar"/>
        <classpathentry kind="lib" path="/share/lib/concurrent-1.3.2.jar"/>
        <classpathentry kind="lib" path="/share/lib/dom4j-1.6.1.jar"/>
        <classpathentry kind="lib" path="/share/lib/ejb3-persistence.jar"/>
        <classpathentry kind="lib" path="/share/lib/commons-lang-2.2.jar"/>
        <classpathentry kind="lib" path="/share/lib/tapestry-annotations-4.1.1.jar" sourcepath="//island/Development/Libs/Tapestry/tapestry-4.1.1/tapestry-annotations/src"/>
        <classpathentry kind="lib" path="/share/lib/tapestry-contrib-4.1.1.jar" sourcepath="//island/Development/Libs/Tapestry/tapestry-4.1.1/tapestry-contrib/src"/>
        <classpathentry kind="lib" path="/share/lib/tapestry-framework-4.1.1.jar" sourcepath="//Island/Development/Libs/Tapestry/tapestry-4.1.1/tapestry-framework/src"/>
        <classpathentry kind="lib" path="/share/lib/backport-util-concurrent.jar"/>
        <classpathentry kind="lib" path="/share/lib/commons-collections-3.2.jar" sourcepath="C:/dev/commons-collections-3.2-src/src"/>
        <classpathentry kind="lib" path="/share/lib/ognl-2.6.9.jar" sourcepath="//island/Development/Libs/Ognl/ognl-2.6.9/src"/>
        <classpathentry kind="lib" path="/share/lib/bcmail-jdk15-137.jar"/>
        <classpathentry kind="lib" path="/share/lib/bcpg-jdk15-137.jar"/>
        <classpathentry kind="lib" path="/share/lib/bcprov-jdk15-137.jar"/>
        <classpathentry kind="lib" path="/share/lib/joda-time-1.4.jar"/>
        <classpathentry kind="lib" path="/share/lib/jcommon-1.0.10.jar"/>
        <classpathentry kind="lib" path="/share/lib/commons-math-1.1.jar"/>
        <classpathentry kind="lib" path="/share/lib/oscache-2.4.1.jar" sourcepath="//Island/development/Libs/OSCache/oscache-2.4.1-full/src"/>
        <classpathentry kind="lib" path="/share/lib/bsf-2.4.0.jar"/>
        <classpathentry kind="lib" path="/share/lib/jgroups-2.6.2.jar"/>
        <classpathentry kind="lib" path="/share/lib/commons-logging-1.1.jar"/>
        <classpathentry kind="lib" path="/share/lib/jboss-system.jar"/>
        <classpathentry kind="lib" path="/share/lib/jboss-common.jar"/>
        <classpathentry kind="lib" path="/share/lib/jboss-jmx.jar"/>
        <classpathentry kind="lib" path="/share/lib/jboss-minimal.jar"/>
        <classpathentry kind="lib" path="/share/lib/jboss-serialization.jar"/>
        <classpathentry kind="lib" path="/share/lib/trove.jar"/>
        <classpathentry kind="lib" path="/share/lib/apache-activemq-4.1.2-mshare_updated.jar"/>
        <classpathentry kind="lib" path="/share/lib/jboss-cache-1.4.1.10.jar"/>
        <classpathentry kind="lib" path="/share/lib/trugreenws.jar"/>
        <classpathentry kind="lib" path="/share/lib/VontooServiceClient.jar"/>
        <classpathentry kind="lib" path="/share/lib/uima-core.jar"/>
        <classpathentry kind="lib" path="/share/lib/uima-adapter-soap.jar"/>
        <classpathentry kind="lib" path="/share/lib/uima-adapter-vinci.jar"/>
        <classpathentry kind="lib" path="/share/lib/uima-cpe.jar"/>
        <classpathentry kind="lib" path="/share/lib/uima-document-annotation.jar"/>
        <classpathentry kind="lib" path="/share/lib/jfst.jar"/>
        <classpathentry kind="lib" path="/share/lib/avalon-framework-4.2.0.jar"/>
        <classpathentry kind="lib" path="/share/lib/batik-all-1.7.jar"/>
        <classpathentry kind="lib" path="/share/lib/commons-io-1.3.1.jar"/>
        <classpathentry kind="lib" path="/share/lib/fop-0.95.jar"/>
        <classpathentry kind="lib" path="/share/lib/xml-apis-ext-1.3.04.jar"/>
        <classpathentry kind="lib" path="/share/lib/xmlgraphics-commons-1.3.1.jar"/>
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
        <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Tomcat"/>
        <classpathentry kind="con" path="com.genuitec.eclipse.j2eedt.core.J2EE14_CONTAINER"/>
        <classpathentry kind="con" path="melibrary.com.genuitec.eclipse.reporting.MYECLIPSE_REPORTS_WEB_2_3"/>
        <classpathentry kind="lib" path="/share/lib/jfreechart-1.0.12.jar"/>
        <classpathentry kind="lib" path="/share/lib/xbean-spring-3.0.jar"/>
        <classpathentry kind="lib" path="/share/lib/activation-1.1.jar"/>
        <classpathentry kind="lib" path="/share/lib/asm-2.2.3.jar"/>
        <classpathentry kind="lib" path="/share/lib/asm-commons-2.2.3.jar"/>
        <classpathentry kind="lib" path="/share/lib/asm-util-2.2.3.jar"/>
        <classpathentry kind="lib" path="/share/lib/aspectjrt-1.6.2.jar"/>
        <classpathentry kind="lib" path="/share/lib/axis-1.4.jar"/>
        <classpathentry kind="lib" path="/share/lib/commons-discovery-1.0.jar"/>
        <classpathentry kind="lib" path="/share/lib/commons-fileupload-1.2.jar"/>
        <classpathentry kind="lib" path="/share/lib/commons-httpclient-3.1.jar"/>
        <classpathentry kind="lib" path="/share/lib/ehcache-1.5.0.jar"/>
        <classpathentry kind="lib" path="/share/lib/hibernate-3.3.1.jar" sourcepath="//ISLAND/Development/Libs/Hibernate/hibernate-3.2.6.ga"/>
        <classpathentry kind="lib" path="/share/lib/hibernate-annotations-3.4.0.jar"/>
        <classpathentry kind="lib" path="/share/lib/hibernate-commons-annotations-3.1.0.jar"/>
        <classpathentry kind="lib" path="/share/lib/iText-2.1.3.jar"/>
        <classpathentry kind="lib" path="/share/lib/jta-1.1.jar"/>
        <classpathentry kind="lib" path="/share/lib/junit-4.4.jar"/>
        <classpathentry kind="lib" path="/share/lib/mail-1.4.jar"/>
        <classpathentry kind="lib" path="/share/lib/log4j-1.2.15.jar"/>
        <classpathentry kind="lib" path="/share/lib/quartz-all-1.6.1.jar"/>
        <classpathentry kind="lib" path="/share/lib/spring-2.5.6.SEC01.jar"/>
        <classpathentry kind="lib" path="/share/lib/spring-aspects-2.5.6.SEC01.jar"/>
        <classpathentry kind="lib" path="/share/lib/wsdl4j-1.5.1.jar"/>
        <classpathentry kind="lib" path="/share/lib/spring-modules-cache-0.9.jar"/>
        <classpathentry kind="lib" path="/share/lib/groovy-all-1.6.3.jar"/>
        <classpathentry kind="lib" path="/share/lib/edtftpj-pro.jar"/>
        <classpathentry kind="lib" path="/share/lib/license.jar"/>
        <classpathentry kind="lib" path="/share/lib/an_dlt.jar"/>
        <classpathentry kind="lib" path="/share/lib/an_tagger_dlt.jar"/>
        <classpathentry kind="lib" path="/share/lib/antlr-runtime-3.0.jar"/>
        <classpathentry kind="lib" path="/share/lib/dlt.jar"/>
        <classpathentry kind="lib" path="/share/lib/rule_dlt.jar"/>
        <classpathentry kind="lib" path="/share/lib/tagger_dlt.jar"/>
        <classpathentry kind="lib" path="/share/lib/jasperreports-3.6.0.jar" sourcepath="C:/Dev/Jasper/jasperreports-3.6.0/src"/>
        <classpathentry kind="lib" path="/share/lib/commons-pool-1.5.4.jar"/>
        <classpathentry kind="output" path="context/WEB-INF/classes"/>
    </classpath>

    .mymetadata

    <?xml version="1.0" encoding="UTF-8"?>
    <project-module
      type="WEB"
      name="report"
      id="myeclipse.1089935879809"
      context-root="/report"
      j2ee-spec="1.3"
      archive="report.war">
      <attributes>
        <attribute name="webrootdir" value="/context" />
      </attributes>
    </project-module>

    I haven’t had time to attempt to deploy a brand new web project, but I’ll try to get to that soon.

    #306964 Reply

    Brian Fernandes
    Moderator

    I had a look at the exception trace and it seems that the problem may be related to some missing MyEclipse modules. You mentioned that you had disabled tapestry, how did you do that? If you uninstalled it using the dashboard, I would urge you to reinstall it because it could be tested for libraries (even though they are not being used in your tapestry project). Could you let us know if that works – will help us narrow down the problem.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: NullPointerException on Tomcat deploy

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