Re: help with tomcat 5 - mod_jk2 - apache 2

2004-06-28 Thread fix
Okay this was a Typo and i fixed it in the workers.properties file. I also
put an empty jk2.properties file in the tomcat conf directories.
However I don't really understand how you can change the jvmRoute to
localhost? I have 2 instances of tomcat, I can't name them both localhost,
can I?
I already tried tomcat1 and tomcat2, but this didn't work either.

More ideas are welcome?

Bjorn

 Hi,

 perhaps it is only a typo, but

 stickSession=1 is wrong should be
 stickySession=1

 Another thing is naming of jvmRoute=localhost:1009. We didn't include
 port here.

 The jk2.properties file is empty in our configuration.


 hope this helps a bit.

 Carsten



 fix wrote:

Hey there,

I've been searching for a long time know and can't seem to find a
solution. I'm settin up a new production server (pIV 4 gig mem) and
wanted to run 1 apache in front of several tomcat instances.
I've set the whole thing up and it works almost, only the stickySession
attribute isn't getting picked up right or something. If I try to
access our application I get switched between the 2 instances.
here is my workers2.properties file:
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serversfile=/tmp/jk2.shm
size=100

[lb:lb_01]
info=Default load balancer.
debug=0
stickSession=1

[channel.socket:localhost:11009]
tomcatId=localhost:11009
lb_factor=100
group=lb_01

[channel.socket:localhost:12009]
tomcatId=localhost:12009
lb_factor=100
group=lb_01

[status:status]
info=Status worker, displays runtime informations


