7 Replies Latest reply on Aug 5, 2008 3:12 PM by rob.stryker

    jboss-seam.jar is packaged into jboss-seam.jar when added to

    skirilo

      Hello
      I have a problem when deploying my application as EAR on GlassFish v.2 server. I am using an overnight build of JBoss Tools from July 31 with Eclipse Ganymede. When I deploy my sample application I can find the EAR in MyWorkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/sample-ear.ear
      I open this EAR and see jboss-seam.jar in the root of ear. If I go inside this jboss-seam.jar, I can find one more jboss-seam.jar there.

      Did anyone faced with same problem. Please help :) Can't find what I'm doing wrong.

        • 1. Re: jboss-seam.jar is packaged into jboss-seam.jar when adde
          skirilo

          As I understand this issue reappeared again in the latest builds

          https://cloud.prod.atl2.jboss.com/jira/browse/JBIDE-2288

          • 2. Re: jboss-seam.jar is packaged into jboss-seam.jar when adde
            skirilo

            The problem seems to me comes from this exception. Probably Seam publisher classes (like JstPublisher) are not even initialized. Does anybody have such problem?


            !ENTRY org.eclipse.wst.server.core 4 0 2008-08-05 20:14:37.687
            !MESSAGE Error calling delegate setupLaunchConfiguration() GlassFish V2
            !STACK 0
            java.lang.NullPointerException
            at org.eclipse.jst.server.generic.internal.xml.Resolver.skipToProperty(Resolver.java:103)
            at org.eclipse.jst.server.generic.internal.xml.Resolver.resolvePropertiesFromCache(Resolver.java:90)
            at org.eclipse.jst.server.generic.internal.xml.Resolver.resolveProperties(Resolver.java:68)
            at org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.getStartClassName(GenericServerBehaviour.java:259)
            at org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.setupLaunchConfiguration(GenericServerBehaviour.java:354)
            at org.eclipse.wst.server.core.internal.Server.setupLaunchConfiguration(Server.java:1419)
            at org.eclipse.wst.server.core.internal.Server.getLaunchConfiguration(Server.java:1462)
            at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:2637)
            at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:2590)
            at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:260)
            at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

            • 3. Re: jboss-seam.jar is packaged into jboss-seam.jar when adde
              rob.stryker

              rg.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.setupLaunchConfiguration(GenericServerBehaviour.java:354

              You are not using the server adapter we created ;) You are using the Generic Server Adapter for JBoss.

              You'll want to create your server from "JBoss, A Division of Red Hat" rather than just the "JBoss" one.

              • 4. Re: jboss-seam.jar is packaged into jboss-seam.jar when adde
                skirilo

                Thank You. Just to make it clear...
                I am using GlassFish v.2 server. Does it mean that I need to download some server adapter from "JBoss, A Division of Red Hat" that would support GlassFish server?

                • 5. Re: jboss-seam.jar is packaged into jboss-seam.jar when adde
                  rob.stryker

                  .... oooooh. Um... nope, we don't have a server adapter of our own. We bundle webtools with our tool set.

                  You're basically stuck with the ones available and you'll need to file this bug on bugs.eclipse.org

                  Sorry :(

                  • 6. Re: jboss-seam.jar is packaged into jboss-seam.jar when adde
                    skirilo

                    Thank You. At least I know what happens :))
                    Now i'm trying to deploy on GlassFish server using
                    "JBoss, A Division of Red Hat"->"JBoss Deploy-Only Server" pointing the GlassFish autodeploy directory as the Deploy Directory.
                    It would be nice to have an option in this server config whether the deployment will happen by placing an application directory or an .ear package to the Deploy Directory.
                    Is there any chance for this?

                    And for some reason I can see an empty "jboss-seam_jar" directory inside the "myapp-ear.ear" directory.


                    • 7. Re: jboss-seam.jar is packaged into jboss-seam.jar when adde
                      rob.stryker

                      Re the empty seam.jar file:

                      In the last release of JBoss Tools (And JBDS) there was a webtools error and we had to patch their code. If you look through the release notes or this forum you'll find a link to that patch file.