Error creating servlet context

Hello, there!
          I am trying to run a web app on WebLogic. The application contains some
          EJBs, several JSP's and a controller servlet. I have the EJB's
          deployed, and both webApp and servlet (and its initArgs) registered in
          "weblogic.properties". However, when I start weblogic, there is a
          message saying that "error creating servlet context for the web
          application". It seems that weblogic is looking for a file called
          "weblogic.xml" and trying to create servlet context from it. How to
          create this "xml" file? If it has to be created manually, what are the
          required tags?
          Thanks!
          Jeff
          

Search your WL install directory for weblogic-web-jar.dtd.
          Cameron Purdy
          "Jeff Wang" <[email protected]> wrote in message
          news:[email protected]..
          > Hello, there!
          >
          > I am trying to run a web app on WebLogic. The application contains some
          > EJBs, several JSP's and a controller servlet. I have the EJB's
          > deployed, and both webApp and servlet (and its initArgs) registered in
          > "weblogic.properties". However, when I start weblogic, there is a
          > message saying that "error creating servlet context for the web
          > application". It seems that weblogic is looking for a file called
          > "weblogic.xml" and trying to create servlet context from it. How to
          > create this "xml" file? If it has to be created manually, what are the
          > required tags?
          >
          > Thanks!
          >
          > Jeff
          >
          

