2014-03-31 44 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 
相关问题