使用普园的总结

1. 出现对已有EOS project稍作改动之后,再启动EOS server时出现

    [eos-default][2010-03-15 11:00:54,031][ERROR][com.primeton.sca.host.impl.EOSSCADomain:97] Generate the contributin 'file:/C:/primeton/eosserver/working/eos-default/work/user/com.primeton.eos/' error.
java.lang.ClassCastException: com.ibm.wsdl.PortTypeImpl
 at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLDefinitionImpl.getWSDLObject(WSDLDefinitionImpl.java:261)
 at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLDefinitionImpl.getWSDLObject(WSDLDefinitionImpl.java:278)
 at org.apache.tuscany.sca.interfacedef.wsdl.xml.WSDLInterfaceProcessor.resolveWSDLInterface(WSDLInterfaceProcessor.java:211)
 at org.apache.tuscany.sca.interfacedef.wsdl.xml.WSDLInterfaceProcessor.resolve(WSDLInterfaceProcessor.java:238)
 at org.apache.tuscany.sca.interfacedef.wsdl.xml.WSDLInterfaceProcessor.resolve(WSDLInterfaceProcessor.java:52)
 at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:364)
 at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:170)
 at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveContracts(BaseAssemblyProcessor.java:405)
 at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:844)
 at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:87)
 at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:364)
 at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:170)
 at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:164)
 at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:56)
 at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:106)
 at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServiceImpl.java:534)
 at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:400)
 at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:189)
 at com.primeton.sca.host.impl.EOSSCADomain.buildContribution(EOSSCADomain.java:94)
 at com.primeton.sca.host.impl.EOSSCADomain.addContribution(EOSSCADomain.java:164)
 at com.primeton.ext.sca.host.ScaSystem.addContribution(ScaSystem.java:281)
 at com.primeton.sca.host.impl.SCAResourceLoadListener.load(SCAResourceLoadListener.java:97)
 at com.primeton.runtime.resource.impl.ResourceNotify.notifyResource(ResourceNotify.java:192)
 at com.primeton.runtime.resource.impl.ApplicationResourceLoaderManager.loadApplicationResource(ApplicationResourceLoaderManager.java:65)
 at com.primeton.ext.runtime.resource.startup.ResourceLoaderStartUpListener.start(ResourceLoaderStartUpListener.java:60)
 at com.primeton.runtime.core.impl.RuntimeListenerManagerImpl.startListener(RuntimeListenerManagerImpl.java:103)
 at com.primeton.ext.runtime.core.RuntimeManager.start(RuntimeManager.java:112)
 at com.primeton.ext.runtime.core.RuntimeJ2EEHost.contextInitialized(RuntimeJ2EEHost.java:145)
 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
 at org.apache.catalina.core.StandardService.start(StandardService.java:450)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
 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:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

曾就此问题问过 xiaoj ,他只说Windows的系统环境变量 path 所含内容太多,但删除 path 中的部分内容使其缩短之后,问题仍然依旧。

 

 

后来与 liyp 商量不得不将 页面流中的所有 调用服务 改为 逻辑运算。

 

2. 在EOS project中使用 carrot的聚类功能时,需要在 project 的 build path ---libraries 中添加 有关carrot的 jar包。

 

添加 jar包有学问,点击“add external jar package” 寻找到 解压carrot2-java-api-3.3.0-dev 的目录,将carrot2-core.jar 包含到project中。

另外,把 解压 解压carrot2-java-api-3.3.0-dev 的目录下 lib 目录拷贝到 project 下的 Web --- WEB-INF之下,缺省情况下,在Web --- WEB-INF之下就有一个名字为 lib的节点 但其中无内容。  需要注意的是不可以把 carrot2-java-api-3.3.0-dev 的目录下 lib 目录拷贝到 project 下的 根目录下,然后再利用project 的 build path ---libraries 中的 “add internal jar”把根目录下的lib目录添加到 与 jre库同级 ,这样做会产生以下错误信息

 

 

it is indirectly referenced from required .class files

only a type can be imported

org.codehaus.jackson.annotate.JSONMethod

the type org.corrot2.cluster cannot  be resolved

你可能感兴趣的:(总结)