[Lift] Re: ajax-loader not showing?

2009-10-31 Thread Jeppe Nejsum Madsen

Timothy Perrett timo...@getintheloop.eu writes:

 Jeppe, did you get any further with this?

Nope. Don't really know how it's supposed to work, so haven't filed a
ticket (yet :-)

I took a cursory look at the javascript generated by Lift for ajax
handling and to me it looks like the functionality to show the image is
never invoked in the normal execution flowbut alas, this could be
intentional :.)

/Jeppe

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: LiftTicket and AJAX

2009-10-31 Thread Heiko Seeberger
Looks good!

2009/10/31 Derek Chen-Becker dchenbec...@gmail.com

 I just committed some code for AJAX-editable fields that I think might be
 useful as a part of LiftWeb. Basically, if you've seen how ReviewBoard
 handles field editing, this is the same thing. It's a trait that can be
 mixed into any MappedField and as soon as M7 is release and I can merge the
 new ajaxForm postSubmit code into master, I'll have a demo that will work
 out of the box. If you're interested, take a look at it in GitHub:


 http://github.com/dchenbecker/LiftTicket/blob/master/src/main/scala/org/liftticket/liftticket/model/AjaxEditableField.scala

 Constructive criticism would be appreciated.

 Derek



 



-- 
Heiko Seeberger

My job: weiglewilczek.com
My blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: scalamodules.org
Lift, the simply functional web framework: liftweb.net

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Problem with BlazeDS and LiftFilter 1.0+

2009-10-31 Thread oshyshko

Looks like net.liftweb.http.LiftFilter after version 1.0.+ breaks
BlazeDS servlet.

Version 0.9. of net.liftweb.http.LiftFilter works fine.
I want to switch to a newer version of Liftweb, but I can't.

Any ideas how to make LiftFilter 1.0.+ to work with BlazeDS servlet?


More info:
I used Scala 2.7.1 and Liftweb 0.9 with BlazeDS (works fine).

BlazeDS is simply a rpc-servlet that maps to /messagebroker/* path
and exposes your classes as web services.


servlet
servlet-nameMessageBrokerServlet/servlet-name
servlet-classflex.messaging.MessageBrokerServlet/servlet-
class
/servlet

servlet-mapping
servlet-nameMessageBrokerServlet/servlet-name
url-pattern/messagebroker/*/url-pattern
/servlet-mapping



These web-services are simple Scala classes like this:

class UserService {
  def list(): Array[User] = User.findAll().toArray
}

// User is a regular Lifweb Remapper class:
class User extends KeyedMapper[Long, User] { ... }


This servlet is wrapped by net.liftweb.http.LiftFilter.
If not wrapped, all DB stuff inside UserService wouldn't work.

   filter
filter-nameLiftFilter/filter-name
filter-classnet.liftweb.http.LiftFilter/filter-class
/filter

