Completely frustrated with NoClassDefFoundError...

2001-06-26 Thread [ .--- --- .... -. / -... --- .-- . -. ]


  Environment:

  I've got Tomcat 3.2.2 under IIS 5 as an NT in-process with JavaService and
am using JDK1.3.

  I installed the JavaService with the "hotspot" option, rather than the
"classic" option.

  I compile everything under JBuilder 4 on another machine, also using
JDK1.3.

  Tried creating both a /streamer directory under webapps, and also putting
it in another directory and adding a context in server.xml.  Tomcat service
starts up and runs non-bean JSPs just fine.  However, anytime I try and use
a bean in a JSP [], I get a 500 error.  The file
webapps/streamer/WEB-INF/classes/main/Validate.class DOES exist, the line
"package main;" is appropriately in the source code, and I've made sure both
the class declaraction and the methods in the bean are public.

  Strange thing is that I could have sworn this all worked when I tested
Tomcat out - perhaps this was before I installed JavaService?  Even
stranger, when I open up jasper.log, it says "Classpath according to the
servlet engine is: E:\tomcat\webapps\streamer\WEB-INF\classes" among other
things.  So, Tomcat's classpath seems right, my .class file in the right
package, I've rechecked case-sensitivity at least two dozen times, why can't
it see this or any other .class file?

  ANY help on this would be greatly appreciated, I'm tearing my limbs off
here.

  Full error message underneath my signature.

  Thanks in advance.
  - John


---
Error: 500
Location: /streamer/authenticate.jsp
Internal Servlet Error:

javax.servlet.ServletException: main/Validate$5
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

Root cause:
java.lang.NoClassDefFoundError: main/Validate$5
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at java.beans.Beans.instantiate(Beans.java:207)
at java.beans.Beans.instantiate(Beans.java:51)
at
_0002fauthenticate_0002ejspauthenticate_jsp_7._jspService(_0002fauthenticate
_0002ejspauthenticate_jsp_7.java:72)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)




Re: apache & tomcat as services under Linux

2001-06-26 Thread Pier Paolo Bortone

Grazie Antoni,
you are right. The last night, after several tests, I have found that Linux
was running on runlevel 5, then I have moved my links on run level 5.

Now I want remove the GNOME installation to access to Linux via telnet only.

I want uninstall GNOME and modify the runlevel via xterm.

Do you know where I can find informations about?

Thanks for your time.

- Original Message -
From: "Antoni Reus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 9:27 AM
Subject: Re: apache & tomcat as services under Linux


> Hi,
>
> The scripts should be named "apache" ant "tomcat" and should be
> in  /etc/rc.d/init.d/
>
> then you should make a symbolic link to them in /etc/rc.d/rc3.d/
> in the case that you start your box in the runlevel 3 (note that if when
you
> start your box it runs the X windows you are in run level 5, and you
should
> change rc3.d/ for rc5.d/. The links should be called S96tomcat and
> S97apache (I was wrong in my first post, yes tomcat should be run first).
>
> Saludos,
> -- Antoni Reus
>
> - Original Message -
> From: "Pier Paolo Bortone" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 22, 2001 5:29 PM
> Subject: Re: apache & tomcat as services under Linux
>
>
> > OK,
> > I have created 2 different scripts, one for apache and one for tomcat.
> These
> > scripts works fine if I call them manualli: ./S97apache start or
> ./S96tomcat
> > start or ./K15
> > But if I restart Linux, when it is up both the tomcat and apache
processes
> > are not up.
> > I have tried to examine the /var/log/boot.log but I don't found nothing
> > about.
> >
> > Why??
> > :-(((
> > Pier Paolo.
> > - Original Message -
> > From: "Antoni Reus" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 20, 2001 4:47 PM
> > Subject: Re: apache & tomcat as services under Linux
> >
> >
> > > Hi,
> > >
> > > You should create a script with something like
> > > and put it on  /etc/rc.d/init.d/
> > >
> > >  cut here---
> > > #!/bin/sh
> > >
> > > # Set this as you have it in your sistem
> > > APACHE_HOME=/usr/local/apache
> > > TOMCAT_HOME=/usr/local/jakarta/tomcat
> > >
> > > # Test apachectl
> > > if [ ! -x $APACHE_HOME/bin/apachectl ]
> > > then
> > > echo apachectl not found
> > > exit
> > > fi
> > >
> > > # Test tomcat.sh
> > > if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ]
> > > then
> > >echo tomcat not found
> > >exit
> > > fi
> > >
> > > case $1 in
> > > start)
> > > ## Start services
> > > $APACHE_HOME/bin/apachectl start
> > > $TOMCAT_HOME/bin/startup.sh
> > > ;;
> > > stop)
> > > $TOMCAT_HOME/bin/shutdown.sh
> > > $APACHE_HOME/bin/apachectl stop
> > > ;;
> > > esac
> > > -cut here --
> > >
> > > name it "apache-tomcat" and give it execution permissions
> > > with
> > > chmod u+x  apache-tomcat
> > >
> > > Then with control-panel you can link it to the run-level 3
> > > or you can make it directly with
> > >
> > > # Start in run level 3
> > > cd /etc/rc.d/rc3.d
> > > ln -s ../init.d/apache-tomcat S99apache-tomcat
> > >
> > > # Stop
> > > cd ../rc0.d
> > > ln -s ../init.d/apache-tomcat K11apache-tomcat
> > >
> > >
> > > Saludos,
> > >
> > > -- Antoni Reus
> > >
> > > - Original Message -
> > > From: "Pier Paolo Bortone" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, June 20, 2001 2:15 PM
> > > Subject: apache & tomcat as services under Linux
> > >
> > >
> > > Hi,
> > > I need to start to use apache &  tomcat in a production environment,
> thus
> > I
> > > need to start them as services.
> > >
> > > I'm using RedHat 7.1, someone knows which scripts I have to put in
> rc3.d.
> > >
> > > Thanks for your time.
> > >
> > > Pier Paolo.
> > >
> >




Tomcat4.0 and client authentication

2001-06-26 Thread sanjeev sharma

Hi All!
I 'm facing the diffculity over client authentication
in Tomcat 4.0
Can anybody guide me how to configure it.If some
cerificate(client) has to be placed over server end
then where to place.
I would be thankful for complete info.   
regards



=
My Warm wish are always with U
Do Send the Reply back
Waiting for your reply

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



tomcat 3.2.2 on Tru64 UNIX v5.1 problems

2001-06-26 Thread Stewart Mclean

Hi guys, I've got some strange problems with tomcat 3.2.2 on an alpha box 
running Tru64 UNIX v5.1. I'm using the binaries but I'm experiencing the 
following problems:

*) startup.sh and tomcat.sh don't start tomcat.
   Neither script is finding the server.xml file yet the file is in its
   default location.
  
*) To start tomcat I have to use the following:
   tomcat.sh start -f conf/server.xml
   
   tomcat starts but doesn't stop when I type the following:
   tomcat.sh stop -f conf/server.xml
   
   Any suggestions as to what is going wrong?
   
Thanks in advance,
Stewart

--
Stewart Mclean
UNIX Support Group
Information Management Services
Curtin University of Technology
GPO Box U1987
Perth 6845
Ph: (08) 9266 7495
Email: [EMAIL PROTECTED]

The manual said install Windows 98 or better.
.so I installed Linux!


and yes, my password is the same as my dog's name. My dog's name is 
4%&12ab!! but I change it every week. Sure does confuse the hell out of my dog!





OT: Changing runlevel in Linux, was Re: apache & tomcat as services under Linux

2001-06-26 Thread Antoni Reus

Hi,

You can change the runlevel editing the /etc/inittab file,
you should put it at runlevel 3. It is not necesary to remove
GNOME.

- Original Message -
From: "Pier Paolo Bortone" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 9:16 AM
Subject: Re: apache & tomcat as services under Linux


> Grazie Antoni,
> you are right. The last night, after several tests, I have found that
Linux
> was running on runlevel 5, then I have moved my links on run level 5.
>
> Now I want remove the GNOME installation to access to Linux via telnet
only.
>
> I want uninstall GNOME and modify the runlevel via xterm.
>
> Do you know where I can find informations about?
>
> Thanks for your time.
>
> - Original Message -
> From: "Antoni Reus" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 26, 2001 9:27 AM
> Subject: Re: apache & tomcat as services under Linux
>
>
> > Hi,
> >
> > The scripts should be named "apache" ant "tomcat" and should be
> > in  /etc/rc.d/init.d/
> >
> > then you should make a symbolic link to them in /etc/rc.d/rc3.d/
> > in the case that you start your box in the runlevel 3 (note that if when
> you
> > start your box it runs the X windows you are in run level 5, and you
> should
> > change rc3.d/ for rc5.d/. The links should be called S96tomcat and
> > S97apache (I was wrong in my first post, yes tomcat should be run
first).
> >
> > Saludos,
> > -- Antoni Reus
> >
> > - Original Message -
> > From: "Pier Paolo Bortone" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, June 22, 2001 5:29 PM
> > Subject: Re: apache & tomcat as services under Linux
> >
> >
> > > OK,
> > > I have created 2 different scripts, one for apache and one for tomcat.
> > These
> > > scripts works fine if I call them manualli: ./S97apache start or
> > ./S96tomcat
> > > start or ./K15
> > > But if I restart Linux, when it is up both the tomcat and apache
> processes
> > > are not up.
> > > I have tried to examine the /var/log/boot.log but I don't found
nothing
> > > about.
> > >
> > > Why??
> > > :-(((
> > > Pier Paolo.
> > > - Original Message -
> > > From: "Antoni Reus" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, June 20, 2001 4:47 PM
> > > Subject: Re: apache & tomcat as services under Linux
> > >
> > >
> > > > Hi,
> > > >
> > > > You should create a script with something like
> > > > and put it on  /etc/rc.d/init.d/
> > > >
> > > >  cut here---
> > > > #!/bin/sh
> > > >
> > > > # Set this as you have it in your sistem
> > > > APACHE_HOME=/usr/local/apache
> > > > TOMCAT_HOME=/usr/local/jakarta/tomcat
> > > >
> > > > # Test apachectl
> > > > if [ ! -x $APACHE_HOME/bin/apachectl ]
> > > > then
> > > > echo apachectl not found
> > > > exit
> > > > fi
> > > >
> > > > # Test tomcat.sh
> > > > if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ]
> > > > then
> > > >echo tomcat not found
> > > >exit
> > > > fi
> > > >
> > > > case $1 in
> > > > start)
> > > > ## Start services
> > > > $APACHE_HOME/bin/apachectl start
> > > > $TOMCAT_HOME/bin/startup.sh
> > > > ;;
> > > > stop)
> > > > $TOMCAT_HOME/bin/shutdown.sh
> > > > $APACHE_HOME/bin/apachectl stop
> > > > ;;
> > > > esac
> > > > -cut here --
> > > >
> > > > name it "apache-tomcat" and give it execution permissions
> > > > with
> > > > chmod u+x  apache-tomcat
> > > >
> > > > Then with control-panel you can link it to the run-level 3
> > > > or you can make it directly with
> > > >
> > > > # Start in run level 3
> > > > cd /etc/rc.d/rc3.d
> > > > ln -s ../init.d/apache-tomcat S99apache-tomcat
> > > >
> > > > # Stop
> > > > cd ../rc0.d
> > > > ln -s ../init.d/apache-tomcat K11apache-tomcat
> > > >
> > > >
> > > > Saludos,
> > > >
> > > > -- Antoni Reus
> > > >
> > > > - Original Message -
> > > > From: "Pier Paolo Bortone" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, June 20, 2001 2:15 PM
> > > > Subject: apache & tomcat as services under Linux
> > > >
> > > >
> > > > Hi,
> > > > I need to start to use apache &  tomcat in a production environment,
> > thus
> > > I
> > > > need to start them as services.
> > > >
> > > > I'm using RedHat 7.1, someone knows which scripts I have to put in
> > rc3.d.
> > > >
> > > > Thanks for your time.
> > > >
> > > > Pier Paolo.
> > > >
> > >
>




Help on Security Issue - Tomcat 3.2.2

2001-06-26 Thread Murali Sethuraman

Hi,

We have a client who wants to use Tomcat 3.2.2 with Netscape WebServer
3.6.3. Can you please highlight any security issues involved with this
setup? If there are security concerns how this can be addressed. Thanks.

Regards,
Murali Sethuraman
ITS - Software & Services Team
GBM, General Marketing & Services Representative  of IBM WTC
P.O.Box 26454, Sharjah, United Arab Emirates.
Ph:+9716-5193207/556 Ext:207   Fax:+9716-5562063
E-Mail:[EMAIL PROTECTED]




Tomcat for IIS4

2001-06-26 Thread Patrick Low Sie Faat
Title: Tomcat for IIS4





Hi Sir,


I have the following error in the isapi.log: -


[jk_isapi_plugin.c (355)]: jk_ws_service_t::write, WriteClient failed
[jk_ajp12_worker.c (601)]: ajpv12_handle_response, error writing back to server
[jk_isapi_plugin.c (355)]: jk_ws_service_t::write, WriteClient failed
[jk_ajp12_worker.c (601)]: ajpv12_handle_response, error writing back to server
[jk_isapi_plugin.c (355)]: jk_ws_service_t::write, WriteClient failed
[jk_ajp12_worker.c (601)]: ajpv12_handle_response, error writing back to server
[jk_isapi_plugin.c (355)]: jk_ws_service_t::write, WriteClient failed
[jk_ajp12_worker.c (601)]: ajpv12_handle_response, error writing back to server
[jk_isapi_plugin.c (355)]: jk_ws_service_t::write, WriteClient failed
[jk_ajp12_worker.c (601)]: ajpv12_handle_response, error writing back to server
[jk_isapi_plugin.c (355)]: jk_ws_service_t::write, WriteClient failed



Could enlighten me about the error.


Thank you,
Patrick Low


 
Privileged and or confidential information may be contained in this e-mail.  If you are not the intended recipient, you are hereby notified that any use, dissemination, copying or retention of this e-mail and or its contents herein is strictly prohibited.

If you received this e-mail in error, please delete this e-mail permanently from your system, and notify the sender. 





mod)jk

2001-06-26 Thread Pragneshkumar Gandhi

Hello All
This is Pragneshkumar Gandhi from India.
I am new to this mailing list and tomcat world.
can any body suggest me good write up on tomcat and mod_jk
I am trying to configure apache and tomcat with mod_jk but 
not successful.

/servlet/Login not found on this sever.

this error is comming where login is the name of my servelt

pls guide me.

=

 : What do people think?
What, do people think?  :-) 

Regards,
Pragneshkumar Gandhi,
India.

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Tomcat 3.2.2 and win2000 - problem

2001-06-26 Thread Design



Dear Sirs!I try to move Apache and 
Tomcat3.2.2  from Linux to win2000 platform.On Linux platform it 
works.An error appear when I run tomcat.bat on Win2000:"can't find class 
org/apache/tomcat/startup/Tomcat"File Tomcat.java is 
ind:\jakarta-tomcat-3.2.2\src\org\apache\tomcat\startupthe bath file 
tomcat.bat is ind:\jakarta-tomcat-3.2.2\binThe 
autoexec.bat:-SETPATH=c:\;d:\;d:\jakarta-tomcat-3.2.2;d:\jakarta-tomcat-3.2.2\src\org\apache\tomcat\startupSET 
PATH=$PATH;d:\JDK;D:\JDK\BIN;d:\apacheset 
TOMCAT_HOME=d:\jakarta-tomcat-3.2.2set 
JAVA_HOME=D:\JDK--I can't understad where and what I 
missed?Thank you,Maxim.


