Re: XML output, I need help.

2002-03-12 Thread Richard

IE has some interesting issues involving XML.. I have seen instances where you need to 
close out IE and re-open it to view your XML.. Clicking refresh while holding the 
shift key will also complete a refresh.. If that fails try taking your source saving 
it to file (locally) as source.xml or something and then try and open it.. if you 
still have issues start editing the local file until it displays properly.. Also try 
upgrading to IE 6.0.. in earlier versions of IE I would sometimes have problems 
displaying xml that while formed correctly had hidden characters which for one reason 
or another prevented IE from displaying the xml in the tree structure you are 
expecting... IE 6 seems to be a lot more forgiving in this respect.. hope that helps.. 
Richard Haag
Sr. Technical Specialist
Credit Discovery
1-877-789-4976 x8009
[EMAIL PROTECTED]
  - Original Message - 
  From: Xiao Juguang 
  To: Tomcat Users List 
  Sent: Tuesday, March 12, 2002 7:18 PM
  Subject: Re: XML output, I need help.


  Let me clarify that I generate a XML, not HTML,  format output by JSP.

  IE should know the input is XML format, especially I specify the
  contentType.

  What is the problem? Is the problem on Tomcat side or IE side?

  - Original Message -
  From: "Neo Gigs" <[EMAIL PROTECTED]>
  To: "Tomcat Users List" <[EMAIL PROTECTED]>
  Sent: Wednesday, March 13, 2002 10:50 AM
  Subject: Re: XML output, I need help.


  > You should only display a XMl file by not running the XMl file, you need
  > either a parser of some form of stylesheet like XSLT to embed the output
  >
  > - Original Message -
  > From: "Xiao Juguang" <[EMAIL PROTECTED]>
  > To: "Tomcat Users List" <[EMAIL PROTECTED]>
  > Sent: Wednesday, March 13, 2002 10:35 AM
  > Subject: XML output, I need help.
  >
  >
  > > Hi, guys,
  > >
  > > I tried to write a XML format output using JSP, while I remember to set
  > > contentType="text/xml" and write  in the head of
  > > output. Then browsing my JSP in IE 5. What I saw is just text while is
  > > outside of the tag, and the source is correct XML. How can I make IE
  > > defaultly render XML?
  > >
  > > By the way,  has been set for XML.
  > >
  > > Thanks in advance.
  > >
  > > Juguang.
  > >
  > >
  > >
  > >
  > > --
  > > To unsubscribe:   
  > > For additional commands: 
  > > Troubles with the list: 
  >
  >
  > _
  > Do You Yahoo!?
  > Get your free @yahoo.com address at http://mail.yahoo.com
  >
  >
  > --
  > To unsubscribe:   
  > For additional commands: 
  > Troubles with the list: 
  >


  --
  To unsubscribe:   
  For additional commands: 
  Troubles with the list: 





AW: Large pages not completely displayed with IE 5.x and Tomcat 4 .0.x

2002-03-12 Thread Ralph Einfeldt

If the first buffer is sent, then it is to late
for tomcat to forward to the error page.

If you want better control embed your jsp in a try/catch block

<%
  try {
%>
Page contents
<%
  } catch (Throwable ex) {
// do your own exception handling
%>

<%
  }
%>

The real art is, to create the page in a way that, no matter where 
the exception happens, the resulting html (or other outputformat) 
is valid.

The other options:
  - try to avoid as much exception as possible.
we use beans where the all called methods are garanted (where 
possible) not to throw exceptions.
E.G. we have a bean with a method that return a value from a 
database table:

String getString(int aRow, String aColumnName) {
  try {
if (oTable == null) {
  throw new IllegalArgumentException("oTable is null");
}
if ((aRow < 0) || (aRow >= oRowCount)) {
  throw new IllegalArgumentException("Invalid row index " +
aRow);
}
if (aColumnName == null) {
  throw new IllegalArgumentException("aColumnName is null");
}
if (!oTable.hasColumn(aColumnName)) {
  throw new IllegalArgumentException("Invalid column " +
aColumnName);
}
  return oResultSet.getString(aRow, aColumnName);
  } catch (Throwable ex) {
Log.error(this, ex);
return "";
  }
}

This way the JSP never get an exception from getString.
Off course this can be extended, as this way the only way to find
errors is to look in the log files. (Which isn't too bad anyway
as we use spiders to test the site, which don't recognise
error pages)

  - increase the buffer size to value where this is very unlikely 
to happen. But that might have other undesired sideeffects 
(performance, resource usage).
  - pre check any code before outputting anything.
Can be quit cumbersome and inperformant.

We do a mixture of the first 2 approaches. (try/catch, reducing
exception)

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 12. März 2002 18:20
> An: Tomcat Users List
> Betreff: Re: Large pages not completely displayed with IE 5.x 
> and Tomcat
> 4 .0.x



> So, what it looked like was that, if it got a run-time 
> exception but had already sent back a full buffer, it 
> was not sending the usual exception stack trace in the 
> resulting page.



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: How to run tomcat as service program in Win2k

2002-03-12 Thread oh
Thanks!
I downloaded jakarta-tomcat-4.0.3.exe instead of jakarta-tomcat-4.0.3.zip,
and installed my tomcat as a service of Windows2000.

Huimin Wang

- Original Message - 
From: "Xiao Juguang" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 13, 2002 4:25 PM
Subject: Re: How to run tomcat as service program in Win2k


> I think you are careless when installing. There is an option to make Tomcat
> as Windows NT Service.
> 
> 
> - Original Message -
> From: "oh" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, March 13, 2002 3:18 PM
> Subject: How to run tomcat as service program in Win2k
> 
> 
> > hello,
> >
> > I just donloaded Tomcat4.0.3, and I didn't find "jk_nt_service.exe" and
> the associated files,
> > I want to run my tomcat as a service program in my Windows 2000 Pro, How
> can I do this?
> >
> > Huimin Wang
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


logging tomcat log to syslog

2002-03-12 Thread Toni . Kielo

Hi.

Is it possible to log tomcat-logs (version 4.0.2) directly to syslog with
"out-of-the-box" installation, or
do i have to create my own syslogger class whitch uses eg. Log4J ?

Toni Kielo
Ineo Ltd


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




switching user from root to normal user

2002-03-12 Thread Toni . Kielo

Hi.

I'm trying to change user on linux after starting tomcat 4.0.2.

I need root-access because using ports 80 & 443, but don't want the program
itself to run with root-access,
so i was wondering is there a way to change user to a normal user after
running it?

Toni Kielo
Ineo Ltd


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat shutdown

2002-03-12 Thread Cyber Sagar


Try with this

goto  jakarta directory, then just saybin\shutdown

C:\jakarta-tomcat-3.3a>bin\shutdown

-Original Message-
From: Neo Gigs [mailto:[EMAIL PROTECTED]]
Sent: 13 March 2002 15:29
To: Tomcat Users List
Subject: Tomcat shutdown


Hi there,

I had a problem in shutdown tomcat when it says cannot locate ajp12.id in
TOMCAT_HOME\conf directory. Is there any possible way to shutdown?

Neo


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: How to run tomcat as service program in Win2k

2002-03-12 Thread Ralphn
Hello 

Try www.alexandriasc.com 
You can download a exe-file which does all the nessecary registry handling for you to 
make tomcat 4.x a service under windows2000. There is an example batch file, how to 
use the exe-file.

Just have a look at it. It works fine. (Till now ;-) )

Greetings
Ralph



