1 Reply Latest reply on Sep 8, 2007 8:50 AM by Alessio Soldano

    Problem Converting EJB2.1  to Web Services

    Suraphel Mendaye Newbie

      We have existing Session EJB and trying to convert it to Web Services. I have created all the WS artifact using ant task and also modify ejb-jar.xml to include the service point. However, when I deploy as part of an ear file I am getting the following errors. We are using JBOSS 4.0.4. Based on JBOSS documenetaion, I don't need to include any exteranal jar for we services support. Our ear deployed on a different directory "pvng" but we copy all the files, and dir from default. As shown below in the server log
      commons-discovery.jar, saaj.jar, wsdl4j.jar, commons-logging.jar, jaxrpc.jar? Do I need to get all this JARs?

      I am not sure what is going on here? Do I need to include all jars into a lib directory inside ear file?
      Help... Pls look the error message I got in server log below.

      2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/de.danet.an.wfcore-ejbs.jar references URL file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/commons-discovery.jar which could not be opened, entry ignored
      org.jboss.deployment.DeploymentException: url file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/commons-discovery.jar could not be opened, does it exist?
      at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)
      at org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1119)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:873)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:881)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)

      2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at de.danet.an.wfcore-ejbs.jar entry is lib/saaj.jar
      2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/de.danet.an.wfcore-ejbs.jar references URL file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/saaj.jar which could not be opened, entry ignored
      org.jboss.deployment.DeploymentException: url file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/saaj.jar could not be opened, does it exist?
      at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)
      at org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1119)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:873)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:881)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/de.danet.an.wfcore-ejbs.jar references URL file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/wsdl4j.jar which could not be opened, entry ignored
      org.jboss.deployment.DeploymentException: url file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/wsdl4j.jar could not be opened, does it exist?
      at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)
      at org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1119)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:873)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:881)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)

      2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at de.danet.an.wfcore-ejbs.jar entry is lib/commons-logging.jar
      2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/de.danet.an.wfcore-ejbs.jar references URL file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/commons-logging.jar which could not be opened, entry ignored
      org.jboss.deployment.DeploymentException: url file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/commons-logging.jar could not be opened, does it exist?
      at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)


      2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at de.danet.an.wfcore-ejbs.jar entry is lib/jaxrpc.jar
      2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/de.danet.an.wfcore-ejbs.jar references URL file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/jaxrpc.jar which could not be opened, entry ignored
      org.jboss.deployment.DeploymentException: url file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/jaxrpc.jar could not be opened, does it exist?
      at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)
      at org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1119)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:873)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:881)






        • 1. Re: Problem Converting EJB2.1  to Web Services
          Alessio Soldano Newbie

          It's not clear to me whether your ws is not working or you only noticed those messages in the log. They're debug logs by the MainDeployer that seems to be ignoring those exceptions.

          Anyway as long as you correctly install JBoss AS and JBoss WS (if you need to update it to a more recent version), you should not need to copy or move those libraries as they are installed in the right path for you by the installation script.

          Alessio Soldano