ate 2005/03/25 13:11:13
Modified: commons/src/java/org/apache/jetspeed/container
JetspeedContainerServlet.java
Log:
Temporary (?) fix to get pa registration working on servlet init in Fusion.
Under fusion calling PortletApplicationManager.startPortletApplication always
results in:
javax.naming.NameNotFoundException: "Name jdbc is not bound in this Context"
but when started from a separate (timer) Thread, even with only a delay of
1ms, it works alright.
I don't have any clue what is the cause of this or how to solve it (already
been pulling my hairs out for more than 4 hours on this one),
so for now I disabled starting a pa directly from the servlet init Thread.
Anyone having a clue whats wrong here, please report...
Revision Changes Path
1.23 +9 -3
jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/container/JetspeedContainerServlet.java
Index: JetspeedContainerServlet.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/container/JetspeedContainerServlet.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- JetspeedContainerServlet.java 23 Mar 2005 22:20:37 -0000 1.22
+++ JetspeedContainerServlet.java 25 Mar 2005 21:11:13 -0000 1.23
@@ -113,12 +113,17 @@
throws ServletException
{
+/* TODO: Ate Douma, 2005-03-25
+ Under fusion, this call always results in a
javax.naming.NameNotFoundException: "Name jdbc is not bound in this Context"
+ but when started from a separate (timer) Thread, even with only a delay
of 1ms, it works again.
+ I don't have any clue what is the cause of this or how to solve it, thus
for now I disabled starting directly
+
if (attemptStart(context, contextName, paDir, paClassLoader))
{
started = true;
return;
}
-
+*/
final String START_DELAYED_MSG = JCS + "Could not yet start portlet
application at: "+contextName+". Starting back ground thread to start when the
portal comes online.";
context.log(START_DELAYED_MSG);
startTimer = new Timer(true);
@@ -139,7 +144,8 @@
}
}
},
- 10000,
+// 10000, Setting delay to 1ms, see TODO comment above
+ 1,
10000);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]