Jsf and oracle's oc4j

I'm having trouble deploying jsf applications to oracle's java container (OC4J) version 9.0.4.
I have developed an application using jsf, but when trying to access it I get the following error message in the global-application log:
05/10/04 10:22:03 web-0.1: jsp: init
05/10/04 10:22:03 web-0.1: SpringContextServlet: init
05/10/04 10:22:03 web-0.1: Loading Spring root WebApplicationContext
05/10/04 10:22:03 web-0.1: Error initializing servlet
java.lang.IllegalStateException: No Factories configured for this Application - typically this is because a context listener is not setup in your web.xml.
A typical config looks like this;
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
     at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:84)
     at javax.faces.webapp.FacesServlet.init(FacesServlet.java:73)
     at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
     at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4523)
     at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4617)
     at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:765)
     at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:497)
     at com.evermind.server.Application.getHttpApplication(Application.java:886)
     at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
     at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:420)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:422)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
     at java.lang.Thread.run(Unknown Source)
05/10/04 10:22:03 web-0.1: Error preloading servlet
javax.servlet.ServletException: Error initializing servlet
     at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4574)
     at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4617)
     at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:765)
     at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:497)
     at com.evermind.server.Application.getHttpApplication(Application.java:886)
     at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
     at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:420)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:422)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
     at java.lang.Thread.run(Unknown Source)
Following an advice I found the servlets are not loaded on startup.
To ensure that it is not my application that is at fault I tried one of Sun's sample apps (guessnumber), but when accessing this i get the following error:
05/10/04 13:45:25 Started
05/10/04 13:45:26 defaultWebApp: jsp: init
05/10/04 13:45:26 defaultWebApp: 9.0.4.0.0 Started
05/10/04 13:45:47 jsf-guessNumber: jsp: init
05/10/04 13:45:47 jsf-guessNumber: Error initializing servlet
java.lang.NullPointerException
     at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
     at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
     at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4523)
     at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4617)
     at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:765)
     at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:497)
     at com.evermind.server.Application.getHttpApplication(Application.java:886)
     at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
     at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:420)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:422)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
     at java.lang.Thread.run(Unknown Source)
05/10/04 13:45:47 jsf-guessNumber: Error preloading servlet
javax.servlet.ServletException: Error initializing servlet
     at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4574)
     at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4617)
     at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:765)
     at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:497)
     at com.evermind.server.Application.getHttpApplication(Application.java:886)
     at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
     at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:420)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:422)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
     at java.lang.Thread.run(Unknown Source)
05/10/04 13:45:48 jsf-guessNumber: 9.0.4.0.0 Started
Does anyone know if there is a bug in oc4j 9.0.4? Both apps work fine in both tomcat 4.x and in the latest early access release of oc4j (EA R3).

typically this is because a context listener is not setup in your web.xml.[JSF README]
* Some web containers don't follow the Servlet 2.3 Spec rule of calling
ServletContextListeners listeners defined in tld files in the META-INF
directory of a jar. Running a faces webapp in such a container
requires you to manually declare the ServletContextListener. The
listener-class you need to specify is
com.sun.faces.config.ConfigureListener
[Jacob Hookom of Facelet]
If you would like to use JSF 1.2 with Resin: oc4j for that matter ...
1. Delete the TLD files from the jsf-imp.jar!/meta-inf
2. Specify at context-listener in your web.xml for:
com.sun.faces.config.ConfigureListener
As you see, both say a same thing.

