1 Reply Latest reply: Jun 9, 2011 3:43 PM by 867940 RSS

    Problem deploying war created in Sun Java Studio Enterprise 8

    807574
      I have, with some help from this forum, converted a portlet application from the Sun Java Studio Enterprise 7 environment to the Sun Java
      Studio Enterprise 8 environment. This portlet application runs in SJSE 8 now but fails when I pdeploy it to the portal server (Portal Server 6
      2005 Q1). The old war created from SJSE 6 does work. The code is identical. The war files are slightly different.

      On deployment I get:
      [DEBUG] Getting Jar File from war...
      [DEBUG] Getting Portlet DD as Stream...
      [DEBUG] Creating DPProviders...
      [DEBUG] Updating the Portlet Application...
      [DEBUG] Adding Providers to DP...
      [DEBUG] Adding provider: provider=__Portlet__timetableEnt8.Timetable
      [DEBUG] Creating DPProvider...
      [DEBUG] Checking for duplicate name: name=__Portlet__timetableEnt8.Timetable
      [DEBUG] Validating modified DP doc...
      [DEBUG] Storing the DP...
      Done Updating Display Profile! Deploying War File to Web Container...
      SUCCESS.
      But in the logs I see:


      [#|2006-04-04T13:09:58.112-0400|SEVERE|sun-appserver-ee8.1|javax.enterprise.system.container.web|_ThreadID=10;|WebModule
      [/portlet]Error configuring application listener of class 
      com.sun.portal.container.portlet.impl.PortletContainerContextListenerImpl
      java.lang.ClassNotFoundException: com.sun.portal.container.portlet.impl.PortletContainerContextListenerImpl
              at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1447)
              at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1228)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3958)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4525)
              at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
              at org.apache.catalina.core.StandardHost.start(StandardHost.java:833)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
              at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:483)
              at org.apache.catalina.startup.Embedded.start(Embedded.java:894)
              at com.sun.enterprise.web.WebContainer.start(WebContainer.java:688)
              at com.sun.enterprise.web.HttpServiceWebContainer.startInstance(HttpServiceWebContainer.java:889)
              at com.sun.enterprise.web.HttpServiceWebContainerLifecycle.onStartup(HttpServiceWebContainerLifecycle.java:50)
              at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
              at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
              at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
      |#]
      
      [#|2006-04-04T13:09:58.114-0400|SEVERE|sun-appserver-ee8.1|tomcat.server./portlet.Context|_ThreadID=10;|
      Skipped installing application listeners due to previous error(s)|#]
      [#|2006-04-04T13:09:58.114-0400|SEVERE|sun-appserver-ee8.1|tomcat.server./portlet.Context|_ThreadID=10;|
      Error listenerStart|#]
      
      [#|2006-04-04T13:09:58.115-0400|SEVERE|sun-appserver-ee8.1|tomcat.server./portlet.Context|_ThreadID=10;|
      Context startup failed due to previous errors|#]
      When I look in the create "New Portlet Channel..." in the am console my application appears in the list but when I create a channel based on it, the whole desktop crashes with this error:
      [#|2006-04-03T11:39:41.699-0400|SEVERE|sun-appserver-ee8.1|javax.enterprise.system.container.web|_ThreadID=16;|
      StandardWrapperValve[desktopServlet]: Servlet.service() for servlet desktopServlet threw exception
      java.lang.IllegalStateException: getWriter() has already been called for this response
           at org.apache.coyote.tomcat5.CoyoteResponse.getOutputStream(CoyoteResponse.java:588)
           at org.apache.coyote.tomcat5.CoyoteResponseFacade.getOutputStream(CoyoteResponseFacade.java:166)
           at com.sun.portal.desktop.DesktopServlet.getWriter(DesktopServlet.java:444)
           at com.sun.portal.desktop.DesktopServlet.service(DesktopServlet.java:328)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
           at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
           at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
           at java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
           at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
           at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
           at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
           at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
           at java.security.AccessController.doPrivileged(Native Method)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
           at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
           at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:221)
           at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2072)
      |#]
      When I remove my custom channel the desktop renders normally.

      As I mentioned before, the war created with 7 did not cause this and the application behaved normally.

      Any insight would be appreciated.

      I am going to look at the diff between the two wars.

      Thanks,

      Allan