AW: Tomcat 3.2.2 and win2000 - problem

2001-06-26 Thread Ralph Einfeldt

You must have the class in the classpath not the source.

See where your Tomcat.class is located and correct the path.

-Ursprungliche Nachricht-
Von: Design [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. Juni 2001 11:33
An: [EMAIL PROTECTED]
Betreff: Tomcat 3.2.2 and win2000 - problem

File Tomcat.java is in
d:\jakarta-tomcat-3.2.2\src\org\apache\tomcat\startup

PATH=c:\;d:\;d:\jakarta-tomcat-3.2.2;d:\jakarta-tomcat-3.2.2\src\org\apache\
tomcat\startup




tomcat 3.2.2 session already invalidated-serious problem

2001-06-26 Thread Its Me.. Karthik

Hi,
 im usuing tomcat 3.2.1..when i invalidate my session im getting error..
this is my piece of code
if(monitor.containsKey(uname)){
  HttpSession oldSession = (HttpSession)monitor.get(uname);
  oldSession.invalidate();
}
the error is
 
Internal Servlet Error:javax.servlet.ServletException: setAttribute: Session already invalidated
	at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
	at karthik._0002fkarthik_0002fpage_00031_0002ejsppage1_jsp_2._jspService(_0002fkarthik_0002fpage_00031_0002ejsppage1_jsp_2.java:129)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)

Root cause: java.lang.IllegalStateException: setAttribute: Session already invalidated
	at org.apache.tomcat.session.StandardSession.setAttribute(StandardSession.java:721)
	at karthik._0002fkarthik_0002fpage_00031_0002ejsppage1_jsp_2._jspService(_0002fkarthik_0002fpage_00031_0002ejsppage1_jsp_2.java:111)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)
 please help me..very urgentkarthikGet Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Tomcat + FOP, missing method in org.w3c.dom.Node

2001-06-26 Thread Stefan Neumann

Hi,

I try to use FOP 0.17.0 with Tomcat 3.22

It seems that FOP is calling a method from the org.w3c.dom.Node.class that's
not
available. Is it possible that Tomcat insists on using the Node.class that
is
part of parser.jar in the Tomcat/lib-directory ??

I already tried to put xalan.jar and xerces.jar into this directory and
added
two lines to tomcat.bat:

if exist "%TOMCAT_HOME%\lib\xerces.jar" set
CP=%CP%;%TOMCAT_HOME%\lib\xerces.jar
if exist "%TOMCAT_HOME%\lib\xalan.jar" set
CP=%CP%;%TOMCAT_HOME%\lib\xalan.jar

but it doesn't help:

javax.servlet.ServletException: org.w3c.dom.Node: method
getNamespaceURI()Ljava/lang/String; not found
at org.apache.fop.apps.Driver.buildFOTree(Driver.java, Compiled Code)

Thanks for any hint




Adding new Context to Tomcat

2001-06-26 Thread megacom int

Hi,

I've set up the JSP to run in IIS5. I want to use new
context, but I don't know how to add the new context
in Tomcat. The tomcat IIS HOWTO instruction doesn't
discuss it. 

I've tried to use the ContextAdmin to do it but I
cann't log in the page even I tried with the domain
admin login.

Could you help me out of this.

Thanks,

ken


_
http://messenger.yahoo.com.au - Yahoo! Messenger
- Voice chat, mail alerts, stock quotes and favourite news and lots more!



RE: Problem in IIS 5.0 and Tomcat 3.2,1 installation

2001-06-26 Thread Randy Layman


If the filter doesn't have a green arrow then it can't be working,
and therefore the log line is to be expected.

Problems getting a green arrow up are always related to one of two
things:
1.  Incorrect registry settings (recheck your spelling and spacing)
2.  No adding the filter with the correct dll path (I always suggest
using the browse button - it may be slower by it eliminates typing mistakes)

Randy

> -Original Message-
> From: INGRP Avi Inbar 5292 [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 1:23 AM
> To: [EMAIL PROTECTED]
> Subject: Problem in IIS 5.0 and Tomcat 3.2,1 installation
> 
> 
> Hi,
> 
>  I would appreciate help on a win 2000 IIS 5.0 and Tomcat 3.2,1.
> 
>  Working by the instructions as per 'Tomcat IIS HowTo.htm'.
> 
>  The filter isapi_redirect.dll fails to become green and
>stays red and face down.
> 
> 
>  I checked in accordance with the trouble shooting procedure in the 
>   'Tomcat IIS HowTo.htm'. The IIS log file looks is as follows:
> 
>  2001-06-25 06:47:29 127.0.0.1 - 127.0.0.1 80 GET 
> /examples/jsp/index.html
>  - 404 Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0)
> 
>  The filter was not operated.
> 
>   
> 
> Thank You
>  Avi Inbar
> 
>  Telrad Networks
>  Phone. 972-8-9134303
> 
> 



RE: Completely frustrated with NoClassDefFoundError...

2001-06-26 Thread Randy Layman


It would seem that you haven't copied anonymous class #5 in Validate
over.  The actual class it can't find is main.Validate$5, the $ indicates an
inner class.  I believe that the 5 indicates the fifth anonymous (class
without a name) class.

I would suggest looking around and seeing if you have this file and
dropping it in the classes directory.

Randy

> -Original Message-
> From: [ .--- ---  -. / -... --- .-- . -. ]
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 3:39 AM
> To: [EMAIL PROTECTED]
> Subject: Completely frustrated with NoClassDefFoundError...
> 
> 
> 
>   Environment:
> 
>   I've got Tomcat 3.2.2 under IIS 5 as an NT in-process with 
> JavaService and
> am using JDK1.3.
> 
>   I installed the JavaService with the "hotspot" option, 
> rather than the
> "classic" option.
> 
>   I compile everything under JBuilder 4 on another machine, also using
> JDK1.3.
> 
>   Tried creating both a /streamer directory under webapps, 
> and also putting
> it in another directory and adding a context in server.xml.  
> Tomcat service
> starts up and runs non-bean JSPs just fine.  However, anytime 
> I try and use
> a bean in a JSP [ scope="request" />], I get a 500 error.  The file
> webapps/streamer/WEB-INF/classes/main/Validate.class DOES 
> exist, the line
> "package main;" is appropriately in the source code, and I've 
> made sure both
> the class declaraction and the methods in the bean are public.
> 
>   Strange thing is that I could have sworn this all worked 
> when I tested
> Tomcat out - perhaps this was before I installed JavaService?  Even
> stranger, when I open up jasper.log, it says "Classpath 
> according to the
> servlet engine is: 
> E:\tomcat\webapps\streamer\WEB-INF\classes" among other
> things.  So, Tomcat's classpath seems right, my .class file 
> in the right
> package, I've rechecked case-sensitivity at least two dozen 
> times, why can't
> it see this or any other .class file?
> 
>   ANY help on this would be greatly appreciated, I'm tearing 
> my limbs off
> here.
> 
>   Full error message underneath my signature.
> 
>   Thanks in advance.
>   - John
> 
> 
> ---
> Error: 500
> Location: /streamer/authenticate.jsp
> Internal Servlet Error:
> 
> javax.servlet.ServletException: main/Validate$5
>   at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
> .java:405)
>   at org.apache.tomcat.core.Handler.service(Handler.java:287)
>   at 
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>   at
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:79
> 7)
>   at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>   at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection
> (Ajp12ConnectionHandler.java:166)
>   at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:416)
>   at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.java:501)
>   at java.lang.Thread.run(Thread.java:484)
> 
> Root cause:
> java.lang.NoClassDefFoundError: main/Validate$5
>   at java.lang.Class.newInstance0(Native Method)
>   at java.lang.Class.newInstance(Class.java:237)
>   at java.beans.Beans.instantiate(Beans.java:207)
>   at java.beans.Beans.instantiate(Beans.java:51)
>   at
> _0002fauthenticate_0002ejspauthenticate_jsp_7._jspService(_000
> 2fauthenticate
> _0002ejspauthenticate_jsp_7.java:72)
>   at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.jasper.servlet.JspServlet$JspCountedServlet.service
> (JspServlet.ja
> va:130)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.ja
> va:282)
>   at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:429)
>   at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
> .java:405)
>   at org.apache.tomcat.core.Handler.service(Handler.java:287)
>   at 
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>   at
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:79
> 7)
>   at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>   at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection
> (Ajp12ConnectionHandler.java:166)
>   at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:416)
>   at
> org.apa

RE: Tomcat + FOP, missing method in org.w3c.dom.Node

2001-06-26 Thread Randy Layman


You need to get them info the classpath before the parser.jar file
is added.

You can do this several ways:
1.  Edit Tomcat.bat to add xalan/xerces before the internal
classpath is built
2.  Drop xalan/xerces into TOMCAT_HOME/lib and rename them to
_xalan/_xerces (or anything else that makes their file names before parser
when listed alphabetically).  Note, this only works if the tomcat.bat file
is setting the classpath dynamically, which it does on Unix and NT unless
you edited it.  I don't believe that this happens on Windows 9x/Me.

Randy

