Exception with HttpSession.getAttribute

2001-03-15 Thread Franck HUGOT
Hi, I have a NullPointerException when I try to use getAttribute method in HttpSession class. java.lang.NullPointerException: at org.apache.tomcat.facade.HttpSessionFacade.getAttribute(HttpSessionFacade.ja va:162) It seems that realSession in HttpSessionFacade class is null. why???

Performance

2001-03-15 Thread Franck HUGOT
Hi, I try Apache+Tomcat on a linux Platform (RedHat) using jk1.2.2, JSDK2.1, JSP1.1 and compare with Apache+Jserv(jdk1.3, JSDK2.0) and it seems tomcat+apache is slower than Apache+JServ Is it a configuration problem? Thanks in advance. Franck

Re: Help with Apache-Tomcat configuration

2001-03-15 Thread Gerard BORREILL
Sorry for this late answer but my company was moving. I think you have now the answer. As far as I remember DSO modules are modules that are loaded dynamically. This allows to add or remove a module without stopping apache. mod_jk is a DSO module. To compile apache with DSO I am using

'Illegal instruction' error message from Tomcat

2001-03-15 Thread Michael Bjerregarrd Pedersen
Hi all We have been using Tomcat for 4 months now without noticeable problems, but recently the error message shown below has started to appear in our development when starting Tomcat. 2001-03-15 09:32:02 - Ctx( /bygnet ): Exception in: R( /bygnet + /servlet/BygNetServlet + null) -

Tomcat 3.2, RMI, JNDI Classloaders: a solution

2001-03-15 Thread Carlos Pita
Hi all! A lot of people has been having problems with Tomcat 3.2, classloaders, jndi, jndi.properties, rmi and stubs when trying to call ejbs from Tomcat in a different JVM. The problem is simple: because jndi and rmi classes are loaded by the system (or bootstrap, I can't remember it but it

JSP PATH

2001-03-15 Thread Elgene Castaneda
I have installed Tomcat to my linux machine and I'm having this problem: How do I setup the path of my JSP? I tried to put my JSP to /path/to/tomcat/webapps/myjsp but i got the error "404 Error" it looks like he cannot see my JSP and when I look at the logs, he is pointing to

Re: MYSQL CONNECTION CLASS

2001-03-15 Thread hische
I am using the com.javaexchange.dbConnectionBrocker package. It's simple, free and does the trick. Wilko "Guilherme Zambon" [EMAIL PROTECTED] on 15-03-2001 02:29:03 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED], jos placide [EMAIL PROTECTED] cc:(bcc: Wilko

Re: java.lang.ClassCastException: AuthBean

2001-03-15 Thread Pater Pandoson
"TAI Wai Wang, Leo" wrote: Hi! Have u tried to test the AuthBean independently? Does the bean try to cast one object to another object? I think, there are some problems in your beam when casting. Try to modify the classes relationship, eg: one class is the superclass of another. It may be

Open Files problem caused by requests for jsp pages

2001-03-15 Thread Daniel Zuck
Hello world :) We're running a JSP application, and upgraded our plattform from Tomcat 3.1 to 3.2.1, and we're running into a 'open files' problem. The symptom is: it runs for a while, until all available file handles are in use - which causes the underlaying FeeBSD to refuse

java.lang.IllegalArgumentException: Short Read

2001-03-15 Thread Anthony Dodd
Hi I'm experiencing a problem using Tomcat 3.2.1 via Apache 1.3.12. I've wriitten a servlet which works fine when accessed directly in tomcat, but when the same servlet is accessed via apache using mod_jk I get the following error. java.lang.IllegalArgumentException: Short Read

Jakarta-Tomcat and IIS

2001-03-15 Thread joeri
Dear Tomcat-users, I'm working with Jakarta-Tomcat for a while, and I'd like to post some questions regarding problems I ran into: 1. At what level should I install the jakarta-filter? In the IIS Management Console, it is possible to install filters on the level of a single website or the

Catalina and localhost:8080

2001-03-15 Thread di man
Hello ppl, I've installed Tomcat 4.0b1 and get to run Catalina from $CATALINA_HOME=../jakarta/build/tomcat-4.0 But I cant get to work http://localhost:8080 ( no exceptions or errors in /logs .. ) hints? TIA -d- _ Get

Re: Tomcat 3.2.1: slow initialization of compiled JSP

