My webapp dont start but gives an error when loaded.

Asked by ruthgard on 2009-11-22

I have been having problems with different webapps, small or big, homemade or communitymade that they wont work under the ubuntu packaged tomcats. They wont load properly even tho they work under the zipped linux releases of tomcat from downloaded from tomcats website. Why does this not work?

As an example here is some output form Catalina.out

2009-nov-22 20:10:31 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
2009-nov-22 20:10:31 org.apache.catalina.core.StandardContext start
SEVERE: Context [/ekonomi] startup failed due to previous errors

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu tomcat6 Edit question
Assignee:
No assignee Edit question
Solved by:
ruthgard
Solved:
2009-11-22
Last query:
2009-11-22
Last reply:

The tomcat packaged with Ubuntu comes with the security manager turned on. Under /etc/tomcat6/policy.d you can find the preconfigured policies. These are very strict so you need to loosen them up for the webapplication to work properly. Either that or you can turn the security manger off altogether, to do that edit the /etc/init.d/tomcat6 file and change the line:

TOMCAT6_SECURITY=yes

To say

TOMCAT6_SECURITY=no

Restart tomcat using that script and your webapp should be working!

Vikram Dhillon (dhillon-v10) said : #2

To load webapps, start Tomcat, then you have to browse to the localhost page,
click on the manager and then deploy your apps to start them. Hope this helps

--
Regards,
Vikram Dhillon

On Sunday 22 November 2009 03:10:55 pm ruthgard wrote:
> New question #91295 on tomcat6 in ubuntu:
> https://answers.launchpad.net/ubuntu/+source/tomcat6/+question/91295
>
> I have been having problems with different webapps, small or big, homemade
> or communitymade that they wont work under the ubuntu packaged tomcats.
> They wont load properly even tho they work under the zipped linux releases
> of tomcat from downloaded from tomcats website. Why does this not work?
>
> As an example here is some output form Catalina.out
>
> 2009-nov-22 20:10:31 org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> 2009-nov-22 20:10:31 org.apache.catalina.core.StandardContext start
> SEVERE: Context [/ekonomi] startup failed due to previous errors
>