Hi, I have question of which software I need to download inorder to test simple JavaServlets. I go to the Java site it is saying I need to install J2EE. But after all loading it is like GUI interface there we need to go so many steps inorder to run a simple Servlet. How can I test servlets other than using J2EE ! Greatly appreicate the reply. Thanks
Andres, I downloaded and configured the server as per the link which u sent. I do have some problems while starting up the server. Here I am giving the errors, pls look into that and help me if you can. I would greatly appreciate it. C:\Tomcat403\bin>startup Using CATALINA_BASE: C:\Tomcat403 Using CATALINA_HOME: C:\Tomcat403 Using CATALINA_TMPDIR: C:\Tomcat403\temp Using JAVA_HOME: C:\j2sdk14 C:\Tomcat403\bin> In the other window: Catalina.start: LifecycleException: null.open: java.net.BindException: Address already in use: JVM_Bind:80 LifecycleException: null.open: java.net.BindException: Address already in use: JVM_Bind:80 at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne ctor.java:1130) at org.apache.catalina.core.StandardService.initialize(StandardService.j ava:454) at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav a:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) ----- Root Cause ----- java.net.BindException: Address already in use: JVM_Bind:80 at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j ava:950) at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne ctor.java:1128) at org.apache.catalina.core.StandardService.initialize(StandardService.j ava:454) at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav a:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) I couldn't understand why it is coming like this. Thanks
Hi, I think the problem is with the port number. I had Oracle in my machine. When I used the http://localhost:8080 some oracle related stuff is coming up. I think the 80 port is using Oracle. How to use the other and how can I choose and if I choose one how to call the servlets like instead of http://localhost:8080 we need to use other alternative. Appreciate the reply Thanks
In tomcat 4.0.4 beta 3 there is a file under C:\Apache Tomcat 4.0\conf called server.xml in that xml change the 8080 to whatever value you want in the following tag. <Connector className="org.apache.catalina.connector.http.HttpConnector" port="8080" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="60000"/> <!-- Note : To disable connection timeouts, set connectionTimeout value to -1 -->