tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Marnell <jlm...@yahoo.com>
Subject RE: Cannot run my first servlet
Date Wed, 28 Aug 2002 14:15:22 GMT

A thousand thanks - it's working. On another note - I noticed the following. I wonder if it's
a real problem or maybe just complaining that I don't have mod_jk installed - any ideas?
[root@redfish logs]# more apache_log.2002-08-26.txt
2002-08-26 12:12:52 [org.apache.catalina.connector.warp.WarpConnector] Error acc
epting requests
java.net.SocketException: Socket closed
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
        at java.net.ServerSocket.implAccept(ServerSocket.java:438)
        at java.net.ServerSocket.accept(ServerSocket.java:409)
        at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.ja
va:590)
        at java.lang.Thread.run(Thread.java:536)
Thanks again..jim
 "Sexton, George" wrote:try: /servlet/Form1" method=post>

-----Original Message-----
From: Jim Marnell [mailto:jlmswf@yahoo.com]
Sent: 28 August, 2002 7:14 AM
To: tomcat-user@jakarta.apache.org
Subject: Cannot run my first servlet



I give up - I hope someone can look over the setup and tell me what's wrong.
I'm getting the 404 resource not available when I try to invoke the servlet
from action statement of form. I'm concerned that I don't have the servlet
URI correct on the action statement.

[root@redfish jmarnell]# pwd
/usr/local/src/jakarta-tomcat-4.0.4/webapps/jmarnell
[root@redfish jmarnell]# ls -F
form1.html WEB-INF/
[root@redfish jmarnell]# ls -F WEB-INF
classes/ src/ web.xml
[root@redfish jmarnell]# more WEB-INF/web.xml
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">


Form1 application
process a form's input

Form1
Form1


Form1
/Form1


[root@redfish jmarnell]# ls WEB-INF/classes
Form1.class
[root@redfish jmarnell]# more form1.html


Enter your message below.





 [input] 

[root@redfish jmarnell]#


Let me know if you need more info and thanks.





---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes


--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message