You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Zamek <za...@vili.pmmf.hu> on 2003/08/25 16:09:30 UTC
Why turbine appends sessionid to links?
Hi All,
In my Index.vm there are sessionid in all of links seems to be like this:
<img
src="http://portal.pmmf.hu/portal/images/template/top/top_01.jpg;jsessionid=CADEA83C709EEABE976FFB09AC76E9FD"
width="760" height="5">
My server cannot serve this requests. It is _only_ in my Index.vm, all of
other pages are cleared.
Source of this is here:
<img src="$content.getURI("images/template/top/top_01.jpg")" width="468"
height="60">
This source is my default DefaultTop.vm which is used by another screens.
The layout is commonly used NoMenu.vm:
<link REL="SHORTCUT ICON"
HREF="$content.getURI('images/template/pollack.ico')">
$page.setHttpEquiv("Content-Style-Type","text/css; charset=$data.CharSet")
$page.addStyleSheet($content.getURI("/css/portal.css"))
$page.addScript($content.getURI("js/main.js"))
$page.addScript($content.getURI("js/tools.js"))
<html>
#TurbineHtmlHead()
<body #TurbineHtmlBodyAttributes() leftmargin="0" topmargin="0"
marginwidth="0" marginheight="0">
$navigation.setTemplate("DefaultTop.vm")
<table width="760" border="0">
#if($data.Message)
<tr>
<td>
#alert($data.Message)
</td>
</tr>
#end
<tr>
<td>
$screen_placeholder
</td>
</tr>
</table>
$navigation.setTemplate("DefaultBottom.vm")
</body>
</html>
I don't use session tool, in TR.properties:
# tool.session.sessionmgt = org.apache.turbine.services.session.SessionTool
Are there any other settings to disable it?
--
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694
Re: Why turbine appends sessionid to links? / what kind of torque ?
Posted by Zamek <za...@vili.pmmf.hu>.
Hello Henning,
On Tuesday 26 August 2003 18.51, Henning P. Schmiedehausen wrote:
> Zamek <za...@vili.pmmf.hu> writes:
>
> Fix the path entry for the Torque Plugin properties in maven. See
> Issue 690 on the maven bug tracker.
Thanx, it works very well, but I am _only_ a user, and I cannot get referenced
issue. I made a simple awk script to change these settings (Linux forever)
:-)
for archivum please let you say where is the referenced issue?
ps.: append sessionid, and what kind of torque is solved, thanks to you!
--
bye,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694
Re: Why turbine appends sessionid to links? / what kind of torque ?
Posted by Zamek <za...@vili.pmmf.hu>.
Hello Henning,
>
> I tried to find a torque.jar which has this class, but I cannot do :-(
> java.lang.ClassNotFoundException:
> org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory
> So what is the good torque with the new turbine?
I can compile torque cvs version, and I can see there isn' t
org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory in it.
Is it deprecated in torque3.1?
What can I use instead of jdbc2pool with postgresql?
--
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694
Re: Why turbine appends sessionid to links? / what kind of torque ?
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
Zamek <za...@vili.pmmf.hu> writes:
Fix the path entry for the Torque Plugin properties in maven. See
Issue 690 on the maven bug tracker.
Regards
Henning
>> >Hello Henning,
>On Tuesday 26 August 2003 11.31, Henning P. Schmiedehausen wrote:
>> >>
>> >> tool.content.want.encoding = false
>> >
>> >Is it a new feature in Turbine? I have a version of cca. june. 2003, and I
>> >cannot find it in source. Where is it?
>>
>> Yes. It sneaked in right before RC1 just for the same reasons as
>> you've experienced.
>Ok, I cheked out turbine from cvs, but it cannot complie:
>I use maven v. 1.0-beta-10, and maven results:
>generate-om:
> [echo] Compiling to
>/mnt/cipelo/java/source/jakarta/src/jakarta-turbine-2/target/classes
> [javac] Compiling 431 source files to
>/mnt/cipelo/java/source/jakarta/src/jakarta-turbine-2/target/classes
>/mnt/cipelo/java/source/jakarta/src/jakarta-turbine-2/target/src/org/apache/turbine/services/security/torque/om/${basePrefix}TurbinePermission.java:29:
>class $basePrefixTurbinePermission is public, should be declared in a file
>named $basePrefixTurbinePermission.java
>public abstract class $basePrefixTurbinePermission extends BaseObject
> ^
>/mnt/cipelo/java/source/jakarta/src/jakarta-turbine-2/target/src/org/apache/turbine/services/security/torque/om/${basePrefix}TurbineRole.java:29:
>class $basePrefixTurbineRole is public, should be declared in a file named
>$basePrefixTurbineRole.java
>public abstract class $basePrefixTurbineRole extends BaseObject
>So I try to download a compiled jar named: turbine-2.3-rc1.jar.
>And when I start turbine I've get an error:
>java.lang.ClassNotFoundException:
>org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory
>I tried to find a torque.jar which has this class, but I cannot do :-(
>in torque-3.1-dev.jar :
> Horrible Exception: java.lang.NoClassDefFoundError:
>org/apache/torque/NoRowsException
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:130)
> at
>org.apache.turbine.services.security.torque.GroupPeerManagerConstants$1.class$(GroupPeerManagerConstants.java:82)
>in torque-3.1-rc.jar:
>java.lang.ClassNotFoundException:
>org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory
>So what is the good torque with the new turbine?
>--
>thx,
>Zoltan Zidarics programmer
>PTE University Pecs, Hungary
>icq: 43288694
>---------------------------------------------------------------------
>To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: turbine-user-help@jakarta.apache.org
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!"
-- AOL CD when played backwards (User Friendly - 200-10-15)
Re: Why turbine appends sessionid to links? / what kind of torque ?
Posted by Zamek <za...@vili.pmmf.hu>.
> >Hello Henning,
On Tuesday 26 August 2003 11.31, Henning P. Schmiedehausen wrote:
> >>
> >> tool.content.want.encoding = false
> >
> >Is it a new feature in Turbine? I have a version of cca. june. 2003, and I
> >cannot find it in source. Where is it?
>
> Yes. It sneaked in right before RC1 just for the same reasons as
> you've experienced.
Ok, I cheked out turbine from cvs, but it cannot complie:
I use maven v. 1.0-beta-10, and maven results:
generate-om:
[echo] Compiling to
/mnt/cipelo/java/source/jakarta/src/jakarta-turbine-2/target/classes
[javac] Compiling 431 source files to
/mnt/cipelo/java/source/jakarta/src/jakarta-turbine-2/target/classes
/mnt/cipelo/java/source/jakarta/src/jakarta-turbine-2/target/src/org/apache/turbine/services/security/torque/om/${basePrefix}TurbinePermission.java:29:
class $basePrefixTurbinePermission is public, should be declared in a file
named $basePrefixTurbinePermission.java
public abstract class $basePrefixTurbinePermission extends BaseObject
^
/mnt/cipelo/java/source/jakarta/src/jakarta-turbine-2/target/src/org/apache/turbine/services/security/torque/om/${basePrefix}TurbineRole.java:29:
class $basePrefixTurbineRole is public, should be declared in a file named
$basePrefixTurbineRole.java
public abstract class $basePrefixTurbineRole extends BaseObject
So I try to download a compiled jar named: turbine-2.3-rc1.jar.
And when I start turbine I've get an error:
java.lang.ClassNotFoundException:
org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory
I tried to find a torque.jar which has this class, but I cannot do :-(
in torque-3.1-dev.jar :
Horrible Exception: java.lang.NoClassDefFoundError:
org/apache/torque/NoRowsException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at
org.apache.turbine.services.security.torque.GroupPeerManagerConstants$1.class$(GroupPeerManagerConstants.java:82)
in torque-3.1-rc.jar:
java.lang.ClassNotFoundException:
org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory
So what is the good torque with the new turbine?
--
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694
Re: Why turbine appends sessionid to links?
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
Zamek <za...@vili.pmmf.hu> writes:
>Hello Henning,
>On Monday 25 August 2003 16.36, Henning P. Schmiedehausen wrote:
>> Zamek <za...@vili.pmmf.hu> writes:
>> >Hi All,
>>
>> tool.content.want.encoding = false
>Is it a new feature in Turbine? I have a version of cca. june. 2003, and I
>cannot find it in source. Where is it?
Yes. It sneaked in right before RC1 just for the same reasons as
you've experienced.
Regards
Henning
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!"
-- AOL CD when played backwards (User Friendly - 200-10-15)
Re: Why turbine appends sessionid to links?
Posted by Zamek <za...@vili.pmmf.hu>.
Hello Henning,
On Monday 25 August 2003 16.36, Henning P. Schmiedehausen wrote:
> Zamek <za...@vili.pmmf.hu> writes:
> >Hi All,
>
> tool.content.want.encoding = false
Is it a new feature in Turbine? I have a version of cca. june. 2003, and I
cannot find it in source. Where is it?
My version cannot works with this setting. I try to download and compile from
cvs.
>
> You other pages don't have the jsessionid appended because the container
> switched to cookie based session tracking after the first request.
>
> Regards
> Henning
>
> >In my Index.vm there are sessionid in all of links seems to be like this:
> ><img
> >src="http://portal.pmmf.hu/portal/images/template/top/top_01.jpg;jsessioni
> >d=CADEA83C709EEABE976FFB09AC76E9FD" width="760" height="5">
>
--
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694
Re: Why turbine appends sessionid to links?
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
Zamek <za...@vili.pmmf.hu> writes:
>Hi All,
tool.content.want.encoding = false
You other pages don't have the jsessionid appended because the container
switched to cookie based session tracking after the first request.
Regards
Henning
>In my Index.vm there are sessionid in all of links seems to be like this:
><img
>src="http://portal.pmmf.hu/portal/images/template/top/top_01.jpg;jsessionid=CADEA83C709EEABE976FFB09AC76E9FD"
>width="760" height="5">
>My server cannot serve this requests. It is _only_ in my Index.vm, all of
>other pages are cleared.
>Source of this is here:
><img src="$content.getURI("images/template/top/top_01.jpg")" width="468"
>height="60">
>This source is my default DefaultTop.vm which is used by another screens.
>The layout is commonly used NoMenu.vm:
><link REL="SHORTCUT ICON"
>HREF="$content.getURI('images/template/pollack.ico')">
>$page.setHttpEquiv("Content-Style-Type","text/css; charset=$data.CharSet")
>$page.addStyleSheet($content.getURI("/css/portal.css"))
>$page.addScript($content.getURI("js/main.js"))
>$page.addScript($content.getURI("js/tools.js"))
><html>
>#TurbineHtmlHead()
> <body #TurbineHtmlBodyAttributes() leftmargin="0" topmargin="0"
>marginwidth="0" marginheight="0">
> $navigation.setTemplate("DefaultTop.vm")
> <table width="760" border="0">
> #if($data.Message)
> <tr>
> <td>
> #alert($data.Message)
> </td>
> </tr>
> #end
> <tr>
> <td>
> $screen_placeholder
> </td>
> </tr>
> </table>
> $navigation.setTemplate("DefaultBottom.vm")
> </body>
></html>
>I don't use session tool, in TR.properties:
># tool.session.sessionmgt = org.apache.turbine.services.session.SessionTool
>Are there any other settings to disable it?
>--
>thx,
>Zoltan Zidarics programmer
>PTE University Pecs, Hungary
>icq: 43288694
>---------------------------------------------------------------------
>To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: turbine-user-help@jakarta.apache.org
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!"
-- AOL CD when played backwards (User Friendly - 200-10-15)