User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.14) Gecko/20110221 Lightning/1.0b2 Thunderbird/3.1.8
Have a look at the attached message. It's a recent thread about the same
topic.
On 03/03/2011 20:22, Heizer, Charles wrote:
Oops, hit sent instead of save :-P
Hello,
I have two webapps siteA and siteB and both are in JETTY_HOME/webapps. I would like to run two separate instances of jetty one with each app on a different port. So I have created a jetty-sitea.xml and a jetty-siteb.xml and a context for each as well. So, my issue is since both apps are in webapps folder I don't want each other to be accessible from /. The reason I want to two instances is if one crashes I dont want the other to go down.
How can I accomplish this with jetty.. I have not really found much which describes this scenario.
Thanks,
Charles
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users
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:
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 ,-(