> -Original Message-
> From: Stefan Neumann [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 6:18 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat + FOP, missing method in org.w3c.dom.Node
> 
> 
> Hi,
> 
> I try to use FOP 0.17.0 with Tomcat 3.22
> 
> It seems that FOP is calling a method from the 
> org.w3c.dom.Node.class that's
> not
> available. Is it possible that Tomcat insists on using the 
> Node.class that
> is
> part of parser.jar in the Tomcat/lib-directory ??
> 
> I already tried to put xalan.jar and xerces.jar into this 
> directory and
> added
> two lines to tomcat.bat:
> 
> if exist "%TOMCAT_HOME%\lib\xerces.jar" set
> CP=%CP%;%TOMCAT_HOME%\lib\xerces.jar
> if exist "%TOMCAT_HOME%\lib\xalan.jar" set
> CP=%CP%;%TOMCAT_HOME%\lib\xalan.jar
> 
> but it doesn't help:
> 
> javax.servlet.ServletException: org.w3c.dom.Node: method
> getNamespaceURI()Ljava/lang/String; not found
> at org.apache.fop.apps.Driver.buildFOTree(Driver.java, Compiled Code)
> 
> Thanks for any hint
> 



RE: Adding new Context to Tomcat

2001-06-26 Thread Randy Layman


When using IIS there are two things that you need to do for a new
context.  First, add it to Tomcat (which you did with ContextAdmin).  Now,
you need to make IIS notice the new context.  Do this by editing the
uriworkermap.properties file.  You probably just want to copy the samples
for /examples/ and change the examples to your context name.  Now you need
to restart the IIS process - use either the Control Panel-Services applet or
restart the machine.  The IIS Admin app will not be sufficient!

Randy


> -Original Message-
> From: megacom int [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 6:59 AM
> To: [EMAIL PROTECTED]
> Subject: Adding new Context to Tomcat
> 
> 
> Hi,
> 
> I've set up the JSP to run in IIS5. I want to use new
> context, but I don't know how to add the new context
> in Tomcat. The tomcat IIS HOWTO instruction doesn't
> discuss it. 
> 
> I've tried to use the ContextAdmin to do it but I
> cann't log in the page even I tried with the domain
> admin login.
> 
> Could you help me out of this.
> 
> Thanks,
> 
> ken
> 
> 
> __
> ___
> http://messenger.yahoo.com.au - Yahoo! Messenger
> - Voice chat, mail alerts, stock quotes and favourite news 
> and lots more!
> 



autoexec.bat

2001-06-26 Thread Luc Juggery

Hello,

i've downloaded tomcat 3.2.2 but i got trouble
starting it up . Well, i'm not really familiar with
all of this in fact, i got the following error "OUT OF
ENVIRONNEMENT SPACE" and i'm also told that there is
something wrong with my CLASSPATH.
I use Windows 98, i have the following directory in my
c drive :c:/jdk1.2 and c:/jakarta-tomcat-3.2.2
Could anyone tell me what should be my autoexec.bat
file ?
i've just wrote something like this :

C:\PROGRA~1\NETWOR~1\MCAFEE~1\SCAN.EXE C:\
@IF ERRORLEVEL 1 PAUSE
@echo off
SET
PATH=c:\jdk1.2\bin;c:\jdk1.2\lib;c:\jakarta-tomcat-3.2.2\lib
SET %TOMCAT_HOME%=c:\jakarta-tomcat-3.2.2
SET
CLASSPATH=c:\jdk1.2\lib\tools.jar;%TOMCAT-HOME\lib\servlet.jar;c:\jakarta-tomcat-3.2.2\webapps\greeting
SET JAVA_HOME=c:\jdk1.2

which doesn't work (well, not really a surprise :-) )
as i'm sure there are some big mistakes in it 
Thanks a lot,
Luc

___
Do You Yahoo!? -- Pour faire vos courses sur le Net, 
Yahoo! Shopping : http://fr.shopping.yahoo.com



Re: autoexec.bat

2001-06-26 Thread Antoni Reus

Hi,

- Original Message -
From: "Luc Juggery" <[EMAIL PROTECTED]>

> C:\PROGRA~1\NETWOR~1\MCAFEE~1\SCAN.EXE C:\
> @IF ERRORLEVEL 1 PAUSE
> @echo off
> SET
> PATH=c:\jdk1.2\bin;c:\jdk1.2\lib;c:\jakarta-tomcat-3.2.2\lib
> SET %TOMCAT_HOME%=c:\jakarta-tomcat-3.2.2
> SET
>
CLASSPATH=c:\jdk1.2\lib\tools.jar;%TOMCAT-HOME\lib\servlet.jar;c:\jakarta-to
mcat-3.2.2\webapps\greeting

%TOMCAT-HOME%  not  %TOMCAT-HOME


> SET JAVA_HOME=c:\jdk1.2

Saludos
-- Antoni Reus




Enterprise JavaBeans support?

2001-06-26 Thread Aaron Cooper

Hello
 
   I have been checking the online documentation but I have not found the answer I am 
looking for.  I know that Tomcat support JavaBeans, but does it support EJB? 

Thanks

Aaron




AW: Enterprise JavaBeans support?

2001-06-26 Thread Thomas Bezdicek

no it does not.
look for jboss for ejb support, works with tomcat.

regards, tom

> -Ursprungliche Nachricht-
> Von: Aaron Cooper [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 26. Juni 2001 13:57
> An: >
> Betreff: Enterprise JavaBeans support?
> 
> 
> Hello
>  
>I have been checking the online documentation but I have not 
> found the answer I am looking for.  I know that Tomcat support 
> JavaBeans, but does it support EJB? 
> 
> Thanks
> 
> Aaron
> 



RE: Tomcat + FOP, missing method in org.w3c.dom.Node

2001-06-26 Thread Stefan Neumann


>> rename them to _xalan/_xerces
Good trick :) but doesn't seem to work on Win2000

>> add xalan/xerces before the internal classpath is built
Can anybody give an exapmle how this would look like?

Thanks, Randy!

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 26. Juni 2001 12:51
To: [EMAIL PROTECTED]
Subject: RE: Tomcat + FOP, missing method in org.w3c.dom.Node



You need to get them info the classpath before the parser.jar file
is added.

You can do this several ways:
1.  Edit Tomcat.bat to add xalan/xerces before the internal
classpath is built
2.  Drop xalan/xerces into TOMCAT_HOME/lib and rename them to
_xalan/_xerces (or anything else that makes their file names before parser
when listed alphabetically).  Note, this only works if the tomcat.bat file
is setting the classpath dynamically, which it does on Unix and NT unless
you edited it.  I don't believe that this happens on Windows 9x/Me.

Randy





RE: Enterprise JavaBeans support?

2001-06-26 Thread Randy Layman


Tomcat is not an EJB Container.  It can work with EJB Containers
like JBoss, WebLogic, etc by running the remote interfaces which will then
communicate with the EJB server.

Randy

> -Original Message-
> From: Aaron Cooper [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 7:57 AM
> To: <
> Subject: Enterprise JavaBeans support?
> 
> 
> Hello
>  
>I have been checking the online documentation but I have 
> not found the answer I am looking for.  I know that Tomcat 
> support JavaBeans, but does it support EJB? 
> 
> Thanks
> 
> Aaron
> 



AW: Enterprise JavaBeans support?

2001-06-26 Thread Arnold Senn

Hello Aaron,

You know that J2EE defines different containers?
So for Servlets/JSPs(also JSPs together with JavaBeans) you need a
webcontainer(e.g. Tomcat).
For EJBs you need an EJBcontainer which is normally part of an
ApplicationServer (e.g. Borland AppServer)

E.g. Borland AppServer include the current version of Tomcat and I like this
powerful product where you can use EJBs from JavaBeans very easily. You can
download a copy from their website.

Hope this helps

Arnold



-Ursprungliche Nachricht-
Von: Aaron Cooper [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. Juni 2001 13:57
An: >
Betreff: Enterprise JavaBeans support?


Hello

   I have been checking the online documentation but I have not found the
answer I am looking for.  I know that Tomcat support JavaBeans, but does it
support EJB?

Thanks

Aaron




how to use jsp:include inside a custom tag?

2001-06-26 Thread Richard Sand

I want to do a jsp:include inside a custom tag, but Tomcat gives me:

java.io.IOException: Illegal to flush within a custom tag

My JSP is:


   


Is there another way to do this?  I have had this code running on other app
servers without any problems.  Is this a case of Tomcat more strictly
adhering to specs? Any help greatly appreciated!

Best regards,

Richard




RE: Tomcat + FOP, missing method in org.w3c.dom.Node

2001-06-26 Thread Randy Layman


Strange, it should have worked, oh well...
There will be a place in tomcat.bat file labeled :setClasspath.
You want to replace
:setClasspath
set CP=%TOMCAT_HOME%\classes
with
:setClasspath
set CP=xalan.jar;xerces.jar;%TOMCAT_HOME%\classes

Be sure to make the paths to xalan and xerces are correct.

Randy

> -Original Message-
> From: Stefan Neumann [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 8:06 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat + FOP, missing method in org.w3c.dom.Node
> 
> 
> 
> >> rename them to _xalan/_xerces
> Good trick :) but doesn't seem to work on Win2000
> 
> >> add xalan/xerces before the internal classpath is built
> Can anybody give an exapmle how this would look like?
> 
> Thanks, Randy!
> 
> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Dienstag, 26. Juni 2001 12:51
> To: [EMAIL PROTECTED]
> Subject: RE: Tomcat + FOP, missing method in org.w3c.dom.Node
> 
> 
> 
>   You need to get them info the classpath before the 
> parser.jar file
> is added.
> 
>   You can do this several ways:
>   1.  Edit Tomcat.bat to add xalan/xerces before the internal
> classpath is built
>   2.  Drop xalan/xerces into TOMCAT_HOME/lib and rename them to
> _xalan/_xerces (or anything else that makes their file names 
> before parser
> when listed alphabetically).  Note, this only works if the 
> tomcat.bat file
> is setting the classpath dynamically, which it does on Unix 
> and NT unless
> you edited it.  I don't believe that this happens on Windows 9x/Me.
> 
>   Randy
> 
> 



Re: Enterprise JavaBeans support?

2001-06-26 Thread Sophie

Hello Aaron,

For EJB you need an additional server. Free EJB servers are Jonas (via
www.evidian.com) and jboss (I think www.jboss.com). I am working
with Jonas and am quite happy with the server and the support via
their mailing list.

There is also a combination of Jonas and Enhydra, which is an application
server. But I have no experience with that.

Sophie

Aaron Cooper schreef:

> Hello
>
>I have been checking the online documentation but I have not found the answer I 
>am looking for.  I know that Tomcat support JavaBeans, but does it support EJB?
>
> Thanks
>
> Aaron




RE: Adding new Context to Tomcat

2001-06-26 Thread Rajeshwar Rao.V

Tomcat IIS How to discuss about how to add context in case you integrated
Tomcat with IIS .
For adding context to standalone Tomcat, please open server.xml and find for
context tag for eaxmples.Copy an extra of this in server.xml and replace
examples with your own context name.

-raj-

-Original Message-
From: megacom int [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 4:29 PM
To: [EMAIL PROTECTED]
Subject: Adding new Context to Tomcat


Hi,

I've set up the JSP to run in IIS5. I want to use new
context, but I don't know how to add the new context
in Tomcat. The tomcat IIS HOWTO instruction doesn't
discuss it. 

I've tried to use the ContextAdmin to do it but I
cann't log in the page even I tried with the domain
admin login.

Could you help me out of this.

Thanks,

ken



_
http://messenger.yahoo.com.au - Yahoo! Messenger
- Voice chat, mail alerts, stock quotes and favourite news and lots more!



RE: Problem in IIS 5.0 and Tomcat 3.2,1 installation

2001-06-26 Thread Rajeshwar Rao.V

check out this URL.
http://www.verysimple.com/scripts/support_tc_iis.html

-raj-

-Original Message-
From: INGRP Avi Inbar 5292 [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 10:53 AM
To: [EMAIL PROTECTED]
Subject: Problem in IIS 5.0 and Tomcat 3.2,1 installation


Hi,

 I would appreciate help on a win 2000 IIS 5.0 and Tomcat 3.2,1.

 Working by the instructions as per 'Tomcat IIS HowTo.htm'.

 The filter isapi_redirect.dll fails to become green and
   stays red and face down.


 I checked in accordance with the trouble shooting procedure in the 
  'Tomcat IIS HowTo.htm'. The IIS log file looks is as follows:

 2001-06-25 06:47:29 127.0.0.1 - 127.0.0.1 80 GET /examples/jsp/index.html
 - 404 Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0)

 The filter was not operated.

  

Thank You
 Avi Inbar

 Telrad Networks
 Phone. 972-8-9134303




Unsafe path

2001-06-26 Thread Keuck, Carl Jan

Hi out there,

I'm trying to run Cocoon 1.8.2 on Apache 1.3.12 an Tomcat 3.2.2 on 
WinNT4.0. Installation looks fine to me, but somehow it's not working.

Tomcat tells me:
2001-06-26 01:52:42 - Ctx( /cocoon ): Unsafe path 
D:\Programme\Apache_Group\jakarta-tomcat-3.2.2\webapps\cocoon 
/Web-inf/cocoon.properties

What can I do?

Charly




RE: Tomcat + FOP, missing method in org.w3c.dom.Node

2001-06-26 Thread Stefan Neumann

NOW IT WORKS :)

For those with similar problems:
xalan.jar and xerces.jar are in the Tomcat-lib-folder and the relevant part
of the tomcat.bat is

rem - Set Up The Runtime
Classpath --

:setClasspath
set
CP=%TOMCAT_HOME%\lib\xalan.jar;%TOMCAT_HOME%\lib\xerces.jar;%TOMCAT_HOME%\cl
asses

Thank a lot to Randy!


-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 26. Juni 2001 13:41
To: [EMAIL PROTECTED]
Subject: RE: Tomcat + FOP, missing method in org.w3c.dom.Node



Strange, it should have worked, oh well...
There will be a place in tomcat.bat file labeled :setClasspath.
You want to replace
:setClasspath
set CP=%TOMCAT_HOME%\classes
with
:setClasspath
set CP=xalan.jar;xerces.jar;%TOMCAT_HOME%\classes

Be sure to make the paths to xalan and xerces are correct.

Randy




Needs to open 2 ports on Tomcat 3.2.1, how to do?

2001-06-26 Thread Vuillamy Andreane

Hi all,

I'm trying to upgrade Tomcat from an old version (I don't know which
one) to Tomcat 3.2.1, for the application I'm working on. In the past,
two ports where specified in the server.xml file :




We used the adminPort of the tag server to open a port for an RMI server
and we used the port of the context manager as the default (Http
prtocol).
On the version 3.2.1, I found the default Http connector declaration in
the server.xml file, but I cannot find anthing to set the port of our
RMI server. I tried to use the AJP12 connector, but when the RMI server
is launched, the exception java.io.IOException: Stream broken occurs.

How do I do to open an RMI port? Do I have to develop an RMI handler, in
order to create a new connector that handles this?

Thanks in advance,

Andreane Vuillamy.




FW: jspC and taglib problem

2001-06-26 Thread Sibon Barman

I am forwarding the attached email again  seems like I sent the email at
a bad time yesterday (no response yet).

> [Sorry to crosspost against Struts --- I think the problem could be fixed
> by either Struts or Tomcat audience]
> 
> I am using Tomcat 3.2.2 and Struts 1.0 for translating the jsp pages.
> 
> When I compile a jsp pages containing reference to struts cutom tag
> library, I get the following error message:
> 
> 2001-06-25 04:35:08 - Package name is: jsp
> 2001-06-25 04:35:08 - Class file name is:
> D:\web-test\Ems2.0\win\WEB-INF\classes\JspServ_pre\jsp\_0002fjsp_0002finde
> x_0002ejspindex.class
> 2001-06-25 04:35:08 - Java file name is:
> D:\web-test\Ems2.0\win\WEB-INF\classes\JspServ_pre\jsp\index.java
> 2001-06-25 04:35:08 - Class name is: index
> 2001-06-25 04:35:08 - 
> Handling Directive: page  {language=java}
> 2001-06-25 04:35:08 - Accepted org.apache.jasper.compiler.Parser$Directive
> at D:\web-test\Ems2.0\win\jsp\index.jsp(0,0)
> 2001-06-25 04:35:08 - 
> Handling Directive: taglib{uri=/WEB-INF/struts-bean.tld, prefix=bean}
> 
> BUILD FAILED
> 
> D:\web-test\dev.xml:1141: java.lang.LinkageError: loader constraints
> violated when linking org/xml/sax/EntityResolver class
> --- Nested Exception ---
> java.lang.LinkageError: loader constraints violated when linking
> org/xml/sax/EntityResolver class
>   at
> org.apache.jasper.compiler.JspUtil.parseXMLDocJaxp(JspUtil.java:161)
>   at org.apache.jasper.compiler.JspUtil.parseXMLDoc(JspUtil.java:138)
>   at
> org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.ja
> va:170)
>   at
> org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseE
> ventListener.java:706)
>   at
> org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingLi
> stener.java:116)
>   at
> org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
>   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
>   at org.apache.jasper.JspC.parseFile(JspC.java:376)
>   at org.apache.jasper.JspC.parseFiles(JspC.java:641)
>   at org.apache.jasper.JspC.main(JspC.java:689)
>   at java.lang.reflect.Method.invoke(Native Method)
>   at
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:127)
>   at org.apache.tools.ant.taskdefs.Java.run(Java.java:260)
>   at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:123)
>   at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
>   at org.apache.tools.ant.Target.execute(Target.java:153)
>   at org.apache.tools.ant.Project.runTarget(Project.java:898)
>   at org.apache.tools.ant.Project.executeTarget(Project.java:536)
>   at org.apache.tools.ant.Project.executeTargets(Project.java:510)
>   at org.apache.tools.ant.Main.runBuild(Main.java:421)
>   at org.apache.tools.ant.Main.main(Main.java:149)
> 
> I made sure I have the tld files in the WEB-INF dir. Here is the snippet
> of jsp that is producing the error:
> index.jsp:
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
>   
> 
> 
>   
> 
>   
> 
>   
> 
>   
> 
> 
>redisplay="false"/>
> 
>   
> 
>   
> 
>   
> 
> 
>   
> 
>   
> 
> 
> 
> 
> 
> 
> 
> Those jsps without struts custom tag library reference gets precompiled
> properly. I have the jasper.jar, struts.jar, jaxp.jar, parser.jar and
> webserver.jar from Tomcat 3.2.2 and Struts 1.0 in the class path of
> org.apache.jasper.JspC.
> 
> Any suggestion to fix the problem of pre-compilation would be appreciated.
> 
> 
> 
> Sibon Barman
> SS8 Networks, Inc.
> Suite 500
> 495 March Road, Kanata, 
> Ontario K2K 3G1
> 
> *: (613)592-2100 ext:3281
> *: [EMAIL PROTECTED]
> 
> 

 winmail.dat


Re: Problem in IIS 5.0 and Tomcat 3.2,1 installation

2001-06-26 Thread Thomas Colin de Verdiere

In version IIS 5.0 IIS use a new way to stock its filter path and so on,
It was in the registry it's now in a file
.\winnt\system32\inetserv\MetaBase.bin
so it's a compatibility problem, i do remove the file from the Management
Console and it does work. Try to edit MetaBase.bin in Hex and search
isapi_redirect.dll, if it's in well try as i do.

Tom

"Rajeshwar Rao.V" wrote:

> check out this URL.
> http://www.verysimple.com/scripts/support_tc_iis.html
>
> -raj-
>
> -Original Message-
> From: INGRP Avi Inbar 5292 [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 10:53 AM
> To: [EMAIL PROTECTED]
> Subject: Problem in IIS 5.0 and Tomcat 3.2,1 installation
>
> Hi,
>
>  I would appreciate help on a win 2000 IIS 5.0 and Tomcat 3.2,1.
>
>  Working by the instructions as per 'Tomcat IIS HowTo.htm'.
>
>  The filter isapi_redirect.dll fails to become green and
>stays red and face down.
>
>  I checked in accordance with the trouble shooting procedure in the
>   'Tomcat IIS HowTo.htm'. The IIS log file looks is as follows:
>
>  2001-06-25 06:47:29 127.0.0.1 - 127.0.0.1 80 GET /examples/jsp/index.html
>  - 404 Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0)
>
>  The filter was not operated.
>
>
>
> Thank You
>  Avi Inbar
>
>  Telrad Networks
>  Phone. 972-8-9134303




Tomcat causing crashes, please help

2001-06-26 Thread Mark Sutton

I have just installed Tomcat 3.2.2  as a standalone on Win2000 Pro,
P2-400MHz, 196MB.
I have also
installed j2se 1.3.0_03 and j2ee 1.2.1.  Apart from changing JAVA_HOME,
TOMCAT_HOME and CLASSPATH (to enable the quick compiling of classes), I have
made no changes to the startup, shutdown and tomcat batch files.

However, when running, it frequently crashes my otherwise stable system;
completely and without warning.  Sometimes it crashes when I shutdown
tomcat.  This even includes the default Tomcat html
page.  Opening the Tomcat
index file produces the following output in the command window:



2001-06-25 10:55:15 - Ctx(  ): IOException in: R(  + /index.html + null)
Connection aborted by peer:
 socket write error
2001-06-25 10:55:16 - Ctx(  ): IOException in: R(  + /tomcat-power.gif +
null) Connection aborted by
 peer: socket write error



As I'm about to embark on a servlet development project, this is quite a
worry for me.

Thanks.








Error: 500

2001-06-26 Thread alex chang

I've been following this little tutorial:
http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html?page=1

I'm up to the part of Adding Tag Libraries,
on page 4. So far, everything except this part
has worked. I get an HTTP 500 internal server
error. Here are the first four lines of that:

