- This topic has 5 replies, 3 voices, and was last updated 13 years ago by support-swapna.
-
AuthorPosts
-
aliapoMemberHi,
I am using Blue 9.1 (Build id: 9.1-Blue-20110701) I am having a NullPointerException when I deploy an EAR projet, here is the workspace log file output for the error:
!ENTRY org.eclipse.core.jobs 4 2 2011-11-16 14:42:15.147 !MESSAGE An internal error occurred during: "Add Deployment". !STACK 0 java.lang.NullPointerException at com.genuitec.eclipse.blue.project.pack.BlueWarPackager.shouldDeployJar(BlueWarPackager.java:48) at com.genuitec.eclipse.ast.deploy.core.packaging.WarPackager.deployJarsOnClasspath(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.packaging.DefaultPackagerStrategy.deployJarsOnClasspath(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.packaging.PackageUtils.deployJarsOnClasspath(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.EARDeployment.resyncAll(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.Deployment.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.C.ÄÂ�(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.jobs.C.run(Unknown Source) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
I have noticed that if I remove one particular web project, there are no deployment errors, but I need this project to be deployed.
Is there anything assumed to be in my web project that I might not having ?
Thank you.
support-swapnaModeratoraliapo ,
Sorry that you are seeing this issue with MyEclipse.
Can you answer some more questions ?
1) Is this project migrated from RAD ? If yes then can you clarify if you have enhanced your RAD project to work with MyEclipse ? Please refer to the following link :
http://www.genuitec.com/blog/?p=2562) Which version of WAS are you deploying the project to? Also, please make sure that the WAS versions are same in both RAD and MyEclipse.
aliapoMemberHi Swapna,
1) Yes the project was migrated from RAD and yes it was enhanced to work with MyEclipse
2) I am deploying to WAS 7 on both RAD and Blue.
Thank you
support-denisMemberaliapo,
Please check if your EAR project contains META-INF folder and MANIFEST.MF file inside. Open that file and check if there is a line looking like “Class-Path: “. If the line is absent, please add it and try deploying again.
Looks like the Web project that causes troubles depends on some jar inside your EAR project, which makes ME to check your EAR’s MANIFEST.MF file.
Best regards,
Denis.
aliapoMemberDenis,
You are correct, the line “Class-Path: ” is missing but not in the manifest of the EAR project, the line is missing in the manifest of the Web project. This web project is used for some static content, so there is no need of any jar library inside the EAR project.
In RAD the missing line had no effect on deployment.
So adding the line “Class-Path: ” to the web project manifest file solved the issue. I can deploy now.
Thank you for your help guys. It was quick and efficient.
support-swapnaModeratoraliapo ,
Glad that it is working.
Do let us know if you have any other issues. -
AuthorPosts