2014-03-31 74 views
0

我是wso2的新手..我搜索了文章,發現我們可以使用OSGI控制檯將功能安裝到碳中...例如,我想安裝學生管理功能(樣本),而不使用功能管理(,無UI)。如何使用OSGI控制檯在wso2中安裝功能

如何做到這一點...我有REPO在我的本地(說d:// P2回購)我想用OSGI控制檯嘗試

步驟安裝在碳這些功能)在OSGI控制檯中啓動wso2(bin\wso2server.bat -DosgiConsol) 2)那麼我需要添加回購權? 3)我試圖provaddrepo命令

provaddrepo文件:// d:/ P2-回購

我的P2-回購結構是 設有夾,插件文件夾,content.jar,artifact.jar

但是,儘管這樣,我得到的錯誤,如下面

`osgi> provaddrepo file://C:/Users/473294nneh/Desktop/p2-repo 
    java.io.FileNotFoundException: \\C\Users\473294nneh\Desktop\p2-repo\artifacts.xml (The network path was not found) 
      at java.io.FileOutputStream.open(Native Method) 
      at java.io.FileOutputStream.<init>(FileOutputStream.java:212) 
      at java.io.FileOutputStream.<init>(FileOutputStream.java:165) 
      at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:1187) 
      at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:1168) 
      at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.<init>(SimpleArtifactRepository.java:348) 
      at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepositoryFactory.create(SimpleArtifactRepositoryFactory.java:134) 
      at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.factoryCreate(ArtifactRepositoryManager.java:61) 
      at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.doCreateRepository(AbstractRepositoryManager.java:286) 
      at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.createRepository(ArtifactRepositoryManager.java:49) 
      at org.eclipse.equinox.internal.p2.console.ProvisioningHelper.addArtifactRepository(ProvisioningHelper.java:87) 
      at org.eclipse.equinox.internal.p2.console.ProvCommandProvider._provaddrepo(ProvCommandProvider.java:83) 
      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.eclipse.equinox.console.command.adapter.CommandProviderAdapter.main(CommandProviderAdapter.java:46) 
      at org.eclipse.equinox.console.command.adapter.CommandProviderAdapter._main(CommandProviderAdapter.java:64) 
      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.method(Reflective.java:136) 
      at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82) 
      at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:469) 
      at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:395) 
      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.method(Reflective.java:136) 
      at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82) 
      at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:469) 
      at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:395) 
      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)` 

正如我告訴,我是新來WSO2 ..>誰能幫我解決這個問題...

我用這篇文章(http://wiki.eclipse.org/Equinox_p2_Console_Users_Guide

任何人都可以請幫我解決這個問題...在感謝提前

回答

0

我相信它可能只是在「file:」之後的URI中的一個額外的正斜槓。

試試這個:

osgi> provaddrepo file:/C:/Users/473294nneh/Desktop/p2-repo 
相關問題