Apache1.3.27 - tomcat4.1.12 - Mysql 3.23.43 ERROR

2002-12-16 Thread Laxmikanth M.S.
Hi all, I am using apache with tomcat along with mysql database apache and tomcat is in one Linux Machine and mydal database is in separate machine I am using mm.mysql-2.0.9 Driver to connect.the driver is in machine1 where apache tomcat is installed when i connect to the database

Re: AccessControlException/introspection

2002-12-16 Thread Bertrand Fontaine
Thank you for the reply, Jean-François. It appears that the tomcat.policy file is actually generated in Tomcat 3.2.3/Cobalt (!). I have added the config information in tomcat.policy.master instead of tomcat.policy. After having restarted Tomcat, the appropriate tomcat.policy file has been

custom ClassLoader Purgatory in Tomcat 3.3.1

2002-12-16 Thread Kurt Heston
Hello, I'm having issues with using a custom classloader in Tomcat 3.3.1. I have a need to load servlets from a runtime-determined classpath. The solution worked fine in 3.2.x. Here's what I think the problem is (let me know where my understanding is flawed): I'm pretty confident any custom

Warp or Coyotte ? I'm so bad in my choice....

2002-12-16 Thread Jean-Luc BEAUDET
Hi all ! Using Apache 1.3.26 + Tomcat 4.0.2 Final Rel on SOLARIS. I decided to test My Apache with Tomcat 4.1.12. Actually i use mod_webapp for the WARP Connector. As i wanted to have some tests with Load Balancing and sessions tracking, i'm trying Tomcat 4.1.12. I had a look at the JTC

Re: Sharing Session data between two instances?

2002-12-16 Thread Luiz Ricardo
Hi, take o look at: http://www.onjava.com/lpt/a/2422 http://www2.theserverside.com/resources/article.jsp?l=Tomcat Luiz Ricardo - Original Message - From: Prashanth Pushpagiri [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, December 15, 2002 4:57 PM Subject:

RE: Warp or Coyotte ? I'm so bad in my choice....

2002-12-16 Thread Ralph Einfeldt
As the development of mod_wepp has been stopped, I would recommend mod_jk or mod_jk2. There are also other drwaback like warp is serving all files for a webapp through tomcat wheras mod_jk can be configured to just pass requests with specific pre- or postfixes to tomcat. -Original

DB2 JDBC

2002-12-16 Thread Sherif D Mohamad
I need to make JSP files on tomcat to connect to a DB2 database. I installed the DB2 client for Linux, but I have problems, how can I configure it to work with JSP files ? where is the JDBC ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

How to restart Tomca's service from a Web app?

2002-12-16 Thread Luca Ventura
Hello everybody! I have installed IIS as Web Server and Tomcat 4.1.16 LE as plug-in of IIS to mangage Servlet/JSP pages (using isapi filter JK2 isapi_redirector.dll). I would like to know is there is some way to re-start Tomcat's service using some web application acessible from the Internet

tomcat + svg + context

2002-12-16 Thread cyril vidal
Hi, I would like to know two things: 1°)First, is it possible for a servlet to produce directly SVG picture on the screen? I've tried to write the following code for the PrintWriter: PrintWriter out = res.getWriter(); res.setContentType(image/svg-xml; charset=iso-8859-1); But it doesn't seem to

Re: DB2 JDBC

2002-12-16 Thread Fabio Mengue
Hello, DB2 JDBC library files are usually in db2_user_dir/sqllib/java12 The file name is db2java.zip. You can copy it to tomcat_install_dir/common/lib Change its name to db2java.jar or something with .jar extension, so Tomcat will be aware of it. I had to do other things to DB2 work. I

Servlet Context Issues

2002-12-16 Thread Sam Prochazka
Hi, I'm using Tomcat 4.1.16. I'm using a cross context to access resources between two different web apps. My server.xml is set as follows: Host name=localhost debug=0 appBase=c:/webapps unpackWARs=true Context path= docBase=webapp1 debug=0 crossContext=true/ Context path=/webapp2

