Oc4j 9.0.4/10g R1 and JSF

Hi,
I'm having serious problems with the OC4J container 9.0.4 and JSF. I have tried several sample applications in addition to the one that I have created myself, but none of them will work in the 9.0.4 release of OC4J, even though they all work in R3 EA release, as well as in tomcat 4.x.
In order for oc4j to compile jsp, I have added the following to server.xml:
<java-compiler name="javac" in-process="false" encoding="ISO8859_1" bindir="c:\APPS\Java\j2sdk1.4.2_09\bin" extdirs="c:\APPS\Java\j2sdk1.4.2_09\lib\ext" />
After doing this the example jsp files that comes with oc4j works.
However, when trying to access my own application I get the following errors in 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)
I found an advice to not load the servlets on startup, but this does not help.
Does anyone know what might be wrong here? Is there a bug in 9.0.4 since everything works fine in the latest release?

This should not really work -- there is NO JMX support in 9.0.3.
In addition to providing the JMX MBeanServer runtime and JSR77 objects, we needed to also instrument a bunch of our runtime classes so they can work with JMX. Copying over the JMX libs and the console libs won't really get you what you need.
The earliest you may see some form of JMX is 9.0.4 -- and this is a completely unsupported (and incomplete and in fact hidden .... ) feature in that release.
Our first official release which will provide visible JMX support is 10.0.3.
Copying over JAR files like this from different versions is not a supported operation. Interesting from a learning perspective for sure ;-) -- but certainly something that support will baulk at if you ever call them about it.
cheers
-steve-

