Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-2249

Deploying problem of the Seam project to the server that was created in released 2.0 GA.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 2.1.0.GA
    • 2.1.0.GA
    • server
    • None
    • Workaround Exists
    • Hide

      1. Import Seam Ear web projects to workspace
      2. Right mouse click on Seam war web project and select Properties from context menu
      3. Select Seam settings
      4. Set Seam runtime if it doesn't exist
      5. Open application.xml
      6. Improve <module> <java>jboss-seam.jar</java> </module> to <module> <ejb>jboss-seam.jar</ejb> </module>
      7. Delete all unnecessary modules marked with warning message
      8. In Package Explorer select *-ear project that begins with capital letter
      9. Right mouse click Refator->Rename
      10. Change name from of *-ear project in order to begin with non capital letter
      11. Open jboss-app.xml
      12. Change <loader-repository> seam.jboss.org:loader=*-ear.ear </loader-repository> to <loader-repository> seam.jboss.org:loader=

      {new name}-ear.ear </loader-repository>
      13. Open components.properties
      14. Change jndiPattern=Seam-ear/#{ejbName}/local to jndiPattern={new name}

      -ear/#

      {ejbName}

      /local
      15. Deploy project to the server.

      Show
      1. Import Seam Ear web projects to workspace 2. Right mouse click on Seam war web project and select Properties from context menu 3. Select Seam settings 4. Set Seam runtime if it doesn't exist 5. Open application.xml 6. Improve <module> <java>jboss-seam.jar</java> </module> to <module> <ejb>jboss-seam.jar</ejb> </module> 7. Delete all unnecessary modules marked with warning message 8. In Package Explorer select *-ear project that begins with capital letter 9. Right mouse click Refator->Rename 10. Change name from of *-ear project in order to begin with non capital letter 11. Open jboss-app.xml 12. Change <loader-repository> seam.jboss.org:loader=*-ear.ear </loader-repository> to <loader-repository> seam.jboss.org:loader= {new name}-ear.ear </loader-repository> 13. Open components.properties 14. Change jndiPattern=Seam-ear/#{ejbName}/local to jndiPattern={new name} -ear/# {ejbName} /local 15. Deploy project to the server.

      EXECUTE: Create Seam 2.0.1 EAR project in released 2.0 GA ()
      EXECUTE: Open 2.10 GA
      EXECUTE: Import created Seam web project as existing project to workspace
      ASSERT: Imported project will be marked with exception in application.xml
      EXECUTE: Correct application.xml
      EXECUTE: On JBoss Server View select "Add and remove projects" and add imported Seam project to the server
      EXECUTE: Click Publish or Clean
      FAILURE: java.lang.NullPointerException
      at org.jboss.ide.eclipse.as.core.publishers.JstPublisher.packModuleIntoJar(JstPublisher.java:261)
      at org.jboss.ide.eclipse.as.core.publishers.JstPublisher.fullPublish(JstPublisher.java:134)
      at org.jboss.ide.eclipse.as.core.publishers.JstPublisher.publishModule(JstPublisher.java:110)
      at org.jboss.ide.eclipse.as.core.server.internal.DeployableServerBehavior.publishModule(DeployableServerBehavior.java:132)
      at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:749)
      at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:835)
      at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:669)
      at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:887)
      at org.eclipse.wst.server.core.internal.Server.publish(Server.java:874)
      at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:72)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

              rob.stryker Rob Stryker (Inactive)
              aklimkovich Anton Klimkovich (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: