- This topic has 16 replies, 2 voices, and was last updated 12 years, 2 months ago by
reachmuzamilshaikh.
-
AuthorPosts
-
reachmuzamilshaikhMemberI am evaluating Myeclipse as an alternative to RAD. We have a ejb 2 project which has a folder deploy-src where RMIC code gets generated through RAD when we do prepare for deployment in RAD. In Myeclipse when i manually run ejb deploy it fails(at the point where it says invoking RMIC 1 of 2) with the below exception:
EJB deploy failed
Error while processing project XYZEjb: com.ibm.etools.rmic.RMICException: RMIC Command returns RC = XYZEjb. The problems which stopped RMIC are displayed, and have also been recorded in the .log file in error: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
java.lang.NoClassDefFoundError: org.apache.log4j.Logger
at com.ingmbh.logging.LogFactory.<init>(LogFactory.java:55)
at com.ingmbh.logging.LogFactory.getInstance(LogFactory.java:70)Please help me with this, Awaiting your response.
support-swapnaModeratorreachmuzamilshaikh,
Sorry that you are seeing this issue.
Can you please answer some more questions for us to help investigate further?
1. Did you remove old code, which was generated by RAD ? If no, then please remove the EJB stubs generated by RAD and try again.
2. If the deploy still fails, please let us know which deployment mode are you going to use. If you are not going to use the in-workspace mode, then it is not required to run the EJB Deploy manually.
3. Where are you using the “com.ingmbh.logging.LogFactory”? You may need to add log4j.Logger to the build path of the EJB project.
Let us know how it works for you.
reachmuzamilshaikhMemberHi Swapna,
Thanks a lot for your response, Please find below the responses to your questions:
1. Yes i did remove the code generated by RAD and tried running the ejb deploy tool manually as i have disabled the automatic running of the ejb deploy.
2. I was using Exploded mode and i also tried packaged mode. the issue still persisted.
3. the log4j.Logger is present in the build path.
I Installed and configured Jrebel this morning and when i tried to run the server i was getting Http port already in use error. So i thought of restarting My eclipse and now i am facing a more serious problem, It says INTEGRITY CHECK ERROR. I have attached the screen shot.
i also tried re starting the system and changing the workspace. The problem still persists and now i am not able to start Meclipse itself so i am not 100% sure about 3rd point (log4j.Logger).
Please help me at the earliest in fixing this as i have very less time to evaluate Myeclipse and present my view to my team. it was already a great pain to setup the projects and now the error asks me to reinstall my eclipse, which adds up to my problems.
Thanks.
Attachments:
You must be logged in to view attached files.
reachmuzamilshaikhMemberFYI,
I am using Windows 7 64 bit OS. It was working fine since last 2 days, and i suddenly find this Integrity check error.
reachmuzamilshaikhMemberFYI,
my myeclipse-blue.ini file looks as below, i had made a few changes in it, but still it was working fine.
#utf8 (do not remove)
-vm
C:\IBM\WebSphere\AppServer\java\jre\bin\javaw.exe
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
–launcher.library
../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_4.2.0.v201201111650
-install
C:\EP\MyEclipseblueInstallation\MyEclipse Blue Edition\MyEclipse Blue Edition 10
-configuration
C:\EP\MyEclipseblueInstallation\MyEclipse Blue Edition\MyEclipse Blue Edition 10\configuration
-vmargs
-Xmx1024m
-XX:MaxPermSize=1024m
-Dosgi.nls.warnings=ignorePlease let me know in case you need any more information.
reachmuzamilshaikhMemberHi Sapna,
INTEGRITY CHECK ERROR is resolved when i re- installed MyEclipse.
> the log4j jar is present in the earlibraries of the ejb project, hence in the build path of the ejb project.
> I tried with classic and enhanced mode. I am not going to use in-workspace mode, but if i do not run the ejbdeploy manually then in the deploy src folder of my ejb project the code is not getting generated(I have turned off running ejb deploy automatically). So after deploying the ear when i run my application i am getting bean not found exceptons.
> these bean not found exceptions are gone when i copy the RAD generated code in my deploy-src folder of my ejb project.
Please help.
support-swapnaModeratorreachmuzamilshaikh,
Sorry that you are seeing issues.
1. Can you please scan your machine for any possible viruses ?
2. Are you using a different JDK for MyEclipse ? If yes then can you check if a reinstall of the JDK fixes the issue ?
3. If you are still seeing issues,can you please do a clean install of MyEclipse ? You do not have to worry about the projects which are setup. All information is stored in the workspace, so you can reinstall MyEclipse without any issues.
Take a look at this FAQ for a clean install of MyEclipse : https://www.genuitec.com/forums/topic/installation-how-do-i-perform-a-clean-myeclipse-install/
Let us know how it works for you.
reachmuzamilshaikhMemberHi Swapna,
If you see my previous post, I have done the re-installation and things are fine now, but the root cause of the issue that is ejb 2 RMIC code generation is still not happening.
support-swapnaModeratorreachmuzamilshaikh,
Sorry that you are still seeing issues with EJB Deploy.
We have never observed such an error on our side and without a project to debug, we are unable to investigate further.Can you please send us an example project which fails with the same error to help us investigate at our end ? You can send it in an email to [email protected] subject : ATTN:Swapna along with a link to this thread. If the project is above 5 MB then please email it to [email protected] along with a reference to this thread.
reachmuzamilshaikhMemberHi Swapna,
I am not able to replicate the error with an example project. I will try for some more time from my end. I actually prefer MyEclipse over RAD but EjbDeploy is the only hurdle. 🙁
The log4j jar is present in the earlibraries of the ejb project, hence in the build path of the ejb project. Not able to figure out the issue.
Thanks for the Support.
reachmuzamilshaikhMemberThe Ejb deploy issue got resoved when i added a variable to the build path of a dependent project of the ejb project. Thanks for your co ordination,
-> No when i deploy the ear, i get the following exception in the deployment log:
-nodeployejb
-processEmbeddedConfig
WASX7017E: Exception received while running file “C:\EngP\MyEclipse Blue Installation\Common\plugins\com.genuitec.eclipse.blue.websphere8_9.0.0.me201207171805\installEAR_EJB3.jacl”; exception information: com.ibm.websphere.management.application.client.AppDeploymentException: com.ibm.websphere.management.application.client.AppDeploymentException: [Root exception is org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: dd_in_ear_load_EXC_]
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: dd_in_ear_load_EXC_Please help.
reachmuzamilshaikhMemberHi Swapna,
I re-imported the projects and did not face the issue during ear deployment.
I have the following 2 questions.
1> i was getting the error :
Error executing deployment: java.lang.OutOfMemoryError. Error is Java heap space.
java.lang.OutOfMemoryError: Java heap space
at org.eclipse.jdt.internal.core.util.ClassFileReader.<init>(ClassFileReader.java:254)This was resolved when i switched off EJB Deploy in the EAR properties.Right click on EAR project > Properties > MyEclipse > EAR > uncheck ‘Run EJB Deploy Tool’.
IS THIS A BUG? PLEASE CHECK.
2>In RAD we are able to get the class level diagrams, can we create such diagrams in MyEclipse also? if Yes please provide some information on it.
Thanks for the Support.
support-swapnaModeratorreachmuzamilshaikh,
Basically a java heap space error means that there is insufficient memory set up. It is not a bug. You will need to specify more memory for Websphere or for MyEclipse.
Can you check if increasing the memory for Websphere fixes the issue ? Take a look at this link for more information : http://www.ibm.com/developerworks/websphere/library/techarticles/0706_sun/0706_sun.html
Here is an FAQ on how to increase memory for MyEclipse : https://www.genuitec.com/forums/topic/troubleshooting-memory-amp-performance-issues/
Coming to class level diagrams , are you referring to UML class diagrams ? If yes then please take a look at this link for a head start :
http://www.myeclipseide.com/module-htmlpages-display-pid-19.htmlIf this is not what you are looking for , then please elaborate on the requirement.
reachmuzamilshaikhMemberThe setup is done and thanks a lot for the support. We are looking forward to bond with MyEclipse.
Thanks for the links, i have increased the memory and read the UML class diagrams, this is what i was looking for.
Finally, i have installed SVN plugin from http://subclipse.tigris.org/update_1.8.x
When i compare any local file with latest in SVN it does not show the differences properly, attaching the screen shots.I am not sure if it is a plug-in problem or needs some settings in MyEclipse.
Attachments:
You must be logged in to view attached files.
reachmuzamilshaikhMemberI got the issue, Actually it was considering white-spaces during comparison by default for all files.
Open Window > Preferences from the menu bar Select General > Compare/Patch in the left-side tree menu Check “Ignore white space” Press Apply, then OK
-
AuthorPosts