Re: Bootstrap: Class loader creation threw exception

2003-04-02 Thread Kristján Bjarni Guðmundsson
Yes this is java bug 4776385, which will never be fixed.
See: http://developer.java.sun.com/developer/bugParade/bugs/4776385.html

Code compiled with Java 1.4 (like Tomcat) doesn't work with standard Java 
1.2

To fix this you need to do either:

- Install a newer JVM, 1.3 or higher.
Why are you using such and old JVM anyway?

-  Install the Hotspot  2.0 for Java 1.2
http://java.sun.com/products/hotspot/2.0/download.html

 - Kristjan

Horst Behrendt [EMAIL PROTECTED] wrote on 02.04.2003 11:16:17:

 Sorry I am a newbie to tomcat and because i heard so much good thinks
 about it i am trying to get it up and running.
 
 Unfortunately i have to install it (tomcat4.1.24) on WIN NT with jvm1.2.
 When i now use catalina run form the cmd in the installation directory
 i get the following message:
 
 Bootstrap: Class loader creation threw exception
 java.lang.IllegalMonitorStateException: current thread not owner
 at
 org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Sta
 ndardClassLoader.java, Compiled Code)
 at
 org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoade
 r.java, Compiled Code)
 at
 org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLo
 aderFactory.java, Compiled Code)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java,
 Compiled Code)
 
 
 Can anyone tell me what is probably wrong?.


Re: GUI for ant ...

2003-03-31 Thread Kristján Bjarni Guðmundsson
Well it depends on what you mean, if you mean a grapchical designer for 
ant build xml files then
I don't think there is any. But if you mean a GUI tool to run ant build 
files, well I personally use
JEdit (http://www.jedit.org) and it has a graphical plugin (AntFarm) for 
runnint ant targets.


[EMAIL PROTECTED] wrote on 31.03.2003 14:47:05:

 Hi,
Being a newbie to ant ( have to use it ) ... can any one give me a
 link to a s/w with GUI for ant ??? 
 
 
 Gurumoorthy Raghupathy
 Aegon Benefit Solution 
 Email : [EMAIL PROTECTED]
 Phone : 0044 20 72404801
 Mobile : 07745988336
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Deploying SOAP

2003-02-20 Thread Kristján Bjarni Guðmundsson
Incorrect, this url is specified in the web.xml document, therefore it 
doesn't rely on
the invoker.

Jacob Kjome [EMAIL PROTECTED] wrote on 18.02.2003 18:17:54:

 Hello srihari,
 
 You need to read the release notes.  Based on the URL you mention
 { /soap/servlet/rpcrouter }, you are counting on the fact that the
 invoker servlet is enabled in Tomcat.  It has been disabled by default
 in recent Tomcat releases.
 
 Re-enable the invoker serlvet by uncommenting the mapping for it in
 CATALINA_HOME/conf/web.xml



Re: memory problem

2003-01-16 Thread Kristján Bjarni Guðmundsson
I wouldn't upgrade to SUN 1.4, it has the same but different problem:

http://developer.java.sun.com/developer/bugParade/bugs/4724129.html

rf [EMAIL PROTECTED] wrote on 16.01.2003 12:14:48:

 I get OutofMemory with tomcat 4.0.6 and sun's jdk1.3.
 From the archives I found this is due to a bug in the
 sun's jdk 1.3 JVM, and people suggest to upgrade to
 1.4
 
 Does IBM's jdk1.3 too gives the same problem or is it
 only the Sun's?
 
 Thanks,
 Rf
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 --
 To unsubscribe, e-mail: 
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 



How can I clear response headers?

2003-01-14 Thread Kristján Bjarni Guðmundsson
I have created a servlet that serves both html and images, I set the 
ContentType and everything is okay.
However I have noticed whenever I use BASIC authentication on this servlet 
Tomcat automatically adds these
to the response header:

Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT

I understand that this should be used when you are serving html so that 
its not cached, however
I would like to remove these headers when I am serving images since they 
should be cached.
But alas there is no clearHeader() only setHeader() in 
HttpServletResponse.
How can I do this?

 - Kristján



Need help isolating severe Tomcat v4.1.18 bug

2003-01-08 Thread Kristján Bjarni Guðmundsson
Specs and variables:
Windows NT 4 SP 6
Tomcat v4.1.18
JDK v1.4.1_01
CATALINA_OPTS=-Xms128M -Xmx1024M

At random intervals I get this error on console, it seems
that the socket for port 80 is closed and the server stops responding
What steps can I take to get more information about why this error is 
occuring?

SEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=80] 
ignored
exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at java.net.ServerSocket.implAccept(ServerSocket.java:439)
at java.net.ServerSocket.accept(ServerSocket.java:410)
at 
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(De
faultServerSocketFactory.java:107)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoi
nt.java:341)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:497)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:530)
at java.lang.Thread.run(Thread.java:536)
8.1.2003 03:36:47 org.apache.tomcat.util.log.CommonLogHandler log
SEVERE: Endpoint null shutdown due to exception: java.net.SocketException: 
Opera
tion now in progress: create
java.net.SocketException: Operation now in progress: create
at java.net.ServerSocket.createImpl(ServerSocket.java:245)
at java.net.ServerSocket.getImpl(ServerSocket.java:203)
at java.net.ServerSocket.bind(ServerSocket.java:309)
at java.net.ServerSocket.init(ServerSocket.java:183)
at java.net.ServerSocket.init(ServerSocket.java:139)
at 
org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(De
faultServerSocketFactory.java:96)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoi
nt.java:389)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:497)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:530)
at java.lang.Thread.run(Thread.java:536)
8.1.2003 03:36:47 org.apache.tomcat.util.log.CommonLogHandler log
SEVERE: Caught exception trying to unlock accept.
java.net.SocketException: Operation now in progress: create
at java.net.Socket.createImpl(Socket.java:313)
at java.net.Socket.init(Socket.java:286)
at java.net.Socket.init(Socket.java:119)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.stopEndpoint(PoolTcpEndpoi
nt.java:309)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoi
nt.java:400)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:497)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:530)
at java.lang.Thread.run(Thread.java:536)
8.1.2003 03:36:47 org.apache.tomcat.util.log.CommonLogHandler log
SEVERE: Caught exception trying to close socket.
java.lang.NullPointerException
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.stopEndpoint(PoolTcpEndpoi
nt.java:321)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoi
nt.java:400)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:497)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:530)
at java.lang.Thread.run(Thread.java:536)



