2013-04-15 68 views
0

只是想使用Eclipse中加載Orbeon API:orbeon形式:Eclipse項目

構建路徑的重新配置後並確定所有未更新的罐子依賴,我在最後堅持這一階沒有正確加載的類?

請幫忙嗎?

[scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsContainingDocument.java:62: error: not found: type XBLContainer 
    [scalac] public class XFormsContainingDocument extends XBLContainer implements XFormsDocumentLifecycle, Cacheable, XFormsObject { 
    [scalac]            ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/resources/ResourceNotFoundException.java:21: error: not found: type OXFException 
    [scalac] public class ResourceNotFoundException extends OXFException { 
    [scalac]            ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/common/PEVersion.scala:57: error: fruitless type test: a value of type Throwable cannot also be a org.orbeon.oxf.resources.ResourceNotFoundException 
    [scalac]       case e: ResourceNotFoundException ? 
    [scalac]        ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/pipeline/api/ExternalContext.java:164: error: not found: type WebAppContext 
    [scalac]  WebAppContext getWebAppContext(); 
    [scalac] ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/processor/ProcessorImpl.java:108: error: not found: type PropertySet 
    [scalac]  protected PropertySet getPropertySet() { 
    [scalac]    ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/controller/PageFlowControllerProcessor.scala:224: error: type mismatch; 
    [scalac] found : Any 
    [scalac] required: String 
    [scalac]      Seq(PageOrServiceElement(None, submissionPath, Pattern.compile(submissionPath), None, submissionModel, None, configRoot, SubmissionPublicMethods, isPage = true)) 
    [scalac]             ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/controller/PageFlowControllerProcessor.scala:275: error: could not find implicit value for parameter propertySet: org.orbeon.oxf.properties.PropertySet 
    [scalac]     case page: PageOrServiceElement ? PageOrServiceRoute(page, compile) 
    [scalac]                 ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/controller/PageFlowControllerProcessor.scala:91: error: fruitless type test: a value of type Throwable cannot also be a org.orbeon.oxf.resources.ResourceNotFoundException 
    [scalac]     case e: ResourceNotFoundException ? e.resource 
    [scalac]      ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/controller/PageFlowControllerProcessor.scala:171: error: fruitless type test: a value of type Throwable cannot also be a org.orbeon.oxf.resources.ResourceNotFoundException 
    [scalac]       case e: ResourceNotFoundException      ? if (route.isPage) runNotFoundRoute(Some(t)) else sendNotFound(Some(t)) 
    [scalac]        ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/action/XFormsAPI.scala:219: error: value models is not a member of org.orbeon.oxf.xforms.XFormsContainingDocument 
    [scalac]   containingDocument.models find (_.getId == modelId) 
    [scalac]       ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsContainingDocument.java:591: error: not found: type RequestStats 
    [scalac]  public RequestStats getRequestStats() { 
    [scalac]   ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/model/DataModel.scala:181: error: value getInstanceForNode is not a member of org.orbeon.oxf.xforms.XFormsContainingDocument 
    [scalac]   Option(containingDocument.getInstanceForNode(nodeInfo)) map (_.getEffectiveId) 
    [scalac]         ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/model/DataModel.scala:190: error: value getInstanceForNode is not a member of org.orbeon.oxf.xforms.XFormsContainingDocument 
    [scalac]   Option(containingDocument.getInstanceForNode(nodeInfo)) match { 
    [scalac]         ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/model/DataModel.scala:193: error: value markModified is not a member of Any 
    [scalac]     modifiedInstance.markModified() 
    [scalac]        ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/model/DataModel.scala:194: error: value model is not a member of Any 
    [scalac]     modifiedInstance.model.markValueChange(nodeInfo, isCalculate) 
    [scalac]        ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/model/DataModel.scala:197: error: type mismatch; 
    [scalac] found : Any 
    [scalac] required: org.orbeon.oxf.xforms.event.XFormsEventTarget 
    [scalac]     Dispatch.dispatchEvent(new XXFormsValueChangedEvent(modifiedInstance, nodeInfo, oldValue, newValue)) 
    [scalac]                 ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsModel.java:58: error: not found: type XFormsEventObserver 
    [scalac] public class XFormsModel extends XFormsModelBase implements XFormsEventObserver, XFormsObjectResolver { 
    [scalac]               ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsModel.java:210: error: not found: type Model 
    [scalac]  public Model getStaticModel() { 
    [scalac]   ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/fb/ControlOps.scala:581: error: constructor cannot be instantiated to expected type; 
    [scalac] found : (T1, T2) 
    [scalac] required: Nothing 
    [scalac]    controlId ? findControlIdByName(getFormDoc, controlName) 
    [scalac]   ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsModel.java:206: error: not found: type XBLContainer 
    [scalac]  public XBLContainer container() { 
    [scalac]   ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/ControlTree.java:258: error: not found: type XFormsContainerControl 
    [scalac]  public XFormsContainerControl getRoot() { 
    [scalac]   ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/pipeline/InitUtils.scala:92: error: fruitless type test: a value of type Throwable cannot also be a org.orbeon.oxf.resources.ResourceNotFoundException 
    [scalac]      case e: ResourceNotFoundException ? 
    [scalac]       ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/portlet/Portlet2ExternalContext.java:73: error: not found: type WebAppContext 
    [scalac]  Portlet2ExternalContext(PipelineContext pipelineContext, WebAppContext webAppContext, PortletRequest portletRequest, boolean amendRequest) { 
    [scalac]               ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/processor/EmailProcessor.scala:74: error: could not find implicit value for parameter propertySet: org.orbeon.oxf.properties.PropertySet 
    [scalac]    valueFromElementOrProperty(messageElement, SMTPHost) getOrElse 
    [scalac]          ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/processor/EmailProcessor.scala:104: error: could not find implicit value for parameter propertySet: org.orbeon.oxf.properties.PropertySet 
    [scalac]     valueFromElementOrProperty(messageElement, Encryption) match { 
    [scalac]           ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/processor/EmailProcessor.scala:134: error: could not find implicit value for parameter propertySet: org.orbeon.oxf.properties.PropertySet 
    [scalac]    valueFromElementOrProperty(messageElement, SMTPPort) orElse defaultPort foreach updatePort 
    [scalac]          ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/servlet/ServletExternalContext.java:697: error: not found: type WebAppContext 
    [scalac]  public ServletExternalContext(PipelineContext pipelineContext, WebAppContext webAppContext, HttpServletRequest request, HttpServletResponse response) { 
    [scalac]                 ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/xbl/XBLContainer.scala:76: error: fruitless type test: a value of type org.orbeon.oxf.xforms.xbl.XBLContainer cannot also be a org.orbeon.oxf.xforms.XFormsContainingDocument 
    [scalac]  val containingDocument = ancestorsIterator collectFirst { case cd: XFormsContainingDocument ? cd } get 
    [scalac]                  ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/BindingContext.scala:166: error: value getInstanceForNode is not a member of org.orbeon.oxf.xforms.XFormsContainingDocument 
    [scalac]    { case node: NodeInfo ? model.containingDocument.getInstanceForNode(node) } orNull 
    [scalac]               ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/XFormsInstance.scala:155: error: type mismatch; 
    [scalac] found : org.orbeon.oxf.xforms.XFormsModel 
    [scalac] required: org.orbeon.oxf.xforms.event.XFormsEventObserver 
    [scalac]  def parentEventObserver: XFormsEventObserver = model 
    [scalac]             ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/ControlTree.java:280: error: not found: type XFormsControl 
    [scalac]  public Map<String, XFormsControl> getRepeatControls() { 
    [scalac]      ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/XFormsInstance.scala:223: error: value getEffectiveId is not a member of type parameter B 
    [scalac]     newRepeatControl ? Option(controls.getObjectByEffectiveId(repeatControl.getEffectiveId).asInstanceOf[XFormsRepeatControl]) 
    [scalac]                      ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsModel.java:65: error: not found: type Model 
    [scalac]  public final Model staticModel; 
    [scalac]    ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/analysis/XFormsExtractorContentHandler.java:138: error: not found: type AnnotatedTemplate 
    [scalac]    AnnotatedTemplate templateUnderConstruction, 
    [scalac]   ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/action/actions/XFormsSetindexAction.scala:62: error: value synchronizeAndRefresh is not a member of org.orbeon.oxf.xforms.XFormsContainingDocument 
    [scalac]    interpreter.containingDocument.synchronizeAndRefresh() 
    [scalac]           ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/action/XFormsActionInterpreter.java:405: error: not found: type XFormsObject 
    [scalac]  public XFormsObject resolveObject(Element actionElement, String targetStaticOrAbsoluteId) { 
    [scalac]   ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsControls.java:430: error: not found: type XFormsControl 
    [scalac]  public XFormsControl getFocusedControl() { 
    [scalac]   ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsControls.java:434: error: not found: type XFormsControl 
    [scalac]  public void setFocusedControl(XFormsControl focusedControl) { 
    [scalac]         ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/ControlTree.java:270: error: not found: type XFormsControl 
    [scalac]  public XFormsControl getControl(String effectiveId) { 
    [scalac]   ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/control/Focus.scala:120: error: value isFocusable is not a member of Any 
    [scalac]      case Some(newReference) if ! newReference.isFocusable ? 
    [scalac]                ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/control/Focus.scala:124: error: value ne is not a member of Any 
    [scalac]      case Some(newReference) if newReference ne focusedBefore ? 
    [scalac]               ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/control/Focus.scala:129: error: type mismatch; 
    [scalac] found : Any 
    [scalac] required: org.orbeon.oxf.xforms.control.XFormsControl 
    [scalac]       onFocus(newReference) 
    [scalac]        ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/action/XFormsAPI.scala:99: error: value >= is not a member of Nothing 
    [scalac]     { case newIndex if newIndex >= 0 ? newIndex } 
    [scalac]           ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/action/XFormsActionInterpreter.java:80: error: not found: type XBLContainer 
    [scalac]  public XBLContainer container() { 
    [scalac]   ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/submission/XFormsModelSubmission.java:65: error: not found: type XFormsEventTarget 
    [scalac] public class XFormsModelSubmission extends XFormsModelSubmissionBase implements XFormsEventTarget, XFormsEventObserver { 
    [scalac]                    ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/submission/XFormsModelSubmission.java:65: error: not found: type XFormsEventObserver 
    [scalac] public class XFormsModelSubmission extends XFormsModelSubmissionBase implements XFormsEventTarget, XFormsEventObserver { 
    [scalac]                         ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/action/XFormsAPI.scala:269: error: type mismatch; 
    [scalac] found : org.orbeon.oxf.xforms.submission.XFormsModelSubmission 
    [scalac] required: org.orbeon.oxf.xforms.event.XFormsEventTarget 
    [scalac]   try Dispatch.dispatchEvent(new XFormsSubmitEvent(submission, properties)) 
    [scalac]              ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/control/controls/XFormsCaseControl.java:23: error: not found: type XFormsNoSingleNodeContainerControl 
    [scalac] public class XFormsCaseControl extends XFormsNoSingleNodeContainerControl { 
    [scalac]          ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/control/controls/XXFormsDialogControl.java:31: error: not found: type XFormsNoSingleNodeContainerControl 
    [scalac] public class XXFormsDialogControl extends XFormsNoSingleNodeContainerControl { 
    [scalac]           ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/action/actions/XXFormsShowAction.scala:51: error: type mismatch; 
    [scalac] found : org.orbeon.oxf.xforms.control.controls.XXFormsDialogControl 
    [scalac] required: org.orbeon.oxf.xforms.event.XFormsEventTarget 
    [scalac]   val newEvent = new XXFormsDialogOpenEvent(properties, targetDialog, neighborEffectiveId.orNull, constrainToViewport) 
    [scalac]                ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/action/XFormsAction.scala:96: error: value synchronizeAndRefresh is not a member of org.orbeon.oxf.xforms.XFormsContainingDocument 
    [scalac]    context.containingDocument.synchronizeAndRefresh() 
    [scalac]          ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/action/XFormsActionInterpreter.java:445: error: not found: type Scope 
    [scalac]  public Scope getActionScope(Element actionElement) { 
    [scalac]   ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsContextStack.java:267: error: not found: type Scope 
    [scalac]        Element bindingElement, NamespaceMapping bindingElementNamespaceMapping, String sourceEffectiveId, Scope scope, boolean handleNonFatal) { 
    [scalac]                                ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsContextStack.java:244: error: not found: type Scope 
    [scalac]  public void pushBinding(Element bindingElement, String sourceEffectiveId, Scope scope, boolean handleNonFatal) { 
    [scalac]                    ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsContextStack.java:240: error: not found: type Scope 
    [scalac]  public void pushBinding(Element bindingElement, String sourceEffectiveId, Scope scope) { 
    [scalac]                    ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsContextStack.java:122: error: not found: value XFormsFunction 
    [scalac]  public XFormsFunction.Context getFunctionContext(String sourceEffectiveId) { 
    [scalac]   ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/action/actions/XFormsLoadAction.java:30: error: not found: type XFormsAction 
    [scalac] public class XFormsLoadAction extends XFormsAction { 
    [scalac]          ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/action/actions/XFormsResetAction.java:26: error: not found: type XFormsAction 
    [scalac] public class XFormsResetAction extends XFormsAction { 
    [scalac]          ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/action/actions/XFormsMessageAction.java:32: error: not found: type XFormsAction 
    [scalac] public class XFormsMessageAction extends XFormsAction { 
    [scalac]          ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/action/actions/XFormsInsertAction.java:42: error: not found: type XFormsAction 
    [scalac] public class XFormsInsertAction extends XFormsAction { 
    [scalac]          ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/action/actions/XFormsDeleteAction.java:36: error: not found: type XFormsAction 
    [scalac] public class XFormsDeleteAction extends XFormsAction { 
    [scalac]          ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/action/actions/XXFormsHideAction.java:25: error: not found: type XFormsAction 
    [scalac] public class XXFormsHideAction extends XFormsAction { 
    [scalac]          ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/action/actions/XXFormsInvalidateInstanceAction.java:27: error: not found: type XFormsAction 
    [scalac] public class XXFormsInvalidateInstanceAction extends XFormsAction { 
    [scalac]             ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/action/actions/XXFormsInvalidateInstancesAction.java:25: error: not found: type XFormsAction 
    [scalac] public class XXFormsInvalidateInstancesAction extends XFormsAction { 
    [scalac]              ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/action/actions/XXFormsJoinSubmissions.java:21: error: not found: type XFormsAction 
    [scalac] public class XXFormsJoinSubmissions extends XFormsAction { 
    [scalac]           ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/action/actions/RRRActions.scala:30: error: type mismatch; 
    [scalac] found : org.orbeon.oxf.xforms.XFormsModel 
    [scalac] required: org.orbeon.oxf.xforms.event.XFormsEventTarget 
    [scalac]  def createEvent(model: XFormsModel, applyDefaults: Boolean) = new XFormsRebuildEvent(model) 
    [scalac]                      ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/action/actions/RRRActions.scala:39: error: overloaded method constructor XFormsRecalculateEvent with alternatives: 
    [scalac] (target: org.orbeon.oxf.xforms.event.XFormsEventTarget,applyDefaults: Boolean)org.orbeon.oxf.xforms.event.events.XFormsRecalculateEvent <and> 
    [scalac] (target: org.orbeon.oxf.xforms.event.XFormsEventTarget,properties: org.orbeon.oxf.xforms.event.XFormsEvent.PropertyGetter)org.orbeon.oxf.xforms.event.events.XFormsRecalculateEvent 
    [scalac] cannot be applied to (org.orbeon.oxf.xforms.XFormsModel, Boolean) 
    [scalac]  def createEvent(model: XFormsModel, applyDefaults: Boolean) = new XFormsRecalculateEvent(model, applyDefaults) 
    [scalac]                 ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/action/actions/RRRActions.scala:44: error: type mismatch; 
    [scalac] found : org.orbeon.oxf.xforms.XFormsModel 
    [scalac] required: org.orbeon.oxf.xforms.event.XFormsEventTarget 
    [scalac]  def createEvent(model: XFormsModel, applyDefaults: Boolean) = new XFormsRevalidateEvent(model) 
    [scalac]                       ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsContextStack.java:71: error: not found: type XBLContainer 
    [scalac]  public final XBLContainer container; 
    [scalac]    ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsContextStack.java:201: error: not found: type VariableAnalysisTrait 
    [scalac]  public BindingContext.VariableInfo scopeVariable(VariableAnalysisTrait staticVariable, String sourceEffectiveId, boolean handleNonFatal) { 
    [scalac]             ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/action/XFormsActionInterpreter.java:105: error: not found: type ElementAnalysis 
    [scalac]  public void runAction(ElementAnalysis actionAnalysis) { 
    [scalac]       ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/action/actions/XFormsActionAction.scala:64: error: value execute is not a member of Object 
    [scalac]    XFormsActions.getScriptAction.execute(actionContext) 
    [scalac]           ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/action/actions/XFormsRefreshAction.scala:45: error: type mismatch; 
    [scalac] found : org.orbeon.oxf.xforms.XFormsModel 
    [scalac] required: org.orbeon.oxf.xforms.event.XFormsEventTarget 
    [scalac]   Dispatch.dispatchEvent(new XFormsRefreshEvent(model)) 
    [scalac]              ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/action/actions/XFormsToggleAction.scala:31: error: fruitless type test: a value of type org.orbeon.oxf.xforms.control.XFormsControl cannot also be a org.orbeon.oxf.xforms.control.controls.XFormsCaseControl 
    [scalac]    case Some(caseControl: XFormsCaseControl) ? 
    [scalac]         ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/action/actions/XFormsToggleAction.scala:49: error: value synchronizeAndRefresh is not a member of org.orbeon.oxf.xforms.XFormsContainingDocument 
    [scalac]    XFormsAPI.containingDocument.synchronizeAndRefresh() 
    [scalac]          ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/action/actions/XFormsToggleAction.scala:51: error: value parent is not a member of org.orbeon.oxf.xforms.control.controls.XFormsCaseControl 
    [scalac]   if (caseControl.parent.isRelevant && ! caseControl.isSelected) { 
    [scalac]      ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsContainingDocument.java:1054: error: not found: type ScriptInterpreter 
    [scalac]  public ScriptInterpreter getScriptInterpreter() { 
    [scalac]   ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsContainingDocument.java:787: error: not found: type XFormsEvent 
    [scalac]  public void addScriptToRun(org.orbeon.oxf.xforms.Script script, XFormsEvent event, XFormsEventObserver eventObserver) { 
    [scalac]                 ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/XFormsContainingDocument.java:787: error: not found: type XFormsEventObserver 
    [scalac]  public void addScriptToRun(org.orbeon.oxf.xforms.Script script, XFormsEvent event, XFormsEventObserver eventObserver) { 
    [scalac]                      ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/action/XFormsActionInterpreter.java:55: error: not found: type XFormsEvent 
    [scalac]  public final XFormsEvent event; 
    [scalac]    ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/java/org/orbeon/oxf/xforms/action/XFormsActionInterpreter.java:56: error: not found: type XFormsEventObserver 
    [scalac]  public final XFormsEventObserver eventObserver; 
    [scalac]    ^
    [scalac] /Developer/wksp_juno/orbeon-forms/src/main/scala/org/orbeon/oxf/xforms/action/actions/XXFormsShowAction.scala:32: error: fruitless type test: a value of type org.orbeon.oxf.xforms.control.XFormsControl cannot also be a org.orbeon.oxf.xforms.control.controls.XXFormsDialogControl 

.... .... [scalac]^ [scalac] 231個發現錯誤

回答

1

它看起來像你的Eclipse可能沒有安裝編譯Scala代碼。也許最簡單的方法是使用Scala IDE。 Scala IDE人創建了一個video about the installation of Scala IDE,你可能會覺得有用。

+0

它也發生在IDE(Eclipse)中。用螞蟻做一個簡單的構建就可以得到相同的結果... –

+0

這個構建是否可以與'ant classes'一起工作? – ebruchez

+0

沒有。它會與scala源路徑​​有關嗎? –

0

今天,我可以在eclipse中設置Orbeon Project,並且可以在服務器上運行它並允許我調試代碼。

我創建了wiki以幫助其他開發人員設置相同的東西,並嘗試通過調試來了解該項目。

請參考下列步驟來設置項目:

  1. 下載從鏈接蝕斯卡拉-IDE:http://scala-ide.org/

  2. 解壓縮檔案,並將其保存在文件系統中。

  3. 打開eclipse - >文件菜單 - >點擊導入 - >從Git選擇項目 - >下一步。

  4. 將URI作爲[email protected]輸入:orbeon/orbeon-forms.git,然後選擇CE 4.5分支,然後選擇下一步。

  5. 選擇新建項目嚮導,然後單擊完成。

  6. 現在項目選擇嚮導,選擇新的Scala項目。命名爲Orbeon-Forms。

  7. 如果您在項目中看不到代碼,請右鍵單擊Project - > Import - > Existing Project From File System - >選擇克隆Orbeon項目的位置。 - >點擊完成。

  8. 現在,在項目中創建資源本地文件夾,並將資源打包文件夾的內容複製到資源本地。

  9. 現在在項目中創建遞歸文件夾作爲此路徑:/ build/orbeon-war/WEB-INF/classes。

  10. 現在,右鍵單擊project - > Select Properties - > Select Build Path。

11.Now,設置默認的輸出文件夾Orbeon窗體/建設/ orbeon戰/ WEB-INF/classes中

  1. 全部刪除源文件夾,並添加的src/main/java中,的src/main /斯卡拉的src/main /資源的src/main /資源打包,SRC /主/本地資源。

  2. 現在轉到「庫」選項卡,並刪除所有罐子。 (注意:不要刪除JRE和Scala庫。)

  3. 現在添加lib文件夾中的所有jar。並點擊應用。

  4. 現在點擊資源,文本文件編碼。點擊其他,並將其更改爲「UTF-8」。

  5. 現在關閉屬性窗口。

  6. 現在您可能會得到一些針對mongodb和GridFS的jar的交叉編譯錯誤。從Build Path中移除這些罐子。

  7. 現在,您將在問題窗口中的幾個文件中出現錯誤。

  8. 現在,我已經刪除了MongoDBPersistence.scala文件。而對於其他文件,我評論這些代碼。 。

  9. 現在打開,LoggerFactory.scala文件,並註釋以下行: _string log4jConfigURL = Properties.instance()getPropertySet()getStringOrURIAsString(LOG4J_DOM_CONFIG_PROPERTY,FALSE); _

和複製粘貼在該註釋行之後的以下行: String log4jConfigURL =「oxf:/default-log4j.xml」;

注意:如果您不做上述更改,您將在啓動服務器時出錯。

  1. 現在,清理你的項目,並建立它。 eClipse應該編譯所有的scala和java文件,生成類文件

Orbeon-Forms/build/orbeon-war/WEB-INF/classes。

  1. 現在,右鍵單擊build.xml - >屬性 - >運行/調試設置 - >點擊新建 - >選擇Ant Build。

  2. 名爲Edit Configuration的新窗口將打開。

  3. 單擊「屬性」選項卡 - >取消選中「在Ant運行時首選項中指定使用全局屬性」。

  4. 點擊添加屬性。命名爲skip.compilation並且值爲true。點擊確定,然後關閉配置。 (注意:現在Ant不會編譯Scala和Java文件。)

  5. 現在,從eclipse運行orbeon-war ant target。編譯完成後,您應該能夠看到「生成成功」。

  6. 我使用Apache Tomcat作爲服務器。轉到Tomcat目錄的conf目錄下的server.xml。

  7. 添加以下環境下:

注:的docBase值將根據您在文件系統中的項目位置改變。

  1. 現在打開命令提示符,並進入你的/ bin。

  2. 運行,catalina jpda start。

  3. 它顯示服務器已啓動。

  4. Open,localhost:8080/orbeon在您的瀏覽器中。你會看到Orbeon主頁。現在,轉到eclipse - >運行菜單 - >調試配置 - >選擇遠程Java應用程序 - >點擊「+」標誌。

  5. 現在輸入主機爲localhost,端口爲8000.這將允許遠程調試。

+0

我提到以下兩個鏈接: http://wiki.orbeon.com/forms/doc/contributor-guide/development-environment/java-development http://wiki.orbeon.com/forms/doc/開發人員指南/管理/安裝 –