[Lift] Re: calling java: AWSCredentials does not have a constructor - anybody recongnize this type of error ?

2009-07-20 Thread David Pollak
On Mon, Jul 20, 2009 at 5:54 PM, kjetilge  wrote:

>
> Oooops, sloppy of me to publish my password. Very embarrassing.
> Moving right along.
> There are two things that I'm not sure what means:
> 1. Setting dependencies
> 2. Goal.
>
> I'm using Maven and I have picked up that GOALS are involved.
> For instance: In Netbeans I can set jetty:run as a goal to execute
> when the project is run. This compiles and start my Lift application
> of course. But I have no idea how to run a goal on a pom.xml.Could you
> provide an example? I probably should read more about Maven I guess.
>
> Could I perhaps add a dependency in the pom file like this:
>
>
>  org.jets3t
>  jets3et
>  0.1.7
>


Looks to me like you've got a very old version of the libraries.  I compiled
your code against version 0.5.0 of the libraries.  Try a newer version and
see if that cures the problem.


>
>
> Will it then also be necessary to add dependencies for commons.codec
> and commons.httpclient and so on ?
>
> I have added all the libraries manually, is that wrong ?
>
>
>
> On Jul 20, 5:59 pm, Timothy Perrett  wrote:
> > I agree, looks fine ­ you don¹t mention if your using maven or whatever,
> but
> > IMO, make sure you¹ve set the dependencies properly and that your running
> > the right goal on your pom.xml
> >
> > Also, you probably don¹t want to post your secret for S3 as people could
> log
> > into your account with it.
> >
> > Cheers, Tim
> >
> > On 20/07/2009 16:52, "David Pollak" 
> wrote:
> >
> >
> >
> >
> >
> > > On Mon, Jul 20, 2009 at 8:04 AM, kjetilge  wrote:
> >
> > >> I'm trying out the jets3t library for handling S3 storage. But when I
> > >> try to make calls to methods in the library I get:
> > >> AWSCredentials does not have a constructor.
> >
> > >> Here's my code:
> >
> > >> package s3test
> >
> > >> object Main {
> >
> > >> import org.jets3t.service.S3Service
> > >> import org.jets3t.service.S3ServiceException
> > >> import org.jets3t.service.impl.rest.httpclient.RestS3Service
> > >> import org.jets3t.service.model.S3Bucket
> > >> import org.jets3t.service.security.AWSCredentials
> >
> > >>   def main(args: Array[String]) :Unit = {
> > >> val awsAccessKey = "0MC80SD02DQTGPP5XZ02"
> > >> val awsSecretKey = "EZDhuveb/94Fibwu48SCKVuiCV4T3PGlkYQTWdCr"
> > >> var awsCredentials = new AWSCredentials(awsAccessKey,
> > >> awsSecretKey)
> > >> println("")
> >
> > >>   }
> >
> > >> }
> >
> > >> I've tried the equivalent code in Java, and that works, so the library
> > >> should be imported correctly. (Using NetBeans)
> >
> > >> Have anybody succeeded using this library ? Doe's anybody know what's
> > >> going on here ?
> >
> > > I was able to compile the above code with:
> >
> > > scalac -cp ~/lang/jets3t/jars/jets3t-0.5.0.jar S3.scala
> >
> > >
>
> >
>


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

--~--~-~--~~~---~--~~
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: calling java: AWSCredentials does not have a constructor - anybody recongnize this type of error ?

2009-07-20 Thread kjetilge

Oooops, sloppy of me to publish my password. Very embarrassing.
Moving right along.
There are two things that I'm not sure what means:
1. Setting dependencies
2. Goal.

I'm using Maven and I have picked up that GOALS are involved.
For instance: In Netbeans I can set jetty:run as a goal to execute
when the project is run. This compiles and start my Lift application
of course. But I have no idea how to run a goal on a pom.xml.Could you
provide an example? I probably should read more about Maven I guess.

Could I perhaps add a dependency in the pom file like this:


  org.jets3t
  jets3et
  0.1.7


Will it then also be necessary to add dependencies for commons.codec
and commons.httpclient and so on ?

I have added all the libraries manually, is that wrong ?



