You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Melanie Harris <ha...@yahoo.com> on 2001/11/27 03:33:21 UTC

works on local machine but when deployed to another machine doesnt work

I have a struts application that works perfectly when
depoloyed to an application server running on my
local machine. 

I deployed same struts application to another remote
machine (same platform, windows 2000 and same
application server, SilverStream 3.7.2) and it
doesn't work on that machine.   I do get my login.jsp
which is the default .jsp but after hitting <submit>
and after the associated action class does a return
(mapping.findForward("success")); I get this displayed
on the browser window:  'No action instance for path
/select could be created'.  Any action mapping
reference to one of my action mappings in struts
config causes this problem.  If I enter the .jsp in
the
url instead of the action mapping (/SELECT in the
above description) the page does come up, but that
really doesn't do me any good since any navigation
between pages needs to use the action mappings.

Nothing changed with any of my classes, web.xml,
blah...blah... when deploying to the different
machines, used all the same files.

Have you ever seen anything like this?  If so, do you
know what to do about it?

Suggestions much appreciated!

-mel harris



__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

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


Re: works on local machine but when deployed to another machine doesnt work

Posted by Jin Bal <ji...@hotmail.com>.
Sounds like the document/context root on the server you deployed it on  is
set differently.  You need to "point" your server to the context root of you
app.
In tomcat for instance you ca edit the server.xml so that "\" after the web
address will  point at any directory you want so that calling
www.xyz.co\logon.jsp will call %contextroot%logon.jsp similarly the path you
specify in the struts-config.xml is the path relative to the context root

HTH
----- Original Message -----
From: "Melanie Harris" <ha...@yahoo.com>
To: <st...@jakarta.apache.org>
Sent: Tuesday, November 27, 2001 2:33 AM
Subject: works on local machine but when deployed to another machine doesnt
work


>
> I have a struts application that works perfectly when
> depoloyed to an application server running on my
> local machine.
>
> I deployed same struts application to another remote
> machine (same platform, windows 2000 and same
> application server, SilverStream 3.7.2) and it
> doesn't work on that machine.   I do get my login.jsp
> which is the default .jsp but after hitting <submit>
> and after the associated action class does a return
> (mapping.findForward("success")); I get this displayed
> on the browser window:  'No action instance for path
> /select could be created'.  Any action mapping
> reference to one of my action mappings in struts
> config causes this problem.  If I enter the .jsp in
> the
> url instead of the action mapping (/SELECT in the
> above description) the page does come up, but that
> really doesn't do me any good since any navigation
> between pages needs to use the action mappings.
>
> Nothing changed with any of my classes, web.xml,
> blah...blah... when deploying to the different
> machines, used all the same files.
>
> Have you ever seen anything like this?  If so, do you
> know what to do about it?
>
> Suggestions much appreciated!
>
> -mel harris
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1
>
> --
> 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>