filter-mapping
filter-nameLiftFilter/filter-name
url-pattern/messagebroker/*/url-pattern
/filter-mapping


Now, If i change my POMs from:
scala.version2.7.1/scala.version
liftweb.version0.9/liftweb.version

to

scala.version2.7.4/scala.version
liftweb.version1.0/liftweb.version

!-- or any 1.0+ :
liftweb.version1.1-M5/liftweb.version
liftweb.version1.0.2/liftweb.version
--

Then its all broken and any access to /messagebroker/* returns:

HTTP/1.1 404 Not Found
Content-Type: text/html
Content-Length: 257
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=1dj9cjb4kegk7;Path=/
X-Lift-Version: 0.11-SNAPSHOT
Server: Jetty(6.1.21)

?xml version=1.0 encoding=UTF-8?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
htmlbodyThe Requested URL /messagebroker/amf was not found on this
server/body/html
  

And this makes me bound to Liftweb 0.9.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Add getOrElseUpdate to SoftReferenceCache

2009-10-31 Thread Timothy Perrett

Guys,

What do people think about adding a getOrElseUpdate method to
SoftReferenceCache? Marius, you wrote this code initially, what do you
think?

I could do with this method in some production code im writing :-)

Cheers, Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Problem with BlazeDS and LiftFilter 1.0+

2009-10-31 Thread Timothy Perrett

Have you set this in Boot.scala:

LiftRules.passNotFoundToChain = true

Without this Lift wont pass requests that it cant handle to other
servlets. I would recommend upgrading to 1.1-M6 and Scala 2.7.5 - the
API has changed *a lot* since 0.9

Cheers, Tim


On Oct 31, 9:24 am, oshyshko oshys...@gmail.com wrote:
 Looks like net.liftweb.http.LiftFilter after version 1.0.+ breaks
 BlazeDS servlet.

 Version 0.9. of net.liftweb.http.LiftFilter works fine.
 I want to switch to a newer version of Liftweb, but I can't.

 Any ideas how to make LiftFilter 1.0.+ to work with BlazeDS servlet?

 More info:
 I used Scala 2.7.1 and Liftweb 0.9 with BlazeDS (works fine).

 BlazeDS is simply a rpc-servlet that maps to /messagebroker/* path
 and exposes your classes as web services.

 
     servlet
         servlet-nameMessageBrokerServlet/servlet-name
         servlet-classflex.messaging.MessageBrokerServlet/servlet-
 class
     /servlet

     servlet-mapping
         servlet-nameMessageBrokerServlet/servlet-name
         url-pattern/messagebroker/*/url-pattern
     /servlet-mapping
 

 These web-services are simple Scala classes like this:
 
 class UserService {
   def list(): Array[User] = User.findAll().toArray

 }

 // User is a regular Lifweb Remapper class:
 class User extends KeyedMapper[Long, User] { ... }
 

 This servlet is wrapped by net.liftweb.http.LiftFilter.
 If not wrapped, all DB stuff inside UserService wouldn't work.
 
    filter
         filter-nameLiftFilter/filter-name
         filter-classnet.liftweb.http.LiftFilter/filter-class
     /filter

     filter-mapping
         filter-nameLiftFilter/filter-name
         url-pattern/messagebroker/*/url-pattern
     /filter-mapping
 

 Now, If i change my POMs from:
 scala.version2.7.1/scala.version
 liftweb.version0.9/liftweb.version

 to

 scala.version2.7.4/scala.version
 liftweb.version1.0/liftweb.version

 !-- or any 1.0+ :
     liftweb.version1.1-M5/liftweb.version
     liftweb.version1.0.2/liftweb.version
 --

 Then its all broken and any access to /messagebroker/* returns:
 
 HTTP/1.1 404 Not Found
 Content-Type: text/html
 Content-Length: 257
 Expires: Thu, 01 Jan 1970 00:00:00 GMT
 Set-Cookie: JSESSIONID=1dj9cjb4kegk7;Path=/
 X-Lift-Version: 0.11-SNAPSHOT
 Server: Jetty(6.1.21)

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 htmlbodyThe Requested URL /messagebroker/amf was not found on this
 server/body/html
   

 And this makes me bound to Liftweb 0.9.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: 1.1-M6 Mapped fields with dbColumnName always displaying defaultValue

2009-10-31 Thread Troy Noble
After the fix, I'm having a different problem now with latest 1.1-SNAPSHOT
(10/30 1:54:48PM build) with tables in the DB that have uppercase anywhere
in either the dbTableName or dbColumnName name... the Mapper is creating SQL
that throws exceptions due to unknown column in MySQL (which is case
sensitive on naming).

David, I sent you an offline e-mail with all the details.  I can open
another ticket if you want.  I am willing to keep testing with MySQL if you
want as we work through these issues.

I wish H2 or one of the other embedded databases supported case sensitive
table  column names so I could give you a tidy offline test case.  H2 does
not appear to support case sensitive names unless you surround them with
double quotes such as TABLE_NAME.

I know I'm not supposed to use MySQL per earlier postings on this list, but
I have about 15 databases already existing in MySQL and we wanted to start
using Lift with some of them.  It'll take me quite some time to re-target
Postgres or other DBMS.

Thanks again for all your help, Troy

On Fri, Oct 30, 2009 at 4:13 PM, David Pollak feeder.of.the.be...@gmail.com
 wrote:



 On Fri, Oct 30, 2009 at 3:06 PM, Troy Noble econop...@gmail.com wrote:

 Thanks. I'll give it try.  Dumb newbie question though... how do I access
 the update?  Git + build from github, or can I just grab the latest
 1.1-SNAPSHOT?


 Check http://hudson.scala-tools.org/job/Lift/

 You can see if the latest has built.

 Then do: mvn -U clean install jetty:run

 The -U forces Maven to check the repositories for the latest.



 Thanks again, Troy

 On Fri, Oct 30, 2009 at 3:01 PM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:

 Turns out this was the problem.  Some RDBMSs are case insensitive on
 table/column names... others are not.

 I committed a fix (now on master thanks to fast review board turn-around)
 that causes all table and column names to lower case for all SQL
 transactions.

 2009/10/30 Marcin Mielżyński l...@gazeta.pl


 I have seen EXACTLY same behavior when dbColumnName returned _upcased_
 names

 lopex





 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Surf the harmonics








 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Surf the harmonics

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Error with the SHtml.select method ?

2009-10-31 Thread David Pollak
A function that returns Unit should be legal to pass as a parameter that's a
function that returns Any.

I'm going to be very blunt here: you've asked the group for a lot of
support.  This is cool.  This is what we're here for.  However, the support
is not costless.  Usually, folks pay back the newbie support obligations by
helping newbies once they have some good grounding in Lift.  In this case,
however, I am asking something different.  I would like to see how the code
fails in a complete example that I can try to compile.  This is a payment
for support.

Why do I want to see this?  More and more folks from different computer
language backgrounds are coming to Lift.  When I see common failure patterns
(or something that could be a common failure pattern), I like to do whatever
subtle things I can in Lift to make the failure patterns less likely for
other people.  I suspect that what you've stumbled on could be a non-trivial
stumbling block for others and I'd like to see your code.

So, please, spend the 5 minutes to create a new Lift project, take the part
of your original code that was causing the problem, paste it into the new
project, zip/tar the project and send it to me privately.

Thanks,

David

On Fri, Oct 30, 2009 at 9:51 PM, Neil.Lv anim...@gmail.com wrote:


  Just as you say that the method return Unit, not Any.

  :)

 Cheers,
  Neil

 On Oct 31, 2:24 am, David Pollak feeder.of.the.be...@gmail.com
 wrote:
  Please send a complete example of how it failed.
 
 
 
  On Fri, Oct 30, 2009 at 11:22 AM, Neil.Lv anim...@gmail.com wrote:
 
Thank you very much!
 
Both of them works!
 
Maybe i forget the =
   ###
 def handleBook(id: String) {
   book.type_id(id.toLong)
   id
 }
   ###
def handleBook(id: String)  = book.type_id(id.toLong)
   ###
 
   Cheers,
Neil
 
   On Oct 31, 1:47 am, Naftoli Gugenheim naftoli...@gmail.com wrote:
What is book.type_id?
And are you sure there's no '=' before '{'?
 
-
 
David Pollakfeeder.of.the.be...@gmail.com wrote:
On Fri, Oct 30, 2009 at 10:28 AM, Neil.Lv anim...@gmail.com wrote:
 
  Thanks David, it works now, it return the param that passed into
 the
 handleBook  method.
 
I understand that it works, but the original should have worked as
 well.
I'd really like to get a sample of the failure so I can figure out if
   it's a
Lift issue or some other issue (e.g., a Scala compiler issue).
 
 ###  it works!
  def handleBook(id: String) {
 book.type_id(id.toLong)
  id
   }
 ###
 
 Cheers,
  Neil
 
 On Oct 30, 11:34 pm, David Pollak feeder.of.the.be...@gmail.com
 wrote:
  Please post a complete example (a whole project that can be
   compiled).
 
  Your handleBook method is returning Unit, so anything at the end
 of
   the
  method (other than a var/val declaration) should be okay.
 
  On Fri, Oct 30, 2009 at 8:28 AM, Neil.Lv anim...@gmail.com
 wrote:
 
   Yes, i have tries it.
 
   ###  it works !
 def handleBook(id: String) {
   book.type_id(id.toLong)
Log.infoF _
 }
   ###
 
   ###  it doesn't work !
 def handleBook(id: String) {
   book.type_id(id.toLong) // Log.infoF _
 }
   ###
 
 I'm confused with this !
 
:)
 
   Cheers,
 Neil
 
   On Oct 30, 11:17 pm, bob rbpas...@gmail.com wrote:
interesting! have you tried /* Log.infoF _ */ ?
 
