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 Werner Punz <w....@labor-c.net> on 2002/12/11 17:45:13 UTC

Moving from b1 to b2

Hi has anyone already successfully moved an existing project from b1 to
b2? 
 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Java Source

Posted by Glen Carl <ca...@csc-monterey.com>.
For starters, read
http://jakarta.apache.org/jetspeed/site/security.html

For controllers and controls, you will probably just want to adjust the 
velocity templates in WEB-INF/templates/vm/

Congratulations on building and running Jetspeed!
Glen

Sangam Dash wrote:
> Hi
> 
> 
> I am all set with jetspeed and some custom changes for my website
> Thanks for all your help
> Now i am trying to create more custom classes inside java for jetspeed
> does somebody know how to create custom controllers and custom controls
> does anybody know which java files handles issues like login logout and 
> then control permissions for a user?
> Thanks
> Sangam Dash


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Java Source

Posted by Bill Weir <bi...@outsourceadvice.com>.
Sangam,

Looks to me like Turbine does the user authentication and mangement, so
you're going to need to get those sources.

You might want to check the TURBINE_USER, TURBINE_GROUP, TURBINE_ROLE and
other related tables in the database to get a sense of the structure.

I followed the code from
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer into Turbine and
got lost pretty quickly. Mostly because I'm very new to Java.

[I also see in passing that if you're clever you can deploy LDAP. If I can
ever get beyond my current basic problems I plan to do that too.]

--this advice from someone who is a complete beginner, so you can take it or
leave it.

Bill

> -----Original Message-----
> From: Sangam Dash [mailto:srdash@rippleimpact.com]
> Sent: Wednesday, December 11, 2002 3:44 PM
> To: Jetspeed Users List
> Subject: Java Source
>
>
> Hi
>
>
> I am all set with jetspeed and some custom changes for my website
> Thanks for all your help
> Now i am trying to create more custom classes inside java for jetspeed
> does somebody know how to create custom controllers and custom controls
> does anybody know which java files handles issues like login logout and
> then control permissions for a user?
> Thanks
> Sangam Dash
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Java Source

Posted by Sangam Dash <sr...@rippleimpact.com>.
Hi


I am all set with jetspeed and some custom changes for my website
Thanks for all your help
Now i am trying to create more custom classes inside java for jetspeed
does somebody know how to create custom controllers and custom controls
does anybody know which java files handles issues like login logout and 
then control permissions for a user?
Thanks
Sangam Dash



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Problems with jetspeed 1.4-b2

Posted by Sangam Dash <sr...@rippleimpact.com>.
Bill Weir wrote:

>Sangam,
>
>I had this a couple times. Although I don't understand what the problem is,
>or why my solution helped, I did the following:
>
>1. do a shutdown.sh
>2. do a startup.sh
>3. wait a moment (ie be patient)
>4. Check to see if jetspeed.war is untarred to directory jetspeed. If so,
>check to see what's in jetspeed/WEB-INF. On a couple occasions I found only
>a conf directory in there with a couple of files. Clearly you also need
>lib/*, and so on. Each time I fixed this by touching jetspeed.war so it's
>more recent than the jetspeed directory, then doing a shutdown.sh and
>startup.sh.
>
>Why the war doesn't completely "jar xv" is what I don't understand.
>
>Bill
>
>
>  
>
>>-----Original Message-----
>>From: Sangam Dash [mailto:srdash@rippleimpact.com]
>>Sent: Wednesday, December 11, 2002 1:52 PM
>>To: Jetspeed Users List
>>Subject: Problems with jetspeed 1.4-b2
>>
>>
>>i built the jetspeed 1.4-b2 from source code
>>then i copied the jetspeed.war file to tomcat/webapps directory
>>but when i tried to access http://localhost:8080/jetspeed it gives me
>>page cant be found
>>somebody knows whats going on?
>>i am using tomcat 4.0.6
>>and jdk1.4
>>thanks
>>sangam dash
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>><ma...@jakarta.apache.org>
>>For additional commands, e-mail:
>><ma...@jakarta.apache.org>
>>
>>    
>>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>  
>
Hi

jetspeed 1.4-b2 is working and its working on tomcat 4.0.6

Thanks
sangam dash



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Problems with jetspeed 1.4-b2

Posted by Bill Weir <bi...@outsourceadvice.com>.
Sangam,

I had this a couple times. Although I don't understand what the problem is,
or why my solution helped, I did the following:

1. do a shutdown.sh
2. do a startup.sh
3. wait a moment (ie be patient)
4. Check to see if jetspeed.war is untarred to directory jetspeed. If so,
check to see what's in jetspeed/WEB-INF. On a couple occasions I found only
a conf directory in there with a couple of files. Clearly you also need
lib/*, and so on. Each time I fixed this by touching jetspeed.war so it's
more recent than the jetspeed directory, then doing a shutdown.sh and
startup.sh.

Why the war doesn't completely "jar xv" is what I don't understand.

Bill


> -----Original Message-----
> From: Sangam Dash [mailto:srdash@rippleimpact.com]
> Sent: Wednesday, December 11, 2002 1:52 PM
> To: Jetspeed Users List
> Subject: Problems with jetspeed 1.4-b2
>
>
> i built the jetspeed 1.4-b2 from source code
> then i copied the jetspeed.war file to tomcat/webapps directory
> but when i tried to access http://localhost:8080/jetspeed it gives me
> page cant be found
> somebody knows whats going on?
> i am using tomcat 4.0.6
> and jdk1.4
> thanks
> sangam dash
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Problems with jetspeed 1.4-b2

Posted by Sangam Dash <sr...@rippleimpact.com>.
i built the jetspeed 1.4-b2 from source code
then i copied the jetspeed.war file to tomcat/webapps directory
but when i tried to access http://localhost:8080/jetspeed it gives me 
page cant be found
somebody knows whats going on?
i am using tomcat 4.0.6
and jdk1.4
thanks
sangam dash



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Problems

Posted by Sangam Dash <sr...@rippleimpact.com>.
i successfully access jetspeed 1.4b2
but a lot of times i am getting this exception
though it doesnt affect the flow of the pages but still dont understand 
why this happens?

java.lang.IllegalStateException: Current state = FLUSHED, new state = 
CODING_END

        at 
java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEnc
oder.java:933)
        at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529)
        at 
sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEncoder.ja
va:356)
        at 
sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:413)
        at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:158)
        at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
        at java.io.PrintWriter.close(PrintWriter.java:137)
        at 
org.apache.catalina.connector.ResponseBase.finishResponse(Unknown Sou
rce)
        at 
org.apache.catalina.connector.HttpResponseBase.finishResponse(Unknown
 Source)
        at 
org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(Un
known Source)
        at 
org.apache.catalina.connector.http.HttpProcessor.process(Unknown Sour
ce)
        at org.apache.catalina.connector.http.HttpProcessor.run(Unknown 
Source)
        at java.lang.Thread.run(Thread.java:536)
please help me
thanks
sangam dash



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Build Source Code

Posted by Glen Carl <ca...@csc-monterey.com>.
I created my own build environment, to overlay my changes on the core 
jetspeed.war. I rarely change the jetspeed.jar, and normally only change 
it for temp bug fix or to experiment. I believe this what other 
developers are doing too.

I highly recommend that you step through the new tutorial at
http://www.bluesunrise.com/jetspeed-docs/JetspeedTutorial.htm .

Glen

Sangam Dash wrote:

> I need to change something in the properties files like 
> JetspeedLicalization.properties which is inside the jetspeed-1.4b1.jar 
> file?
> so if i change it and build the source using ant then i can just use the 
> newly created jar file?
> or how doesit work?
> or everytime i change something i need to use the newly created war file?
> thanks
> sangam dash


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Build Source Code

Posted by Sangam Dash <sr...@rippleimpact.com>.
Glen Carl wrote:

> http://jakarta.apache.org/ant/manual/index.html
>
> Once you have ant installed.
> Change directory to jakarta-jetspeed/build
> Execute: ant war
> The jetspeeed.war will be found in jakarta-jetspeed/bin
>
> The jakarta-jetspeed directory is the root level directory after you 
> unzip.
>
> Glen
>
> Sangam Dash wrote:
>
>> do you know any good tutorial on ant or how to build jetspeed source 
>> on ant?
>
>
>
> -- 
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
>
I need to change something in the properties files like 
JetspeedLicalization.properties which is inside the jetspeed-1.4b1.jar file?
so if i change it and build the source using ant then i can just use the 
newly created jar file?
or how doesit work?
or everytime i change something i need to use the newly created war file?
thanks
sangam dash



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Build Source Code

Posted by Sangam Dash <sr...@rippleimpact.com>.
Glen Carl wrote:

> http://jakarta.apache.org/ant/manual/index.html
>
> Once you have ant installed.
> Change directory to jakarta-jetspeed/build
> Execute: ant war
> The jetspeeed.war will be found in jakarta-jetspeed/bin
>
> The jakarta-jetspeed directory is the root level directory after you 
> unzip.
>
> Glen
>
> Sangam Dash wrote:
>
>> do you know any good tutorial on ant or how to build jetspeed source 
>> on ant?
>
>
>
> -- 
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
>
i build the jetspeed successfully..
thanks a lot for the help
i did only ant without war
what difference does it make?



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Build Source Code

Posted by Sangam Dash <sr...@rippleimpact.com>.
Glen Carl wrote:

> http://jakarta.apache.org/ant/manual/index.html
>
> Once you have ant installed.
> Change directory to jakarta-jetspeed/build
> Execute: ant war
> The jetspeeed.war will be found in jakarta-jetspeed/bin
>
> The jakarta-jetspeed directory is the root level directory after you 
> unzip.
>
> Glen
>
> Sangam Dash wrote:
>
>> do you know any good tutorial on ant or how to build jetspeed source 
>> on ant?
>
>
>
> -- 
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
>
when i build it using ant it crated a jar file in the bin folder.
is that what i need to use for the changes i made to the source code or 
the properties file?



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Build Source Code

Posted by Glen Carl <ca...@csc-monterey.com>.
Recommended download is the jetspeed-1.4-b2-src.zip at
http://jakarta.apache.org/builds/jakarta-jetspeed/release/v1.4b2/
Unzip and directory jetspeed-1.4-b2 will appear
cd jetspeed-1.4-b2\build
ant war

In the jetspeed-1.4-b2\bin directory will be the jar file, along with 
the war file. Yes, this is the jar file you built.

To swap jetspeed jar, remove the org\apache\jetspeed classes from 
WEB-INF\classes. Copy our jetspeed jar to WEB-INF\lib

I noticed while I was writing this you made the discoveries. Good job.

You don't always need to run ant war, if you look in the 
\build\build.xml file you can find the other commands.

Have fun!
Glen

Sangam Dash wrote:

> I downloaded this file jetspeed-1.4b1-release-src
> should i build from this ?
> i have already installed ant on my machine
> if i build it from here where the jetspeed-1.4b1.jar file will go so 
> that i can use this jar file instead of the binary distributed jar file?
> thanks
> sangam dash
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Build Source Code

Posted by Sangam Dash <sr...@rippleimpact.com>.
Glen Carl wrote:

> http://jakarta.apache.org/ant/manual/index.html
>
> Once you have ant installed.
> Change directory to jakarta-jetspeed/build
> Execute: ant war
> The jetspeeed.war will be found in jakarta-jetspeed/bin
>
> The jakarta-jetspeed directory is the root level directory after you 
> unzip.
>
> Glen
>
> Sangam Dash wrote:
>
>> do you know any good tutorial on ant or how to build jetspeed source 
>> on ant?
>
>
>
> -- 
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
>
I downloaded this file jetspeed-1.4b1-release-src
should i build from this ?
i have already installed ant on my machine
if i build it from here where the jetspeed-1.4b1.jar file will go so 
that i can use this jar file instead of the binary distributed jar file?
thanks
sangam dash



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Build Source Code

Posted by Sangam Dash <sr...@rippleimpact.com>.
Glen Carl wrote:

> http://jakarta.apache.org/ant/manual/index.html
>
> Once you have ant installed.
> Change directory to jakarta-jetspeed/build
> Execute: ant war
> The jetspeeed.war will be found in jakarta-jetspeed/bin
>
> The jakarta-jetspeed directory is the root level directory after you 
> unzip.
>
> Glen
>
> Sangam Dash wrote:
>
>> do you know any good tutorial on ant or how to build jetspeed source 
>> on ant?
>
>
>
> -- 
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
>
I got it
so everytime i need some change in the source code i need to build it 
using ant and replace the war file?
but i need only the jetspeed.jar file?
so for that what do i need to do?



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Build Source Code

Posted by Glen Carl <ca...@csc-monterey.com>.
http://jakarta.apache.org/ant/manual/index.html

Once you have ant installed.
Change directory to jakarta-jetspeed/build
Execute: ant war
The jetspeeed.war will be found in jakarta-jetspeed/bin

The jakarta-jetspeed directory is the root level directory after you unzip.

Glen

Sangam Dash wrote:

> do you know any good tutorial on ant or how to build jetspeed source on 
> ant?


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Build Source Code

Posted by Sangam Dash <sr...@rippleimpact.com>.
Glen Carl wrote:

> Ant works great on Windows 2000. Learn ant, you will be much happier :-)
> Glen
>
> Sangam Dash wrote:
>
>> Hi
>>
>> I want to change something in the jetspeed source code for my own 
>> use....
>> I have installed eclipse now.
>> will that do?
>> or i need ant to do it?
>> is there any docs how to build the source?
>> or i need to check out from CVS?
>> i am on windows 2000 so i avoid using ant
>> please help me
>> thanks
>> sangam dash
>>
>>
>
>
> -- 
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
>
do you know any good tutorial on ant or how to build jetspeed source on ant?


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Build Source Code

Posted by Glen Carl <ca...@csc-monterey.com>.
Ant works great on Windows 2000. Learn ant, you will be much happier :-)
Glen

Sangam Dash wrote:
> Hi
> 
> I want to change something in the jetspeed source code for my own use....
> I have installed eclipse now.
> will that do?
> or i need ant to do it?
> is there any docs how to build the source?
> or i need to check out from CVS?
> i am on windows 2000 so i avoid using ant
> please help me
> thanks
> sangam dash
> 
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Build Source Code

Posted by Sangam Dash <sr...@rippleimpact.com>.
Hi

I want to change something in the jetspeed source code for my own use....
I have installed eclipse now.
will that do?
or i need ant to do it?
is there any docs how to build the source?
or i need to check out from CVS?
i am on windows 2000 so i avoid using ant
please help me
thanks
sangam dash



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Moving from b1 to b2

Posted by Sangam Dash <sr...@rippleimpact.com>.
David Sean Taylor wrote:

>  
>
>>-----Original Message-----
>>From: Werner Punz [mailto:w.punz@labor-c.net]
>>Sent: Wednesday, December 11, 2002 8:45 AM
>>To: jetspeed-user@jakarta.apache.org
>>Subject: Moving from b1 to b2
>>
>>
>>Hi has anyone already successfully moved an existing project from b1 to
>>b2?
>>
>>    
>>
>There are three issues that I know of.
>
>1. new column on TURBINE_USER table:
>
>PASSWORD_CHANGED TIMESTAMP
>
>2. Torque upgrade. See
>http://jakarta.apache.org/jetspeed/site/supporting-projects.html
>
>3. if you're using the Hypersonic SQL db, the primary key id columns have
>been changed to auto-increment
>
>
>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>  
>
I got it working



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Moving from b1 to b2

Posted by David Sean Taylor <da...@bluesunrise.com>.

> -----Original Message-----
> From: Werner Punz [mailto:w.punz@labor-c.net]
> Sent: Wednesday, December 11, 2002 8:45 AM
> To: jetspeed-user@jakarta.apache.org
> Subject: Moving from b1 to b2
>
>
> Hi has anyone already successfully moved an existing project from b1 to
> b2?
>
There are three issues that I know of.

1. new column on TURBINE_USER table:

PASSWORD_CHANGED TIMESTAMP

2. Torque upgrade. See
http://jakarta.apache.org/jetspeed/site/supporting-projects.html

3. if you're using the Hypersonic SQL db, the primary key id columns have
been changed to auto-increment





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>