Hi all,
I have installed tomcat 5.5 , now i want to run a simple servlet programme, on web browser, how do i deploy my folder into tomcat 5.5.....i am giving http://localhost:8080. its giving page cannot be displayed.........
please help me out.
Hi all,
I have installed tomcat 5.5 , now i want to run a simple servlet programme, on web browser, how do i deploy my folder into tomcat 5.5.....i am giving http://localhost:8080. its giving page cannot be displayed.........
please help me out.
As asked about OS/installation and as pointed toward contexts, the immediate problem is usually not deployment syntax but Tomcat not actually serving requests. Common causes for "page cannot be displayed" are Tomcat not started, port 8080 being used by another process, firewall blocking the port, or the web application not placed where Tomcat will load it.
Basic checks and commands (typical):
Windows (console in Tomcat/bin):
startup.bat
Linux/Unix:
$CATALINA_HOME/bin/startup.sh
# or
$CATALINA_HOME/bin/catalina.sh start
Check listening:
Windows: netstat -ano | findstr 8080
Linux: netstat -plnt | grep 8080 Deployment essentials (what the app folder must contain): a webapp directory (or a WAR) under Tomcat's webapps directory; static pages and JSPs at the app root; WEB-INF holding web.xml (if needed), classes/ with compiled servlet .class files in package folders, and lib/ for JAR dependencies. The context path is the folder/WAR name, so a folder named myapp is reached at http://localhost:8080/myapp/ (JSPs inside that folder are addressable directly).
Troubleshooting tips and cautions: check the Tomcat logs directory (catalina logs, localhost logs) for startup errors or exceptions; confirm JAVA_HOME/JRE_HOME points to a compatible JVM; verify no other service (IIS, another app) is bound to 8080; ensure firewall/antivirus allows local connections to 8080. The Manager webapp can deploy WARs from the browser but requires users in conf/tomcat-users.xml. Note that Tomcat 5.5 is long out of support; for new development, a current Tomcat and recent Java are strongly recommended.
Jump to Post— peter_budo 2,532Dunno why you did not install latest Tomcat 6, but hey...
What we need to know is what OS you using and what installation steps you took to install Tomcat on your pc.
Dunno why you did not install latest Tomcat 6, but hey...
What we need to know is what OS you using and what installation steps you took to install Tomcat on your pc.
ishlux,
You have to create a context - a folder in which you may add your jsp/servlet programs/pages.
Read http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
SUMMARY: The Context element represents a web application, which is run within a particular virtual host. Each web application is based on a Web Application Archive (WAR) file, or a corresponding directory containing the corresponding unpacked contents, as described in the Servlet Specification (version 2.2 or later).
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.