Build Geonetwork with Eclipse :

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Build Geonetwork with Eclipse :

FBachraty
Hello,

I try to build the CVS Head of Geonetwork with eclipse :

Buildfile: /home/fbachraty/workspace/geonetwork/build.xml
compile:
   [delete] Deleting: /home/fbachraty/workspace/geonetwork/web/WEB-INF/lib/geonetwork.jar
   [delete] Deleting: /home/fbachraty/workspace/geonetwork/web/WEB-INF/lib/setup.jar
   [delete] Deleting: /home/fbachraty/workspace/geonetwork/migrate/lib/migration.jar
   [delete] Deleting: /home/fbachraty/workspace/geonetwork/csw/lib/csw-client.jar
   [delete] Deleting: /home/fbachraty/workspace/geonetwork/csw/lib/csw-common.jar
    [mkdir] Created dir: /home/fbachraty/workspace/geonetwork/.build
    [javac] Compiling 178 source files to /home/fbachraty/workspace/geonetwork/.build
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 1 file to /home/fbachraty/workspace/geonetwork/.build
      [jar] Building jar: /home/fbachraty/workspace/geonetwork/web/WEB-INF/lib/geonetwork.jar
      [jar] Building jar: /home/fbachraty/workspace/geonetwork/web/WEB-INF/lib/setup.jar
      [jar] Building jar: /home/fbachraty/workspace/geonetwork/migrate/lib/migration.jar
      [jar] Building jar: /home/fbachraty/workspace/geonetwork/csw/lib/csw-client.jar
      [jar] Building jar: /home/fbachraty/workspace/geonetwork/csw/lib/csw-common.jar
   [delete] Deleting directory /home/fbachraty/workspace/geonetwork/.build
BUILD SUCCESSFUL
Total time: 4 seconds

It look good but when i replace the Geonetwork.jar (the 2.1 by the Head built ) and restart my tomcat it don't work !
Looking at the geonetwork.jar i see that the original is nearly 670ko and mine built is 380ko ?!
Any ideas ?

Thank you by advance
Cordialy Fabien Bachraty
INRA Avignon
Reply | Threaded
Open this post in threaded view
|

Re: Build Geonetwork with Eclipse :

François-Xavier PRUNAYRE
Hello, try instead of /home/fbachraty/workspace/geonetwork/build.xml
 /home/fbachraty/workspace/geonetwork/installer/build.xml.
This will create the installer and rebuild everything for version 2.1 in the
directory /home/fbachraty/workspace/geonetwork/geonetwork-2.1.0.
Then run the installer.
HTH. Francois


-----Message d'origine-----
De : [hidden email]
[mailto:[hidden email]] De la part de
FBachraty
Envoyé : lundi 29 octobre 2007 15:15
À : [hidden email]
Objet : [GeoNetwork-devel] Build Geonetwork with Eclipse :


Hello,

I try to build the CVS Head of Geonetwork with eclipse :

Buildfile: /home/fbachraty/workspace/geonetwork/build.xml
compile:
   [delete] Deleting:
/home/fbachraty/workspace/geonetwork/web/WEB-INF/lib/geonetwork.jar
   [delete] Deleting:
/home/fbachraty/workspace/geonetwork/web/WEB-INF/lib/setup.jar
   [delete] Deleting:
/home/fbachraty/workspace/geonetwork/migrate/lib/migration.jar
   [delete] Deleting:
/home/fbachraty/workspace/geonetwork/csw/lib/csw-client.jar
   [delete] Deleting:
/home/fbachraty/workspace/geonetwork/csw/lib/csw-common.jar
    [mkdir] Created dir: /home/fbachraty/workspace/geonetwork/.build
    [javac] Compiling 178 source files to
/home/fbachraty/workspace/geonetwork/.build
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 1 file to /home/fbachraty/workspace/geonetwork/.build
      [jar] Building jar:
/home/fbachraty/workspace/geonetwork/web/WEB-INF/lib/geonetwork.jar
      [jar] Building jar:
/home/fbachraty/workspace/geonetwork/web/WEB-INF/lib/setup.jar
      [jar] Building jar:
/home/fbachraty/workspace/geonetwork/migrate/lib/migration.jar
      [jar] Building jar:
/home/fbachraty/workspace/geonetwork/csw/lib/csw-client.jar
      [jar] Building jar:
/home/fbachraty/workspace/geonetwork/csw/lib/csw-common.jar
   [delete] Deleting directory /home/fbachraty/workspace/geonetwork/.build
BUILD SUCCESSFUL
Total time: 4 seconds

It look good but when i replace the Geonetwork.jar (the 2.1 by the Head
built ) and restart my tomcat it don't work !
Looking at the geonetwork.jar i see that the original is nearly 670ko and
mine built is 380ko ?!
Any ideas ?

Thank you by advance
Cordialy Fabien Bachraty
INRA Avignon
--
View this message in context:
http://www.nabble.com/Build-Geonetwork-with-Eclipse-%3A-tf4711877s18419.html
#a13468219
Sent from the geonetwork-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Build Geonetwork with Eclipse :

FBachraty
Hi,

Thank you for your help.

I do what you say, and i install it in a new folder as for the final 2.1 release i already have.

I configure Geonetwork config file, tomcat server.xml and policy.

But it display an error like that !

StandardContext[/geonetworkeclipse]La servlet /geonetworkeclipse a généré une exception "load()"
javax.servlet.ServletException: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
....
----- Root Cause -----
javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
....

Moreover the version compiled is the Head but it is not the final 2.1.
It's is the 2.1.0 alpha, i wish i could work on the final release with geoserver and intermap embeded.
Is it possible ?

Thank you.

Fabien Bachraty

François-Xavier PRUNAYRE wrote
Hello, try instead of /home/fbachraty/workspace/geonetwork/build.xml
 /home/fbachraty/workspace/geonetwork/installer/build.xml.
This will create the installer and rebuild everything for version 2.1 in the
directory /home/fbachraty/workspace/geonetwork/geonetwork-2.1.0.
Then run the installer.
HTH. Francois