You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bogdan Paduraru <bp...@totalsoft.ro> on 2006/01/12 10:32:56 UTC

Tomcat issues

Hi,

I'm trying to run a Struts application built with Ant. Ant makes me the
war file, I copy it under application directory in webapps of Tomcat
server. When I try to run something from my browser it tells me the
resource I call is unavailable. When I deploy the application unpacked
from the war file , it runs nicely, no problems. Can you tell me what
should I do on Tomcat configuration to run war correctly?
Another thing : I want to use an application.properties file for my
Struts app in Tomcat, for example I have  <bean:message key="bla.foo"/>
and bla.foo I define in such file. How do I tell Tomcat to use it?

Thanx,
Bogdan



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tomcat issues

Posted by Ognjen Blagojevic <og...@etf.bg.ac.yu>.
Bogdan Paduraru wrote:
> I'm trying to run a Struts application built with Ant. Ant makes me the
> war file, I copy it under application directory in webapps of Tomcat
> server. When I try to run something from my browser it tells me the
> resource I call is unavailable. When I deploy the application unpacked
> from the war file , it runs nicely, no problems. Can you tell me what
> should I do on Tomcat configuration to run war correctly?

You should enable Tomcat Manager application. When you do that, 
you can see all the applications on the server, so you can check 
if the application is deployed or not.

Did you try to restart server after deployment of WAR file?

Regards,
Ognjen

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tomcat issues

Posted by Steve Ratay <sr...@yahoo.com>.
I've noticed the same behavior in Tomcat as well.  Try
this:
- Place your .war file in webapps directory
- Start Tomcat and wait for the .war to be completely
expanded
- Restart Tomcat and then try to access the
application

I'm not positive about the specifics, but I do know
that Tomcat loads a default application context as it
expands and deploys a war when a context.xml file is
not provided in the war file.  However, when you
restart Tomcat and the application is already expanded
(i.e. the war doesn't have to be deployed) it loads
the application context as you would expect.

-Steve

--- Bogdan Paduraru <bp...@totalsoft.ro> wrote:

> Hi,
> 
> I'm trying to run a Struts application built with
> Ant. Ant makes me the
> war file, I copy it under application directory in
> webapps of Tomcat
> server. When I try to run something from my browser
> it tells me the
> resource I call is unavailable. When I deploy the
> application unpacked
> from the war file , it runs nicely, no problems. Can
> you tell me what
> should I do on Tomcat configuration to run war
> correctly?
> Another thing : I want to use an
> application.properties file for my
> Struts app in Tomcat, for example I have 
> <bean:message key="bla.foo"/>
> and bla.foo I define in such file. How do I tell
> Tomcat to use it?
> 
> Thanx,
> Bogdan
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org