Hmm, that's strange, it seems mvn can't find the jetty plugin.
You could try
"mvn org.mortbay.jetty:mvn-jetty-plugin:6.1.5:run" instead

Carsten

Michael Marth wrote:
Hi Carsten,

thanks, but there's a different problem now (see below). I thought that
maybe just the tests fail, but mvn jetty:run does not work either:

[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-jetty-plugin: checking for
update
s from central
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not
exist o
r no valid version could be found


Can I try anything else?
Thanks a lot
Michael



2008-02-01 15:44:12.609::INFO:  Logging to STDERR via
org.mortbay.log.StdErrLog
2008-02-01 15:44:12.656::INFO:  jetty-6.1.1rc1
2008-02-01 15:44:12.812::INFO:  Extract
jar:file:/C:/dev/launchpad/launchpad/lau
nchpad-webapp/target/org.apache.sling.launchpad.webapp-
2.0.0-incubator-SNAPSHOT.
war!/ to
C:\DOCUME~1\mmarth\LOCALS~1\Temp\Jetty_0_0_0_0_8080_org.apache.sling.la
unchpad.webapp-2.0.0-incubator-SNAPSHOT.war__org_apache_sling_launchpad_webapp-2
_0_0-incubator-SNAPSHOT__ybspfb\webapp
2008-02-01 15:44:
21.921:/org.apache.sling.launchpad.webapp-2.0.0-incubator-SNAPS
HOT:INFO:  sling: Servlet sling initialized
2008-02-01 15:44:21.921::INFO:  Extract
jar:file:/C:/dev/launchpad/launchpad/lau
nchpad-webapp/target/jetty6x/cargocpc.war!/ to
C:\DOCUME~1\mmarth\LOCALS~1\Temp\
Jetty_0_0_0_0_8080_cargocpc.war__cargocpc__xflgf3\webapp
2008-02-01 15:44:22.515::INFO:  Started SelectChannelConnector @
0.0.0.0:8080
[INFO] [beddedLocalContainer] Jetty 6.x Embedded started on port [8080]
[INFO] [surefire:test {execution: surefire-integration-test}]
[INFO] Surefire report directory:
C:\dev\launchpad\launchpad\launchpad-webapp\ta
rget\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running
org.apache.sling.launchpad.webapp.integrationtest.PropertyRenderingTest
log4j:WARN No appenders could be found for logger (
org.apache.commons.httpclient
..HttpClient).
log4j:WARN Please initialize the log4j system properly.
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 6, Failures: 6, Errors: 0, Skipped: 0, Time elapsed: 10.078 sec
<<< F
AILURE!
Running org.apache.sling.launchpad.webapp.integrationtest.JsonRenderingTest
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 7, Failures: 7, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec
<<< FA
ILURE!
Running org.apache.sling.launchpad.webapp.integrationtest.IncludeTest
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
<<< FA
ILURE!
Running org.apache.sling.launchpad.webapp.integrationtest.GetWithSuffixTest
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec <<<
FAI
LURE!
Running org.apache.sling.launchpad.webapp.integrationtest.UploadFileTest
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
<<< FA
ILURE!
Running
org.apache.sling.launchpad.webapp.integrationtest.ujax.PostServletOrderT
est
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec <<<
FAI
LURE!
Running
org.apache.sling.launchpad.webapp.integrationtest.NodetypeRenderingTest
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 6, Failures: 6, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec
<<< FA
ILURE!
Running org.apache.sling.launchpad.webapp.integrationtest.ValueFromTest
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
<<< FA
ILURE!
Running
org.apache.sling.launchpad.webapp.integrationtest.GeneratedNodeNameTest
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 4, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
<<< FA
ILURE!
Running org.apache.sling.launchpad.webapp.integrationtest.PostRedirectTest
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 4, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
<<< FA
ILURE!
Running
org.apache.sling.launchpad.webapp.integrationtest.ScriptBuiltinObjectsTe
st
Checking if the required Sling services are started...
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0 sec <<<
FAILUR
E!
Running
org.apache.sling.launchpad.webapp.integrationtest.ujax.UjaxSessionInfoTe
st
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec
<<< FA
ILURE!
Running
org.apache.sling.launchpad.webapp.integrationtest.SyntheticResourceTest
Checking if the required Sling services are started...
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0 sec <<<
FAILUR
E!
Running org.apache.sling.launchpad.webapp.integrationtest.HttpPingTest
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec
<<< FA
ILURE!
Running org.apache.sling.launchpad.webapp.integrationtest.FileUploadTest
Checking if the required Sling services are started...
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
<<< FA
ILURE!
Running org.apache.sling.launchpad.webapp.integrationtest.CreateNodeTest
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.078 sec
<<< FA
ILURE!
Running
org.apache.sling.launchpad.webapp.integrationtest.ujax.UjaxDefaultValues
Test
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 4, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
<<< FA
ILURE!
Running org.apache.sling.launchpad.webapp.integrationtest.StaticContentTest
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
<<< FA
ILURE!
Running org.apache.sling.launchpad.webapp.integrationtest.StreamServletTest
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 4, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0 sec <<<
FAILUR
E!
Running
org.apache.sling.launchpad.webapp.integrationtest.ujax.PostServletUpdate
Test
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Checking if the required Sling services are started...
Tests run: 4, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.141 sec
<<< FA
ILURE!

On 2/1/08, Carsten Ziegeler <[EMAIL PROTECTED]> wrote:
Just update from svn and try again :) It works now...

