Axis xs:datetime wsdl element type

Hi,
Does any one know how to convert athe xs:datatime type into a jave Date/Calendar object?
e.g. this is an example of what the web service returns for this field:
2007-02-17T14:40:32.000Z
thanks
Manj

The [Practical XML|http://sourceforge.net/projects/practicalxml/] project provides XmlUtil.parseXsdDatetime(): http://practicalxml.svn.sourceforge.net/viewvc/practicalxml/trunk/src/main/java/net/sf/practicalxml/XmlUtil.java?revision=22&view=markup
Full disclosure: I am the admin of this project. It has not yet been released as a JAR, so if you're going to use it you will need to download and build yourself. It is covered by the [Apache 2.0 license|http://www.apache.org/licenses/LICENSE-2.0.html], which means that you can extract the code for your own project, provided that you properly attribute the source.

Similar Messages

  • External definition import WSDL complex type problem

    Hi,
    i have created a webservice using apache axis and created an external definition for the service. You can see the respective WSDL recognized by XI below. The service takes an array of adresses. Unfortunately, when I want to define the message mapping, theres only the array but not the address attributes. What would be a proper definition of the service?
    Cheers,
    Heiko
    ===================================================
    1. WSDL from external defintion:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://localhost:8080/axis/services/AdressService">
         <wsdl:types>
              <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://localhost:8080/axis/services/AdressService" targetNamespace="http://localhost:8080/axis/services/AdressService">
                   <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
                   <xsd:complexType xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" name="AddressDto">
                        <xsd:sequence>
                             <xsd:element name="ID" type="xsd:string" nillable="true" />
                             <xsd:element name="name" type="xsd:string" nillable="true" />
                             <xsd:element name="strasse" type="xsd:string" nillable="true" />
                             <xsd:element name="ort" type="xsd:string" nillable="true" />
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:complexType xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" name="ArrayOfAddressDto">
                        <xsd:complexContent>
                             <xsd:restriction base="soapenc:Array">
                                  <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="impl:AddressDto[]" />
                             </xsd:restriction>
                        </xsd:complexContent>
                   </xsd:complexType>
              </xsd:schema>
         </wsdl:types>
         <wsdl:message name="writeAddressDataResponse" />
         <wsdl:message name="writeAddressDataRequest">
              <wsdl:part xmlns:generateduniqueprefix3="http://localhost:8080/axis/services/AdressService" name="addresses" type="generateduniqueprefix3:ArrayOfAddressDto" />
         </wsdl:message>
    </wsdl:definitions>
    2. XSD extracted from WSDL:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema targetNamespace="http://localhost:8080/axis/services/AdressService" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://localhost:8080/axis/services/AdressService">
      <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
      <xsd:element name="addresses" type="ArrayOfAddressDto" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" />
      <xsd:complexType name="ArrayOfAddressDto" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
        <xsd:complexContent>
          <xsd:restriction base="soapenc:Array">
            <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="impl:AddressDto[]" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
          </xsd:restriction>
        </xsd:complexContent>
      </xsd:complexType>
    </xsd:schema>
    ??? Where are the atributes of the address here ???

    Hi Heiko,
    XI does not support the use of soapenc:array. Please refer to http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html#refinement16556272 regarding the use of this construct.
    Greetings Stephan

  • Getting error while creating the variable of Schema Element type

    Hi everybody,
    For creating a variable of schema element type I am doing the following steps...
    Select 'Variables' after right clicking on bpel process. IN this window, go to 'Create VAriable' then select 'Element' type. Now in Type Choose, I expanded the my imported schema files. And selected a element type, then click ok to create this variable... I am getting the message...
    IN ORDER TO SAVE IMPORTED WSDL/SCHEMA FILES, YOU MUST HAVE A PARTNER LINK LOCATED UNDER THE CURRENT PROJECT DIRECTORY.
    What is mean by that.
    I have imported the schema files in project. AFter that I have imported them into the WSDL also. Now why I am getting error while creating the variable. However I can create variable directly in .BPEL file then everything is fine. And it is working also. But what is mean with the above error? Why I am not able to create variable through GUI?
    Thanks.

    Hi,
    I have this same problem this morning, and I was going crazy, until I found this webpage on the internet:
    [http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process|http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process]
    The idea is that the jdeveloper is not very good working with directories with spaces on the directory name. If you move all your work to a directory without spaces, it will work smoothly. At least, it had worked for me.
    Regards,
    Nacho

  • Could not generate stub object - The element type "META" must be terminated by the matching end-tag "".

    I am getting the following error message when I try invoking
    a webservice.
    Could not generate stub objects for web service invocation.
    Name: ProgrammePrivilege. WSDL:
    https://clientaccweb.reseaudistinction.com/CardHolderInfo.asmx?WSDL.
    org.xml.sax.SAXException: Fatal Error: URI=null Line=11: The
    element type "META" must be terminated by the matching end-tag "".
    It is recommended that you use a web browser to retrieve and
    examine the requested WSDL document for correctness. If the
    requested WSDL document can't be retrieved or it is dynamically
    generated, it is likely that the target web service has programming
    errors.
    The problem is, the webservice is working fine, the
    application was working yesterday, the error message just appears
    after a couple of days and I have to refresh the service in the CF
    Administrator. Once I refresh it, everything starts working again.
    Anyone else got this problem? ANY help would be appreciated!
    If you guys need my code anyway, I can attach it but like I
    said, everything works for a couple of days, then, out of the blue,
    it stops working so I doubt that it's my CFINVOKE that's the
    problem...

    Similar kind of problems here - reported back to Adobe a
    couple of months ago, so let's wait and hope for the best. My
    problems have related to registering multiple web services and
    executing them. One problem is that, If I register two identical
    (and quite complex) web services, I can only execute either of
    them. After CF restart, either of them works, but invoking the
    other doesn't work.
    For example; CF_Restart -> Try A first, A works -> B
    doesn't. Also, CF_Restart -> Try B first, B works -> A
    doesn't.
    CFMX7.0.2, Apache 2.2, WinXP

  • Unexpected element type: QName vs. string

    Hello,
    i tried to run the "web service" example code of the book "Core Java" (2004). The program is a window where you can search for book authors in Amazon. But executing the client program results in:
    Exception: java.rmi.RemoteException: Runtime exception; nested exception is:
         unexpected element type: expected={http://www.w3.org/2001/XMLSchema}QName, actual={http://www.w3.org/2001/XMLSchema}stringYou can find the code below.
    Greetings
    Alfred
    config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration
       xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
       <wsdl location="http://soap.amazon.com/schemas3/AmazonWebServices.wsdl"
          packageName="com.amazon"/>
    </configuration>snippet of SOAPTest.java (client program)
    AmazonSearchPort port = (AmazonSearchPort)
                (new AmazonSearchService_Impl().getAmazonSearchPort());
             AuthorRequest request
                = new AuthorRequest(name, "1", "books", "", "lite", "", token, "","", "");
             ProductInfo response = port.authorSearchRequest(request);
             Details[] details = response.getDetails();
             StringBuilder r = new StringBuilder();
             for (Details d : details)
                r.append("authors=");
                String[] authors = d.getAuthors();
                if (authors == null) r.append("[]");
                else r.append(Arrays.asList(d.getAuthors()));
                r.append(",title=");
                r.append(d.getProductName());
                r.append(",publisher=");
                r.append(d.getManufacturer());
                r.append(",pubdate=");
                r.append(d.getReleaseDate());
                r.append("\n");
             return r.toString();

    Amazon discontinued the old service. You can no longer get a working developer token for it. When you give it an invalid token, then an error message is produced.
    Due to an error in the way Amazon produces the error message (see http://archives.java.sun.com/cgi-bin/wa?A2=ind0303&L=jaxrpc-interest&O=D&P=1513), you don't actually get to see it.

  • Is element/type substitution supported?

    Hi,
    I have a schema that uses element/type substitution group. When I try to use these elements/types in &lt;assign&gt; section, I always get error saying type not found.
    I'm wondering if the element/type substitution is supported? If yes, is there any samples?
    I'm using PM2.1.1/Designer 0.9.10
    Thanks in advance.

    The WSDL of the EachService is test.wsdl (test1.xsd, test2.xsd) in the WSDLTest.jar ZIP file that I sent to [email protected] yesterday.

  • I am facing error while running Quickpay in Fusion payroll that "The input value Periodicity is missing for element type KGOC_Unpaid_Absence_Amount. Enter a valid input value". Any idea?

    I am facing error while running Quickpay in Fusion payroll that "The input value Periodicity is missing for element type KGOC_Unpaid_Absence_Amount. Enter a valid input value". Any idea?

    This is most probably because the Periodicity input value has been configured as "Required" and no value has been input for it.
    Please enter a value and try to re-run Quick Pay.

  • "In initializer for 'mxmlContent', type Object is not assignable to target Array element type..."

    Hi all,
    So I've have built an application on flash builder 4.5 using Christophe Coenraets' tutorial "Building an EmployeeDirectory" (http://www.adobe.com/devnet/flex/articles/employee-directory-android-flex.html#articlecont entAdobe_numberedheader).
    I'm getting this error message "In initializer for 'mxmlContent', type Object is not assignable to target Array element type mx.core.IVisualElement." and then the debugger highlights my code this line of my code "</s:List>" in my EmployeeDetails.mxml file. This started after I coded Part 5, Step 2 "Integrating with the Device Capabilities: Triggering the Actions".   The rest of the code debugged fine.
    I think it relates to Christophe's note "Note: Make sure you import spark.events.IndexChangeEvent (and not mx.events.IndexChangedEvent) for this code to compile.".  I don't know where to place this
    " import spark.events.IndexChangeEvent;" line of code. 
    Any help?  Tks in advance..
    Any help would be greatly appreciated.  Thanks

    You have a DataGrid directly inside a State element. Perhaps wrap it in an AddChild element?
    More information on using states can be found here:
    http://livedocs.adobe.com/flex/3/html/help.html?content=using_states_1.html

  • Cost Element  Type change  with balance in it

    Hi All,
    I have a P &L account created in FS00 maintained as cost element of type 1 , and now we want to change it as type 12 sales and Deductions Cost element, so when I try to change in FS00 it didn't allow me to do so as it is having some balance, so 
    What can I do now ?
    How can I change that cost element type from 1 to 12 ?
    How can I clear  the balance that  is that account now ?
    and where can I see what  balance is in that Cost element?
    Your Help greately appreciated,
    Sandhya

    Hi Eli,
    Thank you for the valueble report, But it shows I have no data in that cost element ,
    But When I try to change the CE category in FS00 it is saying the transactional data exists Message KS134 , 
    where can I see the actual dollar amount sitting in that Cost Element?
    and
    If I don't know how much in that CE how can I transfer the amount from this CE to another CE?
    Please Help me Guru s,,,
    Sandhya

  • APP-PAY-51119: Error was encountered when processing Element Type US_TAX_VE

    Hi.,
    Getiing Error while running the quickpay request.
    Application :11.5.10.2
    Database :10.2.0.5
    OS : HP UX
    Error
    HR_51118_HRPROC_ERR_OCC_ON_ASG
    ASGNO 179279
    APP-PAY-51118: Error was encountered when processing assignment 179279
    HR_51119_HRPROC_ERR_OCC_ON_ET
    ETNAME US_TAX_VERTEX
    APP-PAY-51119: Error was encountered when processing Element Type US_TAX_VERTEX
    Invalid jurisdiction code found in primary work location

    Please see (Payroll Process Fails: FORMULA_ERROR_TEXT A compiled version of the formula 431 cannot be found Compiled Version of formula cannot be found [ID 358881.1]).
    Thanks,
    Hussein

  • Cost Center Assessment - cost element type 42

    Hi dear All,
    I got issues running KSU5 to allocate planned costs under cost element type 42. we were expecting that all planned costs (primary and secondary(cost element type 42)) could be allocated by credit cost center (actual). only primary costs are being allocated.
    Scenario:
    cost center planning (kp06) 1000 currencies in primary cost element in cost center A
    running planning assessment - KSUB: cycle uses assessment cost element (type 42): sender cost center A, receiver cost center B (all planned values). assessment cyles posts 1000 currencies from CC A to cost center B
    planning in cost center B (primary cost elements through kp06, 500 currencies) total planning 1000 from previous assessment  with CE type 42, and 500 from cc planning in a primari CE.
    by the period end closing, tcode KSU5 (allocation actual) is running. new cycle created, based on planned values (origini not actual, but planned amounts).
    we were expecting to allocate 1500 currencies from cost center B to cost center C (using 100% and through assessment cost element)).
    result: credit actual cost center B = 500 currencies debit actual cost center C = 500 currencies.
    1000 currencies pending on cost center B (planned).
    do you know why SAP is not allocating the 1000? even if those 1000 were planned in cost center B by assessement, a new allocation cycle should be able to post them or not?
    thank you for your outcome.

    Hi dear Ajay, thank you for your answer.
    first, I understand the difference between KSUB and KSU5, in the defined scenario, we have both. planned values, become actual with the MEC activities. business definition.
    regarding the cycle, I have setup assessment cost element so we can get all planned lines posted as 1.
    On sender tab I have only the cost center. no cost element defined.
    receiver its cost center.
    furthermore, i've not setup allocation structure, so all cost elements should be allow, there is no restriction on this.
    the only difference is: planned costs which their origin is already an assessment are not being assessed again.
    I can show you the print screens with cycles setup if it helps
    best regards
    MF

  • Change cost element type 4 to 1

    Hello,
    I want to change a cost element type "4" to "1". But SAP does not allow it because the plan data on the cost element.
    How can I change the type? Please any help.
    Thanks

    HI,
    I'm afraid if dependent data (actual and/or planning data) exist for cost element for the fiscal year, then there is no way to change the category type until the next fiscal year.  This is to prevent inconsistency in the data for a given fiscal year.  When posting the first transaction data (plan or actual posting), a year dependent entry is created in a control table for the cost element. You can only change the category if NO transaction data exist for the relevant year or if all the transaction data for this cost element/year
    is deleted.
    An option is to create a new analysis period (KA02 -> Basic Screen -> Edit -> Analysis Period) and specify the new cost element category. The new analysis period can only be specified in yearly intervals.
    For further information on this please review the attached note:
    37093 Master data: change/delete validity period
    Regards,
    Abhisek

  • Element type "translatable" must be declared. Message - my first faces page

    Good day,
    I kept getting this stack trace on my first adf faces page test.
    I am deploying the application on glassfish but I don't think that it should be a problem because I have deployed the adffaces demo.
    The stacktrace is
    [#|2009-07-02T20:46:11.312+0000|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=20;_ThreadName=Thread-33;_RequestID=3a89d3e0-ef35-4b07-9ac5-ceef7ea89af6;|WebModule[/webapp1]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    javax.faces.FacesException: Can't parse configuration file: jar:file:/C:/Sun/AppServer/domains/domain1/applications/j2ee-modules/webapp1/WEB-INF/lib/dvt-faces.jar!/META-INF/faces-config.xml: Error at line 95 column 25: Element type "translatable" must be declared.
         at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1438)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:348)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4523)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:5184)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1584)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
         at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
         at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
         at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
         at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
         at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
         at $Proxy1.invoke(Unknown Source)
         at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
         at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
         at com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:145)
         at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:537)
         at java.lang.Thread.run(Thread.java:595)
    What am I doing wrong??
    Regards,

    Were you able to get this to work on GlassFish? I am running into the same issues when I attempt to load my initial test page. I've followed the advice from most of the postings; however, they tend to be Tomcat centric. Here is the error I can't get past:
    #|2009-10-27T10:46:25.123-0700|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=14;_ThreadName=pool-1-thread-7;_RequestID=06125f94-b2cd-4ea9-ac22-651ef9ce4d62;|WebModule[TestApp-AppViewController-context-root]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
    javax.faces.FacesException: Can't parse configuration file: jndi:/server/TestApp-AppViewController-context-root/WEB-INF/faces-config.xml: Error at line 2 column 71: cvc-elt.1: Cannot find the declaration of element 'faces-config'.
         at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1438)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:376)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4632)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:5312)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:353)
         at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
         at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
         at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:619)
    |#]
    Any help would be greatly appreciated!
    Ed

  • WSDL operation type possible in PI

    Hi folks,
    Normally a wsdl (webservice) can have multiple action types, for example a particuar service can be used to show distance between 2 points, validate addresses, etc etc,
    ideally the wsdl will have in it a wsdl operation type indicating what the consumer of theservice needs out of the service,
    But in PI i havn't come across something similar where in the wsdl generates an operation type..
    Is it somethng possible in PI?
    I don't want to use a field in the schema (Request type) indicating this intent...but instead create a wsdl operation ....

    NO , you cannot create multiple opearations for a WSDL in PI.
    You have to use External tool ( Altova XML SPY) to do that, then you can import the WSDL in XI to check it.
    But you can't create mutilple operations except one request , one response and a fault message type.
    REgards,
    Anurag Garg

  • Error: Element type "stateful-session-descriptor" must be declared ?

    Hi,
    while running the ant i am getting this error.
    jar_ejb:
    [jar] Building jar: D:\bdms\src\ejbdist\std_ejb_bdms_eapm.jar
    ejbc:
    [java]
    [java] ERROR: ejbc found errors while parsing the descriptor for src/ejbdis
    t/std_ejb_bdms_eapm.jar:
    [java]
    [java]
    [java]
    [java] ERROR: Error from ejbc: Error parsing file 'META-INF/weblogic-ejb-ja
    r.xml' at line: 394 column: 55. Element type "stateful-session-descriptor" must
    be declared.
    [java]
    [java]
    [java] ERROR: ejbc couldn't load descriptor from jar
    [java]
    [java] Java Result: 1
    Here with i have included the ejb-jar.xml & weblogic-ejb-jar.xml lines. I am using a service locator to call the ejb. please help me.
    ejb-jar.xml
    <session>
    <ejb-name>ValueListHandlerEJB</ejb-name>
    <home>com.pagination.ValueListHandlerEJBHome</home>
    <remote>com.pagination.ValueListHandlerEJBRemote</remote>
    <ejb-class>com.pagination.ValueListHandlerEJB</ejb-class>
    <session-type>Stateful</session-type>
    <transaction-type>Container</transaction-type>
    <resource-ref>
         <res-ref-name>jdbc/DataSource</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Container</res-auth>
    </resource-ref>
         </session>
    weblogic-ejb-jar.xml
    <weblogic-enterprise-bean>
    <ejb-name>ValueListHandlerEJB</ejb-name>
    <stateful-session-descriptor>
    <stateful-session-cache>
         <max-beans-in-cache>100</max-beans-in-cache>
         <idle-timeout-seconds>600</idle-timeout-seconds>
    </stateful-session-cache>
    </stateful-session-descriptor>
         <reference-descriptor>
    <resource-description>
              <res-ref-name>
    jdbc/DataSource
    </res-ref-name>
         <jndi-name>
    adslDataSource
    </jndi-name>
    </resource-description>
         </reference-descriptor>
         <enable-call-by-reference>True</enable-call-by-reference>
         <jndi-name>ValueListHandlerEJB</jndi-name>
    </weblogic-enterprise-bean>

    but a bean's deployment descriptor lies in the
    meta-inf folder, right?Sorry, my mistake. I was thinking of WAR files while writing. Thanks for pointing out.
    Regards,
    $ Carol.

