Problem with deploying my service assembly

View: New views
2 Messages — Rating Filter:   Alert me  

Problem with deploying my service assembly

by Amar-Djalil Mezaour :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have a problem when deploying my service assembly that I created using
"maven-petals-plugin". Does anybody know where is the problem? This is
the error I'm getting:

[petals.container.components.petals-bc-soap] Start Component
[petals.container.components.petals-bc-soap] Starting Jetty server...
[petals.container.components.petals-bc-soap] Port : 8084 / Max poolsize
: 255 / Min poolsize : 10/ Acceptors size : 8
2008-07-01 16:48:26.130::INFO:  jetty-6.1.4
2008-07-01 16:48:26.161::INFO:  Started SelectChannelConnector@...:8084
##### Petals container correctly started #####
System Info : Petals JBI Container - version: 2.1.1

Petals prompt. Tape 'help' for help.

 > [petals.Autoloader] Error during install
org.ow2.petals.PetalsException: Error opening Zip file. Location:
file:/.../petals-quickstart-2.1.1/PEtALS/bin/./../work/CrawlerProvideSA-1.0.zip
        at org.ow2.petals.util.ZipUtil.openZipFile(ZipUtil.java:138)
        at
org.ow2.petals.jbi.management.util.PackageHandler.loadDescriptor(PackageHandler.java:80)
        at
org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.install(AutoLoaderServiceImpl.java:222)
        at
org.ow2.petals.jbi.management.autoload.InstallDirectoryScanner.run(InstallDirectoryScanner.java:56)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
        at java.util.zip.ZipFile.<init>(ZipFile.java:131)
        at org.ow2.petals.util.ZipUtil.openZipFile(ZipUtil.java:135)
        ... 5 more

this is the jbi of my service unit:

<?xml version="1.0" encoding="UTF-8"?>


<jbi version="1.0" xmlns="http://java.sun.com/xml/ns/jbi"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:example="http://service.example.com/1.0"
     xmlns:extensions="http://petals.ow2.org/extensions/"
     xmlns:wc="http://www.crawler.com/">
   
    <services binding-component="false">
        <provides interface-name="wc:Crawler"
                  service-name="wc:CrawlerService"
                  endpoint-name="CrawlerEndpoint">
            <extensions:extensions>
                <timeout>500000</timeout>
                <address>http://localhost:8080/Crawler</address>
                <wsdl>http://localhost:8080/Crawler?wsdl</wsdl>
            </extensions:extensions>
        </provides>
    </services>
</jbi>

this is the pom of my su project:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
   
    <!-- ============== -->
    <!-- Identification -->
    <!-- ============== -->

    <name>SU :: CrawlerProvideSU</name>
    <artifactId>CrawlerProvideSU</artifactId>
    <groupId>com.crawler.petals.endpoints</groupId>
    <version>1.0</version>
    <packaging>jbi-service-unit</packaging>
   
    <description>CrawlerProvideSU description.</description>
   
    <!-- ============ -->
    <!-- Dependencies -->
    <!-- ============ -->

    <dependencies>
       
        <!--
         | Unit tests dependencies
         -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.2</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.ow2.petals</groupId>
            <artifactId>petals-bc-soap</artifactId>
            <version>3.0</version>
            <type>jbi-component</type>
        </dependency>
       
    </dependencies>
   
    <!-- ===== -->
    <!-- Build -->
    <!-- ===== -->

    <build>
        <plugins>
            <!--plugin>
                <groupId>org.objectweb.petals</groupId>
                <artifactId>maven-petals-plugin</artifactId>
                <version>1.0.0</version>
                <extensions>true</extensions>
            </plugin-->
            <plugin>
                <groupId>org.ow2.petals</groupId>
                <artifactId>maven-petals-plugin</artifactId>
                <version>1.3.1</version>
                <extensions>true</extensions>
            </plugin>
        </plugins>
    </build>
   
</project>


My service assembly is composed like this:

jbi.xml:

<?xml version="1.0" encoding="UTF-8"?>

<jbi version="1.0" xmlns="http://java.sun.com/xml/ns/jbi"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <service-assembly>
        <identification>
            <name>CrawlerProvideSA</name>
            <description>crawler service assembly</description>
        </identification>
        <service-unit>
            <identification>
                <name>CrawlerProvideSU</name>
                <description>crawler service unit</description>
            </identification>
            <target>
                <artifacts-zip>CrawlerProvideSU-1.0.zip</artifacts-zip>
                <component-name>petals-bc-soap</component-name>
            </target>
        </service-unit>
    </service-assembly>
