Problem: empty JNDI Context, weird name space

Hello,
I am unable to deploy our EAR file and one of the suspicious things is that if I print out the 'InitialContext' (the JNDI Context), I get nothing!.
Here is the code:
InitialContext jndiContext = new InitialContext();
System.out.println("CONTEXT: " + jndiContext);
System.out.println("ENV: " + jndiContext.getEnvironment());
System.out.println("NAME: " + jndiContext.getNameInNamespace());
And this is the output I get:
05/01/18 15:45:50 CONTEXT: javax.naming.InitialContext@18c4a7f
05/01/18 15:45:50 CONTEXT ENV: {} <=== empty!?
05/01/18 15:45:50 CONTEXT NAME: wgen <=== where is this 'wgen' coming from!?
I see 2 issues here:
1. Why is the Context environment empty? It shouldn't be empty!
2. Where does the Context name of 'wgen' come from? I do not have 'wgen' mentioned anywhere in ejb-jar.xml
So then I tried fixing issue 1 by creating the Context environment programmatically:
java.util.Hashtable env = new java.util.Hashtable();
env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.ApplicationInitialContextFactory");
env.put(javax.naming.Context.SECURITY_PRINCIPAL, "jazn.com/admin");
env.put(javax.naming.Context.SECURITY_CREDENTIALS, "admin2");
env.put(javax.naming.Context.PROVIDER_URL, "opmn:ormi://localhost:3201:OAS1.bray/wgen")
InitialContext jndiContext = new InitialContext(env);
This still produced an empty environment.
Has anyone got aaaany ideas about this?
Where is OAs/OC4J getting that 'wgen' context from? How do you populate the JNDI environment? It's as if the JNDI is completely brain-dead.... and it's possible that it's just misconfigured. All I have in my j2ee/config/ dir is a jndi.properties file that looks like this:
java.naming.factory.initial=com.evermind.server.ApplicationInitialContextFactory
java.naming.provider.url=opmn:ormi://localhost:6003:OAS1.bray/wgen
java.naming.security.principal=admin
java.naming.security.credentials=admin2
Thanks,
Otis

