This discussion is archived
2 Replies Latest reply: Dec 16, 2009 3:32 AM by user2349857 RSS

Create Service Consumer BS: java.lang.NoClassDefFoundError

user2349857 Newbie
Currently Being Moderated
Hello,

I am trying to create service Consumer Business Service (consume a Web Service from JD Edwards Enterprise One).

To do that I have followed the next steps:

1) Download the WSDL file from CRM On Demand’s web page

2) From JDE:

a. Create a business service from OMW

b. Generate a web service proxy within JDeveloper

In this step, it was necessary rename the Business Service Package =>

A portion of the proxy package name must be in upper case; however, JDeveloper named the proxy using lower case.



I have followed “JD Edwards EnterpriseOne Tools 8.97 Business Services Development Guide” to rename the Business Service Package:

"Renaming the Business Service Package

You must rename the package so that the name matches the case of the rest of the

business service. After you rename the package, you should rebuild the code to ensure

no errors exist. Use these steps to rename the business service package.

► To rename business service package

In the business service project on JDeveloper

1. Select the business service package, and then click Replace in Files on the Search menu.

2. On the Replace in Files window, enter the lower case name (for example, jrh90i20).

3. Enter the upper case name (for example, JRH90I20).

4. In the Search Path pane, select the Active Project option.

5. Click OK.

The upper case name appears.

6. Save the renamed file by selecting Save All from the File menu.

You should rebuild the code to make sure no errors exist."










--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

However, when I try to generate a secure proxy I have the error:

java.lang.NoClassDefFoundError --> It is trying to find the package with lower case name, however it is in upper case name…




Do you know if it is necessary to do something change more? Change some reference file or any path?


I think that when JDeveloper deploys the secure proxy, internally it has some reference with the lower case name, and it isn’t changed with “Renaming the Business Service Package”…

I am looking for some file that has some reference but I haven’t found nothing…


Any help is welcome.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The log file is:

java.lang.NoClassDefFoundError: oracle/e1/bssv/j5500007/proxy/types/crmondemand/xml/contact/query/ListOfContactQuery (wrong name: oracle/e1/bssv/J5500007/proxy/types/crmondemand/xml/contact/query/ListOfContactQuery)
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
     at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
     at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     at oracle.ideimpl.IdeClassLoader.loadClass(IdeClassLoader.java:129)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.SchemaAnalyzer.getValueClassBeanInfo(SchemaAnalyzer.java:465)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.ComplexTypeBindingModeler.structuredType(ComplexTypeBindingModeler.java:142)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.ComplexTypeBindingModeler.complexType(ComplexTypeBindingModeler.java:442)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.LiteralSchemaTypeModeler.complexType(LiteralSchemaTypeModeler.java:502)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.LiteralSchemaTypeModeler.schemaType(LiteralSchemaTypeModeler.java:380)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.ComplexTypeBindingModeler.processElementMember(ComplexTypeBindingModeler.java:339)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.ComplexTypeBindingModeler.processMember(ComplexTypeBindingModeler.java:191)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.ComplexTypeBindingModeler.structuredType(ComplexTypeBindingModeler.java:168)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.ComplexTypeBindingModeler.complexType(ComplexTypeBindingModeler.java:442)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.LiteralSchemaTypeModeler.complexType(LiteralSchemaTypeModeler.java:502)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.LiteralSchemaTypeModeler.schemaType(LiteralSchemaTypeModeler.java:380)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.LiteralSchemaTypeModeler.schemaType(LiteralSchemaTypeModeler.java:136)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.LiteralSchemaTypeModeler.schemaType(LiteralSchemaTypeModeler.java:145)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.SchemaAnalyzer.schemaTypeToLiteralType(SchemaAnalyzer.java:395)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.searchSchema(WSDLModeler.java:566)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.OperationModeler.searchSchema(OperationModeler.java:946)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.DocLiteralOperationModeler.buildInput(DocLiteralOperationModeler.java:525)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.DocLiteralOperationModeler.buildOperation(DocLiteralOperationModeler.java:256)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.OperationModeler.process(OperationModeler.java:93)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.processSOAPOperation(WSDLModeler.java:1094)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.processBindingOperation(WSDLModeler.java:1028)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.createNewPort(WSDLModeler.java:892)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.processPort(WSDLModeler.java:765)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.processService(WSDLModeler.java:679)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:404)
     at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:223)
     at oracle.j2ee.ws.common.processor.config.ModelInfo.buildModel(ModelInfo.java:173)
     at oracle.j2ee.ws.common.processor.Processor.runModeler(Processor.java:72)
     at oracle.j2ee.ws.tools.wsa.AssemblerTool.run(AssemblerTool.java:95)
     at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createModel(WsdlToJavaTool.java:398)
     at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.getSeiInfo(WsdlToJavaTool.java:536)
     at oracle.j2ee.ws.tools.wsa.Util.getSeiInfo(Util.java:230)
     at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1085)
     at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2285)
     at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2156)
     at oracle.jdeveloper.webservices.model.java.JavaWebService.<init>(JavaWebService.java:308)
     at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.updateServiceModel(WebServiceProxy.java:1190)
     at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.getServiceTargetNamespace(WebServiceProxy.java:1593)
     at oracle.jdeveloper.webservices.model.OracleWebServicesUtils.createInitialClientOracleWebservices(OracleWebServicesUtils.java:1025)
     at oracle.jdeveloper.webservices.model.security.SecurityIO.save(SecurityIO.java:564)
     at oracle.jdeveloper.webservices.model.security.SecurityModel.writeConfiguration(SecurityModel.java:485)
     at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.generateImpl(ProxyGenerator.java:330)
     at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.mav$generateImpl(ProxyGenerator.java:77)
     at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator$1ThrowingRunnable.run(ProxyGenerator.java:206)
     at oracle.jdeveloper.webservices.model.GeneratorUI$GeneratorAction.run(GeneratorUI.java:446)
     at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
     at java.lang.Thread.run(Thread.java:595)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Thanks and regards.

Edited by: user2349857 on 10-dic-2009 11:05

Edited by: user2349857 on 10-dic-2009 11:05

Edited by: user2349857 on 10-dic-2009 11:50

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points