[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:status

[uri:/jsp-examples/*]
info=Map all the JSP examples
group=lb_01

[uri:/servlets-examples/*]
info=Map all the servlet examples
group=lb_01

[uri:/loadtest/*]
info=testing the load balancer
group=lb_01

one tomcat instance

jk2.properties
## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
channelSocket.port=11009
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess

server.xml (what is off importance)

 Engine name=Standalone defaultHost=localhost debug=0
 jvmRoute=localhost:11009
 Connector port=11009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /

1 thing what's not totaly clear to me is why you have an jk2.properties
file and still have to configure the AJP connector. I initialy thought
this was because the AJP connector worked with TCP and the
jk2.properties was for the UNIX sockets but I think I messed that one
up. :)
I'm running tomcat5 latest release and the apache 2 from debian
testing. It is the worker version. I checked it with apache2 -l and i
got this
  core.c
  mod_access.c
  mod_auth.c
  mod_log_config.c
  mod_logio.c
  mod_env.c
  mod_setenvif.c
  worker.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_negotiation.c
  mod_dir.c
  mod_userdir.c
  mod_alias.c
  mod_so.c

this is correct no?

these mods are enabled:

cgi.load  cgid.conf  cgid.load  jk2.load  ssl.conf  ssl.load
usertrack.load

Has anybody had this problem before? I already spent a few houres on
google   and rewrote my properties file several times but always the
same result.
some last info:

Apache/2.0.49 (Debian GNU/Linux) mod_jk2/2.0.4 mod_ssl/2.0.49
OpenSSL/0.9.7d Server at 10.0.0.192 Port 80
thank you







-
To unsubscribe, e-mail: [EMAIL PROTECTED] For
additional commands, e-mail: [EMAIL PROTECTED]





 --



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WebApp config best practice

2004-06-28 Thread fix
Hi,

Tomcat forbids http access to the WEB-INF directory so nobody can receive
this file from a http request. They have to have a ssh/terminal
services/ftp or other direct connection to your directory. If the security
to the machine is good then you files will be safe as well.
regards

Bjorn

 Where is the best practice for deploying your WebApp configuration
 files? For example a database config file which contains production db
 password. Most apps I have seen use WEB-INf/config or WEB-INF/classes -
 but this is a no-no from security guys as it is under the document
 root.

 Thanks

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



help with tomcat 5 - mod_jk2 - apache 2

2004-06-25 Thread fix
Hey there,

I've been searching for a long time know and can't seem to find a
solution. I'm settin up a new production server (pIV 4 gig mem) and wanted
to run 1 apache in front of several tomcat instances.
I've set the whole thing up and it works almost, only the stickySession
attribute isn't getting picked up right or something. If I try to access
our application I get switched between the 2 instances.
here is my workers2.properties file:
[shm]
info=Scoreboard. Required for reconfiguration and status with multiprocess
serversfile=/tmp/jk2.shm
size=100

[lb:lb_01]
info=Default load balancer.
debug=0
stickSession=1

[channel.socket:localhost:11009]
tomcatId=localhost:11009
lb_factor=100
group=lb_01

[channel.socket:localhost:12009]
tomcatId=localhost:12009
lb_factor=100
group=lb_01

[status:status]
info=Status worker, displays runtime informations


[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:status

[uri:/jsp-examples/*]
info=Map all the JSP examples
group=lb_01

[uri:/servlets-examples/*]
info=Map all the servlet examples
group=lb_01

[uri:/loadtest/*]
info=testing the load balancer
group=lb_01

one tomcat instance

jk2.properties
## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
channelSocket.port=11009
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess

server.xml (what is off importance)

 Engine name=Standalone defaultHost=localhost debug=0
 jvmRoute=localhost:11009
 Connector port=11009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /

1 thing what's not totaly clear to me is why you have an jk2.properties
file and still have to configure the AJP connector. I initialy thought
this was because the AJP connector worked with TCP and the jk2.properties
was for the UNIX sockets but I think I messed that one up. :)
I'm running tomcat5 latest release and the apache 2 from debian testing.
It is the worker version. I checked it with apache2 -l and i got this
  core.c
  mod_access.c
  mod_auth.c
  mod_log_config.c
  mod_logio.c
  mod_env.c
  mod_setenvif.c
  worker.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_negotiation.c
  mod_dir.c
  mod_userdir.c
  mod_alias.c
  mod_so.c

this is correct no?

these mods are enabled:

cgi.load  cgid.conf  cgid.load  jk2.load  ssl.conf  ssl.load  usertrack.load

Has anybody had this problem before? I already spent a few houres on
google   and rewrote my properties file several times but always the same
result.
some last info:

Apache/2.0.49 (Debian GNU/Linux) mod_jk2/2.0.4 mod_ssl/2.0.49
OpenSSL/0.9.7d Server at 10.0.0.192 Port 80
thank you







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Anyone Running Tomcat 4.1.x on IBM Mainframe

2004-03-19 Thread Gary Fix
Hi,
Is anyone running Tomcat 4.1.x on an IBM mainframe?
We are considering it for our IBM 7060-H75 Mainframe which runs 
the z_OS 1.2.0 operating system that includes Unix System Services but no Linux...
What would we need to install or purchase?
Must it run under Linux?
I'm not a mainframe person so any pointers, experiences and / or documentation would 
be appreciated...
thanks...gary...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: comparison of Type 4 JDBC drivers

2004-03-19 Thread Gary Fix
Thanks Yoav for the suggestion!

Can anyone point me to a comparison of Type 4 JDBC drivers supporting MS SQL Server 
and DB2 for the windows and IBM mainframe (Z_OS) linux platforms?

thanks...gary...

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 6:02 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.12LE Disappears



Hi,
Any and all suggestions will be welcome? ;)  OK.  Drop the JdbcOdbc
bridge so fast you do it even before the end of this sentence.  Use a
thin/type4 JDBC driver for your database.

What's happening is that your JdbcOdbc bridge driver is crashing with a
native-level (i.e. some DLL on Windoze) error.  That's crashing the JVM
internally, hence the hs_err_pid logs.  (HS stands for HotSpot).  

After tomcat crashes the ISAPI connector can't connect to it, hence the
jk errors in your log: these will go away if you fix your tomcat.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Gary Fix [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 4:40 PM
To: Tomcat Users List
Subject: Tomcat 4.1.12LE Disappears

Hi,
We are running Tomcat 4.1.12LE under Win2000 SP2 within a command
window.
We use j2sdk1.4.1_02 for our servlet code.
We also use the isapi_redirect.dll dated 11/8/2002.
About the time we upgraded from version 3 of Tomcat to version 4, we
strated having problems
of Tomcat disappearing with no apparent error messages.
In the last 8 days, it has disappeared 8 times.
I have searched for a solution with no luck.
The only error messages I could find are in the isapi_redirect.log and
some
files named
hs_err_pid1208.log showing up in the Tomcat \bin folder.

The  isapi_redirect.log error messages look like this:
[Mon Mar 15 16:19:39 2004]  [jk_isapi_plugin.c (724)]:
HttpExtensionProc
error, service() failed
[Mon Mar 15 16:19:40 2004]  [jk_connect.c (143)]: jk_open_socket,
connect()
failed errno = 61
[Mon Mar 15 16:19:40 2004]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 61
[Mon Mar 15 16:19:40 2004]  [jk_ajp13_worker.c (635)]: Error connecting
to
the Tomcat process.
[Mon Mar 15 16:19:40 2004]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 1
[Mon Mar 15 16:19:41 2004]  [jk_connect.c (143)]: jk_open_socket,
connect()
failed errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (635)]: Error connecting
to
the Tomcat process.
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 0
[Mon Mar 15 16:19:41 2004]  [jk_connect.c (143)]: jk_open_socket,
connect()
failed errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (635)]: Error connecting
to
the Tomcat process.
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 2
[Mon Mar 15 16:19:41 2004]  [jk_isapi_plugin.c (724)]:
HttpExtensionProc
error, service() failed

Notice these seem to be loggin about once each second.
We also some some console messages like this:
361031 [Thread-8] WARN common.ChannelSocket  - server has closed the
current con
nection (-1)

The hs_err_pid1208.log files have errors like this:
An unexpected exception has been detected in native code outside the
VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at
PC=0x77FCB8F4
Function=RtlFreeHeap+0x263
Library=C:\WINNT\System32\ntdll.dll

Current Java thread:
   at sun.jdbc.odbc.JdbcOdbc.freeConnect(Native Method)
   at sun.jdbc.odbc.JdbcOdbc.SQLFreeConnect(JdbcOdbc.java:3287)
   at
sun.jdbc.odbc.JdbcOdbcDriver.closeConnection(JdbcOdbcDriver.java:952)
   at
sun.jdbc.odbc.JdbcOdbcConnection.close(JdbcOdbcConnection.java:740)
   at
sun.jdbc.odbc.JdbcOdbcConnection.finalize(JdbcOdbcConnection.java:87)
   at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
   at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
   at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
   at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

Dynamic libraries:
followed by a bunch of DLLs.
Any and all suggestions would be greatly appreciated.
thanks...gary...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail

Tomcat 4.1.12LE Disappears

2004-03-17 Thread Gary Fix
Hi,
We are running Tomcat 4.1.12LE under Win2000 SP2 within a command window.
We use j2sdk1.4.1_02 for our servlet code.
We also use the isapi_redirect.dll dated 11/8/2002.
About the time we upgraded from version 3 of Tomcat to version 4, we strated having 
problems 
of Tomcat disappearing with no apparent error messages.
In the last 8 days, it has disappeared 8 times.
I have searched for a solution with no luck.
The only error messages I could find are in the isapi_redirect.log and some files 
named 
hs_err_pid1208.log showing up in the Tomcat \bin folder.

The  isapi_redirect.log error messages look like this:
[Mon Mar 15 16:19:39 2004]  [jk_isapi_plugin.c (724)]: HttpExtensionProc error, 
service() failed
[Mon Mar 15 16:19:40 2004]  [jk_connect.c (143)]: jk_open_socket, connect() failed 
errno = 61
[Mon Mar 15 16:19:40 2004]  [jk_ajp13_worker.c (196)]: In 
jk_endpoint_t::connect_to_tomcat, failed errno = 61
[Mon Mar 15 16:19:40 2004]  [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat 
process.
[Mon Mar 15 16:19:40 2004]  [jk_ajp13_worker.c (848)]: In jk_endpoint_t::service, 
send_request failed in send loop 1
[Mon Mar 15 16:19:41 2004]  [jk_connect.c (143)]: jk_open_socket, connect() failed 
errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (196)]: In 
jk_endpoint_t::connect_to_tomcat, failed errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat 
process.
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (848)]: In jk_endpoint_t::service, 
send_request failed in send loop 0
[Mon Mar 15 16:19:41 2004]  [jk_connect.c (143)]: jk_open_socket, connect() failed 
errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (196)]: In 
jk_endpoint_t::connect_to_tomcat, failed errno = 61
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat 
process.
[Mon Mar 15 16:19:41 2004]  [jk_ajp13_worker.c (848)]: In jk_endpoint_t::service, 
send_request failed in send loop 2
[Mon Mar 15 16:19:41 2004]  [jk_isapi_plugin.c (724)]: HttpExtensionProc error, 
service() failed

Notice these seem to be loggin about once each second.
We also some some console messages like this:
361031 [Thread-8] WARN common.ChannelSocket  - server has closed the current con
nection (-1)

The hs_err_pid1208.log files have errors like this:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77FCB8F4
Function=RtlFreeHeap+0x263
Library=C:\WINNT\System32\ntdll.dll

Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.freeConnect(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLFreeConnect(JdbcOdbc.java:3287)
at sun.jdbc.odbc.JdbcOdbcDriver.closeConnection(JdbcOdbcDriver.java:952)
at sun.jdbc.odbc.JdbcOdbcConnection.close(JdbcOdbcConnection.java:740)
at sun.jdbc.odbc.JdbcOdbcConnection.finalize(JdbcOdbcConnection.java:87)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

Dynamic libraries:
followed by a bunch of DLLs.
Any and all suggestions would be greatly appreciated.
thanks...gary...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



TomCat 3.2.4 servlet is not a url Error and File Not Found'...

2002-11-06 Thread Gary Fix

 Hi!
 I'm new to Tomcat on Windows NT 4.0 Server, SP6, with IIS and Tomcat
 3.2.4...
 I am able to run the example servlets...
 I installed our first application and it works fine...
 I installed a second applicatiion and each time I try to access the
 servlet I get a HTTP 404 - File not found...
 I checked the log files and the only thing I could find was in the
 iis_redirect.log file a message like myclass is not a servlet url...
 If I copy the same class file to the other application directory, it works
 and the same log file reads myclass is a servlet url...
 I'm thinking this might be a configuration problem...I have compared the
 server.xml and web.xml files and these appear fine...
 I have searched the docs, FAQs and archives with no luck...
 Any suggestions?
 thanks in advance...gary...
 
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Error 405: HTTP method POST is not supported by this URL Prob On NT?

2001-11-20 Thread Gary Fix

Hi!
I'm just beginning to experiment with Tomcat on Windows NT 4.0 Workstation,
SP6, with PWS and Tomcat 3.2.3...
I am able to run the example servlets and a sample one I created that uses
the jdbc-odbc...
I can also run a servlet that uses the GET method...
My problem is when I try to run a servlet using the POST method...
I get Error 405: HTTP method POST is not supported by this URL...
probably a configuration problem...I have searched the docs,
FAQs and archives with no luck...I have not created any PWS/IIS virtual
directories except for jakarta as per the Tomcat installation doc...
My HTML form is very simple and has this as the FORM tag:
FORM ACTION=http://localhost:8080/servlet/DBTest; METHOD=POST
My DBTest servlet will run OK if I use the GET method...
Any suggestions?
thanks in advance...gary...



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Error 405: HTTP method POST is not supported by this URL Prob On NT?

2001-11-20 Thread Gary Fix

Hi!
Yes, I forgot to add that I implemented the doPost() method in my servlet...
thanks for checking...

-Original Message-
From: Paul Foxton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 8:12 AM
To: 'Tomcat Users List'
Subject: RE: Error 405: HTTP method POST is not supported by this URL
Prob On NT?


Hi,

Have you implemented the doPost() method in your servlet or the doGet()?

It needs to be doPost if you're posting from a form.

 -Original Message-
 From: Gary Fix [mailto:[EMAIL PROTECTED]]
 Sent: 20 November 2001 16:34
 To: '[EMAIL PROTECTED]'
 Subject: Error 405: HTTP method POST is not supported by this URL Prob
 On NT?
 
 
 Hi!
 I'm just beginning to experiment with Tomcat on Windows NT 
 4.0 Workstation,
 SP6, with PWS and Tomcat 3.2.3...
 I am able to run the example servlets and a sample one I 
 created that uses
 the jdbc-odbc...
 I can also run a servlet that uses the GET method...
 My problem is when I try to run a servlet using the POST method...
 I get Error 405: HTTP method POST is not supported by this URL...
 probably a configuration problem...I have searched the docs,
 FAQs and archives with no luck...I have not created any 
 PWS/IIS virtual
 directories except for jakarta as per the Tomcat installation doc...
 My HTML form is very simple and has this as the FORM tag:
 FORM ACTION=http://localhost:8080/servlet/DBTest; METHOD=POST
 My DBTest servlet will run OK if I use the GET method...
 Any suggestions?
 thanks in advance...gary...
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Error 405: HTTP method POST is not supported by this URL Prob On NT?

2001-11-20 Thread Gary Fix

Paul, your reply triggered a thought and subsequent solution!
What I had done was to run the servlet first using the GET method, then
changed it to use the POST method, recompiled, ran the web page and got the
error...
Then I realized Tomcat is holding my old GET method servlet im memory!
So I shutdown Tomcat, restarted it and the POST servlet works great!
thanks again for the quick response!
gary...
:-)

-Original Message-
From: Gary Fix [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 8:38 AM
To: 'Tomcat Users List'
Subject: RE: Error 405: HTTP method POST is not supported by this URL
Prob On NT?


Hi!
Yes, I forgot to add that I implemented the doPost() method in my servlet...
thanks for checking...

-Original Message-
From: Paul Foxton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 8:12 AM
To: 'Tomcat Users List'
Subject: RE: Error 405: HTTP method POST is not supported by this URL
Prob On NT?


Hi,

Have you implemented the doPost() method in your servlet or the doGet()?

It needs to be doPost if you're posting from a form.

 -Original Message-
 From: Gary Fix [mailto:[EMAIL PROTECTED]]
 Sent: 20 November 2001 16:34
 To: '[EMAIL PROTECTED]'
 Subject: Error 405: HTTP method POST is not supported by this URL Prob
 On NT?
 
 
 Hi!
 I'm just beginning to experiment with Tomcat on Windows NT 
 4.0 Workstation,
 SP6, with PWS and Tomcat 3.2.3...
 I am able to run the example servlets and a sample one I 
 created that uses
 the jdbc-odbc...
 I can also run a servlet that uses the GET method...
 My problem is when I try to run a servlet using the POST method...
 I get Error 405: HTTP method POST is not supported by this URL...
 probably a configuration problem...I have searched the docs,
 FAQs and archives with no luck...I have not created any 
 PWS/IIS virtual
 directories except for jakarta as per the Tomcat installation doc...
 My HTML form is very simple and has this as the FORM tag:
 FORM ACTION=http://localhost:8080/servlet/DBTest; METHOD=POST
 My DBTest servlet will run OK if I use the GET method...
 Any suggestions?
 thanks in advance...gary...
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




How To Unload A TomCat Servlet To Reload A New Instance?

2001-11-20 Thread Gary Fix

Hi!
I'm (still) experimenting with Tomcat on Windows NT 4.0 Workstation,
SP6, with PWS and Tomcat 3.2.3...
Now my question is, once I have loaded a Tomcat servlet, is there a way to
unload it to get an updated version loaded, without having to shutdown the
entire Tomcat?
thanks in advance...gary...

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: How To Unload A TomCat Servlet To Reload A New Instance?

2001-11-20 Thread Gary Fix

Hi!
Yes, I found the reference to reloadable=true when you define a context
in the server.xml file...
I tested it and see it works now...
thanks for all the speedy help!
gary...
:-)
-Original Message-
From: Denis Haskin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 10:06 AM
To: Tomcat Users List
Subject: Re: How To Unload A TomCat Servlet To Reload A New Instance?


Gary Fix wrote:

 Now my question is, once I have loaded a Tomcat servlet, is there a way to
 unload it to get an updated version loaded, without having to shutdown the
 entire Tomcat?

Yes, see the documentation for server.xml:
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html

Search for reload.

dwh


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]