在Java Web应用程序中在Taleo Web服务中获取错误



eclipse:luna 4.4.2Tomcate 8.0附加我的pom.xml

我想致电Taleo Web服务并尝试创建动态的Web应用程序。我尝试了以下方案:方案1:WSDL在肥皂UI中工作正常。

方案2:创建一个Maven项目并生成WSDL的源,并为客户端编写代码。可在没有任何错误的情况下拨打WebS服务并创建Java UI(帧(并在UI上显示结果。

方案3:创建了一个Maven项目,将WSDL添加到其中,并为WSDL生成源。然后,尝试将其转换为Web应用程序,从而以下错误:无法嵌套'31Jantest/target/生成的源/cxf/schemaorg_apache_xmlbeans'内部'31Jantest/target/oferated-sources/cxf'。为了启用嵌套排除'schemaorg_apache_xmlbeans/''from'31jantest/target/oferated-sources/cxf'。

方案4:步骤1:(首先创建了动态Web应用程序,然后将其转换为Maven项目(。一旦我将WSDL添加到该项目中,WSDL中的错误低于错误:

src-resolve.4.2: Error resolving component 'ns2:Entity'. It was detected that 'ns2:Entity' is in namespace 'http://www.taleo.com/
 ws/tee800/2009/01', but components from this namespace are not referenceable from schema document 'file:///C:/Users/
 deepak_gupta22/WorkSpace1/test123/src/taleoWebservice.wsdl'. If this is the incorrect namespace, perhaps the prefix of 
 'ns2:Entity' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:///C:/
 Users/deepak_gupta22/WorkSpace1/test123/src/taleoWebservice.wsdl'.
 Step 2:
 Ignore this error in wsdl and build the application and wrote the client code and run the application. I got below error:
 SEVERE: Servlet.service() for servlet [main.MyTestServlet] in context with path [/test123] threw exception [Servlet execution threw an exception] with root cause
java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlObject
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2496)
    at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:860)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1302)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    at java.lang.Class.privateGetPublicMethods(Class.java:2902)
    at java.lang.Class.getMethods(Class.java:1615)
    at com.sun.xml.internal.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:462)
    at com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:305)
    at com.sun.xml.internal.ws.db.DatabindingImpl.<init>(DatabindingImpl.java:85)
    at com.sun.xml.internal.ws.db.DatabindingProviderImpl.create(DatabindingProviderImpl.java:59)
    at com.sun.xml.internal.ws.db.DatabindingProviderImpl.create(DatabindingProviderImpl.java:43)
    at com.sun.xml.internal.ws.db.DatabindingFactoryImpl.createRuntime(DatabindingFactoryImpl.java:105)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.buildRuntimeModel(WSServiceDelegate.java:875)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:892)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:855)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:435)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:404)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:386)
    at javax.xml.ws.Service.getPort(Service.java:119)
    at com.taleo.ws.tee800._2009._01.find.FindService.getFindServiceHttpPort(FindService.java:72)
    at main.ClientService.getEntities(ClientService.java:202)
    at main.MyTestServlet.doGet(MyTestServlet.java:42)

我在Web应用程序中缺少什么或在Web应用程序中需要添加的内容才能正常工作?

我可以在下面的Java项目中看到两个文件夹,自动创建了两个文件夹:1.目标/生成源/CXF2.目标/生成源/cxf/schemaorg_apache_xmlbeans

但是在Web项目中,只创建了一个文件夹:1.目标/生成源/CXF

target/生成sirces/cxf/schemaorg_apache_xmlbeans forlder并未在Web项目中创建。请帮我我的项目有什么问题?

专家,请帮助我解决这个问题。请让我知道是否需要更多信息。

谢谢,问候,deepak

在"标记"选项卡中。我将无法导出或发布" classpath entry org.eclipse.m2e.maven2_classpath_container。

我通过执行以下步骤解决了它: 1.右键单击此警告,然后单击快速修复选项 2.选择将关联的原始类Path条目标记为发布/导出依赖性。然后单击完成

相关内容

  • 没有找到相关文章

最新更新