ICEfaces
  1. ICEfaces
  2. ICE-3902

Unable to deploy ICEfaces project to GlassFish v3 from NetBeans 6.5

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.2 SP1a
    • Fix Version/s: 1.7.2 SP1b
    • Component/s: Tool Integrations
    • Labels:
      None
    • Environment:
      Mac OSX
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Include JSF TLDs in application .war file.
      Show
      Include JSF TLDs in application .war file.

      Description

      Product Version: NetBeans IDE 6.5 (Build 200811100001)
      Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
      System: Mac OS X version 10.5.5 running on i386; MacRoman; en_US (nb)

      Unable to deploy a simple ICEfaces web project to GlassFish v3. Works fine on GlassFish v2. Steps to reproduce:

      Invoke the new project wizard, create a new Java Web project
      Select GlassFish v3 as the target deployment server
      Add the ICEfaces and Visual Web ICEfaces frameworks
      Click Finish
      Deploy project

      Result:

      exception

      javax.faces.FacesException: Can't parse stream for /welcomeJSF.jsp Failed to execute JSP lifecycle.
      note The full stack traces of the exception and its root causes are available in the GlassFish/v3 logs.

      Log file shows:

      INFO: Launching GlassFish on Apache Felix OSGi platform
      Welcome to Felix.
      =================
      INFO: Started bundle org.glassfish.core.kernel [72]
      no resource bundle found for version, using default GlassFish version
      INFO: Started bundle org.glassfish.common.glassfish-mbeanserver [12]
      INFO: Started bundle org.glassfish.common.common-util [88]
      INFO: Started bundle GlassFish-Application-Common-Module [13]
      INFO: APIClassLoader = Class Loader for Bundle [GlassFish-Application-Common-Module [13] ]
      INFO: registering service = org.apache.felix.framework.StartLevelImpl@ea5d87, contract = org.osgi.service.startlevel.StartLevel, name = null
      INFO: registering service = org.apache.felix.framework.PackageAdminImpl@944d4a, contract = org.osgi.service.packageadmin.PackageAdmin, name = null
      INFO: Started bundle org.glassfish.branding.branding [90]
      INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
      INFO: Started bundle org.glassfish.admin.config-api [80]
      INFO: Started bundle org.glassfish.common.internal-api [31]
      INFO: Started bundle org.glassfish.deployment.deployment-common [100]
      INFO: Started bundle org.glassfish.deployment.deployment-autodeploy [38]
      INFO: Started bundle org.glassfish.registration.glassfish-registration [78]
      INFO: Started bundle org.glassfish.flashlight.flashlight-framework [103]
      INFO: Listening on port 8080
      INFO: Network listener http-listener-2 on port 8181 disabled per domain.xml
      INFO: Listening on port 4848
      INFO: Started bundle org.glassfish.common.container-common [34]
      INFO: The Admin Console Web Application has been downloaded.
      INFO: GlassFish v3 Prelude startup time : Felix(2944ms) startup services(806ms) total(3750ms)
      INFO: Total number of available updates : 1
      INFO: Available updates :
      glassfish-jsf 2.0.0,0-7:20081205T192228Z Fri Dec 05 19:22:28 PST 2008
      INFO: Started bundle org.glassfish.common.glassfish-naming [28]
      INFO: Started bundle org.glassfish.common.glassfish-api [101]
      INFO: Started bundle org.glassfish.connectors.connectors-runtime [37]
      INFO: Started bundle org.glassfish.transaction.jta [67]
      INFO: Started JMXConnector, JMXService URL = service:jmx:rmi:///jndi/rmi://dhcp-umpk16-84-195.SFBay.Sun.COM:8686/jmxrmi
      INFO: Started bundle org.glassfish.deployment.deployment-admin [69]
      INFO: Started bundle org.glassfish.connectors.gf-connectors-connector [75]
      INFO: Started bundle org.glassfish.web.war-util [107]
      INFO: Started bundle org.glassfish.security.security [62]
      INFO: Started bundle org.glassfish.scripting.gf-jruby-connector [74]
      INFO: Started bundle org.glassfish.persistence.jpa-connector [89]
      INFO: Started bundle org.glassfish.web.gf-web-connector [117]
      INFO: security.secmgroff
      INFO: Started bundle org.glassfish.security.securitycommon [52]
      INFO: Security startup service called
      INFO: Started bundle org.glassfish.security.realms [23]
      INFO: Security service(s) started successfully....
      INFO: policy.loading
      INFO: registering service = org.glassfish.web.DirContextURLStreamHandlerService@c0bc26, contract = org.osgi.service.url.URLStreamHandlerService, name = null
      INFO: Started bundle org.glassfish.web.web-glue [113]
      INFO: Created HTTP listener http-listener-1 on port 8080
      INFO: Created HTTP listener admin-listener on port 4848
      INFO: Created virtual server server
      INFO: Created virtual server __asadmin
      INFO: Started bundle org.glassfish.deployment.dol [22]
      INFO: Started bundle org.glassfish.web.web-core [109]
      INFO: Dual registration of jndi stream handler: factory already defined
      INFO: Unknown loader 113.0 class org.apache.felix.framework.searchpolicy.ContentClassLoader
      INFO: Started bundle org.glassfish.web.jsf-connector [122]
      INFO: Started bundle org.glassfish.web.jstl-connector [114]
      INFO: Using com.sun.enterprise.transaction.JavaEETransactionManagerSimplifiedDelegate as the delegate
      INFO: Started bundle org.glassfish.connectors.work-management [76]
      INFO: Started bundle org.glassfish.common.glassfish-ee-api [47]
      INFO: Started bundle org.glassfish.connectors.connectors-internal-api [30]
      INFO: Started bundle org.glassfish.security.websecurity [106]
      INFO: Unknown loader org.glassfish.internal.api.DelegatingClassLoader@b9dbd2 class org.glassfish.internal.api.DelegatingClassLoader
      INFO: Initializing Mojarra (1.2_10-b01-FCS) for context '/WebApplication28'
      INFO:
      ICEsoft Technologies, Inc.
      ICEfaces 1.7.2 SP1a
      Build number: 1
      Revision: 18001
      INFO: Asynchronous HTTP Service available: false
      INFO: JMS API available: false
      INFO: GlassFish ARP available: true
      INFO: Jetty ARP available: false
      INFO: Adapting to GlassFish ARP environment
      INFO: Loading application WebApplication28 at /WebApplication28
      INFO: Deployment of WebApplication28 done is 3499 ms
      INFO: Asynchronous HTTP Service available: false
      INFO: JMS API available: false
      INFO: Adapting to Send Updated Views environment.
      SEVERE: Can't find TLD for location [http://java.sun.com/jsf/html]. JAR containing the TLD may not be in the classpath
      SEVERE: Can't find TLD for location [http://java.sun.com/jsf/core]. JAR containing the TLD may not be in the classpath
      SEVERE: Failed to execute JSP lifecycle.
      java.lang.IllegalStateException: ICEfaces parser unable to determine JSF implementation ViewTag class.
              at com.icesoft.faces.webapp.parser.Parser.parse(Parser.java:152)
              at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:528)
              at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
              at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
              at com.icesoft.faces.context.View$2$1.respond(View.java:41)
              at com.icesoft.faces.webapp.http.servlet.GlassFishAdaptingServlet$GlassFishRequestResponse.respondWith(GlassFishAdaptingServlet.java:159)
              at com.icesoft.faces.context.View$2.serve(View.java:48)
              at com.icesoft.faces.context.View.servePage(View.java:130)
              at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:51)
              at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
              at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
              at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:38)
              at com.icesoft.faces.webapp.http.servlet.GlassFishAdaptingServlet.service(GlassFishAdaptingServlet.java:60)
              at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
              at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:55)
              at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
              at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:91)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
              at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
              at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
              at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
              at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
              at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
              at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
              at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
              at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
              at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
              at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
              at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
              at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
              at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
              at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
      SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /welcomeJSF.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@9be041]
      SEVERE: StandardWrapperValve[Persistent Faces Servlet]: PWC1406: Servlet.service() for servlet Persistent Faces Servlet threw exception
      javax.faces.FacesException: Can't parse stream for /welcomeJSF.jsp Failed to execute JSP lifecycle.
              at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:534)
              at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
              at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
              at com.icesoft.faces.context.View$2$1.respond(View.java:41)
              at com.icesoft.faces.webapp.http.servlet.GlassFishAdaptingServlet$GlassFishRequestResponse.respondWith(GlassFishAdaptingServlet.java:159)
              at com.icesoft.faces.context.View$2.serve(View.java:48)
              at com.icesoft.faces.context.View.servePage(View.java:130)
              at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:51)
              at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
              at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
              at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:38)
              at com.icesoft.faces.webapp.http.servlet.GlassFishAdaptingServlet.service(GlassFishAdaptingServlet.java:60)
              at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
              at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:55)
              at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
              at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:91)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
              at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
              at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
              at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
              at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
              at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
              at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
              at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
              at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
              at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
              at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
              at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
              at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
              at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
              at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
              at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
      Caused by: javax.faces.FacesException: Failed to execute JSP lifecycle.
              at com.icesoft.faces.webapp.parser.Parser.parse(Parser.java:176)
              at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:528)
              ... 52 more
      Caused by: java.lang.IllegalStateException: ICEfaces parser unable to determine JSF implementation ViewTag class.
              at com.icesoft.faces.webapp.parser.Parser.parse(Parser.java:152)
              ... 53 more

        Issue Links

          Activity

          Hide
          Ted Goddard added a comment -

          GlassFish v3 does not provide the JSF .jars through the URLClassLoader (unlike v2). How to obtain the TLD files will require some investigation.

          Show
          Ted Goddard added a comment - GlassFish v3 does not provide the JSF .jars through the URLClassLoader (unlike v2). How to obtain the TLD files will require some investigation.
          Hide
          Ted Goddard added a comment -

          A strategy built around the following may work:
          (obtain the bundle URL from the view tag class):

          URL bundleUrl = new URL("bundle://96.0:1/META-INF/html_basic.tld");
          URLConnection tldconn = bundleUrl.openConnection();
          String foundURI = getUriFromTld("bundle://96.0:1/META-INF/html_basic.tld", tldconn.getInputStream());

          Show
          Ted Goddard added a comment - A strategy built around the following may work: (obtain the bundle URL from the view tag class): URL bundleUrl = new URL("bundle://96.0:1/META-INF/html_basic.tld"); URLConnection tldconn = bundleUrl.openConnection(); String foundURI = getUriFromTld("bundle://96.0:1/META-INF/html_basic.tld", tldconn.getInputStream());
          Hide
          Ted Goddard added a comment -

          This bug is not immediately obvious when using auctionMonitor from 1.7.2 because the build targets for that version include jsf-api.jar and jsf-impl.jar in the .war file.

          Show
          Ted Goddard added a comment - This bug is not immediately obvious when using auctionMonitor from 1.7.2 because the build targets for that version include jsf-api.jar and jsf-impl.jar in the .war file.

            People

            • Assignee:
              Ted Goddard
              Reporter:
              Mark Dey
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: