facebook

Partial Deployment when full deployment expected.

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #222902 Reply

    Mark Ricard
    Member

    I am using myeclipse 3.8.3 with eclipse version 3.0.1 and am having a problem where when deploying a web project with struts, jsps and related libraries, only the libraries and class files are being deployed.

    The jsps and htmls never get deployed. Below is a stack trace I see in the log file. It may be related.

    Please help.

    !ENTRY com.genuitec.eclipse.j2eedt.core 1 1 Jan 17, 2005 18:39:55.350
    !MESSAGE
    !STACK 0
    java.util.zip.ZipException: The system cannot find the file specified
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.AbstractWebTaglibLocator.searchJarFile(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.AbstractWebTaglibLocator.searchJarFile(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.WebProjectTaglibLocator.searchFile(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.WebProjectTaglibLocator$2.visit(Unknown Source)
    at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:108)
    at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:55)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:78)
    at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:123)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:65)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:106)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:85)
    at com.genuitec.eclipse.j2eedt.taglib.WebProjectTaglibLocator.search(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.searchForTaglibs(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.processFile(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry$1.visit(Unknown Source)
    at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:108)
    at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:55)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:78)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
    at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:123)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:65)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:106)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:85)
    at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.handleResourceModified(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.handleResourceAdded(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.refresh(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.AbstractTaglibRegistry.processResourceChanged(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.TaglibRegistryManager.resourceChanged(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.TaglibRegistryManager$A.visit(Unknown Source)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:68)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:49)
    at com.genuitec.eclipse.j2eedt.taglib.TaglibRegistryManager$A.resourceChanged(Unknown Source)
    at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:283)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:277)
    at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:151)
    at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:172)
    at org.eclipse.core.internal.resources.Workspace.checkpoint(Workspace.java:220)
    at org.eclipse.ltk.core.refactoring.PerformChangeOperation$1.run(PerformChangeOperation.java:232)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1693)
    at org.eclipse.ltk.core.refactoring.PerformChangeOperation.executeChange(PerformChangeOperation.java:273)
    at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.executeChange(UIPerformChangeOperation.java:86)
    at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:196)
    at org.eclipse.jdt.internal.ui.refactoring.RefactoringExecutionHelper$Operation.run(RefactoringExecutionHelper.java:76)
    at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:34)
    at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3246)
    at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:65)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
    at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:397)
    at org.eclipse.jdt.internal.ui.refactoring.RefactoringExecutionHelper.perform(RefactoringExecutionHelper.java:125)
    at org.eclipse.jdt.internal.ui.refactoring.reorg.ReorgCopyStarter.run(ReorgCopyStarter.java:78)
    at org.eclipse.jdt.internal.ui.refactoring.reorg.PasteAction$JavaElementAndResourcePaster.paste(PasteAction.java:475)
    at org.eclipse.jdt.internal.ui.refactoring.reorg.PasteAction.run(PasteAction.java:205)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:212)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:188)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
    at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
    at org.eclipse.core.launcher.Main.run(Main.java:704)
    at org.eclipse.core.launcher.Main.main(Main.java:688)

    #222906 Reply

    Riyad Kalla
    Member

    What kind of project is it? What is your webroot set to? How are the directories under webroot laid out? Where are your JSPs in relation to it?

    #222914 Reply

    Mark Ricard
    Member

    It was created as a J2EE Web Project with struts and hibernate added. The webroot has the following directories under it:

    WebRoot/META-INF
    WebRoot/WEB-INF
    WebRoot/lib
    WebRoot/classes
    WebRoot/ { various directories with jsps in them, some jsps in WebRoot itself }

    Not sure what you mean by “what is your webroot set to?” ?? I am assuming the defaults. Where do I verify?

    What gets copied over during deployment is all of the jars inside the WebRoot/lib, all of the classes inside WebRoot/classes and a .struts-config.mex file in the main WebRoot directory. But none of the jsps or html in the WebRoot or WebRoot/ { subdirs }

    Hope this helps.

    #222923 Reply

    Riyad Kalla
    Member

    Did you mean to say:
    WebRoot/WEB-INF/lib
    and
    WebRoot/WEB-INF/classes

    Having /lib and /classes directly under the webroot is an invalid project structure as the web spec defines /lib and /classes as non-public directories under the WEB-INF folder. If this is the case, then the exception from above:

    java.util.zip.ZipException: The system cannot find the file specified
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.AbstractWebTaglibLocator.searchJarFile(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.AbstractWebTaglibLocator.searchJarFile(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.WebProjectTaglibLocator.searchFile(Unknown Source)
    at com.genuitec.eclipse.j2eedt.taglib.WebProjectTaglibLocator$2.visit(Unknown Source)

    Makes more sense to me now… is there a reason that you moved the /lib and /classes dir under the WebRoot instead of leaving them under WEB-INF?

    #223033 Reply

    Mark Ricard
    Member

    Sorry for not being clear. Everything is indeed in the WebRoot directory as you have stated – with the proper capitalization. Which brings us back to my original problem.

    I can say that I think this may be related to importing this project from a previous version of MyEclipse. Since this project did work before, that is the only thing I can think of that may be the cause.

    Ideas?

    #223034 Reply

    Mark Ricard
    Member

    Is there a file that I can inspect that shows me exactly what it is going to deploy? Something I can verify or modify?

    #223035 Reply

    Scott Anderson
    Participant

    The exception in the log file seems to have been thrown during a refactoring event. You didn’t by any chance change the name of your webroot directory did you? If so, a possible cause of the problem is that the .mymetadata file in the root of the project now contains an invalid path to the webroot. Another avenue to try is to delete the log file and create a new web project. Then, simply copy all the content from your existing one into it as a test. Does the new project deploy? Are there additional log entries?

    #223036 Reply

    Mark Ricard
    Member

    Before I try that, one more thing. I just tried to create a brand new jsp file (called MyJsp.jsp) in the WebRoot directory. It placed it neatly in the tree next to all of the rest of the jsps. But this time when I deployed, it deployed the MyJsp.jsp file, but none of the other jsps. So the older ones are “hidden” somehow from the deployer. Does this give you another idea or should I try to recreate the project as you suggest above?

    #223039 Reply

    Scott Anderson
    Participant

    That’s truly peculiar as there isn’t an intended means to “hide” a JSP file from the deployer. I’d definately recommend trying to create a new project if you can’t refresh it, undeploy it, do a clean build, and redeploy it successfully.

    #223040 Reply

    Mark Ricard
    Member

    Not sure what just happened. But I had tried to do the refresh, undeploy, clean build & redeploy several times before with no luck. It would appear that after creating that test jsp file mentioned above and THEN doing the refresh, undeploy, clean build & redeploy everything now works. BIZARRE! Thanks for all the help.

    #223041 Reply

    Riyad Kalla
    Member

    But this time when I deployed, it deployed the MyJsp.jsp file, but none of the other jsps.

    This is sufficiently weird… try this:

    1) shut down MyEclipse
    2) Delete the log file
    3) Start MyEclipse
    4) Deploy the funky project, see if only some files deployed
    5) check the log file for exceptions, were there any?

    If not, try and restart MyEclipse with the -clean command line argument, if it still doesn’t deploy correctly try the New > Web Project suggestion that Scott made, and instead of moving the pieces of Project 1 into Project 2, be sure to copy them bit by bit (source folder, lib folder, JSPs, config files, etc.) and then try and deploy the new project, did it work?

    #223087 Reply

    Mark Ricard
    Member

    It looks like whatever was wrong before is gone. I could not get it to repeat the problem (or the stack trace) ever since I created that MyJsp.jsp file and then refreshed, cleaned, undeploy and deploy. Wish I could give you more to help figure out what happened. Hopefully this thread will help others if they encounter this.

    #223088 Reply

    Riyad Kalla
    Member

    At the least I am glad you can work now.

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: Partial Deployment when full deployment expected.

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