- This topic has 11 replies, 8 voices, and was last updated 15 years, 9 months ago by mohammedhaq.
-
AuthorPosts
-
goosefrabaMemberHello!
I use MyEclipse and Apache Tomcat 6.0.13. When I try to deploy my project in developement mode, there occurs an error:
An internal error occurred during: "Add Deployment". java.lang.NullPointerException
In Packaged Mode, Deployment is working, but there is no .war file in the webapps folder and MyEclipse alsways tells me, that the deployed version is out of date.
Please Help
Loyal WaterMemberCan you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.
Can you paste the error that gets recorded under <workspace>/.metadata/.log file.
timekingMemberi have same problem: can you resolve it for me?
It is installation:*** Date: Tuesday, July 15, 2008 3:30:18 PM MSD ** System properties: OS=WindowsXP OS version=5.1 Java version=1.5.0_14 *** MyEclipse details: MyEclipse Blue Edition Version: 6.1.0 GA Build id: 6.1.0-GA-20080314 *** Eclipse details: MyEclipse Blue Edition Version: 6.1.0 GA Build id: 6.1.0-GA-20080314 Eclipse Platform Version: 3.3.2.R33x_v20071022-_19UEksF-G8Yc6bUv3Dz Build id: M20071023-1652 Eclipse RCP Version: 3.3.2.R33x_r20071022-8y8eE9CEV3FspP8HJrY1M2dS Build id: M20071023-1652 Eclipse Java Development Tools Version: 3.3.1.r331_v20070629-7o7jE72EDlXAbqAcnbmyg1rf8RIL Build id: M20071023-1652 Eclipse Plug-in Development Environment Version: 3.3.2.R33x_r20071022-7N7M4CYWLBCz-yHkMIuHN Build id: M20071023-1652 Eclipse Project SDK Version: 3.3.2.R33x_r20071022-7M7J7C_Mu2gop0b_GAwplOBhyuKO Build id: M20071023-1652 Eclipse Graphical Editing Framework Version: 3.3.1.v20070814 Build id: 20070814-1555 Eclipse startup command=-os win32 -ws win32 -arch x86 -showsplash -launcher D:\java\myeclipse\eclipse\eclipse.exe -name Eclipse --launcher.library D:\java\myeclipse\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.2.R331_v20071019\eclipse_1021.dll -startup D:\java\myeclipse\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar -exitdata 99c_78 -vm D:\java\myeclipse\jre\bin\javaw.exe
There is .log:
!SESSION 2008-07-15 15:07:21.462 ----------------------------------------------- eclipse.buildId=M20071023-1652 java.version=1.5.0_14 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 !ENTRY com.genuitec.eclipse.core.common 1 0 2008-07-15 15:08:05.946 !MESSAGE ClasspathContainer requery for classpath-string: com.genuitec.eclipse.jsf !ENTRY com.genuitec.eclipse.core.common 1 0 2008-07-15 15:08:06.196 !MESSAGE ClasspathContainer requery for classpath-string: com.genuitec.eclipse.jsf !ENTRY org.eclipse.core.jobs 4 2 2008-07-15 15:22:30.056 !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.EARDeployment.resyncAll(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.EARDeployment.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)
Loyal WaterMemberIs you project checked into a version control system? Which one is it?
If you create a copy of the project that is not checked in, are you able to deploy it successfully?
timekingMemberYes, i use Perforse system.
It project is deploiable for my coworkers, but no for me. why? yes this project work from other branches.
Riyad KallaMembertimeking, I noticed in the log file that a Source folder check is failing… do you not have any source folders set for this project?
if you open the project properties, and go to Java Build Path and then the SOurce tab, do you have source folders AND an output folder set?
If you click on the “MyEclipse” properties node, which icons are lit up?
ftibbittsMemberI had this same exact problem. The error that MyEclipse gives you is not at all helpful.
It turned out that the “webrootdir’ value in the .mymetadata file some how ended up pointing to a non-existent directory. I removed the bad deployment, closed eclipse, updated the file to point to the real web root of my project, restarted eclipse, and added the deployment back in. That solved the problem for me.
Riyad KallaMemberftibbitts,
We appreciate you following up here for other folks running into this issue… has this only happened to you that one time? was there another time it happened? Very strange…
jubaMemberExactly the same problem on myeclipse 6.6.
Here is what is stated in the error-log:
!ENTRY org.eclipse.core.jobs 4 2 2008-11-26 15:28:59.484
!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)It is caused if the webroot dir is not existent. In my case, the websroot dir is target/war_exploded. The webroot dir is not existent until I run maven. So it seems this is a bug in DeploymentUtil.isSourceFolder().
You must check if the dir exists before start copying.
Riyad KallaMemberjuba, agreed, thanks for adding your details to this issue, I’ll get these details along to the dev team.
msmalleyMemberI had the exact same problem and ftibbitts’ solution worked for me as well. I just closed down eclipse and manually changed the webrootdir value in .mymetadata. How it was changed in the first place I’m not entirely sure; I had some problems with the subversive svn plugin and made some filesystem changes outside of eclipse. None of those changes were made directly to the the project with the error, though. I also removed it from my ear and then re-added it as a module but that was after I started having problems deploying. The only other relevant thing I can think of is that I use the “manually update application.xml” setting for my ear.
mohammedhaqMemberAfter installing MyEclipse 7.0, I believe when I did the initial import of the workspace it ended up changing the following folder names of my project such as “META-INF”, “WEB-INF” and “WebRoot” to initcap. That is why it was unable to find the source, as the project meta data file was looking for “WebRoot”. I ended up renaming the folder to “WebRoot” in my project and the deployment worked there after. There were other files which I had to update to get my app up and running.
-
AuthorPosts