Similar Messages

  • OC4J 10.1.2.0.2 and JSF RI compatibility

    We would like to use JSF with Oracle AS (OC4J) 10.1.2.0.2 which is a J2EE 1.3 certified app server.
    What version(s) of JSF RI can we use and what are specific configuration instructions, etc.? thx.

    J2EE 1.3? Sorry, you're out of luck. You need at least J2EE 1.4 for JSF 1.x and Java EE 5 for JSF 2.x.
    Upgrade or consider another MVC framework like Struts. If I am correct, they goes back to J2EE 1.2.

  • How to integrate Single Sign-On and JSF?

    Hi all,
    We are going to develop a web application using Oracle technologies, including ADF and JSF.
    But we´ll need to secure our website using Oracle Identity Manager (Single Sign-On). I am having difficulties to find any resource explaining how to do that.
    Also, the IM (SSO) will run on a Oracle AS instance and our web app (ADF+JSF) will run on a separete OC4J instance, due to ADF version. Is this a problem?
    Thanks

    We too are in the process of implementing iStore with SSO features.
    And if you believe me it seems to me as nightmare.
    In our scenerio we are intgrating this SSO with Third party access control too (AD and Siteminder). I would request you to please respond me on the following mail id , so we can share our experince which will help us in our implementation
    [email protected]
    regards and thanks in advance
    Vikas Deep

  • OC4J Load Balancing on 10G R2

    Greetings!
    I am trying to set up OC4J with multiple JVMs on 10G R2 and did this by setting the Number of Processes parameter to 2 under Server Properties. We need sticky sessions in our app - my small tests so far seems to indicate this is working without me having to do anything.
    The reason for doing multiple processes is that our app consumes a lot of memory and with the restriction on the max JVM heap size, we are trying to exploit the full capacity of high-end servers.
    Here are my questions:
    1. Is this really as easy as it seems ? :-) Am I missing something - settings etc.? I went through documentation below and it does not have anything specific on how to choose number of processes except saying it is "specific to a computer."
    [http://download-west.oracle.com/docs/cd/B14099_11/core.1012/b14003/midtiermanage.htm]
    2. Is session replication disabled by default? There is a link on the OC4J administration page for replication which is empty. This works for us as not all objects we put in session are serializable.
    3. We have a configuration file that is read by a singleton. For multiple processes we want different values to be read by the singletons running on different processes. Is there a pattern for doing this? I am thinking of creating a lock file/index file to indicate if another process has already read the configuration. Anything better?
    I am new to this. Will appreciate all comments/suggestions.
    Regards,
    Arnab.

    Hello Arnab,
    It looks like the Metalink Note 175593.1
    "Configuring Multiple OC4J Instances as a High Availability Cluster"
    would be of a good help to answer your questions.
    Sincerely,
    Steff

  • Singl/Multiple Server Oracle 10g DB and AS- Advantages and DisAdvantages

    Hi Friends,
    I am using Application1 using Oracle 10g Application Server and Oracle 10g database.
    Now i planned to use Application2 using Oracle 10g AS and Oracle 10g DB
    I need to know what will be the Advantages and Disadvantages if i have the schema for Application2 in the existing Oracle 10g DB / having it in another Oracle 10g DB Server
    sameway what will be the advantages and disadvantages if i have the Application2 regsiterd in existing Oracle 10g AS(Multiple OC4J Instance) / having it in another Oracle 10g AS Server.
    Regards

    To start the list, for me some of the advantages are:
    Same DB:
    - less overhead and wasted CPU Cycles (therefore potentially lower license fees)
    - easier maintenance (backup, recovery)
    - easier tuning (fewer conflicting external environments asking for same resources)
    - Oracle is designed for this, allows use of Resource Manager
    - technically RAC is a clustered 'same DB'
    Same AS:
    - less overhead and wasted CPU Cycles (therefore potentially lower license fees)
    - easier maintenance (backup, recovery)
    - easier tuning (fewer conflicting external environments asking for same resources)
    - Oracle is designed for this, use AS clustering
    Different DB:
    - separate maintenance (patch, upgrade) cycles for different SLA
    - easier tuning (isolate tuning to one app)
    - easier security (most developers have no idea about Oracle security and make merge impossible)
    Different AS:
    - separate maintenance (patch, upgrade) cycles for different SLA
    - easier tuning (isolate tuning to one app)
    - easier security (most developers have no idea about security)

  • I am trying to use java  file as Model layer and jsf as presentation layer

    I am trying to use java file as Model layer and jsf as presentation layer and need some help
    I successfully get the value of h:outputText from java file by doing simple binding operation but I am facing problems when I am trying to fill h:dataTable
    I create java file
    package oracle.model;
    import java.sql.;*
    import java.util.;*
    *public class TableBean {*
    Connection con ;
    Statement ps;
    ResultSet rs;
    private List perInfoAll = new ArrayList();
    *public List getperInfoAll() {*
    perInfoAll.add(0,new perInfo("name","username","blablabla"));
    return perInfoAll;
    *public class perInfo {*
    String uname;
    String firstName;
    String lastName;
    *public perInfo(String firstName,String lastName,String uname) {*
    this.uname = uname;
    this.firstName = firstName;
    this.lastName = lastName;
    *public String getUname() {*
    return uname;
    *public String getFirstName() {*
    return firstName;
    *public String getLastName() {*
    return lastName;
    right click on the file and choose 'create data control'
    then i wrote the jsf file:
    *<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>*
    *<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>*
    *<f:view>*
    *<h:dataTable id="dt1" value="#{bindings.perInfoAll}"*
    var="item" bgcolor="#F1F1F1" border="10"
    cellpadding="5" cellspacing="3" rows="4" width="50%"
    dir="LTR" frame="hsides" rules="all"
    *>*
    *<f:facet name="header">*
    *<h:outputText value="This is 'dataTable' demo" id="ot6"/>*
    *</f:facet>*
    *<h:column id="c2">*
    *<f:facet name="header">*
    *<h:outputText value="First Name" id="ot1"/>*
    *</f:facet>*
    *<h:outputText style="" value="#{item.firstName}"*
    id="ot2"/>
    *</h:column>*
    *<h:column id="c4">*
    *<f:facet name="header">*
    *<h:outputText value="Last Name" id="ot9"/>*
    *</f:facet>*
    *<h:outputText value="#{item.lastName}" id="ot8"/>*
    *</h:column>*
    *<h:column id="c3">*
    *<f:facet name="header">*
    *<h:outputText value="Username" id="ot7"/>*
    *</f:facet>*
    *<h:outputText value="#{item.uname}" id="ot4"/>*
    *</h:column>*
    *<f:facet name="footer">*
    *<h:outputText value="The End" id="ot3"/>*
    *</f:facet>*
    *</h:dataTable>*
    *</center>*
    *</af:document>*
    *</f:view>*
    but nothing is appear in my table
    I know that there is something wrong in calling the binding object
    I need help pls and where can i find some help to deal with another tag types
    thanks

    i dragged the "perInfoAll" from my "Data Controls" and choosed adf table (even I know that new table with adf tags well be generated and i want table with jsf tags)
    and this code is generated
    *<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"*
    *"http://www.w3.org/TR/html4/loose.dtd">*
    *<%@ page contentType="text/html;charset=UTF-8"%>*
    *<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>*
    *<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>*
    *<%@ taglib uri="http://xmlns.oracle.com/adf/faces/rich" prefix="af"%>*
    *<f:view>*
    *<af:document id="d1">*
    *<af:messages id="m1"/>*
    *<af:form id="f1">*
    *<af:table value="#{bindings.perInfoAll1.collectionModel}" var="row"*
    *rows="#{bindings.perInfoAll1.rangeSize}"*
    *emptyText="#{bindings.perInfoAll1.viewable ? 'No data to display.' : 'Access Denied.'}"*
    *fetchSize="#{bindings.perInfoAll1.rangeSize}"*
    *rowBandingInterval="0"*
    *selectionListener="#{bindings.perInfoAll1.collectionModel.makeCurrent}"*
    *rowSelection="multiple" id="t1">*
    *<af:column sortProperty="uname" sortable="false"*
    *headerText="#{bindings.perInfoAll1.hints.uname.label}"*
    *id="c1">*
    *<af:inputText value="#{row.bindings.uname.inputValue}"*
    *label="#{bindings.perInfoAll1.hints.uname.label}"*
    *required="#{bindings.perInfoAll1.hints.uname.mandatory}"*
    *columns="#{bindings.perInfoAll1.hints.uname.displayWidth}"*
    *maximumLength="#{bindings.perInfoAll1.hints.uname.precision}"*
    *shortDesc="#{bindings.perInfoAll1.hints.uname.tooltip}"*
    *id="it3">*
    *<f:validator binding="#{row.bindings.uname.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="firstName" sortable="false"*
    *headerText="#{bindings.perInfoAll1.hints.firstName.label}"*
    *id="c2">*
    *<af:inputText value="#{row.bindings.firstName.inputValue}"*
    *label="#{bindings.perInfoAll1.hints.firstName.label}"*
    *required="#{bindings.perInfoAll1.hints.firstName.mandatory}"*
    *columns="#{bindings.perInfoAll1.hints.firstName.displayWidth}"*
    *maximumLength="#{bindings.perInfoAll1.hints.firstName.precision}"*
    *shortDesc="#{bindings.perInfoAll1.hints.firstName.tooltip}"*
    *id="it2">*
    *<f:validator binding="#{row.bindings.firstName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="lastName" sortable="false"*
    *headerText="#{bindings.perInfoAll1.hints.lastName.label}"*
    *id="c3">*
    *<af:inputText value="#{row.bindings.lastName.inputValue}"*
    *label="#{bindings.perInfoAll1.hints.lastName.label}"*
    *required="#{bindings.perInfoAll1.hints.lastName.mandatory}"*
    *columns="#{bindings.perInfoAll1.hints.lastName.displayWidth}"*
    *maximumLength="#{bindings.perInfoAll1.hints.lastName.precision}"*
    *shortDesc="#{bindings.perInfoAll1.hints.lastName.tooltip}"*
    *id="it1">*
    *<f:validator binding="#{row.bindings.lastName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *</af:table>*
    *</af:form>*
    *</af:document>*
    *</f:view>*
    but when run it i see the following errors
    *Class oracle.adf.model.adapter.bean.BeanDataControl can not access a member of class nl.amis.hrm.EmpManager with modifiers "private"*
    *Object EmpManager of type DataControl is not found.*
    *java.lang.NullPointerException*
    *Class oracle.adf.model.adapter.bean.BeanDataControl can not access a member of class nl.amis.hrm.EmpManager with modifiers "private"*
    *Object EmpManager of type DataControl is not found.*
    *java.lang.NullPointerException*
    :(

  • Facelets and jsf-extensions problem.

    I'm fairly certain I've run into a problem between facelets and jsf-extensions. I'm working with JSF 1.2 RI, Woodstock, Facelets 1.1.13, on Tomcat 6.
    When trying to get Woodstock autoValidation to work I get a javascript error the "I has no properties". The error occurs in the com_sun_faces_ajax.js file in the jsf-extensions-dynamic-faces-0.1.jar (I've used both the RC4 and a build today ,10/18/07 from source with the same results). Here is the code snippet where it happens (with my comment).
    var I = G.getElementsByTagName("components")[0];
    var C = I.getElementsByTagName("render");
    for(var F = 0; F < C.length; F++) {
    In the second line there it looks like the variable I is null, but based on the post response below I don't know why.
    The response from the post looks like this:
    <partial-response><components><render id="PayableForm:vendorGci"><markup><![CDATA[{"valid":true,"id":"PayableForm:vendorGci"}]]></markup></render></components>
    However the server side code (validation method) never gets executed. I'm willing to do some digging and debug work, but I'd need to be pointed in the right direction.
    The following is more potentially useful code snippets.
    Here is the textField code:
    <w:form id="PayableForm">
    <w:textField style="display:none;" />
    <w:message for="vendorGci" />
    <w:label id="vendorGciLabel" for="vendorGci" text="Vendor: " />
    <w:textField id="vendorGci" autoValidate="true"
    text="${vendorBean.searchGci}" maxlength="8" required="true"
    validatorExpression="#{ vendorBean.validateVendor}" />
    Here is the javascript in the page (the init function is called from the body: onLoad="setTimeout('init();', 0);" , this does happen):
    <w:script type="text/javascript">
    function VendorListener(){
    function VendorNotify(props){
    alert("VendorNotify called!"); <--------------- I never see this alert message
    if ( props.id != "PayableForm:vendorGci") { return; }
    var field = document.getElementById("PayableForm:vendorGciLabel");
    field.setProps({
    valid: props.valid
    VendorListener.prototype.notify = VendorNotify;
    function initAccountRows(){
    var table = document.getElementById("PayableForm:vendorAccountTable");
    table.initAllRows();
    function init(){
    initAccountRows();
    var listener = new VendorListener();
    dojo.subscribe(
    webui.suntheme.widget.textField.event.validation.endTopic ,
    listener, listener.notify);
    Here is the validator method. It currently doesn't do anything, just trying to get something to work. I never see the output, and I never hit the breakpoint in the method.
    public void validateVendor(FacesContext context, UIComponent comp, Object value){
    System.out.println("**********************************");
    System.out.println("validateVendor called");
    System.out.println(value);
    System.out.println("**********************************");
    }

    Actually I don't need a global variable. I need to refer in my included template the actual backing bean used in the current page. As all my backing bean extends a abstract class I could bind my component to a property of the current backing bean, no matters which one. Just like a polymorphic call but without the parameter. Let's imagine I could get this object of the facesContext object I would be able to do:
    <rich:datascroller renderIfSinglePage="false" align="right" for="listagem" maxPages="12" fastStep="10"
    pageIndexVar="pageIndex" pagesVar="pages" stepControls="show" fastControls="hide" boundaryControls="show"
    inactiveStyleClass="paginacaoInativa" selectedStyleClass="paginacaoSelecionada"
    styleClass="paginacao" tableStyleClass="paginacaoTabela"
    binding="#{facesContext.currentBackingbean.formDataScroller}" id="paginacao">
    Instead of pass the backing bean to the ui:param of this template... Dou you get the point?

  • Portability between Designer 9i r2 and Designer 10g r2, and deployment?

    I have some questions to ask...
    I have been given the job of adding Oracle to the reportoire of databases available to be used for a commercial Delphi application. The idea is to create a database in 10g that this application can talk to.
    I wish to develop the database, constraints and triggers etc using Oracle Designer (not because I think it's best, but simply I know how to use it, and don't know JDeveloper yet, and time is of the essence).
    Here's where the problem lies: The last application I developed was on 9i r2 and was going to a 9i r2 platform, and I generated DDL for the database tables stuff, and also for the table API, ending up with two sets of script files to run on the target system. Two of the lines of code in the table API script were:
    @ C:\oracle\9iDSHome\cgens72\sql\cdsaper.PKS
    @ C:\oracle\9iDSHome\cgens72\sql\cdsaper.PKB
    Of course the pathnames weren't right, but when I fixed them I managed to get the system installed correctly. However the clients for the application I am working on now should not have to have developer installed... I want them to be able to just run the script files into a 10g database and not worry about designer/developer at all.
    The other issue is just as serious. Although clients shouldn't have to have designer installed, I want the application developer/company owner to be able to fiddle with the designer if he wants to. I have 9i where I work, and he will have 10g. Will I be able to do a repository export/dump from my 9i r2 and import it to his 10g r2? With the previous project I did, I couldn't even import the designer export from my 9i r2 to the 9i r2 at the workplace... it said "Incorrect header file" - it was lucky I had the DDL script files or I would never have got it in the database at all! If they had had a different version of oracle then I don't know what would have happened when trying to run those package files from developer (the comments say something about an error package or some such)!
    Eventually I'm going to upgrade to 10g for database development but I don't want to just yet.
    So my questions are:
    1. Can I develop the system using 9i r2 DB and 9i r2 DS and then create DDL scripts to be run on 10g client databases without having to have developer installed on the client machines? could my "boss" distribute those two developer package files with the DDL scripts to the clients without breaking some kind of copyright?
    2. Will I be able to import a Designer 9i r2 export into a Designer 10g r2 repository for my "boss" to make adjustments and produce refined DDL scripts himself later on?
    If the only thing holding me back is having 10g installed where I work then tell me now and I'll take the plunge. If there's other issues I need to find a way around them.
    I thank you in advance for any advice you can give
    Thanks
    Adam Sawyer

    Hi,
    This issue has been reported with Designer Releases prior to 9.0.4.4 against 10g database.
    Please upgrade to the latest Designer Release 9.0.4.5 the import will work fine.
    HTH,
    Wilson.

  • Oracle 10g XE and Oracle 8.1

    HI,
    I am new in oracle and I installed both Oracle 10g XE and after Oracle 8.17 Standard with Apache server. Does anybody know why Oracle 10g XE doesn't start (doesn't find APEX) when Oracle 8.17 is running on the same computer?
    Tks,
    Laurentiu

    You can not use XE parallel with another Oracle instance. Only one instance per network.
    Cheers!

  • Error to connect oracle 10g client and designer BO 4.0

    hello,
    I try to connect oracle 10g client and designer BO 4.0.
    I created an ODBC connection to function in the administration tools of data sources but I can not connect once in designer.
    I tried using the driver directly oracle designer 10 but I have the same error that is this:
    DBD: ORA-12154: TNS: connection identifier specified could not be resolved
    someone there had the same concerns?
    cordially

    Hi,
    so it looks like that your TNSNAMES.ORA file isn`t properly configured. Thats why you can connect with the IDT to your Oracle Database.
    Your DBA`s should sent you the correct TNSNAMES.ORA file or the entry for your DB prior. After the tnsping works, you will be able to use the IDT properly.
    Regards
    -Seb.

  • What's the difference between jsp and jsf?

    who can tell me what's the difference between jsp and jsf?
    I'm puzzled when I found some of the technology in jsp is so similar to the ones in jsp( javaserver page)

    Hi,
    Find the difference between JSP and JSF
    1. A developer has more control with JSP, but (should) get easier development with JSF
    2. Event handling is done differently in JSP (HTTP) and JSF (Java)
    3. The UI is designed differently (or should be at least) with JSP (markup) and JSF (components).
    4. The end product should also be defined differently - JSP page versus a JSF application.
    Is this the only thing that is need to make a decision for either or? Probably not. There are other pieces that need to be taken in account when deciding which technology to use - tools support, enough components, type of application etc.... At this point there are not enough JSF components (although there are some interesting projects underway - Ajaxfaces, Myfaces, ADF Faces, and WebChart 3d) and enterprise tools support is still limited to a few tools vendor. Looking at our ADF Faces components they are currently available as early access (not production) and demands for these components are stacking up, literally, outside my office doorstep. Although I would love to make them production - now! - it is not a viable solution since we are still checking features and fixing critical bugs.
    All this combined - not enough enterprise level components in production, lacking tools support etc... - leave customers in a vacuum where the decision is either to continue with JSP, since it is mature and has a wide developer base, or move forward with JSF not sure if the support, or the developers will be there. This is particularly sensitive to customers that need to get started now and be production by summer.
    If you are in this vacuum here are some key points promoting JSF:
    1. Fundamental unit is the Component
    2. Built in event and state management
    3. Component sets can be provided by any vendor
    4. Closer to ASP.Net or Swing development
    5. Choice of UI technology
    6. Scale up (rich clients)
    7. Scale down (mobile devices)
    8. Built into J2EE containers in J2EE 5.0 (tentative)

  • Tomcat 6.0.9 and jsf 1.2 and jstl 1.2 using *.tag file error

    I using :tomcat 6.0.9 and jsf 1.2 and jstl 1.2
    My web.xml is at version 2.5 and I am using a custom tag (with the .tag extension). I am trying to use the http://java.sun.com/jsf/html library and values from my attribute. I'm new to this so I figure I must just me missing something.
    I am run http://192.168.1.1/test.jsf laster,view:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:212)
         org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:576)
         org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:50)
         org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:627)
         org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
         org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:631)
         org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:645)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:190)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:414)
         com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:455)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:139)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:159)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.9 logs.
    if go to /WEB-INF/tags/test.tag ,delete line: <h:outputText id="test" value="hello!" />
    run http://192.168.1.1/test.jsf is OK!(no error),So I guess error for "<h:outputText id="test" value="hello!" />" line ,why in test.tag file do can't use the "http://java.sun.com/jsf/html " library,please help me.......
    Here is file WEB-INF/web.xml content:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements. See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License. You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    -->
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
    version="2.5">
    <display-name>Welcome to Tomcat</display-name>
    <description>
    Welcome to Tomcat
    </description>
    <!-- Faces Servlet -->
    <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
         <load-on-startup> 1 </load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    </web-app>
    Here is file /test.jsp code:
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <f:view>
    <html>
    <head>
    <title>test</title>
    </head>
    <body>
    <!-- body start -->
    <h:outputText id="myinfo" value="test success" />
    <tags:test/>
    <!-- body end -->
    </body>
    </html>
    </f:view>
    Here is file /WEB-INF/tags/test.tag code:
    <%@tag pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <h:outputText id="test" value="hello!" />
    Thanks for any help.

    Don't know if it's important, but there is no schema avaiable at: http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd
    I found the right one at: http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd
    /perty
    Message was edited by:
    perajonsson

  • Oracle 10g - architechture and compatibility

    I want to know that
    - Whether Oracle 10g support 2 tier Architecture Or it is strictly for 3 tier.
    - If it doesn’t support 2 tier then, is Oracle 9i is the latest version for 2 tier system.
    - If Oracle 10g supports 2 tier then ,Is Developer 200 version 5.6 is compatible with Oracle 10g. ?
    Please response my query, as I have to take some urgent decisions based on this asap.

    If Oracle 10g means Database server 10g, then it's independent from Client Architecture ( 2 or 3 tiers refers to Client Architecture), you can use the same DB with both architectures simultaneously.
    Is Developer 200 version 5.6 is compatible with Oracle 10g. ?
    In Metalink Note:207303.1 you can see the official Client / Server / Interoperability support between different Oracle versions, but I have to say that I've already used unsupported combinations, e.g. 8.0.6 Client with 10g DB, and they may work, so the best thing would be to try.....
    Message was edited by:
    Paul M.
    If you are looking for an official answer, then the answer is NO.

  • Struts and JSF Integration in OPDk-java based portlet

    Hi,
    thanks in advance for your help.
    I'm developing a PDK java based portlet. For some reasons I cannot use the JSF bridge but I would like to integrate Struts and Jsf in my portlet, using Struts to manage actions and navigation and JSF (with ADF Faces components) for the view. I'm using the Strus-Faces library.
    When I try to submit my portlet form, I receive the error "request URL not found on this server". I'm posting some exstracts of my code.
    It's made of three pages: the main one "Integration1ShowPage", "error" and "result". The MainAction.java displays my mainPage, where there's a form. To keep it easy, when the user submits this form, the ActionName returns "success" and the "result" page should be displayed.
    The MainAction works properly: the portlet is displayed but when I tried to submit the form I receive
    The requested URL /provaDeploy/htdocs/integration1/integration1ShowPage.do was not found on this server.Could you please suggest me something?
    Many many thanks,
    B.
    <struts-config>
    <action-mappings>
      <action path = "/mainAction" type = "strutsjsfintegration1.MainAction">
        <forward name = "success" path = "/faces/htdocs/integration1/integration1ShowPage.faces"/>
      </action>
      <action path = "/nameAction" name = "nameForm"
      input = "/faces/htdocs/integration1/integration1ShowPage.faces" scope = "request"
      type = "strutsjsfintegration1.NameAction">
        <forward name = "success" path = "/faces/htdocs/integration1/result.faces"/>
        <forward name = "failure" path = "/faces/htdocs/integration1/error.faces"/>
        <forward name = "again" path = "faces/htdocs/integration1/integration1ShowPage.faces"/>
      </action>
    </action-mappings>
    <controller>
      <set-property property = "processorClass"
       value="org.apache.struts.faces.application.FacesRequestProcessor"/>
       </controller>
    <message-resources parameter="definitiveStrutsPortlet.ApplicationResources"/>
    </struts-config>

    Hi,
    have a look at this whitepaper for how to use JavaScript in ADF.
    http://www.oracle.com/technetwork/developer-tools/jdev/1-2011-javascript-302460.pdf
    This link here (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html --> see sample 71) shows an integration sample between a Java Applet and ADF. Its a similar use case to yours
    Frank

  • Can Struts and JSF coexist?

    I have a Struts based application and now I want to build an additional module on top of that using pure JSF. My question is, can Struts and JSF co-exist in the same application? If yes, what are the cons of that approach? What are the places I need to tweak in the configuration files so that they work together?
    thanks,

    Hi,
    Yes they can coexist. Actually that's the approach recommended by Craig McClanahan. I have developed a full enterprise application (80% completed) which uses JSF in front and Struts in the back using Struts-Faces integration library (developed by Apache).
    So far I haven't faced any major issues with this approach. However, I haven't try using Struts validator on JSF objects.
    Read the article below on how to integrate JSF w/ Struts.
    http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk8.html

Maybe you are looking for