0

我正在尝试在wso2 Carbon version 4.0.1 运行的 VMWare 虚拟机上安装新功能CentOS 6.3

我按照这些步骤

  1. 下载二进制版本wso2carbon-4.0.1 (wso2carbon-4.0.1)
  2. 在路径 /opt/wso2/ 下提取
  3. 进入/opt/wso2/wso2carbon-4.0.1/bin and edited wso2server.sh添加这些行:

    JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/
    PATH=$JAVA_HOME/bin:$PATH
    export PATH
    export JAVA_HOME
    
  4. 使用 ./wso2server.sh 运行服务器

    服务器运行良好

  5. 下载 4.0.1 版本的文件 p2-repo.zip 并在 /opt/wso2/ 中解压缩

  6. 登录https://localhost:9443/carbon并在 features->Repository Management 中添加一个新的存储库,指向 file:///opt/wso2/p2-repo
  7. 转到可用功能点击“查找功能”
  8. 从列表中我选择了“API 管理器”,然后单击安装功能。

此时会出现一个窗口,告诉您发生了配置错误。正在运行的终端wso2server.sh说:

[2012-09-24 18:27:23,118] ERROR {org.wso2.carbon.feature.mgt.services.prov.ProvisioningAdminService} -  Error occured while performing provisioning action
org.wso2.carbon.feature.mgt.core.ProvisioningException: An error occurred while configuring the installed items
  session context was:(profile=WSO2CarbonProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null --> [R]org.jaggeryjs.server.feature.group 0.9.0.ALPHA1, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
  I/O Error while copying /opt/wso2/wso2carbon-4.0.1/repository/components/features/org.jaggeryjs.server_0.9.0.ALPHA1/modules - see details.
    Source: /opt/wso2/wso2carbon-4.0.1/repository/components/features/org.jaggeryjs.server_0.9.0.ALPHA1/modulesdoes not exists
    at org.wso2.carbon.feature.mgt.core.util.ProvisioningUtils.performProvisioningAction(ProvisioningUtils.java:77)
    at org.wso2.carbon.feature.mgt.core.util.ProvisioningUtils.performProvisioningAction(ProvisioningUtils.java:86)
    at org.wso2.carbon.feature.mgt.services.prov.ProvisioningAdminService.performProvisioningAction(ProvisioningAdminService.java:278)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
    at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
    at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
    at org.apache.axis2.receivers.AbstractMessageReceiver$AsyncMessageReceiverWorker.run(AbstractMessageReceiver.java:271)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

我哪里做错了?

4

1 回答 1

0

我搬到了Ubuntu 10.04 x64openjdk

OpenJDK 版本为:java 版本 "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-1ubuntu0.10.04.1)OpenJDK 64 位服务器 VM(构建 20.0-b12,混合模式) ...现在使用与上述相同的 p2-repo.zip 可以正常安装功能!

感谢 Artemix 的建议!

于 2012-10-02T15:14:32.187 回答