Problem in generating Helper class
Hi All,
I have generated Helper classes using rmic -iiop tool of JDK 1.4. But the Helper class which is generating doesnot contain any bind method. So in my application, when i am trying to bind CORBA ORB with this helper class bind method, it is giving compilation error.
When i was using Borland Server i was able to generate Helper class with bind method also using java2iiop and now i am not using Borland as we are migrating to JBoss. So i am using rmic -iiop tool.
Can anybody suggest me what should i do for this.
I don't think many of us could help you with such a limited description. Try to be more descriptive, and please include relevant source code if possible.
Similar Messages
-
Problems with generating persistent classes
I've been following the tutorial for generating persistent classes from a
DB. I'm not having much luck:
First, with rd-schemagen, how do you tell it to only work on a specific
schema? I run "rd-schemagen -file schema.xml NBS_ODS_101", but it still
generates the schema file for all schemas in the DB. Is there a usage
option for the tool (I haven't been able to find it yet)?
Second, I have the following tables in my DB: ACT, ACT_ID, ENTITY,
ENTITY_ID. When rd-reversemappingtool runs on these tables, it creates an
ID class for ACT (ActId) which conflicts with the class generated for
ACT_ID (ActId). Since renaming the tables is not an option and I really
don't want to have to rename classes and change the mapping file every
time I regenerate, what is a solution for this problem?
Third, if I do the latter above so I can run the importtool and then I
run "rd-importtool test\test.mapping", it runs successfully for a bit
while spitting out information until I get this:
Exception in thread "main" java.lang.NullPointerException
at
com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.mapForeignKe
y(ImportTool.java:336)
at
com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.mapField(Imp
ortTool.java:207)
at
com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.importMappin
gs(ImportTool.java:78)
at com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.run
(ImportTo
ol.java:408)
at com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.main
(ImportT
ool.java:385)Abe White <[email protected]> wrote in
news:[email protected]:
First, with rd-schemagen, how do you tell it to only work on a specific
schema? I run "rd-schemagen -file schema.xml NBS_ODS_101", but it still
generates the schema file for all schemas in the DB. Is there a usage
option for the tool (I haven't been able to find it yet)?Try using -schemas <comma-separated list of schema names>
I apologize for the documentation in this area. We're going to upgrade
the tool and the documentation to a more recent version from our internal
R&D codebase when our 2.5 release comes out in the next couple of weeks.
This release will also include a system for customizing the tool's output
in many more ways.This works:
rd-schemagen -file schema.xml -indexes false -schemas NBS_ODS_101
but this does not:
rd-schemagen -file schema.xml -indexes false -schemas NBS_ODS_101,NBS_SRT_
101
Exception in thread "main" java.lang.IllegalArgumentException:
com.solarmetric.r
[email protected] = NBS_ODS_
101,NBS_SRT_10
1: java.lang.ArrayIndexOutOfBoundsException: 1
at serp.util.Options.setInto(Options.java:206)
at serp.util.Options.setInto(Options.java:168)
at com.solarmetric.rd.conf.Configurations.populateConfiguration
(Configur
ations.java:144)
at com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGenerator.main
(SchemaG
enerator.java:690)
Second, I have the following tables in my DB: ACT, ACT_ID, ENTITY,
ENTITY_ID. When rd-reversemappingtool runs on these tables, it creates
an ID class for ACT (ActId) which conflicts with the class generated for
ACT_ID (ActId)This is a bug, and will also be fixed with 2.5. I can't even think of a
good way to tell you to work around it for now, unfortunately.I renamed the ID classes to ActOid and EntityOid and changed the .jdo file
to reflect that. Do you see any problems with this strategy?
Third, if I do the latter above so I can run the importtool and then I
run "rd-importtool test\test.mapping", it runs successfully for a bit
while spitting out information until I get this:
Exception in thread "main" java.lang.NullPointerExceptionCan you please send the generated .mapping, .jdo, and .java files?
Unless you want to wait until the 2.5 improvements to debug.I will send you all the files in a zip file by email. -
Problem in generating IIOP classes
Hai All!
I am facing following problem. I am trying to generate IIOP stubs(RMI over
IIOP). for this i compiled my Java remote i/f and remote imple files. when i tried
to run weblogic.rmic on impl class , I am getting following error..
Class weblogic.rmi.Remote not found in interface rmiIIOP.Compute.
where rmiIIOP.Compute is my impl class.
TIA.
Rgds
Manohar"Manohar K." <[email protected]> writes:
Need more info.
Hai All!
I am facing following problem. I am trying to generate IIOP stubs(RMI over
IIOP). for this i compiled my Java remote i/f and remote imple files. when i tried
to run weblogic.rmic on impl class , I am getting following error..
Class weblogic.rmi.Remote not found in interface rmiIIOP.Compute.
where rmiIIOP.Compute is my impl class.
TIA.
Rgds
Manohar-- -
Problem to generate classes from a gsoap server's wsdl with wsimport
Hello,
I trie for a long time to generate my client classes from a wsdl file with wsimport. The wsdl file was generated by gsoap.
Here, the wsdl file :
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="form"
targetNamespace="https://enterprise-name-masked.com/form.wsdl"
xmlns:tns="https://enterprise-name-masked.com/form.wsdl"
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:generic="generic"
xmlns:xop="http://www.w3.org/2004/08/xop/include"
xmlns:xmime4="http://www.w3.org/2004/11/xmlmime"
xmlns:form="form"
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<schema targetNamespace="generic"
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:generic="generic"
xmlns:xop="http://www.w3.org/2004/08/xop/include"
xmlns:xmime4="http://www.w3.org/2004/11/xmlmime"
xmlns:form="form"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified"
attributeFormDefault="unqualified">
<import namespace="http://www.w3.org/2004/08/xop/include"/>
<import namespace="http://www.w3.org/2004/11/xmlmime"/>
<import namespace="http://www.w3.org/2003/05/soap-encoding"/>
<simpleType name="service">
<restriction base="xsd:string">
<enumeration value="service-none"/><!-- enum const = 0 -->
<enumeration value="service-ident"/><!-- enum const = 1 -->
<enumeration value="service-pool"/><!-- enum const = 2 -->
<enumeration value="service-hwr"/><!-- enum const = 3 -->
<enumeration value="service-form"/><!-- enum const = 4 -->
<enumeration value="service-document"/><!-- enum const = 5 -->
</restriction>
</simpleType>
<simpleType name="result-code">
<restriction base="xsd:string">
<enumeration value="ok"/><!-- enum const = 0 -->
<enumeration value="already-exists"/><!-- enum const = 1 -->
<enumeration value="not-found"/><!-- enum const = 2 -->
<enumeration value="cant-connect"/><!-- enum const = 3 -->
<enumeration value="exception"/><!-- enum const = 4 -->
<enumeration value="bad-conversion"/><!-- enum const = 5 -->
<enumeration value="bad-values"/><!-- enum const = 6 -->
<enumeration value="session-not-found"/><!-- enum const = 7 -->
<enumeration value="initialization-failed"/><!-- enum const = 8 -->
</restriction>
</simpleType>
<complexType name="result">
<sequence>
<element name="code" type="generic:result-code" minOccurs="1" maxOccurs="1"/>
<element name="details" type="xsd:string" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
</schema>
<schema targetNamespace="form"
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:generic="generic"
xmlns:xop="http://www.w3.org/2004/08/xop/include"
xmlns:xmime4="http://www.w3.org/2004/11/xmlmime"
xmlns:form="form"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified"
attributeFormDefault="unqualified">
<import namespace="http://www.w3.org/2004/08/xop/include"/>
<import namespace="http://www.w3.org/2004/11/xmlmime"/>
<import namespace="http://www.w3.org/2003/05/soap-encoding"/>
<simpleType name="area-type">
<restriction base="xsd:string">
<enumeration value="area-type-text"/><!-- enum const = 0 -->
<enumeration value="area-type-numeric"/><!-- enum const = 1 -->
<enumeration value="area-type-date"/><!-- enum const = 2 -->
<enumeration value="area-type-checkbox"/><!-- enum const = 3 -->
<enumeration value="area-type-slider"/><!-- enum const = 4 -->
<enumeration value="area-type-draw"/><!-- enum const = 5 -->
<enumeration value="area-type-identifier"/><!-- enum const = 6 -->
</restriction>
</simpleType>
<simpleType name="format">
<restriction base="xsd:string">
<enumeration value="A5"/><!-- enum const = 0 -->
<enumeration value="A4"/><!-- enum const = 1 -->
<enumeration value="A3"/><!-- enum const = 2 -->
<enumeration value="A2"/><!-- enum const = 3 -->
<enumeration value="A1"/><!-- enum const = 4 -->
<enumeration value="A0"/><!-- enum const = 5 -->
</restriction>
</simpleType>
<complexType name="area">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="x" type="xsd:double" minOccurs="1" maxOccurs="1"/>
<element name="y" type="xsd:double" minOccurs="1" maxOccurs="1"/>
<element name="width" type="xsd:double" minOccurs="1" maxOccurs="1"/>
<element name="height" type="xsd:double" minOccurs="1" maxOccurs="1"/>
<element name="comments" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="area-type" type="form:area-type" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="area-with-string">
<sequence>
<element name="area" type="form:area" minOccurs="1" maxOccurs="1"/>
<element name="string" type="xsd:string" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="area-with-integer">
<sequence>
<element name="area" type="form:area" minOccurs="1" maxOccurs="1"/>
<element name="integer" type="xsd:int" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="area-with-range">
<sequence>
<element name="area" type="form:area" minOccurs="1" maxOccurs="1"/>
<element name="lower" type="xsd:double" minOccurs="1" maxOccurs="1"/>
<element name="upper" type="xsd:double" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="areas">
<sequence>
<element name="areas" type="form:area" minOccurs="0" maxOccurs="unbounded"/>
<element name="string-areas" type="form:area-with-string" minOccurs="0" maxOccurs="unbounded"/>
<element name="integer-areas" type="form:area-with-integer" minOccurs="0" maxOccurs="unbounded"/>
<element name="range-areas" type="form:area-with-range" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="group">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="areas" type="form:areas" minOccurs="1" maxOccurs="1"/>
<element name="groups" type="form:group" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="background">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="md5" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="mime" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="num-page" type="xsd:int" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="pattern-type">
<sequence>
<element name="print-once" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="has-identifier" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="page">
<sequence>
<element name="num-page" type="xsd:int" minOccurs="1" maxOccurs="1"/>
<element name="format" type="form:format" minOccurs="1" maxOccurs="1"/>
<element name="is-portrait" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="background" type="form:background" minOccurs="1" maxOccurs="1"/>
<element name="areas" type="form:areas" minOccurs="1" maxOccurs="1"/>
<element name="groups" type="form:group" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="document-new">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="pattern-type" type="form:pattern-type" minOccurs="1" maxOccurs="1"/>
<element name="form-pages" type="form:page" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="document">
<sequence>
<element name="uuid" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="pattern-type" type="form:pattern-type" minOccurs="1" maxOccurs="1"/>
<element name="form-pages" type="form:page" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="document-info">
<sequence>
<element name="uuid" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="page-count" type="xsd:int" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="Data">
<sequence>
<element ref="xop:Include" minOccurs="1" maxOccurs="1"/>
</sequence>
<attribute ref="xmime4:contentType" use="optional"/>
</complexType>
<complexType name="login-response">
<sequence>
<element name="result" type="generic:result" minOccurs="1" maxOccurs="1"/>
<element name="session" type="xsd:string" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<!-- operation request element -->
<element name="login" type="xsd:string"/>
<!-- operation request element -->
<element name="password" type="xsd:string"/>
<!-- operation response element -->
<element name="result" type="generic:result"/>
<!-- operation response element -->
<element name="uuid" type="xsd:string"/>
<!-- operation request element -->
<element name="session" type="xsd:string"/>
<!-- operation request element -->
<element name="aform" type="form:document-new"/>
<!-- operation response element -->
<element name="form" type="form:document"/>
<!-- operation request element -->
<element name="md5" type="xsd:string"/>
<!-- operation response element -->
<element name="data" type="form:Data"/>
<!-- operation response element -->
<element name="exists" type="xsd:boolean"/>
<!-- operation response element -->
<element name="backgrounds" type="form:background"/>
<!-- operation response element -->
<element name="forms" type="form:document"/>
<!-- operation response element -->
<element name="forms-info" type="form:document-info"/>
</schema>
</types>
<message name="login">
<part name="login" element="form:login"/>
<part name="password" element="form:password"/>
</message>
<message name="uuid-response">
<part name="result" element="form:result"/>
<part name="uuid" element="form:uuid"/>
</message>
<message name="quit">
<part name="session" element="form:session"/>
</message>
<message name="response">
<part name="result" element="form:result"/>
</message>
<message name="new-form">
<part name="session" element="form:session"/>
<part name="aform" element="form:aform"/>
</message>
<message name="free-form">
<part name="session" element="form:session"/>
<part name="uuid" element="form:uuid"/>
</message>
<message name="get-form">
<part name="session" element="form:session"/>
<part name="uuid" element="form:uuid"/>
</message>
<message name="document-response">
<part name="result" element="form:result"/>
<part name="form" element="form:form"/>
</message>
<message name="get-file">
<part name="session" element="form:session"/>
<part name="md5" element="form:md5"/>
</message>
<message name="data-response">
<part name="result" element="form:result"/>
<part name="data" element="form:data"/>
</message>
<message name="set-file">
<part name="session" element="form:session"/>
<part name="md5" element="form:md5"/>
<part name="data" element="form:data"/>
</message>
<message name="file-exists">
<part name="session" element="form:session"/>
<part name="md5" element="form:md5"/>
</message>
<message name="exists-response">
<part name="result" element="form:result"/>
<part name="exists" element="form:exists"/>
</message>
<message name="list-form-backgrounds">
<part name="session" element="form:session"/>
<part name="uuid" element="form:uuid"/>
</message>
<message name="list-backgrounds-response">
<part name="result" element="form:result"/>
<part name="backgrounds" element="form:backgrounds"/>
</message>
<message name="list-forms">
<part name="session" element="form:session"/>
</message>
<message name="list-forms-response">
<part name="result" element="form:result"/>
<part name="forms" element="form:forms"/>
</message>
<message name="list-forms-info">
<part name="session" element="form:session"/>
</message>
<message name="list-forms-info-response">
<part name="result" element="form:result"/>
<part name="forms-info" element="form:forms-info"/>
</message>
<portType name="formPortType">
<operation name="login">
<documentation>Service definition of function form__login</documentation>
<input message="tns:login"/>
<output message="tns:uuid-response"/>
</operation>
<operation name="quit">
<documentation>Service definition of function form__quit</documentation>
<input message="tns:quit"/>
<output message="tns:response"/>
</operation>
<operation name="new-form">
<documentation>Service definition of function form__new_form</documentation>
<input message="tns:new-form"/>
<output message="tns:uuid-response"/>
</operation>
<operation name="free-form">
<documentation>Service definition of function form__free_form</documentation>
<input message="tns:free-form"/>
<output message="tns:response"/>
</operation>
<operation name="get-form">
<documentation>Service definition of function form__get_form</documentation>
<input message="tns:get-form"/>
<output message="tns:document-response"/>
</operation>
<operation name="get-file">
<documentation>Service definition of function form__get_file</documentation>
<input message="tns:get-file"/>
<output message="tns:data-response"/>
</operation>
<operation name="set-file">
<documentation>Service definition of function form__set_file</documentation>
<input message="tns:set-file"/>
<output message="tns:response"/>
</operation>
<operation name="file-exists">
<documentation>Service definition of function form__file_exists</documentation>
<input message="tns:file-exists"/>
<output message="tns:exists-response"/>
</operation>
<operation name="list-form-backgrounds">
<documentation>Service definition of function form__list_form_backgrounds</documentation>
<input message="tns:list-form-backgrounds"/>
<output message="tns:list-backgrounds-response"/>
</operation>
<operation name="list-forms">
<documentation>Service definition of function form__list_forms</documentation>
<input message="tns:list-forms"/>
<output message="tns:list-forms-response"/>
</operation>
<operation name="list-forms-info">
<documentation>Service definition of function form__list_forms_info</documentation>
<input message="tns:list-forms-info"/>
<output message="tns:list-forms-info-response"/>
</operation>
</portType>
<binding name="form" type="tns:formPortType">
<SOAP:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="login">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="quit">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="new-form">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="free-form">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="get-form">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="get-file">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="set-file">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="file-exists">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="list-form-backgrounds">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="list-forms">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="list-forms-info">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
</binding>
<service name="form">
<documentation>gSOAP 2.7.10 generated service definition</documentation>
<port name="form" binding="tns:form">
<SOAP:address location="https://enterprise-name-masked.com/cgi-bin/form.fcgi"/>
</port>
</service>
</definitions>And here, you can find the generated errors :
wsimport -s Sources -b http://www.w3.org/2004/08/xop/includ
e -b http://www.w3.org/2004/11/xmlmime form.wsdl
parsing WSDL...
[WARNING] src-resolve: Cannot resolve the name 'xmime4:contentType' to a(n) 'attribute declaration' component.
line 215 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
[WARNING] s4s-elt-invalid-content.1: The content of 'Data' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often.
line 215 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
[WARNING] src-resolve.4.2: Error resolving component 'generic:result'. It was detected that 'generic:result' is in namespace 'generic', but components
from this namespace are not referenceable from schema document 'file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP
/WSImport/Test/Form/form.wsdl#types?schema2'. If this is the incorrect namespace, perhaps the prefix of 'generic:result' needs to be changed. If this
is the correct namespace, then an appropriate 'import' tag should be added to 'file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Re
cherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2'.
line 230 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
[WARNING] src-resolve: Cannot resolve the name 'xop:Include' to a(n) 'element declaration' component.
line 213 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
[WARNING] Ignoring SOAP port "form": it uses non-standard SOAP 1.2 binding.
You must specify the "-extension" option to use this binding.
line 533 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl
[WARNING] Service "form" does not contain any usable ports. try running wsimport with -extension switch.
line 531 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl
generating code...
compiling code...Could you tell me how to correctly generate my classes in this case ?
Thank you.
Edited by: morphet on May 30, 2008 6:12 AMAlchemista,
Not sure if you were able to solve your problem..but I was trying to do exactly what you were trying to do.. access a datasource from a simple Java client. However, you cannot do so by simply writing the Java class and running it. The simple Java client has to be deployed as a J2EE Application Client. The following tutorial shows how to create a J2EE Application Client using the non-J2EE Java class you have written.
http://developer.java.sun.com/developer/technicalArticles/J2EE/appclient
The article talks about accessing EJBs from a J2EE App. Client.. but since you only want to access the DataSource, just skip all the screens until it asks you to register the JNDI DataSource resources...
Let me know if you have any questions. You can email me at [email protected]
I hope this helps. -
JAXB problem generating java classes
I'm doing some integration and have received a schema from the vendor the other day. When I try to generate java classes with the jaxb compiler I get this output
parsing a schema...
[ERROR] Property "Value" is already defined.
line 14 of jar:file:/C:/win32app/Java/jdk6/lib/tools.jar!/com/sun/xml/internal/xsom/impl/parser/datatypes.xsd
[ERROR] The following location is relevant to the above error
line 384 of file:/C:/code/sca-ecr.xsd
Failed to parse a schema.
<xsd:complexType name="options">
<xsd:sequence>
<xsd:element name="option" maxOccurs="unbounded">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
(Line 384) <xsd:attribute name="value" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>So, googling about this I came across these to articles that almost describes my problem.
http://weblogs.java.net/blog/kohsuke/archive/2005/05/compiling_mathm_1.html
https://jaxb.dev.java.net/guide/Dealing_with_errors.htmlAdding the this code did not help. Downloading JAXB 2.1.4 did not help, adding the -extension parameter still same result.
<xsd:annotation>
<xsd:appinfo>
<jaxb:property name="someAttribute" />
</xsd:appinfo>
</xsd:annotation> Why is jaxb failing ? Could it be that and attribute is not allowed to be called "value" ?
Any answers will do
regards abqWell, after hours of digging I found a solution which actually was right in front of me the whole time.
This is how I edited the schema.
<xsd:complexType name="options">
<xsd:sequence>
<xsd:element name="option" maxOccurs="unbounded" >
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="value" type="xsd:string" >
<xsd:annotation><xsd:appinfo>
<jaxb:property name="realValue" />
</xsd:appinfo></xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>Before, I placed the <xsd:annotation> tag efter the first line but inside the <xsd:attribute> made much better if you would like it to work.
When marshling an @XmlRoot object will produce valid xml code. So even though that the server have a different xml schema, they will be able to talk to each other.
abq -
Problem linking to PDF file from generated help
I am using RoboHelp HTML, Version 7.02 to create WebHelp, and
I cannot open a PDF file that I linked to some text in a topic. (I
created a PDF file that contains all of the help system's topics so
users can print them all.)
I can open the PDF file just fine when I preview the topic,
but I cannot open the PDF file from the generated help system. (I
set up the link to open in a new window.) When I click the link for
the PDF file, nothing happens, not even an error message. If I
right-click the link and select Properties from the menu, the
Properties dialog box shows the following path to the file:
file:///C:/Users/Myname/Documents/My%20RoboHelp%20Projects/project%20folder%20
name/!SSL!/WebHelp/print_all_help_topics.pdf
To create the link, I first copied the PDF file into my
project folder, Then I right-clicked the Baggage Files folder and
selected New>Baggage File, and clicked Open to add the file to
my Baggage Files folder. Then I dragged the file name from the
Baggage Files folder onto the selected text in my topic, saved all
and generated the WebHelp.
Does anyone have any ideas how I can fix this problem?
Thanks!Hi Rick.
Yes, mark of the web is selected. I just turned that option
off and re-generated and the PDF opens just fine, but of course,
I'm getting the Internet Explorer message that my browser is trying
to restrict the webpage from running ActiveX controls ... I was
using mark of the web so that my customer's users won't get this
message, although I don't know what ActiveX controls my help system
would be running. I'm just hoping that my customer doesn't balk at
this message appearing. Is turning off mark of the web is my only
choice for getting the link to work?
Thanks for your help and your welcome message. In case you
can't tell, I'm a newbie to RoboHelp. BTW, your website was
invaluable in helping me to create the link to begin with. Thank
you! -
Problem Generating JAXB Classes
I am using Eclipse (Enterprise Pack) and want to generate JAXB classes from a schema. I right click on the schema, select Generate JAXB classes - fill in package name, next and get the error:
java.lang.NoClassDefFoundError: com/sun/tools/xjc/XJCFacade
Caused by: java.lang.ClassNotFoundException: com.sun.tools.xjc.XJCFacade
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Exception in thread "main"
Am I missing a library?
Steve WatsonThe web service project will add additional server runtime libraries to the classpath thus resolving the jaxb dependencies, in the case of a dynamic web project, you'll have to manage that with the JPA facet and eclipselink, or by adding the Moxy jars seperately. However, if you want to use the target runtime libraries create a user-library and reference the following server libraries: (from Server Install Dir\modules) glassfish.jaxb_"version".jar, glassfish.jaxb.xjc_"version".jar, javax.activation_"version".jar, javax.xml.bind_"version".jar, javax.xml.stream_"version".jar.
-
Why does Flash generate invalid class names for library items?
I imported a bunch of bitmaps (PNGs). The library symbol names all included the full file name and its extension. When I check "export for actionscript" it generates a class name based on the symbol name, and it includes the ".png", even though that's invalid in a class name.
When I select multiple bitmaps and choose properties and export for actionscript, it has a note saying that classnames will be automatically generated for all items, but it does the same thing... including the ".png" in all the class names. Is this a problem? Wouldn't it save time if Flash would automatically strip the file extension from the instance name of bitmap library symbols when generating class names?Thank you Nipun. That is exactly the behavior I would expect, and I can confirm that in the trial of Flash CC it generates valid class names by removing the file extension. For example, a file named "3ball.test.png" will receive an auto-generated class name of "_3ball_test", so it really does ensure the class name is valid (meeting AS3 class name syntax)
kglad, what I'm saying is that an image file name like "ball.png" is not a valid "class name", because it contains a period, which is reserved as a package delimiter. I know the runtime can handle it as a valid "fully-qualified class name", but it's misleading because it's actually creating a class named "png" in package "ball", BUT it's understood that the auto-generated name is not supposed to be specifying any package, hence the misleading specification. The class would have to be instantiated like this: "import ball.png; var bd:BitmapData = new png();" or "import ball.*; var bd:BitmapData = new png();" You would also then have to import every single class individually and always use their fully qualified names, because you'd technically have a bunch of classes all named "png" inside a hundred different packages. It's just not acceptable.
The other problem that occurred in CS6 is if you loaded a bunch of files whose names started with numbers, then when you select them all, choose properties, and use the batch properties window to export them for actionscript, I noticed that such images would be auto-assigned generic names like "Class4" as it would realize the default auto-generated class name would be invalid. This problem has been fixed beautifully in Flash CC.
Nipun, it would actually be very helpful to have a little more control over the class naming conventions. For example, if I wanted all my BitmapData classes to exist in an "images" folder or package, it would be helpful if in the batch properties window I could specify a package name for all the auto-generated class names. When importing hundreds of images, it's very tedius to have to edit them individually and I don't always have time to write a JSFL script. There's room in that window to add a text field for a package name. Thanks! -
Problem while generating hindi pdfs
Hi,
This is Dasaradh. I have one problem while generating pdfs in HIndi. Here i have used two properties files, one is English and another one is Hindhi. If the user selects English PDF is generates Suceesfully. But if the user selects hindhi then pdf is generated but in that pdf all the charcaters are in diferent format but not in hindi.Actually my hindhi properties file and that pdfgerneration jsp both are in UTF-8 format. Here i have used PDFWriter class for generating pdfs.
Can any one pls help for generating the hindhi pdfs.
Thanking You,
Dasaradh.PMake sure that you use the correct and the same encoding thoroughout the complete process.
1) Save the propertiesfile with in that encoding. Even the most simplest texteditor (notepad) offers you an option list of charset encodings to be used during 'Save As'.
2) Read values from the propertiesfile with that encoding. Use a Reader where you specify the encoding in the constructor. Otherwise either the platform's default encoding (e.g. CP1252 in Windows) or the API's default encoding (e.g. ISO 8859-1 in java.util.Properties) will be used.
3) Display the values with that encoding. Specify the charset encoding in a <meta> tag in the HTML head.
A must-read: [http://www.joelonsoftware.com/articles/Unicode.html]. -
Session and Refresh problem, Urgent, please help
Hi, Dear Everyone:
I have two questions to ask. (Environment: OS: Nt4.0, Server: Weblogic5.1)
(1). When I use session to store an object in servlet (processed results
from database) then dispatch to a jsp page to display the results, I got the following
error message.
Wed May 16 15:54:31 CDT 2001:<I> <ServletContext-General> Generated java file:
C:\weblogic\myserver\classfiles\jsp_servlet\_ccproject\_subdisplay.java
java.lang.NullPointerException
at jsp_servlet._ccproject._subdisplay._jspService(_subdisplay.java, Comp
iled Code)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:106)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:124)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:154)
at com.voy.CCPro.DataDumper.doPost(DataDumper.java:69)
at com.voy.CCPro.DataDumper.doGet(DataDumper.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:106)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:907)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:851)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:252)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:364)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
Here is my servlet code:
HttpSession session = req.getSession(true);
Vector temp = buildData.BuildForDisplay(rst);
session.setAttribute("PostTitlePool", temp);
String url = "/ccproject/subdisplay.jsp";
RequestDispatcher dis = getServletContext().getRequestDispatcher(url);
dis.forward(req, res);
Here is my jsp
<%@ page import="com.voy.CCPro.*" %>
<%@ page import="java.util.*" %>
<%
Vector v = new Vector();
v = (Vector)session.getAttribute("PostTitlePool");
Enumeration enum = v.elements();
SequenceData sq = new SequenceData();
while(enum.hasMoreElements())
sq = (SequenceData)enum.nextElement();
if(sq.getIndicator()==0)
out.println(sq.getTitle());
else
out.print(sq.getTitle());
%>
Please tell me what I did wrong or What more do I need to do?
(2). If I changed to use request.setAttribute in servlet, it works. But I got another
strange
result from browser. That is, if I keep on clicking refresh (IE5.5), the same result
appending
the previous one on the same page.
Here is my code in servlet:
req.setAttribute("PostTitlePool",temp);
String url = "/ccproject/subdisplay.jsp";
RequestDispatcher dis = getServletContext().getRequestDispatcher(url);
dis.forward(req, res);
Here is my jsp:
<%@ page import="com.onvoy.CCPro.*" %>
<%@ page import="java.util.*" %>
<%
Vector v = new Vector();
v = (Vector)request.getAttribute("PostTitlePool");
Enumeration enum = v.elements();
SequenceData sq = new SequenceData();
while(enum.hasMoreElements())
sq = (SequenceData)enum.nextElement();
if(sq.getIndicator()==0)
out.println(sq.getTitle());
else
out.print(sq.getTitle());
%>
Please explain it to me why that and how to fix it. I appreciate it very much.
I control this as follows
--> all JSP's don't create session (<@page session="false">)
--> my FrontServlet checks
session=request.getSession(false);
if(session==null)
//invoke method from LoginHandler (Helper Class)
//for check logindata and create session
else
//invoke method from ProtectedResource (Helper Class)
//for check, if user logged on
--> LoginHandler
//method UserAllowed returns true or false
if(!UserAllowed())
//invoke ServiceDispatcher method who displays
//the 'AccessDenied'Page
else
//set loggedIn into the session
session.setAttribute("loggedIn","OK");
//invoke ServiceDispatcher method to display the requested Page
--> ProtectedResource
//check if user logged in
Object o=session.getAttribute("loggedIn");
if(o==null)
//User not logged in
//invoke ServiceDispatcher method to display 'Login' Page
else
//User logged in
//invoke ServiceDispatcher method to display the requested Page
--> URL of the Application
Welcome: http://localhost:8000/APP/login.jsp
submitted FORM sent to FrontServlet
(FORM ACTION="servlet/FrontServlet")
When everything is alright (username/password)
new URL http://localhost:8000/APP/servlet/FrontServlet
and the 'Main' Page is shown
when session is timed out and i refresh page
data is sent again (without asking for username and password)and new
session is created and the 'Main' Page is shown again.
How can i fix this problem
thank you in advance :-) -
Hi,
My xml: http://www.javaexperience.com/catalog.xml
I have an xml for which I want to generate JAXB classes. Unfortunately I don't have access to xsd for this xml.
Could someone please share steps to generate JAXB classes for a xml. What I have tried is:
1) Generate the xsd from this xml using XML to XSD Generater Online - xmlGrid.net
2) Use the Maven JAXB plugin "org.jvnet.jaxb2_commons"
The problem I faced with my approach was that:
Since the xml has root element and one of the child element as same name, the JAXB processor fails on reaching the child "Catalog" tag. Even though it had successfully processed the root "Catalog" tag.
Any pointers would of great help.The web service project will add additional server runtime libraries to the classpath thus resolving the jaxb dependencies, in the case of a dynamic web project, you'll have to manage that with the JPA facet and eclipselink, or by adding the Moxy jars seperately. However, if you want to use the target runtime libraries create a user-library and reference the following server libraries: (from Server Install Dir\modules) glassfish.jaxb_"version".jar, glassfish.jaxb.xjc_"version".jar, javax.activation_"version".jar, javax.xml.bind_"version".jar, javax.xml.stream_"version".jar.
-
JAXB not generating correct class definition
Hi,
I am using JAXB 2.0 and the JAXB plugin for Eclipse 3.x.
The problem I have is that when I run XJC on my XSD file the class definition for
a particular class is not what I am expecting. The class only defines 1 get method instead of three. While I am expecting to see getX getY and getZ I am seeing only 1 method getXAndgetYAndgetZ. Here is a snippet of the XSD file:
<xs:element name="Sql">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="Query"/>
<xs:element ref="Table" maxOccurs="unbounded"/>
<xs:element name="Database" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>I have defined the Table element in the XSD.
In this case my generated Sql class has the following method:
public List<JAXBElement<String>> getQueryAndTableAndDatabase() {
if (queryAndTableAndDatabase == null) {
queryAndTableAndDatabase = new ArrayList<JAXBElement<String>>();
return this.queryAndTableAndDatabase;
}Is there a problem with my XSD file or am I omitting a parameter when running XJC? Any help greatly appreciatedLDAPLoginModule uses the jackrabbit UserManagerImpl to create user's in CRX (CQ), not the CQ5 implementation which is disappointing. Have to manually add the sling:resourceType.
-
"Failed to find generated POATie class" when narrowing to DataManager
Dear all, I'm developing some custom stuff starting from Adobe samples but got really stuck with a number of problems.
Passed the one mentioned in c4837.pdf, when I try to
DataManager dataManager = DataManagerHelper.narrow(
(org.omg.CORBA.Object)connectionFactory.getConnection()
now I get the following exception (both in my code and using the unmodified samples from Adobe):
java.lang.IllegalStateException: Failed to find generated POATie class. Make sure that right idlj options are used. at com.adobe.CORBA.ServantBasePeerImpl.getTie(ServantBasePeerImpl.java:181) at com.adobe.CORBA.ServantBasePeerImpl.activate(ServantBasePeerImpl.java:99) at com.adobe.CORBA.ServantBase.activateWithOwner(ServantBase.java:57) at com.adobe.service.ResourcePeer.connect(ResourcePeer.java:87) at com.adobe.service.Resource.connect(Resource.java:80) at com.adobe.service.DataManagerImpl.(DataManagerImpl.java:65) at com.adobe.service.DataManagerManagedConnection.allocateConnection(DataManagerManagedConne ction.java:34) at com.adobe.service.ConnectionResource.getConnection(ConnectionResource.java:39) at com.adobe.service.J2EEConnectionFactoryManagerPeerImpl.getConnection(J2EEConnectionFactor yManagerPeerImpl.java:108) at com.adobe.livecycle.samples.forms.Ubi_cfor_01.renderX.uc_enable_pdf(renderX.java:205) at com.adobe.livecycle.samples.forms.Ubi_cfor_01.renderX.doGet(renderX.java:368)
NY
BADLY NEEDED HELP???I add some log lines that appear just a bit before the ones already posted, maybe they indicate the root cause for this:
09:37:38,193 INFO [STDOUT] Problem with system rootjavax.naming.NameNotFoundException: com.adobe.idp.config.PreferencesSPIHome not bound
09:37:38,194 INFO [STDOUT] javax.naming.NameNotFoundException: com.adobe.idp.config.PreferencesSPIHome not bound
09:37:38,195 INFO [STDOUT] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
09:37:38,195 INFO [STDOUT] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
09:37:38,196 INFO [STDOUT] at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
09:37:38,196 INFO [STDOUT] at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
09:37:38,196 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:530)
09:37:38,197 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
09:37:38,197 INFO [STDOUT] at javax.naming.InitialContext.lookup(InitialContext.java:351)
09:37:38,197 INFO [STDOUT] at com.adobe.idp.config.EJBUtil.getPreferencesSPIHome(EJBUtil.java:140)
09:37:38,198 INFO [STDOUT] at com.adobe.idp.config.AdobePreferenceFactory.systemRoot(AdobePreferenceFactory.java:120)
09:37:38,198 INFO [STDOUT] at com.adobe.formServer.mbean.FormServerConfigImpl.dbInitPreferences(FormServerConfigImpl.ja va:555)
09:37:38,198 INFO [STDOUT] at com.adobe.formServer.mbean.FormServerConfigImpl.dbGetProperties(FormServerConfigImpl.java :571)
09:37:38,199 INFO [STDOUT] at com.adobe.formServer.mbean.FormServerConfigImpl.getOptionsString(FormServerConfigImpl.jav a:476)
09:37:38,199 INFO [STDOUT] at com.adobe.formServer.mbean.FormServerConfigPOATie.getOptionsString(FormServerConfigPOATie .java:199)
09:37:38,200 INFO [STDOUT] at com.adobe.formServer.mbean.FormServerConfigPOA._invoke(FormServerConfigPOA.java:344)
09:37:38,200 INFO [STDOUT] at org.jacorb.poa.RequestProcessor.invokeOperation(Unknown Source)
09:37:38,200 INFO [STDOUT] at org.jacorb.poa.RequestProcessor.process(Unknown Source)
09:37:38,201 INFO [STDOUT] at org.jacorb.poa.RequestProcessor.run(Unknown Source) -
JAXB - Generated Java Classes error
Hi,
I am having a problem generating java classes given the follow snippet from a DTD. The ImplemenationData class that is generated does not include ImplementationPlatform and ProgramParameters as attributes. Instead, it includes these two elements in the PredicatedLists and then generates a content exception when those elements are not found. Can anyone tell me why these two elements are not being generated as attributes with the associated setter/getter methods to go with them? The ExeOptions, DllOptions and ExternalOptions are being generated properly and included in the PredicatedLists as they should be. Any help would be greatly appreciated.
<!ELEMENT ImplementationPlatform (#PCDATA)>
<!ELEMENT ProgramParameters (#PCDATA)>
<!ELEMENT ImplementationData
(ImplementationPlatform,
ProgramParameters,
(ExeOptions
|DllOptions
|ExternalOptions))>
<!ELEMENT ExeOptions
(PathAndFileName,
WorkingDirectoryName?,
Environment?,
InheritEnvironment,
StartInForeGround?,
AutomaticClose?,
WindowStyle?,
RunInXTerm?)>
<!ELEMENT DllOptions
(PathAndFileName,
EntryPointName,
ExecuteFenced?,
KeepLoaded?)>
<!ELEMENT ExternalOptions
(ServiceName,
ServiceType,
InvocationType,
ExecutableName,
ExecutableType,
IsLocalUser,
IsSecurityRoutineCall,
CodePage?,
TimeoutPeriod,
TimeoutInterval?,
IsMappingRoutineCall,
MappingType?,
ForwardMappingFormat?,
ForwardMappingParameters?,
BackwardMappingFormat?,
BackwardMappingParameters?)>Just a thumb suck but, have you tried placing the defintitions after the declarations instead of before.
Dave -
XSLT mapping with Java helper classes
Hi,
I'm trying to implement a XSLT mapping to convert my request to a specific soap request message format for this I'm calling some methods from a java helper class. I have imported the jar file into the archives. When I tried to test the interface it keeps complaing there is some exception but doesn't give me the exact error. Has any one called any java helper classes with in XSLT mapping, if so I would appreciate if you could help me with this. Here is the code from xsl.
<wsse:Security soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext" xmlns:UserToken="java:com.company.test.mapping.UserTokenMap">
<wsse:UsernameToken>
<wsse:Username xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<xsl:value-of select="UserToken:getUsername()"/>
</wsse:Username>
<wsse:Password wsse:Type="wsse:PasswordDigest" xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<xsl:value-of select="UserToken:getPasswordDigest()"/>
</wsse:Password>
<wsse:Nonce xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<xsl:value-of select="UserToken:getNonce()"/>
</wsse:Nonce>
<wsu:Created xsi:type="soapenc:string" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<xsl:value-of select="UserToken:getCreateDate()"/>
</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
Thanks,
JoeHi,
I'm getting following exception when I refer to the java class with in my XSLT mapping. Any one encountered the same problem.
com.sap.engine.services.ejb.exceptions.BaseRemoteException:
Exception in method transform.
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:218)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:104)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native
Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: java.lang.UnsupportedClassVersionError:
com/earthlink/xi/mapping/UserTokenMap (Unsupported
major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native
Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.lang.ClassLoader.defineClass(ClassLoader.java:448)
at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingLoader.findClass(RepMappingLoader.java:175)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at com.sap.engine.lib.xsl.xpath.JLBLibrary.<init>(JLBLibrary.java:33)
at com.sap.engine.lib.xsl.xpath.LibraryManager.getFunction(LibraryManager.java:69)
at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:98)
at com.sap.engine.lib.xsl.xpath.XPathProcessor.innerProcess(XPathProcessor.java:56)
at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:43)
at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:51)
at com.sap.engine.lib.xsl.xslt.XSLValueOf.process(XSLValueOf.java:76)
at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:296)
at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)
at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:296)
at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)
at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:296)
at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)
at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:296)
at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)
at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:296)
at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)
at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:296)
at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:272)
at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:463)
at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:431)
at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:394)
at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:398)
at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:240)
at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingTransformer.transform(RepMappingTransformer.java:150)
at com.sap.aii.ibrep.server.mapping.ibrun.RepXSLTMapping.execute(RepXSLTMapping.java:81)
at com.sap.aii.ibrep.server.mapping.ibrun.RepSequenceMapping.execute(RepSequenceMapping.java:54)
at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingHandler.run(RepMappingHandler.java:80)
at com.sap.aii.ibrep.server.mapping.rt.MappingHandlerAdapter.run(MappingHandlerAdapter.java:107)
at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInterfaceMapping(ServerMapService.java:127)
at com.sap.aii.ibrep.server.mapping.ServerMapService.transform(ServerMapService.java:104)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.transform(MapServiceBean.java:40)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:167)
... 10 more
; nested exception is:
java.lang.UnsupportedClassVersionError:
com/earthlink/xi/mapping/UserTokenMap (Unsupported
major.minor version 49.0)
Maybe you are looking for
-
Oracle 8.1.7 on Linux Suse 7.1
Hi, One first my English is not Perfect Please dont look to Errors. Ok on the weekend i have Try to Install a 8.1.7 Database on Suse Linux 7.1 with Kernel 2.4.9. The Oracli Installer is Running after i hav Change the JRE to 1.1.8 vom Blackdown.org. T
-
Database Exception in BPM 10GR3
Hi all, I have a database column which is a date which converts into Time when catalogued inside BPM 10GR3. When I execute a query i.e. query = "INSERT INTO test_table( CREATION_DATE,) VALUES ('" + Time.now() + "')"; implName = "testDB"; result = Dyn
-
Is there a way that I can set the maximum font size? I want to limit the size of all fonts.
-
How long does it take to update an original 3GS to 6.1.3? I followed the iTune instructions and it has been updating for hours already. Is there a better and faster way to do this?
-
How do i add a 2nd column to forms created in BC? I understand that BC itself only supports single column forms. I assume i copy the html, import into Dreamweaver, edit it there to make 2nd column, move stuff around etc. Then copy & paste back into