|
Resources
Java Application Server
 |
A pre-built AMI for running java applications
| Submitted By: |
Andres
|
| AMI ID: |
ami-443bde2d |
| AMI Manifest: |
appservers/jee/tomcat.manifest.xml |
| License: |
Public |
|
|
 |
No Longer Supported!
This was a nice example at the time but things have evolved quickly and I wouldn't recommend using this as a base image.
About this AMI
- Published by Andres March ([http://www.andresmarch.com]).
- This public AMI is a Debian lenny distro with Java, Apache 2.2, and Tomcat 5.5.
- This image contains the following daemons / services:
What's New?
Updated 2008.03.08:
- Added tomcat manager, admin, and docs
- Upgraded many packages
- Added prebundle script for cleaning up various things
- Changed permissions for various directories
- Added hosts file
- Added slash to the end of the proxied url
Updated 2007.12.21
Added default configs so apache forwards everything to tomcat
Many Thanks To: magnus66, talis2020
|
No discussion has been created for this document.
|
|
|
can't get Tomcat working, Dec 22, 2007 1:30 PM
Reviewer: glen lewis
getting this:
INFO: Starting Coyote HTTP/1.1 on http-8180
Dec 22, 2007 9:09:02 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Dec 22, 2007 9:09:02 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/52 config=null
Dec 22, 2007 9:09:02 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Dec 22, 2007 9:09:02 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1093 ms
Dec 22, 2007 9:09:50 PM org.apache.jk.common.MsgAjp processHeader
SEVERE: BAD packet signature 18245
Dec 22, 2007 9:09:50 PM org.apache.jk.common.ChannelSocket processConnection
SEVERE: Error, processing connection
java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:626)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:583)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:691)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
Dec 22, 2007 9:09:50 PM org.apache.jk.common.MsgAjp processHeader
|
|
Updated, Dec 22, 2007 9:59 PM
Reviewer: Andres
The previous version had all the software but no pre-configuration. Now when the instance is started the default tomcat and apache configs are in place and you can see the result in the browser.
|
|
Is it configured and tested?, Feb 7, 2008 2:10 PM
Reviewer: magnus66
I had to edit /etc/apache2/sites-available/default
Added a slash after 8009 on line 6.
ProxyPass / ajp://localhost.localdomain:8009/
Added the file /etc/hosts with the line
127.0.0.1 localhost.localdomain localhost
After restart of Apache and Tomcat I could open both html and jsp files in /var/lib/tomcat5.5/webapps/ROOT
I´m no Linux/Apache/Tomcat guru, so my question is:
Are there more things to configure to have Apache & Tomcat work properly?
Is there a newer AMI?
Thanks
Magnus
|
|
|
|
 |
|
|