Wierd Casting Problem.
Ok. Here is the problem. I am using Model 2 Architecture. So my Servlet handles all the biz logic and pushes the results that are then displayed by jsp pages. Within a jsp page I grab my vector from the request like so.. Vector mems =(Vector)request.getAttribute(response); Then I try to loop around it and cast it to the appropiate Object. Like so... % for (int i=0; i mems.size(); i++) { member m = (member)mems.get(i); % %=m.getFname()% %}% I get a ClassCastException. But when I do a toString on the Object itself without casting, it specifies the package name of the object that I am trying to cast to. To make matters wierder. When I do a getClass().isInstance(THE OBJECT I WANT TO CAST TO) it returns false? What is going on here? Is this some classLoader issue? Some tips that might help figure this issue out.. I am importing the class I am casting, in the JSP page. like so.. %@page import=thepackage.member, java.util.*% And the class itself isn't in a jar. It's in the WEB-INF/classes directory. I also changed the container from a Vector to an ArrayList and got the same results. And I can instantiate the member object itself and use it in the jsp page. Any ideas? Please. Someone, HELP!!!
Re: 2 Critical Problems with Tomcat 3.2.x
I experienced TC 3.2.1 white screen problem!. I found bug #1006 of TC 3.2.1 and I upgraded TC 3.2.2b3 and white screen problem never happened. I recommend you should upgrade TC 3.2.2.. And if your application uses session, check your session timeout. If timeout is too long, your JVM may use too big memory! Good luck to you! On Sat, 27 Apr 2024, Andrew McDonald wrote: Thanks Bill for chasing this up, I really didn't want to repost. I was thinking of posting to the tomcat-dev list wrt these problems but I believe tomcat-user is the more appropriate list for discussing these sorts of issues. I thought I better give a few more data points: - Last night I set the logging to FATAL on the tomcat.log, etc. I read on the tomcat-dev list that having it set on DEBUG is potentially dangerous: the logger may not be able to keep up under extreme load. - I was almost *convinced* that I was running across bug #1006 too! However after installing tc 3.2.2b2 the problem remained. - Jeff Kilbride suggested I try to cap the max_threads etc of the thread pool, which may help. I will be trying this soon (but not today: Fridays are bad days to modify production systems) We need a solution to this and are willing to help in whatever way we can. We are testing commercial alternatives such as JRun and BEA despite my reluctance: Apart from these 2 critical problems I think Tomcat is great and I love OSS projects such as this. I'm expected to get this fixed through whatever means possible so any suggestions would be appreciated. Cheers AndyM Bill Graham wrote: I've also been experienceing a lot of the Number 2 problem described where Tomcat stops responding to http requests and I can't figure out what's causing it. I've been able to reproduce the problem with multiple VMs on both Linux and Solaris machines. I applied the patch for Tomcat bug #1006 and the hanging still occurs. I haven't come across any responses to Andy's first post so I thought I'd ask again. Anyone have any idea what's causing this? thanks, Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andrew McDonald Sent: Sunday, April 22, 2001 10:56 PM To: [EMAIL PROTECTED] Subject: 2 Critical Problems with Tomcat 3.2.x Hi there, First I'd like to thank the developers for a great product. Tomcat is a nice piece of software. And like all great OSS, very easy to raise a purchase order for ;) Thanks guys. Unfortunately I have run into a couple of serious show-stoppers when deploying TC in production. A bit of background: We have been running various incarnations of JServ and Tomcat over the past 12 months or so. We have 3 Application Servers: Two Compaq Deskpro PII/450s and one PIII/500 with 128MB Ram each. They are running Linux, kernel is 2.2.19, glibc-2.1.3. We are currently running various incarnations of TC3.2.x We run a Stock Trading Forum, which is made up of Servlets and JSPs. You can see it at http://www.hotcopper.com.au if you're interested at all. We are one of the most hit websites in Australia according to www.top100.com.au. We have tested Tomcat with the Solaris 1.3 JVM, IBM 1.3 JVM and Blackdown 1.3 JVM (FCS). I'm happiest with Blackdown. It *seems* to have the best performance. On to the problems: 1. We dubbed this one The Apache White Screen problem. We connected Tomcat to various versions of Apache =1.14 in the standard way (mod_jk.so) Symptom: People using Internet Explorer to browse our site will intermittently get a white/ blank screen instead of results from our application. When this happens, we believe the request doesn't even enter the java code, so it may be a problem with the connector. I seem to recall (sorry this was about 8 months ago) Apache returning a 304 or a 302. I haven't re-tested this in a while, I was just wondering whether people were aware of this problem in the past and had already looked into it and possibly fixed it. Our solution was to run Tomcat standalone, which seemed to solve this issue. 2. We dubbed this one The 132 Thread Problem, even though it doesn't always happen with 132 threads; sometimes 128, 130, or if using the Blackdown JVM, 134. (wierd). We use NATIVE threads. Symptom: Tomcat stops responding to http requests after a certain number (~132) of threads is reached. When this happens it will either deadlock or segfault. During this time the box is fine, and to solve it temporarily I just need to kill all the java processes and restart Tomcat. This problem occurs regardless of JVM and the version of the Linux Kernel doesn't seem to make a difference. It happens once or twice a week. Assistance with either of these problems would be greatly appreciated. Number 2 is the really important one but information regarding number 1 would be great as well. Of course if you need more information please get back to me. Oh, and btw, yes I realise that running
tomcat.policy Problem
I'am running Tomcat 3.2 with -security. I have included an entry in tomcat.policy to grant read, write Permissions from tomcat_home/webapps/examples/- to tomcat_home/webapps/examples/-, but Tomcat still gives me an AccessViolation on any JSP and servlet trying to access (create) a file in tomcat_home/webapps/examples/. Did I miss to set things in server.xml or do I have to use other directories than /webapps (maybe Tomcat assigns default Permissions overriding the ones in tomcat.policy)? Thanks for your help. Daniel
*.xml mapping
I am trying to map al requests ending in *.xml to a jsp called /Style.jsp. The following mapping works in OrionServer but not in Tomcat. Anyone know why? servlet servlet-nameStyleServlet/servlet-name display-nameStyleServlet/display-name jsp-file/Style.jsp/jsp-file /servlet servlet-mapping servlet-nameStyleServlet/servlet-name url-pattern*.xml/url-pattern /servlet-mapping Dave Ford Smart Soft - The Java Training Company http://www.smart-soft.com
RE: Wierd Casting Problem. Tomocat Bug?
I found out the problem. This looks like an extreme hack though. $=((member) ((Object)e.nextElement()) ).getFname()% Works. But why do I have to cast to an Object before I cast it back to it's appropiate type. My only guess is that the Servlet DownCast the Vector to an Object (because there is some reflection that goes on) before setting the Attribute and passing it to JSP. But the actual member objects are put in the Vector as member Objects. Any Ideas? Does anyone thing it's wierd that you have to cast to and Object then to the Type. I believe this isn't a Java Bug it may be a Tomcat Bug. Because I don't have to cast to an Object, if I am casting to member objects in the Servlet. -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 3:46 AM To: [EMAIL PROTECTED] Subject: Wierd Casting Problem. Ok. Here is the problem. I am using Model 2 Architecture. So my Servlet handles all the biz logic and pushes the results that are then displayed by jsp pages. Within a jsp page I grab my vector from the request like so.. Vector mems =(Vector)request.getAttribute(response); Then I try to loop around it and cast it to the appropiate Object. Like so... % for (int i=0; i mems.size(); i++) { member m = (member)mems.get(i); % %=m.getFname()% %}% I get a ClassCastException. But when I do a toString on the Object itself without casting, it specifies the package name of the object that I am trying to cast to. To make matters wierder. When I do a getClass().isInstance(THE OBJECT I WANT TO CAST TO) it returns false? What is going on here? Is this some classLoader issue? Some tips that might help figure this issue out.. I am importing the class I am casting, in the JSP page. like so.. %@page import=thepackage.member, java.util.*% And the class itself isn't in a jar. It's in the WEB-INF/classes directory. I also changed the container from a Vector to an ArrayList and got the same results. And I can instantiate the member object itself and use it in the jsp page. Any ideas? Please. Someone, HELP!!!
Help: Newbie problem starting web server.
version: tomcat 3.1 platform: win98 I'm new in configuring tomcat and fail to start the web server. I've following questions: 1) can I run the tomcat web server on Win98 (9X)? or must be WinNT/2000? 2) after I type 'startup' from the /bin directory, another DOS window prompts up w/ the log (see blow). From this point on, I try using my browser and type: http://localhost:8080(or http://localhost:8080/index.html). The web server seems not running and the browser prompts me to connect to internet. I don't know how to capture the screen log, below is the extract: (It said 'File not found C:\Apache\Tomcat\webapps\ADMIN.WAR' but the file is in that directory. So' I don't know why) Context log: path="/ADMIN.WAR" File not found C:\Apache\Tomcat\webapps\ADMIN.WAR\WEB-INF\web.xml, using only defaultsContext log path="/ADMIN.WAR" :jsp: initContext log path="/ADMIN.WAR" :default: initContext log path="/TEST.WAR" :tomcat.errorPage: initContext log: path="/TEST.WAR" File not found C:\Apache\Tomcat\webapps\TEST.WAR\WEB-INF\web.xml, using only defaultsContext log path="/TEST.WAR" :jsp: initContext log path="/TEST.WAR" :default: initContext log path="/test" :tomcat.errorPage: initContext log path="/test" :jsp: initContext log path="/test" :default: initContext log path="/EXAMPLES.WAR" :tomcat.errorPage: initContext log: path="/EXAMPLES.WAR" File not found C:\Apache\Tomcat\webapps\EXAMPLES.WAR\WEB-INF\web.xml, using only defaultsContext log path="/EXAMPLES.WAR" :jsp: initContext log path="/EXAMPLES.WAR" :default: initContext log path="" :tomcat.errorPage: initContext log path="" :jsp: initContext log path="" :default: initStarting endpoint port="8080" handler="org.apache.tomcat.service.http.HttpConnectionHandler"Starting endpoint port="8007" handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler" 3) I don't see the tomcat/logs files updated. how to turn the log function on? I'm stuck at this point. Your help is much appreiated. thanks, jackling.
RE: Wierd Casting Problem. Tomocat Bug?
When I restart that little trick doesn't work anymore. I have a feeling it's defenaitley a bug. Can anyone confirm? -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 11:14 AM To: [EMAIL PROTECTED] Subject: RE: Wierd Casting Problem. Tomocat Bug? I found out the problem. This looks like an extreme hack though. $=((member) ((Object)e.nextElement()) ).getFname()% Works. But why do I have to cast to an Object before I cast it back to it's appropiate type. My only guess is that the Servlet DownCast the Vector to an Object (because there is some reflection that goes on) before setting the Attribute and passing it to JSP. But the actual member objects are put in the Vector as member Objects. Any Ideas? Does anyone thing it's wierd that you have to cast to and Object then to the Type. I believe this isn't a Java Bug it may be a Tomcat Bug. Because I don't have to cast to an Object, if I am casting to member objects in the Servlet. -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 3:46 AM To: [EMAIL PROTECTED] Subject: Wierd Casting Problem. Ok. Here is the problem. I am using Model 2 Architecture. So my Servlet handles all the biz logic and pushes the results that are then displayed by jsp pages. Within a jsp page I grab my vector from the request like so.. Vector mems =(Vector)request.getAttribute(response); Then I try to loop around it and cast it to the appropiate Object. Like so... % for (int i=0; i mems.size(); i++) { member m = (member)mems.get(i); % %=m.getFname()% %}% I get a ClassCastException. But when I do a toString on the Object itself without casting, it specifies the package name of the object that I am trying to cast to. To make matters wierder. When I do a getClass().isInstance(THE OBJECT I WANT TO CAST TO) it returns false? What is going on here? Is this some classLoader issue? Some tips that might help figure this issue out.. I am importing the class I am casting, in the JSP page. like so.. %@page import=thepackage.member, java.util.*% And the class itself isn't in a jar. It's in the WEB-INF/classes directory. I also changed the container from a Vector to an ArrayList and got the same results. And I can instantiate the member object itself and use it in the jsp page. Any ideas? Please. Someone, HELP!!!
jsp package names
I have descovered that jasper uses the folder names to create package names. for example, if I have the following jsp file: c:\MyWebApp\foo\boo\My.jsp jasper creates: package foo.boo; There is a big problem with this however. Windows folder naming rules are not the same as java package name rules. for example: c:\MyWebApp\01_foo\boo\My.jsp 01_foo is valid folder name but creates invalid code (and thus a compile error)when translated to a servlet class. Any suggestions as to work around this problem? Dave Ford Smart Soft - The Java Training Company http://www.smart-soft.com
Serlvet mappings in web.xml not available in Apache
I have servlet mappings in my web.xml file that map URI's to servlets. These URI's may contain files with jsp extensions on them. when I integrate Tomcat 3.2.1 with Apache I can see any of my jsp's and servlets and have them execute. However, it appears that the mappings I supplied in web.xml are available. Here's an example in stand alone Tomcat: http://host:8080/VDC/Component gets sent to maps to my /VDC/servlets/Dispatch and http://host:8080/VDC/Component/main.jsp also maps to /VDC/servlets/Dispatch this is because my web.xml looks like this: servlet-nameDispatch/servlet-name servlet-classvdc.uis.Dispatch/servlet-class load-on-startup4/load-on-startup /servlet servlet-mapping servlet-nameDispatch/servlet-name url-pattern/Component/*/url-pattern /servlet-mapping Dispatch is responsible for doing some work and the forwarding the request to /VDC/Component/main.jsp. This works great in standalone tomcat. However when I try to use Apache to access http://host/VDC/Component/main.jsp instead of going to Dispatch it goes directly to the jsp file. This appears to be because the mappings outlined in web.xml seem to be ignored. Is it true that web.xml is not used by Apache/jserv_mod? if so, how can I write a an entry in the apache-tomcat.conf that will accomplish this same mapping? thanks, Mark
RE: Wierd Casting Problem. Tomocat Bug?
Casting could happen in a regular fashion if you just restart. Wierd. Is anyone planning on fixing this issue, no developer should have a 12 hour problem because of a faulty Dynamic class loader. -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 11:29 AM To: [EMAIL PROTECTED] Subject: RE: Wierd Casting Problem. Tomocat Bug? When I restart that little trick doesn't work anymore. I have a feeling it's defenaitley a bug. Can anyone confirm? -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 11:14 AM To: [EMAIL PROTECTED] Subject: RE: Wierd Casting Problem. Tomocat Bug? I found out the problem. This looks like an extreme hack though. $=((member) ((Object)e.nextElement()) ).getFname()% Works. But why do I have to cast to an Object before I cast it back to it's appropiate type. My only guess is that the Servlet DownCast the Vector to an Object (because there is some reflection that goes on) before setting the Attribute and passing it to JSP. But the actual member objects are put in the Vector as member Objects. Any Ideas? Does anyone thing it's wierd that you have to cast to and Object then to the Type. I believe this isn't a Java Bug it may be a Tomcat Bug. Because I don't have to cast to an Object, if I am casting to member objects in the Servlet. -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 3:46 AM To: [EMAIL PROTECTED] Subject: Wierd Casting Problem. Ok. Here is the problem. I am using Model 2 Architecture. So my Servlet handles all the biz logic and pushes the results that are then displayed by jsp pages. Within a jsp page I grab my vector from the request like so.. Vector mems =(Vector)request.getAttribute(response); Then I try to loop around it and cast it to the appropiate Object. Like so... % for (int i=0; i mems.size(); i++) { member m = (member)mems.get(i); % %=m.getFname()% %}% I get a ClassCastException. But when I do a toString on the Object itself without casting, it specifies the package name of the object that I am trying to cast to. To make matters wierder. When I do a getClass().isInstance(THE OBJECT I WANT TO CAST TO) it returns false? What is going on here? Is this some classLoader issue? Some tips that might help figure this issue out.. I am importing the class I am casting, in the JSP page. like so.. %@page import=thepackage.member, java.util.*% And the class itself isn't in a jar. It's in the WEB-INF/classes directory. I also changed the container from a Vector to an ArrayList and got the same results. And I can instantiate the member object itself and use it in the jsp page. Any ideas? Please. Someone, HELP!!!
RE: Wierd Casting Problem. Tomocat Bug?
Are any of the classes you are using defined outside of the web app. That is, are you using any libraries, or class files which you specify on the classpath prior to tomcat starting, which may also be in your web-app. It is situations like this which the more experienced folks point to as the cause to this problem. Generally, the type of error you are mentioning happen if the class is loaded by a higher level class loader than the JSP/Servlet's loader, but the JSP/Servlet sees the web-app's WEB-INF class and libs before the system's classes and libs. So if the object was created by the system class loader (with it's copy of the class), it has a different 'Class ID' than one loaded by the JSP/Servlet class loader. In short, try to remove all elements from your class path and extentions directories, and put them all in the webapp for a short testing period. See if this exposes solves the error or exposes a place where some code would get a class from a different class loader than from others. Then you can slowly move the libraries back where they came from to better isolate your problem. Hope that helps, Paul -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 3:33 PM To: [EMAIL PROTECTED] Subject: RE: Wierd Casting Problem. Tomocat Bug? Casting could happen in a regular fashion if you just restart. Wierd. Is anyone planning on fixing this issue, no developer should have a 12 hour problem because of a faulty Dynamic class loader. -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 11:29 AM To: [EMAIL PROTECTED] Subject: RE: Wierd Casting Problem. Tomocat Bug? When I restart that little trick doesn't work anymore. I have a feeling it's defenaitley a bug. Can anyone confirm? -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 11:14 AM To: [EMAIL PROTECTED] Subject: RE: Wierd Casting Problem. Tomocat Bug? I found out the problem. This looks like an extreme hack though. $=((member) ((Object)e.nextElement()) ).getFname()% Works. But why do I have to cast to an Object before I cast it back to it's appropiate type. My only guess is that the Servlet DownCast the Vector to an Object (because there is some reflection that goes on) before setting the Attribute and passing it to JSP. But the actual member objects are put in the Vector as member Objects. Any Ideas? Does anyone thing it's wierd that you have to cast to and Object then to the Type. I believe this isn't a Java Bug it may be a Tomcat Bug. Because I don't have to cast to an Object, if I am casting to member objects in the Servlet. -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 3:46 AM To: [EMAIL PROTECTED] Subject: Wierd Casting Problem. Ok. Here is the problem. I am using Model 2 Architecture. So my Servlet handles all the biz logic and pushes the results that are then displayed by jsp pages. Within a jsp page I grab my vector from the request like so.. Vector mems =(Vector)request.getAttribute(response); Then I try to loop around it and cast it to the appropiate Object. Like so... % for (int i=0; i mems.size(); i++) { member m = (member)mems.get(i); % %=m.getFname()% %}% I get a ClassCastException. But when I do a toString on the Object itself without casting, it specifies the package name of the object that I am trying to cast to. To make matters wierder. When I do a getClass().isInstance(THE OBJECT I WANT TO CAST TO) it returns false? What is going on here? Is this some classLoader issue? Some tips that might help figure this issue out.. I am importing the class I am casting, in the JSP page. like so.. %@page import=thepackage.member, java.util.*% And the class itself isn't in a jar. It's in the WEB-INF/classes directory. I also changed the container from a Vector to an ArrayList and got the same results. And I can instantiate the member object itself and use it in the jsp page. Any ideas? Please. Someone, HELP!!!
IIS redirector
I can't seem to get the redirector to work. I can serve the examples pages. I copied the examples area and renamed it. I can't get it to work. I have looked all through the online and docs and can't find where to set the my new context willtest. I entered it into the uriworkermap.properties. I can serve the area if I put port :8080, so I know it is the redirector. I would appreciate any help. Thanks Will
Re: Best IDE for Servlet Development?
huh? I used Visual Cafe 4.0 for a long time, doing servlet 2.2 stuff...when you say it didn't support the latest servlet api what do you mean? Just put the latest server.jar in the classpath... On Sat, 28 Apr 2001, you wrote: I like JBUilder, I tried VIsual cafe but it didnt support the latest servlet api - Original Message - From: Curtis Spencer To: Tomcat User List Sent: Saturday, April 28, 2001 3:54 AM Subject: Best IDE for Servlet Development? Hi, I just downloaded the trial version for Forte for Java 2.0 Internet Edition and it seems like a good servlet development kit because of the integrated tomcat server. I was wondering if anyone was using other IDE's for servlet development and if they had any thoughts about what was the best IDE and why? Thanks Curtis Content-Type: text/html; name=unnamed Content-Transfer-Encoding: quoted-printable Content-Description: -- -johnd
problems loading mod_jk
Hi everyone, I've gone through the documentation very thoroughly and feel as though I am just missing something simple. I have modified all the appropriate files: server.xml, workers.properties, httpd.conf. I have put my mod_jk.so file in my /usr/libexec/httpd directory where a bunch of other .so files are. Tomcat starts up perfectly, but when i go to statup apache this is the error that comes up: Syntax error on line 283 of /etc/httpd/httpd.conf: Cannot load /usr/libexec/mod_jk.so into server: (reason unknown) Line 283 is where this block of code starts: LoadModule jk_modulelibexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /Library/Tomcat/conf/workers.properties JkLogFile /Library/Tomcat/logs/mod_jk.log JkLogLevel warn I'm not sure what i'm missing here. I am running Apache 1.3.14 on Mac OS X. If anyone has had any similar situations and found work arounds, guidance would be greatly appreciated. Thanks. -greg
Re: problems loading mod_jk
check the permissions on the mod_jk.so file. make sure that nobody or httpd can access the file (or whatever uid httpd runs under). chuck - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 29, 2001 8:50 PM Subject: problems loading mod_jk Hi everyone, I've gone through the documentation very thoroughly and feel as though I am just missing something simple. I have modified all the appropriate files: server.xml, workers.properties, httpd.conf. I have put my mod_jk.so file in my /usr/libexec/httpd directory where a bunch of other .so files are. Tomcat starts up perfectly, but when i go to statup apache this is the error that comes up: Syntax error on line 283 of /etc/httpd/httpd.conf: Cannot load /usr/libexec/mod_jk.so into server: (reason unknown) Line 283 is where this block of code starts: LoadModule jk_modulelibexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /Library/Tomcat/conf/workers.properties JkLogFile /Library/Tomcat/logs/mod_jk.log JkLogLevel warn I'm not sure what i'm missing here. I am running Apache 1.3.14 on Mac OS X. If anyone has had any similar situations and found work arounds, guidance would be greatly appreciated. Thanks. -greg
Re: Wierd Casting Problem. Tomocat Bug?
I posted the same problem yesterday but totally solved it on my case two things Technically Java should only allow you to cast an object to a superclass or subclass of the class, so if member is not inherited from Object then trying to cast an object to a member should fail. however i found this rule not enforced. What i found was that i was rebuilding as i tested without restarting the server and thus the object in the vector had a diffrenent time stamp than the class i just rebuilt which is why the instanceof test failed even thought it returned the exaxt class name i was testing for. Therefore, make sure to restart your server after you rebuild your code or else the types wont match since the old class signature may already be loaded. Hope this helps, Ivan PS my problem is fixed know so i dont think it is a tomcat bug - Original Message - From: Cory L Hubert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 29, 2001 11:13 AM Subject: RE: Wierd Casting Problem. Tomocat Bug? I found out the problem. This looks like an extreme hack though. $=((member) ((Object)e.nextElement()) ).getFname()% Works. But why do I have to cast to an Object before I cast it back to it's appropiate type. My only guess is that the Servlet DownCast the Vector to an Object (because there is some reflection that goes on) before setting the Attribute and passing it to JSP. But the actual member objects are put in the Vector as member Objects. Any Ideas? Does anyone thing it's wierd that you have to cast to and Object then to the Type. I believe this isn't a Java Bug it may be a Tomcat Bug. Because I don't have to cast to an Object, if I am casting to member objects in the Servlet. -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 3:46 AM To: [EMAIL PROTECTED] Subject: Wierd Casting Problem. Ok. Here is the problem. I am using Model 2 Architecture. So my Servlet handles all the biz logic and pushes the results that are then displayed by jsp pages. Within a jsp page I grab my vector from the request like so.. Vector mems =(Vector)request.getAttribute(response); Then I try to loop around it and cast it to the appropiate Object. Like so... % for (int i=0; i mems.size(); i++) { member m = (member)mems.get(i); % %=m.getFname()% %}% I get a ClassCastException. But when I do a toString on the Object itself without casting, it specifies the package name of the object that I am trying to cast to. To make matters wierder. When I do a getClass().isInstance(THE OBJECT I WANT TO CAST TO) it returns false? What is going on here? Is this some classLoader issue? Some tips that might help figure this issue out.. I am importing the class I am casting, in the JSP page. like so.. %@page import=thepackage.member, java.util.*% And the class itself isn't in a jar. It's in the WEB-INF/classes directory. I also changed the container from a Vector to an ArrayList and got the same results. And I can instantiate the member object itself and use it in the jsp page. Any ideas? Please. Someone, HELP!!!
Would really appreciate some help: Serlvet mappings in web.xml not available in Apache
At 12:28 PM 4/29/01 -0400, Mark Diggory wrote: I have servlet mappings in my web.xml file that map URI's to servlets. These URI's may contain files with jsp extensions on them. when I integrate Tomcat 3.2.1 with Apache I can see any of my jsp's and servlets and have them execute. However, it appears that the mappings I supplied in web.xml are available. Here's an example in stand alone Tomcat: http://host:8080/VDC/Component gets sent to maps to my /VDC/servlets/Dispatch and http://host:8080/VDC/Component/main.jsp also maps to /VDC/servlets/Dispatch this is because my web.xml looks like this: servlet-nameDispatch/servlet-name servlet-classvdc.uis.Dispatch/servlet-class load-on-startup4/load-on-startup /servlet servlet-mapping servlet-nameDispatch/servlet-name url-pattern/Component/*/url-pattern /servlet-mapping Dispatch is responsible for doing some work and the forwarding the request to /VDC/Component/main.jsp. This works great in standalone tomcat. However when I try to use Apache to access http://host/VDC/Component/main.jsp instead of going to Dispatch it goes directly to the jsp file. This appears to be because the mappings outlined in web.xml seem to be ignored. Is it true that web.xml is not used by Apache/jserv_mod? if so, how can I write a an entry in the apache-tomcat.conf that will accomplish this same mapping? thanks, Mark
Re: Best IDE for Servlet Development?
I'm using Visual Age 4 java v. 3-5 and it seems to me very good for develobing and debugging... ac At 11.22 29/04/2001 -0700, you wrote: huh? I used Visual Cafe 4.0 for a long time, doing servlet 2.2 stuff...when you say it didn't support the latest servlet api what do you mean? Just put the latest server.jar in the classpath... On Sat, 28 Apr 2001, you wrote: I like JBUilder, I tried VIsual cafe but it didnt support the latest servlet api - Original Message - From: Curtis Spencer To: Tomcat User List Sent: Saturday, April 28, 2001 3:54 AM Subject: Best IDE for Servlet Development? Hi, I just downloaded the trial version for Forte for Java 2.0 Internet Edition and it seems like a good servlet development kit because of the integrated tomcat server. I was wondering if anyone was using other IDE's for servlet development and if they had any thoughts about what was the best IDE and why? Thanks Curtis Content-Type: text/html; name=unnamed Content-Transfer-Encoding: quoted-printable Content-Description: -- -johnd
Re: Best IDE for Servlet Development?
I tried it brieflly and it didn't have methods such as getSession() so I called there tech support and they said they didnt support 2.2 so I dropped it there. I assume you are right about adding the latest server.jar, I never got that far because I took the tech support guy at his word. Ivan - Original Message - At 11.22 29/04/2001 -0700, you wrote: huh? I used Visual Cafe 4.0 for a long time, doing servlet 2.2 stuff...when you say it didn't support the latest servlet api what do you mean? Just put the latest server.jar in the classpath... On Sat, 28 Apr 2001, you wrote: I like JBUilder, I tried VIsual cafe but it didnt support the latest servlet api - Original Message - From: Curtis Spencer To: Tomcat User List Sent: Saturday, April 28, 2001 3:54 AM Subject: Best IDE for Servlet Development? Hi, I just downloaded the trial version for Forte for Java 2.0 Internet Edition and it seems like a good servlet development kit because of the integrated tomcat server. I was wondering if anyone was using other IDE's for servlet development and if they had any thoughts about what was the best IDE and why? Thanks Curtis Content-Type: text/html; name=unnamed Content-Transfer-Encoding: quoted-printable Content-Description: -- -johnd
Re: problems loading mod_jk
Hi Chuck. The permissions were setup kind of strict. I changed it so everyone had read,write,execute access to the file and I still got the same error. This is what the permissions say: -rwxrwxrwx 1 root wheel 88245 Apr 29 11:02 mod_jk.so . . . and the error: Syntax error on line 283 of /etc/httpd/httpd.conf: Cannot load /usr/libexec/mod_jk.so into server: (reason unknown) I think I changed the permissions the right way. Let me know if that isn't right. If it is right, do you have any other ideas? -greg On Sunday, April 29, 2001, at 12:15 PM, Charles Williams ((CEO)) wrote: check the permissions on the mod_jk.so file. make sure that nobody or httpd can access the file (or whatever uid httpd runs under). chuck - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 29, 2001 8:50 PM Subject: problems loading mod_jk Hi everyone, I've gone through the documentation very thoroughly and feel as though I am just missing something simple. I have modified all the appropriate files: server.xml, workers.properties, httpd.conf. I have put my mod_jk.so file in my /usr/libexec/httpd directory where a bunch of other .so files are. Tomcat starts up perfectly, but when i go to statup apache this is the error that comes up: Syntax error on line 283 of /etc/httpd/httpd.conf: Cannot load /usr/libexec/mod_jk.so into server: (reason unknown) Line 283 is where this block of code starts: LoadModule jk_modulelibexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /Library/Tomcat/conf/workers.properties JkLogFile /Library/Tomcat/logs/mod_jk.log JkLogLevel warn I'm not sure what i'm missing here. I am running Apache 1.3.14 on Mac OS X. If anyone has had any similar situations and found work arounds, guidance would be greatly appreciated. Thanks. -greg
mod_jk
Please help if you know how to get mod_jk working, I'm desperate. I am really stuck...I have apache compiled to take DSOs, I am using redhat linux 6.2, on a x86 box. The latest download of apache. I built my own mod_jk.so from source. I get this error message when I run apache. --- [johnd@board apache2080]$ bin/httpd [1] 30230 [johnd@board apache2080]$ Syntax error on line 9 of /home/tomcat/conf/mod_jk.conf-auto: Cannot load /home/apache2080/libexec/mod_jk.so into server: /home/apache2080/libexec/mod_jk.so: undefined symbol: map_name_at ---
Re: Best IDE for Servlet Development?
Hi Curtis I think 'best IDE' is like 'best flavor of ice cream' and is a matter of personal taste, but here are a few places to look. I highly recommend visits to Sun's Forte pages and NetBeans.org, if for no other reason than all the great places they lead. AnyJ from Netcomputing http://www.netcomputing.de Free trial Price: $198 USD Platforms: Linux, OS/2, Solaris, Win9x, WinNT 4, Win2K Bolero Component Studio from Software AG http://www.softwareag.com/bolero Price: ? Platforms: WinNT 4 Forte for Java Community Edition, Forte for Java Internet Edition, from Sun Microsystems http://www.sun.com/forte/ffj/index.html Community Edition is free, Internet Edition has free trial Price: $495 USD for Internet Edition Platforms: Everything supported by the competition plus others that support the Java 2 SDK v1.3 This is where I'd suggest anyone interested in Java IDEs look first. Besides information on their own products, Sun provides links and information for competing products. JBuilder, JBuilder Professional, JBuilder Enterprise from Inprise/Borland http://www.borland.com/jbuilder JBuilder Foundation and Enterprise free trial offers Price: $49 - $2,999 USD Platforms: Linux, Solaris, Win98, WinNT 4, Win2k Kawa Professional, Kawa Enterprise from Macromedia/Allaire http://www.allaire.com/products/kawa/index.cfm Free trial Price: $129 - $695 USD (single user) Platforms: Win9x, WinNT 4, Win2k NetBeans from NetBeans.org http://www.netbeans.org/ Open-source IDE Price: Free Platforms: Any that support Java 2 Sun's Forte for Java is based on NetBeans. See the NetBeans FAQs for details. This is a definite must-see in my book. Like with so many open-source projects, this one has tons of free add-ons, tweaks, mods, goodies, tips and fun. VisualAge for Java, VisualAge for Java Enterprise from IBM http://www-4.ibm.com/software/ad/vajava/ VisualAge for Java Entry Edition free after registering with VisualAge Developers Domain Price: $123 - $2,849 USD Platforms: Linux, Win98, WinNT 4, Win2k Visual Cafe Enterprise Suite from WebGain http://www.visualcafe.com/products/visual_cafe/enterprise_edition/ Price: $4,995 Platforms: Win9x, WinNt 4, Win2k Source Studio from KeyEdit Technologies also claims JSP and servlet support but the product page is currently off-line. http://www.keyedit.com/sstudio/ Java World has a big list of Java IDEs at http://www.javaworld.com/javaworld/tools/jw-tools-ide.html Infoworld gave IBM's VisualAge for Java Enterprise Edition higher marks than they gave VisualCafe for Java Enterprise Suite or JBuilder Enterprise Edition. http://www.infoworld.com/testcenter/comparison/991213tcrc.html Earthweb's Gamelan remains a great source of Java information in general. http://softwaredev.earthweb.com/java michael-thomas.com keeps an updated list of Java IDEs at http://www.michael-thomas.com/java/javacert/java_ide.htm If you find any of that helpful, please feel free to encourage ANYONE to respond to my request for some Tomcat Virtual Host setup examples. ;-) __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Final resolution on JCE exceptions and Tomcat (3.2.1)?
Hello all, Today I encountered the same problem as several others (based upon my search of the archive on mikal.org) regarding using Sun JCE 1.2.1 in a web app deployed in Tomcat (3.2.1) by putting the four jar files in the WEB-INF/lib dir. That is, it throws a SecurityException (see below). There were to suggestions made: 1) Add -Djava.protocol.handler.pkgs=sun.net.www.protocol to the java command for starting tomcat 2) Move the 4 jar files into the tomcat lib dir The first doesn't work for me. The second isn't acceptable in the long term, and I'd like to avoid it in the short term as well. The other problem, is, it doesn't work for me: I get a NoClassDefFoundError: com/sun/crypto/provider/SunJCE. I fixed that by moving the tomcat dir out of Program Files which allowed the classpath to be set properly. So, in the end, I got it working with option #2, above. Does anyone know how to get it working by putting the JCE files into the lib dir of the web application (WEB-INF/lib)? Does this work propertly in Tomcat 4? Thanks, Doug 2001-04-29 05:42:03 - Ctx( X ): Exception in: R( X + /Login + null) - java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set up certs for trusted CAs at javax.crypto.b.clinit([DashoPro-V1.2-120198]) at javax.crypto.Cipher.getInstance([DashoPro-V1.2-120198]) at X.User.clinit(User.java:200) at X.servlet.Login.processRequest(Login.java:137) at X.servlet.Login.doPost(Login.java:197) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484)
Re: mod_jk
map_name_at is a function in jk_map.c in jakarta-tomcat-3.2.1-src/src/native/jk Obviously you did not compilie/link your mod_jk.so right. Since you are using nonstandard directories, and you do not tell us how you compiled the thing, it is hard to help you. You may try to go to the jakarta-tomcat-3.2.1-src/src/native/apache1.3 directory which should contain a bunch of *.o object files and do: gcc -shared -o mod_jk.so *.o If this does not work, you probably need to repeat the compilation and linking of the mod_jk.so . You may try to create yourself a script along the lines (make sure that the environment variables point where they should) --- cut #!/bin/bash MODJKSRCDIR=/usr/local/src/jakarta-tomcat-3.2.1-src/src/native/apache1.3 APACHE_HOME=/usr/local/apache APXS=${APACHE_HOME}/bin/apxs TC_HOME=/usr/local/tomcat JAVA_HOME=/usr/java cd ${MODJKSRCDIR} ${APXS} -o mod_jk.so -I../jk -I${JAVA_HOME}/include \ -I${JAVA_HOME}/include/linux -c *.c ../jk/*.c gcc -shared -o mod_jk.so *.o cp mod_jk.so ${APACHE_HOME}/libexec --- cut and see what happens... On Sun, 29 Apr 2001, johnd wrote: Please help if you know how to get mod_jk working, I'm desperate. I am really stuck...I have apache compiled to take DSOs, I am using redhat linux 6.2, on a x86 box. The latest download of apache. I built my own mod_jk.so from source. I get this error message when I run apache. --- [johnd@board apache2080]$ bin/httpd [1] 30230 [johnd@board apache2080]$ Syntax error on line 9 of /home/tomcat/conf/mod_jk.conf-auto: Cannot load /home/apache2080/libexec/mod_jk.so into server: /home/apache2080/libexec/mod_jk.so: undefined symbol: map_name_at --- Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/
JDBCRealm not working with cookies disabled...
Hi All, I have a JDBCRealm setup and working with Tomcat 3.2.1, Redhat 6.2 (2.4.3 kernel), and MySQL. Everything works fine until I disable cookies in Internet Explorer (v5.5, WindowsNT 4.0sp6a). Once cookies are disabled, the realm stops working and doesn't write the JSESSIONID into the URL. Am I missing anything in the configuration? Here are the tomcat.log entries: 2001-04-29 04:43:57 - ContextManager: JDBCRealm: Authentication unsuccessful for user null 2001-04-29 04:44:15 - Ctx( www.mydomain.com: ): From login without a session I'm assuming that From login should really be Form login. Shouldn't Tomcat re-write the session id into the URL automatically when cookies are disabled on the browser? Any help is appreciated. Thanks, --jeff
Mod_jk.so
Hello, I have compiled Tomcat from the source on RH 7.0 and now I am getting the following error: API module structure `jk_module' in file /usr/lib/apache/mod_jk.so is garbled - perhaps this is not an Apache module DSO? So then I removed it and have sine recompiled it but I am still getting the same error. Any assistance would be great. Thanks in advance Stuart
Help: Newbie problem starting web server.
version: tomcat 3.1 platform: win98 I'm new in configuring tomcat and fail to start the web server. I've following questions: 1) can I run the tomcat web server on Win98 (9X)? or must be WinNT/2000? 2) after I type 'startup' from the /bin directory, another DOS window prompts up w/ the log (see blow). From this point on, I try using my browser and type: http://localhost:8080 (or http://localhost:8080/index.html). The web server seems not running and the browser prompts me to connect to internet. I don't know how to capture the screen log, below is the extract: (It said 'File not found C:\Apache\Tomcat\webapps\ADMIN.WAR' but the file is in that directory. So' I don't know why) Context log: path=/ADMIN.WAR File not found C:\Apache\Tomcat\webapps\ADMIN.WAR \WEB-INF\web.xml, using only defaults Context log path=/ADMIN.WAR :jsp: init Context log path=/ADMIN.WAR :default: init Context log path=/TEST.WAR :tomcat.errorPage: init Context log: path=/TEST.WAR File not found C:\Apache\Tomcat\webapps\TEST.WAR\W EB-INF\web.xml, using only defaults Context log path=/TEST.WAR :jsp: init Context log path=/TEST.WAR :default: init Context log path=/test :tomcat.errorPage: init Context log path=/test :jsp: init Context log path=/test :default: init Context log path=/EXAMPLES.WAR :tomcat.errorPage: init Context log: path=/EXAMPLES.WAR File not found C:\Apache\Tomcat\webapps\EXAMPL ES.WAR\WEB-INF\web.xml, using only defaults Context log path=/EXAMPLES.WAR :jsp: init Context log path=/EXAMPLES.WAR :default: init Context log path= :tomcat.errorPage: init Context log path= :jsp: init Context log path= :default: init Starting endpoint port=8080 handler=org.apache.tomcat.service.http.HttpConnec tionHandler Starting endpoint port=8007 handler=org.apache.tomcat.service.connector.Ajp12 ConnectionHandler 3) I don't see the tomcat/logs files updated. how to turn the log function on? I'm stuck at this point. Your help is much appreiated. thanks, jackling.
Re: 2 Critical Problems with Tomcat 3.2.x
Indeed. The documentation I've found doesn't seem to clarify this :( but I'll be testing and posting results here on the list. Cheers AndyM Jeff Kilbride wrote: Hi Andy, Sorry, I was assuming you were using Tomcat with Apache. I'm not sure if you can configure thread pooling the same way in standalone mode or not. The configurations I was talking about were for the PoolTCPConnector class, I believe. It's worth a look, but I'm not sure it will apply in your case. Thanks, --jeff - Original Message - From: Andrew McDonald [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, April 26, 2024 10:23 PM Subject: Re: 2 Critical Problems with Tomcat 3.2.x Thank you very much for the advice Jeff. I'll have a go at that. We *are* using a thread pool to run threads that make connections to our database but we have Tomcat in standalone mode. The Tomcat documentation describes setting the max_threads, etc of the ajpv12 connector but i'd suppose the other connectors would have the same/similar syntax. Cheers AndyM Jeff Kilbride wrote: I saw something on the dev list about Tomcat's default thread limit and how, under load, Apache processes could get stuck waiting for a Tomcat thread to become available. Have you changed any of the threading defaults in your server.xml file? Check out the Tomcat Users Guide here: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html and do a find for the phrase max_threads. It shows you how to configure min, max, and spare threads in Tomcat's thread pool and talks about the default values. If you up these values, maybe that will help. Thanks, --jeff - Original Message - From: Bill Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 26, 2001 11:50 AM Subject: RE: 2 Critical Problems with Tomcat 3.2.x I've also been experienceing a lot of the Number 2 problem described where Tomcat stops responding to http requests and I can't figure out what's causing it. I've been able to reproduce the problem with multiple VMs on both Linux and Solaris machines. I applied the patch for Tomcat bug #1006 and the hanging still occurs. I haven't come across any responses to Andy's first post so I thought I'd ask again. Anyone have any idea what's causing this? thanks, Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andrew McDonald Sent: Sunday, April 22, 2001 10:56 PM To: [EMAIL PROTECTED] Subject: 2 Critical Problems with Tomcat 3.2.x Hi there, First I'd like to thank the developers for a great product. Tomcat is a nice piece of software. And like all great OSS, very easy to raise a purchase order for ;) Thanks guys. Unfortunately I have run into a couple of serious show-stoppers when deploying TC in production. A bit of background: We have been running various incarnations of JServ and Tomcat over the past 12 months or so. We have 3 Application Servers: Two Compaq Deskpro PII/450s and one PIII/500 with 128MB Ram each. They are running Linux, kernel is 2.2.19, glibc-2.1.3. We are currently running various incarnations of TC3.2.x We run a Stock Trading Forum, which is made up of Servlets and JSPs. You can see it at http://www.hotcopper.com.au if you're interested at all. We are one of the most hit websites in Australia according to www.top100.com.au. We have tested Tomcat with the Solaris 1.3 JVM, IBM 1.3 JVM and Blackdown 1.3 JVM (FCS). I'm happiest with Blackdown. It *seems* to have the best performance. On to the problems: 1. We dubbed this one The Apache White Screen problem. We connected Tomcat to various versions of Apache =1.14 in the standard way (mod_jk.so) Symptom: People using Internet Explorer to browse our site will intermittently get a white/ blank screen instead of results from our application. When this happens, we believe the request doesn't even enter the java code, so it may be a problem with the connector. I seem to recall (sorry this was about 8 months ago) Apache returning a 304 or a 302. I haven't re-tested this in a while, I was just wondering whether people were aware of this problem in the past and had already looked into it and possibly fixed it. Our solution was to run Tomcat standalone, which seemed to solve this issue. 2. We dubbed this one The 132 Thread Problem, even though it doesn't always happen with 132 threads; sometimes 128, 130, or if using the Blackdown JVM, 134. (wierd). We use NATIVE threads. Symptom: Tomcat stops responding to http requests after a certain number (~132) of threads is reached. When this happens it will either deadlock or segfault. During
Re: 2 Critical Problems with Tomcat 3.2.x
Hi there! Thank you very much for your report on the white screen problem. There seems to have been a lot of work on the web connector since I used it last and I was hoping that this problem was resolved. This is great news if I experience the same behaviour you have. Time for some testing! Thanks for the advice re: session timeouts. yes, we do use sessions. I don't believe we are going OOM but it's certainly worth investigating. I will keep you all posted. Best wishes. Cheers AndyM Kim Jong Tae wrote: I experienced TC 3.2.1 white screen problem!. I found bug #1006 of TC 3.2.1 and I upgraded TC 3.2.2b3 and white screen problem never happened. I recommend you should upgrade TC 3.2.2.. And if your application uses session, check your session timeout. If timeout is too long, your JVM may use too big memory! Good luck to you! On Sat, 27 Apr 2024, Andrew McDonald wrote: Thanks Bill for chasing this up, I really didn't want to repost. I was thinking of posting to the tomcat-dev list wrt these problems but I believe tomcat-user is the more appropriate list for discussing these sorts of issues. I thought I better give a few more data points: - Last night I set the logging to FATAL on the tomcat.log, etc. I read on the tomcat-dev list that having it set on DEBUG is potentially dangerous: the logger may not be able to keep up under extreme load. - I was almost *convinced* that I was running across bug #1006 too! However after installing tc 3.2.2b2 the problem remained. - Jeff Kilbride suggested I try to cap the max_threads etc of the thread pool, which may help. I will be trying this soon (but not today: Fridays are bad days to modify production systems) We need a solution to this and are willing to help in whatever way we can. We are testing commercial alternatives such as JRun and BEA despite my reluctance: Apart from these 2 critical problems I think Tomcat is great and I love OSS projects such as this. I'm expected to get this fixed through whatever means possible so any suggestions would be appreciated. Cheers AndyM Bill Graham wrote: I've also been experienceing a lot of the Number 2 problem described where Tomcat stops responding to http requests and I can't figure out what's causing it. I've been able to reproduce the problem with multiple VMs on both Linux and Solaris machines. I applied the patch for Tomcat bug #1006 and the hanging still occurs. I haven't come across any responses to Andy's first post so I thought I'd ask again. Anyone have any idea what's causing this? thanks, Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andrew McDonald Sent: Sunday, April 22, 2001 10:56 PM To: [EMAIL PROTECTED] Subject: 2 Critical Problems with Tomcat 3.2.x Hi there, First I'd like to thank the developers for a great product. Tomcat is a nice piece of software. And like all great OSS, very easy to raise a purchase order for ;) Thanks guys. Unfortunately I have run into a couple of serious show-stoppers when deploying TC in production. A bit of background: We have been running various incarnations of JServ and Tomcat over the past 12 months or so. We have 3 Application Servers: Two Compaq Deskpro PII/450s and one PIII/500 with 128MB Ram each. They are running Linux, kernel is 2.2.19, glibc-2.1.3. We are currently running various incarnations of TC3.2.x We run a Stock Trading Forum, which is made up of Servlets and JSPs. You can see it at http://www.hotcopper.com.au if you're interested at all. We are one of the most hit websites in Australia according to www.top100.com.au. We have tested Tomcat with the Solaris 1.3 JVM, IBM 1.3 JVM and Blackdown 1.3 JVM (FCS). I'm happiest with Blackdown. It *seems* to have the best performance. On to the problems: 1. We dubbed this one The Apache White Screen problem. We connected Tomcat to various versions of Apache =1.14 in the standard way (mod_jk.so) Symptom: People using Internet Explorer to browse our site will intermittently get a white/ blank screen instead of results from our application. When this happens, we believe the request doesn't even enter the java code, so it may be a problem with the connector. I seem to recall (sorry this was about 8 months ago) Apache returning a 304 or a 302. I haven't re-tested this in a while, I was just wondering whether people were aware of this problem in the past and had already looked into it and possibly fixed it. Our solution was to run Tomcat standalone, which seemed to solve this issue. 2. We dubbed this one The 132 Thread Problem, even though it doesn't always happen with 132 threads; sometimes 128, 130, or if using the Blackdown JVM, 134. (wierd). We use NATIVE threads. Symptom: Tomcat stops responding to http requests after a certain number (~132) of threads is reached.
Httpd error
Hello, When I start httpd I get the following error.. [Mon Apr 30 10:46:46 2001] [emerg] (38)Function not implemented: Error while opening the workers Please let me know what the possable error is.. Thanks in advance.. Stuart
solaris exception
Anyone running Solaris 8 x86? I am now running Solaris 8 on x86, I used to run linux on x86. Since switching to Solaris I see a lot of 'SocketExceptions:' something about reset my peer... on linux I never saw these. Does anyone know what I'm talking about? if so...does it concern you?
Re: solaris exception
On Sun, Apr 29, 2001, Purple Mutants made johnd write: Anyone running Solaris 8 x86? Ohh ohh me me.. Since switching to Solaris I see a lot of 'SocketExceptions:' something about reset my peer... What log file are you seeing these in? If your seeing them in the Webserver logs that I wouldn't really worry about it. If your seeing it alot in the Tomcat logs and your getting issues with servlets then I would make sure you have the OS up to the latest patche levels looking especially at the TCP/IP patches. I've got my x86 box almost fully setup and probably going live with production traffic middle of next week, so I'll see if I have any of those error messages pop up. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * I'm already visualizing the duct tape over your mouth. *
Re: solaris exception
I've been told, 'see I told you not to run solaris on x86...'. Do you think if I moved this to a sparc box with solaris 8, the problem would still exist? I'm basically trying solaris x86 to get a feel for solaris. If I like solaris I'll move to sparcs...I was told don't evaluate solaris on x86, it is not the same. I'm trying to determine which OS to marry...I know linux inside and out and have a lot of documentaion available on it...I feel there are more resource on the web to support linux knowledge. But I have always looked to Solaris as having god like qualities, not to mention that we are a java shop...and am wondering if I should just go through the learning curve and get to know solaris inside and out, too... - Original Message - From: Steve Brunton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 29, 2001 7:48 PM Subject: Re: solaris exception On Sun, Apr 29, 2001, Purple Mutants made johnd write: Anyone running Solaris 8 x86? Ohh ohh me me.. Since switching to Solaris I see a lot of 'SocketExceptions:' something about reset my peer... What log file are you seeing these in? If your seeing them in the Webserver logs that I wouldn't really worry about it. If your seeing it alot in the Tomcat logs and your getting issues with servlets then I would make sure you have the OS up to the latest patche levels looking especially at the TCP/IP patches. I've got my x86 box almost fully setup and probably going live with production traffic middle of next week, so I'll see if I have any of those error messages pop up. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * I'm already visualizing the duct tape over your mouth. *
core java out of topic
hi all of youSorry... to go out of topicthis is about some core java problem please help me(in any form ie. redirection to other site...) to get the ans. of these question?please mail me on my mail id [EMAIL PROTECTED]firsthow to produce a class file that run withod showing dos prompt(just like a procces)?basically i want to know how to write a aplication that run on background and shows icon on status bar(rigth side) and clicking on that icon the applecation should come on to the foreground and again at minimizing event it will run as background. secondhow to know address of all pc in your LAN ?(just like network nebouhood) can any body explain me at in core level how to handle resume support feature(downloading) from clientside and server side? Thanks in advance Shailendra
Authentiication problem
Hi, We are facing a strange problem It goes something like this... 1. We're using Tomcat as a stand alone servlet engine. we've set up authentication for accessing certain web pages. 2. First time if we access a web page ( ex: default.html) the browser prompts for username password. 3. Now we delete the browser cache and change the system date to a previous date. 4. Close the browser and open a new browser. Again if we try to access default.html the username/password dialog does not pop up. Can some one help ? The browser we're using is IE 5.0 Thanx Pradeep winmail.dat
Re: Wierd Casting Problem. Tomocat Bug?
Did you guys notice that the problem goes away when you restart Tomcat? I posted this earlier, but I found this problem due to rebuilding classes while Tomcat is running and then the classes have different time stamps from the ones already loaded on Tomcat. If you restart Tomcat after making changes, see if everything works? - Original Message - From: Cory L Hubert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 29, 2001 11:56 PM Subject: RE: Wierd Casting Problem. Tomocat Bug? The casting itself isn't the problem. The issue is the ClassLoader. When jasper tries to pick up classes off tomcat's classpath dynamically issues popup. For example. You can be working on a JSP file. Hit it from the browser. It compiles, everything is fine. Now. You want to import a file that is in your WEB-INF/classes directory.So you do a %@page import= and try Cast an extisting object (one that was in the previously compile page) to the type you just imported. Most likely you will get a ClassCastException even though it is an instanceof what your trying to cast to. You can regenerate this error on Win32. I haven't tried it on Unix. But I wouldn't be suprised if this didn't happen at all on Unix. Over all. Tomcat just needs to support better ClassLoading support on Win32. Which I am pretty sure is a development environment for most of us. -Original Message- From: Warren Crossing [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 5:19 PM To: '[EMAIL PROTECTED]' Subject: RE: Wierd Casting Problem. Tomocat Bug? Hi, I have experienced the same problem, in varying degrees of complexity.. I think it may be possible to trick java using Serialization the serialVersionUID field in a class. the tool serialver displays the serialVersionUID of a class and this use of serialization is typically used in streaming objects across physical, logical persistence boundaries.. Really sketchy answer i know.. but may be worth looking into.. Someone must know something about safe casting? Wozza. -Original Message- From: Ivan [mailto:[EMAIL PROTECTED]] Sent: Monday, 30 April 2001 5:10 AM To: [EMAIL PROTECTED] Subject: Re: Wierd Casting Problem. Tomocat Bug? I posted the same problem yesterday but totally solved it on my case two things Technically Java should only allow you to cast an object to a superclass or subclass of the class, so if member is not inherited from Object then trying to cast an object to a member should fail. however i found this rule not enforced. What i found was that i was rebuilding as i tested without restarting the server and thus the object in the vector had a diffrenent time stamp than the class i just rebuilt which is why the instanceof test failed even thought it returned the exaxt class name i was testing for. Therefore, make sure to restart your server after you rebuild your code or else the types wont match since the old class signature may already be loaded. Hope this helps, Ivan PS my problem is fixed know so i dont think it is a tomcat bug - Original Message - From: Cory L Hubert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 29, 2001 11:13 AM Subject: RE: Wierd Casting Problem. Tomocat Bug? I found out the problem. This looks like an extreme hack though. $=((member) ((Object)e.nextElement()) ).getFname()% Works. But why do I have to cast to an Object before I cast it back to it's appropiate type. My only guess is that the Servlet DownCast the Vector to an Object (because there is some reflection that goes on) before setting the Attribute and passing it to JSP. But the actual member objects are put in the Vector as member Objects. Any Ideas? Does anyone thing it's wierd that you have to cast to and Object then to the Type. I believe this isn't a Java Bug it may be a Tomcat Bug. Because I don't have to cast to an Object, if I am casting to member objects in the Servlet. -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 3:46 AM To: [EMAIL PROTECTED] Subject: Wierd Casting Problem. Ok. Here is the problem. I am using Model 2 Architecture. So my Servlet handles all the biz logic and pushes the results that are then displayed by jsp pages. Within a jsp page I grab my vector from the request like so.. Vector mems =(Vector)request.getAttribute(response); Then I try to loop around it and cast it to the appropiate Object. Like so... % for (int i=0; i mems.size(); i++) { member m = (member)mems.get(i); % %=m.getFname()% %}% I get a ClassCastException. But when I do a toString on the Object itself without casting, it specifies the package name of the object that I am trying to cast to. To make matters wierder. When I do a getClass().isInstance(THE OBJECT I WANT TO CAST TO) it returns false? What is
Re: Default home for server
Yes, i am trying to set /ROOT/muDir as default webserver home dir - krishnakant Barthélémy TEHAM wrote: Try by adding ApJServMount /ROOT/myDir in your tomcat configuration file Are you try to set /ROOT/myDir as default webserver home dir ? --- Krishna Kant T [EMAIL PROTECTED] a écrit : hi teham win nt service pack 4 running tomcat 3.2 -krishna kant Barthélémy TEHAM wrote: What's your configuration ? ( OS and web server ) --- Krishna Kant T [EMAIL PROTECTED] a écrit : hi teham thanx for responding. i have configured tomcat with vcm such that any request with /myDir is passed on to tomcat which serves the jsp's. so i guess the setting will have to be made on tomcat. what do u think? -krishna kant Barthélémy TEHAM wrote: --- Krishna Kant T [EMAIL PROTECTED] a écrit : hi guys i need to set a jsp present in webapps/ROOT/myDir as the default home page for the server. i have tried setting it in web.xml as follows You have to change your DocumentRoot path in the configuration file of your web server If you use Apache server: change the line DocumentRoot old_path with DocumentRoot tomcat_home/webapps/ROOT/myDir And add in directive DirectoryIndex home.jsp You also have to configure your Directory in Apache configuration file = Barthélémy TEHAM - E-mail : [EMAIL PROTECTED] Website: http://teham.free.fr ___ Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com = Barthélémy TEHAM - E-mail : [EMAIL PROTECTED] Website: http://teham.free.fr ___ Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com = Barthélémy TEHAM - E-mail : [EMAIL PROTECTED] Website: http://teham.free.fr ___ Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com
session timeout
hi guys! just wondering if there some kind of session timeout on in Tomcat itself? If i leave a page that I am using sessions on for security for a while, and come back to it and try and do something on it, it gives me a message that suggests to me that there is some kind of timeout for sessions on the server. If there is, is there a way to alter its value? Document moved This document has moved here. Error: 500 Location: /test/jason/add_event/add_event.jsp Internal Servlet Error: javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at jason.add_0005fevent._0002fjason_0002fadd_0005fevent_0002fadd_0005fevent_0002ejspadd_0005fevent_jsp_83._jspService(_0002fjason_0002fadd_0005fevent_0002fadd_0005fevent_0002ejspadd_0005fevent_jsp_83.java:218) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:7 _ http://store.yahoo.com.au - Yahoo! Store - It's time you had your business online!
RE: IIS tomcat
Hello I'm trying to get IIS/Tomcat working with the ISAPI_REDIRECTOR.DLL Almost there now. The problem now is that my own (myjsp.jsp) works fine when I place the files under: c:/jakarta-tomcat/webapps/examples/jsp and use: http://localhost/examples/jsp/myjsp.jsp but using: http://localhost/myjsp.jsp leads to the html parts being displayed but the java code is not processed. For example instead of picking up a form field the code : request.getParameter... is displayed (with Tomcat running). It looks like the java code is ignored. So near yet so far...thoughts anyone please ! Many thanks Hamant
RE: Wierd Casting Problem. Tomocat Bug?
It's not in the classpath at all. I think it's just a dynamic classloader quirk. All my classes are picked up from the WEB-INF/classes directory. After I stopped looking into problem so deeply and just kicked tomcat (restarted it). Everything worked. I also did some more reading and it doesn't seem like this is the only issue with the classloader. It seems like tomcat is suppost to pick up all the lib's in the Tomcat Home lib directory but it only does this in Unix not Win32. They claim that it is because of the way Win32 locks files,etc, etc. But I have worked with dynamic classloader for Win32 that work around that issue and also work on Unix. Overall I think the ClassLoader in Tomcat Needs some work. -Original Message- From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 9:49 AM To: [EMAIL PROTECTED] Subject: RE: Wierd Casting Problem. Tomocat Bug? Are any of the classes you are using defined outside of the web app. That is, are you using any libraries, or class files which you specify on the classpath prior to tomcat starting, which may also be in your web-app. It is situations like this which the more experienced folks point to as the cause to this problem. Generally, the type of error you are mentioning happen if the class is loaded by a higher level class loader than the JSP/Servlet's loader, but the JSP/Servlet sees the web-app's WEB-INF class and libs before the system's classes and libs. So if the object was created by the system class loader (with it's copy of the class), it has a different 'Class ID' than one loaded by the JSP/Servlet class loader. In short, try to remove all elements from your class path and extentions directories, and put them all in the webapp for a short testing period. See if this exposes solves the error or exposes a place where some code would get a class from a different class loader than from others. Then you can slowly move the libraries back where they came from to better isolate your problem. Hope that helps, Paul -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 3:33 PM To: [EMAIL PROTECTED] Subject: RE: Wierd Casting Problem. Tomocat Bug? Casting could happen in a regular fashion if you just restart. Wierd. Is anyone planning on fixing this issue, no developer should have a 12 hour problem because of a faulty Dynamic class loader. -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 11:29 AM To: [EMAIL PROTECTED] Subject: RE: Wierd Casting Problem. Tomocat Bug? When I restart that little trick doesn't work anymore. I have a feeling it's defenaitley a bug. Can anyone confirm? -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 11:14 AM To: [EMAIL PROTECTED] Subject: RE: Wierd Casting Problem. Tomocat Bug? I found out the problem. This looks like an extreme hack though. $=((member) ((Object)e.nextElement()) ).getFname()% Works. But why do I have to cast to an Object before I cast it back to it's appropiate type. My only guess is that the Servlet DownCast the Vector to an Object (because there is some reflection that goes on) before setting the Attribute and passing it to JSP. But the actual member objects are put in the Vector as member Objects. Any Ideas? Does anyone thing it's wierd that you have to cast to and Object then to the Type. I believe this isn't a Java Bug it may be a Tomcat Bug. Because I don't have to cast to an Object, if I am casting to member objects in the Servlet. -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 3:46 AM To: [EMAIL PROTECTED] Subject: Wierd Casting Problem. Ok. Here is the problem. I am using Model 2 Architecture. So my Servlet handles all the biz logic and pushes the results that are then displayed by jsp pages. Within a jsp page I grab my vector from the request like so.. Vector mems =(Vector)request.getAttribute(response); Then I try to loop around it and cast it to the appropiate Object. Like so... % for (int i=0; i mems.size(); i++) { member m = (member)mems.get(i); % %=m.getFname()% %}% I get a ClassCastException. But when I do a toString on the Object itself without casting, it specifies the package name of the object that I am trying to cast to. To make matters wierder. When I do a getClass().isInstance(THE OBJECT I WANT TO CAST TO) it returns false? What is going on here? Is this some classLoader issue? Some tips that might help figure this issue out.. I am
RE: Wierd Casting Problem. Tomocat Bug?
Yes the problem is very wierd. Obviously an issue with the classloader. Are you developing on Win32? I am developing on Win32 and deploying on Unix? What really boggled me was when I did a instanceof and it was exactly the type I was trying to cast too. -Original Message- From: Ivan [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 12:10 PM To: [EMAIL PROTECTED] Subject: Re: Wierd Casting Problem. Tomocat Bug? I posted the same problem yesterday but totally solved it on my case two things Technically Java should only allow you to cast an object to a superclass or subclass of the class, so if member is not inherited from Object then trying to cast an object to a member should fail. however i found this rule not enforced. What i found was that i was rebuilding as i tested without restarting the server and thus the object in the vector had a diffrenent time stamp than the class i just rebuilt which is why the instanceof test failed even thought it returned the exaxt class name i was testing for. Therefore, make sure to restart your server after you rebuild your code or else the types wont match since the old class signature may already be loaded. Hope this helps, Ivan PS my problem is fixed know so i dont think it is a tomcat bug - Original Message - From: Cory L Hubert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 29, 2001 11:13 AM Subject: RE: Wierd Casting Problem. Tomocat Bug? I found out the problem. This looks like an extreme hack though. $=((member) ((Object)e.nextElement()) ).getFname()% Works. But why do I have to cast to an Object before I cast it back to it's appropiate type. My only guess is that the Servlet DownCast the Vector to an Object (because there is some reflection that goes on) before setting the Attribute and passing it to JSP. But the actual member objects are put in the Vector as member Objects. Any Ideas? Does anyone thing it's wierd that you have to cast to and Object then to the Type. I believe this isn't a Java Bug it may be a Tomcat Bug. Because I don't have to cast to an Object, if I am casting to member objects in the Servlet. -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 3:46 AM To: [EMAIL PROTECTED] Subject: Wierd Casting Problem. Ok. Here is the problem. I am using Model 2 Architecture. So my Servlet handles all the biz logic and pushes the results that are then displayed by jsp pages. Within a jsp page I grab my vector from the request like so.. Vector mems =(Vector)request.getAttribute(response); Then I try to loop around it and cast it to the appropiate Object. Like so... % for (int i=0; i mems.size(); i++) { member m = (member)mems.get(i); % %=m.getFname()% %}% I get a ClassCastException. But when I do a toString on the Object itself without casting, it specifies the package name of the object that I am trying to cast to. To make matters wierder. When I do a getClass().isInstance(THE OBJECT I WANT TO CAST TO) it returns false? What is going on here? Is this some classLoader issue? Some tips that might help figure this issue out.. I am importing the class I am casting, in the JSP page. like so.. %@page import=thepackage.member, java.util.*% And the class itself isn't in a jar. It's in the WEB-INF/classes directory. I also changed the container from a Vector to an ArrayList and got the same results. And I can instantiate the member object itself and use it in the jsp page. Any ideas? Please. Someone, HELP!!!
RE: Wierd Casting Problem. Tomocat Bug?
Hi, I have experienced the same problem, in varying degrees of complexity.. I think it may be possible to trick java using Serialization the serialVersionUID field in a class. the tool serialver displays the serialVersionUID of a class and this use of serialization is typically used in streaming objects across physical, logical persistence boundaries.. Really sketchy answer i know.. but may be worth looking into.. Someone must know something about safe casting? Wozza. -Original Message- From: Ivan [mailto:[EMAIL PROTECTED]] Sent: Monday, 30 April 2001 5:10 AM To: [EMAIL PROTECTED] Subject: Re: Wierd Casting Problem. Tomocat Bug? I posted the same problem yesterday but totally solved it on my case two things Technically Java should only allow you to cast an object to a superclass or subclass of the class, so if member is not inherited from Object then trying to cast an object to a member should fail. however i found this rule not enforced. What i found was that i was rebuilding as i tested without restarting the server and thus the object in the vector had a diffrenent time stamp than the class i just rebuilt which is why the instanceof test failed even thought it returned the exaxt class name i was testing for. Therefore, make sure to restart your server after you rebuild your code or else the types wont match since the old class signature may already be loaded. Hope this helps, Ivan PS my problem is fixed know so i dont think it is a tomcat bug - Original Message - From: Cory L Hubert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 29, 2001 11:13 AM Subject: RE: Wierd Casting Problem. Tomocat Bug? I found out the problem. This looks like an extreme hack though. $=((member) ((Object)e.nextElement()) ).getFname()% Works. But why do I have to cast to an Object before I cast it back to it's appropiate type. My only guess is that the Servlet DownCast the Vector to an Object (because there is some reflection that goes on) before setting the Attribute and passing it to JSP. But the actual member objects are put in the Vector as member Objects. Any Ideas? Does anyone thing it's wierd that you have to cast to and Object then to the Type. I believe this isn't a Java Bug it may be a Tomcat Bug. Because I don't have to cast to an Object, if I am casting to member objects in the Servlet. -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 3:46 AM To: [EMAIL PROTECTED] Subject: Wierd Casting Problem. Ok. Here is the problem. I am using Model 2 Architecture. So my Servlet handles all the biz logic and pushes the results that are then displayed by jsp pages. Within a jsp page I grab my vector from the request like so.. Vector mems =(Vector)request.getAttribute(response); Then I try to loop around it and cast it to the appropiate Object. Like so... % for (int i=0; i mems.size(); i++) { member m = (member)mems.get(i); % %=m.getFname()% %}% I get a ClassCastException. But when I do a toString on the Object itself without casting, it specifies the package name of the object that I am trying to cast to. To make matters wierder. When I do a getClass().isInstance(THE OBJECT I WANT TO CAST TO) it returns false? What is going on here? Is this some classLoader issue? Some tips that might help figure this issue out.. I am importing the class I am casting, in the JSP page. like so.. %@page import=thepackage.member, java.util.*% And the class itself isn't in a jar. It's in the WEB-INF/classes directory. I also changed the container from a Vector to an ArrayList and got the same results. And I can instantiate the member object itself and use it in the jsp page. Any ideas? Please. Someone, HELP!!!