Created and configured 2nd portal, cannot access it due to 500 error

I have one portal in place and it's working fine (portal1). I created a 2nd portal, so that we can segregate a sub-set of users who need to have their own set of communities. I created the 2nd portal, and then installed the Community Sample. This worked fine. However, I have an existing Org (ORG_A, for example) in my first portal, and I want the users from ORG_A to be able to get to the 2nd portal. I thought I had everything configured correctly, but when I attempt to login to the 2nd portal with a user from ORG_A, I get the following error on my browser page:

HTTP Status 500

java.lang.IllegalStateException: getWriter() has already been called for this response

org.apache.coyote.tomcat5.CoyoteResponse.getOutputStream(CoyoteResponse.java:58 8)

org.apache.coyote.tomcat5.CoyoteResponseFacade.getOutputStream(CoyoteResponseFa cade.java:166)

com.sun.portal.desktop.DesktopServlet.getWriter(DesktopServlet.java:459)

com.sun.portal.desktop.DesktopServlet.service(DesktopServlet.java:347)

javax.servlet.http.HttpServlet.service(HttpServlet.java:860)

sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)

java.lang.reflect.Method.invoke(Method.java:585)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)

java.security.AccessController.doPrivileged(Native Method)

javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)

I cannot find any trace of this error in any of the log files (App Server or Portal). I've been working on this for a week and I'm stumped. If anyone offer any assistance, I would greatly appreciate it. Thanks.

[1909 byte] By [GDCTGa] at [2007-11-26 18:42:11]
# 1

1. Please see whether that organization has the 2nd portal desktop service assigned to it. check the same for user too.

2. rename the security folder under /var/opt/SUNWportal/portals/2nd portal id /config/2nd portal instance id/security to security.old

4. restart the 2nd portal webcontainer instance

3. again access the second portal

Even after this if the desktop doesn't come up, then

set the logger to finest

psadmin set-logger -u amadmin -f ps_password -p 2ndportal_id -i 2ndportalinstance -m portal -O debug.com.sun.portal -L FINEST

and check the logs

tail -f /var/opt/SUNWportal/portals/2nd portal id/logs/2nd portal insance/portal.0.0.log

Please paste the exception if any.

HTH

SiddeshKamatha at 2007-7-9 6:16:11 > top of Java-index,Web & Directory Servers,Portal Servers...
# 2
Thanks Siddesh, although renaming the security folder did not fix the problem, setting the logger to finest helped me pinpoint the problem. I did not have my JDBC connection pools targeted to my new application server instance (server2). Once I did that, all was well. Thanks again!
GDCTGa at 2007-7-9 6:16:11 > top of Java-index,Web & Directory Servers,Portal Servers...