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 Irene Huang <ih...@acegain.com> on 2002/02/09 02:13:56 UTC

Can I use Jetty instead of Tomcat for Jetspeed?

Is there anyone familiar with Jetty? I have tried to run Jetspeed with
Jetty, but I couldn't get it to work.
Any advice? Or everyone is using Tomcat?



Irene


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


Modify PSML for anon in PSML DB

Posted by Ben Liang <aj...@yahoo.com>.
We've been imported all psml into DB, everything works fine. Then we want to
change to anon user page. How can we do that? Since there is no a actual
anon user, we can't log in as him to customize the page.

Can we create a dumy user, customize its page, then copy the psml object
using some sql statement. Or there is some better apporach to do that?

Thanks

Ben


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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


RE: Can I use Jetty instead of Tomcat for Jetspeed?

Posted by Irene Huang <ih...@acegain.com>.
Chris,

You are awesome!!!
After I took out the extra jar files, it worked!

Thank you for the patient of helping out the newbie~!


Irene
-----Original Message-----
From: Chris Kimpton [mailto:kimptoc_mail@yahoo.com]
Sent: Tuesday, February 12, 2002 2:10 AM
To: Jetspeed Users List
Subject: RE: Can I use Jetty instead of Tomcat for Jetspeed?


Hello Irene,

