Your missing the servlet dependency... (its not rocket, copy it from the pom!)
On 11 Feb 2010, at 17:46, Mads Hartmann wrote:
> I really appreciate the help guys - Just one error left now ;)
>
> [error] /Users/Mads/Dev/logicOfScientificDiscovery/src/main/scala/
> bootstrap/liftweb/Boot.scala:11: value servlet is not a member of
> package javax
> [error] import _root_.javax.servlet.http.{HttpServletRequest}
> [error] ^
>
>
> On Feb 11, 6:35 pm, Timothy Perrett <[email protected]> wrote:
>> Dont use lift-core as a dependency.
>>
>> Explicitly specify what it is you want.... webkit, mapper and widgets.
>>
>> Cheers, Tim
>>
>> On 11 Feb 2010, at 17:26, Mads Hartmann wrote:
>>
>>
>>
>>> Thanks Tim & Timothy
>>
>>> -- properties
>>> #Project properties
>>> #Tue Feb 02 14:29:05 CET 2010
>>> project.organization=sidewayscoding
>>> project.name=LogicOfScientificDiscovery
>>> sbt.version=0.5.6
>>> project.version=1.0
>>> scala.version=2.7.7
>>> project.initialize=false
>>
>>> --- project file
>>
>>> import sbt._
>>
>>> class LogicOfScientificDiscovery(info: ProjectInfo) extends
>>> DefaultWebProject(info)
>>> {
>>> val lift = "net.liftweb" % "lift-core" % "2.0-M1" % "compile"
>>> val jetty6 = "org.mortbay.jetty" % "jetty" % "6.1.14" % "test"
>>> // required because Ivy doesn't pull repositories from poms
>>> val smackRepo = "m2-repository-smack" at "http://maven.reucon.com/
>>> public"
>>> }
>>
>>> ---
>>
>>> My project is only dependent on lift-mapper and lift-widgets
>>
>>> I now get the following error when i try to run 'update'
>>
>>> warn] :: problems summary ::
>>> [warn] :::: WARNINGS
>>> [warn] module not found: com.rabbitmq#amqp-client;1.7.0
>>> [warn] ==== local: tried
>>> [warn] /Users/Mads/.ivy2/local/com.rabbitmq/amqp-client/1.7.0/ivys/
>>> ivy.xml
>>> [warn] -- artifact com.rabbitmq#amqp-client;1.7.0!amqp-client.jar:
>>> [warn] /Users/Mads/.ivy2/local/com.rabbitmq/amqp-client/1.7.0/jars/
>>> amqp-client.jar
>>> [warn] ==== m2-repository-smack: tried
>>> [warn]
>>> http://maven.reucon.com/public/com/rabbitmq/amqp-client/1.7.0/amqp-cl...
>>> [warn] -- artifact com.rabbitmq#amqp-client;1.7.0!amqp-client.jar:
>>> [warn]
>>> http://maven.reucon.com/public/com/rabbitmq/amqp-client/1.7.0/amqp-cl...
>>> [warn] ==== public: tried
>>> [warn]
>>> http://repo1.maven.org/maven2/com/rabbitmq/amqp-client/1.7.0/amqp-cli...
>>> [warn] -- artifact com.rabbitmq#amqp-client;1.7.0!amqp-client.jar:
>>> [warn]
>>> http://repo1.maven.org/maven2/com/rabbitmq/amqp-client/1.7.0/amqp-cli...
>>> [warn] ==== Scala-Tools Maven2 Repository: tried
>>> [warn]
>>> http://scala-tools.org/repo-releases/com/rabbitmq/amqp-client/1.7.0/a...
>>> [warn] -- artifact com.rabbitmq#amqp-client;1.7.0!amqp-client.jar:
>>> [warn]
>>> http://scala-tools.org/repo-releases/com/rabbitmq/amqp-client/1.7.0/a...
>>> [warn] ::::::::::::::::::::::::::::::::::::::::::::::
>>> [warn] :: UNRESOLVED DEPENDENCIES ::
>>> [warn] ::::::::::::::::::::::::::::::::::::::::::::::
>>> [warn] :: com.rabbitmq#amqp-client;1.7.0: not found
>>> [warn] ::::::::::::::::::::::::::::::::::::::::::::::
>>> [info]
>>
>>> On Feb 11, 6:08 pm, Tim Nelson <[email protected]> wrote:
>>>> sbt doesn't look at POMs. You need to create Project file and add the
>>>> dependencies in there.
>>
>>>> The example in the following is a little old, but it shows what you
>>>> needhttp://code.google.com/p/simple-build-tool/wiki/WebApplicationExample
>>
>>>> Here's an updated example:
>>>> import sbt._
>>
>>>> class HelloLiftProject(info: ProjectInfo) extends DefaultWebProject(info)
>>>> {
>>>> val lift = "net.liftweb" % "lift-webkit" % "2.0-M1" % "compile"
>>>> val jetty6 = "org.mortbay.jetty" % "jetty" % "6.1.14" % "test"
>>
>>>> // required because Ivy doesn't pull repositories from poms
>>>> val smackRepo = "m2-repository-smack" at "http://maven.reucon.com/public"
>>
>>>> }
>>
>>>> Tim
>>
>>>> On Thu, Feb 11, 2010 at 10:24 AM, Mads Hartmann <[email protected]> wrote:
>>>>> Hello everyone,
>>>>> I was hoping I could get some help with an SBT error I'm getting:
>>
>>>>> [error] /Users/Mads/Dev/logicOfScientificDiscovery/src/main/scala/
>>>>> sidewayscoding/model/Discovery.scala:7: not found: value net
>>>>> [error] import net.liftweb._
>>>>> [error] ^
>>>>> [error] /Users/Mads/Dev/logicOfScientificDiscovery/src/main/scala/
>>>>> sidewayscoding/model/Discovery.scala:19: wrong number of arguments for
>>>>> constructor Object: ()java.lang.Object
>>>>> [error] object description extends MappedTextarea(this, 600)
>>>>> [error]
>>
>>>>> ....
>>
>>>>> [error] 94 errors found
>>
>>>>> It looks like it doesn't import lift,
>>
>>>>> build.properties
>>
>>>>> #Project properties
>>>>> #Tue Feb 02 14:29:05 CET 2010
>>>>> project.organization=sidewayscoding
>>>>> project.name=LogicOfScientificDiscovery
>>>>> sbt.version=0.5.6
>>>>> project.version=1.0
>>>>> scala.version=2.7.7
>>>>> project.initialize=false
>>
>>>>> pom.xm
>>
>>>>> <properties>
>>>>> <scala.version>2.7.7</scala.version>
>>>>> </properties>
>>
>>>>> ...
>>
>>>>> <dependency>
>>>>> <groupId>net.liftweb</groupId>
>>>>> <artifactId>lift-mapper</artifactId>
>>>>> <version>2.0-M1</version>
>>>>> </dependency>
>>>>> <dependency>
>>>>> <groupId>net.liftweb</groupId>
>>>>> <artifactId>lift-widgets</artifactId>
>>>>> <version>2.0-M1</version>
>>>>> </dependency>
>>>>> <dependency>
>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google Groups
>>>>> "Lift" group.
>>>>> To post to this group, send email to [email protected].
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected].
>>>>> For more options, visit this group
>>>>> athttp://groups.google.com/group/liftweb?hl=en.
>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Lift" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group
>>> athttp://groups.google.com/group/liftweb?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.