> -Ursprungliche Nachricht-
> Von: oh [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 13. Marz 2002 08:18
> An: [EMAIL PROTECTED]
> Betreff: How to run tomcat as service program in Win2k
> 
> 
> hello,
> 
> I just donloaded Tomcat4.0.3, and I didn't find 
> "jk_nt_service.exe" and the associated files,
> I want to run my tomcat as a service program in my Windows 
> 2000 Pro, How can I do this?
> 
> Huimin Wang
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


AW: image manipulating via servlets on tomcat4

2002-03-12 Thread Ralph Einfeldt

The drawImage() method is a bit more complex at the second
look at the API spec. It works in the background, so if you 
want to make shure that the image has been drawn you need an 
image observer to tell you this.

If you want to find out if this is the problem you can
do following check:

if (! g.grawImage(img,0,0,null)) {
  // needsObserver;
}


I'm not very familiar with this, as we use JAI to
scale images on the serverside. 
Didn't do much with AWT.

> -Ursprüngliche Nachricht-
> Von: yilmaz [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 13. März 2002 02:44
> An: Tomcat Users List
> Betreff: Re: image manipulating via servlets on tomcat4

> Thanks to all who answered my question.
> My problem is , when i load an image via Toolkit class
> like : Image img=Toolkit.getDefaultToolkit().getImage(imageURL);
> Then create a BufferedImage object to write on it.
> BufferedImage bi=new BufferedImage(...
> Graphics g=bi.createGraphics();
> Then I call  g.drawImage(img,0,0,null);
> then i call g.drawString("mystring", int, int);


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: How to run tomcat as service program in Win2k

2002-03-12 Thread Xiao Juguang
I think you are careless when installing. There is an option to make Tomcat
as Windows NT Service.


- Original Message -
From: "oh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 13, 2002 3:18 PM
Subject: How to run tomcat as service program in Win2k


> hello,
>
> I just donloaded Tomcat4.0.3, and I didn't find "jk_nt_service.exe" and
the associated files,
> I want to run my tomcat as a service program in my Windows 2000 Pro, How
can I do this?
>
> Huimin Wang
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


How to run tomcat as service program in Win2k

2002-03-12 Thread oh
hello,

I just donloaded Tomcat4.0.3, and I didn't find "jk_nt_service.exe" and the associated 
files,
I want to run my tomcat as a service program in my Windows 2000 Pro, How can I do this?

Huimin Wang


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


Re: Tomcat shutdown

2002-03-12 Thread Antony Stace

> how do find out what is PID 4 tomcat?

$ps ax

will give you a list of processes and their ids.  if you want more info

$ps axwww

I quite often use

$kill -9 `ps ax | grep tomcat | grep j2 | awk '{print $1}'`

you will obviously have to alter this for your setup


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat shutdown

2002-03-12 Thread Neo Gigs

how do find out what is PID 4 tomcat?

- Original Message -
From: "Moi" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 13, 2002 2:32 PM
Subject: Re: Tomcat shutdown


> In Lunux kill Tomcat by PID.
>  >kill PID
>
> Neo Gigs wrote:
>
> > Hi there,
> >
> > I had a problem in shutdown tomcat when it says cannot locate ajp12.id
in TOMCAT_HOME\conf directory. Is there any possible way to shutdown?
> >
> > Neo
> >
> >
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat shutdown

2002-03-12 Thread Moi

In Lunux kill Tomcat by PID.
 >kill PID

Neo Gigs wrote:

> Hi there,
> 
> I had a problem in shutdown tomcat when it says cannot locate ajp12.id in 
>TOMCAT_HOME\conf directory. Is there any possible way to shutdown?
> 
> Neo
> 
> 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat shutdown

2002-03-12 Thread Neo Gigs

Hi there,

I had a problem in shutdown tomcat when it says cannot locate ajp12.id in 
TOMCAT_HOME\conf directory. Is there any possible way to shutdown?

Neo



RE: Problems using own XML parser

2002-03-12 Thread Rick K

Maybe you covered this before, but:
Why doesn't Xerces meet your needs?

I'm not much of an XML expert, I'm just curious.


--- John Wadkin <[EMAIL PROTECTED]> wrote:
> Charlie,
> 
> It seems from:
> 
>
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6374
> 
>
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6628
> 
> That webApps *can't* have their own parser. Stuck
> with Xerces 1, then! Taken
> a week to find that out :)
> 
> Thanks,
>  
> John
>  
> Quote for the week:
>  
> The stupid neither forgive nor forget; the naive
> forgive and forget; the
> wise forgive but do not forget.
>  
> Thomas Szasz, The Second Sin (1973)
> 
> 
> -Original Message-
> From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
> Sent: 12 March 2002 16:27
> To: 'Tomcat Users List'
> Subject: RE: Problems using own XML parser
> 
> 
> see the archives or bugzilla as this was addressed
> in 4.0.3 or 4.0.4b1(I
> don't remember which one)
> 
> Charlie
> 
> > -Original Message-
> > From: John Wadkin [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 12, 2002 10:59 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Problems using own XML parser
> > 
> > 
> > I'm not privy to the workings of the servlet.
> There's a 
> > properties file I
> > edit to indicate the name of the SAX driver:
> > 
> > #Xerces
> >
> sax.driver.name=org.apache.xerces.parsers.SAXParser
> > 
> > OR
> > 
> > #Aelfred
> > sax.driver.name=com.microstar.xml.SAXDriver  
> > 
> > Xerces works fine, but Aelfred doesn't. The driver
> names are 
> > correct and as
> > I said, TomCat does load aelfred.jar
> > 
> > Yes - I too would like to know if it's possible to
> use another parser!
> > 
> > Thanks,
> >  
> > John
> >  
> > Quote for the week:
> >  
> > The stupid neither forgive nor forget; the naive
> forgive and 
> > forget; the
> > wise forgive but do not forget.
> >  
> > Thomas Szasz, The Second Sin (1973)
> > 
> > 
> > -Original Message-
> > From: Evguenia Krylova
> [mailto:[EMAIL PROTECTED]]
> > Sent: 12 March 2002 15:52
> > To: Tomcat Users List
> > Subject: RE: Problems using own XML parser
> > 
> > 
> > Isn't it that udner Tomcat 4x you can specify
> class path for a 
> > context in server.xml. I saw something like this
> in the 
> > comments portion of server.xml. I have not tried
> this, but would 
> > like to know if you found a way to use another
> parser with Tomcat.
> > 
> > I assume you don't use JAXP API's but call
> alphred's classes 
> > directly. 
> > 
> > Ev
> > 
> > -Original Message-
> > From: John Wadkin [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 12, 2002 9:31 AM
> > To: Tomcat Users List (E-mail)
> > Subject: RE: Problems using own XML parser
> > 
> > 
> > All,
> > 
> > I'd appreciate a response on this otherwise I'll
> just have to 
> > assume that
> > TomCat allows only xerces.jar as a parser.
> > The "jsp errors" I mention relate to the default
> servlet for 
> > jsp. I tried
> > commenting out (in conf/web.xml) all references to
> this 
> > servlet - it just
> > created more errors!
> > The docs give the impression that it's a "simple"
> case of 
> > moving xerces.jar
> > and putting your own parser in /WEB-INF/lib, but
> this just 
> > doesn't work.
> > 
> > Thanks,
> >  
> > John
> >  
> > 
> > -Original Message-
> > From: John Wadkin 
> > Sent: 09 March 2002 03:04
> > To: Tomcat Users List (E-mail)
> > Subject: Problems using own XML parser
> > 
> > 
> > All,
> > 
> > Tomcat 4.0.1
> > Apache 1.3
> > mod_WebApp
> > Solaris 8
> > 
> > I'm trying to use the aelfred parser in a servlet.
> I've read 
> > the docs on
> > class loaders and XML but no luck so far.
> > 
> > I moved xerces.jar from common/lib to server/lib
> and 
> > re-started TomCat. A
> > couple of errors appeared in catalina.out relating
> to the 
> > default servlet
> > for jsp's. So I put xerces.jar back in common/lib.
> > I put the aelfred.jar in my web app's WEB-INF/lib
> directory 
> > and re-started
> > TomCat. I expected errors relating to the fact
> that two XML 
> > parsers existed
> > - there weren't any. The logs show that
> aelfred.jar has loaded but the
> > servlet throws a ClassNotFoundException.
> > 
> > Any ideas? The servlet does work with Aelfred at
> another site 
> > and it works
> > fine with the xerces parser in common/lib.
> > 
> > The reason I'm trying to use Aelfred is that I'm
> told it's faster than
> > Xerces. Is this a fair comment?
> > 
> > Thanks,
> > 
> > John
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




connection refused with jakarta-tomcat-4.0.3-LE-jdk14 on linux

2002-03-12 Thread Ray Tayek

hi, trying to get jakarta-tomcat-4.0.3-LE-jdk14 and j2sdk1.4.0 to work on 
linux.

jakarta-tomcat-4.0.1 works fine.

but when i try to start jakarta-tomcat-4.0.3-LE-jdk14 up, i get the following:

thanks

Script started on Tue Mar 12 18:33:29 2002
root@k6:/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/bin# tcup
+ cygwin=false
++ uname
+ PRG=/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/bin/catalina.sh
+ '[' -h 
/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/bin/catalina.sh ']'
++ dirname /home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/bin/catalina.sh
+ PRGDIR=/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/bin
++ cd /home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/bin/..
++ pwd
+ CATALINA_HOME=/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14
+ '[' -r /home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/bin/setenv.sh ']'
+ false
+ '[' -r 
/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/bin/setclasspath.sh ']'
+ BASEDIR=/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14
+ . /home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/bin/setclasspath.sh
++ '[' -z /home/src/jdk/j2sdk1.4.0 ']'
++ '[' '!' -r /home/src/jdk/j2sdk1.4.0/bin/java ']'
++ '[' -z /home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14 ']'
++ '[' '!' -r 
/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/bin/setclasspath.sh ']'
++ JAVA_OPTS=
++ 
JAVA_ENDORSED_DIRS=/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/bin:/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/common/lib
++ CLASSPATH=/home/src/jdk/j2sdk1.4.0/lib/tools.jar
++ JIKESPATH=
+++ uname -s
++ '[' Linux = Darwin ']'
++ _RUNJAVA=/home/src/jdk/j2sdk1.4.0/bin/java
++ _RUNJDB=/home/src/jdk/j2sdk1.4.0/bin/jdb
+ '[' -n '' ']'
+ 
CLASSPATH=/home/src/jdk/j2sdk1.4.0/lib/tools.jar:/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/bin/bootstrap.jar
+ '[' -z '' ']'
+ CATALINA_BASE=/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14
+ '[' -z '' ']'
+ CATALINA_TMPDIR=/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/temp
+ false
+ echo 'Using 
CATALINA_BASE:   /home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14'
Using CATALINA_BASE:   /home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14
+ echo 'Using 
CATALINA_HOME:   /home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14'
Using CATALINA_HOME:   /home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14
+ echo 'Using CATALINA_TMPDIR: 
/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/temp'
Using CATALINA_TMPDIR: 
/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/temp
+ echo 'Using JAVA_HOME:   /home/src/jdk/j2sdk1.4.0'
Using JAVA_HOME:   /home/src/jdk/j2sdk1.4.0
+ '[' stop = jpda ']'
+ '[' stop = debug ']'
+ '[' stop = embedded ']'
+ '[' stop = run ']'
+ '[' stop = start ']'
+ '[' stop = stop ']'
+ shift
+ exec /home/src/jdk/j2sdk1.4.0/bin/java 
-Djava.endorsed.dirs=/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/bin:/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/common/lib
 
-classpath 
/home/src/jdk/j2sdk1.4.0/lib/tools.jar:/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/bin/bootstrap.jar
 
-Dcatalina.base=/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14 
-Dcatalina.home=/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14 
-Djava.io.tmpdir=/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/temp 
org.apache.catalina.startup.Bootstrap stop
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
 at java.net.Socket.connect(Socket.java:425)
 at java.net.Socket.connect(Socket.java:375)
 at java.net.Socket.(Socket.java:290)
 at java.net.Socket.(Socket.java:118)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:831)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
root@k6:/home/src/tools/tomcat/jakarta-tomcat-4.0.3-LE-jdk14/bin#
Script done on Tue Mar 12 18:33:37 2002


---
ray tayek http://home.earthlink.net/~rtayek/
actively seeking telecommuting work
orange county java users group http://www.ocjug.org/
hate spam? http://samspade.org/ssw/


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

security-constraint and error-page

2002-03-12 Thread JBrawner

I've setup a security constraint, with basic authentication, in a memory
realm.  It works as expected until I add an error page for the 401 error
code (unauthorized). Then, when I request the page, I get the 401 error
page automatically and am never prompted to login.  I was expecting to get
the 401 error page only if I supplied an incorrect login.

What am I doing wrong?  (Win2000pro, Tomcat 4.0.3, jdk 1.4)   Here is a
portion of my web.xml:

  
401
/notauthorized.jsp
  

  

  BrawnerLau Website
  /adminentry.jsp


  brawnerlau

  

  
BASIC
BrawnerLau Website
  


Thanks,

Jason E. Brawner
Silenus Group
(248) 735-8077


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: XML output, I need help.

2002-03-12 Thread Neo Gigs

Did ur JSP codes correct? Try to post the codes for debugging purposes?

- Original Message -
From: "Xiao Juguang" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 13, 2002 11:18 AM
Subject: Re: XML output, I need help.


> Let me clarify that I generate a XML, not HTML,  format output by JSP.
>
> IE should know the input is XML format, especially I specify the
> contentType.
>
> What is the problem? Is the problem on Tomcat side or IE side?
>
> - Original Message -
> From: "Neo Gigs" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, March 13, 2002 10:50 AM
> Subject: Re: XML output, I need help.
>
>
> > You should only display a XMl file by not running the XMl file, you need
> > either a parser of some form of stylesheet like XSLT to embed the output
> >
> > - Original Message -
> > From: "Xiao Juguang" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, March 13, 2002 10:35 AM
> > Subject: XML output, I need help.
> >
> >
> > > Hi, guys,
> > >
> > > I tried to write a XML format output using JSP, while I remember to
set
> > > contentType="text/xml" and write  in the head of
> > > output. Then browsing my JSP in IE 5. What I saw is just text while is
> > > outside of the tag, and the source is correct XML. How can I make IE
> > > defaultly render XML?
> > >
> > > By the way,  has been set for XML.
> > >
> > > Thanks in advance.
> > >
> > > Juguang.
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   
> > > For additional commands: 
> > > Troubles with the list: 
> >
> >
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat and Apple Macintosh

2002-03-12 Thread Joel Rees

Addey O.S.E wrote:

> I have an iMac G3 350 with MacOS 9.2, MacOS X 10.1, and Linux Mandrake
> 8.0 PPC. I have Apache 1.3.23 installed under Mandrake 8.0 PPC, have
> downloaded Tomcat 4.0.3 and now I'm looking for an appropriate JDK to
> build it. I can't seem to find a compatible JDK, the JDK for Linux from
> Sun is binary and will not work, simply because the binary is built for
> Intel. Is there a JDK available for my scenario?

Have you tried blackdown? (You'll probably need to compile something, since
you need ppc binaries.)

Google-ing "linux jdk" should show you at least two others.

Many of the folks in the openBSD community use blackdown, from what I hear.

I personally am finding little motivation to load Linux on my iBook. Older
hardware, yes. It sure is easier to dual-boot Macintoshes than MSWintel
boxen.

Have fun.

Joel Rees
Alps Giken Kansai Systems Develoment
Suita, Osaka






--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: XML output, I need help.

2002-03-12 Thread Xiao Juguang

Let me clarify that I generate a XML, not HTML,  format output by JSP.

IE should know the input is XML format, especially I specify the
contentType.

What is the problem? Is the problem on Tomcat side or IE side?

- Original Message -
From: "Neo Gigs" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 13, 2002 10:50 AM
Subject: Re: XML output, I need help.


> You should only display a XMl file by not running the XMl file, you need
> either a parser of some form of stylesheet like XSLT to embed the output
>
> - Original Message -
> From: "Xiao Juguang" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, March 13, 2002 10:35 AM
> Subject: XML output, I need help.
>
>
> > Hi, guys,
> >
> > I tried to write a XML format output using JSP, while I remember to set
> > contentType="text/xml" and write  in the head of
> > output. Then browsing my JSP in IE 5. What I saw is just text while is
> > outside of the tag, and the source is correct XML. How can I make IE
> > defaultly render XML?
> >
> > By the way,  has been set for XML.
> >
> > Thanks in advance.
> >
> > Juguang.
> >
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Apache serve index.jsp not index.php

2002-03-12 Thread Joel Rees

Edward Haynes wrote:

> Yes, I have that setup, but I just get a directory listing of the apache
> folder, not the tomcat folder

Other things in httpd.conf that I'm sure you'ved done?
DocumentRoot
   
   Alias

> -Original Message-
> From: Peter Wieland [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 2:29 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Apache serve index.jsp not index.php
>
>
> Have you tried the Apache DirectoryIndex directive?
> Something like
>
> DirectoryIndex index.jsp
>
> in your httpd.conf should work.
>
> This can be applied at global level or for each  or 
>
> Refer to the Apache doc for details.
>
> Peter
>
> > Hi. How can I get apache to serve up index.jsp as the default page? I
have
> > read a post on http://www.jguru.com/faq/view.jsp?EID=228635 that talks
> > about
> > setting up the DirectoryIndex on Apache and setting up the
> >  in the web.xml of my application. I have done both
of
> > these, but I am still unable to have Apache use the index.jsp as the
> > default
> > page. Currently my app is setup as  > debug="0" reloadable="true" crossContext="true"/>
>
> > Using http://localhost:8080 defaults to my index.jsp but not
> > http://localhost, this still defaults to my index.php
>
> > Thanks, Ted
>
>
>
>




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: apache tomcat integration syntax error in httpd.conf

2002-03-12 Thread Paul Phillips

Here's what else I found since first writing the email quoted below.

FYI - Tomcat 4.0.3
mod_webapp binary for linux i386 (I did not compile it)

If I comment out the WebAppDeploy line, then apachectl configtest (and 
"start") report the same error of invalid virtual host name for the 
following WebAppInfo line.

If I comment out both the WebAppDeploy line and the WebAppInfo line, 
apachectl configtest reports "syntax OK".  However, that is useless, 
because I haven't associated any tomcat webapps to an apache URL.

I tried adding a trailing slash to /examples, but that didn't change 
anything.

If anybody has any ideas, I would be most grateful.

Regards,
Paul Phillips



--On Tuesday, March 12, 2002 5:37 PM -0600 Paul Phillips 
<[EMAIL PROTECTED]> wrote:

> Hello -
>
> I am trying to integrate Apache and Tomcat with the warp connector.
>
> I am following the instructions at:
> http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
> which are dated March 6, 2002, so they aren't too old!
>
> I have followed the instructions exactly as stated on my RedHat Linux 7.2
> platform.  I am not using the RedHat Apache, but rather I built it from
> scratch.
>
> Per the instructions, I added these lines to the very end of httpd.conf
>
> 
>  WebAppConnection conn  warp  localhost:8008
>  WebAppDeploy examplesconn  /examples
>  WebAppInfo /webapp-info
> 
>
> When I run apachectl configtest, I get this error message:
> Syntax error line xxx
> Invalid virtual host name
>
> The line number is the line that is:
>  WebAppDeploy examplesconn  /examples
>
> I cannot figure out why it thinks this is a virtual host name, or what I
> have wrong that is producing the syntax error.
>
> Can anyone help?
>
> Thanks
> Paul Phillips
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 



___
Paul Phillips
Director of Orchestral Activities, Meadows School of the Arts
Southern Methodist University

"You must sing every note you play, sing even through the rests!"
Arturo Toscanini

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: XML output, I need help.

2002-03-12 Thread Neo Gigs

You should only display a XMl file by not running the XMl file, you need
either a parser of some form of stylesheet like XSLT to embed the output

- Original Message -
From: "Xiao Juguang" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 13, 2002 10:35 AM
Subject: XML output, I need help.


> Hi, guys,
>
> I tried to write a XML format output using JSP, while I remember to set
> contentType="text/xml" and write  in the head of
> output. Then browsing my JSP in IE 5. What I saw is just text while is
> outside of the tag, and the source is correct XML. How can I make IE
> defaultly render XML?
>
> By the way,  has been set for XML.
>
> Thanks in advance.
>
> Juguang.
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




XML output, I need help.

2002-03-12 Thread Xiao Juguang

Hi, guys,

I tried to write a XML format output using JSP, while I remember to set
contentType="text/xml" and write  in the head of
output. Then browsing my JSP in IE 5. What I saw is just text while is
outside of the tag, and the source is correct XML. How can I make IE
defaultly render XML?

By the way,  has been set for XML.

Thanks in advance.

Juguang.




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Connection refuse

2002-03-12 Thread Jayson Yu


>public class TestTomcat extends Thread{
>
>  private static int request=0;
>
>  public void run() {
>   try{
>   String inputLine;
>   URL url = new 
> URL("http://localhost:8080/examples/servlet/TestTomcat?request="; + ++request);
>   URLConnection connection = url.openConnection();
>   connection.setDoOutput(true);
>   BufferedReader inp = new BufferedReader(
> new InputStreamReader(
> connection.getInputStream()));
>   while ((inputLine = inp.readLine()) != null)
>   System.out.println(inputLine);
>
>inp.close();
>   }
>   catch(Exception e){}

System.out.println(e);

>   }
>
>
> public static void main(String[] args) {
>
>   int m=0;
>  try{
>   for (int p=0;p<100;p++){
>for(m=0;m<5;m++){
> TestTomcat rg= new TestTomcat();
> rg.start();
>}
>Thread.sleep(1000);
>   }
>  }
>  catch(Exception e){}

System.out.println(e);

>  }
>
>}


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: image manipulating via servlets on tomcat4

2002-03-12 Thread yilmaz

That is what i am trying to do, writing on the older image, and then send
out the new version to the  browser. I know the caching problem, but just to
make sure everytime , i renewed my servlet, i cleaned up all the temperary
internet files, restarted tomcat, still having the same problem. Seems that
g.drawImage(imageobject,0,0,null)  and g.drawString("anystring",10,10)
(where g is a Graphics object) methods don't work at the same time.
- Original Message -
From: "Mark" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 11:59 PM
Subject: Re: image manipulating via servlets on tomcat4


> Is the problem that the 'old' vs. newly generated image displays (with the
> same .gif/.jpg name)?  If that's the case then it's likely a problem with
> browser image caching.  The only way I found to get around that was to
> generate unique image file names each time the new images were generated,
> guaranteeing the browser would load the desired image each time.
>
> Hope this helps, if I understand the problem that is...
>
> Mark
>
>
> >At 10:54 PM 3/12/02 +0800, you wrote:
> >>Hi  everybody,
> >>I am using tomcat4 on win 2000.
> >>I have searched all the archives and almost all websites related with
java,
> >>to no avail.
> >>My problem is manupulating  images via servlets on Tomcat.
> >>In fact , there are tons of examples on the internet and on the archives
> >>which shows
> >>how to load an image from a local file and send to the browser, or
> >>dynamically
> >>generate a gif , or jpg image  and send it  to the user. Up to here ,
> >>everything is allright.
> >>But , it seems that there is no way to load an image from a file (at
> >>server), write some text on it
> >>or edit that image on hand, finally send it to hte browser as a new
image.
> >>I tried almost every way, in vain :(
> >>I hope, someone overthere, an expert, be nice enough to answer my
question,
> >>though my
> >>question might sound a little bit offtopic.
> >>Looking forward to your help hopefully.
> >>Cheers :)
> >
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: image manipulating via servlets on tomcat4

2002-03-12 Thread yilmaz

Thanks to all who answered my question.
My problem is , when i load an image via Toolkit class
like : Image img=Toolkit.getDefaultToolkit().getImage(imageURL);
Then create a BufferedImage object to write on it.
BufferedImage bi=new BufferedImage(...
Graphics g=bi.createGraphics();
Then I call  g.drawImage(img,0,0,null);
then i call g.drawString("mystring", int, int) ; where int is an integer
It seems that i can't call g.drawImage and g.drawString methods at the same
time.
for testing i commented out the g.drawImage , and i was able to see the text
sent to the output as a jpg file.

Anyway , at last in Jason hunter's java servlet programming book on page
182, i found a similar example. I will first have a look at it.
If i still have problems i will post it to here.
Thanks everyone
Best Wishes  :)
- Original Message -
From: "Ralph Einfeldt" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 11:23 PM
Subject: AW: image manipulating via servlets on tomcat4



- Use AWT as for any gui.
  Have a look at:
  java.awt.Toolkit.getImage();
  java.awt.Image.getGraphics();
  java.awt.Graphics.drawString();

  If you did it already this way, what was your problem?

> -Ursprüngliche Nachricht-
> Von: yilmaz [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 12. März 2002 15:54
> An: Tomcat Users List
> Betreff: image manipulating via servlets on tomcat4

> I tried almost every way, in vain :(


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Problems Apache 1.3 <-> Tomcat 4.0 and Security Constraints

2002-03-12 Thread Michael Timpe

Hi,

I have the following problem:

I wrote a web application using a security constraint with auth-method set to 'FORM'. 
Everything works fine.

I now will use Tomcat as the JSP container under Apache. If I access the application 
through Apache, the FORM-based
auth-method of tomcat seems not to work. ("not found error").

Does Apache supports Form-based login in a manner like Tomcat does?

Any ideas?

Greetings

Michael



Michael Timpe
Melchiorstr. 24
50670 Köln
eMail: [EMAIL PROTECTED]



DISPLAY problem

2002-03-12 Thread Antonio Palumbo

hello

I want set :

DISPLAY = localhost:0.0 and xhost localhost in configuration of tomcat

Can anyone help me?

thanks





RE: Internet Explorer bug in handling immediately expiring; non-cacheable response. (Adobe Acrobat reader plugin will fail to display requested pdf in a enabled web application in To

2002-03-12 Thread Manish Pandya

You are welcome Craig,

During my investigation I was following tcp/ip packets in different
configuration environments. one of test env was apache (1.3.23). I
configured ".htaccess" constraint for equivalent environment. Apache did not
produce those three http directives in response.

Do I need to draw attention of Apache fellows for the security hole you are
mentioning?

- Manish


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 6:22 PM
To: Tomcat Users List
Subject: Re: Internet Explorer bug in handling immediately expiring;
non-cacheable response. (Adobe Acrobat reader plugin will fail to
display requested pdf in a  enabled web application
in To


See comment at the bottom.



On Tue, 12 Mar 2002, Manish Pandya wrote:

> Date: Tue, 12 Mar 2002 18:26:00 -0500
> From: Manish Pandya <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Internet Explorer bug in handling immediately expiring;
> non-cacheable response. (Adobe Acrobat reader plugin will fail to
display
> requested pdf in a  enabled web application in
> Tomcat).
>
> Hello,
>
> This posting is to share a solution for a bug in Internet Explorer (all
> relevant versions that are not extinct).
>
>
> Environment Info:
>
> The webapp had  enabled and mapped to one of the
> user-password-role in tomcat-users.xml.
>
>
> Problem Observation:
>
> A servlet dynamically generated a .pdf file (thanks to FOP-Apache fellas),
> which was successfully displayed on all mozilla based browsers. But,
> Internet Explorer failed to display the file in Adobe Acrobat Reader
plugin
> and complained about no data to display.
> If the  was removed, the same web application would
> successfully display the pdf contents in the Acrobat Reader Plugin.
>
>
>
> Investigation:
>
> investigations revealed that tomcat introduces these three http directives
> in the response when application is configured with 
> tag in web.xml:
> 1. Pragma: No-cache
> 2. Expires: Thu, 01 Jan 1970 00:00:00 GMT
> 3. Cache-Control: no-cache
>
>
> Internet Explorer plugin behavior:
>
> NOTE: Information in following paragraph is observed and is not verified
by
> source code examination. The first observation is mentioned just in case
> some one is struggling with it.
>
> 1. Internet Explorer supplies request URL the plugin after truncating it
to
> 255 characters.
> 2. Internet Explorer intercepts plugin's request to the URL and tries to
> supply data to plugin from it's cache.
>
>
> Explanation of scenario:
>
> Internet explorer receives response for a http request and analyses it. If
a
> plugin invocation is required, Internet Explorer invokes it and the
original
> URL string is passed to it after processing (read next observation). The
> plugin then request the URL which is intercepted by Internet Explorer.
> Internet Explorer finds the contents in it's local cache (which it had
just
> received as part of the same request before invoking the plugin). The
cache
> decides that the data is stale because they were marked as onetime usable
> (non cacheable) by tomcat. Hence, plugin gets no data.
>
>
> Solution:
>
> This is a dirty workaround. As IE can't be fixed by us, we had to modify
> tomcat not to set the three http directives mentioned above (under heading
> Investigation).
> modify source of org.apache.catalina.authenticator.AuthenticatorBase and
> comment out these three lines and recompile Tomcat-4.0.3:
> sresponse.setHeader("Pragma", "No-cache");
> sresponse.setHeader("Cache-Control", "no-cache");
> sresponse.setDateHeader("Expires", 1);
>
>
> That is it! New Tomcat(vulnerable to stale data issue in caching web
proxies
> or browser) saved the day!!
>

Manish,

Thanks for the detailed analysis of what's going on.  I just wanted to add
one point about why those three lines were added in the first place --
without them, proxies in between the browser and the server would cache
content behind a protected URL, which risks exposing that information to
someone else who accesses the same page.  Removing these three lines
removes your protection from this.

>
> - Manish
>

Craig McClanahan



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




apache tomcat integration syntax error in httpd.conf

2002-03-12 Thread Paul Phillips

Hello -

I am trying to integrate Apache and Tomcat with the warp connector.

I am following the instructions at:
http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
which are dated March 6, 2002, so they aren't too old!

I have followed the instructions exactly as stated on my RedHat Linux 7.2 
platform.  I am not using the RedHat Apache, but rather I built it from 
scratch.

Per the instructions, I added these lines to the very end of httpd.conf


 WebAppConnection conn  warp  localhost:8008
 WebAppDeploy examplesconn  /examples
 WebAppInfo /webapp-info


When I run apachectl configtest, I get this error message:
Syntax error line xxx
Invalid virtual host name

The line number is the line that is:
 WebAppDeploy examplesconn  /examples

I cannot figure out why it thinks this is a virtual host name, or what I 
have wrong that is producing the syntax error.

Can anyone help?

Thanks
Paul Phillips

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Internet Explorer bug in handling immediately expiring;non-cacheable response. (Adobe Acrobat reader plugin will fail to displayrequested pdf in a enabled web application in To

2002-03-12 Thread Craig R. McClanahan

See comment at the bottom.



On Tue, 12 Mar 2002, Manish Pandya wrote:

> Date: Tue, 12 Mar 2002 18:26:00 -0500
> From: Manish Pandya <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Internet Explorer bug in handling immediately expiring;
> non-cacheable response. (Adobe Acrobat reader plugin will fail to display
> requested pdf in a  enabled web application in
> Tomcat).
>
> Hello,
>
> This posting is to share a solution for a bug in Internet Explorer (all
> relevant versions that are not extinct).
>
>
> Environment Info:
>
> The webapp had  enabled and mapped to one of the
> user-password-role in tomcat-users.xml.
>
>
> Problem Observation:
>
> A servlet dynamically generated a .pdf file (thanks to FOP-Apache fellas),
> which was successfully displayed on all mozilla based browsers. But,
> Internet Explorer failed to display the file in Adobe Acrobat Reader plugin
> and complained about no data to display.
> If the  was removed, the same web application would
> successfully display the pdf contents in the Acrobat Reader Plugin.
>
>
>
> Investigation:
>
> investigations revealed that tomcat introduces these three http directives
> in the response when application is configured with 
> tag in web.xml:
> 1. Pragma: No-cache
> 2. Expires: Thu, 01 Jan 1970 00:00:00 GMT
> 3. Cache-Control: no-cache
>
>
> Internet Explorer plugin behavior:
>
> NOTE: Information in following paragraph is observed and is not verified by
> source code examination. The first observation is mentioned just in case
> some one is struggling with it.
>
> 1. Internet Explorer supplies request URL the plugin after truncating it to
> 255 characters.
> 2. Internet Explorer intercepts plugin's request to the URL and tries to
> supply data to plugin from it's cache.
>
>
> Explanation of scenario:
>
> Internet explorer receives response for a http request and analyses it. If a
> plugin invocation is required, Internet Explorer invokes it and the original
> URL string is passed to it after processing (read next observation). The
> plugin then request the URL which is intercepted by Internet Explorer.
> Internet Explorer finds the contents in it's local cache (which it had just
> received as part of the same request before invoking the plugin). The cache
> decides that the data is stale because they were marked as onetime usable
> (non cacheable) by tomcat. Hence, plugin gets no data.
>
>
> Solution:
>
> This is a dirty workaround. As IE can't be fixed by us, we had to modify
> tomcat not to set the three http directives mentioned above (under heading
> Investigation).
> modify source of org.apache.catalina.authenticator.AuthenticatorBase and
> comment out these three lines and recompile Tomcat-4.0.3:
> sresponse.setHeader("Pragma", "No-cache");
> sresponse.setHeader("Cache-Control", "no-cache");
> sresponse.setDateHeader("Expires", 1);
>
>
> That is it! New Tomcat(vulnerable to stale data issue in caching web proxies
> or browser) saved the day!!
>

Manish,

Thanks for the detailed analysis of what's going on.  I just wanted to add
one point about why those three lines were added in the first place --
without them, proxies in between the browser and the server would cache
content behind a protected URL, which risks exposing that information to
someone else who accesses the same page.  Removing these three lines
removes your protection from this.

>
> - Manish
>

Craig McClanahan



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Internet Explorer bug in handling immediately expiring; non-cacheable response. (Adobe Acrobat reader plugin will fail to display requested pdf in a enabled web application in Tomcat).

2002-03-12 Thread Manish Pandya

Hello,

This posting is to share a solution for a bug in Internet Explorer (all
relevant versions that are not extinct).


Environment Info:

The webapp had  enabled and mapped to one of the
user-password-role in tomcat-users.xml.


Problem Observation:

A servlet dynamically generated a .pdf file (thanks to FOP-Apache fellas),
which was successfully displayed on all mozilla based browsers. But,
Internet Explorer failed to display the file in Adobe Acrobat Reader plugin
and complained about no data to display.
If the  was removed, the same web application would
successfully display the pdf contents in the Acrobat Reader Plugin.



Investigation:

investigations revealed that tomcat introduces these three http directives
in the response when application is configured with 
tag in web.xml:
1. Pragma: No-cache
2. Expires: Thu, 01 Jan 1970 00:00:00 GMT
3. Cache-Control: no-cache


Internet Explorer plugin behavior:

NOTE: Information in following paragraph is observed and is not verified by
source code examination. The first observation is mentioned just in case
some one is struggling with it.

1. Internet Explorer supplies request URL the plugin after truncating it to
255 characters.
2. Internet Explorer intercepts plugin's request to the URL and tries to
supply data to plugin from it's cache.


Explanation of scenario:

Internet explorer receives response for a http request and analyses it. If a
plugin invocation is required, Internet Explorer invokes it and the original
URL string is passed to it after processing (read next observation). The
plugin then request the URL which is intercepted by Internet Explorer.
Internet Explorer finds the contents in it's local cache (which it had just
received as part of the same request before invoking the plugin). The cache
decides that the data is stale because they were marked as onetime usable
(non cacheable) by tomcat. Hence, plugin gets no data.


Solution:

This is a dirty workaround. As IE can't be fixed by us, we had to modify
tomcat not to set the three http directives mentioned above (under heading
Investigation).
modify source of org.apache.catalina.authenticator.AuthenticatorBase and
comment out these three lines and recompile Tomcat-4.0.3:
sresponse.setHeader("Pragma", "No-cache");
sresponse.setHeader("Cache-Control", "no-cache");
sresponse.setDateHeader("Expires", 1);


That is it! New Tomcat(vulnerable to stale data issue in caching web proxies
or browser) saved the day!!


- Manish


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Error 500, Examples work

2002-03-12 Thread jeff . guttadauro


I ran into this a while back.  Attribute "page" has no value!? ...quite a
bizarre error, isn't it?

I think that what I found out about this was that it happens for particularly
large jsp pages (not large in terms of lots of HTML output but in terms of
having lots of code in them) for some unknown reason.  I believe that the
solution was either to increase the heap size (using -Xms and -Xmx in the java
command parameters) and/or to specify that java was running in server mode (I
forget where that is done now - anyone?).

HTH,
-Jeff



   

"Heiko 

Lettmann"To: <[EMAIL PROTECTED]>  

   Subject: Error 500, Examples work 

   

03/13/99   

03:04 PM   

Please 

respond to 

"Tomcat Users  

List"  

   

   





These are the error messages I get when I try to open a *jsp file:

org.apache.jasper.compiler.ParseException: /zeit.jsp(3,15) Attribute page
has no value
at
org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:563)
at
org.apache.jasper.compiler.JspReader.parseTagAttributesBean(JspReader.java:6
16)
at org.apache.jasper.compiler.Parser$Bean.accept(Parser.java:654)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:213)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at

Re: RES: Free KAWA?

2002-03-12 Thread Shantul Nigam

Instead of these Use NetBeans (www.netbeans.org), this is the 
foundation for Forte or Eclipse (www.eclipse.org), this is the 
foundation of IBM's WebSphere Studio.

Shantul.


On Tuesday, March 12, 2002, at 03:47  PM, Jose Euclides da Silva 
Junior - DIGR.O wrote:

> But VA isnt free!
>
> -Mensagem original-
> De: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]]
> Enviada em: terça-feira, 12 de março de 2002 13:48
> Para: 'Leon Vermaak'; Tomcat Users List
> Assunto: RE: Free KAWA?
>
>
> IBM Visual Age for Java and Sun Forte.
>
> -Original Message-
> From: Leon Vermaak [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 9:02 AM
> To: Tomcat Users List
> Subject: Free KAWA?
>
>
> Is there a programming enviornment similar to KAWA, but is free that is 
> good
> to work with?
> That helps you adminsitrate your classpaths etc...
> Thanks
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>

==
= Knowledge is power =
= Absolute Knowledge is Absolute Power  =
==


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Deploytool and Tomcat

2002-03-12 Thread Craig R. McClanahan



On Tue, 12 Mar 2002, John De Lello wrote:

> Date: Tue, 12 Mar 2002 13:02:31 -0500
> From: John De Lello <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Deploytool and Tomcat
>
> Can someone explain how to configure Tomcat to be able to use the J2EE
> "DeployTool" to deploy? If I start "J2EE -verbose" and then run
> "DeployTool" I am able to deploy to the implementation server fine. But
> I want to deploy my app to Tomcat.

The J2EE DeployTool is specific to the J2EE RI server, because it uses
proprietary APIs for application deployment.  Therefore, you cannot use it
directly with Tomcat.  However, you might want to watch for a future
announcement of an update to the Java Web Services Developer Pack
 ...

If you're and Ant user, and haven't been following the most recent nightly
builds of Tomcat 4, you'll also find a nice set of goodies for application
developers -- a set of custom Ant tasks that interact with the Manager
webapp for installing, reloading, and removing webpps dynamically.  Now,
you can integrate these commands directly in to your build.xml files,
which leads to tremendous improvements in turnaround time while
developing.

>
> Thank you,
> John
>

Craig McClanahan



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: image manipulating via servlets on tomcat4

2002-03-12 Thread Bo Xu

- Original Message -
From: "yilmaz" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 9:54 AM
Subject: image manipulating via servlets on tomcat4


> Hi  everybody,
> I am using tomcat4 on win 2000.
> I have searched all the archives and almost all websites related with
java,
> to no avail.
> My problem is manupulating  images via servlets on Tomcat.
> In fact , there are tons of examples on the internet and on the archives
> which shows
> how to load an image from a local file and send to the browser, or
> dynamically
> generate a gif , or jpg image  and send it  to the user. Up to here ,
> everything is allright.
> But , it seems that there is no way to load an image from a file (at
> server), write some text on it
> or edit that image on hand, finally send it to hte browser as a new image.
> I tried almost every way, in vain :(
> I hope, someone overthere, an expert, be nice enough to answer my
question,
> though my
> question might sound a little bit offtopic.
> Looking forward to your help hopefully.
> Cheers :)
>[...]

You may try:
 - Java Advanced Imaging API
   http://java.sun.com/products/java-media/jai/index.html

 - Java Media Framework API
  http://java.sun.com/products/java-media/jmf/index.html

- other lib-classes of image(gif/jpeg/wbmp... encoder)

with them you can:
 - get the image-data from a file(or get one frame from
  a video-stream)
- process it(big/small, sharp/blur, distortion...)
- draw test on them
- export them into a file(or into a OutputStream directly)


Bo
Mar122002



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: pache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is notavailable.

2002-03-12 Thread rsequeira


Line 2 looks ok to me. If you could send in the virtual host section of the
httpd.conf,  the Host/Context part of your server.xml, and the appropriate
part of your web.xml then maybe someone could figure out the problem.

RS





Hostmaster of the day <[EMAIL PROTECTED]> on 03/12/2002 01:36:22 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:

Subject:  pache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is
  not available.

You are welcome !

Yes I have :

WebAppConnection conn  warp  localhost:8008
WebAppDeploy /var/www/host2/html/ conn /

Could line 2 be the error ?

--Mark

>
> OK let's try once again :-) Apologize for the previous dumb email.
> Anyway, maybe a stupid question :-) but have you configured your
virtual
> host in the httpd.conf. Something like this
>
> 
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /var/www/host2/html
> ServerName domain.com
> WebAppConnection conn warp localhost:8008
> WebAppDeploy _ conn /
> ErrorLog logs/domain.com-error_log
> CustomLog logs/domain.com-access_log common
> 
>
> And your server.xml (atleast for domain.com):
> 
>  ="0"/>
> 
>
>
> Hope this helps.
> RS
>
>
>
>
>
> Hostmaster of the day <[EMAIL PROTECTED]> on 03/12/2002
11:35:23 AM
>
> Please respond to "Tomcat Users List"
<[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:
>
> Subject:  Apache Tomcat/4.0.3 - HTTP Status 404 -
/servlet/SnoopServlet is
>   not available.
>
> Hello ...
>
> I'm writing again asking again for some help.
>
> In the meanwhile I changed from mod_jk to mod_webapps
> but I still receive the same error message. The logs in
> /var/tomcat4/logs/. are looking pretty good.
>
> http://localhost:8080 is working great.
> Tomcat 4.0.3 is working great.
> Apache 1.3.20 is working great.
>
> But http://IP-address/servlet/SnoopServlet
> or http://www.domain.com/servlet/SnoopServlet
> not at all ! Status 404 = description
> The requested resource (/servlet/SnoopServlet) is not available.
>
> It is there ... definetely - uurgh
>
> Please don't let me down. I'll loose my job if
> I'm unable to fix that stupid problem.
>
> Thanks,
> Mark Wollner
>
> <---
>
> Hi there !
>
> The installation of Tomcat 4.0.3 either as RPM or tar.gz
> is a very easy job. But only for the serverhost.
>
> During the past three days I tried to implement two
> virtual hosts into Tomcat-Apache without any success.
>
> Error message :
>
> Apache Tomcat/4.0.3 - HTTP Status 404 -
> /servlet/SnoopServlet is not available.
>
> I'm using mod_jk and AJP 13 on Port 8009.
>
> The server.xml file got the following entries :
>
> -->
>
>   
>debug="0"/>
>   
>   
>debug="0"/>
>   
>   
>debug="0"/>
>   
>   
>debug="0"/>
>   
>
>
> mod_jk.conf :
>
> 
>
> JkWorkersFile /etc/httpd/conf/workers.properties
> JkLogFile /var/log/httpd/mod_jk.log
> JkLogLevel error
>
> # Root context mounts for Tomcat
> #
> JkMount /*.jsp ajp13
> JkMount /servlet/* ajp13
> JkMount /examples/* ajp13
>
> workers.properties :
>
> workers.tomcat_home=/var/tomcat4
> workers.java_home=/usr/java/jdk1.3.1_02
>
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
>
> httpd.conf :
>
> LoadModule jk_module   modules/mod_jk.so
> AddModule mod_jk.c
>
> 
> Include /etc/httpd/conf/mod_jk.conf
> 
>
> # Setup Tomcat
> 
>   AllowOverride None
>   deny from all
> 
>
> I created in each virtual host directory
> WEB-INF
> WEB-INF/classes
> WEB-INF/lib
> and copied the web.xml to
> WEB-INF/web.xml
>
> The SnoopServlet.class is located here :
> /var/www/host2/html/WEB-INF/classes/SnoopServlet.class
>
> It's not running. I have no success :-(
>
> What's my fault ?
>
> I would say Tomcat cannot allocate the servlet instance for path
> /servlet/SnoopServlet
>
> Why ?
>
> Thank you,
> Mark Wollner
>
>
> --
> To unsubscribe:

> For additional commands:

> Troubles with the list:

>
>
>
>
>
>
>
>
>
> --
> To unsubscribe:

> For additional commands:

> Troubles with the list:

>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RES: Free KAWA?

2002-03-12 Thread Jose Euclides da Silva Junior - DIGR.O

But VA isnt free!

-Mensagem original-
De: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]]
Enviada em: terça-feira, 12 de março de 2002 13:48
Para: 'Leon Vermaak'; Tomcat Users List
Assunto: RE: Free KAWA?


IBM Visual Age for Java and Sun Forte.

-Original Message-
From: Leon Vermaak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 9:02 AM
To: Tomcat Users List
Subject: Free KAWA?


Is there a programming enviornment similar to KAWA, but is free that is good
to work with?
That helps you adminsitrate your classpaths etc...
Thanks



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Redeployment Problems under Tomcat 4.0.2

2002-03-12 Thread Lawlor, Frank

I've run into some problems with 4.0.2.

 - I do NOT have persistent sessions enabled in server.xml

I can initially deploy a web app by placing the .war file in
webapps dir.

However, if I try to redeploy I run into problems.  To re-deploy 
I ususally stop Tomcat, delete the current app directory and 
existing .war file, put the new .war file in webapps and restart
Tomcat.

Is it necessary to delete my current app directory?  I need to
GUARANTEE that any existing contents are totally removed.

Using the above procedure I run into these problems:

When I start Tomcat the log has the following:

2002-03-11 15:10:12 StandardContext[/Autoweb2]: Error initializing
resources: Document base ..\webapps\Autoweb2 does not exist or is not a
readable directory
2002-03-11 15:10:12 StandardContext[/Autoweb2]: Context startup failed due
to previous errors
2002-03-11 15:10:12 StandardContext[/Autoweb2]: Exception during cleanup
after start failed
LifecycleException:  Container StandardContext[/Autoweb2] has not been
started
at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3451)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3408)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


If I create an app directory (Autoweb2) I instead get the following:

2002-03-11 15:13:45 WebappLoader[/Autoweb2]: Reloading checks are enabled
for this Context
2002-03-11 15:13:45 StandardManager[/Autoweb2]: Seeding random number
generator class java.security.SecureRandom
2002-03-11 15:13:45 StandardManager[/Autoweb2]: Seeding of random number
generator has been completed
2002-03-11 15:13:45 StandardManager[/Autoweb2] ClassNotFoundException while
loading persisted sessions: java.lang.ClassNotFoundException:
com.athensgroup.autoweb2.forms.ListForm
java.lang.ClassNotFoundException: com.athensgroup.autoweb2.forms.ListForm
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1394)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1243)
at
org.apache.catalina.util.CustomObjectInputStream.resolveClass(CustomObjectIn
putStream.java:119)
at
java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:
1268)
at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.j
ava:810)
at
org.apache.catalina.session.StandardManager.load(StandardManager.java:411)
at
org.apache.catalina.session.StandardManager.start(StandardManager.java:617)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1104)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3345)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Note that persistent sessions is NOT enabled in server.xml, but the above
seems to indicate
that some type of

RE: Apache serve index.jsp not index.php

2002-03-12 Thread Edward Haynes

Yes, I have that setup, but I just get a directory listing of the apache
folder, not the tomcat folder

-Original Message-
From: Peter Wieland [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 2:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Apache serve index.jsp not index.php


Have you tried the Apache DirectoryIndex directive?
Something like

DirectoryIndex index.jsp

in your httpd.conf should work.

This can be applied at global level or for each  or 

Refer to the Apache doc for details.

Peter

> Hi. How can I get apache to serve up index.jsp as the default page? I have
> read a post on http://www.jguru.com/faq/view.jsp?EID=228635 that talks
> about
> setting up the DirectoryIndex on Apache and setting up the
>  in the web.xml of my application. I have done both of
> these, but I am still unable to have Apache use the index.jsp as the
> default
> page. Currently my app is setup as  debug="0" reloadable="true" crossContext="true"/>

> Using http://localhost:8080 defaults to my index.jsp but not
> http://localhost, this still defaults to my index.php

> Thanks, Ted



> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Multiple instancess of Tomcat on the same machine.

2002-03-12 Thread Venkatesh Sangam

hi,

I am running an experimental setup for Load balaning on the webservers.
I am using Tomcat as the webserver.
For this experimental setup,I will be running multiple instances of Tomcat on the same 
machine(listening on differnt ports). I have multiple copies of Tomcat stored on the 
same machine. The default port is 8080. I will make the other instances of tomcat run 
on differnt ports.

Is this the only change required or do I have to make any other changes. As I was 
going thorugh the Server.xml file, I see different other ports specified like Port 
8443, 8009(Ajp13Connector). I am using Non SSL Http.

Please advise.

Thanks,
Venkatesh.


Venkatesh Sangam,  
 
Research Assistant,

Dept. of Computer Science, 
  
Arizona State University
Home  Phone:(480)7369392
Work  Phone:(480)9651807
Lab   Phone:(480)9651207





pache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is not available.

2002-03-12 Thread Hostmaster of the day

You are welcome !

Yes I have :

WebAppConnection conn  warp  localhost:8008
WebAppDeploy /var/www/host2/html/ conn /

Could line 2 be the error ?

--Mark

> 
> OK let's try once again :-) Apologize for the previous dumb email.
> Anyway, maybe a stupid question :-) but have you configured your
virtual
> host in the httpd.conf. Something like this
> 
> 
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /var/www/host2/html
> ServerName domain.com
> WebAppConnection conn warp localhost:8008
> WebAppDeploy _ conn /
> ErrorLog logs/domain.com-error_log
> CustomLog logs/domain.com-access_log common
> 
> 
> And your server.xml (atleast for domain.com):
> 
>  ="0"/>
> 
> 
> 
> Hope this helps.
> RS
> 
> 
> 
> 
> 
> Hostmaster of the day <[EMAIL PROTECTED]> on 03/12/2002
11:35:23 AM
> 
> Please respond to "Tomcat Users List"
<[EMAIL PROTECTED]>
> 
> To:   [EMAIL PROTECTED]
> cc:
> 
> Subject:  Apache Tomcat/4.0.3 - HTTP Status 404 -
/servlet/SnoopServlet is
>   not available.
> 
> Hello ...
> 
> I'm writing again asking again for some help.
> 
> In the meanwhile I changed from mod_jk to mod_webapps
> but I still receive the same error message. The logs in
> /var/tomcat4/logs/. are looking pretty good.
> 
> http://localhost:8080 is working great.
> Tomcat 4.0.3 is working great.
> Apache 1.3.20 is working great.
> 
> But http://IP-address/servlet/SnoopServlet
> or http://www.domain.com/servlet/SnoopServlet
> not at all ! Status 404 = description
> The requested resource (/servlet/SnoopServlet) is not available.
> 
> It is there ... definetely - uurgh
> 
> Please don't let me down. I'll loose my job if
> I'm unable to fix that stupid problem.
> 
> Thanks,
> Mark Wollner
> 
> <---
> 
> Hi there !
> 
> The installation of Tomcat 4.0.3 either as RPM or tar.gz
> is a very easy job. But only for the serverhost.
> 
> During the past three days I tried to implement two
> virtual hosts into Tomcat-Apache without any success.
> 
> Error message :
> 
> Apache Tomcat/4.0.3 - HTTP Status 404 -
> /servlet/SnoopServlet is not available.
> 
> I'm using mod_jk and AJP 13 on Port 8009.
> 
> The server.xml file got the following entries :
> 
> -->
> 
>   
>debug="0"/>
>   
>   
>debug="0"/>
>   
>   
>debug="0"/>
>   
>   
>debug="0"/>
>   
> 
> 
> mod_jk.conf :
> 
> 
> 
> JkWorkersFile /etc/httpd/conf/workers.properties
> JkLogFile /var/log/httpd/mod_jk.log
> JkLogLevel error
> 
> # Root context mounts for Tomcat
> #
> JkMount /*.jsp ajp13
> JkMount /servlet/* ajp13
> JkMount /examples/* ajp13
> 
> workers.properties :
> 
> workers.tomcat_home=/var/tomcat4
> workers.java_home=/usr/java/jdk1.3.1_02
> 
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> 
> httpd.conf :
> 
> LoadModule jk_module   modules/mod_jk.so
> AddModule mod_jk.c
> 
> 
> Include /etc/httpd/conf/mod_jk.conf
> 
> 
> # Setup Tomcat
> 
>   AllowOverride None
>   deny from all
> 
> 
> I created in each virtual host directory
> WEB-INF
> WEB-INF/classes
> WEB-INF/lib
> and copied the web.xml to
> WEB-INF/web.xml
> 
> The SnoopServlet.class is located here :
> /var/www/host2/html/WEB-INF/classes/SnoopServlet.class
> 
> It's not running. I have no success :-(
> 
> What's my fault ?
> 
> I would say Tomcat cannot allocate the servlet instance for path
> /servlet/SnoopServlet
> 
> Why ?
> 
> Thank you,
> Mark Wollner
> 
> 
> --
> To unsubscribe:

> For additional commands:

> Troubles with the list:

> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe:

> For additional commands:

> Troubles with the list:

> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Apache serve index.jsp not index.php

2002-03-12 Thread Peter Wieland

Have you tried the Apache DirectoryIndex directive?
Something like

DirectoryIndex index.jsp

in your httpd.conf should work.

This can be applied at global level or for each  or 

Refer to the Apache doc for details.

Peter

> Hi. How can I get apache to serve up index.jsp as the default page? I have
> read a post on http://www.jguru.com/faq/view.jsp?EID=228635 that talks
> about
> setting up the DirectoryIndex on Apache and setting up the
>  in the web.xml of my application. I have done both of
> these, but I am still unable to have Apache use the index.jsp as the
> default
> page. Currently my app is setup as  debug="0" reloadable="true" crossContext="true"/>

> Using http://localhost:8080 defaults to my index.jsp but not
> http://localhost, this still defaults to my index.php

> Thanks, Ted



> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Apache serve index.jsp not index.php

2002-03-12 Thread Ken Martin

On Tuesday, March 12, 2002, at 01:12 PM, Edward Haynes wrote:

> Hi. How can I get apache to serve up index.jsp as the default page?

I'm a newbie, but I'm pretty sure that you at least need to edit 
your httpd.conf file to look something like this:


 DirectoryIndex index.html index.htm index.jsp index.php


Good luck!

Ken Martin


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Apache serve index.jsp not index.php

2002-03-12 Thread Edward Haynes

Hi. How can I get apache to serve up index.jsp as the default page? I have
read a post on http://www.jguru.com/faq/view.jsp?EID=228635 that talks about
setting up the DirectoryIndex on Apache and setting up the
 in the web.xml of my application. I have done both of
these, but I am still unable to have Apache use the index.jsp as the default
page. Currently my app is setup as 

Using http://localhost:8080 defaults to my index.jsp but not
http://localhost, this still defaults to my index.php

Thanks, Ted



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Connection refuse

2002-03-12 Thread Venkatesh Sangam

Hi,

I am generating 5 requests per second on the tomcat server using the following program.

How will I know if the connection is refused by tomcat. If the server is overloaded 
with requests it starts refusing them. I have to capture this using my program below. 
can anybody please tell me how do I do it.

I am also not sure if the Threads that are refused connection are getting any response 
back ..
Please help
Thanks,
Venkatesh.


public class TestTomcat extends Thread{
 
 private static int request=0;

 public void run() {
  try{
  String inputLine;
  URL url = new URL("http://localhost:8080/examples/servlet/TestTomcat?request="; + 
++request);
  URLConnection connection = url.openConnection();
  connection.setDoOutput(true);
  BufferedReader inp = new BufferedReader(
new InputStreamReader(
connection.getInputStream()));
  while ((inputLine = inp.readLine()) != null)
  System.out.println(inputLine);
 
   inp.close();
  }
  catch(Exception e){}
  }
 

public static void main(String[] args) {

  int m=0;
 try{
  for (int p=0;p<100;p++){
   for(m=0;m<5;m++){
TestTomcat rg= new TestTomcat();
rg.start();
   }
   Thread.sleep(1000);
  }
 }
 catch(Exception e){}

 }

}





Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is not available.

2002-03-12 Thread Administration Office

Unfortunately not :-(
I got the same result.

--Mark


> Could this ol' lack of trailing / problem
> 
> Have you tried http://www.domain.com/servlet/SnoopServlet/
> 
> -Original Message-
> From: Hostmaster of the day [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 10:35 AM
> To: [EMAIL PROTECTED]
> Subject: Apache Tomcat/4.0.3 - HTTP Status 404 -
/servlet/SnoopServlet
> is not available.
> 
> 
> Hello ... 
> 
> I'm writing again asking again for some help.
> 
> In the meanwhile I changed from mod_jk to mod_webapps
> but I still receive the same error message. The logs in
> /var/tomcat4/logs/. are looking pretty good.
> 
> http://localhost:8080 is working great.
> Tomcat 4.0.3 is working great.
> Apache 1.3.20 is working great.
> 
> But http://IP-address/servlet/SnoopServlet
> or http://www.domain.com/servlet/SnoopServlet
> not at all ! Status 404 = description 
> The requested resource (/servlet/SnoopServlet) is not available.
> 
> It is there ... definetely - uurgh
> 
> Please don't let me down. I'll loose my job if
> I'm unable to fix that stupid problem.
> 
> Thanks,
> Mark Wollner
> 
> <---
> 
> Hi there !
> 
> The installation of Tomcat 4.0.3 either as RPM or tar.gz
> is a very easy job. But only for the serverhost.
> 
> During the past three days I tried to implement two
> virtual hosts into Tomcat-Apache without any success.
> 
> Error message :
> 
> Apache Tomcat/4.0.3 - HTTP Status 404 - 
> /servlet/SnoopServlet is not available.
> 
> I'm using mod_jk and AJP 13 on Port 8009.
> 
> The server.xml file got the following entries :
> 
> -->
> 
>   
>debug="0"/>
>   
>   
>debug="0"/>
>   
>   
>debug="0"/>
>   
>
>debug="0"/>
>   
> 
> 
> mod_jk.conf :
> 
> 
> 
> JkWorkersFile /etc/httpd/conf/workers.properties
> JkLogFile /var/log/httpd/mod_jk.log
> JkLogLevel error
> 
> # Root context mounts for Tomcat
> #
> JkMount /*.jsp ajp13
> JkMount /servlet/* ajp13
> JkMount /examples/* ajp13
> 
> workers.properties :
> 
> workers.tomcat_home=/var/tomcat4
> workers.java_home=/usr/java/jdk1.3.1_02
> 
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> 
> httpd.conf :
> 
> LoadModule jk_module   modules/mod_jk.so
> AddModule mod_jk.c
> 
> 
> Include /etc/httpd/conf/mod_jk.conf
> 
> 
> # Setup Tomcat
> 
>   AllowOverride None
>   deny from all
> 
> 
> I created in each virtual host directory
> WEB-INF
> WEB-INF/classes
> WEB-INF/lib
> and copied the web.xml to
> WEB-INF/web.xml
> 
> The SnoopServlet.class is located here :
> /var/www/host2/html/WEB-INF/classes/SnoopServlet.class
> 
> It's not running. I have no success :-(
> 
> What's my fault ?
> 
> I would say Tomcat cannot allocate the servlet instance for path 
> /servlet/SnoopServlet
> 
> Why ?
> 
> Thank you,
> Mark Wollner
> 
> 
> --
> To unsubscribe:

> For additional commands:

> Troubles with the list:

> 
> --
> To unsubscribe:

> For additional commands:

> Troubles with the list:

> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is notavailable.

2002-03-12 Thread rsequeira


OK let's try once again :-) Apologize for the previous dumb email.
Anyway, maybe a stupid question :-) but have you configured your virtual
host in the httpd.conf. Something like this


ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/host2/html
ServerName domain.com
WebAppConnection conn warp localhost:8008
WebAppDeploy _ conn /
ErrorLog logs/domain.com-error_log
CustomLog logs/domain.com-access_log common


And your server.xml (atleast for domain.com):





Hope this helps.
RS





Hostmaster of the day <[EMAIL PROTECTED]> on 03/12/2002 11:35:23 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:

Subject:  Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is
  not available.

Hello ...

I'm writing again asking again for some help.

In the meanwhile I changed from mod_jk to mod_webapps
but I still receive the same error message. The logs in
/var/tomcat4/logs/. are looking pretty good.

http://localhost:8080 is working great.
Tomcat 4.0.3 is working great.
Apache 1.3.20 is working great.

But http://IP-address/servlet/SnoopServlet
or http://www.domain.com/servlet/SnoopServlet
not at all ! Status 404 = description
The requested resource (/servlet/SnoopServlet) is not available.

It is there ... definetely - uurgh

Please don't let me down. I'll loose my job if
I'm unable to fix that stupid problem.

Thanks,
Mark Wollner

<---

Hi there !

The installation of Tomcat 4.0.3 either as RPM or tar.gz
is a very easy job. But only for the serverhost.

During the past three days I tried to implement two
virtual hosts into Tomcat-Apache without any success.

Error message :

Apache Tomcat/4.0.3 - HTTP Status 404 -
/servlet/SnoopServlet is not available.

I'm using mod_jk and AJP 13 on Port 8009.

The server.xml file got the following entries :

-->

  
  
  
  
  
  
  
  
  
  
  
  


mod_jk.conf :



JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error

# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /examples/* ajp13

workers.properties :

workers.tomcat_home=/var/tomcat4
workers.java_home=/usr/java/jdk1.3.1_02

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

httpd.conf :

LoadModule jk_module   modules/mod_jk.so
AddModule mod_jk.c


Include /etc/httpd/conf/mod_jk.conf


# Setup Tomcat

  AllowOverride None
  deny from all


I created in each virtual host directory
WEB-INF
WEB-INF/classes
WEB-INF/lib
and copied the web.xml to
WEB-INF/web.xml

The SnoopServlet.class is located here :
/var/www/host2/html/WEB-INF/classes/SnoopServlet.class

It's not running. I have no success :-(

What's my fault ?

I would say Tomcat cannot allocate the servlet instance for path
/servlet/SnoopServlet

Why ?

Thank you,
Mark Wollner


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: SSL Problem

2002-03-12 Thread Alf Scherer

Finally I found the root of the problem: i forgot to specify the
"-keyalg RSA" option.

Thanks anyway!

p.s.: this was a typical RTFM issue


-Original Message-
From: Alf Scherer [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 12, 2002 5:38 PM
To: 'Tomcat Users List'
Subject: RE: SSL Problem


Well, 

Yes that's what I already did, I've also added the keystoreFile
attribute because I have put the keystore file under common/ssl. The
strange thing about it is: it works when using a certifcate that was
created using the keytool -selfcert option.




-Original Message-
From: Chris Campbell [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 12, 2002 11:09 AM
To: 'Tomcat Users List'
Subject: RE: SSL Problem



hi.

did you change the configuration in server.xml?

You need to uncomment the section like this just checking.




ChrisC

> -Original Message-
> From: Alf Scherer [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 6:13 PM
> To: [EMAIL PROTECTED]
> Subject: SSL Problem
> 
> 
> Hi,
> 
> I've installed Tomcat 4.0.3 on my system running
> redhat-7.2, I've also created a CA using openssl to test Tomcat-ssl. 
> I've generated a key and certreq as well using the using java keytool 
> with the default "changeit" pwd. Well, after signing the certreq with 
> openssl and importing it to the keystore, tomcat won't allow me to 
> connect to 443.
> 
> I don't know what happens as there is no information about What's 
> going on. I have also turned on debugging on the SSL-connector but 
> there is no debug-info whatsoever.
> 
> Please HELP!!!
> 
> 
> 
> 
> -
>  Alf Scherer|
> |
>  CarrotMEDIA GmbH   |
>  Saegewerkstr. 3| Q: What is a programmer?
>  83395 Freilassing  | A: A bio-chemical machine, turning 
>  Germany, EU|coffee into lines of code
> -
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Global JNDI Resources

2002-03-12 Thread Nikola Milutinovic

Craig R. McClanahan wrote:

> 
> Global JNDI resources are a feature of the current nightly builds of
> Tomcat 4, which will eventually be delivered in 4.1.  They are not a
> feature of the 4.0.x series.

I hope it will be well documented.

Nix.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: problem with catalina for 'non-web' application

2002-03-12 Thread Jerome Bouat

Someone send me a reply
but my mailer crashed.

It would be wonderfull
if the mysterious sender
send me his(her) reply again.

Thanks.

Jerome Bouat wrote:
> 
> I want to use the Jakarta catalina library
> without the configuration files
> (server.xml, WEB-INF/web.xml, ...).
> The aim is to use (and hide)
> a lighweight SOAP (on HTTP) connector
> started from a java NON-WEB application.
> 
> SOAP message handling is made with a servlet
> that extends the javax.xml.messaging.JAXMServlet class.
> My ServletFilter class
> which implements the javax.servlet.Filter interface
> does not alter the ServletRequest
> or ServletResponse parameters (empty method bodies).
> 
> A python client send a SOAP message to my HTTP connector
> but my servlet doesn't get any message.
> 
> I have read the documentation,
> but it is done for web developpers only.
> 
> What is wrong ?
> 
> Thanks for your help.
> 
> Jerome
> 
> --
> configuration code
> --
> / variables previous settings
> * servlet : String, the full name of my servlet class
> */
> 
> System.setProperty("catalina.home","/tmp");
> System.setProperty("catalina.base","/tmp");
> 
> this.server = new Embedded();
> this.server.addLifecycleListener(this);
> 
> Engine engine = this.server.createEngine();
> engine.setDefaultHost("vtm");
> 
> Host host = this.server.createHost("vtm","");
> 
> Context context = this.server.createContext("","/tmp");
> FilterDef fD = new FilterDef();
> fD.setFilterName("*");
> fD.setFilterClass("com.xerox.VTM.clf.ServletFilter");
> context.addFilterDef(fD);
> FilterMap map = new FilterMap();
> map.setFilterName("*");
> map.setServletName(servlet);
> context.addFilterMap(map);
> context.setReloadable(false);
> context.setCookies(false);
> context.getServletContext().setAttribute("GUIManager",this);
> 
> Wrapper w = context.createWrapper();
> w.setServletClass(servlet);
> w.setName("SOAPHandler");
> w.setLoadOnStartup(-1);
> w.setParent(context);
> context.addChild(w);
> 
> host.addChild(context);
> engine.addChild(host);
> this.server.addEngine(engine);
> try{
> Connector connector;
> connector =
> this.server.createConnector(InetAddress.getLocalHost(),port,false);
> connector.setScheme("http");
> this.server.addConnector(connector);
> try{
> this.server.start();
> }
> catch(LifecycleException e){System.err.println(e);}
> }
> catch(UnknownHostException e){e.printStackTrace();}
> 
> -
> client trace
> 
> 404 '/'
> 
> 
> server trace
> 
> Apache Tomcat/4.0.3
> WebappLoader[]: Deploying class repositories to work directory
> /tmp/work/vtm/_
> StandardManager[]: Seeding random number generator class
> java.security.SecureRandom
> StandardManager[]: Seeding of random number generator has been completed
> ContextConfig[]: Missing default web.xml, using application web.xml only
> ContextConfig[]: Missing application web.xml, using defaults only
> ContextConfig[]: Added certificates -> request attribute Valve
> HttpConnector Opening server socket on host IP address 13.202.220.88
> HttpConnector[19769] Starting background thread
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Deploytool and Tomcat

2002-03-12 Thread John De Lello

Can someone explain how to configure Tomcat to be able to use the J2EE
"DeployTool" to deploy? If I start "J2EE -verbose" and then run
"DeployTool" I am able to deploy to the implementation server fine. But
I want to deploy my app to Tomcat.

Thank you,
John


John De Lello
DelWare Software Solutions, LLC
Programming solutions for today's complex problems
http://www.DelWare.com




Re: Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is notavailable.

2002-03-12 Thread rsequeira


Whoops! sorry...didn't read the last few lines of your email.

The SnoopServlet.class is located here :
/var/www/host2/html/WEB-INF/classes/SnoopServlet.class

My bad!

RS






[EMAIL PROTECTED] on 03/12/2002 11:43:08 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:  Re: Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet
  is not available.


Where is the SnoopServlet class located? Is it under "/var/www/host2/html
/WEB_INF/classes" folder?

RS





Hostmaster of the day <[EMAIL PROTECTED]> on 03/12/2002 11:35:23 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:

Subject:  Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is
  not available.

Hello ...

I'm writing again asking again for some help.

In the meanwhile I changed from mod_jk to mod_webapps
but I still receive the same error message. The logs in
/var/tomcat4/logs/. are looking pretty good.

http://localhost:8080 is working great.
Tomcat 4.0.3 is working great.
Apache 1.3.20 is working great.

But http://IP-address/servlet/SnoopServlet
or http://www.domain.com/servlet/SnoopServlet
not at all ! Status 404 = description
The requested resource (/servlet/SnoopServlet) is not available.

It is there ... definetely - uurgh

Please don't let me down. I'll loose my job if
I'm unable to fix that stupid problem.

Thanks,
Mark Wollner

<---

Hi there !

The installation of Tomcat 4.0.3 either as RPM or tar.gz
is a very easy job. But only for the serverhost.

During the past three days I tried to implement two
virtual hosts into Tomcat-Apache without any success.

Error message :

Apache Tomcat/4.0.3 - HTTP Status 404 -
/servlet/SnoopServlet is not available.

I'm using mod_jk and AJP 13 on Port 8009.

The server.xml file got the following entries :

-->

  
  
  
  
  
  
  
  
  
  
  
  


mod_jk.conf :



JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error

# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /examples/* ajp13

workers.properties :

workers.tomcat_home=/var/tomcat4
workers.java_home=/usr/java/jdk1.3.1_02

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

httpd.conf :

LoadModule jk_module   modules/mod_jk.so
AddModule mod_jk.c


Include /etc/httpd/conf/mod_jk.conf


# Setup Tomcat

  AllowOverride None
  deny from all


I created in each virtual host directory
WEB-INF
WEB-INF/classes
WEB-INF/lib
and copied the web.xml to
WEB-INF/web.xml

The SnoopServlet.class is located here :
/var/www/host2/html/WEB-INF/classes/SnoopServlet.class

It's not running. I have no success :-(

What's my fault ?

I would say Tomcat cannot allocate the servlet instance for path
/servlet/SnoopServlet

Why ?

Thank you,
Mark Wollner


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Problems using own XML parser

2002-03-12 Thread John Wadkin

Charlie,

It seems from:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6374

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6628

That webApps *can't* have their own parser. Stuck with Xerces 1, then! Taken
a week to find that out :)

Thanks,
 
John
 
Quote for the week:
 
The stupid neither forgive nor forget; the naive forgive and forget; the
wise forgive but do not forget.
 
Thomas Szasz, The Second Sin (1973)


-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: 12 March 2002 16:27
To: 'Tomcat Users List'
Subject: RE: Problems using own XML parser


see the archives or bugzilla as this was addressed in 4.0.3 or 4.0.4b1(I
don't remember which one)

Charlie

> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 10:59 AM
> To: 'Tomcat Users List'
> Subject: RE: Problems using own XML parser
> 
> 
> I'm not privy to the workings of the servlet. There's a 
> properties file I
> edit to indicate the name of the SAX driver:
> 
> #Xerces
> sax.driver.name=org.apache.xerces.parsers.SAXParser
> 
> OR
> 
> #Aelfred
> sax.driver.name=com.microstar.xml.SAXDriver  
> 
> Xerces works fine, but Aelfred doesn't. The driver names are 
> correct and as
> I said, TomCat does load aelfred.jar
> 
> Yes - I too would like to know if it's possible to use another parser!
> 
> Thanks,
>  
> John
>  
> Quote for the week:
>  
> The stupid neither forgive nor forget; the naive forgive and 
> forget; the
> wise forgive but do not forget.
>  
> Thomas Szasz, The Second Sin (1973)
> 
> 
> -Original Message-
> From: Evguenia Krylova [mailto:[EMAIL PROTECTED]]
> Sent: 12 March 2002 15:52
> To: Tomcat Users List
> Subject: RE: Problems using own XML parser
> 
> 
> Isn't it that udner Tomcat 4x you can specify class path for a 
> context in server.xml. I saw something like this in the 
> comments portion of server.xml. I have not tried this, but would 
> like to know if you found a way to use another parser with Tomcat.
> 
> I assume you don't use JAXP API's but call alphred's classes 
> directly. 
> 
> Ev
> 
> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 9:31 AM
> To: Tomcat Users List (E-mail)
> Subject: RE: Problems using own XML parser
> 
> 
> All,
> 
> I'd appreciate a response on this otherwise I'll just have to 
> assume that
> TomCat allows only xerces.jar as a parser.
> The "jsp errors" I mention relate to the default servlet for 
> jsp. I tried
> commenting out (in conf/web.xml) all references to this 
> servlet - it just
> created more errors!
> The docs give the impression that it's a "simple" case of 
> moving xerces.jar
> and putting your own parser in /WEB-INF/lib, but this just 
> doesn't work.
> 
> Thanks,
>  
> John
>  
> 
> -Original Message-
> From: John Wadkin 
> Sent: 09 March 2002 03:04
> To: Tomcat Users List (E-mail)
> Subject: Problems using own XML parser
> 
> 
> All,
> 
> Tomcat 4.0.1
> Apache 1.3
> mod_WebApp
> Solaris 8
> 
> I'm trying to use the aelfred parser in a servlet. I've read 
> the docs on
> class loaders and XML but no luck so far.
> 
> I moved xerces.jar from common/lib to server/lib and 
> re-started TomCat. A
> couple of errors appeared in catalina.out relating to the 
> default servlet
> for jsp's. So I put xerces.jar back in common/lib.
> I put the aelfred.jar in my web app's WEB-INF/lib directory 
> and re-started
> TomCat. I expected errors relating to the fact that two XML 
> parsers existed
> - there weren't any. The logs show that aelfred.jar has loaded but the
> servlet throws a ClassNotFoundException.
> 
> Any ideas? The servlet does work with Aelfred at another site 
> and it works
> fine with the xerces parser in common/lib.
> 
> The reason I'm trying to use Aelfred is that I'm told it's faster than
> Xerces. Is this a fair comment?
> 
> Thanks,
> 
> John

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is not available.

2002-03-12 Thread PELOQUIN,JEFFREY (Non-HP-Boise,ex1)

Could this ol' lack of trailing / problem

Have you tried http://www.domain.com/servlet/SnoopServlet/

-Original Message-
From: Hostmaster of the day [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 10:35 AM
To: [EMAIL PROTECTED]
Subject: Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet
is not available.


Hello ... 

I'm writing again asking again for some help.

In the meanwhile I changed from mod_jk to mod_webapps
but I still receive the same error message. The logs in
/var/tomcat4/logs/. are looking pretty good.

http://localhost:8080 is working great.
Tomcat 4.0.3 is working great.
Apache 1.3.20 is working great.

But http://IP-address/servlet/SnoopServlet
or http://www.domain.com/servlet/SnoopServlet
not at all ! Status 404 = description 
The requested resource (/servlet/SnoopServlet) is not available.

It is there ... definetely - uurgh

Please don't let me down. I'll loose my job if
I'm unable to fix that stupid problem.

Thanks,
Mark Wollner

<---

Hi there !

The installation of Tomcat 4.0.3 either as RPM or tar.gz
is a very easy job. But only for the serverhost.

During the past three days I tried to implement two
virtual hosts into Tomcat-Apache without any success.

Error message :

Apache Tomcat/4.0.3 - HTTP Status 404 - 
/servlet/SnoopServlet is not available.

I'm using mod_jk and AJP 13 on Port 8009.

The server.xml file got the following entries :

-->

  
  
  
  
  
  
  
  
  
   
  
  


mod_jk.conf :



JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error

# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /examples/* ajp13

workers.properties :

workers.tomcat_home=/var/tomcat4
workers.java_home=/usr/java/jdk1.3.1_02

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

httpd.conf :

LoadModule jk_module   modules/mod_jk.so
AddModule mod_jk.c


Include /etc/httpd/conf/mod_jk.conf


# Setup Tomcat

  AllowOverride None
  deny from all


I created in each virtual host directory
WEB-INF
WEB-INF/classes
WEB-INF/lib
and copied the web.xml to
WEB-INF/web.xml

The SnoopServlet.class is located here :
/var/www/host2/html/WEB-INF/classes/SnoopServlet.class

It's not running. I have no success :-(

What's my fault ?

I would say Tomcat cannot allocate the servlet instance for path 
/servlet/SnoopServlet

Why ?

Thank you,
Mark Wollner


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is notavailable.

2002-03-12 Thread rsequeira


Where is the SnoopServlet class located? Is it under "/var/www/host2/html
/WEB_INF/classes" folder?

RS





Hostmaster of the day <[EMAIL PROTECTED]> on 03/12/2002 11:35:23 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:

Subject:  Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is
  not available.

Hello ...

I'm writing again asking again for some help.

In the meanwhile I changed from mod_jk to mod_webapps
but I still receive the same error message. The logs in
/var/tomcat4/logs/. are looking pretty good.

http://localhost:8080 is working great.
Tomcat 4.0.3 is working great.
Apache 1.3.20 is working great.

But http://IP-address/servlet/SnoopServlet
or http://www.domain.com/servlet/SnoopServlet
not at all ! Status 404 = description
The requested resource (/servlet/SnoopServlet) is not available.

It is there ... definetely - uurgh

Please don't let me down. I'll loose my job if
I'm unable to fix that stupid problem.

Thanks,
Mark Wollner

<---

Hi there !

The installation of Tomcat 4.0.3 either as RPM or tar.gz
is a very easy job. But only for the serverhost.

During the past three days I tried to implement two
virtual hosts into Tomcat-Apache without any success.

Error message :

Apache Tomcat/4.0.3 - HTTP Status 404 -
/servlet/SnoopServlet is not available.

I'm using mod_jk and AJP 13 on Port 8009.

The server.xml file got the following entries :

-->

  
  
  
  
  
  
  
  
  
  
  
  


mod_jk.conf :



JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error

# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /examples/* ajp13

workers.properties :

workers.tomcat_home=/var/tomcat4
workers.java_home=/usr/java/jdk1.3.1_02

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

httpd.conf :

LoadModule jk_module   modules/mod_jk.so
AddModule mod_jk.c


Include /etc/httpd/conf/mod_jk.conf


# Setup Tomcat

  AllowOverride None
  deny from all


I created in each virtual host directory
WEB-INF
WEB-INF/classes
WEB-INF/lib
and copied the web.xml to
WEB-INF/web.xml

The SnoopServlet.class is located here :
/var/www/host2/html/WEB-INF/classes/SnoopServlet.class

It's not running. I have no success :-(

What's my fault ?

I would say Tomcat cannot allocate the servlet instance for path
/servlet/SnoopServlet

Why ?

Thank you,
Mark Wollner


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Apache Tomcat/4.0.3 - HTTP Status 404 - /servlet/SnoopServlet is not available.

2002-03-12 Thread Hostmaster of the day

Hello ... 

I'm writing again asking again for some help.

In the meanwhile I changed from mod_jk to mod_webapps
but I still receive the same error message. The logs in
/var/tomcat4/logs/. are looking pretty good.

http://localhost:8080 is working great.
Tomcat 4.0.3 is working great.
Apache 1.3.20 is working great.

But http://IP-address/servlet/SnoopServlet
or http://www.domain.com/servlet/SnoopServlet
not at all ! Status 404 = description 
The requested resource (/servlet/SnoopServlet) is not available.

It is there ... definetely - uurgh

Please don't let me down. I'll loose my job if
I'm unable to fix that stupid problem.

Thanks,
Mark Wollner

<---

Hi there !

The installation of Tomcat 4.0.3 either as RPM or tar.gz
is a very easy job. But only for the serverhost.

During the past three days I tried to implement two
virtual hosts into Tomcat-Apache without any success.

Error message :

Apache Tomcat/4.0.3 - HTTP Status 404 - 
/servlet/SnoopServlet is not available.

I'm using mod_jk and AJP 13 on Port 8009.

The server.xml file got the following entries :

-->

  
  
  
  
  
  
  
  
  
   
  
  


mod_jk.conf :



JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error

# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /examples/* ajp13

workers.properties :

workers.tomcat_home=/var/tomcat4
workers.java_home=/usr/java/jdk1.3.1_02

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

httpd.conf :

LoadModule jk_module   modules/mod_jk.so
AddModule mod_jk.c


Include /etc/httpd/conf/mod_jk.conf


# Setup Tomcat

  AllowOverride None
  deny from all


I created in each virtual host directory
WEB-INF
WEB-INF/classes
WEB-INF/lib
and copied the web.xml to
WEB-INF/web.xml

The SnoopServlet.class is located here :
/var/www/host2/html/WEB-INF/classes/SnoopServlet.class

It's not running. I have no success :-(

What's my fault ?

I would say Tomcat cannot allocate the servlet instance for path 
/servlet/SnoopServlet

Why ?

Thank you,
Mark Wollner


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Large pages not completely displayed with IE 5.x and Tomcat 4 .0.x

2002-03-12 Thread jeff . guttadauro


I ran into what I think is this problem before too, and here's what I ended up
finding...

I noticed the same thing as you, that the HTML was incomplete.  My HTML was
stopped right in the middle of a big list of SELECT OPTION's.  I thought there
was something wrong with the particular option that it died on, but then I
added some more options to the database before that option.  The HTML then
stopped on a different option.  I noticed that the HTML source for the page
with the problem was always 16k.  I checked my JSP page buffer size, thinking
that it was 16k and there was something causing it to not flush subsequent
buffers, but I found that my buffer was set to the default of 8k, so I was
getting 2 buffers' worth of output.  I checked the logs and found that I had
gotten a run-time exception in the execution of my JSP page towards the end of
it.  So, what it looked like was that, if it got a run-time exception but had
already sent back a full buffer, it was not sending the usual exception stack
trace in the resulting page.  I was thinking that this might be a Catalina bug
(was using 4.0.1), but I didn't investigate this further after I fixed the
cause of the run-time error.

Hope this helps.
-Jeff



   

"Robin Lee"

, "Michael
@uls.com>Gerdau" <[EMAIL PROTECTED]>

 cc:   

03/12/02 Subject: Re: Large pages not completely 
displayed with IE 5.x and 
11:05 AM Tomcat 4 .0.x 

Please 

respond to 

"Tomcat Users  

List"  

   

   





Hi,

I had the same problem as you did... One of my pages would not completely
load...

Using: Tomcat 4.02, j2sdk1.4.  Windows 2K/NT, doesn't matter.. happens on
both.

At first I thought that it was because it was large.  But it wasn't the
problem.  The page in question returned about 150K of html code.  Another
page returned 600K and that ALWAYS displayed in its entirety.  So,  after
some checking and testing, i discovered it is because i had too many objects
open.   (Instantiated objects galore).

One thing i did to make it work is to make sure that each object that i
instantiate is opened ONCE... (I use a java mapping strategy to get data
from the database).

Once i did that, the rest of the data would show up with no problem...

That is one thing i would check and see if there are too many objects being
instantiated (same ones all the time).  That's my suggestion.

Good luck,

If that's not it, then i'm not sure what else it could be. :)

...Robin




- Original Message -
From: "Michael Gerdau" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 7:08 AM
Subject: RE: Large pages not completely displayed with IE 5.x and Tomcat 4
.0.x


> > I think an obvious first couple of questions:
> > 1.  Is the page competing execution or is it throwing an exception
> >or perhaps hanging up due to deadlock?
>
> Not that I'm aware of. I get the effect by simply logging onto the
> webapp from a different machine immediately after starting tomcat.
> No concurrent users on Tomcat.
>
> This happens both with HTTP/1.1 on port 8080 and HTTP/1.0 on 8082
> (both using the default configuration as of server.xml)
>
> > 2.  Are you ever clicking the stop button in IE (perhaps causing the
> >browser to give up before the connection is completed?)
>
> No.
>
> >> Hi !
> >>
> >> I have the following problem:
> >> I'm running Tomcat 4.0.x (x == 1, 2 or 3) standalone on a Win2000
> >> machine. I have a WebApp (written with Struts) that accesses a RDBMS
> >> and creates pages which occasionally are 100+ kB in size. This takes
> >> some time (between 20-50 seconds).
> >>
> >> When I run Internet Explorer 5.0 or 5.5 on the machine running
> >> Tomcat (e.g. my development environment) everything works
> >> fine. When I'm
> >> trying to access those pages from another mach

RE: apache won't start

2002-03-12 Thread Bill Tantzen

-> Have you setup the web application connections in the apache
-> configurations? If not, then add these lines, as an example, at
-> the end of
-> the httpd.conf:
-> WebAppConnection conn warp localhost:8008
-> WebAppDeploy examples conn /examples
-> WebAppInfo /webapp-info
->
-> Restart apache (after starting tomcat) from the command prompt.
->
-> I think mod_webapp looks for the web application connection
-> statements and
-> since it cannot find it, throws the error. (I could be wrong in assessing
-> the problem here)

Hey, that did it!  I'll *swear* that I read in one of the docs to check the
core httpd server before adding any web apps, and even so, I'll *swear* that
I tried this already.  But you know how it is when you begin to just start
changing things.  You sort of start forgetting the "scientific method!!!"

Thanks alot!


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Large pages not completely displayed with IE 5.x and Tomcat 4 .0.x

2002-03-12 Thread Robin Lee

Hi,

I had the same problem as you did... One of my pages would not completely
load...

Using: Tomcat 4.02, j2sdk1.4.  Windows 2K/NT, doesn't matter.. happens on
both.

At first I thought that it was because it was large.  But it wasn't the
problem.  The page in question returned about 150K of html code.  Another
page returned 600K and that ALWAYS displayed in its entirety.  So,  after
some checking and testing, i discovered it is because i had too many objects
open.   (Instantiated objects galore).

One thing i did to make it work is to make sure that each object that i
instantiate is opened ONCE... (I use a java mapping strategy to get data
from the database).

Once i did that, the rest of the data would show up with no problem...

That is one thing i would check and see if there are too many objects being
instantiated (same ones all the time).  That's my suggestion.

Good luck,

If that's not it, then i'm not sure what else it could be. :)

...Robin




- Original Message -
From: "Michael Gerdau" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 7:08 AM
Subject: RE: Large pages not completely displayed with IE 5.x and Tomcat 4
.0.x


> > I think an obvious first couple of questions:
> > 1.  Is the page competing execution or is it throwing an exception
> >or perhaps hanging up due to deadlock?
>
> Not that I'm aware of. I get the effect by simply logging onto the
> webapp from a different machine immediately after starting tomcat.
> No concurrent users on Tomcat.
>
> This happens both with HTTP/1.1 on port 8080 and HTTP/1.0 on 8082
> (both using the default configuration as of server.xml)
>
> > 2.  Are you ever clicking the stop button in IE (perhaps causing the
> >browser to give up before the connection is completed?)
>
> No.
>
> >> Hi !
> >>
> >> I have the following problem:
> >> I'm running Tomcat 4.0.x (x == 1, 2 or 3) standalone on a Win2000
> >> machine. I have a WebApp (written with Struts) that accesses a RDBMS
> >> and creates pages which occasionally are 100+ kB in size. This takes
> >> some time (between 20-50 seconds).
> >>
> >> When I run Internet Explorer 5.0 or 5.5 on the machine running
> >> Tomcat (e.g. my development environment) everything works
> >> fine. When I'm
> >> trying to access those pages from another machine within the
> >> local network
> >> (e.g. the production environment) some of these pages don't display
> >> completely. Examining the HTML inside the browser reveals
> >> they are indeed
> >> incomplete.
> >>
> >> What could cause this ?
> >> What additional info would be needed to debug this ?
> >>
> >> Any help appreciated, thank you,
> >> Michael
>
> --
>  Vote against SPAM - see http://www.politik-digital.de/spam/
>  Michael Gerdau   email: [EMAIL PROTECTED]
>  You mean you think Windows XP **ISN'T** a joke?!
>  PGP-keys available on request or at public keyserver
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Http Session over SSL - Problem solved by pure luck

2002-03-12 Thread Horia Muntean

Problem solved by pure luck:

If on the client side, I remove   the   conn.disconnect(); statement (right
after in.close();) it seems that the ssl client uses the same sslsession
obtained by the first connection and the server does not create new http
sessions.

seven.
- Original Message -
From: "Horia Muntean" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 3:34 PM
Subject: Http Session over SSL


Hello to all.

I have a problem with session tracking when I use secure connections:

This is the scenario:

On the server side, I have Slackware 8.0, with tomcat-4.0.3, apache 1.3.20
and a simple servlet witch does only one thing:

  public void doPost(HttpServletRequest request, HttpServletResponse
response) throws IOException, ServletException {
HttpSession session = request.getSession();
if(session.isNew()) log("this is a new session:"+session.getId());

ObjectInputStream in = new ObjectInputStream(request.getInputStream());
ObjectOutputStream out = new
ObjectOutputStream(response.getOutputStream());

Object message = null;
try {
message = in.readObject();
out.writeObject(message);
out.flush();
} catch (Exception e) {
e.printStackTrace();
}finally{
in.close();
out.close();
}
}

On the client side, i use HttpConnection in order to connect to this
servlet:

Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.ww
w.protocol");
String target = "http://myserver/access/AccessServlet";;

HttpURLConnection conn = (HttpURLConnection)new
URL(target).openConnection();

if(sessionId != null) {
conn.setRequestProperty("Cookie", sessionId);
}

conn.setDoInput(true);
conn.setDoOutput(true);
conn.setUseCaches(false);

ObjectOutputStream out = new ObjectOutputStream(conn.getOutputStream());
out.writeObject(null);
out.flush();
out.close();

String cookie = conn.getHeaderField("Set-cookie");
if (cookie != null) {
  int semicolon = cookie.indexOf(';');
  sessionId = cookie.substring(0, semicolon);
}

ObjectInputStream in = new ObjectInputStream(conn.getInputStream());
Object response = in.readObject();

in.close();
conn.disconnect();


***NOTE: sessionId is a string used to keep a session id once it is returned
by the first connection to the server;

If I am using http protocol, everything works fine.
If I use https protocos, the PROBLEM ocurs: sometimes, the server
instantiates a NEW HttpSession and sends it back to the client even if the
request from the client is set-up (via conn.setRequestProperty("Cookie",
sessionId);) with the right session id.
The problem is happening no matter what kind of connection I use (direct to
tomcat configured with a SSL connector, or using apache+mod_ssl+mod_jk ).

The problem apears to depend of the j2se I use on the client side 'cause if
I use j2se1.4.0 the problem dissapears (but here I have a poor performance -
inacceptable - I have to wait 5-6 seconds until i have a response).

The problem stays with j2se1.3.1+jsse1.0.2

IMHO, the catalina container, creates a new httpsession if the user
connected via https uses a new sslsession. So, I can't overcome this
problem, 'cause I can't force the client to use the same sslsession
negotiated after the first connection.


Any ideeas?
Gtreetings,
seven



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Free KAWA?

2002-03-12 Thread Kemp Randy-W18971

IBM Visual Age for Java and Sun Forte.

-Original Message-
From: Leon Vermaak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 9:02 AM
To: Tomcat Users List
Subject: Free KAWA?


Is there a programming enviornment similar to KAWA, but is free that is good
to work with?
That helps you adminsitrate your classpaths etc...
Thanks



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Global JNDI Resources

2002-03-12 Thread Craig R. McClanahan



On Tue, 12 Mar 2002 [EMAIL PROTECTED] wrote:

> Date: Tue, 12 Mar 2002 09:42:31 -0500
> From: [EMAIL PROTECTED]
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Global JNDI Resources
>
>
> Hi everybody.
>
> I know it tomcat4.x, we can JNDI resources for specific context. But I want
> to have some kind of global JNDI. So all my applications can share same
> resource. I found some info in developer's maillist. But it seems not
> working. Does tomcat support global JNDI now?
>

Global JNDI resources are a feature of the current nightly builds of
Tomcat 4, which will eventually be delivered in 4.1.  They are not a
feature of the 4.0.x series.

> Thanks,
>
> Eric
>

Craig McClanahan


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: SSL Problem

2002-03-12 Thread Alf Scherer

Well, 

Yes that's what I already did, I've also added the keystoreFile
attribute because I have put the keystore file under common/ssl. The
strange thing about it is: it works when using a certifcate that was
created using the keytool -selfcert option.




-Original Message-
From: Chris Campbell [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 12, 2002 11:09 AM
To: 'Tomcat Users List'
Subject: RE: SSL Problem



hi.

did you change the configuration in server.xml?

You need to uncomment the section like this just checking.




ChrisC

> -Original Message-
> From: Alf Scherer [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 6:13 PM
> To: [EMAIL PROTECTED]
> Subject: SSL Problem
> 
> 
> Hi,
> 
> I've installed Tomcat 4.0.3 on my system running
> redhat-7.2, I've also created a CA using openssl to test
> Tomcat-ssl. I've generated a key and certreq as well using
> the using java keytool with the default "changeit" pwd. 
> Well, after signing the certreq with openssl and importing
> it to the keystore, tomcat won't allow me to connect to 443.
> 
> I don't know what happens as there is no information about
> What's going on. I have also turned on debugging on the 
> SSL-connector but there is no debug-info whatsoever.
> 
> Please HELP!!!
> 
> 
> 
> 
> -
>  Alf Scherer|
> |
>  CarrotMEDIA GmbH   |
>  Saegewerkstr. 3| Q: What is a programmer?
>  83395 Freilassing  | A: A bio-chemical machine, turning 
>  Germany, EU|coffee into lines of code
> -
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




[Coyote] Coyote 1.0 Beta 2 available

2002-03-12 Thread Remy Maucherat

Coyote 1.0 Beta 2 is now available, and includes:
- A high performance HTTP/1.1 processor
- An adapter for Tomcat 3.3.x (new in this release)
- An adapter for Tomcat 4.0.x
- Bugfixes over 1.0 Beta 1

Binaries can be downloaded at:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/coyote/release/v1
.0-b2/

Installation instructions for both 3.3.x and 4.0.x are given on the download
page. The Tomcat 4 nighly builds already include this new connector.

Remy


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Problems using own XML parser

2002-03-12 Thread Cox, Charlie

see the archives or bugzilla as this was addressed in 4.0.3 or 4.0.4b1(I
don't remember which one)

Charlie

> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 10:59 AM
> To: 'Tomcat Users List'
> Subject: RE: Problems using own XML parser
> 
> 
> I'm not privy to the workings of the servlet. There's a 
> properties file I
> edit to indicate the name of the SAX driver:
> 
> #Xerces
> sax.driver.name=org.apache.xerces.parsers.SAXParser
> 
> OR
> 
> #Aelfred
> sax.driver.name=com.microstar.xml.SAXDriver  
> 
> Xerces works fine, but Aelfred doesn't. The driver names are 
> correct and as
> I said, TomCat does load aelfred.jar
> 
> Yes - I too would like to know if it's possible to use another parser!
> 
> Thanks,
>  
> John
>  
> Quote for the week:
>  
> The stupid neither forgive nor forget; the naive forgive and 
> forget; the
> wise forgive but do not forget.
>  
> Thomas Szasz, The Second Sin (1973)
> 
> 
> -Original Message-
> From: Evguenia Krylova [mailto:[EMAIL PROTECTED]]
> Sent: 12 March 2002 15:52
> To: Tomcat Users List
> Subject: RE: Problems using own XML parser
> 
> 
> Isn't it that udner Tomcat 4x you can specify class path for a 
> context in server.xml. I saw something like this in the 
> comments portion of server.xml. I have not tried this, but would 
> like to know if you found a way to use another parser with Tomcat.
> 
> I assume you don't use JAXP API's but call alphred's classes 
> directly. 
> 
> Ev
> 
> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 9:31 AM
> To: Tomcat Users List (E-mail)
> Subject: RE: Problems using own XML parser
> 
> 
> All,
> 
> I'd appreciate a response on this otherwise I'll just have to 
> assume that
> TomCat allows only xerces.jar as a parser.
> The "jsp errors" I mention relate to the default servlet for 
> jsp. I tried
> commenting out (in conf/web.xml) all references to this 
> servlet - it just
> created more errors!
> The docs give the impression that it's a "simple" case of 
> moving xerces.jar
> and putting your own parser in /WEB-INF/lib, but this just 
> doesn't work.
> 
> Thanks,
>  
> John
>  
> 
> -Original Message-
> From: John Wadkin 
> Sent: 09 March 2002 03:04
> To: Tomcat Users List (E-mail)
> Subject: Problems using own XML parser
> 
> 
> All,
> 
> Tomcat 4.0.1
> Apache 1.3
> mod_WebApp
> Solaris 8
> 
> I'm trying to use the aelfred parser in a servlet. I've read 
> the docs on
> class loaders and XML but no luck so far.
> 
> I moved xerces.jar from common/lib to server/lib and 
> re-started TomCat. A
> couple of errors appeared in catalina.out relating to the 
> default servlet
> for jsp's. So I put xerces.jar back in common/lib.
> I put the aelfred.jar in my web app's WEB-INF/lib directory 
> and re-started
> TomCat. I expected errors relating to the fact that two XML 
> parsers existed
> - there weren't any. The logs show that aelfred.jar has loaded but the
> servlet throws a ClassNotFoundException.
> 
> Any ideas? The servlet does work with Aelfred at another site 
> and it works
> fine with the xerces parser in common/lib.
> 
> The reason I'm trying to use Aelfred is that I'm told it's faster than
> Xerces. Is this a fair comment?
> 
> Thanks,
> 
> John 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: apache won't start

2002-03-12 Thread rsequeira


Have you setup the web application connections in the apache
configurations? If not, then add these lines, as an example, at the end of
the httpd.conf:
WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples
WebAppInfo /webapp-info

Restart apache (after starting tomcat) from the command prompt.

I think mod_webapp looks for the web application connection statements and
since it cannot find it, throws the error. (I could be wrong in assessing
the problem here)

RS






"Bill Tantzen" <[EMAIL PROTECTED]> on 03/12/2002 08:59:48 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:  RE: apache won't start


-> -Original Message-
-> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
-> Sent: Tuesday, March 12, 2002 8:30 AM
-> To: Tomcat Users List
-> Subject: Re: apache won't start
->
->
->
-> Maybe you could you try starting Apache from the command prompt
-> (instead of
-> as a service) and check the error that is thrown.

Here is what I get from the command line:

  C:\Program Files\Apache Group\Apache>apache -k start
  Apache/1.3.23 (Win32) running...

However, it is *not* running, and here is the error log:

  C:\Program Files\Apache Group\Apache>type logs\error.log
  [Tue Mar 12 08:54:28 2002] [crit] (2)No such file or directory:
make_sock:
failed to get a socket for port 80

But nothing else is running on port 80 -- and apache runs just fine without
the LoadModule directive for mod_webapp.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Please advice: Deploy the manager application

2002-03-12 Thread Cox, Charlie

see intermixed

> -Original Message-
> From: Renato [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 7:33 AM
> To: [EMAIL PROTECTED]
> Subject: Please advice: Deploy the manager application
> 
> 
> Hi all,
> 
> I want to deploy the manager application to stop and start different 
> contexts on a multiple Virtual Host environment. 
> 
> I don't want my clients to have direct access to it, just the 
> administrator 
> ( I'm thinking to build a wrapper around it, so it will be 
> transparent for 
> the users to restart their context ). 
> 
> I did some preliminar tests and I have some questions:
> 
> - Would I have to define the manager application for each  ? 

you would have to define your wrapper for each host. It is just another
context.

> - Would I have to mark all contexts as "privileged=true" ?

Only the manager/wrapper context

> - Is their a way to list all the applications, or is it 
> limited on a per-
> virtual host basis ?

It is limited per virtual host, as manager is a context within a virtual
host

> 
> Any other recommendation to make the 'manager' available to users ?
> 
> Thanks !!
> 

Charlie

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Problems using own XML parser

2002-03-12 Thread John Wadkin

I'm not privy to the workings of the servlet. There's a properties file I
edit to indicate the name of the SAX driver:

#Xerces
sax.driver.name=org.apache.xerces.parsers.SAXParser

OR

#Aelfred
sax.driver.name=com.microstar.xml.SAXDriver  

Xerces works fine, but Aelfred doesn't. The driver names are correct and as
I said, TomCat does load aelfred.jar

Yes - I too would like to know if it's possible to use another parser!

Thanks,
 
John
 
Quote for the week:
 
The stupid neither forgive nor forget; the naive forgive and forget; the
wise forgive but do not forget.
 
Thomas Szasz, The Second Sin (1973)


-Original Message-
From: Evguenia Krylova [mailto:[EMAIL PROTECTED]]
Sent: 12 March 2002 15:52
To: Tomcat Users List
Subject: RE: Problems using own XML parser


Isn't it that udner Tomcat 4x you can specify class path for a 
context in server.xml. I saw something like this in the 
comments portion of server.xml. I have not tried this, but would 
like to know if you found a way to use another parser with Tomcat.

I assume you don't use JAXP API's but call alphred's classes 
directly. 

Ev

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 9:31 AM
To: Tomcat Users List (E-mail)
Subject: RE: Problems using own XML parser


All,

I'd appreciate a response on this otherwise I'll just have to assume that
TomCat allows only xerces.jar as a parser.
The "jsp errors" I mention relate to the default servlet for jsp. I tried
commenting out (in conf/web.xml) all references to this servlet - it just
created more errors!
The docs give the impression that it's a "simple" case of moving xerces.jar
and putting your own parser in /WEB-INF/lib, but this just doesn't work.

Thanks,
 
John
 

-Original Message-
From: John Wadkin 
Sent: 09 March 2002 03:04
To: Tomcat Users List (E-mail)
Subject: Problems using own XML parser


All,

Tomcat 4.0.1
Apache 1.3
mod_WebApp
Solaris 8

I'm trying to use the aelfred parser in a servlet. I've read the docs on
class loaders and XML but no luck so far.

I moved xerces.jar from common/lib to server/lib and re-started TomCat. A
couple of errors appeared in catalina.out relating to the default servlet
for jsp's. So I put xerces.jar back in common/lib.
I put the aelfred.jar in my web app's WEB-INF/lib directory and re-started
TomCat. I expected errors relating to the fact that two XML parsers existed
- there weren't any. The logs show that aelfred.jar has loaded but the
servlet throws a ClassNotFoundException.

Any ideas? The servlet does work with Aelfred at another site and it works
fine with the xerces parser in common/lib.

The reason I'm trying to use Aelfred is that I'm told it's faster than
Xerces. Is this a fair comment?

Thanks,

John 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: image manipulating via servlets on tomcat4

2002-03-12 Thread Mark

Is the problem that the 'old' vs. newly generated image displays (with the
same .gif/.jpg name)?  If that's the case then it's likely a problem with
browser image caching.  The only way I found to get around that was to
generate unique image file names each time the new images were generated,
guaranteeing the browser would load the desired image each time.

Hope this helps, if I understand the problem that is...

Mark


>At 10:54 PM 3/12/02 +0800, you wrote:
>>Hi  everybody,
>>I am using tomcat4 on win 2000.
>>I have searched all the archives and almost all websites related with java,
>>to no avail.
>>My problem is manupulating  images via servlets on Tomcat.
>>In fact , there are tons of examples on the internet and on the archives
>>which shows
>>how to load an image from a local file and send to the browser, or
>>dynamically
>>generate a gif , or jpg image  and send it  to the user. Up to here ,
>>everything is allright.
>>But , it seems that there is no way to load an image from a file (at
>>server), write some text on it
>>or edit that image on hand, finally send it to hte browser as a new image.
>>I tried almost every way, in vain :(
>>I hope, someone overthere, an expert, be nice enough to answer my question,
>>though my
>>question might sound a little bit offtopic.
>>Looking forward to your help hopefully.
>>Cheers :)
>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Apache + getInstance

2002-03-12 Thread Elisabeth Julg

Hi,

  I have a problem with servlet and apache :

A servlet (started at the initialisation of my application) creates a share
object HD_Memoire _Memoire build as :

  public class HD_Memoire implements Runnable {
  private static HD_Memoire instance = new HD_Memoire();
  private HD_Memoire() {}
  public static HD_Memoire getInstance() {return instance;}
  ...
  }

After, during execution, I need to use the objet HD_Memoire (using function
getInstance).
Normally, it returns the same objet Memoire.

This works well if I start my application in service "Tomcat Standalone",
but I doesn't work with service "Tomcat Apache". It creates an another
object HD_Memoire ...

Have you an idea why, or a solution for my problem ?


Elisabeth
Toulouse - France


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Problems using own XML parser

2002-03-12 Thread Evguenia Krylova

Isn't it that udner Tomcat 4x you can specify class path for a 
context in server.xml. I saw something like this in the 
comments portion of server.xml. I have not tried this, but would 
like to know if you found a way to use another parser with Tomcat.

I assume you don't use JAXP API's but call alphred's classes 
directly. 

Ev

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 9:31 AM
To: Tomcat Users List (E-mail)
Subject: RE: Problems using own XML parser


All,

I'd appreciate a response on this otherwise I'll just have to assume that
TomCat allows only xerces.jar as a parser.
The "jsp errors" I mention relate to the default servlet for jsp. I tried
commenting out (in conf/web.xml) all references to this servlet - it just
created more errors!
The docs give the impression that it's a "simple" case of moving xerces.jar
and putting your own parser in /WEB-INF/lib, but this just doesn't work.

Thanks,
 
John
 

-Original Message-
From: John Wadkin 
Sent: 09 March 2002 03:04
To: Tomcat Users List (E-mail)
Subject: Problems using own XML parser


All,

Tomcat 4.0.1
Apache 1.3
mod_WebApp
Solaris 8

I'm trying to use the aelfred parser in a servlet. I've read the docs on
class loaders and XML but no luck so far.

I moved xerces.jar from common/lib to server/lib and re-started TomCat. A
couple of errors appeared in catalina.out relating to the default servlet
for jsp's. So I put xerces.jar back in common/lib.
I put the aelfred.jar in my web app's WEB-INF/lib directory and re-started
TomCat. I expected errors relating to the fact that two XML parsers existed
- there weren't any. The logs show that aelfred.jar has loaded but the
servlet throws a ClassNotFoundException.

Any ideas? The servlet does work with Aelfred at another site and it works
fine with the xerces parser in common/lib.

The reason I'm trying to use Aelfred is that I'm told it's faster than
Xerces. Is this a fair comment?

Thanks,

John 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Simple embdded tomcat server with a single servlet

2002-03-12 Thread Jerome Bouat

I search a mean too.
The Embedded server ran
but the client didn't achieved
to send a message to my servlet.

I'm interrested if you find a better way.

Jerome

I previously send this message in the list:
--
I want to use the Jakarta catalina library
without the configuration files
(server.xml, WEB-INF/web.xml, ...).
The aim is to use (and hide)
a lighweight SOAP (on HTTP) connector
started from a java NON-WEB application.

SOAP message handling is made with a servlet
that extends the javax.xml.messaging.JAXMServlet class.
My ServletFilter class
which implements the javax.servlet.Filter interface
does not alter the ServletRequest
or ServletResponse parameters (empty method bodies).

A python client send a SOAP message to my HTTP connector
but my servlet doesn't get any message.

I have read the documentation,
but it is done for web developpers only.

What is wrong ?

Thanks for your help.

Jerome



--
configuration code
--
/ variables previous settings
* servlet : String, the full name of my servlet class
*/

System.setProperty("catalina.home","/tmp");
System.setProperty("catalina.base","/tmp");

this.server = new Embedded();
this.server.addLifecycleListener(this);

Engine engine = this.server.createEngine();
engine.setDefaultHost("vtm");

Host host = this.server.createHost("vtm","");

Context context = this.server.createContext("","/tmp");
FilterDef fD = new FilterDef();
fD.setFilterName("*");
fD.setFilterClass("com.xerox.VTM.clf.ServletFilter");
context.addFilterDef(fD);
FilterMap map = new FilterMap();
map.setFilterName("*");
map.setServletName(servlet);
context.addFilterMap(map);
context.setReloadable(false);
context.setCookies(false);
context.getServletContext().setAttribute("GUIManager",this);

Wrapper w = context.createWrapper();
w.setServletClass(servlet);
w.setName("SOAPHandler");
w.setLoadOnStartup(-1);
w.setParent(context);
context.addChild(w);

host.addChild(context);
engine.addChild(host);
this.server.addEngine(engine);
try{
Connector connector;
connector =
this.server.createConnector(InetAddress.getLocalHost(),port,false);
connector.setScheme("http");
this.server.addConnector(connector);
try{
this.server.start();
}
catch(LifecycleException e){System.err.println(e);}
}
catch(UnknownHostException e){e.printStackTrace();}



-
client trace

404 '/'


server trace

Apache Tomcat/4.0.3
WebappLoader[]: Deploying class repositories to work directory
/tmp/work/vtm/_
StandardManager[]: Seeding random number generator class
java.security.SecureRandom
StandardManager[]: Seeding of random number generator has been completed
ContextConfig[]: Missing default web.xml, using application web.xml only
ContextConfig[]: Missing application web.xml, using defaults only
ContextConfig[]: Added certificates -> request attribute Valve
HttpConnector Opening server socket on host IP address 13.202.220.88
HttpConnector[19769] Starting background thread

--


"WATKINS, Andy, FM" wrote:
> 
> Im trying to setup an embedded tomcat that gets
> run from a main().
> 
> Im using the Embedded.java class.
> 
> I wont only a single servlet mapped, but the example
> main does not do this.
> 
> Does anyone have a sample main configuring tomcat
> (programmatically via Embedded.java) to have a single
> servlet running?
> 
> Andy
> 
> 
>   Visit our Internet site at http://www.rbsmarkets.com
> 
> This e-mail is intended only for the addressee named above.
> As this e-mail may contain confidential or privileged information,
> if you are not the named addressee, you are not authorised to
> retain, read, copy or disseminate this message or any part of it.
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Help : Error Starting Tomcat 4.0.1 in AIX

2002-03-12 Thread Andy Soedibjo

Hi All,

At 14:30 11/03/2002 -0600, you wrote:
>Did you actually look at these log files first?  I only know a few words in
>French, but enough to see from your catalina.out that it could not create a
>jar file cache in your /tmp directory because it doesn't exist.

Of course, it exist and i've tried and to make another temp directory in 
the CATALINA_HOME ... but still it's not working.
I've tried to track it using the Tomcat source code .. and i found this log 
file:

...
2002-03-12 15:03:27 ContextConfig[/examples]: ContextConfig: Processing START
2002-03-12 15:03:28 StandardContext[/examples]: Setting deployment 
descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN'
2002-03-12 15:03:30 StandardContext[/examples]: Setting deployment 
descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN'

2002-03-12 15:03:30 ContextConfig[/examples]: Scanning web.xml tag libraries
2002-03-12 15:03:30 
ContextConfig[/examples]: 
URI='http://jakarta.apache.org/tomcat/debug-taglib', 
ResourcePath='/WEB-INF/jsp/debug-taglib.tld'
2002-03-12 15:03:30 
ContextConfig[/examples]: tldConfigJar(/WEB-INF/jsp/debug-taglib.tld): 
java.util.zip.ZipException: error in opening zip file
2002-03-12 15:03:30 
ContextConfig[/examples]: 
URI='http://jakarta.apache.org/tomcat/examples-taglib', 
ResourcePath='/WEB-INF/jsp/example-taglib.tld'
2002-03-12 15:03:30 
ContextConfig[/examples]: 
tldConfigJar(/WEB-INF/jsp/example-taglib.tld): java.util.zip.ZipException: 
error in opening zip file

2002-03-12 15:03:30 ContextConfig[/examples]: Scanning library JAR files
...

Does anybody knows what is it means? I've checked the tld file, and it's in 
the webapps/examples/WEB-INF/jsp folder ... why there is an exception here?


>The errors in the localhost_log file seem to result from this as well, so 
>why don't you fix
>this first?  If you still get errors, I would highly recommend reading your
>log files first before posting them to try to figure out your problem.  If you
>do post, please give a better, more detailed account of what the problem is.

I think i give enough detail ... I install the tomcat 4.0.x from jakarta 
web site ... and run the startup.sh -debug.
That's all, i don't make any change ... but i found that the tomcat is not 
running, and there is an error :
Error unable to create jar cache in /tmp directory : 
java.util.zip.ZipException: error in opening zip file
... and then i tried to increase the debug level in the server.xml, and get 
the log file above.

Does anyone know what happening?  Anyway thanks Jef for the "friendly" 
response. ;-)

Regards,
Andy S.




> 
>
> Andy 
> Soedibjo 
>
> <[EMAIL PROTECTED]To: "Tomcat Users 
> List" <[EMAIL PROTECTED]>
> a.slb.com>  cc: 
 >
> Subject: Help : 
> Error Starting Tomcat 4.0.1 in AIX
> 03/11/02 02:21 
> PM 
>
> Please respond 
> to 
>
> "Tomcat Users 
> List" 
>
> 
>
> 
>
>
>
>
>
>Hi Everyone,
>
>I've sent this mail before, but nobody answers it ... is it because none of
>you ever face this problem?
>I've tried to reinstall my tomcat and then run it directly, but still i
>have a problem.
>Is this a problem in the Tomcat, because i just install it, and run it with
>Tomcat's default configuration.
>
>I attach the log file that i got. Hope anyone of you give me suggestion /
>clues how to fix this problem.
>
>I appreciate all the suggestion or clue ... and i will try it. Thanks in
>advance.
>
>Best Regards,
>Andy S.
>
>
>
>
>(See attached file: localhost_log.2002-03-11.txt)(See attached file:
>catalina_log.2002-03-11.txt)(See attached file: catalina.out)
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 




Simple embdded tomcat server with a single servlet

2002-03-12 Thread WATKINS, Andy, FM

Im trying to setup an embedded tomcat that gets
run from a main().

Im using the Embedded.java class. 

I wont only a single servlet mapped, but the example
main does not do this.

Does anyone have a sample main configuring tomcat
(programmatically via Embedded.java) to have a single
servlet running?

Andy



  Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: image manipulating via servlets on tomcat4

2002-03-12 Thread Jarecsni János

Hi,

well, the question should be split into two subquestions:
1) how to serve requests for images
2) how to manipulate images before sending them back to clients

1.
The first is simple: create a servlet which receives an identifier (the name
of the image to generate). It can then get the bytes of the image either
from a database or from a local file on the server. Before actually sending
the image bytes back to client, you set the content-type header to the
appropriate type (image/jpeg, image/gif).

Example:

You have this line in a html/jsp file:


The servlet imageServlet would

1. retrieve the bytes of the given image
2. set the content-type
3. and finally, it writes all the bytes into the OutputStream available
through the HttpServletRequest which is passed in as an argument by the
servlet runner.

2. It is relatively easy to manipulate images with Java. Firstly I would
create a java.awt.Image out of the bytes of the image:

byte[] bytes = getImageBytes(imageName);// this is just an imaginary method
name
Image img = java.awt.Toolkit.getDefaultToolkit().createImage(bytes);

You then get the Graphics object for this Image, and do the necessary
manipulations on the Graphics. Finally you get the bytes of the Image using
an ImageConsumer and send them back to the client.

I haven't done such image manipulation yet, but it should work theoretically
:)

Cheers,
János



|-Original Message-
|From: yilmaz [mailto:[EMAIL PROTECTED]]
|Sent: Tuesday, March 12, 2002 3:54 PM
|To: Tomcat Users List
|Subject: image manipulating via servlets on tomcat4
|
|
|Hi  everybody,
|I am using tomcat4 on win 2000.
|I have searched all the archives and almost all websites related with java,
|to no avail.
|My problem is manupulating  images via servlets on Tomcat.
|In fact , there are tons of examples on the internet and on the archives
|which shows
|how to load an image from a local file and send to the browser, or
|dynamically
|generate a gif , or jpg image  and send it  to the user. Up to here ,
|everything is allright.
|But , it seems that there is no way to load an image from a file (at
|server), write some text on it
|or edit that image on hand, finally send it to hte browser as a new image.
|I tried almost every way, in vain :(
|I hope, someone overthere, an expert, be nice enough to answer my question,
|though my
|question might sound a little bit offtopic.
|Looking forward to your help hopefully.
|Cheers :)
|
|
|
|--
|To unsubscribe:   
|For additional commands: 
|Troubles with the list: 
|
|


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Please advice: Deploy the manager application

2002-03-12 Thread Renato

Hi all,

I want to deploy the manager application to stop and start different 
contexts on a multiple Virtual Host environment. 

I don't want my clients to have direct access to it, just the administrator 
( I'm thinking to build a wrapper around it, so it will be transparent for 
the users to restart their context ). 

I did some preliminar tests and I have some questions:

- Would I have to define the manager application for each  ? 
- Would I have to mark all contexts as "privileged=true" ?
- Is their a way to list all the applications, or is it limited on a per-
virtual host basis ?

Any other recommendation to make the 'manager' available to users ?

Thanks !!

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Problems using own XML parser

2002-03-12 Thread John Wadkin

All,

I'd appreciate a response on this otherwise I'll just have to assume that
TomCat allows only xerces.jar as a parser.
The "jsp errors" I mention relate to the default servlet for jsp. I tried
commenting out (in conf/web.xml) all references to this servlet - it just
created more errors!
The docs give the impression that it's a "simple" case of moving xerces.jar
and putting your own parser in /WEB-INF/lib, but this just doesn't work.

Thanks,
 
John
 

-Original Message-
From: John Wadkin 
Sent: 09 March 2002 03:04
To: Tomcat Users List (E-mail)
Subject: Problems using own XML parser


All,

Tomcat 4.0.1
Apache 1.3
mod_WebApp
Solaris 8

I'm trying to use the aelfred parser in a servlet. I've read the docs on
class loaders and XML but no luck so far.

I moved xerces.jar from common/lib to server/lib and re-started TomCat. A
couple of errors appeared in catalina.out relating to the default servlet
for jsp's. So I put xerces.jar back in common/lib.
I put the aelfred.jar in my web app's WEB-INF/lib directory and re-started
TomCat. I expected errors relating to the fact that two XML parsers existed
- there weren't any. The logs show that aelfred.jar has loaded but the
servlet throws a ClassNotFoundException.

Any ideas? The servlet does work with Aelfred at another site and it works
fine with the xerces parser in common/lib.

The reason I'm trying to use Aelfred is that I'm told it's faster than
Xerces. Is this a fair comment?

Thanks,

John 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




resource unavailable

2002-03-12 Thread jmt

Hi,

I have a "controllerServlet" which is called by a "index.html" page, hosted 
in a standalone Tomcat server.

web.xml specifies the servlet has to be started at the beginning, and it does.

But when I call it from the index.html page, I get a 404 "the requested 
resource (/controllerServlet) is unavailable.

What do I miss ?

jmt

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: image manipulating via servlets on tomcat4

2002-03-12 Thread Ralph Einfeldt


- Use AWT as for any gui.
  Have a look at:
  java.awt.Toolkit.getImage();
  java.awt.Image.getGraphics();
  java.awt.Graphics.drawString();

  If you did it already this way, what was your problem?

> -Ursprüngliche Nachricht-
> Von: yilmaz [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 12. März 2002 15:54
> An: Tomcat Users List
> Betreff: image manipulating via servlets on tomcat4
 
> I tried almost every way, in vain :(


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: image manipulating via servlets on tomcat4

2002-03-12 Thread Tom Oinn



yilmaz wrote:
> 
> Hi  everybody,
> I am using tomcat4 on win 2000.
> I have searched all the archives and almost all websites related with java,
> to no avail.
> My problem is manupulating  images via servlets on Tomcat.
> In fact , there are tons of examples on the internet and on the archives
> which shows
> how to load an image from a local file and send to the browser, or
> dynamically
> generate a gif , or jpg image  and send it  to the user. Up to here ,
> everything is allright.
> But , it seems that there is no way to load an image from a file (at
> server), write some text on it
> or edit that image on hand, finally send it to hte browser as a new image.
> I tried almost every way, in vain :(
> I hope, someone overthere, an expert, be nice enough to answer my question,
> though my
> question might sound a little bit offtopic.
> Looking forward to your help hopefully.
> Cheers :)

It sounds that you need to do the following :

1) Load your image and do whatever manipulation you would do normally,
this gives you some kind of object representing the image data yes?
2) Set the response content type to something appropriate to the image
format you want to use
3) Get the writer for the http response
4) Get a reader from your image object, through some kind of encoder
format (jpeg, gif etc)
5) Read from the reader, writing to the writer and you should be
returning an image to the client.

