Java Environment:
-----------------
 java.home = C:\Programs\Java\jdk1.8.0\jre
 java.vm.vendor = Oracle Corporation
 java.vm.version = 25.60-b23
 java.vm.name = Java HotSpot(TM) 64-Bit Server VM
 java.vm.info = mixed mode
 java.runtime.name = Java(TM) SE Runtime Environment
 java.runtime.version = 1.8.0_60-b60
 java.io.tmpdir = C:\Programs\cygwin64\tmp\
 user.dir = D:\http2\jetty\jetty-9.3.12\test-h1-base
 user.language = zh
 user.country = CN

Jetty Environment:
-----------------
 jetty.version = 9.3.12-SNAPSHOT
 jetty.tag.version = master
 jetty.home = D:\http2\jetty\jetty-9.3.12
 jetty.base = D:\http2\jetty\jetty-9.3.12\test-h1-base

Config Search Order:
--------------------
 <command-line>
 ${jetty.base} -> D:\http2\jetty\jetty-9.3.12\test-h1-base
 ${jetty.home} -> D:\http2\jetty\jetty-9.3.12


JVM Arguments:
--------------
 (no jvm args specified)

System Properties:
------------------
 (no system properties specified)

Properties:
-----------
 java.version = 1.8.0_60
 java.version.major = 1
 java.version.minor = 8
 java.version.revision = 0
 java.version.update = 60

Jetty Server Classpath:
-----------------------
Version Information on 27 entries in the classpath.
Note: order presented here is how they would appear on the classpath.
      changes to the --module=name command line options will be reflected
here.
 0:                    3.1.0 | ${jetty.home}\lib\servlet-api-3.1.jar
 1:                 3.1.0.M0 | ${jetty.home}\lib\jetty-schemas-3.1.jar
 2:          9.3.12-SNAPSHOT |
${jetty.home}\lib\jetty-http-9.3.12-SNAPSHOT.jar
 3:          9.3.12-SNAPSHOT |
${jetty.home}\lib\jetty-server-9.3.12-SNAPSHOT.jar
 4:          9.3.12-SNAPSHOT |
${jetty.home}\lib\jetty-xml-9.3.12-SNAPSHOT.jar
 5:          9.3.12-SNAPSHOT |
${jetty.home}\lib\jetty-util-9.3.12-SNAPSHOT.jar
 6:          9.3.12-SNAPSHOT |
${jetty.home}\lib\jetty-io-9.3.12-SNAPSHOT.jar
 7:          9.3.12-SNAPSHOT |
${jetty.home}\lib\jetty-jndi-9.3.12-SNAPSHOT.jar
 8:      1.4.1.v201005082020 |
${jetty.home}\lib\jndi\javax.mail.glassfish-1.4.1.v201005082020.jar
 9:                      1.2 |
${jetty.home}\lib\jndi\javax.transaction-api-1.2.jar
10:          9.3.12-SNAPSHOT |
${jetty.home}\lib\jetty-security-9.3.12-SNAPSHOT.jar
11:          9.3.12-SNAPSHOT |
${jetty.home}\lib\jetty-servlet-9.3.12-SNAPSHOT.jar
12:          9.3.12-SNAPSHOT |
${jetty.home}\lib\jetty-webapp-9.3.12-SNAPSHOT.jar
13:          9.3.12-SNAPSHOT |
${jetty.home}\lib\jetty-deploy-9.3.12-SNAPSHOT.jar
14:          9.3.12-SNAPSHOT |
${jetty.home}\lib\jetty-plus-9.3.12-SNAPSHOT.jar
15:          9.3.12-SNAPSHOT |
${jetty.home}\lib\jetty-annotations-9.3.12-SNAPSHOT.jar
16:                    5.0.1 | ${jetty.home}\lib\annotations\asm-5.0.1.jar
17:                    5.0.1 |
${jetty.home}\lib\annotations\asm-commons-5.0.1.jar
18:                      1.2 |
${jetty.home}\lib\annotations\javax.annotation-api-1.2.jar
19:                      1.0 |
${jetty.home}\lib\websocket\javax.websocket-api-1.0.jar
20:          9.3.12-SNAPSHOT |
${jetty.home}\lib\websocket\javax-websocket-client-impl-9.3.12-SNAPSHOT.jar
21:          9.3.12-SNAPSHOT |
${jetty.home}\lib\websocket\javax-websocket-server-impl-9.3.12-SNAPSHOT.jar
22:          9.3.12-SNAPSHOT |
${jetty.home}\lib\websocket\websocket-api-9.3.12-SNAPSHOT.jar
23:          9.3.12-SNAPSHOT |
${jetty.home}\lib\websocket\websocket-client-9.3.12-SNAPSHOT.jar
24:          9.3.12-SNAPSHOT |
${jetty.home}\lib\websocket\websocket-common-9.3.12-SNAPSHOT.jar
25:          9.3.12-SNAPSHOT |
${jetty.home}\lib\websocket\websocket-server-9.3.12-SNAPSHOT.jar
26:          9.3.12-SNAPSHOT |
${jetty.home}\lib\websocket\websocket-servlet-9.3.12-SNAPSHOT.jar

Jetty Active XMLs:
------------------
 ${jetty.home}\etc\jetty.xml
 ${jetty.home}\etc\jetty-http.xml
 ${jetty.home}\etc\jetty-ssl.xml
 ${jetty.home}\etc\jetty-ssl-context.xml
 ${jetty.home}\etc\jetty-https.xml
 ${jetty.home}\etc\jetty-deploy.xml
 ${jetty.home}\etc\jetty-plus.xml
 ${jetty.home}\etc\jetty-annotations.xml


2016-09-08 6:15 GMT+08:00 Joakim Erdfelt <[email protected]>:

> Run this and report back ...
>
> $ cd /path/to/mybase
> $ java -jar /path/to/jetty-dist/start.jar --list-config
>
>
>
> Joakim Erdfelt / [email protected]
>
> On Wed, Sep 7, 2016 at 2:51 PM, John Jiang <[email protected]>
> wrote:
>
>> Hi,
>> BTW, I suffered from another problem when migrated my base to the new
>> built Jetty.
>>
>> My application setups a Basic Authentication, like the below,
>> web.xml
>> <login-config>
>> <auth-method>BASIC</auth-method>
>> <realm-name>Test Realm</realm-name>
>> </login-config>
>> <security-constraint>
>> <web-resource-collection>
>>     <web-resource-name>Authentication</web-resource-name>
>>     <url-pattern>/auth/*</url-pattern>
>> </web-resource-collection>
>>
>> <auth-constraint>
>>     <role-name>admin</role-name>
>>     <role-name>user</role-name>
>>     <role-name>moderator</role-name>
>> </auth-constraint>
>> </security-constraint>
>>
>> mybase/etc/test-realm.xml
>> <?xml version="1.0"?>
>> <!DOCTYPE Configure PUBLIC "-" "http://www.eclipse.org/jetty/
>> configure_9_3.dtd">
>> <Configure id="Server" class="org.eclipse.jetty.server.Server">
>>     <!-- =========================================================== -->
>>     <!-- Configure Authentication Login Service                      -->
>>     <!-- Realms may be configured for the entire server here, or     -->
>>     <!-- they can be configured for a specific web app in a context  -->
>>     <!-- configuration (see $(jetty.home)/webapps/test.xml for an    -->
>>     <!-- example).                                                   -->
>>     <!-- =========================================================== -->
>>     <Call name="addBean">
>>       <Arg>
>>         <New class="org.eclipse.jetty.security.HashLoginService">
>>           <Set name="name">Test Realm</Set>
>>           <Set name="config"><Property name="jetty.base"
>> default="etc/realm.properties"/></Set>
>>           <Set name="refreshInterval">0</Set>
>>         </New>
>>       </Arg>
>>     </Call>
>>
>>     <Get class="org.eclipse.jetty.util.log.Log" name="rootLogger">
>>       <Call name="warn"><Arg>demo test-realm is deployed. DO NOT USE IN
>> PRODUCTION!</Arg></Call>
>>     </Get>
>> </Configure>
>>
>> But the server startup threw the following exception,
>> java.lang.IllegalStateException: No LoginService for
>> org.eclipse.jetty.security.authentication.BasicAuthenticator@24a35978 in
>> org.eclipse.jetty.security.ConstraintSecurityHandler@16f7c8c1
>>         at org.eclipse.jetty.security.authentication.LoginAuthenticator
>> .setConfiguration(LoginAuthenticator.java:76)
>>         at org.eclipse.jetty.security.SecurityHandler.doStart(SecurityH
>> andler.java:354)
>>         at org.eclipse.jetty.security.ConstraintSecurityHandler.doStart
>> (ConstraintSecurityHandler.java:448)
>>         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
>> AbstractLifeCycle.java:68)
>>         at org.eclipse.jetty.util.component.ContainerLifeCycle.start(
>> ContainerLifeCycle.java:131)
>>         at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(
>> ContainerLifeCycle.java:105)
>>         at org.eclipse.jetty.server.handler.AbstractHandler.doStart(
>> AbstractHandler.java:61)
>>         at org.eclipse.jetty.server.handler.ScopedHandler.doStart(Scope
>> dHandler.java:120)
>>         at org.eclipse.jetty.server.session.SessionHandler.doStart(
>> SessionHandler.java:116)
>>         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
>> AbstractLifeCycle.java:68)
>>         at org.eclipse.jetty.util.component.ContainerLifeCycle.start(
>> ContainerLifeCycle.java:131)
>>         at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(
>> ContainerLifeCycle.java:105)
>>         at org.eclipse.jetty.server.handler.AbstractHandler.doStart(
>> AbstractHandler.java:61)
>>         at org.eclipse.jetty.server.handler.ScopedHandler.doStart(Scope
>> dHandler.java:120)
>>
>> Does Jetty make some change on this area?
>> Or I missed something on the migration?
>>
>> 2016-09-06 21:00 GMT+08:00 Simone Bordet <[email protected]>:
>>
>>> Hi,
>>>
>>> On Tue, Sep 6, 2016 at 2:24 PM, John Jiang <[email protected]>
>>> wrote:
>>> > Hi Simone,
>>> >
>>> > 2016-09-06 18:03 GMT+08:00 Simone Bordet <[email protected]>:
>>> >>
>>> >> Hi,
>>> >>
>>> >> On Tue, Sep 6, 2016 at 12:00 PM, Simone Bordet <[email protected]>
>>> >> wrote:
>>> >> > It was a bug, tracked here:
>>> >> > https://github.com/eclipse/jetty.project/issues/902
>>> >>
>>> >> It's fixed, can you try the latest Jetty 9.3.x code and report back if
>>> >> it's working for you ?
>>> >
>>> > Clone all of the source codes and build it by myself?
>>>
>>> Yes, branch "jetty-9.3.x" and:
>>>
>>> mvn install -DskipTests=true
>>>
>>> for a quick build.
>>>
>>> --
>>> Simone Bordet
>>> ----
>>> http://cometd.org
>>> http://webtide.com
>>> Developer advice, training, services and support
>>> from the Jetty & CometD experts.
>>> _______________________________________________
>>> jetty-users mailing list
>>> [email protected]
>>> To change your delivery options, retrieve your password, or unsubscribe
>>> from this list, visit
>>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>>
>>
>>
>> _______________________________________________
>> jetty-users mailing list
>> [email protected]
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>
>
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to