Problem while running ejb application in Oracle Application Server

I have created sample ejb application in jdeveloper with ejb 3.1 version,
i also created jsp page which will invoke ejb client and display result,
its running perfectly in embeded oc4j server, but while deploying application in
Oracle application server its is giving below error message
Javax naming exception: unable to find remote interface., i am confusing please give me sollution .

Hi Mr.Frank,
i have created remote interface by importing javax.ejb.Remote,
my interface name is additionEjb
and i defined a sample method and in my client i called like below
additionEjb AdditionEjb = (additionEjb)context.lookup("additionEjb");
In embeded oc4j server its running perfectly but after deploying to OAS below error throwing
The exception is : javax.naming.NameNotFoundException: additionEjb not found
Help me regrding this.

Similar Messages

  • Problem while running EJB client

    my TaxClient program caught an exception when i issued this command:
    java -classpath %J2EE_HOME%\lib\system\cloudutil.jar;%J2EE_HOME%\lib\cloudscape\RmiJdbc.jar;%J2EE_HOME%\lib\system\cloudscape.jar;%J2EE_HOME%\lib\j2ee.jar;TaxClient.jar;. TaxClient
    the exception look like this:
    java.lang.ClassCastException
    at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Porta
    bleRemoteObject.java:296)
    at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
    at TaxClient.main(TaxClient.java:13)
    and this is my client code:
    import bmp.*;
    import java.util.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    public class TaxClient {
    public static void main(String[] args) {
    try {
    Context initial = new InitialContext();
    Object objRef = initial.lookup("MyTaxBean");
    TaxHome home = (TaxHome) PortableRemoteObject.narrow(objRef, TaxHome.class);
    Tax tax = null;
    tax = home.create("IL", 5.00f);
    tax = home.create("CA", 6.25f);
    tax = home.create("FL", 8.50f);
    tax = home.create("CO", 6.75f);
    tax = home.findByPrimaryKey("CA");
    System.out.println("CA tax rate: " + tax.getTaxRate());
    System.out.println("Changing tax rate for CA state");
    tax.setTaxRate(8.25f);
    System.out.println("New CA tax rate: " + tax.getTaxRate());
    Collection taxArray = home.findInRange(5.0f, 7.0f);
    Iterator it = taxArray.iterator();
    while (it.hasNext()) {
    Object objRef2 = it.next();
    tax = (Tax)PortableRemoteObject.narrow(objRef2, Tax.class);
    System.out.println("Tax Rate in " + tax.getPrimaryKey() + ": "
    + tax.getTaxRate());
    tax.remove();
    } catch (Exception ex) {
    System.err.println("Caught an exception.");
    ex.printStackTrace();
    anyone who know what is problem pls help. i'm using win2k, j2sdk 1.3.1_02 and j2ee1.3.1. thanks

    yeah its run. some problem with the deployer descriptor. but problem occured again when i try to run the client for the second time it throws exception:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exce
    ption is:
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: O
    bject state could not be saved; nested exception is:
    javax.ejb.EJBException: Object state could not be saved
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Object st
    ate could not be saved; nested exception is:
    javax.ejb.EJBException: Object state could not be saved
    javax.ejb.EJBException: Object state could not be saved
    <<no stack trace available>>
    why it runs for the first time but not for the second?

  • Error While Deploying ADF BC JSF Application on Oracle WebLogic Server 10.3

    Hi All,
    I am Deploying ADF BC JSF Application on Oracle WebLogic Server 10.3
    My JDeveloper Version is - JDeveloper10.1.3.0.4
    I followed Following Links for Deployment
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/wls/wls.html
    http://blog.fekw.de/2008/08/23/howto-install-adf-10-runtime-and-deploy-adf-bc-app-to-oracle-weblogic-103-running-on-linux/
    I am Getting Following Error
    java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XMLParseException
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.<clinit>(ADFPhaseListener.java:463)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:711)
         at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:400)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:328)
    [ServerConnectionImpl.close():334] : Closing DM connection
    [ServerConnectionImpl.close():354] : Unregistered all listeners
    Thanks
    Vijay Chavan

    My bc4j.conf file is like bellow and my datasource name is expertDS
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="DeptAMLocal">
    <AppModuleJndiName>model.ent.DeptAM</AppModuleJndiName>
    <DeployPlatform>LOCAL</DeployPlatform>
    <JDBCName>expert</JDBCName>
    <ApplicationName>model.ent.DeptAM</ApplicationName>
    <jbo.project>Model</jbo.project>
    </AppModuleConfig>
    <AppModuleConfig name="DeptAMEmbeddedAS">
    <jbo.internal.embedded>true</jbo.internal.embedded>
    <JDBCDataSource>jdbc/expertDS</JDBCDataSource>
    <ApplicationPath>current-workspace-app</ApplicationPath>
    <ConnectionPort>23891</ConnectionPort>
    <AppModuleJndiName>DeptAMBean</AppModuleJndiName>
    <HostName>localhost</HostName>
    <java.naming.security.authentication>simple</java.naming.security.authentication>
    <java.naming.security.credentials>
    <![CDATA[{904}05DDD90D64C79A7BC508C94B403DD81551]]>
    </java.naming.security.credentials>
    <java.naming.security.principal>oc4jadmin</java.naming.security.principal>
    <DeployPlatform>EjbIas</DeployPlatform>
    <jbo.server.internal_connection>jdbc/expertCoreDS</jbo.server.internal_connection>
    <ApplicationName>model.ent.DeptAM</ApplicationName>
    </AppModuleConfig>
    <AppModuleConfig name="DeptAMAS">
    <jbo.ampool.maxinactiveage>300000</jbo.ampool.maxinactiveage>
    <AppServerConnectionName>weblogic</AppServerConnectionName>
    <AppModuleJndiName>DeptAMBean</AppModuleJndiName>
    <DeployPlatform>EjbIas</DeployPlatform>
    <jbo.ejb.txntimeout>86400</jbo.ejb.txntimeout>
    <DtMiddleTierDeploymentProfile>../ModelMiddleTier1.deploy</DtMiddleTierDeploymentProfile>
    <jbo.security.enforce>Test</jbo.security.enforce>
    <jbo.ampool.maxpoolsize>600</jbo.ampool.maxpoolsize>
    <ApplicationName>model.ent.DeptAM</ApplicationName>
    <DtDeploymentProfile>../ModelEJB1.deploy</DtDeploymentProfile>
    <jbo.ampool.doampooling>false</jbo.ampool.doampooling>
    <java.naming.security.authentication>simple</java.naming.security.authentication>
    <DtCommonDeploymentProfile>../ModelCommon1.deploy</DtCommonDeploymentProfile>
    <JDBCDataSource>jdbc/expertDS</JDBCDataSource>
    <jbo.server.internal_connection>jdbc/expertCoreDS</jbo.server.internal_connection>
    <jbo.ampool.minavailablesize>0</jbo.ampool.minavailablesize>
    <ApplicationPath>BackBoneEJB</ApplicationPath>
    <jbo.ampool.monitorsleepinterval>10000</jbo.ampool.monitorsleepinterval>
    </AppModuleConfig>
    </AppModuleConfigBag>

  • Problems deploying EJB on a oracle 8i server

    We are trying to deploy a EJB on a oracle 8i server. We crossposted this question in BI Beans forum also.
    For doing so we are using the following command:
    "deployejb -republish -temp temp -u sys -p sys -s sess_iiop://NLWS122:2481:
    LOKAAL -descriptor AQServerReceive.ejb AQServerReceive.jar"
    It seems that everything goes allright (we can trace the classes in the database) but we get this message:
    Reading Deployment Descriptor...done
    Verifying Deployment Descriptor...done
    Gathering users...done
    Generating Comm Stubs.............................................done
    Compiling Stubs...done
    Generating Jar File...done
    Loading EJB Jar file and Comm Stubs Jar file...Exception in thread "main" org.om
    g.CORBA.COMM_FAILURE: java.io.IOException: Peer disconnected socket minor code:
    0 completed: No
    at com.visigenic.vbroker.orb.TcpConnection.read(TcpConnection.java, Compiled Code)
    at com.visigenic.vbroker.orb.GiopConnectionImpl.receive_message(GiopConnectionImpl.java:436)
    at com.visigenic.vbroker.orb.GiopConnectionImpl.receive_reply(GiopConnectionImpl.java, Compiled Code)
    at com.visigenic.vbroker.orb.GiopStubDelegate.invoke(GiopStubDelegate.java:562)
    at com.visigenic.vbroker.orb.GiopStubDelegate.invoke(GiopStubDelegate.java:503)
    at com.inprise.vbroker.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:60)
    at oracle.aurora.AuroraServices._st_JISLoadJava.add(_st_JISLoadJava.java, Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.Loadjava.add(Loadjava.java:137)
    at oracle.aurora.server.tools.sess_iiop.Loadjar.loadAndCreate(Loadjar.java, Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.Loadjar.invoke(Loadjar.java, Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.Loadjava.<init>(Loadjava.java, Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.Loadjar.<init>(Loadjar.java:52)
    at oracle.aurora.ejb.deployment.GenerateEjb.invoke(GenerateEjb.java:560)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:143)
    at oracle.aurora.ejb.deployment.GenerateEjb.main(GenerateEjb.java:575)
    What could be the problem?
    More info:
    We are trying to get the example in the white paper 275199.pdf (Building Internet Applications with Oracle Forms 6i and Oracle8i) working.
    Thx for helping.

    Hi Ralph,
    I don't know if you are aware of this, but Oracle has replaced
    the database embedded EJB container (a.k.a. "aurora") with an
    external EJB container named OC4J (Oracle Containers for J2EE).
    OC4J is available in both stand-alone version and as part of Oracle's
    application server product: 9iAS. Although the database embedded
    EJB container still exists in the latest database versions (as
    far as I know), Oracle has -- for a long time, now -- been discouraging
    its use in favour of OC4J.
    More information on OC4J is available from:
    http://technet.oracle.com/tech/java/oc4j/content.html
    Good Luck,
    Avi.

  • Error -8 when deploying JHeadStart application to Oracle Application Server

    Hi,
    I have developed an application using Oracle JHeadstart 10.1.3 Preview Version 10.1.3.0.78
    We have Oracle Application Server 10g running in AS400. I created a connection to the server and tested. It shows the connection success.
    I am trying to deploy my application to Oracle Application Server 10g but getting the following error:
    Closing connection to Oc4jDcmServlet
    #### DCM command did not complete successfully (-8)
    #### HTTP return code was -8
    Exit status of DCM servlet client: -8
    Elapsed time for deployment: 30 seconds
    #### Deployment incomplete. #### 25-Jul-2006 2:21:44 PM
    I developed applications in JDev10.1.2 and deployed to the same server (Oracle Application Server 10g) without any problem.
    But if I want to deploy application from JDev10.1.3 then I am having this error.
    Can anybody help me? what might be the problem?
    Thanks
    Syed

    Syed,
    Did you generate your application with service -level property "JSP version" set to "1.2"? If not, you cannot deploy your app to a J2EE 1.3 application server like Oracle AS 10.1.2.
    Steven Davelaar,
    JHeadstart Team.

  • While running the report from oracle apps

    Hi,
    While running the report from oracle apps i am getting the below error.
    First time when i ran it it works fine in the second time it is giving the below error like
    MSG-00001: After SRWINIT
    MSG-01000: Label sets failed
    MSG-01000: ORA-06502: PL/SQL: numeric or value error
    REP-1419: 'beforereport': PL/SQL program aborted
    Can anyone please give your kind advice on it.
    Thanks
    Surya...

    what is the application version ?
    is it seeded report ? or customized
    regards

  • I have met problem while running script

    i have met problem while running script catalog.sql in oracle 10g r2 , while running it came out from the Database and then i can't get into the database please help ..
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> @C:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\catproc.sql
    DOC>######################################################################
    DOC>######################################################################
    DOC> The following PL/SQL block will cause an ORA-20000 error and
    DOC> terminate the current SQLPLUS session if the user is not SYS.
    DOC> Disconnect and reconnect with AS SYSDBA.
    DOC>######################################################################
    DOC>######################################################################
    DOC>#
    DECLARE
    ERROR at line 1:
    ORA-01012: not logged on
    Disconnected

    You should post it to the Database forum.....
    Greetings...
    Sim

  • Hi Experts , I am currently facing problems while running restricted version copy .. The log says 0 location products copied and that the process has has timed out. the error message is /SAPAPO/MVM_INT_SVC_CO_VER_LCW reported exception in task DP00014, th

    Hi Experts , I am currently facing problems while running restricted version copy in sap apo .. The log says 0 location products copied and that the process has timed out. the error message is " /SAPAPO/MVM_INT_SVC_CO_VER_LCW reported exception in task DP00014 " , then ending in time limit exceeded. could anyone explain why this happens. please note even if the log says 0 location products copied , in reality they have have been partially copied.
    Regards
    Jerel

    Hi, thank you for your replies, I found out few things about my servlet, and its portability
    and i have few questions, although i marked this topic as answered i guess its ok to post
    I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
    of the modified files to the user for them to download the modified files.
    What i am using to get the tempdir i will paste
    File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
    System.out.println(baseurl);
    baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
    baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
    links to the user for download ?
    and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
    And i want to create unique directory for each request made to the servlet , so file names dont clash.
    one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
    Reply A.S.A.P. please..
    Thanks and regards,
    Mihir Pandya

  • Problem while running client program in Netbeans4.0

    Hi,
    I am facing the following problem while running a client program in Nebeans4.0.
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x7C9012B4
    Function=RtlInitAnsiString+0x1B
    Library=C:\WINDOWS\system32\ntdll.dll
    Current Java thread:
    at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:770)
    at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1059)
    at java.net.InetAddress.getAllByName0(InetAddress.java:1009)
    at java.net.InetAddress.getAllByName0(InetAddress.java:981)
    at java.net.InetAddress.getAllByName(InetAddress.java:975)
    at weblogic.rjvm.RJVMFinder.getDnsEntries(RJVMFinder.java:370)
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:181)
    - locked <0x1007ff78> (a weblogic.rjvm.RJVMFinder)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:125)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:291)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:234)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at AcfClient.getHomeRef(AcfClient.java:73)
    at AcfClient.forceSession(AcfClient.java:43)
    at AcfClient.main(AcfClient.java:34)
    Dynamic libraries:
    0x00400000 - 0x00406000      C:\Data\j2sdk1.4.2_04\jre\bin\java.exe
    0x7C900000 - 0x7C9B0000      C:\WINDOWS\system32\ntdll.dll
    0x7C800000 - 0x7C8F4000      C:\WINDOWS\system32\kernel32.dll
    0x77DD0000 - 0x77E6B000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77E70000 - 0x77F01000      C:\WINDOWS\system32\RPCRT4.dll
    0x77C10000 - 0x77C68000      C:\WINDOWS\system32\MSVCRT.dll
    0x08000000 - 0x08138000      C:\Data\j2sdk1.4.2_04\jre\bin\client\jvm.dll
    0x77D40000 - 0x77DD0000      C:\WINDOWS\system32\USER32.dll
    0x77F10000 - 0x77F56000      C:\WINDOWS\system32\GDI32.dll
    0x76B40000 - 0x76B6D000      C:\WINDOWS\system32\WINMM.dll
    0x6BD00000 - 0x6BD0D000      C:\WINDOWS\system32\SYNCOR11.DLL
    0x10000000 - 0x10007000      C:\Data\j2sdk1.4.2_04\jre\bin\hpi.dll
    0x00390000 - 0x0039E000      C:\Data\j2sdk1.4.2_04\jre\bin\verify.dll
    0x003B0000 - 0x003C9000      C:\Data\j2sdk1.4.2_04\jre\bin\java.dll
    0x003D0000 - 0x003DD000      C:\Data\j2sdk1.4.2_04\jre\bin\zip.dll
    0x02DA0000 - 0x02DAF000      C:\Data\j2sdk1.4.2_04\jre\bin\net.dll
    0x71AB0000 - 0x71AC7000      C:\WINDOWS\system32\WS2_32.dll
    0x71AA0000 - 0x71AA8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71A50000 - 0x71A8F000      C:\WINDOWS\System32\mswsock.dll
    0x76F20000 - 0x76F47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76FB0000 - 0x76FB8000      C:\WINDOWS\System32\winrnr.dll
    0x76F60000 - 0x76F8C000      C:\WINDOWS\system32\WLDAP32.dll
    0x66210000 - 0x66219000      C:\WINDOWS\system32\netware\NWWS2NDS.DLL
    0x50D50000 - 0x50D95000      C:\WINDOWS\system32\NETWIN32.DLL
    0x50D00000 - 0x50D15000      C:\WINDOWS\system32\CLNWIN32.DLL
    0x50DF0000 - 0x50E10000      C:\WINDOWS\system32\LOCWIN32.DLL
    0x50DB0000 - 0x50DD9000      C:\WINDOWS\system32\NCPWIN32.dll
    0x71AD0000 - 0x71AD9000      C:\WINDOWS\system32\WSOCK32.dll
    0x66220000 - 0x6622C000      C:\WINDOWS\system32\netware\NWWS2SLP.DLL
    0x1C000000 - 0x1C007000      C:\WINDOWS\system32\NWSRVLOC.dll
    0x76C90000 - 0x76CB8000      C:\WINDOWS\system32\imagehlp.dll
    0x59A60000 - 0x59B01000      C:\WINDOWS\system32\DBGHELP.dll
    0x77C00000 - 0x77C08000      C:\WINDOWS\system32\VERSION.dll
    0x76BF0000 - 0x76BFB000      C:\WINDOWS\system32\PSAPI.DLL
    Heap at VM Abort:
    Heap
    def new generation total 576K, used 497K [0x10010000, 0x100b0000, 0x104f0000)
    eden space 512K, 89% used [0x10010000, 0x10083158, 0x10090000)
    from space 64K, 57% used [0x100a0000, 0x100a9478, 0x100b0000)
    to space 64K, 0% used [0x10090000, 0x10090000, 0x100a0000)
    tenured generation total 1408K, used 129K [0x104f0000, 0x10650000, 0x14010000)
    the space 1408K, 9% used [0x104f0000, 0x10510438, 0x10510600, 0x10650000)
    compacting perm gen total 4096K, used 2122K [0x14010000, 0x14410000, 0x18010000)
    the space 4096K, 51% used [0x14010000, 0x14222828, 0x14222a00, 0x14410000)
    Local Time = Fri Aug 26 10:26:03 2005
    Elapsed Time = 2
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode)
    # An error report file has been saved as hs_err_pid1280.log.
    # Please refer to the file for further information.
    Can anyone pls let me know what could be the problem.
    Thanks in adv.

    Hi,
    This type of error
    java.lang.NoClassDefFoundError: javax/naming/Context
    will occur when the client program could not able to locate lib/j2EE.jar file.
    So set the classpath correctly and make sure that you have correctly defined the JAVA_HOME environment variable in .bat script.
    Hope this will help you.
    Regards,
    Anil.
    Technical Support Engineer.

  • How To Deploy Application In Oracle Application Server

    Hi All,
    We have devloped an application in whic we have used tomcat server .
    Now we want to deploy that application in Oracle application server.
    technolgy used: J2ee
    : Shark work flowserver
    database:Oracle(XE)
    Platform: windows XP
    IDE:Eclipse (ganymede)
    Web server:tomcat(6.0)
    Thnaks and regards,
    DK.

    I think you put the questionin the wrong forum, this is all about Oracle SOA Technology, and deployment is a task within SOA.
    I have created a deployment guide/tool for Oracle SOA products (see my blog, includes java deployment).
    Put your question in :
    Oracle Application Server - General (AS General Forum)
    Marc
    http://orasoa.blogspot.com

  • A web developer problem while running a web application

    Hi all,
    I'm novice to J2EE.
    I've encountered a problem while accessing the deployed module in weblogic 8.1 server.
    I'm sure that the webapplication module is deployed as i saw my module in administration console & also the status said that it is deployed.
    when i access my web application by specifying the proper server and port no and context root it is showing
    either 505 - resource not found error(http://localhost:7001/Suresh-2/Suresh) or 404 - not found error.( http://localhost:7001/Suresh-2/Suresh)
    Now let me elaborate what i've done till now.
    My webapplication folder structure is : C:\bea\user_projects\domains\mydomain\applications\Suresh\WEB-INF\classes\Sai\ServExamp.class
    My servlet is ServExamp.java
    I created a folder called "Suresh". In that folder created another folder called "WEB-INF". In WEB-INF created a folder called "Classes".
    Since my servlet is in package "Sai", the .class file reside in \Suresh\WEB-INF\Classes\Sai\ServExamp.class
    The source code is :
    package Sai;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class ServExamp extends HttpServlet
    public void doPost(HttpServletRequest req,HttpServletResponse res)throws IOException
    PrintWriter out=res.getWriter();
    java.util.Date today=new java.util.Date();
    out.println("<html>"+"<body>"+
    "<h1 align=center>HF\'s Chapter1 Servlet </h1>"
    +"<br>"+today+"</body>"+"</html>");
    Now i'm almost done creating a web application. Next, I constructed a simple web.xml descriptor that gives a web friendly name for my servlet, and points to the servlet. I constructed web.xml descriptor file in the WEB-INF folder (C:\bea\user_projects\domains\mydomain\applications\Suresh\WEB-INF\).
    The web.xml file source is :
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>Hello World Web Application</display-name>
    <description>Test Servlet</description>
    <servlet>
    <servlet-name>ServExamp</servlet-name>
    <servlet-class>Sai.ServExamp</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ServExamp</servlet-name>
    <url-pattern>/Suresh</url-pattern>
    </servlet-mapping>
    </web-app>
    Now I have told Weblogic that the URI /Suresh corresponds to my servlet "Sai.ServExamp".
    My Web Application is ready to be deployed at this point. I logged onto Weblogic's admin console,
    1) clicked on deployments, then navigated to "Web Application Modules" .
    2) Clicked "Deploy new Web Application Module"
    3) Navigated to the location of your web application folder (Suresh). There was a radio button next to it indicating that I can select that folder as a valid web application.
    4) I Clicked that radio button and clicked "Target Module".
    5) It informed that my web application "Suresh" will be deployed to myServer.It asked a name for my web application deployment. By default it was "Suresh"
    I clicked Deploy.
    6) After deployment, my web application "Suresh" appeared in the "Web Application Modules" tree on the left.
    I Clicked on "Suresh"( my web application) then clicked the testing tab, then clicked the link shown there(http://localhost:7001/Suresh-2).
    It was not showing my servlet (showed a 403 error)
    Error - 403
    This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
    I think so it came b'coz I don't have an index.html or index.jsp page.
    7)Instead,I added my servlet on to the URL it provided.
    http://localhost:7001/Suresh-2/Suresh
    It is showing these error code: Http: 505 resource not allowed
    The page cannot be displayed
    The page you are looking for cannot be displayed because the address is incorrect.
    Please try the following:
    If you typed the page address in the Address bar, check that it is entered correctly.
    Open the localhost:7001 home page and then look for links to the information you want.
    Click Search to look for information on the Internet.
    when i just type : http://localhost:7001/ -> Error 404 not found error
    it's showing
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    I want to run my web application & any help would be appreciated.
    Thanks in advance.
    with regards,
    S.SayeeNarayanan.
    Note: I even deployed my war file, which i got by execution of (jar cv0f webapp.war . ) command from the root directory of my web application i.e. Suresh
    Then executed my webapplication it is showing
    error-505 resource not allowed.
    --------------------------------------------------------------------------------------------

    try a fully qualified path to the pem file

  • Problem while running application on sun one 8 application server.

    Dear All,
    We have a strange problem in JAS8 application. When ever we access the site from any browser for which the proxy is configured, and when we click on any of the tab ( Link or Web Page) after login, the application is redirecting back to Login page. We seem to be losing the session information at the application and so it continually redirects back to the login page, thinking that a user is not logged in with the current session.
    But when we access the same site with the same login id from browser for which proxy is not configured it is working fine.
    Does anyone has a solution to this problem.
    Message was edited by:
    tiwari1982

    This means your application client component is trying to access an entry within its component environment "java:comp/env/ejb/SimpleDemo" but there is no entry by that name. You'll need to make sure you define an ejb-ref within the application-client.xml and map the remote ejb dependency to the global JNDI name of the target Remote EJB within sun-application-client.xml.

  • Problem while creating Item Data in OCA application

    Hello Experts!
    I am creating a PDA application (OCA) for NW7.1.
    I am facing problem while creating Sales Order. I can create the Header structure. But when I Create the corresponding item structure for the header , the items are not getting created. After Sync I can only see the header structure in the middleware.
    I am using the following code to create the header and item.
    OrderCreateDocType header = model.createOrderCreateDocType();
    header.setRefdoctype("41001180");
    header.setDocType("ZRRJ");
    header.setSalesOrg("AND");
    wdContext.nodeOrderCreateDocType().bind(Collections.singleton(header));
    OcaRoot.getInstance().commit();
    wdContext.nodeOrderCreateDocType().setLeadSelection(0);
    header=(OrderCreateDocType)wdContext.nodeOrderCreateDocType().getCurrentElement().model();
    OrderCreateOrderItemsIn items = header.createNewOrderItemsIns();
    long item = new Long("000010").longValue();
    items.setItmNumber(item);
    items.setMaterial("MMKT090114");
    items.setPlant("ANDP");
    items.setTargetQty(new BigDecimal(7));
    items.setTargetQu("IT");
    header.setOrderItemsIns(Collections.singleton(items));
    OcaRoot.getInstance().commit();
    Am I missing out on step.
    Reply Awaited
    Regards
    Priya Ghosh

    Hello Priya
    in your case as the DOs are of upload only type, you are not able to create a
    child on an already created header, because updates are not allowed for upload only DOs.
    So in this case you first have to create an instance of the header first and then create an item. And only after this call a commit on the model
    Best Regards
    Vaidehi

  • Problems clicking on responsibility to access Oracle application

    Hello,
    I have some users that are able to initially log into Oracle and get to their list of responsibilities. However, they have to click on the responsibility a number of times before they can get the Oracle application to appear. After they get into the application everything is fine and they are able to swith responsiblities without any problem.
    Each user has IE8. This problem can be replicated on their machines, however, we have a number of users that do not experience this problem. So, it seems to be isolated to their desktop PC's. Does anyone have any experience with this type of issue? At this point I'm not sure if this a desktop issue or an Oracle issue.
    Thanks for your assistance.
    Jason

    Welcome to the forums !
    Pl post details of OS, database and EBS versions, along with the client desktop version. Are you using JInitiator or JRE ? Pl see if these MOS Docs can help
    How To View The Java Console And Enable Tracing For Sun JRE (Native Plug-in)          (Doc ID 452853.1)
    How To Enable The Java Console Jinitiator 1.1.8 and 1.3          (Doc ID 310961.1)
    Recommended Browsers for Oracle E-Business Suite 11i          (Doc ID 285218.1)
    Recommended Browsers for Oracle E-Business Suite Release 12          (Doc ID 389422.1)
    Pl check the Apache log files for any errors.
    HTH
    Srini

  • Problem with apex listener install on Oracle Application Express 4.2.3

    I have installed Oracle Application Express 4.2.3
    Then i tried to install apex listener  Oracle APEX Listener 2.0.5
    but it dos not work.
    I ask
    It is possibile to install  WebLogic Server 12c or 11c
    and connect it to apex ??

    Hi;
    Please check Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 [ID 393931.1] and compare it wiht your steps
    Regard
    Helios

