Re: Problems after upgrading from director 6.2 to 6.3
"Georges.Goebel" <[email protected]> Mon, 30 May 2005 08:52:08 +0200
| Newsgroups | gmane.comp.java.enhydra.director |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------020207010808080500070308
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi,
Thanks for the reply. I have tested the modification and it seems ok for
my application. The application has the same behaviour as before. I need
the sessionaffinity = false because I need to illustrate the
loadbalancing at http session level (tomcat cluster).
I does the modification and recompiled the connector and it seems ok.
Thanks a lot
Georges Goebel
PS : During compiling I encountered some errors under java 1.5. In java
1.5 "enum" is a reserved work. So you cannot use it as a variable name :
like "Enumeration enum = ...". So it would be a good idea to rename all
the enum variable to enumeration or something else
predrag wrote:
> 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
>>
>>
>
--------------020207010808080500070308
Content-Transfer-Encoding: 7bit
Content-Type: text/html; charset=ISO-8859-1
<!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">
Hi,<br>
<br>
Thanks for the reply. I have tested the modification and it seems ok
for my application. The application has the same behaviour as before. I
need the sessionaffinity = false because I need to illustrate the
loadbalancing at http session level (tomcat cluster).<br>
I does the modification and recompiled the connector and it seems ok.<br>
<br>
Thanks a lot<br>
<br>
Georges Goebel<br>
<br>
PS : During compiling I encountered some errors under java 1.5. In java
1.5
"enum" is a reserved work. So you cannot use it as a variable name :
like "Enumeration enum = ...". So it would be a good idea to rename all
the enum variable to enumeration or something else<br>
<br>
<br>
<br>
predrag wrote:
<blockquote cite="[email protected]" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
<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">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>
</blockquote>
<br>
</body>
</html>
--------------020207010808080500070308--