JAXB is not generating the setter method for my tag

Hi,
I am generating java classes form my .xsd file using JAXB.
The xsd definition has defnes a Form as a sequence of FormElement, where FormElement is a choice of graphical components like text etc. Form can have 0 or unbounded elements of typeFormElement
Example
<xs:element ref="sswfm:FormElement" minOccurs="0" maxOccurs="unbounded"/>
It is creating the getter method for this tag like this-
java.util.List getFormElement();
but does not create setter method, namely, setFormElements which I would like to use when marshalling from swing to XML.
If i remove the maxOccurs="unbounded, it is creating the setter method for this tag.But i want to keep this tag as it it and needs the setter method also.
What should i do? Has one tried this before. HELP if you can
Thank you in advance.

Hi RavindraKshirsagar,
We have a problem like you faced. Our requirement is that, we need to generate dynamically the PERSON element in our javabean.
<xs:element name='SERVICE_REQUESTER'>
          <xs:complexType>
               <xs:sequence>
                    <xs:element ref='ORGANIZATION' />
                    <xs:element ref='PERSON' maxOccurs='unbounded' />
               </xs:sequence>
          </xs:complexType>
     </xs:element>For this maxOccurs, as JAXB is not generating any Setter Method. As we need to get data dynamically from external application. If you could help us in handling this case dynamically, it will be well and good.
Please send us the script / code asap.

