[ https://issues.apache.org/jira/browse/FELIX-4359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13852679#comment-13852679 ]
antonio castellón commented on FELIX-4359: ------------------------------------------ Myabe I´m not explained very well... forget about to install other bundles (originals from the subprojects referenced in the Felix website), if I take a clean installation and run it with the proxy parameters, when I try to execute some OBR commands like obr:list then the result is that it has not internet access, see the follow exception: <raw><code> --------------------------------------------------------------------------------- C:\JAVA\Servers\felix-framework-4.2.1>java -jar bin/felix.jar ____________________________ Welcome to Apache Felix Gogo g! lb START LEVEL 1 ID|State |Level|Name 0|Active | 0|System Bundle (4.2.1) 1|Active | 1|Apache Felix Bundle Repository (1.6.6) 2|Active | 1|Apache Felix Gogo Command (0.12.0) 3|Active | 1|Apache Felix Gogo Runtime (0.10.0) 4|Active | 1|Apache Felix Gogo Shell (0.10.0) g! obr:list WARNING: Repository url http://felix.apache.org/obr/releases.xml cannot be used. Skipped. java.io.IOException: Error accessing http://felix.apache.org/obr/releases.xml at org.apache.felix.bundlerepository.impl.FileUtil.openURL(FileUtil.java:217) at org.apache.felix.bundlerepository.impl.FileUtil.openURL(FileUtil.java:199) at org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:113) at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl$1.run(RepositoryAdminImpl.java:115) at java.security.AccessController.doPrivileged(Native Method) at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:111) at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:99) at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:94) at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.initialize(RepositoryAdminImpl.java:280) at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.discoverResources(RepositoryAdminImpl.java:190) at org.apache.felix.gogo.command.OBR.list(OBR.java:173) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137) at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82) at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477) at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403) at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120) at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89) at org.apache.felix.gogo.shell.Console.run(Console.java:62) at org.apache.felix.gogo.shell.Shell.console(Shell.java:203) at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:128) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137) at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82) at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477) at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403) at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120) at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89) at org.apache.felix.gogo.shell.Activator.run(Activator.java:75) at java.lang.Thread.run(Thread.java:722) Caused by: java.net.UnknownHostException: felix.apache.org at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:378) at sun.net.www.http.HttpClient.openServer(HttpClient.java:473) at sun.net.www.http.HttpClient.<init>(HttpClient.java:203) at sun.net.www.http.HttpClient.New(HttpClient.java:290) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1002) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:950) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299) at org.apache.felix.bundlerepository.impl.FileUtil.openURL(FileUtil.java:209) ... 39 more No matching bundles. g! </raw></code> --------------------------------------------------------------------------------- Dosen´t matter if I put the parameters into the system.properties or into the config.properties or as arguments in the execution of the framework. Currently I'm using Equinox without any problem, but I will be gald to use directly Felix in my projects...maybe I need something like "Felix by dummys", but I think that I used exactly the steps declared in the QuickStart Guide. > Proxy settings dosen't work > --------------------------- > > Key: FELIX-4359 > URL: https://issues.apache.org/jira/browse/FELIX-4359 > Project: Felix > Issue Type: Bug > Components: Bundle Repository (OBR) > Affects Versions: framework-4.2.1 > Reporter: antonio castellón > > When we use the different options to execute Felix with a Proxy configuration > , the dependencies are not downloaded because the configuration is not > working: > According to the manual we have used: > 1.- by command line : > java -Dhttp.proxyHost=http://******* -Dhttp.proxyPort=8000 > -Dhttp.proxyUser=******* -Dhttp.proxyPassword=****** -jar bin/felix.jar > 2.- Using system.properties file into the folders: lib and conf > The exception generated is always: > <code> > ERROR: Bundle org.apache.felix.http.api [9] Error starting > file:/C:/JAVA/felix-framework-4.2.1/bundle/org.apache.felix.http.api-2.2.2.jar > (org.osgi.framework.BundleException: Unresolved constraint in bundle > org.apache.felix.http.api [9]: Unable to re > solve 9.0: missing requirement [9.0] osgi.wiring.package; > (osgi.wiring.package=javax.servlet)) > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.apache.felix.http.api [9]: Unable to resolve 9.0: missing requirement > [9.0] osgi.wiring.package; (osgi.wiring.package=javax.servlet) > at > org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974) > at org.apache.felix.framework.Felix.startBundle(Felix.java:2037) > at > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291) > at > org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304) > at java.lang.Thread.run(Thread.java:722) > ____________________________ > Welcome to Apache Felix Gogo > </code> > Any ideas? because I used others OSGi platforms like Knopflerfish without any > problem to access to the bundles repository. And also, we have other > applications with the same parameters like Maven or IDE Eclipse Respository > and I have no problem to access using this "restriction". > Thanks in advance for your answers and Happy New Year > Antonio -- This message was sent by Atlassian JIRA (v6.1.4#6159)