</jbi>

and the corresponding pom file is:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
   
    <!-- ============== -->
    <!-- Identification -->
    <!-- ============== -->

    <name>SA :: CrawlerProvideSA</name>
    <artifactId>CrawlerProvideSA</artifactId>
    <groupId>com.crawler.petals.endpoints</groupId>
    <version>1.0</version>
    <packaging>jbi-service-assembly</packaging>
   
    <description>CrawlerProvideSA description.</description>
   
    <!-- ============ -->
    <!-- Dependencies -->
    <!-- ============ -->

    <dependencies>
       
        <!--
         | Unit tests dependencies
         -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.2</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.crawler.petals.endpoints</groupId>
            <artifactId>CrawlerProvideSU</artifactId>
            <version>1.0</version>
            <type>jbi-service-unit</type>
        </dependency>
       
    </dependencies>
   
    <!-- ===== -->
    <!-- Build -->
    <!-- ===== -->

    <build>
        <plugins>
            <!--plugin>
                <groupId>org.objectweb.petals</groupId>
                <artifactId>maven-petals-plugin</artifactId>
                <version>1.0.0</version>
                <extensions>true</extensions>
            </plugin-->
            <plugin>
                <groupId>org.ow2.petals</groupId>
                <artifactId>maven-petals-plugin</artifactId>
                <version>1.3.1</version>
                <extensions>true</extensions>
            </plugin>
        </plugins>
    </build>
   
</project>



--
You receive this message as a subscriber of the petals-users@... mailing list.
To unsubscribe: mailto:petals-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Re: Problem with deploying my service assembly

by Christophe Hamerling :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I think it is not a descriptor problem. How do you try to deploy your SA ? Sometimes the hotdeploy fails when trying to read the archive file.
If you use the quickstart distribution you can try to deploy it with the webconsole. If not please try to deploy it again.
You can also check your SA size, maybe it contains things which are not required and increases the archive size...

On Tue, Jul 1, 2008 at 5:33 PM, Amar-Djalil Mezaour <mezaour@...> wrote:
Hi,

I have a problem when deploying my service assembly that I created using "maven-petals-plugin". Does anybody know where is the problem? This is the error I'm getting:

[petals.container.components.petals-bc-soap] Start Component
[petals.container.components.petals-bc-soap] Starting Jetty server...
[petals.container.components.petals-bc-soap] Port : 8084 / Max poolsize : 255 / Min poolsize : 10/ Acceptors size : 8
2008-07-01 16:48:26.130::INFO:  jetty-6.1.4
2008-07-01 16:48:26.161::INFO:  Started SelectChannelConnector@...:8084
##### Petals container correctly started #####
System Info : Petals JBI Container - version: 2.1.1

Petals prompt. Tape 'help' for help.

> [petals.Autoloader] Error during install
org.ow2.petals.PetalsException: Error opening Zip file. Location: file:/.../petals-quickstart-2.1.1/PEtALS/bin/./../work/CrawlerProvideSA-1.0.zip
      at org.ow2.petals.util.ZipUtil.openZipFile(ZipUtil.java:138)
      at org.ow2.petals.jbi.management.util.PackageHandler.loadDescriptor(PackageHandler.java:80)
      at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.install(AutoLoaderServiceImpl.java:222)
      at org.ow2.petals.jbi.management.autoload.InstallDirectoryScanner.run(InstallDirectoryScanner.java:56)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
Caused by: java.util.zip.ZipException: error in opening zip file
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java:114)
      at java.util.zip.ZipFile.<init>(ZipFile.java:131)
      at org.ow2.petals.util.ZipUtil.openZipFile(ZipUtil.java:135)
      ... 5 more

this is the jbi of my service unit:

<?xml version="1.0" encoding="UTF-8"?>


<jbi version="1.0" xmlns="http://java.sun.com/xml/ns/jbi"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:example="http://service.example.com/1.0"
   xmlns:extensions="http://petals.ow2.org/extensions/"
   xmlns:wc="http://www.crawler.com/">
    <services binding-component="false">
      <provides interface-name="wc:Crawler"
                service-name="wc:CrawlerService"
                endpoint-name="CrawlerEndpoint">
          <extensions:extensions>
              <timeout>500000</timeout>
              <address>http://localhost:8080/Crawler</address>
              <wsdl>http://localhost:8080/Crawler?wsdl</wsdl>
          </extensions:extensions>
      </provides>
  </services>