Similar Messages

  • Where is the "set" method for this ELEMENT?

    Hi
    I'm trying to understand the relationship between the DTD and XJS, and the JAXB generated code.
    Consider the example DTD, XJS, and generated source code (i.e., "value07.java") for ELEMENT value07, below ...
    QUESTION#1: Why is there no "set" method generated for ELEMENT "value07a" within the generated value07.java ???
    QUESTION#2: How to I code the DTD/XJS in order to force the generation of a "set" method in value07.java???.
    -- I want to be able to set a new value for ELEMENT "value07a" in order to generate an XML document containing the new value!!
    (NOTE: the reason that ELEMENT value07 (as well as other ELEMENTs) has only a single subelement, is in order to satisfy the XSLT definition in a preexisting application.)
    * * * this is the DTD* * *
    <!ELEMENT request                          (value01,value02,value03,value04,value05?,value06?,value07?,value08?,value09?,value10?,value11?,value12?,value13?,value14?,value15?,value16?,value17?,value18?)>
    <!ELEMENT value01                          (#PCDATA)>
    <!ELEMENT value02                          (#PCDATA)>
    <!ELEMENT value03                          (#PCDATA)>
    <!ELEMENT value04                          (value04a, value04b?)>
    <!ELEMENT value04a                          (#PCDATA)>
    <!ELEMENT value04b                          (#PCDATA)>
    <!ELEMENT value05                          (value05a, value05b?)>
    <!ELEMENT value05a                          (#PCDATA)>
    <!ELEMENT value05b                          (#PCDATA)>
    <!ELEMENT value06                          (value06a+)>
    <!ELEMENT value06a                          (#PCDATA)>
    <!ELEMENT value07                          (value07a+)>
    <!ELEMENT value07a                          (#PCDATA)>
    <!ELEMENT value08                          (value08a+)>
    <!ELEMENT value08a                          (#PCDATA)>
    <!ELEMENT value09                          (value09a+)>
    <!ELEMENT value09a                          (#PCDATA)>
    <!ELEMENT value10                          (value10a+)>
    <!ELEMENT value10a                          (#PCDATA)>
    <!ELEMENT value11                          (value11a+)>
    <!ELEMENT value11a                          (#PCDATA)>
    <!ELEMENT value12                          (value12a+)>
    <!ELEMENT value12a                          (#PCDATA)>
    <!ELEMENT value13                          (value13a+)>
    <!ELEMENT value13a                          (#PCDATA)>
    <!ELEMENT value14                          (value14a+)>
    <!ELEMENT value14a                          (#PCDATA)>
    <!ELEMENT value15                          (value15a+)>
    <!ELEMENT value15a                          (#PCDATA)>
    <!ELEMENT value16                          (value16a+)>
    <!ELEMENT value16a                          (#PCDATA)>
    <!ELEMENT value17                          (value17a+)>
    <!ELEMENT value17a                          (#PCDATA)>
    <!ELEMENT value18                          (value18a+)>
    <!ELEMENT value18a                          (#PCDATA)>
    * * * this is the XJS * * *
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE xml-java-binding-schema SYSTEM "http://java.sun.com/dtd/jaxb/1.0-ea/xjs.dtd">
    <xml-java-binding-schema version="1.0-ea">
    <options package="testSourceCode"/>
    <element name="request" type="class" root="true"/>
         <element name="value01"                               type="value"/>
         <element name="value02"                               type="value"/>
         <element name="value03"                          type="value"/>
         <element name="value04" type="class">
              <content>
                   <element-ref name="value04a" />
                   <element-ref name="value04b" />
              </content>
         </element>
         <element name="value05" type="class">
              <content>
                   <element-ref name="value05a" />
                   <element-ref name="value05b" />
              </content>
         </element>
         <element name="value06" type="class">
              <content>
                   <element-ref name="value06a" />
              </content>
         </element>
         <element name="value07" type="class">
              <content>
                   <element-ref name="value07a" />
              </content>
         </element>
         <element name="value08" type="class">
              <content>
                   <element-ref name="value08a" />
              </content>
         </element>
         <element name="value09" type="class">
              <content>
                   <element-ref name="value09a" />
              </content>
         </element>
         <element name="value10" type="class">
              <content>
                   <element-ref name="value10a" />
              </content>
         </element>
         <element name="value11" type="class">
              <content>
                   <element-ref name="value11a" />
              </content>
         </element>
         <element name="value12" type="class">
              <content>
                   <element-ref name="value12a" />
              </content>
         </element>
         <element name="value13" type="class">
              <content>
                   <element-ref name="value13a" />
              </content>
         </element>
         <element name="value14" type="class">
              <content>
                   <element-ref name="value14a" />
              </content>
         </element>
         <element name="value15" type="class">
              <content>
                   <element-ref name="value15a" />
              </content>
         </element>
         <element name="value16" type="class">
              <content>
                   <element-ref name="value16a" />
              </content>
         </element>
         <element name="value17" type="class">
              <content>
                   <element-ref name="value17a" />
              </content>
         </element>
         <element name="value18" type="class">
              <content>
                   <element-ref name="value18a" />
              </content>
         </element>
    </xml-java-binding-schema>
    * * * generated sourcecode for ELEMENT "value07"...i.e., "value07.java" * * *
    package testSourceCode;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import javax.xml.bind.ConversionException;
    import javax.xml.bind.Dispatcher;
    import javax.xml.bind.Element;
    import javax.xml.bind.InvalidAttributeException;
    import javax.xml.bind.InvalidContentObjectException;
    import javax.xml.bind.LocalValidationException;
    import javax.xml.bind.MarshallableObject;
    import javax.xml.bind.Marshaller;
    import javax.xml.bind.MissingContentException;
    import javax.xml.bind.PredicatedLists;
    import javax.xml.bind.PredicatedLists.Predicate;
    import javax.xml.bind.StructureValidationException;
    import javax.xml.bind.UnmarshalException;
    import javax.xml.bind.Unmarshaller;
    import javax.xml.bind.Validator;
    import javax.xml.marshal.XMLScanner;
    import javax.xml.marshal.XMLWriter;
    public class Value07
    extends MarshallableObject
    implements Element
    private List _Value07A = PredicatedLists.createInvalidating(this, new Value07APredicate(), new ArrayList());
    private PredicatedLists.Predicate pred_Value07A = new Value07APredicate();
    public List getValue07A() {
    return _Value07A;
    public void deleteValue07A() {
    _Value07A = null;
    invalidate();
    public void emptyValue07A() {
    Value07A = PredicatedLists.createInvalidating(this, predValue07A, new ArrayList());
    public void validateThis()
    throws LocalValidationException
    if (_Value07A == null) {
    throw new MissingContentException("value07a");
    public void validate(Validator v)
    throws StructureValidationException
    public void marshal(Marshaller m)
    throws IOException
    XMLWriter w = m.writer();
    w.start("value07");
    for (Iterator i = _Value07A.iterator(); i.hasNext(); ) {
    w.leaf("value07a", ((String) i.next()).toString());
    w.end("value07");
    public void unmarshal(Unmarshaller u)
    throws UnmarshalException
    XMLScanner xs = u.scanner();
    Validator v = u.validator();
    xs.takeStart("value07");
    while (xs.atAttribute()) {
    String an = xs.takeAttributeName();
    throw new InvalidAttributeException(an);
    List l = new ArrayList();
    while (xs.atStart()) {
    if (xs.atStart("value07a")) {
    xs.takeStart("value07a");
    String s;
    if (xs.atChars(XMLScanner.WS_COLLAPSE)) {
    s = xs.takeChars(XMLScanner.WS_COLLAPSE);
    } else {
    s = "";
    String uf;
    try {
    uf = String.valueOf(s);
    } catch (Exception x) {
    throw new ConversionException("value07a", x);
    l.add(uf);
    xs.takeEnd("value07a");
    } else {
    break;
    Value07A = PredicatedLists.createInvalidating(this, predValue07A, l);
    xs.takeEnd("value07");
    public static Value07 unmarshal(InputStream in)
    throws UnmarshalException
    return unmarshal(XMLScanner.open(in));
    public static Value07 unmarshal(XMLScanner xs)
    throws UnmarshalException
    return unmarshal(xs, newDispatcher());
    public static Value07 unmarshal(XMLScanner xs, Dispatcher d)
    throws UnmarshalException
    return ((Value07) d.unmarshal(xs, (Value07 .class)));
    public boolean equals(Object ob) {
    if (this == ob) {
    return true;
    if (!(ob instanceof Value07)) {
    return false;
    Value07 tob = ((Value07) ob);
    if (_Value07A!= null) {
    if (tob._Value07A == null) {
    return false;
    if (!_Value07A.equals(tob._Value07A)) {
    return false;
    } else {
    if (tob._Value07A!= null) {
    return false;
    return true;
    public int hashCode() {
    int h = 0;
    h = ((127 *h)+((_Value07A!= null)?_Value07A.hashCode(): 0));
    return h;
    public String toString() {
    StringBuffer sb = new StringBuffer("<<value07");
    if (_Value07A!= null) {
    sb.append(" value07a=");
    sb.append(_Value07A.toString());
    sb.append(">>");
    return sb.toString();
    public static Dispatcher newDispatcher() {
    return Request.newDispatcher();
    private static class Value07APredicate
    implements PredicatedLists.Predicate
    public void check(Object ob) {
    if (!(ob instanceof String)) {
    throw new InvalidContentObjectException(ob, (String.class));

    I discovered something similar this morning...i.e., for
    <element name="value07" type="class">
    <content>
    <element-ref name="value07a" />
    </content>
    </element>
    -- I did something like this...
    Value7 v7 = new Value7();
    for (int i=0; i< Value7_input_array.length; i++)
    ((List)(v7.getValue07A())).add(Value7_input_array);
    Thanks for responding, barry!

  • Why it cannot find the setter method for the attribute in my custom tag?

    Hi, i have a custom tag like this:
    <robin:category tModelKey="#{data.tModelKey}" > </robin:category>And in my tld file:
    <tag>
          <name>category</name>
         <tag-class>category.component.HtmlCategoryTag</tag-class>
         <attribute>
             <name>tModelKey</name>
             <required>false</required>
             <rtexprvalue>false</rtexprvalue>
             <type>java.lang.String</type>
         </attribute>
    </tag>
    ........................................and in my HtmlCategoryTag Class
    public class HtmlCategoryTag extends HtmlPanelGridTag
    private String tModelKey;
    public String getTModelKey()
    return tModelKey;
    public void setTModelKey(String modelKey)
    tModelKey = modelKey;
    So,you see,generally speaking,to use a custom tag,we only to write a tag class,declare it in the tld file,nothing more.
    What fints me is that if i change "tModelKey" to "test" and change the according part in the tag class , tld file and jsp file, the "setter not found" problem no longer exists,everything goes right!!!.
    So why this happens? please help:)
    Best Regards:)
    Robin

    Then you also need to create a UI element that extends HtmlPanelGrid
    that has a tModelKey member and getters/setters. That object will hold
    the information so that you can use it in your bean.Whoops... ignore that! Sorry. Attributes are simply stored in the component map component.getAttributes().
    Add to your Tag class:
    public void setProperties(UIComponent component) {
        super.setProperties(component);
        Tags.setString(component, "tModelKey", tModelKey);
    public void release() {
        // see above
    }Where Tags.java is:public class Tags {
        public static void setString(UIComponent component, String attributeName, String attributeValue) {
            if (attributeValue != null) {
                if (UIComponentTag.isValueReference(attributeValue)) {
                    setValueBinding(component, attributeName, attributeValue);
                } else {
                    component.getAttributes().put(attributeName, attributeValue);
        public static void setValueBinding(UIComponent component, String attributeName, String attributeValue) {
            FacesContext context = FacesContext.getCurrentInstance();
            Application app = context.getApplication();
            ValueBinding vb = app.createValueBinding(attributeValue);
            component.setValueBinding(attributeName, vb);
    }

  • Xml is not generating the selected column

    Hi experts,
    I have selected the 3 column in my slect statement with 3 bind variable . But when I save my datamodel and generate the xml , My xml is not showing the selected three column...please find the blow query.
    Select BAL_ATT.TRANSACTIONAL_AMOUNT_WD0,
    BAL_ATT.FUNCTIONAL_AMOUNT_WD0 ,
    SIGNOFF.CODE_COMBINATION_ID,
    RT.ROLE_NAME
    from
    MLC_BAL_ATTRIBUTE_T BAL_ATT /* A_MLC_BAL_ATTRIBUTE */ ,
    MLC_USER_T US/* A_MLC_USERS */ ,
    MLC_BAL_SEGMENT_T BAL_SEG/* A_MLC_BAL_SEGMENT */ ,
    MLC_SIGNOFF_T SIGNOFF /* A_MLC_SIGNOFF */ ,
    MLC_LEDGER_ROLE_HIERARCHY_T RHT,
    MLC_ROLE_T RT , MLC_LEDGER_T Leg,
    MLC_LEDGER_COMPONENT_T LC
    where ( SIGNOFF.CODE_COMBINATION_ID = BAL_ATT.CODE_COMBINATION_ID
    and SIGNOFF.CODE_COMBINATION_ID = BAL_SEG.CODE_COMBINATION_ID
    and SIGNOFF.MONTH_END_DATE = BAL_ATT.MONTH_END_DATE
    and RHT.LEDGER_ID= SIGNOFF.LEDGER_ID
    and RHT.LEDGER_COMPONENT_ID=SIGNOFF.LEDGER_COMPONENT_ID
    and RT.ROLE_ID=RHT.ROLE_ID
    and LC.LEDGER_ID=SIGNOFF.LEDGER_ID
    and LC.LEDGER_ID=LEG.LEDGER_ID
    and (US.USER_ID =SIGNOFF .ROLE4_USER_ID or
    US.USER_ID =SIGNOFF .ROLE3_USER_ID
    or US.USER_ID =SIGNOFF .ROLE1_USER_ID
    or US.USER_ID =SIGNOFF .ROLE2_USER_ID
    or US.USER_ID =SIGNOFF .ROLE5_USER_ID)
    and LEG.LEDGER_NAME IN (:LEG)
    and RT.ROLE_NAME IN(:ROLE)
    and LC.LEDGER_COMPONENT_NAME IN(:LEG_COMP)
    and (SIGNOFF.ROLE1_STATUS is null or SIGNOFF.ROLE2_STATUS is null or SIGNOFF.ROLE3_STATUS is null or SIGNOFF.ROLE4_STATUS is null or SIGNOFF.ROLE5_STATUS is null))
    Let me know If I need to do some configuration.
    I need to generate the xml and then need to import it my rtf template...

    Hi RavindraKshirsagar,
    We have a problem like you faced. Our requirement is that, we need to generate dynamically the PERSON element in our javabean.
    <xs:element name='SERVICE_REQUESTER'>
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref='ORGANIZATION' />
                        <xs:element ref='PERSON' maxOccurs='unbounded' />
                   </xs:sequence>
              </xs:complexType>
         </xs:element>For this maxOccurs, as JAXB is not generating any Setter Method. As we need to get data dynamically from external application. If you could help us in handling this case dynamically, it will be well and good.
    Please send us the script / code asap.

  • What is the payment method for iOS Developer Enterprise License?

    Can anyone help me with this question as Apple can't help me and I do not know who should I contact with. Apple staff is pushing me from developer contact to sales contact but none of them are giving me the simple answer to my simple question... T.T

    Hi Giles,
    Thanks for your response but Apple is not stating the payment method for Online Apple Store for Malaysia. I called up Apple Store Malaysia to ask about this and they mentioned that only credit card is available.
    I wondering how a company have a credit to provide the payment? Is there other alternative?

  • Edit entity object and use the Create() method for generating ID's

    Hello,
    I have and InserPage.jsp and defined the datasoucre correctly.
    <jbo:InputText datasource="ds" dataitem="Clientid" /> gives me
    the unique ClientID from the FIRST client-record in my table ,
    although this page is for inserting a NEW Client, with a new
    ClientID.
    So, on the Clients Entity i made a create() method and put the
    following code in it:
    public Number getClientid() {
    return (Number)getAttributeInternal(CLIENTID);
    public void create(AttributeList attributeList) {
    SequenceImpl seq = new SequenceImpl
    ("Clientid",getDBTransaction());
    Integer i=(Integer)seq.getData();
    setClientid(new Number(i.intValue()));
    super.create(attributeList);
    the getData() Returns a sequence value, but what sequence value?
    Do i have to create a sequence on the ClientID column in my
    Oracle Table in the DB too?
    The problem is, the first ClientID # is 819 and the current last
    one seems to be 2899, so how do i achieve that when opening the
    insert.jsp the new ClientID shows up (ie. 2900)?
    How can i achieve this?
    thx

    OK, managed to track down the HowTo on triggers? I created the
    trigger.
    create sequence client_seq
    start with 8900
    increment by 1
    nomaxvalue
    nocycle;
    I changed the create() method for the entity object to:
    public void create(AttributeList attributeList) {
    SequenceImpl seq = new SequenceImpl
    ("Clientid",getDBTransaction());
    SequenceImpl s = new SequenceImpl("client_seq",
    getDBTransaction());
    Integer next = (Integer)s.getData();
    setClientid(new Number(next.intValue()));
    and running the tester for the module works fine. ;-)
    But...
    The Insert.jsp page has to insert/show this sequenced value!
    After i defined the datasource and let us say:
    <jbo:InputText datasource="ds" dataitem="Clientid" />
    ...the number 819 shows up, which is the FIRST record, so i do
    not get the new ClientID with the correct number.
    Any help is always nice. ;-)

  • Could not find the principal resource for user id: paf

    I think I have set up iCal server correctly on a MacOSX 10.5.1 server (upgraded from 10.4.x). But regardless of how many different URLs etc I am trying, I can neither access calendars, nor subscribe to them. I am trying both with Safari and Firefox and iCal client on MacOSX 10.5.1.
    I have iCal service running.
    I have added the user "paf" that have full admin access, and also calendar service is turned on on the server calendar.frobbit.se. Calendar.frobbit.se is one of the hostnames for the server btw.
    I have a group called "canusecalendar" that "paf" is a member of.
    The access for iCal service on the host is for the group canusecalendar and for the user paf, where paf is administrator.
    The closest I have come is when I use a web browser and try to access any URL starting with http://calendar.frobbit.se:8008/. It ask for login, I give the credentials, and in the error log for the iCal service I see the following:
    <pre>2008-02-10 20:46:57+0100 [-] [caldav-8009] [AMP,client] Could not find the principal resource for user id: paf</pre>
    I do see tons of postings by people that more or less guess what URIs to use in browsers, for group calendars, in iCal client when connecting to an account or subscribing. Does anyone on this list know of an authoritative list of URLs that one should use here and there? The closest I have come is the "advanced" section of the iCal Administration document from Apple.

    Yes, I add users using workgroup manager, although the one I now use was added already in version 10.4 of MacOSX Server. I.e. before I upgraded to 10.5.
    Here is error.log (after that access.log):
    <pre>
    2008-02-11 20:32:23+0100 [-] Log opened.
    2008-02-11 20:32:23+0100 [-] twistd 2.5.0 (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/ Contents/MacOS/Python 2.5.1) starting up
    2008-02-11 20:32:23+0100 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
    2008-02-11 20:32:23+0100 [-] 4 processors found, configuring 4 processes.
    2008-02-11 20:32:23+0100 [-] Adding pydirector service with configuration: /tmp/pydirtLZ2ZY
    2008-02-11 20:32:23+0100 [-] twistedcaldav.logging.AMPLoggingFactory starting on "'/var/run/caldavd.sock'"
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Log opened.
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] twistd 2.5.0 (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/ Contents/MacOS/Python 2.5.1) starting up
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Configuring directory service of type: twistedcaldav.directory.appleopendirectory.OpenDirectoryService
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] Log opened.
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] twistd 2.5.0 (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/ Contents/MacOS/Python 2.5.1) starting up
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] Log opened.
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] twistd 2.5.0 (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/ Contents/MacOS/Python 2.5.1) starting up
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] Configuring directory service of type: twistedcaldav.directory.appleopendirectory.OpenDirectoryService
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] Configuring directory service of type: twistedcaldav.directory.appleopendirectory.OpenDirectoryService
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] Log opened.
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] twistd 2.5.0 (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/ Contents/MacOS/Python 2.5.1) starting up
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] Configuring directory service of type: twistedcaldav.directory.appleopendirectory.OpenDirectoryService
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] "Directory service <OpenDirectoryService '/Search': '/Search'> has no GUID; generating service GUID from realm name."
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] "Directory service <OpenDirectoryService '/Search': '/Search'> has no GUID; generating service GUID from realm name."
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Configuring SudoDirectoryService with file: /etc/caldavd/sudoers.plist
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Setting up document root at: /Library/CalendarServer/Documents
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Setting up principal collection: <class 'twistedcaldav.directory.principal.DirectoryPrincipalProvisioningResource'>
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Setting up calendar collection: <class 'twistedcaldav.static.CalendarHomeProvisioningFile'>
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Setting up root resource: <class 'twistedcaldav.root.RootResource'>
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] "Directory service <OpenDirectoryService '/Search': '/Search'> has no GUID; generating service GUID from realm name."
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Setting up default ACEs on root resource
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Setting up AdminPrincipals
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Setting root ACL
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Configuring authentication for realm: /Search
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Setting up scheme: kerberos
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] Configuring SudoDirectoryService with file: /etc/caldavd/sudoers.plist
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] Setting up document root at: /Library/CalendarServer/Documents
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] Setting up principal collection: <class 'twistedcaldav.directory.principal.DirectoryPrincipalProvisioningResource'>
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] Configuring SudoDirectoryService with file: /etc/caldavd/sudoers.plist
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] Setting up calendar collection: <class 'twistedcaldav.static.CalendarHomeProvisioningFile'>
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] Setting up document root at: /Library/CalendarServer/Documents
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] Setting up principal collection: <class 'twistedcaldav.directory.principal.DirectoryPrincipalProvisioningResource'>
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] Setting up root resource: <class 'twistedcaldav.root.RootResource'>
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] Setting up calendar collection: <class 'twistedcaldav.static.CalendarHomeProvisioningFile'>
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] Setting up root resource: <class 'twistedcaldav.root.RootResource'>
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] Setting up default ACEs on root resource
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] Setting up AdminPrincipals
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] Setting root ACL
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] Setting up default ACEs on root resource
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] Setting up AdminPrincipals
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] Setting root ACL
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] "Directory service <OpenDirectoryService '/Search': '/Search'> has no GUID; generating service GUID from realm name."
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] Configuring SudoDirectoryService with file: /etc/caldavd/sudoers.plist
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] Setting up document root at: /Library/CalendarServer/Documents
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] Setting up principal collection: <class 'twistedcaldav.directory.principal.DirectoryPrincipalProvisioningResource'>
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] Setting up calendar collection: <class 'twistedcaldav.static.CalendarHomeProvisioningFile'>
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] Setting up root resource: <class 'twistedcaldav.root.RootResource'>
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] Setting up default ACEs on root resource
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] Setting up AdminPrincipals
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] Setting root ACL
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [KerberosCredentialFactoryBase] getServerPrincipalDetails: ('Principal not found in keytab', -1)
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Could not start Kerberos
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Setting up scheme: digest
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] Configuring authentication for realm: /Search
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] Setting up scheme: kerberos
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] Configuring authentication for realm: /Search
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] Setting up scheme: kerberos
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] Configuring authentication for realm: /Search
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] Setting up scheme: kerberos
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [KerberosCredentialFactoryBase] getServerPrincipalDetails: ('Principal not found in keytab', -1)
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [KerberosCredentialFactoryBase] getServerPrincipalDetails: ('Principal not found in keytab', -1)
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] Could not start Kerberos
    2008-02-11 20:32:23+0100 [-] [caldav-8012] [-] Setting up scheme: digest
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] Could not start Kerberos
    2008-02-11 20:32:23+0100 [-] [caldav-8011] [-] Setting up scheme: digest
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [KerberosCredentialFactoryBase] getServerPrincipalDetails: ('Principal not found in keytab', -1)
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] Could not start Kerberos
    2008-02-11 20:32:23+0100 [-] [caldav-8010] [-] Setting up scheme: digest
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Configuring authentication wrapper
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Setting up service
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Configuring log observer: <twistedcaldav.logging.AMPCommonAccessLoggingObserver object at 0x145c930>
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Adding server at 127.0.0.1:8009
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Adding SSL server at 127.0.0.1:8444
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] twisted.web2.channel.http.HTTPFactory starting on 8009
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x14595a8>
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] twisted.web2.channel.http.HTTPFactory starting on 8444
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] set uid/gid 93/93
    2008-02-11 20:32:23+0100 [twistedcaldav.logging.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXSocket('/var/run/caldavd.sock') PEER:UNIXSocket(''))
    2008-02-11 20:32:23+0100 [-] [caldav-8009] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('/var/run/caldavd.sock'))
    2008-02-11 20:32:24+0100 [-] [caldav-8012] [-] Configuring authentication wrapper
    2008-02-11 20:32:24+0100 [-] [caldav-8012] [-] Setting up service
    2008-02-11 20:32:24+0100 [-] [caldav-8010] [-] Configuring authentication wrapper
    2008-02-11 20:32:24+0100 [-] [caldav-8010] [-] Setting up service
    2008-02-11 20:32:24+0100 [-] [caldav-8010] [-] Configuring log observer: <twistedcaldav.logging.AMPCommonAccessLoggingObserver object at 0x145c7b0>
    2008-02-11 20:32:24+0100 [-] [caldav-8011] [-] Configuring authentication wrapper
    2008-02-11 20:32:24+0100 [-] [caldav-8011] [-] Setting up service
    2008-02-11 20:32:24+0100 [-] [caldav-8011] [-] Configuring log observer: <twistedcaldav.logging.AMPCommonAccessLoggingObserver object at 0x145c7b0>
    2008-02-11 20:32:24+0100 [-] [caldav-8011] [-] Adding server at 127.0.0.1:8011
    2008-02-11 20:32:24+0100 [-] [caldav-8012] [-] Configuring log observer: <twistedcaldav.logging.AMPCommonAccessLoggingObserver object at 0x145c7b0>
    2008-02-11 20:32:24+0100 [-] [caldav-8012] [-] Adding server at 127.0.0.1:8012
    2008-02-11 20:32:24+0100 [-] [caldav-8012] [-] Adding SSL server at 127.0.0.1:8447
    2008-02-11 20:32:24+0100 [-] [caldav-8010] [-] Adding server at 127.0.0.1:8010
    2008-02-11 20:32:24+0100 [-] [caldav-8010] [-] Adding SSL server at 127.0.0.1:8445
    2008-02-11 20:32:24+0100 [-] [caldav-8011] [-] Adding SSL server at 127.0.0.1:8446
    2008-02-11 20:32:24+0100 [-] [caldav-8012] [-] twisted.web2.channel.http.HTTPFactory starting on 8012
    2008-02-11 20:32:24+0100 [-] [caldav-8012] [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x14595a8>
    2008-02-11 20:32:24+0100 [-] [caldav-8010] [-] twisted.web2.channel.http.HTTPFactory starting on 8010
    2008-02-11 20:32:24+0100 [-] [caldav-8010] [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x14595a8>
    2008-02-11 20:32:24+0100 [-] [caldav-8010] [-] twisted.web2.channel.http.HTTPFactory starting on 8445
    2008-02-11 20:32:24+0100 [-] [caldav-8011] [-] twisted.web2.channel.http.HTTPFactory starting on 8011
    2008-02-11 20:32:24+0100 [-] [caldav-8011] [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x14595a8>
    2008-02-11 20:32:24+0100 [-] [caldav-8011] [-] twisted.web2.channel.http.HTTPFactory starting on 8446
    2008-02-11 20:32:24+0100 [-] [caldav-8012] [-] twisted.web2.channel.http.HTTPFactory starting on 8447
    2008-02-11 20:32:25+0100 [-] [caldav-8012] [-] set uid/gid 93/93
    2008-02-11 20:32:25+0100 [twistedcaldav.logging.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXSocket('/var/run/caldavd.sock') PEER:UNIXSocket(''))
    2008-02-11 20:32:25+0100 [-] [caldav-8012] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('/var/run/caldavd.sock'))
    2008-02-11 20:32:25+0100 [twistedcaldav.logging.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXSocket('/var/run/caldavd.sock') PEER:UNIXSocket(''))
    2008-02-11 20:32:25+0100 [-] [caldav-8010] [-] set uid/gid 93/93
    2008-02-11 20:32:25+0100 [-] [caldav-8010] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('/var/run/caldavd.sock'))
    2008-02-11 20:32:25+0100 [-] [caldav-8011] [-] set uid/gid 93/93
    2008-02-11 20:32:25+0100 [twistedcaldav.logging.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXSocket('/var/run/caldavd.sock') PEER:UNIXSocket(''))
    2008-02-11 20:32:25+0100 [-] [caldav-8011] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('/var/run/caldavd.sock'))
    2008-02-11 20:32:57+0100 [-] [caldav-8009] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('/var/run/caldavd-pydir.sock'))
    2008-02-11 20:32:57+0100 [-] [caldav-8009] [AMP,client] Unauthenticated users not enabled with the 'calendar' SACL
    2008-02-11 20:33:04+0100 [-] [caldav-8010] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('/var/run/caldavd-pydir.sock'))
    2008-02-11 20:33:04+0100 [-] [caldav-8010] [AMP,client] Could not find the principal resource for user id: paf
    2008-02-11 20:33:35+0100 [-] Received SIGTERM, shutting down.
    2008-02-11 20:33:35+0100 [-] (Port None Closed)
    2008-02-11 20:33:35+0100 [AMPLoggingProtocol,0,] AMPLoggingProtocol connection lost (HOST:UNIXSocket('/var/run/caldavd.sock') PEER:UNIXSocket(''))
    2008-02-11 20:33:35+0100 [AMPLoggingProtocol,1,] AMPLoggingProtocol connection lost (HOST:UNIXSocket('/var/run/caldavd.sock') PEER:UNIXSocket(''))
    2008-02-11 20:33:35+0100 [AMPLoggingProtocol,2,] AMPLoggingProtocol connection lost (HOST:UNIXSocket('/var/run/caldavd.sock') PEER:UNIXSocket(''))
    2008-02-11 20:33:35+0100 [AMPLoggingProtocol,3,] AMPLoggingProtocol connection lost (HOST:UNIXSocket('/var/run/caldavd.sock') PEER:UNIXSocket(''))
    2008-02-11 20:33:35+0100 [-] Main loop terminated.
    2008-02-11 20:33:35+0100 [-] Server Shut Down.
    </pre>
    And here is access.log:
    <pre>
    Log opened - server start: [Mon Feb 11 20:32:23 2008].
    192.165.72.12 - - [11/Feb/2008:20:32:57 +0200] "GET / HTTP/1.1" 401 141 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-us) AppleWebKit/523.10.6 (KHTML, like Gecko) Version/3.0.4 Safari/523.10.6" [6.4 ms]
    192.165.72.12 - - [11/Feb/2008:20:33:04 +0200] "GET / HTTP/1.1" 403 123 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-us) AppleWebKit/523.10.6 (KHTML, like Gecko) Version/3.0.4 Safari/523.10.6" [60.7 ms]
    Log closed - server stop: [Mon Feb 11 20:33:35 2008].
    </pre>

  • What is the best method for backing up photos in IPhoto?

    I have over 10,000 photos in IPhoto and am looking for the best method for doing a backup (or an archive?).  I'm now using ICloud and it appears it's just photo streaming and does not have storage capability. External hard drive, copying to a DVD, other suggestions?

    Most Simple Back Up
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex:
    Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically. Examples of such apps: Chronosync or DejaVu . But are many others. Search on MacUpdate
    My Routine
    My Library lives on my iMac. It’s Backed up to  two external hard disks every day. These disks are permanently attached to the iMac. These back ups run automatically. One is done by Time Machine, one is a bootable back up done by SuperDuper
    It’s also backed up to a portable hard disk when ever new photos are added. This hard disk lives in my car. For security, this disk is password protected.
    I have a second off-site back up at a relative’s house across town. That’s updated every 3 or 4 months.
    My Photos are backed up online. There are many options: Flickr, Picasa, SmugMug etc. However, check the terms of your account carefully. While most sites have free uploading, you will often find that these uploads are limited in terms of the file size or the bandwidth you can use per month. For access that allows you to upload full size pics with no restrictions you may need to pay.
    Every couple of months I test the back ups to make sure they are working correctly. It’s very easy to mis-configure a back up application, and the only way to protect against that is to do a trial restore.

  • Designerd does not generate Order BY code for Sort Order on a lookup tabel column.

    I am setting the Sort Order on a column which is based on a lookup table.
    When generate the the module, designer does not generate the code for the Sort Order that I set on the lookup table column.
    Is there a work around for this problem or is there some thing else that needs to be done in designer to make it generate the order by clause?
    I will very much appreciate help.
    Regards
    Prasad.

    A bound lookup item, will be generated as a NON-database item in Forms. Designer generates an ORDER BY CLAUSE (a Forms Block property) for the ordering. But a NON-database item cannot be included in the ORDER BY CLAUSE.
    I used a stored function for ordering the lookup item.
    Best regards
    Harm van Zoest

  • Unable to find setter method for attribute:

    I am using Jboss jboss-4.2.3.GA, JDK 1.6.
    I am trying to deploy our application on Jboss. When loading sources page or whenever we try to load the taglib we are getting the following error.
    org.apache.jasper.JasperException: jspfile.jsp(67,1) Unable to find setter method for attribute: collection
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
    at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
    at org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute(Generator.java:2736)
    at org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:2965)
    at org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:2169)
    at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1689)
    at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
    at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
    at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2394)
    at org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
    at org.apache.jasper.compiler.Generator.generate(Generator.java:3374)
    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
    at com.ssmb.common.servlets.GenericControllerServlet.service(GenericControllerServlet.java:639)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    The line corresponding in JSP file is ,
    <ssmb:list name="src_" collection="sources" showAll='<%= "" + true %>'>
    Please let me know if you have faced this issue before.

    Have you written this tag in a tld or a tag file?
    How have you declared the attribute "collection"?
    Does the class which implements the custom tag <ssmb:list> have a method in it: public void setCollection(String collection) ?

  • Could not invoke the service() method when the JSP page is loaded

    I am new to servlets/jsp so excuse if I am doing something silly here:
    I have a JSP page the suppose to be loading a session attrbute from a simple servlet. When I go to load the jsp page, I get Could not invoke the service() method.
    Any help is much appreciated:
    Here is my JSP:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <%@ page session="true" import="insurance.PolicyObj,java.util.*"%>
    <% Vector VTable = (Vector) session.getAttribute("policyTable"); %>
    <HTML>
    <BODY>
    <Form name=listTable action="InsSer" method="post">
    <TABLE border="1">
         <TBODY>
              <TR>
                   <TD width="258" align="center"><B>Policy Id</B></TD>
                   <TD width="187" align="center"><B>Customer Name</B></TD>
                   <TD width="160" align="center"><B>Agent Name</B></TD>
                   <TD width="134" align="center"><B>Status</B></TD>
              </TR>
              <TR>
    <%
    for (int index=0; index < VTable.size();index++) {
    PolicyObj TableL = (PolicyObj) VTable.elementAt(index);
    %>
         <TR bgcolor="#99CCFF">
    <TD width="258" align="center"> <%= TableL.getPolicyId()%> </TD>
    <TD width="187" align="center"> <%= TableL.getCustomerName()%> </TD>
    <TD width="187" align="center"> <%= TableL.getAgentName() %> </TD>
    <TD width="187" align="center"> <%= TableL.getPolicyStatus() %></TD>
    </TR>
         <% } %>
         </TBODY>
    </TABLE>
    <P><INPUT type="submit" name="Submit" value="Refresh Active Policies"></P>
    </BODY>
    </HTML>
    Here is my servlet:
    package insurance;
    import java.io.IOException;
    import java.util.Vector;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.Servlet;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    public class InsSer extends HttpServlet implements Servlet {
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#HttpServlet()
         public InsSer() {
              super();
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest arg0, HttpServletResponse resp)
         protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
              doPost(req,resp);
              // TODO Auto-generated method stub
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest arg0, HttpServletResponse resp)
         protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
              //PolicyObj[] policyTable = new PolicyObj[3];
              HttpSession session = req.getSession(false);
              //if (session == null) {
                   //resp.sendRedirect("http://localhost:9080/Insurance/error.html");
              //Vector buylist = (Vector) session.getAttribute("PolicyList");
              Vector policyList = null;
              policyList.addElement(new PolicyObj());
              ((PolicyObj) policyList.get(0)).setPolicyId("0009800002");
              ((PolicyObj) policyList.get(0)).setCustomerName("Salim Zeitouni");
              ((PolicyObj) policyList.get(0)).setAgentName("Jack Smith");
              ((PolicyObj) policyList.get(0)).setPolicyStatus("Pending");
              session.setAttribute("policyTable",policyList);
              ServletContext sc = getServletContext();
              RequestDispatcher rd = sc.getRequestDispatcher("InsSev1.jsp");
              rd.forward(req,resp);
    Message was edited by:
    sfz1
    Message was edited by:
    sfz1

    I am new to servlets/jsp so excuse if I am doing something silly here:
    I have a JSP page the suppose to be loading a session attrbute from a simple servlet. When I go to load the jsp page, I get Could not invoke the service() method.
    Any help is much appreciated:
    Here is my JSP:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <%@ page session="true" import="insurance.PolicyObj,java.util.*"%>
    <% Vector VTable = (Vector) session.getAttribute("policyTable"); %>
    <HTML>
    <BODY>
    <Form name=listTable action="InsSer" method="post">
    <TABLE border="1">
         <TBODY>
              <TR>
                   <TD width="258" align="center"><B>Policy Id</B></TD>
                   <TD width="187" align="center"><B>Customer Name</B></TD>
                   <TD width="160" align="center"><B>Agent Name</B></TD>
                   <TD width="134" align="center"><B>Status</B></TD>
              </TR>
              <TR>
    <%
    for (int index=0; index < VTable.size();index++) {
    PolicyObj TableL = (PolicyObj) VTable.elementAt(index);
    %>
         <TR bgcolor="#99CCFF">
    <TD width="258" align="center"> <%= TableL.getPolicyId()%> </TD>
    <TD width="187" align="center"> <%= TableL.getCustomerName()%> </TD>
    <TD width="187" align="center"> <%= TableL.getAgentName() %> </TD>
    <TD width="187" align="center"> <%= TableL.getPolicyStatus() %></TD>
    </TR>
         <% } %>
         </TBODY>
    </TABLE>
    <P><INPUT type="submit" name="Submit" value="Refresh Active Policies"></P>
    </BODY>
    </HTML>
    Here is my servlet:
    package insurance;
    import java.io.IOException;
    import java.util.Vector;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.Servlet;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    public class InsSer extends HttpServlet implements Servlet {
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#HttpServlet()
         public InsSer() {
              super();
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest arg0, HttpServletResponse resp)
         protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
              doPost(req,resp);
              // TODO Auto-generated method stub
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest arg0, HttpServletResponse resp)
         protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
              //PolicyObj[] policyTable = new PolicyObj[3];
              HttpSession session = req.getSession(false);
              //if (session == null) {
                   //resp.sendRedirect("http://localhost:9080/Insurance/error.html");
              //Vector buylist = (Vector) session.getAttribute("PolicyList");
              Vector policyList = null;
              policyList.addElement(new PolicyObj());
              ((PolicyObj) policyList.get(0)).setPolicyId("0009800002");
              ((PolicyObj) policyList.get(0)).setCustomerName("Salim Zeitouni");
              ((PolicyObj) policyList.get(0)).setAgentName("Jack Smith");
              ((PolicyObj) policyList.get(0)).setPolicyStatus("Pending");
              session.setAttribute("policyTable",policyList);
              ServletContext sc = getServletContext();
              RequestDispatcher rd = sc.getRequestDispatcher("InsSev1.jsp");
              rd.forward(req,resp);
    Message was edited by:
    sfz1
    Message was edited by:
    sfz1

  • Java.sql.SQLException: Could not generate the DTD because..

    I am trying to reverse an XML file and running into the following exception:
    java.sql.SQLException: Could not generate the DTD because the file could not be created. Verify that you have write permission in the directory.
    I have permission to the directory, so I suspect something else is causing this. I saw in another thread that file name length sometimes caused this. I tried that approach and it did not help.
    I am trying to get data from an oracle table and put it in an XML file using an interface.
    I have my interface set to use an oracle source table and an XML target. My LKM is SQL to SQL and my IKM is SQL Control Append. I have staging area different from target set.
    My model (for the XML file) has technology set to XML, uses the SnpsXML jdbc driver and I use the following parameters in my file path: f, d, s, dp. This tests successfully.
    I am trying reverse the xml file using standard reverse.
    I am running this on a remote agent.
    I am using ODI 10.1.3.5.5
    Thank you for any help you can provide me.
    Edited by: user13279807 on Oct 19, 2010 11:44 AM

    The exact error message I recieved was the following:
    The Technology or the Driver used does not support Reverse Engineering.
    java.sql.SQLException: Could not generate the DTD because the file could not be created. Verify that you have write permission in the directory.
    Details:
    java.sql.SQLException: Could not generate the DTD because the file could not be created. Verify that you have write permission in the directory.
         at com.sunopsis.jdbc.driver.xml.bw.a(bw.java:810)
         at com.sunopsis.jdbc.driver.xml.bw.<init>(bw.java:450)
         at com.sunopsis.jdbc.driver.xml.bx.b(bx.java:292)
         at com.sunopsis.jdbc.driver.xml.bx.a(bx.java:270)
         at com.sunopsis.jdbc.driver.xml.SnpsXmlDriver.connect(SnpsXmlDriver.java:110)
         at com.sunopsis.sql.SnpsConnection.v(SnpsConnection.java)
         at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java)
         at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java)
         at com.sunopsis.dwg.reverse.Reverse.a(Reverse.java)
         at com.sunopsis.dwg.reverse.Reverse.a(Reverse.java)
         at com.sunopsis.dwg.reverse.Reverse.a(Reverse.java)
         at com.sunopsis.dwg.reverse.Reverse.getMetaData(Reverse.java)
         at com.sunopsis.graphical.frame.a.ip.a(ip.java)
         at com.sunopsis.graphical.frame.a.ip.a(ip.java)
         at com.sunopsis.graphical.frame.a.hq.b(hq.java)
         at com.sunopsis.graphical.tools.utils.swingworker.v.call(v.java)
         at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
         at com.sunopsis.graphical.tools.utils.swingworker.l.run(l.java)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
         at java.lang.Thread.run(Thread.java:619)

  • HT204053 I need to change my i cloud e-mail address to the same one I set up when I purchased my apple account I just created an I cloud address and when Ijust read the set up for I cloud it says  I should use the same e-mail address that I started with H

    I did not know that when I created a e-mail address that I was suppose to use the same one that I created when I first signed up with Apple I phone. I want to change my e-mail address to the one I first had How can I change it? I do not need two e-mail accounts It should have read that when you are setting up an e-mail address use the one that you first signed up with. Not after you go through all the set ups for I cloud it tells you at the end to use your account that you first started with. Can you please help me I am new at this and I still can not set up on my computer with my phone to I cloud so if I had my phone stollen I can find it I also have and I pad to set up yet It is 3 days and I still can not set it up
    Thank You and Hoplefully I can change my e-mail address so I can have everything on one account

    If you selected open a new Apple ID account, go back a step and enter use existing Apple ID.
    You will have to set up a separate iCloud account or your iPads will mirror each other.

  • Thread: Could not generate the XML in single thread mode

    Hi all,
    I have created a report using PLSQL Procedure method after submitting the request I am getting the following Error.Couldn't sort out why I am getting the error while running the report.
    Error in "Multi threaded or single threaded execution block" of XXRX_REPORT_OUTPUT_PKG.insert_into_nested_table procedure
    ERROR :ORA-20005: Could not generate the XML in single thread mode
    XXRXERROR: XXRX_REPORT_OUTPUT_PKG.run_report SQLERROR: ORA-20005: ORA-20005: Could not generate the XML in single thread mode
    Can someone help me out finding the issue
    Thanks in Advance

    Hi,
    Please read SQL and PL/SQL FAQ
    We cannot guess what is the error if you don't post any part of your code.
    Additionally when you put some code or output please enclose it between two lines starting with {noformat}{noformat}
    i.e.:
    {noformat}{noformat}
    SELECT ...
    {noformat}{noformat}
    Regards.
    Al                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Why can I no longer, after having downloaded Lion, write accents and other diacriticals when in the Google, Yahoo, FaceBook, or even here in this post? The new method for getting at the "option" symbols works fine in other places like spotlight, but now e

    Why can I no longer, after having downloaded Lion, write accents and other diacriticals when in the Google, Yahoo, FaceBook, or even here in this post? The new method for getting at the "option" symbols works fine in other places like spotlight, but now even the older "option+letter" doesn't work in most places.

    Chrome doesn't support the new accent/diacritics/macron chooser. I'm not sure about other browsers such as Firefox. You can use the old Option+letter combination that Doug suggested. Hopefully updates will solve these little incompatibilities shortly.
    Neill

