Re: Problems after upgrading from director 6.2 to 6.3
predrag <[email protected]> Sat, 28 May 2005 05:39:38 +0200
| Newsgroups | gmane.comp.java.enhydra.director |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------020002010307090405050509
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Hi.
Try to set sessionAffinity = "true" in your tomcat config "connector"
definition, this should fix the problem.
But if you still need sessionAffinity = "false", for some reason, then
you need to patch and rebuild tomcat connector.
Changes are placed in
<src_root>/tomcat5.5/src/org/enhydra/servlet/connectionMethods/EnhydraDirector/EnhydraDirectorHandler.java
please replace line 192:
192. if (!valid) {
with following code
192. if (connectionMethod.getSessionAffinity()&&!valid) {
and rebuild connector.
This fix will be placed to ObjectWeb CVS after additional testing and
included in next Director release.
Regards,
Predrag Djojic
Enhydra Development Team
> Hi,
>
> I downloaded the apache-director bundled version
> (apache-1.3.31-director-6.3-1.i386.tar.gz) and replaced my old version
> 6.2 with the new one.
> I copied the enhydra configfile to the new apache and replaced the jar
> in the tomcat. Direktor forwards the request to the right application
> server (JOnAS with Tomcat5.5).
>
> The problem is the following :
>
> I have a html page with a link to a servlet, the servlet (ejb calls)
> sends the request to a jsp (visualise ejb information). On this jsp
> there is the same link to the servlet as on the first page.
> Schema : html -> sessionServlet -> session.jsp -> sessionServlet ->
> session.jsp -> ....
>
> rootURL (html page)= http:/localhost/sampleCluster2
> sessionServlet = http:/localhost/sampleCluster2/servlet/session
> session.jsp = http:/localhost/sampleCluster2/session.jsp
>
> But when I click on the link in the session.jsp, director forwards the
> request to the root url. Of course my session is killed.
>
> With director 6.2 everyting works fine, what do I do wrong ?
>
> Georges Goebel
>
> Annexe
>
> enhydra_director.conf
>
> <?xml version="1.0"?>
> <!DOCTYPE EnhydraDirectorConfig SYSTEM "EnhydraDirectorConfig.dtd">
> <EnhydraDirectorConfig>
>
> <Application prefix="/sampleCluster2/">
> <AppServer host="localhost" port="9999" weight="1" />
> <AppServer host="localhost" port="8888" weight="1" />
> </Application>
>
> <Status prefix="/status">
> <Restrict server="127.0.0.1"/>
> <Restrict client="127.0.0.1"/>
> </Status>
>
> tomcat config
>
> <Connector
> protocol="org.enhydra.servlet.connectionMethods.EnhydraDirector.DirectorProtocol"
>
> port="9999" threadTimeout =
> "300" clientTimeout = "30"
> sessionAffinity = "false" queueSize =
> "400" numThreads = "200"
> bindAddress = "(All Interfaces)" authKey =
> "(Unauthenticated)"
> />
>
>
>
>------------------------------------------------------------------------
>
>
>--
>You receive this message as a subscriber of the [email protected] mailing list.
>To unsubscribe: mailto:[email protected]
>For general help: mailto:[email protected]?subject=help
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
--------------020002010307090405050509
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Times New Roman, Times, serif">Hi.<br>
<br>
Try to set sessionAffinity = "true" in your tomcat config "connector"
definition, this should fix the problem.<br>
But if you still need sessionAffinity = "false", for some reason,
then you need to patch and rebuild tomcat connector.<br>
Changes are placed in<br>
<src_root>/tomcat5.5/src/org/enhydra/servlet/connectionMethods/EnhydraDirector/EnhydraDirectorHandler.java
<br>
please replace line 192:<br>
<br>
192. if (!valid) { <br>
<br>
with following code<br>
<br>
</font><font face="Times New Roman, Times, serif" size="2"></font><font
face="Times New Roman, Times, serif">192. if
(connectionMethod.getSessionAffinity()&&!valid) {<br>
<br>
and rebuild connector.</font><br>
<br>
<br>
This fix will be placed to ObjectWeb CVS after additional testing and
included in next Director release.<br>
<br>
Regards,<br>
Predrag Djojic<br>
Enhydra Development Team<br>
<br>
<blockquote cite="[email protected]" type="cite">Hi,
<br>
<br>
I downloaded the apache-director bundled version
(apache-1.3.31-director-6.3-1.i386.tar.gz) and replaced my old version
6.2 with the new one.
<br>
I copied the enhydra configfile to the new apache and replaced the jar
in the tomcat. Direktor forwards the request to the right application
server (JOnAS with Tomcat5.5).
<br>
<br>
The problem is the following :
<br>
<br>
I have a html page with a link to a servlet, the servlet (ejb calls)
sends the request to a jsp (visualise ejb information). On this jsp
there is the same link to the servlet as on the first page.
<br>
Schema : html -> sessionServlet -> session.jsp ->
sessionServlet -> session.jsp -> ....
<br>
<br>
rootURL (html page)= <a class="moz-txt-link-freetext" href="http:/localhost/sampleCluster2">http:/localhost/sampleCluster2</a>
<br>
sessionServlet = <a class="moz-txt-link-freetext" href="http:/localhost/sampleCluster2/servlet/session">http:/localhost/sampleCluster2/servlet/session</a>
<br>
session.jsp = <a class="moz-txt-link-freetext" href="http:/localhost/sampleCluster2/session.jsp">http:/localhost/sampleCluster2/session.jsp</a>
<br>
<br>
But when I click on the link in the session.jsp, director forwards the
request to the root url. Of course my session is killed.
<br>
<br>
With director 6.2 everyting works fine, what do I do wrong ?
<br>
<br>
Georges Goebel
<br>
<br>
Annexe
<br>
<br>
enhydra_director.conf
<br>
<br>
<?xml version="1.0"?>
<br>
<!DOCTYPE EnhydraDirectorConfig SYSTEM
"EnhydraDirectorConfig.dtd">
<br>
<EnhydraDirectorConfig>
<br>
<br>
<Application prefix="/sampleCluster2/">
<br>
<AppServer host="localhost" port="9999" weight="1" />
<br>
<AppServer host="localhost" port="8888" weight="1" />
<br>
</Application>
<br>
<br>
<Status prefix="/status">
<br>
<Restrict server="127.0.0.1"/>
<br>
<Restrict client="127.0.0.1"/>
<br>
</Status>
<br>
<br>
tomcat config
<br>
<br>
<Connector
protocol="org.enhydra.servlet.connectionMethods.EnhydraDirector.DirectorProtocol"
<br>
port="9999" threadTimeout = "300"
clientTimeout = "30" sessionAffinity =
"false" queueSize = "400"
numThreads = "200" bindAddress = "(All
Interfaces)" authKey = "(Unauthenticated)"
<br>
/>
<br>
<br>
<br>
<br>
<pre wrap="">
<hr size="4" width="90%">
--
You receive this message as a subscriber of the <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> mailing list.
To unsubscribe: <a class="moz-txt-link-freetext" href="mailto:[email protected]">mailto:[email protected]</a>
For general help: <a class="moz-txt-link-freetext" href="mailto:[email protected]?subject=help">mailto:[email protected]?subject=help</a>
ObjectWeb mailing lists service home page: <a class="moz-txt-link-freetext" href="http://www.objectweb.org/wws">http://www.objectweb.org/wws</a>
</pre>
</blockquote>
<br>
</body>
</html>
--------------020002010307090405050509--