Hope that helps,

Tom

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Another simple error with rt.jar file

2002-03-12 Thread Kemp Randy-W18971

Yesterday I  encountered the error recorded in this email trying the JSP examples on 
Tomcat 4.0.3, using Sun JDK1.4.0, on Sun Solaris 2.6.  I followed the  suggestions 
given, and even looked through the Tomcat archieves.  Here is my current problem. If I 
copy the rt.jar file, which contains the tools.jar, into the Tomcat/common/lib, I can 
execute all the Tomcat JSP examples using JDK1.4.0, except the forward JSP example.  I 
then get the same error as before.  If I go back to the 1.3.1 version, using Tomcat 
4.0.3, then all the JSP examples work.  What could be causing the problem with the 
forward JSP example 

Internal Server Error

type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.
exception 
javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:536)
root cause 
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.Standar

Re: Tomcat and Apple Macintosh

2002-03-12 Thread Ken Martin

On Tuesday, March 12, 2002, at 04:19 AM, Addey O.S.E. wrote:

> I have an iMac G3 350 with MacOS 9.2, MacOS X 10.1, and Linux 
> Mandrake 8.0 PPC. I have Apache 1.3.23 installed under Mandrake 
> 8.0 PPC, have downloaded Tomcat 4.0.3 and now I'm looking for 
> an appropriate JDK to build it. I can't seem to find a 
> compatible JDK, the JDK for Linux from Sun is binary and will 
> not work, simply because the binary is built for Intel. Is 
> there a JDK available for my scenario?