On Oct 30, 10:31 am, Neil.Lv anim...@gmail.com wrote:
 
 Hi all,
 
   There is a question that about the SHtml.select method.
 
 ###  This code will be error ?
   def handleBook(id: String) {
  book.type_id(id.toLong)
   //Log.infoF _
}
 
bind(book, xhtml,
  type - select(Book.getBooks, Empty, handleBook _)
   ...
 )
 ###
 
   If i call the Log.infoF _ in the end of the hadleBook
 method,
   and
 it
 will be work correctly.
 ###
   def handleBook(id: String) {
  book.type_id(id.toLong)
   Log.infoF _
}
 ###
 
   I don't know why comment the last statement the app will
 be
 error,
 and the error message will
 be like this, and somethings the erorr message will not
 clear,
   and
 can't find where the error occurs.
--- Error message:
   ((scala.xml.Node) = Boolean)scala.xml.NodeSeq (and)
 (Int)
 scala.xml.Node not be
   applied to Long.
Or
   [ERROR] BUILD ERROR
 [INFO]
 
  
 
 [INFO] wrap: org.apache.commons.exec.ExecuteException:
 Process
 exited
 with an er
 ror: -2147483648(Exit value: -2147483648)
 
   Thanks for any 

[Lift] JPADemo 1.1-SNAPSHOT: id with auto-increment (MySQL or H2)

2009-10-31 Thread Troy Noble

I'm not even sure this is a Lift issue, could be Hibernate or Scala...
but here goes...

I get one test failure in TestJPAWeb.scala when I use JPA with MySQL
(also confirmed with H2) with auto-increment id column.

@Entity
class Author {
  @Id
  @GeneratedValue(){val strategy = GenerationType.AUTO}
  var id : Long = _
  ...
}

Note that I also tried adding   @Column{val nullable = false, val
insertable = false, val updatable = false}  per another JPA+Scala page
I read, just to see if it makes a difference.  It didn't.  I also
tried GenerationType.IDENTITY.  No difference.

If I turn on showSql it appears that auto-increment columns are
getting included in the SQL statement for some reason such as:

   insert into author (name, id) values (?, ?)

And I get an error indicating no value is set for column 2.  The
Hibernate output using H2 database appears in spa/target/surefire-
reports/com.foo.jpaweb.model.TestJPAWeb-output.txt is as follows:

Hibernate: insert into Author (name, id) values (?, ?)
Oct 31, 2009 7:05:48 AM org.hibernate.util.JDBCExceptionReporter
logExceptions
WARNING: SQL Error: 90012, SQLState: 90012
Oct 31, 2009 7:05:48 AM org.hibernate.util.JDBCExceptionReporter
logExceptions
SEVERE: Parameter #2 is not set; SQL statement:
insert into Author (name, id) values (?, ?) [90012-121]

A similar problem was reported in Hibernate 3.2.4 but was fixed in
3.2.6... so I'm assuming version 3.3.1GA that Liftweb presently uses
should not be the source of this problem?  That might not be a good
assumption.  I was going to try to do a stand-alone Scala + JPA test
case apart from Lift, and then try with Java + JPA.

But before I go too far down that path, I wanted to make sure I'm not
doing something wrong or that it's not a lift issue.

This is very easy to reproduce if you start by downloading a clean
JPADemo as per the liftweb + JPA wiki page (or the liftbook example)
and change the top level pom.xml to include:

dependency
groupIdcom.h2database/groupId
artifactIdh2/artifactId
version1.2.121/version
/dependency

or for MySQL:

dependency
  groupIdmysql/groupId
  artifactIdmysql-connector-java/artifactId
  version5.0.8/version
/dependency

And then change the following entries in the spa/src/main/resources/
META-INF/persistence.xml to target an h2 database instead of the
default derby:

 property name=hibernate.dialect
value=org.hibernate.dialect.H2Dialect/
 property name=hibernate.connection.driver_class
value=org.h2.Driver/
 property name=hibernate.connection.url
value=jdbc:h2:testDB/

or if you want to use your local MySQL 5.0.x server instead (assumes
local DB named JPADemo exists, and is writable by user named lifdev
with password lift1234 (note the amp; is very important between the
username  the password=):

 property name=hibernate.dialect
value=org.hibernate.dialect.MySQL5InnoDBDialect/
 property name=hibernate.connection.driver_class
value=com.mysql.jdbc.Driver/
 property name=hibernate.connection.url value=jdbc:mysql://
localhost/JPADemo?user=liftdevamp;password=lift1234/

Then cd spa and type mvn clean install -Dscala.version=2.7.7

For what it's worth, if I open the H2 scheme with Squirrel SQL it all
looks happy from the schema creation side and has auto-increment in
the 'id' column.  I can insert rows manually just fine.  Similarly for
MySQL even for the newly-created tables 'author' and 'book'.

Thanks, Troy

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Add getOrElseUpdate to SoftReferenceCache

2009-10-31 Thread David Pollak
Sounds good to me

On Sat, Oct 31, 2009 at 3:54 AM, Timothy Perrett timo...@getintheloop.euwrote:


 Guys,

 What do people think about adding a getOrElseUpdate method to
 SoftReferenceCache? Marius, you wrote this code initially, what do you
 think?

 I could do with this method in some production code im writing :-)

 Cheers, Tim
 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: LiftTicket and AJAX

2009-10-31 Thread David Pollak
Very cool!



On Fri, Oct 30, 2009 at 4:44 PM, Derek Chen-Becker dchenbec...@gmail.comwrote:

 I just committed some code for AJAX-editable fields that I think might be
 useful as a part of LiftWeb. Basically, if you've seen how ReviewBoard
 handles field editing, this is the same thing. It's a trait that can be
 mixed into any MappedField and as soon as M7 is release and I can merge the
 new ajaxForm postSubmit code into master, I'll have a demo that will work
 out of the box. If you're interested, take a look at it in GitHub:


 http://github.com/dchenbecker/LiftTicket/blob/master/src/main/scala/org/liftticket/liftticket/model/AjaxEditableField.scala

 Constructive criticism would be appreciated.

 Derek



 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: 1.1-M6 Mapped fields with dbColumnName always displaying defaultValue

2009-10-31 Thread David Pollak
I'm going to revert the fix.

I'm going to add tests for mixed-case column and table names.  If you care
to donate some of these tests, that'd be great.

Please open a ticket.