Please reply--Important print writer problem.

2003-01-06 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  Please reply--Important print writer problem.
document   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   06.01.2003 09:28:01  
   





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




Re: JDK or is JRE sufficient?

2002-12-20 Thread Kristján Bjarni Guðmundsson
I can't speak for the HP-UX JVM but I am running Tomcat with just the JRE 
in Windows.

The steps to do that are:

1) Copy the tools.jar from the JSDK to the lib directory in the JRE, this 
contains
the java compiler library, used for compiling JSP pages.

2) Modify the startup script for Tomcat (setclasspath.bat) and remove the 
checks for 
jdb.exe and javac.exe

Pfingstl Gernot [EMAIL PROTECTED] wrote on 19.12.2002 
15:39:44:

 In RUNNING.txt there is the sentence, that I have to install a JDK 
 before running TOMCAT - is there a possibility to run TOMCAT in 
 conjunction with the JRE only? (On our HP-UX, there's only JRE 
installed).
 
 If yes, is there some guideline what to change, because in the 
 startup scripts there will be checked if jdo and javac is present.
 
 Thanks,
 Gernot
 
 --
 To unsubscribe, e-mail: 
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 



Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.

2002-12-20 Thread Kristján Bjarni Guðmundsson
Also note that mixing ISO-8859-1 and UTF-8 in html pages,javascript pages 
and css pages
is bad. Internet explorer assumes for example that if the html page is 
UTF-8 that all javascript pages
referenced from that page are also UTF-8. The key do successfully mix 
different character set is to 
always set the charset when referencing other text files, for example:

link rel=stylesheet type=text/css href=my_css.css 
charset=ISO-8859-1
script language=JavaScript src=my_javascript.js 
charset=ISO-8859-1/script

If your application uses international character sest it is best to use 
UTF-8 consistently
throughout your web application.

Perhaps if you could post the head of the the html generated that is 
giving you the error.
We could see what is wrong.

 - Kristjan

Bill Barker [EMAIL PROTECTED] wrote on 20.12.2002 06:22:31:

 Kristjan's response is the best that I've seen so far on this thread.
 Assuming that you are using Tomcat 4.x, you can also set %@page
 pageEncoding=UTF-8 % (of course, s/UTF-8/my-encoding/ as needed). 
This
 tells the JSP compiler what charset your page was stored as,  so that it 
can
 correctly translate static text within the page.  The %@page
 contentType=text/html; charset=UTF-8 % directive is used to translate
 dynamic content.
 
 Andoni [EMAIL PROTECTED] wrote in message
 001c01c2a76c$23b2eb70$39e1a8c0@HOLODECK">news:001c01c2a76c$23b2eb70$39e1a8c0@HOLODECK...
  Are the HTML meta tags and the JSP tags interchangeable?  i.e. are 
