Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Stephen Riek
On Thu, 2003-03-20 at 20:36, Micael wrote: For me the easiest thing was just to provide the right command line options (java.awt.headless=true) when I started up Tomcat. May I ask, how you did this ? I've also encountered JNI_OnLoad errors runing on Solaris due, I suspect, the lack of

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Micael
I added the headless flag to catalina.sh as follows: # - Execute The Requested Command - echo Using CATALINA_BASE: $CATALINA_BASE echo Using CATALINA_HOME: $CATALINA_HOME echo Using CATALINA_TMPDIR: $CATALINA_TMPDIR echo Using JAVA_HOME:

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Stephen Riek
Thanks Micael. Tried the same thing and got the same results. Looks like Catalina/Tomcat is indeed using headless mode but it's not working with my Java (1.4) and operating system (SunOS 5.6). I'm presuming you're using this to create/generate graphics in a servlet ? Do you mind posting sample

JDBC Driver disappears when using Mod_jk !

2003-03-23 Thread Soefara Redzuan
Dear Sirs, This is truly bizarre. I've been runing Apache+mod_webapp in front of one of our websites for quite a time now and it has worked fine for serving up JSP pages. So, the Apache-mod_webapp-Tomcat communication seems to be working OK. I recently added a JNDI datasource to the Tomcat web

Re: tomcat servlet invoker

2003-03-23 Thread Jacob Kjome
Which is why you should be using a Model2 framework like Barracuda, Struts, Maverick, and other frameworks. Jake At 01:59 PM 3/23/2003 +0200, you wrote: What will be used to invoke the servlet then ? The servlet mapping is one to one. What happen if I have a lot of servlets ? The 1 to 1

Re: install tomat on winZP pro

2003-03-23 Thread Jacob Kjome
What do you mean? What are you trying to do with Winzip? Jake At 12:28 AM 3/23/2003 -0500, you wrote: I need to get tomcat4.1.24 working on windows ZP but for some reason it won't work right. Here is my CATALINA_HOME = C:\Program Files\Apache Group\Tomcat4.1 I have also added my servlet.jar

RE: Reloading shared/lib JAR files?

2003-03-23 Thread Johannes Fiala
Hi Jeff, Thank you very much for the detailed outline. The reason why I wanted to use a central library was that I wanted to prevent different versions of my core libs haunting the contexts of the Tomcat server. So you're suggested solution would be to leave it up to the separate contexts to

Handling release management with Tomcat

2003-03-23 Thread Johannes Fiala
Hi there, We have a multiple server and multiple release system using Tomcat 4.1.18. Given the issues we have to address we want to ease updating from version to the other without facing big risks or interoperability issues. Servers acting as clients calling soap requests etc. should be able to

Re: Can't connect to X11 window server using '0:0' as the valueof the display and now java.awt.HeadlessException

2003-03-23 Thread Georges Roux
Hi, Here is a good link: http://www.geocities.com/marcoschmidt.geo/java-image-faq.html#x Hope you enjoy. Georges Stephen Riek wrote: Thanks Micael. Tried the same thing and got the same results. Looks like Catalina/Tomcat is indeed using headless mode but it's not working with my Java (1.4)

Problem with Bookmarking a Login Page

2003-03-23 Thread Mike Duffy
Does anyone know of a Struts work around for the problem with Tomact in bookmarking the login page for container managed security? There was a brief thread on this issue about a month ago [http://www.mail-archive.com/[EMAIL PROTECTED]/msg59734.html] There is a SourceForge project called

Webapp Precompilation using Ant and Jasper howto

2003-03-23 Thread Johannes Fiala
Hi there, I read the Jasper howto (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html), but I didn't get the build.xml file to work. here's the commandline I typed in: F:\srcant -Dtomcat.home=f:/tomcat-4.1.18 -Dwebapp.path=f:/tomcat-4.1.18/webapps/myapp I get the following

Re: Problem with Bookmarking a Login Page

2003-03-23 Thread James Carman
The way I always do it is I create a User (with email, fullName, etc.) class which is mapped into my database to the same tables I instruct Tomcat to use for a JdbcRealm. Then, I set up a filter which makes sure that a User object exists when there is a user principal. You can use the

Jasper Compilation - Vol. 2 (continued from Webapp Precompilation using Antand Jasper howto)

2003-03-23 Thread Johannes Fiala
Hi there, I've just built an ant task to allow for compilation of Jsps (jspc) *) the compiled jsps are put into /web/WEB-INF/src/*.java *) a generated WEB-INF directory is created at /web/WEB-INF/generated_web.xml However, I'd like to accomplish the following: *) automatically merge the

Re: install tomat on winZP pro

