You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dimitrios Christodoulakis <di...@gmail.com> on 2009/06/21 16:48:08 UTC

deploying struts2 at godaddy dedicated server - general question

Hello everyone,

I am having some issues deploying a struts2 application at godaddy and was
wondering if anyone has dealt with something similar in the past. The
application runs fine on my local machine with tomcat 6.0. My next step was
to upload and deploy at godaddy dedicated server which is running tomcat 5.5
- The underlying server is  Apache/2.2.8 (Fedora)

The upload of the war file and expansion works fine, and the static html
display fine too. But as soon as a struts2 action is called, I always get
the 404 not found error: The requested URL /Menu.action was not found on
this server.

Their customer service basically can help only if we buy their "assisted"
plan.

I'd like to start by asking this as a general question, and find out if
anyone had similar issues and how they resolved it. Is it a prticular
setting on the dedicated server that might help perhaps?

The hosting and development frameworks are fixed by the customer.

Thank you in advance.

Re: deploying struts2 at godaddy dedicated server - general question

Posted by Balwinder Kumar <ba...@gmail.com>.
This is probably due to the fact that the version of Java useed in 
deployment environment is lower than the version of Java used for 
compiling Hibernate classes.


Dimitrios Christodoulakis wrote:
> It seems that indeed the filters are not starting properly: The catalina.out
> log indicates the following:
>
> 00:45:40,018 ERROR [/myapp]:3639 - Exception starting filter struts2
> java.lang.UnsupportedClassVersionError: Bad version number in .class file
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> ...
> ...
>
> 00:45:40,044 ERROR [/myapp]:3639 - Exception starting filter HibernateFilter
> java.lang.UnsupportedClassVersionError: Bad version number in .class file
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> ...
> ...
>
> is it right to assume that "bad verison number in .class file" means Tomcat
> 5.5 is unable to run this struts2-hibernate combination? -- Any advice on
> deciphering the above errors?
>
> --I tried to run it locally on tomcat 5.5 using eclipse, but turns out I
> cannot even assign this project to 5.5 because - according to eclipse: "The
> server does not support version 2.5 of the J2EE Web module specification."
>
>  So, as a next step would you recommend I upgrade to Tomcat 6.0 on godaddy,
> or try to integrate Apache with the existing tomcat 5.5 first to see what
> happens?
>
> Wes, you mentioned below your favorite way of integrating http + tomcat,
> would you be able to provide a few general steps how to go about doing this?
>
> Many thanks for any help
>
>
>
> On Sun, Jun 21, 2009 at 12:09 PM, Dimitrios Christodoulakis <
> dimi.chr@gmail.com> wrote:
>   
>> Thanks for the input. I'll test it locally under 5.5. and  will dig deeper
>>     
> in the logs and see what I can find. I will let you know.
>   
>> Appreciate the insight.
>>
>> On Sun, Jun 21, 2009 at 11:00 AM, Wes Wannemacher <we...@wantii.com> wrote:
>>     
>>> I'm with dave. Check the logs, in particular, look for messages about
>>> whether or not the filter started properly. Also check the httpd
>>> configuration. There are a few ways to integrate httpd and tomcat.
>>> Many people will use mod_jk but lately I am in favor of having tomcat
>>> listen on localhost and have httpd reverse proxy all requests. There
>>> was a belief for a while that httpd should serve static content and
>>> tomcat serve jsps only. But any more I find tomcat's performance to be
>>> good enough to serve the static content as well.
>>>
>>> On 6/21/09, Dave Newton <ne...@yahoo.com> wrote:
>>>       
>>>> Dimitrios Christodoulakis wrote:
>>>>         
>>>>> I am having some issues deploying a struts2 application at godaddy and
>>>>>           
> was
>   
>>>>> wondering if anyone has dealt with something similar in the past. The
>>>>> application runs fine on my local machine with tomcat 6.0. My next
>>>>>           
> step
>   
>>>>> was
>>>>> to upload and deploy at godaddy dedicated server which is running
>>>>>           
> tomcat
>   
>>>>> 5.5
>>>>>           
>>>> Does it run locally under 5.5?
>>>>
>>>>         
>>>>> The upload of the war file and expansion works fine, and the static
>>>>>           
> html
>   
>>>>> display fine too. But as soon as a struts2 action is called, I always
>>>>>           
> get
>   
>>>>> the 404 not found error: The requested URL /Menu.action was not found
>>>>>           
> on
>   
>>>>> this server.
>>>>>           
>>>> What's in the logs?
>>>>
>>>> Dave
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>>
>>>>
>>>>         
>>> --
>>> Wes Wannemacher
>>> Author - Struts 2 In Practice
>>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>>> http://www.manning.com/wannemacher
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>       
>
>   


Re: deploying struts2 at godaddy dedicated server - general question

Posted by Dave Newton <ne...@yahoo.com>.
Dimitrios Christodoulakis wrote:
> It seems that indeed the filters are not starting properly: The catalina.out
> log indicates the following:
> 
> 00:45:40,018 ERROR [/myapp]:3639 - Exception starting filter struts2
> java.lang.UnsupportedClassVersionError: Bad version number in .class file
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> ...
> ...
> 
> 00:45:40,044 ERROR [/myapp]:3639 - Exception starting filter HibernateFilter
> java.lang.UnsupportedClassVersionError: Bad version number in .class file
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> ...
> ...
> 
> is it right to assume that "bad verison number in .class file" means Tomcat
> 5.5 is unable to run this struts2-hibernate combination? -- Any advice on
> deciphering the above errors?

No, it means that you've probably compiled under 1.6 and are deploying 
under 1.5. Oftentimes searching the web for an exception will provide 
hints as to what's going wrong.

> --I tried to run it locally on tomcat 5.5 using eclipse, but turns out I
> cannot even assign this project to 5.5 because - according to eclipse: "The
> server does not support version 2.5 of the J2EE Web module specification."

Is there any reason you need to use 2.5?

Dave

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


Re: deploying struts2 at godaddy dedicated server - general question

Posted by Dimitrios Christodoulakis <di...@gmail.com>.
Thanks! Everyone's suggestions are correct. The versions provided by godaddy
are:
ROOT/usr/java/jdk1.5.0_17, and
ROOT/usr/java/tomcat-5.5

Currently in dev I am using later versions for both. Wes, I think you are
right, I'd need to at least match at those versions mentioned above on my
local development. But, even after matching, do I still need integration
between apache and tomcat on godaddy side, or matching versions between dev
and prod take care of this?

Dave, that is correct, when starting the project on eclipse I am prompted to
select a dynamic web module version (2.2, 2.3, 2.4, 2.5) I am reading online
about the J2EE Web module specification, but can I quickly ask what is the
meaning of a web module? Is it possible to convert backwards between module
versions? Is it eclipse-related, tomcat-related or does it indicate which
servlet/jsp spec I can use?

Apparently older versions of tomcat support only earlier web module
versions. Other than that, are there other reasons of choosing one web
module version over another?

Thanks again for your responses.


