facebook

Problems Deploying to TOMCAT4

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #222234 Reply

    On deploying application web application to TOMCAT4, it is not copying
    web-inf/classes to the tomcat4 webapps directory. It is copying all other
    project files. Please comment on which setting I need to change to have this occurr.

    I am using : EnterpriseWorkbenchInstaller_030803

    #222240 Reply

    Scott Anderson
    Participant

    Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #222241 Reply

    Note, I upgraded to version 030803 and experienced the problems with deploying web app to TOMCAT4. I completely reinstalled both eclipse and myeclipse (030803) and this didn’t solve the issue. Deployment was working fine before moving to version 030803. Do provide feed back…

    OS = XP HOMEEDITION
    JVM = 1.4.2_05
    ECLIPSE = 3.01
    MYCLIPSE = 030803

    #222242 Reply

    LOG INFORMATION. I believe the previous reply contiain the other info you are requesting

    !SESSION Jan 05, 2005 17:03:21.985 ———————————————
    eclipse.buildId=M200409161125
    java.version=1.4.2_06
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_ES

    !ENTRY com.genuitec.eclipse.wizards 1 1 Jan 05, 2005 17:03:21.985
    !MESSAGE Installed snippet library: C:\Archivos de programa\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.3\snippets\css_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 1 Jan 05, 2005 17:03:22.105
    !MESSAGE Installed snippet library: C:\Archivos de programa\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.3\snippets\forms_lists_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 1 Jan 05, 2005 17:03:22.135
    !MESSAGE Installed snippet library: C:\Archivos de programa\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.3\snippets\htmlform_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 1 Jan 05, 2005 17:03:22.185
    !MESSAGE Installed snippet library: C:\Archivos de programa\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.3\snippets\html_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 1 Jan 05, 2005 17:03:22.265
    !MESSAGE Installed snippet library: C:\Archivos de programa\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.3\snippets\javascript_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 1 Jan 05, 2005 17:03:22.345
    !MESSAGE Installed snippet library: C:\Archivos de programa\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.3\snippets\jsf_f_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 1 Jan 05, 2005 17:03:22.425
    !MESSAGE Installed snippet library: C:\Archivos de programa\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.3\snippets\jsf_h_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 1 Jan 05, 2005 17:03:22.466
    !MESSAGE Installed snippet library: C:\Archivos de programa\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.3\snippets\struts_bean_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 1 Jan 05, 2005 17:03:22.506
    !MESSAGE Installed snippet library: C:\Archivos de programa\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.3\snippets\struts_html_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 1 Jan 05, 2005 17:03:22.556
    !MESSAGE Installed snippet library: C:\Archivos de programa\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.3\snippets\struts_logic_snippets.xml

    !ENTRY com.genuitec.eclipse.wizards 1 1 Jan 05, 2005 17:03:22.606
    !MESSAGE Installed snippet library: C:\Archivos de programa\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.3\snippets\struts_tiles_snippets.xml

    !ENTRY com.genuitec.eclipse.wdt.jsp.debug 1 1 Jan 05, 2005 17:16:32.922
    !MESSAGE

    !ENTRY com.genuitec.eclipse.wdt.jsp.debug 1 1 Jan 05, 2005 17:16:33.82
    !MESSAGE

    !ENTRY org.eclipse.ui 4 4 Jan 05, 2005 18:05:00.503
    !MESSAGE Unhandled event loop exception

    !ENTRY org.eclipse.ui 4 0 Jan 05, 2005 18:05:00.513
    !MESSAGE Failed to execute runnable (java.lang.NullPointerException)
    !STACK 0
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
    at org.eclipse.swt.SWT.error(SWT.java:2691)
    at org.eclipse.swt.SWT.error(SWT.java:2616)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:109)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2749)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2434)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:136)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:262)
    at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:397)
    at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:251)
    at org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:837)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:871)
    at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:847)
    at com.genuitec.eclipse.erdesigner.actions.RefreshTableAction.run(Unknown Source)
    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)

    !ENTRY org.eclipse.ui 4 4 Jan 05, 2005 18:05:00.513
    !MESSAGE *** SWT nested exception

    !ENTRY org.eclipse.ui 4 0 Jan 05, 2005 18:05:00.523
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.erdesigner.model.ERTableNode.a(Unknown Source)
    at com.genuitec.eclipse.erdesigner.model.ERTableNode.access$4(Unknown Source)
    at com.genuitec.eclipse.erdesigner.model.ERTableNode$1.run(Unknown Source)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:106)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2749)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2434)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:136)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:262)
    at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:397)
    at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:251)
    at org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:837)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:871)
    at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:847)
    at com.genuitec.eclipse.erdesigner.actions.RefreshTableAction.run(Unknown Source)
    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)

    #222247 Reply

    Scott Anderson
    Participant

    Hugo,

    Thanks for providing the context I need to understand the issues. First, the exceptions in the log are related to a known issue in the ER designer and should have no impact on deployment. The rest of the log seems normal.

    On deploying application web application to TOMCAT4, it is not copying
    web-inf/classes to the tomcat4 webapps directory. It is copying all other
    project files.

    Can you verify using the Navigator view that the class files in your project exist in web-inf/classes for the project? Could Project > Build Automatically be turned off, thus causing your project not to be compiled? When you’ve verified the class files exist, can you open the Deployment Manager dialog, remove the existing deployment, and then add it again. Are the class files now in the remote deployment? Has anything else changed?

    #222252 Reply

    I have confirmed that :

    -both *.java and *.class are under web-inf/classes
    -Project > Build Automatically is on (was on)
    -removed and redeployed app, the problems continues..no changes

    See below, the files deployed under the webapps directory are listed

    C:\Tomcat4\webapps\generic\WEB-INF>
    ———————————————–
    01/05/2005 03:14 PM <DIR> .
    01/05/2005 03:14 PM <DIR> ..
    01/05/2005 03:14 PM <DIR> lib
    01/05/2005 03:14 PM 1,221 web.xml
    01/05/2005 03:14 PM 286 webOrginal.xml

    Files in project directory : C:\eclipse\workspace\generic\WEB-INF
    ————————————————————————–

    01/05/2005 11:15 AM <DIR> .
    01/05/2005 11:15 AM <DIR> ..
    01/05/2005 11:15 AM <DIR> classes
    01/05/2005 11:15 AM <DIR> lib
    01/05/2005 10:21 AM 1,221 web.xml
    01/05/2005 11:14 AM 286 webOrginal.xml

    uder the classes directory all app classes are included.

    #222261 Reply

    Scott Anderson
    Participant

    Hugo,

    -both *.java and *.class are under web-inf/classes

    Ah! That’s the issue. Version 3.8.3 has a problem when web-inf/classes is also used as a source folder. We’ve fixed the issue internally and it will be included with QuickFix 1 in about a week. At the present time the only workarounds are to use a separate source folder for your java files or use packaged deployment instead of exploded. I apologize for the inconvenience that this undoubtably causes you.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Problems Deploying to TOMCAT4

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