JSF with J2SE 5.0

I want to do JSF development with J2SE 5.0
JSF 1.2 is nice but not necessary.
What IDE and webserver supports this reasonably well?
I've been using Eclipse 3.1/WTP 0.7/Tomcat 5.5 and it is pretty flaky; I understand it only is intended to support J2EE 1.4 and J2SE 1.4 which is probably a large part of the issue. Without getting into specific details, I've hit lots of problems and am currently having problems with WTP talking to Tomcat. I'd really like to switch to a more stable toolset. I will happily swap IDE or web server to anything usable.
Any ideas?

Delete the folder and /Library/Receipts/J2SE50Release3.pkg. Then, reinstall, using the downloadable from http://www.apple.com/support/downloads/java2se50release3.html. Works on my system.

Similar Messages

  • What is the usual way of accessing Oracle by JSF with connection pooling?

    I am writing to access Oracle by JSF with connection pooling.
    EJB is too difficult for me.
    What is the simple way of doing it?
    thanks

    Leung,
    I believe there should be some sample code available via the JavaServer Pages Samples Web page.
    Good Luck,
    Avi.

  • Open  Business Objects report with J2SE

    Hi, How can I do to open a Business Objects report with J2SE aplicattion?
    Thanks,

    Depending on the version of Crystal Reports / Business Objects you have, there are Java libraries you can use to connect to the Business Objects Application server. I spent a lot of time on BO's website figuring it out. In the end i only needed a few libraries to connect, and ask the server to print a report. I remember that there was a way to have the server send a pdf as a binary stream, that you could then save as a pdf file and read. You can do a lot more with the SDK, to the extent of creating your own report creation tool. If you would like some specifics, i might be able to find the some of the documentation i used. It all came from the BO website.
    Wish i could be more help
    chip.
    Edited by: Chipper on Mar 3, 2010 3:29 PM

  • Trouble compiling servlets with J2SE 5

    Hello,
    I've been using Sun 1 Studio CE, and more recently, Netbeans 3.6, with J2SE 1.4.2. I have some basic swing applets and servlets that I wrote for my business' web site.
    I recently downloaded and installed the new software bundle containing Netbeans 4.0 and J2SE 1.5. When I try to compile my servlets, I get a compiler error that packages javax.servlet.* and javax.servlet.http.* do not exist.
    I reinstalled J2SE 1.4.2 and Netbeans 3.6 and the servlets compile fine.
    Why is JDK 5 not able to find these packages? My understanding is that they're part of the Java Servlet API, which I never explicitly downloaded previously. Is that the piece of the puzzle that I'm missing? Please help!
    Thanks

    Thanks for your response...
    What is interesting is that I never explicitly installed the Servlet API. Out of curiosity, I searched my computer for servlet*.jar and came up with 13 files including:
    servlet-2.2.jar
    servlet-2.3.jar
    servlet-api-2.4.jar
    These were located in subdirectories under Netbeans 3.6 and Tomcat 5.0.19. Therefore, I'm assuming that when I downloaded the JDK 1.4.2/Netbeans 3.6 bundle from the Java site, the Servlet API must have been part of the bundle.
    ****Let me check something...***
    I've just done the same search for servlet*.jar on my test PC, which has the Netbeans 4.0/JDK 5 bundle installed. The same files exist, in the same locations(almost the same, anyway; the Tomcat and Netbeans 4 directory structures are a little different).
    Both software bundles contain the same files, yet 1.4.2 compiles without any problems or additional configuration. In other words, I reinstalled the old 1.4.2/ Netbeans 3.6 bundle, took my existing source code, and started compiling.
    Any ideas why the same isn't true for JDK 5/Netbeans 4? I know there are changes to the way Netbeans 4.0 deals with Class Paths, but I thought that was for the classes I've written. Shouldn't the compiler be able to find the servlet API, since it bundled/installed with everything else?
    Thanks

  • Tiles / JSF with single tiles-defs.xml file, no templating JSPs?

    All the examples I've seen for using JSF with Tiles use many JSP files for the templating information, resulting in twice as many JSP files as you would have in, say, a typical Struts project.
    When coding in Struts you can forward to a tiles definition, meaning that if all your page layouts are defined in tiles-defs.xml, then you only need to provide the JSPs for the non-standard parts of each page.
    With JSF it seems that you need to provide a JSP for the template for each file (which might end up being a single <tiles:insert... />, and the JSP for the non-standard bits for that page.
    Is there a way to either a) combine those two JSP files into one (by maby using a <tiles:put ... type="string"/> - tried this, couldn't get it to work), or b) get something similar to the way Struts + Tiles works?

    It does not work by default. It is a fact.
    Source for Struts, Tiles and even JSF are open now. I.e. everybody who has interest can research this question.
    I got this reply from another forum for this question and I am currently working on it. Lets see if we get somewhere.

  • Jsf with weblogic server 6.1

    Hi, Any help would be appreciated. I am trying to use jsf with weblogic server 6.1 and wlintegration 2.1 I tried to deploy the samples provided with jwsdp-1.2 When I start the guess number sample I get the following error message:
    Duke's number: 3
    <25-Jun-03 16:03:40 BST> <Error> <HTTP> <[WebAppServletConte
    xt(57758238,examplesWebApp,/examplesWebApp)] Root cause of S
    ervletException
    javax.servlet.jsp.JspException: Cannot find FacesContext
    at javax.faces.webapp.UIComponentTag.doStartTag(UICo
    mponentTag.java:269)
    at jsp_servlet._jsf_45_guessnumber._faces.__greeting
    ._jspService(__greeting.java:123)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java
    :27), etc.
    I updated the web.xml file, created the faces directory under my examplesWebApp active domain with the jsp files, it finds the UserNumberBean class but it still crashes with the above.
    One problem I was having while deploying it that Weblogic Server did not allow me to copy jsf-api.jar, jstl.jar,etc under web-inf/lib.
    So I added all required jar files under bea root/config/samples/lib and updated startWeblogic.cmd
    Please help with how to deploy correctly the samples:
    Botond

    Thanks bill.
    I checked my weblogic server 6.1,it limited to j2ee1.2 features only.So I changed it supporting j2ee1.3 features.Now my JSF example is working normally.
    But I found a new question soon.
    I writed some letter in Chinese in jsp page .And I got some errors in weblogic.
    <2003-10-14 01:47:57> <Error> <HTTP> <101019> <[ServletContext(id=6480502,name=jaction,conte
    xt-path=/jaction)] Servlet failed with IOException
    java.io.IOException: javax.servlet.jsp.JspException: The taglib validator rejected the page: "org.xm
    l.sax.SAXParseException: An invalid XML character (Unicode: 0xb8) was found in the CDATA section., "
    at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:124)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:356)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:214)
    at weblogic.servlet.jsp.JspStub.checkForReload(JspStub.java:149)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:538)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:364)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:312)
    at com.sun.faces.context.ExternalContextImpl.dispatchMessage(ExternalContextImpl.java:298)
    at com.sun.faces.lifecycle.ViewHandlerImpl.renderView(ViewHandlerImpl.java:53)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:89)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:169)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletC
    ontext.java:5517)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:31
    56)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
    I donnot know what is the matter.And how to correct?
    thanks again.
    Yanger

  • Working on JSF with Frames

    Hi All,
    I am currently working on JSF with Frames. I was able to have the frames implemented in JSF. I have 4 frames with the following layout
    Frame1
    Frame2 | Frame3
    ------------------------------------------

    Sorry, the question is
    I have a commandNavigationItem (list) in frame2 and when I click on one of the component of the navigation list, I want to the JSF page loaded in Frame3.
    Currently it is getting loaded in Frame2 itself. i did set the targetFrame parameter of commandNavigationItem but still it loads in Frame2 itself.
    Please help
    KVDY

  • Steps of Integrating JSF with struts

    Can anybody tell me the steps of intrgrate JSF with Struts
    Regds
    Amit Verma

    It's a better idea to upgrade your memory amount up to at least 1GB.

  • How to invoke JSF With Standard Urls and parameters

    Hi,
    Could some one please help me how to invoke JSF with standard Urls and parameters?
    My requirement is:
    http://localhost:8080/myapp/faces/jsf_page.jsp?trackerID=11&viewPage="products"
    then i want to save the tracker details into database and redirect the user to "products" page.
    Would some one suggest me where can i get some example?

    Hi BalusC,
    It didn't solve my proble.....Your solutions are fantastic for most of the issues. But mine problem is unclear where JSF page tags.
    If possible, Could you please provide me how to invoke the method from JSF page....
    same code works if the user click on command button but my requirement is as soon as the user click on the link from 3rd party website, then he need to come to our web application and invoke the JSF page along with ManagedBean for saving details and redirect to disganted webpage.
    I will provide the following link to 3rd party websites. the URL is :: http://somedomain.com/myApp/Tracker.JSF?trackerID=111
    Could you please provide me the code i need to write in JSF ....just for invoking ManagedBean class...? how i code for page on load call the managedBean for specific method?

  • Tomcat with j2se 1.4 beta

    hi there!
    does anyone know how i can run the install program for the tomcat 4.0 with j2se 1.4 beta 3 installed?
    the tomcat installation wont run cause it says it cant find any jdk installed in my computer!
    any ideas?

    Beuwolf, just uninstall j2se 1.4 beta as I have experienced the same problem with you. Just have your jdk1.3 install in ur computer. I have installed j2se 1.4 beta 3 but it seems doesn't work with tomcat 4.0.1. Have your jdk1.3 first before jdk1.4 does support tomcat 4.0 :)

  • Connecting J2ME serversocket with J2SE socketconnection

    ***********connecting J2ME serversocket with J2SE socketconnection *****************
    I am currently working on J2ME . Here I have a situation that I need to contact the push registry's socket connection of a midlet from the web server . I apparently wrote a J2SE client socket program to connect the midlet's socket inorder to fire the push registry. But I got a connection failure exception.
    I want to know whether i could connect J2ME serversocket with J2SE client socket . The J2SE client socket application is residing at the webserver.If yes, how?
    if any extra information needed regarding this , contact me at [email protected]
    regards
    amar

    Yes, we have already done that...using J2ME socket demo server and J2SE as the client. We have also tested it in vice-versa with J2ME socket demo as the client and J2SE as the server and they both worked pretty well. Note : both J2ME 2.0 and 2.1 also J2SE 1.4.2_04. We used the KToolBar and the SUN ONE Studio ME as our IDEs
    You can contact me at : [email protected]

  • Error while configuring jsf with ajax using rich faces.

    hi all
    i am trying to configure jsf with ajax. i am using rich faces for it.
    but when to trying to configure some simple program i am unable to start the application i am getting the following error.
    SEVERE: Parse Error at line 5 column 17: Document root element "faces-config", must match DOCTYPE ro
    ot "null".
    org.xml.sax.SAXParseException: Document root element "faces-config", must match DOCTYPE root "null".
    and
    SEVERE: Can't instantiate class: 'org.ajax4jsf.application.AjaxStateManager'.:org.ajax4jsf.applicati
    on.AjaxStateManager:exception:null
    Apr 29, 2008 11:48:15 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    my sample code is
    <h:inputText value="#{Page1.zip}">
                          <a4j:support event="onkeyup"  reRender="zip"/>                  
      </h:inputText>
      <h:outputText  id="zip" value="#{Page1.zip}"/>
    java code is page bean is
    private String zip = null;
        public String getZip() { return zip; }
        public void setZip(String zip)
           this.zip = zip;
        }the jar i am using is richfaces-api-3.2.0.SR1.jar, richfaces-impl-3.2.0.SR1.jar, richfaces-impl-3.2.0.SR1.jar
    in web.xml i have included following code.
    <filter>
    <display-name>RichFaces Filter</display-name>
    <filter-name>richfaces</filter-name>
    <filter-class>org.ajax4jsf.Filter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>richfaces</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>

    Sounds like a problem with faces-config.xml (something to do with the faces-config element). Here's an example that works:
    <?xml version='1.0' encoding='UTF-8'?>
    <!-- =========== FULL CONFIGURATION FILE ================================== -->
    <faces-config version="1.2"
                  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-facesconfig_1_2.xsd">
      <application>
        <locale-config>
          <default-locale>en_GB</default-locale>
          <supported-locale>en_GB</supported-locale>     
        </locale-config>
      </application>
      <managed-bean>
        <managed-bean-name>bean</managed-bean-name>
        <managed-bean-class>com.test.Bean</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>
    </faces-config>

  • Can JDBC3.0 code coexist with J2SE 1.4 ?

    I am working on a large project that currently is deployed on J2SE 1.3.1.
    One class implements java.sql.Connection and, as there are new methods
    on the Connection interface in J2SE 1.4, this class
    won't compile with 1.4.
    I can add the additional methods to MyConnection, but
    there is no separate jdbc.jar for jdbc 3.0 which means
    I can't execute the modified class with J2SE 1.3.
    Am I missing something here?
    Is there really no way the same code that implements java.sql.Connection can run in both 1.3 and 1.4?
    Peter Booth

    The class is a customized connection that works with our own connection pool.
    The problem is that to have the class compile with Java 1.4, I need to implement
    new methods such as the following. The first method works
    fine but the second depends upon the existence of
    java.sql.SavePoint - which would require the Java 1.4
    JDBC classes.
    I am sure I am not the only person encountering this.
    Is there any reason why a JDBC 3 jar isn't available
    as a separate download?.
    public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
    throw new java.lang.UnsupportedOperationException(
    "MyConnection: Method prepareStatement(String , String[] ) not implemented yet. \nThis is a Java 1.4 method and we're still using Java 1.3.1 in production");
    public void releaseSavepoint(Savepoint savepoint) throws SQLException
    {                                                                                      throw new java.lang.UnsupportedOperationException(  "MyConnection: Method releaseSavepoint(Savepoint ) not implemented yet. \nThis is a Java 1.4 method and we're still using Java 1.3.1");                                       
    }

  • JSP with J2SE and J2EE

    I am learning JSP from a book that is a year old. Can you tell me if the JSP for J2EE is different from that for J2SE ?

    J2SE stands for Java2 Standard Edition which is supposed to define Java standards (and API) to run day-to-day application (single user applications).
    J2EE on other hand is Java2 Enterprise Edition. Its supposed to define standards (and API) to be used to create server application that service multiple clients.
    One does not succeed the other, rather they target diffenet segments and are complementary. J2EE is more of extension of J2SE capabilities (A J2EE application will requires API defined in J2SE packages).
    JSP is part of the J2EE specification (other part being Servlets, EJB, JavaMail, JMS etc) and its supposed to have nothing to do with J2SE excepct using the latter's API in its implementation.
    What others have been trying to tell you is that JSP is part of J2EE specification but you need not know the other components of the specification to use JSP.
    Amitabh

  • JSF with in another dynamic JSF - Urgent Help Needed

    Hi,
    When i have JSF with in another dynamic JSF it worked fine in weblogic 9.2. But in weblogic 10.3.2 it is thwoing illegal state exception. Ho w can i add another JSP?
    <h:form id="frmAssignImpersonate">
         <h:inputHidden id="hiddenSoxEditPrivilege" value="#{assignImpersonate.soxEditPrivilege}"/>
         <h:inputHidden id="donotdelete" value="#{assignImpersonate.donotDelete}"/>
         <table class="TableContentWhite" style="TABLE-LAYOUT: fixed" cellSpacing="0" cellPadding="0" width="400">
              <tr>
                   <td>
                   <jsp:include page="/jsf/common/a.jsp"flush="false"/>
                   </td>
              </tr>
         </table>
         <table cellpadding="0" cellspacing="0" border="0" align="left" width="500">
              <TR class="ColorModuleHeader" height="20">
                   <TD class="rowHdr" align="left">Assign Impersonation Rights</TD>
              </TR>
              <tr>
                   <td valign="top" Class="TableContentwhite" align="left">
                   <jsp:include page="/jsf/common/b.jsp"flush="false"/>
                   </td>
              </tr>
         </table>
    </h:form>
    <%@ include file="/jsf/common/bdeFooter.jsp" %>
    Exception:
    java.lang.IllegalStateException
         at com.sun.faces.taglib.jsf_core.ViewTag.getComponentType(ViewTag.java:258)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:215)
         at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:466)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:651)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1097)
         Truncated. see log file for complete stacktrace

    wrong forum, you will not get answer here

Maybe you are looking for