Icefaces 1.8.2 and netbeans 6.8, project integration
[Logo]
Forums for ICEfaces and ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Icefaces 1.8.2 and netbeans 6.8, project integration  XML
Forum Index -> Tools Go to Page: Previous  1, 2
Author Message
bleathem

Joined: 14/01/2009 00:00:00
Messages: 6
Offline


liming.wu wrote:

run on gf3 with following configuration:
<class-loader delegate="false"/>
 


Thanks for the reply. This is still of no use to us who are running our Apps in ear files, bundled with ejb-jars. One cannot invert the class loader, and still load the ejb's. At least as I understand it.

Brian
asermej

Joined: 31/01/2009 00:00:00
Messages: 3
Offline


My crash happened when I was using gf 3.0 and icefaces 2.0-alpha. I was not working with the 1.8.2 version.
liming.wu

Joined: 26/10/2004 00:00:00
Messages: 368
Offline


modify sun-web.xml

change
<class-loader delegate="false"/> to <class-loader delegate="true"/>
remove
<property name="useBundledJsf" value="true"/>
[Email]
ken.fyten

Joined: 26/10/2004 00:00:00
Messages: 614
Offline


Hi,

Just to clarify:

  • The NetBeans 6.8 integration is Beta status.
  • ICEfaces 1.8.2a is a final release.
  • ICEfaces 2.0.0 Alpha2 is an Alpha release.

    Also, as noted above, the sun-web.xml that is included in ICEfaces 1.8.2a projects is intended for Glassfish 3, and will not work without modification if deploying to Glassfish 2. We will fix this for next release.

    Regards,
    Ken

  • Ken Fyten
    VP Product Development
    ICEsoft Technologies, Inc.
    mithridates

    Joined: 18/12/2007 00:00:00
    Messages: 12
    Offline


    Hi,

    I'm stuck:
    NB6.8: create new webapplication on GF3 with EE6 and ICEfaces Framework.
    Activating Icefaces 1.8 Compatibility Mode.
    Modifying sun-web.xml as described above.

    In the generated welcomeICEfaces.html I'm adding a simple

    < ice:commandButton value="hello" / >


    Deploying: Page renders fine.
    Pressing the "hello" button ends up with "Internal Server Error"-Message.

    Stacktrace:
    19:03:11.093 : [SEVERE] (javax.enterprise.system.std.com.sun.enterprise.v3.services.impl) => javax.faces.application.ViewExpiredException: viewId:/faces - Ansicht /faces konnte nicht wiederhergestellt werden.
    at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:212)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
    at java.lang.Thread.run(Thread.java:619)
    19:03:11.094 : [SEVERE] (javax.enterprise.system.std.com.sun.enterprise.v3.services.impl) => java.lang.NullPointerException
    at org.icefaces.event.DetectNavigationPhaseListener.afterPhase(DetectNavigationPhaseListener.java:54)
    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)
    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
    at java.lang.Thread.run(Thread.java:619)

    Sorry, messages are in german. Should be somthing like "View /faces could not be restored".

    Any Hint?
    (I'm trying to migrate an existing Application...)

    Bjoern
    mithridates

    Joined: 18/12/2007 00:00:00
    Messages: 12
    Offline


    Found the solution myself:

    in web.xml:
    added <url-pattern>*.xhtml</url-pattern> for Faces Servlet Mapping.
    Changed <welcome-file>/faces/welcomeICEfaces.xhtml</welcome-file>
    to <welcome-file>welcomeICEfaces.xhtml</welcome-file>

    In project-properties > run > display browser:
    changed URL to welcomeICEfaces.xhtml

    Maybe You can include this in the next release.

    Bjoern
    steelyx

    Joined: 22/01/2010 00:00:00
    Messages: 9
    Offline



    I verified this fix ( wrong sun-web.xml )

    Another error I found is in generated web.xml that required that
    the requested resource for. ex

    http://localhost:8080/WebApplication1/faces/welcomeICEfaces.xhtml

    must be given.
    So Welcome page configurations are wrong.
    liming.wu

    Joined: 26/10/2004 00:00:00
    Messages: 368
    Offline


    This is part of the url mapping issue. it has been fixed and will be available soon for final release, which contains other fixes as well.

    Thx.

    [Email]
    HendyIrawan

    Joined: 12/02/2010 00:00:00
    Messages: 4
    Offline


    I'm also having IndexOutOfBoundsException error with IceFaces 2.0 alpha 2, NetBeans 6.8 and Glassfish v3.

    BTW I'm not using NetBeans Integration (i.e. I don't install IceFaces plugin). So I install IceFaces the old school way.

    After implementing the change above (by mithridates), changing /faces/* to *.xhtml, I still get error below.

    My sun-web.xml is :

    Code:
    <sun-web-app error-url="">
       <context-root>/AddressBook</context-root>
       <class-loader delegate="true"/>
       <jsp-config>
         <property name="keepgenerated" value="true">
           <description>Keep a copy of the generated servlet class' java code.</description>
         </property>
       </jsp-config>
     </sun-web-app>
     


    Attached error:

    Code:
    WARNING: DOM is null during applyBrowserChanges
     WARNING: JSF1063: WARNING! Setting non-serializable attribute value into HttpSession (key: personController, value class: addressbook.PersonController).
     WARNING: Old DOM is null during domDiff calculation
     SEVERE: javax.faces.FacesException: Unexpected error restoring state for component with id j_idt3.  Cause: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0.
             at com.sun.faces.application.view.StateManagementStrategyImpl$2.visit(StateManagementStrategyImpl.java:239)
             at com.sun.faces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:147)
             at javax.faces.component.UIComponent.visitTree(UIComponent.java:1446)
             at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457)
             at com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:223)
             at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:177)
             at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:131)
             at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:430)
             at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:143)
             at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:288)
             at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:288)
             at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:199)
             at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
             at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
             at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
             at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
             at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
             at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
             at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
             at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
             at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
             at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
             at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
             at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
             at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
             at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
             at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
             at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
             at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
             at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
             at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
             at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
             at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
             at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
             at java.lang.Thread.run(Thread.java:619)
     Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
             at java.util.ArrayList.RangeCheck(ArrayList.java:547)
             at java.util.ArrayList.get(ArrayList.java:322)
             at javax.faces.component.AttachedObjectListHolder.restoreState(AttachedObjectListHolder.java:161)
             at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1427)
             at com.sun.faces.application.view.StateManagementStrategyImpl$2.visit(StateManagementStrategyImpl.java:231)
             ... 39 more
     

    Hendy's Spring vs. Java EE Development
    ken.fyten

    Joined: 26/10/2004 00:00:00
    Messages: 614
    Offline


    Hi,

    There is an updated NetBeans 6.8 integration bundle available now that resolves several issues with the Beta release.


    Regards,
    Ken

    Ken Fyten
    VP Product Development
    ICEsoft Technologies, Inc.
     
    Forum Index -> Tools Go to Page: Previous  1, 2
    Go to:   
    Powered by JForum 2.1.7ice © JForum Team