On Jul 20, 5:59 pm, Timothy Perrett  wrote:
> I agree, looks fine ­ you don¹t mention if your using maven or whatever, but
> IMO, make sure you¹ve set the dependencies properly and that your running
> the right goal on your pom.xml
>
> Also, you probably don¹t want to post your secret for S3 as people could log
> into your account with it.
>
> Cheers, Tim
>
> On 20/07/2009 16:52, "David Pollak"  wrote:
>
>
>
>
>
> > On Mon, Jul 20, 2009 at 8:04 AM, kjetilge  wrote:
>
> >> I'm trying out the jets3t library for handling S3 storage. But when I
> >> try to make calls to methods in the library I get:
> >> AWSCredentials does not have a constructor.
>
> >> Here's my code:
>
> >> package s3test
>
> >> object Main {
>
> >> import org.jets3t.service.S3Service
> >> import org.jets3t.service.S3ServiceException
> >> import org.jets3t.service.impl.rest.httpclient.RestS3Service
> >> import org.jets3t.service.model.S3Bucket
> >> import org.jets3t.service.security.AWSCredentials
>
> >>   def main(args: Array[String]) :Unit = {
> >>     val awsAccessKey = "0MC80SD02DQTGPP5XZ02"
> >>     val awsSecretKey = "EZDhuveb/94Fibwu48SCKVuiCV4T3PGlkYQTWdCr"
> >>     var awsCredentials = new AWSCredentials(awsAccessKey,
> >> awsSecretKey)
> >>     println("")
>
> >>   }
>
> >> }
>
> >> I've tried the equivalent code in Java, and that works, so the library
> >> should be imported correctly. (Using NetBeans)
>
> >> Have anybody succeeded using this library ? Doe's anybody know what's
> >> going on here ?
>
> > I was able to compile the above code with:
>
> > scalac -cp ~/lang/jets3t/jars/jets3t-0.5.0.jar S3.scala
>
> >  

--~--~-~--~~~---~--~~
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: calling java: AWSCredentials does not have a constructor - anybody recongnize this type of error ?

2009-07-20 Thread Timothy Perrett
I agree, looks fine ­ you don¹t mention if your using maven or whatever, but
IMO, make sure you¹ve set the dependencies properly and that your running
the right goal on your pom.xml

Also, you probably don¹t want to post your secret for S3 as people could log
into your account with it.

Cheers, Tim

On 20/07/2009 16:52, "David Pollak"  wrote:

> 
> 
> On Mon, Jul 20, 2009 at 8:04 AM, kjetilge  wrote:
>> 
>> I'm trying out the jets3t library for handling S3 storage. But when I
>> try to make calls to methods in the library I get:
>> AWSCredentials does not have a constructor.
>> 
>> Here's my code:
>> 
>> package s3test
>> 
>> object Main {
>> 
>> import org.jets3t.service.S3Service
>> import org.jets3t.service.S3ServiceException
>> import org.jets3t.service.impl.rest.httpclient.RestS3Service
>> import org.jets3t.service.model.S3Bucket
>> import org.jets3t.service.security.AWSCredentials
>> 
>>   def main(args: Array[String]) :Unit = {
>>     val awsAccessKey = "0MC80SD02DQTGPP5XZ02"
>>     val awsSecretKey = "EZDhuveb/94Fibwu48SCKVuiCV4T3PGlkYQTWdCr"
>>     var awsCredentials = new AWSCredentials(awsAccessKey,
>> awsSecretKey)
>>     println("")
>> 
>>   }
>> 
>> }
>> 
>> I've tried the equivalent code in Java, and that works, so the library
>> should be imported correctly. (Using NetBeans)
>> 
>> Have anybody succeeded using this library ? Doe's anybody know what's
>> going on here ?
> 
> I was able to compile the above code with:
> 
> scalac -cp ~/lang/jets3t/jars/jets3t-0.5.0.jar S3.scala
> 
> 
>  
>> 
>> 
>> 
> 
> 


--~--~-~--~~~---~--~~
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: calling java: AWSCredentials does not have a constructor - anybody recongnize this type of error ?

2009-07-20 Thread David Pollak
On Mon, Jul 20, 2009 at 8:04 AM, kjetilge  wrote:

>
> I'm trying out the jets3t library for handling S3 storage. But when I
> try to make calls to methods in the library I get:
> AWSCredentials does not have a constructor.
>
> Here's my code:
>
> package s3test
>
> object Main {
>
> import org.jets3t.service.S3Service
> import org.jets3t.service.S3ServiceException
> import org.jets3t.service.impl.rest.httpclient.RestS3Service
> import org.jets3t.service.model.S3Bucket
> import org.jets3t.service.security.AWSCredentials
>
>  def main(args: Array[String]) :Unit = {
>val awsAccessKey = "0MC80SD02DQTGPP5XZ02"
>val awsSecretKey = "EZDhuveb/94Fibwu48SCKVuiCV4T3PGlkYQTWdCr"
>var awsCredentials = new AWSCredentials(awsAccessKey,
> awsSecretKey)
>println("")
>
>  }
>
> }
>
> I've tried the equivalent code in Java, and that works, so the library
> should be imported correctly. (Using NetBeans)
>
> Have anybody succeeded using this library ? Doe's anybody know what's
> going on here ?


I was able to compile the above code with:

scalac -cp ~/lang/jets3t/jars/jets3t-0.5.0.jar S3.scala




>
>
> >
>


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

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---