For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 7 replies, 3 voices, and was last updated 17 years, 6 months ago by
costicost.
-
AuthorPosts
-
bernerbitsMemberI am using MyEclipse 3.9.2 in Eclipse Version: 3.1.0 (Build id: I20050627-1435) to deploy to WebLogic 8.1. I have 3 modules, the main module, the test module, and the web module. The test module uses a custom builder to copy its class files over to the web module automatically, then refreshes the web module contents.
The custom builder uses the following ant script:
<?xml version="1.0" encoding="UTF-8"?> <project name="J2EE Lesson" default="export" basedir="."> <target name="export"> <delete> <fileset dir="../J2EE Lesson-Web/docroot/WEB-INF/classes" includes="**/*Test.class" /> </delete> <javac srcdir="./src" destdir="./classes" debug="on" nowarn="true" compiler="org.eclipse.jdt.core.JDTCompilerAdapter" /> <copy todir="../J2EE Lesson-Web/docroot/WEB-INF/classes"> <fileset dir="./classes" includes="**/*.class" /> </copy> </target> </project>
However, whenever I make a change to anything in the test module, I get the following error: “weblogic.Server at localhost:4452 (may be out of synch) was unable to replace the running code with the code in the workspace. Reason: Hot code replace failed – Scheme change not implemented”
I can still see my changes in the web application, but they always correspond to the second-to-most-recent update. This means if I save a file twice, without changing it the second time, the code on the server is up-to-date, though I still receive the error message.
When I make changes to the web module, there are no problems.
I cannot include the test module as a dependency in the web module, because it is already dependent on the web module for servlet classes. This would create a dependency cycle.
Any help would be appreciated.
Thanks,
DerekAugust 1, 2005 at 4:38 pm #234037
Scott AndersonParticipantDerek,
Recompiling the classes with a separate builder and overcopying them causes them to all be updated, completely, in the application server. The remote JVM attempts to reload them using the JPDA spec support, but detects that changes have been made that are outside the spec (the scheme change message), so it lets you know that it can’t reload them. This is simply a limitation in the spec, and as such a limitation in the JVMs involved.
The test module uses a custom builder to copy its class files over to the web module automatically, then refreshes the web module contents.
Can you just create a separate source folder within the web project for your tests and set the output folder to be WEB-INF/classes instead of in another project? That will keep the test code separate from your application code while still allowing easy deployment with the web application.
August 2, 2005 at 9:30 am #234089
bernerbitsMemberI would like to keep the test deployment separate from the web deployment, because I have to keep test code off the production server.
Although now that I think about it, I suppose I could just as easily disable “test” as a source folder for production mode.
I rewrote the ant script to do a simple copy, not deleting the current class files if they aren’t up to date. No more error messages, and it hot-deploys fine to JBoss, but I still remain 1 iteration behind in WebLogic. Thoroughly annoying…
Derek
August 2, 2005 at 5:36 pm #234116
Scott AndersonParticipantAre you running both JBoss and WebLogic with the same JDK?
August 3, 2005 at 8:58 am #234139
bernerbitsMemberNot the same VM – I’m launching them both as external servers with the MyEclipse controls. Putting the tests into the Web project seemed to work the best. I think the deployment was 1 iteration behind because the deployment builder was launching before the external builder.
Thanks,
DerekAugust 5, 2005 at 6:20 pm #234297
Scott AndersonParticipantDerek,
That explaination makes sense.
April 7, 2008 at 8:16 pm #283777
costicostMemberThis message has not been recovered.
April 7, 2008 at 8:16 pm #283778
costicostMemberThis message has not been recovered.
-
AuthorPosts