I can't help your specific question, but FYI, Tomcat works 
perfectly on OSX in conjunction with Apache. There's no need for 
the LInux unless you just prefer it. The Java on OSX works great.

Gotta say... MySQL/Tomcat/Apache on OSX rocks as a development 
platform... and I use Golive which can link right into the 
databases... fun stuff. Some configuration, though.

Ken Martin


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Free KAWA?

2002-03-12 Thread Leon Vermaak

Is there a programming enviornment similar to KAWA, but is free that is good
to work with?
That helps you adminsitrate your classpaths etc...
Thanks



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: image manipulating via servlets on tomcat4

2002-03-12 Thread Micael Padraig Og mac Grene

That should be easy.  Call a class that does all that and then load the 
image.  Do I misunderstand you?

At 10:54 PM 3/12/02 +0800, you wrote:
>Hi  everybody,
>I am using tomcat4 on win 2000.
>I have searched all the archives and almost all websites related with java,
>to no avail.
>My problem is manupulating  images via servlets on Tomcat.
>In fact , there are tons of examples on the internet and on the archives
>which shows
>how to load an image from a local file and send to the browser, or
>dynamically
>generate a gif , or jpg image  and send it  to the user. Up to here ,
>everything is allright.
>But , it seems that there is no way to load an image from a file (at
>server), write some text on it
>or edit that image on hand, finally send it to hte browser as a new image.
>I tried almost every way, in vain :(
>I hope, someone overthere, an expert, be nice enough to answer my question,
>though my
>question might sound a little bit offtopic.
>Looking forward to your help hopefully.
>Cheers :)
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: apache won't start

