>>> How are you planning to launch things?  Are you going to use the SDS to
launch them?


Yes, we are going to use the SDS to launch PasOTrunk projects.

I gave the new jnlp a try:
1) created new offering: http://rails.dev.concord.org/sds/2/offering/45268.

This offering uses the following:
Jnlp: PasOTrunk Jnlp <http://rails.dev.concord.org/sds/2/jnlp/31868>, *(id:
31868), last updated: Mon Jun 30 17:51:33 UTC 2008*
Curnit: 
otrunk-curnit-external-diytest<http://rails.dev.concord.org/sds/2/curnit/17300>
*(id: 17300), last updated:

*2) created workgroup for this offering:
http://rails.dev.concord.org/sds/2/workgroups/87346

3) tried to launch the project with the recently-converted-to-otrunk
Hydrogen Cars project.  The otml file resides here:
http://www.telscenter.org/confluence/download/attachments/20047/Hydrogen_Cars.otml

Paste this in the browser:
http://rails.dev.concord.org/sds/2/offering/45268/jnlp/87346?sailotrunk.otmlurl=http://www.telscenter.org/confluence/download/attachments/20047/Hydrogen_Cars.otml


This threw an exception:
Jun 30, 2008 5:35:49 PM net.sf.sail.emf.launch.ConsoleLogServiceImpl
setUpEMFFoundation
INFO: local console data:
/Users/hirokiterashima/SailUserData/v375/console48484.xml
Setting up logging console.
Done setting up file logging.
Jun 30, 2008 5:35:49 PM net.sf.sail.core.service.impl.SessionManagerImpl
start
INFO:  session property: sds_time=1214872596542
Jun 30, 2008 5:35:49 PM net.sf.sail.core.service.impl.SessionManagerImpl
start
INFO:  session property: sailotrunk.otmlurl=
http://www.telscenter.org/confluence/download/attachments/20047/Hydrogen_Cars.otml
No URL specified for the otml file
java.lang.NullPointerException
    at
org.telscenter.sailotrunk.OTrunkCurnit.getOTDatabase(OTrunkCurnit.java:201)
    at
org.telscenter.sailotrunk.OTrunkCurnit.getCurnitId(OTrunkCurnit.java:86)
    at
org.telscenter.sailotrunk.OtmlUrlCurnitProvider.getRegisteredCurnitUuids(OtmlUrlCurnitProvider.java:50)
    at
net.sf.sail.core.service.impl.LauncherServiceImpl.getCurnit(LauncherServiceImpl.java:76)
    at
net.sf.sail.core.service.impl.LauncherServiceImpl.getOffering(LauncherServiceImpl.java:90)
    at
net.sf.sail.core.service.impl.SessionManagerImpl.start(SessionManagerImpl.java:140)
    at
net.sf.sail.common.apps.preview.BundleLauncher.launch(BundleLauncher.java:157)
    at
net.sf.sail.common.apps.preview.BundleLauncher.launch(BundleLauncher.java:103)
    at net.sf.sail.emf.launch.EMFLauncher2.main(EMFLauncher2.java:41)
    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:585)
    at com.sun.javaws.Launcher.executeApplication(Launcher.java:1178)
    at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1125)
    at com.sun.javaws.Launcher.continueLaunch(Launcher.java:968)
    at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:522)
    at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
    at com.sun.javaws.Launcher.run(Launcher.java:165)
    at java.lang.Thread.run(Thread.java:613)
java.lang.NullPointerException
    at
org.telscenter.sailotrunk.OTrunkCurnit.getOTDatabase(OTrunkCurnit.java:201)
    at
org.telscenter.sailotrunk.OTrunkCurnit.getCurnitId(OTrunkCurnit.java:86)
    at
org.telscenter.sailotrunk.OtmlUrlCurnitProvider.getCurnit(OtmlUrlCurnitProvider.java:33)
    at
net.sf.sail.core.service.impl.LauncherServiceImpl.getCurnit(LauncherServiceImpl.java:77)
    at
net.sf.sail.core.service.impl.LauncherServiceImpl.getOffering(LauncherServiceImpl.java:90)
    at
net.sf.sail.core.service.impl.SessionManagerImpl.start(SessionManagerImpl.java:140)
    at
net.sf.sail.common.apps.preview.BundleLauncher.launch(BundleLauncher.java:157)
    at
net.sf.sail.common.apps.preview.BundleLauncher.launch(BundleLauncher.java:103)
    at net.sf.sail.emf.launch.EMFLauncher2.main(EMFLauncher2.java:41)
    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:585)
    at com.sun.javaws.Launcher.executeApplication(Launcher.java:1178)
    at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1125)
    at com.sun.javaws.Launcher.continueLaunch(Launcher.java:968)
    at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:522)
    at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
    at com.sun.javaws.Launcher.run(Launcher.java:165)
    at java.lang.Thread.run(Thread.java:613)

The same exception was thrown when other otml files were used:

http://rails.dev.concord.org/sds/2/offering/45268/jnlp/87346?sailotrunk.otmlurl=http://www.telscenter.org/confluence/download/attachments/20047/Airbags.otml

http://rails.dev.concord.org/sds/2/offering/45268/jnlp/87346?sailotrunk.otmlurl=http://www.telscenter.org/confluence/download/attachments/20047/pas-test.otml

