Building jlibrary-server-xfire failed

Developers
2009-02-13
2013-04-25
  • John Highstone
    John Highstone
    2009-02-13

    Hi!

    I have tried to build jLibrary 1.2b. After I downloaded all the sources, I tried to build them with Maven. I followed the instruction on the internet:

    1) I build all the sources with Maven by using the pom.xml in the root directory. Maven reported no problems.

    2) Then I changed the configuraiton in org.jlibrary.client and build this plugin - it failed because of some missing jars

    3) So I tried to build each plug-ins by by its own. But there were problems with two plug-ins: jlibrary-server-xfire and jlibrary-server-xfiredelegate. You can find the log files below.

    My configuration:
    - Eclipse 3.4
    - jLibrary: 1.2b

    Thank you for your help!

    ==================================================================
    jlibrary-server-xfire
    ==================================================================

    + Error stacktraces are turned on.
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building jLibrary XFire Server
    [INFO]    task-segment: [install]
    [INFO] ------------------------------------------------------------------------
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    [WARNING] POM for 'jaxen:jaxen:pom:1.1-beta-9:compile' is invalid.

    Its dependencies (if any) will NOT be available to the current build.
    Downloading: https://maven-repository.dev.java.net/nonav/repository/woodstox/poms/wstx-asl-3.0.1.pom
    Downloading: http://dist.codehaus.org//woodstox/poms/wstx-asl-3.0.1.pom
    Downloading: http://people.apache.org/maven-snapshot-repository//woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom
    Downloading: http://repo1.maven.org/maven2/woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom
    [WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid.

    Its dependencies (if any) will NOT be available to the current build.
    [INFO] [compiler:compile]
    [INFO] Compiling 5 source files to c:\eclipse\workspace\plugins\jlibrary-server-xfire\target\classes
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Compilation failure

    c:\eclipse\workspace\plugins\jlibrary-server-xfire\src\main\java\org\jlibrary\core\ws\xfire\security\XfSecurityService.java:[32,38] package org.jlibrary.core.security.axis does not exist

    c:\eclipse\workspace\plugins\jlibrary-server-xfire\src\main\java\org\jlibrary\core\ws\xfire\security\XfSecurityService.java:[54,10] cannot find symbol
    symbol  : class AxisSecurityService
    location: class org.jlibrary.core.ws.xfire.security.XfSecurityService

    c:\eclipse\workspace\plugins\jlibrary-server-xfire\src\main\java\org\jlibrary\core\ws\xfire\security\XfSecurityService.java:[65,18] cannot find symbol
    symbol  : class AxisSecurityService
    location: class org.jlibrary.core.ws.xfire.security.XfSecurityService

    [INFO] ------------------------------------------------------------------------
    [INFO] Trace
    org.apache.maven.BuildFailureException: Compilation failure
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:697)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:538)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:517)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:369)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
        at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:458)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:676)
        ... 16 more
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 6 seconds
    [INFO] Finished at: Fri Feb 13 11:54:53 CET 2009
    [INFO] Final Memory: 14M/26M
    [INFO] ------------------------------------------------------------------------

    jlibrary-server-xfiredelegate

    ==================================================================
    jlibrary-server-xfiredelegate
    ==================================================================

    + Error stacktraces are turned on.
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building jLibrary XFire Delegate
    [INFO]    task-segment: [install]
    [INFO] ------------------------------------------------------------------------
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    [WARNING] POM for 'jaxen:jaxen:pom:1.1-beta-9:compile' is invalid.

    Its dependencies (if any) will NOT be available to the current build.
    Downloading: https://maven-repository.dev.java.net/nonav/repository/woodstox/poms/wstx-asl-3.0.1.pom
    Downloading: http://dist.codehaus.org//woodstox/poms/wstx-asl-3.0.1.pom
    Downloading: http://people.apache.org/maven-snapshot-repository//woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom
    Downloading: http://repo1.maven.org/maven2/woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom
    [WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid.

    Its dependencies (if any) will NOT be available to the current build.
    [INFO] [compiler:compile]
    [INFO] Compiling 2 source files to c:\eclipse\workspace\plugins\jlibrary-server-xfiredelegate\target\classes
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Compilation failure

    c:\eclipse\workspace\plugins\jlibrary-server-xfiredelegate\src\main\java\org\jlibrary\core\xfire\client\WSSecurityServiceImpl.java:[140,3] annotations are not supported in -source 1.3
    (use -source 5 or higher to enable annotations)
      @SuppressWarnings("unchecked")

    c:\eclipse\workspace\plugins\jlibrary-server-xfiredelegate\src\main\java\org\jlibrary\core\xfire\client\WSRepositoryImpl.java:[126,3] annotations are not supported in -source 1.3
    (use -source 5 or higher to enable annotations)
      @SuppressWarnings("unchecked")

    [INFO] ------------------------------------------------------------------------
    [INFO] Trace
    org.apache.maven.BuildFailureException: Compilation failure
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:697)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:538)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:517)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:369)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
        at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:458)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:676)
        ... 16 more
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 5 seconds
    [INFO] Finished at: Fri Feb 13 11:53:15 CET 2009
    [INFO] Final Memory: 10M/18M
    [INFO] ------------------------------------------------------------------------

     
    • Carlos S. Zamudio
      Carlos S. Zamudio
      2009-02-13

      Hi,

      I asked a similar question in a previous post. As best I can figure, the Client build doesn't require either the XFire or AXIS components to build.  The default communication method to the jLibrary Server is HTTP, so when I build the Client the result build can run successfully just as the distribution version.

      That said, I really do want to try a SOAP configuration.

      Carlos