Using Sun JSF in JBoss-4.0.5GA

Using Sun JSF
1. In $JBOSS_HME/server/server-name/deploy/jbossweb-tomcat55.sar/conf/web.xml, comment out the following lines (line 243 - 247)
<init-param>
  <description>MyFaces tlds</description>
  <param-name>tagLibJar0</param-name>
  <param-value>jsf-libs/myfaces-impl.jar</param-value>
</init-param>2. Delete all the files under $JBOSS_HME/server/server-name/deploy/jbossweb-tomcat55.sar/jsf-libs and remove jsf-libs subdirectory.
3. Copy the jstl.jar and standard.jar files from the $CREATOR_INSTLL_DIR/enterprise1/config/TagLibraries/JSTL11 directory to $JBOSS_HME/server/server-name/deploy/jbossweb-tomcat55.sar/.
Since the above steps removed MyFace completely, you should not add
<listener>
  <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>in your web.xml any more.
Calling EJBs from Web modules
1. Wrap all the JAR and WAR files in an EAR file.
2. Do not put any utility JAR file except JDBC Drivers under $JBOSS_HME/server/server-name/lib/; otherwise, you could see �classloader violation�.
3. To share the utility JAR between the EJBs and the Web modules, put it in the EAR file and declare the utility JAR in META-INF/application.xml as follows,
<?xml version="1.0" encoding="UTF-8"?>
<application version="1.4" 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/application_1_4.xsd">
  <description>Application description</description>
  <display-name>whatever</display-name>
  <module>
    <java>webUtils.jar</java>
  </module> 
  <module>
    <web>
      <web-uri>your.war</web-uri>
      <context-root>/yourURL</context-root>
    </web>
  </module>
  <module>
    <ejb>ejb1.jar</ejb>
  </module>
  <module>
    <ejb>ejb2.jar</ejb>
  </module>
</application>4. Modify $JBOSS_HME/server/server-name/deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml. Change <attribute name="Java2ClassLoadingCompliance">false</attribute> to true and <attribute name="UseJBossWebLoader">false</attribute> to true. The default configuration uses different classloaders to load EJB files and WAR file, thus does not allow the Web module to call any EJB.
Message was edited by:
xyli33
Message was edited by:
xyli33

I got it working, thanks a lot to you guys.
yes, the problem was because of the myfaces jars in the JBoss. dj had pointed this in his reply earlier but i couldnt not get it working at that time (not sure why). so after i got prasanths reply this is what i did:
1) re-installed a clean copy of JBoss 4.0.4RC1 using the jar installer
(Note: if you just use the unzip and copy method, the ejb 3 won't work by default)
2) deleted the <jboss_home>/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs folder.
3) comment out this portion in <jboss_home>/server/default/deploy/jbossweb-tomcat55.sar/cong/web.xml
<init-param>
<description>MyFaces tlds</description>
<param-name>tagLibJar0</param-name>
<param-value>jsf-libs/myfaces-impl.jar</param-value>
</init-param>
4) deleted the tmp, log and data folders under <jboss_home>/server/default
directory (these were there, because i did a test start and stop)
5) Started JBoss
6) Deployed JSF application from JDeveloper.
and it worked fine.
==>For newbie's --> watch out the the url pattern in the web.xml file created by JDeveloper if you get error : FacesContext not Found
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
Now, I want to get my EJB 3.0 working in JBoss which I created in JDeveloper and is working fine in OC4J but when i deploy to JBoss, it won't work. I will post a new thread for that in detail.
thanks once again