Error: 500
Location: /onjava/welcome.jsp
Internal Servlet Error:

org.apache.jasper.compiler.CompileException:
C:\jakarta-tomcat-3.3-m3\webapps\onjava\welcome.jsp(11,10) Unable to load
class com.onjava.HelloTag

I was wondering if anyone who has tried this
example also can help me out. Thanks..

-alex

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Tomcat stops servlets

2001-06-26 Thread Scott Weaver

I'm running tomcat 3.2.1 on W2K.

I've been running Tomcat successfully for sometime.
BUT (and there's always a but) after some time (in this case 88 hours)
Tomcat seems to start the servlet but then stop it. Tomcat is running and
allows a post to come in and it starts my servlet but the servlet doesn't
finish. There weren't any errors thrown in my servlet to cause it to stop.
If I restart Tomcat it comes back up fine but I need it running 24/7 (of
course).

Anyone know why this happens and/or how to fix it? The memory of tomcat at
the time I found the error was 35MB...yesterday it was 22MB. Is this a
memory issue?

Thanks,
Scott




Bean in application scope

2001-06-26 Thread Jack Li

Hello,

I have a java bean in application scope. The bean creates a database
connection pool. However, sometime the database gets reboot. Then, the jsp
pages have the bean included get crashed. How do I detect the exception and
reinitialize the bean?

Thanks
Jack



RE: httpsession and graceful shutdown in tomcat

2001-06-26 Thread Shai Deljo

Thanks,

-Original Message-
From: Andrew Zhdanov [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 6:18 PM
To: Shai Deljo
Subject: Re: httpsession and graceful shutdown in tomcat


Hello Shai,

Monday, June 25, 2001, 5:29:41 PM, you wrote:

SD> Hi,

SD> Does a graceful shutdown in a tomcat waits for all live httpsession to
die
SD> or just for all connections to close (response to all current requests)
?

SD> 10x

SD> Shai

I think it would be interesting for you to look at Servlet2.3
specification and Tomcat4.0 (beta unfortunetly) for that. There you
could see is sessionCreated and sessionDestroyed events in
HttpSessionListener interface. And yet, there if you session
attributes implements HttpSessionBindingListener (for session
attributes binding) then, your class for session attributes are
notified and waited for clean shut down before tomcat shuting down and
it may be later activated again when tomcat starts another day.
But i can say exaxtly about situation in current release (3.2)
Hope that helps a little.

-- 
Best regards,
 Andrew




RE: Tomcat causing crashes, please help

2001-06-26 Thread Randy Layman


I am running Tomcat on Win2K pro as well, using JDK 1.2.2_007 and
not having any problems.  I know that Sun has had lots of problems with
their 1.3 JDKs, maybe you should try upgrading to 1.3.1?

The error message that you list is not really significant.  If you
want more information about it look at:
http://www.aswethink.com/employees/randy/tomcat/IOException.html

Randy


> -Original Message-
> From: Mark Sutton [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 9:25 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat causing crashes, please help
> 
> 
> I have just installed Tomcat 3.2.2  as a standalone on Win2000 Pro,
> P2-400MHz, 196MB.
> I have also
> installed j2se 1.3.0_03 and j2ee 1.2.1.  Apart from changing 
> JAVA_HOME,
> TOMCAT_HOME and CLASSPATH (to enable the quick compiling of 
> classes), I have
> made no changes to the startup, shutdown and tomcat batch files.
> 
> However, when running, it frequently crashes my otherwise 
> stable system;
> completely and without warning.  Sometimes it crashes when I shutdown
> tomcat.  This even includes the default Tomcat html
> page.  Opening the Tomcat
> index file produces the following output in the command window:
> 
> 
> 
> 2001-06-25 10:55:15 - Ctx(  ): IOException in: R(  + 
> /index.html + null)
> Connection aborted by peer:
>  socket write error
> 2001-06-25 10:55:16 - Ctx(  ): IOException in: R(  + 
> /tomcat-power.gif +
> null) Connection aborted by
>  peer: socket write error
> 
> 
> 
> As I'm about to embark on a servlet development project, this 
> is quite a
> worry for me.
> 
> Thanks.
> 
> 
> 
> 
> 



Re: Unsafe path

2001-06-26 Thread Brett M. Bergquist

I had something similar when I ported from Tomcat 3.1 to Tomcat 3.2.2.  It
turned out I was calling a getResourceAsStream or something similar with a
trailing space at the end of the path that I was passing.  For example I was
calling something like 'getResourceAsStream("/foo/bar ")' as apposed to
'getResourceAsStream("/foo/bar").  Take a look to make sure that your path
to "cocoon.properties" does not contain a trailing space.

- Original Message -
From: Keuck, Carl Jan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 8:53 AM
Subject: Unsafe path


> Hi out there,
>
> I'm trying to run Cocoon 1.8.2 on Apache 1.3.12 an Tomcat 3.2.2 on
> WinNT4.0. Installation looks fine to me, but somehow it's not working.
>
> Tomcat tells me:
> 2001-06-26 01:52:42 - Ctx( /cocoon ): Unsafe path
> D:\Programme\Apache_Group\jakarta-tomcat-3.2.2\webapps\cocoon
> /Web-inf/cocoon.properties
>
> What can I do?
>
> Charly
>




RE: Bean in application scope

2001-06-26 Thread Randy Layman


This sounds like something that you need to deal with in the
internals of your bean - using the Connection's isClosed method (or
something like that).

Randy


> -Original Message-
> From: Jack Li [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 9:28 AM
> To: '[EMAIL PROTECTED]'
> Subject: Bean in application scope
> 
> 
> Hello,
> 
> I have a java bean in application scope. The bean creates a database
> connection pool. However, sometime the database gets reboot. 
> Then, the jsp
> pages have the bean included get crashed. How do I detect the 
> exception and
> reinitialize the bean?
> 
> Thanks
> Jack
> 



open xml/xsl files inside classpath

2001-06-26 Thread Pedro Salazar

Greetings,

I have a servlet which read some properties (using the ResourceBundle) 
from a properties file in a package PT.teste.props where exists a 
relation like this:

"
fileA.xml = file1.xsl
fileB.xml = file2.xsl
...
"

Of course getting the properties file is simple task because I just use 
the location in classpath, ex:

rb=ResourceBundle.getBundle("PT.teste.props."+properties_file);

But, now I would like to open both files, the xml and the xsl file, 
which are in a package PT.teste.xml. I tested using the absolute path to 
them, but is not very recommendable because tomorrow I probably will put 
it in another location or in another machine...

"
Source xmlSource = new javax.xml.transform.stream.StreamSource (new 
java.net.URL("file:///opt/jakarta-tomcat-3.2.1/webapps/servlet_teste/WEB-INF/classes/PT/teste/xml/fileA.xml").openStream());
Source xslSource = new javax.xml.transform.stream.StreamSource (new 
java.net.URL("file:///opt/jakarta-tomcat-3.2.1/webapps/servlet_teste/WEB-INF/classes/PT/teste/xml/file1.xsl").openStream());
"

Is there a easy way to open a file in a classpath directly? Or at least 
a way where the path is relative to the web application? A not very 
recommendable way just to solve my problem is use a path in a properties 
file which I would read in the init() of servlet... but, I wouldn't like 
to do it!

thanks,
Pedro Salazar.




Re: Enterprise JavaBeans support?

2001-06-26 Thread anil

Hi Aaron,

Check www.jboss.org. They have Tomcat and Jboss bundle together module and it is ready 
to roll.

anil

Aaron Cooper wrote:

> Hello
>
>I have been checking the online documentation but I have not found the answer I 
>am looking for.  I know that Tomcat support JavaBeans, but does it support EJB?
>
> Thanks
>
> Aaron




RE: open xml/xsl files inside classpath

2001-06-26 Thread William Kaufman

ServletContext.getResourceAsStream():

 
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContex
t.html#getResourceAsStream(java.lang.String)

(I believe it shows up starting in JSDK version 2.1, or Tomcat 3.2.)

-- Bill K. 

> -Original Message-
> From: Pedro Salazar [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 6:24 AM
> To: [EMAIL PROTECTED]
> Subject: open xml/xsl files inside classpath
> 
> 
> Greetings,
> 
> I have a servlet which read some properties (using the 
> ResourceBundle) 
> from a properties file in a package PT.teste.props where exists a 
> relation like this:
> 
> "
> fileA.xml = file1.xsl
> fileB.xml = file2.xsl
> ...
> "
> 
> Of course getting the properties file is simple task because 
> I just use 
> the location in classpath, ex:
> 
> rb=ResourceBundle.getBundle("PT.teste.props."+properties_file);
> 
> But, now I would like to open both files, the xml and the xsl file, 
> which are in a package PT.teste.xml. I tested using the 
> absolute path to 
> them, but is not very recommendable because tomorrow I 
> probably will put 
> it in another location or in another machine...
> 
> "
> Source xmlSource = new javax.xml.transform.stream.StreamSource (new 
> java.net.URL("file:///opt/jakarta-tomcat-3.2.1/webapps/servlet
> _teste/WEB-INF/classes/PT/teste/xml/fileA.xml").openStream());
> Source xslSource = new javax.xml.transform.stream.StreamSource (new 
> java.net.URL("file:///opt/jakarta-tomcat-3.2.1/webapps/servlet
> _teste/WEB-INF/classes/PT/teste/xml/file1.xsl").openStream());
> "
> 
> Is there a easy way to open a file in a classpath directly? 
> Or at least 
> a way where the path is relative to the web application? A not very 
> recommendable way just to solve my problem is use a path in a 
> properties 
> file which I would read in the init() of servlet... but, I 
> wouldn't like 
> to do it!
> 
> thanks,
> Pedro Salazar.
> 



RE: Odd Tomcat 3.3m3 Problem

2001-06-26 Thread Jason Koeninger

I know where to find the documentation on increasing the 
threads, but I thought it was set to 100 by default.  If that's 
the case, I'd love to know how 1 user could exhaust 100 
threads in a little less than 30 minutes.  This machine isn't 
live yet...I've just been doing testing on our new setup.

Keep in mind, these entries below are from the Apache 
machine, not Tomcat.  My thought was that mod_jk was 
caching connections to Tomcat, and when they needed 
to be used again, the connection was gone resulting in 
the errors below.  I could only guess that the error wasn't 
handled properly resulting in the odd results.

Anyway, thanks for the recommendation.  I'll switch my 
thread settings to make sure I know what they are and 
will see what happens.  If that doesn't work, I guess I'll 
go to ajp12.  Looks like I've got to find time to dig into the 
mod_jk code and work some of these problems out for 
myself.

Best Regards,

Jason


On Tue, 26 Jun 2001 08:20:57 +0200, GOMEZ Henri wrote:

>>In my mod_jk.log file, I'm getting a lot of different error 
>>messages that must 
>>be getting handled properly as this isn't happening as often 
>>as there are 
>>messages in the log. The one that looks to be of the frequency of this 
>>problem follows:
>>
>>[Mon Jun 25 12:01:05 2001]  [jk_ajp13_worker.c (579)]: Error 
>>sending request try
>> another pooled connection
>>[Mon Jun 25 12:01:08 2001]  [jk_ajp13_worker.c (579)]: Error 
>>sending request try another pooled connection
>
>You seems to be out of thread process on the java side.
>Try to increase the number of Ajp13 threads (in server.xml but I didn't
>remember how :) 






RE: open xml/xsl files inside classpath

2001-06-26 Thread Stefan Neumann

>>Or at least a way where the path is relative to the web application?

You can use getResourceAsStream() of the ServletContext.

Stefan

-Original Message-
From: Pedro Salazar [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 26. Juni 2001 15:24
To: [EMAIL PROTECTED]
Subject: open xml/xsl files inside classpath


Greetings,

I have a servlet which read some properties (using the ResourceBundle)
from a properties file in a package PT.teste.props where exists a
relation like this:

"
fileA.xml = file1.xsl
fileB.xml = file2.xsl
...
"

Of course getting the properties file is simple task because I just use
the location in classpath, ex:

rb=ResourceBundle.getBundle("PT.teste.props."+properties_file);

But, now I would like to open both files, the xml and the xsl file,
which are in a package PT.teste.xml. I tested using the absolute path to
them, but is not very recommendable because tomorrow I probably will put
it in another location or in another machine...

"
Source xmlSource = new javax.xml.transform.stream.StreamSource (new
java.net.URL("file:///opt/jakarta-tomcat-3.2.1/webapps/servlet_teste/WEB-INF
/classes/PT/teste/xml/fileA.xml").openStream());
Source xslSource = new javax.xml.transform.stream.StreamSource (new
java.net.URL("file:///opt/jakarta-tomcat-3.2.1/webapps/servlet_teste/WEB-INF
/classes/PT/teste/xml/file1.xsl").openStream());
"

Is there a easy way to open a file in a classpath directly? Or at least
a way where the path is relative to the web application? A not very
recommendable way just to solve my problem is use a path in a properties
file which I would read in the init() of servlet... but, I wouldn't like
to do it!

thanks,
Pedro Salazar.




RE: Odd Tomcat 3.3m3 Problem

2001-06-26 Thread GOMEZ Henri

>I know where to find the documentation on increasing the 
>threads, but I thought it was set to 100 by default.  If that's 
>the case, I'd love to know how 1 user could exhaust 100 
>threads in a little less than 30 minutes.  This machine isn't 
>live yet...I've just been doing testing on our new setup.

100 max by default but not a startup :)

>Keep in mind, these entries below are from the Apache 
>machine, not Tomcat.  My thought was that mod_jk was 
>caching connections to Tomcat, and when they needed 
>to be used again, the connection was gone resulting in 
>the errors below.  I could only guess that the error wasn't 
>handled properly resulting in the odd results.

What's you workers.properties file, could you send us a copy ?

>Anyway, thanks for the recommendation.  I'll switch my 
>thread settings to make sure I know what they are and 
>will see what happens.  If that doesn't work, I guess I'll 
>go to ajp12.  Looks like I've got to find time to dig into the 
>mod_jk code and work some of these problems out for 
>myself.

in ajp12 you'll see a performance loss since Apache will loose
time to reestablish the connection. Also did you have a firewall
between Apache and Tomcat, something which could drop connections
after a certain time of inactivity ?


>Best Regards,
>
>Jason
>
>
>On Tue, 26 Jun 2001 08:20:57 +0200, GOMEZ Henri wrote:
>
>>>In my mod_jk.log file, I'm getting a lot of different error 
>>>messages that must 
>>>be getting handled properly as this isn't happening as often 
>>>as there are 
>>>messages in the log. The one that looks to be of the 
>frequency of this 
>>>problem follows:
>>>
>>>[Mon Jun 25 12:01:05 2001]  [jk_ajp13_worker.c (579)]: Error 
>>>sending request try
>>> another pooled connection
>>>[Mon Jun 25 12:01:08 2001]  [jk_ajp13_worker.c (579)]: Error 
>>>sending request try another pooled connection
>>
>>You seems to be out of thread process on the java side.
>>Try to increase the number of Ajp13 threads (in server.xml 
>but I didn't
>>remember how :) 
>
>
>



web.xml not working

2001-06-26 Thread Erin Lester

I have created a web application as per the Servlet API specs and deployed
it into the webapps directory of Tomcat in a directory called 'sampleapp.'

The only way that I am able to access the webapp's servlet (which is in
sampleapp/WEB-INF/classes) is by the url
'SERVERADDRESS/sampleapp/servlet/SERVLETNAME' and this is only when I
don't have a web.xml file in the WEB-INF directory.  When I place the
web.xml file that I created (using to the documents on the Sun and
Jakarta sites) I am unable to find my servlet.

The servlet mapping in the web.xml file looks like this:


StoryGeneratorServlet 
StoryGenerator 



StoryGeneratorServlet 
/story 


I tried using the urls 'SERVERNAME/sampleapp/servlet/story' and
'SERVERNAME/sampleapp/story'

I also tried to install the J2EE sample 'petstore' web application but had
problems accessing the servlets with it too.  I am able to get to the jsps
and static files okay.

Does anyone know what I am doing wrong? 

Thanks!
Erin

PS - I'm using Tomcat 3.2 with Apache 1.3 on Sun 2.7




Tomcat 4 and apache. How to make them work together?

2001-06-26 Thread Alejandro Arredondo

I have installed Tomcat 4 configured it and it works
fine. Now I want it to work with apache together. 
Where can I find info on how to configure them?

Thanks in advance,
Alejandro Arredondo

_
Free E-mail --->
http://letodesigns.mail.everyone.net
Letodesigns & Programming Free e-mail
6MB limit
http://letodesigns.8k.com



Tomcat stops running ...

2001-06-26 Thread Erin Lester

I have Apache 1.3 and Tomcat 3.2 installed on Sun 2.7.  I have had no
problems with Apache, but Tomcat seems to stop running after a short
period of time (a few hours).  I restart it and it seems to work fine.
I also haven't seen any error messages popping up.

Any ideas as to why this is happening?

Thanks!
Erin




Re:Latin2 code page

2001-06-26 Thread Tomasz.Sucharzewski

You should get the parameter from request object (which comes in fact in
iso8859-1 page) and convert it to iso8859-2 or windows-1250.  You can do it by
creating String with the method new String(bytes[], isopage) - look in JDK
manuals.

Regards

 /) Tomasz Sucharzewski  (\
/ )Unix/Sybase Administrator ( \
  _( (__  Web-Application Development_) )_
 (((\ \>  /_>   Electronic Data Processing Department  <_\  



Hi,
 
I am using Czech 
characters (charset=windows-1250 ; that is Latin2 code page) in my .jsp pages, 
and the accented characters get transformed into question marks. How can I solve 
this?
 
Cheers,
Jimmy.
 


RE: Odd Tomcat 3.3m3 Problem

2001-06-26 Thread Randy Layman


I'm going to throw my 2 cents worth in here, did you, perhaps, stop
Tomcat after starting Apache?  I seem to remember that every time you stop
Tomcat, you must also stop Apache, then start Tomcat and start Apache.

Randy


> -Original Message-
> From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 10:20 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Odd Tomcat 3.3m3 Problem
> 
> 
> >I know where to find the documentation on increasing the 
> >threads, but I thought it was set to 100 by default.  If that's 
> >the case, I'd love to know how 1 user could exhaust 100 
> >threads in a little less than 30 minutes.  This machine isn't 
> >live yet...I've just been doing testing on our new setup.
> 
> 100 max by default but not a startup :)
> 
> >Keep in mind, these entries below are from the Apache 
> >machine, not Tomcat.  My thought was that mod_jk was 
> >caching connections to Tomcat, and when they needed 
> >to be used again, the connection was gone resulting in 
> >the errors below.  I could only guess that the error wasn't 
> >handled properly resulting in the odd results.
> 
> What's you workers.properties file, could you send us a copy ?
> 
> >Anyway, thanks for the recommendation.  I'll switch my 
> >thread settings to make sure I know what they are and 
> >will see what happens.  If that doesn't work, I guess I'll 
> >go to ajp12.  Looks like I've got to find time to dig into the 
> >mod_jk code and work some of these problems out for 
> >myself.
> 
> in ajp12 you'll see a performance loss since Apache will loose
> time to reestablish the connection. Also did you have a firewall
> between Apache and Tomcat, something which could drop connections
> after a certain time of inactivity ?
> 
> 
> >Best Regards,
> >
> >Jason
> >
> >
> >On Tue, 26 Jun 2001 08:20:57 +0200, GOMEZ Henri wrote:
> >
> >>>In my mod_jk.log file, I'm getting a lot of different error 
> >>>messages that must 
> >>>be getting handled properly as this isn't happening as often 
> >>>as there are 
> >>>messages in the log. The one that looks to be of the 
> >frequency of this 
> >>>problem follows:
> >>>
> >>>[Mon Jun 25 12:01:05 2001]  [jk_ajp13_worker.c (579)]: Error 
> >>>sending request try
> >>> another pooled connection
> >>>[Mon Jun 25 12:01:08 2001]  [jk_ajp13_worker.c (579)]: Error 
> >>>sending request try another pooled connection
> >>
> >>You seems to be out of thread process on the java side.
> >>Try to increase the number of Ajp13 threads (in server.xml 
> >but I didn't
> >>remember how :) 
> >
> >
> >
> 



URGENT jk_connect.c problem / UPDATE: weird log entry in mod_jk.log & other problems

2001-06-26 Thread Nico Wieland

hi again

i have some strange entries in my mod_jk.log, generated almost every minute:

[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL 
parameters

does anyone here have an idea what the problem could be?? we don't have these errors 
on the test server, but the production machine generates them every minute. i don't 
see anything that would misbehave, but it sure scares me not to know what is happening 
here.

>in addition, tomcat occasionally dies with a 
>
># An unexpected exception has been detected in native code outside the VM.
># Program counter=0xblahblah (don't have the exact code anymore)
>#
># Problematic Thread: prio=1 tid=0xblaah nid=0xblah runnable (don't have the exact 
>codes anymore)
>#
>Abort

this is fixed, it was a strange problem with oro-regex that we can reproduce only on 
the production server (unfortunately). when oro (perl5 matcher) was fed with a control 
character (\u-\u001f) it died and took tomcat with it (stack overflow). bad!

i'm running a 2.2.16 linux kernel, 4-cpu box, tomcat 3.2.2, apache 1.3.19, mysql Ver 
11.15 Distrib 3.23.38, oro-2.0.2, jdk1.3.0_02,

many thanks

Nico Wieland




RE: Odd Tomcat 3.3m3 Problem

2001-06-26 Thread GOMEZ Henri

>   I'm going to throw my 2 cents worth in here, did you, 
>perhaps, stop
>Tomcat after starting Apache?  I seem to remember that every 
>time you stop
>Tomcat, you must also stop Apache, then start Tomcat and start Apache.

No more a problem on mod_jk for TC 3.3-m3 :)



RE: URGENT jk_connect.c problem / UPDATE: weird log entry in mod_jk.log & other problems

2001-06-26 Thread GOMEZ Henri

>i have some strange entries in my mod_jk.log, generated almost 
>every minute:
>
>[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111
>[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
>[jk_uri_worker_map.c (335)]: 
>jk_uri_worker_map_t::uri_worker_map_close, NULL parameter
>[jk_uri_worker_map.c (185)]: In 
>jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
>
>does anyone here have an idea what the problem could be?? we 
>don't have these errors on the test server, but the production 
>machine generates them every minute. i don't see anything that 
>would misbehave, but it sure scares me not to know what is 
>happening here.

Could you send us a copy of mod_jk.conf and workers.properties


>>in addition, tomcat occasionally dies with a 
>>
>># An unexpected exception has been detected in native code 
>outside the VM.
>># Program counter=0xblahblah (don't have the exact code anymore)
>>#
>># Problematic Thread: prio=1 tid=0xblaah nid=0xblah runnable 
>(don't have the exact codes anymore)
>>#
>>Abort
>
>this is fixed, it was a strange problem with oro-regex that we 
>can reproduce only on the production server (unfortunately). 
>when oro (perl5 matcher) was fed with a control character 
>(\u-\u001f) it died and took tomcat with it (stack overflow). bad!

A JVM problem, not a Java problem

>i'm running a 2.2.16 linux kernel, 4-cpu box, tomcat 3.2.2, 
>apache 1.3.19, mysql Ver 11.15 Distrib 3.23.38, oro-2.0.2, 
>jdk1.3.0_02,

May I recommand you use the latest JDK 1.3.1 or IBM SDK 1.3
(which is very stable under Linux boxes)




Re: JkMount in httpd.conf

2001-06-26 Thread Richard Richter

Hi all...

Thanx Dim for a step forward...

You're right... Apache redirected the request. :-))) I was looked only at 
terminal (thinking that debug=9 is enough) - but in fact, just in mod_jk.log 
there is two lines for every request to my servlet:

[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done withou
t a match

Here (you wrote similar advice "Re: Servlet configuration" to somebody else) I 
looked to web.xml, which contains:


Hello
Hello



HelloServlet
Hello



HelloServlet
/hello


Maybe there is some redundancy or missing... but where? Because Hello.class is 
in webapps/intranet/WEB-INF/classes (with all classes generated from jsps) and 
web.xml is in WEB-INF... that's right I hope. URI is still the same:

host:port/intranet/servlet/hello

But I tried also Hello HelloServlet, all without servlet... etc. (Despair. :-))

Is it possible to let log mapping from URI to absolut path? With JSP this is 
done, but with servlets I have no additional information from where it tries 
load it. As fast I was done with JSP - I'm now stuck in this problem. I except 
that solution is easy, but I can't see it.

Thanks for anything

Richard "Virgo" Richter

> From: Dmitri Colebatch <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED], Richard Richter <[EMAIL PROTECTED]>
> Subject: Re: JkMount in httpd.conf
> Date: Tue, 26 Jun 2001 15:37:04 +1000
> MIME-Version: 1.0
> Content-Transfer-Encoding: 8bit
> 
> Not sure if anyone responded to this - our mailserver's been down (or more 
> accurately our ISP) for the last couple of days...
> 
> On Mon, 25 Jun 2001 19:28, Richard Richter wrote:
> > virtual host and your question is about server.xml (I have no experience
> > with that kind of virtual host).
> Tomcat also supports virtual hosts - although as I said, I haven't been able 
> to get it to work on a port-based virtual.
> 
> > Strange for me is that one JkMount works and another doesn't. I read
> > "Working with mod_jk" papers, but there are more examples than formal
> > definitions. So I can ask:
> >
> > Is this path "/intranet/WEB-INF/classes/Hello" covered with these JkMounts?
> > 1.  JkMount /intranet/* worker
> > 2.  JkMount /*classes/* worker
> > 3.  JkMount /classes/* worker
> > Is second parameter used as a needed substring or what?
> What happens in your tomcat logs when the request comes in?  My guess is that 
> apache gets the request for /intranet/servletname and correctly forwards it 
> to tomcat, which then looks for a file called intranet/servletname 'cause 
> (I'm guessing) its not matching the servlet.
> 
> What servletmapping are you using?
> 
> hope this helps
> cheers
> dim
> 
> >
> > And when talking about redirection from Apache to Tomcat... One another
> > question:
> >
> > I have a picture x.jpg in Tomcat project and so it is deployed as
> > webapps/payportal/x.jpg among another jsps. Now when browser loads this jsp
> > (in fact on client side it is only html) it finds out that there is an
> > image and sends a reqest for it, doesn't it?
> > Now - how can Apache know, that this image is not in my
> > web-data/payportal/x.jpg (which doesn't exist in fact) and that this
> > request has to be redirected to Tomcat. JPG is not JSP! I have no JkMount
> > for this case?
> > Is there any implicit redirection?
> >
> > These mechanisms are not transparent for me (or "I don't understend them").
> > ;-)
> >
> > Richard "Virgo" Richter
> >
> > > On Fri, 22 Jun 2001 23:22, Richard Richter wrote:
> > > > Hello...
> > > >
> > > > I'm using Apache with mod_jk and Tomcat for jsps and servlets. JSP is
> > > > without problem, but servlet don't want to run. Because informations
> > > > about absolute path of requested document is written to terminal, where
> > > > Tomcat was started, I found out that servlet (URI:
> > > > http://poseidon.bgs.sk:/intranet/WEB-INF/classes/Hello) is not
> > > > translated from relative to absolute path - nothing apears on terminal.
> > > >
> > > > I think, that Apache don't redirect this request to Tomcat (or
> > > > appropriate worker)... my httpd.conf has this section:
> > > >
> > > > 
> > > > ServerAdmin [EMAIL PROTECTED]
> > > > DocumentRoot /export/home/virgo/web-data
> > > > 
> > > > Options Indexes FollowSymLinks
> > > > AllowOverride None
> > > > SetHandler default-handler
> > > > Order allow,deny
> > > > Allow from all
> > > > 
> > > > ServerName poseidon.bgs.sk
> > > > JkMount /*.jsp virgo
> > > > JkMount /intranet/* virgo
> > > > ErrorLog
> > > > /opt/oracle/ias/product/8.1.7/Apache/Apache/logs/error_log
> > > > TransferLog
> > > > /opt/oracle/ias/product/8.1.7/Apache/Apache/logs/access_ log
> > > > 
> > > >
> > > > *.jsp works good, but s

Obtaining mod_jk.so

2001-06-26 Thread Mike Korotun

Hi, All!!
How can I obtain the mod_jk.so?
Please, advice.
Thanx.

=
Best Regards, Mike Korotun 
"Masiona Group" , Software Developer
--Magic Internet Solutions--

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



URL rewriting ad nauseum

2001-06-26 Thread Ros

My site *has* to track sessions whilst allowing users to disable cookies.

In development so far i've been using tomcat with apache (using mod_jk). 
This isn't going to work for the real thing (bug #1388)  As far as i can
see and if i understand right, i have 3 options:

1) Use Tomcat standalone
2) Use mod_jserv
3) Use something else other than Tomcat

None of these appeal particularly, but in the meantime, I have to do
something... so:

Firstly, does anyone know of the approximate comparative performance
difference between tomcat standalone and tomcat/apache with mod_jserv? 
(given that most of my pages are jsp pages...)  Is there a huge
difference?

Secondly, does anyone have any recommendations for (my least favourite)
option three? (sorry)

With many thanks for any advice,
Rosario



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



Re: Obtaining mod_jk.so

2001-06-26 Thread Richard Richter

Hi Mike...

Everything can be found on jakarta.apache.org...
E.g. binaries: http://jakarta.apache.org/site/binindex.html
And more exactly (for 3.2.2 Tomcat in which you have to find mod_jk):
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.2/bin/

Choose your platform... etc. ;-)

More difficult way is to compile it up... but if you don't need it, don't do it. 
Documentation: http://jakarta.apache.org/tomcat/index.html
Here you will find your version of Tomcat... E.g. for 3.2.2 try this page:
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html

Virgo

> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> list-help: 
> list-unsubscribe: 
> list-post: 
> Delivered-To: mailing list [EMAIL PROTECTED]
> Date: Tue, 26 Jun 2001 08:34:45 -0700 (PDT)
> From: Mike Korotun <[EMAIL PROTECTED]>
> Subject: Obtaining mod_jk.so
> To: [EMAIL PROTECTED]
> MIME-Version: 1.0
> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
> 
> Hi, All!!
> How can I obtain the mod_jk.so?
> Please, advice.
> Thanx.
> 
> =
> Best Regards, Mike Korotun 
> "Masiona Group" , Software Developer
> --Magic Internet Solutions--
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/

Richard Richter ([EMAIL PROTECTED])
Application Programmer, Business Global Systems a. s.




$B:#F|$N;q6b7+$j$O(B

2001-06-26 Thread $B
$B!&!&!&(B $B:#F|$N;q6b7+$j$G$*:$$j$NJ}$O(B $B!&!&!&(B
http://www.justinmail.net/ma01/pa01.htm
$B!&!&!&(B  $B!&!&!&(B  $B!&!&!&(B  $B!&!&!&(B  $B!&!&!&(B  $B!&!&!&(B  
$B!&!&!&(B  $B!&!&!&!&(B
$B#1#0#0K|1_$^$G$4M;;qCW$7$^$9!#(B
$BF|K\A49q!&:#F|Cf$K4V$K9g$$$^$9$N$G(B
$B@h$:$O>e5-#U#R#L$K%"%/%;%9!*(B

$B%&%'%V%U%!%$%J%s%9$N%Q%$%*%K%"(B
   ::: $B&9)(B ::


Re: URL rewriting ad nauseum

2001-06-26 Thread Tim O'Neil

Session tracking without cookies is a huge engineering mess.
I don't quite understand what your choice of server platform
has to do with it. Have you taken a look at the HttpSessionObject?
Is that what you mean with the bug you mention? (I've used cookies
solely, I don't know much about HttpSession...)

At 08:55 AM 6/26/2001, you wrote:
>My site *has* to track sessions whilst allowing users to disable cookies.
>
>In development so far i've been using tomcat with apache (using mod_jk).
>This isn't going to work for the real thing (bug #1388)  As far as i can
>see and if i understand right, i have 3 options:
>
>1) Use Tomcat standalone
>2) Use mod_jserv
>3) Use something else other than Tomcat
>
>None of these appeal particularly, but in the meantime, I have to do
>something... so:
>
>Firstly, does anyone know of the approximate comparative performance
>difference between tomcat standalone and tomcat/apache with mod_jserv?
>(given that most of my pages are jsp pages...)  Is there a huge
>difference?
>
>Secondly, does anyone have any recommendations for (my least favourite)
>option three? (sorry)
>
>With many thanks for any advice,
>Rosario
>
>
>
>Do You Yahoo!?
>Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
>or your free @yahoo.ie address at http://mail.yahoo.ie




Report to Recipient(s)

2001-06-26 Thread LINTNG6



Incident Information:-

Originator:David Kadlecek <[EMAIL PROTECTED]>
Recipients:"'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
Subject:  Here you have, ;o)

WARNING:  The file AnnaKournikova.jpg.vbs you received was infected with the
VBS/SST virus.  The file attachment was not successfully cleaned.





Report to Recipient(s)

2001-06-26 Thread LINTNG6



Incident Information:-

Originator:"Charles Lee" <[EMAIL PROTECTED]>
Recipients:[EMAIL PROTECTED]
Subject:  Here you have, ;o)

WARNING:  The file AnnaKournikova.jpg.vbs you received was infected with the
VBS/SST virus.  The file attachment was not successfully cleaned.





Report to Recipient(s)

2001-06-26 Thread LINTNG6



Incident Information:-

Originator:[EMAIL PROTECTED]
Recipients:[EMAIL PROTECTED]
Subject:  Rejected Message

WARNING:  The file homepage.HTML.vbs you received was infected with the
VBS/SST.gen@MM virus.  The file attachment was not successfully cleaned.





Report to Recipient(s)

2001-06-26 Thread LINTNG6



Incident Information:-

Originator:"Dilip Dalton" <[EMAIL PROTECTED]>
Recipients:"Tomcat User" <[EMAIL PROTECTED]>
Subject:  Homepage

WARNING:  The file homepage.HTML.vbs you received was infected with the
VBS/SST.gen@MM virus.  The file attachment was not successfully cleaned.





Report to Recipient(s)

2001-06-26 Thread LINTNG6



Incident Information:-

Originator:"ALex Loubyansky" <[EMAIL PROTECTED]>
Recipients:[EMAIL PROTECTED]
Subject:  Homepage

WARNING:  The file homepage.HTML.vbs you received was infected with the
VBS/SST.gen@MM virus.  The file attachment was not successfully cleaned.





HttpConnectionHandler won't start

2001-06-26 Thread Jeffrey Lam

I'm trying to run tomcat 3.2.2 as a standalone server.  When I try to start it,
I see that the classpath is set and that the contexts for my webapps are added.
However, I do not see any messages for the HttpConnectionHandler or the
Ajp12ConnectionHandler.

I'm running tomcat 3.2.2 on Redhat 7.0 with jdk1.3.1 and I have not made any
changes to server.xml, except for adding a request interceptor.  I am also
having the same problem with tomcat 3.2.1

Any help would be appreciated.  Thank you!




TomCats thread pool connector leaking

2001-06-26 Thread Jochen Wiedmann


Hi,

we are using TC 3.2.2 in standalone mode on a medium frequented
site. I am sure we never have more than 40-50 active,
simultaneous connections. However, from time to time I see the
message "thread pool exhausted" in jvm.stderr. I have raised
the max_threads parameter in server.xml, lets see if this
helps.

However, I actually wonder how 100 threads can be used? Our
application has some long running servlets in push mode, but
definitely not that much. So I ask myself whether the thread
pool of the TCP connector is leaking?

My question is: How would I debug the TCP connector? How can
I determine, which threads are actually busy, running which
servlet and which are waiting?


Thanks,

Jochen



open MS document in IE 4.01

2001-06-26 Thread Jack Li

Does anyone know if IE 4.01 can open Microsoft word document or Excel spread
sheet?

Thanks
Jack Li



Report to Recipient(s)

2001-06-26 Thread LINTNG6



Incident Information:-

Originator:[EMAIL PROTECTED]
Recipients:[EMAIL PROTECTED]
Subject:  Mail Notification

WARNING:  The file AnnaKournikova.jpg.vbs you received was infected with the
VBS/SST virus.  The file attachment was not successfully cleaned.





Report to Recipient(s)

2001-06-26 Thread LINTNG6



Incident Information:-

Originator:"tsaiching wong" <[EMAIL PROTECTED]>
Recipients:"tomcat-user" <[EMAIL PROTECTED]>
Subject:  Here you have, ;o)

WARNING:  The file AnnaKournikova.jpg.vbs you received was infected with the
VBS/SST virus.  The file attachment was not successfully cleaned.





Report to Recipient(s)

2001-06-26 Thread LINTNG6



Incident Information:-

Originator:[EMAIL PROTECTED]
Recipients:[EMAIL PROTECTED]
Subject:  Mail Notification

WARNING:  The file AnnaKournikova.jpg.vbs you received was infected with the
VBS/SST virus.  The file attachment was not successfully cleaned.





Re: tomcat 3.2.2 session already invalidated-serious problem

2001-06-26 Thread Jeff Kilbride

Why not wrap your call to invalidate() in a try-catch clause? If the
exception occurs, the session is already invalidated -- which is what you're
trying to accomplish anyway.

try {
oldSession.invalidate();
}
catch ( IllegalStateException ise ) { ; }

--jeff

- Original Message -
From: "Its Me.. Karthik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 3:15 AM
Subject: tomcat 3.2.2 session already invalidated-serious problem


>
>
> Hi,
>
>  im usuing tomcat 3.2.1..when i invalidate my session im getting error..
>
> this is my piece of code
>
> if(monitor.containsKey(uname)){
>
>   HttpSession oldSession = (HttpSession)monitor.get(uname);
>
>   oldSession.invalidate();
>
> }
>
>
> the error is
>
>
>
> Internal Servlet Error:
>
>
> javax.servlet.ServletException: setAttribute: Session already invalidated
> at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
> at
karthik._0002fkarthik_0002fpage_00031_0002ejsppage1_jsp_2._jspService(_0002f
karthik_0002fpage_00031_0002ejsppage1_jsp_2.java:129)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
> at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at org.apache.tomcat.core.Handler.service(Handler.java:287)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
> at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)
>
> Root cause:
>
> java.lang.IllegalStateException: setAttribute: Session already invalidated
> at
org.apache.tomcat.session.StandardSession.setAttribute(StandardSession.java:
721)
> at
karthik._0002fkarthik_0002fpage_00031_0002ejsppage1_jsp_2._jspService(_0002f
karthik_0002fpage_00031_0002ejsppage1_jsp_2.java:111)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
> at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at org.apache.tomcat.core.Handler.service(Handler.java:287)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
> at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)
>
>
> please help me..very urgent
> karthik
>
>
> --
--
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
>




Re: web.xml not working

2001-06-26 Thread Charles Baker

Here is a servlet definition from my web.xml file:



Login


com.beeslender.servlets.LoginServlet



Login


/Login




Notice that  is a child of .
Also, did you create your servlets as part of a
package? If so, you need a directory structure under
$TOMCAT_HOME/sampleapp/WEB-INF/classes that matches
your package. For example, 

$TOMCAT_HOME/sampleapp/WEB-INF/classes/com/beeslender/servlets

That's where the *.class files would go.

--- Erin Lester <[EMAIL PROTECTED]>
wrote:
> I have created a web application as per the Servlet
> API specs and deployed
> it into the webapps directory of Tomcat in a
> directory called 'sampleapp.'
> 
> The only way that I am able to access the webapp's
> servlet (which is in
> sampleapp/WEB-INF/classes) is by the url
> 'SERVERADDRESS/sampleapp/servlet/SERVLETNAME' and
> this is only when I
> don't have a web.xml file in the WEB-INF directory. 
> When I place the
> web.xml file that I created (using to the documents
> on the Sun and
> Jakarta sites) I am unable to find my servlet.
> 
> The servlet mapping in the web.xml file looks like
> this:
> 
>   
>   StoryGeneratorServlet
> 
>   StoryGenerator 
>   
> 
>   
>   StoryGeneratorServlet
> 
>   /story 
>   
> 
> I tried using the urls
> 'SERVERNAME/sampleapp/servlet/story' and
> 'SERVERNAME/sampleapp/story'
> 
> I also tried to install the J2EE sample 'petstore'
> web application but had
> problems accessing the servlets with it too.  I am
> able to get to the jsps
> and static files okay.
> 
> Does anyone know what I am doing wrong? 
> 
> Thanks!
> Erin
> 
> PS - I'm using Tomcat 3.2 with Apache 1.3 on Sun 2.7
> 


=
-
[EMAIL PROTECTED]
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: Odd Tomcat 3.3m3 Problem

2001-06-26 Thread Jason Koeninger

Thanks for the idea, but that's not it.  I'm getting data back, it's 
just the wrong data from the wrong context.  That problem 
usually results in an Apache generated error.

As far as 3.3m3 is concerned, that old problem doesn't seem to 
be there anymore.  I haven't had any problems stopping and 
starting Tomcat and getting pages from Apache.  Seems to 
recover nicely with this version.

jck

On Tue, 26 Jun 2001 10:05:18 -0400, Randy Layman wrote:

>
>   I'm going to throw my 2 cents worth in here, did you, perhaps, stop
>Tomcat after starting Apache?  I seem to remember that every time you stop
>Tomcat, you must also stop Apache, then start Tomcat and start Apache.
>
>   Randy
>
>
>> -Original Message-
>> From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, June 26, 2001 10:20 AM
>> To: [EMAIL PROTECTED]
>> Subject: RE: Odd Tomcat 3.3m3 Problem
>> 
>> 
>> >I know where to find the documentation on increasing the 
>> >threads, but I thought it was set to 100 by default.  If that's 
>> >the case, I'd love to know how 1 user could exhaust 100 
>> >threads in a little less than 30 minutes.  This machine isn't 
>> >live yet...I've just been doing testing on our new setup.
>> 
>> 100 max by default but not a startup :)
>> 
>> >Keep in mind, these entries below are from the Apache 
>> >machine, not Tomcat.  My thought was that mod_jk was 
>> >caching connections to Tomcat, and when they needed 
>> >to be used again, the connection was gone resulting in 
>> >the errors below.  I could only guess that the error wasn't 
>> >handled properly resulting in the odd results.
>> 
>> What's you workers.properties file, could you send us a copy ?
>> 
>> >Anyway, thanks for the recommendation.  I'll switch my 
>> >thread settings to make sure I know what they are and 
>> >will see what happens.  If that doesn't work, I guess I'll 
>> >go to ajp12.  Looks like I've got to find time to dig into the 
>> >mod_jk code and work some of these problems out for 
>> >myself.
>> 
>> in ajp12 you'll see a performance loss since Apache will loose
>> time to reestablish the connection. Also did you have a firewall
>> between Apache and Tomcat, something which could drop connections
>> after a certain time of inactivity ?
>> 
>> 
>> >Best Regards,
>> >
>> >Jason
>> >
>> >
>> >On Tue, 26 Jun 2001 08:20:57 +0200, GOMEZ Henri wrote:
>> >
>> >>>In my mod_jk.log file, I'm getting a lot of different error 
>> >>>messages that must 
>> >>>be getting handled properly as this isn't happening as often 
>> >>>as there are 
>> >>>messages in the log. The one that looks to be of the 
>> >frequency of this 
>> >>>problem follows:
>> >>>
>> >>>[Mon Jun 25 12:01:05 2001]  [jk_ajp13_worker.c (579)]: Error 
>> >>>sending request try
>> >>> another pooled connection
>> >>>[Mon Jun 25 12:01:08 2001]  [jk_ajp13_worker.c (579)]: Error 
>> >>>sending request try another pooled connection
>> >>
>> >>You seems to be out of thread process on the java side.
>> >>Try to increase the number of Ajp13 threads (in server.xml 
>> >but I didn't
>> >>remember how :) 
>> >
>> >
>> >
>> 





URGENT HELP, PEASE IIS integration won't integrate

2001-06-26 Thread Kevin Queen

List,
I am in a time crunch here and hope you have an answer for me.  I am trying to 
integrate IIS and
Tomcat 3.2.2.  I have the examples context working, and I can serve my servlet from 
port 8080, but I
can't get IIS to hand off the request for my servlet to Tomcat so all I get is a 403 
or a directory
listing (depending on IIS permissions).  I have added a new  in web.xml, have 
added the new
context to uriworkermap.properties and followed the documentation to create a new 
virtual directory
in IIS.  I do have a green arrow on the ISAPI filter, but that seems to be all that I 
can get to
work right.  I would like to be able to do something like the following:

http://localhost/test/index.xml

where test is the context/servlet name and index.xml is an xml file that my servlet is 
designed to
render and display to the user.  Any and ALL suggestions will be tried and much 
appreciated.

Kevin Queen
(e) [EMAIL PROTECTED]

"Ah, I see!", said the blind man to the deaf mute.  -Unknown




RE: URGENT HELP, PEASE IIS integration won't integrate

2001-06-26 Thread Randy Layman


Remove your virtual directory, it is unnecessary and causing your
problems.

Randy


> -Original Message-
> From: Kevin Queen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 2:16 PM
> To: Tomcat-User@Jakarta. Apache. Org
> Subject: URGENT HELP, PEASE IIS integration won't integrate
> 
> 
> List,
> I am in a time crunch here and hope you have an answer for 
> me.  I am trying to integrate IIS and
> Tomcat 3.2.2.  I have the examples context working, and I can 
> serve my servlet from port 8080, but I
> can't get IIS to hand off the request for my servlet to 
> Tomcat so all I get is a 403 or a directory
> listing (depending on IIS permissions).  I have added a new 
>  in web.xml, have added the new
> context to uriworkermap.properties and followed the 
> documentation to create a new virtual directory
> in IIS.  I do have a green arrow on the ISAPI filter, but 
> that seems to be all that I can get to
> work right.  I would like to be able to do something like the 
> following:
> 
> http://localhost/test/index.xml
> 
> where test is the context/servlet name and index.xml is an 
> xml file that my servlet is designed to
> render and display to the user.  Any and ALL suggestions will 
> be tried and much appreciated.
> 
> Kevin Queen
> (e) [EMAIL PROTECTED]
> 
> "Ah, I see!", said the blind man to the deaf mute.  -Unknown
> 



Apache won't start with Tomcat

2001-06-26 Thread Gregory P Ferrara

Greetings:

I have recently upgraded to Apache 1.3.14 with Tomcat 3.2.2. When I attempt
to start Apache,
I get the following error message:

Syntax error on line 1 of
/usr/local/jakarta-tomcat-3.2.2/conf/tomcat-apache.conf:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
not included in the server configuration
./apachectl start: httpd could not be started


Being a novice at this, I would appreciate any and all comments.


Thanks!


Greg Ferrara




RE: Odd Tomcat 3.3m3 Problem

2001-06-26 Thread Jason Koeninger

On Tue, 26 Jun 2001 16:20:27 +0200, GOMEZ Henri wrote:

>What's you workers.properties file, could you send us a copy ?



>in ajp12 you'll see a performance loss since Apache will loose
>time to reestablish the connection. 

Yeah, but I figure that's better than what I'm getting now.  Based on 
the logs, I'm guessing it's having to do a lot of that already with ajp13.

>Also did you have a firewall
>between Apache and Tomcat, something which could drop connections
>after a certain time of inactivity ?

Actually, you may have hit part of the problem here.  I do have firewalls in 
there that could be shutting connections down and causing mod_jk to have 
to cycle through connections more often than it normally would.  I'll look into 
that...thanks.

Best Regards,

Jason

>>
>>
>>On Tue, 26 Jun 2001 08:20:57 +0200, GOMEZ Henri wrote:
>>
In my mod_jk.log file, I'm getting a lot of different error 
messages that must 
be getting handled properly as this isn't happening as often 
as there are 
messages in the log. The one that looks to be of the 
>>frequency of this 
problem follows:

[Mon Jun 25 12:01:05 2001]  [jk_ajp13_worker.c (579)]: Error 
sending request try
 another pooled connection
[Mon Jun 25 12:01:08 2001]  [jk_ajp13_worker.c (579)]: Error 
sending request try another pooled connection
>>>
>>>You seems to be out of thread process on the java side.
>>>Try to increase the number of Ajp13 threads (in server.xml 
>>but I didn't
>>>remember how :) 
>>
>>
>>





RE: Error: 500

2001-06-26 Thread Jann VanOver

It looks like you were doing step 4 with the JSP from step 5.  This code
won't work until after you've created and compiled the tag library, which
you haven't done yet if you're working in order.  Try it with the JSP code
from "Listing 3" and you shouldn't get this error.

-Original Message-
From: alex chang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 6:25 AM
To: [EMAIL PROTECTED]
Subject: Error: 500


I've been following this little tutorial:
http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html?page=1

I'm up to the part of Adding Tag Libraries,
on page 4. So far, everything except this part
has worked. I get an HTTP 500 internal server
error. Here are the first four lines of that:

Error: 500
Location: /onjava/welcome.jsp
Internal Servlet Error:

org.apache.jasper.compiler.CompileException:
C:\jakarta-tomcat-3.3-m3\webapps\onjava\welcome.jsp(11,10) Unable to load
class com.onjava.HelloTag

I was wondering if anyone who has tried this
example also can help me out. Thanks..

-alex

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: Apache won't start with Tomcat

2001-06-26 Thread Tim O'Neil

Might help to have the section of the conf file that
the error is talking about...

At 11:24 AM 6/26/2001, you wrote:
>Greetings:
>
>I have recently upgraded to Apache 1.3.14 with Tomcat 3.2.2. When I attempt
>to start Apache,
>I get the following error message:
>
>Syntax error on line 1 of
>/usr/local/jakarta-tomcat-3.2.2/conf/tomcat-apache.conf:
>Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
>not included in the server configuration
>./apachectl start: httpd could not be started
>
>
>Being a novice at this, I would appreciate any and all comments.
>
>
>Thanks!
>
>
>Greg Ferrara




getServletContext()

2001-06-26 Thread JeremyRayYoo

Hi, I have a problem I have been trying to solve for a very long time. I 
first have a initialization servlet set by  tag. In this 
servlet I create a database connection and pass it to the ServletContext like 
this.

getServletContext().setAttribute("dbConnection",dbConnection);

Now the problem is how do I retrieve it from a jsp page. From by research, 
reading through books it shows how to get an attribute using : jsp:useBean 
action. However this is done if Beans/Objects are put into the setAttribute. 
In my case it is a database connection object. How do I retrieve this from a 
jsp page???
I tried (in a jsp page);
<% Connection connection = getServletContext().getAttribute("dbConnection"); 
%>
but this returns a null. Connection never gets set..
If someone can help me please..



RE: Odd Tomcat 3.3m3 Problem

2001-06-26 Thread Tim O'Neil

Routers and fire walls may have settings in them that
decide that a connection has been idle too long and close
it. We had a problem with an installed product (ours)
that kept having problems connecting to other components.
(Distributed app). After months of finger wagging and
getting chewed out by the customer and getting the threats
of pull outs and all that their particular make of Cisco
router had this setting set to kill those idle connections
by default. When we set the setting to ignore how long a
connection was sitting idle, the problem went away.

At 11:16 AM 6/26/2001, you wrote:
>On Tue, 26 Jun 2001 16:20:27 +0200, GOMEZ Henri wrote:
>
> >What's you workers.properties file, could you send us a copy ?
>
>
>
> >in ajp12 you'll see a performance loss since Apache will loose
> >time to reestablish the connection.
>
>Yeah, but I figure that's better than what I'm getting now.  Based on
>the logs, I'm guessing it's having to do a lot of that already with ajp13.
>
> >Also did you have a firewall
> >between Apache and Tomcat, something which could drop connections
> >after a certain time of inactivity ?
>
>Actually, you may have hit part of the problem here.  I do have firewalls in
>there that could be shutting connections down and causing mod_jk to have
>to cycle through connections more often than it normally would.  I'll look 
>into
>that...thanks.
>
>Best Regards,
>
>Jason
>
> >>
> >>
> >>On Tue, 26 Jun 2001 08:20:57 +0200, GOMEZ Henri wrote:
> >>
> In my mod_jk.log file, I'm getting a lot of different error
> messages that must
> be getting handled properly as this isn't happening as often
> as there are
> messages in the log. The one that looks to be of the
> >>frequency of this
> problem follows:
> 
> [Mon Jun 25 12:01:05 2001]  [jk_ajp13_worker.c (579)]: Error
> sending request try
>  another pooled connection
> [Mon Jun 25 12:01:08 2001]  [jk_ajp13_worker.c (579)]: Error
> sending request try another pooled connection
> >>>
> >>>You seems to be out of thread process on the java side.
> >>>Try to increase the number of Ajp13 threads (in server.xml
> >>but I didn't
> >>>remember how :)
> >>
> >>
> >>




tomcat and hardware load balancer

2001-06-26 Thread Patrick Tiquet

I'm trying to use tomcat through an Alteon load-balancer. 
However, I'm seeing a issue where connections remain in Established between
the load-balancer and Tomcat, even though the client request has terminated
between Apache and the load-balancer. The result is a bunch of unused
established connections and defunct processes on the Tomcat server. The
strange thing is that the Alteon doesn't show any active connections to the
Tomcat server, but a netstat on the tomcat server shows them as there. I
have the load-balancer set to timeout any unused tcp connections after 2
mins. But these connections stay around for hours.
Anyone else have this problems or know of any issues which may cause this?




IIS won't Integrate (Revisited)

2001-06-26 Thread Kevin Queen

Thank you for the advice Randy, but now I have a directory listing (good) but can't 
get Tomcat to
start the servlet (bad).  Here is an example of what I want vs. what I am getting:

What I want:

http://localhost/test/index.xml

to invoke a servlet that is mapped to the context test (in web.xml)

What I get:

http://localhost/test/index.xml

gives me a 404 File not found error.

Am I just trying to do something that I just can't do or am I just slow in seeing my 
error?

please see the relevant portions of the web.xml and uriworkermap.properties below:

WEB.XML
==

testEngine

 com.test.engine.EngineServlet


testEngine
/test/*




URIWORKERMAP.PROPERTIES
===
/test/*=$(default.worker)

Kevin Queen
Software Developer||""||
AnyDevice ||__||
Atlanta, Ga   [ -=.]
http://www.anydevice.com  ===:0~

(w) (404)260.4155
(e) [EMAIL PROTECTED]

"Ah, I see!", said the blind man to the deaf mute.  -Unknown




RE: IIS won't Integrate (Revisited)

2001-06-26 Thread Randy Layman



> -Original Message-
> From: Kevin Queen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 3:20 PM
> To: Tomcat-User@Jakarta. Apache. Org
> Subject: IIS won't Integrate (Revisited)
> 
> 
> /test/*

should be

 /*

This is inside of the webapp, not Tomcat.  With your current mapping
server/test/test/index.html will work.

Randy



JDBCRealm doesn't allow a "blank" password -- is this a bug?

2001-06-26 Thread Jann VanOver

I'm using Tomcat 3.2.2

I was just beginning to try out JDBCRealm and was continuing to get an
error.  The Tomcat.log said:

2001-06-26 11:27:05 - ContextManager: JDBCRealm: SQLException:
java.sql.SQLException: Login failed for user '(null)'. Reason: Not
associated with a trusted SQL Server connection. Severity 14, State 1,
Procedure 'null null', Line 0 Unable to connect, please check your server's
version and availability.

I WAS including the proper credentials in my web.xml, so I delved into the
Tomcat source code to find what was going wrong.  (this was my FIRST Tomcat
delving experience!)  In JDBCRealm, method checkConnection() I found this:

   if ((connectionName == null || connectionName.equals("")) ||
  (connectionPassword == null || connectionPassword.equals(""))) {
   dbConnection = DriverManager.getConnection(connectionURL);
} else {
dbConnection = DriverManager.getConnection(connectionURL,
connectionName,
connectionPassword);
}

I'm practicing on an internal dev server that is poorly protected and has no
password for the username I was using, so my server.xml had:
connectionName="aDevUser"   connectionPassword=""

Obviously, this is what is causing the problem, given the code snippet
above.

I created a new username with a real password, entered those in my
server.xml, and the problem went away.

Now I know it's not a good practice to have a password that is an empty
string, but is it an error?  Should this be logged as a Tomcat bug?  I'm
still fairly new to Tomcat and tried searching for this in Bugzilla and
didn't find anything and wasn't sure where to go from there.  Would someone
with more experience with the process like to enter this?



RE: open MS document in IE 4.01

2001-06-26 Thread Jann VanOver

What does this have to do with Tomcat?

-Original Message-
From: Jack Li [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 8:38 AM
To: '[EMAIL PROTECTED]'
Subject: open MS document in IE 4.01


Does anyone know if IE 4.01 can open Microsoft word document or Excel spread
sheet?

Thanks
Jack Li



RE: Error: 500

2001-06-26 Thread alex chang

Hi Jann, thanks for replying.
It does work with the jsp from step 4 as you've 
said, where it simply prints the word "Welcome".

But it still doesn't work with the modified jsp
page, where I have the taglib directive up top
and replace the word "Welcome" with the 
.

I've done some more checks and it seems I only 
get the error when I have the 
tag. That is, if I simply have the taglib directive
and no  tag, it works. But if I 
put that  tag back in, I get the
error.

Any more ideas?
Thanks,
-alex

--- Jann VanOver <[EMAIL PROTECTED]> wrote:
> It looks like you were doing step 4 with the JSP from step 5.  This code
> won't work until after you've created and compiled the tag library,
> which
> you haven't done yet if you're working in order.  Try it with the JSP
> code
> from "Listing 3" and you shouldn't get this error.
> 
> -Original Message-
> From: alex chang [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 6:25 AM
> To: [EMAIL PROTECTED]
> Subject: Error: 500
> 
> 
> I've been following this little tutorial:
> http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html?page=1
> 
> I'm up to the part of Adding Tag Libraries,
> on page 4. So far, everything except this part
> has worked. I get an HTTP 500 internal server
> error. Here are the first four lines of that:
> 
> Error: 500
> Location: /onjava/welcome.jsp
> Internal Servlet Error:
> 
> org.apache.jasper.compiler.CompileException:
> C:\jakarta-tomcat-3.3-m3\webapps\onjava\welcome.jsp(11,10) Unable to
> load
> class com.onjava.HelloTag
> 
> I was wondering if anyone who has tried this
> example also can help me out. Thanks..
> 
> -alex


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: web.xml not working

2001-06-26 Thread Erin Lester

Thanks for the suggestion, but I don't think that's it.  According to the
Java Servlet Spec. v2.2 (ch. 13, pg 65), servlet-mapping isn't contained
within the servlet element, but is a seperate element.  

In my original post I said I couldn't have a web.xml file in my
application.  That was incorrect, I am able to have a web.xml file, but
the servlet mappings in it aren't working.

To clarify, my servlet isn't in a package.

- Erin

On Tue, 26 Jun 2001, Charles Baker wrote:

>Here is a servlet definition from my web.xml file:
>
>
>
>Login
>
>
>com.beeslender.servlets.LoginServlet
>
>
>
>Login
>
>
>/Login
>
>
>
>
>Notice that  is a child of .
>Also, did you create your servlets as part of a
>package? If so, you need a directory structure under
>$TOMCAT_HOME/sampleapp/WEB-INF/classes that matches
>your package. For example, 
>
>$TOMCAT_HOME/sampleapp/WEB-INF/classes/com/beeslender/servlets
>
>That's where the *.class files would go.
>
>--- Erin Lester <[EMAIL PROTECTED]>
>wrote:
>> I have created a web application as per the Servlet
>> API specs and deployed
>> it into the webapps directory of Tomcat in a
>> directory called 'sampleapp.'
>> 
>> The only way that I am able to access the webapp's
>> servlet (which is in
>> sampleapp/WEB-INF/classes) is by the url
>> 'SERVERADDRESS/sampleapp/servlet/SERVLETNAME' and
>> this is only when I
>> don't have a web.xml file in the WEB-INF directory. 
>> When I place the
>> web.xml file that I created (using to the documents
>> on the Sun and
>> Jakarta sites) I am unable to find my servlet.
>> 
>> The servlet mapping in the web.xml file looks like
>> this:
>> 
>>  
>>  StoryGeneratorServlet
>> 
>>  StoryGenerator 
>>  
>> 
>>  
>>  StoryGeneratorServlet
>> 
>>  /story 
>>  
>> 
>> I tried using the urls
>> 'SERVERNAME/sampleapp/servlet/story' and
>> 'SERVERNAME/sampleapp/story'
>> 
>> I also tried to install the J2EE sample 'petstore'
>> web application but had
>> problems accessing the servlets with it too.  I am
>> able to get to the jsps
>> and static files okay.
>> 
>> Does anyone know what I am doing wrong? 
>> 
>> Thanks!
>> Erin
>> 
>> PS - I'm using Tomcat 3.2 with Apache 1.3 on Sun 2.7
>> 
>
>
>=
>-
>[EMAIL PROTECTED]
>Hacking is a "Good Thing!"
>See http://www.tuxedo.org/~esr/faqs/hacker-howto.html
>
>__
>Do You Yahoo!?
>Get personalized email addresses from Yahoo! Mail
>http://personal.mail.yahoo.com/
>




RE: Error: 500

2001-06-26 Thread Jann VanOver

Yes, that makes perfect sense.  The error message you got was "Unable to
load class com.onjava.HelloTag" so of course you would only see the error
when you try to use that tag.

Did you follow all the instructions at the end of step 4?  You have to
create and compile HelloTag.java and then put the class file in the right
place, then describe the tag in the .tld file.  If any of these things
aren't done right, it won't be able to find the class when you need it.
Re-check your steps.

-Original Message-
From: alex chang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 12:38 PM
To: [EMAIL PROTECTED]
Subject: RE: Error: 500


Hi Jann, thanks for replying.
It does work with the jsp from step 4 as you've 
said, where it simply prints the word "Welcome".

But it still doesn't work with the modified jsp
page, where I have the taglib directive up top
and replace the word "Welcome" with the 
.

I've done some more checks and it seems I only 
get the error when I have the 
tag. That is, if I simply have the taglib directive
and no  tag, it works. But if I 
put that  tag back in, I get the
error.

Any more ideas?
Thanks,
-alex

--- Jann VanOver <[EMAIL PROTECTED]> wrote:
> It looks like you were doing step 4 with the JSP from step 5.  This code
> won't work until after you've created and compiled the tag library,
> which
> you haven't done yet if you're working in order.  Try it with the JSP
> code
> from "Listing 3" and you shouldn't get this error.
> 
> -Original Message-
> From: alex chang [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 6:25 AM
> To: [EMAIL PROTECTED]
> Subject: Error: 500
> 
> 
> I've been following this little tutorial:
> http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html?page=1
> 
> I'm up to the part of Adding Tag Libraries,
> on page 4. So far, everything except this part
> has worked. I get an HTTP 500 internal server
> error. Here are the first four lines of that:
> 
> Error: 500
> Location: /onjava/welcome.jsp
> Internal Servlet Error:
> 
> org.apache.jasper.compiler.CompileException:
> C:\jakarta-tomcat-3.3-m3\webapps\onjava\welcome.jsp(11,10) Unable to
> load
> class com.onjava.HelloTag
> 
> I was wondering if anyone who has tried this
> example also can help me out. Thanks..
> 
> -alex


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: IIS won't Integrate (Revisited)

2001-06-26 Thread SHeyns
Title: RE: IIS won't Integrate (Revisited)





Just a quick question here does http://localhost:8080/test/index.html work ? If so could you not stop IIS and run Tomcat on port 80 by changing the conf\server.xml file to

    
    
    value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
    
    value="80"/>
    
(IIS uses port 80 as the default port so you need to either stop the service or change the port number)
after restarting the Tomcat engine it should respond to requests like


http://localhost/test/index.xml




-Original Message-
From: Kevin Queen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 2:20 PM
To: Tomcat-User@Jakarta. Apache. Org
Subject: IIS won't Integrate (Revisited)



Thank you for the advice Randy, but now I have a directory listing (good) but can't get Tomcat to
start the servlet (bad).  Here is an example of what I want vs. what I am getting:


What I want:


http://localhost/test/index.xml


to invoke a servlet that is mapped to the context test (in web.xml)


What I get:


http://localhost/test/index.xml


gives me a 404 File not found error.


Am I just trying to do something that I just can't do or am I just slow in seeing my error?


please see the relevant portions of the web.xml and uriworkermap.properties below:


WEB.XML
==

testEngine

 com.test.engine.EngineServlet


testEngine
/test/*





URIWORKERMAP.PROPERTIES
===
/test/*=$(default.worker)


Kevin Queen    
Software Developer    ||""||
AnyDevice ||__||
Atlanta, Ga   [ -=.]
http://www.anydevice.com  ===:0~


(w) (404)260.4155
(e) [EMAIL PROTECTED]


"Ah, I see!", said the blind man to the deaf mute.  -Unknown





RE: altering include files

2001-06-26 Thread Jann VanOver

No, not really.  You CAN delete all the tomcat\work files for that context,
or "touch" the file that does the include.  Either of these things will
force the page to be recompiled.

I've been trying to replace my includes with:
  <%
request.getRequestDispatcher("nextPieceOfWork.jsp").forward(request,response
); %>
and with tag libraries in order to avoid the problem you are having.  In the
long run, these techniques make for better (more reusable) code as well --
imho.

-Original Message-
From: teh j [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 10:07 PM
To: [EMAIL PROTECTED]
Subject: altering include files


Hi there

I am currently using Tomcat v3.2.1 and am using
include files in my .jsp files a fair bit

Im finding though that if I make a change to my
include file, it does not appear in the JSP that is
using the include file UNLESS I delete the include
file, reload the hosting JSP, put back the include
file and then reload the page again!

Is there a way around this? It is very frustrating and
takes away quite a bit of the idea of the include
file!

thanks
Jason


_
http://messenger.yahoo.com.au - Yahoo! Messenger
- Voice chat, mail alerts, stock quotes and favourite news and lots more!



RE: Tomcat 4 and apache. How to make them work together?

2001-06-26 Thread Jann VanOver

Did you check the tomcat user guide?

-Original Message-
From: Alejandro Arredondo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 7:31 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 and apache. How to make them work together?


I have installed Tomcat 4 configured it and it works
fine. Now I want it to work with apache together. 
Where can I find info on how to configure them?

Thanks in advance,
Alejandro Arredondo

_
Free E-mail --->
http://letodesigns.mail.everyone.net
Letodesigns & Programming Free e-mail
6MB limit
http://letodesigns.8k.com



Re: web.xml not working

2001-06-26 Thread Krishna Muthyala

Eric

If you deploy your servlets using a web.xml then you
should have your servlets properly packaged. so in
your case you need to package your servlets as

com.beeslender.servlets.LoginServlet

package com.beelender.servlets; at the top of your
Login Servlet and then you should map your web.xml in
the following way



LoginServlet
com.beeslender.servlets.LoginServlet



LoginServlet

   
 /com/beeslender/servlets/LoginServlet/*
   
 







in your server.xml also you need to specify as followd


 
 

 
 

 
 



you want to make your servlets work, package them and
deploy them as above, ok

Kris
--- Erin Lester <[EMAIL PROTECTED]>
wrote:
> Thanks for the suggestion, but I don't think that's
> it.  According to the
> Java Servlet Spec. v2.2 (ch. 13, pg 65),
> servlet-mapping isn't contained
> within the servlet element, but is a seperate
> element.  
> 
> In my original post I said I couldn't have a web.xml
> file in my
> application.  That was incorrect, I am able to have
> a web.xml file, but
> the servlet mappings in it aren't working.
> 
> To clarify, my servlet isn't in a package.
> 
> - Erin
> 
> On Tue, 26 Jun 2001, Charles Baker wrote:
> 
> >Here is a servlet definition from my web.xml file:
> >
> >
> >
> >Login
> >
> >
> >com.beeslender.servlets.LoginServlet
> >
> >
> >
> >Login
> >
> >
> >/Login
> >
> >
> >
> >
> >Notice that  is a child of
> .
> >Also, did you create your servlets as part of a
> >package? If so, you need a directory structure
> under
> >$TOMCAT_HOME/sampleapp/WEB-INF/classes that matches
> >your package. For example, 
> >
>
>$TOMCAT_HOME/sampleapp/WEB-INF/classes/com/beeslender/servlets
> >
> >That's where the *.class files would go.
> >
> >--- Erin Lester
> <[EMAIL PROTECTED]>
> >wrote:
> >> I have created a web application as per the
> Servlet
> >> API specs and deployed
> >> it into the webapps directory of Tomcat in a
> >> directory called 'sampleapp.'
> >> 
> >> The only way that I am able to access the
> webapp's
> >> servlet (which is in
> >> sampleapp/WEB-INF/classes) is by the url
> >> 'SERVERADDRESS/sampleapp/servlet/SERVLETNAME' and
> >> this is only when I
> >> don't have a web.xml file in the WEB-INF
> directory. 
> >> When I place the
> >> web.xml file that I created (using to the
> documents
> >> on the Sun and
> >> Jakarta sites) I am unable to find my servlet.
> >> 
> >> The servlet mapping in the web.xml file looks
> like
> >> this:
> >> 
> >>
> >>
> StoryGeneratorServlet
> >> 
> >>StoryGenerator 
> >>
> >> 
> >>
> >>
> StoryGeneratorServlet
> >> 
> >>/story 
> >>
> >> 
> >> I tried using the urls
> >> 'SERVERNAME/sampleapp/servlet/story' and
> >> 'SERVERNAME/sampleapp/story'
> >> 
> >> I also tried to install the J2EE sample
> 'petstore'
> >> web application but had
> >> problems accessing the servlets with it too.  I
> am
> >> able to get to the jsps
> >> and static files okay.
> >> 
> >> Does anyone know what I am doing wrong? 
> >> 
> >> Thanks!
> >> Erin
> >> 
> >> PS - I'm using Tomcat 3.2 with Apache 1.3 on Sun
> 2.7
> >> 
> >
> >
> >=
> >-
> >[EMAIL PROTECTED]
> >Hacking is a "Good Thing!"
> >See
> http://www.tuxedo.org/~esr/faqs/hacker-howto.html
> >
> >__
> >Do You Yahoo!?
> >Get personalized email addresses from Yahoo! Mail
> >http://personal.mail.yahoo.com/
> >
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



invalid sessions with jsp and url rewriting

2001-06-26 Thread Chris Arsenault



I am currently changing from using jserv to using 
tomcat. I have a jsp website that has been working fine and still works fine 
under jserv but when I run it under tomcat, my sessions are becoming 
invalidated. I'm using url rewriting and I have noticed that tomcat is using the 
';jsessionid=*?' format instead of the '?JServSessionId=*' format of 
jserv.
 
There are 2 different situations where this 
occurs in:
1) When setting up HTML frames - My index.jsp sets up 3 HTML frames, each calling a different 
jsp file. With tomcat, most of the time the 3rd frame's jsp gets a new session 
instead of the one created in index.jsp. Once in a while it does get the same 
session, but its not reliable.
2) When using the jsp:include - Most of my jsp 
pages use jsp:include to include another 'global' jsp file. With tomcat, a new 
session is created every time in the 'included' jsp.
 
Seems to work fine otherwise.
 
Software versions:
Apache 1.3.12
Jakarta-Tomcat 3.2.1 with mod_jk 
module
Windows 2000 5.00.2195
 
Anyone have any ideas?
 
 


RE: Tomcat 4 and apache. How to make them work together?

2001-06-26 Thread Krishna Muthyala

All you have to do is the following

include this line at the end of https.conf in
apache/conf

include path_to_tomcat/tomcat/conf/tomcat-apache.conf"


and then do the following in tomcat.conf
uncomment the line based on which platform you are in


# Tell Apache on win32 to load the Apache JServ
communication module
 LoadModule jserv_module modules/ApacheModuleJServ.dll

# Tell Apache on Unix to load the Apache JServ
communication module
# For shared object builds only!!!
# @LOAD_OR_NOT@LoadModule jserv_module
@LIBEXECDIR@/mod_jserv.so
#LoadModule jserv_module libexec/mod_jserv.so

if its nt you have to get the .dll and place it in
apche/modules folder and if unix etc i think u are
fine.check to see if the above is present in your
modules folder.

you are set to go dude

Kris

--- Jann VanOver <[EMAIL PROTECTED]> wrote:
> Did you check the tomcat user guide?
> 
> -Original Message-
> From: Alejandro Arredondo
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 7:31 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4 and apache. How to make them work
> together?
> 
> 
> I have installed Tomcat 4 configured it and it works
> fine. Now I want it to work with apache together. 
> Where can I find info on how to configure them?
> 
> Thanks in advance,
> Alejandro Arredondo
> 
>
_
> Free E-mail --->
> http://letodesigns.mail.everyone.net
> Letodesigns & Programming Free e-mail
> 6MB limit
> http://letodesigns.8k.com


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: open MS document in IE 4.01

2001-06-26 Thread Krishna Muthyala

if you set up the mime types correctly then it should
open up when you serve up the request
Kris
--- Jann VanOver <[EMAIL PROTECTED]> wrote:
> What does this have to do with Tomcat?
> 
> -Original Message-
> From: Jack Li [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 8:38 AM
> To: '[EMAIL PROTECTED]'
> Subject: open MS document in IE 4.01
> 
> 
> Does anyone know if IE 4.01 can open Microsoft word
> document or Excel spread
> sheet?
> 
> Thanks
> Jack Li


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: Error: 500

2001-06-26 Thread alex chang

Hi,

I made sure to double check everything before
I wrote here (I also just signed up and wrote 
to the taglibs-user group). 

My directory structure is like this:

onjava/
 +- images/
 +- WEB-INF/
+- classes/
+- com/
+- onjava/
+- lib/
+- com/
+- onjava/

My HelloTag.java is in the main onjava/ directory; 
I compiled it with: javac -d WEB-INF\lib HelloTag.java

It created the com/onjava/ directories. I thought
nothing of it since HelloTag is in the package
com.onjava. Should I move HelloTag.class out of 
the /WEB-INF/lib/com/onjava directory and right
into the /WEB-INF/lib directory?

This was the only part I wasn't positive on since
the instructions said to put it in the lib directory.

Thanks for your help and patience,
-alex

--- Jann VanOver <[EMAIL PROTECTED]> wrote:
> Yes, that makes perfect sense.  The error message you got was "Unable to
> load class com.onjava.HelloTag" so of course you would only see the
> error
> when you try to use that tag.
> 
> Did you follow all the instructions at the end of step 4?  You have to
> create and compile HelloTag.java and then put the class file in the
> right
> place, then describe the tag in the .tld file.  If any of these things
> aren't done right, it won't be able to find the class when you need it.
> Re-check your steps.
> 
> -Original Message-
> From: alex chang [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 12:38 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Error: 500
> 
> 
> Hi Jann, thanks for replying.
> It does work with the jsp from step 4 as you've 
> said, where it simply prints the word "Welcome".
> 
> But it still doesn't work with the modified jsp
> page, where I have the taglib directive up top
> and replace the word "Welcome" with the 
> .
> 
> I've done some more checks and it seems I only 
> get the error when I have the 
> tag. That is, if I simply have the taglib directive
> and no  tag, it works. But if I 
> put that  tag back in, I get the
> error.
> 
> Any more ideas?
> Thanks,
> -alex
> 
> --- Jann VanOver <[EMAIL PROTECTED]> wrote:
> > It looks like you were doing step 4 with the JSP from step 5.  This
> code
> > won't work until after you've created and compiled the tag library,
> > which
> > you haven't done yet if you're working in order.  Try it with the JSP
> > code
> > from "Listing 3" and you shouldn't get this error.
> > 
> > -Original Message-
> > From: alex chang [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 26, 2001 6:25 AM
> > To: [EMAIL PROTECTED]
> > Subject: Error: 500
> > 
> > 
> > I've been following this little tutorial:
> > http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html?page=1
> > 
> > I'm up to the part of Adding Tag Libraries,
> > on page 4. So far, everything except this part
> > has worked. I get an HTTP 500 internal server
> > error. Here are the first four lines of that:
> > 
> > Error: 500
> > Location: /onjava/welcome.jsp
> > Internal Servlet Error:
> > 
> > org.apache.jasper.compiler.CompileException:
> > C:\jakarta-tomcat-3.3-m3\webapps\onjava\welcome.jsp(11,10) Unable to
> > load
> > class com.onjava.HelloTag
> > 
> > I was wondering if anyone who has tried this
> > example also can help me out. Thanks..
> > 
> > -alex


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



  1   2   >