facebook

MyEclipse 8.5 not hot-deploying JavaScript to JBoss 4 server

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #309815 Reply

    cialowicz
    Member

    I’m having trouble with MyEclipse 7.5 hot-deployment of files to my JBoss 4 server.

    The problem is this: while my server is running, I can make changes to various JAVA and HTML files, which are then hot-deployed immediately (I can see the changes reflected in my browser when I refresh the page). However, while working with any JavaScript file, my changes are not being hot-deployed. This makes it very difficult to work on and debug JavaScript, since I have to stop my server, redeploy, and start it again each time I make changes.

      I’ve verified that my projects (JBoss 4 instances) are all set up in “Exploded” mode for hot-deployment.

      I’ve tried switching to a coworker’s known-good workspace and JBoss server with no luck.

      I’m sure that this isn’t an issue with my browser, since I always refresh with CTRL+F5, and I’ve tried a number of things like clearing my browser cache to get the currently deployed version of the file.

      I’ve also tried doing a “clean” on the project while the server is running, and that didn’t force a deployment either.

    This is a fairly new problem, and I’m convinced that it’s a MyEclipse configuration issue because of the above steps that I’ve tried. Any sort of solution would be helpful. I’d love for MyEclipse to deploy the file automatically, but I’m also open to manually forcing hot-deployment of this particular file while I work on it.

    Thank you.

    NOTE: I originally posted this while running Eclipse 7.5. Now I have upgraded to 8.5, and am still experiencing the same problem.

    #309829

    cialowicz,
    I could not replicate this at my end using JBoss 4.2.3.GA. Can you give some more information on this?
    1. What is the exact version of JBoss that you are using?
    2. Is your javascript in a separate .js file or embedded in a JSP/HTML file?

    #309845

    cialowicz
    Member

    @support-shalini wrote:

    cialowicz,
    I could not replicate this at my end using JBoss 4.2.3.GA. Can you give some more information on this?
    1. What is the exact version of JBoss that you are using?
    2. Is your javascript in a separate .js file or embedded in a JSP/HTML file?

    Shalini,

    I’m using the same version of JBoss (4.2.3), and my JavaScript is in separate .js files.

    I am experiencing an error during building/redeployment:

      MESSAGE: Problems occurred when invoking code from plug-in: “org.eclipse.core.resources”.

      STACK TRACE: java.lang.ClassCastException: org.eclipse.wst.jsdt.internal.compiler.lookup.BaseTypeBinding cannot be cast to org.eclipse.wst.jsdt.internal.compiler.lookup.ReferenceBinding
      at org.eclipse.wst.jsdt.core.infer.InferredType.resolveSuperType(InferredType.java:330)
      at org.eclipse.wst.jsdt.internal.compiler.lookup.ClassScope.findInferredSupertype(ClassScope.java:1160)
      at org.eclipse.wst.jsdt.internal.compiler.lookup.ClassScope.connectSuperclass(ClassScope.java:840)
      at org.eclipse.wst.jsdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:1000)
      at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:696)
      at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:319)
      at org.eclipse.wst.jsdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:576)
      at org.eclipse.wst.jsdt.internal.compiler.Compiler.beginToCompile(Compiler.java:321)
      at org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Compiler.java:335)
      at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:311)
      at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:168)
      at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:248)
      at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:58)
      at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:291)
      at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:199)
      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:627)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

      SESSION DATA:
      eclipse.buildId=unknown
      java.version=1.6.0_13
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
      Command-line arguments: -os win32 -ws win32 -arch x86 -clean

    When I look here ( http://www.jarvana.com/jarvana/view/org/eclipse/platform/doc/isv/3.3.0-v20070621/isv-3.3.0-v20070621.jar!/reference/extension-points/org_eclipse_core_resources_builders.html ), I see that org.eclipse.core.resources plays a role in incremental builds. Perhaps my version is broken? Although, I’m not sure why it wouldn’t be fixed after upgrading to 8.5… Also, I’m unsure why it would break with only a single file type (again html, java, css, and other types hot-deploy just fine).

    Any other thoughts? Thank you for the help.

    Mike

    #309853

    cialowicz
    Member

    One more thing…

    Here are some of the build errors which I’m experiencing, that my coworkers are not (even though I’m using direct copies of their development workspaces):

    Is there any way to get stack traces back for some of those? In particular the external builder… I wish it would tell me which file is missing.

    Thanks,
    Mike

    #309859

    cialowicz
    Member

    Okay, I just did some more debugging, and some signs point to the fact that it’s an IE problem after all. For some reason the browser isn’t getting the latest versions of the JS files even though I’m deleting the temporary internet files between page reloads and using CTRL+F5.

    #309861

    cialowicz
    Member

    Okay, this thread can be closed/locked/deleted.

    It turned out not to be a problem with MyEclipse. It was a problem with both IE and the application caching strategy.

    The following fixed it:

    1. Setting a GZIP compression environment variable to be OFF. This way the GZIP compressed JS files are not cached for two weeks.
    2. Setting IE8 to “check for newer versions of stored pages every time I visit the webpage”, and using CTRL+F5 to refresh (as before).

    #309868

    cialowicz,
    Good to know that you are all set and thank you for posting your findings.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: MyEclipse 8.5 not hot-deploying JavaScript to JBoss 4 server

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