2001-03-15 Thread Andy C
Which JVM are you using ? I find that the first load time dependson the version of JVM, 1.1.6 is versy slow while 1.3 is much faster. (note: This is NT2000) Andy C Editor R2 Project http://www.r2-dvd.org - Original Message - From: "Fergus Gallagher" [EMAIL PROTECTED] To: [EMAIL

Re: MYSQL CONNECTION CLASS

2001-03-15 Thread Guilherme Zambon
Thanks to all that tried do help me :). I was really about to live from Tomcat to another Jsp Runner when I got this problem. I really think Tomcat needs a internal connection pooling, and I wish someday we will have it! [ ]'s Guilherme Zambon [EMAIL PROTECTED], [EMAIL PROTECTED] - home [EMAIL

Re: java.lang.ClassCastException: AuthBean

2001-03-15 Thread Joel Cordonnier
Hi! Why do you say that it's a ClassCastEXCEPTION ? Hi habe the same error sometimes when I use tag libraries in my JSP ! Joel --- "TAI Wai Wang, Leo" [EMAIL PROTECTED] a crit : Hi! Have u tried to test the AuthBean independently? Does the bean try to cast one object to another object? I

Can tomcat handle National Characters?

2001-03-15 Thread Tor Einar Solli
My IIS is serving Norwegian characters well, but tomcat doesn't hadle them. It chops off the url at the first "illegal" character. Any suggestions? Is it possible to configure tomcat to handle spesial characters? /Tor Einar Solli

Re: 'work' Folder--help??

2001-03-15 Thread Zenon Braga F.
I'm not sure, but the work directory is for hold the servlet's that the jsp generates, that is, before any jsp works, it need to generate a servlet, and the code of this servlet is hold in work directory. sincerely, Zenon Farias Braga F. From: "Mick Sullivan" [EMAIL PROTECTED]

Setting max Heap size in Tomcat

2001-03-15 Thread Bhalchandra Patil
Hi, I am facing out of memory problem after continuous access of the tomcat. I want to set the maximum heap size that can be used by TOMCAT. what do i need to do for changing the max heap size? regards, Bhala

Re: Reloading Pages....Help

2001-03-15 Thread Zenon Braga F.
I'm not sure, but every jsp generates a servlet in work directory and these servlets are erased when you invoke shutdown.sh, thus the simplest thing to do is to invoke shutdown.sh and then startup.sh, and the second simplest thing to do is to go to work directory and "rm *".

Re: Setting max Heap size in Tomcat

2001-03-15 Thread Gavin_Panella
Tomcat is a Java application like any other so you can change the max heap size the same as you would for anything else. For the Sun JDK 1.3 (and probably 1.2) all you have to do is run it like: java -Xmx128M some.class.to.Run Just replace the "128M" with the maximum heap size. Type

RE: org.apache.jasper.JasperException: Unable to compile class fo r JSP

2001-03-15 Thread Randy Layman
THIS IS NOT CORRECT. Tomcat was looking for the class jsp.dates.DBWriter in its classpath - WEB-INF/classes, one of the JAR files in WEB-INF/lib, one of the JAR files in TOMCAT_HOME/lib, or somewhere in the classpath Tomcat was started with. TOMCAT WILL NEVER LOOK FOR CLASSES RELATIVE

Starting Tomcat in Apache

2001-03-15 Thread venkatesan
Hi All, I have tomcat which i am starting everytime by typing /bin/startup.sh and closing by ..bin/shutdown.sh. manually. Tomcat is running with Apache in my Linux system. Can anybody know how Apache web server will start tomcat automatically when it starts and shutdown while it stops.

Diference between jsp/servlet engine X application server

2001-03-15 Thread Jose Euclides da Silva Junior - DIGR.O
Hi everybody, i have one simple doubt. Tomcat has always been known as a jsp/servlet engine, instead of a jsp/servlet application server. Why? The basic concept of application server should be applied to Tomcat, since it supports information systems. Am i right? Regards, Jos Euclides Jnior

Re: Starting Tomcat in Apache

2001-03-15 Thread Kenneth Westelinck
Hi, I think you'll have to create a general startup script. The script starts Tomcat first and, if the auto-conf file is generated, starts Apache afterwards. I don't have much experience in scripting in Linux, but this is how I do it on Windows NT. startup.bat: @echo off set

