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
I am having problems with Windows Media Player and have tried all suggested options to sort it out. It was installed on my laptop when I bought it in Sept 2012 and is now causing problems that I can't resolve. In checking the player defaults and trou [More]
When I send a message with SecurityMode.TransportWithMessageCredential  Binding (over https), I can see the decrypted message in the service log file. Isn't the message supposed to be encrypted? BobHi Bob12543, In the TransportWithMessageCredential s [More]
Hi, The FM BAPI_SALESORDER_CHANGE is not working properly as I am getting below error when try to update the reason for rejection at sales order item level. The delivery is done for this salesorder. Is it because the reason for rejection field is not [More]
Hi experts, I have problem with Po release strategy in 5 to 10 purchase orders, i have created few purchase orders(2000 Po's) with same document type and company code ..etc and saved, then release strategy has been triggered. For few purhcase orders [More]
hi friends, I have a report creating a test file. I am also writing the text file. Below is the code and I am successfully getting it.   LOOP AT it_outfile.   write : / it_outfile.                                            ENDLOOP. the results in th [More]
And what if they don't redeem it/download it? Can you get your money back?? Thanks!As long as they,and their iTunes account, are in the same country as yourself, then they should be able to redeem it. If they can't then you can try contacting iTunes [More]
We are trying to develop an app which need to include Fingerprint recognition in iOS7. We searched lots of communities to find the solution, but haven't get any correct information. Somewhere written that the Fingerprint recognition only use in nativ [More]
hi, I want to display images as error instead of error message from Application Properties in struts1.1 Ex: I want to prompt a user to type password length min. of 6 char. If failed, need to show simple image as error rather "Length should be min. 6& [More]
Trying to hook up sonos control app to my iPad...can,t find app?Settings>Bluetooth>On>Devices. The iPad will search for Bluetooth devices and you should see it in there.Read other 3 answers [More]
why does my internet keep cutting out  since i downloaded lion  please can  someone help ?Reset: hold down the home button along with the power button until you see the Apple, then let go.Read other 2 answers [More]