On Sat, Oct 31, 2009 at 5:35 AM, Troy Noble econop...@gmail.com wrote:

 After the fix, I'm having a different problem now with latest 1.1-SNAPSHOT
 (10/30 1:54:48PM build) with tables in the DB that have uppercase anywhere
 in either the dbTableName or dbColumnName name... the Mapper is creating SQL
 that throws exceptions due to unknown column in MySQL (which is case
 sensitive on naming).

 David, I sent you an offline e-mail with all the details.  I can open
 another ticket if you want.  I am willing to keep testing with MySQL if you
 want as we work through these issues.

 I wish H2 or one of the other embedded databases supported case sensitive
 table  column names so I could give you a tidy offline test case.  H2 does
 not appear to support case sensitive names unless you surround them with
 double quotes such as TABLE_NAME.

 I know I'm not supposed to use MySQL per earlier postings on this list, but
 I have about 15 databases already existing in MySQL and we wanted to start
 using Lift with some of them.  It'll take me quite some time to re-target
 Postgres or other DBMS.

 Thanks again for all your help, Troy


 On Fri, Oct 30, 2009 at 4:13 PM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:



 On Fri, Oct 30, 2009 at 3:06 PM, Troy Noble econop...@gmail.com wrote:

 Thanks. I'll give it try.  Dumb newbie question though... how do I access
 the update?  Git + build from github, or can I just grab the latest
 1.1-SNAPSHOT?


 Check http://hudson.scala-tools.org/job/Lift/

 You can see if the latest has built.

 Then do: mvn -U clean install jetty:run

 The -U forces Maven to check the repositories for the latest.



 Thanks again, Troy

 On Fri, Oct 30, 2009 at 3:01 PM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:

 Turns out this was the problem.  Some RDBMSs are case insensitive on
 table/column names... others are not.

 I committed a fix (now on master thanks to fast review board
 turn-around) that causes all table and column names to lower case for all
 SQL transactions.

 2009/10/30 Marcin Mielżyński l...@gazeta.pl


 I have seen EXACTLY same behavior when dbColumnName returned _upcased_
 names

 lopex





 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Surf the harmonics








 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Surf the harmonics




 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: 1.1-M6 Mapped fields with dbColumnName always displaying defaultValue

2009-10-31 Thread Troy Noble
Thanks for your support... and I'm very sorry to be the instigator of the
breakage.  I feel really bad that everything broke for all the MySQL and SQL
server users (I gotta believe I'm not the only freak still using MySQL or
SQL Server ;-)

The only way to INTEGRATION test right now would be to have a JDBC driver
that requires case sensitive names... which right now is MySQL in my world.
Most of the other RDBMSs don't have this feature. So I don't know if I
could contribute any automated tests that would work just within the context
of Liftweb (or with optional embedded database) without requiring a MySQL
server as well.  Unless we were to add a test-only attribute in the Mapper
classes that turns on quoting of column  field name and uses an embedded H2
in-memory database.  Yuck!

I would be willing to contribute some UNIT tests if I can figure out where
to do it.  Is there some extractor/observer style mechanism in the Mapper
classes that would allow me to intercept the SQL statements that can be run
in the absence of the DBMS driver?

Thanks again, Troy

On Sat, Oct 31, 2009 at 8:09 AM, David Pollak feeder.of.the.be...@gmail.com
 wrote:

 I'm going to revert the fix.

 I'm going to add tests for mixed-case column and table names.  If you care
 to donate some of these tests, that'd be great.

 Please open a ticket.


 On Sat, Oct 31, 2009 at 5:35 AM, Troy Noble econop...@gmail.com wrote:

 After the fix, I'm having a different problem now with latest 1.1-SNAPSHOT
 (10/30 1:54:48PM build) with tables in the DB that have uppercase anywhere
 in either the dbTableName or dbColumnName name... the Mapper is creating SQL
 that throws exceptions due to unknown column in MySQL (which is case
 sensitive on naming).

 David, I sent you an offline e-mail with all the details.  I can open
 another ticket if you want.  I am willing to keep testing with MySQL if you
 want as we work through these issues.

 I wish H2 or one of the other embedded databases supported case sensitive
 table  column names so I could give you a tidy offline test case.  H2 does
 not appear to support case sensitive names unless you surround them with
 double quotes such as TABLE_NAME.

 I know I'm not supposed to use MySQL per earlier postings on this list,
 but I have about 15 databases already existing in MySQL and we wanted to
 start using Lift with some of them.  It'll take me quite some time to
 re-target Postgres or other DBMS.

 Thanks again for all your help, Troy


 On Fri, Oct 30, 2009 at 4:13 PM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:



 On Fri, Oct 30, 2009 at 3:06 PM, Troy Noble econop...@gmail.com wrote:

 Thanks. I'll give it try.  Dumb newbie question though... how do I
 access the update?  Git + build from github, or can I just grab the latest
 1.1-SNAPSHOT?


 Check http://hudson.scala-tools.org/job/Lift/

 You can see if the latest has built.

 Then do: mvn -U clean install jetty:run

 The -U forces Maven to check the repositories for the latest.



 Thanks again, Troy

 On Fri, Oct 30, 2009 at 3:01 PM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:

 Turns out this was the problem.  Some RDBMSs are case insensitive on
 table/column names... others are not.

 I committed a fix (now on master thanks to fast review board
 turn-around) that causes all table and column names to lower case for all
 SQL transactions.

 2009/10/30 Marcin Mielżyński l...@gazeta.pl


 I have seen EXACTLY same behavior when dbColumnName returned _upcased_
 names

 lopex





 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Surf the harmonics








 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Surf the harmonics








 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Surf the harmonics

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: ajax-loader not showing?

2009-10-31 Thread David Pollak
It's a bug.  Please file a ticket.

On Sat, Oct 31, 2009 at 1:56 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote:


 Timothy Perrett timo...@getintheloop.eu writes:

  Jeppe, did you get any further with this?

 Nope. Don't really know how it's supposed to work, so haven't filed a
 ticket (yet :-)

 I took a cursory look at the javascript generated by Lift for ajax
 handling and to me it looks like the functionality to show the image is
 never invoked in the normal execution flowbut alas, this could be
 intentional :.)

 /Jeppe

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: ajax-loader not showing?

2009-10-31 Thread Jeppe Nejsum Madsen

David Pollak feeder.of.the.be...@gmail.com writes:

 It's a bug.  Please file a ticket.

Done. http://github.com/dpp/liftweb/issues/#issue/152

/Jeppe

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: 1.1-M6 Mapped fields with dbColumnName always displaying defaultValue

2009-10-31 Thread Troy Noble
David,

I opened ticket # 151.  And I have some test cases written for uppercase
dbTableName and dbColumnName.  They are very simple-minded re-use of the Dog
mapped class, but they do demostrate the same sort of failure behavior I was
seeing in 1.1-SNAPSHOT, this time against the pre-145-fix source tree.

I'll send you the updated
lift-persistence/lift-mapper/src/test/scala/net/liftweb/mapper/MapperSpecs.scala
file with the new tests (fails 32 tests with just Derby, H2, and H2 in
Memory... fails an additional 10 tests if I add MySQL provider that matches
your test setup), and the output I'm seeing from the surefire-reports.

Thanks again for the help, Troy

On Sat, Oct 31, 2009 at 8:56 AM, Troy Noble econop...@gmail.com wrote:

 Thanks for your support... and I'm very sorry to be the instigator of the
 breakage.  I feel really bad that everything broke for all the MySQL and SQL
 server users (I gotta believe I'm not the only freak still using MySQL or
 SQL Server ;-)

 The only way to INTEGRATION test right now would be to have a JDBC driver
 that requires case sensitive names... which right now is MySQL in my world.
 Most of the other RDBMSs don't have this feature. So I don't know if I
 could contribute any automated tests that would work just within the context
 of Liftweb (or with optional embedded database) without requiring a MySQL
 server as well.  Unless we were to add a test-only attribute in the Mapper
 classes that turns on quoting of column  field name and uses an embedded H2
 in-memory database.  Yuck!

 I would be willing to contribute some UNIT tests if I can figure out where
 to do it.  Is there some extractor/observer style mechanism in the Mapper
 classes that would allow me to intercept the SQL statements that can be run
 in the absence of the DBMS driver?

 Thanks again, Troy


 On Sat, Oct 31, 2009 at 8:09 AM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:

 I'm going to revert the fix.

 I'm going to add tests for mixed-case column and table names.  If you care
 to donate some of these tests, that'd be great.

 Please open a ticket.


 On Sat, Oct 31, 2009 at 5:35 AM, Troy Noble econop...@gmail.com wrote:

 After the fix, I'm having a different problem now with latest
 1.1-SNAPSHOT (10/30 1:54:48PM build) with tables in the DB that have
 uppercase anywhere in either the dbTableName or dbColumnName name... the
 Mapper is creating SQL that throws exceptions due to unknown column in MySQL
 (which is case sensitive on naming).

 David, I sent you an offline e-mail with all the details.  I can open
 another ticket if you want.  I am willing to keep testing with MySQL if you
 want as we work through these issues.

 I wish H2 or one of the other embedded databases supported case sensitive
 table  column names so I could give you a tidy offline test case.  H2 does
 not appear to support case sensitive names unless you surround them with
 double quotes such as TABLE_NAME.

 I know I'm not supposed to use MySQL per earlier postings on this list,
 but I have about 15 databases already existing in MySQL and we wanted to
 start using Lift with some of them.  It'll take me quite some time to
 re-target Postgres or other DBMS.

 Thanks again for all your help, Troy


 On Fri, Oct 30, 2009 at 4:13 PM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:



 On Fri, Oct 30, 2009 at 3:06 PM, Troy Noble econop...@gmail.comwrote:

 Thanks. I'll give it try.  Dumb newbie question though... how do I
 access the update?  Git + build from github, or can I just grab the latest
 1.1-SNAPSHOT?


 Check http://hudson.scala-tools.org/job/Lift/

 You can see if the latest has built.

 Then do: mvn -U clean install jetty:run

 The -U forces Maven to check the repositories for the latest.



 Thanks again, Troy

 On Fri, Oct 30, 2009 at 3:01 PM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:

 Turns out this was the problem.  Some RDBMSs are case insensitive on
 table/column names... others are not.

 I committed a fix (now on master thanks to fast review board
 turn-around) that causes all table and column names to lower case for all
 SQL transactions.

 2009/10/30 Marcin Mielżyński l...@gazeta.pl


 I have seen EXACTLY same behavior when dbColumnName returned
 _upcased_ names

 lopex





 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Surf the harmonics








 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Surf the harmonics








 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Surf the harmonics

 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, 

[Lift] Re: Add getOrElseUpdate to SoftReferenceCache

2009-10-31 Thread Marius

I second Dave. Go for it.