On Sun, Jun 21, 2009 at 1:51 PM, Wes Wannemacher <we...@wantii.com> wrote:
>
> The error indicates that you compiled for a jvm newer than the tomcat
> runtime. For instance you compiled with 1.6 and you are trying to run
> on 1.5. Stick to tomcat 5.5 if that is what godaddy provides. The
> tomcat version doesn't indicate its newness as much as it indicates
> which servlet / jsp spec it implements. To save yourself a headache,
> match major/minor version numbers between your dev and production
> environments. To see the setup I was talking about earlier you can
> find patch files in svn somewhere that show how I set it up on the
> struts zone. The advantage is in its simplicity. I am sure it could be
> optimized for better performance, but I like to stick to simple over
> premature optimization. I am on my BlackBerry, so when I boot up my
> laptop I can send an example config.
> -W
>
> On 6/21/09, Dimitrios Christodoulakis <di...@gmail.com> wrote:
> > It seems that indeed the filters are not starting properly: The
catalina.out
> > log indicates the following:
> >
> > 00:45:40,018 ERROR [/myapp]:3639 - Exception starting filter struts2
> > java.lang.UnsupportedClassVersionError: Bad version number in .class
file
> > at java.lang.ClassLoader.defineClass1(Native Method)
> > at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> > ...
> > ...
> >
> > 00:45:40,044 ERROR [/myapp]:3639 - Exception starting filter
HibernateFilter
> > java.lang.UnsupportedClassVersionError: Bad version number in .class
file
> > at java.lang.ClassLoader.defineClass1(Native Method)
> > at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> > at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> > ...
> > ...
> >
> > is it right to assume that "bad verison number in .class file" means
Tomcat
> > 5.5 is unable to run this struts2-hibernate combination? -- Any advice
on
> > deciphering the above errors?
> >
> > --I tried to run it locally on tomcat 5.5 using eclipse, but turns out I
> > cannot even assign this project to 5.5 because - according to eclipse:
"The
> > server does not support version 2.5 of the J2EE Web module
specification."
> >
> >  So, as a next step would you recommend I upgrade to Tomcat 6.0 on
godaddy,
> > or try to integrate Apache with the existing tomcat 5.5 first to see
what
> > happens?
> >
> > Wes, you mentioned below your favorite way of integrating http + tomcat,
> > would you be able to provide a few general steps how to go about doing
this?
> >
> > Many thanks for any help
> >
> >
> >
> > On Sun, Jun 21, 2009 at 12:09 PM, Dimitrios Christodoulakis <
> > dimi.chr@gmail.com> wrote:
> >>
> >> Thanks for the input. I'll test it locally under 5.5. and  will dig
deeper
> > in the logs and see what I can find. I will let you know.
> >>
> >> Appreciate the insight.
> >>
> >> On Sun, Jun 21, 2009 at 11:00 AM, Wes Wannemacher <we...@wantii.com>
wrote:
> >>>
> >>> I'm with dave. Check the logs, in particular, look for messages about
> >>> whether or not the filter started properly. Also check the httpd
> >>> configuration. There are a few ways to integrate httpd and tomcat.
> >>> Many people will use mod_jk but lately I am in favor of having tomcat
> >>> listen on localhost and have httpd reverse proxy all requests. There
> >>> was a belief for a while that httpd should serve static content and
> >>> tomcat serve jsps only. But any more I find tomcat's performance to be
> >>> good enough to serve the static content as well.
> >>>
> >>> On 6/21/09, Dave Newton <ne...@yahoo.com> wrote:
> >>> > Dimitrios Christodoulakis wrote:
> >>> >> I am having some issues deploying a struts2 application at godaddy
and
> > was
> >>> >> wondering if anyone has dealt with something similar in the past.
The
> >>> >> application runs fine on my local machine with tomcat 6.0. My next
> > step
> >>> >> was
> >>> >> to upload and deploy at godaddy dedicated server which is running
> > tomcat
> >>> >> 5.5
> >>> >
> >>> > Does it run locally under 5.5?
> >>> >
> >>> >> The upload of the war file and expansion works fine, and the static
> > html
> >>> >> display fine too. But as soon as a struts2 action is called, I
always
> > get
> >>> >> the 404 not found error: The requested URL /Menu.action was not
found
> > on
> >>> >> this server.
> >>> >
> >>> > What's in the logs?
> >>> >
> >>> > Dave
> >>> >
> >>> >
---------------------------------------------------------------------
> >>> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>> > For additional commands, e-mail: user-help@struts.apache.org
> >>> >
> >>> >
> >>>
> >>>
> >>> --
> >>> Wes Wannemacher
> >>> Author - Struts 2 In Practice
> >>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and
more
> >>> http://www.manning.com/wannemacher
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>> For additional commands, e-mail: user-help@struts.apache.org
> >>>
> >>
> >
>
>
> --
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

Re: deploying struts2 at godaddy dedicated server - general question

Posted by Wes Wannemacher <we...@wantii.com>.
The error indicates that you compiled for a jvm newer than the tomcat
runtime. For instance you compiled with 1.6 and you are trying to run
on 1.5. Stick to tomcat 5.5 if that is what godaddy provides. The
tomcat version doesn't indicate its newness as much as it indicates
which servlet / jsp spec it implements. To save yourself a headache,
match major/minor version numbers between your dev and production
environments. To see the setup I was talking about earlier you can
find patch files in svn somewhere that show how I set it up on the
struts zone. The advantage is in its simplicity. I am sure it could be
optimized for better performance, but I like to stick to simple over
premature optimization. I am on my BlackBerry, so when I boot up my
laptop I can send an example config.
-W