Re: custom ClassLoader Purgatory in Tomcat 3.3.1

2002-12-16 Thread Jacob Kjome
The classloader behavior for webapps is specified in the servlet spec to be exactly opposite that of the normal Java2 classloading behavior. So, classes in the WebappClassLoader will *not* as the parent to load classes for it unless it can't find the class to load there first. That's one

RE: byte serving PDFs

2002-12-16 Thread Wagoner, Mark
There is really nothing special about serving a PDF document other than setting the correct MIME type. If you are using Tomcat to serve static PDF files, just make sure the file extension is .PDF and the browser should recognize it properly. If you are dynamically generating the PDF and sending

Antwort: RE: byte serving PDFs

2002-12-16 Thread Dietmar . Mueller
Yes, this is enough. But becouse a bug in InternetExplorer you have to set the contentLength. You can see some samples under: http://www.lowagie.com/iText/ There is also an explain from some bugs with PlugIn in http://www.lowagie.com/iText/faq.html regards Dietmar Wagoner, Mark [EMAIL

Antwort: Antwort: RE: byte serving PDFs

2002-12-16 Thread Dietmar . Mueller
Sorry for my stupid englisch. Yes it is possible to send(create) pdf via tomcat. -- set the mime/type -- setContentLength Dietmar [EMAIL PROTECTED] am 16.12.2002 14:18:22 Bitte antworten an Tomcat Users List [EMAIL PROTECTED] An:Tomcat Users List [EMAIL PROTECTED] Kopie: Thema:

RE: [OT] Apache-Tomcat mod_jk

2002-12-16 Thread Turner, John
It's alpha. http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.17-alpha/ John -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 9:35 AM To: 'Tomcat Users List' Subject: RE: [OT] Apache-Tomcat mod_jk Do you know

RE: virtual hosting on tomcat

2002-12-16 Thread Turner, John
Not true. Tomcat virtual hosting can be done, you simply setup a Host element in server.xml for each virtual host. Tomcat server.xml Host element = Apache VirtualHost (roughly speaking) John -Original Message- From: Stephen Riek [mailto:[EMAIL PROTECTED]] Sent: Friday, December

RE: Apache connector-localhost only

2002-12-16 Thread Turner, John
Sounds like there is no Apache VirtualHost container for whatever IP or hostname you want to use. /usr/local/apache2/htdocs/ would be the default DocumentRoot for an Apache server...this tells me there is no VirtualHost defined for the name or IP you are using, because Apache is defaulting to

Re: DB2 JDBC

2002-12-16 Thread Sherif D Mohamad
Thanks for your help, I have done what you said, but I am running tomcat4 on Linux, I do not have tomcat_install_dir/bin/setclasspath.sh in tomcat_install_dir/bin I have : bootstrap.jar commons-daemon.jar tomcat-jni.jar so I added JAVA_OPTS=-Djava.library.path=/db2_user_dir/sqllib/java12/ to

RE: Tomcat 4.0.1 on Solaris 8, Sunfire 280r

2002-12-16 Thread Turner, John
I have 4.1.12 on Solaris 8 (420R) running for my developers, it does not exhibit this behavior. Are you required to use 4.0.1? That's kind of old. John -Original Message- From: David McGough [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 11:56 AM To: [EMAIL PROTECTED]

RE: Directory Listing in Tomcat 4.1.12

2002-12-16 Thread Turner, John
Yes. Symbolic linking is disabled by default in 4.1.12. Check the release notes, search the list archives for allowLinking. I believe it's broken in .12 and .13, you might need to go to .14 to get it working 100%, or down to 4.0.5/6. John -Original Message- From: Venkateshwar

RE: jsps and servlets don't work

2002-12-16 Thread Turner, John
You need JkMounts for every URL you intend to send to Tomcat. Most people use the default wildcards: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 1:10 PM To: Tomcat Users

RE: Antwort: Antwort: RE: byte serving PDFs

