PDA

View Full Version : Tomcat @ 8090


poonam.mantri
28-01-2010, 18:35
Hi,

I have my domain 2golive.com , I have uplaoded the another instance of tomcat server @ /root/rpms/java/adobe/tomcat , basically this is tomcat server configured to work with blazeDS & Adobe FLEX .

I have following lines in server.xml @ /root/rpms/java/adobe/tomcat/conf/

<Server port="8090" shutdown="SHUTDOWN">
....
<Host name="www.2golive.com" appBase="/root/rpms/java/adobe/tomcat/webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">

I have started the tomcat , but I am still not able to access the sample application @ www.2golive.com:8090/samples

I have checked that the samples directory is present at location with various application in it.

Please help me in getting the above URL to work?

Thanks
Poonam

Kees de Kooter
28-01-2010, 21:18
Dear Poonam,

You can find the port your tomcat instance in listening to by finding the http connector section. It looks like this:


<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />


The default port is 8080.

Cheers,

poonam.mantri
29-01-2010, 04:00
this is what I have in connector tag in server.xml :

<Connector port="8400" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="9400" />


should I change it to 8090 from 8400 as my <Server port="8090" shutdown="SHUTDOWN"> I have this at first line?

Thanks
Poonam

Kees de Kooter
29-01-2010, 09:10
If you want to access your application at this port this is the place to configure that. Of course in that case you should change the port number to in the <Server> tag to a different, free port number.

poonam.mantri
29-01-2010, 10:13
Kees,

I need to run my application on 8400 port, can you pls tell me what should be configuration in server.xml for this?

Poonam

Kees de Kooter
29-01-2010, 10:16
In your previous post you mentioned that you have the connector set to port 8400. That should be the correct setting. You should be able to access your app at port 8400 now.

poonam.mantri
29-01-2010, 10:22
Kees,

true, I have connector set to 8400 , but still I am unable to access the link www.2golive.com:8400/samples


this works fine on my local machine. Is there any thing else to do with firewall or any other stuff?

Thanks
Poonam

Kees de Kooter
29-01-2010, 10:25
Yes, firewalls usually only allow traffic on port 80. So in this case you would need to open up the firewall for port 8400.

poonam.mantri
29-01-2010, 10:32
Thanks kees,

how do I confirm that if firewall allows me or not for 8400?

Thanks
Poonam

Kees de Kooter
29-01-2010, 10:36
The easiest way would be to check with the administrator controlling the firewall.

Is it a linux server? In that case you should check the ip tables configuration.

poonam.mantri
29-01-2010, 20:27
Kees,

Below is the response I got from my hosting admin:

I do see several entries in /var/log/tomcat5/catalina.out that may be applicable:

Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
Jan 29, 2010 1:04:41 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/../lib/i386
Jan 29, 2010 1:04:41 PM org.apache.coyote.http11.Http11BaseProtocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8081
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEnd point(PoolTcpEndpoint.java:298)
at org.apache.coyote.http11.Http11BaseProtocol.init(H ttp11BaseProtocol.java:139)
at org.apache.catalina.connector.Connector.initialize (Connector.java:1017)
at org.apache.catalina.core.StandardService.initializ e(StandardService.java:578)
at org.apache.catalina.core.StandardServer.initialize (StandardServer.java:782)
at org.apache.catalina.startup.Catalina.load(Catalina .java:504)
at org.apache.catalina.startup.Catalina.load(Catalina .java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstr ap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:432)
Jan 29, 2010 1:04:41 PM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8081
at org.apache.catalina.connector.Connector.initialize (Connector.java:1019)
at org.apache.catalina.core.StandardService.initializ e(StandardService.java:578)
at org.apache.catalina.core.StandardServer.initialize (StandardServer.java:782)
at org.apache.catalina.startup.Catalina.load(Catalina .java:504)
at org.apache.catalina.startup.Catalina.load(Catalina .java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstr ap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:432)
Jan 29, 2010 1:04:41 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 836 ms
Jan 29, 2010 1:04:41 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 29, 2010 1:04:41 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
Jan 29, 2010 1:04:41 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 29, 2010 1:04:41 PM org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url for /javax/servlet/resources/web-jsptaglibrary_2_0.xsd
Jan 29, 2010 1:04:41 PM org.apache.catalina.core.NamingContextListener addResource
WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]
Jan 29, 2010 1:04:42 PM org.apache.catalina.core.NamingContextListener addResource
WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]
Jan 29, 2010 1:04:42 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive samples.war
************************************************** ****************************
* *
* Unable to connect to the samples database. *
* You must start the samples database before you can run the samples. *
* To start the samples database: *
* 1. Open a command prompt and go to the {install-dir}/sampledb dir *
* 2. Run startdb.bat (Windows) or startdb.sh (Unix-based systems) *
* *
************************************************** ****************************
Jan 29, 2010 1:04:43 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ds-console.war
Jan 29, 2010 1:04:43 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive blazeds.war
Jan 29, 2010 1:04:44 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRul e: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterR ule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingR ule: Redirect URL: http://jakarta.apache.org]]
Jan 29, 2010 1:04:44 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 29, 2010 1:04:44 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 29, 2010 1:04:44 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 29, 2010 1:04:44 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 29, 2010 1:04:44 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled



Thanks
Poonam

kjkoster
29-01-2010, 20:42
Hi,

Check out http://java-monitor.com/forum/showthread.php?t=22

Kees Jan

poonam.mantri
29-01-2010, 20:49
kees,

ok, I have now my tomcat working :

[root@136169-www1 tomcat5]# netstat -ntlp | grep 8450
tcp 0 0 0.0.0.0:8450 0.0.0.0:* LISTEN 32618/java

what does this means? am I on right track? Is tomcat listening to all ipaddress now?

Thanks
Poonam

Kees de Kooter
01-02-2010, 21:42
Yes that is correct.