On Oct 31, 4:06 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
 Sounds good to me

 On Sat, Oct 31, 2009 at 3:54 AM, Timothy Perrett 
 timo...@getintheloop.euwrote:



  Guys,

  What do people think about adding a getOrElseUpdate method to
  SoftReferenceCache? Marius, you wrote this code initially, what do you
  think?

  I could do with this method in some production code im writing :-)

  Cheers, Tim

 --
 Lift, the simply functional web frameworkhttp://liftweb.net
 Beginning Scalahttp://www.apress.com/book/view/1430219890
 Follow me:http://twitter.com/dpp
 Surf the harmonics
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: LiftTicket and AJAX

2009-10-31 Thread Derek Chen-Becker
I have at least two different pieces of functionality here. The main
workhorse is the AjaxUtils.editable method that actually generates the
dynamic div. I was thinking that this might be good to put in SHtml (albeit
with a different name). I also have the AjaxEditableField trait which mixes
into a MappedField to provide a specialized asHtml, but I was thinking that
maybe I should provide a trait that you could add to a Mapper that defines a
list of fields that will be AJAXified, so that you can control which ones
are editable via asHtml. I think I also need to add a boolean function
parameter that lets you control whether the field becomes editable or not,
so that you could easily tie it to a Loc.If or some other access control
mechanism. Thoughts?

Derek

On Sat, Oct 31, 2009 at 8:08 AM, David Pollak feeder.of.the.be...@gmail.com
 wrote:

 Very cool!




 On Fri, Oct 30, 2009 at 4:44 PM, Derek Chen-Becker 
 dchenbec...@gmail.comwrote:

 I just committed some code for AJAX-editable fields that I think might be
 useful as a part of LiftWeb. Basically, if you've seen how ReviewBoard
 handles field editing, this is the same thing. It's a trait that can be
 mixed into any MappedField and as soon as M7 is release and I can merge the
 new ajaxForm postSubmit code into master, I'll have a demo that will work
 out of the box. If you're interested, take a look at it in GitHub:


 http://github.com/dchenbecker/LiftTicket/blob/master/src/main/scala/org/liftticket/liftticket/model/AjaxEditableField.scala

 Constructive criticism would be appreciated.

 Derek







 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Surf the harmonics

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-10-31 Thread Naftoli Gugenheim
How does this look? (Note: output from git diff -b, so applying it won't
indent properly)


On Fri, Oct 30, 2009 at 4:20 PM, Derek Chen-Becker dchenbec...@gmail.comwrote:

 Probably not until next week, unfortunately. If you don't mind looking at
 it, the main thing to change is in Mailer.scala, around line 156. There
 should be a check or match to see if info is a List(PlainMailBodyType), and
 if so, skip the Multipart mapping that follows and do a message.setText on
 the contents of the PlainMailBodyType instead.

 Derek


 On Fri, Oct 30, 2009 at 1:29 PM, Naftoli Gugenheim 
 naftoli...@gmail.comwrote:

 I guess you didn't get around to it yet. Any idea when? Thanks.
 http://github.com/dpp/liftweb/issues/#issue/110


 On Thu, Oct 15, 2009 at 3:03 PM, Derek Chen-Becker dchenbec...@gmail.com
  wrote:

 Looking at the code I don't think that it would be hard to do the right
 thing depending on whether someone calls sendMail with a sequence of
 MailBodyTypes or just a single PlainMailBodyType. If someone wants to open
 an issue on it I could make the change.

 Derek


 On Thu, Oct 15, 2009 at 8:45 AM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:

 In the deep dark recesses of my memory, I think we originally did
 text-only messages and there was some complaint about that... sigh.


 On Wed, Oct 14, 2009 at 10:36 PM, Derek Chen-Becker 
 dchenbec...@gmail.com wrote:

 The way that Lift uses the API we don't support sending non-multipart
 messages. I suppose that this could be refactored to support single part
 MIME messages, but I really have trouble believing that a BlackBerry can't
 handle it.

 Derek


 On Mon, Oct 12, 2009 at 9:38 PM, Naftoli Gugenheim 
 naftoli...@gmail.com wrote:


 True, I may have to do that at some point, although I'm not super
 confident I'll find such specs.
 What do you say to Ross's comment? Why is it multipart?

 -
 David Pollakfeeder.of.the.be...@gmail.com wrote:

 On Mon, Oct 12, 2009 at 6:17 PM, Naftoli Gugenheim 
 naftoli...@gmail.comwrote:

 
  Does this help? It's from GMail / Show original
 

 GMail munges things, so I don't know if that's the original message.

 You might want to figure out what the specs are for blackberry to
 convert
 messages and see why this kind of message is not being converted.


 
  Delivered-To: naftoli...@gmail.com
  Received: by 10.86.30.11 with SMTP id d11cs12302fgd;
 Wed, 7 Oct 2009 12:28:57 -0700 (PDT)
  Received: by 10.229.19.149 with SMTP id
 a21mr391667qcb.29.1254943736364;
 Wed, 07 Oct 2009 12:28:56 -0700 (PDT)
  Return-Path: yehu...@lrbcol.org
  Received: from lrbcol (174-143-236-122.static.slicehost.net
 [174.143.236.122])
 by mx.google.com with ESMTP id
  1si71430296yxe.11.2009.10.07.12.28.55;
 Wed, 07 Oct 2009 12:28:56 -0700 (PDT)
  Received-SPF: neutral (google.com: 174.143.236.122 is neither
  permitted nor denied by best guess record for domain of
  yehu...@lrbcol.org) client-ip=174.143.236.122;
  Authentication-Results: mx.google.com; spf=neutral (google.com:
  174.143.236.122 is neither permitted nor denied by best guess record
  for domain of yehu...@lrbcol.org) smtp.mail=yehu...@lrbcol.org
  Received: from lrbcol (localhost [127.0.0.1])
 by lrbcol (Postfix) with ESMTP id CDB51A0055
 for naftoli...@gmail.com; Wed,  7 Oct 2009 15:28:56 -0400
 (EDT)
  From: yehu...@lrbcol.org
  To: naftoli...@gmail.com
  Message-ID: 2107786874.01254943736214.javamail.r...@lrbcol
  Subject: Detail of Transportation #843
  MIME-Version: 1.0
  Content-Type: multipart/alternative;
 boundary==_Part_0_1227069312.1254943735894
  Date: Wed,  7 Oct 2009 15:28:56 -0400 (EDT)
 
  --=_Part_0_1227069312.1254943735894
  Content-Type: text/plain; charset=UTF-8
  Content-Transfer-Encoding: 7bit
 
  naftuli gugenheim; 617 6st
  ; M: 7325342893; From : ; To : 39 hearth ct;
  Request URL: [TODO]
  --=_Part_0_1227069312.1254943735894--
 
 
  On Mon, Oct 12, 2009 at 6:15 PM, David Pollak
  feeder.of.the.be...@gmail.com wrote:
   Please send some test email to an account you can access using
  Thunderbird.