2002-03-12 Thread Bill Tantzen


-> -Original Message-
-> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
-> Sent: Tuesday, March 12, 2002 8:30 AM
-> To: Tomcat Users List
-> Subject: Re: apache won't start
->
->
->
-> Maybe you could you try starting Apache from the command prompt
-> (instead of
-> as a service) and check the error that is thrown.

Here is what I get from the command line:

  C:\Program Files\Apache Group\Apache>apache -k start
  Apache/1.3.23 (Win32) running...

However, it is *not* running, and here is the error log:

  C:\Program Files\Apache Group\Apache>type logs\error.log
  [Tue Mar 12 08:54:28 2002] [crit] (2)No such file or directory: make_sock:
failed to get a socket for port 80

But nothing else is running on port 80 -- and apache runs just fine without
the LoadModule directive for mod_webapp.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: image manipulating via servlets on tomcat4

2002-03-12 Thread Reynir Hübner

hi, 
www.acme.com has some solutions for gif encoding.. 
I guess you can just use awt for jpeg, and some other formats as well.

you might also want to take alook at www.imagemagick.org and especially
the Jmagick partition, I dont think Jmagick is yet available for win32
comps, only unix.

hope it helps
-reynir


> -Original Message-
> From: yilmaz [mailto:[EMAIL PROTECTED]]
> Sent: 12. mars 2002 14:54
> To: Tomcat Users List
> Subject: image manipulating via servlets on tomcat4
> 
> 
> Hi  everybody,
> I am using tomcat4 on win 2000.
> I have searched all the archives and almost all websites 
> related with java,
> to no avail.
> My problem is manupulating  images via servlets on Tomcat.
> In fact , there are tons of examples on the internet and on 
> the archives
> which shows
> how to load an image from a local file and send to the browser, or
> dynamically
> generate a gif , or jpg image  and send it  to the user. Up to here ,
> everything is allright.
> But , it seems that there is no way to load an image from a file (at
> server), write some text on it
> or edit that image on hand, finally send it to hte browser as 
> a new image.
> I tried almost every way, in vain :(
> I hope, someone overthere, an expert, be nice enough to 
> answer my question,
> though my
> question might sound a little bit offtopic.
> Looking forward to your help hopefully.
> Cheers :)
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat, Tyrex and connection pooling management