Similar Messages

  • Error in JMS receiver adapter: "Error creating initial context with environment"

    Hello,
    I have some trouble with a JMS receiver adapter (access to JMS-provider with JNDI).
    The message in adapter monitoring is:
    A channel error occurred. Detailed error (if any) :
    com.sap.aii.adapter.jms.api.connector.ConnectorException: Fatal Error looking up connection factoryJMSQueueConnectionFactory, for profile: ConnectionProfile of channel: CC_JMS_RCV_XLIMI00001on node: 503473150 having object id: 5b424f2f79b6350ca636ab35d528cfdd:
    ConnectorException: Error creating initial context with environment: java.naming.provider.url=wcsefdev.example.com:9064; java.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory; for profile: ConnectionProfile of channel:
    CC_JMS_RCV_XLIMI00001on node: 503473150 having object id: 5b424f2f79b6350ca636ab35d528cfdd: javax.naming.NoInitialContextException:
    Cannot instantiate class: com.ibm.websphere.naming.WsnInitialContextFactory<br> at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.createConnectionFactory
    (JndiConnectorImpl.java:152)<br> ....
    Message processing failed. Cause:
    com.sap.aii.adapter.jms.core.fsm.DFA$InvalidTransitionException: No transition found from state: ERROR, on event: process_commence for DFA: CC_JMS_RCV_XLIMI00001:5b424f2f79b6350ca636ab35d528cfdd
    The third party assured me that the specified JNDI parameters are right and everything is configured on their site, so it should work...
    Might there be a problem with the JMS drivers?
    Regards,
    Marcus

    Hi Marcus,
    Have a look at below thread
    Connecting to PI 7.11 JMS Queue from other PI 7.11 Server

  • Error creating initial context with environment

    Hi,
    Currently we are working on a scenarios, where we need to integrate XI and webmethods using JMS.
    It was working fine. But recently they have restarted the webmethods server. After that we re getting an error message like,
    In Adapter Monitoring:
    Channel error occurred; detailed error description: com.sap.aii.adapter.jms.api.connector.ConnectorException: Error creating initial context with environment: {java.naming.provider.url=server:port, java.naming.factory.initial=com.sap.engine.services.jndi.InitialContextFactoryImpl, java.naming.security.principal=XYZ, java.naming.security.credentials=ABC}for profile: ConnectionProfile of channel: CC_RCV_JMS_INon node: 3010950 having object id: ABCXYZ: NamingException: Error getting the server-side naming service functionality during getInitialContext operation.
    at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.createInitialContext(JndiConnectorImpl.java:66)
    In RWB
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: No transition found from state: STARTING, on event: process_commence for DFA: C_RCV_JMS_IN:e4413a5265a436459e271d5e0dd4859b
    Can one please tell me what the problem is?
    Thanks in advance.
    Regards,
    Prasad Babu.

    Hi,
    Check this link looks like same problem
    Re: file to JMS(for MQ series)
    Thanks
    Vikranth

  • Can't start first instance...ORA-27504: IPC error creating OSD context

    Oracle11gR1 RHEL4 AS - 64bit - 2 node RAC
    I am having trouble starting the database from the first node. I can start the second node without any problems. When I go to start the first node I get the following error:
    [oracle@vtl-rac1 db_1]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.1.0.6.0 - Production on Thu May 1 15:50:50 2008
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> startup
    ORA-27504: IPC error creating OSD context
    HA Resource Target State
    ora.VMRACDEV.VMRACDEV1.inst ONLINE OFFLINE
    ora.VMRACDEV.VMRACDEV2.inst ONLINE ONLINE on vtl-rac2
    ora.VMRACDEV.db ONLINE ONLINE on vtl-rac1
    ora.vtl-rac1.ASM1.asm ONLINE ONLINE on vtl-rac1
    ora.vtl-rac1.LISTENER_VTL-RAC1.lsnr ONLINE ONLINE on vtl-rac1
    ora.vtl-rac1.gsd ONLINE ONLINE on vtl-rac1
    ora.vtl-rac1.ons ONLINE ONLINE on vtl-rac1
    ora.vtl-rac1.vip ONLINE ONLINE on vtl-rac1
    ora.vtl-rac2.ASM2.asm ONLINE ONLINE on vtl-rac2
    ora.vtl-rac2.LISTENER_VTL-RAC2.lsnr ONLINE ONLINE on vtl-rac2
    ora.vtl-rac2.gsd ONLINE ONLINE on vtl-rac2
    ora.vtl-rac2.ons ONLINE ONLINE on vtl-rac2
    ora.vtl-rac2.vip ONLINE ONLINE on vtl-rac2
    No alerts are being generated in the alert log. And I have looked at this errror in the docs and it says that it is related to OS/cluster interconnect but those are also fine as indicated in the alert log. I saw some metalink notes but they are specific to other OS's.
    Any help would be appreciated.
    Thank you.

    Presuming that no other changes were made to this
    configuration and it stopped working , you might want
    to attempt these steps :
    a) You have already mentioned this but recheck the
    alert.log file for this instanceThere is nothing in the alertlog.
    to verify if there are any errors reported.
    Check the udump / bdump locations for any trace files
    which might give
    us any clues on where to look further.This is all I found in a trace file:
    libskgxpd.so called
    libskgxp9.so should reference real implementation
    IPC OS error without diagnostic information
    Dump of memory from 0x0000007FBFFF8FF8 to 0x0000007FBFFF90D0
    7FBFFF8FF0 00000000 20435049 [....IPC ]
    7FBFFF9000 74696E69 00000000 00000000 0000002A [init........*...]
    7FBFFF9010 BFFF9130 0000007F 5F487518 676B7300 [0........uH_.skg]
    7FBFFF9020 69637078 0000696E 696C00CE 676B7362 [xpcini....libskg]
    7FBFFF9030 2E647078 63206F73 656C6C61 696C0A64 [xpd.so called.li]
    7FBFFF9040 676B7362 2E397078 73206F73 6C756F68 [bskgxp9.so shoul]
    7FBFFF9050 65722064 65726566 2065636E 6C616572 [d reference real]
    7FBFFF9060 706D6920 656D656C 7461746E 0A6E6F69 [ implementation.]
    7FBFFF9070 00000000 00000001 096AD150 00000000 [........P.j.....]
    7FBFFF9080 00000001 00000001 5F487518 00000001 [.........uH_....]
    7FBFFF9090 BFFFA258 0000007F 00000030 00000000 [X.......0.......]
    7FBFFF90A0 000006FA 00000000 00000000 00000000 [................]
    7FBFFF90B0 00000000 00000000 00000000 00000000 [................]
    7FBFFF90C0 096AD0E0 00000000 00000001 00000041 [..j.........A...]
    struct ksxpp * ksxppg_ [0x96c5fb0, 0x2a965ed800) = 0x2a965ed7f8
    Does the same problem persist if the problematic Node
    is rebooted.- Nope, that didn't change anything either.
    d) You might want to strace the Sqlplus startup
    process and depending on
    where the assert is raised , it might provide
    some pointers.- Here is the end of the strace output:
    read(9, "\f\0\4\4\0\0P\0\5\4\0\0g\0\6\4\0\0~\0\7\4\0\0\245\0\10\4\0\0\274\0"..., 512) = 512
    close(9) = 0
    lseek(4, 16384, SEEK_SET) = 16384
    read(4, "\f\0\261\2\0\0P\0\264\2\0\0\177\0\265\2\0\0\265\0\266\2\0\0\f\1\275\2\0\0/\1"..., 512) = 512
    write(1, "Connected to an idle instance.\n", 31) = 31
    write(1, "\n", 1) = 1
    mmap(NULL, 143360, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9829b000
    munmap(0x2a9829b000, 143360) = 0
    access("login.sql", F_OK) = -1 ENOENT (No such file or directory)
    mmap(NULL, 143360, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9829b000
    munmap(0x2a9829b000, 143360) = 0
    access("/opt/app/oracle/product/11.1.0/db_1/sqlplus/admin/glogin.sql", F_OK) = 0
    statfs("/opt/app/oracle/product/11.1.0/db_1/sqlplus/admin/glogin.sql", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=7210695, f_bfree=1791712, f_bavail=1425430, f_files=3662848, f_ffree=3395776, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
    open("/opt/app/oracle/product/11.1.0/db_1/sqlplus/admin/glogin.sql", O_RDONLY) = 9
    brk(0x61f000) = 0x61f000
    read(9, "--\n-- Copyright (c) 1988, 2005, "..., 57344) = 342
    read(9, "", 57344) = 0
    brk(0x611000) = 0x611000
    close(9) = 0
    write(1, "SQL> ", 5) = 5
    fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9829b000
    read(0, "startup\n", 1024) = 8
    write(10, "\0U\0\0\6\0\0\0\0\0\3\212\6\376\377\377\377\377\377\377\377\0\1\0\0\0\0\0\0\376\377\377"..., 85) = 85
    read(11, "\0\33\0\0\6\0\0\0\0\0\10\1\0\0\0\0\0\0\0\0\t\1\0\0\0\0\0", 8208) = 27
    write(10, "\0\35\0\0\6\0\0\0\0\0\0030\7\0\0\0\0005\0\0\0\376\377\377\377\377\377\377\377", 29) = 29
    read(11, "\0\275\0\0\6\0\0\0\0\0\4\1\0\0\0\0\0\1\0\0\0\0pk\0\0\0\0\0\0\0\0"..., 8208) = 189
    write(1, "ORA-27504: IPC error creating OS"..., 42) = 42
    write(1, "SQL> ", 5) = 5
    read(0, "exit\n", 1024) = 5
    write(10, "\0\r\0\0\6\0\0\0\0\0\3\t\10", 13) = 13
    read(11, "\0\21\0\0\6\0\0\0\0\0\t\1\0\0\0\0\0", 8208) = 17
    lseek(4, 15872, SEEK_SET) = 15872
    read(4, "\n\0\243\2\0\0D\0\244\2\0\0_\0\245\2\0\0\206\0\246\2\0\0\277\0\252\2\0\0\371\0"..., 512) = 512
    write(1, "Disconnected\n", 13) = 13
    write(10, "\0\n\0\0\6\0\0\0\0@", 10) = 10
    close(10) = 0
    close(11) = 0
    close(8) = 0
    close(7) = 0
    close(5) = 0
    close(3) = 0
    close(4) = 0
    munmap(0x2a97ff1000, 143360) = 0
    brk(0x610000) = 0x610000
    brk(0x609000) = 0x609000
    exit_group(0) = ?
    I have Oracle Support stumped on this one too.
    Thanks.

  • ORA-27504: IPC error creating OSD context : Unable to start second node

    I have set the DB parameter CLUSTER_INTERCONNECT to point to the Inet addr.
    oifcfg getif
    bondeth0
    172.23.250.128  global  public
    bondib0  192.168.8.0  global
    cluster_interconnect
    When I try to restart the DB services, it is throwing below error while starting the second node.
    These are set of commands I have executed to change the DB Parameter
    alter system set cluster_interconnects =  '192.168.10.6' scope=spfile sid='RAC1' ;
    alter system set cluster_interconnects =  '192.168.10.7' scope=spfile sid='RAC2' ;
    alter system set cluster_interconnects =  '192.168.10.6' scope=spfile sid='ASM1' ;
    alter system set cluster_interconnects =  '192.168.10.7' scope=spfile sid='ASM2' ;
    On second node
    SQL> startup ;
    ORA-27504: IPC error creating OSD context
    ORA-27300: OS system dependent operation:if_not_found failed with status: 0
    ORA-27301: OS failure message: Error 0
    ORA-27302: failure occurred at: skgxpvaddr9
    ORA-27303: additional information: requested interface 192.168.10.6 not found. Check output from ifconfig command
    SQL>
    please let me know whether the proceedure I have followed is wrong
    Thanks

    Node 1:
    [oracle@prdat137db03 etc]$ /sbin/ifconfig bondib0
    bondib0   Link encap:InfiniBand  HWaddr 80:00:00:48:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00
              inet addr:192.168.10.6  Bcast:192.168.11.255  Mask:255.255.252.0
              inet6 addr: fe80::221:2800:1ef:bc4f/64 Scope:Link
              UP BROADCAST RUNNING MASTER MULTICAST  MTU:65520  Metric:1
              RX packets:32550051 errors:0 dropped:0 overruns:0 frame:0
              TX packets:32395961 errors:0 dropped:42 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:19382043590 (18.0 GiB)  TX bytes:17164065360 (15.9 GiB)
    [oracle@prdat137db03 etc]$
    Node 2:
    [oracle@prdat137db04 ~]$ /sbin/ifconfig bondib0
    bondib0   Link encap:InfiniBand  HWaddr 80:00:00:48:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00
              inet addr:192.168.10.7  Bcast:192.168.11.255  Mask:255.255.252.0
              inet6 addr: fe80::221:2800:1ef:abdb/64 Scope:Link
              UP BROADCAST RUNNING MASTER MULTICAST  MTU:65520  Metric:1
              RX packets:29618287 errors:0 dropped:0 overruns:0 frame:0
              TX packets:30769233 errors:0 dropped:12 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:16453595058 (15.3 GiB)  TX bytes:18960175021 (17.6 GiB)
    [oracle@prdat137db04 ~]$

  • ORA-27504: IPC error creating OSD context

    Hi
    We have a Linux based ORACLE rac server (version-10.2.0.4.0). Suddenly dbs are went down and while we are trying to up the dbs it will shows the following error
    ORA-27504: IPC error creating OSD context
    ORA-27300: OS system dependent operation:check if cable failed with status: 0
    ORA-27301: OS failure message: Error 0
    ORA-27302: failure occurred at: skgxpcini1
    ORA-27303: additional information: requested interface eth1 interface not runnin
    g set disableinterface_checking = TRUE to disable this check for single instan
    ce cluster. Check output from ifcon
    Any one have idea about this?
    Thanks
    Anbu

    Use this forum to report broken links or general feedback about Oracle documentation. This forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions will not be answered.
    It seems you are not in the right forum. Despite of this because of the error stack you have a - possibly hardware related - connection problem between the nodes of the cluster. Pay special attention to ORA-27303, I think this message gives you valuable hints. And check the interconnect on hardware level.
    Werner

  • SPNego fails: Error creating GSS context - java.lang.NullPointerException

    Hi,
    I have successfully configured SPNego logon to the first portal in our landscape, however, on the next portal I've got to the SPNego logon is failing.
    When using the diagtool to analyse the problem tests 1-5 and 7 are passing successfully, however, test 6 is failing.
    I am configuring against the following software components:
    SAP J2EE - 7.00 SP13
    Sun JDK version: 1.4.2_14
    diagtool version 1.7.2
    MS Active Directory is configured as the EP UME with resolution mode simple.
    I believe the problem is in some way related to the authentication of the j2ee-<sid> user, however, I cannot narrow it down further. The password for this user has not changed since I generated the keytab file.
    Any help greatly appreciated.
    The following error is written to the diagtool trace file:
    Error creating GSS context.
    [EXCEPTION]
    GSSException: No valid credentials provided (Mechanism level: Attempt to obtain new ACCEPT credentials failed!)
    at sun.security.jgss.krb5.Krb5AcceptCredential.getKeyFromSubject(Krb5AcceptCredential.java:189)
    at sun.security.jgss.krb5.Krb5AcceptCredential.getInstance(Krb5AcceptCredential.java:80)
    at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:75)
    at sun.security.jgss.GSSManagerImpl.getCredentialElement(GSSManagerImpl.java:149)
    at sun.security.jgss.GSSCredentialImpl.add(GSSCredentialImpl.java:334)
    at sun.security.jgss.GSSCredentialImpl.<init>(GSSCredentialImpl.java:44)
    at sun.security.jgss.GSSManagerImpl.createCredential(GSSManagerImpl.java:102)
    at com.sap.engine.config.diagtool.tests.authentication.krb.Krb5ServerTest.createGSSContext(Krb5ServerTest.java:104)
    at com.sap.engine.config.diagtool.tests.authentication.krb.Krb5ServerTest.execute(Krb5ServerTest.java:75)
    at com.sap.engine.config.diagtool.Task.execute(Task.java:55)
    at com.sap.engine.config.diagtool.Launcher.run(Launcher.java:343)
    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:324)
    at com.sap.engine.config.diagtool.Launcher.main(Launcher.java:394)
    Caused by: javax.security.auth.login.LoginException: java.lang.NullPointerException
    at java.lang.StringBuffer.append(StringBuffer.java:467)
    at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:576)
    at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:475)
    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:324)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
    at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
    at sun.security.jgss.LoginUtility.run(LoginUtility.java:57)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.security.jgss.krb5.Krb5AcceptCredential.getKeyFromSubject(Krb5AcceptCredential.java:186)
    at sun.security.jgss.krb5.Krb5AcceptCredential.getInstance(Krb5AcceptCredential.java:80)
    at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:75)
    at sun.security.jgss.GSSManagerImpl.getCredentialElement(GSSManagerImpl.java:149)
    at sun.security.jgss.GSSCredentialImpl.add(GSSCredentialImpl.java:334)
    at sun.security.jgss.GSSCredentialImpl.<init>(GSSCredentialImpl.java:44)
    at sun.security.jgss.GSSManagerImpl.createCredential(GSSManagerImpl.java:102)
    at com.sap.engine.config.diagtool.tests.authentication.krb.Krb5ServerTest.createGSSContext(Krb5ServerTest.java:104)
    at com.sap.engine.config.diagtool.tests.authentication.krb.Krb5ServerTest.execute(Krb5ServerTest.java:75)
    at com.sap.engine.config.diagtool.Task.execute(Task.java:55)
    at com.sap.engine.config.diagtool.Launcher.run(Launcher.java:343)
    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:324)
    at com.sap.engine.config.diagtool.Launcher.main(Launcher.java:394)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:730)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
    at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
    at sun.security.jgss.LoginUtility.run(LoginUtility.java:57)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.security.jgss.krb5.Krb5AcceptCredential.getKeyFromSubject(Krb5AcceptCredential.java:186)
    ... 15 more
    Acquire credential failed for realm EUR.EMIGRP.COM

    Hello CJH,
    Thank you for following up.
    I will set the thread status to "assumed answered".
    Cheers,
    Julius

  • Error creating forms context

    Does anyone know why this C code, when executed from UNIX command line works, but won't work as a host command from a form. I am running 9iAS release 2, on AIX. I have tried using a shell script in which I set all necessary environment variables before running the command. The shell script works from command line, but not from the form. Here's the C code......
    /* Create Forms API context */
    ctx_attr.mask_d2fctxa = (ub4)0;
    if ( d2fctxcr_Create(&ctx, &ctx_attr) != D2FS_SUCCESS )
    fprintf(stderr, "Error creating Forms API context\n");
    exit(1);
    /* Load the form module into memory */
    if ( d2ffmdld_Load(ctx, &form, argv[1], FALSE) !=
    D2FS_SUCCESS )
    fprintf(stderr, "Failed to load form : %s\n", argv[1]);
    exit(1);
    /* Get the name of the form module */
    if ( d2ffmdg_name(ctx, form, &form_name) != D2FS_SUCCESS )
    fprintf(stderr, "Error getting the name of the form.\n");
    else
    /* print the name of the form, then free it */
    printf("The name of the form is %s\n", form_name);
    free(form_name);
    /* Destroy the in-memory form */
    if ( d2ffmdde_Destroy(ctx, form) != D2FS_SUCCESS )
    fprintf(stderr, "Error destroying the form module\n");
    /* Close the API and destroy context */
    d2fctxde_Destroy(ctx);

    You could as well use this sample code
    #include <stdio.h>
    #include <stdlib.h>
    #include <malloc.h>
    #include <d2fctx.h> /* Forms API context */
    #include <d2ffmd.h> /* Form module header file */
    int main (int argc, char *argv[])
         d2fctxa ctx_attr;
         d2fctx *ctx;
         d2ffmd *form;
         d2fcnv *pd2fcnv;
         d2fgra *pd2fgra;
         text *form_name;
         /* Check arguments */
         if ( argc != 2 )
              fprintf(stderr, "USAGE: %s <filename>\n", argv[0]);
              exit(1);
         /* Create Forms API context */
         ctx_attr.mask_d2fctxa = (ub4)0;
         if ( d2fctxcr_Create(&ctx, &ctx_attr) != D2FS_SUCCESS )
              fprintf(stderr, "Error creating Forms API context\n");
              exit(1);
         /* Load the form module into memory */
         if ( d2ffmdld_Load(ctx, &form,(text*) argv[1]) != D2FS_SUCCESS )
              fprintf(stderr, "Failed to load form module: %s\n", argv[1]);
              exit(1);
         /* Get the name of the form module */
         if ( d2ffmdg_name(ctx, form, &form_name) != D2FS_SUCCESS )
              fprintf(stderr, "Error getting the name of the form module\n");
         else
              /* Print the name of the form, then free it */
              printf ("The name of the form is %s\n", form_name);
              free(form_name);
         if ( d2ffmdsv_Save(ctx, form, (text *)argv[1])
         != D2FS_SUCCESS )
         fprintf(stderr, "Could not save the form\n");
         /* Destroy the in-memory form */
         if ( d2ffmdde_Destroy(ctx, form) != D2FS_SUCCESS )
         fprintf(stderr, "Error destroying form module\n");
         /* Close the API and destroy context */
         d2fctxde_Destroy(ctx);
         return 0;

  • Error creating dynamic context node in Webdynpro for ABAP. Plesae help!

    Hi
       I am getting the following error while creating a dynamic context node with 2 attributes. Please help me resolve this problem.
    Note
    The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
    The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
    My code is like the following:
    TYPES: BEGIN OF t_type,
                CARRID TYPE sflight-carrid,
                CONNID TYPE sflight-connid,
             END OF t_type.
      Data:  i_struc type table of t_type,
      dyn_node   type ref to if_wd_context_node,
      rootnode_info   type ref to if_wd_context_node_info,
      i_node_att type wdr_context_attr_info_map,
      wa_node_att type line of wdr_context_attr_info_map.
          wa_node_att-name = 'CARRID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
          insert wa_node_att into table i_node_att.
          wa_node_att-name = 'CONNID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
          insert wa_node_att into table i_node_att.
    clear i_struc. refresh i_struc.
      select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    rootnode_info = wd_context->get_node_info( ).
    rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
                                       attributes = i_node_att
                                       is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
    dyn_node->bind_table( i_struc ).
    l_ref_interfacecontroller->set_data( dyn_node ).
    I am trying to create a new node. That is
    CONTEXT
    - DYNFLIGHT
    CARRID
    CONNID
    As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
    Also I cannot define the structure in the ABAP dictionary because it changes based on condition

    Ok, I think I found a bug... It seems for adobe forms in WD4A, the root context node must be 1-1 and you must nest the 1-n node within that... Not sure why, but it worked. So in my case my context would look like this:
    FOO_NODE (1-1)
         Widget (1-N)
              -Widget_info (1-1)
                   *Name
                   *Sku
                   *Description
              -Widget_plant (1-M)
                   *Plant_Code
                   *Plant_State
                   *Plant_City
              -Widget_pic (1-1)
                   *Picture

  • Is it possible to create a file in servlet context? pls help me

    Is it possible to create a file in servlet context? pls help me

    Surely it is possible.File file = new File(path, name);

  • AE error: AE_OpenGL: Failed to create OpenGL context! Turning off OpenGL. (5065 :: 0)

    Dear all,
    I have been reinstalling CS5 at least 10 times (without exagerating) and I keep having this error popping: AE error: AE_OpenGL: Failed to create OpenGL context! Turning off OpenGL. (5065 :: 0)
    Every time I save it reappears and I don't have a clue what it is.
    At first I thought it had something to do with my video card driver ATI HD radeon 5870 but everything seems fine and up to date there.
    Any clue?
    I would appreciate any help!!!
    Thanks,
    Etienne

    Every time I save it reappears and I don't have a clue what it is.
    Simply turn off OpenGL in the AE prefs.
    everything seems fine and up to date there.
    Mustn't mean anything. The latest drivers are not necessarily always the best/ most compatible ones and things like screen resolution sometimes have a strange influence as well... You could always try installing a different version, of course, but since AE realyl doesn't use OpenGL that much, that may be more trouble than it's worth...
    Mylenium

  • Error creating policy with context

    When I try to create a policy:
    BEGIN
    ctx_ddl.create_policy('sdoscan.ec_prd_prditmname','sdoscan.ec_prd_summ.prditmname','','','','','','','','','','CTXSYS.DEFAULT_STOPLIST','');
    COMMIT;
    END;
    I get this error:
    ORA-20000: ConText error:
    DRG-10503: Unknown message id 10503
    ORA-06512: at "CTXSYS.DRUE", line 180
    ORA-06512: at "CTXSYS.CTX_DDL", line 1348
    ORA-06512: at line 2
    Does anyone know what this means and / or how to fix it?

    You could as well use this sample code
    #include <stdio.h>
    #include <stdlib.h>
    #include <malloc.h>
    #include <d2fctx.h> /* Forms API context */
    #include <d2ffmd.h> /* Form module header file */
    int main (int argc, char *argv[])
         d2fctxa ctx_attr;
         d2fctx *ctx;
         d2ffmd *form;
         d2fcnv *pd2fcnv;
         d2fgra *pd2fgra;
         text *form_name;
         /* Check arguments */
         if ( argc != 2 )
              fprintf(stderr, "USAGE: %s <filename>\n", argv[0]);
              exit(1);
         /* Create Forms API context */
         ctx_attr.mask_d2fctxa = (ub4)0;
         if ( d2fctxcr_Create(&ctx, &ctx_attr) != D2FS_SUCCESS )
              fprintf(stderr, "Error creating Forms API context\n");
              exit(1);
         /* Load the form module into memory */
         if ( d2ffmdld_Load(ctx, &form,(text*) argv[1]) != D2FS_SUCCESS )
              fprintf(stderr, "Failed to load form module: %s\n", argv[1]);
              exit(1);
         /* Get the name of the form module */
         if ( d2ffmdg_name(ctx, form, &form_name) != D2FS_SUCCESS )
              fprintf(stderr, "Error getting the name of the form module\n");
         else
              /* Print the name of the form, then free it */
              printf ("The name of the form is %s\n", form_name);
              free(form_name);
         if ( d2ffmdsv_Save(ctx, form, (text *)argv[1])
         != D2FS_SUCCESS )
         fprintf(stderr, "Could not save the form\n");
         /* Destroy the in-memory form */
         if ( d2ffmdde_Destroy(ctx, form) != D2FS_SUCCESS )
         fprintf(stderr, "Error destroying form module\n");
         /* Close the API and destroy context */
         d2fctxde_Destroy(ctx);
         return 0;

  • Can we create a session from application(Servlet Context)

    hi i m newbie in J2ee ,
    we can easilly create session from request object ,so can we create a
    session from application object(Servlet context),
    by which objects we can create a session.? plz help me

    hi i m newbie in J2ee ,
    we can easilly create session from request object ,so can we create a
    session from application object(Servlet context),
    by which objects we can create a session.? plz help me

  • Error creating Context Index

    Hi,
    Iam trying to create an context index in a table. After a logn run it gave an error. end-of-file on communication channel. How to resolve this error. And do i have any possibility to continue my index creation. How to recover it?
    Urgent Help needed......
    Thanks,
    Sri

    "End of file on communication channel" nearly always means the Oracle background process has crashed, which means either an Oracle bug or a hardware issue.
    You would need to look at the database alert logs to get more information about the crash.
    You probably won't be able to resume the indexing job from where it crashed, but will need to drop the index and recreate it.

  • Error while creating B2C Context

    HI Gurus
    We are trying to create the custom B2C(b2c_xyz) project and we are able to create the custom project and we deployed sucessfully.
    when we are logged in by the custom project we are able to login to view the select shop page but when we are selecting any shop system is throwing 500 Error "NULL POINTER EXCEPTION".
    Is there any XCM configurations are required, since we are able to use the same shop by using the context b2c
    Please provide ur valuable inputs for my proble

    Hi,
    This is with reference to my colleague Satish:
    Here I will brief about what steps we followed to create custom application in NWDS for B2C
    > Created custom project (by creating new DC): FAS_home_b2c_xyz where b2c_xyz is the context name
    > Then created standard project for B2C: FAS_b2c
    > All the META files we copied from custom to standard project and changed the application.xml file to add the new context.
    > After this we created project for shr/ext where all classes are there.
    > we linked B2C to this project by adding war file in used DC.
    we referred the document  "How Tou2026 Create Custom Application in E-Commerce 5.0 Version 1.00" to create the context, didn't change anything. Just released the activity in NWDS.
    New URL is working fine where we are getting first page which displays the default shop-list.
    After selecting shop, we are getting NullPointer exception. In log we are getting the error like " value not in context"
    let me know if any clarification required.
    Thanks.
    Rupali

Maybe you are looking for