Carsten

Michael Marth wrote:
Guys,

just tried to do the 15 minutes tutorial, but I get a compilation error
(mvn
clean install) - see below. I use
C:\dev\launchpad>mvn -version
Maven version: 2.0.7
Java version: 1.5.0_13

Does anybody have an idea? The error looks strange to me. Also tried to
delete my mvn repo, but no success either.

thanks for pointers
Cheers
Michael



[INFO]

-------------------------------------------------------------------------
---
[INFO] Building Sling - ScriptResolver implementation
[INFO]    task-segment: [clean, install]
[INFO]

-------------------------------------------------------------------------
---
[INFO] [clean:clean]
[INFO] Deleting directory C:\dev\launchpad\scripting\resolver\target
[INFO] [enforcer:enforce {execution: enforce-java}]
[INFO] [dependency:copy {execution: get-bsf3-api}]
[INFO] Configured Artifact: org.apache.bsf:bsf-api:3.0-beta2:jar
[INFO] Copying bsf-api-3.0-beta2.jar to
C:\dev\launchpad\scripting\resolver\targ
et\dependency\bsf-api.jar
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 8 source files to
C:\dev\launchpad\scripting\resolver\target\cl
asses
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure


C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res
olver\impl\DefaultSlingScript.java:[76,22] type java.util.Dictionarydoes
not ta
ke parameters


C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res
olver\impl\DefaultSlingScript.java:[192,22] type java.util.Enumerationdoes
not
take parameters


C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res
olver\impl\helper\OnDemandReader.java:[23,16] package java.nio does not
exist


C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res
olver\impl\helper\OnDemandReader.java:[70,20] cannot find symbol
symbol  : class CharBuffer
location: class
org.apache.sling.scripting.resolver.impl.helper.OnDemandReader


C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res
olver\impl\helper\OnDemandReader.java:[70,15] read(char[]) is already
defined in
 org.apache.sling.scripting.resolver.impl.helper.OnDemandReader


C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res
olver\impl\SlingScriptAdapterFactory.java:[75,16] type java.util.Listdoes
not t
ake parameters


C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res
olver\impl\SlingScriptAdapterFactory.java:[77,16] type java.util.Listdoes
not t
ake parameters


C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res
olver\impl\SlingScriptAdapterFactory.java:[83,17] type java.lang.Classdoes
not
take parameters


C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res
olver\impl\helper\OnDemandWriter.java:[44,5] cannot find symbol
symbol  : class Override
location: class
org.apache.sling.scripting.resolver.impl.helper.OnDemandWriter


C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res
olver\impl\helper\OnDemandWriter.java:[51,5] cannot find symbol
symbol  : class Override
location: class
org.apache.sling.scripting.resolver.impl.helper.OnDemandWriter

On 1/29/08, Gert Vanthienen <[EMAIL PROTECTED]> wrote:
Bernard,

An 'svn up;mvn clean install' fixed the issue.

Thank you for the fast reponse,

Gert

Bertrand Delacretaz wrote:
On Jan 29, 2008 3:16 PM, Gert Vanthienen <[EMAIL PROTECTED]>
wrote:
...I ran
into a problem when executing the 'curl ...' command to add a first
node
of content:

Method POST not supported (405)...

When running this?

curl -F"sling:resourceType=foo/bar" -F"title=some title"
http://admin:[EMAIL PROTECTED]:8080/content/mynode

As the Sling modules start asynchronously, what might happen is that
they're not ready yet. But startup shouldn't take more than a few
seconds on a decent system.

If retrying doesn't help, have a look at the log created under
launchpad-webapp/target/logs/error.log, and if any errors are
reported. I've just added the info about that log file to the wiki
page.

-Bertrand




--
Carsten Ziegeler
[EMAIL PROTECTED]






--
Carsten Ziegeler
[EMAIL PROTECTED]

Reply via email to