2002-03-12 Thread Web Information

Hi,

First of all, I know some parts of my question already exist in
this list but they were never really answered ...! So, thanks a
lot in advance for all responses.
I've got three simples questions about Tomcat 4.x and database
connections :
1. Tomcat use Datasource thanks to Tyrex library. Does tomcat
only use Datasource fonctionnality of Tyrex whithout connection
pooling or does it also use connection pooling?
2. If tomcat DOES use Tyrex connection pooling, how can I
configure the pool by file (min, max connection, ...) => Tomcat
doc. only mention datasource definition but never pool
management
3. If Tomcat DOES NOT use Tyrex connection pooling, how can I
do to simulate it?

Thanks a lot.

"Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET  
(0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




image manipulating via servlets on tomcat4

2002-03-12 Thread yilmaz

Hi  everybody,
I am using tomcat4 on win 2000.
I have searched all the archives and almost all websites related with java,
to no avail.
My problem is manupulating  images via servlets on Tomcat.
In fact , there are tons of examples on the internet and on the archives
which shows
how to load an image from a local file and send to the browser, or
dynamically
generate a gif , or jpg image  and send it  to the user. Up to here ,
everything is allright.
But , it seems that there is no way to load an image from a file (at
server), write some text on it
or edit that image on hand, finally send it to hte browser as a new image.
I tried almost every way, in vain :(
I hope, someone overthere, an expert, be nice enough to answer my question,
though my
question might sound a little bit offtopic.
Looking forward to your help hopefully.
Cheers :)



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Global JNDI Resources

2002-03-12 Thread Eric . Wang


Hi everybody.

I know it tomcat4.x, we can JNDI resources for specific context. But I want
to have some kind of global JNDI. So all my applications can share same
resource. I found some info in developer's maillist. But it seems not
working. Does tomcat support global JNDI now?

Thanks,

Eric



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 





Re: Is a keystoreType other than jks possible?

2002-03-12 Thread Horia Muntean

Imagine u have a certificate file named server.crt (obtained with openssl)
In order to inport it in a keystore use this:

keytool -import -alias your_alias -file server.crt -keystore your_keystore

I have imported with success rsa signed certificates obtained with openssl.

In order to use the keystore in your client app, u shold specify this in the
cmd line:

java -cp yout_classpath -Djavax.net.ssl.trustStore=your_keystore .

- Original Message -
From: "Krijn van der Raadt" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 4:24 PM
Subject: RE: Is a keystoreType other than jks possible?


> I'm sorry, of course i meant to say server certificate
> If you can help me import it into the keystore, plese do.
> Thanks
>
> Krijn
>
> -Original Message-
> From: Horia Muntean [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 12 maart 2002 15:15
> To: Tomcat Users List
> Subject: Re: Is a keystoreType other than jks possible?
>
>
> U need to use a server key, or a server certificate?
> I u want to use a server certificate u can import it into the keystore.
> If u want to use the server key, I can't help.
>
> Horia Muntean
> - Original Message -
> From: "Krijn van der Raadt" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 12, 2002 4:12 PM
> Subject: Is a keystoreType other than jks possible?
>
>
> > The tomcat documentation tells me that the default keystoreType is
'JSK'.
> > Is this also the *only* keystoreType?
> > I need to use a server key made with openssl and not with the keytool.
> > Is this possible?
> >
> > Ing. K. van der Raadt
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




tomcat and start error with ultradev taglib extension application

2002-03-12 Thread ras

hi,

I've a few questions, please be patient I'm not  really confident with Java
and Tomcat.

1° question why can't I start tomcat from the command line? Better said
there's two tomcat binary, the one, when you install it, you can start it
directly from a link that the installation set in the start menu.
the other binary install tomcat and then you should configure all the file.
So far I can see both binary should be able to be started from the command
line, but I installed the second one first, and when I tried to start the
startup file, like I've done with tomcat 3.1 version, it says that the most
environment variable are wrong, though the environment var are all right.
then I install the first binary, which organizes everything, so that I can
start directly from the start menu, and this works ok, but when I try to
start it from the command line I receive the same error message.

2° the second question is implicit to the first. I would like to capture the
error messages. How could  I achieve this? I use to work with a cygwin
environment, and if I can't use the console I don't know another way to do
it, and I receive some which I can't capture because they rush thru the
console.

3° I try to configure the ultradev extension for the jakarta-tag-lib, I
followed the tutorial, which is delivered with the extension, I succeed
until to the live mode of the ultradev, but when I try to call the tag lib
trees in the window user taglib I see instead a series of error message from
Catalina. I'm Walked through the user list, and seems that someone has had a
similar problem, another user sugested to execut:
http://localhost:8080/TLDParser/servlet/TLDParser?mode=ultradev&prefix=strut
s I've tried this too, even though I don't  know what that ist and I recieve
this message. Please Help, many thks in advance.


°
Begin
javax.servlet.ServletException: Cannot allocate servlet instance for path
/TLDParser/servlet/TLDParser
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:415)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:484)