Maybe you are looking for

  • HP Photosmart premium c309g-m printer prints blank pages even with new cartridge

    I have an HP Photosmart premium c309g-m printer and I tried to copy a black and a color document. The printer goes through the motions but the page is blank. I have tried put a new black cartridge in and still prints a blank page.

  • ITunes store won't open in itunes 10.5

    After upgrading to iTunes 10.5 last night I can't open the iTunes store.  There is no error message, just a blank screen that says "iTunes store".  My music is all still available, but oddly the spacebar will no longer work to pause or play the music

  • Hooking up a NEW Nano (3rd Gen)

    Hello All, I recently got an Ipod Nano. Hooked it up to my Vista machine and it worked great for about 1 week. Then had issues, anyway ended up returning the Nano and getting a new one...same 8 gig model. Anyway, how do I go about hooking up that new

  • Help with vendor  enhacement

    hai to all experts, i have a requirement when we create vendor (xk01) if the city is hyderabad then in the lfa1 table the vendor number should be saved as example 'hyd96554' . i have already writen the code in include ZXF05U01 in function module EXIT

  • My keynote presentation file disappeared from hard drive ?

    Hello, Something very mysterious happened to me yesterday. I've been working on a keynote presentation for a week. I precise that it was my first professional work on my brand new I7 Imac on Maverick, I am used to Snow leopard on a MacBook Pro I've b