facebook

Beta2 can’t deploy html-only project to weblogic 8 [Closed]

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

    kitm
    Member

    – System Setup ——————————-
    Operating System and version: Win 2000 version 5.0 (Build 2195: sp4)
    Eclipse version: Version: 3.0.0
    Eclipse build id: 200406251208
    Fresh Eclipse install (y/n): n
    If not, was it upgraded to its current version using the update manager? No
    Other installed external plugins: none
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 7
    MyEclipse version: 3.8b2
    Eclipse JDK version: j2sdk1.4.2_05
    Application Server JDK version: j2sdk1.4.2_05
    Are there any exceptions in the Eclipse log file? see below.

    – Message Body ——————————-
    I have a weblogic 8 application that consists of four web-projects (no EJBs) and one eap that I use for deployment. It worked fine in ME 2.7.* and 3.8b1, but now that I’ve upgraded to 3.8b2 it no longer deploys. The first time I tried to re-deploy I got an “Error” dialog with nothing in it but a red circle with a white “X” in the middle of it and an [OK] button. When I click the button or otherwise close this dialog, ME showed a successful deployment, but my app wouldn’t start. So I undeployed it (removing each module individually) and tried to create a new deployment from the eap module.

    New Deployment dialog:
    Enterprise Project: em-eap,
    Server: Weblogic 8,
    Deploy type: Exploded archive,
    Deploy Location: <WL_HOME>/config/emcluster/applications/em-eap)

    But when I click [Finish], it shows activity in the deployment status area for about a few seconds and then the Error dialog pops up. (Normal deployment takes about 30-40 seconds.) Again, dispatching the Error dialog leaves the New Deployment dialog showing a successful deployment, but none of the web-modules report that they are actually deployed, and the deployment location only contains some of the exploded files.

    I’ve tried closing all projects & ME, cleaning all projects, and even rebooting my workstation. Most of the times that I re-tried to deploy, nothing was added to the eclipse .log file, but on *one* occasion an exception was logged. Here is the entire contents of my .log file since installing the upgrade around 9:00AM today:

    !SESSION Jul 13, 2004 11:55:52.03 ———————————————-
    eclipse.buildId=I200406251208
    java.version=1.4.2_05
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

    !ENTRY org.eclipse.ui 4 4 Jul 13, 2004 11:55:52.03
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.deploytools

    !ENTRY org.eclipse.ui 4 4 Jul 13, 2004 11:55:52.33
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions

    !ENTRY org.eclipse.ui 4 4 Jul 13, 2004 11:55:52.33
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.webtools

    !ENTRY org.eclipse.ui 4 4 Jul 13, 2004 11:55:52.33
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.jsftools

    !ENTRY org.eclipse.ui 4 4 Jul 13, 2004 11:55:52.33
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.strutstools
    !SESSION Jul 13, 2004 16:28:18.60 ———————————————-
    eclipse.buildId=I200406251208
    java.version=1.4.2_05
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

    !ENTRY org.eclipse.ui 4 4 Jul 13, 2004 16:28:18.60
    !MESSAGE Unhandled event loop exception

    !ENTRY org.eclipse.ui 4 0 Jul 13, 2004 16:28:18.60
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.getWebLibJarNames(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.deployExternalLibraries(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.WebDeployment.Ä‚(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.WebDeployment.resyncAll(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ModuleDeployment.deployAsExplodedArchive(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.EARDeployment.resyncAll(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.EARDeployment.deployAsExplodedArchive(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.Deployment.redeploy(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.Ä…(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.access$2(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog$5.handleEvent(Unknown Source)
    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.jface.window.Window.runEventLoop(Window.java:668)
    at org.eclipse.jface.window.Window.open(Window.java:648)
    at com.genuitec.eclipse.ast.deploy.core.ui.action.DeploymentMgmtActionDelegate.runWithEvent(Unknown Source)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:266)
    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(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
    at org.eclipse.core.launcher.Main.run(Main.java:644)
    at org.eclipse.core.launcher.Main.main(Main.java:628)

    Some more project configuration details:

    Two of the web-apps (em-web1 and em-web2) contain only static files (html, images, stylesheets, etc.)
    Each of these projects looks like:

    em-web*/docroot-static/*.html
    em-web*/docroot-static/images/*.gif
    em-web*/docroot-static/stylesheets/*.css
    em-web*/WEB-INF/web.xml (put there by ME and containing only “<web-app></web-app>”)
    em-web*/WEB-INF/classes/<empty>

    The other two web apps (em-1 and em-2) are struts-based and look like:

    em-*/docroot/**/*.jsp
    em-*/docroot/WEB-INF/classes/ (project compile target)
    em-*/docroot/WEB-INF/lib/*.jar (third-party libraries [struts, commons*, log4j, etc]
    em-*/Properties/*.properties & *.xml
    em-*/shared-source/**/*.java (internal corporate “library” source)
    em-*/src/**/*.java (project-specific source)

    Both of these web apps depend on a fifth (non-web) java project that just contains application-specific source that is common to both web apps:

    em-base/src/**/*.java

    Please help!

    #209872 Reply

    Riyad Kalla
    Member

    So to clarify you have the following dep tree:

    
    + EAP
      + em-web
        + em-base
      + em
        + em-base
    

    And when you deploy the EAP you need not only the em-web and em to be deployed, but their dependent project “em-base” as well right?

    I just tried setting this exact same situation up locally, having 1 Java project, 1 web app and 1 struts project that relied on the Java project, and then 1 EAP project. I double checked the deployment rules for the Web and Struts project (right click on project root, go to MyEclipse-Web) and set it to “Smart” and “Always copy to lib folder” and then deployed the EAP application and everything worked as expected…

    #209877 Reply

    Riyad Kalla
    Member

    Maybe you can try clearing your <eclipse-3.0>\configuration directory (back it up first) and restart Eclipse.

    #209896 Reply

    kitm
    Member

    @support-rkalla wrote:

    So to clarify you have the following dep tree:

    
    + EAP
      + em-web
        + em-base
      + em
        + em-base
    

    Not quite; the project is more (well, actually exactly) like:

    
    + EAP
      + em-web1
      + em1
        + em-base
      + em-web2
      + em2
        + em-base
    

    And here’s something interesting: When I remove both em-web* projects from the EAP, it deploys the struts web-apps (em1+em-base & em2+em-base) just fine (and they run OK, but their graphics are missing). As soon as I add one or the other of the static-content-only projects back to the EAP, the deployment breaks with the same error, only some files actually deployed, and nothing in .log.

    OTOH, I just noticed that the one exception that *did* get logged during my earlier attempts was a

    NullPointerException
        at com.genuitec.eclipse.ast.deploy.core.DeploymentUtil.getWebLibJarNames(Unknown Source)

    which makes me suspicious of these static-only web projects since they have no WEB-INF/lib at all. Does this look relevant?

    Also, in your test example, did you make sure that your web-app had *no* executable content (no *.jsp, no *.java, and no *.jar) but only static files (e.g. *.html, *.gif, *.css) in it? I think that’s important in my case. And if so, what did your web.xml look like? Mine contains (verbatim):

    
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    </web-app>
    

    IIRC, ME 2.7.? created this web.xml file for me when I added web-project capabilities to my existing static-only modules back when I first set this whole thing up originally.

    #209897 Reply

    kitm
    Member

    @support-rkalla wrote:

    Maybe you can try clearing your <eclipse-3.0>\configuration directory (back it up first) and restart Eclipse.

    I tried this also just now and no luck… 🙁

    #209903 Reply

    Riyad Kalla
    Member

    Hey I like your observation about static content only, that might be the key to this puzzle, let me check with teh team.

    #209937 Reply

    Scott Anderson
    Participant

    Actually, I think this whole thread might be a “red herring”. Going back to the original post, kitm’s log file contained:

    !ENTRY org.eclipse.ui 4 4 Jul 13, 2004 11:55:52.03
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.deploytools

    !ENTRY org.eclipse.ui 4 4 Jul 13, 2004 11:55:52.33
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions

    !ENTRY org.eclipse.ui 4 4 Jul 13, 2004 11:55:52.33
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.webtools

    !ENTRY org.eclipse.ui 4 4 Jul 13, 2004 11:55:52.33
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.jsftools

    !ENTRY org.eclipse.ui 4 4 Jul 13, 2004 11:55:52.33
    !MESSAGE Unable to find Action Set: com.genuitec.myeclipse.actions.strutstools

    If our toolsets could not be found, this is indicitive of an installation/configuration problem. To resolve it I’d suggest closing all editors and perspectives, shutting down Eclipse, deleting the log file at <workspace>/.metadata/.log and the configuration directory under the Eclipse installation. Now start Eclipse and navigate allour preference pages and open the MyEclipse perspective. Check the log file again. If any errors are present at this point, please post them here. If they’re the same errors, perhaps you haven’t installed the complete Eclipse SDK (80+Meg) but just the platform?

    #209964 Reply

    kitm
    Member

    No dice. I followed your instructions to the letter (including opening *every* ME preference page for every app server) and got nothing in my .log file. I have also been using ME 3.8b2 on my projects both yesterday and today (editing java/jsps, debugging, running junit tests) with no problems other than the deployment of the static-only web components. And remember, deployment works fine when I remove those two projects from my EAP list of EA modules. I think those .log entries from 11:55AM yesterday are actually the “red herring”s as they appeared (IIRC) during my initial startup/shutdown sequence after installing the upgrade and then never came back, nor did there seem to be anything wrong with ME until I tried the deployment process.

    #209967 Reply

    Riyad Kalla
    Member

    kitm,
    Thanks for hanging in there so long, we’ll discuss this internally.

    #209969 Reply

    Riyad Kalla
    Member

    Update, I was able to duplicate this exact behavior once I cleared out the simple web project and made it empty (bsides the ME stuff). I will file this ASAP.

    #209971 Reply

    Riyad Kalla
    Member

    Moving to bugs…

    #210082 Reply

    schuer
    Member

    hi,

    I’ve noticed something strange:

    when i install version 3.8-b2 for windows (sorry!), i have directories like

    com.genuitec.eclipse.ast.deploy.core_3.7.200

    in C:\Program Files\MyEclipse\eclipse\plugins\…

    the version doesn’t correspond, could you check please.

    thanks

    #210094 Reply

    Riyad Kalla
    Member

    3.7.200 == 3.8 Beta 2… the reason is that we want to reserve 3.8.00 for the GA release, but the way Eclipse UPdate works is that your update needs to have a bigger version number, so we use increments of the 3.7 series.

    #210100 Reply

    kitm
    Member

    I found a workaround. If I add an empty <project>/docroot/WEB-INF/lib directory to each of the static-only projects, they deploy without error.
    -Kit

    #210105 Reply

    Riyad Kalla
    Member

    Hey great info, I’ll add that to the bug report.

Viewing 15 posts - 1 through 15 (of 16 total)
Reply To: Beta2 can’t deploy html-only project to weblogic 8 [Closed]

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