Re: Starting Tomcat in Apache

2001-03-15 Thread Arnaud Vandyck
venkatesan wrote: Hi All, I have tomcat which i am starting everytime by typing /bin/startup.sh and closing by ..bin/shutdown.sh. manually. Tomcat is running with Apache in my Linux system. Can anybody know how Apache web server will start tomcat automatically when it starts and

RE: almost there

2001-03-15 Thread Reeves, Kenneth
You are absolutly right. I realized my mistake and took the edit I made out of the script. Restarted tomcat, restarted apache and I get the same error as before. Now I am just trying to get tomcat to answer on port 8080, and it won't do that. So again I believe that I have some configuration

Tomcat 3.2 VisualAge 3.5

2001-03-15 Thread W . R . Knotts
Despite following the advice provided in previous posts, I still seem to be unable to debug my own servlets in VisualAge 3.5. I have installed the Tomcat Environment with VA by following Sheldon Wosnick's articles and can successfully debug the Tomcat examples (as well as my own code that was

Re: Set an application's working path

2001-03-15 Thread Jason Kary
Alexander, I would suggest that you have a couple of options here: 1) HttpServletRequest has the following methods getRealPath() and getTranslatedPath(). You could use these to get the path to you application directory structure. 2) Lookup the context attribute

FW: Tomcat configuration questions?

2001-03-15 Thread Ben Sifuentes
I sent this yesterday but, I don't see it on the list today so I'm sending it again -Original Message- From: Ben Sifuentes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 5:02 PM To: [EMAIL PROTECTED] Subject: Tomcat configuration questions? Currently my Apache is servicing

RE: almost there

2001-03-15 Thread Reeves, Kenneth
Andrew, I had commented out the portion of the connector8080 in the server.xml file. I uncommented it, shutdown apache, shutdown tomcat, restarted tomcat, restarted apache and now the servlets work on port 8080, but not on port 8007 through apache. So I am getting closer. Thanks, Ken

Re: almost there

2001-03-15 Thread andrewdrobson
Hi Ken, Have you ever got rid of the initial rogue process running on port 8007? You'll certainly get this error until you do whether running tomcat standalone or not with your current config. I'd shutdown everything, make sure no longer have the connector running on 8007 before trying again.

RE: Servlet path configuration in Tomcat/Apache

