On 18/11/2016 15:38, Achim Nierbeck wrote:
Hi Tim,

1) is the default configuration for Pax-Web.
2) I don't know this file ... it's not part of Pax-Web
3) ... do you have multiple Jetty instances running with Apache Karaf?

I don't know - how do I find out?

like did you install some extra bundles?

I have installed my own code under test, otherwise there wouldn't be any servlets to experiment with!

Maybe it's best to start over with a vanilla Karaf first?

regards, Achim


2016-11-18 16:35 GMT+01:00 Tim Ward <t...@telensa.com <mailto:t...@telensa.com>>:

    Ah, I've just realised I've been misleading people. Here is some
    additional information:

    (1) org.ops4j.pax.web.cfg contains

    rg.osgi.service.http.port = 8181

    (I don't know why, I didn't put it there.)

    (2) configuration.json contains

        "org.osgi.service.http.port"   : 8081

    (3) Jetty is actually serving from port 8081

    so although I'm getting those log messages suggesting that
    something somewhere has spotted changes in org.ops4j.pax.web.cfg
    there's no clear evidence that anything is taking any notice of
    its contents?


    On 18/11/2016 14:54, Christer Larsson wrote:

        The NPE is caused by the webconsole calling
        ServletResponse.setContentType(null)

        The ServletResponse javadoc is not clear on what to do in this
        case. Should it be allowed?

        Regards,
        Christer

        --
        Christer Larsson
        Makewave, http://www.makewave.com
        VP EMEA OSGi Alliance, http://www.osgi.org
        Knopflerfish OSGi, http://www.knopflerfish.org

            On 2016-11-18, at 14:43, Benson Margulies
            <bimargul...@gmail.com <mailto:bimargul...@gmail.com>> wrote:

            Unfortunately, the felix web console provokes NPE's in the
            KF http
            service. I'll stick to the Felix lite alternative.

            On Thu, Nov 17, 2016 at 3:12 PM, Christer Larsson
            <c...@makewave.com <mailto:c...@makewave.com>> wrote:

                Hi

                The repo is there, but after moving the whole web site
                to github.io <http://github.io> we discovered that
                directory listing / browsing is not supported on
                github.io <http://github.io> pages ;-)

                There is a complete listing at:
                
http://www.knopflerfish.org/releases/6.0.0/maven2/org/knopflerfish/KF-6.0.0_dependencyManagement.xml
                
<http://www.knopflerfish.org/releases/6.0.0/maven2/org/knopflerfish/KF-6.0.0_dependencyManagement.xml>

                This is the direct link;
                
http://www.knopflerfish.org/releases/6.0.0/maven2/org/knopflerfish/bundle/http/5.2.0/http-5.2.0.jar
                
<http://www.knopflerfish.org/releases/6.0.0/maven2/org/knopflerfish/bundle/http/5.2.0/http-5.2.0.jar>

                You will also need the Servlet API:
                
http://www.knopflerfish.org/releases/6.0.0/maven2/org/knopflerfish/bundle/jsdk-API/2.5.0.kf3-2/jsdk-API-2.5.0.kf3-2.jar
                
<http://www.knopflerfish.org/releases/6.0.0/maven2/org/knopflerfish/bundle/jsdk-API/2.5.0.kf3-2/jsdk-API-2.5.0.kf3-2.jar>

                Please note that Servlet API 3+ is not supported. At
                least not yet.

                Regards,
                Christer

                --
                Christer Larsson
                Makewave, http://www.makewave.com
                VP EMEA OSGi Alliance, http://www.osgi.org
                Knopflerfish OSGi, http://www.knopflerfish.org

                    On 2016-11-17, at 20:15, Benson Margulies
                    <bimargul...@gmail.com
                    <mailto:bimargul...@gmail.com>> wrote:

                    /Per, I can't figure out how to find this in any
                    public maven repo.
                    The repo described
                    http://www.knopflerfish.org/maven.html
                    <http://www.knopflerfish.org/maven.html> can't be
                    browsed, and jcenter does not show it when
                    searched contra the text on
                    the page.


On Thu, Nov 17, 2016 at 1:01 PM, <p...@makewave.com <mailto:p...@makewave.com>> wrote:

                        Knopflerfish has one too:
                        
http://www.knopflerfish.org/releases/6.0.0/docs/bundledoc/index.html?docpage=http/index.html
                        
<http://www.knopflerfish.org/releases/6.0.0/docs/bundledoc/index.html?docpage=http/index.html>

                        /Per


                        On 2016-11-17 18:13, Benson Margulies wrote:

                            On Thu, Nov 17, 2016 at 11:54 AM, Peter
                            Kriens <peter.kri...@aqute.biz
                            <mailto:peter.kri...@aqute.biz>>
                            wrote:

                                I think there is (or was?) also
                                another Http server for embedded designs.

                                I was right!
                                