they
 the
  same thing?
 
  Andoni.
 
  - Original Message -
  From: Bogdan Kiszka [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Thursday, December 19, 2002 1:45 PM
  Subject: RE: UTF-8 vs ISO-8859-1 and really screwed up webpages.
 
 
  It is perfectly right. You must take care not to have page directive
  with contentType attribute in any included pages. If you have only one
  such an entry per page then everything is alright.
  I suggest to start with simple pages and then move to sophisticated
  ones.
  Bogdan
 
  -Original Message-
  From: Andoni [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 19, 2002 2:17 PM
  To: Tomcat Users List
  Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.
 
 
  It tells me I can't have two contentType entries when I put in the 
JSP
  tag!!
 
  Andoni.
  - Original Message -
  From: Andoni [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, December 19, 2002 12:58 PM
  Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.
 
 
   I am having this problem aswell.
  
   the pages I produce are coming up with all sorts of Japanese
  characters
  etc.
   in them.
   I have already inserted the Meta tags and converted the files using
  the
   saveAs / UTF8 feature on my editor.
  
   Now I am going to add the %@ page contentType =
  text/html;charset=UTF-8
   %
   tag suggested by Bogdan below, is there anything else I must do?
  
   Andoni.
  
   - Original Message -
   From: Bogdan Kiszka [EMAIL PROTECTED]
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Sent: Thursday, December 19, 2002 9:25 AM
   Subject: RE: UTF-8 vs ISO-8859-1 and really screwed up webpages.
  
  
   In the JSP page, use a page directive to set the content type:
   %@ page contentType = text/html;charset=UTF-8 %
  
  
   -Original Message-
   From: Kristj?n Bjarni Gu?mundsson [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, December 19, 2002 9:50 AM
   To: Tomcat Users List
   Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.
  
  
   Yes, you are storing the page as ISO-8859-1 so you must serve the 
page
   as
   ISO-8859-1
   changing the meta tag to UTF-8 doesn't magically convert the page to
   UTF-8.
  
   If you want to serve the page as UTF-8 you must also save the page 
as
   UTF-8.
   The meta tag is just a hint to the browser which charset the page is
   using.
  
   Check you html editor to see if you can change the encoding to UTF-8
   when
   saving.
  
   Adam Greene [EMAIL PROTECTED] wrote on 18.12.2002 20:32:37:
  
I have two webpages and both contain the letter é (litterally
  written
   into
the page), but one page displays it as é and the other page 
displays
   it
   as
?C and I cannot figure out why.  I have tried setting (via META
  Tags)
   the
language to UTF-8 and to ISO-8859-1 and I can only get one page to
   work
   at a
time (under UTF-8, the é comes up as a block on the page that did
  work
  
   under
ISO-8859-1).  I can see no difference in the code.
   
Does anyone have any ideas about what is going on??
   
   
   
--
To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
   
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional 

Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.

2002-12-19 Thread Kristján Bjarni Guðmundsson
Yes, you are storing the page as ISO-8859-1 so you must serve the page as 
ISO-8859-1
changing the meta tag to UTF-8 doesn't magically convert the page to 
UTF-8.

If you want to serve the page as UTF-8 you must also save the page as 
UTF-8.
The meta tag is just a hint to the browser which charset the page is 
using.

Check you html editor to see if you can change the encoding to UTF-8 when 
saving.

Adam Greene [EMAIL PROTECTED] wrote on 18.12.2002 20:32:37:

 I have two webpages and both contain the letter é (litterally written 
into
 the page), but one page displays it as é and the other page displays it 
as
 é and I cannot figure out why.  I have tried setting (via META Tags) 
the
 language to UTF-8 and to ISO-8859-1 and I can only get one page to work 
at a
 time (under UTF-8, the é comes up as a block on the page that did work 
under
 ISO-8859-1).  I can see no difference in the code.
 
 Does anyone have any ideas about what is going on??
 
 
 
 --
 To unsubscribe, e-mail: 
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 



Re: TC 4.1 and VM crash: how to report issue?

2002-12-11 Thread Kristján Bjarni Guðmundsson
I don't recomend using the -server option, the server version is buggy as 
hell
and crashes constantly, you will just have to wait for SUN to get their 
act together.

Aymeric Alibert [EMAIL PROTECTED] wrote on 10.12.2002 
22:38:19:

 We are running a Tomcat 4.0 server in our production environment and
 I am trying to upgrade to Tomcat 4.1.
 
 I ran some load test recently and was horrified to see the server 
 crashing even
 under moderate load. After more testing, I found that starting the VM 
with the
 -server option systematically crash the VM after few minutes of load 
test.
 The server works fine even under heavy load with the -client option.
 The same behavior can be reproduced with both JDK1.4.0 and JDK1.4.1.
 
 My TC4.0 server runs fine with the -server option.
 
 Now, this is obviously a JVM problem but probably won't have any help 
from 
 SUN since:
 - I cannot create a test case to reproduce my problem.
 - I works fine with TC4.1
 
 Can someone help me with this issue or at least guide me to the right 
contact?
 I found several tickets opened on the SUN bug database with similar 
issues but
 none of them had a resolution or people assigned to work on them.
 
 Thanks!
 
 Aymeric



Re: Run Tomcat without JDK

2002-12-05 Thread Kristján Bjarni Guðmundsson
Yes you can include just the tools.jar from the JSDK with your JRE.
At least that is what I do, and it works.

This is from the JRE Readme.txt:

---
Redistribution of Java 2 SDK Files
---
The limited set of files from the SDK listed below may be included in 
vendor redistributions of the Java 2 Runtime Environment.  All paths 
are relative to the top-level directory of the SDK.

  - The javac bytecode compiler, consisting of the following files:
bin/javac   [Solaris(TM) Operating Environment 
 and Linux]
bin/sparcv9/javac   [Solaris Operating Environment 
 (SPARC(TM) Platform Edition)]
bin/javac.exe   [Microsoft Windows]
lib/tools.jar   [All platforms] 

news [EMAIL PROTECTED] wrote on 05.12.2002 07:48:16:

 I've never tried it myself, but in theory you should be able to run 
Tomcat
 (any version) with just the JSE if all of your JSP files have been
 pre-compiled.
 
 Billy Ng [EMAIL PROTECTED] wrote in message
 004301c29bda$cffa2c10$[EMAIL PROTECTED]">news:004301c29bda$cffa2c10$[EMAIL PROTECTED]...
  I am using Tomcat 4.  Let's assume all jsp files have been 
pre-compiled.
  Can I get away from the JDK?   The problem I see is tomcat needs some
 other
  filesd in JAVA_HOME/bin directory other than JRE?
 
  Billy Ng
 
 
  - Original Message -
  From: Shapira, Yoav [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, December 04, 2002 1:06 PM
  Subject: RE: Run Tomcat without JDK
 
 
  Hi,
  You can probably get away with this if you don't have JSPs, or you use
  jspc (or something else) to pre-compile your JSPs.  However, as long 
as
  tomcat requires the JDK you risk being unable to upgrade to future
  versions of tomcat.
 
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: Billy Ng [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, December 04, 2002 4:06 PM
  To: Tomcat Users List
  Subject: Run Tomcat without JDK
  
  Hi folks,
  
  We ship J2EE app to Windows box.  Our installer will install the JDK
  and
  Tomcat to the box.  However, some customers complained that they did
  not
  like to install the JDK.  Is there a way to run the J2EE app on 
tomcat
  without the JDK?  Can we maybe just include the JRE or tools.jar in 
the
  app
  instead of installing the entire JDK?
  
  Thanks!
  
  Billy Ng
  
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe, e-mail: 
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 



RE: java.sql.SQLException: Cannot load JDBC driver class 'null'

2002-12-05 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  RE: java.sql.SQLException: Cannot load JDBC driver class 
document  'null'   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   05.12.2002 09:54:24  
   





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




Re: Run Tomcat without JDK

2002-12-05 Thread Kristján Bjarni Guðmundsson
Well I am using a custom exe launcher for Tomcat so I am not using 
catalina.bat
But I think you can just comment out the checks for

JDB.EXE
JAVAC.EXE

in setclasspath.bat

since I can't see that they are needed when running tomcat normally.

Billy Ng [EMAIL PROTECTED] wrote on 05.12.2002 17:24:18:

 Are you using Tomcat 4?  Tomcat 4's catalina.bat requires more 4 files 
in
 the java/bin directory to start.  I don't think just include the 
tools.jar
 is good enough.
 
 Billy Ng
 
 - Original Message -
 From: Kristján Bjarni Guðmundsson [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, December 05, 2002 1:54 AM
 Subject: Re: Run Tomcat without JDK
 
 
  Yes you can include just the tools.jar from the JSDK with your JRE.
  At least that is what I do, and it works.
 
  This is from the JRE Readme.txt:
 
  
---
  Redistribution of Java 2 SDK Files
  
---
  The limited set of files from the SDK listed below may be included in
  vendor redistributions of the Java 2 Runtime Environment.  All paths
  are relative to the top-level directory of the SDK.
 
- The javac bytecode compiler, consisting of the following files:
  bin/javac   [Solaris(TM) Operating Environment
   and Linux]
  bin/sparcv9/javac   [Solaris Operating Environment
   (SPARC(TM) Platform Edition)]
  bin/javac.exe   [Microsoft Windows]
  lib/tools.jar   [All platforms]
 
  news [EMAIL PROTECTED] wrote on 05.12.2002 07:48:16:
 
   I've never tried it myself, but in theory you should be able to run
  Tomcat
   (any version) with just the JSE if all of your JSP files have been
   pre-compiled.
  
   Billy Ng [EMAIL PROTECTED] wrote in message
   004301c29bda$cffa2c10$[EMAIL PROTECTED]">news:004301c29bda$cffa2c10$[EMAIL PROTECTED]...
I am using Tomcat 4.  Let's assume all jsp files have been
  pre-compiled.
Can I get away from the JDK?   The problem I see is tomcat needs 
some
   other
filesd in JAVA_HOME/bin directory other than JRE?
   
Billy Ng
   
   
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, December 04, 2002 1:06 PM
Subject: RE: Run Tomcat without JDK
   
   
Hi,
You can probably get away with this if you don't have JSPs, or you 
use
jspc (or something else) to pre-compile your JSPs.  However, as 
long
  as
tomcat requires the JDK you risk being unable to upgrade to future
versions of tomcat.
   
   
Yoav Shapira
Millennium ChemInformatics
   
   
-Original Message-
From: Billy Ng [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 04, 2002 4:06 PM
To: Tomcat Users List
Subject: Run Tomcat without JDK

Hi folks,

We ship J2EE app to Windows box.  Our installer will install the 
JDK
and
Tomcat to the box.  However, some customers complained that they 
did
not
like to install the JDK.  Is there a way to run the J2EE app on
  tomcat
without the JDK?  Can we maybe just include the JRE or tools.jar 
in
  the
app
instead of installing the entire JDK?

Thanks!

Billy Ng

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



RE: Problem going from 4.0.6 to 4.1.16b

2002-12-04 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  RE: Problem going from 4.0.6 to 4.1.16b  
document   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   04.12.2002 11:33:47  
   





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




RE: ajp13 port always 8009 (config does not apply)

2002-12-02 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  RE: ajp13 port always 8009 (config does not apply)   
document   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   02.12.2002 15:57:22  
   





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




Re: OFF-TOPIC: creating classes

2002-11-27 Thread Kristján Bjarni Guðmundsson
You could check out BCEL.

http://jakarta.apache.org/bcel/index.html

Felipe Schnack [EMAIL PROTECTED] wrote on 27.11.2002 13:40:59:

   Hi all,
   I know this is off-topic, but I just had a crazy idea and couldn't
 find about it anywhere...
   There is a way to modify/create java classes at runtime? I mean,
 create plain new classes, or add attributes/methods to an existing, etc?
 
   Maybe I'm asking for Java++? :-)
 
 -- 
 
 Felipe Schnack
 Analista de Sistemas
 [EMAIL PROTECTED]
 Cel.: (51)91287530
 Linux Counter #281893
 
 Faculdade Ritter dos Reis
 www.ritterdosreis.br
 [EMAIL PROTECTED]
 Fone/Fax.: (51)32303328
 
 
 --
 To unsubscribe, e-mail: 
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 



workers.properties

2002-11-26 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  workers.properties   
document   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   26.11.2002 13:35:42  
   





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




Re: Pb with HEAD request

2002-11-26 Thread Kristján Bjarni Guðmundsson
You really should look into the servlet specification.
I think if you override doHead for your servlet

doHead(HttpServletRequest req, HttpServletResponse resp) 

Receives an HTTP HEAD request from the protected service method and 
handles the request.

Default action for doHead is to simply call doGet

Cédric Viaud [EMAIL PROTECTED] wrote on 26.11.2002 15:32:45:

 Hi,

 I have Tomcat server 4.0.4 on NT 4 that contains a servlets in 
 charge to create SVG content.

 The client is Internet Explorer 5.5. It loads the following simple HTML 
page :

 html
 body
 embed width=200 height=200 
src=http://localhost:8080/myContext/MyServlet
 
 /body
 /html

 The problem is that my servlet is invoked twice.

 My supposition is that IE is sending a HEAD (or GET) request to know
 the content type of the URL and then run the Adobe SVG plugin. When 
 started the plugin connects also the servlet to get SVG content. 
 HTTP spec says that HEAD request must return the same headers as GET
 request. What is sure is that my code is executed twice, not only 
 the part that concerns response headers. But how can I do to know 
 with the servlet if the request is a GET or a HEAD. I test the 
 HttpRequest.getMethod() but it always return GET.

 Does someone know how to configure tomcat or anything else to 
 avoid the two executions ?

 Thanks.



RE: help for newbie?

2002-11-26 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  RE: help for newbie? 
document   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   26.11.2002 17:34:36  
   





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




Re: Tomcat or JBoss?

2002-11-25 Thread Kristján Bjarni Guðmundsson
I don't know much about JBoss but it was my understanding that it was
an Enterprise JavaBeans Application Server and used Tomcat or something 
other as Servlet container.

This is from the JBoss faq:

What support exists in JBoss for JSP/Servlets ?
The default download contains Jetty as an integrated web container. There 
is also a download in which Tomcat is integrated.
Other web containers can be integrated, and it is also possible to create 
a configuration where no web support is included.


[EMAIL PROTECTED] wrote on 25.11.2002 13:52:28:

 I'm sure you get this question all the time, but this is not that type 
of
 question. I've been using Tomcat for a while, like a year, in a 
production
 environment. I think it's been doing fine so far. I've just got a new
 server to replace my current application server that's been running 
Tomcat.
 I was thinking maybe I should set this up with JBoss instead of Tomcat,
 because this will be production. The reason I'm thinking about doing 
this
 is one, because I'm at a stage where it would be easy to just install
 whatever I want and two, I've read a couple places that Tomcat is just a
 reference implementation. That it was not really designed to be in
 production. It doesn't have to be just JBoss either. I just know a 
little
 about it. Any suggestions would be great.
 
 
 Thank You,
 
 Justin A. Stanczak
 Web Manager
 Shake Learning Resource Center
 Vincennes University
 (812)888-5813
 
 
 
 --
 To unsubscribe, e-mail: 
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 



Re: File Path Problem...

2002-11-21 Thread Kristján Bjarni Guðmundsson
I think you could store it in WEB-INF and use 
ServletContext.getRealPath(/WEB-INF).


Andreas Probst [EMAIL PROTECTED] wrote on 21.11.2002 12:19:51:

 Hello,
 
 maybe you could save the absolute path inside a properties file 
 or pass it as an init parameter in web.xml. For each location of 
 your app you would have to set this path appropriately. You 
 could use absolute paths and wouldn't need to change the source 
 code of the application.
 
 Regards,
 Andreas
 
 
 On 21 Nov 2002 at 14:31, Harsha Yalagach wrote:
 
  Hello,
  
  I am running Tomcat 4.1 on Windows 2000 as a service.
  
  I have written a JSP page where in I am trying to read an
  XML. If I try
  to access the file using absolute path, for eg. c:\abc\xyz.xml,
  the page works without any problem. But if i try to access it
  thru relative path, for eg. ../data/xyz.xml, the tomcat will
  throw a FileNotFoundException saying that xyz.xml doesnt exist in
  SYSTEM-ROOT\System32 dir.
  
  The reason behind this is that the JSP is tring to access the
  file from
  where JVM was started according to Java Documentation, ie
  SYSTEM-ROOT\System32 directory where the Service Control Manager
  starts the Tomcat service which in turn starts the JVM.
  
  So the question is, is there any other way I can use a
  relative path
  inside my application to access a file? (I dont want to use
  absolute path as my application has to be distributed in many
  places).
  
  Thanks in advance...
  Warm Regards,
  Harsha Yalagach
  
  
  --
  Cerebra Integrated Technologies Ltd., Bangalore, India
  
  
  
  --
  To unsubscribe, e-mail: 
  mailto:[EMAIL PROTECTED] For
  additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 
 --
 To unsubscribe, e-mail: 
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 



Re: Tomcat 4.1.10 and Windows NT - Repost - Urgent

2002-11-19 Thread Kristján Bjarni Guðmundsson
Yes I ran into this myself, I think it is because of this error:

http://developer.java.sun.com/developer/bugParade/bugs/4776385.html

You can try to use JVM 1.3 or JVM 1.4 instead.


Short, Dave [EMAIL PROTECTED] wrote on 19.11.2002 17:02:14:

 I'm trying to run Tomcat 4.1.10 out of the box and get the following 
error
 
 when executing catalina.bat run: 
 
 Using CATALINA_BASE:   C:\Tomcat 
 Using CATALINA_HOME:   C:\Tomcat 
 Using CATALINA_TMPDIR: C:\Tomcat\temp 
 Using JAVA_HOME:   D:\Jdk1.2.2 
 Bootstrap: Class loader creation threw exception 
 java.lang.IllegalMonitorStateException: current thread not owner 
 at 
 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
 
 dClassLoader.java, Compiled Code) 
 at 
 
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.ja
 
 va, Compiled Code) 
 at 
 
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoader
 
 Factory.java, Compiled Code) 
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java, 
 Compiled Code) 
 
 
 
 My environment is setup as follows: 
 
 CATALINE_HOME = C:\Tomcat 
 JAVA_HOME = D:\Jdk1.2.2 
 JDK_LATEST = D:\Jdk1.2.2 
 
 Any help would be greatly appreciated. 
 
 Dave 
 
 
 
 
 LEGAL NOTICE
 Unless expressly stated otherwise, this message is confidential and 
 may be privileged. It is intended for the addressee(s) only. Access 
 to this E-mail by anyone else is unauthorized. If you are not an 
 addressee, any disclosure or copying of the contents of this E-mail 
 or any action taken (or not taken) in reliance on it is unauthorized
 and may be unlawful. If you are not an addressee, please inform the 
 sender immediately.
 
 --
 To unsubscribe, e-mail: 
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 



Tomcat 4.0.6 and Java versions

2002-11-18 Thread Kristján Bjarni Guðmundsson
What are the requirements for the Java versions for Tomcat 4.0.6?

I am trying to use JDK-1.2.2_014, but trying to start Tomcat I always get:

Bootstrap: Class loader creation threw exception
java.lang.IllegalMonitorStateException: current thread not owner



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




RE: Tomcat 4.0.6 and Java versions

2002-11-18 Thread Kristján Bjarni Guðmundsson
No this is the full version of v4.0.6

I can run it using JDK version:

v1.4.1_01
v1.3.1_03

I simply change the JAVA_HOME variable but v1.2.2_014 gives the error, and 
unfortunately I have to use the 1.2 version.

Has anybody actually verified that Tomcat can run on 1.2 of Java?

Reynir Hübner [EMAIL PROTECTED] wrote on 18.11.2002 14:47:49:

 Hæ, 
 
 Did you by any chance download the LE version ?
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.6/bin/
 
 Try the standard version, but not LE.
 
 The standard version req. : 
 Standard: This is a full binary distrbution of Tomcat 4, which 
 includes all optional libraries and an XML parser (Xerces 1.4.4), 
 and can be run on JDK 1.2+. 
 Hope it helps
 [EMAIL PROTECTED]
 
 
  -Original Message-
  From: Kristján Bjarni Guðmundsson [mailto:[EMAIL PROTECTED]] 
  Sent: 18. nóvember 2002 10:28
  To: [EMAIL PROTECTED]
  Subject: Tomcat 4.0.6 and Java versions
  
  
  What are the requirements for the Java versions for Tomcat 4.0.6?
  
  I am trying to use JDK-1.2.2_014, but trying to start Tomcat 
  I always get:
  
  Bootstrap: Class loader creation threw exception
  java.lang.IllegalMonitorStateException: current thread not owner
  
  
  
  --
  To unsubscribe, e-mail: 
  mailto:tomcat-user- [EMAIL PROTECTED]
  For 
  additional commands, 
  e-mail: mailto:[EMAIL PROTECTED]
  
  
 
 --
 To unsubscribe, e-mail: 
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 



RE: Tomcat 4.0.6 and Java versions, FOUND BUG!

2002-11-18 Thread Kristján Bjarni Guðmundsson
Ok just went searching the java bug database and found this:

http://developer.java.sun.com/developer/bugParade/bugs/4776385.html

This seems to be the same issue since Tomcat is now compiled using 1.4.
Fix seems to use hotspot instead of classic  runtime, unfortunately SUN 
doesn't
distribute hotspot with latest JDK 1.2  :(

Perhaps the Tomcat developers should use 1.3 to compile since that version 
doesn't
seem to have this problem.

Jason Koeninger [EMAIL PROTECTED] wrote on 19.11.2002 04:59:10:

 I have 4.0.6 running on a Solaris Intel 1.2 JDK.  The HTTP connector 
 seems to work fine with 1.2, but the ajp13 connector was throwing 
exceptions 
 on a socket method (setKeepAlive I think).  Switching the instance using 

 ajp13 to JDK 1.3.1 fixed that problem, but I still have one 
instanceusing the 
 HTTP connector running on 1.2.
 
 Best Regards,
 
 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com
 
 On Mon, 18 Nov 2002 15:24:01 +, Kristj n Bjarni Gu mundsson wrote:
 
 No this is the full version of v4.0.6
 
 I can run it using JDK version:
 
 v1.4.1_01
 v1.3.1_03
 
 I simply change the JAVA_HOME variable but v1.2.2_014 gives the error, 
and 
 unfortunately I have to use the 1.2 version.
 
 Has anybody actually verified that Tomcat can run on 1.2 of Java?
 
 Reynir H?bner [EMAIL PROTECTED] wrote on 18.11.2002 14:47:49:
 
  H¡¥, 
  
  Did you by any chance download the LE version ?
  
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.6/bin/
  
  Try the standard version, but not LE.
  
  The standard version req. : 
  Standard: This is a full binary distrbution of Tomcat 4, which 
  includes all optional libraries and an XML parser (Xerces 1.4.4), 
  and can be run on JDK 1.2+. 
  Hope it helps
  [EMAIL PROTECTED]
  
  
   -Original Message-
   From: Kristj n Bjarni Gu mundsson [mailto:[EMAIL PROTECTED]] 
   Sent: 18. n¢Fvember 2002 10:28
   To: [EMAIL PROTECTED]
   Subject: Tomcat 4.0.6 and Java versions
   
   
   What are the requirements for the Java versions for Tomcat 4.0.6?
   
   I am trying to use JDK-1.2.2_014, but trying to start Tomcat 
   I always get:
   
   Bootstrap: Class loader creation threw exception
   java.lang.IllegalMonitorStateException: current thread not owner
   
   
   
   --
   To unsubscribe, e-mail: 
   mailto:tomcat-user- [EMAIL PROTECTED]
   For 
   additional commands, 
   e-mail: mailto:[EMAIL PROTECTED]
   
   
  
  --
  To unsubscribe, e-mail: 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
  
 
 
 
 
 --
 To unsubscribe, e-mail: 
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 




Problem with Oracle/Global Naming Resource

2002-11-18 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  Problem with Oracle/Global Naming Resource   
document   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   18.11.2002 16:54:38  
   





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




Memory assigment

2002-11-14 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  Memory assigment 
document   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   14.11.2002 13:29:57  
   





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




help in Jakarta tomcat server

2002-11-12 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  help in Jakarta tomcat server
document   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   12.11.2002 14:33:41  
   





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Configuring multiple domains and web applications

2002-11-11 Thread Kristján Bjarni Guðmundsson
You have to add a new host and context into the server.xml for each new 
host
for example like this:

  Host name=www.a.com debug=0 appBase=myfolder 
unpackWARs=true
Context path= 
 docBase=mywebapp
 debug=0
 reloadable=false
/Context
  /Host




Andoni [EMAIL PROTECTED] 
11.11.2002 14:33
Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
Tomcat Users List [EMAIL PROTECTED]
cc

Subject
Re: Configuring multiple domains and web applications






My question is similar to the one below:

I am configuring Tomcat 3.2.1 / Apache 1.3 to VHost for multiple web-apps.

Do I have to include the WebApp name in each request?  Can I hide the 
WebApp
name from the user?

I have been told to use the root web-app but this is only of use once.  I
can also use mod_rewrite but this does not present the clean interface I'm
looking for.

Is it just not possible to hide the webApp name?

Thanks.

andoni.

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, November 11, 2002 2:03 PM
Subject: RE: Configuring multiple domains and web applications



 This guide was originally posted by Glenn Nielsen on Aug 8, 2002.  It 
may
 help you.  See attached.

 John


  -Original Message-
  From: Lee Grey [mailto:leegrey;mindspring.com]
  Sent: Friday, November 08, 2002 9:33 PM
  To: Tomcat Users List
  Subject: Configuring multiple domains and web applications
 
 
  I have three different web applications I want to run on
  Tomcat.  Each needs
  to run under its own domain, let's call them http://www.a.com,
  http://www.b.com, and http://www.c.com.  I have a couple of
  Linux boxes to
  configure in any way that makes sense.  At the moment, I only have
  http://www.a.com running, and it runs on Apache and Tomcat in
  the same box.
 








 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: WARNING: Exception getting SSL attributes

2002-11-04 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  RE: WARNING: Exception getting SSL attributes
document   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   04.11.2002 17:07:16  
   





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Is Tomcat multi-process, multi-thread in Linux?

2002-11-01 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  Is Tomcat multi-process, multi-thread in Linux?  
document   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   01.11.2002 16:37:21  
   





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Where is the SSL 'changeit' password set

2002-11-01 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  RE: Where is the SSL 'changeit' password set 
document   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   01.11.2002 17:00:38  
   





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Getting this error in catalina_log

2002-10-24 Thread Kristján Bjarni Guðmundsson
CoyoteAdapter An exception or error occurred in the container during the 
request processing
java.lang.NullPointerException
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:479)

Does anyone know why this keeps appearing in the log?
This is Tomcat v4.1.10-LE-jdk14


Tomcat and 401 custom page how?

2002-10-24 Thread Kristján Bjarni Guðmundsson
I use custom error pages for various error codes (404. etc),  all of them 
work except 401 error.

If I go to a protected page the browser just displays the 401 page without 
prompting me
to log in. What am I doing wrong?