root cause

java.lang.VerifyError: (class: TLDParser, method: parseTLD signature:
(Ljava/io/File;)V) Incompatible object argument for function cal

Re: apache won't start

2002-03-12 Thread rsequeira


Maybe you could you try starting Apache from the command prompt (instead of
as a service) and check the error that is thrown.
RS




"Bill Tantzen" <[EMAIL PROTECTED]> on 03/12/2002 08:14:03 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:  apache won't start


No doubt this has come up before, but I am new to tomcat 4.0.x, so please
excuse this elementary query.

Platform: NT4.0 SP6

Apache 1.3 and Tomcat 4.0.3 work fine as standalone applications, but when
I
try to connect them using mod_webapp, the Apache service will not start.  I
have added mod_webapp.so and libapr.dll to my modules/ directory (in fact I
copied the dll to \winnt\system32 as well).  I have added the following
line
to my httpd.conf:

LoadModule webapp_module modules/mod_webapp.so

And I have tried both adding and deleting the following directive:

AddModule mod_webapp.c

In all cases, the Apache service will not start, giving the following
error:
Error 2140: An internal Windows NT error occurred.

If you have any suggestions, or online sources where I can look for help,
please send them my way.  I will be doing a similar setup on WinXP (or
trying to) in the near future as well, so if anyone has any "heads-up"
there, let me know too!

