facebook

MyEclispe 5.0M2 – New server deployment is not reliable

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #254371 Reply

    Nicole Wilms
    Member

    Hello,

    I have been playing around with 5.0M2 (a clean install on SDK 3.2). I have found some problems with the server deployment. I use Jboss 4.0.4GA. I made a small test application with;

    – 1 EJB project
    – 1 Webproject
    – 1 EAR
    – 1 Utility Java project

    I added the utility project to the 2 projects as reference projects and ran ‘New module manifest’.

    I set WEB and EJB deployment to manual and ‘Jar dependent java projects’ on the ear file.

    It deploys great! But when I press redeploy again, I get a different error each time I press redeploy;

    – url file:/C:/jboss-4.0.4.GA/server/default/deploy/ProjectEAR.ear/ProjectEARWeb.war could not be opened, does it exist?

    – Could not initialise deployment: file:/C:/jboss-4.0.4.GA/server/default/deploy/ProjectEAR.ear/
    org.jboss.deployment.DeploymentException: No META-INF/application.xml found

    When I close MyEclipse and start it again it works again for 1 or 2 times.

    It is not very usable at this stage. I can mail you a zip file of my small workspace if you like!

    Kind regards,

    Edwin

    #254384 Reply

    Scott Anderson
    Participant

    Edwin,

    Are you seeing these problems with the server running or shutdown? Can you try with the server shutdown. Where are the errors showing themselves? In the JBoss console? It could be that you’re using an exploded deployment with the server running and JBoss is trying to load it before the redeployment has finished. You can either configure JBoss to lengthen its polling interval, redeploy with the server thutdown, or use packaged deployment to work around the issue if that’s the case.

    #254389 Reply

    Nicole Wilms
    Member

    Hi,

    even with the server shutdown it does not deploy correctly anymore. Press redeploy or changing the application.xml does not do the trick. When I look into the jboss/deploy/projectear.ear directory it is not complete. Or the web war is missing or the application.xml is missing.

    Sometimes he does not show the war and ejb-jar in the server view. Removing the application from deployment from the server and again adding it to the server puts it back working.

    Also when I press ‘restart server’ it does not restart correctly. it starts before the old server has shutdown so you get a lot of open socket errors.

    Edwin

    #254390 Reply

    Nicole Wilms
    Member

    Also, the same server setup worked great with when I did some experimenting with 5.0M1 and 4.1.1. Only I did not change the deployment defaults for an extra ‘optional java project’.

    How do I change the polling interval on Jboss?

    I looked in the jboss-service.xml and it is ‘ <attribute name=”ScanPeriod”>5000</attribute>’. Which is longer than deploy time (100ms).

    Edwin

    #254415 Reply

    Nicole Wilms
    Member

    More info, I moved to another PC (my work PC instead of my home laptop). Still problems;

    – shutting down the server before deploying works most of the time until it forgets the .war and .ejb jar on the project, while they still were on the application.xml – removing the app from deployment helped
    – it produced a 0kb size javaproject. Removing it and redeploying produced again a 0kb .jar. Adding a test class to the java project helped to get a valid .jar.

    Edwin

    #254430 Reply

    Scott Anderson
    Participant

    Edwin,

    Can you send us a zip with your projects in it and explicit instructions to replicate the issue? If I have a reproducable test case, we can get the issue resolved quickly. Please send the simplest set of projects that will demonstrate the problem to support at myeclipseide.com and please include a reference to this URL so we can crosstag the bug report and reply here when we determine if it’s a bug or usage problem, or whatever. Thanks in advance for your help.

    #254438 Reply

    Nicole Wilms
    Member

    Scott,

    I just mailed the zip file with some instructions to your support email address.

    Hope to hear from you,

    Edwin

    #254592 Reply

    Brian Fernandes
    Moderator

    Edwin,

    We received the workspace from you and were able to replicate some of the deployment issues internally.
    An internal bug report has been filed and our team is having a look at the problem right now.

    We will continue to update this thread as more information becomes available.

    Sorry for the inconvenience caused,
    Best,
    Brian.

    #255023 Reply

    Nicole Wilms
    Member

    This message has not been recovered.

    #255178 Reply

    Scott Anderson
    Participant

    This message has not been recovered.

    #255392 Reply

    Nicole Wilms
    Member

    This message has not been recovered.

    #256241 Reply

    Nicole Wilms
    Member

    Scott,

    Sad to say, but my problem does NOT go away with 5.0GA! Now he even does not redeploy with Jboss switched off sometimes! I get the error box about something being in use… I think MyEclipse itself is locking something and I do most often get a projectjava.jar which is empty! Sorry to say, but it is even worse than it was!

    Can you please have a look at it and answer my question I asked in my previous answer to your question?

    Kind regards,

    Edwin

    #256275 Reply

    Scott Anderson
    Participant

    The code in the Java projects do not seem to be updated when you change something in normal run mode, and only a little bit in debug mode.

    In Run mode the JVM will not hotswap the new code into the server JVM, but in Debug mode it will try to. To help the work as well as possible, you need to run Eclipse and your sever with the same level of JVM (ie. both running on JDK 1.5 or 1.4.2, but not a mix between the two.

    Maybe this is because the jars are not in exploded view and the ejb the web projects are.

    I think I understand your setup. The only thing that might help the debugging to work better would be to run in debug mode with exploded deployment and try setting the following deployment options:
    Window > Preferences > MyEclipse > J2EE Project > Web Project > Deployment > Use Smart Deployment and
    Window > Preferences > MyEclipse > J2EE Project > EJB Project > Deployment > Merge into EJB project…
    Those can also be set at a project-specific level, rather than a workspace level on the project Properties > MyEclipse > MyEclipse > Web / EJB pages as well.

    I get the error box about something being in use… I think MyEclipse itself is locking something and I do most often get a projectjava.jar which is empty!

    I’ve seen the same issue and I assure you it is not MyEclipse locking anything. This is a known issue with Java on Windows and is simply an operating system function over which we have no control, as documented here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4755278

    #256300 Reply

    Nicole Wilms
    Member

    @support-scott wrote:

    I’ve seen the same issue and I assure you it is not MyEclipse locking anything. This is a known issue with Java on Windows and is simply an operating system function over which we have no control, as documented here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4755278

    Hi Scott,

    thanks for your time.

    What is locking the files? The JVM of Jboss is not running anymore as I have stopped the server. I have shutdown Jboss. So the only stuff which is running is Eclipse with MyEclipse. I have checked the open files with Sysinternals Process Explorer and no files are open in the jboss tree.

    And even then, I do not get an error anymore, but after shutting down eclipse and jvm, starting it again, and pressing redeploy I do not get an web.war and ejb.jar anymore. So no files locked, and still no jars, wars etc. Sorry but it seems an MyEclipse bug.

    I am starting to ask myself for whom is this a workable solution or am I missing something. IBM RAD does have its problems, but at least this is working on IBM RAD.

    E.

    #258530 Reply

    Nicole Wilms
    Member

    Sadly still no answer to my question above. Can you please explain me how to solve my problem to a working real life solution with MyEclipse?

    Kind regards,

    Edwin

Viewing 15 posts - 1 through 15 (of 16 total)
Reply To: MyEclispe 5.0M2 – New server deployment is not reliable

You must be logged in to post in the forum log in