Maybe you are looking for

  • Syncing To Same Computer But Not Losing Apps, Music, Etc...

    Hey guise, i've got multiple devices that were all synced to my school macbook, which is running snow leopard 1.6.8 and itunes 10, but it was wiped and all the content on it was deleted. I was just wondering if it was possible to sync my 3 iphones an

  • G4 533mhz and 10.4.3

    Why is it that i cant seem to upgrade to 10.4.3 from (MacOSXUpdateCombo10.4.3.dmg) I'm now using 10.4.1 but for some video camera support i would like to be able to upgrade and it's not letting me ? i have read most the documentation and it sais ever

  • Problem Receivable account determination, cash sales (EVV)

    Hello all, I need work with cash sales, billing type BV, then in the BV invoice type I have the EVV in the Account key for cash allocation. I create correctly the G/L account determination, introducing one account in the entry for the key EVV. And an

  • I wish to cancel my creative cloud membership

    Dear Folks, Please cancel my Creative Cloud Free Membership. I'm not at all interested in this product/service. Thank you. Al Kuebler [email protected]

  • CS6 placeditem.trace image resolution

    Hi, We have recently upgraded to CS6 from CS4. We have been using "PluginItem.tracing.imageResolution" property to get the image resolution in Ilustrator. Currently this property is not available in the CS6 DOM. Could any one guide me on how to use i