TIA,
Bill



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Is a keystoreType other than jks possible?

2002-03-12 Thread Krijn van der Raadt

I'm sorry, of course i meant to say server certificate
If you can help me import it into the keystore, plese do.
Thanks

Krijn

-Original Message-
From: Horia Muntean [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 12 maart 2002 15:15
To: Tomcat Users List
Subject: Re: Is a keystoreType other than jks possible?


U need to use a server key, or a server certificate?
I u want to use a server certificate u can import it into the keystore.
If u want to use the server key, I can't help.

Horia Muntean
- Original Message - 
From: "Krijn van der Raadt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 4:12 PM
Subject: Is a keystoreType other than jks possible?


> The tomcat documentation tells me that the default keystoreType is 'JSK'.
> Is this also the *only* keystoreType?
> I need to use a server key made with openssl and not with the keytool. 
> Is this possible?
> 
> Ing. K. van der Raadt
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: apache won't start

2002-03-12 Thread Ralph Einfeldt

I fell in the same trap some month ago. :)

The newer apaches uses xxx.so under both plattform.

I don't have the version at hand where this change 
was introduced.

> -Ursprüngliche Nachricht-
> Von: PELOQUIN,JEFFREY (Non-HP-Boise,ex1)
> [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 12. März 2002 15:19
> An: 'Tomcat Users List'
> Betreff: RE: apache won't start
> 
> 
> shouldn't you use mod_webapp.dll instead of mod_webapp.so
> for a windows box, or does windows support .so as well?

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Is a keystoreType other than jks possible?

2002-03-12 Thread Horia Muntean

U need to use a server key, or a server certificate?
I u want to use a server certificate u can import it into the keystore.
If u want to use the server key, I can't help.

Horia Muntean
- Original Message - 
From: "Krijn van der Raadt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 4:12 PM
Subject: Is a keystoreType other than jks possible?


> The tomcat documentation tells me that the default keystoreType is 'JSK'.
> Is this also the *only* keystoreType?
> I need to use a server key made with openssl and not with the keytool. 
> Is this possible?
> 
> Ing. K. van der Raadt
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: apache won't start

2002-03-12 Thread PELOQUIN,JEFFREY (Non-HP-Boise,ex1)

shouldn't you use mod_webapp.dll instead of mod_webapp.so
for a windows box, or does windows support .so as well?

-Original Message-
From: Bill Tantzen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 7:14 AM
To: Tomcat Users List
Subject: apache won't start



No doubt this has come up before, but I am new to tomcat 4.0.x, so please
excuse this elementary query.

Platform: NT4.0 SP6

Apache 1.3 and Tomcat 4.0.3 work fine as standalone applications, but when I
try to connect them using mod_webapp, the Apache service will not start.  I
have added mod_webapp.so and libapr.dll to my modules/ directory (in fact I
copied the dll to \winnt\system32 as well).  I have added the following line
to my httpd.conf:

LoadModule webapp_module modules/mod_webapp.so

And I have tried both adding and deleting the following directive:

AddModule mod_webapp.c

In all cases, the Apache service will not start, giving the following error:
Error 2140: An internal Windows NT error occurred.

If you have any suggestions, or online sources where I can look for help,
please send them my way.  I will be doing a similar setup on WinXP (or
trying to) in the near future as well, so if anyone has any "heads-up"
there, let me know too!

TIA,
Bill



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Is a keystoreType other than jks possible?

2002-03-12 Thread Krijn van der Raadt

The tomcat documentation tells me that the default keystoreType is 'JSK'.
Is this also the *only* keystoreType?
I need to use a server key made with openssl and not with the keytool. 
Is this possible?

Ing. K. van der Raadt

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




apache won't start

2002-03-12 Thread Bill Tantzen


No doubt this has come up before, but I am new to tomcat 4.0.x, so please
excuse this elementary query.

Platform: NT4.0 SP6

Apache 1.3 and Tomcat 4.0.3 work fine as standalone applications, but when I
try to connect them using mod_webapp, the Apache service will not start.  I
have added mod_webapp.so and libapr.dll to my modules/ directory (in fact I
copied the dll to \winnt\system32 as well).  I have added the following line
to my httpd.conf:

LoadModule webapp_module modules/mod_webapp.so

And I have tried both adding and deleting the following directive:

AddModule mod_webapp.c

In all cases, the Apache service will not start, giving the following error:
Error 2140: An internal Windows NT error occurred.

If you have any suggestions, or online sources where I can look for help,
please send them my way.  I will be doing a similar setup on WinXP (or
trying to) in the near future as well, so if anyone has any "heads-up"
there, let me know too!

TIA,
Bill



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




  1   2   >