Open the message and look at the message source.  Is it really
 plain
  text?
What do the headers say it is?
  
   On Mon, Oct 12, 2009 at 1:11 PM, Naftoli Gugenheim 
 naftoli...@gmail.com
  
   wrote:
  
   Hi. I'm sending an email using PlainMailBodyType that contains a
 URL.
   Normally when a BlackBerry receives a plain text email it
   automatically hyperlinks URLS and potential phone numbers. For
 some
   reason this email is not being hyperlinked on the BlackBerry. Is
 it
   possible that it's somehow not purely plain text? How would I
 solve
   this? I don't want to send HTML messages because some recipients
 may
   not be able to view it.
   Thanks.
  
  
  
  
  
   --
   Lift, the simply functional web framework http://liftweb.net
   Beginning Scala http://www.apress.com/book/view/1430219890
   Follow me: http://twitter.com/dpp
   Surf 

[Lift] Error mvn install on lift-actor

2009-10-31 Thread Naftoli Gugenheim
What could be wrong?


C:\dev\gitrepo\liftweb\lift-base\lift-actormvn -e install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
WAGON_VERSION: 1.0-beta-2
[INFO]

[INFO] Building Lift Actor
[INFO]task-segment: [install]
[INFO]

[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
C:\dev\gitrepo\liftweb\lift-base\lift-actor\src\main\resources
[INFO] [scala:compile {execution: scala-compile}]
[INFO] Checking for multiple versions of scala
[INFO] includes = [**/*.scala,**/*.java,]
[INFO] excludes = []
[INFO] Compiling 0 source files to
C:\dev\gitrepo\liftweb\lift-base\lift-actor\target\classes
[INFO] Nothing to compile - all classes are up to date
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
C:\dev\gitrepo\liftweb\lift-base\lift-actor\src\test\resources
[INFO] [scala:testCompile {execution: scala-testCompile}]
[INFO] Checking for multiple versions of scala
[INFO] includes = [**/*.scala,**/*.java,]
[INFO] excludes = []
[WARNING] No source files found.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] Surefire report directory:
C:\dev\gitrepo\liftweb\lift-base\lift-actor\target\surefire-reports

---
 T E S T S
---
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar:
C:\dev\gitrepo\liftweb\lift-base\lift-actor\target\lift-actor-1.1-SNAPSHOT.jar
[INFO] [source:jar-no-fork {execution: default}]
[INFO] [bundle:bundle {execution: default-bundle}]
[INFO] [install:install]
[INFO] Installing
C:\dev\gitrepo\liftweb\lift-base\lift-actor\target\lift-actor-1.1-SNAPSHOT.jar
to
C:\Users\Naftoli\.m2\repository\net\liftweb\lift-actor\1.1-SNAPSHOT\lift-actor-1.1-SNAPSHOT.jar
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error installing artifact's metadata: Error installing metadata:
Error updating group repository metadata

only whitespace content allowed before start tag and not \u0 (position:
START_DOCUMENT seen \u0... @1:1)
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error installing
artifact's metadata: Error installing metadata: Error updating group
repository metadata
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
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.MojoExecutionException: Error installing
artifact's metadata: Error installing metadata: Error updating group
repository metadata
at
org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:143)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
... 16 more
Caused by:
org.apache.maven.artifact.installer.ArtifactInstallationException: Error
installing artifact's metadata: Error