You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Murthy Gandikota <mg...@membersedgellc.com> on 2007/10/25 20:23:16 UTC

Illegal State Exception - Jetspeed2 + Tomcat 5.5.23 + Redhat

I downloaded the latest Jetspeed2 release (2.1.2) and Tomcat 5.5.23 onto Redhat Linux. Using Maven 2 I could successfully compile and install Jetspeed 2. The Tomcat logs indicated that the container name Jetspeed is not unique I handled this by modifying the code as follows:
components/portal/src/java/org/apache/jetspeed/container/JetspeedPortletContainerWrapper.java:        this(pluto, containerId+Math.round(Math.random()*100000000), servletConfig, env, new Properties());

After Tomcat is started up properly, when I do http://localhost/jetspeed I get

javax.servlet.ServletException: Fatal error encountered while processing portal request: org.apache.jetspeed.pipeline.PipelineException: org.apache.jetspeed.pipeline.PipelineException: org.apache.jetspeed.pipeline.PipelineException: java.lang.IllegalStateException: Cannot call getRequestContext() before it has been created and set for this thread.
        org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:280)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        org.apache.jetspeed.engine.servlet.XXSUrlAttackFilter.doFilter(XXSUrlAttackFilter.java:52)

I also did http://localhost/jpetstore and it worked fine.

I tried to look this up in FAQ but I couldn't get a hold of it in time. I have also searched on WWW without any hits. Some Nabble users reported similar errors but in a different context.

I'd appreciate your help.

Thanks
Murthy

RE: Illegal State Exception - Jetspeed2 + Tomcat 5.5.23 + Redhat

Posted by Murthy Gandikota <mg...@membersedgellc.com>.
I had two Host entries in server.xml one for localhost and another by IP address both pointing to the same appBase. Phew! That was that! Learnt my lesson the hardway!!!!

-----Original Message-----
From: Murthy Gandikota [mailto:mgandikota@membersedgellc.com]
Sent: Thursday, October 25, 2007 1:23 PM
To: jetspeed-user@portals.apache.org
Subject: Illegal State Exception - Jetspeed2 + Tomcat 5.5.23 + Redhat

I downloaded the latest Jetspeed2 release (2.1.2) and Tomcat 5.5.23 onto Redhat Linux. Using Maven 2 I could successfully compile and install Jetspeed 2. The Tomcat logs indicated that the container name Jetspeed is not unique I handled this by modifying the code as follows:
components/portal/src/java/org/apache/jetspeed/container/JetspeedPortletContainerWrapper.java:        this(pluto, containerId+Math.round(Math.random()*100000000), servletConfig, env, new Properties());

After Tomcat is started up properly, when I do http://localhost/jetspeed I get

javax.servlet.ServletException: Fatal error encountered while processing portal request: org.apache.jetspeed.pipeline.PipelineException: org.apache.jetspeed.pipeline.PipelineException: org.apache.jetspeed.pipeline.PipelineException: java.lang.IllegalStateException: Cannot call getRequestContext() before it has been created and set for this thread.
        org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:280)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        org.apache.jetspeed.engine.servlet.XXSUrlAttackFilter.doFilter(XXSUrlAttackFilter.java:52)

I also did http://localhost/jpetstore and it worked fine.

I tried to look this up in FAQ but I couldn't get a hold of it in time. I have also searched on WWW without any hits. Some Nabble users reported similar errors but in a different context.

I'd appreciate your help.

Thanks
Murthy

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Why is Jpetstore in Jetspeed2?

Posted by Murthy Gandikota <mg...@membersedgellc.com>.
I'd like to see Jpetstore:
a) manage its side-bar as a portal#A
b) manage its main area as portal#B

This way we can understand the Inter-portal Communication (IpC) using session or application whereby portal#B's content is controlled from portal#A's events and vice-versa. Has anyone done this? Is that possible? AFAIK, Pluto won't let portals modify their content using IpC.

Regards
Murthy

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org