2003-03-23 Thread Dhruva B. Reddy
I think the original poster meant Windows XP Professional. Java in general does not deal with spaces in file and directory names very well. Try installing tomcat into a directory with no spaces in the names, such as: C:\tomcat and, of course, set CATALINA_HOME to the same. -d Jacob Kjome

JK2 - FreeBSD - Apache 2 on FreeBSD

2003-03-23 Thread Michele Neylon :: Blacknight Solutions
Hi all, Following the instructions on http://www.thinlizard.com/lizard/modjk2.html I was able to compile mod_jk2 (thank you!) I've tried a number of variations of the jk2 configuration, but cannot get it to work. I keep on getting a series of errors: [Sun Mar 23 17:13:00 2003] [notice]

Re: install tomat on winZP pro

2003-03-23 Thread Antoine
Please forgive me about the winZP i meant winXP at the time I was extremely tired when posting my problem. I will try it with no spaces On Sun, 2003-03-23 at 11:39, Dhruva B. Reddy wrote: I think the original poster meant Windows XP Professional. Java in general does not deal with spaces

Help with Servlets

2003-03-23 Thread Jeff Brewer
I've spent DAYS and DAYS and DAYS trying to get tomcat to run servlets. Nothing I try works. I have followed the instructions in three books, several online tutorials and attempted to decipher tomcat documentation on the apache site. I've installed and reinstalled two versions to Tomcat

Re: Help with Servlets

2003-03-23 Thread Kaarle Kaila
At 13:53 23.3.2003 -0500, you wrote: I've spent DAYS and DAYS and DAYS trying to get tomcat to run servlets. Nothing I try works. I have followed the instructions in three books, several online tutorials and attempted to decipher tomcat documentation on the apache site. I've installed and

Re: Help with Servlets

2003-03-23 Thread Jeff Brewer
Thank you very much. I did just try that and it didn't help, but perhaps it's only one of many things I have wrong. Thanks. - Original Message - From: Kaarle Kaila [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 23, 2003 1:59 PM Subject: Re: Help with

Re: Help with Servlets

2003-03-23 Thread p niemandt
At least you didn't say you've tried everything: I hate that, if you have tried everything, something would have worked ;-), but anyways, I'm going of on a tangent ... Firstly, your web.xml looks kinda screwed: You have nothing mapped int the wep app. Then, quite likely your major problem is

Re: Help with Servlets

2003-03-23 Thread Jeff Brewer
Thank you. I am seeing some success with this! If I have multiple servlets, do I need to publish all to the container individually and map each request to the servlet individually and does the order matter? Thanks again... Jeff - Original Message - From: p niemandt [EMAIL PROTECTED] To:

Re: Help with Servlets

2003-03-23 Thread James Carman
Yes, you do need to provide a servlet mapping for each of your servlets you wish to run, unless you want to run the invoker servlet (not recommended). Usually you map a different url pattern for each servlet in your webapp. This can be somewhat tedious, so I use XDoclet to generate my web.xml file

Re: Help with Servlets

2003-03-23 Thread James Carman
Oh, yes the order matters how you define things in your web.xml file. It has to follow the DTD. - Original Message - From: Jeff Brewer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 23, 2003 2:46 PM Subject: Re: Help with Servlets Thank you. I am seeing

Re: Help with Servlets

