You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Rob Walker (JIRA)" <ji...@apache.org> on 2006/08/17 10:10:16 UTC
[jira] Commented: (FELIX-111) problem with
org.apache.felix.http.jetty and HttpAdmin
[ http://issues.apache.org/jira/browse/FELIX-111?page=comments#action_12428597 ]
Rob Walker commented on FELIX-111:
----------------------------------
I'm tempted to close or move this issue. I don't believe it to be an issue with the Http Service itself, but more an issue with the Http Admin bundle in the original OBR.
I can't actually find either an HTTP Admin or an HTTP Shell version in an OBR which will actually load under latest felix. The original OBR () descriptor doesn't seem to be compatible with latest Felix bundlerepository client.
The OBR2 (http://oscar-osgi.sourceforge.net/obr2/repository.xml) HTTP Shell also seems to want the old 'oscar' OBR package name:
-> obr deploy org.ungoverned.osgi.bundle.httpshell
Unsatisfied requirement(s):
---------------------------
(&(package=org.ungoverned.osgi.service.bundlerepository)(version>=0.0.0))
HTTP Shell
->
Whereas latest Felix uses the new osgi package name:
-> packages 3
BundleRepository (3): org.osgi.service.obr; version=0.0.0
->
If anyone is interested in either of these bundles I'd be prepared to look at moving them into the Felix SVN and updating them to work.
If not, I believe this issue should be closed.
> problem with org.apache.felix.http.jetty and HttpAdmin
> ------------------------------------------------------
>
> Key: FELIX-111
> URL: http://issues.apache.org/jira/browse/FELIX-111
> Project: Felix
> Issue Type: Bug
> Components: HTTP Service
> Affects Versions: 0.8.0
> Environment: WinXP, Sun JDK 5.0
> Reporter: Didier DONSEZ
>
> problem with org.apache.felix.http.jetty and HttpAdmin
> I try to start the HttpAdmin on Felix with org.apache.felix.http.jetty
> but the trace is dumped and http://localhost:8080/admin returns 404 Not Found
> Is it a bug ? a misuse ?
> Didier
> Remark: the HttpAdmin (found on the http://oscar-osgi.sf.net/obr2/repository.xml)
> do not import org.osgi.framework in the manifest. You need to patch it !
> > obr start "HTTP Service"
> Target resource(s):
> -------------------
> HTTP Service (0.8.0.SNAPSHOT)
> Deploying...DEBUG: WIRE: 4.0 -> javax.servlet.http -> 4.0
> DEBUG: WIRE: 4.0 -> javax.servlet -> 4.0
> DEBUG: WIRE: 4.0 -> org.osgi.service.http -> 4.0
> DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
> 13:32:32.218 EVENT Starting Jetty/4.2.x
> 13:32:32.265 EVENT Started SocketListener on 0.0.0.0:8080
> 13:32:32.265 EVENT Started org.mortbay.http.HttpServer@1fee6fc
> done.
> -> start file:C:\osgi\bundlefarm\httpadmin\httpadmin.jar
> DEBUG: WIRE: 5.0 -> javax.servlet.http -> 4.0
> DEBUG: WIRE: 5.0 -> javax.servlet -> 4.0
> DEBUG: WIRE: 5.0 -> org.osgi.service.http -> 4.0
> DEBUG: WIRE: 5.0 -> org.osgi.framework -> 0
> ERROR: ****
> ****
> Package 'javax.servlet.http' is imported by bundle 4 from bundle 4, but the expo
> rted package from bundle 4 does not contain the requested class 'javax.servlet.h
> ttp.LocalStrings'. Please verify that the class name is correct in the importing
> bundle 4 and/or that the exported package is correctly bundled in 4.
> ****
> ****
> ERROR: ****
> ****
> Package 'javax.servlet.http' is imported by bundle 4 from bundle 4, but the expo
> rted package from bundle 4 does not contain the requested class 'javax.servlet.h
> ttp.LocalStrings_fr'. Please verify that the class name is correct in the import
> ing bundle 4 and/or that the exported package is correctly bundled in 4.
> ****
> ****
> WARNING: javax/servlet/http/LocalStrings_fr.properties (org.apache.felix.modulel
> oader.ResourceNotFoundException: javax/servlet/http/LocalStrings_fr.properties)
> ERROR: ****
> ****
> Package 'javax.servlet.http' is imported by bundle 4 from bundle 4, but the expo
> rted package from bundle 4 does not contain the requested class 'javax.servlet.h
> ttp.LocalStrings_fr_FR'. Please verify that the class name is correct in the imp
> orting bundle 4 and/or that the exported package is correctly bundled in 4.
> ****
> ****
> WARNING: javax/servlet/http/LocalStrings_fr_FR.properties (org.apache.felix.modu
> leloader.ResourceNotFoundException: javax/servlet/http/LocalStrings_fr_FR.proper
> ties)
> ERROR: ****
> ****
> Class 'org/mortbay/http/mime' was not found. Bundle 4 does not import package ''
> , nor is the package exported by any other bundle or available from the system c
> lass loader.
> ****
> ****
> ERROR: ****
> ****
> Class 'org/mortbay/http/mime_fr' was not found. Bundle 4 does not import package
> '', nor is the package exported by any other bundle or available from the syste
> m class loader.
> ****
> ****
> ERROR: ****
> ****
> Class 'org/mortbay/http/mime_fr_FR' was not found. Bundle 4 does not import pack
> age '', nor is the package exported by any other bundle or available from the sy
> stem class loader.
> ****
> ****
> ERROR: ****
> ****
> Class 'org/mortbay/http/encoding' was not found. Bundle 4 does not import packag
> e '', nor is the package exported by any other bundle or available from the syst
> em class loader.
> ****
> ****
> ERROR: ****
> ****
> Class 'org/mortbay/http/encoding_fr' was not found. Bundle 4 does not import pac
> kage '', nor is the package exported by any other bundle or available from the s
> ystem class loader.
> ****
> ****
> ERROR: ****
> ****
> Class 'org/mortbay/http/encoding_fr_FR' was not found. Bundle 4 does not import
> package '', nor is the package exported by any other bundle or available from th
> e system class loader.
> ****
> ****
> 13:32:36.859 EVENT Started ServletHttpContext[/]
> 13:32:36.875 EVENT Started HttpContext[/admin/resource]
> -> ps
> START LEVEL 1
> ID State Level Name
> [ 0] [Active ] [ 0] System Bundle (0.8.0.SNAPSHOT)
> [ 1] [Active ] [ 1] ShellService (0.8.0.SNAPSHOT)
> [ 2] [Active ] [ 1] ShellTUI (0.8.0.SNAPSHOT)
> [ 3] [Active ] [ 1] BundleRepository (0.8.0.SNAPSHOT)
> [ 4] [Active ] [ 1] HTTP Service (0.8.0.SNAPSHOT)
> [ 5] [Active ] [ 1] HTTP Admin (1.0.0)
> ->
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
Re: [jira] Commented: (FELIX-111) problem with org.apache.felix.http.jetty
and HttpAdmin
Posted by Didier Donsez <di...@imag.fr>.
I made a partial port of httpshell for Felix
(the obr deploy action must be done)
http://www-adele.imag.fr/users/Didier.Donsez/dev/osgi/org.apache.felix.http.shell/
Didier
Rob Walker (JIRA) wrote:
> [ http://issues.apache.org/jira/browse/FELIX-111?page=comments#action_12428597 ]
>
>Rob Walker commented on FELIX-111:
>----------------------------------
>
>I'm tempted to close or move this issue. I don't believe it to be an issue with the Http Service itself, but more an issue with the Http Admin bundle in the original OBR.
>
>I can't actually find either an HTTP Admin or an HTTP Shell version in an OBR which will actually load under latest felix. The original OBR () descriptor doesn't seem to be compatible with latest Felix bundlerepository client.
>
>The OBR2 (http://oscar-osgi.sourceforge.net/obr2/repository.xml) HTTP Shell also seems to want the old 'oscar' OBR package name:
>
> -> obr deploy org.ungoverned.osgi.bundle.httpshell
> Unsatisfied requirement(s):
> ---------------------------
> (&(package=org.ungoverned.osgi.service.bundlerepository)(version>=0.0.0))
> HTTP Shell
> ->
>
>Whereas latest Felix uses the new osgi package name:
>
> -> packages 3
> BundleRepository (3): org.osgi.service.obr; version=0.0.0
> ->
>
>If anyone is interested in either of these bundles I'd be prepared to look at moving them into the Felix SVN and updating them to work.
>
>If not, I believe this issue should be closed.
>
>
>
>
>
>>problem with org.apache.felix.http.jetty and HttpAdmin
>>------------------------------------------------------
>>
>> Key: FELIX-111
>> URL: http://issues.apache.org/jira/browse/FELIX-111
>> Project: Felix
>> Issue Type: Bug
>> Components: HTTP Service
>> Affects Versions: 0.8.0
>> Environment: WinXP, Sun JDK 5.0
>> Reporter: Didier DONSEZ
>>
>>problem with org.apache.felix.http.jetty and HttpAdmin
>>I try to start the HttpAdmin on Felix with org.apache.felix.http.jetty
>>but the trace is dumped and http://localhost:8080/admin returns 404 Not Found
>>Is it a bug ? a misuse ?
>>Didier
>>Remark: the HttpAdmin (found on the http://oscar-osgi.sf.net/obr2/repository.xml)
>>do not import org.osgi.framework in the manifest. You need to patch it !
>>
>>
>>>obr start "HTTP Service"
>>>
>>>
>>Target resource(s):
>>-------------------
>> HTTP Service (0.8.0.SNAPSHOT)
>>Deploying...DEBUG: WIRE: 4.0 -> javax.servlet.http -> 4.0
>>DEBUG: WIRE: 4.0 -> javax.servlet -> 4.0
>>DEBUG: WIRE: 4.0 -> org.osgi.service.http -> 4.0
>>DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
>>13:32:32.218 EVENT Starting Jetty/4.2.x
>>13:32:32.265 EVENT Started SocketListener on 0.0.0.0:8080
>>13:32:32.265 EVENT Started org.mortbay.http.HttpServer@1fee6fc
>>done.
>>-> start file:C:\osgi\bundlefarm\httpadmin\httpadmin.jar
>>DEBUG: WIRE: 5.0 -> javax.servlet.http -> 4.0
>>DEBUG: WIRE: 5.0 -> javax.servlet -> 4.0
>>DEBUG: WIRE: 5.0 -> org.osgi.service.http -> 4.0
>>DEBUG: WIRE: 5.0 -> org.osgi.framework -> 0
>>ERROR: ****
>>****
>>Package 'javax.servlet.http' is imported by bundle 4 from bundle 4, but the expo
>>rted package from bundle 4 does not contain the requested class 'javax.servlet.h
>>ttp.LocalStrings'. Please verify that the class name is correct in the importing
>> bundle 4 and/or that the exported package is correctly bundled in 4.
>>****
>>****
>>ERROR: ****
>>****
>>Package 'javax.servlet.http' is imported by bundle 4 from bundle 4, but the expo
>>rted package from bundle 4 does not contain the requested class 'javax.servlet.h
>>ttp.LocalStrings_fr'. Please verify that the class name is correct in the import
>>ing bundle 4 and/or that the exported package is correctly bundled in 4.
>>****
>>****
>>WARNING: javax/servlet/http/LocalStrings_fr.properties (org.apache.felix.modulel
>>oader.ResourceNotFoundException: javax/servlet/http/LocalStrings_fr.properties)
>>ERROR: ****
>>****
>>Package 'javax.servlet.http' is imported by bundle 4 from bundle 4, but the expo
>>rted package from bundle 4 does not contain the requested class 'javax.servlet.h
>>ttp.LocalStrings_fr_FR'. Please verify that the class name is correct in the imp
>>orting bundle 4 and/or that the exported package is correctly bundled in 4.
>>****
>>****
>>WARNING: javax/servlet/http/LocalStrings_fr_FR.properties (org.apache.felix.modu
>>leloader.ResourceNotFoundException: javax/servlet/http/LocalStrings_fr_FR.proper
>>ties)
>>ERROR: ****
>>****
>>Class 'org/mortbay/http/mime' was not found. Bundle 4 does not import package ''
>>, nor is the package exported by any other bundle or available from the system c
>>lass loader.
>>****
>>****
>>ERROR: ****
>>****
>>Class 'org/mortbay/http/mime_fr' was not found. Bundle 4 does not import package
>> '', nor is the package exported by any other bundle or available from the syste
>>m class loader.
>>****
>>****
>>ERROR: ****
>>****
>>Class 'org/mortbay/http/mime_fr_FR' was not found. Bundle 4 does not import pack
>>age '', nor is the package exported by any other bundle or available from the sy
>>stem class loader.
>>****
>>****
>>ERROR: ****
>>****
>>Class 'org/mortbay/http/encoding' was not found. Bundle 4 does not import packag
>>e '', nor is the package exported by any other bundle or available from the syst
>>em class loader.
>>****
>>****
>>ERROR: ****
>>****
>>Class 'org/mortbay/http/encoding_fr' was not found. Bundle 4 does not import pac
>>kage '', nor is the package exported by any other bundle or available from the s
>>ystem class loader.
>>****
>>****
>>ERROR: ****
>>****
>>Class 'org/mortbay/http/encoding_fr_FR' was not found. Bundle 4 does not import
>>package '', nor is the package exported by any other bundle or available from th
>>e system class loader.
>>****
>>****
>>13:32:36.859 EVENT Started ServletHttpContext[/]
>>13:32:36.875 EVENT Started HttpContext[/admin/resource]
>>-> ps
>>START LEVEL 1
>> ID State Level Name
>>[ 0] [Active ] [ 0] System Bundle (0.8.0.SNAPSHOT)
>>[ 1] [Active ] [ 1] ShellService (0.8.0.SNAPSHOT)
>>[ 2] [Active ] [ 1] ShellTUI (0.8.0.SNAPSHOT)
>>[ 3] [Active ] [ 1] BundleRepository (0.8.0.SNAPSHOT)
>>[ 4] [Active ] [ 1] HTTP Service (0.8.0.SNAPSHOT)
>>[ 5] [Active ] [ 1] HTTP Admin (1.0.0)
>>->
>>
>>
>
>
>
--
---------------------------------------------------------
Didier DONSEZ
Laboratoire LSR, Institut Imag, Universite Joseph Fourier
Bat. C, 220 rue de la Chimie, Domaine Universitaire
BP 53, 38041 Grenoble Cedex 9, France
GPS : lat 45°11'38.3"N, lon 05°46'14.7"E, alt 223m
http://www-adele.imag.fr/users/Didier.Donsez/map/map.html
Tel : +33 4 76 63 55 49 Fax : +33 4 76 63 55 50
mailto:Didier.Donsez@imag.fr
URL: http://www-adele.imag.fr/users/Didier.Donsez
---------------------------------------------------------