--- Irene Huang <ih...@acegain.com> wrote:
> -----------------------------
> I use Jetspeed 1.3a2, Jetty3.1.5, win XP,
> I followed the same set up instruction for Tomcat, and copied most
> of the
> jar file in jetspeed\lib to jetty\lib
> and set up the classpath in jetty.bat.
> but I put the Jetspeed folder(files deployed from jetspeed.war)
> under
> <tomcat-home>\webapps into <jetty-home>\webapps
> Then I started Jetty, go to http://localhost:8080/jetspeed but it
> keeps
> loading forever...it just stuck ( I can still click to go other
> links on
> Jetty's default page)
> Is there something wrong for where I put the jetspeed folder? What
> and where
> exactly I need to put the Jetspeed so I can access it with Jetty?

I suggest you follow my instructions that I previously posted -
obviously something that you are doing is causing a problem - perhaps
because you put all the jetspeed jars into the jetty lib or did not
add the correct entry into the jetty demo.xml.

> -----------------------------
>
>
> I built the 'install' target in ant and then pointed Jetty at the
> webapp, as follows:
>
> I added a webApp context into the default demo.xml file like this:
>
>
>   <Call name="addWebApplication">
>     <Arg>/jetspeed/*</Arg>
>
>
<Arg>F:\cvslocal\jakartarw\jakarta-jetspeed\bin\webapp\jetspeed</Arg>
>     <Arg><SystemProperty name="jetty.home"
> default="."/>/etc/webdefault.xml</Arg>
>     <Arg type="boolean">false</Arg> <!-- dont expand war -->
>   </Call>
>
>
> -------------------------------
> I add the same thing in <jetty-home>/etc/demo.xml
> but I have <Arg><jetty-home>\webapps\jetspeed </Arg>

fine.

> (I couldn't find a similiar dir like urs.)


Note the F:\ directory is where I have jetspeed installed - this will
change depending on how you have configured your system.


>
> Is there someting wrong? I couldn't find webapp\jetspeed under
> <jetspeed-home>\bin.

If you build the "install" target, then it creates the
webapp\jetspeed directory etc.


Just follow the steps from the earlier reply and if you get a
different thing happening, then let us know which step and what is
different and anything of note about the earlier steps.

In summary:

build the "install" target of jetspeed

copy xerces/xalan jars only into the jetty lib and add to its
classpath

add the WebApp entry into the jetty configuration file

start jetty.

HTH,
Chris

=====
Need somewhere to Live in London? - Then go to http://freeflats.com

__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
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>


RE: Can I use Jetty instead of Tomcat for Jetspeed?

Posted by Chris Kimpton <ki...@yahoo.com>.
Hello Irene,

--- Irene Huang <ih...@acegain.com> wrote:
> -----------------------------
> I use Jetspeed 1.3a2, Jetty3.1.5, win XP,
> I followed the same set up instruction for Tomcat, and copied most
> of the
> jar file in jetspeed\lib to jetty\lib
> and set up the classpath in jetty.bat.
> but I put the Jetspeed folder(files deployed from jetspeed.war)
> under
> <tomcat-home>\webapps into <jetty-home>\webapps
> Then I started Jetty, go to http://localhost:8080/jetspeed but it
> keeps
> loading forever...it just stuck ( I can still click to go other
> links on
> Jetty's default page)
> Is there something wrong for where I put the jetspeed folder? What
> and where
> exactly I need to put the Jetspeed so I can access it with Jetty?

I suggest you follow my instructions that I previously posted -
obviously something that you are doing is causing a problem - perhaps
because you put all the jetspeed jars into the jetty lib or did not
add the correct entry into the jetty demo.xml.  

> -----------------------------
> 
> 
> I built the 'install' target in ant and then pointed Jetty at the
> webapp, as follows:
> 
> I added a webApp context into the default demo.xml file like this:
> 
> 
>   <Call name="addWebApplication">
>     <Arg>/jetspeed/*</Arg>
> 
>
<Arg>F:\cvslocal\jakartarw\jakarta-jetspeed\bin\webapp\jetspeed</Arg>
>     <Arg><SystemProperty name="jetty.home"
> default="."/>/etc/webdefault.xml</Arg>
>     <Arg type="boolean">false</Arg> <!-- dont expand war -->
>   </Call>
> 
> 
> -------------------------------
> I add the same thing in <jetty-home>/etc/demo.xml
> but I have <Arg><jetty-home>\webapps\jetspeed </Arg>

fine.

> (I couldn't find a similiar dir like urs.)


Note the F:\ directory is where I have jetspeed installed - this will
change depending on how you have configured your system.


> 
> Is there someting wrong? I couldn't find webapp\jetspeed under
> <jetspeed-home>\bin.

If you build the "install" target, then it creates the
webapp\jetspeed directory etc.


Just follow the steps from the earlier reply and if you get a
different thing happening, then let us know which step and what is
different and anything of note about the earlier steps.

In summary:

build the "install" target of jetspeed

copy xerces/xalan jars only into the jetty lib and add to its
classpath

add the WebApp entry into the jetty configuration file

start jetty.

HTH,
Chris

=====
Need somewhere to Live in London? - Then go to http://freeflats.com

__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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


RE: Can I use Jetty instead of Tomcat for Jetspeed?

Posted by Irene Huang <ih...@acegain.com>.

Exactly what does not work - Jetty does not start? Jetspeed/Turbine
is not found?  JSP fails? I will try it now and see if anything
obvious fails...


-----------------------------
I use Jetspeed 1.3a2, Jetty3.1.5, win XP,
I followed the same set up instruction for Tomcat, and copied most of the
jar file in jetspeed\lib to jetty\lib
and set up the classpath in jetty.bat.
but I put the Jetspeed folder(files deployed from jetspeed.war) under
<tomcat-home>\webapps into <jetty-home>\webapps
Then I started Jetty, go to http://localhost:8080/jetspeed but it keeps
loading forever...it just stuck ( I can still click to go other links on
Jetty's default page)
Is there something wrong for where I put the jetspeed folder? What and where
exactly I need to put the Jetspeed so I can access it with Jetty?
-----------------------------


I built the 'install' target in ant and then pointed Jetty at the
webapp, as follows:

I added a webApp context into the default demo.xml file like this:


  <Call name="addWebApplication">
    <Arg>/jetspeed/*</Arg>

<Arg>F:\cvslocal\jakartarw\jakarta-jetspeed\bin\webapp\jetspeed</Arg>
    <Arg><SystemProperty name="jetty.home"
default="."/>/etc/webdefault.xml</Arg>
    <Arg type="boolean">false</Arg> <!-- dont expand war -->
  </Call>


-------------------------------
I add the same thing in <jetty-home>/etc/demo.xml
but I have <Arg><jetty-home>\webapps\jetspeed </Arg>
(I couldn't find a similiar dir like urs.)

Is there someting wrong? I couldn't find webapp\jetspeed under
<jetspeed-home>\bin.
--------------------------------

Thank you for help!!


Irene


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


RE: Can I use Jetty instead of Tomcat for Jetspeed?

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- Irene Huang <ih...@acegain.com> wrote:
> Thank you for the link, I have download turbine-2.2b1.jar
> and set classpath in jetty.bat as:
> set CP=%CP%;%JETTY_HOME%\lib\turbine-2.2b1.jar
> 
> rebuild use Ant
> restart jetty
> 
> Howerver it still didn't work.
> Is there any more details about how to set up jetspeed with jetty?
> 

Exactly what does not work - Jetty does not start? Jetspeed/Turbine
is not found?  JSP fails? I will try it now and see if anything
obvious fails...

I will use Jetspeed from CVS and Jetty 3.1.5.

This is on WindowsXP (home)

I first started jetty by running jetty.bat from a command prompt in
the bin directory - that worked fine.

I built the 'install' target in ant and then pointed Jetty at the
webapp, as follows:

I added a webApp context into the default demo.xml file like this:


  <Call name="addWebApplication">
    <Arg>/jetspeed/*</Arg>
   
<Arg>F:\cvslocal\jakartarw\jakarta-jetspeed\bin\webapp\jetspeed</Arg>
    <Arg><SystemProperty name="jetty.home"
default="."/>/etc/webdefault.xml</Arg>
    <Arg type="boolean">false</Arg> <!-- dont expand war -->
  </Call>


This ran and gave me the Jetspeed homepage - but no portlets -
looking in the jetspeed log, I see xalan not found errors - which
usually means the xml parser is on the jetty classpath and is trying
to find the xalan jar - but its not visible as its inside the
jetspeed war...

So I copied the xalan jar into the jetty lib directory and amended
jetty.bat to use it (there is probably a better way to do this,
perhaps by disabling the global accessibility of the Jetty xml
parser...) - restarted jetty and I get further - but then one of the
homepage portlets uses the xerces parser directly...

So I copied the xerces jar over and added it to the jetty classpath -
as above.  I restarted and all seems to work - I get the anon front
page, the tabs works, I can login.  There are even the customize
controls when not logged in - yuck!

So - latest Jetspeed and Jetty work together - allowing for xml
parser tweakings...

Chris



=====
Need somewhere to Live in London? - Then go to http://freeflats.com

__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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


RE: Can I use Jetty instead of Tomcat for Jetspeed?

Posted by Irene Huang <ih...@acegain.com>.
Thank you for the link, I have download turbine-2.2b1.jar
and set classpath in jetty.bat as:
set CP=%CP%;%JETTY_HOME%\lib\turbine-2.2b1.jar

rebuild use Ant
restart jetty

Howerver it still didn't work.
Is there any more details about how to set up jetspeed with jetty?


Irene


-----Original Message-----
From: David Sean Taylor [mailto:david@bluesunrise.com]
Sent: Friday, February 08, 2002 5:58 PM
To: Jetspeed Users List
Subject: RE: Can I use Jetty instead of Tomcat for Jetspeed?


Others have tried Jetspeed with Jetty.
Search the Jetspeed mailing lists:

http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=
jetspeed-dev_jakarta_apache_org&restrict=&exclude=&words=jetty

http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=
jetspeed-user_jakarta_apache_org&restrict=&exclude=&words=jetty


> -----Original Message-----
> From: Irene Huang [mailto:ihuang@acegain.com]
> Sent: Friday, February 08, 2002 5:14 PM
> To: Jetspeed user
> Subject: Can I use Jetty instead of Tomcat for Jetspeed?
>
>
> Is there anyone familiar with Jetty? I have tried to run Jetspeed with
> Jetty, but I couldn't get it to work.
> Any advice? Or everyone is using Tomcat?
>
>
>
> Irene
>
>
> --
> 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>




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


RE: Can I use Jetty instead of Tomcat for Jetspeed?

Posted by David Sean Taylor <da...@bluesunrise.com>.
Others have tried Jetspeed with Jetty.
Search the Jetspeed mailing lists:

http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=
jetspeed-dev_jakarta_apache_org&restrict=&exclude=&words=jetty

http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=
jetspeed-user_jakarta_apache_org&restrict=&exclude=&words=jetty


> -----Original Message-----
> From: Irene Huang [mailto:ihuang@acegain.com]
> Sent: Friday, February 08, 2002 5:14 PM
> To: Jetspeed user
> Subject: Can I use Jetty instead of Tomcat for Jetspeed?
>
>
> Is there anyone familiar with Jetty? I have tried to run Jetspeed with
> Jetty, but I couldn't get it to work.
> Any advice? Or everyone is using Tomcat?
>
>
>
> Irene
>
>
> --
> 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>