- This topic has 3 replies, 2 voices, and was last updated 15 years ago by
support-shalini.
-
AuthorPosts
-
unisys_polisMemberWe have a JSF Maven-Webproject who references some Maven Projects. All dependencies are defined in the pom.xml. The project was originaly developed with MyEclipse 7.1. With this version of MyEclipse everything works fine. Then we change the MyEclipse Workspace to the current Version (8.5). And with this version we can run the JSF Application only one time within the IDE. If we start the Server a second time we running in a java.lang.ClassCastException. It looks like the Server has 2 Versions of the same class. We use exploded deployment and i check all jars and the directly deployed classes in the WEB-INF/classes folder. Everything looks fine. The autodeploy folder not contains two versions of the same class.
The only thing we can do is delete the deployment. Start the Server without a deployment. Stop the server and start him again with the current deployment. Then it will work again (one time).
Do you have a idea what could be the reason of this Problem?June 14, 2010 at 11:52 pm #309073
support-shaliniMemberunisys_polis,
Can you check if there are any errors logged in the log file located at worspace dir > .metadata > .log?
Please clear the log file, save it and then start the server to get the relevant errors.
Also, can you clarify if you are re-deploying the application for the second time or just restarting the server?June 15, 2010 at 2:24 am #309078
unisys_polisMemberHello Shalini, thank you for your replay.
I followed your recommendation but never received a error in the .log File.Following Steps I have taken:
1) I cleaned and saved the .log file
2) I removed the Deployment from the Server and started the Server without a deployment
-> The .log file remains empty3) I right clicked on the web project and selected “Run As->MyEclipse Server Application”. This way the IDE deploys the Project to the server and starts the server.
-> The .log file remains empty. The deployed Project works.4) I stopped the server and started it again over the server tab. (Without a redeploy)
-> The .log file still remains empty. The deployed Project works.5) I stopped the server and started it over “Run As->MyEclipse Server Application” (Without making a change in the project). I also tried this step over the server tab with the same result.
-> The .log file still remains empty. The deployed Project now running in a ClassCastException.6) If I stop the server now and start it again over the server tab the new deployment will work.
June 16, 2010 at 1:07 am #309129
support-shaliniMemberunisys_polis,
I shall escalate this issue to the dev team member. They will get back to you on this. -
AuthorPosts