Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1240

ejb-link fails with linked tmp directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • No Release
    • JBossAS-4.0.0 Final
    • EJB2
    • None

      SourceForge Submitter: rz1911 .
      Hi,

      I have problems to deploy the attached EAR if the
      jboss/server/default/tmp directory is linked to another
      directoy using an symbolic link. I use JBoss 4.0.0, JDK
      1.4.2_06 and RedHat Linux.

      The EAR defins two (empty) session EJBs A and B. EJB A
      has an link to EJB B using th <ejb-link> syntax.

      I get the following Exception:

      2004-12-06 18:38:44,673 INFO
      [org.jboss.ejb.EjbModule] Deploying AEJB
      2004-12-06 18:38:46,663 INFO
      [org.jboss.ejb.EjbModule] Deploying BEJB
      2004-12-06 18:38:46,983 WARN [org.jboss.ejb.EjbUtil]
      Can't locate deploymentInfo for target:
      file:/var/intelliform/tmp/deploy/tmp39034bug.ear-
      contents/B.jar
      2004-12-06 18:38:46,984 ERROR
      [org.jboss.ejb.StatelessSessionContainer] Starting
      failed jboss.j2ee:jndiName=AEJB,service=EJB
      org.jboss.deployment.DeploymentException: Failed to
      resolve ejb-link: B.jar#BEJB
      make by ejb-name: ejb/BEJB
      at org.jboss.ejb.Container.setupEnvironment
      (Container.java:993)
      at org.jboss.ejb.Container.startService
      (Container.java:724)
      at org.jboss.ejb.SessionContainer.startService
      (SessionContainer.java:381
      )
      at
      org.jboss.system.ServiceMBeanSupport.jbossInternalStar
      t(ServiceMBeanS
      upport.java:271)
      at
      org.jboss.system.ServiceMBeanSupport.jbossInternalLifec
      ycle(ServiceMB
      eanSupport.java:221)
      at sun.reflect.GeneratedMethodAccessor3.invoke
      (Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke
      (Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown
      Source)
      at
      org.jboss.mx.interceptor.ReflectedDispatcher.invoke
      (ReflectedDispatch
      er.java:141)
      at org.jboss.mx.server.Invocation.dispatch
      (Invocation.java:80)
      ...

      The EAR deploys fine, if the mtp directory is an real
      directory.

      I think this is due to the failure of
      EjbUtil.resolveRelativeLink.
      The use of Strings.toURL calculates the URL for the
      DeploymentInfo class different than the MainDeployer
      class.

        1. bug.ear
          3 kB
          Scott Stark

              starksm64 Scott Stark (Inactive)
              sourceforge-user SourceForge legacy user (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: