facebook

[Closed] Error deploying EAR file

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    Curt King
    Participant

    I’ve got an EAR file that is dependent upon a JAR file named jcisobjects.jar. This JAR file is created by another project in the workspace (project name is JCISObjects).

    When I try to deploy my EAR (using “Custom Location” and “Packaged Archive”), I get the following message:

    “Error during deployment: exception deploying JCISObjects.”

    Here’s the log file:

    !SESSION 2006-09-15 10:40:10.808 -----------------------------------------------
    eclipse.buildId=M20060629-1905
    java.version=1.5.0_07
    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 com.genuitec.eclipse.ast.deploy.core 1 0 2006-09-15 10:40:42.634
    !MESSAGE Deploy failed
    !STACK 0
    com.genuitec.eclipse.core.GenuitecCoreException: Exception deploying JCISObjects
        at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.privExportWebProject(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.privExportWebProject(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.packageModules(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.exportEARProject(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.DeploymentPackager.exportEARProject(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.EARDeployment.deployAsPackageArchive(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
        at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizard$2.run(Unknown Source)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: org.eclipse.core.runtime.CoreException: Exception deploying JCISObjects
        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)
        ... 9 more
    

    I have already restarted Eclipse with the -clean option and it didn’t seem to help.

    This is odd: “Exploded Archive” deploys just fine. “Packaged Archive” seems to be the problem.

    Where do I begin to debug this?

    Thanks,
    Curt

    #258655

    Riyad Kalla
    Member

    What type of project is the JCISObjects project? How do you have the relationship defined between the two of these projects?

    #258658

    Curt King
    Participant

    JCISObjects is a standard Java project (a “utility” project).

    On the main project (called “Queries”), I’ve added JCISObjects as a “Project Reference” and on the “Java Build Path/Projects” tab. It is also listed under “Project References” on the EAR project (QueriesEAR).

    On the “Properties/MyEclipse/Web/Deployment” tab, I’ve defaulted to the workspace settings, which are “Smart Deployment” and all four checked under “Library Deployment Policies”.

    #258659

    Riyad Kalla
    Member

    So the setup is:

    
    + QueriesEAR (EAR)
      + Queries (Web)
        + JCISObject (Java)
    

    Is that correct?

    #258661

    Curt King
    Participant

    Yes, sir.

    #258675

    Riyad Kalla
    Member

    Curt,
    I created an example setup modelling what I believe is similar to your situation here. Please download and import it, and see if you can deploy it.

    #258681

    Curt King
    Participant

    Yes, sir, it deployed just fine.

    #258706

    Curt King
    Participant

    Riyad — not sure why this worked, but when I put my Java packages and classes into a folder called /src, the project deploys properly.

    I’ve never had a /src folder in the JCISObjects project and it hasn’t been a problem until now.

    Has something changed recently?

    Thanks,
    Curt

    #258719

    Scott Anderson
    Participant

    Curt,

    Nothing has really changed, but most likely your project is simply set up to have a source folder called ‘src/’ and without it it couldn’t find your Java code to compile. Have a look at Properties > Java Build Path to verify.

    #258727

    Curt King
    Participant

    That was probably it…something must have changed on my side to get things confused.

    Thanks for your help!

    Curt

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: [Closed] Error deploying EAR file

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