Oc4j is not working

hi,
i have started oc4j service & when i run my form it shows "page cannot be displayed" on browser . when i see oc4j it shows
C:\Documents and Settings\Administrator>D:\OraFR\jdk\bin\java -Xbootclasspath/p:
D:\OraFR\vbroker4\lib\vbjboot.jar -Doracle.security.jazn.config=D:\OraFR\j2ee\De
vSuite\config\jazn.xml -Doracle.home=D:\OraFR -DORACLE_HOME=D:\OraFR -jar D:\Ora
FR\j2ee\home\oc4j.jar -userThreads -config D:\OraFR\j2ee\DevSuite\config\server.
xml
10/03/15 12:57:30 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
initialized
& not moving ahed as it used to show srating jinit .............
so tell me what to do to run my form ?
regards

post the log output from opmn/logs folder for this container and log.xml also

Similar Messages

  • Embedded OC4J Bindings Not Working

    I am having trouble with loading an AppModule using the 10.1.3 OC4J Embedded AS. When try creating an ADF panel binding I get the following error:
         javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: No such domain/application: "current-workspace-app/current-workspace-app";
    However, I can get a working reference to the AppModule using:
         env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
         env.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
         env.put(Context.SECURITY_CREDENTIALS, "welcome");
         env.put(Context.PROVIDER_URL, "ormi://localhost:" + RMI_PORT + "/current-workspace-app");
         Context ctx = new InitialContext(env);
         AppModuleHome ejbhome = (AppModuleHome)PortableRemoteObject.narrow(ctx.lookup("AppModuleBean"), AppModuleHome.class);
         RemoteAppModule ejb = ejbhome.create(env);
    but I cannot use that in a data binding. Why does the first one using the generated code not work?

    Hi,
    tried with JDeveloper 10.1.3.3 and this works for me. Try JDeveloper 10.1.3.3 - if it doesn't work, have a closer look at your sessionFacade
    Frank

  • Application restart not working in oc4j

    I have an application that runs if I stop and start oc4j using stop and start options, but if I restart from em console it does not work properly eventhough em says the status is up.
    Using oc4j 10.1.3.3
    The application starts thread in ContextInitialzed() method of ServletListener which implements ServlerContextListener. Does it have to do anything with that.
    Also the application does not log to the logger which is set using JVMARGS -Djava.util.logging.config.file in oc4j.cmd file. It logs when oc4j is stopped and started.
    Any ideas?

    Greetings,
    Are you looking in j2ee/home/log/oc4j/log.xml for your log information? Also, you can set the level of logging to FINEST in your j2ee-logging.xml. Once this is done please post the logging info relevant to your issue.
    -Mike

  • Working on Tomcat Server but same code is not working on oc4j server of E-B

    Hello,
    I have a jsp page that is working properly in tomcat 6 server but when i deployed it on oc4j server 10.1.3.1.0 than it is not working. I am confuse.
    ERROR MESSAGE:
    500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    CODE JSP:
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <!DOCTYPE html PUBLIC
         "-//W3C//DTD HTML 4.01 Transitional//EN"
         "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta
         http-equiv="Content-Type"
         content="text/html; charset=ISO-8859-1" />
    <meta
         name="author"
         content="MAX" />
    <title>Test Register Page</title>
    <link
         rel="stylesheet"
         href="css/style.css"
         type="text/css"
         media="screen" />
    </head>
    <body>
    <div id="content">
    <form name="demo" onsubmit="return validate_form()" action="RegisterServlet" method="post">
    <fieldset>
         <legend>VIEW USER</legend>
         <table border=1>
              <tr>
                   <td width="200px" align="center"><b>Bank Name</b></td>
                   <td width="200px" align="center"><b>User Name</b></td>
              </tr>
              <%
                        Connection connection = null;
                        String connectionURL = "jdbc:oracle:thin:@10.38.60.55:1521:edwdevdb";
                        ResultSet rs = null;
                   Statement statement = null;
                   try
                        // Get a Connection to the database
                        Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
                        connection = DriverManager.getConnection(connectionURL,
    "scott", "tiger");
                        statement = connection.createStatement();
                        rs = statement.executeQuery(" SELECT user_info.USER_KEY,user_info.FI_ID,d_fi.fi_nm, user_info.User_Name from user_info INNER join d_fi on user_info.fi_id = d_fi.fi_id order by fi_nm ");
                        //Set 'authentication' flag
                        while (rs.next())
         %>
                        <tr>
                                  <td width="200px"><a href="SearchUser?bankname=<%=rs.getString("USER_KEY")%">> <%= rs.getString("FI_NM")%></a> </td>
                                  <td width="200px"><%= rs.getString("User_Name")%></td>
                        </tr>
         <%                    
                   catch(SQLException e)
                   finally
                                            rs.close();
    statement.close();
    connection.close();
         %>
         </table>
         <label> </label>
    </fieldset>
    </form>
    </div>
    </body>
    </html>
    WEB xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app     xmlns="http://java.sun.com/xml/ns/javaee"
                             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    version="2.5">
    <description>Register</description>
    <display-name>Register</display-name>
    <!-- Declare Servlets -->
    <servlet>
         <servlet-name>BaseServlet</servlet-name>
         <servlet-class>BaseServlet</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>CategoryServlet</servlet-name>
         <url-pattern>/Category</url-pattern>
    </servlet-mapping>
    <!-- Welcome File List -->
    <welcome-file-list>
         <welcome-file>login.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    Edited by: bappy007 on Oct 10, 2010 1:57 AM
    Edited by: bappy007 on Oct 10, 2010 1:58 AM

    ERROR IN LOG FILE:
    10/10/10 15:18:55.843 edwportal: Servlet error
    java.lang.NullPointerException
         at test.jspService(_test.java:93)
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:619)

  • OC4J JSP Debugging not working for all the jsps

    Hi,
    Initially I was not able to debug jsps using Eclipse and OC4J. The jsp debugging started working once I made the below changes:
    1) global-web-application.xml is modified
    Changed the attribute development="true" in orion-web-app
    Added the below init param for the JspServlet
    <init-param>
    <param-name>debug</param-name>
    <param-value>class</param-value>
    </init-param>
    If the jsps are present in a sub directory under the webcontent none of the breakpoints are working. I am still be able to view the jsp pages on the browser.
    Tools: Oracle 10g Application Server Standalone version(10.1.3.5.0), JDK5, Windows XP, Eclipse Indigo
    Project Structure:
    Test (Eclipse Dynamic Web Project)
    -WebContent
    Sample.jsp ( Breakpoints are working)
    -subF (Folder)
    SubSample.jsp (Breakpoints are not working)
    -WEB-INF
    web.xml
    Debugging worked for http://localhost:8888/Test/Sample.jsp
    Debugging not working for http://localhost:8888/Test/subF/SubSample.jsp
    Any help is highly appreciated.
    Regards
    Danny

    This tells there is not enough main memory (not disk space) for the program to run.
    - You can look the dump in ST22, it will have suggestions on increasing the ROLLAREA??, you can forward that to Basis.
    - Most likely you will not have any more memory to assign so the above may not be feasible. Try to rework your query so it works with less data.

  • Ajax functionality works in embedded OC4J, but not on iAS 10.1.2

    Hi,
    For a customer, we made an ADF application using JDeveloper 10.1.2. Using instructions from http://www.oracle.com/technology/pub/articles/vohra-ajax.html we coded a servlet, to find a description from a code the user entered in the application, and show this on the webpage without page refresh (the application uses JSP and Struts). This works fine in the embedded oc4j server JDeveloper provides, and also works fine on the Standalone OC4J server. However, when the application is deployed to the iAS from the customer, everything works fine, except the ajax functionality, the description fields simply are not shown.
    Does anyone have a clue what could be the problem? We also runned the application on the iAS server itself, and this gives the same error (no ajax functionality).
    Thanks in advance,
    Remco

    Hi dvohra,
    Thanks for your reply. I'm afraid I overlooked something, which is the reason of the ajax functionality not working. The Servlet that made the Ajax functionality used a datasource, and the same was in the Embedded OC4J Preferences. The ADF Business Components part was changed to use the datasource declared on the iAS. The Servlet however was not...
    So, all works now.

  • Commit working in embedded OC4J but not in Application Server 10g

    Hi all
    i am creating an application using Jdeveloper 9051+adf+uix.
    here in a form i have a Create,Delete button and a commit button. after creating or deleting a row , i press commit button and it works fine in embedded OC4J.
    But after deploying this application on Oracle Application Server 10g , create and delete buttons are working (means data in form is getting submitted) but commit button is not working (commit button is enabled but data is not getting commited in the table.) after pressing the commit button the form is coming back to its previous position and the commit button is yet enabled. if i presses it second time then button goes disabled but data is not commited at all.
    Please provide me solution to this problem.
    Thanks

    Hi Brenden
    Thanks for reply
    in the application log file it is showing the following exception-
    08/07/01 16:51:29 mail_utility_app: Servlet error
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.xml.parser.v2.XMLDOMException, msg=cannot add a node belonging
    to a different document
    at oracle.jbo.server.Serializer.passivate(Serializer.java:189)
    at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:290)
    at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:277)
    at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:4587)
    at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:4479)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:6818)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3886)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doManagedCheckin(ApplicationPoolImpl.java:2131)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.releaseApplicationModule(ApplicationPoolImpl.java:1211)
    at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:717)
    at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:634)
    at oracle.adf.model.bc4j.DCJboDataControl.releaseApplicationModule(DCJboDataControl.java:1340)
    at oracle.adf.model.bc4j.DCJboDataControl.endRequest(DCJboDataControl.java:1198)
    at oracle.adf.model.servlet.ADFBindingFilter.invokeEndRequest(ADFBindingFilter.java:289)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:238)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    i have only one entity and one view object. there is no different document as it is shown in the exception.
    Thanks

  • Servlet forward not working with portal and oc4j

    Scenario: page1.jsp, page2.jsp, MyServlet
    Page1.jsp posts a form to MyServlet which then does some processing and forwards to page2.jsp.
    Tests:
    Works fine as a standalone app under oc4j.
    Does not work as oc4j-driven portlet under latest portal. Specifically, it conks out on the forward.
    Question:
    Why?
    What is the suggested workaround?
    Michael Mogley
    Software Engineer
    LRN, Inc.

    James, thanks for responding but you are misunderstanding the problem. I have been able to do multipage and form-submit portlets as you describe for a long time. The issue is I am not able to use the jsp-forward directive within a validation servlet when using oc4j with portal. Here is what I'm trying to do in pseudocode:
    EntryPoint.jsp
    1. Enter form data.
    2. Submit form to MyServlet.
    MyServlet
    1. Validate form.
    2. If valid, <jsp-forward page="success.jsp"/>.
    3. Else, <jsp-forward page="failure.jsp"/>.
    The above works fine when used in an app running on oc4j outside of portal. It does not work when the same oc4j app is portletized. By the way, the portletized app WILL work if I change jsp-forward to jsp-include. So the problem is obviously in the forwarding.
    Michael
    I would try looking at the samples in the PDK-Java V2 that show how to do form input and multipage behavior. The form input shows you how to make a form in a portlet that when you submit it, the entered values appear in the portlet. The multipage portlet shows you how to have a portlet display one page and then when you click on a link, it shows you the second page.
    It may make sense to copy the same code used for the samples and just tweak it to create a form that passes values from page1 to page2.
    For more info on V2 parameters, see the article "A Primer on Parameters and Events" in the PDK-Previews (for subscribers to Developer Services only). You can also see the V1 article called "Understanding the Parameter Passing Portlet" for more info on parameter passing with portlets in V1.
    James
    James

  • Remte JSP debugging for standalong OC4J 10.3.x not working

    Follow the next steps:
    1. Copying the ojc.jar, jdev-rt.jar and jdev-remote.jar to the OC4J_HOME/lib
    directory
    2. Add the next lines to the application.xml file
    < !-- Remote Debug settings -->
    < library path="../../../lib/jdev-rt.jar" />
    < library path="../../../lib/ojc.jar" />
    < library path="../../../lib/ojmisc.jar" />
    3. Change the global-web-application.xml in a text editor.
    From the following section:
    < orion-web-app
    jsp-cache-directory="./persistence"
    servlet-webdir="/servlet"
    development="false"
    >
    Change development="false" to development="true" to enable servlet
    debugging.
    4. In the global-web-application.xml file, modify the jsp servlet tags to be:
    < servlet>
    < servlet-name>jsp< /servlet-name>
    < servlet-class>oracle.jsp.runtimev2.JspServlet< /servlet-class>
    < init-param>
    < param-name>debug_mode< /param-name>
    < param-value>true< /param-value>
    < /init-param>
    < init-param>
    < param-name>developer_mode< /param-name>
    < param-value>true< /param-value>
    < /init-param>
    < init-param>
    < param-name>encode_to_java< /param-name>
    < param-value>true< /param-value>
    < /init-param>
    < init-param>
    < param-name>emit_debuginfo< /param-name>
    < param-value>true< /param-value>
    < /init-param>
    < init-param>
    < param-name>jspjavacompiler< /param-name>
    < param-value>oracle.jdevimpl.jsp.JspOjcCompiler< /param-value>
    < /init-param>
    < load-on-startup>0< /load-on-startup>
    < /servlet>
    5. Start the oc4j using the next command:
    java -hotspot -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -jar oc4j.jar
    6. Deploy the application
    7. Select the Remote Debugging and Profiling option in the Run Configuration
    for the project with the jsp to debug.
    8. In the Debugger/Remote section of the run Configuration set the host, port
    and timeout to the correct ones (name of the computer where you are running
    the application).
    When trying to run the jsp you are going to get the error:
    STACK ERROR:
    07/12/28 11:56:56
    ....\j2ee\home\application-deployments\MyJ2eeApp\MyJ2eeApp\persistence\_pages\_MyPage
    error #552: illegal forward reference
    07/12/28 11:56:56 /*@lineinfo:filename=/MyPage.jsp*/
    07/12/28 11:56:56
    2007-12-28 11:56:57.703 NOTIFICATION J2EE JSP-0008 Unable to dispatch JSP
    Page : oracle.classloader.util.AnnotatedClassNotFoundException:
    Missing class: _MyPage
    Dependent class: oracle.jsp.runtimev2.JspPageInfo
    Loader: oc4j:10.1.3
    Code-Source: ..../j2ee/home/lib/ojsp.jar
    Configuration: < code-source> in META-INF/boot.xml in ....\j2ee\home\oc4j.jar
    This load was initiated at MyJ2eeAppInfo.web.MyJ2eeAppInfo.jsp26687282:0.0.0 using the loadClass() method.
    The missing class is not available from any code-source or loader in the system.
    at oracle.classloader.PolicyClassLoader.handleClassNotFound
    (PolicyClassLoader.java:2068) [/C:/sw/oracle/oc4j101330/j2ee/home/lib/pcl.jar
    (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@9627532]
    Reproduced the problem with the next products:
    JDev OC4J Reproduced?
    10.1.3.3.0 10.1.3.2.0 YES
    10.1.3.3.0 10.1.3.3.0 YES
    10.1.3.2.0 10.1.3.2.0 YES
    When i try not use the following tags section
    < init-param>
    < param-name>emit_debuginfo< /param-name>
    < param-value>true< /param-value>
    < /init-param>
    everything is working, but ojc not generate debug information for compiled JSP page and debugger doesn't stop at break points.
    When i try use thise tags section, i got the next instructions for compiler in MyPage.java (it is generated from MyPage.jsp):
    /*@lineinfo:filename=/MyPage.jsp*/
    /*@lineinfo:generated-code*/
    and compiler is generating next message in console:
    error #552: illegal forward reference
    07/12/28 11:56:56 /*@lineinfo:filename=/MyPage.jsp*/
    and doesn't want to compile MyPage.java.
    I need help with this problem! And i don't have any ideas how to solve it. People, help me, please!

    Dear dvohra, have you ever try yourself the method, which you suggest?
    It is not working!
    If i try to configure OC4j like in blog, IDE doesn't stop in JSP's break points.
    So, I need in 100% working solution for remote debugging on oc4j 10.3.x. The main reason of using remote debug for me is that i have to develop portlets, and i have to invoke my portlets from portal. It is posible only when i deploy my portlet on stand alone oc4j!
    I really need remote debug! And i'll be very thankful someone for 100% working solution!

  • CORBA in OC4J not working

    Hi all,
    I have completed instalation of O9iAS (Win 2000) and OC4J without any errors but I am still unable to run petstore in OC4J. I can populate the tables but any call of mainservlet results in 500 internal error. As obvious from stack trace, corba is not configured properly. What do I need in order to make Corba working (classpath, environment variables) in OC4J?
    part of stack trace:
    java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE: cannot instantiate com.netscape.ejb.client.Util minor code: 0 completed: No
    at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:308)
    at javax.rmi.CORBA.Util.(Util.java:54)
    at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:182)
    at javax.rmi.PortableRemoteObject.(PortableRemoteObject.java:62)
    at com.sun.j2ee.blueprints.petstore.util.EJBUtil.getSCCHome(EJBUtil.java:50)
    at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getSCCEJB(ModelManager.java:124)
    at com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl.(ShoppingClientControllerWebImpl.java:65)
    at com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest(RequestProcessor.java:76)
    at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doProcess(MainServlet.java:118)
    at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:104)
    Thanks for any ideas
    Petr

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Petr Nalevka ([email protected]):
    Hi all,
    I have completed instalation of O9iAS (Win 2000) and OC4J without any errors but I am still unable to run petstore in OC4J. I can populate the tables but any call of mainservlet results in 500 internal error. As obvious from stack trace, corba is not configured properly. What do I need in order to make Corba working (classpath, environment variables) in OC4J?
    part of stack trace:
    java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE: cannot instantiate com.netscape.ejb.client.Util minor code: 0 completed: No
    at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:308)
    at javax.rmi.CORBA.Util.(Util.java:54)
    at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:182)
    at javax.rmi.PortableRemoteObject.(PortableRemoteObject.java:62)
    at com.sun.j2ee.blueprints.petstore.util.EJBUtil.getSCCHome(EJBUtil.java:50)
    at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getSCCEJB(ModelManager.java:124)
    at com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl.(ShoppingClientControllerWebImpl.java:65)
    at com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest(RequestProcessor.java:76)
    at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doProcess(MainServlet.java:118)
    at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:104)
    Thanks for any ideas
    Petr<HR></BLOCKQUOTE>
    Peter -
    I believe (last I heard) that OC4J does not yet fully support everything needed for CORBA...if someone has heard differenly, they can chime in...
    Cheers
    Ray
    null

  • Response.addCookie() not working on OC4j stand alone server

    Hi,
    I have problem with response.addCookie(). see the code below:
    if ((isCookie == null)||(!(isCookie.equals("yes")))) {
    String cookiestr="I am OK";
    Cookie m_cookie = new Cookie("msign",cookieStr);
    m_cookie.setMaxAge(300);
    response.addCookie(m_cookie);
    This part of the code is in Struts Action class. The read Cookie part is in JSP.
    Cookie[] cookies= request.getCookies();
    if(cookies != null)
    for (int i = 0; i < cookies.length; i++)
    if (cookies.getName().equals("msign"))
    String infor = cookies[i].getValue();
    response.sendRedirect("hellow.jsp");
    break;
    Add cookie and read cookie work fine on my computer If I runs application on JDeveloper 10g embeded OC4j server. I can see the cookie in the Temporary Internet files
    However, I deployed the application on OC4j standalone server, it does not work. response.addCookie() does not work at all. The cookie is not sent to the browser at all. There is no this cookie in Temporary internet file. The page is not directed to hellow.jsp.
    Does anybody here know why? Any idea?
    Thank you very much!
    jfu
    Edited by: jfu on Dec 15, 2009 1:26 PM

    Hi,
    I have problem with response.addCookie(). see the code below:
    if ((isCookie == null)||(!(isCookie.equals("yes")))) {
    String cookiestr="I am OK";
    Cookie m_cookie = new Cookie("msign",cookieStr);
    m_cookie.setMaxAge(300);
    response.addCookie(m_cookie);
    This part of the code is in Struts Action class. The read Cookie part is in JSP.
    Cookie[] cookies= request.getCookies();
    if(cookies != null)
    for (int i = 0; i < cookies.length; i++)
    if (cookies.getName().equals("msign"))
    String infor = cookies[i].getValue();
    response.sendRedirect("hellow.jsp");
    break;
    Add cookie and read cookie work fine on my computer If I runs application on JDeveloper 10g embeded OC4j server. I can see the cookie in the Temporary Internet files
    However, I deployed the application on OC4j standalone server, it does not work. response.addCookie() does not work at all. The cookie is not sent to the browser at all. There is no this cookie in Temporary internet file. The page is not directed to hellow.jsp.
    Does anybody here know why? Any idea?
    Thank you very much!
    jfu
    Edited by: jfu on Dec 15, 2009 1:26 PM

  • Startup class is not working in oc4j

    hi
    I have a servlet .In init of that servlet I will create an instance of a startup class .
    In web.xml configuration I gave <load-on-startup></load-on-startup> .I created a war and an ear and deployed my application .The startup class is not called.
    But when I configured the servlet in the default-web-app the startup class is running.
    And furthur when I hot deploy my ear the startup class is running.
    But when I restart my application server the startup class is not invoked.
    can anybody help
    Regards
    Gajendran.G

    hi
    I had put auto-start=true in server.xml .then also it is not working.
    when I redeploy my ear,the startup class is invoked,but when i restart the
    server it does'nt
    gaj

  • Barcode report is not working in linux

    hi,
    i am running the report using the barcode, which is running perfectly in the windows server - i meant in the report builder.
    but when i try run the same report in linux server through application, i am getting the below mentioned error:
    Terminated with error:
    REP-1401: 'beforereport': Fatal PL/SQL error occurred. ORA-39565: Message 39565 not found; product=RDBMS; facility=ORA
    below mentioned is the code written in beforereport trigger:
    globals.barcode_to_use := BarCodeConstants.BAR_CODE_128;
    globals.bcobj := barcodemaker.new();
    i have include the jar file path /ora/u01/oracle/v101/ds1/reports/jlib/oraclebarcode.jar both in class path and report_path, but still its not working.
    any one had solve this issue?...pls help me out
    for you info:
    CLASSPATH=/ora/u01/oracle/v101/ds1/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEB-INF/lib/frmsrv.jar:/ora/u01/oracle/v101/ds1/jlib/repository.jar:/ora/u01/oracle/v101/ds1/jlib/ldapjclnt10.jar:/ora/u01/oracle/v101/ds1/jlib/debugger.jar:/ora/u01/oracle/v101/ds1/jlib/ewt3.jar:/ora/u01/oracle/v101/ds1/jlib/share.jar:/ora/u01/oracle/v101/ds1/jlib/utj.jar:/ora/u01/oracle/v101/ds1/jlib/zrclient.jar:/ora/u01/oracle/v101/ds1/reports/jlib/rwrun.jar:/ora/u01/oracle/v101/ds1/forms/java/frmwebutil.jar:/ora/u01/oracle/v101/ds1/reports/jlib/oraclebarcode.jar
    RW=$ORACLE_HOME/reports; export RW
    REPORTS_PATH=$ORACLE_HOME/reports/templates:$ORACLE_HOME/reports/samples/demo:$ORACLE_HOME/reports/integ:$ORACLE_HOME/reports/printers:${REPORTS_PATH}; export REPORTS_PATH
    REPORTS_TMP=/tmp; export REPORTS_TMP
    REPORTS_NO_DUMMY_PRINTER=TRUE; export REPORTS_NO_DUMMY_PRINTER
    REPORTS_TAGLIB_URI=/WEB-INF/lib/reports_tld.jar; export REPORTS_TAGLIB_URI
    REPORTS_CLASSPATH=$ORACLE_HOME/reports/jlib/rwbuilder.jar:$ORACLE_HOME/reports/jlib/rwrun.jar:$ORACLE_HOME/jlib/zrclient.jar:$ORACLE_HOME/j2ee/home/oc4j.jar:$ORACLE_HOME/j2ee/home/lib/ojsp.jar:$ORACLE_HOME/reports/jlib/oraclebarcode.jar; export REPORTS_CLASSPATH
    repserver.conf file setting:
    <engine id="rwEng" class="oracle.reports.engine.EngineImpl" initEngine="1" maxEngine="1" minEngine="0" engLife="50" maxIdle="30" callbackTimeOut="90000" jvmOptions="-Xms512m -Xmx512m" classPath="/ora/u01/oracle/v101/ds1/reports/jlib/oraclebarcode.jar">
    <property name="sourceDir" value="/ora/u02/oraadmin/config/as2/app_qits_run"/>
    <property name="tempDir" value="/ora/u02/oraadmin/config/as2/app_qits_tmp"/>
    </engine>
    <engine id="rwURLEng" class="oracle.reports.urlengine.URLEngineImpl" initEngine="1" maxEngine="1" minEngine="0" engLife="50" maxIdle="30" callbackTimeOut="60000" classPath="/ora/u01/oracle/v101/ds1/reports/jlib/oraclebarcode.jar"/>
    thanks
    renjish

    Hello,
    The first step if to find the PL/SQL line causing the error in 'cf_1formula':
    create a procedure Trace in your Reports : (modify the line trace_file := Text_IO.Fopen('d:\temp\rep_trace.txt', 'A'); to adapt the filename to your system)
    PROCEDURE Trace (trace_string in varchar2) IS
    trace_file Text_IO.File_Type;
    BEGIN
    trace_file := Text_IO.Fopen('d:\temp\rep_trace.txt', 'A');
    Text_IO.Put_Line(trace_file, trace_string);
    Text_IO.Fclose (trace_file);
    END;
    Then, add some calls to this procedure in the program unit 'cf_1formula'
    trace('Before line 1';
    <PL/SQL code of line 1>
    trace('Before line 2';
    <PL/SQL code of line 2>
    trace('Before line 3';
    <PL/SQL code of line 3>
    Excecute the Reports and find in the file 'd:\temp\rep_trace.txt' the last line executed.
    Regards

  • Report service is not working after install Discoverer..............

    Hello,
    I have installed Oracle Developer Suite 10gR2 (Forms/Reports) on my desktop, they were both working fine for a long time. I installed Discoverer 10gR2 (Administrator and Desktop) on the same machine recently. The Oracle Forms is still good, I can run forms on the local machine after I start OC4J instance. But the Reports is always hanging, even Showjobs. I can access http://host:port/reports/rwservlet, but anything under that is not working, hanging.......
    Please help! Thanks in advance.

    Hello,
    The problem may be a PATH problem.
    Start the reports server after having set the PATH :
    set ORACLE_HOME=d:\oracle\ods1012
    set PATH=%ORACLE_HOME%\jdk\jre\bin\classic;%ORACLE_HOME%\jdk\jre\bin;%ORACLE_HOME%\jdk\jre\bin\client;%ORACLE_HOME%\jlib;%ORACLE_HOME%\bin;%ORACLE_HOME%\jdk\bin;%ORACLE_HOME%\jre\1.4.2\bin\client;%ORACLE_HOME%\jre\1.4.2\bin;
    Regards

  • Client.ole2 is not working

    Hi i'm migrating to from fomrs 4.5 to 10g as DDE package are not supported in the
    10g. i'm using client.ole2
    I have written following code to open a stored excel sheet(which is a template for entering the data). this is not working not giving any error.
    please tell me where is the error
    declare
    application client_ole2.obj_type;
    workbooks client_OLE2.OBJ_TYPE;
    workbook client_OLE2.OBJ_TYPE;
    worksheets client_OLE2.OBJ_TYPE;
    worksheet client_OLE2.OBJ_TYPE;
    worksheet2 client_OLE2.OBJ_TYPE;
    worksheet3 client_OLE2.OBJ_TYPE;
    args1 client_ole2.list_type;
    L_PATH VARCHAR2(100);
    COMMAND1 VARCHAR2(5000);
    BEGIN
         l_PATH := SFN_GET_DIRECTORY_PATH('DIR0003');
    COMMAND1 := L_PATH||'\Formats\EMP_NEW_UPLOAD.xls';
    application := Client_OLE2.create_obj('Excel.Application');
    workbooks := Client_OLE2.Get_Obj_Property(application, 'Workbooks');
    args1 := Client_Ole2.create_arglist;
    Client_Ole2.add_arg(args1, 'c:\emp.xls');
    workbook := Client_Ole2.invoke_obj(workbooks, 'Open', args1);
    worksheets := Client_Ole2.get_obj_property(workbook, 'worksheets');
    CLIENT_OLE2.destroy_arglist(args1);
    CLIENT_OLE2.SET_PROPERTY(application,'Visible',1);
    CLIENT_OLE2.SET_PROPERTY(application,'DisplayAlerts',0);
    end;

    As Gerald Krieger suggests, it sounds as if you have not installed the Jacob library correctly. Most WebUtil functions, like CLIENT_GET_FILE_NAME, are included in the base 10g install -- OLE functionality, however, is not. This is because the Jacob library, which is required for OLE support, is not an Oracle product and, as such, could not legally be distributed by Oracle.
    Jacob can be downloaded from http://sourceforge.net/projects/jacob-project
    Configuring the OC4J for developing/testing OLE-enabled forms involves these steps:
    1. Download the Jacob library and extract two files -- jacob.jar & jacob.dll
    2. Place a signed copy of jacob.jar in ...\forms\java
    3. Place a copy of jacob.dll in ...\forms\webutil
    4. If you are not using Jacob 1.8, but are instead using a different version, you must edit ...\forms\server\webutil.cfg by locating the line which contains install.syslib.0.7.1=jacob.dll|94208|1.0|true and replacing 94208 with the size (in bytes) of your particular version of jacob.dll
    If these instructions are unclear, please accept my apologies and refer to the WebUtil documentation for details.
    Finally, be aware that your forms will not deploy correctly unless ...\forms\webutil.pll has been compiled. You must be connected to a WebUtil-ready database in order for webutil.pll to compile successfully.
    Hope this helps,
    Eric Adamson
    Lansing, Michigan

Maybe you are looking for

  • Ragarding ALV Report output  running  in background

    Hi All,             When i running report in background , the output is not formatted. i.e. output is not coming in single row for a particular row in a report,it is down to second row. as result when i spool this output to excel (spread sheet) ,the

  • Categorizing a content after document CHECKIN.

    Hi there! I'd like to categorize a document programmaticaly, in other words, during a checkin event. I am aware I need the AddCCToNewCheckin.zip component installed in my webcontent server (version 11gR1-11.1.1.6.0-idcprod1-111219T111403 (Build:7.3.3

  • Easy one! -- Phone number translator

    -- I'm writing a scirpt to translate those pesky alpha-numeric phone numbers into regular numeric phone numbers. -- I'm still unfamiliar with list manipulation, so I need help with the inner statements. set thePhoneNumber to "1-800-MY-APPLE" set theP

  • Get DATA with BSP Application

    Hello Everyone, I want to get data from table SFLIGHT with BSP Application. I have used <htmlb:tableView and tableViewColumn tags but i am only getting the structure displayed in the browser, not the data, pls suggest some code to achieve that. Thank

  • Issues with Boot Camp; Windows 8

    Hello I've installed Windows 8 Pro on my Macbook Pro. The probelm is that my graphics card will not regonize all the memory. I have installed the newest driver from Intel, and I have also tried looking through the settings of my graphics card... Stil