https://github.com/apache/felix/tree/trunk/httplite
                                
<https://github.com/apache/felix/tree/trunk/httplite>


                            Oh! well, that's interesting. Thanks!


                                Kind regards,

                                Peter Kriens

                                On 17 nov. 2016, at 17:10, Benson
                                Margulies <bimargul...@gmail.com
                                <mailto:bimargul...@gmail.com>>
                                wrote:

                                On Thu, Nov 17, 2016 at 11:05 AM,
                                Peter Kriens <peter.kri...@aqute.biz
                                <mailto:peter.kri...@aqute.biz>>
                                wrote:

                                I think there is a simple Http server
                                at Felix written by someone from
                                Bug
                                labs?


                                That's Felix HTTP. It isn't simple. It
                                uses Jetty, and exports Jetty
                                packages in a problematic way, and has
                                some other issues I've hit. I'm
                                in a bit of a hurry to try to finish
                                something, and if there had been
                                a true self-contained http service
                                available from enroute, that might
                                have done the trick.




                                Kind regards,

                                      Peter Kriens

                                On 17 nov. 2016, at 16:37, Benson
                                Margulies <bimargul...@gmail.com
                                <mailto:bimargul...@gmail.com>>
                                wrote:

                                We've had some problems with pax-web
                                and felix HTTP, so I was looking
                                around, and read:

                                
http://enroute.osgi.org/services/org.osgi.service.http.html
                                
<http://enroute.osgi.org/services/org.osgi.service.http.html>

                                This led me to wonder if someone has
                                actually built yet another HTTP
                                service (perhaps a very simple one
                                based on the http server in the
                                JDK), or whether this is just
                                explaining the concept. Maven Central
                                does not seem to have a relevant bundle.
                                _______________________________________________
                                OSGi Developer Mail List
                                osgi-dev@mail.osgi.org
                                <mailto:osgi-dev@mail.osgi.org>
                                https://mail.osgi.org/mailman/listinfo/osgi-dev
                                
<https://mail.osgi.org/mailman/listinfo/osgi-dev>



                                _______________________________________________
                                OSGi Developer Mail List
                                osgi-dev@mail.osgi.org
                                <mailto:osgi-dev@mail.osgi.org>
                                https://mail.osgi.org/mailman/listinfo/osgi-dev
                                
<https://mail.osgi.org/mailman/listinfo/osgi-dev>

                                _______________________________________________
                                OSGi Developer Mail List
                                osgi-dev@mail.osgi.org
                                <mailto:osgi-dev@mail.osgi.org>
                                https://mail.osgi.org/mailman/listinfo/osgi-dev
                                
<https://mail.osgi.org/mailman/listinfo/osgi-dev>



                                _______________________________________________
                                OSGi Developer Mail List
                                osgi-dev@mail.osgi.org
                                <mailto:osgi-dev@mail.osgi.org>
                                https://mail.osgi.org/mailman/listinfo/osgi-dev
                                
<https://mail.osgi.org/mailman/listinfo/osgi-dev>

                            _______________________________________________
                            OSGi Developer Mail List
                            osgi-dev@mail.osgi.org
                            <mailto:osgi-dev@mail.osgi.org>
                            https://mail.osgi.org/mailman/listinfo/osgi-dev
                            <https://mail.osgi.org/mailman/listinfo/osgi-dev>

                        _______________________________________________
                        OSGi Developer Mail List
                        osgi-dev@mail.osgi.org
                        <mailto:osgi-dev@mail.osgi.org>
                        https://mail.osgi.org/mailman/listinfo/osgi-dev
                        <https://mail.osgi.org/mailman/listinfo/osgi-dev>

                    _______________________________________________
                    OSGi Developer Mail List
                    osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
                    https://mail.osgi.org/mailman/listinfo/osgi-dev
                    <https://mail.osgi.org/mailman/listinfo/osgi-dev>

                _______________________________________________
                OSGi Developer Mail List
                osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
                https://mail.osgi.org/mailman/listinfo/osgi-dev
                <https://mail.osgi.org/mailman/listinfo/osgi-dev>

            _______________________________________________
            OSGi Developer Mail List
            osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
            https://mail.osgi.org/mailman/listinfo/osgi-dev
            <https://mail.osgi.org/mailman/listinfo/osgi-dev>

        _______________________________________________
        OSGi Developer Mail List
        osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
        https://mail.osgi.org/mailman/listinfo/osgi-dev
        <https://mail.osgi.org/mailman/listinfo/osgi-dev>



-- Tim Ward


    _______________________________________________
    OSGi Developer Mail List
    osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
    https://mail.osgi.org/mailman/listinfo/osgi-dev
    <https://mail.osgi.org/mailman/listinfo/osgi-dev>




--

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master



_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev


--
Tim Ward

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to