Error while using xmlbeans - weblogic.developer.interest.webservices.databinding(Archived)

I am using xmlbeans2.2 . I passed the wsdl to scomp utility to it,it returned me the jar which include all the classes and interfaces from the wsdl.in short using xmlbeans i converted wsdl type to java type(classes and interface).but when try to instantiate the class from the list i stuck to error " reference to Factory is ambiguous, "
found : org.apache.xmlbeans.XmlObject
required: com.pstn.soapapi.v1.AuthElem

Related

type-mapping not working correctly, get "Unable to find a javaType for the xmlType" WARNING

I'm manually creating a web-services.xml file, and using the autogen ant task to
generate the codec XML/Java classes. The XML definition is provided by SAP.
The ant build.xml file:
<project name="buildWebservice" default="stubgen">
<target name="stubgen">
<clientgen ear="C:\projects\RMIS\ifrrequests\RMIS.ear"
packageName="com.aa.rmis.webservice.client"
clientJar="C:\projects\RMIS\ifrrequests\rmisws-client.jar"
autotype="False" />
</target>
<target name="all" depends="stubgen"/>
</project>
The problem is seen below in the output from Ant. Note the WARNINIG. The problem
is that the xml type cannot be mapped to the Java type.
C:\projects\RMIS\ifrrequests>ant -buildfile clientbuild.xml
Buildfile: clientbuild.xml
stubgen:
[clientgen] Generating client jar for RMIS.ear ...
[clientgen] WARNINIG: Unable to find a javaType for the xmlType:['urn:sap-com:do
cument:sap:business']:PaymentRequest.Create. Make sure that you have registered
this xml type in the type mapping
[clientgen] Using SOAPElement instead
[clientgen] Compiling 4 source files to C:\DOCUME~1\944377\LOCALS~1\Temp\rmisws-
client.jar-836624340
[clientgen] Building jar: C:\projects\RMIS\ifrrequests\rmisws-client.jar
BUILD SUCCESSFUL
Total time: 17 seconds
The Java source that has the implementation of the service methods is simply:
package com.aa.rmis.webservice;
import com.aa.rmis.ifr.request.*;
public class TestService
{
public TestService()
{
}
public int serviceRequest(PaymentRequestCreate request)
{
System.out.println("Received serviceRequest message");
return 0;
}
public void testStringRequest(String request)
{
}
}
The web-service.xml file is attached, which contains the schema for the SAP PaymentRequest.Create
object definition.
Another problem I have, which is probably related, is that the service method
that has a complex data type (non-built in data type) is not being deployed into
the WebLogic server. But the other service method that simply takes a String
parameter is.
The steps I took are:
1. Get XML from SAP Interface Repository (IFR) for PaymentRequest
2. Use ant task autogen to generate the request codec classes
3. Create the web-services.xml file by inserting the schema definition and the
mapping file created by the autogen task, and defining the operations
4. Build web-services.war file that contains all autogen compiled class files,
the web-services.xml file, and the service implementation class
5. Build the ear file that holds the web service files
6. Use the clientgen ant task to generate (included above) to generate the client
jar file that should contain the proxy for both of the service methods
Environment:
* WebLogic 7.02
* JDK 1.3.1_06
* JBuilder 9 Enterprise
* Ant 1.4
Possible causes:
* Namespace not being used correctly
* copied verbatim the mapping xml file generated by autogen into the web-services.xml
file
* xml-schema part of web-services.xml might not be set correctly
* operation definition might not be using the correct namespace
* Classpath used for ant might not be right
* Doubt this is the problem, but I'm out of other ideas
* Set by using the setWLEnv.cmd file provided by WebLogic
* Tried adding the generated classes directory for my project to the classpath,
but did not work
I've been referencing the Programming WebLogic Web Services document throughout
this entire process. I must be missing something.
Can anybody from BEA help me out with this problem?
Thanks in advance.
[web-services.xml]
The first posting contains the wrong web-services.xml file. Please refer to this
one instead.
"JD" <john.d.smith#aa.com> wrote:
>
>
>
I'm manually creating a web-services.xml file, and using the autogen
ant task to
generate the codec XML/Java classes. The XML definition is provided
by SAP.
The ant build.xml file:
<project name="buildWebservice" default="stubgen">
<target name="stubgen">
<clientgen ear="C:\projects\RMIS\ifrrequests\RMIS.ear"
packageName="com.aa.rmis.webservice.client"
clientJar="C:\projects\RMIS\ifrrequests\rmisws-client.jar"
autotype="False" />
</target>
<target name="all" depends="stubgen"/>
</project>
The problem is seen below in the output from Ant. Note the WARNINIG.
The problem
is that the xml type cannot be mapped to the Java type.
C:\projects\RMIS\ifrrequests>ant -buildfile clientbuild.xml
Buildfile: clientbuild.xml
stubgen:
[clientgen] Generating client jar for RMIS.ear ...
[clientgen] WARNINIG: Unable to find a javaType for the xmlType:['urn:sap-com:do
cument:sap:business']:PaymentRequest.Create. Make sure that you have
registered
this xml type in the type mapping
[clientgen] Using SOAPElement instead
[clientgen] Compiling 4 source files to C:\DOCUME~1\944377\LOCALS~1\Temp\rmisws-
client.jar-836624340
[clientgen] Building jar: C:\projects\RMIS\ifrrequests\rmisws-client.jar
BUILD SUCCESSFUL
Total time: 17 seconds
The Java source that has the implementation of the service methods is
simply:
package com.aa.rmis.webservice;
import com.aa.rmis.ifr.request.*;
public class TestService
{
public TestService()
{
}
public int serviceRequest(PaymentRequestCreate request)
{
System.out.println("Received serviceRequest message");
return 0;
}
public void testStringRequest(String request)
{
}
}
The web-service.xml file is attached, which contains the schema for the
SAP PaymentRequest.Create
object definition.
Another problem I have, which is probably related, is that the service
method
that has a complex data type (non-built in data type) is not being deployed
into
the WebLogic server. But the other service method that simply takes
a String
parameter is.
The steps I took are:
1. Get XML from SAP Interface Repository (IFR) for PaymentRequest
2. Use ant task autogen to generate the request codec classes
3. Create the web-services.xml file by inserting the schema definition
and the
mapping file created by the autogen task, and defining the operations
4. Build web-services.war file that contains all autogen compiled class
files,
the web-services.xml file, and the service implementation class
5. Build the ear file that holds the web service files
6. Use the clientgen ant task to generate (included above) to generate
the client
jar file that should contain the proxy for both of the service methods
Environment:
* WebLogic 7.02
* JDK 1.3.1_06
* JBuilder 9 Enterprise
* Ant 1.4
Possible causes:
* Namespace not being used correctly
* copied verbatim the mapping xml file generated by autogen into
the web-services.xml
file
* xml-schema part of web-services.xml might not be set correctly
* operation definition might not be using the correct namespace
* Classpath used for ant might not be right
* Doubt this is the problem, but I'm out of other ideas
* Set by using the setWLEnv.cmd file provided by WebLogic
* Tried adding the generated classes directory for my project to
the classpath,
but did not work
I've been referencing the Programming WebLogic Web Services document
throughout
this entire process. I must be missing something.
Can anybody from BEA help me out with this problem?
Thanks in advance.
[web-services.xml]
Hi JD,
I spent a few cycles looking over your web-services.xml file, however I
don't have any suggestions other that one that looks like you have
already tried, at the top, in the <schema...>
targetNamespace="urn:sap-com:document:sap:business"
Making edits to these generated files can be tricky and my only
suggestion is to create a small reproducer to run by our outstanding
support team.
A quick look at our problem database shows one issue (CR095109) related
to a similar problem at deploy time that was fixed with 7.0SP3. Again,
the support folks will be able to help focus in on the issue.
Regards,
Bruce
JD wrote:
>
The first posting contains the wrong web-services.xml file. Please refer to this
one instead.
"JD" <john.d.smith#aa.com> wrote:
I'm manually creating a web-services.xml file, and using the autogen
ant task to
generate the codec XML/Java classes. The XML definition is provided
by SAP.
The ant build.xml file:
<project name="buildWebservice" default="stubgen">
<target name="stubgen">
<clientgen ear="C:\projects\RMIS\ifrrequests\RMIS.ear"
packageName="com.aa.rmis.webservice.client"
clientJar="C:\projects\RMIS\ifrrequests\rmisws-client.jar"
autotype="False" />
</target>
<target name="all" depends="stubgen"/>
</project>
The problem is seen below in the output from Ant. Note the WARNINIG.
The problem
is that the xml type cannot be mapped to the Java type.
C:\projects\RMIS\ifrrequests>ant -buildfile clientbuild.xml
Buildfile: clientbuild.xml
stubgen:
[clientgen] Generating client jar for RMIS.ear ...
[clientgen] WARNINIG: Unable to find a javaType for the xmlType:['urn:sap-com:do
cument:sap:business']:PaymentRequest.Create. Make sure that you have
registered
this xml type in the type mapping
[clientgen] Using SOAPElement instead
[clientgen] Compiling 4 source files to C:\DOCUME~1\944377\LOCALS~1\Temp\rmisws-
client.jar-836624340
[clientgen] Building jar: C:\projects\RMIS\ifrrequests\rmisws-client.jar
BUILD SUCCESSFUL
Total time: 17 seconds
The Java source that has the implementation of the service methods is
simply:
package com.aa.rmis.webservice;
import com.aa.rmis.ifr.request.*;
public class TestService
{
public TestService()
{
}
public int serviceRequest(PaymentRequestCreate request)
{
System.out.println("Received serviceRequest message");
return 0;
}
public void testStringRequest(String request)
{
}
}
The web-service.xml file is attached, which contains the schema for the
SAP PaymentRequest.Create
object definition.
Another problem I have, which is probably related, is that the service
method
that has a complex data type (non-built in data type) is not being deployed
into
the WebLogic server. But the other service method that simply takes
a String
parameter is.
The steps I took are:
1. Get XML from SAP Interface Repository (IFR) for PaymentRequest
2. Use ant task autogen to generate the request codec classes
3. Create the web-services.xml file by inserting the schema definition
and the
mapping file created by the autogen task, and defining the operations
4. Build web-services.war file that contains all autogen compiled class
files,
the web-services.xml file, and the service implementation class
5. Build the ear file that holds the web service files
6. Use the clientgen ant task to generate (included above) to generate
the client
jar file that should contain the proxy for both of the service methods
Environment:
* WebLogic 7.02
* JDK 1.3.1_06
* JBuilder 9 Enterprise
* Ant 1.4
Possible causes:
* Namespace not being used correctly
* copied verbatim the mapping xml file generated by autogen into
the web-services.xml
file
* xml-schema part of web-services.xml might not be set correctly
* operation definition might not be using the correct namespace
* Classpath used for ant might not be right
* Doubt this is the problem, but I'm out of other ideas
* Set by using the setWLEnv.cmd file provided by WebLogic
* Tried adding the generated classes directory for my project to
the classpath,
but did not work
I've been referencing the Programming WebLogic Web Services document
throughout
this entire process. I must be missing something.
Can anybody from BEA help me out with this problem?
Thanks in advance.
------------------------------------------------------------------------
Name: web-services.xml
web-services.xml Type: ACT Project (text/xml)
Encoding: base64

Embedding Java: Compiling fails with "bpel.bpel_java.Element not found"

Hi,
i created a BPEL with embedded java. Compiling fails with
(the name of my BPEL is bpel_java)
BPEL_Java.bpel:72: Class bpel.bpel_java.Element not found.
Element ssn =
^
BPEL_Java.bpel:73: Class bpel.bpel_java.Element not found.
(Element)getVariableData("inputVariable","payload","/client:BPEL_JavaProcessRequest/client:input");
^
2 errors
Classpath: ..\..\..\classes;..\..\ide\lib\javax-ide.jar;..\..\ide\lib\javatools.jar;..\..\ide\lib\ide.jar;..\..\jlib\jewt4.jar;..\..\jlib\share.jar;..\..\jlib\help4.jar;..\..\jlib\inspect4.jar;..\..\lib\xmlparserv2.jar;..\..\jdbc\lib\orai18n.jar;..\lib\jdev-ep.jar;C:\Programme\Java\jdk1.5.0\lib\tools.jar;C:\Programme\Java\jdk1.5.0\lib\dt.jar;..\lib\ext\jaxen-1.1-beta-4.jar;..\extensions\oracle.ide.10.1.3.jar;..\..\jlib\ojmisc.jar;..\extensions\oracle.jdeveloper.10.1.3.jar;..\lib\jdev.jar;..\lib\ojc.jar;..\..\jlib\regexp.jar;..\..\ant\lib\ant.jar;..\..\ant\lib\ant-nodeps.jar;..\..\jlib\oracle_ice.jar;..\..\jlib\xmlef.jar;..\..\jlib\backport-util-concurrent.jar;..\lib\xmleditor.jar;..\lib\xmladdin.jar;..\..\lib\xml.jar;..\..\lib\xquery.jar;..\extensions\oracle.java.help.10.1.3.jar;..\extensions\oracle.j2ee.help.10.1.3.jar;..\extensions\oracle.jdeveloper.vcs.10.1.3.jar;..\extensions\oracle.jdeveloper.subversion.10.1.3.jar;..\extensions\oracle.jdeveloper.subversion.10.1.3\svnjavahl.jar;..\extensions\oracle.jdeveloper.subversion.10.1.3\svnClientAdapter.jar;..\extensions\oracle.jdeveloper.subversion.10.1.3\javasvn.jar;..\extensions\oracle.jdeveloper.subversion.10.1.3\ganymed.jar;..\extensions\oracle.bibeans.10.1.3.jar;..\..\jlib\bigraphbean.jar;..\..\jlib\bigraphbean-nls.zip;..\extensions\oracle.jdeveloper.props.10.1.3.jar;..\extensions\oracle.j2ee.10.1.3.jar;..\..\jdbc\lib\ojdbc14.jar;..\..\jlib\jdev-cm.jar;..\..\toplink\jlib\toplink.jar;..\..\toplink\jlib\toplink-oc4j.jar;..\..\toplink\jlib\antlr.jar;..\..\j2ee\home\oc4j.jar;..\..\j2ee\home\oc4jclient.jar;..\..\j2ee\home\admin_client.jar;..\..\j2ee\home\lib\oc4j-unsupported-api.jar;..\..\j2ee\home\lib\servlet.jar;..\lib\tl_mappingeditor.jar;..\..\jlib\commons-el.jar;..\..\jlib\jsp-el-api.jar;..\..\jlib\oracle-el.jar;..\..\webservices\lib\soap.jar;..\..\lib\xmlmesg.jar;..\..\lib\xsu12.jar;..\..\webservices\lib\wsdl.jar;..\..\webservices\lib\orawsdl.jar;..\..\webservices\lib\wsa.jar;..\..\webservices\lib\wsclient.jar;..\..\webservices\lib\jws-api.jar;..\..\webservices\lib\orawsmetadata.jar;..\..\j2ee\home\lib\http_client.jar;..\..\jlib\jssl-1_1.jar;..\..\uddi\lib\uddiclient.jar;..\..\xdoclet-1.2.1\commons-logging.jar;..\..\xdoclet-1.2.1\xdoclet-1.2.1.jar;..\..\xdoclet-1.2.1\xjavadoc-1.0.3.jar;..\lib\batik-ext.jar;..\..\javavm\lib\aurora.zip;..\..\j2ee\home\lib\ojsp.jar;..\..\j2ee\home\jsp\lib\taglib\ojsputil.jar;..\..\diagnostics\lib\ojdl.jar;..\..\lib\dms.jar;..\..\adfrc\lib\jr_dav.jar;..\..\sqlj\lib\translator.jar;..\..\sqlj\lib\runtime12.jar;..\..\rdbms\jlib\ojdi.jar;..\..\rdbms\jlib\xdb.jar;..\..\j2ee\utilities\ant-oracle-classes.jar;..\extensions\oracle.studio.help.10.1.3.jar;..\extensions\oracle.bpm.workflow.10.1.3.jar;..\extensions\oracle.bpm.modeler.10.1.3.jar;..\..\integration\lib\bpm-ide-common.jar;..\..\integration\lib\bpm-infra.jar;..\..\integration\lib\bpm-services.jar;..\..\integration\lib\connector15.jar;..\..\integration\lib\DBAdapter.jar;..\..\integration\lib\orabpel.jar;..\..\integration\lib\orabpel-ant.jar;..\..\integration\lib\orabpel-boot.jar;..\..\integration\lib\orabpel-common.jar;..\..\integration\lib\orabpel-thirdparty.jar;..\..\integration\lib\oracle_http_client.jar;..\..\integration\lib\oraesbjdev.jar;..\..\integration\lib\xsu12.jar;..\..\integration\lib\xerces.jar;..\..\integration\lib\bpm_modeler_images.jar;..\..\integration\lib\commons-codec-1.3.jar;..\..\integration\bpm\support\files\;..\..\j2ee\home\lib\asm.jar;..\..\j2ee\home\lib\asm-attrs.jar;..\..\integration\lib\rl.jar;..\..\integration\lib\webdavrc.jar;..\..\integration\lib\rulesdk.jar;..\extensions\oracle.adf.installer.10.1.3.jar;..\..\BC4J\lib\bc4jct.jar;..\extensions\oracle.webcache.10.1.3.jar;..\extensions\oracle.bm.10.1.3.jar;..\lib\batik-awt-util.jar;..\lib\batik-dom.jar;..\lib\batik-svggen.jar;..\lib\batik-transcoder.jar;..\lib\batik-util.jar;..\lib\batik-xml.jar;..\lib\batik-bridge.jar;..\lib\batik-css.jar;..\lib\batik-gui-util.jar;..\lib\batik-gvt.jar;..\lib\batik-parser.jar;..\lib\batik-script.jar;..\lib\batik-svg-dom.jar;..\lib\tsgdtj50.jar;..\lib\tsgetj50.jar;..\lib\tsgltjava50.jar;..\lib\tsgmtj50.jar;..\lib\jdukshare.jar;..\lib\mof.jar;..\lib\bm.jar;..\extensions\oracle.jsfmod.10.1.3.jar;..\lib\adfcdt.jar;..\lib\jsfmod_j2ee.jar;..\extensions\oracle.jdeveloper.jgoodies.1.0.4.jar;..\extensions\oracle.jdeveloper.jgoodies.1.0.4\forms-1.0.4.jar;..\extensions\oracle.adfp.dt.custcomps.10.1.3.jar;..\extensions\oracle.BC4J.10.1.3.jar;..\..\BC4J\lib\adfbinding.jar;..\..\BC4J\jlib\adfmant.jar;..\..\BC4J\lib\adfm.jar;..\..\BC4J\jlib\adfui.jar;..\..\BC4J\jlib\adfmtl.jar;..\..\BC4J\lib\bc4jmt.jar;..\..\BC4J\lib\bc4jmtejb.jar;..\..\BC4J\lib\bc4jimdomains.jar;..\..\BC4J\jlib\bc4jtester.jar;..\..\BC4J\lib\bc4jdomorcl.jar;..\..\BC4J\lib\collections.jar;..\..\BC4J\jlib\bc4jui.jar;..\..\BC4J\jlib\adfmmeta.jar;..\..\ord\jlib\ordhttp.jar;..\..\ord\jlib\ordim.jar;..\..\jlib\LW_PfjBean.jar;..\lib\velocity-dep-1.3.jar;..\..\j2ee\home\jazn.jar;..\..\j2ee\home\jazncore.jar;..\..\BC4J\lib\adfshare.jar;..\..\mds\lib\mdsrt.jar;..\extensions\oracle.adfm.dc-adapters.10.1.3.jar;..\..\BC4J\jlib\dc-adapters.jar;..\..\BC4J\jlib\adf-connections.jar;..\..\BC4J\lib\adfcm.jar;..\..\webservices\lib\mdds.jar;..\..\webservices\lib\jaxrpc-api.jar;..\..\webservices\lib\saaj-api.jar;..\..\webservices\lib\orasaaj.jar;..\..\webservices\lib\wssecurity.jar;..\..\webservices\lib\orawsrm.jar;..\extensions\oracle.faces.dt.10.1.3.jar;..\extensions\oracle.wireless.dt.10.1.3.jar;..\..\wireless\lib\deviceRepository.jar;..\extensions\oracle.esb.modeler.10.1.3.jar;..\..\integration\lib\esbxbean.jar;..\..\integration\lib\xbean.jar;..\..\integration\lib\jsr173_1.0_api.jar;..\..\jviews\jviews-diagrammer.jar;..\..\jviews\jviews-framework-lib.jar;..\extensions\oracle.struts.10.1.3.jar;..\lib\struts_j2ee.jar;..\extensions\oracle.bpm.mapper.10.1.3.jar;..\extensions\oracle.adfm.dt.faces.10.1.3.jar;..\..\adfdt\lib\adfdt_common.jar;..\..\adfdt\lib\adfdt_jdev.jar;..\extensions\oracle.jviews-registration.10.1.3.jar;..\extensions\oracle.struts.adf.10.1.3.jar;..\lib\struts_adf.jar;..\extensions\oracle.jdeveloper.cvs.10.1.3.jar;..\lib\jsch.jarC:\Programme\Java\jdk1.5.0\jre\lib\rt.jar;C:\Programme\Java\jdk1.5.0\jre\lib\i18n.jar;C:\Programme\Java\jdk1.5.0\jre\lib\sunrsasign.jar;C:\Programme\Java\jdk1.5.0\jre\lib\jsse.jar;C:\Programme\Java\jdk1.5.0\jre\lib\jce.jar;C:\Programme\Java\jdk1.5.0\jre\lib\charsets.jar;C:\Programme\Java\jdk1.5.0\jre\classes;H:\jdevhome\XynaWS\BPEL_Java\output;C:\Programme\OracleJdevSOA10.1.3Prod\integration\lib\orabpel-ant.jar;C:\Programme\OracleJdevSOA10.1.3Prod\integration\lib\orabpel-boot.jar;C:\Programme\OracleJdevSOA10.1.3Prod\integration\lib\orabpel-common.jar;C:\Programme\OracleJdevSOA10.1.3Prod\integration\lib\orabpel-thirdparty.jar;C:\Programme\OracleJdevSOA10.1.3Prod\integration\lib\orabpel.jar;C:\DOKUME~1\LOKALE~1\Temp\bpelc43674.tmp\BPEL-INF\lib\bpelclasses.jar 
Hi,
i found the manual for how to add jars: http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/appx_ref.htm#CIABBDAE
But i do not know which jar i have to add for "Element"....

QNAME Class

My class path:
bla bla...;D:\bea70\weblogic700\server\lib\webserviceclient.jar
Yet when I try compile the sample WebService example from(http://dev2dev.bea.com/managed_content/direct/webservice/index.html)
(SwA (SOAP with Attachments) example:) the client.java is the only file that will
not compile. I have set my CLASSPATH to incude the webserviceclient.jar.
ERROR:
D:\bea70\weblogic700\samples\server\src\examples\filetransfer>javac Client.java
Client.java:12: cannot resolve symbol
symbol : class QName
location: package namespace
import javax.xml.rpc.namespace.QName;
Hi
The package of the QName class been changed. It should be
javax.xml.namespace.QName.
we will update the example on dev2dev.
Thanks for finding it out
Ajay
Ivan Sager <isager#SagerSystems.com> wrote in message
news:3d46fc0a$1#newsgroups.bea.com...
>
My class path:
bla bla...;D:\bea70\weblogic700\server\lib\webserviceclient.jar
Yet when I try compile the sample WebService examplefrom(http://dev2dev.bea.com/managed_content/direct/webservice/index.html)
(SwA (SOAP with Attachments) example:) the client.java is the only filethat will
not compile. I have set my CLASSPATH to incude the webserviceclient.jar.
ERROR:
D:\bea70\weblogic700\samples\server\src\examples\filetransfer>javacClient.java
Client.java:12: cannot resolve symbol
symbol : class QName
location: package namespace
import javax.xml.rpc.namespace.QName;

problem passing object type as a method input parameter in spring context

hi,
i have a running spring MVC project. Now i want integrate this with SOA Suite by reusing exixsting java codes.
for this, as a first step, i used spring context. In the interface (which is used as sca-service type in spring.xml) i written a method which takes Loan(is a pojo class based on the Loan table that i used in my spring MVC project) type object and also return this type of object.
I took this pojo class as jar and add this in my project properties.
I defiened both of these interface and implementation class in my spring.xml. like,
<beans>
......
<sca:service name="receiveLoanService" target="receiveLoanBO" type="receiveloan.ILoanOriginationReceive"/>
<bean id="receiveLoanBO" class="receiveloan.LoanOriginationReceiveBO"/>
</beans>
but, at the time of web service creation, i got an exception which said that
----
Could not convert from java interface to interface type wsdl. Exception=
Missing class: com.originator.business.ILoanReceiveOrigination
Dependent class: oracle.tip.tools.ide.fabric.api.conversions.InterfaceJava2Wsdl
Loader: ide-global:11.1.1.0.0
This load was initiated at ide-global:11.1.1.0.0 using the loadClass() method.
the missing class is not available from any code-source or loader in the system
----
and these shows in message..
-----
addWire source receiveLoanService does not exist.
java.lang.RuntimeException: addWire source receiveLoanService does not exist.
     at oracle.tip.tools.ide.fabric.api.SCAControllerWireImpl.addWire(SCAControllerWireImpl.java:60)
     at oracle.tip.tools.ide.fabric.api.SCAControllerImpl.addWire(SCAControllerImpl.java:303)
     at oracle.tip.tools.ide.fabric.gui.controller.ActionWireEdit.add(ActionWireEdit.java:160)
-----
please help me..if you have any kind of solution.
thanking you 
hi,
using java codes, which have been provided as jar, define those in the SOA project, thus when u make this project, all generated classes,corresponding to each .java program, will be available within the classes folder.
then wsdl will be generated successfully.
thanks 
you need to add the jar to the project in jdev's project properties, and reload it - then it's in the classpath and will work. putting the interface or jar into sca-inf/lib will do as well.

Problems deploying a simple EJB

I am trying to deploy a simple EJB on the 8.1.5. The bean only owns a single method that needs a unique parameter.
No problems with compilation of source bean, home and remote interfaces, whatever the type of this parameter is.
But when I try to deploy the jar on the server, I only succeed if the parameter of my method is a simple type (int, String ...).
If I try the same passing a complex type (here a oracle.xml.parser.v2.XMLDocument type), I encounter this message from the deployejb tool :
Generating EJBHome and EJBObject on the server...
Compilation errors in oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:ORA-29535: source requires recompilationjava/lang/Object: Authorization error for referenced class Oracle/xml/parser/v2/XMLDocument.java/lang/Object: Authorization error for referenced class oracle/xml/parser/v2/XMLDocument.oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:50: Class oracle.xml.parser.v2.XMLDocument not found in type declaration.
public java.lang.String insereFlux (oracle.xml.parser.v2.XMLDocument arg0)
^ Info: 3 errors
And if I use an int instead of the XMLDocument parameter, everithing's right.
Can anybody submit a no-paranormal solution ?
Thanks.
GH 
8.1.5 is obsolete -- out of support
it uses jdk 1.1
make sure you're using the older version xml that is not jdk 1.2. based.
move to 8.1.7 
Parameter passing in EJB must implement Serializable. One way to solve this is:
1. Define a new class which implements
Serializable.
2. Place whatever you want to pass inside
this class.
3. Now use the new class as your parameter.
eg.
public class Params implements java.io.Serializable {
String p1;
XmlDocmuent xdoc;,
etc, etc
}
Your program now have to use the class Params for parameter passing.
Hope this helps.
Tam
null

Categories

Resources