> Date: Fri=2C 8 Jul 2011 10:39:16 -0700
> From: its_toasted@yahoo.com
> Subject: Re: Deploying emboss in Opal2
> To: users@tomcat.apache.org
>=20
> ----- Original Message -----
>=20
> > From: jeroen vannevel <jer_vannevel@hotmail.com>
> > To: users@tomcat.apache.org
> > Cc:=20
> > Sent: Friday=2C July 8=2C 2011 6:37 AM
> > Subject: RE: Deploying emboss in Opal2
> >=20
> >=20
> >=20
> >=20
> >> Date: Fri=2C 8 Jul 2011 15:21:05 +0200
> >> From: aw@ice-sa.com
> >> To: users@tomcat.apache.org
> >> Subject: Re: Deploying emboss in Opal2
> >>=20
> >> jeroen vannevel wrote:
> >> >=20
> >> >=20
> >> >> Date: Fri=2C 8 Jul 2011 14:04:37 +0200
> >> >> From: aw@ice-sa.com
> >> >> To: users@tomcat.apache.org
> >> >> Subject: Re: Deploying emboss in Opal2
> >> >>
> >> >> jeroen vannevel wrote:
> >> >>> Hello
> >> >>> =20
> >> >>> I've installed Opal2 on my Tomcat 5.5.33 server and now=20
> > I'd like to make the emboss programs available in this.
> >> >>> I've been working on this for two days and I just seem to=20
> > trample at the same spot.
> >> >>> Perhaps someone has the required files or could tell me how to=20
> > deal with this specific case?
> >> >>> I've tried compiling all the emboss programs and put them=20
> > in a .war package but after uploading this to Tomcat I just keep gettin=
g=20
> > 'The requested r=3D
> >> >>> esource () is not available.' error messages.
> >> >>> =20
> >> >> It is possible that someone here would not the emboss application=
=2C=20
> > but more likely that=20
> >> >> they would not. This is just a preliminary to ask : does the=20
> > emboss program have a=20
> >> >> mailing list=2C and did you ask there ?
> >> >>
> >> >> Other than that=2C it would help if you provide some additional=20
> > details :
> >> >> - on what platform are you trying this ?
> >> >> - where (in what directory) is Tomcat installed ?
> >> >> - what is the path to the Tomcat "webapps" directory ?
> >> >> - what is the name of your .war file ?
> >> >> - how are you uploading your .war file to Tomcat ?
> >> >> - where does the .war file end up when it is uploaded ?
> >> >> - in the Tomcat configuration file ..(tomcat_dir)/conf/server.xml=
=2C=20
> > there is (at least) one=20
> >> >> <Host> tag. Can you copy it here ?
> >> >>
> >> >=20
> >> > They do=2C but I've just signed up there and I'm not sure if=20
> > it's a very active one. Figured I might as well test my luck and ask he=
re.
> >> >=20
> >> > As for additional information:
> >> >=20
> >> > - Ubuntu 11.04
> >> > - /home/myname/Downloads/apache-tomcat-5.5.33/
> >> > - /home/myname/Downloads/apache-tomcat-5.5.33/webapps/
> >> > - emboss.war
> >> > - using the built-in File-Upload menu in Tomcat's Manager. (so the=
=20
> > 2nd option to deploy an app)
> >> > - /home/myname/Downloads/apache-tomcat-5.5.33/webapps/emboss.war
> >> >=20
> >> > <Host name=3D"localhost" appBase=3D"webapps"
> >> > unpackWARs=3D"true" autoDeploy=3D"true"
> >> > xmlValidation=3D"false"=20
> > xmlNamespaceAware=3D"false">
> >> > <Alias>10.0.102.165</Alias>
> >> > </Host>
> >> >=20
> >> At first sight=2C that all looks good to me (except a detail irreleva=
nt here)
> >> Next questions :
> >> - what is the URL you use=2C to try to access this application ?
> >> - what do the Tomcat logfiles say ?
> >>=20
> >> .. and=2C if the URL you used was not the same=2C what happens when y=
ou try to=20
> > access :
> >> http://your-host-name[:port]/emboss
> >>=20
> >>=20
> >> And the irrelevant detail is :
> >> If the above <Host> tag is the only one which is contained in the=20
> > server.xml file=2C then=20
> >> the line
> >> <Alias>10.0.102.165</Alias>
> >> is unnecessary. Tomcat will default to this Host anyway for all acce=
sses.
> >>=20
> > The URL I use is http://localhost:8080/emboss=2C as you said it should =
be.
> > Perhaps it is of use to know that http://localhost:8080/opal2 does work=
and=20
> > shows me the page I expect there.
> >=20
> > The logfiles from catalina.out when restarting the service and browsing=
to the=20
> > emboss location:
> > http://pastebin.com/UUn2dxmD
> >=20
> >=20
> > I've used that Alias tag to try and get another program in opal2 to use=
this=20
> > IP adress so it would've been accessible from somewhere else in the net=
work.
> > This failed=2C the application in opal2 (it was called Babel) kept link=
ing to=20
> > http://localhost instead of the alias.
> > Not that it really matters=2C we didn't need that application and it wa=
s for=20
> > testing purposes.
>=20
>=20
> The log files show that there is something else running on port 8080:
>=20
> SEVERE: Error initializing endpoint
> java.net.BindException: Address already in use:8080
>=20
> Are you running both Ubuntu's installation of Tomcat and one downloaded f=
rom tomcat.apache.org?
>=20
> Just run one copy. You can get everything running in one Tomcat by using =
the manager application and installing WAR files. See:
>=20
> http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html
>=20
>=20
> for how this works.
>=20
> Accessing Tomcat at port 8080 from another host should be fairly straight=
forward. Just go to:
>=20
> http://<ip-address>:8080/opal2
>=20
> to get to the Opal 2 application (for example).
>=20
> If your hostname / IP address is in DNS (check with your network person)=
=2C or of the hostname / IP address exists in the other machine's host file=
=2C then:
>=20
> http://<hostname>:8080/opal2
>=20
> should work.
>=20
> I don't know Ubuntu Linux (I run Fedora)=2C but accessing http://<hostnam=
e>:8080/opal2 from a remote machine might also run into some firewall issue=
s. In Fedora=2C I would add the following line to /etc/sysconfig/ipatables =
and restart the firewall.
>=20
> -A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -s 192.168.0.0/2=
4 -j ACCEPT
>=20
> Adjust the 192.168.0.0/24 to meet your needs. I suspect it would be somet=
hing like:
>=20
> 10.0.102.0/24
>=20
>=20
> to grant access to your local subnet.
>=20
> When you go to http://localhost=2C you're probably hitting Ubuntu's insta=
llation of an Apache HTTPD server=2C and not Apache Tomcat. Without install=
ing and configuring mod_jk (or mod_proxy_ajp=2C or mod_proxy_http)=2C an in=
stallation of Apache HTTPD won't know anything about what's running on a To=
mcat server.
>=20
> To do then:
>=20
> 1. Make sure you only have one copy of Tomcat running
>=20
> 2. Make sure there's nothing else running on port 8080 by running this on=
the command=20
> line:
>=20
> sudo netstat -tlnp | grep 8080
>=20
> You'll have to run this as root since netstat won't report on processes y=
ou don't own.
>=20
> If something shows up=2C then another process is running on that port. Fo=
r example:
>=20
> tcp 0 0 :::8080 :::* LISTEN 1=
2565/java
>=20
>=20
> The number 12565 is the process that is listening on port 8080. A quick:
>=20
> ps -aef | grep 12565 | grep -v grep
>=20
>=20
> shows the following on my system.
>=20
> mdeggers 12565 1 0 10:18 pts/0 00:00:03 /usr/jre/bin/java
> -Djava.util.logging.config.file=3D
> /home/mdeggers/Apache/apache-tomcat-6.0.29/conf/logging.properties
> -Dlog4j.home=3D/home/mdeggers/Apache/apache-tomcat-6.0.29/logs
> -Dderby.system.home=3D/home/mdeggers/Apache/apache-tomcat-6.0.29/databa=
ses
> -Djava.util.logging.manager=3Dorg.apache.juli.ClassLoaderLogManager
> -Djava.library.path=3D/home/mdeggers/Apache/apache-tomcat-6.0.29/bin/li=
bs
> -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=3Dphoenix
> -Dcom.sun.management.jmxremote.ssl=3Dfalse
> -Dcom.sun.management.jmxremote.authenticate=3Dfalse
> -Djava.endorsed.dirs=3D/home/mdeggers/Apache/apache-tomcat-6.0.29/endor=
sed
> -classpath /home/mdeggers/Apache/apache-tomcat-6.0.29/bin/bootstrap.jar
> -Dcatalina.base=3D/home/mdeggers/Apache/apache-tomcat-6.0.29
> -Dcatalina.home=3D/home/mdeggers/Apache/apache-tomcat-6.0.29
> -Djava.io.tmpdir=3D/home/mdeggers/Apache/apache-tomcat-6.0.29/temp
> org.apache.catalina.startup.Bootstrap start
>=20
>=20
> In short=2C Tomcat 6.0.29.
>=20
> Another way to discover this is with the ss command.
>=20
> ss -anp | grep 8080
>=20
>=20
> Gives the following information on my system:
>=20
> LISTEN 0 100 :::8080 :::* users:(("java=
"=2C12565=2C37))
>=20
>=20
> Again=2C the process ID (pid) 12565 is the important piece of information=
.
>=20
> 3. Finally=2C make sure your firewall allows remote connections to port 8=
080
>=20
> Hope this is useful.
>=20
> . . . . just my two cents.
>=20
> /mde/
>=20
Thanks for the extensive answer!
I've looked at the port=2C but it only shows my tomcat installation so I as=
sume I got these errors because I wanted to start tomcat to soon after shut=
ting down. I think the logs show that it got booted after 2 errors.
As for the networking solutions: thanks! I'll configure these as soon as I =
can get these programs running
---------------------------------------------------------------------
To unsubscribe=2C e-mail: users-unsubscribe@tomcat.apache.org
For additional commands=2C e-mail: users-help@tomcat.apache.org
=20
=
|