I would say there is nothing wrong with JNDI in your oc4j. The very fact that the CONTEXT NAME is wgen, which is obtained from the
java.naming.provider.url=opmn:ormi://localhost:6003:OAS1.bray/wgen
shows jndi is functioning.
To see more of you jndiContext, run
listContext (jndiContext,"")
after you have added the following method that iterates through the subContexts. Please note that getEnviroment returns the enviroment for the context, not the context itself. It might be empty indeed.
private static void listContext (Context ctx, String indent) {
try {
NamingEnumeration list = ctx.listBindings("");
while (list.hasMore()) {
Binding item = (Binding)list.next();
String className = item.getClassName();
String name = item.getName();
System.out.println(indent+className+" "+name);
Object o = item.getObject();
if (o instanceof javax.naming.Context)
listContext ((Context)o,indent+" ");
catch (NamingException ex) {
ex.printStackTrace();
System.err.println ("List error: "+ex);

Similar Messages

  • Name space problem in a WSDL

    hello
    I have an RFC 2 WS sync message. in the reply, I seem to have a problem with my name space in the WSDL that I recieve. (I see 2 arrays with the same name in the response). I tryed to change the WSDL so it will be with one name space only but with out success. when I try to test the xml in the MM I I see it red in the tree.
    I attached the wsdl and the xml response that I recieve. (there are 2 processBPRArr array in the reponse with the same name space even though it seems that I have in the WSDL different name spaces).
    help will be appreciated.
    my WSDL:
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://CRMWorkQueue.ws.migdal.co.il" xmlns:intf="http://CRMWorkQueue.ws.migdal.co.il" xmlns:tns1="http://CRMWorkQueue.ws.migdal.co.il" xmlns:tns2="http://CRMWorkQueue.ws.migdal.co.il" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://CRMWorkQueue.ws.migdal.co.il">
         <wsdl:types>
              <schema elementFormDefault="qualified" targetNamespace="http://CRMWorkQueue.ws.migdal.co.il" xmlns="http://www.w3.org/2001/XMLSchema">
                   <import namespace="http://beans.hafaka.scheme.migdal"/>
                   <import namespace="http://out.beans.hafaka.scheme.migdal"/>
                   <element name="getWorkQueue">
                        <complexType>
                             <sequence>
                                  <element name="in0" type="tns1:CRMWorkQueue"/>
                             </sequence>
                        </complexType>
                   </element>
                   <complexType name="ArrayOf_tns1_PaymentDetails">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns1:PaymentDetails"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns1_DOColl">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns1:DOColl"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns1_PSColl">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns1:PSColl"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns1_DGColl">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns1:DGColl"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns1_AttachedFile">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns1:AttachedFile"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns1_Party">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns1:Party"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns1_FundRequest">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns1:FundRequest"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns1_Relation">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns1:Relation"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns1_OptionalBenefit">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns1:OptionalBenefit"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns1_LifeParticipant">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns1:LifeParticipant"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns1_Coverage">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns1:Coverage"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns1_Policy">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns1:Policy"/>
                        </sequence>
                   </complexType>
                   <element name="getWorkQueueResponse">
                        <complexType>
                             <sequence>
                                  <element name="getWorkQueueReturn" type="tns2:CRMWorkQueueNotify"/>
                             </sequence>
                        </complexType>
                   </element>
                   <complexType name="ArrayOf_tns2_PathNoteInfo">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:PathNoteInfo"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns2_ChangeEssence">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:ChangeEssence"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_xsd_string">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:string"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns2_HistoryState">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:HistoryState"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns2_WorkQueue2000">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:WorkQueue2000"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns2_ReceivedDocument">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:ReceivedDocument"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns2_ExpectedDocument">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:ExpectedDocument"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns2_NoteInfo">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:NoteInfo"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns2_ProcessBPR">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:ProcessBPR"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns2_Restriction">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:Restriction"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns2_Addition">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:Addition"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns2_Taarif">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:Taarif"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns2_ProductOffer">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:ProductOffer"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns2_Agreement">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:Agreement"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns2_FundDetails">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:FundDetails"/>
                        </sequence>
                   </complexType>
                   <complexType name="ArrayOf_tns2_Funds">
                        <sequence>
                             <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:Funds"/>
                        </sequence>
                   </complexType>
                   <complexType name="UserPswd">
                        <sequence>
                             <element name="pswd" minOccurs="0" nillable="true" type="xsd:string"/>
                             <element name="cryptPswd" minOccurs="0" nillable="true" type="xsd:string"/>
                             <element name="cryptType" minOccurs="0" nillable="true" type="xsd:string"/>
                        </sequence>
                   </complexType>
                   <complexType name="UserAuthRequest">
                        <sequence>
                             <element name="userLoginName" minOccurs="0" nillable="true" type="xsd:string"/>
                             <element name="userPswd" nillable="true" minOccurs="0" type="tns1:UserPswd"/>
                        </sequence>
                   </complexType>
                   <complexType name="AgreementRequest">
                        <sequence>
                             <element name="organizationKey" minOccurs="0" nillable="true" type="xsd:string"/>
                             <element name="all" minOccurs="0" type="xsd:int"/>
                             <element name="carrierPartyId" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="agreementID" minOccurs="0" type="xsd:int"/>
                        </sequence>
                   </complexType>
                   <complexType name="Organization">
                        <sequence>
                             <element name="directDeliveryByPost" minOccurs="0" type="xsd:int"/>
                             <element name="natureCategory" minOccurs="0" type="xsd:int"/>
                             <element name="policyHolderNumber" minOccurs="0" type="xsd:int"/>
                             <element name="govtID" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="commissionPayeeType" minOccurs="0" type="xsd:int"/>
                             <element name="salesManagerNum" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="organizationKey" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="residenceCounty" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="allowAppPaymentDetermining" minOccurs="0" type="xsd:int"/>
                             <element name="contactPersonName" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="orgCode" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="abbrName" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="carrierPartyId" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="orgForm" minOccurs="0" type="xsd:int"/>
                             <element name="publicCompanyIndicator" minOccurs="0" type="xsd:int"/>
                             <element name="addressCountry" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="commissionPayeeID" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="estabDate" nillable="true" minOccurs="0" type="xsd:dateTime"/>
                             <element name="signedAgreementInd" minOccurs="0" type="xsd:int"/>
                             <element name="percentForSalesManager" minOccurs="0" type="xsd:double"/>
                             <element name="fullName" nillable="true" minOccurs="0" type="xsd:string"/>
                        </sequence>
                   </complexType>
                   <complexType name="Fax">
                        <sequence>
                             <element name="areaCode" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="dialNumber" nillable="true" minOccurs="0" type="xsd:string"/>
                        </sequence>
                   </complexType>
                   <complexType name="PaymentDetails">
                        <sequence>
                             <element name="creditConfirmationID" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="cardOwnerID" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="creditCardType" minOccurs="0" type="xsd:int"/>
                             <element name="bankBranchName" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="accountNumber" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="paymentMethod" minOccurs="0" type="xsd:int"/>
                             <element name="creditCardExpDate" nillable="true" minOccurs="0" type="xsd:dateTime"/>
                             <element name="acctHolderName" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="bankName" nillable="true" minOccurs="0" type="xsd:string"/>
                        </sequence>
                   </complexType>
                   <complexType name="Person">
                        <sequence>
                             <element name="fatherName" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="firstName" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="primaryProfession" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="secondaryEmailAddress" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="primaryEmailAddress" minOccurs="0" nillable="true" type="xsd:string"/>
                             <element name="personKey" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="passportCountry" minOccurs="0" type="xsd:int"/>
                             <element name="birthDate" nillable="true" minOccurs="0" type="xsd:dateTime"/>
                             <element name="secondaryProfessionCode" minOccurs="0" type="xsd:int"/>
                             <element name="cellularNumber" minOccurs="0" type="xsd:int"/>
                             <element name="confirmationDate" nillable="true" minOccurs="0" type="xsd:dateTime"/>
                             <element name="englishFirstName" minOccurs="0" nillable="true" type="xsd:string"/>
                             <element name="gender" minOccurs="0" type="xsd:int"/>
                             <element name="occupationCode" minOccurs="0" type="xsd:int"/>
                             <element name="lastName" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="sendMailInd" minOccurs="0" type="xsd:int"/>
                             <element name="proofOfAgeInd" minOccurs="0" type="xsd:int"/>
                             <element name="carrierPartyId" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="selfEmployedDeclaration" minOccurs="0" type="xsd:int"/>
                             <element name="marStat" minOccurs="0" type="xsd:int"/>
                             <element name="smokerStat" minOccurs="0" type="xsd:int"/>
                             <element name="primaryProfessionCode" minOccurs="0" type="xsd:int"/>
                             <element name="issueDate" nillable="true" minOccurs="0" type="xsd:dateTime"/>
                             <element name="secondaryProfession" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="englishLastName" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="occupation" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="cellularAreaCode" minOccurs="0" type="xsd:int"/>
                             <element name="declarationDate" nillable="true" minOccurs="0" type="xsd:dateTime"/>
                        </sequence>
                   </complexType>
                   <complexType name="LS">
                        <sequence>
                             <element name="drugs_ls" minOccurs="0" type="xsd:int"/>
                        </sequence>
                   </complexType>
                   <complexType name="DC">
                        <sequence>
                             <element name="name_dc" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="street_dc" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="first_name_dc" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="town_dc" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="id_no_dc" nillable="true" minOccurs="0" type="xsd:string"/>
                        </sequence>
                   </complexType>
                   <complexType name="GH">
                        <sequence>
                             <element name="drinking_x_gh" minOccurs="0" type="xsd:int"/>
                             <element name="drinking_from_year_gh" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="gen_questions19_gh" minOccurs="0" type="xsd:int"/>
                             <element name="ever_smoked_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions20_gh" minOccurs="0" type="xsd:int"/>
                             <element name="number_cigarettes_then_gh" minOccurs="0" type="xsd:int"/>
                             <element name="height_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions2_gh" minOccurs="0" type="xsd:int"/>
                             <element name="family_disorders_x_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions12_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions7_gh" minOccurs="0" type="xsd:int"/>
                             <element name="number_cigarettes_now_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions17_gh" minOccurs="0" type="xsd:int"/>
                             <element name="ever_drunk_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions23_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions5_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions10_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions15_gh" minOccurs="0" type="xsd:int"/>
                             <element name="smoking_started_year_gh" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="smoking_x_gh" minOccurs="0" type="xsd:int"/>
                             <element name="smoking_stopped_year_gh" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="gen_questions21_gh" minOccurs="0" type="xsd:int"/>
                             <element name="weight_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions3_gh" minOccurs="0" type="xsd:int"/>
                             <element name="heathy_able_to_work_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions13_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions8_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions18_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions1_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions24_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions6_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions11_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions16_gh" minOccurs="0" type="xsd:int"/>
                             <element name="drinking_until_year_gh" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="gen_questions22_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions4_gh" minOccurs="0" type="xsd:int"/>
                             <element name="hiv_infection_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions9_gh" minOccurs="0" type="xsd:int"/>
                             <element name="gen_questions14_gh" minOccurs="0" type="xsd:int"/>
                        </sequence>
                   </complexType>
                   <complexType name="PM">
                        <sequence>
                             <element name="pursuit_x_pm" minOccurs="0" type="xsd:int"/>
                             <element name="occupation_hazards_x_pm" minOccurs="0" type="xsd:int"/>
                             <element name="substandard_pm" minOccurs="0" type="xsd:int"/>
                        </sequence>
                   </complexType>
                   <complexType name="DOColl">
                        <sequence>
                             <element name="treatment_year_do" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="start_month_do" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="has_fully_recovered_do" minOccurs="0" type="xsd:int"/>
                             <element name="hospital_admission_do" minOccurs="0" type="xsd:int"/>
                             <element name="end_year_do" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="several_times_do" minOccurs="0" type="xsd:int"/>
                             <element name="type_of_treatment_do" minOccurs="0" type="xsd:int"/>
                             <element name="disorder_name_do" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="consequences_do" minOccurs="0" type="xsd:int"/>
                             <element name="start_year_do" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="treatment_month_do" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="right_left_do" minOccurs="0" type="xsd:int"/>
                             <element name="code_do" minOccurs="0" type="xsd:int"/>
                             <element name="end_month_do" nillable="true" minOccurs="0" type="xsd:string"/>
                        </sequence>
                   </complexType>
                   <complexType name="PSColl">
                        <sequence>
                             <element name="pursuit_name_ps" minOccurs="0" nillable="true" type="xsd:string"/>
                             <element name="code_ps" minOccurs="0" type="xsd:int"/>
                        </sequence>
                   </complexType>
                   <complexType name="DGColl">
                        <sequence>
                             <element name="drug_name_dg" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="code_dg" minOccurs="0" type="xsd:int"/>
                             <element name="quantity_dg" minOccurs="0" type="xsd:int"/>
                        </sequence>
                   </complexType>
                   <complexType name="Questionnaire">
                        <sequence>
                             <element name="LS" nillable="true" minOccurs="0" type="tns1:LS"/>
                             <element name="DC" nillable="true" minOccurs="0" type="tns1:DC"/>
                             <element name="GH" nillable="true" minOccurs="0" type="tns1:GH"/>
                             <element name="PM" nillable="true" minOccurs="0" type="tns1:PM"/>
                             <element name="DOCollArr" nillable="true" minOccurs="0" type="impl:ArrayOf_tns1_DOColl"/>
                             <element name="PSCollArr" minOccurs="0" nillable="true" type="impl:ArrayOf_tns1_PSColl"/>
                             <element name="DGCollArr" minOccurs="0" nillable="true" type="impl:ArrayOf_tns1_DGColl"/>
                        </sequence>
                   </complexType>
                   <complexType name="HealthStatement">
                        <sequence>
                             <element name="questionnaireStr" minOccurs="0" nillable="true" type="xsd:string"/>
                             <element name="tkufatBituach" minOccurs="0" type="xsd:int"/>
                             <element name="trdMiluiMevutach" nillable="true" minOccurs="0" type="xsd:dateTime"/>
                             <element name="medicalPcntAddition" minOccurs="0" type="xsd:double"/>
                             <element name="professionalPcntAddition" minOccurs="0" type="xsd:double"/>
                             <element name="questionnaire" nillable="true" minOccurs="0" type="tns1:Questionnaire"/>
                             <element name="maslulChitum" minOccurs="0" type="xsd:int"/>
                        </sequence>
                   </complexType>
                   <complexType name="Phone">
                        <sequence>
                             <element name="areaCode" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="dialNumber" nillable="true" minOccurs="0" type="xsd:string"/>
                        </sequence>
                   </complexType>
                   <complexType name="Address">
                        <sequence>
                             <element name="zip" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="buildNum" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="street" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="buildEnt" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="cityName" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="cityCode" minOccurs="0" type="xsd:int"/>
                             <element name="addressValidInd" minOccurs="0" type="xsd:int"/>
                             <element name="POBox" minOccurs="0" type="xsd:int"/>
                             <element name="buildLet" nillable="true" minOccurs="0" type="xsd:string"/>
                        </sequence>
                   </complexType>
                   <complexType name="AttachedFile">
                        <sequence>
                             <element name="fileType" minOccurs="0" type="xsd:int"/>
                             <element name="originalFileName" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="fileContent" nillable="true" minOccurs="0" type="xsd:base64Binary"/>
                             <element name="fileName" nillable="true" minOccurs="0" type="xsd:string"/>
                        </sequence>
                   </complexType>
                   <complexType name="Party">
                        <sequence>
                             <element name="organization" nillable="true" minOccurs="0" type="tns1:Organization"/>
                             <element name="partyResultCode" minOccurs="0" type="xsd:int"/>
                             <element name="fax" nillable="true" minOccurs="0" type="tns1:Fax"/>
                             <element name="paymentDetailsArr" nillable="true" minOccurs="0" type="impl:ArrayOf_tns1_PaymentDetails"/>
                             <element name="person" nillable="true" minOccurs="0" type="tns1:Person"/>
                             <element name="healthStatement" nillable="true" minOccurs="0" type="tns1:HealthStatement"/>
                             <element name="phone" nillable="true" minOccurs="0" type="tns1:Phone"/>
                             <element name="address" nillable="true" minOccurs="0" type="tns1:Address"/>
                             <element name="attachedFileArr" nillable="true" minOccurs="0" type="impl:ArrayOf_tns1_AttachedFile"/>
                        </sequence>
                   </complexType>
                   <complexType name="Parties">
                        <sequence>
                             <element name="partyArr" nillable="true" minOccurs="0" type="impl:ArrayOf_tns1_Party"/>
                        </sequence>
                   </complexType>
                   <complexType name="FundRequest">
                        <sequence>
                             <element name="indexEndDate" minOccurs="0" nillable="true" type="xsd:dateTime"/>
                             <element name="carrierPartyId" minOccurs="0" nillable="true" type="xsd:string"/>
                             <element name="indexStartDate" minOccurs="0" nillable="true" type="xsd:dateTime"/>
                             <element name="linkingType" type="xsd:int"/>
                        </sequence>
                   </complexType>
                   <complexType name="Relation">
                        <sequence>
                             <element name="relationRoleCode" type="xsd:int"/>
                             <element name="relationOriginatingObjectID" nillable="true" type="xsd:string"/>
                             <element name="relationRelatedObjectID" nillable="true" type="xsd:string"/>
                        </sequence>
                   </complexType>
                   <complexType name="KolRega">
                        <sequence>
                             <element name="providentFundType" type="xsd:int"/>
                             <element name="providentFundNumber" type="xsd:double"/>
                        </sequence>
                   </complexType>
                   <complexType name="BudgetSplit">
                        <sequence>
                             <element name="rule45" type="xsd:double"/>
                             <element name="amount" type="xsd:double"/>
                             <element name="pcntCompensation" type="xsd:double"/>
                             <element name="pensionEmployer" type="xsd:double"/>
                             <element name="rule47" type="xsd:double"/>
                             <element name="pensionEmployee" type="xsd:double"/>
                        </sequence>
                   </complexType>
                   <complexType name="Migdalor">
                        <sequence>
                             <element name="equityCourse" type="xsd:int"/>
                             <element name="lifeEquity" type="xsd:double"/>
                             <element name="compensationInvestmentCourse" type="xsd:int"/>
                             <element name="constStipend" type="xsd:double"/>
                             <element name="reduction" type="xsd:int"/>
                             <element name="manLifeStipend" nillable="true" type="tns1:BudgetSplit"/>
                             <element name="manEquity" nillable="true" type="tns1:BudgetSplit"/>
                             <element name="manConstEquity" nillable="true" type="tns1:BudgetSplit"/>
                             <element name="manStipend" nillable="true" type="tns1:BudgetSplit"/>
                             <element name="lopping" type="xsd:int"/>
                             <element name="constEquity" type="xsd:double"/>
                             <element name="pcntEquity" type="xsd:double"/>
                             <element name="salaryEquity" type="xsd:double"/>
                             <element name="pensionLifeInvestmentCourse" type="xsd:int"/>
                             <element name="lifeInvestmentCourse" type="xsd:int"/>
                             <element name="stipend" type="xsd:double"/>
                             <element name="equity" type="xsd:double"/>
                             <element name="lifeCycleCompensationMigdalorForLife" type="xsd:int"/>
                             <element name="lifeCyclePensionMigdalorForLife" type="xsd:int"/>
                             <element name="lifeCycleCompensationMigdalor" type="xsd:int"/>
                             <element name="pcntExpenseToSaving" type="xsd:double"/>
                             <element name="manLifeEquity" nillable="true" type="tns1:BudgetSplit"/>
                             <element name="paramInsuranceCourse" type="xsd:double"/>
                             <element name="insuranceCourse" type="xsd:int"/>
                             <element name="lifeStipend" type="xsd:double"/>
                             <element name="pensionInvestmentCourse" type="xsd:int"/>
                             <element name="investmentCourse" type="xsd:int"/>
                             <element name="compensationLifeInvestmentCourse" type="xsd:int"/>
                             <element name="manConstStipend" nillable="true" type="tns1:BudgetSplit"/>
                             <element name="lifeCyclePensionMigdalor" type="xsd:int"/>
                        </sequence>
                   </complexType>
                   <complexType name="OptionalBenefit">
                        <sequence>
                             <element name="optionalBenefitID" type="xsd:int"/>
                        </sequence>
                   </complexType>
                   <complexType name="OptionalBenefits">
                        <sequence>
                             <element name="optionalBenefitArr" nillable="true" type="impl:ArrayOf_tns1_OptionalBenefit"/>
                        </sequence>
                   </complexType>
                   <complexType name="Mitria">
                        <sequence>
                             <element name="additionalShalvaAmount" minOccurs="0" type="xsd:double"/>
                             <element name="shalvaAmount" minOccurs="0" type="xsd:double"/>
                             <element name="fundStartDate" minOccurs="0" nillable="true" type="xsd:dateTime"/>
                             <element name="fund" minOccurs="0" type="xsd:int"/>
                             <element name="restPensionAmount" minOccurs="0" type="xsd:double"/>
                             <element name="disabilityPensionAmount" minOccurs="0" type="xsd:double"/>
                             <element name="fundPremium" minOccurs="0" type="xsd:double"/>
                             <element name="salaryEquity" minOccurs="0" type="xsd:double"/>
                             <element name="equityCourse" minOccurs="0" type="xsd:int"/>
                             <element name="pcntEquity" minOccurs="0" type="xsd:double"/>
                        </sequence>
                   </complexType>
                   <complexType name="Product">
                        <sequence>
                             <element name="productCode" minOccurs="0" nillable="true" type="xsd:string"/>
                        </sequence>
                   </complexType>
                   <complexType name="LifeParticipant">
                        <sequence>
                             <element name="commissionPayeeType" minOccurs="0" type="xsd:int"/>
                             <element name="beneficiaryType" minOccurs="0" type="xsd:int"/>
                             <element name="lifeParticipantRoleCode" minOccurs="0" type="xsd:int"/>
                             <element name="lifeParticipantKey" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="lastUpdateDate" nillable="true" minOccurs="0" type="xsd:dateTime"/>
                             <element name="beneficiaryRoleCode" minOccurs="0" type="xsd:int"/>
                             <element name="participationPct" minOccurs="0" type="xsd:double"/>
                             <element name="collectionPct" minOccurs="0" type="xsd:double"/>
                             <element name="deathBenefitAmt" minOccurs="0" type="xsd:double"/>
                             <element name="participantType" minOccurs="0" type="xsd:int"/>
                             <element name="productionPct" minOccurs="0" type="xsd:double"/>
                        </sequence>
                   </complexType>
                   <complexType name="LifeParticipants">
                        <sequence>
                             <element name="lifeParticipantArr" minOccurs="0" nillable="true" type="impl:ArrayOf_tns1_LifeParticipant"/>
                        </sequence>
                   </complexType>
                   <complexType name="Coverage">
                        <sequence>
                             <element name="lifeParticipant" minOccurs="0" nillable="true" type="tns1:LifeParticipant"/>
                             <element name="coverageAction" minOccurs="0" type="xsd:int"/>
                             <element name="riskGroupName" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="coverageName" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="paymentPeriod" minOccurs="0" type="xsd:int"/>
                             <element name="paymentCode" minOccurs="0" type="xsd:double"/>
                             <element name="duration" minOccurs="0" type="xsd:int"/>
                             <element name="msManotCollective" minOccurs="0" type="xsd:double"/>
                             <element name="coverageSignDate" nillable="true" minOccurs="0" type="xsd:dateTime"/>
                             <element name="pcntValue" minOccurs="0" type="xsd:double"/>
                             <element name="policyValue" minOccurs="0" type="xsd:double"/>
                             <element name="release" minOccurs="0" type="xsd:int"/>
                             <element name="numSalaries" minOccurs="0" type="xsd:double"/>
                             <element name="coverageKey" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="mandatoryIndicator" minOccurs="0" type="xsd:int"/>
                             <element name="mix" minOccurs="0" type="xsd:double"/>
                        </sequence>
                   </complexType>
                   <complexType name="Life">
                        <sequence>
                             <element name="coverageArr" minOccurs="0" nillable="true" type="impl:ArrayOf_tns1_Coverage"/>
                        </sequence>
                   </complexType>
                   <complexType name="Pension">
                        <sequence>
                             <element name="transferFromAnotherFund" minOccurs="0" nillable="true" type="xsd:string"/>
                             <element name="mainCover" minOccurs="0" type="xsd:int"/>
                             <element name="riskDeduce" minOccurs="0" type="xsd:int"/>
                             <element name="pcntPension" minOccurs="0" type="xsd:double"/>
                             <element name="finalPaymentAge" minOccurs="0" type="xsd:double"/>
                             <element name="solitudeDeclarDate" nillable="true" minOccurs="0" type="xsd:dateTime"/>
                             <element name="insuranceCourse" minOccurs="0" type="xsd:int"/>
                             <element name="retAge" minOccurs="0" type="xsd:int"/>
                             <element name="orgFund" minOccurs="0" type="xsd:int"/>
                             <element name="pcntDisability" minOccurs="0" type="xsd:double"/>
                             <element name="pcntRest" minOccurs="0" type="xsd:double"/>
                             <element name="solitudeStatus" minOccurs="0" type="xsd:int"/>
                             <element name="qualificationPeriod" minOccurs="0" type="xsd:int"/>
                             <element name="pensionAge" minOccurs="0" type="xsd:int"/>
                        </sequence>
                   </complexType>
                   <complexType name="Risk">
                        <sequence>
                             <element name="loanType" minOccurs="0" type="xsd:int"/>
                             <element name="interestCode" minOccurs="0" type="xsd:int"/>
                             <element name="loanNumber" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="premiumCode" minOccurs="0" type="xsd:int"/>
                             <element name="pcntInterest" minOccurs="0" type="xsd:double"/>
                        </sequence>
                   </complexType>
                   <complexType name="Policy">
                        <sequence>
                             <element name="carrierCode" minOccurs="0" nillable="true" type="xsd:string"/>
                             <element name="pcntPensionEmployee" minOccurs="0" type="xsd:double"/>
                             <element name="printPolicyIndicator" minOccurs="0" type="xsd:int"/>
                             <element name="policycarrierPartyID" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="replacingForm" minOccurs="0" type="xsd:int"/>
                             <element name="proposalDate" nillable="true" minOccurs="0" type="xsd:dateTime"/>
                             <element name="linkingMode" minOccurs="0" type="xsd:int"/>
                             <element name="polNumber" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="acctHolderName" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="compensationAgreement" minOccurs="0" type="xsd:int"/>
                             <element name="numSalaries" minOccurs="0" type="xsd:double"/>
                             <element name="riskDeduce" minOccurs="0" type="xsd:int"/>
                             <element name="organizationKey" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="creditCardType" minOccurs="0" type="xsd:int"/>
                             <element name="externalPolNumerator" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="agreementID" minOccurs="0" type="xsd:int"/>
                             <element name="compensationInvestmentAuthority" minOccurs="0" type="xsd:int"/>
                             <element name="kolRega" nillable="true" minOccurs="0" type="tns1:KolRega"/>
                             <element name="contIndicator" minOccurs="0" type="xsd:int"/>
                             <element name="bankBranchName" nillable="true" minOccurs="0" type="xsd:string"/>
                             <element name="creditCardExpDate" nillable="true" minOccurs="0" type="xsd:dateTime"/>
                             <element name="salary" minOccurs="0" type="xsd:double"/>
                             <element name="policyValue" minOccurs="0" type="xsd:double"/>

    any suggestions?
    Thanks
    Kfir

  • Name space problem ?

    Hi Guys,
    I have defined a message interface as outbound and synchronus and for the output and input message, i have taken the data types from the external definition.
    when i activate the message interface it says the name space http://Shell.com which i have defiend, is not defined under the software component version
    any help would be appreciated
    Thanks,
    srini

    Hi Guys,
    I did not activate the software component version and i did that which activated the namespace also and it solved the problem.
    Thanks guys
    Thanks,
    srini

  • Problem while deleting a name space

    Hi All,
    When i delete a name space, its says it cannot delete as the objects (ExchangeLogData,ExchangeFaultData) are referring some xyz interface which doesn't even exist under the SCW.
    Please help me out to solve the error.
    regards,
    younus

    Hi,
    The error is
    "Error while parsing or executing XML-SQL document: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)"
    My target structure has action attribute in it, and the message mapping is working fine.
    What could be the error,  Please help me.
    regards

  • Using JNDI Context with HTTP Tunneling (Detecting Connection Problems)

    Hi there,
    We are using connection to WL 5.1.0,SP6 cluster to create JNDI Context. Everything works fine until tcp/ip timeouts occur.
    After that ...
    Is there a way to subscribe for connection events?
    I don't want to use T3CLient for this, since WL advises not
    to do that. The recommended method is to create a Context and
    work with it.
    Help.
    For the curious here is one exception which we can not even
    trap. Is this fixed in SP8?:
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ MBuf used after writeTo() called ]
         at weblogic.socket.MBuf.checkNotWritten(MBuf.java:68)
         at weblogic.socket.MBuf.writeTo(MBuf.java:140)
         at weblogic.socket.JVMSocketHTTPClient.sendMsg(JVMSocketHTTPClient.java:253)
         at weblogic.socket.JVMAbbrevSocket.sendOutMsg(JVMAbbrevSocket.java:348)
         at weblogic.socket.JVMAbbrevSocket.sendMsg(JVMAbbrevSocket.java:237)
         at weblogic.rjvm.ConnectionManager.sendMsg(ConnectionManager.java:420)
         at weblogic.rjvm.RJVMImpl.send(RJVMImpl.java:494)
         at weblogic.rjvm.MsgAbbrevOutputStream.flushAndSendRaw(MsgAbbrevOutputStream.java:155)
         at weblogic.rjvm.MsgAbbrevOutputStream.flushAndSend(MsgAbbrevOutputStream.java:163)
         at weblogic.rjvm.MsgAbbrevOutputStream.sendRecv(MsgAbbrevOutputStream.java:186)
         at weblogic.rmi.internal.BasicOutgoingRequest.sendRecv(BasicOutgoingRequest.java:23)
         at weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.java:73)
         at

    Download Firmware 2.77 MB...
    TFTP Download , download both the files on the desktop only...
    Double click the TFTP.exe file and click run :
    For Server- Enter the IP Address of the router that you assigned.  By default, the router is 192.168.1.1...
    For Password- Enter the password you assigned the router. By default, the router’s password is “admin”.
    For File- Click the triple “…” button and browse for the .bin firmware file...
    Click Upgrade button to start upgrading.  A progress bar should show up to show the progress.
    Once the Upgrade is done press and hold the reset button for 30 seconds...Release the reset button...Unplug the power cable from your router, wait for 30 seconds and re-connect the power cable...Now re-configure your router...

  • ConnectionException: Name space accessor for the java: name space has not b

    Hi,
    While running JUnti test cases I am getting the following. Can anyone help?
    com.deere.u90.iaf.jdbc.connection.ConnectionException: Name space accessor for the java: name space has not been set. Possible cause is that the user is specifying a java: URL name in a JNDI Context method call but is not running in a J2EE client or server environment.
    IAF JDBC Connection Management Framework exception in JNDI lookup of DataSource.
    Source of configuration data = C:\starteam\JDPS - Software Delivery system\3123_CanDB\sds\WebContent\WEB-INF\classes\config\SDSConnectionManagerLocal.properties
    Dynamic Properties = false
    Property Name Suffix = SDS
    Connection Pooling Enabled = true
    JNDI Provider URL = corbaloc:iiop:wpuds90700.jdnet.deere.com:2811
    DataSource Name = java:comp/env/jdbc/SDSDEVLDataSource
         at com.deere.u90.iaf.jdbc.connection.ConnectionManager.initializeEnvironment(ConnectionManager.java:282)
         at com.deere.u90.iaf.jdbc.connection.ConnectionManager.<init>(ConnectionManager.java:224)
         at sds.view.intranet.servlets.SDSGenericServlet.getConnectionManager(SDSGenericServlet.java:192)
         at junittest.ProgrammedECUAddComponentTest.setUp(ProgrammedECUAddComponentTest.java:75)
         at junit.framework.TestCase.runBare(TestCase.java:125)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at junit.framework.TestSuite.runTest(TestSuite.java:208)
         at junit.framework.TestSuite.run(TestSuite.java:203)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)
    Thanks in advance,
    Dhir

    I also get the same problem, this is very tedious but if you edit the song somehow and re-save it then it will copy. Not sure what the problem is at all, tried contacting Apple about this to no avail.

  • Problem with JNDI and JSP in Tomcat

    Hi,
    Basically, what I've done is to use the Tomcat administration web
    application to create the DataSource, which looks like it populated the
    server.xml (see below). I then try to access the testconn.jsp, and am
    getting that "Name java:comp is not bound in this Context" error.
    I was wondering if anyone could tell me what I'm doing wrong?
    Thanks,
    Feri
    My Configuration:
    - Tomcat 5.0.19
    - MySQL 4.0.18-nt
    - mysql-connector-java-3.0.15-ga-bin.jar
    server.xml:
    <GlobalNamingResources>
    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <!-- Editable user database that can also be used by
    UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved">
    </Resource>
    <ResourceParams name="UserDatabase">
    <parameter>
    <name>factory</name>
    <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
    </parameter>
    <parameter>
    <name>pathname</name>
    <value>conf/tomcat-users.xml</value>
    </parameter>
    </ResourceParams>
    <!--Feri test JNDI-->
         <Context crossContext="true" debug="5" docBase="injury" path="/injury" reloadable="true">
         <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_injury_log." suffix=".txt" timestamp="true"/>
              <Resource name="jdbc/injury" auth="Container"
    type="javax.sql.DataSource">
    </Resource>
    <ResourceParams name="jdbc/injury">
         <parameter>
              <name>factory</name>
              <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
         </parameter>
    <parameter>
    <name>username</name>
    <value>root</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>root</value>
    </parameter>
         <parameter>
    <name>driverClassName</name>
    <value>com.mysql.jdbc.Driver</value>
    </parameter>
         <parameter>
    <name>url</name>
    <value>jdbc:mysql://localhost:3306/injury</value>
    </parameter>
         <parameter>
              <name>maxIdle</name>
              <value>30</value>
         </parameter>
         <parameter>
              <name>maxActive</name>
              <value>10</value>
         </parameter>
         <parameter>
              <name>maxWait</name>
              <value>10000</value>
         </parameter>
    </ResourceParams>
         </Context>
    <!--Feri test JNDI end-->
    </GlobalNamingResources>
    \webapps\injury\WEB-INF\web.xml:
    <resource-ref>
    <description>Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file.</description>
    <res-ref-name>jdbc/injury</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    \webapps\injury\testconn.jsp
    <%@ page import="java.sql.*" %>
    <%@ page import="javax.sql.*" %>
    <%@ taglib prefix="ct" uri="/injury" %>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
    <h1>Connection test</h1>
    <ct:connection name="jdbc/injury">
    <%
    Statement stmt= conn.createStatement();
    ResultSet rs;
    rs = stmt.executeQuery("select * from user");
    while (rs.next()){
    %><%=rs.getString(1)%><%=rs.getInt(2) %><br><%
    rs.close();
    stmt.close();
    %>
    </ct:connection>
    ConnectionTag.java
    import java.io.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import javax.naming.*;
    import javax.sql.*;
    import javax.sql.DataSource;
    public class ConnectionTag extends TagSupport implements TryCatchFinally {
    private Connection conn;
    // JNDI name of the connection
    private String name;
    public void setName(String name)
         this.name = name;
    public int doStartTag()
         throws JspException
         try {
         Context env = (Context) new InitialContext().lookup("java:comp/env");
         DataSource ds = (DataSource) env.lookup(name);
         if (ds != null)
              conn = ds.getConnection();
         } catch (Exception e) {
         throw new JspException(e);
         if (conn == null)
         throw new JspException("can't open connection " + name);
         pageContext.setAttribute("conn", conn);
         return EVAL_BODY_INCLUDE;
    public void doCatch(Throwable t)
         throws Throwable
         throw t;
    public void doFinally()
         try {
         Connection conn = this.conn;
         this.conn = null;
         pageContext.removeAttribute("conn");
         conn.close();
         } catch (Exception e) {
    Tomcat 5.0\conf\Catalina\localhost\injury.xml
    <?xml version='1.0' encoding='utf-8'?>
    <Context displayName="Injury" docBase="E:\Tomcat 5.0\webapps\injury" path="/injury" className="org.apache.catalina.core.StandardContext"
    cachingAllowed="true" charsetMapperClass="org.apache.catalina .util.CharsetMapper" cookies="true" crossContext="false" debug="0"
    mapperClass="org.apache.catalina.core.StandardContextMapper" useNaming="true" wrapperClass="org.apache.catalina.core.StandardWrapper" >
    <Resource auth="Container" description="Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file." name="jdbc/injury" type="javax.sql.DataSource"/>
    <ResourceLink global="jdbc/injury" name="injury" type="javax.sql.DataSource"/>
    </Context>

    Hi,
    First of all, you can find alot of information about this in the forum about jsp's.
    I think a good thing to do is not to put your context tag directly into the server.xml file.
    What you should do is create a context.xml file with the context-tag in it, and put it in the META-INF directory of your .war file. Upon deployment to tomcat5 this file will be extracted from the war, copied to the conf\enginename\hostname directory, and it will be renamed to contextName.xml.
    I think you are developing directly into the webapps directory, and I believe you should avoid that and use the deployment feature of the manager web-app or you should use the deployertool from you ide or standalone ant.
    anyway, for starters try to remove the context tag from the server.xml file as described above, and check out the jsp / jdbc forums for simular problems and answers.
    good luck

  • Problem with JNDI in WLS 5.1

    Hi all,
    i have a problem with JNDI in WLE 5.1.
    i am accessing an LDAP on another machine running Netscape Directory Server.
    The host URL is ldap://myhost:65535/o=marco, c=fi
    i am always getting back the following exception:
    javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.
    WLInitialContextFactory. Root exception is java.lang.ClassCastException: weblog
    ic.jndi.WLInitialContextFactory
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    58)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242
    at javax.naming.InitialContext.init(InitialContext.java:218)
    at javax.naming.InitialContext.<init>(InitialContext.java:194)
    and my code is this:
    Hashtable _environment = new Hashtable();
    try {
    environment.put(Context.INITIALCONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    environment.put(Context.PROVIDERURL, "ldap://myhost:65535");
    if ((principal!=null) || (credentials!=null)) {
    environment.put(Context.SECURITYAUTHENTICATION, "simple");
    environment.put(Context.SECURITYPRINCIPAL, principal);
    environment.put(Context.SECURITYCREDENTIALS, credentials);
    context = new InitialContext(environment);
    parser = context.getNameParser(initialCtxFactory);
    } catch(Exception e) {
    e.printStackTrace();
    can anyone help me please??
    thanx in advance
    marco

    Take out the "weblogic.jndi.WLInitialContextFactory" and add the respective factory NAME..
    environment.put(Context.INITIALCONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    Cheers,
    Naggi
    Senthil Kumar S wrote:
    http://weblogic.com/docs51/classdocs/API_jndi.html#delegate
    Marco wrote:
    Hi all,
    i have a problem with JNDI in WLE 5.1.
    i am accessing an LDAP on another machine running Netscape Directory Server.
    The host URL is ldap://myhost:65535/o=marco, c=fi
    i am always getting back the following exception:
    javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.
    WLInitialContextFactory. Root exception is java.lang.ClassCastException: weblog
    ic.jndi.WLInitialContextFactory
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    58)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242
    at javax.naming.InitialContext.init(InitialContext.java:218)
    at javax.naming.InitialContext.<init>(InitialContext.java:194)
    and my code is this:
    Hashtable _environment = new Hashtable();
    try {
    environment.put(Context.INITIALCONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    environment.put(Context.PROVIDERURL, "ldap://myhost:65535");
    if ((principal!=null) || (credentials!=null)) {
    environment.put(Context.SECURITYAUTHENTICATION, "simple");
    environment.put(Context.SECURITYPRINCIPAL, principal);
    environment.put(Context.SECURITYCREDENTIALS, credentials);
    context = new InitialContext(environment);
    parser = context.getNameParser(initialCtxFactory);
    } catch(Exception e) {
    e.printStackTrace();
    can anyone help me please??
    thanx in advance
    marco--
    http://www.net4tech.com

  • OC4J 1.0.2.2.1 Creating 2 JNDI Contexts

    Hello,
    I have a problem when creating two JNDI contexts.
    I've got a very simple class that creates 2 contexts serially with 2 separate property objects.
    But the 2nd context seems to be being created with the first properties object. And yes I am closing the first.
    Here is it
    public class TestLookup
    private static void lookup(String name, String password)
    InitialContext ctx = null;
    try
    Properties p = new Properties();
    p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    p.setProperty(Context.PROVIDER_URL, "ormi://localhost:23791");
    p.setProperty(Context.SECURITY_PRINCIPAL, name);
    p.setProperty(Context.SECURITY_CREDENTIALS, password);
    ctx = new InitialContext(p);
    ctx.lookup("Security");
    System.out.println("finish");
    catch (Exception e)
    try
    if (ctx != null)
    ctx.close();
    System.out.println("ctx closed");
    catch (Exception e2)
    e2.printStackTrace();
    e.printStackTrace();
    public static void main(String[] args)
    lookup("123", "admin");
    lookup("admin", "admin");
    Here is the output
    ctx closed
    java.lang.SecurityException: Invalid username/password for default (123)
    etc....
    ctx closed
    java.lang.SecurityException: Invalid username/password for default (123)
    etc....
    Any ideas anyone

    This may be problem with your userid/password. Please look the $OC4J_HOME/j2ee/home/config/principals.xml whether you have a right userid password.
    I did a quick test at looking up at "jdbc/OracleDS" for two users admin and SCOTT and this works fine both in 1.0.2.2.x an 9.0.2
    I got your errors when I had wrong passwords for these users
    regards
    Debu

  • How to set jndi context to call EJB?

    Hello!
    install the j2ee sdk 1.4 on a server that has the ip address 211.83.144.48.
    then I deploy a EJB ,but I want to call the method from another pc.
    The problem is that how I initialize the jndi context? How can get the url for "Context.PROVIDER_URL"?
    thks.

    Hi there, I am having what appears to be a very similar problem.
    the code I am using for gaining the initial context is as follows:
    properties.put("java.naming.factory.initial",JNDI_FACT_CLASS_NAME);
    properties.put("java.naming.provider.url", s);
    return new InitialContext(properties);
    where these instantiated variables when pulled out of the hash are :
    java.naming.factory.initial : com.sun.appserv.naming.S1ASCtxFactory
    java.naming.provider.url : iiop://lich.ecs.soton.ac.uk:3700
    this works absolutely fine on the localhost machine, running both client and server, however when
    running on seperate machines I get the same ORB_COMM error as previously stated:
    WARNING: ORBUTIL.connectFailure
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:1739) com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:1757)
    ..etc..
    apparently this is caused by :
    java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:460)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    ...etc...
    the server is definately up and running, and can provide all other services to the remote client, using both the IP and the DNS resolved name, and JVT seems to work fine, just not corba look up's of a queue.
    I am using the Sun Application Platform Server 8 and the standard j2EE RI versions of corba , JNDI e.t.c
    if you could suggest any further reason why the localhost may be resolvable, but the remote may not I would drastically appreciate the help, as I have been scouring forums for 2 days now, and exhaused all
    other potential solutions.
    thanks
    Tim

  • "No JNDI context" error

    Hello.
    I'm currently using SQLDeveloper version 1.5.0.5.3 and since maybe three versions ago, I started getting frequently the following error when opening the application:
    {color:#ff0000}SEVERE 60 0 oracle.jdevimpl.db.adapter.DefaultContextWrapper failed to create naming Context for db connections at url: file:/C:/Documents and Settings/jvargem/Application Data/SQL Developer/system1.5.0.53.38/o.jdeveloper.db.connection.11.1.1.0.22.49.35/connections.xml
    SEVERE 61 16 oracle.jdevimpl.db.adapter.DefaultContextWrapper failed to create naming Context for db connections at url: file:/C:/Documents and Settings/jvargem/Application Data/SQL Developer/system1.5.0.53.38/o.jdeveloper.db.connection.11.1.1.0.22.49.35/connections.xml
    SEVERE 62 15 oracle.jdeveloper.db.DatabaseConnections DatabaseConnections has no JNDI context so cannot list connections.
    SEVERE 63 0 oracle.jdevimpl.db.adapter.DefaultContextWrapper failed to create naming Context for db connections at url: file:/C:/Documents and Settings/jvargem/Application Data/SQL Developer/system1.5.0.53.38/o.jdeveloper.db.connection.11.1.1.0.22.49.35/connections.xml
    SEVERE 64 0 oracle.jdevimpl.db.adapter.DefaultContextWrapper failed to create naming Context for db connections at url: file:/C:/Documents and Settings/jvargem/Application Data/SQL Developer/system1.5.0.53.38/o.jdeveloper.db.connection.11.1.1.0.22.49.35/connections.xml
    SEVERE 65 0 oracle.jdeveloper.db.DatabaseConnections DatabaseConnections has no JNDI context so cannot list connections.{color}
    When this error happens, no connections are displayed, which prevents me from using the application unless I create the connection all over again!
    As I said this happens frequently and afterwards I have to close and restart the application several times until the error goes away. The problem is that sometimes it doesn't go away and I have to restart the computer and restart all over again, hoping it will work.
    As anyone experienced this? Any idea of what may be happening and how to solve it?
    Thanks a lot
    Jo&atilde;o Vargem

    Please read the whole thread before posting.
    You did search the forum, which is great, but then read what people respond! There was only 1 reply here, so that shouldn't be too much work...
    If the latest version still gives you problems, do get back though.
    Regards,
    K.

  • I have a question about extracting pages.  When I do the function, adobe saves the individual files as " file name space page number ", so the files look like this "filename 1.pdf", "filename 2.pdf", "filename 3.pdf".  Without too many gory details, I a

    I have a question about extracting pages.  When I do the function, adobe saves the individual files as "<file name><space><page number>", so the files look like this "filename 1.pdf", "filename 2.pdf", "filename 3.pdf".  Without too many gory details, I am using excel to concatenate some data to dynamically build a hyperlink to these extraced files.  It casues me problems, however, for the space to be the the file name.  Is there any way to change the default behavoir of this function to perhaps use a dash or underscore instead of a space?

    No, you can't change the default naming scheme. You can do it yourself if you extract the pages using a script instead of using the built-in command.

  • Problems with external context mapping

    Hi ,
    I am having the following problems with external context mapping from one WD component to another.
    Problem description:
    In the <i>Component Interfaces</i> I have defined a WD interface "InfA".
    In the <i>interface controller</i> of this compoenent,I have ContextA and attributeA(cardinality 1..1).The contextA is marked as an "Input Element".
    Now my webdynpro componentB adds InfA as used component.In componentB I decalre a contextB with attributeB and map it to contextA to set up the external context mapping.
    Now I expect that if any webdynpro component implements this WD interface InfA ,he has access to contextA with the data getting filled from contextB.
    After i have created the component for the used component I try to fill values in the source node contextB thru this code:
    wdContext.currentContextB.setB(value);
    But in the runtime I keep getting error nullPointerException for nodeContextB,suggesting that the mapping has not been completed.
    Can anyone suggest due to what the error can come ,and, if its a webdynpro bug ,is there a workaround??
    Thanks in advance for your help.
    Best regards
    Sourav

    HI,
    Valery : I personally checked  by doing the example, if the names of value attribute are different in the child's interface and parents component controller then it throws the exception.
    Sourav: NullPointer Exception is thrown when something is not properly initialised, if in the main component the cardinality of mapped origin is 1.1 then you need to access it element directly like:
    wdContext.currentParentNodeElement().setFname("Abhijeet");
        wdContext.currentParentNodeElement().setLname("M");
    i will suggest just check out if you are declaring some element of value node and without initialising taking its use or what?
    if this doesnt solve your problem, please post the expanded exception.
    hope it helps
    let me know if you face nay problem
    regards

  • Problem with Multiple Context Creation

    Hi,
    We are facing a java.lang.SecurityException Invalid Subject
    We need to create multiple Initial Contexts for a single thread.
    Following is the Scenario
    1) The user will access Servlet/Struts Action class which performs database call and EJB(one, two) calls with different Initial Contexts ( Credentials are different)
    2) At the same time the Timer Task runs in back ground which is invoked from servlet load-on-startup and runs for every 1 min.
    3) The Timer Task invoke an MDB this MBD will make an external EJB (three) call for business logic.
    {color:#ff0000}Please Suggest me the Sequence of step I am expecting are correct or not{color}
    1) The Timer Task will run in the same JVM where the Servlet/Action classes are loaded (WEB-CONTAINER)
    2) The Thread created for Servlet/Action class will not be shared by Timer Task.
    3) The Thread created for Timer Task and the MDB are different.
    4) So the Servlet - Thread, Timer Task Thread and MDB Thread are different.
    The Behavior of the Context is as follows according to Bea Document.
    [http://e-docs.bea.com/wls/docs81/jndi/jndi.html#476864]
    JNDI Contexts and Threads
    How to Avoid Potential JNDI Context Problems (Please Refer this Paragraph)
    I am closing the entire Context's immediately after lookup
    Still we are facing this java.lang.SecurityException Invalid Subject Exception Problem
    The Context of EJB which we are calling from MDB is sharing the Servlet/Action Class Context -- Credentials
    Example_
    {color:#ff0000}Servlet/Action Class Context Credentials -- are user1/pass1{color}
    {color:#ff0000}EJB (three) Context Credentials -- are user3/pass3{color}
    When EJB (Three) lookup is invoked it&rsquo;s throwing the following Exception
    *java.lang.SecurityException: [Security: 090398] Invalid Subject: user1*
    Please advise to solve this problem
    Thank You.

    Solved By myself
    There is problem while passing data to internal table for item level

  • Qosmio F10: ERROR: "Unable to ACPI Name Space!"

    The original motherboard with 855PM chipset was exchanged at Toshiba German service during the warranty period for the new one with another chipset (915 or 910).
    The Toshiba "Common modules" were successfully running with the new motherboard until there was some trouble with Windows XP and I had to reinstall it. After that I try to install "Common Modules" Toshiba V.6.02.00" on my Qosmio F10 with XP Proffesional and SP2.
    I have got a message "Unable to ACPI Name Space! GNS.exe terminated." The error appears 5 times, before laptop show me Next button and when i push "This is not and ACPI System" It's not possible to install ACPI device of toshiba" error appears and close the "Common Modules Toshiba V.6.02.00" application.
    In addition when trying to shutdown Windows XP, the "Standby" button is deactivated and computer is not able to shut down automatically but requires to press "Power" button at the end.
    Any ideas if it might be some kind of software or BIOS problem? Motherboard failure?
    Please, help.

    Hi
    Thanks for the hint. Actually, I have got the driver CD from the service and used it.
    Now I found the solution. The reason for the ACPI failure was that I integrated the new XP updates and the drivers from the CD into my installation package.
    This installation did not work. However, after I reinstalled XP from the older installation package from summer 2006, the ACPI is running again. Thus, the correct procedure is, at first, to install the XP, then to install the drivers, and then, to install the XP updates.
    Best regards,
    Filipp

Maybe you are looking for

  • Fill dynamic internal table with data from another dynamic table

    Hi, I have a huge dynamic table with a few columns and need to fill another dynamic table with some of the columns, that are also existing in the other one. I first know at runtime, which fields the smaller table contains. Until now, I did it that wa

  • Certificate based authentication with SSL load balancer

    I've been asked to implement certificate-based authentication (CBA) on a weblogic cluster serving up web services. I've read through Chapter 10 (security) and understand the "Identity Assertion" concept. Environment: Weblogic 8.1 cluster fronted by a

  • Macbook Pro 2010 keeps freezing and restarting

    Hi. Last few days I have problems with my macbook pro 2010 model, running latest OS and all software. I have problems with freezing very often. Screen turns to black and after few seconds it restarts automaticly. It happens when I try to open iPhoto,

  • 1020 ear piece 'Lisp' - audio settings update 2.1....

    I have had several 1020's, 10 in fact that all suffered with the same issue.  When talking to someone, it sounded like they had a lisp.  this was only previlant when listening through the normal ear piece speaker.  It only did it when connected, ring

  • URLConnection with Proxy (yeah URL's again but not simmilar to others;))

    Hy all, What i try to do: getting the content of a website over a Proxy. Well it took me some time to google and stuff and i found out this is something many ppl. are stuck at. The most common solution to do that is something like where i am at this