On 6/21/09, Dimitrios Christodoulakis <di...@gmail.com> wrote:
> It seems that indeed the filters are not starting properly: The catalina.out
> log indicates the following:
>
> 00:45:40,018 ERROR [/myapp]:3639 - Exception starting filter struts2
> java.lang.UnsupportedClassVersionError: Bad version number in .class file
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> ...
> ...
>
> 00:45:40,044 ERROR [/myapp]:3639 - Exception starting filter HibernateFilter
> java.lang.UnsupportedClassVersionError: Bad version number in .class file
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> ...
> ...
>
> is it right to assume that "bad verison number in .class file" means Tomcat
> 5.5 is unable to run this struts2-hibernate combination? -- Any advice on
> deciphering the above errors?
>
> --I tried to run it locally on tomcat 5.5 using eclipse, but turns out I
> cannot even assign this project to 5.5 because - according to eclipse: "The
> server does not support version 2.5 of the J2EE Web module specification."
>
>  So, as a next step would you recommend I upgrade to Tomcat 6.0 on godaddy,
> or try to integrate Apache with the existing tomcat 5.5 first to see what
> happens?
>
> Wes, you mentioned below your favorite way of integrating http + tomcat,
> would you be able to provide a few general steps how to go about doing this?
>
> Many thanks for any help
>
>
>
> On Sun, Jun 21, 2009 at 12:09 PM, Dimitrios Christodoulakis <
> dimi.chr@gmail.com> wrote:
>>
>> Thanks for the input. I'll test it locally under 5.5. and  will dig deeper
> in the logs and see what I can find. I will let you know.
>>
>> Appreciate the insight.
>>
>> On Sun, Jun 21, 2009 at 11:00 AM, Wes Wannemacher <we...@wantii.com> wrote:
>>>
>>> I'm with dave. Check the logs, in particular, look for messages about
>>> whether or not the filter started properly. Also check the httpd
>>> configuration. There are a few ways to integrate httpd and tomcat.
>>> Many people will use mod_jk but lately I am in favor of having tomcat
>>> listen on localhost and have httpd reverse proxy all requests. There
>>> was a belief for a while that httpd should serve static content and
>>> tomcat serve jsps only. But any more I find tomcat's performance to be
>>> good enough to serve the static content as well.
>>>
>>> On 6/21/09, Dave Newton <ne...@yahoo.com> wrote:
>>> > Dimitrios Christodoulakis wrote:
>>> >> I am having some issues deploying a struts2 application at godaddy and
> was
>>> >> wondering if anyone has dealt with something similar in the past. The
>>> >> application runs fine on my local machine with tomcat 6.0. My next
> step
>>> >> was
>>> >> to upload and deploy at godaddy dedicated server which is running
> tomcat
>>> >> 5.5
>>> >
>>> > Does it run locally under 5.5?
>>> >
>>> >> The upload of the war file and expansion works fine, and the static
> html
>>> >> display fine too. But as soon as a struts2 action is called, I always
> get
>>> >> the 404 not found error: The requested URL /Menu.action was not found
> on
>>> >> this server.
>>> >
>>> > What's in the logs?
>>> >
>>> > Dave
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> > For additional commands, e-mail: user-help@struts.apache.org
>>> >
>>> >
>>>
>>>
>>> --
>>> Wes Wannemacher
>>> Author - Struts 2 In Practice
>>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>>> http://www.manning.com/wannemacher
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>
>


-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

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


Re: deploying struts2 at godaddy dedicated server - general question

Posted by Dimitrios Christodoulakis <di...@gmail.com>.
It seems that indeed the filters are not starting properly: The catalina.out
log indicates the following:

00:45:40,018 ERROR [/myapp]:3639 - Exception starting filter struts2
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
...
...

00:45:40,044 ERROR [/myapp]:3639 - Exception starting filter HibernateFilter
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
...
...

is it right to assume that "bad verison number in .class file" means Tomcat
5.5 is unable to run this struts2-hibernate combination? -- Any advice on
deciphering the above errors?

--I tried to run it locally on tomcat 5.5 using eclipse, but turns out I
cannot even assign this project to 5.5 because - according to eclipse: "The
server does not support version 2.5 of the J2EE Web module specification."

 So, as a next step would you recommend I upgrade to Tomcat 6.0 on godaddy,
or try to integrate Apache with the existing tomcat 5.5 first to see what
happens?

Wes, you mentioned below your favorite way of integrating http + tomcat,
would you be able to provide a few general steps how to go about doing this?

Many thanks for any help