Similar Messages

  • Can i use ICE Faces and JBoss RichFaces combinely in JSF

    hi
    I can use ICE Faces and JBoss RichFaces in Jsf.But my requirement is that can i use both(ICE Faces&JBoss RichFaces) components in single .jspx page.is that possible
    plz tell me
    regards
    niranjan

    thanks for your reply
    plz clarify what it means "JSF Implemetation".i.e for example can i place an Rich Face Component In ICEFaces Form
    <ice:form>
    <rfc:inputText/>
    </ice:form>
    because we have some components in IFaces and some in JBoss Rich Faces which are needed for our application.
    Thanks & regards
    nsanagari

  • JSF using Sun Java Studio Creator 2

    hi every body:
    i developed an application using Sun Java Studio Creator 2 , now by default the url patterns the creator generates is like this:
    ...../faces/page1.jsp
    now i want the ,, i need to change the extension of the page , so i want to replace it from .jsp to .abc for example , and i want to remove the /faces prefix for each page....
    that's all
    thanks in advance

    Modify URL-PATTERN for your Faces Servlet from /faces/* to *.abc in web.xml
    change
    <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
      <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>to
      <servlet>
           <servlet-name>Faces Servlet</servlet-name>
           <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
           <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.abc</url-pattern>
        </servlet-mapping>hope that might help :)
    REGARDS,
    RaHuL

  • Create a portlet by using Sun One Studio 5

    Hi,
    I am having Sun One Studio 5 and Portlet Builder 2.0, however I do not know how to create a portlet and deploy it into war. Please help me create a portlet using Sun One Studio 5.
    Thanks in advance.
    [email protected]

    Liferay has a forum and you should use it - http://forums.liferay.com/ :-)
    btw, I have used the liferay portal 3.2.0 with jboss/tomcat with inbuilt and custom portlets and never had such an issue. Note that you application user is not the login user to the portal. by default you have to use [email protected]/test and id/pwd.
    Check the installation, dev instructions at
    http://www.liferay.com/web/guest/documentation/installation/jboss_tomcat
    http://www.liferay.com/web/guest/documentation/development

  • Sun JSF 1.2 (RI) + MyFaces  project Tomahawk 1.1.3

    Hi Guys,
    I wondering if someone can help me out. I'm so lost...
    In general, I'm working in a new project using Tomcat 5.5.17 as Servlet container, NetBeans as IDE and Sun JSF 1.2 (RI) Framework. The combination of Tomcat and JFS 1.2 already is an issue that I believe can be solved using Servlets framework ( I hope so). For now I just crossing my fingers believing Apache Tomcat soon will be using JSP 2.1
    Like most projects always start simple and then grows bigger and complicated. Now I just so confusing when I trying to use custom components not found in the JSF 1.2 specification. I really like MyFaces Tomahawk and would like to use in my project as well, specially a few components: Calendar, Schedule and so on.
    Making the long history short, there you are my questions:
    1 - ) Is it possible to work with Sun JSF 1.2 (RI) + Tomahawk 1.1.3 project?. Using anly a few components of Tomahawk and not the entire MyFaces specificacion.
    2 - ) Where can I donwload MyFaces examples spefically using those Tomahawk components mentioned before ? I would like to deploy the examples application myself. In the web site (http://www.myfaces.org) mention two files in Installing and Running the examples:
    " Unpack the MyFaces examples archive myfaces-X.X.X-examples.zip (or myfaces-X.X.X-examples.tgz) to a directory of your choice. "......
    I have no clue where to find those two files. All I get is a link to and external site that show me the examples and offering services, but I have no option to download any examples file.
    Thanks in advance.

    Amittev,
    Thank you. I really appreciate your help. Now the examples are working just fine in my computer.
    By the way, I have another question for you considering your kindness taken your time to share your expertise.
    I'm facing a Tiles and Facelets dilema. Which framework do you recomend me to invest my time learning it??.
    Thanks again for your time and consideration.

  • Configuring velocity to use into JSF pages

    Hello to all,
    I am newer with JSF and, I don't know how to insert Velocity code into JSF page. Is it possible? How I must configure my webapp to use Velocity+JSF?
    This is an example of a JSF page that I would be using:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="/WEB-INF/tld/veltag.tld" prefix="vel"%>
    <html>
    <f:view>
         <head>
         <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
         <title>Login</title>
         <f:loadBundle basename="com.tutorial.messages" var="msg" />
         </head>
         <body>     
         #set( $imperial = ["Munetaka","Koreyasu","Hisakira","Morikune"] )  
            #foreach( $shogun in $imperial )
                   $shogun
            #end
         <h:form>
              <h:outputLabel rendered="true" value="#{msg.name}"></h:outputLabel>
         </h:form>
         </body>
    </f:view>
    </html>I'm sorry by my poor English
    Thanks and best regards,
    Shaggy

    Hi,
    I am also trying to develop a similar application but I dont know how to do. Can you please help me regarding that?
    I need to get user's smartcard based certificate to store in server.

  • Webboard project using sun java studio creator 2

    I would like to create a simple webboard using Sun Java Studio Creator 2. In the View Topic page, there are a subject and a message creator by the owner of the subject. Then there are messages reply by others. I use Table component to list all the messages. I put a Static Text and a Text Area component in a group panel. And put a group panel in a Table Column. I bind the the reply message with the Text Area.
    My problems are...
    1. The Text Area have the same value for every row.
    2. I changed the Text Area to Static Text. The binding is successful. However, it cannot display multiline message. Please suggest a component that is more suitable to bind the variable lines message. I would like each row to have different height depending on the length of the message.
    My jsp is as follows.
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
            <ui:page binding="#{ReadTopic.page1}" id="page1">
                <ui:html binding="#{ReadTopic.html1}" id="html1">
                    <ui:head binding="#{ReadTopic.head1}" id="head1">
                        <ui:link binding="#{ReadTopic.link1}" id="link1" url="/resources/stylesheet.css"/>
                    </ui:head>
                    <ui:body binding="#{ReadTopic.body1}" id="body1" style="-rave-layout: grid">
                        <ui:form binding="#{ReadTopic.form1}" id="form1">
                            <ui:staticText binding="#{ReadTopic.staticText1}" id="staticText1" style="left: 120px; top: 24px; position: absolute"/>
                            <ui:messageGroup binding="#{ReadTopic.messageGroup1}" id="messageGroup1" style="position: absolute; left: 432px; top: 24px"/>
                            <ui:staticText binding="#{ReadTopic.staticText5}" id="staticText5" style="left: 120px; top: 72px; position: absolute" text="#{ReadTopic.topicGetNameDataProvider.value['topic.Owner']}"/>
                            <ui:staticText binding="#{ReadTopic.staticText6}" id="staticText6" style="left: 120px; top: 120px; position: absolute" text="#{ReadTopic.topicGetNameDataProvider.value['topic.Subject']}"/>
                            <ui:label binding="#{ReadTopic.label1}" id="label1" style="position: absolute; left: 24px; top: 24px" text="Topic No:"/>
                            <ui:label binding="#{ReadTopic.label2}" id="label2" style="position: absolute; left: 24px; top: 72px" text="Owner:"/>
                            <ui:label binding="#{ReadTopic.label3}" id="label3" style="position: absolute; left: 24px; top: 120px" text="Subject:"/>
                            <ui:button action="#{ReadTopic.button1_action}" binding="#{ReadTopic.button1}" id="button1"
                                style="left: 23px; top: 168px; position: absolute" text="Reply"/>
                            <ui:table augmentTitle="false" binding="#{ReadTopic.table2}" id="table2" style="left: 24px; top: 216px; position: absolute; width: 0px" width="0">
                                <script><![CDATA[
    /* ----- Functions for Table Preferences Panel ----- */
    * Toggle the table preferences panel open or closed
    function togglePreferencesPanel() {
      var table = document.getElementById("form1:table2");
      table.toggleTblePreferencesPanel();
    /* ----- Functions for Filter Panel ----- */
    * Return true if the filter menu has actually changed,
    * so the corresponding event should be allowed to continue.
    function filterMenuChanged() {
      var table = document.getElementById("form1:table2");
      return table.filterMenuChanged();
    * Toggle the custom filter panel (if any) open or closed.
    function toggleFilterPanel() {
      var table = document.getElementById("form1:table2");
      return table.toggleTableFilterPanel();
    /* ----- Functions for Table Actions ----- */
    * Initialize all rows of the table when the state
    * of selected rows changes.
    function initAllRows() {
      var table = document.getElementById("form1:table2");
      table.initAllRows();
    * Set the selected state for the given row groups
    * displayed in the table.  This functionality requires
    * the 'selectId' of the tableColumn to be set.
    * @param rowGroupId HTML element id of the tableRowGroup component
    * @param selected Flag indicating whether components should be selected
    function selectGroupRows(rowGroupId, selected) {
      var table = document.getElementById("form1:table2");
      table.selectGroupRows(rowGroupId, selected);
    * Disable all table actions if no rows have been selected.
    function disableActions() {
      // Determine whether any rows are currently selected
      var table = document.getElementById("form1:table2");
      var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
      // Set disabled state for top actions
      document.getElementById("form1:table2:tableActionsTop:deleteTop").setDisabled(disabled);
      // Set disabled state for bottom actions
      document.getElementById("form1:table2:tableActionsBottom:deleteBottom").setDisabled(disabled);
    }]]></script>
                                <ui:tableRowGroup binding="#{ReadTopic.tableRowGroup2}" id="tableRowGroup2" rows="10"
                                    sourceData="#{ReadTopic.topicdetailDataProvider}" sourceVar="currentRow">
                                    <ui:tableColumn binding="#{ReadTopic.tableColumn4}" id="tableColumn4" width="80%">
                                        <ui:panelGroup binding="#{ReadTopic.groupPanel1}" id="groupPanel1" style="height: 94px; width: 238px">
                                            <h:panelGrid binding="#{ReadTopic.gridPanel1}" border="0" columns="2" id="gridPanel1" width="100%">
                                                <ui:label binding="#{ReadTopic.label4}" id="label4" text="No:"/>
                                                <ui:staticText binding="#{ReadTopic.staticText11}" id="staticText11" text="#{currentRow.value['topicdetail.No']}"/>
                                                <ui:label binding="#{ReadTopic.label5}" id="label5" text="Name:"/>
                                                <ui:staticText binding="#{ReadTopic.staticText12}" id="staticText12" text="#{currentRow.value['topicdetail.Name']}"/>
                                                <ui:label binding="#{ReadTopic.label6}" id="label6" text="&#3586;&#3657;&#3629;&#3588;&#3623;&#3634;&#3617;:"/>
                                                <ui:staticText binding="#{ReadTopic.staticText10}" id="staticText10" text="#{currentRow.value['topicdetail.Message']}"/>
                                            </h:panelGrid>
                                        </ui:panelGroup>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                            </ui:table>
                        </ui:form>
                    </ui:body>
                </ui:html>
            </ui:page>
        </f:view>
    </jsp:root>

    Modify URL-PATTERN for your Faces Servlet from /faces/* to *.abc in web.xml
    change
    <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
      <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>to
      <servlet>
           <servlet-name>Faces Servlet</servlet-name>
           <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
           <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.abc</url-pattern>
        </servlet-mapping>hope that might help :)
    REGARDS,
    RaHuL

  • Does jsfexcelcreator work with Sun jsf RI 1.1

    hi ,
    i want to export a datatable into excel file, i tried jsfexcelcreator tool with window.open('consultation_poste.jsp?tableId=table1')
    but it does not work.
    i read that jsfexcelcreator work with JSF 1.2, but does it work with Sun jsf RI 1.1?
    thank you for any help

    hi,
    yes, it work now, the 2 jars were not in lib folder .
    thank you very much for your help.
    a last question please.
    when i run the application with the ip adress example:
    http://111.222.11.22/context/page.faces
    the export work well.
    but when i use a DNS name example:
    http://machine_name/context/page.faces
    it does not open excel file.
    do you have any idea?
    regards
    hmm that should work. can you also check these?
    - jakarta-poi.jar under lib folder
    - id of the table is equal to table1
    - and a double-check for jsfexcelcreator.jar under lib folder :)

  • Error while authenticating BPEL WorklistApplication using sun java server

    Hi,
    I have got a situation where i need to use sun java server to authenticate users and groups who can log into the BPEL worklist application.
    This is what i have done.
    I went to middleware services,BPEL,orabpel and to hw services.
    There i changed the Security provider to thrid party LDAP Server.
    the LDAP connection is successfull.
    But when i m loggin onto the Worklist App it says Username invalid .Somehow it autheticates against systemjazndata.xml file .But it's not supposed to do so and validate against the ldap.
    Any help is highly appreciated..

    Hi,
    I have got a situation where i need to use sun java server to authenticate users and groups who can log into the BPEL worklist application.
    This is what i have done.
    I went to middleware services,BPEL,orabpel and to hw services.
    There i changed the Security provider to thrid party LDAP Server.
    the LDAP connection is successfull.
    But when i m loggin onto the Worklist App it says Username invalid .Somehow it autheticates against systemjazndata.xml file .But it's not supposed to do so and validate against the ldap.
    Any help is highly appreciated..

  • Help!! How to install and use Sun ONE Directory Server Resource Kit 5.2

    Hi ! Friend:
    I have some problem on install and use Sun ONE Directory Server Resource Kit 5.2, when I execute "java DSRK", afterwards something like this : com.iplanet.install.until.wbResource::gerstring:resource bundle"locale.resources.S1DSRKResource" not found appeared in the window ,that's why?
    Meanwhile ,can you give some data about it on how to use it ?
    Thank you !

    You should be aware of the following characteristics of your directory when using this tool:
    Size and number of entries.
    Directory structure and access permissions.
    Virtual attributes, class of service, and indexing.
    Usage, types of access, and access patterns.
    Post your error messages completely.
    Thanks
    --Britto                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to use Sun's HttpsURLConnection in 6.0

              I have a servlet, which opens a connection to a https site. I
              was able to solve this problem in version 5.1 by adding the
              following in weblogic.policy
              permission
              javva.security.AllPermission "java.protocol.handler.pkgs", "read"
              ;, and setting weblogic.security.ssl.enable=false in the
              properties file. I tried the same in version 6.0, but it doesn't
              seem to work.
              Does anyone have any suggestions?
              Thanks.
              

    From example:
              test.jsp:
              <%@ page import="java.io.*" %>
              <%@ page import="java.net.*" %>
              <%
              java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
              URL etrade = new URL(null,
              "https://trading.etrade.com/cgi-bin/gx.cgi/AppLogic+Loginpage",
              new com.sun.net.ssl.internal.www.protocol.https.Handler());
              BufferedReader br = new BufferedReader(new InputStreamReader(etrade.openStream()));
              String line;
              while((line = br.readLine()) != null) {
              out.println(line);
              br.close();
              %>
              Mike G <[email protected]> wrote:
              > Would you mind sending me an example.
              > When you mean security permissions, do you mean setting the SSL
              > HandlerEnabled property to false, and adding permission
              > java.security.AllPermission "java.protocol.handler.pkgs", "read";
              > to the weblogic.policy file?
              > Thanks for your help.
              > Dimitri Rakitine <[email protected]> wrote:
              >>I use the URL(URL context, String spec, URLStreamHandler handler) constuctor
              >>and use sun's streamhandler - this doesn't require any configuration changes
              >>(except security permissions).
              >>
              >>Mike G <[email protected]> wrote:
              >>
              >>> I have a servlet, which opens a connection to a https site. I
              >>> was able to solve this problem in version 5.1 by adding the
              >>> following in weblogic.policy
              >>> permission
              >>> javva.security.AllPermission "java.protocol.handler.pkgs", "read"
              >>> ;, and setting weblogic.security.ssl.enable=false in the
              >>> properties file. I tried the same in version 6.0, but it doesn't
              >>> seem to work.
              >>
              >>> Does anyone have any suggestions?
              >>> Thanks.
              >>
              >>Dimitri
              Dimitri
              

  • Trouble with mapping CMR field using Sun One Studio

    I am having trouble adding a cmr between 2 entity beans. It is a simple one to one relationship, navigatable in only one direction. In the database I have a foreign key defined between the two tables that store the data for the beans.
    I add the relation by selecting the 2 beans and define it as one directional, one to one , with the name "bb". I then map the relationship field via the properties/As Sun One tab. I use the foreign key defined in the database. All seems to be well.
    Using Sun One AppServer 7 and Studio 4
    Upon deploying the application I receive:
    CMP Mapping Error in bean Sites:: Warning: The field bb is not mapped.
    Set the column mapping for the field.

    The CMR/CMP mappings is very instable.
    Sunone Studio 5 has a lot of bugs when mapping CMP/CMR but i never saw this one, try to upgrade.
    Please vote for this bug. It's killing me!!!!!!!!!!!!!!!
    http://developer.java.sun.com/developer/bugParade/bugs/4932495.html

  • Issue in configuration - formsweb.cfg (10.1.2.0.2) using Sun JVM

    Hi gurus,
    Below is my config in formsweb.cfg, I want to use Sun JVM instead of Jinitiator
    [customjpi]
    baseHTML=D:\Ora10gDS\forms\server\base.htm
    baseHTMLjpi=D:\Ora10gDS\forms\server\basejpi.htm
    baseHTMLjinitiator=D:\Ora10gDS\forms\server\basejpi.htm
    HTMLdelimiter=%
    envFile=default.env
    escapeparams=true
    form=test.fmx
    serverURL=/forms/lservlet
    codebase=/forms/java
    imageBase=DocumentBase
    width=100%
    height=100%
    separateFrame=true
    archive=D:\Ora10gDS\forms\java\frmall.jar
    archive_jini=D:\Ora10gDS\forms\java\frmall_jinit.jar
    jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_09/index.html
    jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
    jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0
    jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_09
    When I calling form using URL http://pc021161.cts.com:8889/forms/frmservlet?config=customjpi which is throwing errors.
    Below is my log of Java console
    Java Plug-in 1.5.0_06
    Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\125217
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    java.net.MalformedURLException: unknown protocol: d
         at java.net.URL.<init>(Unknown Source)
         at java.net.URL.<init>(Unknown Source)
         at sun.plugin.util.GrayBoxPainter.setProgressFilter(Unknown Source)
         at sun.plugin.AppletViewer.initApplet(Unknown Source)
         at sun.plugin.AppletViewer.appletInit(Unknown Source)
         at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
         at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)
    load: class oracle.forms.engine.Main not found.
    java.lang.ClassNotFoundException: oracle.forms.engine.Main
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    Exception in thread "Thread-4" java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletException(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Please help, if anybody have the idea of this error.
    Thanks in Advance
    Justin

    My default.env file is pasting below:
    # $Id: default.env 14-apr-2005.13:22:43 pkuhn Exp $
    # default.env - default Forms environment file, Windows version
    # This file is used to set the Forms runtime environment parameters.
    # If a parameter is not defined here, the value in the Windows registry
    # will be used. If no value is found in the registry, the value used will
    # be that defined in the environment in which the servlet engine (OC4J
    # or JServ) was started.
    # NOTES
    # 1/ The Forms installation process should replace all occurrences of
    # <percent>FORMS_ORACLE_HOME<percent> with the correct ORACLE_HOME
    # setting, and all occurrences of <percent>O_JDK_HOME<percent> with
    # the location of the JDK (usually $ORACLE_HOME/jdk).
    # Please make these changes manually if not.
    # 2/ Some of the variables below may need to be changed to suite your needs.
    # Please refer to the Forms documentation for details.
    ORACLE_HOME=D:\Ora10gDS
    # Search path for Forms applications (.fmx files, PL/SQL libraries)
    # If you need to include more than one directory, they should be semi-colon
    # separated (e.g. c:\test\dir1;c:\test\dir2)
    FORMS_PATH=D:\Ora10gDS\forms;D:\Source\FMB;D:\Source\LIB
    # webutil config file path
    WEBUTIL_CONFIG=D:\Ora10gDS\forms\server\webutil.cfg
    # Disable/remove this variable if end-users need access to the query-where
    # functionality which potentially allows them to enter arbitrary SQL
    # statements when in enter-query mode.
    FORMS_RESTRICT_ENTER_QUERY=TRUE
    # The PATH setting is required in order to pick up the JVM (jvm.dll).
    # The Forms runtime executable and dll's are assumed to be in
    # D:\Ora10gDS\bin if they are not in the PATH.
    # In addition, if you are running Graphics applications, you will need
    # to append the following to the path (where <Graphics Oracle Home> should
    # be replaced with the actual location of your Graphics 6i oracle_home):
    # ;<Graphics Oracle Home>\bin;<Graphics Oracle Home>\jdk\bin
    PATH=D:\Ora10gDS\bin;D:\Ora10gDS\jdk\jre\bin\client
    # Settings for Graphics
    # NOTE: These settings are only needed if Graphics applications
    # are called from Forms applications. In addition, you will need to
    # modify the PATH variable above as described above.
    # Please uncomment the following and put the correct 6i
    # oracle_home value to use Graphics applications.
    #ORACLE_GRAPHICS6I_HOME=<your Graphics 6i oracle_home here>
    # Search path for Graphics applications
    #GRAPHICS60_PATH=
    # Settings for Forms tracing and logging
    # Note: This entry has to be uncommented to enable tracing and
    # logging.
    #FORMS_TRACE_PATH=<FORMS_ORACLE_HOME>\forms\server
    # System settings
    # You should not normally need to modify these settings
    FORMS=D:\Ora10gDS\forms
    # Java class path
    # This is required for the Forms debugger
    # You can append your own Java code here)
    # frmsrv.jar, repository.jar and ldapjclnt10.jar are required for
    # the password expiry feature to work(#2213140).
    CLASSPATH=D:\Ora10gDS\j2ee\OC4J_BI_Forms\applications\formsapp\formsweb\WEB-INF\lib\frmsrv.jar;D:\Ora10gDS\jlib\repository.jar;D:\Ora10gDS\jlib\ldapjclnt10.jar;D:\Ora10gDS\jlib\debugger.jar;D:\Ora10gDS\jlib\ewt3.jar;D:\Ora10gDS\jlib\share.jar;D:\Ora10gDS\jlib\utj.jar;D:\Ora10gDS\jlib\zrclient.jar;D:\Ora10gDS\reports\jlib\rwrun.jar;D:\Ora10gDS\forms\java\frmwebutil.jar;D:\Ora10gDS\forms\java\frmall.jar;D:\Ora10gDS\forms\java\frmall_jinit.jar
    Regards
    justin

  • File System Sharing using Sun Cluster 3.1

    Hi,
    I need help on how to setup and configure the system to share a remote file system that is created on a SAN disk (SAN LUN ) between two Sun Solaris 10 servers.
    The files in the remote system should be read/writabe from both the solaris servers concurrently.
    As a security policy NFS mount is not allowed. Some one suggested it can be done by using Sun Cluster 3.1 agents on both servers. Any details on how I can do this using Sun Cluster 3.1 is really appreciated.
    thanks
    Suresh

    You could do this by installing Sun Cluster on both systems and then creating a global file system on the shared LUN. However, if there was significant write activity on both nodes, then the performance will not necessarily what you need.
    What is wrong with the security of NFS? If it is set up properly I don't think this should be a problem.
    The other option would be to use shared QFS, but without Sun Cluster.
    Regards,
    Tim
    ---

  • Integrate tomahawk into sun jsf ,extensionsFilter not correctly configured.

    Hi,All
    I find a issue when I integrate tomahawk 1.1.3 into sun jsf 1.1_02:
    tomcat 5.0.28
    java.lang.IllegalStateException: ExtensionsFilter not correctly configured. Resource mapping missing. Resources cant be delivered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
    org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)
    org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:352)
    org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288)
    org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeJavascript(HtmlTreeRenderer.java:611)
    I read information about it from "http://myfaces.apache.org/tomahawk/extensionsFilter.html"
    and reconfiguration my web.xml, but don't work. my code as follow:
    <!-- web.xml> -->
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app 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_4.xsd" version="2.4">
    <display-name>Web Configuration Info</display-name>
    <description>Platform</description>
         <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/Config/faces-config.xml,/WEB-INF/Config/faces-managed-beans.xml,/WEB-INF/Config/faces-config-validators.xml,/WEB-INF/Config/faces-config-taglibs.xml</param-value>
    </context-param>
         <filter>
              <filter-name>ExtensionsFilter</filter-name>
              <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
              <init-param>
                   <param-name>maxFileSize</param-name>
                   <param-value>20m</param-value>
              </init-param>
         </filter>
         <filter-mapping>
         <filter-name>ExtensionsFilter</filter-name>
              <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
              <servlet-name>FacesServlet</servlet-name>
         </filter-mapping>
         <filter-mapping>
    <filter-name>ExtensionsFilter</filter-name>
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>FacesServlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
    </servlet>
         <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
         </welcome-file-list>
    </web-app>
    <!-- index.jsp -->
    <%@ page session="false" contentType="text/xml;charset=utf-8"%>
    <%
    response.sendRedirect("./test/tree.jsf");
    %>
    I write web.xml reference to extensionsFilter.html, but doesn't work!
    what's make this issue?

    I think you need the following additional mapping:
        <filter-mapping>
            <filter-name>MyFacesExtensionFilter</filter-name>
            <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
        </filter-mapping>

Maybe you are looking for

  • External monitor in BootCamp?

    I have just ordered a new MacBook to replace my older MacBook Pro and have heard that you cannot use an external monitor (or projector) in BootCamp with a MacBook. Actually I was pointed to an Apple doc that says you can't use external monitors with

  • How do I download itunes to my non-apple tablet

    I would like to download itunes on my tablet, but can't seem to open a link that will download.

  • "Other" data still large

    Hello, I've been reading some threads on the "Other" storage problem that people are having with their iOS devices. I have an iPhone 5 with 16Gb of space and I could get the "Other" storage down from 2.67Gb to 2.22Gb by backing up the phone to the co

  • How to modeling BOM for operation which appears more than 1 time in a route

    Dears, We have a route like below, operation OP01 appears 2 times in different sequence. OP01->OP02->OP01-.OP04 (seq1->seq2->seq3->seq4) How can I modeling its BOM to let user assembly like below OP01(seq1): use component01 OP01(seq3): use component0

  • Error (-50) synching Aperture photos to iPhone

    Hi, iTunes seems chronically unable to synch some of my Aperture photos to my iPhone. This is not universal, but it happens consistently if I include certain albums in the list to be synched. Basically, the synch proceeds as normal, with the iTunes s