I have Jetspeed 2 portal with a couple of petstore
portlets. I would like to forward the user to the
jetspeed's LoginPortlet (login/login.psml) instead of
the portlet's own login page.

To do that, I replaced the link in the petstore
portlet's struts-config.xml file from: 
    <forward name="signon"
path="/shop/signonForm.shtml"/>
to
    <forward name="signon" path="/login"/>

This does not work - "The requested resource
(/jpetstore/login) is not available". 

Could you please tell me why? Do I need to set up
something in the web.xml or is the link supposed to be
different?

Thanks,

henock


--- David Dyer <[EMAIL PROTECTED]> wrote:

> Thanks for all the help so far David. And apologies
> in advance for the 
> length of this message.
> 
>
-----------------------------------------------------------
> build.properties:
> 
> # general properties
> portal.name = jetexpress
> 
> # installation properties
> installer.src.jar =
> /Jetspeed/installers/jetspeed-2.2-dev-installer.jar
> installer.target = ./target
> installer.dst.jar = jetexpress-installer.jar
> 
> # development deployment properties
> app.server.home = /Jetspeed/server
>
-------------------------------------------------------------------
> 
> I'm not using a directory structure including
> JetspeedTraining. 
> Everything is in a directory call Jetspeed on C:
> Directory Structure is as follows:
> *C:\Jetspeed*
>        >installers
>             >jetspeed-2.2-dev-installer.jar
>        >resources
>              >applications
>                    >express-demo
>                          >src
>                          >WebContent
>                          >.DS_Store
>              >decorations
>              >pages
>              >seed-data
>       * >server*
>              >bin
>              >common
>              >conf
>              >database
>              >logs
>              >server
>              >shared
>              >temp
>            *  >webapps
>                    >j2-admin
>                    >jetexpress
>                    >jetspeed-portlets
>                    >ROOT
>                    >j2-admin.war
>                    >jetspeed-portlets.war           
>      *
>              >work
>       * >workspace           * *
> *           /  >express-demo
>                    >src
>                    >WebContent
> /             >jetexpress
>                    *>build.xml*
>                    >build.properties
>                    >.DS_Store
>                    >dist
>                    >src
>                    >target
>                   * >webapps
>                            >express-demo.war
>                            >jetspeed-portlets.war*
>             
> 
> 
> The express-demo directory is, I believe, created by
> this line in the 
> build.xml: /<copy todir="../express-demo/"
> overwrite="true">/ which puts 
> the express-demo directory at least one level too
> high as the 
> create.installer build target never looks there.
> 
> Regards,
> 
> David Dyer
> 
> David Sean Taylor wrote:
> 
> > Hi David,
> >
> > Sounds like the PAs are not being deployed to the
> right place.
> > Could you send to this list:
> >
> > 1. your build.properties
> > 2. directory listing of
> /JetspeedTraining/workspace/jetexpress/webapps
> > 3. directory listing of
> /JetspeedTraining/servers/webapps
> >
> > or anything else you think is relevant
> >
> > On Apr 26, 2007, at 4:47 PM, David Dyer wrote:
> >
> >> Thanks David. I'm moving forward now. I've
> actually managed to  build 
> >> the jetexpress portal.
> >>
> >> On the first build/deployment all the portlets
> except the login  
> >> contain error messages similar to this:
> >>
> >> "Failed to retrieve Portlet Definition for
> express- 
> >> demo::WelcomeJetExpressAccess Denied.Failed to
> retrieve Portlet  
> >> Definition for
> express-demo::WelcomeJetExpressFailed to retrieve  
> >> Portlet Definition for
> express-demo::WelcomeJetExpressFailed to  
> >> retrieve Portlet Definition for express- 
> >> demo::WelcomeJetExpressFailed to retrieve Portlet
> Definition for  
> >> express-demo::WelcomeJetExpressFailed to retrieve
> Portlet  Definition 
> >> for express-demo::WelcomeJetExpress"
> >>
> >> So, I assume that this is because they haven't
> been deployed yet.
> >>
> >> I shut down tomcat, cd'd to
> /Jetspeed/workspace/jetexpress and ran  
> >> the copy-portlet-resources, copy-page-resources,
> copy-decoration- 
> >> resources Ant targets. The copy-portlet-resources
> creates a  
> >> subdirectory under workspace  called
> "express-demo" at the same  
> >> level as "jetexpress". However none of the
> targets in the  
> >> create.install actually pick up it's contents.
> Should the location  
> >> of express-demo in the workspace be somewhere
> inside "jetexpress"?  
> >> Do we need to add a target to the build file?
> >>
> >> I've also tried the delta and deploy.webapps
> targets and then  
> >> rebuilding the installer doing the java -jar and
> restarting tomcat.
> >>
> >> Any advice?
> >>
> >> David
> >>
> >> David Dyer wrote:
> >>
> >>> Thanks for the comments David.
> >>> I tried downloading the Ant build package from
> the link you  
> >>> provided but I'm getting a 404.
> >>>
> >>> Regards,
> >>> David
> >>>
> >>> David Sean Taylor wrote:
> >>>
> >>>>
> >>>> On Apr 25, 2007, at 1:19 AM, David Dyer wrote:
> >>>>
> >>>>> David Sean Taylor wrote:
> >>>>> "Have you copied in the .setttings.xml to your
> ".m2" directory  
> >>>>> as   described here:
> >>>>>
> >>>>>
>
http://portals.apache.org/tutorials/jetspeed-2/01/first-steps.html
> >>>>>
> >>>>> It will correctly setup the remote repos and
> copy resources into  
> >>>>> here
> >>>>>
> >>>>>  
>
<localRepository>/JetspeedTraining/maven/repository</
>   
> >>>>> localRepository> "
> >>>>>
> >>>>> Yes, the .m2/settings.xml under my user
> profile directory is   
> >>>>> configured, the only difference being the
> location of Tomcat,  
> >>>>> since  I already had an installation.
> >>>>>
> >>>>> "From that point on, its hit or miss with
> downloading the  files,  
> >>>>> keep  trying if it fails "
> >>>>>
> >>>>> More like miss and miss. It looks to me that
> at some point  
> >>>>> http:// repo1.maven.org/ got restructured and
> some of the  content 
> >>>>> is  missing from there. It IS, however, at
> http:// 
> >>>>> www.bluesunrise.com/,  so what I'm thinking is
> there 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around 
http://mail.yahoo.com 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to