RE: Tomcat Crashes

2001-03-01 Thread Peter Nguyen


I had the same problem using the JDBC-ODBC bridge. I would sometimes get the Dr
Watson errors. The errors occurred randomly but more frequently during high
loads. I discovered that the error occurred when database objects (Resultsets,
Statements etc) weren't closed before other database operations were executed.

The ODBC driver isn't very forgiving.

Anyway, everything worked without a glitch after I explicitly closed all my
database objects in the finally clause.

Peter

> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 1 March 2001 11:13 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat Crashes
>
>
>
>   Two common causes of crashes, in my experience, are using the
> JDBC-ODBC bridge (its not thread safe and when concurrent access occurs it
> crashes the JVM).  The other is in the JIT complilation.  I've had a lot
> less trouble with the newer JDKs (1.2.2_007) than the older ones (1.2.2_002
> and 004).
>
>   The solution to the second problem is pretty obvious - upgrade your
> JVM or turn off JIT.  The first solution you can either serialize requests
> or find new database drivers.
>
>   If your problem isn't one of these two things, I would suggest
> looking where you are using native code as well as the differences between
> the two machines (including usage, it the one with the higher load crashes
> more frequently then the problem is probably something you are using isn't
> thread safe)
>
>   Randy
>
> -Original Message-
> From: Kishor K [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 01, 2001 5:57 AM
> To: Tomcat User Mailing List
> Subject: Tomcat Crashes
>
>
> hi,
>  I have Tomcat 3.1 and jdk 1.2.2 on  TWO Windows NT machines.
> Both the machines are loaded with the same code,same database.
>  But on one machine it is causing Dr.Watson error 2-3 times a day whereas
> the other one is working properly.
>
>  Could you help in anyway on this?
>
>  thanks in advance
>  kishor
>
>
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




RE: first time user!!!

2001-02-22 Thread Peter Nguyen

Are you using Win9x?

Windows 95/98 does not provide enough default environment space to run the
Tomcat startup files. You will notice this if you try to execute the startup
script and receive the message "Out of Environment space".

Create shortcuts for the startup and shutdown files. For each shortcut open the
properties by right clicking on the icon and selecting "Properties". Select the
"Memory" tab. For the "Initial Environment" type in an adequate amount (such as
8000). Click OK then try executing the shortcuts. If you still receive the "Out
of Environment space" error then the value you set was not enough, just set a
higher value.

cheers,
Peter


> -Original Message-
> From: Zakaria . [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 23 February 2001 12:35 PM
> To: [EMAIL PROTECTED]
> Subject: first time user!!!
>
>
> My question is very basic, i cant get tomcat (jakarta-tomcat-3.2.1) to work
> on my windows machine, i set JAVA_HOME=c:\jdk1.3 and TOMCAT_HOME=c:\tomcat
> (i renamed jakarta-tomcat-3.2.1 to tomcat), and set the PATH for java
> interpreter...i keep getting:
> (after i type bin\startup in tomcat directory)
> ...
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Unable to set CLASSPATH dynamically.
> Note: To set the CLASSPATH dynamically on Win9x systems
>   only DOS 8.3 names may be used in TOMCAT_HOME!
> Setting your CLASSPATH statically.
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Using CLASSPATH:
> Starting Tomcat in new window
> Bad command or file name
> ...
> Please help!!!
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




RE: How to run Tomcat Properly?

2001-02-22 Thread Peter Nguyen

If you are not connected to a network or internet Internet Explorer will ask you
if you want to work offline. If you want to use servlets or JSPs then never
allow your browser to go offline. Click refresh on the JSP and force your
browser to "Connect" instead of "Work Offline".

Peter


> -Original Message-
> From: Jun wang [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 23 February 2001 11:16 AM
> To: [EMAIL PROTECTED]
> Subject: How to run Tomcat Properly?
>
>
> Hi,
> I am a new to JSP, also to TOMCAT.
> When TOMCAT startup, I will go to
> localhost:8080 only I am online,
> otherwise, no page found.
>
> Could anyone tell me the reason and
> how to solve it?
>
> Thanks in advance!!
>
> Jun Wang
>
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices!
> http://auctions.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




Applet + Tomcat + IIS => error

2001-02-22 Thread Peter Nguyen

Server Config:
Win2k
Tomcat 3.2.1 port 8080
IIS 5.0 port 80

Browsers:
Internet Explorer 5.0 (MS VM build 3240)
Netscape Communicator 4.74


I have an applet communicating(POST) with servlet.

Without IIS, when using URLConnection Explorer will work but Netscape will hang
the browser. Using Sockets will work on both Explorer and Netscape. I think
using URLConnection with the event thread is the culprit because my polling
thread works fine on Netscape.

Anyway, when I used IIS I started to get more problems. The normal servlets
outputting HTML work fine. But the servlet which receives the POST from the
applet has problems trying to get the InputStream. Checking the getContentLength
of the request returns -1. It looks like IIS isn't sending the POST data to
Tomcat. This was with URLConnection. Using Socket will not even cause the
servlet to be called.

Any ideas?

cheers,
Peter


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




RE: Tomcat service using JDBC-ODBC bridge

2001-02-22 Thread Peter Nguyen

I solved the problem right after sending the email. I had set my ODBC source in
User rather than System. Works fine now.

Peter

> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 22 February 2001 11:28 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat service using JDBC-ODBC bridge
>
>
>
>   1.  Are the ODBC Data Sources User or System?  (If user, then only
> the user that created them can see them)
>
>   2.  The JDBC-ODBC bridge loads a dll in order to communicate.  Is
> this DLL available to the service?
>
>   Also, you should be aware that the JDBC-ODBC bridge is not thread
> safe.  If you attempt concurrent access, the process will crash and cause
> the JVM you are accessing it from to have an Illegal Error.
>
>   Randy
>
>
> -Original Message-
> From: Peter Nguyen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 22, 2001 12:07 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat service using JDBC-ODBC bridge
>
>
> I am running Tomcat on Windows 2000 with jdk1.2.2. I have servlets accessing
> an
> MS Access and Oracle database. The servlets work fine with Sun's JDBC-ODBC
> bridge against MS Acces and Oracle's thin driver against the Oracle
> database.
>
> When I set Tomcat up as a NT service Oracle worked fine after I put the
> Oracle
> drivers on the classpath in wrapper.properties.
>
> However, I started to have problems when I tried to get the MS Access
> connection. The driver registered fine but attempting to get a connection
> resulted in:
>
> [Microsoft][ODBC Driver Manager] Data source name not found and no default
> driver specified
>
> Note that the exact same configuration worked fine when running Tomcat as a
> normal app and not as a service. Does Sun's JDBC-ODBC bridge rely on
> something
> else that is not accessible when run as a service? Or did I miss something
> else?
>
> Cheers,
> Peter
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




Tomcat service using JDBC-ODBC bridge

2001-02-21 Thread Peter Nguyen

I am running Tomcat on Windows 2000 with jdk1.2.2. I have servlets accessing an
MS Access and Oracle database. The servlets work fine with Sun's JDBC-ODBC
bridge against MS Acces and Oracle's thin driver against the Oracle database.

When I set Tomcat up as a NT service Oracle worked fine after I put the Oracle
drivers on the classpath in wrapper.properties.

However, I started to have problems when I tried to get the MS Access
connection. The driver registered fine but attempting to get a connection
resulted in:

[Microsoft][ODBC Driver Manager] Data source name not found and no default
driver specified

Note that the exact same configuration worked fine when running Tomcat as a
normal app and not as a service. Does Sun's JDBC-ODBC bridge rely on something
else that is not accessible when run as a service? Or did I miss something else?

Cheers,
Peter


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