- This topic has 16 replies, 3 voices, and was last updated 13 years, 3 months ago by support-swapna.
-
AuthorPosts
-
usryjwMemberHi there,
I am still getting the following error after I installed MyEclipse Blue v9.1. From what I’ve been told that the following error should be fixed in v9.1. Can some one take a look and confirm for me?
Syntax error, annotations are only available if source level is 5.0
Thanks,
usryjwMemberAnd I am still having the following error.
Syntax error, parameterized types are only available if source level is 5.0
support-swapnaModeratorusryjw,
I will file it for investigation with the dev team.
Sorry for the inconvenience caused.
support-swapnaModeratorusryjw,
Can you please create a sample project with this issue and send it to us ? Also what is the compliance level of your project ?
You can upload it to the forums, refer to https://www.genuitec.com/forums/topic/troubleshooting-how-to-upload-attachments-on-forum/ or send a mail to support@genuitec.com with Subject : ATTN SWAPNA and a reference to this thread.
support-swapnaModeratorusryjw,
Can you also clarify if its an error in the project or an error you only see when you deploy it on WAS 6.1 ?
Brian FernandesModeratorusryjw,
To clarify Swapna’s comments from earlier, go to Project Properties > Java Compiler and check the JDK compliance level you have over there, it is probably set to 1.4 or lower. Also go to the Project Facets properties page and adjust the version of the Java Facet to match the compiler compliance level chosen on the compiler page.
usryjwMemberThanks for your quick response.
The errorshappened during the deployment. I don’t see the compiling error on any of my projects.
Thanks,
usryjwMemberTo answer Brian’s question.
The project Java compliance level was set to 1.5 and Java Facet was 1.5. EJB Module was 2.0.
It looks like all the errors happened only to the EJB projects of my ear project.
Thanks,
usryjwMemberTo answer Brian’s question.
The project Java compliance level was set to 1.5 and Java Facet was 1.5. EJB Module was 2.0.
It looks like all the errors happened only to the EJB projects of my ear project.
Thanks,
usryjwMember@support-swapna wrote:
usryjw,
Can you also clarify if its an error in the project or an error you only see when you deploy it on WAS 6.1 ?
I saw the erros when I deploy it on WAS6.1
Thanks
Brian FernandesModeratorAnother note is the fact that WAS 6.1 does not support Java 5 natively and requires additional feature packs for JEE 5 support – do you have these installed? Are you able to successfully deploy your project with any other tools to this same profile?
usryjwMember@Support-Brian wrote:
Another note is the fact that WAS 6.1 does not support Java 5 natively and requires additional feature packs for JEE 5 support – do you have these installed? Are you able to successfully deploy your project with any other tools to this same profile?
I did install the patches to WAS6.1. The version of the WAS6.1 is 6.1.0.25, which is the same as my production server.
BTW, what else application do you recommend me to try, other than WAS6.1?
Thanks
usryjwMemberI meant application server
usryjwMember@Support-Brian wrote:
Another note is the fact that WAS 6.1 does not support Java 5 natively and requires additional feature packs for JEE 5 support – do you have these installed? Are you able to successfully deploy your project with any other tools to this same profile?
BTW, I was able to build my ear file outside MyEclipse with ant scripts and deployed the ear file to my WAS6.1 server without having any issues. The WAS6.1 is the same one I was trying to deploy within MyEclipse.
Thanks,
support-swapnaModeratorusryjw,
Can you check if running EJB Deploy Tool fixes this issue ?
Open context menu on your EAR or EJB project, select MyEclipse > Run EJB Deploy. You will have to configure it for the first time.
For deployment you can use all deployment modes including our new in-workspace mode. However if you want to use classic or extended, you must disable EJB Deploy tool. Open project properties, navigate to MyEclipse > EAR page and deselect “Run EJBDepoy tool”.
Let me know how this works for you.
-
AuthorPosts