2002-12-16 Thread Cox, Charlie
it is possible to serve an existing pdf with tomcat by using the steps below - plus your URL must end in pdf for IE to show it properly.(this is an IE feature) i.e. http://myserver/mydir/my.pdf or http://myserver/mydir/myfile?x=pdf If you want to create a pdf within tomcat, you need an external

RE: Mod_jk Try #2 - error can't find apache

2002-12-16 Thread Turner, John
In my experience, the apxs in /usr/sbin is the wrong one to use. Can you contact the person who installed your Apache? Apxs should be there. I've never had a problem building the connectors using --with-apxs=/some/path/to/apache/bin/apxs for configure. Then again, I build my Apache from

RE: Bind tomcat 4.1.12 to a particular IP address without using Apache?

2002-12-16 Thread Turner, John
Yes, this can be done. John -Original Message- From: crc [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 1:23 PM To: Tomcat Users List Subject: Bind tomcat 4.1.12 to a particular IP address without using Apache? I would like to know if it would be possible to

Re: Apache-Tomcat HOWTO

2002-12-16 Thread Rasputin
* Turner, John [EMAIL PROTECTED] [1214 14:14]: NOTE: the ./configure method assumes you have a sane build environment: libtool, GNU make, autoconf, m4 a) cd to CONNECTOR_HOME/jk/native. b) check README and README.configure. c) run buildconf.sh: ./buildconf.sh. This will create a

RE: Mod_jk Try #2 - error can't find apache

2002-12-16 Thread Denise Mangano
John, Managed to get through the build, but yet again ran into some problems. My Apache site no longer worked and I was getting critical error message that indicated more than one instance of httpd running. I uninstalled mod_jk Tomcat, yet again the problem persisted - and I couldn't even

HTML Manager Application FAIL - Invalid application URL was specified

2002-12-16 Thread Jon Eaves
Hi all, First, the preamble: Tomcat 4.1.12, Windows 2k. I've searched the archives to no avail. I've had a million monkeys typing in URLs without success. I've even read the documentation, but that didn't help. Can anybody tell me the magic combination that I need to type into either the

Session timeout

2002-12-16 Thread Lindomar
Hi everybody! How can i create a process exactly after session timeout or user invalidate the session? Is it possible? I think yes, but i didn't find how do it yet... Can anybody give me any idea ? Thanks in advanced.

RE: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-16 Thread Turner, John
They do have these. The URLs are regularly posted on this list, and the URLs are readily available on the Jakarta site: JK: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1 / JK2: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/ John

RE: Tomcat 4.0.1 on Solaris 8, Sunfire 280r

2002-12-16 Thread Matthew Ritenburg
Unfortunately, yes. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 8:31 AM To: 'Tomcat Users List' Subject: RE: Tomcat 4.0.1 on Solaris 8, Sunfire 280r I have 4.1.12 on Solaris 8 (420R) running for my developers, it does not exhibit

RE: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-16 Thread Turner, John
I feel bad that you are having this much difficulty. If you want to describe what parts of my HOWTO you've followed and which parts you haven't, or which parts are causing you grief, I will do my best to help. The process works exactly as stated in my HOWTO, I have independent confirmation of

RE: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-16 Thread Turner, John
It will take some time, but I will install Apache 1.3.27 on a test box later today and compile mod_jk and upload it to my site. John -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 1:54 PM To: 'Tomcat Users List' Subject: RE:

RE: Help: Errors in catalina.out

2002-12-16 Thread Shapira, Yoav
Howdy, Assuming you don't have too many web.xml files, why don't you simply go through yours (not tomcat's: tomcat's admin, manager, and other web.xml files are spec compliant) and verify the XML? Alternatively, comment out all the pieces, restart the server, make sure there are no errors. Then

RE: Tomcat 4.0.1 on Solaris 8, Sunfire 280r

