Sitemap

Amicuk Programming Answers

Problem deploying war created in Sun Java Studio Enterprise 8

2015-10-11   Views:1

Advertisement

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

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

The replay answer
Advertisement
I have the same problem, how do yuo resolve that?
Edited by: 864937 on Jun 9, 2011 1:43 PM

Go to See the other 2 answers

Problem deploying war created in Sun Java Studio Enterprise 8

Category:DefaultRelease time:2015-10-11Views:130

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[More]

Running Jar Files created in Sun Java Studio

Category:DefaultRelease time:2015-10-11Views:130

Hi everyone, I am still trying to explore the functionalities (especially as regards deployment issues) of this robust IDE. However I do have a problem. I have developed a very basic program that connects to a database (MSSQL) using Java Studio 8. Ho[More]

Can't get applet working in Sun Java Studio Enterprise 8

Category:DefaultRelease time:2015-10-11Views:130

Hi! I'm just learning Sun Java Studio Enterprise 8, and I'm trying to develop and test my first applet within the IDE. I have code from a Core Java book that creates a simple applet with buttons and a picture. I want to test the applet using the IDE'[More]

How to generate code in Sun Java Studio Enterprise 8

Category:DefaultRelease time:2015-10-11Views:130

Do I miss something? I can�t find how to generate code from UML model, which is not reversed from code. Documentation also does not speak about this. Code update works fine if project is reversed from code, but if in such reversed model I create new[More]

Sun Java Studio Enterprise 7 is incredibly buggy !!!!

Category:DefaultRelease time:2015-10-11Views:130

Hi, I post here to express my heavy disapointment about a very costful IDE: Sun Java Studio Enterprise 7. 1) it deletes some files I am currently editing. A very painful bug !! 2) it opens multiple times the same java source file in editor instead of[More]

Unable to Install  Sun Java Studio Enterprise 8 on Windows XP

Category:DefaultRelease time:2015-10-11Views:130

Hello, I am trying to install the Sun Java Studio Enterprise 8 on a Windows XP machine. The installation seems to be going quite well untill it reaches the section "Publishing product Information...", then the Wizard returns the following messag[More]

To setup Sun Java Studio Enterprise 8

Category:DefaultRelease time:2015-10-11Views:130

Hi, First of all my WinXP is in Traditional Chinese (not English one or Simplified Chinese one). And when I'm setting up such below, it seems the setup wizard cannot properly show in traditional Chinese. Which version actually should I try instead? W[More]

Open Forte for java project in Sun java studio enterprise

Category:DefaultRelease time:2015-10-11Views:130

Hi Everyone, I am new to Java development. I have a java application developed in Forte for java 4 and I need to open and compile it in Sun java studio enterprise. Could anybody tell me how to do that? Thank you very much.The recent versions of the I[More]

How to Open JCreator Project in Sun Java Studio Enterprise

Category:DefaultRelease time:2015-10-11Views:130

Hi All, Please suggest to me I Created a Project in JCreator using JSF project is running properly in JCreator but when i am trying to open the same project in Sun Java Studio Enterprise its not opening can any knows plzz let me update to me......dil[More]

Sun Java Studio Enterprise 8.1

Category:DefaultRelease time:2015-10-11Views:130

I have an application developed with Forte For Java. Since Forte for java is no longer supported by Sun, I'd like to create a new project with Sun Java Studio Enterprise and migrate the existing java files into the new project so that I can debug and[More]

Code generation in Sun Java Studio enterprise edition 7.0

Category:DefaultRelease time:2015-10-11Views:130

I went thru the product tour of Java studio enterpise edition 7.0 http://developers.sun.com/prodtech/javatools/jsenterprise/reference/presentations/launch_jse7_overview.html It says that it will generate code from UML documentation. After that can we[More]

Hot
alright, this is driving me CRAZY! my firewall is off on my mac and my router. all my ports are open 1-65535. this is driving me nuts.. why isn't video chatting working??!!? i am using leopard.Ahh Comcast. Go to iChat > Preferences > Video section a [More]
Trying to help out a PC-to-Mac convert here. He has been using his iPhone with iTunes on a PC, which has since gone belly up. He just got a brand spanking new MacBook Pro! The problem happened when he hooked up his iPhone to his new laptop and the fi [More]
Hello, I have a report that has one of the columns appear as textfields. Is there an easy way to transfer the changes in the textfield back to the specified rows in the database? Any help on transferring the changes in the textfield of the report bac [More]
While trying to use Migration Assistant, my PC gets the following error "an error has occurred while preparing your information for transfer". I have tried reloading program, usuing an erthernet connection and my wireless connection. My Bookmark [More]
Hi, I have written a java class to carry out a file upload to an external site and put the class on our server. I also wrote a script to call this java class, passing inthe relevant parameters. If i call the script using the ./ syntax from SSH it run [More]
I have downloaded the latest plug-in for Adobe Connect and install it from the zip [ac_addin_win_392.zip]. I unzip that to a folder, then click on the [setup.exe] executable. The process executes successfully. When I open my add-ins folder for IE10, [More]
Hi, we are running a portal for many thousand users. We have restricted personalization on the portal so that the user cannot personalize anything. However after an upgrade, personalization was allowed at some placed for a short while before we remov [More]
I read the answer provided earlier by Ian but the reply left one aspect unanswered. Is there any way to turn off that feature and have LR use the info provided by the camera. I generally MUCH prefer what I see before LR works it over.Geoff, Leejay, y [More]
First switching contacts from my Torch 9800 to my Z10 was a nightmare. Now some seem to be on my phone and some on my sim card and when I try and transfer them it says some cannot be transfered. My big question is why are my contacts tied to an email [More]
Just upgraded to iTunes 11.0. Insert CD. See track names. Select one track to import. Now what? Previously, I'd drag it to "music". But with 11.0, no go.My experience with iTunes for Mac is that if you import as you are doing in the image above, [More]