facebook

Empty jar file deployed in WEB-INF/lib folder

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

    MyEclipse version : 5.0GA
    Eclipse version : 3.2
    Operating system : Windows XP

    I recently (yesterday) upgraded from MyEclipse 4.1 to 5.0GA

    Everything seems to be working fine except;

    Whenever I deploy my web project to my server, a dependent java project that normally would be put in the /WEB-INF/lib folder (as a jar file) is created but has a size of zero bytes… in other words is empty.

    My setting for server is : <Custom Location>
    My deployment type is: Exploded

    As a work around, I am now exporting the java application seperately as a jar file, so I know there is nothing wrong with it.

    This worked perfectly in the previous (4.1) release of Myeclipse. I am actually using the same workspace.

    I have also tried deploying to a completely empty folder and I sill get a jar file with zero bytes.

    Any help would be appreciated

    Thanks

    Tayo

    #256532 Reply

    Scott Anderson
    Participant

    Tayo,

    Do you have ‘Build Automatically’ set for the workspace on the Project menu? Can you open the dependent Jar project’s bin or output directory in the Windows Explorer and see the .class files in there? Can you shutdown Tomcat, undeploy the application and then verify that everything is removed (in Windows) then redeploy the application and recheck the jar?

    #256557 Reply

    Build Automatically is set for the workspace on the Project menu
    The dependent jar proect’s output directory does contain .class files.

    I did a little more experimenting and actually found that Exporting the project as a WAR file fails. The IDE does not complain but neither does it export and create a war file. At this point it seems to have nothing to do with server deployment.

    To get a clearer picture, I created a completely new workspaces (1 each for MyEclipse 4.1 and MyEclipse5.0GA) and took the following steps for both..

    1: Checked out the necessary projects and code from CVS
    2: Performed a complete rebuild of the workspace making sure there were no outstanding errors
    3: Exported the web project as a WAR file

    In MyEclipse4.1 a war file was created
    In MyEclipse5.0 NO war file was created

    I also looked up the log files found in the .metadata folder of the workspace. The logs of 5.0 show some exceptions, while that of 4.1 do not.

    Below I am pasting the log from 5.0. … let me know if there is any more info that might help.

    For now I will have to go back to using 4.1

    
    
    
    !SESSION 2006-08-11 04:20:45.829 -----------------------------------------------
    eclipse.buildId=M20060629-1905
    java.version=1.5.0_06
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments:  -product com.genuitec.myeclipse.product.ide
    Command-line arguments:  -os win32 -ws win32 -arch x86 -product com.genuitec.myeclipse.product.ide
    
    !ENTRY org.eclipse.jst.jsf.core 1 0 2006-08-11 04:21:28.741
    !MESSAGE Could not load JSF Library Registry; creating new registry
    
    !ENTRY org.eclipse.core.resources 2 1 2006-08-11 04:21:46.602
    !MESSAGE Skipping builder com.ibm.etools.ctc.serviceprojectbuilder for project Development_jars. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.
    
    !ENTRY org.eclipse.core.resources 2 1 2006-08-11 04:21:46.602
    !MESSAGE Skipping builder com.ibm.etools.ctc.serviceprojectbuilder for project javaBase. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.
    
    !ENTRY org.eclipse.core.resources 2 1 2006-08-11 04:21:46.612
    !MESSAGE Skipping builder com.ibm.etools.j2ee.LibCopyBuilder for project javaBase. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.
    
    !ENTRY org.eclipse.core.resources 2 1 2006-08-11 04:21:46.612
    !MESSAGE Skipping builder com.ibm.etools.ctc.serviceprojectbuilder for project blogic. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.
    
    !ENTRY org.eclipse.wst.internet.cache 1 0 2006-08-11 04:21:53.584
    !MESSAGE wtp.autotest.noninteractive is set. Licenses dialogs will not be displayed.
    
    !ENTRY com.genuitec.eclipse.javascript 1 0 2006-08-11 04:23:47.006
    !MESSAGE 
    !STACK 0
    org.mozilla.javascript.JavaScriptException: [object Function] (JS lint#365)
        at org.mozilla.javascript.gen.c2._c9(JS lint:365)
        at org.mozilla.javascript.gen.c2.call(JS lint)
        at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:117)
        at org.mozilla.javascript.gen.c2._c76(JS lint:1409)
        at org.mozilla.javascript.gen.c2.call(JS lint)
        at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:106)
        at org.mozilla.javascript.gen.c2._c4(JS lint:202)
        at org.mozilla.javascript.gen.c2.call(JS lint)
        at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:95)
        at org.mozilla.javascript.gen.c2._c0(JS lint:1799)
        at org.mozilla.javascript.gen.c2.call(JS lint)
        at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:337)
        at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755)
        at org.mozilla.javascript.gen.c2.call(JS lint)
        at org.mozilla.javascript.gen.c2.exec(JS lint)
        at com.genuitec.eclipse.javascript.validation.JavaScriptValidator.validate(JavaScriptValidator.java:464)
        at com.genuitec.eclipse.javascript.validation.JavaScriptValidator.validate(JavaScriptValidator.java:422)
        at com.genuitec.eclipse.javascript.validation.JavaScriptValidator.validateFile(JavaScriptValidator.java:529)
        at com.genuitec.eclipse.javascript.validation.JavaScriptValidator.validateContainer(JavaScriptValidator.java:496)
        at com.genuitec.eclipse.javascript.validation.JavaScriptValidator.validateContainer(JavaScriptValidator.java:498)
        at com.genuitec.eclipse.javascript.validation.JavaScriptValidator.validateContainer(JavaScriptValidator.java:498)
        at com.genuitec.eclipse.javascript.validation.JavaScriptValidator.validateFull(JavaScriptValidator.java:541)
        at com.genuitec.eclipse.javascript.validation.JavaScriptValidator.validate(JavaScriptValidator.java:409)
        at org.eclipse.wst.validation.internal.core.ValidatorLauncher.start(ValidatorLauncher.java:90)
        at org.eclipse.wst.validation.internal.operations.ValidationOperation.launchValidator(ValidationOperation.java:1271)
        at org.eclipse.wst.validation.internal.operations.ValidationOperation.internalValidate(ValidationOperation.java:1086)
        at org.eclipse.wst.validation.internal.operations.ValidationOperation.validate(ValidationOperation.java:978)
        at org.eclipse.wst.validation.internal.operations.ValidationOperation.run(ValidationOperation.java:643)
        at org.eclipse.wst.validation.internal.operations.ValidationBuilder.performFullBuild(ValidationBuilder.java:263)
        at org.eclipse.wst.validation.internal.operations.ValidationBuilder.performFullBuild(ValidationBuilder.java:255)
        at org.eclipse.wst.validation.internal.operations.ValidationBuilder.build(ValidationBuilder.java:196)
        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:603)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:167)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:230)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:233)
        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:252)
        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:285)
        at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:145)
        at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:208)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
    
    !ENTRY com.genuitec.eclipse.ast.deploy.core 1 0 2006-08-11 04:24:32.794
    !MESSAGE Build Exception
    !STACK 0
    com.genuitec.eclipse.core.GenuitecCoreException: Exception deploying javaBase
        at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.privExportWebProject(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.exportWebProject(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.DeploymentPackager.exportWebProject(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.WebDeployment.deployAsPackageArchive(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
        at com.genuitec.eclipse.export.wizard.WARExportWizardPage$6.run(WARExportWizardPage.java:327)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: org.eclipse.core.runtime.CoreException: Exception deploying javaBase
        at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer$1.run(Unknown Source)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1719)
        ... 7 more
    
     
    
    #256645 Reply

    surajs
    Member

    I am having the same problem. It creates an empty jar files of dependent project when I deploy the web project. I think I will also go back using 4.1

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Empty jar file deployed in WEB-INF/lib folder

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