[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orekit Developers] Satellite Tracker demo application



Thomas Neidhart <thomas.neidhart@gmail.com> a écrit :

Hi,

Hi thomas,


I have created a small webapp prototype of a satellite tracker that uses
orekit to propagate the satellite orbits.

Great! Thanks for sharing this.


It's basically a tutorial how to use Vaadin together with Spring and
JPA, and I wanted to something more interesting than just a simple CRUD
application.

The result maybe also of interest to this community and can be found
here (Apache license): https://github.com/netomi/sat-tracker

To use it just type in the following:

  git clone git://github.com/netomi/sat-tracker.git
  mvn clean compile
  mvn jetty:run

I failed at th mvn jetty:run part. Here are the errors I get:

(lehrin) luc% mvn jetty:run
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - sat-tracker:sat-tracker:war:0.1.0-SNAPSHOT
[INFO]    task-segment: [jetty:run]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing jetty:run
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 10 resources
[INFO] [gwt:resources {execution: default}]
[INFO] 1 source files from GWT module org.netomi.tracker.ui.widgetset.TrackerWidgetset
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [aspectj:compile {execution: default}]
[INFO] No modifications found skipping aspectJ compile
[INFO] [openjpa:enhance {execution: enhancer}]
299 satPU WARN [main] openjpa.Enhance - Type "class org.netomi.tracker.model.Satellite$SatelliteType" loaded by java.net.URLClassLoader@2c9fac35 has no metadata; enhancing as persistence aware. If you intended for "class org.netomi.tracker.model.Satellite$SatelliteType" to be persistence-capable, then this means that OpenJPA could not find any metadata for "class org.netomi.tracker.model.Satellite$SatelliteType". This can happen if the directory containing your metadata is not in your CLASSPATH, or if your metadata files are not named properly. See the documentation on metadata placement for more information.
[INFO] [vaadin:update-widgetset {execution: default}]
[INFO] auto discovered modules [org.netomi.tracker.ui.widgetset.TrackerWidgetset]
[INFO] Updating widgetset org.netomi.tracker.ui.widgetset.TrackerWidgetset
[ERROR] 30 mars 2012 11:11:20 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
[ERROR] INFO: Widgetsets found from classpath:
[ERROR] org.vaadin.vol.VolWidgetsetWithHostedScript in jar:file:/home/luc/.m2/repository/org/vaadin/vol/openlayers-wrapper/1.0.1/openlayers-wrapper-1.0.1.jar!/ [ERROR] com.github.wolfie.refresher.RefresherApplicationWidgetset in jar:file:/home/luc/.m2/repository/org/vaadin/addons/refresher/1.1.1/refresher-1.1.1.jar!/ [ERROR] com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:/home/luc/.m2/repository/com/vaadin/vaadin/6.7.6/vaadin-6.7.6.jar!/ [ERROR] org.netomi.tracker.ui.widgetset.TrackerWidgetset in file:/tmp/sat-tracker/src/main/java
[ERROR]
[ERROR] 30 mars 2012 11:11:20 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
[ERROR] INFO: Search took 6ms
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /tmp/sat-tracker/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [aspectj:test-compile {execution: default}]
[WARNING] No sources found skipping aspectJ compile
[INFO] [jetty:run {execution: default-cli}]
[INFO] Configuring Jetty for project: Unnamed - sat-tracker:sat-tracker:war:0.1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------ [INFO] Webapp source directory /tmp/sat-tracker/target/sat-tracker-0.1.0-SNAPSHOT does not exist [INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Fri Mar 30 11:11:21 CEST 2012
[INFO] Final Memory: 49M/546M
[INFO] ------------------------------------------------------------------------
(lehrin) luc%



After that, the application can be accessed at

http://localhost:8080/sat-tracker

There are already quite a bunch of similar applications available, but
none of them uses orekit ;-).

Any comments or feedback or ideas for more features is welcome.

btw. the orekit version I have used has some (local) changes:

 - make use of frames thread-safe

Looking at the orekit jar, I see you did not use the TimeStampedCache and TimeStampedGenerator from the multi-threading branch. How did you implement thread-safety ? Did you find any issue in the branch ?

 - add support for ephemeris mode to TLEPropagator

Would you like to commit this fix ?

This works looks very promising, thanks again
Luc


Thomas





----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.