TurnKey Linux Virtual Appliance Library

Cannot run deployed app on Tomcat on Apache Appliance

Hi Everyone!

I have started using  Tomcat on Apache Appliance. I deploy apps with success but I can't run them. When I  try to open app from tomcat manager I get apache information "The requested URL /app10 was not found on this server. Apache/2.2.8 (Ubuntu) mod_jk/1.2.25 mod_ssl/2.2.8 OpenSSL/0.9.8g Server at 192.168.95.135 Port 443". Default installed apps like admin and host-manager work well.

Thanks for any help

Same problem

I'm having the same problem as above.  I'm able to upload a .WAR file through the Tomcat web application manager, which the Tomcat web application manager then believes it has deployed successfully.

However when I try to access the application I'm told the file is not there. 

I have looked in the /var/www folder and there are no files there for my application.  If I extract the files from my WAR file there myself and try to access the web application the .jsp files are served up without being processed by Tomcat (i.e. as downloadable files).

I have tried uploading my .WAR file to your standalone Tomcat Applicance and it works there, so there must be something wrong if going through exactly the same procedure does not work on your Tomcat on Apache appliance?

Thanks

Same problem take two!

It seems this is a common problem and now more than 2 months old.

Any support?

Thanks in advance!

Liraz Siri's picture

This might be a bug...

Sorry guys for the lack of response, we're in the middle of a development cycle for a major feature (backup and migration) and it's taking up most of our resources. It would be a big help if others in the community who know their Apache could take a stab at this and help figure it out.

Meanwhile I've filed a new bug report and we'll be taking a closer look at this for the next release batch: https://bugs.launchpad.net/turnkeylinux/+bug/611104

This is probably the result of a bad Apache configuration directive. If anyone figures it out, post the fix here.

Alon Swartz's picture

Not a bug, just requires configuration

Sorry for the late response, I just found this thread from the bug report Liraz posted (I'm cleaning house for the Lucid release).

The tomcat-apache appliance is a little different to the standalone tomcat appliance. It uses apache to proxy back requests to tomcat using Mod JK. Therefore, each application/war that you want apache to know about, needs to be configured in /etc/tomcat5.5/mod_jk.conf

I provided an example in this thread.

Note to self: update the appliance page / documentation with this information.

Tomcat on Apache instructions (v12.0)

Great appliance.  And this old forum reply did just the trick getting the proxy working.  A quick reference to this on the the appliance page might save some confusion for those of us still learning.

Thanks guys.  Love your work!

Richard

Alon Swartz's picture

Added link to doc page

You're absolutely right. I added a link from the appliance page to the doc page. It still needs to be fleshed out [ hint hint :) ] but at least includes links to the relevant threads at the moment. 

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)