Similar Messages

  • JSF and Facelets on OC4J 10.1.2 / 10.1.3_dp4

    Hi,
    I am developing a web application using JSF and it works properly on OPC4J (JSF RI and myFaces). But I cannot find a way to get Facelets running.
    When I simply deploy the sample application from exadel here I get strange errors:
    1) Using JSP 2.4
    java.io.IOException: code-source:/D:/dev/Server/oc4j_10.1.3_dp4/j2ee/home/applications/JSF/JSF63622/WEB-INF/lib/xhtml-lat1.ent has no "!<path>" suffix so does not name a path within the code-source.
         at oracle.oc4j.loader.SharedCodeSourceSet.getResourceStream(SharedCodeSourceSet.java:396)
         at oracle.oc4j.loader.SharedCodeSourceURL$Connection.getInputStream(SharedCodeSourceURL.java:93)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.xml.parser.v2.XMLReader.openURL(XMLReader.java:2367)
         at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:280)
         at oracle.xml.parser.v2.XMLReader.pushEntityRef(XMLReader.java:2240)
         at oracle.xml.parser.v2.XMLReader.pushEntityRef(XMLReader.java:2168)
         at oracle.xml.parser.v2.XMLExternalReader.pushEntityRef(XMLExternalReader.java:157)
         at oracle.xml.parser.v2.XMLExternalReader.checkEntityStart(XMLExternalReader.java:167)
         at oracle.xml.parser.v2.XMLExternalReader.setMarkupDepth(XMLExternalReader.java:285)
         at oracle.xml.parser.v2.NonValidatingParser.parseMarkupDecl(NonValidatingParser.java:617)
         at oracle.xml.parser.v2.NonValidatingParser.parseDoctypeDecl(NonValidatingParser.java:484)
         at oracle.xml.parser.v2.NonValidatingParser.parseProlog(NonValidatingParser.java:310)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:289)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:199)
         at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:292)
         at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:230)
         at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:219)
         at com.sun.facelets.compiler.Compiler.compile(Compiler.java:99)
         at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:187)
         at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:137)
         at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:88)
         at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:396)
         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:434)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:382)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:701)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:397)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:291)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:48)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:225)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:173)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:230)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:305)
         at index2e_jsp._jspService(_index_2e_jsp.java:46)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:408)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:525)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:447)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:382)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:701)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:397)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:833)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:430)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:215)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    2) Using JSP 2.4:
    java.lang.NullPointerException
         at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
         at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:76)
         at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:398)
         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:432)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:382)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:701)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:397)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:291)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:48)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:225)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:173)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:230)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:305)
         at index2e_jsp._jspService(_index_2e_jsp.java:46)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:644)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:364)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:525)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:447)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:382)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:701)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:397)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:833)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:430)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:215)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Has anyone some tips for me why Facelets does not work or how i can get it to work?
    Thanks, Daniel

    Copy the META-INF folder of the
    jsf-facelets.jar to a folder called "config" in the WEB-INF folder of your web and add
    <context-param>
    <param-name>facelets.LIBRARIES</param-name>
    <param-value>/WEB-INF/config/jsf-core.taglib.xml;/WEB-INF/config/jsf-html.taglib.xml;/WEB-INF/config/jsf-ui.taglib.xml;/WEB-INF/config/jstl-core.taglib.xml;/WEB-INF/config/jstl-fn.taglib.xml</param-value>
    </context-param>
    to the web.xml.
    This helped for me.

  • OC4J and Oracle forms causes ie or firefox to not respond when running form

    When I run a form in Oracle Forms 10g, I have OC4J running, and have the following displayed:
    E:\Windows\system32>E:\DevSuiteHome_5\jdk\bin\java -Doracle.security.jazn.confi
    g=E:\DevSuiteHome_5\j2ee\DevSuite\config\jazn.xml -Doracle.home=E:\DevSuiteHome_
    5 -DORACLE_HOME=E:\DevSuiteHome_5 -jar E:\DevSuiteHome_5\j2ee\home\oc4j.jar -use
    rThreads -config E:\DevSuiteHome_5\j2ee\DevSuite\config\server.xml
    07/11/20 23:11:44 Warning: Error reading transaction-log file (/E:/DevSuiteHome_
    5/j2ee/DevSuite/persistence/transaction.state) for recovery: premature end of fi
    le
    07/11/20 23:11:44 Forced or abrupt (crash etc) server shutdown detected, startin
    g recovery process...
    07/11/20 23:11:44 Recovery completed, 0 connections committed and 0 rolled back.
    07/11/20 23:11:44 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    initialized
    07/11/20 23:18:10 FormsServlet init():
    configFileName: E:\DevSuiteHome_5/forms/server/formsweb.cfg
    testMode: false
    I am running vista, and have the latest version of the dev suite. Does anybody know how I can fix this problem?

    You cannot use Internet Explorer on Windows Vista to run Web Forms.
    <p>But you CAN run web forms through Netscape or Firefox. But you first need to disable Java in the browser.
    <p>And to run OC4J on Vista, you need to set its compatibility mode to Windows XP.
    <p>See my notes on OC4J and "Browser Settings" in this thread:<br>   
    Forms 10g installed and running on Windows Vista

  • OC4J -Time out and Oracle sequence problem

    hi
    i m using OC4J to access application which is using java as front and
    and we using oracle sequence with cache as 20.
    so when i accessing application thro' network my sequence skip from 20
    mean 1-21-41-61 is it possible due to if lost connection opened from java for oracle thro' OC4J ? will it keep cache ?or lost ? is it really time out error?
    if then hw to set time out in oracle?
    u can refer below link
    Re: ORABPEL-05002

    i think i may be having the same problem. My table is savings entries out of order. I would assume that each row saved would be in sequence number order...instead it goes from like 963, 964, 678, 679, ....??? wonder why it would place new entries in front of older entries in the table???

  • BAM and Oracle application server 10.1.3???

    Hi,
    I would like to understand more about integration between BAM and OAS.
    I remember I read a document that stated that BAM was included (or was integrated) as part of OAS 10.1.3, however I installed it and still don;t see how it is integrating with OAS.
    Also, in one of the Tutorials it mentions this:
    "Note –if you are using Oracle Application Server with opmn process, the following
    additional files are required in the above path:
    C:\OracleBAM\OC4J\opmn\lib\optic.jar
    Copy the entire Application Server “opmn” directory to c:\oraclebam"
    So... are there any additional steps for the OAS and BAM integration?
    I am still learning BAM but mi goal is install it as part of EBS(order Manegemnet)-BPEL-OTM (oracle Transportation) integration installation I currently have.
    If it can be integrated can it be done using iAS 10.1.2.0.2 instead?
    Thanks

    Its recommended that you should use same versions of OAS and Oracle BAM.
    For integration between OAS components and BAM you can check BAM tech notes (http://www.oracle.com/technology/products/integration/bam/10.1.3/htdocs/1013_support.html#technotes)
    Hoping it will help you.

  • Building a Simple JSF and Web Services App in JDeveloper 10.1.3 Preview

    Hi
    I was trying out this example of JSF and webservices at:
    http://www.oracle.com/technology/products/jdev/101/howtos/jsfws/index.html
    Has anyone tried it before? I'm getting the following error:
    calling http://216.200.21.157:9090/soap
    WARNING: Unable to connect to URL: http://216.200.21.157:9090/soap due to java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html
    java.rmi.RemoteException: ; nested exception is:
         HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html
         at com.minc.ws.stockquery.proxy.runtime.NetXmethodsServicesStockquoteStockQuoteBinding_Stub.getQuote(NetXmethodsServicesStockquoteStockQuoteBinding_Stub.java:96)
         at com.minc.ws.stockquery.proxy.NetXmethodsServicesStockquoteStockQuotePortClient.getQuote(NetXmethodsServicesStockquoteStockQuotePortClient.java:40)
         at com.minc.ws.stockquery.proxy.NetXmethodsServicesStockquoteStockQuotePortClient.main(NetXmethodsServicesStockquoteStockQuotePortClient.java:29)
    Caused by: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html
         at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:142)
         at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:118)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:175)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
         at com.minc.ws.stockquery.proxy.runtime.NetXmethodsServicesStockquoteStockQuoteBinding_Stub.getQuote(NetXmethodsServicesStockquoteStockQuoteBinding_Stub.java:79)
         ... 2 more
    Any ideas?
    Thanks
    Alex

    I'm not using 10.1.3 preview. I was using 10.1.3.1 production. I just copied the title of the tutorial as my subject. sorry for the confusion!! :)
    I used the HTTP analyzer and this is what I got in the header:
    <HTML><HEAD><TITLE>TCP Packet Monitor Error</TITLE></HEAD><BODY>JDeveloper TCP Packet Monitor encountered an error retrieving<P><pre>POST http://216.200.21.157:9090/soap HTTP/1.1
    Host: 216.200.21.157:9090
    Proxy-Connection: Keep-Alive
    Connection: TE
    TE: trailers, deflate, gzip, compress
    User-Agent: Oracle HTTPClient Version 10h
    SOAPAction: "urn:xmethods-delayed-quotes#getQuote"
    Accept-Encoding: gzip, x-gzip, compress, x-compress
    Content-type: text/xml; charset=UTF-8
    Content-length: 680
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="urn:xmethods-delayed-quotes"><env:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" env:mustUnderstand="1"/></env:Header><env:Body><ns0:getQuote env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><symbol xsi:type="xsd:string">orcl</symbol></ns0:getQuote></env:Body></env:Envelope></pre><P>The error was :<P><pre>IOException retrieving the response: java.net.ConnectException: Connection refused: connect</pre><P></HTML>
    It looks like I'm getting connection refused error... Hmmm.. wonder why?
    I'll download 10.1.3.2 and see if that helps..
    Thanks for looking into this!
    Alex

  • Oracle JAAS with roles from database tables and Oracle SSO integration

    I have the following requirement for user authentication and authorization. The applications are build using ADF Faces and BC4J. User authentication should be done using Oracle SSO. User roles and functions will be stored in custom tables. These roles will be used on ADF application pages to restrict access to the UI components on a page. Example: User will "Employee" role cannot create a new employee; however, user with "HR" role can create a new employee.
    In this case, "Create" button will be visible on the ADF page.
    1. How can we use Oracle JAAS to use custom tables for roles instead of using flat XML files?
    2. How does ADF applications use these roles to restrict components on a page?
    3. For authentication, I guess we should be able to use SSO and integrate with Oracle JAAS?
    Thanks.

    Hi,
    I can give you the answers to 1 and 2 but haven't tried 3.
    1) Oracle OC4J since 10.1.3.1 has a database LoginModule that is explained in the OC4J security guide.
    I have a how-to document in review that will be published probaby next week and that explains how to set this LogiNModule up for JDeveloper and stand alone OC4J, though the OC4J documentation is pretty good as well
    http://download-west.oracle.com/docs/cd/B32110_01/web.1013/b28957/loginmod.htm#BABCDDAI
    2) Create a managed bean with boolan methods like isUserManager, isUserEmployee, isUserTechnician etc. In this methods check for the security role on teh request object's isUserInRole() method. Then access this methods from the disabled or rendered property using ExpressionLanguage
    A custom Login ModuleDoesn't use Oracle JAAS but plugs into it. So I am not sure if SSO would work with this because the custom LoginModule wouldn't get a username password pair but only a username that it has to trust.
    Frank

  • PDF PRINTING using Apache FOP and Oracle Containers for J2EE

    Hi,
    I am having major confusion about the pdf printing in Oracle XE and Apex 3.1.2.00.02
    It clearly states that this is an available option on the Oracle website.
    According to Apex there are two options for printing report regions.
    Standard - which is free
    Advanced - which uses BI and requires a licence
    Standard requires me to have Apache FOP (which is provided by Oracle in the Apex release) and Oracle Containers for J2EE (OC4J)
    Where my understanding of all this falls down is the part where I am downloading the Oracle Containers for J2EE and the license agreement states this cannot be used in a production system (only as a protptype). Can anyone clarify this? This is surely a required componenet and for the standard report printing which is supposed to be free.
    My problem is that I need to have a database system on a laptop that will go off site for a number of weeks. We need report printing options.
    Can anyone help with this. im desperate.
    Kind regards
    colin mclay

    no not yet with Application Server.
    I have tried to compare the settings to another installation with a separeted oc4j as described in the howto. But at the moment i found no mistakes.
    If i call the url adresse like:
    http://localhost:18101/fop/apex_fop.jsp
    i get:
    500 Internal Server Error
    Servlet error: java.lang.ClassNotFoundException: fop.apex__fop
    I installed it another time with these settings:
    Web Anwendung= .../fop.war (selected war file from apex install directory)
    Anwendungsname= fop
    URL zuordnen= /fop
    I would like to know if its possible to use the fop.war out of apex install directory with the Application server? In the standalone version (as described in howto) it works. But if you install it there you don't need to define an URL.
    Is the URL /fop correct or what do i have to insert there?

  • JSP, JSF, and ADF

    I've just started playing around with this and was looking for samples/tutorials to help. Of the tutorials/samples I've seen, they appear to fall short of explaining an end-end example and stick mostly to JSF and the backing bean - usually displaying static data within a JSP and navigation. I'm a bit confused on how to call custom methods in my business services (application modules) and in turn use the view objects to fetch data from my database and display the results within a JSP using the JSF components.
    I realize the latest preview JDeveloper is without ADF but while I had time I was hoping to play around with ADF Faces to hit my development database. Guess I'm trying to make sense of how JSP, JSF, Business components, and my db connection all play together in order to set up a decent starting point for an app.

    You could use Jdeveloper 10G and play around with ADF Faces, look at the demos, and the sources behind them.
    There are a couple of papers on OTN like...
    Working with ADF Faces in JDev 10g:
    http://www.oracle.com/technology/products/jdev/howtos/10g/adfjsf/how-to-adf-faces-10gjdev.htm
    Roadmap for ADF Faces:
    http://www.oracle.com/technology/products/jdev/collateral/papers/9.0.5.0/adfuix_roadmap/adfuix_roadmap.html
    And many more... as I could find upon search...
    http://www.oracle.com/ultrasearch/wwws_otn/searchotn.jsp?p_Action=Search&p_Query=adf+faces
    The visual editing support for 'The ADF Model access through ADF Faces bindings' is under development (hence no tutorials), and will be available in future release (could be post 10G release).
    -Udupa

  • JSF and Character Sets (UTF-8)

    Hi all,
    This question might have been asked before, but I'm going to ask it anyway because I'm completely puzzled by how this works in JSF.
    Let's begin with the basics, I have an application running on an OC4J servlet container, and am using JSF 1.1 (MyFaces). The problems I am having with this setup, is that it seems that the character encodings I want the server/client to use are not coming across correctly. I'm trying to enforce the application to be UTF-8, but after the response is rendered to my client, I've magically been reverted to ISO-8859-1, which is the main character set for the netherlands. However, I'm building the application to support proper internationalization; which means I NEED to use UTF-8.
    I've executed the following steps to reach this goal:
    - All JSP files contain page directives, noting the character set:
    <%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>I've checked the generated source that comes from the JSP's, it looks as expected.
    - I've created a servlet filter to set the character set directly on the request and response objects:
        public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
            // Set the characterencoding for the request and response streams.
            req.setCharacterEncoding("UTF-8");
            res.setContentType("text/html; charset=UTF-8");       
            // Complete (continue) the processing chain.
            chain.doFilter(req, res); 
        }I've debugged the code, and this works fine, except for where JSF comes in. If I use the above situation, without going through JSF, my pages come back UTF-8. When I go through JSF, my pages come back as ISO-8859-1. I'm baffled as to what is causing this. On several forums, writing a filter was proposed as the solution, however this doesn't do it for me.
    It looks like somewhere internally in JSF the character set is changed to ISO. I've been through the sources, and I've found several pieces of code that support that theory. I've seen portions of code where the character set for the response is set to that of the request. Which in my case coming from a dutch system, will be ISO.
    How can this be prevented? Can anyone give some good insight on the inner workings of JSF with regards to character sets in specific? Could this be a servlet container problem?
    Many thanks in advance for your assistance,
    Jarno

    Jarno,
    I've been investigating JSF and character encodings a bit this weekend. And I have to say it's more than a little confusing. But I may have a little insight as to what's going on here.
    I have a post here:
    http://forum.java.sun.com/thread.jspa?threadID=725929&tstart=45
    where I have a number of open questions regarding JSF 1.2's intended handling of character encodings. Please feel free to comment, as you're clearly struggling with some of the same questions I have.
    In MyFaces JSF 1.1 and JSF-RI 1.2 the handling appears to be dependent on the raw Content-Type header. Looking at the MyFaces implementation here -
    http://svn.apache.org/repos/asf/myfaces/legacy/tags/JSF_1_1_started/src/myfaces/org/apache/myfaces/application/jsp/JspViewHandlerImpl.java
    (which I'm not sure is the correct code, but it's the best I've found) it looks like the raw header Content-Type header is being parsed in handleCharacterEncoding. The resulting value (if not null) is used to set the request character encoding.
    The JSF-RI 1.2 code is similar - calculateCharacterEncoding(FacesContext) in ViewHandler appears to parse the raw header, as opposed to using the CharacterEncoding getter on ServletRequest. This is understandable, as this code should be able to handle PortletRequests as well as ServletRequests. And PortletRequests don't have set/getCharacterEncoding methods.
    My first thought is that calling setCharacterEncoding on the request in the filter may not update the raw Content-Type header. (I haven't checked if this is the case) If it doesn't, then the raw header may be getting reparsed and the request encoding getting reset in the ViewHandler. I'd suggest that you check the state of the Content-Type header before and after your call to req.setCharacterEncoding('UTF-8"). If the header charset value is unset or unchanged after this call, you may want to update it manually in your Filter.
    If that doesn't work, I'd suggest writing a simple ViewHandler which prints out the request's character encoding and the value of the Content-Type header to your logs before and after the calls to the underlying ViewHandler for each major method (i.e. renderView, etc.)
    Not sure if that's helpful, but it's my best advice based on the understanding I've reached to date. And I definitely agree - documentation on this point appears to be lacking. Good luck
    Regards,
    Peter

  • Difference between oracle Developer suit and Oracle Application Server???

    Dear all,,
    If any one please tell me the main difference between Developer Suit and Oracle Application Server.
    I will be very thank ful.
    Thank you
    Hina.

    Hi Hina
    can i deploy my application build on oracle 10g using developer suite with db10g and I don't use application server?For individual use and development yes u can using oracle Developer suit after starting OC4J
    but for client use for more than x user to be able to run reports using parameter forms and other forms application u must use Oracle Application Server
    An application server is
    a server program in a computer in a distributed network that provides the business logic for an application program.
    The application server is frequently viewed as part of a three-tier application, consisting of a graphical user interface (GUI) server, an application (business logic) server, and a database and transaction server.
    More descriptively, it can be viewed as dividing an application into:
    --- A first-tier, front-end, Web browser-based---
    1.graphical user interface, usually at a personal computer or workstation
    2.A middle-tier business logic application or set of applications, possibly on a local area network or intranet server
    3.A third-tier, back-end, database and transaction server, sometimes on a mainframe or large server
    Hope this helps,
    Regards,
    Amatu Allah

  • Oracle AS 10.1.3.0 and Oracle AS 10.1.3.1

    I have JDeveloper 10.1.2.0.2 and Oracle AS 10.1.3.0.0 installation on one machine. Can I install Oracle AS 10.1.3.1 on the same machine? Will they co-exist?
    Thanks!

    You can also patch up 10.1.3.0.0 with 10.1.3.1.0 patchset and then deploy SOA Suite components like BPEL, ESB, OWSM to the same OC4J. This will reduce the number of Oracle Homes on your machine.

  • Oc4j starting with Oracle Database & oc4j App Server on same machine

    Hi ALL, can anybody help me(pls read this)
    This is Sagar, i have created a GIS Application(java) using Oracle 10g.
    Senario I:
    oc4j server and oracle 10g Database Server on different machines:
    When i start oc4j server with NO. OF Mappers = 64 or 30 in DNS using
    1. oc4j -start (normally)
    from the path c:/oc4j/bin by setting ORACLE_HOME path normally
    application is working fine but when users are increased say 4 to 5 oc4j server gives error:
    java.lang.OutOfMemoryError: Java Heap Space
    I searched for this error i found a solution for starting oc4j as follows:
    2.Java -Xmx1024m -Xms1024m -jar oc4j.jar
    from the path c:/oc4j/j2ee/home --- oc4j.jar
    Then map & application works fine and fast since heap space is increased to 1GB (speed is noticable)
    but if...(in other senario)
    Senario II:
    oc4j server and oracle 10g Database Server on same machine:
    if step 2: is used form above senario, oc4j Server does not gets started only it gets initialized...(server does not gets started)
    but Step 1: is used application works fine but again heap space error as mentioned above is seen.
    Again if changes are made in oc4j.cmd file in c:/oc4j/bin ....by giving the heap space command oc4j works fine but the application(performance) is very very slow but heap space error is not seen.
    Please can any body suggest the solution.. application should work fast and also the heap space should be increased but taking the senario - oc4j App Server & Oracle 10g Database Server on Same machine..

    Hello,
    How much RAM do you have on the machine? What is the size of the SGA for the database you are using?
    if step 2: is used form above senario, oc4j Server does not gets started only it gets >initialized...(server does not gets started)What do you mean by this? Provide the output from the server when you start your server.

  • WLS10.3.0 and Oracle DB 12c

    Hi
    we've WLS 10.3.0 (we've extended support) and Oracle Database 11g DB 11.2.0.4 running under HPUX 11.31 U ia64
    We plan first to upgrade to Oracle 12c.
    Question: is WLS10.3.0 supported together with Oracle DB 12c.
    Its planned to to do WLS10.3.6 upgrade  in a separate step - later - 10.3.6 and 12c - this combination is valid (according the Certifcation page)
    Best regards
    Thomas

    You can also patch up 10.1.3.0.0 with 10.1.3.1.0 patchset and then deploy SOA Suite components like BPEL, ESB, OWSM to the same OC4J. This will reduce the number of Oracle Homes on your machine.

  • JSF and JDBC

    Hi, I am new to JSF, can anybody direct me to a good tutorial on JSF and JDBC (Oracle)?
    Thanks

    Try
    http://java.sun.com/developer/onlineTraining/index.html
    From here you will find links for JDBC (via Distributed computing) & the Web Services Tutorial (JSF is included)
    If you specifically want Oracle then you can sign up to OTN - try
    http://www.oracle.com/technologies/

Maybe you are looking for

  • Downloads show in downloads window, but disappear from window as soon as finished downloading.

    I start a download (say, CCleaner from filehippo.com). The firefox "downloads window" opens and the file appears, downloads, virus scans, but then it just disappears. I'm left with an empty "downloads window". The downloaded file is in my downloads f

  • Macbook Pro - How to keep a low cycle count

    hey everyone, Basically I purchased a new macbook pro 11 days ago, and My current cycle count is also 11. I am eager to keep my cycle count down this time round as my last macbook's battery died at around the 700 mark (the laptop was around 15 months

  • Which role that Take a iview use SAP GUI for HTML need ?

    hi all     i made a transaction iview use the  sap gui for html,and this ivew add a role,the role add a user.and the user had only this role.when i use the user logon the portal,it will give me a error message:   portal runtime error....    whether i

  • Mobile data network loss but with signal bars

    i keep trying to send text messages or make phone calls but they keep failing and returning a message saying unable to connect to data network, i thought that only applied for internet services? its saying i have atleast 3 or 4 bars of signal when i

  • The old permissions problem - Can't install Flash

    I know this is an old problem but I have tried every remedy in the book and some I never heard of.  I simply cannot get access to the old dll file. Vista tells me I don't even have permission to view the permissions of this object.  So, to put it sim