On Sun, Jun 21, 2009 at 12:09 PM, Dimitrios Christodoulakis <
dimi.chr@gmail.com> wrote:
>
> Thanks for the input. I'll test it locally under 5.5. and  will dig deeper
in the logs and see what I can find. I will let you know.
>
> Appreciate the insight.
>
> On Sun, Jun 21, 2009 at 11:00 AM, Wes Wannemacher <we...@wantii.com> wrote:
>>
>> I'm with dave. Check the logs, in particular, look for messages about
>> whether or not the filter started properly. Also check the httpd
>> configuration. There are a few ways to integrate httpd and tomcat.
>> Many people will use mod_jk but lately I am in favor of having tomcat
>> listen on localhost and have httpd reverse proxy all requests. There
>> was a belief for a while that httpd should serve static content and
>> tomcat serve jsps only. But any more I find tomcat's performance to be
>> good enough to serve the static content as well.
>>
>> On 6/21/09, Dave Newton <ne...@yahoo.com> wrote:
>> > Dimitrios Christodoulakis wrote:
>> >> I am having some issues deploying a struts2 application at godaddy and
was
>> >> wondering if anyone has dealt with something similar in the past. The
>> >> application runs fine on my local machine with tomcat 6.0. My next
step
>> >> was
>> >> to upload and deploy at godaddy dedicated server which is running
tomcat
>> >> 5.5
>> >
>> > Does it run locally under 5.5?
>> >
>> >> The upload of the war file and expansion works fine, and the static
html
>> >> display fine too. But as soon as a struts2 action is called, I always
get
>> >> the 404 not found error: The requested URL /Menu.action was not found
on
>> >> this server.
>> >
>> > What's in the logs?
>> >
>> > Dave
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> > For additional commands, e-mail: user-help@struts.apache.org
>> >
>> >
>>
>>
>> --
>> Wes Wannemacher
>> Author - Struts 2 In Practice
>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>> http://www.manning.com/wannemacher
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>

Re: deploying struts2 at godaddy dedicated server - general question

Posted by Dimitrios Christodoulakis <di...@gmail.com>.
Thanks for the input. I'll test it locally under 5.5. and  will dig deeper
in the logs and see what I can find. I will let you know.

Appreciate the insight.

On Sun, Jun 21, 2009 at 11:00 AM, Wes Wannemacher <we...@wantii.com> wrote:

> I'm with dave. Check the logs, in particular, look for messages about
> whether or not the filter started properly. Also check the httpd
> configuration. There are a few ways to integrate httpd and tomcat.
> Many people will use mod_jk but lately I am in favor of having tomcat
> listen on localhost and have httpd reverse proxy all requests. There
> was a belief for a while that httpd should serve static content and
> tomcat serve jsps only. But any more I find tomcat's performance to be
> good enough to serve the static content as well.
>
> On 6/21/09, Dave Newton <ne...@yahoo.com> wrote:
> > Dimitrios Christodoulakis wrote:
> >> I am having some issues deploying a struts2 application at godaddy and
> was
> >> wondering if anyone has dealt with something similar in the past. The
> >> application runs fine on my local machine with tomcat 6.0. My next step
> >> was
> >> to upload and deploy at godaddy dedicated server which is running tomcat
> >> 5.5
> >
> > Does it run locally under 5.5?
> >
> >> The upload of the war file and expansion works fine, and the static html
> >> display fine too. But as soon as a struts2 action is called, I always
> get
> >> the 404 not found error: The requested URL /Menu.action was not found on
> >> this server.
> >
> > What's in the logs?
> >
> > Dave
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> --
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: deploying struts2 at godaddy dedicated server - general question

Posted by Wes Wannemacher <we...@wantii.com>.
I'm with dave. Check the logs, in particular, look for messages about
whether or not the filter started properly. Also check the httpd
configuration. There are a few ways to integrate httpd and tomcat.
Many people will use mod_jk but lately I am in favor of having tomcat
listen on localhost and have httpd reverse proxy all requests. There
was a belief for a while that httpd should serve static content and
tomcat serve jsps only. But any more I find tomcat's performance to be
good enough to serve the static content as well.

On 6/21/09, Dave Newton <ne...@yahoo.com> wrote:
> Dimitrios Christodoulakis wrote:
>> I am having some issues deploying a struts2 application at godaddy and was
>> wondering if anyone has dealt with something similar in the past. The
>> application runs fine on my local machine with tomcat 6.0. My next step
>> was
>> to upload and deploy at godaddy dedicated server which is running tomcat
>> 5.5
>
> Does it run locally under 5.5?
>
>> The upload of the war file and expansion works fine, and the static html
>> display fine too. But as soon as a struts2 action is called, I always get
>> the 404 not found error: The requested URL /Menu.action was not found on
>> this server.
>
> What's in the logs?
>
> Dave
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

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


Re: deploying struts2 at godaddy dedicated server - general question

Posted by Dave Newton <ne...@yahoo.com>.
Dimitrios Christodoulakis wrote:
> I am having some issues deploying a struts2 application at godaddy and was
> wondering if anyone has dealt with something similar in the past. The
> application runs fine on my local machine with tomcat 6.0. My next step was
> to upload and deploy at godaddy dedicated server which is running tomcat 5.5

Does it run locally under 5.5?

> The upload of the war file and expansion works fine, and the static html
> display fine too. But as soon as a struts2 action is called, I always get
> the 404 not found error: The requested URL /Menu.action was not found on
> this server.

What's in the logs?

Dave

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