2001-03-15 Thread Georges Boutros
i've been having the same problem. i didn't find a solution yet thanks -Original Message- From: Zhengan Cai [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 11:51 PM To: [EMAIL PROTECTED] Subject: Servlet path configuration in Tomcat/Apache Dear Sir/Madam: I have installed

Re: 'work' Folder--help??

2001-03-15 Thread Milt Epstein
On Thu, 15 Mar 2001, Andy C wrote: - Original Message - From: "Christopher J Cowan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 14, 2001 11:27 PM Subject: RE: 'work' Folder--help?? I thought the work folder is for intermediate files used by Tomcat... as

RE: almost there

2001-03-15 Thread Reeves, Kenneth
Andrew, I checked it out using fuser 8007/tcp with tomcat shutdown and started and I only get the pid's of the processes associated with tomcat when it is started. I get nothing when it is shutdown. So I am confident that there is no other process running on 8007. I must believe that

RE: Troubles with Tomcat

2001-03-15 Thread Tim Coultas
When you type in the ip address, I believe you will have to follow it with the port number that tomcat is listening on, like http://127.0.0.1:8080/index.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 10:18 AM To: [EMAIL

RE: Troubles with Tomcat

2001-03-15 Thread Mishler, Abe
If the machine name works does "http://127.0.0.1/example/jsp/index.html" work? Otherwise I'd suggest specifying the port (8080) unless you're running Apache, this way "http://192.168.167.2:8080/example/jsp/index.html" hope that helps, Abe -Original Message- From: [EMAIL PROTECTED]

Re: 'work' Folder--help??

2001-03-15 Thread suha_yacoub
This may be off the subject, but I am unable to run any JSPs on tomcat/apache/solaris. Could that be because the work folder must have write permissions for everyone ... ? "Andy C" [EMAIL PROTECTED] on 03/15/2001 02:14:29 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:

RES: Troubles with Tomcat

2001-03-15 Thread Pedro Henrique Ponchio
you can edit the hosts file under the C:\WINNT\system32\drivers\etc directory, like: 200.56.130.196 hostnam_of_your_machine and put the hostname_of_your_machine in the ServerName directive like this: ServerName hostname_of_your_machine and u can use the directive NameVirtualHost 192.168.167.2

Re[2]: ClassCastException :(

2001-03-15 Thread Andrey Myatlyuk
Hello Vladimir, Thank you for your help with classloaders. :) I tried to put my "shared" classes in the classpath. But this approach failed too. I cannot understand. In this case my "shared" classes loaded by "Bootstrap class loader (Java system classes)" and in case any references to them

Start processes on the server

2001-03-15 Thread Kenneth Westelinck
Hi all, I have a server running Apache 1.3.14 together with Tomcat 3.2.1 on a Windows NT 4.0 box . On this server there are some Java programs running, say ProgA and ProgB. If ProgA crashes than someone has to go to the server and execute the startProgA.bat to restart the Java process. Same

Problem displaying JSPs but not Servlets

2001-03-15 Thread suha_yacoub
Hello, I posted this message yesterday, but I have not received any responses. If you have any information I would greatly appreciate it. Thanks in advance. I recently installed Tomcat (via mod_jk) on apache 1.3.14 on a Solaris machine. The java_home and tomcat_home classpaths are set in

Re: Re[2]: ClassCastException :(

2001-03-15 Thread Allen Akers
I ran into the same problem and found the only good solution was to take a look at my custom classes and strip away what was "custom" about them and only save core Java objects to the context. When I need my custom class, I create an instance of it and pass the references to the core Java

RE: Start processes on the server

2001-03-15 Thread Randy Layman
Starting processes are easy - just use Runtime.exec. The problem might be detecting when to start them. My suggestion would be to not have them run as services, but have your servlet start them. Then when your sevlet detects they stop (there's a method in Process class to determine it

RE: A beginner for tomcat.

2001-03-15 Thread Andy Cole
Hi. I was doing some testing on virtual host with different ip addresses in tomcat. I was wondering how can I set the path for jsp and servlets like : /usr/local/jakarta-tomcat-3.2/webapps/examples/WEB-INF/classes I have implemented a virtual host with docBase /usr/home/test/www/servlets. If I

Inconsistent Response already committed exception

2001-03-15 Thread Tim Hengst
I'm stumped. I call an xslt servlet (that returns formatted html output to the JSP response Writer) via a jsp:include action from a jsp page, xsltTransform.jsp. If I put the same xsltTransform.jsp page in different Tomcat web application directories, in one it runs, in another I get a "Response

Re[4]: ClassCastException :(

2001-03-15 Thread Andrey Myatlyuk
Hello Allen, Thursday, March 15, 2001, 10:52:00 AM, you wrote: AA I ran into the same problem and found the only good solution was to take AA a look at my custom classes and strip away what was "custom" about them AA and only save core Java objects to the context. When I need my custom AA

Ctx( ): 400 R( /) null - details about this error?

2001-03-15 Thread Goebel Martin
Okay, now I've found out that this Ctx( ): 400 R( /) null means my Browser sent a "bad request" to Tomcat. Is there any possibility to find out some more details about this bad request? My problem was that the problem only occured when sending a request from a Linux client to a WinNT4.0 Tomcat

apxs break

2001-03-15 Thread Reeves, Kenneth
While trying to compile mod_jserv.so for apache, I get the following errors. [root@webservices jserv]# /usr/bin/apache/bin/apxs -i -a -c mod_jserv.c gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/bin/apache/include -c mod_jserv.c -o mod_jserv.so mod_jserv.o

RE: A beginner for tomcat.

2001-03-15 Thread Andy Cole
Hi. I was doing some testing on virtual host with different ip addresses in tomcat. I was wondering how can I set the path for jsp and servlets like : /usr/local/jakarta-tomcat-3.2/webapps/examples/WEB-INF/classes I have implemented a virtual host with docBase /usr/home/test/www/servlets. If I

Slight bug

2001-03-15 Thread Rob L'Estrange
Hi Guys I've got my Java 1.3 SDK installed in this directory on my Windows 2000 Server, c:\Installations\Programming\Java\SDK 1.3\ The space in "SDK 1.3" gave your Tomcat problems when I set Tomcat up to be an NT service and tried to use start it with "net start Tomcat". When I change

Re: apxs break

2001-03-15 Thread Steve Prior
Are you by any chance using Apache 1.3.14? If so, then upgrade to 1.3.19 - I had an apxs problem that went away when I did this. Steve Prior "Reeves, Kenneth" wrote: While trying to compile mod_jserv.so for apache, I get the following errors. [root@webservices jserv]#

RE: Tomcat 3.2, RMI, JNDI Classloaders: a solution

2001-03-15 Thread Andrew Gilbert
Carlos, Thanks. This is interesting. Can you explain what the effect of Thread.setContextClassLoader() is? Does it make classes from the WEB-INF/lib and WEB-INF/classes area avaiable to classes loaded by the boot class or system class loader? Andrew -Original Message- From: Carlos

Re: Applet-servlet communication examples???

2001-03-15 Thread Andrew
http://developer.java.sun.com/developer/technicalArticles/RMI/rmi/ - Original Message - From: "Adam Fowler" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, March 15, 2001 3:00 AM Subject: RE: Applet-servlet communication examples??? I second that question

Re: ClassCastException :(

2001-03-15 Thread Vladimir Grishchenko
I don't see how this would work... It doesn't matter what stores, it matters what creates them... Probably, Context uses some sort of Hashtable internally to store all objects, which is a core class by itself, and it doesn't help the problem. So, I don't get it. May be you can give more details?

Re: ClassCastException :(

2001-03-15 Thread Bo Xu
Hi :-) please see intermixed Andrey Myatlyuk wrote: Hello Vladimir, Thank you for your help with classloaders. :) I tried to put my "shared" classes in the classpath. But this approach failed too. I cannot understand. In this case my "shared" classes loaded by "Bootstrap class loader

RE: error loading mod_jk.so

2001-03-15 Thread Mike Braden
I've seen this before, but don't recall the particular solution. Are you sure you have DSO support in apache? # /usr/local/apache/bin/httpd -l Compiled-in modules: http_core.c mod_so.c mod_so.c should be there. Maybe a search of the list archive would turn something up. Mike. -- Mike

Troubles with tomcat...

2001-03-15 Thread mailindigo
Hello, I´ve installed Tomcat on Windows NT and it runs when I use the name of the machine in the URL (example: "http://server/example/jsp/index.html"), it doesn´t run when I use the internal or external IP (e: "http://192.168.167.2/example/jsp/index.html" or

RE: almost there

2001-03-15 Thread Andrew Robson
Ken, Only ever tried with mod_jserv.so but probably you should use mod_jk. There are many, many posts about building mod_jk on this list so if you go this way look at the archives. Was your apache built with DSO support? If so then command in the minimilist guide apxs -c -o mod_jserv.so *.c

Re: ClassCastException :(

2001-03-15 Thread Vladimir Grishchenko
What you describe should work... Unless Tomcat web-app CL doesn't adhere to standard CL delegation rules. Where did you put your classes? I think $TOMCAT_HOME/classes is automatically appended to system classpath by startup script. I don't think _bootstrap_ CL is the one that's loading classes if

RE: error loading mod_jk.so

2001-03-15 Thread Parry, Alan
I had a similar problem once. Did you use apxs to compile the mod_jk? If so check that all the required libraries can be located for linking. My problem was that java was not installed in the default location and no relevant error appeared. Alan -Original Message- From: Mike Braden

getting jars to work with tomcat

2001-03-15 Thread Tom Kuo
Hi all, I was hoping someone might shed a little light as to what is going on with the problem i'm having. In a nutshell i use a servlet buried somewhere in a package which i access by com.mycompany.someplace.servletname The servlet itself uses a bunch of other class files located in a

InstantDB support

2001-03-15 Thread Michael Stanley
I've been playing heavily with Turbine the last week (best Spring Break Ever :). to me it doesn't appear that Torques supports InstantDB. Is this true? or am I missing something? Can somebody please point me in the right direction. I'm having a lot of problems building a peer turbine app

Tomcat + Oracle EJB's

2001-03-15 Thread Neil Harvey
Has anybody out there managed to get a servlet running via Tomcat to invoke an EJB living in an Oracle 8i database? I've read a couple of threads about including all JARs in the Tomcat classpath, but this seems a bit clunky. Is there a more elegant solution? I keep getting a

A strange question

2001-03-15 Thread Martin Mauri
Does anybody know what could happen if I install the gcc compiler from www.sunfreeware.com and I've still have the built-in cc compiler installed? May gcc affect the cc behaivour? I'm writing this because I have to compile the mod_jk module and I want the gcc compiler... thanks! Martin

Please help - Very Urgent - No documentation on this

2001-03-15 Thread suha_yacoub
Does apache have any type of support for tomcat other than this list ... I've followed all the documentation, but I cannot run all of the examples. I am able to run servlets on tomcat but not JSPs. Is this caused by a tomcat setting or an apache setting? Details: - tomcat is running

Re: InstantDB support

2001-03-15 Thread Michael Stanley
Michael Stanley wrote: I've been playing heavily with Turbine the last week (best Spring Break Ever :). to me it doesn't appear that Torques supports InstantDB. Is this true? or am I missing something? Can somebody please point me in the right direction. I'm having a lot of problems

Re[2]: ClassCastException :(

2001-03-15 Thread Andrey Myatlyuk
Hello Vladimir, Thursday, March 15, 2001, 12:25:24 PM, you wrote: VG What you describe should work... Unless Tomcat web-app CL doesn't VG adhere to standard CL delegation rules. Where did you put your classes? VG I think $TOMCAT_HOME/classes is automatically appended to system classpath VG by

RE: ISAPI Redirector Failing on Windows 2000 w/ IIS -- THANKS!

2001-03-15 Thread Scott S. Lynde
Eduardo, Thanks for the clarification. I tried adding the "Filter DLLs" key and removing the ISAPI filter in IIS, but then when I tried to access http://localhost/examples/jsp/index.html, I was prompted to log in. If I changed the web site's authentication to only "anonymous" (versus the

RE: Post method not supported....

2001-03-15 Thread Dianne Cree
You need to make sure that you have both doGet and doPost included. If your code is all in doGet then just write doPost like below. It calls doGet. I had this same problem the first time I tried to POST. public void doPost(HttpServletRequest request, HttpServletResponse response) throws

RE: MYSQL CONNECTION CLASS

2001-03-15 Thread Dianne Cree
here's a JDBC class: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import java.util.*; public class JDBCconn2 extends HttpServlet { int iNumCols; int iNumRows; PrintWriter out; Object value[]; String requestParam; public void

Re: Please help - Very Urgent - No documentation on this

2001-03-15 Thread suha_yacoub
Manish, you're the best. Thanks for replying. Unfortunately, I do have an entry for jsp files: JkMount /*.jsp ajp12 I also have on specifically for the examples context: JkMount /examples/*.jsp ajp12 I did not add these. They were in there originally. Any other suggestions are welcome.

RE: .txt as plain text

2001-03-15 Thread Dianne Cree
do a: response.setContentType("text/plain"); that should do it. -Original Message- From: Boon Yeo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 5:55 PM To: [EMAIL PROTECTED] Subject: .txt as plain text I don't know whether this is an Apache, Tomcat, or the browser issue.

Re: A strange question

2001-03-15 Thread John P. Dodge
There is no problem running both compilers, one does not affect the other. GCC is installed in a completly different directory and does not impact either the generic (broken) Sun cc or the SunPro C compiler. On Thu, 15 Mar 2001, Martin Mauri wrote: Does anybody know what could happen if I

Re: ClassCastException :(

2001-03-15 Thread Bo Xu
Andrey Myatlyuk wrote: [...] I have my StatesBean loaded by SystemClassLoader. OK. MyServlet by WebAppLoader. Good. So when WebAppLoader reloads my servlet it should ask its parents about loaded class. Ang guess what? StatesBean loaded already with SystemClassLoader. What's wrong with it?

RE: error loading mod_jk.so

2001-03-15 Thread John P. Dodge
Perhaps you need to compile/link with the resolver lib. On Solaris this is libresolv.so. On FreeBSD it may be some other lib, use the nm command to dump the lib symbol tables (i.e. nm /usr/lib/lib* | grep "map_nam*") then add -llibname to the apxs build command. On Thu, 15 Mar 2001, Mike

RE: Tomcat 3.2, RMI, JNDI Classloaders: a solution

2001-03-15 Thread Craig R. McClanahan
On Thu, 15 Mar 2001, Andrew Gilbert wrote: Carlos, Thanks. This is interesting. Can you explain what the effect of Thread.setContextClassLoader() is? Does it make classes from the WEB-INF/lib and WEB-INF/classes area avaiable to classes loaded by the boot class or system class loader?

Re: Diference between jsp/servlet engine X application server

2001-03-15 Thread Craig R. McClanahan
On Thu, 15 Mar 2001, Jose Euclides da Silva Junior - DIGR.O wrote: Hi everybody, i have one simple doubt. Tomcat has always been known as a jsp/servlet engine, instead of a jsp/servlet application server. Why? The basic concept of application server should be applied to Tomcat, since it

Re: Please help - Very Urgent - No documentation on this

2001-03-15 Thread suha_yacoub
I figured it out. It was as I expected, Tomcat needs to have root access so that it can write to the "work" directory. This means that only the sys admin. can restart tomcat : ( Just thought I would share this. thanks, suha. [EMAIL PROTECTED] on 03/15/2001 12:19:02 PM Please respond to

Re: Please help - Very Urgent - No documentation on this

2001-03-15 Thread Manish
Hi Suha, I havent read your previous posting on the issue... cause I am a new member of this mailing list... so could you pls tell me what environment are you working in. I work in tomcat apache, so I would be of help only in that area. Look into the tomcat-apache.conf files if there is an

database question

2001-03-15 Thread JeremyRayYoo
Hi I am using MySQL and JDBC mm.mysql Driver to connect to the database. I am having trouble trying to connect. Can anyone tell me if MySQL is even compatible with servlets? From the JDBC mm.mysql Driver it looks as if it is. Also in one of the emails I saw a sample script and they used

Re[2]: ClassCastException :(

2001-03-15 Thread Andrey Myatlyuk
Hello Bo, BX * can you post the code of your StatesBean? and BX the version of TOMCAT? because I also want to BX know why :-) Tomcat 3.2.1 -- Best regards, Andreymailto:[EMAIL PROTECTED]

Re: Catalina and localhost:8080

2001-03-15 Thread Craig R. McClanahan
On Thu, 15 Mar 2001, di man wrote: Hello ppl, I've installed Tomcat 4.0b1 and get to run Catalina from $CATALINA_HOME=../jakarta/build/tomcat-4.0 But I cant get to work http://localhost:8080 ( no exceptions or errors in /logs .. ) What happens when you try? hints? TIA -d-

Re: ClassCastException :(

2001-03-15 Thread Vladimir Grishchenko
BX * is StatesBean.STATES_BEAN_NAME.hashCode() the same one BX before/after MyServlet reloading? before: hash code in state servlet=-24382515 hash code in name servlet=-24382515 hash code in city servlet=-24382515 after: hash code in state servlet=-24382515 hash code in name

mod_jk compilation error

2001-03-15 Thread Martin Mauri
Hi, whe I try to build the mod_jk module using apxs over a Solaris 7 with gcc, I get the following error message at the end: # apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/j2se/include -I/usr/j2se/include/solaris -c *.c ../jk/*.c gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite

RE: database question

2001-03-15 Thread Michael Wentzel
Hi I am using MySQL and JDBC mm.mysql Driver to connect to the database. I am having trouble trying to connect. Can anyone tell me if MySQL is even compatible with servlets? From the JDBC mm.mysql Driver it looks as if it is. Yes, it is possible to use MySQL with servlets. Any

Re: Database Pooling

2001-03-15 Thread greyson . smith
I just set up PoolMan, which is working well so far, though it's nowhere near production. There are a lot of suggestions in the archives, another one frequently suggested is jdbcpool from http://www.bitmechanic.com/projects/jdbcpool/. If you would like a quick primer, let me know, it's quite

Re: Starting Tomcat in Apache

2001-03-15 Thread Steve Prior
Wouldn't you need to insert a line in the batch file like: if exist "%TOMCAT_HOME%\conf\mod_jk.conf-auto" erase "%TOMCAT_HOME%\conf\mod_jk.conf-auto" Before :loop otherwise the batch file as given would only wait the first time you ever ran it? Steve Prior Kenneth Westelinck wrote: Hi, I

Please help!!: Inconsistent Response already committed exception

2001-03-15 Thread Tim Hengst
Please help me resolve this problem. I've tried comparing generated code to no avail - the only difference is the package statement. I call an xslt servlet (that returns formatted html output to the JSP response Writer) via a jsp:include action from a jsp page, xsltTransform.jsp. If I put the

Tomcat Threads

2001-03-15 Thread Dave Finch
I have tomcat 3.2 running on NT 4 (SP6a) through IIS. I have multiple websites each with it's IP address and domain names running in their own context in separate directories everything is working fine but I have a static connection pool which is being initialized several times. my question is,

RE: Tomcat 3.2, RMI, JNDI Classloaders: a solution

2001-03-15 Thread Andrew Gilbert
You can make them visible, but the class from the boot classloader or system classloader has to know what to do -- it calls Thread.getContextClassLoader() to get the class loader for the current thread, and asks *that* classloader to create the new object, instead of using the "new" operator.

Re: database question

2001-03-15 Thread Andrew Robson
Firstly I very strongly highly recommend you buy a decent book on servlets with a section on JDBC The O'Reilly book Java Servlet Programming - by Jason Hunter is a good one. On Thu, 15 Mar 2001, you wrote: Hi I am using MySQL and JDBC mm.mysql Driver to connect to the database. I am

Re: Tomcat Threads

2001-03-15 Thread Shahed Ali
Each webapp / context runs with its own classloader (afaik) Thats why multiple copies of your class are being loaded. May be if you used JNDI lookups to get a handle to a connection pool with that jdbc 2.0 ext stuff ? Or maybe rmi ? But jdbc conenctions cannot go over rmi :-( Regards

Re: database question

2001-03-15 Thread Milt Epstein
On Thu, 15 Mar 2001, Andrew Robson wrote: Firstly I very strongly highly recommend you buy a decent book on servlets with a section on JDBC The O'Reilly book Java Servlet Programming - by Jason Hunter is a good one. [ ... ] FWIW, there is a second edition of this book in the works, and

Re: database question

2001-03-15 Thread Steve Prior
I already got my copy of the 2nd edition from Amazon.com, so I expect that the book has gone pretty well :-) Steve Prior Milt Epstein wrote: On Thu, 15 Mar 2001, Andrew Robson wrote: Firstly I very strongly highly recommend you buy a decent book on servlets with a section on JDBC The

RE: Tomcat Threads

2001-03-15 Thread Randy Layman
No, each request is run in its own, separate thread. The reason that you are probably seeing this pool allocated multiple times is that you have multiple instances of the same servlet. Why has Tomcat created multiple instances of the same servlet, you ask? Well, Tomcat will create an

RE: apxs break

2001-03-15 Thread Reeves, Kenneth
Still getting the apxs break after an upgrade. Ken -Original Message- From: Steve Prior [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 10:52 AM To: [EMAIL PROTECTED] Subject: Re: apxs break Are you by any chance using Apache 1.3.14? If so, then upgrade to 1.3.19 - I had an

jk_ajp13_worker.c error connecting to the tomcat process

2001-03-15 Thread Lucero, Frank J
I am using mod_jk/ajp13 with Tomcat 3.2.1 and Apache 1.3.19 to access an Oracle database via JSP. It all works fine until I use a LoadRunner to run multiple users. The application handles between 60-80 concurrent users, but then fails. I implemented mod_jk as per the mod_jk_how_to

Windows 2000 and Tomcat

2001-03-15 Thread Elizabeth Riley
I am installing tomcat to work in conjunction with Windows 2000 server. I believe I have done all the steps in the documentation for 'Tomcat IIS How To'. I have verified that things are working by going to the browser on the server and typing 'localhost/examples/jsp/index.html'. This works fine.

RE: jk_ajp13_worker.c error connecting to the tomcat process

2001-03-15 Thread GOMEZ Henri
I am using mod_jk/ajp13 with Tomcat 3.2.1 and Apache 1.3.19 to access an Oracle database via JSP. It all works fine until I use a LoadRunner to run multiple users. The application handles between 60-80 concurrent users, but then fails. What happen when you do the same operation with

Re: How to configure mod_jk.conf-auto

2001-03-15 Thread tomcat
I was told there's no way to configure it. But tomcat 3.3-m1 seems to set ajp13 as the default. On Tue, 13 Mar 2001, [iso-8859-1] Jörg Petschat wrote: Hallo, Where can i configure the mod_jk.conf-auto. Tomcat use only ajp12 in the mod_jk.conf-auto ? Can someone help ? J Ö R G P E T

  1   2   >