I also had many problems with eclipse, did you try it with maven? It works simple without problems. Also tell me if you have syntax problems in eclipse I got solutions for that which are hard to follow if you research them.
On Sunday, 8 April 2012 22:28:28 UTC-4, fmpwizard wrote:
> could you post your build.sbt file too?
Thanks for the replies, everyone.
I did get this working, but only with Jetty 6. Here is my build.sbt with the working configuration. Commented out are the configurations which fail (Jetty 7 and Jetty 8).
> On Sunday, 8 April 2012 22:28:28 UTC-4, fmpwizard wrote:
> could you post your build.sbt file too?
> Thanks for the replies, everyone.
> I did get this working, but only with Jetty 6. Here is my build.sbt > with the working configuration. Commented out are the configurations > which fail (Jetty 7 and Jetty 8).
On Wednesday, 11 April 2012 22:14:49 UTC-4, Toby Thain wrote:
> On Sunday, 8 April 2012 22:28:28 UTC-4, fmpwizard wrote:
>> could you post your build.sbt file too?
> Thanks for the replies, everyone.
> I did get this working, but only with Jetty 6.
Since I am deploying with Jetty, is there a way I can import Jetty utility classes from my Lift project? A simple import does not find the package; obviously I am new to Java deployment—is there some step I need to take to make this possible?
> On Sunday, 8 April 2012 22:28:28 UTC-4, fmpwizard wrote:
>> could you post your build.sbt file too?
> Thanks for the replies, everyone.
> I did get this working, but only with Jetty 6. Here is my build.sbt with > the working configuration. Commented out are the configurations which fail > (Jetty 7 and Jetty 8).
which jetty utilities are you trying to use? You would normally have to add the correct dependencies to your project, if you are using SBT, there is a build.sbt or build.scala file you would need to modify, if you are using maven, you modify a pom.xml file.
On Tue, Apr 24, 2012 at 10:56 AM, Toby Thain <t...@telegraphics.com.au> wrote:
> On Wednesday, 11 April 2012 22:14:49 UTC-4, Toby Thain wrote:
>> On Sunday, 8 April 2012 22:28:28 UTC-4, fmpwizard wrote:
>>> could you post your build.sbt file too?
>> Thanks for the replies, everyone.
>> I did get this working, but only with Jetty 6.
> Since I am deploying with Jetty, is there a way I can import Jetty utility > classes from my Lift project? A simple import does not find the package; > obviously I am new to Java deployment—is there some step I need to take to > make this possible?
On Tuesday, 24 April 2012 23:50:35 UTC-4, fmpwizard wrote:
> which jetty utilities are you trying to use? > You would normally have to add the correct dependencies to your > project, if you are using SBT, there is a build.sbt or build.scala > file you would need to modify, if you are using maven, you modify a > pom.xml file.
My build.sbt is described above. The Jetty container is working fine. I am just wondering how I can import a class from Jetty, e.g.
Diego
Sent from my android cell
On Apr 29, 2012 8:04 PM, "Toby Thain" <t...@telegraphics.com.au> wrote:
> On Tuesday, 24 April 2012 23:50:35 UTC-4, fmpwizard wrote:
>> which jetty utilities are you trying to use?
>> You would normally have to add the correct dependencies to your
>> project, if you are using SBT, there is a build.sbt or build.scala
>> file you would need to modify, if you are using maven, you modify a
>> pom.xml file.
> My build.sbt is described above.
I'm not sure how you see this email thread, but I just saw one email and no
sample build file.
I want to help you but I don't think it's fair for me to have to go and
search the mailing list to see where your build file went.
Regards
Diego
The Jetty container is working fine. I am just wondering how I can import a
class from Jetty, e.g.
On Sunday, 29 April 2012 21:05:23 UTC-4, fmpwizard wrote:
> Diego > Sent from my android cell > On Apr 29, 2012 8:04 PM, "Toby Thain" <t...@telegraphics.com.au> wrote:
> > On Tuesday, 24 April 2012 23:50:35 UTC-4, fmpwizard wrote:
> >> which jetty utilities are you trying to use? > >> You would normally have to add the correct dependencies to your > >> project, if you are using SBT, there is a build.sbt or build.scala > >> file you would need to modify, if you are using maven, you modify a > >> pom.xml file.
> > My build.sbt is described above.
> I'm not sure how you see this email thread, but I just saw one email and > no sample build file.
> I want to help you but I don't think it's fair for me to have to go and > search the mailing list to see where your build file went.
Ok, if you want to access
org.mortbay.util.UrlEncoded
you cannot use
"org.eclipse.jetty" % "jetty-webapp" % "8.1.0.v20120127" % "container",
because org.mortbay is jetty until version 6
So, you will have to downgrade to jetty 6 or see what the new name is
for jetty 8.1
I think the new name is
org.eclipse.jetty.util.UrlEncoding
so try using that name, if that import does not work, you need to add
a dependency that has that class.
On Wed, May 2, 2012 at 7:56 PM, Toby Thain <t...@telegraphics.com.au> wrote:
> On Sunday, 29 April 2012 21:05:23 UTC-4, fmpwizard wrote:
>> Diego
>> Sent from my android cell
>> On Apr 29, 2012 8:04 PM, "Toby Thain" <t...@telegraphics.com.au> wrote:
>> > On Tuesday, 24 April 2012 23:50:35 UTC-4, fmpwizard wrote:
>> >> which jetty utilities are you trying to use?
>> >> You would normally have to add the correct dependencies to your
>> >> project, if you are using SBT, there is a build.sbt or build.scala
>> >> file you would need to modify, if you are using maven, you modify a
>> >> pom.xml file.
>> > My build.sbt is described above.
>> I'm not sure how you see this email thread, but I just saw one email and
>> no sample build file.
>> I want to help you but I don't think it's fair for me to have to go and
>> search the mailing list to see where your build file went.
On Wednesday, 2 May 2012 21:17:10 UTC-4, fmpwizard wrote:
> Hi,
> Ok, if you want to access > org.mortbay.util.UrlEncoded > you cannot use > "org.eclipse.jetty" % "jetty-webapp" % "8.1.0.v20120127" % "container",
> because org.mortbay is jetty until version 6
Right, my initial experiments were with v6, then I got v8 working later for the webapp.
> So, you will have to downgrade to jetty 6 or see what the new name is > for jetty 8.1 > I think the new name is > org.eclipse.jetty.util.UrlEncoding > so try using that name, if that import does not work, you need to add > a dependency that has that class.
On Wednesday, 2 May 2012 21:17:10 UTC-4, fmpwizard wrote:
> Hi,
> Ok, if you want to access > org.mortbay.util.UrlEncoded > you cannot use > "org.eclipse.jetty" % "jetty-webapp" % "8.1.0.v20120127" % "container",
> because org.mortbay is jetty until version 6
> So, you will have to downgrade to jetty 6 or see what the new name is > for jetty 8.1 > I think the new name is > org.eclipse.jetty.util.UrlEncoding > so try using that name, if that import does not work, you need to add > a dependency that has that class.
[info] Compiling 26 Scala sources and 1 Java source to /Users/toby/Documents/xx/api/target/scala-2.9.1/classes... [error] /Users/toby/Documents/xx/api/src/main/scala/sandbox/DbTest.scala:14: object eclipse is not a member of package org [error] import org.eclipse.jetty.util.B64Code [error] ^ [error] one error found [error] {file:/Users/toby/Documents/xx/api/}default-6dcebb/compile:compile: Compilation failed [error] Total time: 7 s, completed May 4, 2012 11:11:51 PM
> On Wed, May 2, 2012 at 7:56 PM, Toby Thain <t...@telegraphics.com.au> > wrote:
> > On Sunday, 29 April 2012 21:05:23 UTC-4, fmpwizard wrote:
> >> Diego > >> Sent from my android cell > >> On Apr 29, 2012 8:04 PM, "Toby Thain" <t...@telegraphics.com.au> > wrote:
> >> > On Tuesday, 24 April 2012 23:50:35 UTC-4, fmpwizard wrote:
> >> >> which jetty utilities are you trying to use? > >> >> You would normally have to add the correct dependencies to your > >> >> project, if you are using SBT, there is a build.sbt or build.scala > >> >> file you would need to modify, if you are using maven, you modify a > >> >> pom.xml file.
> >> > My build.sbt is described above.
> >> I'm not sure how you see this email thread, but I just saw one email > and > >> no sample build file.
> >> I want to help you but I don't think it's fair for me to have to go and > >> search the mailing list to see where your build file went.
> > Apologies; libraryDependencies look like this:
On Friday, 4 May 2012 23:13:48 UTC-4, Toby Thain wrote:
> On Wednesday, 2 May 2012 21:17:10 UTC-4, fmpwizard wrote:
>> Hi,
>> Ok, if you want to access >> org.mortbay.util.UrlEncoded >> you cannot use >> "org.eclipse.jetty" % "jetty-webapp" % "8.1.0.v20120127" % "container",
>> because org.mortbay is jetty until version 6
>> So, you will have to downgrade to jetty 6 or see what the new name is >> for jetty 8.1 >> I think the new name is >> org.eclipse.jetty.util.UrlEncoding >> so try using that name, if that import does not work, you need to add >> a dependency that has that class.
I have got a similar problem trying to import my project in eclipse (I
created it using "sbt> eclipse with-source=true").
In the file "RunWebApp.scala", the four imports are refused:
Do you know what I have been missing? I created the project using
https://github.com/lift/lift_25_sbt and imported it in Eclipse. It is the
first time I use eclipse for a Lift Webapp so I don't have any idea :-/. I
can run my Webapp using "sbt> container:start" and see it in the browser
without any problem.
On Sat, May 5, 2012 at 5:43 AM, Toby Thain <t...@telegraphics.com.au> wrote:
> On Friday, 4 May 2012 23:13:48 UTC-4, Toby Thain wrote:
>> On Wednesday, 2 May 2012 21:17:10 UTC-4, fmpwizard wrote:
>>> Hi,
>>> Ok, if you want to access
>>> org.mortbay.util.UrlEncoded
>>> you cannot use
>>> "org.eclipse.jetty" % "jetty-webapp" % "8.1.0.v20120127" % "container",
>>> because org.mortbay is jetty until version 6
>>> So, you will have to downgrade to jetty 6 or see what the new name is
>>> for jetty 8.1
>>> I think the new name is
>>> org.eclipse.jetty.util.**UrlEncoding
>>> so try using that name, if that import does not work, you need to add
>>> a dependency that has that class.
> Do you know what I have been missing? I created the project using
> https://github.com/lift/lift_25_sbt and imported it in Eclipse. It is the
> first time I use eclipse for a Lift Webapp so I don't have any idea :-/. I
> can run my Webapp using "sbt> container:start" and see it in the browser
> without any problem.
When you find yourself in a case like this, where the IDE tells you
there is a problem, but sbt runs fine, then it is an IDE bug
I don;t know where you would report those bugs, (I use Intellij, and
I love it :) )
> On Sat, May 5, 2012 at 5:43 AM, Toby Thain <t...@telegraphics.com.au> wrote:
>> On Friday, 4 May 2012 23:13:48 UTC-4, Toby Thain wrote:
>>> On Wednesday, 2 May 2012 21:17:10 UTC-4, fmpwizard wrote:
>>>> Hi,
>>>> Ok, if you want to access
>>>> org.mortbay.util.UrlEncoded
>>>> you cannot use
>>>> "org.eclipse.jetty" % "jetty-webapp" % "8.1.0.v20120127" % "container",
>>>> because org.mortbay is jetty until version 6
>>>> So, you will have to downgrade to jetty 6 or see what the new name is
>>>> for jetty 8.1
>>>> I think the new name is
>>>> org.eclipse.jetty.util.UrlEncoding
>>>> so try using that name, if that import does not work, you need to add
>>>> a dependency that has that class.
On Thu, Sep 27, 2012 at 3:26 PM, Diego Medina <di...@fmpwizard.com> wrote:
> > Do you know what I have been missing? I created the project using
> > https://github.com/lift/lift_25_sbt and imported it in Eclipse. It is
> the
> > first time I use eclipse for a Lift Webapp so I don't have any idea :-/.
> I
> > can run my Webapp using "sbt> container:start" and see it in the browser
> > without any problem.
> When you find yourself in a case like this, where the IDE tells you
> there is a problem, but sbt runs fine, then it is an IDE bug
> I don;t know where you would report those bugs, (I use Intellij, and
> I love it :) )
> Thanks
> Diego
> > Thanks in advance!
> > Jones
> > On Sat, May 5, 2012 at 5:43 AM, Toby Thain <t...@telegraphics.com.au>
> wrote:
> >> On Friday, 4 May 2012 23:13:48 UTC-4, Toby Thain wrote:
> >>> On Wednesday, 2 May 2012 21:17:10 UTC-4, fmpwizard wrote:
> >>>> Hi,
> >>>> Ok, if you want to access
> >>>> org.mortbay.util.UrlEncoded
> >>>> you cannot use
> >>>> "org.eclipse.jetty" % "jetty-webapp" % "8.1.0.v20120127" %
> "container",
> >>>> because org.mortbay is jetty until version 6
> >>>> So, you will have to downgrade to jetty 6 or see what the new name is
> >>>> for jetty 8.1
> >>>> I think the new name is
> >>>> org.eclipse.jetty.util.UrlEncoding
> >>>> so try using that name, if that import does not work, you need to add
> >>>> a dependency that has that class.
On Thu, Sep 27, 2012 at 11:29 AM, Jones <mistic.warr...@gmail.com> wrote:
> Okay, I had heard some people saying that they were loving Eclipse for Lift
> =). I'll maybe try IntelliJ then!
Yes, you will find people loving eclipse, emacs, vim, etc :) What I
like ab out intellij is the maintainer really fixes issues as we find
them, basically, if you run into some code marked as error that is not
a real error, you can report them on
http://youtrack.jetbrains.com/issues/SCL post a link here on the list, so we all vote on the issue and some
time later the fix should magically appear :)
> On Thu, Sep 27, 2012 at 3:26 PM, Diego Medina <di...@fmpwizard.com> wrote:
>> > Do you know what I have been missing? I created the project using
>> > https://github.com/lift/lift_25_sbt and imported it in Eclipse. It is
>> > the
>> > first time I use eclipse for a Lift Webapp so I don't have any idea :-/.
>> > I
>> > can run my Webapp using "sbt> container:start" and see it in the browser
>> > without any problem.
>> When you find yourself in a case like this, where the IDE tells you
>> there is a problem, but sbt runs fine, then it is an IDE bug
>> I don;t know where you would report those bugs, (I use Intellij, and
>> I love it :) )
>> Thanks
>> Diego
>> > Thanks in advance!
>> > Jones
>> > On Sat, May 5, 2012 at 5:43 AM, Toby Thain <t...@telegraphics.com.au>
>> > wrote:
>> >> On Friday, 4 May 2012 23:13:48 UTC-4, Toby Thain wrote:
>> >>> On Wednesday, 2 May 2012 21:17:10 UTC-4, fmpwizard wrote:
>> >>>> Hi,
>> >>>> Ok, if you want to access
>> >>>> org.mortbay.util.UrlEncoded
>> >>>> you cannot use
>> >>>> "org.eclipse.jetty" % "jetty-webapp" % "8.1.0.v20120127" %
>> >>>> "container",
>> >>>> because org.mortbay is jetty until version 6
>> >>>> So, you will have to downgrade to jetty 6 or see what the new name is
>> >>>> for jetty 8.1
>> >>>> I think the new name is
>> >>>> org.eclipse.jetty.util.UrlEncoding
>> >>>> so try using that name, if that import does not work, you need to add
>> >>>> a dependency that has that class.
First a quick note: You are not required to use the functionality of RunWebApp.scala to integrate your Scala/Lift work into Eclipse.
I use eclipse for all my java/scala projects but when It comes to running lift/scala apps I mostly do it from within sbt (with jrebel) but if you prefer you can just as easy run it from within eclipse.
When I need to dig deeper and debug the app I run from within eclipse with the use of the RunJettyRun eclipse plugin. See [1] for more information it's really simple to set up.
Generally when you want to work on a Lift app with the use of Eclipse IDE you start by import the lift project into eclipse (ones)
Here is the 2 steps for the initial setup:
1) Start sbt and run the eclipse command to create project files.
project$ ./sbt
> eclipse
2) Now in Eclipse menu ..
File ==> Import...
Select General ==> Existing Project into Workspace
Use "Brows" to look up the project root ....
Most of my github projects includes this step information in the "Scala IDE for Eclipse" section in the readme.md file in [1] or any of my other github projects (they generally includes this information).
> I have got a similar problem trying to import my project in eclipse (I > created it using "sbt> eclipse with-source=true").
> In the file "RunWebApp.scala", the four imports are refused:
> Do you know what I have been missing? I created the project using > https://github.com/lift/lift_25_sbt and imported it in Eclipse. It is > the first time I use eclipse for a Lift Webapp so I don't have any > idea :-/. I can run my Webapp using "sbt> container:start" and see it > in the browser without any problem.
> Thanks in advance!
> Jones
> On Sat, May 5, 2012 at 5:43 AM, Toby Thain <t...@telegraphics.com.au > <mailto:t...@telegraphics.com.au>> wrote:
> On Friday, 4 May 2012 23:13:48 UTC-4, Toby Thain wrote:
> On Wednesday, 2 May 2012 21:17:10 UTC-4, fmpwizard wrote:
> Hi,
> Ok, if you want to access
> org.mortbay.util.UrlEncoded
> you cannot use
> "org.eclipse.jetty" % "jetty-webapp" % "8.1.0.v20120127" %
> "container",
> because org.mortbay is jetty until version 6
> So, you will have to downgrade to jetty 6 or see what the
> new name is
> for jetty 8.1
> I think the new name is
> org.eclipse.jetty.util.UrlEncoding
> so try using that name, if that import does not work, you
> need to add
> a dependency that has that class.
> First a quick note: You are not required to use the functionality of > RunWebApp.scala to integrate your Scala/Lift work into Eclipse.
> I use eclipse for all my java/scala projects but when It comes to > running lift/scala apps I mostly do it from within sbt (with jrebel) > but if you prefer you can just as easy run it from within eclipse.
> When I need to dig deeper and debug the app I run from within eclipse > with the use of the RunJettyRun eclipse plugin. See [1] for more > information it's really simple to set up.
> Generally when you want to work on a Lift app with the use of Eclipse > IDE you start by import the lift project into eclipse (ones)
> Here is the 2 steps for the initial setup:
> 1) Start sbt and run the eclipse command to create project files.
> project$ ./sbt
> > eclipse
> 2) Now in Eclipse menu ..
> File ==> Import...
> Select General ==> Existing Project into Workspace
> Use "Brows" to look up the project root ....
> Most of my github projects includes this step information in the > "Scala IDE for Eclipse" section in the readme.md file in [1] or any of > my other github projects (they generally includes this information).
>> I have got a similar problem trying to import my project in eclipse >> (I created it using "sbt> eclipse with-source=true").
>> In the file "RunWebApp.scala", the four imports are refused:
>> Do you know what I have been missing? I created the project using >> https://github.com/lift/lift_25_sbt and imported it in Eclipse. It is >> the first time I use eclipse for a Lift Webapp so I don't have any >> idea :-/. I can run my Webapp using "sbt> container:start" and see it >> in the browser without any problem.
>> Thanks in advance!
>> Jones
>> On Sat, May 5, 2012 at 5:43 AM, Toby Thain <t...@telegraphics.com.au >> <mailto:t...@telegraphics.com.au>> wrote:
>> On Friday, 4 May 2012 23:13:48 UTC-4, Toby Thain wrote:
>> On Wednesday, 2 May 2012 21:17:10 UTC-4, fmpwizard wrote:
>> Hi,
>> Ok, if you want to access
>> org.mortbay.util.UrlEncoded
>> you cannot use
>> "org.eclipse.jetty" % "jetty-webapp" % "8.1.0.v20120127"
>> % "container",
>> because org.mortbay is jetty until version 6
>> So, you will have to downgrade to jetty 6 or see what the
>> new name is
>> for jetty 8.1
>> I think the new name is
>> org.eclipse.jetty.util.UrlEncoding
>> so try using that name, if that import does not work, you
>> need to add
>> a dependency that has that class.
I think, that you may get the error, because you try to:
import org.eclipse.jetty.webapp.WebAppContext
but in your sbt file jetty-webapp is in "container" configuration,
but not in compile configuration, so will be available when your jetty
is used by sbt to serve your app, but not during compilation. I think
using "container,compile" instead should fix your problem. It works
for me and I can do the imports you listed.
> I have got a similar problem trying to import my project in eclipse (I > created it using "sbt> eclipse with-source=true").
> In the file "RunWebApp.scala", the four imports are refused:
> Do you know what I have been missing? I created the project using > https://github.com/lift/lift_25_sbt and imported it in Eclipse. It is > the first time I use eclipse for a Lift Webapp so I don't have any > idea :-/. I can run my Webapp using "sbt> container:start" and see it > in the browser without any problem.
> Thanks in advance!
> Jones
> On Sat, May 5, 2012 at 5:43 AM, Toby Thain <t...@telegraphics.com.au > <mailto:t...@telegraphics.com.au>> wrote:
> On Friday, 4 May 2012 23:13:48 UTC-4, Toby Thain wrote:
> On Wednesday, 2 May 2012 21:17:10 UTC-4, fmpwizard wrote:
> Hi,
> Ok, if you want to access
> org.mortbay.util.UrlEncoded
> you cannot use
> "org.eclipse.jetty" % "jetty-webapp" % "8.1.0.v20120127" %
> "container",
> because org.mortbay is jetty until version 6
> So, you will have to downgrade to jetty 6 or see what the
> new name is
> for jetty 8.1
> I think the new name is
> org.eclipse.jetty.util.UrlEncoding
> so try using that name, if that import does not work, you
> need to add
> a dependency that has that class.