This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!

jasonsmith nath

Greenhorn
+ Follow
since Dec 31, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
1
Total given
3
Given in last 30 days
3
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by jasonsmith nath

Hello Good Folks of CodeRanch,

I read about servlets. They are run by Servlet container on Web server. Does each servlet hosted on a web server has a separate container to run it or there is only one Container that runs all Servlets installed on that server?

thank you very much
5 days ago
Hello Good folks

Today I wrote a simple servelet and ran it and I am able to see it working.

But no catalina log files are being created today. Yesterday I have catalina log files at C:\Program Files\Apache Software Foundation\Tomcat 7.0\logs.

Does catalina log files are genearated only when there are issues?

Thank You folks
2 weeks ago
I restarted my computer and it works now.
2 weeks ago
Catalina log has the follwoing information:

I made sure that Apache Tom cat service is not running in Services.msc

Dec 31, 2018 1:19:23 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT has finished in 59 ms
Dec 31, 2018 1:19:23 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1452 ms
Dec 31, 2018 1:19:23 PM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[localhost:8005]:
java.net.BindException: Address already in use: NET_Bind
at java.base/java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.base/java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.base/java.net.PlainSocketImpl.bind(Unknown Source)
at java.base/java.net.ServerSocket.bind(Unknown Source)
at java.base/java.net.ServerSocket.<init>(Unknown Source)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:444)
at org.apache.catalina.startup.Catalina.await(Catalina.java:798)
at org.apache.catalina.startup.Catalina.start(Catalina.java:744)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)

Dec 31, 2018 1:19:23 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Dec 31, 2018 1:19:23 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
Dec 31, 2018 1:19:23 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Dec 31, 2018 1:19:23 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
2 weeks ago
Thank You. Adding that package fixed the PrintWriter problem.

When I run the servlet, it gives 404 error. Tomcat is up and running.

should I start a new topic for this ?

Thank you for supporting me. I will be in a better shape soon.

2 weeks ago
Hello folks,

I just started learning Java Web development. I tried doing HelloWorld servlet.

I am getting 'PrintWriter can't be resolved to a type' error. I didn't use Maven to build this project.
Any suggestions for this beginner is greatly appreciated.

Thank you


2 weeks ago