- This topic has 7 replies, 3 voices, and was last updated 12 years, 4 months ago by Brian Fernandes.
-
AuthorPosts
-
matt97ParticipantI have been dealing with multiple MyEclipse Blue Edition (10.1) issues for the past couple weeks, one of which is a stubborn error which appears everytime I attempt to deploy :
An internal error occurred during: "Add Deployment". 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.c(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.Deployment.resyncAll(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.webProjectBuildAll(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.buildAll(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.build(Unknown Source) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
When this occurs, the server tab indicates that a project might have been deployed (with the small arrow next to the server entry) but when I try to expand it, there is nothing there. There is also no option to redeploy. When I attempt to add the deployment again, it is no longer part of the available options. Removing the server profile, restarting MyEclipse, and re-adding the profile allows me to see the correct listing once again.
These projects were originally part of RAD or RSA and I already enhanced all of them to work with MyEclipse. Also, another thread suggested adding “Class-path:” to each MANIFEST.MF file which was missing it, so I completed that, but the same error occurs.
I am using WAS 7.0.0.19 on a Windows 7 32-bit version. Other developers are using Windows 7 64-bit and MyEclipse without issue. I have re-installed MyEclipse, re-created my WAS profiles, and followed the exact same steps as them, however I get these errors and they don’t seem to. I’m also using the Classic mode of deployment because although I was able to deploy with In-Workspace mode, there were other more serious issues that arose, possibly related to classloading.
Another strange thing I’ve noticed is that my .myeclipse folder is being saved in the wrong C:\Users\<user> folder. I don’t know how critical this is, but I thought it was odd.
At this point, I’ve gone 2 weeks without being able to work after migrating from RSA, and I’m very frustrated with this product. Please assist.
matt97ParticipantSomething new on a different server profile, but still a failure:
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 Framework arguments: plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar Command-line arguments: -os win32 -ws win32 -arch x86 plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar Info Thu Sep 13 21:09:37 EDT 2012 Deploy failed com.genuitec.eclipse.core.GenuitecCoreException: at com.genuitec.eclipse.ast.deploy.core.packaging.WarPackager.exportWebProject(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.packaging.DefaultPackagerStrategy.exportWebProject(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.packaging.PackageUtils.exportWebProject(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.packaging.EarPackager.packageModules(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.packaging.EarPackager.exportEARProject(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.packaging.DefaultPackagerStrategy.exportEARProject(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.packaging.PackageUtils.exportEARProject(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.EARDeployment.exportEARProject(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.EARDeployment.deployAsPackageArchive(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) Caused by: org.eclipse.core.runtime.CoreException: at com.genuitec.eclipse.ast.deploy.core.packaging.WarPackager$1.run(Unknown Source) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2326) ... 13 more Caused by: 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) ... 16 more
support-swapnaModeratormatt97,
Sorry that you are seeing issues. I have escalated it to the dev team.
They will get back to you.
matt97ParticipantOne more issue I encountered:
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
Framework arguments: plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
Command-line arguments: -os win32 -ws win32 -arch x86 plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jarThis is a continuation of log file C:\w\ws3\.metadata\.bak_0.log
Created Time: 2012-09-14 12:03:39.348Info
Fri Sep 14 12:17:19 EDT 2012
Deploy failedcom.genuitec.eclipse.core.GenuitecCoreException: Unable to deploy EAR application to WebSphere server.
at com.genuitec.eclipse.blue.websphere.BaseWebsphereManager.deployEAR(BaseWebsphereManager.java:415)
at com.genuitec.eclipse.blue.websphere7.Websphere7Manager.deployEAR(Websphere7Manager.java:386)
at com.genuitec.eclipse.blue.websphere.BaseWebsphereManager.deployApplication(BaseWebsphereManager.java:268)
at com.genuitec.eclipse.blue.websphere.deploy.LocalServerDeploymentStrategy.deploy(LocalServerDeploymentStrategy.java:95)
at com.genuitec.eclipse.blue.websphere.WebsphereServer.afterDeployment(WebsphereServer.java:449)
at com.genuitec.eclipse.ast.deploy.core.Deployment.�(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.performStdRedeploy(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.redeploy(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.jobs.D.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: com.genuitec.eclipse.core.GenuitecCoreException: Internal deployment error.
at com.genuitec.eclipse.blue.websphere.BaseWebsphereManager.deployToServer(BaseWebsphereManager.java:567)
at com.genuitec.eclipse.blue.websphere.BaseWebsphereManager.deployToServer(BaseWebsphereManager.java:501)
at com.genuitec.eclipse.blue.websphere.BaseWebsphereManager.deployEAR(BaseWebsphereManager.java:413)
… 10 more
matt97ParticipantHi Swapna,
Has there been any update in regards to investigating these issues?
Matt
Brian FernandesModeratorMatt,
Sorry for the delayed response on this issue. I had a few questions:
1) You state that other members of your team have no problems. Are they also using the same version of MyEclipse Blue – version 10.1? What deployment mode are the using?
2) Are your project’s exactly the same (as compared to others in your team)? Looking through the stack trace (and all your traces seem to point to the same root issue), it would appear that your project has a configuration error and this is unusual if others are using exactly the same configuration without a problem.
3) What is the structure of your application – an EAR with several Web modules and EJB modules? Did the web project have a MANIFEST.MF file to start with or did you add that in an attempt to solve this problem?
matt97Participant1) Yes, they are. An install package was set up specifically for our team and everyone is using that. With that said however, I’m currently the only member attempting to use MyEclipse on a 32-bit Windows 7 image, so presumably they’re using 64-bit.
2) This is difficult to say for certain, although we all checked out of the same SVN branch following the install, and we all check back into the same branch. WAS 7 install locations may differ, and possibly which JRE is selected in the build path. I noticed that I wasn’t able to select “Enhance RAD Project to work with MyEclipse” on approximately half of the projects, but for the others I was able to and did so.
Are these just configuration errors in general that you suspect, or is there a specific change that can be made?
3) MANIFEST.MF is present in the web project. After receiving the deployment error, I searched and found another discussion about adding “Class-path:” to the manifest if it was missing. While this seemed to work initially, it failed in the long run and I continued to receive those errors after the change was made.
We have several JEE projects, our web project, and two EJB projects included in the main EAR.
Brian FernandesModeratorMatt,
I believe what appears to be happening in your case is that you have a system / WAS installation that is different from the others on your team. Some of your projects have been enhanced AND checked in with settings that are correct for the other members of your team but not for you. This is indicated by the fact that you cannot enhance a few of your projects.
The fact that the enhancement properties aren’t really usable across machines is something we have fixed if projects are freshly enhanced in MyEclipse 10.6.
For your projects:
1) Ensure you have your WebSphere 7 server is correctly configured in MyEclipse.
2) Go to the .settings folder in the root of each of your projects and delete the com.genuitec.eclipse.blue.projects.properties file.
3) Restart MyEclipse and enhance the EAR project – this should list *all* your modules as part of the enhancement process. After you finish, your projects should now be correctly configured. You should not check in the com.genuitec.eclipse.blue.projects.properties files.As opposed to using 10.1, you could also upgrade to 10.6 and use that to enhance your projects instead, we’ve fixed a few issues in the enhancement process.
Please let me know how it goes, sorry for the inconvenience caused.
-
AuthorPosts