2002-12-16 Thread Turner, John
Just curious, may I ask why? The security fixes alone should be enough to justify upgrading to any managers, etc. John -Original Message- From: Matthew Ritenburg [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 8:53 AM To: Tomcat Users List Subject: RE: Tomcat 4.0.1 on

RE: Mod_jk Try #2 - error can't find apache

2002-12-16 Thread Turner, John
No problem, glad to help. John -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 8:52 AM To: 'Tomcat Users List' Subject: RE: Mod_jk Try #2 - error can't find apache John, Managed to get through the build, but yet again ran

error in one servlet with the

2002-12-16 Thread Dionisio Ruiz de Zarate
i i write in one servlet this: String whereIs = ((ServletContext)request).getRealPath(/); in tomcat appears this error, can any body help me? thanks ERROR: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request.

RE: Apache-Tomcat HOWTO

2002-12-16 Thread Turner, John
Not sure what JK2 needs to work, I don't use it. You should be able to build it from the same source package as JK. I was able to do so on my Red Hat test box, but it took quite a bit of hacking around. JK isn't really deprecated, the dev team is just pursuing JK2. In my opinion, JK is quite

RE: Warp or Coyotte ? I'm so bad in my choice....

2002-12-16 Thread Turner, John
In my opinion, JK. Definitely not WARP. John -Original Message- From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 5:44 AM To: tomcat-user Subject: Warp or Coyotte ? I'm so bad in my choice Hi all ! Using Apache 1.3.26 + Tomcat 4.0.2

RE: Two inhibiting problems in developement with tomcat 4

2002-12-16 Thread Turner, John
RTFM http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html reloadable=true John -Original Message- From: Lukas Österreicher [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 15, 2002 7:18 AM To: Tomcat Users List Subject: Re: Two inhibiting problems in developement

RE: error in one servlet with the

2002-12-16 Thread Shapira, Yoav
Howdy, i i write in one servlet this: String whereIs = ((ServletContext)request).getRealPath(/); in tomcat appears this error, can any body help me? Thanks What are you trying to do? ;) A request is not a context. So what you're doing is an invalid cast and the JVM correctly throws an

RE: Connection pooling with sql server

2002-12-16 Thread Turner, John
Not sure what you mean by jdbc driver from datadirect but if you mean the free JDBC driver from Microsoft, we were never able to get it to support pooling after several weeks of trying. We ended up purchasing a license to a third-party driver. Benefits were actual pooling, and on top of that,

Almost there: Odd error in mod_jk.log

2002-12-16 Thread Günther Mittermayer
Hi, I'm almost getting Apache and Tomcat to work together. I had some errors previously that have already been corrected. I'm now able to start both Tomcat and Apache with no errors, but I still can`t get the apache virtual hosts to redirect to Tomcat. The only error message I get is the

Re: error in one servlet with the

2002-12-16 Thread Dionisio Ruiz de Zarate
i am trying to load, to get , the real path in the disk (/home/user/) i y make: String whereIs = getServletContext().getRealPath(/); appears this error: utils/filtroSessiones.java [50:1] cannot resolve symbol symbol : method getServletContext () location: class utils.filtroSessiones

DataBase connection pooling.

2002-12-16 Thread Andoni
Hello, Do you all write your own connection pooling code or is there some open source software to do this? Also has anybody gotten deployment of .war files to work with unpackWARs=false? Thanks, Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:

RE: Tomcat 4.0.1 on Solaris 8, Sunfire 280r

2002-12-16 Thread Matthew Ritenburg
It was bundled with a vendor application and comes with tech support. The vendor is only supporting the version they shipped on the CD. I understand your arguments completely. Unfortunately, the vendor is a little slow on QA testing and validation for their product. Matt -Original

Re: DataBase connection pooling.

2002-12-16 Thread echambe1
Andoni: Tomcat 4.1.x uses the Database Connection Pool from the Apache Commons Project. by default, meaning it is also shipped with it. This is what I have been using and have not come across any problems that effect the web applications I develop. Thanks, Ej Andoni [EMAIL PROTECTED] on

RE: error in one servlet with the

2002-12-16 Thread Shapira, Yoav
Howdy, i y make: String whereIs = getServletContext().getRealPath(/); appears this error: utils/filtroSessiones.java [50:1] cannot resolve symbol symbol : method getServletContext () location: class utils.filtroSessiones String whereIs=getServletContext().getRealPath(/);

jdbc with oracle

2002-12-16 Thread puneet sachar
hi guys... i have installed Oracle 9i on my Pc having window 2000 professional edition i used to login like.. hr/tiger... i don't put the tsn name.. 1)-can anyone tell me..why..why it works without the tsn name 2) also i'm not able to make a simple..connection to the database.. can anyone

Re: Context Mapping

2002-12-16 Thread Mark Lenz
No, I haven't. Do I need to define a servlet-mapping for a context with only JSP's? (Yes, I know they're really servlets.) Mark Lenz (920) 832-3523 [EMAIL PROTECTED] Jeanfrancois Arcand

RE: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

2002-12-16 Thread Turner, John
ps -ef |grep httpd That will show you exactly what is running. On RH 7.3, if only one Apache is running, you should see something that looks like this when you run that command: root 30931 1 0 10:42 ?00:00:00 /usr/local/apache2/bin/httpd -k nobody 30932 30931 0 10:42 ?

RE: Connector

2002-12-16 Thread Turner, John
The CoyoteConnector is enabled by default in Tomcat 4.1.12. The CoyoteConnector handles multiple protocols, including JK, JK2, and HTTP. It depends on what you send it, and what port its listening on. John -Original Message- From: response [mailto:[EMAIL PROTECTED]] Sent:

DBCP difficulties and Mysql!!

2002-12-16 Thread Colic, Alex
Hi, I have transferred a web app to use mysql and the built in dbcp pooling available in Tomcat 4.12. I am getting a lot of dbcp errors. If I check my log file the two errors are: org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Communication failure during handshake. Is there a

RE: Tomcat for Enterprise Applications

2002-12-16 Thread Turner, John
You might want to research other open source projects themselves before attempting to write something from scratch, whether you choose Java or anything else. You also (as others have noted) might want to get some design decisions down before you start choosing a platform...do you REALLY need

RE: connecting Apache2.x and tomcat 4.1.x, mod_jk

2002-12-16 Thread Turner, John
You've got something messed up. Your httpd.conf is calling for the DLL file on your C drive, yet the error message is citing the E drive. Are you sure you don't have multiple Apache servers running somehow? Did you use an installer that may have put some hardcoded paths into your registry?

RE: [BUG] AJP connector with specific adress

2002-12-16 Thread Turner, John
This isn't the place for design or feature suggestions. You want the tomcat-dev list, not tomcat-user. John -Original Message- From: Sven Köhler [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 15, 2002 3:27 PM To: [EMAIL PROTECTED] Subject: [BUG] AJP connector with specific

RE: newbie almost connected...

2002-12-16 Thread Turner, John
Post error messages, config file snippets, log file snippets, etc. John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 2:25 PM To: [EMAIL PROTECTED] Subject: RE: newbie almost connected... almost 10. Verify

Re: DataBase connection pooling.

2002-12-16 Thread Mauro Brändle
I use the connection pool that comes with Tomcat 4.1.12 to connect my servlets to an IBM DB2 7.1 database and apart an initial problem in configuring Tomcat all works fine. Greetings Mauro Brändle Andoni wrote: Hello, Do you all write your own connection pooling code or is there some open

RE: newbie almost connected...

2002-12-16 Thread Turner, John
What do you mean by cannot browse? What is the error message? 404? Is your Apache DocumentRoot set correctly? Since you are very new to this, please understand that there is no requirement that you use Apache + Connector + Tomcat to work with Tomcat. You can easily work with Tomcat all by

RE: Almost there...Updated Apach-Tomcat with mod_jk

2002-12-16 Thread Turner, John
If you want to post mod_jk.conf, workers.properties, and server.xml, I will take a look at them. Assuming, of course, that there are no changes to httpd.conf except Include /some/path/to/mod_jk.conf. John -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent:

RE: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Turner, John
What are your JkMount statements, and what are the contents of workers.properties? John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 9:07 AM To: [EMAIL PROTECTED] Subject: Almost there: Odd error in mod_jk.log Hi,

RE: Almost there...Updated Apach-Tomcat with mod_jk

2002-12-16 Thread Denise Mangano
Will do when I get back to trying to get this set up, for now need to get the rest of my pages developed :) Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 10:03 AM To:

RE: Simultaneous request from same IP

2002-12-16 Thread Chris Bick
Thanks for responding. I don't think it is an instance variable problem. Here is the code to reproduce the problem: public class AServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse reponse)throws ServletException, IOException {

RE: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Günther Mittermayer
Hi John, Here it goes: from my httpd.conf: VirtualHost 141.19.93.41:8080 ErrorLog logs/virtualhost1.log TransferLog logs/VH1access.log JkMount /*.* worker_ajp13_1 /VirtualHost VirtualHost 141.19.93.41:8081 Errorlog logs/virtualhost2.log TransferLog logs/VH2access.log JkMount /*.*

accessing servlet 404 error

2002-12-16 Thread Julie Jordan
I'm just starting my first webapp with Tomcat and have placed the files classes into /tomcat_home/simple: Simple.html, index.class, index.jsp, index.java, Simple.java classes WEB-INF I added the following to Server.xml: Context path=/simple docBase=simple debug=9 reloadable=true / When I try

RE: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Turner, John
Nope. As far as I know, mod_jk only supports one *. *.* is invalid. If you want to send everything to Tomcat (in which case Apache and mod_jk is redundant), you would use /*. Also, this is just my personal preference, but AFAIK ajp12 serves no purpose in workers.properties, it just adds

Re: Simultaneous request from same IP

2002-12-16 Thread Mike W-M
I might be missing the point! What exactly is the problem? I didn't think there was any rule that said you couldn't have two identical requests running at the same time (as long as the outputs don't get mixed up). As I understand it, requests will be differentiated by the fact that they come from

Re: Sharing Session data between two instances?

2002-12-16 Thread Puneet Agarwal
Even I want to do the same and am looking for the answer whether it is possible or not. I posted same question 2-3 times in last week and have been monitoring this mail list but noone has replied. The much I could gather is, it is not possible directly, It could be possible if we use apache

get the real path from one filter.

2002-12-16 Thread Dionisio Ruiz de Zarate
Hello i am using tomcat 4.1.12 i have write one filter and in this filter i want to load the real path from the application. i have several virtual domains and each virtual domain has one different real path (obviously) i the filter i am using: String whereIs =

RE: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Günther Mittermayer
:) Thanks for the * hint, just to make sure I'm not getting it all wrong: What I really wanted to do with this virtual host lines is to have Apache forward everything from port 8080 to worker_ajp13_1 and everything from port 8081 to to worker_ajp13_1. It seems I'm not getting it done with this

RE: custom ClassLoader Purgatory in Tomcat 3.3.1

2002-12-16 Thread Kurt Heston
Have a look. Let me know what you think. --- import java.io.*; import java.lang.reflect.Method; import java.net.*; import java.util.*; import javax.servlet.http.*; import javax.servlet.*; public class ServletCaller { public static void

Re: accessing servlet 404 error

2002-12-16 Thread Mehdi . Nejad
just a couple of basics, do the tomcat examples work ? http://servername Are you accessing the correct port ? (8080 by default) http://servername:8080/ Cheers,

RE: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Turner, John
I wouldn't even use Apache to do that. That said, if you want to use Apache, my guess is you would have to look into using either something like the Proxy* Apache runtime directives, or simply put your port numbers into the VirtualHost directives, like this: VirtualHost www.foo.com:8080

RE: Warp or Coyotte ? I'm so bad in my choice....

2002-12-16 Thread Andrzej Jan Taramina
In my opinion, JK. Definitely not WARP. I would concur with John's recommendation. JK seems to be more stable, more accepted and has more people working on it. Warp has some fatal bugs in it on Windows platforms that make it unuseable, with no intention on the part of the developers to fix

RE: Session timeout

2002-12-16 Thread Michael Echerer
I guess you should have a look into javax.servlet.http.HttpSessionBindingListener and .HttpSessionEvent to monitor if a session is created or destroyed. -Original Message- From: Lindomar [mailto:[EMAIL PROTECTED]] Sent: Montag, 16. Dezember 2002 14:00 To: Tomcat Users List Subject:

Re: Sharing Session data between two instances?

2002-12-16 Thread Ben Ricker
Try seaarching the archives. This question has been answered many times before. You can search them here: http://mikal.org/interests/java/tomcat/index.jsp And for an answer to your question, you are looking for in session replication. See:

RE: Simultaneous request from same IP

2002-12-16 Thread Chris Bick
I have two different requests that hit my servlet from the same IP. When these two requests hit my servlet a second or more apart the output reflects the different data in each request(which is correct). If the requests hit the servlet at the same time the output for both requests reflect the

RE: JDBC Datasource problem

2002-12-16 Thread Eddie Liang
Yuva, I guess that your database server is Oracle. If that is the case, try to change javax.sql.DataSource to oracle.jdbc.pool.OracleConnectionCacheImpl in server.xml and web.xml. Eddie Liang Database Architect Phone: 630-810-9669 x253 -Original Message- From: Chandolu, Yuva

RE: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Günther Mittermayer
Thanks again John, but the * were there just for testing purposes. When I migrate to production I'll have only the *.jsp directed. Sorry to insist, but I'm not sure I understood what you meant with the virtualhost example... by doing the following, am I not doing the same? If not, How would

RE: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Turner, John
Sorry, didn't realize you had the config in your earlier messages. I came in this morning and there were 300 messages in my tomcat-user box, so I've been typing furiously trying to catch up. :) In the config you just posted, everything should work just fine, though I've never done it that way.

Workaround for login page direct reference

2002-12-16 Thread Ben Jessel
Hi, I've got a realm set up on Tomcat. It works fine - whenever I go to a protected page, I am forwarded to the login.jsp page. However, if I go to the login.jsp page directly and fill in my details I get Invalid direct reference to form login page. not surprising really as tomcat would get itself

Re: Simultaneous request from same IP

2002-12-16 Thread ContestAdmin
It is possible that the two requests are being handled by the same servlet. The outputs can be confused if the servlet uses any 'global' servlet variables. Try either synchronizing the methods or have your servlet implement SingleThreadModel. -CA Chris Bick wrote: I have two different

Apache HTTPD 2.0 / Tomcat 4.1 Workflow?

2002-12-16 Thread Johnson, Garrett
I'm curious: What is the workflow sequence when one has Apache and Tomcat running together? Assuming an environment of: Apache 2.0 (@ port 80) Tomcat 4.1 (@ port 8080) mod_jk 1.2 (ajp 1.3) Win2K Pro I understand that that Apache is listening at a particular location, (let's assume for the

RE: accessing servlet 404 error

2002-12-16 Thread David Rayroud
Hi, You must place your files into $TOMCAT_HOME/webapps/simple, and access to http://servername:8080/simple if your server is configured to work on this port (see $TOMCAT_HOME/conf/server.xml, section Service name=Tomcat-Standalone Connector

Re: accessing servlet 404 error

2002-12-16 Thread Julie Jordan
Tomcat examples aren't executing. I'll try a reinstall of tomcat. Thanks! - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 16, 2002 10:38 AM Subject: Re: accessing servlet 404 error just a couple of basics, do the tomcat

Can't find ${server}/conf/workers2.properties

2002-12-16 Thread Daryl Lee
I had a problem getting mod_jk2 to run that I could only get around by hardcoding a path in a source file. I'd like to undo that if I can get someone to point me the way. The error was on Tomcat (4.1.12) startup, and it reported that it was unable to find ${serverRoot}/conf/workers2.properties.

RE: newbie almost connected...

2002-12-16 Thread Peter
I came across a link on the jakarta website that said Coyote was enabled by default in 4.1.*, so I undid the changes in your HOWTO and voila, it worked. Now I can't find the link...if I do I'll post it. thanks for the response, Peter (Red Hat 8.0, Apache 2.0.4, Tomcat 4.1.7) Turner, John

RE: Can't find ${server}/conf/workers2.properties

2002-12-16 Thread Denise Mangano
Just a thought, but do you think setting an environment variable serverRoot=/usr/local/apache2 would do the trick? Or is that something that is already predefined in Apache... Just a thought ... Probably a naïve one, but a thought just the same :) Denise -Original Message- From:

RE: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

2002-12-16 Thread Milt Epstein
On Sun, 15 Dec 2002, Denise Mangano wrote: I do have appropriate permissions, as I have been able to stop it before. There is no error message being logged when I try to stop it. I ran ps -A which listed all processes. httpd (apache) was not one of them. I am assuming PID means Port ID(?),

RE: Can't find ${server}/conf/workers2.properties

2002-12-16 Thread Turner, John
If there's no functionality in jk_workerEnv.c to accept a value from a config file, then you're probably stuck. There might be a change in the works to make this configurable, I know that with Ajp13Connector (JK) you can point to a specific path, but that doesn't look like an option for

RE: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Günther Mittermayer
John, If that's what you mean: Host name=141.19.93.41:8080 Context path=/ docBase=C:\Programme\Fogang\Vertmittlungsmodul\jakarta-tomcat-3.2.1\webapps\ROOT / /Host Host name=141.19.93.41:8081 Context path=/

Re: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

2002-12-16 Thread Milt Epstein
On Sun, 15 Dec 2002, Rafael Angarita wrote: I ran ps -A which listed all processes. httpd (apache) was not one of them. I am assuming PID means Port ID(?), and neither 443 nor 80 was listed... This is all very strange and I am starting to sense that I will have to reinstall Apache...

RE: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

2002-12-16 Thread Denise Mangano
Milt, Thanks for responding. At first, there was no httpd service listed. I honestly haven't a clue exactly what was going on, but I gave up at one point and shut the server down, let it sit, and booted up when I came in this morning, and now Apache is fine again. Very strange... Denise

RE: Can't find ${server}/conf/workers2.properties

2002-12-16 Thread Ralph Einfeldt
There is a variable ServerRoot in apache. I don't know if or how this is exposed to mod_jk. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 5:39 PM To: 'Tomcat Users List' Subject: RE: Can't find ${server}/conf/workers2.properties

RE: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

2002-12-16 Thread Ralph Einfeldt
Typically this information is only available for a user with root rights. -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 5:40 PM To: Tomcat Users List Subject: Re: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

RE: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Turner, John
I would take port numbers out of those tags in server.xml, AFAIK Tomcat doesn't care about them at all. Tomcat is getting it's requests on the connector port, it is trying to match name, and my guess is the port number is not included on the request that it sees. John -Original

RE: newbie almost connected...

2002-12-16 Thread Turner, John
Yes, CoyoteConnector is enabled by default for JK/JK2 requests on port 8009 on Tomcat 4.1.12. John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 11:33 AM To: [EMAIL PROTECTED] Subject: RE: newbie almost connected... I

Linux tomcat startup

2002-12-16 Thread Peter
How can I add tomcat to Services on a Red HAt 8.0 linux system, just like apache? I know I can add a line to /etc/rc.d/init.d/httpd to start it at bootup, but I'd like to have it show up under Services, so I can stop and restart when I need it. Thanks, Peter

examples/servlet path broken?

2002-12-16 Thread Daryl Lee
I've upgraded to Tomcat 4.1.12, and the servlet examples don't work any more. The servlet examples use a path like .../examples/servlet/HelloWorldExample to access individual servlets. The only way I could make HelloWorldExample work was to give it the full monty in examples/WEB-INF/web.xml by

Startup problems

2002-12-16 Thread Aleksandr Shneyderman
I get the following error on the startup: Starting service Tomcat-Standalone Apache Tomcat/4.1.16 Dec 16, 2002 11:52:56 AM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 5 column 7: White spaces are required between publicId and systemId.

  1   2   3   >