</jbi>

this is the pom of my su project:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
    <!-- ============== -->
  <!-- Identification -->
  <!-- ============== -->

  <name>SU :: CrawlerProvideSU</name>
  <artifactId>CrawlerProvideSU</artifactId>
  <groupId>com.crawler.petals.endpoints</groupId>
  <version>1.0</version>
  <packaging>jbi-service-unit</packaging>
    <description>CrawlerProvideSU description.</description>
    <!-- ============ -->
  <!-- Dependencies -->
  <!-- ============ -->

  <dependencies>
            <!--
       | Unit tests dependencies
       -->
      <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>3.8.2</version>
          <scope>test</scope>
      </dependency>
      <dependency>
          <groupId>org.ow2.petals</groupId>
          <artifactId>petals-bc-soap</artifactId>
          <version>3.0</version>
          <type>jbi-component</type>
      </dependency>
        </dependencies>
    <!-- ===== -->
  <!-- Build -->
  <!-- ===== -->

  <build>
      <plugins>
          <!--plugin>
              <groupId>org.objectweb.petals</groupId>
              <artifactId>maven-petals-plugin</artifactId>
              <version>1.0.0</version>
              <extensions>true</extensions>
          </plugin-->
          <plugin>
              <groupId>org.ow2.petals</groupId>
              <artifactId>maven-petals-plugin</artifactId>
              <version>1.3.1</version>
              <extensions>true</extensions>
          </plugin>
      </plugins>
  </build>
 </project>


My service assembly is composed like this:

jbi.xml:

<?xml version="1.0" encoding="UTF-8"?>

<jbi version="1.0" xmlns="http://java.sun.com/xml/ns/jbi"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <service-assembly>
      <identification>
          <name>CrawlerProvideSA</name>
          <description>crawler service assembly</description>
      </identification>
      <service-unit>
          <identification>
              <name>CrawlerProvideSU</name>
              <description>crawler service unit</description>
          </identification>
          <target>
              <artifacts-zip>CrawlerProvideSU-1.0.zip</artifacts-zip>
              <component-name>petals-bc-soap</component-name>
          </target>
      </service-unit>
  </service-assembly>
</jbi>

and the corresponding pom file is:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
    <!-- ============== -->
  <!-- Identification -->
  <!-- ============== -->

  <name>SA :: CrawlerProvideSA</name>
  <artifactId>CrawlerProvideSA</artifactId>
  <groupId>com.crawler.petals.endpoints</groupId>
  <version>1.0</version>
  <packaging>jbi-service-assembly</packaging>
    <description>CrawlerProvideSA description.</description>
    <!-- ============ -->
  <!-- Dependencies -->
  <!-- ============ -->

  <dependencies>
            <!--
       | Unit tests dependencies
       -->
      <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>3.8.2</version>
          <scope>test</scope>
      </dependency>
      <dependency>
          <groupId>com.crawler.petals.endpoints</groupId>
          <artifactId>CrawlerProvideSU</artifactId>
          <version>1.0</version>
          <type>jbi-service-unit</type>
      </dependency>
        </dependencies>
    <!-- ===== -->
  <!-- Build -->
  <!-- ===== -->

  <build>
      <plugins>
          <!--plugin>
              <groupId>org.objectweb.petals</groupId>
              <artifactId>maven-petals-plugin</artifactId>
              <version>1.0.0</version>
              <extensions>true</extensions>
          </plugin-->
          <plugin>
              <groupId>org.ow2.petals</groupId>
              <artifactId>maven-petals-plugin</artifactId>
              <version>1.3.1</version>
              <extensions>true</extensions>
          </plugin>
      </plugins>
  </build>
 </project>



--
You receive this message as a subscriber of the petals-users@... mailing list.
To unsubscribe: mailto:petals-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
Christophe Hamerling
PEtALS ESB Research Engineer / Product Manager @ eBM WebSourcing
http://petals.ow2.org
http://petals.ebmwebsourcing.com
Phone : +33534320314
Skype : christophe.hamerling

--
You receive this message as a subscriber of the petals-users@... mailing list.
To unsubscribe: mailto:petals-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
LightInTheBox - Buy quality products at wholesale price