scalawithsails-users Mailing List for Scala with Sails
Status: Pre-Alpha
Brought to you by:
dpp
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: David P. <dp...@at...> - 2007-01-09 22:41:30
|
Tobias, My next step is to package Derby into SwS so there's a DB that works out of the box. Thanks for hanging in with SwS. David On Jan 9, 2007, at 2:38 PM, Tobias Gerdin wrote: > Hi David, > > At first I had exactly the same problem but after switching to JDK > 1.5 everything worked. (Mac OS X Tiger shipped with both JDK 1.4 > and 1.5 but the (stone-age) 1.4 was set as the default. Anyways, > thanks for the help! > > The database examples [HTTP] 500-ed on me though, but atleast I > have something to play with now, I'll might look into the database > examples some more further on.. > > > Regards, > > Tobias > > > On 9 jan 2007, at 01.58, David Pollak wrote: > >> Tobias, >> >> Sorry it took so long, I've created a Maven repository with the >> correct resources (Scala 2.3.1) in it. >> >> Please do an SVN update, a mvn install in the top directory of SwS >> and let me know if that works. >> >> Thanks, >> >> David > -- David Pollak http://blog.lostlake.org |
From: Tobias G. <tob...@gm...> - 2007-01-09 22:39:02
|
Hi David, At first I had exactly the same problem but after switching to JDK 1.5 everything worked. (Mac OS X Tiger shipped with both JDK 1.4 and 1.5 but the (stone-age) 1.4 was set as the default. Anyways, thanks for the help! The database examples [HTTP] 500-ed on me though, but atleast I have something to play with now, I'll might look into the database examples some more further on.. Regards, Tobias On 9 jan 2007, at 01.58, David Pollak wrote: > Tobias, > > Sorry it took so long, I've created a Maven repository with the > correct resources (Scala 2.3.1) in it. > > Please do an SVN update, a mvn install in the top directory of SwS > and let me know if that works. > > Thanks, > > David |
From: David P. <dp...@at...> - 2007-01-09 00:58:55
|
Tobias, Sorry it took so long, I've created a Maven repository with the correct resources (Scala 2.3.1) in it. Please do an SVN update, a mvn install in the top directory of SwS and let me know if that works. Thanks, David Tobias Gerdin wrote: > Hi there, > > Thought I'd try out Sails but I ran into some initial problems... I > admit I'm not all that familiar with Maven but following the > instructions in main/readme.txt, I had problems with "mvn install". > The first time I ran it it complained about scala-compiler, scala- > library and scala-actors. I'm on Scala 2.3.1 on Mac OS X and believe > the files Maven was looking for were already present in the sbaz/lib > directory (/usr/local/share/scala/lib on a UNIX system), that is > scala-(compiler|actors|library).jar files. As indicated by Maven I > then pointed Maven to them manually. However, "mvn jetty:run" from > the scalawithsails-example dir complains it can't find with > scalawithsails-core, or more precisely: > > Downloading: http://millstone.iodp.tamu.edu/maven2/com/scalawithsails/ > scalawithsails-core/0.0.4/scalawithsails-core-0.0.4.jar > [WARNING] Unable to get resource from repository maven2.iodp.usio > (http://millstone.iodp.tamu.edu/maven2) > Downloading: http://repo1.maven.org/maven2/com/scalawithsails/ > scalawithsails-core/0.0.4/scalawithsails-core-0.0.4.jar > [WARNING] Unable to get resource from repository central (http:// > repo1.maven.org/maven2) > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Failed to resolve artifact. > > Missing: > ---------- > 1) com.scalawithsails:scalawithsails-core:jar:0.0.4 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=com.scalawithsails - > DartifactId=scalawithsails-core \ > -Dversion=0.0.4 -Dpackaging=jar -Dfile=/path/to/file > > Path to dependency: > 1) com.scalawithsails:scalawithsails-example:war:0.0.4 > 2) com.scalawithsails:scalawithsails-core:jar:0.0.4 > > ---------- > 1 required artifact is missing. > > for artifact: > com.scalawithsails:scalawithsails-example:war:0.0.4 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2), > maven2.iodp.usio (http://millstone.iodp.tamu.edu/maven2) > > ------ snip > > For kicks I tried to do "mvn install" from the main directory again, > and then mvn starts to complain about the following: > > ----------------------------------------------------- > this realm = app0.child-container[iodp.usio:maven-scala-plugin] > urls[0] = file:/Users/tgerdin/.m2/repository/iodp/usio/maven-scala- > plugin/1.0/maven-scala-plugin-1.0.jar > Number of imports: 0 > > > this realm = plexus.core.maven > urls[0] = file:/Users/tgerdin/maven/lib/commons-cli-1.0.jar > urls[1] = file:/Users/tgerdin/maven/lib/doxia-sink-api-1.0-alpha-7.jar > urls[2] = file:/Users/tgerdin/maven/lib/jsch-0.1.24.jar > urls[3] = file:/Users/tgerdin/maven/lib/maven-artifact-2.0.4.jar > urls[4] = file:/Users/tgerdin/maven/lib/maven-artifact-manager-2.0.4.jar > urls[5] = file:/Users/tgerdin/maven/lib/maven-core-2.0.4.jar > urls[6] = file:/Users/tgerdin/maven/lib/maven-error- > diagnostics-2.0.4.jar > urls[7] = file:/Users/tgerdin/maven/lib/maven-model-2.0.4.jar > urls[8] = file:/Users/tgerdin/maven/lib/maven-monitor-2.0.4.jar > urls[9] = file:/Users/tgerdin/maven/lib/maven-plugin-api-2.0.4.jar > urls[10] = file:/Users/tgerdin/maven/lib/maven-plugin- > descriptor-2.0.4.jar > urls[11] = file:/Users/tgerdin/maven/lib/maven-plugin-parameter- > documenter-2.0.4.jar > urls[12] = file:/Users/tgerdin/maven/lib/maven-plugin-registry-2.0.4.jar > urls[13] = file:/Users/tgerdin/maven/lib/maven-profile-2.0.4.jar > urls[14] = file:/Users/tgerdin/maven/lib/maven-project-2.0.4.jar > urls[15] = file:/Users/tgerdin/maven/lib/maven-reporting-api-2.0.4.jar > urls[16] = file:/Users/tgerdin/maven/lib/maven-repository- > metadata-2.0.4.jar > urls[17] = file:/Users/tgerdin/maven/lib/maven-settings-2.0.4.jar > urls[18] = file:/Users/tgerdin/maven/lib/plexus-interactivity-api-1.0- > alpha-4.jar > urls[19] = file:/Users/tgerdin/maven/lib/wagon-file-1.0-alpha-7.jar > urls[20] = file:/Users/tgerdin/maven/lib/wagon-http-lightweight-1.0- > alpha-6.jar > urls[21] = file:/Users/tgerdin/maven/lib/wagon-provider-api-1.0- > alpha-6.jar > urls[22] = file:/Users/tgerdin/maven/lib/wagon-ssh-1.0-alpha-7.jar > urls[23] = file:/Users/tgerdin/maven/lib/wagon-ssh-external-1.0- > alpha-6.jar > Number of imports: 0 > > this realm = plexus.core > urls[0] = file:/Users/tgerdin/maven/core/plexus-container-default-1.0- > alpha-9.jar > urls[1] = file:/Users/tgerdin/maven/core/plexus-utils-1.1.jar > Number of imports: 0 > ----------------------------------------------------- > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Internal error in the plugin manager executing goal > 'iodp.usio:maven-scala-plugin:1.0:compile': Unable to find the mojo > 'iodp.usio:maven-scala-plugin:1.0:compile' in the plugin > 'iodp.usio:maven-scala-plugin' > iodp/usio/ScalaCompileMojo (Unsupported major.minor version 49.0) > > ---- snip > > Sorry for this long mail but I figured some diagnostic information > would prove useful. As mentioned in the subject, I'm on revision 16 > from the SVN repositiory. > > Anyways, Sails looks interesting, I hope we can figure this out so I > can play around with it. > > > Regards, > > Tobias > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Scalawithsails-users mailing list > Sca...@li... > https://lists.sourceforge.net/lists/listinfo/scalawithsails-users > -- Blog: http://blog.lostlake.org |
From: Tobias G. <tob...@gm...> - 2006-12-28 23:14:54
|
Hi there, Thought I'd try out Sails but I ran into some initial problems... I admit I'm not all that familiar with Maven but following the instructions in main/readme.txt, I had problems with "mvn install". The first time I ran it it complained about scala-compiler, scala- library and scala-actors. I'm on Scala 2.3.1 on Mac OS X and believe the files Maven was looking for were already present in the sbaz/lib directory (/usr/local/share/scala/lib on a UNIX system), that is scala-(compiler|actors|library).jar files. As indicated by Maven I then pointed Maven to them manually. However, "mvn jetty:run" from the scalawithsails-example dir complains it can't find with scalawithsails-core, or more precisely: Downloading: http://millstone.iodp.tamu.edu/maven2/com/scalawithsails/ scalawithsails-core/0.0.4/scalawithsails-core-0.0.4.jar [WARNING] Unable to get resource from repository maven2.iodp.usio (http://millstone.iodp.tamu.edu/maven2) Downloading: http://repo1.maven.org/maven2/com/scalawithsails/ scalawithsails-core/0.0.4/scalawithsails-core-0.0.4.jar [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) com.scalawithsails:scalawithsails-core:jar:0.0.4 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.scalawithsails - DartifactId=scalawithsails-core \ -Dversion=0.0.4 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) com.scalawithsails:scalawithsails-example:war:0.0.4 2) com.scalawithsails:scalawithsails-core:jar:0.0.4 ---------- 1 required artifact is missing. for artifact: com.scalawithsails:scalawithsails-example:war:0.0.4 from the specified remote repositories: central (http://repo1.maven.org/maven2), maven2.iodp.usio (http://millstone.iodp.tamu.edu/maven2) ------ snip For kicks I tried to do "mvn install" from the main directory again, and then mvn starts to complain about the following: ----------------------------------------------------- this realm = app0.child-container[iodp.usio:maven-scala-plugin] urls[0] = file:/Users/tgerdin/.m2/repository/iodp/usio/maven-scala- plugin/1.0/maven-scala-plugin-1.0.jar Number of imports: 0 this realm = plexus.core.maven urls[0] = file:/Users/tgerdin/maven/lib/commons-cli-1.0.jar urls[1] = file:/Users/tgerdin/maven/lib/doxia-sink-api-1.0-alpha-7.jar urls[2] = file:/Users/tgerdin/maven/lib/jsch-0.1.24.jar urls[3] = file:/Users/tgerdin/maven/lib/maven-artifact-2.0.4.jar urls[4] = file:/Users/tgerdin/maven/lib/maven-artifact-manager-2.0.4.jar urls[5] = file:/Users/tgerdin/maven/lib/maven-core-2.0.4.jar urls[6] = file:/Users/tgerdin/maven/lib/maven-error- diagnostics-2.0.4.jar urls[7] = file:/Users/tgerdin/maven/lib/maven-model-2.0.4.jar urls[8] = file:/Users/tgerdin/maven/lib/maven-monitor-2.0.4.jar urls[9] = file:/Users/tgerdin/maven/lib/maven-plugin-api-2.0.4.jar urls[10] = file:/Users/tgerdin/maven/lib/maven-plugin- descriptor-2.0.4.jar urls[11] = file:/Users/tgerdin/maven/lib/maven-plugin-parameter- documenter-2.0.4.jar urls[12] = file:/Users/tgerdin/maven/lib/maven-plugin-registry-2.0.4.jar urls[13] = file:/Users/tgerdin/maven/lib/maven-profile-2.0.4.jar urls[14] = file:/Users/tgerdin/maven/lib/maven-project-2.0.4.jar urls[15] = file:/Users/tgerdin/maven/lib/maven-reporting-api-2.0.4.jar urls[16] = file:/Users/tgerdin/maven/lib/maven-repository- metadata-2.0.4.jar urls[17] = file:/Users/tgerdin/maven/lib/maven-settings-2.0.4.jar urls[18] = file:/Users/tgerdin/maven/lib/plexus-interactivity-api-1.0- alpha-4.jar urls[19] = file:/Users/tgerdin/maven/lib/wagon-file-1.0-alpha-7.jar urls[20] = file:/Users/tgerdin/maven/lib/wagon-http-lightweight-1.0- alpha-6.jar urls[21] = file:/Users/tgerdin/maven/lib/wagon-provider-api-1.0- alpha-6.jar urls[22] = file:/Users/tgerdin/maven/lib/wagon-ssh-1.0-alpha-7.jar urls[23] = file:/Users/tgerdin/maven/lib/wagon-ssh-external-1.0- alpha-6.jar Number of imports: 0 this realm = plexus.core urls[0] = file:/Users/tgerdin/maven/core/plexus-container-default-1.0- alpha-9.jar urls[1] = file:/Users/tgerdin/maven/core/plexus-utils-1.1.jar Number of imports: 0 ----------------------------------------------------- [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Internal error in the plugin manager executing goal 'iodp.usio:maven-scala-plugin:1.0:compile': Unable to find the mojo 'iodp.usio:maven-scala-plugin:1.0:compile' in the plugin 'iodp.usio:maven-scala-plugin' iodp/usio/ScalaCompileMojo (Unsupported major.minor version 49.0) ---- snip Sorry for this long mail but I figured some diagnostic information would prove useful. As mentioned in the subject, I'm on revision 16 from the SVN repositiory. Anyways, Sails looks interesting, I hope we can figure this out so I can play around with it. Regards, Tobias |
From: David P. <dp...@at...> - 2006-12-12 19:46:59
|
Folks, I've put version 0.0.2 of Scala with Sails up in the SourceForge SVN repository. The latest version has the following features/bug fixes: * Compiles correctly with Scala 2.3.1 * Migration to using Option/Some/None instead of 'null'. Thanks to Burak for helping me understand the Option/Some/None paradigm * Support for serialized primary keys * Support for complete CRUD operations (Create, Read, Update, Delete) on mapped DB objects * A complete CRUD example (you can create, update, and delete example Fish) * I've validated the code against MySQL and PostgreSQL I've also created two mailing lists: sca...@li... -- This mailing list is for SwS users who have questions about developing apps using SwS. I'm not expecting much traffic on this list early on... :-) sca...@li... -- This mailing list is for SwS developers or folks who have ideas that they want to see implemented in SwS. The SwS home page is available at http://scalawithsails.com and there's link to a live example as well as the SourceForge project. Thanks to Burak, Dave Webb, and Philipp Schmidt for ideas, suggestions, and code! We're closer to building a wiki with SwS. Thanks, David -- Blog: http://blog.lostlake.org |