Hi Fredy,
sorry, should have read your question better. So you got multiple
webapps running now with mvn jetty:run and the remaining use case is to
have different webapps listening on different ports? I've never tried
that with mvn jetty:run. I think it should be possible. Have a look at
the Configuring Containers section on the link I've pasted below. You
can set multiple connectors. I guess all contextPaths will be available
on all connectors then.
However, if you get stuck with maven-jetty-plugin it might be an
alternative to embed jetty for your integration tests:
http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty
There you can configure jetty as you need it and have multiple ports
being responsible for specific webapps, etc.
Hope that helps,
Thomas
Maybe using an embedded jetty is an alternative for your integration
testing:
On 02/03/2011 11:20, SoftwareEngineering Hauschel wrote:
Hey,
since configuring the loginServices:
<loginServices>
<loginService
implementation="org.eclipse.jetty.security.HashLoginService">
<name>Test Realm</name>
<config>${basedir}/src/etc/realm.properties</config>
</loginService>
</loginServices>
it works. I don't know why the realm is nedded, but what's the point?
So, useCase one succeeds. Remeining two.
Fredy
2011/3/2 SoftwareEngineering Hauschel <[email protected]
<mailto:[email protected]>>
Hey Thomas,
I've found this docu, but there is now documentation on how to run
multiple webapps.
And the simple cases don't work for me ;-(
For the example "Running a Pre-assembled WAR with mvn
jetty:deploy-war" I get the following error:
2011-03-02 10:42:14.118:WARN::FAILED
org.eclipse.jetty.security.ConstraintSecurityHandler@1092447:
java.lang.IllegalStateException: No LoginService for
org.eclipse.jetty.security.authentication.BasicAuthenticator@4a0ac5 in
org.eclipse.jetty.security.ConstraintSecurityHandler@1092447
I've a Integartiontest project with some integrationtests which
need one webApp to run on port 8080.
Another one witch need >1 webApps to run on port 8080. And one
more, that should have webapps on port 8080 and some other webApps
on port 8090.
With the "old" maven-jetty-plugin the firts two useCases are no
problem. with
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.3.0.v20110203</version>
it seems to be not so easy anymore ,-(
Fredy
2011/3/2 Thomas Becker <[email protected]
<mailto:[email protected]>>
Hi Fredy,
jetty got an eclipse project a while ago. That's why you'll
find all recent jetty documentation at eclipse. The one you're
searching for is here:
http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin
I like the jetty-maven-plugin a lot. Have fun.
Cheers,
Thomas
On 02/03/2011 10:23, SoftwareEngineering Hauschel wrote:
Hi List, hope i'm right here!
I've found the how to for maven-jetty-plugin:6.1.7 here:
http://jsimonelis.blogspot.com/2008/07/multiple-web-applications-with-maven.html
No I'm searching for the how to to do this with
"jetty-maven-plugin" 7 or 8?
I have not found anything about this and I'm a little bit
confused!
Fredy
_______________________________________________
jetty-users mailing list
[email protected] <mailto:[email protected]>
https://dev.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
[email protected] <mailto:[email protected]>
https://dev.eclipse.org/mailman/listinfo/jetty-users
--
Mit freundlichen Grüßen
Fred Robert Hauschel
+49 179 6917092
Mein Strom kommt von http://www.greenpeace-energy.de und
http://www.naturstrom.de. Für eine saubere Zukunft!
Der Umstieg ist jederzeit völlig problemlos möglich:
http://www.atomausstieg-selber-machen.de.
--
Mit freundlichen Grüßen
Fred Robert Hauschel
+49 179 6917092
Mein Strom kommt von http://www.greenpeace-energy.de und
http://www.naturstrom.de. Für eine saubere Zukunft!
Der Umstieg ist jederzeit völlig problemlos möglich:
http://www.atomausstieg-selber-machen.de.
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users