2003-03-23 Thread p niemandt
First, as a suggestion, you will need to understand XML and DTD's: This will explain what the web.xml file can and can not do. Then: There are multiple ways of doing servlet mappings: I tend to stay away from war files, for no particular reason at all, so, in that case, I need to map all my

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Micael
Here are two uses, if they are of help. I am using Red Hat 7.2 Linux. FIRST: public JPEGEncoder(Image image, int quality, OutputStream out) { MediaTracker tracker = new MediaTracker(this); tracker.addImage(image, 0); try {

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Micael
The material George gave you is really good. Do you have X11 installed, even if not running? I am not a Solaris guy, so don't know what that may mean in that context. At 09:09 AM 3/23/03 +, you wrote: Thanks Micael. Tried the same thing and got the same results. Looks like

Re: JasperException: Your session on the server has timed out.

2003-03-23 Thread Ramiro Gonzalez
What I see from the log is that the error is not related to the Session of the user, or the Session of the application to Service Desk... My question is, what Session is related the error to? what other Session exist beside the HttpSession? may the filter have is own session? Thanks in

Re: Help with Servlets

2003-03-23 Thread Jeff Brewer
Thanks to everyone who helped. I have one final question; where can I find documentation for how to maintain these files? Thanks - Original Message - From: p niemandt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 23, 2003 3:06 PM Subject: Re: Help with

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Luciano Kiniti Issoe
Hi all, It have been a long time since I read any post... but I can't ignore someone in trouble. I had a similar problem using java.AWT with linux... It needs a graphics system server, like windows or X11 running in your server. But as X11 was too heavy for my system, my workaround was to start

tomcat auto-configuration file for mod_jk (apache-mod_jk-tomcat)

2003-03-23 Thread Richie Chauhan
Hello, I can't seem to figure out what needs to be done on the tomcat side to get the Apache Auto configuration file TOMCAT_HOME/conf/jk/mod_jk.conf-auto The mod_jk documentation says This file is created by enabling the Apache auto-configuration as described in the Tomcat documentation - but I

LE version?

2003-03-23 Thread Mayne, Peter
What's the difference between Tomcat and Tomcat LE? I can't find anything about LE in the documentation. PJDM -- Peter Mayne Technology Consultant Spherion Technology Solutions Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602 T: 61 2 62689727 F: 61 2 62689777 The information contained in

RE: LE version?

2003-03-23 Thread Richie Chauhan
Tomcat LE does not have some XML parsers included. -Original Message- From: Mayne, Peter [mailto:[EMAIL PROTECTED] Sent: Sunday, March 23, 2003 3:31 PM To: Tomcat Users List Subject: LE version? What's the difference between Tomcat and Tomcat LE? I can't find anything about LE in the

RE: LE version?

2003-03-23 Thread Richie Chauhan
The information below is copied from : http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/bin/ README.html Apache Tomcat 4.1.24 This release of Tomcat 4.1 is available in two different packaging options: Standard: This is a full binary distrbution of Tomcat 4, which includes

Non-servlet application

2003-03-23 Thread Mayne, Peter
I have an application that needs to run as a service (on Windows) responding to various events, none of which are HTTP/servlet/JSP related. I could set it up as a separate Windows service (similar to jk_nt_service). However, since there is an instance of Tomcat running already, it would be easier

servlet problems with web app outside Tomcat directory

2003-03-23 Thread Michael Harrison
Hello, I've been struggling for several days with setting up a modest web application outside the Tomcat installation directory. I have JSPs compiling, executing, and returning the proper display data, but I cannot get my servlets to work: I only get 404 errors. I'm running Apache 2.0.44

RE: LE version?

2003-03-23 Thread Mayne, Peter
Title: RE: LE version? So it is. Thanks. Looking at the Apache distribution site (http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/bin/), this is stated up front on the web page. However, this information is not present at the mirror I use to download from

load-on-startup order

2003-03-23 Thread Mayne, Peter
Tomcat 4.1.18 I have two applications, A and B, where a servlet in B depends on a servlet in A being up, so I have in A's web.xml: servlet ... load-on-startup1/load-on-startup /servlet in B's web.xml: servlet ... load-on-startup5/load-on-startup /servlet which should

Re: load-on-startup order

2003-03-23 Thread Tomas Wredendal
Mayne, Peter wrote: Tomcat 4.1.18 I have two applications, A and B, where a servlet in B depends on a servlet in A being up, so I have in A's web.xml: servlet ... load-on-startup1/load-on-startup /servlet in B's web.xml: servlet ... load-on-startup5/load-on-startup

Re: load-on-startup order

2003-03-23 Thread James Carman
Instead of performing the necessary logic in the init method, why not try lazy-loading. Only initialize whatever you need when it is requested the first time. By the way, what are you trying to do? I've never heard of anyone having this kind of requirement/architecture. Just curious. -

RE: load-on-startup order

2003-03-23 Thread Mayne, Peter
Title: RE: load-on-startup order So load-on-startup only orders within an application, not between applications? Application A is a message handler. Application B is a listener which must register with A when it starts, so A can forward incoming messages to B. Therefore, B can't lazy load:

Re: JDBC Driver disappears when using Mod_WEBAPP

2003-03-23 Thread Soefara Redzuan
Sorry, just realized the title should have read JDBC driver disappears when using mod_webapp. From: Soefara Redzuan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: JDBC Driver disappears when using Mod_jk ! Dear Sirs, This is truly bizarre. I've been runing Apache+mod_webapp in front of one of

RE: Reloading shared/lib JAR files?

2003-03-23 Thread Jeff Jensen
No probs - hope that helped. Here are some more thoughts... Please elaborate on why you want to avoid having n copies of a jar version in different contexts. In theory, it is a good principle, but I will argue that that principle applies well to source code and other situations, but not

mod_jk2 build issue

2003-03-23 Thread Trpeski, Steve
Hi, I am configuring Apache1.3.27 to talk to Tomcat 4.1.18. All was going fine until I tried to build mod_jk2 on a SunOs 2.8 machine. Given that there are no binaries for solaris 8 (SunOs 2.8), I have downloaded the source: jakarta-tomcat-connectors-jk2-2.0.2-src. When I try to build the