http://rails.dev.concord.org/sds/2/offering/45268/jnlp/87346?sailotrunk.otmlurl<http://rails.dev.concord.org/sds/2/offering/45268/jnlp/87346?sailotrunk.otmlurl=http://www.telscenter.org/confluence/download/attachments/20047/pas-test.otml>
=http%3A%2F%2Fwww.telscenter.org
%2Fconfluence%2Fdownload%2Fattachments%2F20047%2Fpas-test.otml



Also, same exception was thrown when I created and used another offering:
http://rails.dev.concord.org/sds/2/offering/45269
This offering uses the following:
Jnlp: PasOTrunk Jnlp <http://rails.dev.concord.org/sds/2/jnlp/31868>, *(id:
31868), last updated: Mon Jun 30 17:51:33 UTC 2008*
Curnit: OTrunk Untangled Test <http://rails.dev.concord.org/sds/2/curnit/75>
*(id: 75), last updated: *

Looking at the exception and the console, it appears that the otml url was
not passed in as a system property, even though it was specified as a
parameter.

In OtmlUrlCurnitProvider, method getOtmlUrl():

        // The system property overrides the one from the config file.
        String urlStr =
System.getProperty(SailOTrunkRootBean.SAILOTRUNK_OTMLURL, null);

        if(urlStr == null){
            urlStr = getUrl();
        }

        if(urlStr == null){
            System.err.println("No URL specified for the otml file");
            return null;
        }

If you look at the console output above, you'll see the "No URL specified
for the otml file" message.

Am I missing a step somewhere?
Hiroki

On Mon, Jun 30, 2008 at 3:04 PM, Scott Cytacki <[EMAIL PROTECTED]> wrote:

>
> I see you added EMFLauncher4.  You probably don't need to do that, what
> is the use case for that class?
>
> I'm late getting this posted: the dev sds now has configs for running
> the PasOTrunk vle.
> Here is an example jnlp that is setup with that config file:
> http://rails.dev.concord.org/sds/2/jnlp/31868
>
> It expects the sail session property or the java system property
> sailotrunk.otmlurl to be set.
> If you are using the SDS to launch the VLE then the sailotrunk.otmlurl
> can be set just by adding the following:
> ?sailotrunk.otmlurl=http://myurl.com
>
> If you need to set the otmlurl when you launch from the command line
> just set the system property using:
> -Dsailotrunk.otmlurl=http://myurl.com
>
> How are you planning to launch things?  Are you going to use the SDS to
> launch them?
>
> What problem are you trying to solve by adding dependencies to poms?
> If you are running from Eclipse with m2eclipse you can use the
> pas-common-apps
> project to pull in most every dependency.  And if there is one missing
> you can either add it to that pom, or create a new project that depends
> on everything you need.
> If you are running from a jnlp generated from the pas-jnlp project, you
> can add the dependency there.
>
> Scott
>
> Geoffrey Kwan wrote:
> > Sorry about that. I didn't realize that change to the pom would have
> > that affect. I've reverted the pom.xml for sail-data-emf back to the
> > previous revision until we figure out what should be done.
> >
> > Geoff
> >
> > On Mon, Jun 30, 2008 at 1:40 PM, Aaron Unger <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >
> >     I noticed that Concord's JNLP's are no longer building and it seems
> to
> >     be because of Geoff's changes to the sail-otrunk and sail-data-emf
> >     pom's. Sail-otrunk is now depending on sail-data-emf, and
> >     sail-data-emf
> >     is now depending on pas-learner-runtime (and jtidy, being a
> dependency
> >     of pas-learner-runtime, can't be found).
> >
> >     The quick fix would be to make the jar available, but the error
> brings
> >     up a larger question: which sail projects should be treated as
> >     independent entities and which are specific enough implementations
> >     that
> >     they can depend on other specific things? My gut says that
> >     sail-data-emf
> >     shouldn't be dependent on pas-learner-runtime, since it's used by
> >     other
> >     things than the PLR. Can anyone with more familiarity with these
> >     projects share their thoughts?
> >
> >     Thanks-
> >     -- Aaron
> >
> >     The error being thrown is:
> >     Missing:
> >     ----------
> >     1) jtidy:jtidy:jar:8.0-SNAPSHOT
> >
> >      Try downloading the file manually from the project website.
> >
> >      Then, install it using the command:
> >          mvn install:install-file -DgroupId=jtidy -DartifactId=jtidy
> >     -Dversion=8.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
> >
> >      Alternatively, if you host your own repository you can deploy the
> >     file
> >     there:
> >          mvn deploy:deploy-file -DgroupId=jtidy -DartifactId=jtidy
> >     -Dversion=8.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
> >     -Durl=[url]
> >     -DrepositoryId=[id]
> >
> >      Path to dependency:
> >          1)
> org.concord.maven-jnlp:sail-otrunk-snapshot:pom:0.1.0-SNAPSHOT
> >          2) net.sf.sail:sail-data-emf:jar:0.1.0-SNAPSHOT
> >          3) org.telscenter:pas-learner-runtime:jar:0.4.3-SNAPSHOT
> >          4) jtidy:jtidy:jar:8.0-SNAPSHOT
> >
> >
> >
> >
> >
> > >
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SAIL-Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/SAIL-Dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to