Maybe you are looking for

  • Issues with Shockwave 11.5.2.602 / 11.5.6.606 MSI installer

    <UPDATE 8/3/09> Nearly all of the issues mentioned below are still present in the MSI installer for 11.5.6.606 - the only one that Adobe have fixed is the one where the MozillaPlugins 'Version' value is left blank by the MSI by default - this is now

  • Movie works with firefox not with IE

    Do you have any idea why i have a flash movie who works fine in Firefox but not in internet explorer?? the swf file running directly in the computer works perfectly, but in the internet explorer when i load a movie this does not stop when i have a st

  • Best way to to hook up Thunderbolt NAS to 2009 iMac

    I have a 2009 iMac with USB and FireWire.  I just purchased and new NAS with Thunderbolt and USB.  Is there any way to connect at a faster speed than the USB 2.0 that I my computer has?

  • Subsequent settlement for multiple material

    Hi, everyone, I have a requirement for subsequent settlement. The vendor will rebate a fixed amount when the total purchasing QTY more than 100,000 pcs for material A, plus material  B, plus material C. When I create the sebsequent settlement, I can

  • Is it possible to print barcodes from LT31 (SAPScript) on a Zebra?

    Hi We have a factory that would like to print their picking lists/transfer orders using transaction LT31 to a Zebra ZM600 printer. The transaction appears to create a spool in the SAPScript format. We have tried pretty much all of the Zebra drivers (