IBM Support

PK99257: ejbdeploy command fails if the Java class folder on the project root is added to a Utility Project

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Rational Application Developer 7.0.0.7
    
    Prepare for deployment fails with Java Class Folder on the Class
    path, which is the project root
    
    Steps to reproduce:
    
    1. Create a General project (in customer case, it contains .xml
    and
    .properties files that are needed on the classpath at runtime. Y
    ou can
    create it empty to reproduce the problem.
    2. Create an EAR Project v. 1.4 (target WAS 6.1)
    3. Create an EJB Project version 2.1 associated with the EAR
    4. Add a Stateless Session bean to the EJB project
    5. CReate a Utility project associated to same EAR
    6. Add the Utility project to the Java EE Module Dependencies of
     the
    EJB project
    7. Open the Utility project and set in the Java Build Path:
    Libraries-?Add Class Folder-?Browse for the General project
    
    Now, right click on the EAR and choose: prepare for Deployment.
    It fails with stack trace listed below.
    
    !ENTRY org.eclipse.wst.common.frameworks 4 4 2009-08-03 16:35:53
    .594
    
    !MESSAGE Exception occurred running job.
    
    !STACK 0
    
    java.lang.IllegalArgumentException: Path must include project an
    d
    resource
    name: /CommonCompClientConfig
    at org.eclipse.core.runtime.Assert.isLegal(Assert.java:62)
    
    at org.eclipse.core.internal.resources.Workspace.newResource
    (Workspace.java:1571)
    
    at org.eclipse.core.internal.resources.Container.getFile
    (Container.java:123)
    
    at
    org.eclipse.jem.workbench.utility.JemProjectUtilities.collectCla
    sspathEn
    tryURL
    (JemProjectUtilities.java:473)
    
    
    at
    org.eclipse.jem.workbench.utility.JemProjectUtilities.collectCla
    sspathUR
    Ls
    (JemProjectUtilities.java:459)
    
    at
    org.eclipse.jem.workbench.utility.JemProjectUtilities.collectCla
    sspathUR
    Ls
    (JemProjectUtilities.java:463)
    
    at
    org.eclipse.jem.workbench.utility.JemProjectUtilities.collectCla
    sspathUR
    Ls
    (JemProjectUtilities.java:463)
    
    at
    org.eclipse.jem.workbench.utility.JemProjectUtilities.collectCla
    sspathUR
    Ls
    (JemProjectUtilities.java:463)
    
    at
    org.eclipse.jem.workbench.utility.JemProjectUtilities.getClasspa
    thAsURLA
    rray
    (JemProjectUtilities.java:432)
    
    
    at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.run
    (EJBDeployOperation.java:1418)
    
    at com.ibm.etools.ejbdeploy.EJBDeployer.visit
    (EJBDeployer.java:100)
    
    at com.ibm.etools.ejbdeploy.EJBDeployer.visit
    (EJBDeployer.java:171)
    
    at com.ibm.etools.ejbdeploy.EJBDeployer.doExecute
    (EJBDeployer.java:306)
    
    at com.ibm.etools.ejbdeploy.EJBDeployer.execute
    (EJBDeployer.java:287)
    
    at
    org.eclipse.jst.j2ee.internal.deploy.J2EEDeployOperation.deploy
    (J2EEDeployOperation.java:146)
    
    at
    org.eclipse.jst.j2ee.internal.deploy.J2EEDeployOperation.execute
    
    (J2EEDeployOperation.java:110)
    
    at
    org.eclipse.jst.j2ee.internal.actions.J2EEDeployAction$1.run
    (J2EEDeployAction.java:72)
    
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
    

Local fix

Problem summary

  • Added code to handle project in class path
    

Problem conclusion

  • Fix delivered in Rational Application Developer V7.0.0.10
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK99257

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-10-22

  • Closed date

    2009-11-20

  • Last modified date

    2009-11-20

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL APP DEV WI

  • Fixed component ID

    5724J1901

Applicable component levels

  • R700 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
20 November 2009