Re: Errors using warp connector

2002-01-30 Thread Joe Emenaker

This brings me to the problem I'm currently having. When I make a webapp
in Tomcat and define a ROOT context, it doesn't put any DocumentRoot
statement in the auto-generated mod_jk.conf.

Basically, I'm trying to be able to do all configuration for a virtual
host with an AutoWebApp entry in Tomcat's server.xml. I want everything
Apache needs (DocumentRoot, JkMounts, the "deny" entries for WEB-INF
everything) to be autogenerated by Tomcat.

Does anyone know of a way to make it do this?

- Original Message -
From: "Emerson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 29, 2002 12:55 PM
Subject: Re: Errors using warp connector


Why don't you just use mod_jk.so
you have just to put one line in http.conf, the file with contexts conf.
is
generated automaticly by tomcat (i think till version 3.2.4)





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




RE: Reload servlet

2002-01-30 Thread Anton Brazhnyk

Hi,

> -Original Message-
> From: Emerson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 7:38 PM
> To: Tomcat Users List
> Subject: RE: Reload servlet
> 
> 
> Have you create a html manager???
> may you share that???
> 

No, I haven't created it. It shipped with TC.
All you need is to read comments in manager app web.xml.
It can be found in either CATALINA_HOME/webapps/manager or
CATALINA_HOME/server/webapps.

> Emerson Cargnin
> TRE-SC
> Setor de Desenvolvimento 
> Tel: (48) 251-3700 - Ramal 3134
> 

Anton.

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




RE: Broken pipe

2002-01-30 Thread Anton Brazhnyk

Hi,

> -Original Message-
> From: Emerson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 7:36 PM
> To: Tomcat Users List
> Subject: RE: Broken pipe
> 
> 
> I haven't tried to get that exception, but i supposse it's 
> possible to pick
> it up.
> 
> look at my stacktrace :
> 
> java.io.IOException: Broken pipe
> at java.net.SocketOutputStream.socketWrite(Native Method)
> at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
> at
> org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders(Http
> ResponseAd
> apter.java:124)
> at
> org.apache.tomcat.core.BufferedServletOutputStream.sendHeaders(Buf
> feredServl
> etOutputStream.java:126)
> at
> org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(Buf
> feredServl
> etOutputStream.java:236)
> at 
> org.apache.tomcat.core.ResponseImpl.finish(ResponseImpl.java:215)
> at
> org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDi
> spatcherIm
> pl.java:243)
> at
> org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDisp
> atcherImpl
> .java:162)
> at cadServlet.visualizaEstatiticas(cadServlet.java:690)
> at cadServlet.doGet(cadServlet.java:351)
> at cadServlet.doPost(cadServlet.java:408)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> 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(ContextManag
> er.java:806)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> tion(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)
> 

Any mention about your own code, right? So, you can't catch it in your servlet
or jsp. Its internal for container. IMHO you'll have to hack into TC to get
this IOException.
I've been trying to ask about this problem, or if its not a problem and I just
crazzy :)
I really want to get notified of connection closing event.
Nobody answered :(

> 
> At 15:49 30/1/2002 +0200, you wrote:
> >Hi,
> >
> >> -Original Message-
> >> From: Emerson [mailto:[EMAIL PROTECTED]]
> >> Sent: Tuesday, January 29, 2002 10:50 PM
> >> To: Tomcat Users List
> >> Subject: Broken pipe
> >> 
> >> 
> >> Is there any way of not throwing an exception 
> "java.io.IOException: Broken
> >> pipe" when the user reloads or cancel the request of a page 
> >> Or its good
> >> to get this exception to rollback all the transactions done already???
> >> 
> >
> >Is it possible to get that exception? I mean it's thrown to some internal
> TC classes.
> >I'd really want my application to be aware of reloading or cancel. Any
> suggestions?
> >
> >> Emerson Cargnin
> >> TRE-SC
> >> Setor de Desenvolvimento 
> >> Tel: (48) 251-3700 - Ramal 3134
> >> 
> >
> >Anton
> >
> >--
> >
> Emerson Cargnin
> TRE-SC
> Setor de Desenvolvimento 
> Tel: (48) 251-3700 - Ramal 3134
> 

Anton

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




Re: Problems with .exe install for NT

2002-01-30 Thread Tom Bednarz

John,

Type tomcat.exe /? for a help screen.

I have written some batch files to install and uninstall it as service with
apropriate settings for the VM. Here the exemples (all on one line please)

 snip 
@echo on
d:
cd \Tomcat4.0\bin

tomcat.exe -install "Apache Tomcat"
C:\JavaSoft\JRE\1.3.1_02\bin\hotspot\jvm.dll -jvm_option -Djava.class.path=D
:\Tomcat4.0\bin\bootstrap.jar -jvm_option -Dcatalina.home=d:\tomcat4.0 -jvm_
option -Xms64M -jvm_option -Xmx256M -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -out
d:\tomcat4.0\logs\service.out -err d:\tomcat4.0\logs\service.err

- snip --

d:
cd \Tomcat4.0\bin
tomcat -uninstall "Apache Tomcat"



I'm still looking for the source code of the tomcat.exe and the installation
script. This seems to be a top secret issue since nobody answers my request
either here nor on the dev list Is this one not OPEN SOURCE ??

Thomas



- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 30, 2002 7:31 PM
Subject: RE: Problems with .exe install for NT


> Have you set JAVA_HOME to d:\java\JDK1.4 (assuming that's where your JDK
> is installed)?  Just a thought.
>
> Dennis
>
> -Original Message-
> From: jmh.tomcat [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 9:13 AM
> To: tomcat-user
> Subject: Re: Problems with .exe install for NT
>
>
> or does anyone have suggestions on how to get around this problem?
>
> >
> > From: <[EMAIL PROTECTED]>
> > Date: 2002/01/30 Wed AM 11:10:59 EST
> > To: [EMAIL PROTECTED]
> > Subject: Problems with .exe install for NT
> >
> > I can't get my .exe to install on my NT system.  It says that the path
> of the JDK can't be found.  My JDK is under D:\java\JDK1.4.
> >
> > Is there anyway that an optional argument can be added to the
> installer to allow for a different path for the JDK than the default?
> >
> > Thanks
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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




JSP problem

2002-01-30 Thread Michael Burke

I'm using the build.xml file and ant to deploy my app in tomcat4. The
app is deployed successfully but when I try to access my jsp page
through a servlet I get a "/cdtest/menu.jsp is not available" error.
Menu.jsp is in the cdtest directory (my apps root directory) under the
webapps directory. I own all the directories of my webapp and the files
are executable so I don't think that's the problem.. Tomcat's log
doesn't give an error message so that's not helping. Any suggestions
would be appreciated.


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




progress has been made but... (was: mod_jk.conf?!?)

2002-01-30 Thread Donald Lee

Ok, I am hot on a trail here, can anybody figure out what is going on based 
on these logs?
from mod_jk.log:

[Wed Jan 30 21:23:57 2002]  [jk_connect.c (143)]: jk_open_socket, connect() 
failed errno = 111
[Wed Jan 30 21:23:57 2002]  [jk_ajp13_worker.c (196)]: In 
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Wed Jan 30 21:23:57 2002]  [jk_ajp13_worker.c (635)]: Error connecting to 
the Tomcat process.
[Wed Jan 30 21:23:57 2002]  [jk_ajp13_worker.c (848)]: In 
jk_endpoint_t::service, send_request failed in send loop 2

---
from error_log:
[Wed Jan 30 21:53:20 2002] [notice] Apache-AdvancedExtranetServer/1.3.20 
(Mandrake Linux/3mdk) mod_jk/1.1.0 mod_ssl/2.8.4 OpenSSL/0.9.6b configured 
-- resuming normal operations
[Wed Jan 30 21:53:20 2002] [notice] suEXEC mechanism enabled (wrapper: 
/usr/sbin/suexec)
[Wed Jan 30 21:56:09 2002] [error] [client 192.168.0.1] File does not exist: 
/var/www/html/index.jsp
--

Ok, in the first log I admit total ignorance I haven't a clue what all that 
gobbledygook means, other than it can't seem to talk to tomcat.  The 2nd log 
on the otherhand, I can see what is happening, instead of looking in 
/var/tomcat4/webapps/ROOT, it's looking in the Document root as defined in 
commonhttpd.conf.  Which is /var/www/html.
I followed the instructions to the best of my abilities using the following 
sources,

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html
I found some examples of workers.properties files there.

http://www.ubeans.com/tomcat/index.html
I attempted to adapt this setup to my own non load-balancing server.  I 
didn't want to setup two copies of tomcat on my system.
I am also using the default port of 8009 instead of changing it like in the 
example.
when I was done I made sure tomcat was started before apache.. Nothing 
errored out upon start that I could find.
I did have tomcat working fine on the standard :8080 port before doing all 
of this.
Thanks
I swear if I figure this out I will do everything in my power to help others 
with this mod_jk thing it's just so frustrating.



_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




RE: Help !!! JNI & Tomcat (UnSatisfiedLinkError exception)

2002-01-30 Thread Brian Adams

Tomcat must not look in the \winnt\system32 directory.
put the dll in the same directory as the class file.
If you have tomcat starting as a service, try putting the dll in the
%TOMCAT_HOME% directory eg. C:\tomcat
lastly try putting the dll in %TOMCAT_HOME%\bin directory.
goodluck,
B

-Original Message-
From: Anil Bhagwat [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 4:35 PM
To: [EMAIL PROTECTED]
Subject: Help !!! JNI & Tomcat (UnSatisfiedLinkError exception)


Hi,

I have been trying to use JNI on Win2K using tomcat 4.0. I am running into a
problem.

I keep getting UnSatisfiedLinkError exception. This doesn't happen when I
execute the JNI from a sample JAVA application. I have placed the DLL under
\winnt\system32 directory. The DLL is a C++ COM DLL compiled using MS Visual
C++ 6.0. I tried using a C++ (no COM) DLL and a C DLL but no success.

I tried creating just a simple function that doesn't accept any parameters &
doesn't return any value. But, still it doesn't work. So, the problem is
unlikely to have with the param types etc.

I tried this on several versions of Tomcat but no success. I think the app
finds the DLL correctly but can't find the method within correctly. I
suspect this has something to do with Tomcat configuration (security ??).

Has anyone seen this problem before ? While browsing thru' archives, I saw
quite few people have run into this issue, but didn't notice any resolution.
I would appreciate any help on this issue.

thanks

- Anil

_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com


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



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




RE: Tomcat & Apache

2002-01-30 Thread Dennis . Johnson

Rich,

Mark's definitely The Man!  He's been a great help to me.  Let me see
if I can get mine to work before I send you wrong information.

Dennis

-Original Message-
From: rsneiderman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 6:10 PM
To: tomcat-user
Subject: RE: Tomcat & Apache


That's the advice I've gotten from other people.  I got an email from
one gentleman (Mark Eggers) who said that he thought he had found the
problem area but hadn't had time to fix it.

Can you give me some pointers on mod_jk?  I went to the mod_jk-howto
page.  However I couldn't find the source.  Mark also made some comments
concerning mod_jk about needing to:

put in some aliases so that the
web server can find the files, and you'll want to
restrict access to the /application_name/WEB-INF/
directory.

You'll need an Alias directive for each application,
and two Directory directives to accomplish this.

Any ideas there.  Any help would be appreciated.

- Rich


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 30, 2002 5:59 PM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat & Apache


Rich,

First of all, I'm not an expert; but until one of them replies with the
facts, maybe I can save you some time.

I've been trying to do the same thing (with NT).  Text loads right away,
but it hangs loading the 3 gif's, right?  What I've gleaned so far is
warp (mod_webapp) is not quite ready for prime time - at least on
Windows.  My take on it (and what I'm doing now), is go the mod_jk route
for now.

Hope this helps.  (And if I'm not correct in this advice, somebody
please straighten me out.)

Good luck!

Dennis


-Original Message-
From: rsneiderman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 4:42 PM
To: tomcat-user
Subject: Tomcat & Apache


Hi Folks,

I'm new to both the Java and Apache world.  I've managed to get Tomcat
up and running standalone (i.e talking via port 8080).  I've created new
applications (i.e. contexts) and tested JSPs and Servets in that
application.  Everything seems happy.

I've gotten Apache up and running. It happily serves pages.

What I'm struggling with is getting Tomcat to run through Apache.  I've
followed the instructions that came in
'webapp-module-1.0-tc40-windows.zip' and placed the 'libapr.dll' and
'mod_webapp.so' files in apache's modules directory.  I've modifed the
httpd.conf file to add the 'LoadModule' and 'AddModule' commands to the
file.  I've also added the WebAppConnection and WebAppDeploy commands in
httpd.conf.  I've tried this using the commands described in the
server.xml file and the slightly different version that's described in
the Install.txt file).  Either way Test Config says that Apache is
happy.  However my requests time out when I try to bring up the examples
pages (with a URL such as
http://127.0.0.1:8008/examples/jsp/index.html).

Any help would be appeciated.  I'm running on WinXp pro and running
Tomcat 4.0.1 and Apache 3.22.

Thanks

- Rich

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



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


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



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




RE: Tomcat & Apache

2002-01-30 Thread Rich Sneiderman

That's the advice I've gotten from other people.  I got an email from
one gentleman (Mark Eggers) who said that he thought he had found the
problem area but hadn't had time to fix it.

Can you give me some pointers on mod_jk?  I went to the mod_jk-howto
page.  However I couldn't find the source.  Mark also made some comments
concerning mod_jk about needing to:

put in some aliases so that the
web server can find the files, and you'll want to
restrict access to the /application_name/WEB-INF/
directory.

You'll need an Alias directive for each application,
and two Directory directives to accomplish this.

Any ideas there.  Any help would be appreciated.

- Rich


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 30, 2002 5:59 PM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat & Apache


Rich,

First of all, I'm not an expert; but until one of them replies with the
facts, maybe I can save you some time.

I've been trying to do the same thing (with NT).  Text loads right away,
but it hangs loading the 3 gif's, right?  What I've gleaned so far is
warp (mod_webapp) is not quite ready for prime time - at least on
Windows.  My take on it (and what I'm doing now), is go the mod_jk route
for now.

Hope this helps.  (And if I'm not correct in this advice, somebody
please straighten me out.)

Good luck!

Dennis


-Original Message-
From: rsneiderman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 4:42 PM
To: tomcat-user
Subject: Tomcat & Apache


Hi Folks,

I'm new to both the Java and Apache world.  I've managed to get Tomcat
up and running standalone (i.e talking via port 8080).  I've created new
applications (i.e. contexts) and tested JSPs and Servets in that
application.  Everything seems happy.

I've gotten Apache up and running. It happily serves pages.

What I'm struggling with is getting Tomcat to run through Apache.  I've
followed the instructions that came in
'webapp-module-1.0-tc40-windows.zip' and placed the 'libapr.dll' and
'mod_webapp.so' files in apache's modules directory.  I've modifed the
httpd.conf file to add the 'LoadModule' and 'AddModule' commands to the
file.  I've also added the WebAppConnection and WebAppDeploy commands in
httpd.conf.  I've tried this using the commands described in the
server.xml file and the slightly different version that's described in
the Install.txt file).  Either way Test Config says that Apache is
happy.  However my requests time out when I try to bring up the examples
pages (with a URL such as
http://127.0.0.1:8008/examples/jsp/index.html).

Any help would be appeciated.  I'm running on WinXp pro and running
Tomcat 4.0.1 and Apache 3.22.

Thanks

- Rich

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



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


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




RE: Tomcat & Apache

2002-01-30 Thread Dennis . Johnson

Rich,

First of all, I'm not an expert; but until one of them replies with
the facts, maybe I can save you some time.

I've been trying to do the same thing (with NT).  Text loads right
away, but it hangs loading the 3 gif's, right?  What I've gleaned
so far is warp (mod_webapp) is not quite ready for prime time - at
least on Windows.  My take on it (and what I'm doing now), is go the
mod_jk route for now.

Hope this helps.  (And if I'm not correct in this advice, somebody
please straighten me out.)

Good luck!

Dennis


-Original Message-
From: rsneiderman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 4:42 PM
To: tomcat-user
Subject: Tomcat & Apache


Hi Folks,

I'm new to both the Java and Apache world.  I've managed to get Tomcat
up and running standalone (i.e talking via port 8080).  I've created new
applications (i.e. contexts) and tested JSPs and Servets in that
application.  Everything seems happy.

I've gotten Apache up and running. It happily serves pages.

What I'm struggling with is getting Tomcat to run through Apache.  I've
followed the instructions that came in
'webapp-module-1.0-tc40-windows.zip' and placed the 'libapr.dll' and
'mod_webapp.so' files in apache's modules directory.  I've modifed the
httpd.conf file to add the 'LoadModule' and 'AddModule' commands to the
file.  I've also added the WebAppConnection and WebAppDeploy commands in
httpd.conf.  I've tried this using the commands described in the
server.xml file and the slightly different version that's described in
the Install.txt file).  Either way Test Config says that Apache is
happy.  However my requests time out when I try to bring up the examples
pages (with a URL such as
http://127.0.0.1:8008/examples/jsp/index.html).

Any help would be appeciated.  I'm running on WinXp pro and running
Tomcat 4.0.1 and Apache 3.22.

Thanks

- Rich

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



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




RE: Tomcat shuts down logoff Windows 2000 Server

2002-01-30 Thread Pavel Brun

you may need to run the Tomcat 4.0.1 service as an actual NT service. If you
start
the application at a command line...then the application will shut down
since it
has been loaded within the context of tye logged in user.

Paul

-Original Message-
From: Atok Koenig [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 7:22 PM
To: [EMAIL PROTECTED]
Subject: Tomcat shuts down logoff Windows 2000 Server


New to Tomcat

Installed Tomcat 4.0.1 on Windows 2000 server using local Admin account via
Windows Terminal Services. Runs fine when logged in and started via
startup.bat. DOS-type window titled "Catalina" opens saying "starting
service tomcat-standalone" and starting service tomcat-apache" each followed
by "Apache Tomkat/4.0.1".

When I log out of terminal services java.exe stops running so server stops
responding.

Thanks

Jakarta Tomcat 4.0.1
JDK 1.3.1_02
Windows 2000 Server SP2

--

___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Win a ski trip!
http://www.nowcode.com/register.asp?affiliate=1net2phone3a



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



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




RE: JasperLoader Exception

2002-01-30 Thread Pavel Brun

Thanks for your reply...but could this be the problem that is related to
the Jasper ClassLoader Exception error I am getting when first accessing
this page. After I refresh the page (this is after the Singleton instance
of my object is created), the page loads up without any problems...

Could this be related to a Security Manager (or lack of) within the context
of this application?

Thanks

Paul

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 7:17 PM
To: Tomcat Users List
Subject: RE: JasperLoader Exception




On Wed, 30 Jan 2002, Pavel Brun wrote:

> Date: Wed, 30 Jan 2002 18:34:41 -0500
> From: Pavel Brun <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: JasperLoader Exception
>
> thanks.was it within code related to Tomcat? Or your own code that
does
> the calling to an RMI server???
>

Tomcat 4 has zero calls to System.setSecurityManager in it.  If you start
it with the appropriate command line option (-security), the standard
startup scripts add the following system property settings to the command
line:

-Djava.security.manager
-Djava.security.policy==$CATALINA_BASE/conf/catalina.policy

which tells the JVM to install a security manager at startup time, using
the specified policy file as a replacement for the one in the JDK
directory (that's what the '==' does).

If you start Tomcat without a security manager, and some code that is
executed calls System.setSecurityManager, that is exactly what the JVM
does.  (Of course, if somebody calls System.exit() it will shut down
Tomcat as well :-).

Moral of the story - you are advised to bone up on how security managers
work in Java, and run Tomcat with the "-security" option at startup time.
You'll need to add any permissions your apps require to the
catalina.policy file (the default sandbox is fairly restrictive), but you
can avoid some nasty things that bad code (or inadvertently called code)
might do to you.

Craig McClanahan


> -Original Message-
> From: Richard Bushell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 6:12 PM
> To: Tomcat Users List
> Subject: RE: JasperLoader Exception
>
>
> We had a similiar problem calling an RMI server from within Tomcat.  It
> turned out that deep down inside some library code there was a call to
> System.setSecurityManager(...).
>
> Hope this helps.
>
> Richard
>
>
> -Original Message-
> From: Pavel Brun [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 9:36 AM
> To: Tomcat Users List
> Subject: RE: JasperLoader Exception
>
>
> Hello all,
>
> Well...I did have a chance to get up a Website to try to prove my
> example,
> but I couldn't with the example I tried to show.
>
> It actually is a problem related to creating an object that queries an
> LDAP server for certain attributes in order to use them later in the
> application.
> Does anybody know of any latency issues with regards to LDAP queries and
> trying
> to access an object that does this??
>
> Thanks
>
> Paul
>
> -Original Message-
> From: Pavel Brun [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 27, 2002 9:48 PM
> To: Tomcat Users List
> Subject: RE: JasperLoader Exception
>
>
> Thanks...I will try to get one up as soon as possible. I will let you
> know
> when I have something up and running.
>
> Thanks
>
> Paul
>
> -Original Message-
> From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 27, 2002 6:29 PM
> To: Tomcat Users List
> Subject: Re: JasperLoader Exception
>
>
> > Hello all,
> >
> > I am new this this mailing list. I am developing software and am using
> > Java Beans and Tags for this particular application. From time to
> time,
> > when I first access a particular page, I get a Class Loader exception
> > when loading a class:
> >
> > java.lang.NullPointerException
> > at
> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:198)
> > at
> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132)
> > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> > at org.apache.jsp.settings$jsp._jspService(settings$jsp.java:115)
> > .
> > . I leave out these details because it does not bring any
> >   . value.
> > .
> >
> > In this particular case, it crashed when trying to use the
> "pageContext"
> > variable name when using: pageContext.getAttribute() method. Does
> anybody
> > know what the root cause of a Jasper Loader exception is? Is it at all
> > related to insantiating beans or using the  parameter?
> >
> > I have tried looking everywhere, but couldn't find any description or
> > solutions..
>
> Could you post a simple JSP file that would cause the problem ?
>
> Remy
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>
> --
> To unsubscribe:   

RE: Tomcat shuts down logoff Windows 2000 Server

2002-01-30 Thread Timlin, Bob

Make sure you read this part, it is very important.  Javaserv or JavaService
is what you want!

Notice for JDK 1.3 users: There is a known problem in JDK 1.3 that affects
Java applications being run as Windows NT services. The bug causes the
service to terminate when the currently logged in user logs out. The
simplest way to work around this problem is to use JDK 1.2. If your
application requires JDK 1.3 features then you may want to look into
javaserv or JavaService . Users have reported success with both of these
packages but there may be others that work as well. 


-Original Message-
From: Timlin, Bob [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 30, 2002 4:43 PM
To: Tomcat Users List
Subject: RE: Tomcat shuts down logoff Windows 2000 Server

This is a known bug with Tomcat, you can download JavaService (JavaSrvc)
from Apache's website.  Essentially it uses a different method for
generating an NT Service.  Here are the details, although it is a Tomcat3.3
example, it works the same for Tomcat4
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html


-Original Message-
From: Atok Koenig [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 30, 2002 4:22 PM
To: [EMAIL PROTECTED]
Subject: Tomcat shuts down logoff Windows 2000 Server

New to Tomcat

Installed Tomcat 4.0.1 on Windows 2000 server using local Admin account via
Windows Terminal Services. Runs fine when logged in and started via
startup.bat. DOS-type window titled "Catalina" opens saying "starting
service tomcat-standalone" and starting service tomcat-apache" each followed
by "Apache Tomkat/4.0.1". 

When I log out of terminal services java.exe stops running so server stops
responding. 

Thanks

Jakarta Tomcat 4.0.1
JDK 1.3.1_02
Windows 2000 Server SP2

-- 

___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Win a ski trip!
http://www.nowcode.com/register.asp?affiliate=1net2phone3a



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



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



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




Tomcat & Apache

2002-01-30 Thread Rich Sneiderman

Hi Folks,

I'm new to both the Java and Apache world.  I've managed to get Tomcat
up and running standalone (i.e talking via port 8080).  I've created new
applications (i.e. contexts) and tested JSPs and Servets in that
application.  Everything seems happy.

I've gotten Apache up and running. It happily serves pages.

What I'm struggling with is getting Tomcat to run through Apache.  I've
followed the instructions that came in
'webapp-module-1.0-tc40-windows.zip' and placed the 'libapr.dll' and
'mod_webapp.so' files in apache's modules directory.  I've modifed the
httpd.conf file to add the 'LoadModule' and 'AddModule' commands to the
file.  I've also added the WebAppConnection and WebAppDeploy commands in
httpd.conf.  I've tried this using the commands described in the
server.xml file and the slightly different version that's described in
the Install.txt file).  Either way Test Config says that Apache is
happy.  However my requests time out when I try to bring up the examples
pages (with a URL such as
http://127.0.0.1:8008/examples/jsp/index.html).

Any help would be appeciated.  I'm running on WinXp pro and running
Tomcat 4.0.1 and Apache 3.22.

Thanks

- Rich

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




RE: Tomcat shuts down logoff Windows 2000 Server

2002-01-30 Thread Timlin, Bob

This is a known bug with Tomcat, you can download JavaService (JavaSrvc)
from Apache's website.  Essentially it uses a different method for
generating an NT Service.  Here are the details, although it is a Tomcat3.3
example, it works the same for Tomcat4
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html


-Original Message-
From: Atok Koenig [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 30, 2002 4:22 PM
To: [EMAIL PROTECTED]
Subject: Tomcat shuts down logoff Windows 2000 Server

New to Tomcat

Installed Tomcat 4.0.1 on Windows 2000 server using local Admin account via
Windows Terminal Services. Runs fine when logged in and started via
startup.bat. DOS-type window titled "Catalina" opens saying "starting
service tomcat-standalone" and starting service tomcat-apache" each followed
by "Apache Tomkat/4.0.1". 

When I log out of terminal services java.exe stops running so server stops
responding. 

Thanks

Jakarta Tomcat 4.0.1
JDK 1.3.1_02
Windows 2000 Server SP2

-- 

___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Win a ski trip!
http://www.nowcode.com/register.asp?affiliate=1net2phone3a



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



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




Tomcat shuts down logoff Windows 2000 Server

2002-01-30 Thread Atok Koenig

New to Tomcat

Installed Tomcat 4.0.1 on Windows 2000 server using local Admin account via Windows 
Terminal Services. Runs fine when logged in and started via startup.bat. DOS-type 
window titled "Catalina" opens saying "starting service tomcat-standalone" and 
starting service tomcat-apache" each followed by "Apache Tomkat/4.0.1". 

When I log out of terminal services java.exe stops running so server stops responding. 

Thanks

Jakarta Tomcat 4.0.1
JDK 1.3.1_02
Windows 2000 Server SP2

-- 

___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Win a ski trip!
http://www.nowcode.com/register.asp?affiliate=1net2phone3a



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




RE: JasperLoader Exception

2002-01-30 Thread Craig R. McClanahan



On Wed, 30 Jan 2002, Pavel Brun wrote:

> Date: Wed, 30 Jan 2002 18:34:41 -0500
> From: Pavel Brun <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: JasperLoader Exception
>
> thanks.was it within code related to Tomcat? Or your own code that does
> the calling to an RMI server???
>

Tomcat 4 has zero calls to System.setSecurityManager in it.  If you start
it with the appropriate command line option (-security), the standard
startup scripts add the following system property settings to the command
line:

-Djava.security.manager
-Djava.security.policy==$CATALINA_BASE/conf/catalina.policy

which tells the JVM to install a security manager at startup time, using
the specified policy file as a replacement for the one in the JDK
directory (that's what the '==' does).

If you start Tomcat without a security manager, and some code that is
executed calls System.setSecurityManager, that is exactly what the JVM
does.  (Of course, if somebody calls System.exit() it will shut down
Tomcat as well :-).

Moral of the story - you are advised to bone up on how security managers
work in Java, and run Tomcat with the "-security" option at startup time.
You'll need to add any permissions your apps require to the
catalina.policy file (the default sandbox is fairly restrictive), but you
can avoid some nasty things that bad code (or inadvertently called code)
might do to you.

Craig McClanahan


> -Original Message-
> From: Richard Bushell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 6:12 PM
> To: Tomcat Users List
> Subject: RE: JasperLoader Exception
>
>
> We had a similiar problem calling an RMI server from within Tomcat.  It
> turned out that deep down inside some library code there was a call to
> System.setSecurityManager(...).
>
> Hope this helps.
>
> Richard
>
>
> -Original Message-
> From: Pavel Brun [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 9:36 AM
> To: Tomcat Users List
> Subject: RE: JasperLoader Exception
>
>
> Hello all,
>
> Well...I did have a chance to get up a Website to try to prove my
> example,
> but I couldn't with the example I tried to show.
>
> It actually is a problem related to creating an object that queries an
> LDAP server for certain attributes in order to use them later in the
> application.
> Does anybody know of any latency issues with regards to LDAP queries and
> trying
> to access an object that does this??
>
> Thanks
>
> Paul
>
> -Original Message-
> From: Pavel Brun [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 27, 2002 9:48 PM
> To: Tomcat Users List
> Subject: RE: JasperLoader Exception
>
>
> Thanks...I will try to get one up as soon as possible. I will let you
> know
> when I have something up and running.
>
> Thanks
>
> Paul
>
> -Original Message-
> From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 27, 2002 6:29 PM
> To: Tomcat Users List
> Subject: Re: JasperLoader Exception
>
>
> > Hello all,
> >
> > I am new this this mailing list. I am developing software and am using
> > Java Beans and Tags for this particular application. From time to
> time,
> > when I first access a particular page, I get a Class Loader exception
> > when loading a class:
> >
> > java.lang.NullPointerException
> > at
> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:198)
> > at
> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132)
> > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> > at org.apache.jsp.settings$jsp._jspService(settings$jsp.java:115)
> > .
> > . I leave out these details because it does not bring any
> >   . value.
> > .
> >
> > In this particular case, it crashed when trying to use the
> "pageContext"
> > variable name when using: pageContext.getAttribute() method. Does
> anybody
> > know what the root cause of a Jasper Loader exception is? Is it at all
> > related to insantiating beans or using the  parameter?
> >
> > I have tried looking everywhere, but couldn't find any description or
> > solutions..
>
> Could you post a simple JSP file that would cause the problem ?
>
> Remy
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles

RE: JasperLoader Exception

2002-01-30 Thread Richard Bushell

It was in our own code that did some form of naming lookup.  From
memory, the Tomcat code did something like:

if ( System.getSecurityManager() != null ) {
classLoader = doSomethingThatReturnsNull()
} else {
classLoader = ...
}
classLoader.doSomething()



-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 10:35 AM
To: Tomcat Users List
Subject: RE: JasperLoader Exception


thanks.was it within code related to Tomcat? Or your own code that
does
the calling to an RMI server???

-Original Message-
From: Richard Bushell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 6:12 PM
To: Tomcat Users List
Subject: RE: JasperLoader Exception


We had a similiar problem calling an RMI server from within Tomcat.  It
turned out that deep down inside some library code there was a call to
System.setSecurityManager(...).

Hope this helps.

Richard


-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 9:36 AM
To: Tomcat Users List
Subject: RE: JasperLoader Exception


Hello all,

Well...I did have a chance to get up a Website to try to prove my
example,
but I couldn't with the example I tried to show.

It actually is a problem related to creating an object that queries an
LDAP server for certain attributes in order to use them later in the
application.
Does anybody know of any latency issues with regards to LDAP queries and
trying
to access an object that does this??

Thanks

Paul

-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 9:48 PM
To: Tomcat Users List
Subject: RE: JasperLoader Exception


Thanks...I will try to get one up as soon as possible. I will let you
know
when I have something up and running.

Thanks

Paul

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 6:29 PM
To: Tomcat Users List
Subject: Re: JasperLoader Exception


> Hello all,
>
> I am new this this mailing list. I am developing software and am using
> Java Beans and Tags for this particular application. From time to
time,
> when I first access a particular page, I get a Class Loader exception
> when loading a class:
>
> java.lang.NullPointerException
> at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:198)
> at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at org.apache.jsp.settings$jsp._jspService(settings$jsp.java:115)
> .
> . I leave out these details because it does not bring any
>   . value.
> .
>
> In this particular case, it crashed when trying to use the
"pageContext"
> variable name when using: pageContext.getAttribute() method. Does
anybody
> know what the root cause of a Jasper Loader exception is? Is it at all
> related to insantiating beans or using the  parameter?
>
> I have tried looking everywhere, but couldn't find any description or
> solutions..

Could you post a simple JSP file that would cause the problem ?

Remy


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



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




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


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



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


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




Manager App is broken

2002-01-30 Thread Harry Long

Hi ,

I run Tomcat4.0 under Apache1.3.22. And when I try to use Manager App tool,
I got some inner 
problems like this:

java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
loaded by this web application
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:836)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:518)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:215)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)

Does anyone get the same problem before or anyone know how to fix this
problem? By the way,
the Manager App tool runs well when Tomcat is running as a stand-alone
server.

Any help will be very appreciated.

Thanks
Harry


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




RE: JasperLoader Exception

2002-01-30 Thread Pavel Brun

thanks.was it within code related to Tomcat? Or your own code that does
the calling to an RMI server???

-Original Message-
From: Richard Bushell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 6:12 PM
To: Tomcat Users List
Subject: RE: JasperLoader Exception


We had a similiar problem calling an RMI server from within Tomcat.  It
turned out that deep down inside some library code there was a call to
System.setSecurityManager(...).

Hope this helps.

Richard


-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 9:36 AM
To: Tomcat Users List
Subject: RE: JasperLoader Exception


Hello all,

Well...I did have a chance to get up a Website to try to prove my
example,
but I couldn't with the example I tried to show.

It actually is a problem related to creating an object that queries an
LDAP server for certain attributes in order to use them later in the
application.
Does anybody know of any latency issues with regards to LDAP queries and
trying
to access an object that does this??

Thanks

Paul

-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 9:48 PM
To: Tomcat Users List
Subject: RE: JasperLoader Exception


Thanks...I will try to get one up as soon as possible. I will let you
know
when I have something up and running.

Thanks

Paul

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 6:29 PM
To: Tomcat Users List
Subject: Re: JasperLoader Exception


> Hello all,
>
> I am new this this mailing list. I am developing software and am using
> Java Beans and Tags for this particular application. From time to
time,
> when I first access a particular page, I get a Class Loader exception
> when loading a class:
>
> java.lang.NullPointerException
> at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:198)
> at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at org.apache.jsp.settings$jsp._jspService(settings$jsp.java:115)
> .
> . I leave out these details because it does not bring any
>   . value.
> .
>
> In this particular case, it crashed when trying to use the
"pageContext"
> variable name when using: pageContext.getAttribute() method. Does
anybody
> know what the root cause of a Jasper Loader exception is? Is it at all
> related to insantiating beans or using the  parameter?
>
> I have tried looking everywhere, but couldn't find any description or
> solutions..

Could you post a simple JSP file that would cause the problem ?

Remy


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



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




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


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



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




RE: JasperLoader Exception

2002-01-30 Thread Richard Bushell

We had a similiar problem calling an RMI server from within Tomcat.  It
turned out that deep down inside some library code there was a call to
System.setSecurityManager(...).

Hope this helps.

Richard


-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 9:36 AM
To: Tomcat Users List
Subject: RE: JasperLoader Exception


Hello all,

Well...I did have a chance to get up a Website to try to prove my
example,
but I couldn't with the example I tried to show.

It actually is a problem related to creating an object that queries an
LDAP server for certain attributes in order to use them later in the
application.
Does anybody know of any latency issues with regards to LDAP queries and
trying
to access an object that does this??

Thanks

Paul

-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 9:48 PM
To: Tomcat Users List
Subject: RE: JasperLoader Exception


Thanks...I will try to get one up as soon as possible. I will let you
know
when I have something up and running.

Thanks

Paul

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 6:29 PM
To: Tomcat Users List
Subject: Re: JasperLoader Exception


> Hello all,
>
> I am new this this mailing list. I am developing software and am using
> Java Beans and Tags for this particular application. From time to
time,
> when I first access a particular page, I get a Class Loader exception
> when loading a class:
>
> java.lang.NullPointerException
> at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:198)
> at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at org.apache.jsp.settings$jsp._jspService(settings$jsp.java:115)
> .
> . I leave out these details because it does not bring any
>   . value.
> .
>
> In this particular case, it crashed when trying to use the
"pageContext"
> variable name when using: pageContext.getAttribute() method. Does
anybody
> know what the root cause of a Jasper Loader exception is? Is it at all
> related to insantiating beans or using the  parameter?
>
> I have tried looking everywhere, but couldn't find any description or
> solutions..

Could you post a simple JSP file that would cause the problem ?

Remy


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



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




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


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




Re: no proper entry in the ID_TABLE

2002-01-30 Thread Craig R. McClanahan



On Wed, 30 Jan 2002, impala impala wrote:

> Date: Wed, 30 Jan 2002 22:24:38 + (GMT)
> From: impala impala <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: no proper entry in the ID_TABLE
>
> Hi
>
> After creating sql using Torque, I ran my browser to
> insert some stuff in the database DEV_GROUP. Then I
> got the following error.
>
> java.lang.reflect.InvocationTargetException:
> org.apache.turbine.util.TurbineException: The table
> DEV_GROUP does not have a proper entry in the ID_TABLE
>

Sounds like a question you might want to ask on the TURBINE-USER mailing
list, rather than TOMCAT-USER.

> Can someone PLEASE help me
> Thanks
> Nico
>

Craig


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




RE: JasperLoader Exception

2002-01-30 Thread Pavel Brun

Hello all,

Well...I did have a chance to get up a Website to try to prove my example,
but I couldn't with the example I tried to show.

It actually is a problem related to creating an object that queries an
LDAP server for certain attributes in order to use them later in the
application.
Does anybody know of any latency issues with regards to LDAP queries and
trying
to access an object that does this??

Thanks

Paul

-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 9:48 PM
To: Tomcat Users List
Subject: RE: JasperLoader Exception


Thanks...I will try to get one up as soon as possible. I will let you know
when I have something up and running.

Thanks

Paul

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 6:29 PM
To: Tomcat Users List
Subject: Re: JasperLoader Exception


> Hello all,
>
> I am new this this mailing list. I am developing software and am using
> Java Beans and Tags for this particular application. From time to time,
> when I first access a particular page, I get a Class Loader exception
> when loading a class:
>
> java.lang.NullPointerException
> at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:198)
> at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at org.apache.jsp.settings$jsp._jspService(settings$jsp.java:115)
> .
> . I leave out these details because it does not bring any
>   . value.
> .
>
> In this particular case, it crashed when trying to use the "pageContext"
> variable name when using: pageContext.getAttribute() method. Does anybody
> know what the root cause of a Jasper Loader exception is? Is it at all
> related to insantiating beans or using the  parameter?
>
> I have tried looking everywhere, but couldn't find any description or
> solutions..

Could you post a simple JSP file that would cause the problem ?

Remy


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



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




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




Help !!! JNI & Tomcat (UnSatisfiedLinkError exception)

2002-01-30 Thread Anil Bhagwat

Hi,

I have been trying to use JNI on Win2K using tomcat 4.0. I am running into a 
problem.

I keep getting UnSatisfiedLinkError exception. This doesn't happen when I 
execute the JNI from a sample JAVA application. I have placed the DLL under 
\winnt\system32 directory. The DLL is a C++ COM DLL compiled using MS Visual 
C++ 6.0. I tried using a C++ (no COM) DLL and a C DLL but no success.

I tried creating just a simple function that doesn't accept any parameters & 
doesn't return any value. But, still it doesn't work. So, the problem is 
unlikely to have with the param types etc.

I tried this on several versions of Tomcat but no success. I think the app 
finds the DLL correctly but can't find the method within correctly. I 
suspect this has something to do with Tomcat configuration (security ??).

Has anyone seen this problem before ? While browsing thru' archives, I saw 
quite few people have run into this issue, but didn't notice any resolution. 
I would appreciate any help on this issue.

thanks

- Anil

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




no proper entry in the ID_TABLE

2002-01-30 Thread impala impala

Hi 

After creating sql using Torque, I ran my browser to
insert some stuff in the database DEV_GROUP. Then I
got the following error.

java.lang.reflect.InvocationTargetException:
org.apache.turbine.util.TurbineException: The table
DEV_GROUP does not have a proper entry in the ID_TABLE

Can someone PLEASE help me
Thanks
Nico

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




Placing context root in public_html

2002-01-30 Thread Kenneth Johnson

I have tomcat installed as a standalone on my office computer and can successfully run 
servlets when they are installed with the context root under the web-apps directory 
with the standard deployment directory configuration. 

In Chapter SRV 9. of Sun's Web Application specs they say,
 "A servlet container can establish rules for automatic generation of web 
applications. For example a ~user/ mapping could be used to map to a web application 
based at /home/user/public_html/."

We cannot figure out how to do this. We have tomcat installed on a Linux system 
running under Apache. I will be teaching a class using servlets. We would like to have 
the students establish their context roots in a public_html directory in their own 
account. We have the servlet examples that come with Tomcat setup in my public_html 
directory and I placed one of my servlets there and successfully ran it by simply 
using the example's uri  www.ourdomain:8080/~johnsonk/servlet/ServletClassName with my 
servlet's class name instead of one of the examples. The problem is that we cannot get 
tomcat to run updated versions of that servlet. Even if I completely delete the 
servlet class file it still runs the original version.

In server.xml we have the following entries that we believe are relevant





What does the reloadable="true" imply? Are we missing something? What triggers 
reloading of a new version of the servlet? In my standalone set up whenever I update 
the servlet it immediately runs the new version. Is this because it is in the web-apps 
directory? Should the web.xml file differ from the standard setup?  




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




RE: Sessions Timeout

2002-01-30 Thread Craig R. McClanahan



On Wed, 30 Jan 2002, Mario Felarca wrote:

> Date: Wed, 30 Jan 2002 12:03:56 -0600
> From: Mario Felarca <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: Sessions Timeout
>
> At 09:40 AM 01/29/2002 +, you wrote:
> > > Is there a way to configure
> > > Tomcat to check the expire time against last access time and not
> > > creation time?
> >
> >Sessions *are* invalidated when the timeout period has passed without
> >access.  *Not* when the timeout period has passed from creation.
>
> I had a quick question about this. For a session to be "refreshed" by being
> accessed, does this count only direct calls to the specific URI's, or if I
> do a forward from another servlet context into it, will this count as
> access as well. As far as I can tell, the servlet forwarding does not seem
> to refresh the session timeout value.
>

A session is "accessed" only when the called servlet calls
request.getSession().  When you cross servlet contexts, that *should*
still work (I've never actually tried it) -- but you need to remember that
there is a separate session in each
context.

> I am using Tomcat 3.2.4 with crossContext values enabled. It is sitting on
> top of Apache 1.3.20 and mod_jk.
>
> Thanks in advance,
>
> Mario-
>

Craig


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




RE: getting init params without restarting tomcat 4.0.1

2002-01-30 Thread tmarti34

Sorry Harry, but I haven't used manager app under apache, only standalone.
I'd imagine you'd declare it in apache's httpd.conf using the directives:

WebAppConnection conn  warp  hostname
WebAppDeploy managerconn  /manager

However, it sounds as if you've done this already.  Thus, I would repost
your message to the list with a different subject, one which will be more
to the point of getting the manager app to run under apache, so people will
know what your message is all about at a glance.

Tim



   

Harry Long 

  
@ServiceIntelcc:   

ligence.com> Subject: RE: getting init params without 
restarting tomcat 4.0.1  
   

01/30/2002 

03:36 PM   

Please 

respond to 

Tomcat Users   

List   

   

   





Hi I just wonder would you please tell me how I should configure the
Manager
App.
There is no any problem of using Manager App when Tomcat is running as a
stand alone
server. But when I run it behind Apache and using MOD_WEBAPP as connnector.
I got
some inner problem. These are the error messages when I run the Manager
App.

java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
loaded by this web application
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:836)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja

va:214)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja

va:201)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase

.java:518)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164

)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.

java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170

)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java

:163)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand

ler.java:215)
 at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19

4)
 at java.lang.Thread.run(Thread.java:484)

Many thanks for any help you can giv

Answers to LifecycleException Questions

2002-01-30 Thread Bill Saur

Georg:

I tried twice to send this to your e-mail address and it came back as
undeliverable both times(it said because: "User georg.burkhardt/ew/rbg/de
([EMAIL PROTECTED]) not listed in public Name & Address
Book").

In answer to your question as to how to stop the IM program: it runs in the
system tray so you just have right click on the icon and choose exit from
the list.  I can't run the IM program and Tomcat simultaneously or the IM
program will interfere.

As Anton Brazhnyk suggested, I tried to telnet to the port to use the Tomcat
shutdown command and it would not even connect.  I ran  and saw
the IM program listed in there and suddenly a light bulb went on in my head.
As I mentioned in one of my Tomcat Users posts, at one point, using
 I found the shutdown port (8005) in a TIME_WAIT mode. It struck me
that IM is the kind of software that is programmed to pursue and hold onto a
connection on a continuous basis, so I decided to try exiting the IM program
to see if that could be the source of the interference and sure enough it
was.  I uninstalled and reinstalled Tomcat and ran it without the IM program
running and the problem was solved.  So there you have it.

Regards,

Bill Saur
Spokane, WA
[EMAIL PROTECTED]




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




Re: multiple JVM's, multiple ports Tomcat 4.1

2002-01-30 Thread jonathan

On Wed, Jan 30, 2002 at 01:04:37PM -0800, August Gresens wrote:
> 
> On Tuesday, January 29, 2002, at 04:45 PM, [EMAIL PROTECTED] wrote:
> 
> >On Tue, Jan 29, 2002 at 07:31:38PM -0800, August Gresens wrote:
> >>Using the method described in the RUNNING.txt that comes with the 
> >>Tomcat
> >>installation, I'm trying to install multiple instances of Tomcat 4.1 on
> >>a Linux server, so that multiple developers can work independently.
> >>
> >>I'm running into some problems, however. Here is what I have done so
> >>far..
> >>
> >>1. I copy the appropriate directories (conf, webapps, work, logs) from
> >>the Tomcat installation into a directory in my user's home directory
> >>called "tomcat"
> >>1. I configure the CATALINA_BASE ENVIRONMENT for each user to be
> >>CATALINA_BASE=$HOME/tomcat
> >>2. In USER B's server.xml file, I change the port attribute of the
> >>Connector element to be 8081 (not used by my machine).
> >
> >Try changing  to
> >use a different port number.
> >
> >Also, have you disabled the AJP1.3 connector on port 8009?
> >
> >
> 
> I've tried changing the server port to no avail. The AJP1.3 Connector 
> was commented out (the default).
> 
> What other ports are in use?
> 
> Has anyone had any success doing this at all?

Sort of... I just configed two of my tomcats to work in a simalar way to
your setup. (I'm using 4.0.2B2 - what ever that release was... :)

I've attached one of the server.xml files with all the comments removed.
The file does a little more than you wanted... It also sets up ajp13
ports for mod_jk.

For each tomcat, make the numbers with ### around them unique.




  







I hope this helps.
Jonathan.




  







  

  

  




  
  
  
  
  
  
usersa
password
driverClassName
  org.hsql.jdbcDriver
driverName
  jdbc:HypersonicSQL:database
  
  
  

  mail.smtp.host
  localhost

  

  

  

  

  
  

  





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


RE: getting init params without restarting tomcat 4.0.1

2002-01-30 Thread Harry Long

Hi I just wonder would you please tell me how I should configure the Manager
App.
There is no any problem of using Manager App when Tomcat is running as a
stand alone
server. But when I run it behind Apache and using MOD_WEBAPP as connnector.
I got 
some inner problem. These are the error messages when I run the Manager App.

java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
loaded by this web application
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:836)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:518)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:215)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)

Many thanks for any help you can give.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 1:32 PM
To: Tomcat Users List
Subject: RE: getting init params without restarting tomcat 4.0.1


 I know about the Manager App.  You're correct in saying that you can
reload particular webapps.  I use it fairly frequently.  However, this only
reloads class files, and not web.xml, at least from what I've seen thus
far.  Are you saying that when you reload a webapp, it also reloads the
web.xml file?  In order for changes made in web.xml to be picked up, I have
to restart Tomcat.  I am looking for a way around restarting Tomcat, and
still getting changes that were made to the initial paramaters I've
declared within web.xml.



 

"Charles N.

Harvey III"  To: Tomcat Users List
<[EMAIL PROTECTED]>
  Subject: RE: getting init
params without restarting tomcat 4.0.1  
 

01/30/2002

02:45 PM

Please

respond to

Tomcat Users

List

 

 





If you check out the Manager App you will see that you can "reload"
particular apps by name.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

It works.  I've used it.  On windows it is just a blank screen that
you send url commands to.  But under a unix environ you get a nice
looking screen with the list of names of apps and commands to perform.
And I am quite certain that a really nice shell is being worked on
for a future release.

Charlie

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 2:34 PM
To: [EMAIL PROTECTED]
Subject: getting init params without restarting tomcat 4.0.1


 Here is my situation.  I've inherited a bunch of servlets that used to
be deployed under JWS.  We are transitioning to Tomcat 4.0.1 on a 

success story: Tomcat 4.0.1 + Apache 1.3.22 + debian 2.2r3 (i386)

2002-01-30 Thread Adrian Caneva

Hi,
This is my first post although I've been reading mail archives from the web.
I've found some problems installing Tomcat 4.0.1 and getting mod_webapp to
work under Apache 1.3.22 at linux Debian i386 platform (some of them are
close related to other posts on the list). I wanted to share the solutions
I've found.

As some of the topics were cross related, I packed them all together:
1.A) standalone Tomcat (JDK Problem)
2.A) mod_webapp (-DEAPI warning)
2.B) mod_webapp ("Premature packet header end" exception error under Tomcat)
2.C) rebuilding mod_webapp ("..Bareword found where operator expected.. ")
3.A) virtual host setting (http://my.doma.in/ -> tomcat webapps)

1) Installing standalone Tomcat 4.0.1
=
Documents used
--
* RUNNING.txt packed with the binary distribution

Previous installations
--
* JDK >=1.2 : I downloaded and installed Sun's Java 2 SDK v 1.3.1_02 from
java (http://java.sun.com/j2se/1.3/download-linux.html)

Problems & Solutions

1.A) JDK problem
Problem: error found prevents starting Tomcat
[catalina.out:"..error while loading shared libraries:
libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or
directory"]

This is a problem related to Java 2 SDK 1.3 installation not Tomcat.

Solution:
checking at /usr/lib on my machine I found:

libstdc++-3-libc6.1-2-2.10.0.so

(if you don't have any libstdc++ then install it through #apt-get install
libstdc++2.10-glibc2.2)

then I generated a symbolic link to "libstdc++-libc6.1-1.so.2"

#cd /usr/lib
#ln -s libstdc++-3-libc6.1-2-2.10.0.so libstdc++-libc6.1-1.so.2


2) Integration between Tomcat 4.0.1 and Apache 1.3.22
=

Documents used
--
* INSTALL.txt packed with the binary distribution
(webapp-module-1.0-tc40.tar.gz)
* README.txt packed with the source distribution
(webapp-module-1.0.1-tc401-src.tar.gz)


Previous installations
--
* Apache 1.3.9 from Debian package

Problems & Solutions

2.A) mod_webapp 4.0.1
Problem: Warning when starting Apache
["Loaded DSO modules/mod_webapp.so uses plain Apache 1.3 API, this module
might crash under EAPI! (please recompile it with -DEAPI)"]

Solutions:
* Although Sun's documentation says not to worry about , I tried previous
4.0's "mod_webapp-1.0-eapi.so" and the warning was gone but ... check 2.B)
* I've updated Apache to 1.3.22 and the warning dissapeared but ... check
2.B)

2.B) mod_webapp 4.0.1
Problem: "Premature packet header end" exception error under Tomcat
[apache log under Tomcat
"[org.apache.catalina.connector.warp.WarpConnection] Exception on socket
java.io.IOException: Premature packet header end"]

Solution:
I rebuilt from source mod_webapp 4.0.1 and was solved (check 2.C with
problems to rebuild)

2.C) rebuilding mod_webapp 4.0.1
Problem:
["make[2]: Entering directory ...
..Bareword found where operator expected at (eval 6) line 1, near
""-DLINUX=22
-DEAPI -DTARGET="apache"   (Missing operator before apache?) ...
mod_webapp.c:70: wa.h: No such file or directory ...
"]

Solution:
Didn't have time to debug so I copied *.h files to /usr/include/apache-1.3
(the -I path):

(wa* include files)
cp [..]/webapp-module-1.0.1-tc401/include/* /usr/include/apache-1.3
(apr* include files)
#cp -R [..]/webapp-module-1.0.1-tc401/apr/include/* /usr/include/apache-1.3

and I got a fresh Apache 1.3 mod_webapp.so


3) Virtual host setting
===

Documents used
--
* INSTALL.txt packed with webapp binary distribution
(webapp-module-1.0-tc40.tar.gz)
* server.xml packed with tomcat binary distribution
(jakarta-tomcat-4.0.1.tar.gz)
* Sun's http://dcb.sun.com/practices/howtos/tomcat_apache.jsp

3.A) Virtual host setting
Problem:
Wanted to redirect http://my.doma.in/ to tomcat webapps. I couldn't make it
with INSTALL.txt and server.xml.

Solution:
Followed INSTALL.txt instructions to load Apache mod_webapp
(LoadModule,AddModule)
Then:

* Apache settings
#/etc/apache/httpd.conf

..
#at least one IP for the virtual host
NameVirtualHost 192.168.1.2:80


ServerAdmin [EMAIL PROTECTED]
DocumentRoot tomcat_instalation_directory/jakarta-tomcat-4.0.1/webapps
ServerName my.doma.in
ErrorLog /var/log/apache/my.doma.in-error.log
CustomLog /var/log/apache/my.doma.in-access.log common
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples


* Tomcat settings
#tomcat_instalation_directory/jakarta-tomcat-4.0.1/conf/server.xml


...
 



That's all. Once restarted Tomcat and Apache, I could run
http://my.doma.in/examples/jsp/num/numguess.jsp


Bye,

==
  Adrian Caneva
  NEXT TECHNOLOGY SRL
  La Rioja 26
  (T4000ISB) Tucuman
  Tel/Fax +54 381 4219105
  [EMAIL PROTECTED]
  www.nexttech.com.ar
==


--
To unsubscribe:   
For additional commands: 

Re: some tuning ...

2002-01-30 Thread August Detlefsen

I think that Tomcat is expecting a full webapp in the
/var/tomcat4/webapps/univ/adminsite directory. Do you have a WEB-INF
directoy (with the associated web.xml, etc.) in adminsite? 

Since you have defined adminsite as a separate context, I think it
won't recognise the webapp in the directory above it (univ). Maybe
instead you can just use mod_redirect or mod_rewrite to forward
requests from: 

http://myadmin.mydomain.fr/

to: 

http://mysite.mydomain.fr/adminsite/

BTW: Does anyone know how to get rid of the trailing slash? 

-August


--- Julien OIX <[EMAIL PROTECTED]> wrote:
> August Detlefsen a écrit :
> > 
> > You shouldn't need to define 2 services in server.xml. Just use 1
> > service with 2 virtual hosts.
> 
> > > I'm using Tomcat 4.0.1-1, Apache 1.3.22  and mod_webapp under
> RedHat Linux 7.1
> > >
> > > here's my problem:
> > >
> > > my website can be accessed by a front-office or a back-office,
> but
> > > this
> > > is the same webapp ...
> > >
> > > I'd like the two parts can be reached either by 
> mysite.mydomain.fr
> > > (path_to_webapp/index.jsp)
> > >   and 
> myadmin.mydomain.fr
> > > (path_to_webapp/adminsite/frameset.html)
> > >
> > > I suppose I deploy only one WarpConnector.
> > >
> 
> I did some change in the server.xml
> 
> ### a part of server.xml 
> ###
> 
>   name="Apache" debug="0" >
> 
>
> 
>   
>appBase="webapps" 
>unpackWARs="true" autodeploy="true">
> 
>   
> 
>   
>   
>appBase="webapps" 
>unpackWARs="true" autodeploy="true">
>  
>privileged="true"/>
>   
> 
> 
> # a part of httpd.conf
> #
> 
> WebAppConnection  conn1 warp miles.presidence.univ-nantes.fr:8011
> 
> NameVirtualHost 193.52.112.79
> 
> 
> 
> ServerName miles.presidence.univ-nantes.fr
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot "/var/tomcat4/webapps/univ"
> DirectoryIndex index.jsp
> Port 8011
> UseCanonicalName Off
> WebAppDeploy  /var/tomcat4/webapps/univ conn1 /
> 
> 
> 
> 
> 
> ServerName stats.presidence.univ-nantes.fr
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot "/var/tomcat4/webapps/univ/adminsite"
> DirectoryIndex frameset.html
> Port 8011
> UseCanonicalName Off
> 
> WebAppDeploy  /var/tomcat4/webapps/univ/adminsite conn1 /
> 
> 
> 
> 
> when I restart Apache and Tomcat, I have no errors in the apache
> error_log, and this is what I get in the tomcat's catalina.out:
> 
> WebappLoader[]: Deploying class repositories to work directory
> /var/tomcat4/work/stats.presidence.univ-nantes.fr/_
> StandardManager[]: Seeding random number generator class
> java.security.SecureRandom
> StandardManager[]: Seeding of random number generator has been
> completed
> ContextConfig[]: Missing application web.xml, using defaults only
> StandardWrapper[:default]: Loading container servlet default
> StandardWrapper[:invoker]: Loading container servlet invoker
> StandardHost[stats.presidence.univ-nantes.fr]: Installing web
> application at context path /univ from URL
> file:/var/tomcat4/webapps/univ
> WebappLoader[/univ]: Deploying class repositories to work directory
> /var/tomcat4/work/stats.presidence.univ-nantes.fr/univ
> WebappLoader[/univ]: Deploy JAR /WEB-INF/lib/jtf.jar to
> /var/tomcat4/webapps/univ/WEB-INF/lib/jtf.jar
> WebappLoader[/univ]: Deploy JAR /WEB-INF/lib/univ.jar to
> /var/tomcat4/webapps/univ/WEB-INF/lib/univ.jar
> StandardManager[/univ]: Seeding random number generator class
> java.security.SecureRandom
> StandardManager[/univ]: Seeding of random number generator has been
> completed
> ContextConfig[/univ]: Missing application web.xml, using defaults
> only
> StandardWrapper[/univ:default]: Loading container servlet default
> StandardWrapper[/univ:invoker]: Loading container servlet invoker
> WebappLoader[]: Deploying class repositories to work directory
> /var/tomcat4/work/miles.presidence.univ-nantes.fr/_
> WebappLoader[]: Deploy JAR /WEB-INF/lib/jtf.jar to
> /var/tomcat4/webapps/univ/WEB-INF/lib/jtf.jar
> WebappLoader[]: Deploy JAR /WEB-INF/lib/univ.jar to
> /var/tomcat4/webapps/univ/WEB-INF/lib/univ.jar
> StandardManager[]: Seeding random number generator class
> java.security.SecureRandom
> StandardManager[]: Seeding of random number generator has been
> completed
> ContextConfig[]: Missing application web.xml, using defaults only
> StandardWrapper[:default]: Loading container servlet default
> StandardWrapper[:invoker]: Loading container servlet invoker
> StandardHost[miles.presidence.univ-nantes.fr]: Installing web
> application at context path /univ from URL
> file:/var/tomcat4/webapps/univ
> WebappLoader[/univ]: Deploying class repositories to work directory
> /var/tomcat4/work/miles.presidence.univ-nantes.fr/univ
> WebappLoader[/univ]: Deploy JAR /WEB-INF/lib/jtf.jar to
> /var/tomcat4/

RE: getting init params without restarting tomcat 4.0.1

2002-01-30 Thread tmarti34

 I know about the Manager App.  You're correct in saying that you can
reload particular webapps.  I use it fairly frequently.  However, this only
reloads class files, and not web.xml, at least from what I've seen thus
far.  Are you saying that when you reload a webapp, it also reloads the
web.xml file?  In order for changes made in web.xml to be picked up, I have
to restart Tomcat.  I am looking for a way around restarting Tomcat, and
still getting changes that were made to the initial paramaters I've
declared within web.xml.



   

"Charles N.

Harvey III"  To: Tomcat Users List 
<[EMAIL PROTECTED]>
  Subject: RE: getting init params without 
restarting tomcat 4.0.1  
   

01/30/2002 

02:45 PM   

Please 

respond to 

Tomcat Users   

List   

   

   





If you check out the Manager App you will see that you can "reload"
particular apps by name.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

It works.  I've used it.  On windows it is just a blank screen that
you send url commands to.  But under a unix environ you get a nice
looking screen with the list of names of apps and commands to perform.
And I am quite certain that a really nice shell is being worked on
for a future release.

Charlie

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 2:34 PM
To: [EMAIL PROTECTED]
Subject: getting init params without restarting tomcat 4.0.1


 Here is my situation.  I've inherited a bunch of servlets that used to
be deployed under JWS.  We are transitioning to Tomcat 4.0.1 on a Linux
platform.  Tomcat is run at the root level, where I do not have (and should
not have) access.  Many of my servlets, make use of initial parameters,
which to my understanding are placed in the local web.xml.  Unfortunately
when changes are made to web.xml files, they are not recognized until
Tomcat is restarted.  This means, I must bug the system administrator to
restart Tomcat, and for that matter Apache, which Tomcat runs under.
Besides, restarting web servers is not an ideal sort of situation anyway.
Is there another way around this?  I've been researching, because it seems
like this would be a fairly common issue, but to date have found nothing to
help me.  Have I completely missed some important documentation or some
basic servlet concept?

Thank you in advance for any help you can give.

[EMAIL PROTECTED]


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


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




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




Re: JAVA Process on Solaris 8 is taking 52M

2002-01-30 Thread Cavan Morris

I think that the amount of mem used will be dependent on the webapps that are loaded.  
I seem to remember running at about 8 MB at one point.  I've since added a 12 MB war 
file and am now at about 22 MB.  As far as the difference between win2000 and Solaris 
I'm not 100% sure but I know that on Linux each java thread is shown using the amount 
of mem of the full server.  So if I've got 5 threads running at 22 MB it looks like 
tomcat is using about 110 MB.  In actuality it's only the 22 MB being counted 5 times. 
 Solaris may do something similar.

- Original Message - 
From: "Randy Layman" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, January 30, 2002 6:30 AM
Subject: RE: JAVA Process on Solaris 8 is taking 52M


> 
> 52MB is a little on the low side for out installations, and I've
> never seen Tomcat run with 8MB.  Does the Win2K system actually work?
> 
> Randy
> 
> > -Original Message-
> > From: Tamim, Samir [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 30, 2002 10:06 AM
> > To: 'Tomcat Users List'
> > Subject: JAVA Process on Solaris 8 is taking 52M
> > 
> > 
> > Hi everybody,
> > Did install tomcat with the WARP Connector to Apache on Solaris 8 and
> > Windows 2000.
> > The JAVA.EXE (tomcat process) is taking 8Mb on Windows 2000 
> > and 52Mb on
> > Solaris.
> > Is it normal 
> > 
> > Thanks,
> > Sam
> > 
> > 
> > 
> > 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 


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




RE: PLEASE REMOVE THE VIRUS BEFORE MAILING THE LIST...

2002-01-30 Thread Lasse Hillerøe Petersen

At 17:30 +0100 29/01/02, Thad Humphries wrote:
>Maybe users shouldn't use Microsoft products!  At least for email...

No kidding! I am amazed as to how Outlook appears to have a negative impact
on the quality of this list. For example, the way Outlook handles quoting
encourages people to quote far more of the original message, instead of
editing so that you just quote what you are commenting on. Many times I
have seen the list signature repeated at least four times in one single
message. I archive all mail, including lists, so THANK YOU OUTLOOK USERS
for wasting my archive space. Oh well, so space is cheap; but bad quoting
often means a message takes slightly longer to read - I consider that a
problem on high-traffic lists such as this.

-Lasse



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




RE: getting init params without restarting tomcat 4.0.1

2002-01-30 Thread Charles N. Harvey III

If you check out the Manager App you will see that you can "reload"
particular apps by name.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

It works.  I've used it.  On windows it is just a blank screen that
you send url commands to.  But under a unix environ you get a nice
looking screen with the list of names of apps and commands to perform.
And I am quite certain that a really nice shell is being worked on
for a future release.

Charlie

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 2:34 PM
To: [EMAIL PROTECTED]
Subject: getting init params without restarting tomcat 4.0.1


 Here is my situation.  I've inherited a bunch of servlets that used to
be deployed under JWS.  We are transitioning to Tomcat 4.0.1 on a Linux
platform.  Tomcat is run at the root level, where I do not have (and should
not have) access.  Many of my servlets, make use of initial parameters,
which to my understanding are placed in the local web.xml.  Unfortunately
when changes are made to web.xml files, they are not recognized until
Tomcat is restarted.  This means, I must bug the system administrator to
restart Tomcat, and for that matter Apache, which Tomcat runs under.
Besides, restarting web servers is not an ideal sort of situation anyway.
Is there another way around this?  I've been researching, because it seems
like this would be a fairly common issue, but to date have found nothing to
help me.  Have I completely missed some important documentation or some
basic servlet concept?

Thank you in advance for any help you can give.

[EMAIL PROTECTED]


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


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




getting init params without restarting tomcat 4.0.1

2002-01-30 Thread tmarti34

 Here is my situation.  I've inherited a bunch of servlets that used to
be deployed under JWS.  We are transitioning to Tomcat 4.0.1 on a Linux
platform.  Tomcat is run at the root level, where I do not have (and should
not have) access.  Many of my servlets, make use of initial parameters,
which to my understanding are placed in the local web.xml.  Unfortunately
when changes are made to web.xml files, they are not recognized until
Tomcat is restarted.  This means, I must bug the system administrator to
restart Tomcat, and for that matter Apache, which Tomcat runs under.
Besides, restarting web servers is not an ideal sort of situation anyway.
Is there another way around this?  I've been researching, because it seems
like this would be a fairly common issue, but to date have found nothing to
help me.  Have I completely missed some important documentation or some
basic servlet concept?

Thank you in advance for any help you can give.

[EMAIL PROTECTED]


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




javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception in Tomcat4.0.1 with JBuilder6

2002-01-30 Thread Thanh Duong

Hi,
I got an exception when calling JSP page using Tomcat4 in JBuilder6.
If I run tomcat4.0.1 in a Dos window, then I dont get any exceptions. It works fine.
Does anybody know the reason for this? 

Thanks in advance.

Thanh


Below a cut-out of the error message:
type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:484)


root cause 

java.lang.NoClassDefFoundError: org/xml/sax/SAXException
at 
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.java:164)
at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138)
at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValv

Re: mod_jk.conf ?!?

2002-01-30 Thread Pascal Forget

Emerson wrote:

>At 06:27 30/1/2002 -0500, you wrote:
>
>>Can someone give me a sample mod_jk.conf?  Particularly someone that is 
>>using Tomcat4.  How about a good source for mod_jk.so?  I have found 
>>mod_jk-3.3-ap13-eapi.so and mod_jk-3.3-ap13-noeapi.so and mod_jk-3.3-ap20.so 
>>on a Tomcat 3.3 download site.  Nothing for Tomcat 4.01. what's the 
>>difference between them?  should I rename one of them to just mod_jk.so?
>>Thanks
>>
>
>
>You can use the same library for tomcat 4, the prob. is that it doesn't
>generate the conf file automatically
>
>>
>>
>>_
>>MSN Photos is the easiest way to share and print your photos: 
>>http://photos.msn.com/support/worldwide.aspx
>>
>>
>>--
>>To unsubscribe:   
>>For additional commands: 
>>Troubles with the list: 
>>
>>
>Emerson Cargnin
>TRE-SC
>Setor de Desenvolvimento 
>Tel: (48) 251-3700 - Ramal 3134
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>
Have a look at: www.ubeans.com/tomcat




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




RE: Problems with .exe install for NT

2002-01-30 Thread Dennis . Johnson

Have you set JAVA_HOME to d:\java\JDK1.4 (assuming that's where your JDK
is installed)?  Just a thought.

Dennis

-Original Message-
From: jmh.tomcat [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 9:13 AM
To: tomcat-user
Subject: Re: Problems with .exe install for NT


or does anyone have suggestions on how to get around this problem? 

> 
> From: <[EMAIL PROTECTED]>
> Date: 2002/01/30 Wed AM 11:10:59 EST
> To: [EMAIL PROTECTED]
> Subject: Problems with .exe install for NT
> 
> I can't get my .exe to install on my NT system.  It says that the path 
of the JDK can't be found.  My JDK is under D:\java\JDK1.4.  
> 
> Is there anyway that an optional argument can be added to the 
installer to allow for a different path for the JDK than the default?
> 
> Thanks
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 


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



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




Re: Strange Tomcat 3.3 error

2002-01-30 Thread Larry Isaacs

Forwarding to proper list.


-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 1:27 PM
To: 'Tomcat Developers List'
Subject: RE: Strange Tomcat 3.3 error


The "org.apache.crimson.parser.ExternalEntity.getInputSource" suggests
that a web.xml is trying reference an entity that is not found
locally.  Tomcat can resolve all the spec required entities locally
so they should not trigger access to the web.

I think a typo in the web.xml's , or perhaps a taglib TLD
file, would cause something like this.  

Cheers,
Larry

> -Original Message-
> From: Renato [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 11:15 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Strange Tomcat 3.3 error
> 
> 
> Hi all,
> 
> Sometimes, when I start my Tomcat 3.3 + Apache ( nightly 
> build 0 I have the 
> following error:
> 
> .
> /web.xml - java.net.NoRouteToHostException: Connection timed out
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at 
> java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:329)
> at java.net.PlainSocketImpl.connectToAddress
> (PlainSocketImpl.java:141)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:128)
> at java.net.Socket.(Socket.java:285)
> at java.net.Socket.(Socket.java:112)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:56)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:347)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:534)
> at sun.net.www.http.HttpClient.(HttpClient.java:282)
> at sun.net.www.http.HttpClient.(HttpClient.java:292)
> at sun.net.www.http.HttpClient.New(HttpClient.java:304)
> at sun.net.www.protocol.http.HttpURLConnection.connect
> (HttpURLConnection.java:393)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream
> (HttpURLConnection.java:487)
> at java.net.HttpURLConnection.getResponseCode
> (HttpURLConnection.java:221)
> at org.apache.crimson.parser.Resolver.createInputSource
> (Resolver.java:287)
> at org.apache.crimson.parser.ExternalEntity.getInputSource
> (ExternalEntity.java:92)
> at 
> org.apache.crimson.parser.Parser2.pushReader(Parser2.java:3133)
> at org.apache.crimson.parser.Parser2.externalParameterEntity
> (Parser2.java(Compiled Code))
> at org.apache.crimson.parser.Parser2.maybeDoctypeDecl
> (Parser2.java:1167)
> at 
> org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
> at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
> at org.apache.crimson.parser.XMLReaderImpl.parse
> (XMLReaderImpl.java:442)
> at org.xml.sax.helpers.XMLReaderAdapter.parse
> (XMLReaderAdapter.java:223)
> at 
> org.apache.tomcat.util.xml.XmlMapper.readXml(Unknown Source)
>at 
> org.apache.tomcat.facade.WebXmlReader.processWebXmlFile(Unknown 
> Source)
> at 
> org.apache.tomcat.facade.WebXmlReader.contextInit(Unknown Source)
> at org.apache.tomcat.core.Context.init(Unknown Source)
> at org.apache.tomcat.core.ContextManager.init(Unknown Source)
> at org.apache.tomcat.startup.EmbededTomcat.initContextManager
> (Unknown Source)
> at 
> org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source)
> at 
> org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown Source)
> at 
> org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run
> (Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at 
> org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Unknown 
> Source)
> at 
> org.apache.tomcat.startup.EmbededTomcat.execute(Unknown Source)
> at java.lang.reflect.Method.invoke(Native Method)
> at 
> org.apache.tomcat.util.IntrospectionUtils.execute(Unknown Source)
> at org.apache.tomcat.startup.Main.execute(Unknown Source)
> at org.apache.tomcat.startup.Main.main(Unknown Source)
> 
> It works fine, but it take ages to start. What can this be ?
> 
> Thanks
> Renato - Brazil
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

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




Problems with startup

2002-01-30 Thread Shaun Anderson

I have installed Tomcat 4.0 on my NT 4.0 SP6a machine. When I first install it, it 
will run. After I reboot or log off then log back on, Tomcat no longer works. On the 
startup DOS window I get 2 exceptions thrown.

LifecycleException : No UserDatabase component found under key catalina/userdatabase
and
LifecycleException: HTTP connector has not yet been started.

In my log file I get the following:

2002-01-30 08:35:14 HttpConnector Opening server socket on all host IP addresses
2002-01-30 08:35:14 UserDatabaseRealm[Standalone]: Exception looking up UserDatabase 
under key catalina/UserDatabase
javax.naming.NamingException: Stopping after fatal error: The encoding "Cp1252" is not 
supported.
 at org.apache.naming.NamingContext.lookup(Unknown Source)
 at org.apache.naming.NamingContext.lookup(Unknown Source)
 at org.apache.naming.NamingContext.lookup(Unknown Source)
 at org.apache.naming.NamingContext.lookup(Unknown Source)
 at org.apache.catalina.realm.UserDatabaseRealm.start(Unknown Source)
 at org.apache.catalina.core.ContainerBase.start(Unknown Source)
 at org.apache.catalina.core.StandardEngine.start(Unknown Source)
 at org.apache.catalina.core.StandardService.start(Unknown Source)
 at org.apache.catalina.core.StandardServer.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.execute(Unknown Source)
 at org.apache.catalina.startup.Catalina.process(Unknown Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Unknown Source)

I am also running Apache 1.3.22 Win32.
Thanks


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.314 / Virus Database: 175 - Release Date: 1/11/02



RE: mod_jk.conf ?!?

2002-01-30 Thread Dennis . Johnson

Emerson,

I'm in a similar situation/similar questions. Since TC 4.0.2-b2 won't
create mod_jk.conf-auto, how do we create it manually (as the 
instruction
say we must)? Thanks in advance.

Dennis


-Original Message-
From: emerson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 9:39 AM
To: tomcat-user
Subject: Re: mod_jk.conf ?!?


At 06:27 30/1/2002 -0500, you wrote:
>Can someone give me a sample mod_jk.conf?  Particularly someone that is 

>using Tomcat4.  How about a good source for mod_jk.so?  I have found 
>mod_jk-3.3-ap13-eapi.so and mod_jk-3.3-ap13-noeapi.so and 
mod_jk-3.3-ap20.so 
>on a Tomcat 3.3 download site.  Nothing for Tomcat 4.01. what's the 
>difference between them?  should I rename one of them to just 
mod_jk.so?
>Thanks


You can use the same library for tomcat 4, the prob. is that it doesn't
generate the conf file automatically

>
>
>
>_
>MSN Photos is the easiest way to share and print your photos: 
>http://photos.msn.com/support/worldwide.aspx
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
Emerson Cargnin
TRE-SC
Setor de Desenvolvimento 
Tel: (48) 251-3700 - Ramal 3134

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



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




RE: Sessions Timeout

2002-01-30 Thread Mario Felarca

At 09:40 AM 01/29/2002 +, you wrote:
> > Is there a way to configure
> > Tomcat to check the expire time against last access time and not
> > creation time?
>
>Sessions *are* invalidated when the timeout period has passed without
>access.  *Not* when the timeout period has passed from creation.

I had a quick question about this. For a session to be "refreshed" by being 
accessed, does this count only direct calls to the specific URI's, or if I 
do a forward from another servlet context into it, will this count as 
access as well. As far as I can tell, the servlet forwarding does not seem 
to refresh the session timeout value.

I am using Tomcat 3.2.4 with crossContext values enabled. It is sitting on 
top of Apache 1.3.20 and mod_jk.

Thanks in advance,

Mario-


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


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




Strange Tomcat 3.3 error

2002-01-30 Thread Renato

Hi all,

Sometimes, when I start my Tomcat 3.3 + Apache ( nightly build 0 I have the 
following error:

.
/web.xml - java.net.NoRouteToHostException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:329)
at java.net.PlainSocketImpl.connectToAddress
(PlainSocketImpl.java:141)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:128)
at java.net.Socket.(Socket.java:285)
at java.net.Socket.(Socket.java:112)
at sun.net.NetworkClient.doConnect(NetworkClient.java:56)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:347)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:534)
at sun.net.www.http.HttpClient.(HttpClient.java:282)
at sun.net.www.http.HttpClient.(HttpClient.java:292)
at sun.net.www.http.HttpClient.New(HttpClient.java:304)
at sun.net.www.protocol.http.HttpURLConnection.connect
(HttpURLConnection.java:393)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream
(HttpURLConnection.java:487)
at java.net.HttpURLConnection.getResponseCode
(HttpURLConnection.java:221)
at org.apache.crimson.parser.Resolver.createInputSource
(Resolver.java:287)
at org.apache.crimson.parser.ExternalEntity.getInputSource
(ExternalEntity.java:92)
at org.apache.crimson.parser.Parser2.pushReader(Parser2.java:3133)
at org.apache.crimson.parser.Parser2.externalParameterEntity
(Parser2.java(Compiled Code))
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl
(Parser2.java:1167)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse
(XMLReaderImpl.java:442)
at org.xml.sax.helpers.XMLReaderAdapter.parse
(XMLReaderAdapter.java:223)
at org.apache.tomcat.util.xml.XmlMapper.readXml(Unknown Source)
   at org.apache.tomcat.facade.WebXmlReader.processWebXmlFile(Unknown 
Source)
at org.apache.tomcat.facade.WebXmlReader.contextInit(Unknown Source)
at org.apache.tomcat.core.Context.init(Unknown Source)
at org.apache.tomcat.core.ContextManager.init(Unknown Source)
at org.apache.tomcat.startup.EmbededTomcat.initContextManager
(Unknown Source)
at org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source)
at org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown Source)
at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run
(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Unknown 
Source)
at org.apache.tomcat.startup.EmbededTomcat.execute(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.tomcat.util.IntrospectionUtils.execute(Unknown Source)
at org.apache.tomcat.startup.Main.execute(Unknown Source)
at org.apache.tomcat.startup.Main.main(Unknown Source)

It works fine, but it take ages to start. What can this be ?

Thanks
Renato - Brazil

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




Configuring TOMCAT IN W2000

2002-01-30 Thread Jose Euclides da Silva Junior - DIGR.O

Hi everybody,
i have gotten a headache when i try to access an *.html file from my TomCat
4.0. My server is a W2000 Server, but IIS 5.0 is running together, too.
TomCat was started up as a W2000 service  - port 8080/8081(dos netstat -a),
but unfortunately, all web pages are unavailable.
Any help will be appreciated!
Regards, Euclides.   

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




Re: JSP Error

2002-01-30 Thread Satish Reddy

yes. I had the old version of servlet jar file in jre/ext/lib. that was the
cause of the problem. Thank you very much.

It works fine now.

-satish

- Original Message -
From: "Larry Isaacs" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, January 30, 2002 12:55 PM
Subject: RE: JSP Error


> This suggests you have some really out of date javax.servlet
> classes in your JDK somehow.  Which JDK are you using and
> what is in your JDK's jre/lib/ext directory (assuming Java2)?
>
> Cheers,
> Larry
>
> > -Original Message-
> > From: Satish Reddy [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 30, 2002 12:15 PM
> > To: Tomcat Users List
> > Subject: Re: JSP Error
> >
> >
> > I checked the "jasper-xxx.log" file, it has exceptions saying
> > that it cannot
> > find method, getResourceAsStream
> > (String) . I also got the same kind of error when I ran the example
> > Servlets, it says it can not find method getSession() in
> > HttpServletRequest.
> > I have all the necessary jar files in the
> > $TOMCAT_HOMElib/coomon directory.
> >
> > the Stack Trace for the jsp error is here,
> >
> > 2002-01-29 12:55:25 - JspReader: Exception parsing file
> > /jsp/num/numguess.jsp -
> > java.lang.NoSuchMethodError: javax.servlet.ServletContext: method
> > getResourceAsS
> > tream(Ljava/lang/String;)Ljava/io/InputStream; not found
> > at
> > org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
> > at
> > org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
> > at org.apache.jasper.compiler.JspReader.(Unknown Source)
> > at
> > org.apache.jasper.compiler.JspReader.createJspReader(Unknown
> > Source)
> > at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
> > at
> > org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
> > at
> > org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown
> > Source)
> > at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown
> > Source)
> > at
> > org.apache.tomcat.core.ContextManager.processRequest(Unknown
> > Source)
> > at
> > org.apache.tomcat.core.ContextManager.internalService(Unknown
> > Source)
> > at
> > org.apache.tomcat.core.ContextManager.service(Unknown Source)
> > at
> > org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(U
> > nknown Source)
> > at
> > org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
> > at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
> >  Source)
> > at java.lang.Thread.run(Thread.java:475)
> >
> > thank you,
> > Satish
> >
> > - Original Message -
> > From: "Larry Isaacs" <[EMAIL PROTECTED]>
> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > Sent: Wednesday, January 30, 2002 10:30 AM
> > Subject: RE: JSP Error
> >
> >
> > > Check in the appropriate "jasper-xxx.log" file for a
> > > "Exception parsing file ..." message. It should show you
> > > the actual exception thrown.  Hopefully that will give
> > > you a clue to the source of the error.
> > >
> > > Cheers,
> > > Larry
> > >
> > > > -Original Message-
> > > > From: Satish Reddy [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, January 30, 2002 9:52 AM
> > > > To: Tomcat Users List
> > > > Subject: Re: JSP Error
> > > >
> > > >
> > > > Hi,
> > > > I have checked the permissions, I have Read permissions
> > > > for every one
> > > > for the files in the webapps directory. I have tried to
> > > > access the tomcat
> > > > directly on port 8080, but i see The Page cannot be displayed
> > > > page under IE.
> > > > Do you think I have to change any configuration to access.
> > > >
> > > > thank you,
> > > > Satish.
> > > >
> > > > - Original Message -
> > > > From: "Larry Isaacs" <[EMAIL PROTECTED]>
> > > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, January 29, 2002 3:15 PM
> > > > Subject: RE: JSP Error
> > > >
> > > >
> > > > > I believe this usually turns out to be a permissions issue.
> > > > > Make sure the user under which Tomcat is running has permission
> > > > > to read the webapp directories.  You can also try accessing
> > > > > Tomcat directly on port 8080 to see if behavior is different
> > > > > from accessing through Apache.
> > > > >
> > > > > Cheers,
> > > > > Larry
> > > > >
> > > > > > -Original Message-
> > > > > > From: Satish Reddy [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Tuesday, January 29, 2002 2:02 PM
> > > > > > To: Tomcat
> > > > > > Subject: JSP Error
> > > > > >
> > > > > >
> > > > > > Hi All,
> > > > > > I am having problems running JSP using tomcat3.3a with
> > > > > > Apache1.3.12. on linux. I am able to run the same JSP on
> > > > > > Windows without any problems.
> > > > > >
> > > > > > When I tried to run the example JSP. I get this
> > following error.
> > > > > >
> > > > > > 2002-01-29 12:59:26 - Ctx(/EM) : Exception in R(

Re: multiple JVM's, multiple ports Tomcat 4.1

2002-01-30 Thread August Gresens


On Tuesday, January 29, 2002, at 04:45 PM, [EMAIL PROTECTED] wrote:

> On Tue, Jan 29, 2002 at 07:31:38PM -0800, August Gresens wrote:
>> Using the method described in the RUNNING.txt that comes with the 
>> Tomcat
>> installation, I'm trying to install multiple instances of Tomcat 4.1 on
>> a Linux server, so that multiple developers can work independently.
>>
>> I'm running into some problems, however. Here is what I have done so
>> far..
>>
>> 1. I copy the appropriate directories (conf, webapps, work, logs) from
>> the Tomcat installation into a directory in my user's home directory
>> called "tomcat"
>> 1. I configure the CATALINA_BASE ENVIRONMENT for each user to be
>> CATALINA_BASE=$HOME/tomcat
>> 2. In USER B's server.xml file, I change the port attribute of the
>> Connector element to be 8081 (not used by my machine).
>
> Try changing  to
> use a different port number.
>
> Also, have you disabled the AJP1.3 connector on port 8009?
>
>

I've tried changing the server port to no avail. The AJP1.3 Connector 
was commented out (the default).

What other ports are in use?

Has anyone had any success doing this at all?

Thanks,

August



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




RE: JSP Error

2002-01-30 Thread Larry Isaacs

This suggests you have some really out of date javax.servlet
classes in your JDK somehow.  Which JDK are you using and
what is in your JDK's jre/lib/ext directory (assuming Java2)?

Cheers,
Larry

> -Original Message-
> From: Satish Reddy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 12:15 PM
> To: Tomcat Users List
> Subject: Re: JSP Error
> 
> 
> I checked the "jasper-xxx.log" file, it has exceptions saying 
> that it cannot
> find method, getResourceAsStream
> (String) . I also got the same kind of error when I ran the example
> Servlets, it says it can not find method getSession() in 
> HttpServletRequest.
> I have all the necessary jar files in the 
> $TOMCAT_HOMElib/coomon directory.
> 
> the Stack Trace for the jsp error is here,
> 
> 2002-01-29 12:55:25 - JspReader: Exception parsing file
> /jsp/num/numguess.jsp -
> java.lang.NoSuchMethodError: javax.servlet.ServletContext: method
> getResourceAsS
> tream(Ljava/lang/String;)Ljava/io/InputStream; not found
> at 
> org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
> at 
> org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
> at org.apache.jasper.compiler.JspReader.(Unknown Source)
> at 
> org.apache.jasper.compiler.JspReader.createJspReader(Unknown
> Source)
> at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
> at 
> org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
> at 
> org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown
> Source)
> at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown
> Source)
> at 
> org.apache.tomcat.core.ContextManager.processRequest(Unknown
> Source)
> at 
> org.apache.tomcat.core.ContextManager.internalService(Unknown
> Source)
> at 
> org.apache.tomcat.core.ContextManager.service(Unknown Source)
> at
> org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(U
> nknown Source)
> at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
>  Source)
> at java.lang.Thread.run(Thread.java:475)
> 
> thank you,
> Satish
> 
> - Original Message -
> From: "Larry Isaacs" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 30, 2002 10:30 AM
> Subject: RE: JSP Error
> 
> 
> > Check in the appropriate "jasper-xxx.log" file for a
> > "Exception parsing file ..." message. It should show you
> > the actual exception thrown.  Hopefully that will give
> > you a clue to the source of the error.
> >
> > Cheers,
> > Larry
> >
> > > -Original Message-
> > > From: Satish Reddy [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, January 30, 2002 9:52 AM
> > > To: Tomcat Users List
> > > Subject: Re: JSP Error
> > >
> > >
> > > Hi,
> > > I have checked the permissions, I have Read permissions
> > > for every one
> > > for the files in the webapps directory. I have tried to
> > > access the tomcat
> > > directly on port 8080, but i see The Page cannot be displayed
> > > page under IE.
> > > Do you think I have to change any configuration to access.
> > >
> > > thank you,
> > > Satish.
> > >
> > > - Original Message -
> > > From: "Larry Isaacs" <[EMAIL PROTECTED]>
> > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, January 29, 2002 3:15 PM
> > > Subject: RE: JSP Error
> > >
> > >
> > > > I believe this usually turns out to be a permissions issue.
> > > > Make sure the user under which Tomcat is running has permission
> > > > to read the webapp directories.  You can also try accessing
> > > > Tomcat directly on port 8080 to see if behavior is different
> > > > from accessing through Apache.
> > > >
> > > > Cheers,
> > > > Larry
> > > >
> > > > > -Original Message-
> > > > > From: Satish Reddy [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Tuesday, January 29, 2002 2:02 PM
> > > > > To: Tomcat
> > > > > Subject: JSP Error
> > > > >
> > > > >
> > > > > Hi All,
> > > > > I am having problems running JSP using tomcat3.3a with
> > > > > Apache1.3.12. on linux. I am able to run the same JSP on
> > > > > Windows without any problems.
> > > > >
> > > > > When I tried to run the example JSP. I get this 
> following error.
> > > > >
> > > > > 2002-01-29 12:59:26 - Ctx(/EM) : Exception in R( /examples +
> > > > > /jsp/num/numguess.jsp + null)
> > > > >  - org.apache.jasper.compiler.ParseException: Cannot read
> > > > > file: /jsp/num/numguess.jsp
> > > > > at
> > > > > org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
> > > > > at
> > > > > org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
> > > > > at
> > > org.apache.jasper.compiler.JspReader.(Unknown Source)
> > > > > at
> > > > >
> > > 
> org.apache.jasper.compiler.JspReader.createJspReader(Unknown Source)
> > > > > at
> > > org.apache.jas

RE: How do I configure Tomcat properly to not collide with other ISAP I apps (Tomcat 3.3a)?

2002-01-30 Thread Larry Isaacs

Take a look at:



Specifically, check out the forwardAll attribute.  Setting this to
false results in config files that most closely match those written
by Tomcat 3.2.x.

Cheers,
Larry

> -Original Message-
> From: Patrik Höiem [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 12:03 PM
> To: '[EMAIL PROTECTED]'
> Subject: How do I configure Tomcat properly to not collide with other
> ISAP I apps (Tomcat 3.3a)?
> 
> 
> Hi,
> 
> I have recently installed Tomcat 3.3a wich in some ways 
> differ from 3.2.3
> that we used before.
> The platform is W2K SP2.
> We have configured it so that it works to call it through the IIS.
> With Tomcat 3.2.3 we never experienced any collisions between 
> requests to
> the servlets handled by Tomcat and other requests handled by 
> an other app.
> This app also makes use of an ISAPI DLL on the same web site. 
> The situation
> is that tomcat is supposed to take care of all requests to
> http://IP_address/foo/servlet or http://IP_address/foo/jsp
> But when we tried out the new configuration with Tomcat 3.3a 
> we noticed that
> it snatched requests (mainly for pictures) from the other app...
> The tomcat is configured like this:
> apps-foo.xml
> 
> 
> 
> 
>   
> 
>reloadable="false" > 
>   
>path="logs/servlet_foo.log" servletLogger="true"/>
>   
> 
> 
> 
> 
> uri-workermap.properties
> 
> #
> # Simple worker configuration file
> #
> 
> # Mount the servlet context to the ajp12 worker
> /servlet/*=ajp12
> 
> # Mount the examples context to the ajp12 worker
> /examples/*=ajp12
> 
> # Mount the foo context to the ajp12 worker
> /foo/jsp/*.jsp=ajp12
> /foo/servlet/*=ajp12
> 
> # Advanced mount of the examples context
> # /examples/*.jsp=ajp12
> # /examples/servlet/*=ajp12
> 
> And when we made the auto-generated files by tomcat start 
> jkconf
> which you don't have to do in prior versions we noticed that the
> uri-workermap.properties under /auto looks like this:
> 
> ###
> # Auto generated configuration. Dated: Wed Jan 30 15:16:16 CET 2002
> ###
> 
> #
> # Default worker to be used through our mappings
> #
> default.worker=ajp13
> 
> /admin=$(default.worker)
> /admin/*=$(default.worker)
> /examples=$(default.worker)
> /examples/*=$(default.worker)
> /foo=$(default.worker)
> /foo/*.jsp=$(default.worker)
> 
> So we started to look at it and changed it to this:
> 
> ###
> # Auto generated configuration. Dated: Wed Jan 30 15:16:16 CET 2002
> ###
> 
> #
> # Default worker to be used through our mappings
> #
> default.worker=ajp13
> 
> /admin=$(default.worker)
> /admin/*=$(default.worker)
> /examples=$(default.worker)
> /examples/*=$(default.worker)
> /foo/jsp=$(default.worker)
> /foo/jsp/*.jsp=$(default.worker)
> /foo/servlet=$(default.worker)
> /foo/servlet/*=$(default.worker)
> 
> Then we got everything (as far as I know now) to work as 
> before (with Tomcat
> 3.2.3). But the question I'm asking is - it seems a little 
> awkward to edit
> an auto-generated file, can I do this in another way without 
> editing the
> auto-generated file?
> 
> Cheers!
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




AW: AW: How to configurate tomcat 4.0 with JBuilder 6.0professio nal?

2002-01-30 Thread Lauer, Oliver

Main class: 

org.apache.catalina.startup.Bootstrap

VM parameters:

-classic -Dcatalina.base="C:\Programme\ApacheGroup\Tomcat4.0"
-Dcatalina.home="C:\Programme\ApacheGroup\Tomcat4.0"

Application parameters: 
start

Oliver

> AXA eSolutions GmbH
> AXA Konzern AG Germany
> Oliver Lauer 
> Web Architect
> Wörthstraße 34
> D-50668 Köln
> Germany
> Tel.: +49 221 148 31277
> Fax: +49 221 148 43963
> Mobil: +49 179 59 064 59
> e-Mail: [EMAIL PROTECTED]
> _
> 


-Ursprüngliche Nachricht-
Von: Thanh Duong [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 30. Januar 2002 18:29
An: Tomcat Users List
Betreff: Re: AW: How to configurate tomcat 4.0 with JBuilder 6.0
professional?


Hi Oliver,
I have to configurate the project properties in order to make tomcat 4
running.
Sorry, I do not understand your answer.
Can you let me know what you have in your project properties under "run"
tab?

Thanks
Thanh


"Tomcat Users List" <[EMAIL PROTECTED]> schrieb am 30.01.02:
> TC4.0 is within JB6, just push the right mouse button and select web run.
TC
> starts..!
> What's your problem ?
> Oliver 
> 
> > AXA eSolutions GmbH
> > AXA Konzern AG Germany
> > Oliver Lauer 
> > Web Architect
> > Wörthstraße 34
> > D-50668 Köln
> > Germany
> > Tel.: +49 221 148 31277
> > Fax: +49 221 148 43963
> > Mobil: +49 179 59 064 59
> > e-Mail: [EMAIL PROTECTED]
> > _
> > 
> 
> 
> -Ursprüngliche Nachricht-
> Von: Thanh Duong [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 30. Januar 2002 16:42
> An: [EMAIL PROTECTED]
> Betreff: How to configurate tomcat 4.0 with JBuilder 6.0 professional?
> 
> 
> Hi,
> Does anybody know to configurate tomcat 4.0 with JBuilder 6.0
Professional?
> 
> Thanks
> Thanh
> 
> Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! 
> Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
>

--
> Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene
Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung
reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten
Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung,
Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet
ist.Diese Nachricht  ist ausschliesslich fuer den bezeichneten Adressaten
oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat
dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem
Absender der E-Mail in Verbindung zu setzen.
> 
> For legal and security reasons the information provided in this e-mail is
not legally binding. Upon request we would be pleased to provide you with a
legally binding confirmation in written form. Any form of unauthorised use,
publication, reproduction, copying or disclosure of the content of this
e-mail is not permitted. This message is exclusively for the person
addressed or their representative. If you are not the intended recipient of
this message and its contents, please notify the sender immediately.
> 
>

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



__
Die Nummer, die man nie vergisst: Ihre persönliche Wunschrufnummer von
WEB.DE! 
Jetzt einsteigen http://freemail.web.de


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


--
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reprod

RE: JDBC OCI Client and Tomcat

2002-01-30 Thread Pal, Anshu

Please ignore this email.I think I have found the answer.

Thanks
Anshu
-Original Message-
From: Pal, Anshu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 12:23 PM
To: 'Tomcat Users List'
Subject: JDBC OCI Client and Tomcat



I had a question regarding the JDBC OCI driver and tomcat

OS Solaris 
Tomcat 3.3 (standalone mode)

I want to use the JDBC OCI driver  . For that I need to have the
libocijdbc.so and some other jars
 (class.jar class111.jar etc) files available to tomcat  . I have put the
jar files in the lib/common directory . Where should I put the libocijdbc.so
and other shared objects if any.

To put it in another way if the LD_LIBRARY_PATH variable is set in the
environment does tomcat recognize it ?


Thanks
Anshu


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

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




Re: AW: How to configurate tomcat 4.0 with JBuilder 6.0 professional?

2002-01-30 Thread Thanh Duong

Hi Oliver,
I have to configurate the project properties in order to make tomcat 4 running.
Sorry, I do not understand your answer.
Can you let me know what you have in your project properties under "run" tab?

Thanks
Thanh


"Tomcat Users List" <[EMAIL PROTECTED]> schrieb am 30.01.02:
> TC4.0 is within JB6, just push the right mouse button and select web run. TC
> starts..!
> What's your problem ?
> Oliver 
> 
> > AXA eSolutions GmbH
> > AXA Konzern AG Germany
> > Oliver Lauer 
> > Web Architect
> > Wörthstraße 34
> > D-50668 Köln
> > Germany
> > Tel.: +49 221 148 31277
> > Fax: +49 221 148 43963
> > Mobil: +49 179 59 064 59
> > e-Mail: [EMAIL PROTECTED]
> > _
> > 
> 
> 
> -Ursprüngliche Nachricht-
> Von: Thanh Duong [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 30. Januar 2002 16:42
> An: [EMAIL PROTECTED]
> Betreff: How to configurate tomcat 4.0 with JBuilder 6.0 professional?
> 
> 
> Hi,
> Does anybody know to configurate tomcat 4.0 with JBuilder 6.0 Professional?
> 
> Thanks
> Thanh
> 
> Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! 
> Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> --
> Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
>nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
>auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
>unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
>Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
>den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
>vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, 
>sich mit dem Absender der E-Mail in Verbindung zu setzen.
> 
> For legal and security reasons the information provided in this e-mail is not 
>legally binding. Upon request we would be pleased to provide you with a legally 
>binding confirmation in written form. Any form of unauthorised use, publication, 
>reproduction, copying or disclosure of the content of this e-mail is not permitted. 
>This message is exclusively for the person addressed or their representative. If you 
>are not the intended recipient of this message and its contents, please notify the 
>sender immediately.
> 
> ==
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


__
Die Nummer, die man nie vergisst: Ihre persönliche Wunschrufnummer von WEB.DE! 
Jetzt einsteigen http://freemail.web.de


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




JDBC OCI Client and Tomcat

2002-01-30 Thread Pal, Anshu


I had a question regarding the JDBC OCI driver and tomcat

OS Solaris 
Tomcat 3.3 (standalone mode)

I want to use the JDBC OCI driver  . For that I need to have the
libocijdbc.so and some other jars
 (class.jar class111.jar etc) files available to tomcat  . I have put the
jar files in the lib/common directory . Where should I put the libocijdbc.so
and other shared objects if any.

To put it in another way if the LD_LIBRARY_PATH variable is set in the
environment does tomcat recognize it ?


Thanks
Anshu


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




RE: Config Problem : VirtualHost, mod_rewrite and mod_jk

2002-01-30 Thread Mike Roberts

Regarding mod_rewrite and Tomcat, has this issue been addressed in Tomcat 4
/ Servlet 2.3? If so, please could someone let me know what the behaviour is
for both mod_jk and mod_webapp as connectors?

Many thanks,

Mike

--
Mike Roberts
Architect
DigitalRum
mailto:[EMAIL PROTECTED]




From: Larry Isaacs 
Subject: RE: Config Problem : VirtualHost, mod_rewrite and mod_jk 
Date: Wed, 05 Dec 2001 06:12:36 -0800 




Hi Geir,

Concerning mod_rewrite, there was a lot of discussion about
what mod_jk should do about the Servlet 2.2's requirement that
HttpServletRequest.getRequestURI() return a URI that *remains*
encoded.  So that it *remains* encoded, the mod_jk in Tomcat 3.2.3
forwards the "unparsed" request to Tomcat.  This prevents
mod_rewrite from having an effect since it modifies the
"parsed" request.

To bring mod_rewrite back online, mod_jk in Tomcat 3.2.4
forwards a re-encoded version of the "parsed" request
(sacrificing "remains" in favor of functionality).

In Tomcat 3.3, this is configurable, though this hasn't
yet made it into the documentation. :(

In the mod_jk configuration file, you can set the following
options to control which request is forwarded to Tomcat.

JkOptions ForwardURICompat+

forwards the "parsed" URI as is.  Tomcat 3.3 will re-encode
the request for getRequestURI().  This is the default
behavior.

JkOptions ForwardURICompatUnparsed+

forwards the "unparsed" URI and Tomcat 3.3 will return
this string unmodified for getRequestURI().  This best
matches the spec, but breaks mod_rewrite.  This matches
Tomcat 3.2.3's mod_jk behavior.

JkOptions ForwardURIEscaped+

forwards the re-encoded "parsed" URI and Tomcat 3.3 will
return this string unmodified for getRequestUR().  This
matches Tomcat 3.2.4's mod_jk behavior.

I'll try to add some documentation concerning this in the
Tomcat 3.3 release.

Hope this helps.

Cheers,
Larry

> -Original Message-
> From: Geir Magnusson Jr. [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 04, 2001 9:17 PM
> To: Tomcat Users List
> Subject: Config Problem : VirtualHost, mod_rewrite and mod_jk
> 
> 
> I am looking for some tips or advice on a configuration problem :
> 
> I wish to configure Apache with virtual hosts, and along with some URL
> rewriting, and use mod_jk under httpd 1.3.x And Tomcat 3.2.3
> 
> I have successfully configured mod_jk and two  in tomcat's
> server.xml, and have verified that mod_jk is working, and the 
> Hosts are
> properly mapping requests to two separate webapps.  So far, so good.
> 
> The problem comes in with mod_rewrite.  This is an update 
> from mod_jserv,
> where 
> 
>   Action action1  /servlet/com.foo.FooServlet
> 
>   
> SetHandler action1
>   
> 
> Was used, and this worked fine.
> 
> When I switched to mod_jk and VirtualHosts, this resulted in 
> recursion,
> constructing a huge URL that Apache coughed up.
> 
> I then switched to mod_rewrite, and was able to (easily) 
> construct a rewrite
> rule to do the same thing.  I used the [P] flag to force it 
> to the proxy.
> 
> The problem is that mod_jk never 'picked up' the rewritten URL.
> 
> I have searched for some information on this, but to no 
> avail.  There were
> references to putting the LoadModule for mod_jk before the 
> LoadModule for
> mod_rewrite, and I have tried that (and reverse) and other 
> orderings of
> mod_jk directives, rewrite directives, in the , 
> outside of the
>  etc.
> 
> Any insight would be greatly appreciated...
> 
> Thanks in advance.
> 
> geir
> 
> -- 
> Geir Magnusson Jr.   [EMAIL PROTECTED]
> System and Software Consulting
> You're going to end up getting pissed at your software
> anyway, so you might as well not pay for it. Try Open Source.
> 
> 

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




Re: JSP Error

2002-01-30 Thread Satish Reddy

I checked the "jasper-xxx.log" file, it has exceptions saying that it cannot
find method, getResourceAsStream
(String) . I also got the same kind of error when I ran the example
Servlets, it says it can not find method getSession() in HttpServletRequest.
I have all the necessary jar files in the $TOMCAT_HOMElib/coomon directory.

the Stack Trace for the jsp error is here,

2002-01-29 12:55:25 - JspReader: Exception parsing file
/jsp/num/numguess.jsp -
java.lang.NoSuchMethodError: javax.servlet.ServletContext: method
getResourceAsS
tream(Ljava/lang/String;)Ljava/io/InputStream; not found
at org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
at org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
at org.apache.jasper.compiler.JspReader.(Unknown Source)
at org.apache.jasper.compiler.JspReader.createJspReader(Unknown
Source)
at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
at org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown
Source)
at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown
Source)
at org.apache.tomcat.core.ContextManager.processRequest(Unknown
Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(U
nknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
 Source)
at java.lang.Thread.run(Thread.java:475)

thank you,
Satish

- Original Message -
From: "Larry Isaacs" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, January 30, 2002 10:30 AM
Subject: RE: JSP Error


> Check in the appropriate "jasper-xxx.log" file for a
> "Exception parsing file ..." message. It should show you
> the actual exception thrown.  Hopefully that will give
> you a clue to the source of the error.
>
> Cheers,
> Larry
>
> > -Original Message-
> > From: Satish Reddy [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 30, 2002 9:52 AM
> > To: Tomcat Users List
> > Subject: Re: JSP Error
> >
> >
> > Hi,
> > I have checked the permissions, I have Read permissions
> > for every one
> > for the files in the webapps directory. I have tried to
> > access the tomcat
> > directly on port 8080, but i see The Page cannot be displayed
> > page under IE.
> > Do you think I have to change any configuration to access.
> >
> > thank you,
> > Satish.
> >
> > - Original Message -
> > From: "Larry Isaacs" <[EMAIL PROTECTED]>
> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, January 29, 2002 3:15 PM
> > Subject: RE: JSP Error
> >
> >
> > > I believe this usually turns out to be a permissions issue.
> > > Make sure the user under which Tomcat is running has permission
> > > to read the webapp directories.  You can also try accessing
> > > Tomcat directly on port 8080 to see if behavior is different
> > > from accessing through Apache.
> > >
> > > Cheers,
> > > Larry
> > >
> > > > -Original Message-
> > > > From: Satish Reddy [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, January 29, 2002 2:02 PM
> > > > To: Tomcat
> > > > Subject: JSP Error
> > > >
> > > >
> > > > Hi All,
> > > > I am having problems running JSP using tomcat3.3a with
> > > > Apache1.3.12. on linux. I am able to run the same JSP on
> > > > Windows without any problems.
> > > >
> > > > When I tried to run the example JSP. I get this following error.
> > > >
> > > > 2002-01-29 12:59:26 - Ctx(/EM) : Exception in R( /examples +
> > > > /jsp/num/numguess.jsp + null)
> > > >  - org.apache.jasper.compiler.ParseException: Cannot read
> > > > file: /jsp/num/numguess.jsp
> > > > at
> > > > org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
> > > > at
> > > > org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
> > > > at
> > org.apache.jasper.compiler.JspReader.(Unknown Source)
> > > > at
> > > >
> > org.apache.jasper.compiler.JspReader.createJspReader(Unknown Source)
> > > > at
> > org.apache.jasper.compiler.Compiler.compile(Unknown Source)
> > > > at
> > > > org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
> > > > at
> > > >
> > org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
> > > > at
> > > > org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
> > > > at
> > > >
> > org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
> > > > at
> > > >
> > org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
> > > > at
> > > > org.apache.tomcat.core.ContextManager.service(Unknown Source)
> > > > at
> > > >
> > org

Re: Problems with .exe install for NT

2002-01-30 Thread John M . Hollingsworth

or does anyone have suggestions on how to get around this problem? 

> 
> From: <[EMAIL PROTECTED]>
> Date: 2002/01/30 Wed AM 11:10:59 EST
> To: [EMAIL PROTECTED]
> Subject: Problems with .exe install for NT
> 
> I can't get my .exe to install on my NT system.  It says that the path of the JDK 
>can't be found.  My JDK is under D:\java\JDK1.4.  
> 
> Is there anyway that an optional argument can be added to the installer to allow for 
>a different path for the JDK than the default?
> 
> Thanks
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 


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




Re: Session Timeout

2002-01-30 Thread Tom Bednarz

It works for me on TC 4.0.1. I have implemented a servlet that monitors all
sessions currently active on my application (using the new
HttpSessionListener interface) and I can see expired sessions.

Maybe a problem of previous TC versions

Thomas

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 30, 2002 5:42 PM
Subject: Session Timeout


> Hi,
> I tried setting session timeout to 5 mins using web.xml (please see
> the following code), but it does not seem to be working. In my jsp I
> displayed getMaxInactiveInterval() and it shows 1800 (30 mins). Can anyone
> please let me know if I can use web.xml for session timeout in jsp pages
or
> not.
> 
> 
> 5
> 
> 
>
>
> Sumit.
> The information contained in this e-mail and any files transmitted with it
> may be privileged and confidential.  If the reader of this message,
> regardless of the address or routing, is not an intended recipient, you
are
> hereby notified that you have received this transmittal in error and any
> review, use, distribution, dissemination or copying is strictly
prohibited.
> If you have received this message in error, please delete this e-mail and
> all files transmitted with it from your system and notify the sender by
> reply e-mail or by calling 1-888-338-6076.
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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




Mod webapp +apache 1.3.22 (no config variable LDFLAGS_SHLIB)

2002-01-30 Thread Liam Holohan

When trying create mod_webapp.so the "make" portion fails

Does anybody have a solution to this problem ?
I'm sure its happened before ..

I am building mod_webapp for apache 1.3.22 on RedHat Linux 7.2
(apache with openssl)

I have made the ./configure file ok (as per readme.txt in 
webapp-module-1.0.1-tc401.tar.gz)
i.e

./configure 
--with-apxs=/home/sfuser/wasp/1.0/modules/apache/1.3.22/bin/apxs 
--with-apr=/home/sfuser/wasp/1.0/SRC/webapp-module-1.0.1-tc401/apr/ 
--with-java=/usr/java/jdk1.3.1_01/ 
--with-tomcat=/home/sfuser/wasp/1.0/modules/tomcat/4.0/

my apache binaries , tomcat etc are in 
/home/sfuser/wasp/1.0/modulesetc..

doing a make returns

make[1]: Invoking "make  build"
make[2]: Entering directory 
`/home/sfuser/wasp/1.0/SRC/webapp-module-1.0.1-tc401/apache-1.3'
{ 
APXS_LDFLAGS_SHLIB="`/home/sfuser/wasp/1.0/modules/apache/1.3.22/bin/apxs 
-q LDFLAGS_SHLIB` \
  \
 -lm -lcrypt -lnsl -ldl" ; \
 APXS_LDFLAGS_SHLIB=`/bin/echo ${APXS_LDFLAGS_SHLIB}` ; \
 APXS_CFLAGS="`/home/sfuser/wasp/1.0/modules/apache/1.3.22/bin/apxs 
-q CFLAGS` \
 -g -O2 \
 -g -O2 \
  \
 -DLINUX=2 -D_REENTRANT \
 -I/home/sfuser/wasp/1.0/SRC/webapp-module-1.0.1-tc401/apr/include \
 -I/home/sfuser/wasp/1.0/SRC/webapp-module-1.0.1-tc401/include \
 " ; \
 APXS_CFLAGS=`/bin/echo ${APXS_CFLAGS}` ; \
 /home/sfuser/wasp/1.0/modules/apache/1.3.22/bin/apxs \
 -S CFLAGS="${APXS_CFLAGS}" \
 -S LDFLAGS_SHLIB="${APXS_LDFLAGS_SHLIB}" \
 -o "mod_webapp.so" \
 -c "mod_webapp.c" \
 
"/home/sfuser/wasp/1.0/SRC/webapp-module-1.0.1-tc401/lib/libwebapp.a" \ 
 
"/home/sfuser/wasp/1.0/SRC/webapp-module-1.0.1-tc401/lib/libapr.a" ; \
}
Bareword found where operator expected at (eval 6) line 1, near 
""-DLINUX=22 -DTARGET="httpsd"
 (Missing operator before httpsd?)
String found where operator expected at (eval 6) line 1, at end of line
apxs:Error: no config variable LDFLAGS_SHLIB

After hunting around google I suspect my apxs is wrong I'm not sure

./apxs -q CFLAGS returns ..
-DLINUX=22 -DTARGET="httpsd" -DUSE_HSREGEX -DNO_DL_NEEDED -DAPACHE_SSL

./apxs -q LDFLAGS_SHLIB   returns nada

apxs has in side it ...

my $CFG_TARGET= q(httpsd);
my $CFG_CC= q(gcc);# substituted via Makefile.tmpl
my $CFG_CFLAGS= q( -DLINUX=22 -DTARGET="httpsd" -DUSE_HSREGEX 
-DNO_DL_NEEDED -DAPACHE_SSL `../apaci`); # substituted via Makefile.tmpl
my $CFG_CFLAGS_SHLIB  = q();  # substituted via Makefile.tmpl
my $CFG_LD_SHLIB  = q();  # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q();  # substituted via Makefile.tmpl
my $CFG_LIBS_SHLIB= q();  # substituted via Makefile.tmpl
my $CFG_PREFIX= q(/home/sfuser/wasp/1.0/modules/apache/1.3.22); 
# substituted via APACI install
my $CFG_SBINDIR   = 
q(/home/sfuser/wasp/1.0/modules/apache/1.3.22/bin); # substituted via 
APACI install
my $CFG_INCLUDEDIR= 
q(/home/sfuser/wasp/1.0/modules/apache/1.3.22/include); # substituted 
via APACI install
my $CFG_LIBEXECDIR= 
q(/home/sfuser/wasp/1.0/modules/apache/1.3.22/libexec); # substituted 
via APACI install
my $CFG_SYSCONFDIR= q(/home/sfuser/wasp/1.0/modules/apache/1.3.22/conf);

does anybody know what needs to be in there for LDFLAGS_SHLIB ?

thanks in advance


Liam


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




RE: Session Timeout

2002-01-30 Thread sumit . rajan

i am using 3.2.4 and it does not seem to be working.
anyway i am using it in jsp. 
just thot to make it configurable. well i will have to go for a properties
file for it then.

thanks for all the replies.

Sumit.

-Original Message-
From: Justin Rowles [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 11:53 AM
To: 'Tomcat Users List'
Subject: RE: Session Timeout


> Hi,
>   I tried setting session timeout to 5 mins using web.xml 
> (please see
> the following code), but it does not seem to be working. In my jsp I
> displayed getMaxInactiveInterval() and it shows 1800 (30 
> mins). Can anyone
> please let me know if I can use web.xml for session timeout 
> in jsp pages or
> not.

I have never had it working on TC 3.2.3 (I think) and set it in the jsps
instead.

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 
The information contained in this e-mail and any files transmitted with it
may be privileged and confidential.  If the reader of this message,
regardless of the address or routing, is not an intended recipient, you are
hereby notified that you have received this transmittal in error and any
review, use, distribution, dissemination or copying is strictly prohibited.
If you have received this message in error, please delete this e-mail and
all files transmitted with it from your system and notify the sender by
reply e-mail or by calling 1-888-338-6076. 

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




How do I configure Tomcat properly to not collide with other ISAPI apps (Tomcat 3.3a)?

2002-01-30 Thread Patrik Höiem

Hi,

I have recently installed Tomcat 3.3a wich in some ways differ from 3.2.3
that we used before.
The platform is W2K SP2.
We have configured it so that it works to call it through the IIS.
With Tomcat 3.2.3 we never experienced any collisions between requests to
the servlets handled by Tomcat and other requests handled by an other app.
This app also makes use of an ISAPI DLL on the same web site. The situation
is that tomcat is supposed to take care of all requests to
http://IP_address/foo/servlet or http://IP_address/foo/jsp
But when we tried out the new configuration with Tomcat 3.3a we noticed that
it snatched requests (mainly for pictures) from the other app...
The tomcat is configured like this:
apps-foo.xml






 







uri-workermap.properties

#
# Simple worker configuration file
#

# Mount the servlet context to the ajp12 worker
/servlet/*=ajp12

# Mount the examples context to the ajp12 worker
/examples/*=ajp12

# Mount the foo context to the ajp12 worker
/foo/jsp/*.jsp=ajp12
/foo/servlet/*=ajp12

# Advanced mount of the examples context
# /examples/*.jsp=ajp12
# /examples/servlet/*=ajp12

And when we made the auto-generated files by tomcat start jkconf
which you don't have to do in prior versions we noticed that the
uri-workermap.properties under /auto looks like this:

###
# Auto generated configuration. Dated: Wed Jan 30 15:16:16 CET 2002
###

#
# Default worker to be used through our mappings
#
default.worker=ajp13

/admin=$(default.worker)
/admin/*=$(default.worker)
/examples=$(default.worker)
/examples/*=$(default.worker)
/foo=$(default.worker)
/foo/*.jsp=$(default.worker)

So we started to look at it and changed it to this:

###
# Auto generated configuration. Dated: Wed Jan 30 15:16:16 CET 2002
###

#
# Default worker to be used through our mappings
#
default.worker=ajp13

/admin=$(default.worker)
/admin/*=$(default.worker)
/examples=$(default.worker)
/examples/*=$(default.worker)
/foo/jsp=$(default.worker)
/foo/jsp/*.jsp=$(default.worker)
/foo/servlet=$(default.worker)
/foo/servlet/*=$(default.worker)

Then we got everything (as far as I know now) to work as before (with Tomcat
3.2.3). But the question I'm asking is - it seems a little awkward to edit
an auto-generated file, can I do this in another way without editing the
auto-generated file?

Cheers!

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




RE: Session Timeout

2002-01-30 Thread Justin Rowles

> I think Justin is correct in stating to put the timeout in 
> the JSP's. I bet the web.xml file is only for servlets.

Well jsps *are* servlets once they are compiled!  Personally I think it's a
bug but I have a workaround so I can get on with this huge pile of vitally
important small changes to the text ;-)

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




RE: Session Timeout

2002-01-30 Thread Purcell, Scott

I think Justin is correct in stating to put the timeout in the JSP's. I bet
the web.xml file is only for servlets.

Anyone know for sure?

Scott

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 10:42 AM
To: [EMAIL PROTECTED]
Subject: Session Timeout


Hi,
I tried setting session timeout to 5 mins using web.xml (please see
the following code), but it does not seem to be working. In my jsp I
displayed getMaxInactiveInterval() and it shows 1800 (30 mins). Can anyone
please let me know if I can use web.xml for session timeout in jsp pages or
not.


5




Sumit.
The information contained in this e-mail and any files transmitted with it
may be privileged and confidential.  If the reader of this message,
regardless of the address or routing, is not an intended recipient, you are
hereby notified that you have received this transmittal in error and any
review, use, distribution, dissemination or copying is strictly prohibited.
If you have received this message in error, please delete this e-mail and
all files transmitted with it from your system and notify the sender by
reply e-mail or by calling 1-888-338-6076. 

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

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




RE: Session Timeout

2002-01-30 Thread Justin Rowles

> Hi,
>   I tried setting session timeout to 5 mins using web.xml 
> (please see
> the following code), but it does not seem to be working. In my jsp I
> displayed getMaxInactiveInterval() and it shows 1800 (30 
> mins). Can anyone
> please let me know if I can use web.xml for session timeout 
> in jsp pages or
> not.

I have never had it working on TC 3.2.3 (I think) and set it in the jsps
instead.

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




RE: Tomcat 4.0 and IIS 5.0

2002-01-30 Thread Reynir Hübner

why dont we try checking out the http://jakarta.apache.org website,
there is a very good manual on how to do this : 

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

hope it helps
[EMAIL PROTECTED]



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 30. janúar 2002 16:40
To: Tomcat Users List
Subject: Tomcat 4.0 and IIS 5.0


Hi, i have installed succesfull Tomcat 4.0 its work fine on port 8080 on
all
domain that i host on my server.
How can i do to execute .jsp on some domain on port 80? I have
succesfull
installed also isapi_redirector.dll
and its load and it's green.
Can you help me?


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


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




Session Timeout

2002-01-30 Thread sumit . rajan

Hi,
I tried setting session timeout to 5 mins using web.xml (please see
the following code), but it does not seem to be working. In my jsp I
displayed getMaxInactiveInterval() and it shows 1800 (30 mins). Can anyone
please let me know if I can use web.xml for session timeout in jsp pages or
not.


5




Sumit.
The information contained in this e-mail and any files transmitted with it
may be privileged and confidential.  If the reader of this message,
regardless of the address or routing, is not an intended recipient, you are
hereby notified that you have received this transmittal in error and any
review, use, distribution, dissemination or copying is strictly prohibited.
If you have received this message in error, please delete this e-mail and
all files transmitted with it from your system and notify the sender by
reply e-mail or by calling 1-888-338-6076. 

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




Tomcat 4.0 and IIS 5.0

2002-01-30 Thread primo

Hi, i have installed succesfull Tomcat 4.0 its work fine on port 8080 on all
domain that i host on my server.
How can i do to execute .jsp on some domain on port 80? I have succesfull
installed also isapi_redirector.dll
and its load and it's green.
Can you help me?


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




Re: mod_jk.conf ?!?

2002-01-30 Thread Emerson

At 06:27 30/1/2002 -0500, you wrote:
>Can someone give me a sample mod_jk.conf?  Particularly someone that is 
>using Tomcat4.  How about a good source for mod_jk.so?  I have found 
>mod_jk-3.3-ap13-eapi.so and mod_jk-3.3-ap13-noeapi.so and mod_jk-3.3-ap20.so 
>on a Tomcat 3.3 download site.  Nothing for Tomcat 4.01. what's the 
>difference between them?  should I rename one of them to just mod_jk.so?
>Thanks


You can use the same library for tomcat 4, the prob. is that it doesn't
generate the conf file automatically

>
>
>
>_
>MSN Photos is the easiest way to share and print your photos: 
>http://photos.msn.com/support/worldwide.aspx
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
Emerson Cargnin
TRE-SC
Setor de Desenvolvimento 
Tel: (48) 251-3700 - Ramal 3134

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




RE: Reload servlet

2002-01-30 Thread Emerson

Have you create a html manager???
may you share that???


At 16:11 30/1/2002 +0200, you wrote:
>Hi,
>
>> -Original Message-
>> From: Harry Long [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, January 30, 2002 12:51 AM
>> To: '[EMAIL PROTECTED]'
>> Subject: Reload servlet
>> 
>> 
>> Hi ,  I have a problem with servlet's reloadable.  I run Tomcat4.0 on
>> Linux7.2 and connect to
>> Apache using mod_webapps connector. I do set the reloadable="true" in the
>> context. But It seems
>> that It doesn't work at all. Every time I change something on the servlet
>> and recompile it , I have to
>> restart Tomcat to see my any updates.  Is my setting wrong or something I
>> have missed ?
>> 
>
>don't know about that "reloadable", but the manager web-app works fine for
me.
>I changed ManagerServlet to HTMLManagerServlet so I can reload
>an application with one click. No need to reload whole TC.
>
>> Thanks a lot.
>> 
>> 
>
>Anton
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
Emerson Cargnin
TRE-SC
Setor de Desenvolvimento 
Tel: (48) 251-3700 - Ramal 3134

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




RE: Broken pipe

2002-01-30 Thread Emerson

I haven't tried to get that exception, but i supposse it's possible to pick
it up.

look at my stacktrace :

java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
at
org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders(HttpResponseAd
apter.java:124)
at
org.apache.tomcat.core.BufferedServletOutputStream.sendHeaders(BufferedServl
etOutputStream.java:126)
at
org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServl
etOutputStream.java:236)
at org.apache.tomcat.core.ResponseImpl.finish(ResponseImpl.java:215)
at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
pl.java:243)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:162)
at cadServlet.visualizaEstatiticas(cadServlet.java:690)
at cadServlet.doGet(cadServlet.java:351)
at cadServlet.doPost(cadServlet.java:408)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
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:806)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
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)


At 15:49 30/1/2002 +0200, you wrote:
>Hi,
>
>> -Original Message-
>> From: Emerson [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, January 29, 2002 10:50 PM
>> To: Tomcat Users List
>> Subject: Broken pipe
>> 
>> 
>> Is there any way of not throwing an exception "java.io.IOException: Broken
>> pipe" when the user reloads or cancel the request of a page 
>> Or its good
>> to get this exception to rollback all the transactions done already???
>> 
>
>Is it possible to get that exception? I mean it's thrown to some internal
TC classes.
>I'd really want my application to be aware of reloading or cancel. Any
suggestions?
>
>> Emerson Cargnin
>> TRE-SC
>> Setor de Desenvolvimento 
>> Tel: (48) 251-3700 - Ramal 3134
>> 
>
>Anton
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
Emerson Cargnin
TRE-SC
Setor de Desenvolvimento 
Tel: (48) 251-3700 - Ramal 3134

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




RE: Tomcat 4.0.1 with Servlet 2.2

2002-01-30 Thread Knutsen Jeffrey S

Thanks all. Our problem is that we have a quite distributed developer
community, and we can not count our developers to constrain themselves to
the currently supported specs.  Because of an organizational directive, one
of our requirements is to maintain portability with our current WebSphere
environment, which only supports Servlet 2.2 (for the foreseeable future).
So I guess the best-easiest way around this problem is to use Tomcat 3.3a
for now, the migrate to 4.x in the future.  Thanks again everyone for the
help.

-- Jeff


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 10:24 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.0.1 with Servlet 2.2




On Wed, 30 Jan 2002, Knutsen Jeffrey S wrote:

> Date: Wed, 30 Jan 2002 09:36:42 -0600
> From: Knutsen Jeffrey S <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Tomcat 4.0.1 with Servlet 2.2
>
>
> Our organization is new to Tomcat.  I am trying to decide between
installing
> Tomcat 3.3.x and the newer Tomcat 4.0.1.  I would like to use the latest
> version, however due to portability (and mostly political) considerations
> within our environment I am only able to support the Servlet 2.2 and JSP
1.1
> specs at this time.
>
> Is it possible to install Tomcat 4.0.1, yet configure the server to only
> support the older spec levels?  If it is not configurable, would replacing
> the servlet.jar file with an older version (perhaps the one from Tomcat
> 3.3.x) work to accomplish this goal?  Would there be any other obvious
> ramifications to this action?  Am I missing any other obvious issues or
> alternatives?
>

One thing that might be an "obvious issue" is that Servlet 2.3/JSP 1.2
containers are required, by the specifications, to support web
applications written to the Servlet 2.2/JSP 1.1 specification
requirements.  If you've written your application to those specs, and are
not relying on unspecified behavior (or bugs) in your container, then your
app will be perfectly portable.

Trying to do things like changing the servlet.jar file without changing
anything else is like trying to run diesel fuel through a car that has a
gasoline engine -- it's not going to work :-).

> Thank you very much.
>
> -- Jeff
>
>

Craig


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



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




Re: Tomcat 4.0.1 with Servlet 2.2

2002-01-30 Thread Craig R. McClanahan



On Wed, 30 Jan 2002, Knutsen Jeffrey S wrote:

> Date: Wed, 30 Jan 2002 09:36:42 -0600
> From: Knutsen Jeffrey S <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Tomcat 4.0.1 with Servlet 2.2
>
>
> Our organization is new to Tomcat.  I am trying to decide between installing
> Tomcat 3.3.x and the newer Tomcat 4.0.1.  I would like to use the latest
> version, however due to portability (and mostly political) considerations
> within our environment I am only able to support the Servlet 2.2 and JSP 1.1
> specs at this time.
>
> Is it possible to install Tomcat 4.0.1, yet configure the server to only
> support the older spec levels?  If it is not configurable, would replacing
> the servlet.jar file with an older version (perhaps the one from Tomcat
> 3.3.x) work to accomplish this goal?  Would there be any other obvious
> ramifications to this action?  Am I missing any other obvious issues or
> alternatives?
>

One thing that might be an "obvious issue" is that Servlet 2.3/JSP 1.2
containers are required, by the specifications, to support web
applications written to the Servlet 2.2/JSP 1.1 specification
requirements.  If you've written your application to those specs, and are
not relying on unspecified behavior (or bugs) in your container, then your
app will be perfectly portable.

Trying to do things like changing the servlet.jar file without changing
anything else is like trying to run diesel fuel through a car that has a
gasoline engine -- it's not going to work :-).

> Thank you very much.
>
> -- Jeff
>
>

Craig


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




Re: mod_jk problem.

2002-01-30 Thread Emerson

take a look in mod_jk.conf-auto to see where it points to (to the
mod_jk.so) and if points to diferent place (it depends on your apache
installation) copy the fali to a new one (with the correct path), and make
httpd.conf point to it.



 At 10:55 30/1/2002 +0200, you wrote:
>Given up on TC 4.0.2 and mod_webapp.
>So now I tried to compile mod_jk and tomcat 3.3 final.
>
>Both compiled without any error messages .
>
>However when I load the module in apache , it fails to start with the
>following message in the error_log :
>[emerg] (2)No such file or directory: Error while opening the workers
>
>I have updated the workers.properties file and given it 755 permissions ..
>
>Any ideas .. please help
>
>Solaris 8
>and Apache 1.3.22
>and java version "1.3.1"
>Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
>Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
>
>Thanx
>Thys de Wet
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
Emerson Cargnin
TRE-SC
Setor de Desenvolvimento 
Tel: (48) 251-3700 - Ramal 3134

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




Problems with .exe install for NT

2002-01-30 Thread jmh_tomcat

I can't get my .exe to install on my NT system.  It says that the path of the JDK 
can't be found.  My JDK is under D:\java\JDK1.4.  

Is there anyway that an optional argument can be added to the installer to allow for a 
different path for the JDK than the default?

Thanks


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




EJB Realm - ClassCastException getting the EJBHome ref

2002-01-30 Thread Nicolas PERIDONT

Hi,

I write my own Realm that connect to an EJB session bean to get the
Principal.

I have a probleme in my Realm class when i try to get a reference to the
EJBHome class of my sessionBean class.
I get a ClassCastException on the following line :
LoginManagerHome homeLoginManager =
(LoginManagerHome)javax.rmi.PortableRemoteObject.narrow(obj,
LoginManagerHome.class);

I have some difficult to find where it came from.
Because the same EJB component well work when i called it from an jsp page.

I put the client class files off my Beans and the EJB client class of my
EJBServer in /tomcat/server/classes and /tomcat/server/lib
My JNDI Context is well set and the connection to the EJB server work well.

So i don't have any idear where does this CastException may come from.
If any of you have a idea, it will be great.

Thanks in advance for your help

Nicolas PERIDONT


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




AW: Tomcat 4.0.1 with Servlet 2.2

2002-01-30 Thread Ralph Einfeldt

I don't thik that that will work. Tomcat uses/needs some of the
interfaces and classes that where added in the newer jars. So I 
guess that you would get some ClassNotFoundExceptions.

But to get one step back, what exactly is the problem, as the 
servlet spec is quite backward compatible it should be in mosts 
cases no problem to just use the servlet 2.2 spec in your own 
files.

> -Ursprüngliche Nachricht-
> Von: Knutsen Jeffrey S [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 30. Januar 2002 16:37
> An: '[EMAIL PROTECTED]'
> Betreff: Tomcat 4.0.1 with Servlet 2.2

> Is it possible to install Tomcat 4.0.1, yet configure the 
> server to only support the older spec levels?  If it is not
configurable, 
> would replacing the servlet.jar file with an older version (perhaps
the one 
> from Tomcat 3.3.x) work to accomplish this goal? 


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




RE: Using Tomcat without JDK

2002-01-30 Thread Andy Birchall

Yes #1 is true.
If I put the servlet.jar in the JRE_HOME\lib\ext directory it works, so we will just 
do this.
Thanks for your help.
Andy

> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: 30 January 2002 14:29
> To: 'Tomcat Users List'
> Subject: RE: Using Tomcat without JDK
> 
> 
> 
> 
> > -Original Message-
> > From: Andy Birchall [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 30, 2002 9:55 AM
> > To: Tomcat-User
> > Subject: Using Tomcat without JDK
> > 
> > 
> > Does anyone know if its possible to use Tomcat with just the 
> > JRE rather than the JDK?
> 
> Yes.  If you don't use JSP (or precompile all your JSPs into servlets) you
> can distribute the JRE and Tomcat will work fine.
> 
> > 
> > Because of licensing restrictions with distributing the Sun JDK,
> > we would like to distribute our servlet application with the JRE only.
> > 
> > I have tried to run Tomcat with the JRE rather than the JDK by setting
> > JAVA_HOME to the JRE home directory. When I run Tomcat and try to load
> > our startup servlet in the browser I get:
> > "Exception in thread "main" java.lang.NoClassDefFoundError: 
> > javax/servlet/http/HttpServlet"
> > 
> > Our servlets are in jar files in \lib. We use 
> > servlets only, not JSP.
> > We are running Tomcat 3.2.3 on Win2000.
> > 
> > Does anyone know why Tomcat fails to find the HttpServlet?
> 
>   1.  If you set your JAVA_HOME back to a JDK does Tomcat work fine
> again?  If so its probably due to some jar files being in the
> JAVA_HOME/lib/ext directory on one and not the other.
>   2.  If not #1 then you probably want to check your TOMCAT_HOME/lib
> and verify that the servlet.jar file is there.
>   3.  If not #1 and #2 then post again with values for JAVA_HOME and
> TOMCAT_HOME and we'll see where we can go from there.
> 
>   Randy
> > 
> > Thanks
> > Andy Birchall
> > 
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> > 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> _
> This message has been checked for all known viruses by UUNET delivered 
> through the MessageLabs Virus Control Centre. For further information visit
> http://www.uk.uu.net/products/security/virus/

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




AW: How to configurate tomcat 4.0 with JBuilder 6.0professional?

2002-01-30 Thread Lauer, Oliver

TC4.0 is within JB6, just push the right mouse button and select web run. TC
starts..!
What's your problem ?
Oliver 

> AXA eSolutions GmbH
> AXA Konzern AG Germany
> Oliver Lauer 
> Web Architect
> Wörthstraße 34
> D-50668 Köln
> Germany
> Tel.: +49 221 148 31277
> Fax: +49 221 148 43963
> Mobil: +49 179 59 064 59
> e-Mail: [EMAIL PROTECTED]
> _
> 


-Ursprüngliche Nachricht-
Von: Thanh Duong [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 30. Januar 2002 16:42
An: [EMAIL PROTECTED]
Betreff: How to configurate tomcat 4.0 with JBuilder 6.0 professional?


Hi,
Does anybody know to configurate tomcat 4.0 with JBuilder 6.0 Professional?

Thanks
Thanh

Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! 
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13



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


--
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reproduction, 
copying or disclosure of the content of this e-mail is not permitted. This message is 
exclusively for the person addressed or their representative. If you are not the 
intended recipient of this message and its contents, please notify the sender 
immediately.

==


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




How to configurate tomcat 4.0 with JBuilder 6.0 professional?

2002-01-30 Thread Thanh Duong

Hi,
Does anybody know to configurate tomcat 4.0 with JBuilder 6.0 Professional?

Thanks
Thanh

Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! 
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13



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




Tomcat 4.0 and IIS 5.0

2002-01-30 Thread primo

Hi, i have installed succesfull Tomcat 4.0 its work fine on port 8080 on all
domain that i host on my server.
How can i do to execute .jsp on some domain on port 80? I have succesfull
installed also isapi_redirector.dll
and its load and it's green.
Can you help me?



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




Tomcat 4.0.1 with Servlet 2.2

2002-01-30 Thread Knutsen Jeffrey S


Our organization is new to Tomcat.  I am trying to decide between installing
Tomcat 3.3.x and the newer Tomcat 4.0.1.  I would like to use the latest
version, however due to portability (and mostly political) considerations
within our environment I am only able to support the Servlet 2.2 and JSP 1.1
specs at this time.  

Is it possible to install Tomcat 4.0.1, yet configure the server to only
support the older spec levels?  If it is not configurable, would replacing
the servlet.jar file with an older version (perhaps the one from Tomcat
3.3.x) work to accomplish this goal?  Would there be any other obvious
ramifications to this action?  Am I missing any other obvious issues or
alternatives?

Thank you very much.

-- Jeff




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




RE: JSP Error

2002-01-30 Thread Larry Isaacs

Check in the appropriate "jasper-xxx.log" file for a
"Exception parsing file ..." message. It should show you
the actual exception thrown.  Hopefully that will give
you a clue to the source of the error.

Cheers,
Larry

> -Original Message-
> From: Satish Reddy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 9:52 AM
> To: Tomcat Users List
> Subject: Re: JSP Error
> 
> 
> Hi,
> I have checked the permissions, I have Read permissions 
> for every one
> for the files in the webapps directory. I have tried to 
> access the tomcat
> directly on port 8080, but i see The Page cannot be displayed 
> page under IE.
> Do you think I have to change any configuration to access.
> 
> thank you,
> Satish.
> 
> - Original Message -
> From: "Larry Isaacs" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, January 29, 2002 3:15 PM
> Subject: RE: JSP Error
> 
> 
> > I believe this usually turns out to be a permissions issue.
> > Make sure the user under which Tomcat is running has permission
> > to read the webapp directories.  You can also try accessing
> > Tomcat directly on port 8080 to see if behavior is different
> > from accessing through Apache.
> >
> > Cheers,
> > Larry
> >
> > > -Original Message-
> > > From: Satish Reddy [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, January 29, 2002 2:02 PM
> > > To: Tomcat
> > > Subject: JSP Error
> > >
> > >
> > > Hi All,
> > > I am having problems running JSP using tomcat3.3a with
> > > Apache1.3.12. on linux. I am able to run the same JSP on
> > > Windows without any problems.
> > >
> > > When I tried to run the example JSP. I get this following error.
> > >
> > > 2002-01-29 12:59:26 - Ctx(/EM) : Exception in R( /examples +
> > > /jsp/num/numguess.jsp + null)
> > >  - org.apache.jasper.compiler.ParseException: Cannot read
> > > file: /jsp/num/numguess.jsp
> > > at
> > > org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
> > > at
> > > org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
> > > at 
> org.apache.jasper.compiler.JspReader.(Unknown Source)
> > > at
> > > 
> org.apache.jasper.compiler.JspReader.createJspReader(Unknown Source)
> > > at 
> org.apache.jasper.compiler.Compiler.compile(Unknown Source)
> > > at
> > > org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
> > > at
> > > 
> org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
> > > at
> > > org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
> > > at
> > > 
> org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
> > > at
> > > 
> org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
> > > at
> > > org.apache.tomcat.core.ContextManager.service(Unknown Source)
> > > at
> > > 
> org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(U
> > > nknown Source)
> > > at
> > > org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
> > > at
> > > 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
> > >  Source)
> > > at java.lang.Thread.run(Thread.java:475)
> > >
> > > Can anyone here please help me get through this problem.
> > >
> > > Thank you,
> > > -satish
> > >
> >
> > --
> > To unsubscribe:   
> 
> > For additional commands: 
> 
> > Troubles with the list: 
> 
> >
> >
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




servlet to servlet SSL problem - MalformedURLException

2002-01-30 Thread Hawkins, Keith (Keith)


I am running Tomcat3.2 and IIS using the isapi_redirector.

I have a class for sending Https messages called HttpsMessage.  (This
class sets up the com.sun.net.ssl.internal.www.protocol provider into
the Java Security class so that URL classes with https can be
constructed without getting an MalformedURLException.  )

If I use this HttpsMessage class to access a servlet directly from a
client program,  the request is served properly.

BUT if this class is used by one servlet to contact the very same
servlet that the client program accessed,  a MalformedURLException is
thrown complaining about  "unknown protocol: https"

I suspect that this is because in the first instance,  IIS is handling
the SSL hand shaking before the request is forwarded to the servlet
whereas in the second case Tomcat needs to provide the SSL support.

I am correct?  If so,  would configuring Tomcat for SSL support fix the
problem?

Thanks,
Keith




RE: JAVA Process on Solaris 8 is taking 52M

2002-01-30 Thread Tamim, Samir

Thanks for the reply Randy,

Just the process wihout running any application is taken 8.9Mb.

So, as for solaris, it is normal without running any application to take
52Mb.

Thanks again
Sam

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 9:30
To: 'Tomcat Users List'
Subject: RE: JAVA Process on Solaris 8 is taking 52M



52MB is a little on the low side for out installations, and I've
never seen Tomcat run with 8MB.  Does the Win2K system actually work?

Randy

> -Original Message-
> From: Tamim, Samir [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 10:06 AM
> To: 'Tomcat Users List'
> Subject: JAVA Process on Solaris 8 is taking 52M
> 
> 
> Hi everybody,
> Did install tomcat with the WARP Connector to Apache on Solaris 8 and
> Windows 2000.
> The JAVA.EXE (tomcat process) is taking 8Mb on Windows 2000 
> and 52Mb on
> Solaris.
> Is it normal 
> 
> Thanks,
> Sam
> 
> 
> 
> 

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



Re: How Session-Replication works when clustering Apache/Tomcat

2002-01-30 Thread Tom Drake

Alexander:

Currently, Tomcat 4 doesn't really do session
replication. However, I've been working on a
clustering / distributed session management
solution that should work beautifully in the
the scenario you describe below.

The way it works is that all tomcats in the
cluster are given the same 'cluster multicast ip/port'
information (via server.xml). At startup time,
tomcat will discover all the session replication
(RMI) services, and obtain copies of sessions already
stored elsewhere in the cluster.

If a tc instance is required to create a new session
or update an existing session, it will, on completion
of the HttpServletRequest, persist that session to
all known session repositories in the cluster.

If a request for an 'unknown' jsession id comes to a
tc instance, it will query one of the other 'session
repositories' in the cluster, and obtain that session.
Normally, it would already have a copy of the session
because of what I described in the preceeding paragraph.

There is more to this, but this description is a fairly
accurate yet simple description.

I've completed (and tested) the multicast RMI registry
code which enables the auto-discovery of RMI services.

I've also completed (and tested) the distributed
object management code.

I've also done some of the integration work including
- a new SessionManager that performs the required
  interactions with the 'other' repositories in the cluster.
- a new Valve that notifies the new SessionManager when an
  HttpServletRequest is complete (so that it can then persist
  the new or changed session across the cluster).

But I've yet to properly integrate the session / object
repository into Tomcat such that it's lifecycle is properly
managed.

I really should have finished this all weeks ago, but I've
been pounding the pavement looking for a paying gig, as
resources are getting a bit thin around my place.

Regards,

Tom

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 30, 2002 6:48 AM
Subject: How Session-Replication works when clustering Apache/Tomcat


| Hi everybody,
|
|
| to distribute the load of client requests of our web application and to
| guarantee reliability we have to do hardware load balancing and use two
| redundant web servers.
| For that we have to cluster Apache 1.3.23 with Tomcat 3.3a on our
machines.
|
| The file (sketch.txt) shows a scenario with our actual
| hardware-architecture:
|
| (2)
| __\/
|  webserver1 |Ap\ac/he &|
| | To\/mcat | <- Session-ID (3)
|/|___/\_|
|   //  \  ||
|  /   ||
| /_   ||
| |  HW-   |   || (4) Session-
| (1) |Balancer|   || Replication??
| ||   ||
| \||
|  \   ||
|   \  \/
|\
| | Apache & |
|  webserber2 |  Tomcat  | <- Session-ID?? (5)
| |__|
|
|
| Look at following scenario:
|
| For example, if a user logs in he gets his own session ID. The hardware
| load
| balancer decides to forward his request to webserver1 and some information
| of
| this session is stored on that machine.
| Then the same user sends a request again but webserver1 is not reachable
| anymore
| of any reasons! Of course the hardware load balancer forwards his request
| to
| webserver2. How that machine gets the previous session information?
|
|   - Is it possible to configure Tomcat 3.3a in that way to do Session
| Replication?
|   - Is there any plugin to install for Tomcat 3.3a to guarantee this?
|   - Or have I implement that for my own?
|
|
| Of course I've searched in the internet to get information about it and
| read
| almost all newsletters on jakarta's website. But I didn't found any useful
| information.
|
|
|
| With kind regards,
|
| Alexander Ladinig
| System Architect
|
|
| --
| To unsubscribe:   
| For additional commands: 
| Troubles with the list: 
|
|
|


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




RE: JAVA Process on Solaris 8 is taking 52M

2002-01-30 Thread Randy Layman


52MB is a little on the low side for out installations, and I've
never seen Tomcat run with 8MB.  Does the Win2K system actually work?

Randy

> -Original Message-
> From: Tamim, Samir [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 10:06 AM
> To: 'Tomcat Users List'
> Subject: JAVA Process on Solaris 8 is taking 52M
> 
> 
> Hi everybody,
> Did install tomcat with the WARP Connector to Apache on Solaris 8 and
> Windows 2000.
> The JAVA.EXE (tomcat process) is taking 8Mb on Windows 2000 
> and 52Mb on
> Solaris.
> Is it normal 
> 
> Thanks,
> Sam
> 
> 
> 
> 

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




AW: How Session-Replication works when clustering Apache/Tomcat

2002-01-30 Thread Ralph Einfeldt

I know from some mails in this kist that there is work going on 
to deliver session replication for tomcat 4. Don't know the 
current state and if this will work for 3.3a.

The last message I've found:
http://mikal.org/interests/java/tomcat/archive/view?mesg=51707

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 30. Januar 2002 15:49
> An: [EMAIL PROTECTED]
> Betreff: How Session-Replication works when clustering Apache/Tomcat
> 
> 

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




RE: Using Tomcat without JDK

2002-01-30 Thread Randy Layman



> -Original Message-
> From: Andy Birchall [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 9:55 AM
> To: Tomcat-User
> Subject: Using Tomcat without JDK
> 
> 
> Does anyone know if its possible to use Tomcat with just the 
> JRE rather than the JDK?

Yes.  If you don't use JSP (or precompile all your JSPs into servlets) you
can distribute the JRE and Tomcat will work fine.

> 
> Because of licensing restrictions with distributing the Sun JDK,
> we would like to distribute our servlet application with the JRE only.
> 
> I have tried to run Tomcat with the JRE rather than the JDK by setting
> JAVA_HOME to the JRE home directory. When I run Tomcat and try to load
> our startup servlet in the browser I get:
> "Exception in thread "main" java.lang.NoClassDefFoundError: 
> javax/servlet/http/HttpServlet"
> 
> Our servlets are in jar files in \lib. We use 
> servlets only, not JSP.
> We are running Tomcat 3.2.3 on Win2000.
> 
> Does anyone know why Tomcat fails to find the HttpServlet?

1.  If you set your JAVA_HOME back to a JDK does Tomcat work fine
again?  If so its probably due to some jar files being in the
JAVA_HOME/lib/ext directory on one and not the other.
2.  If not #1 then you probably want to check your TOMCAT_HOME/lib
and verify that the servlet.jar file is there.
3.  If not #1 and #2 then post again with values for JAVA_HOME and
TOMCAT_HOME and we'll see where we can go from there.

Randy
> 
> Thanks
> Andy Birchall
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




JAVA Process on Solaris 8 is taking 52M

2002-01-30 Thread Tamim, Samir

Hi everybody,
Did install tomcat with the WARP Connector to Apache on Solaris 8 and
Windows 2000.
The JAVA.EXE (tomcat process) is taking 8Mb on Windows 2000 and 52Mb on
Solaris.
Is it normal 

Thanks,
Sam






SSL question

2002-01-30 Thread Hawkins, Keith (Keith)



I am using Tomcat 3.2 and IIS.   I installed a server certificate to IIS
using Windows Certificate Services. I want to configure Tomcat for SSL
support using that certificate.   Can this be done?  The documentation
about setting up SSL gives instructions using OpenSSL and keytool.   I
am not sure how to translate those instructions into the steps needed to
use the certificate generated by Windows Certificate Services.

Thanks,
Keith






servlet-chaining problem

2002-01-30 Thread Dirk . Dinger


Hi !

I have the following scenario:

Servet A :performs a synchronous call to another servlet B, located at
some other server.
  Servlet B produces binary output, that may be further
processed or directly
  routed back to the browser (as shown in the code
example).

 URL url = new URL("");

 URLConnection connection = url.openConnection();
 BufferedReader in = new BufferedReader(new
InputStreamReader(connection.getInputStream()));
 OutputStream f = response.getOutputStream();
 int a=0;
 while ( (a=in.read()) != -1 )
  {
 f.write(a);
  }
  in.close();
  f.close();


Servlet B:   performs some businesslogic, using server B's local
ressources.
   In this exaple an MS-Excel Document is generated and returned as
binary data.

response.setContentType("application/x-msexcel");

  ... some action that produces File excel;
  File excel= new File()

  OutputStream f = response.getOutputStream();

   BufferedInputStream bis = new BufferedInputStream (new
FileInputStream(excel));
   int a=0;
   while ( (a=bis.read()) != -1 )
   {
  f.write(a);
   }
   bis.close();
   f.close();

problem/question:

If I use the URL of B directly, the generated excel-doc is displayed
correcty
If I modify Servlet B to return standard HTML/Text Output and call Servlet
A, everything works fine all well.

But: if i use the combination as shown in the code, after calling servlet
A, excel pop's up but immediately
crashes. So i suppose there is something going wrong with the binary output
of servlet B ?

Any help appreceated,

Regards,
Dirk


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




Using Tomcat without JDK

2002-01-30 Thread Andy Birchall

Does anyone know if its possible to use Tomcat with just the JRE rather than the JDK?

Because of licensing restrictions with distributing the Sun JDK,
we would like to distribute our servlet application with the JRE only.

I have tried to run Tomcat with the JRE rather than the JDK by setting
JAVA_HOME to the JRE home directory. When I run Tomcat and try to load
our startup servlet in the browser I get:
"Exception in thread "main" java.lang.NoClassDefFoundError: 
javax/servlet/http/HttpServlet"

Our servlets are in jar files in \lib. We use servlets only, not JSP.
We are running Tomcat 3.2.3 on Win2000.

Does anyone know why Tomcat fails to find the HttpServlet?

Thanks
Andy Birchall

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




RE: WebAppDeploy Vs WebAppMount

2002-01-30 Thread Justin Rowles

> >>You can just modify your server.xml to have TC listen to 80.
>
> Thanks but I still want to serve static pages hence
> need to have apache.

NB: TC will server static pages quite happily.

Now, I've *just* been discussing this for implementation at my current
contract.  We are wondering what the load difference is likely to be on the
whole machine.  We serve approximately the same number of .jsp and .png
requests, plus a tiny amount of html.

Has anyone implemented this structure and do they have any opinions?

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




Re: JSP Error

2002-01-30 Thread Satish Reddy

Hi,
I have checked the permissions, I have Read permissions for every one
for the files in the webapps directory. I have tried to access the tomcat
directly on port 8080, but i see The Page cannot be displayed page under IE.
Do you think I have to change any configuration to access.

thank you,
Satish.

- Original Message -
From: "Larry Isaacs" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, January 29, 2002 3:15 PM
Subject: RE: JSP Error


> I believe this usually turns out to be a permissions issue.
> Make sure the user under which Tomcat is running has permission
> to read the webapp directories.  You can also try accessing
> Tomcat directly on port 8080 to see if behavior is different
> from accessing through Apache.
>
> Cheers,
> Larry
>
> > -Original Message-
> > From: Satish Reddy [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 29, 2002 2:02 PM
> > To: Tomcat
> > Subject: JSP Error
> >
> >
> > Hi All,
> > I am having problems running JSP using tomcat3.3a with
> > Apache1.3.12. on linux. I am able to run the same JSP on
> > Windows without any problems.
> >
> > When I tried to run the example JSP. I get this following error.
> >
> > 2002-01-29 12:59:26 - Ctx(/EM) : Exception in R( /examples +
> > /jsp/num/numguess.jsp + null)
> >  - org.apache.jasper.compiler.ParseException: Cannot read
> > file: /jsp/num/numguess.jsp
> > at
> > org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
> > at
> > org.apache.jasper.compiler.JspReader.pushFile(Unknown Source)
> > at org.apache.jasper.compiler.JspReader.(Unknown Source)
> > at
> > org.apache.jasper.compiler.JspReader.createJspReader(Unknown Source)
> > at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
> > at
> > org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
> > at
> > org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
> > at
> > org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
> > at
> > org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
> > at
> > org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
> > at
> > org.apache.tomcat.core.ContextManager.service(Unknown Source)
> > at
> > org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(U
> > nknown Source)
> > at
> > org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
> > at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
> >  Source)
> > at java.lang.Thread.run(Thread.java:475)
> >
> > Can anyone here please help me get through this problem.
> >
> > Thank you,
> > -satish
> >
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



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




RE: WebAppDeploy Vs WebAppMount

2002-01-30 Thread Cressatti, Dominique

>>You can just modify your server.xml to have TC listen to 80.
Thanks but I still want to serve static pages hence
need to have apache.

-Original Message-
From: Anton Brazhnyk [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2002 14:48
To: Tomcat Users List
Subject: RE: WebAppDeploy Vs WebAppMount


Hi,

> -Original Message-
> From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 1:05 PM
> To: Tomcat Users List
> Subject: RE: WebAppDeploy Vs WebAppMount
> 
> 
> >>jakarta.apache.org it's there.
> sorry but I looked into
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly/src/
> but I couldn't find anything related to mod_webapp
> 
> >>I think you specify this in web.xml of the web application.
> but web.xml will relate to port 8080 (or whichever port tomcat listen
> to). Frankly am rather confused how come web.xml wiil relate
> to something in WebAppDeploy.
> It seem to me that both can do servlet to URL mapping but while
> web.xml will be serving servlets on port 8080, Webappdeploy
> will do it on port 80 and that the 1 am interested.
> 

If all you need is port 80 then there is no need in mod_webapp.
You can just modify your server.xml to have TC listen to 80.

> Dom
> 

Anton

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


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




RE: Re: 64k limit on POST variables?

2002-01-30 Thread Justin Rowles

> In my case, I wasn't checking the variable on the server at the right
> point.  Tomcat was sending >64k just fine (I discovered after adding a
> decent amount of debugging).  I happened to be putting the result in a
> database column that was limited to 64k.  Hence the reason that I ran
> into the problem that I did.

Oops!  Perfect opportunity to use some   tags there ;-)

> FYI, after some searching on the web, it appears that POSTs 
> do NOT have
> a built-in limit.  GETs are limited by what the browser and server
> support..  But POSTs have no official limit.  (Only warning is that
> they are 'inefficient' for large data, and that multipart forms are
> suggested for that)

But in reality, within the constraints of real, non-infinite machines, they
will *both* be limited by the browser and server.

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




RE: WebAppDeploy Vs WebAppMount

2002-01-30 Thread Cressatti, Dominique

Are you saying that in order to get
something like:
http://localhost/examples/HelloWorldExample

working, I need to have something like:
"WebAppDeploy examples WarpConnection /examples"
in httpd.conf
and have a URL-to-Servlet mapping in a web.xml?

Dom

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2002 13:39
To: Tomcat Users List
Subject: Re: WebAppDeploy Vs WebAppMount


>>jakarta.apache.org it's there.
> sorry but I looked into 
>http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly/src/
> but I couldn't find anything related to mod_webapp

It usually accompanies the distribution of Tomcat. Haven't looked lately.

>>I think you specify this in web.xml of the web application.
> but web.xml will relate to port 8080 (or whichever port tomcat listen
> to).

There seams to be a misconception here. Port is set in 
$CATALINA_BASE/config/server.xml, while web.xml is in /WEB-INF/web.xml. 
"web.xml" sets up the particular context, dfining URL-to-servlet mappings, parameters, 
etc.

> Frankly am rather confused how come web.xml wiil relate
> something in WebAppDeploy.

It won't, exactly. WARP is supposed to pick it up, the whole context.

>  seem to me that both can do servlet to URL mapping but while
> web.xml will be serving servlets on port 8080, Webappdeploy
> will do it on port 80 and that the 1 am interested.

Hmm, well, no, not exactly. "WebAppDeploy" does just URL-to-connection mapping, 
directing certain URLs to WARP connection, while Tomcat does the URL-to-servlet 
mapping. Tomcat has the final word, in any case.

Nix.

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




RE: WebAppDeploy Vs WebAppMount

2002-01-30 Thread Anton Brazhnyk

Hi,

> -Original Message-
> From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 1:05 PM
> To: Tomcat Users List
> Subject: RE: WebAppDeploy Vs WebAppMount
> 
> 
> >>jakarta.apache.org it's there.
> sorry but I looked into
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly/src/
> but I couldn't find anything related to mod_webapp
> 
> >>I think you specify this in web.xml of the web application.
> but web.xml will relate to port 8080 (or whichever port tomcat listen
> to). Frankly am rather confused how come web.xml wiil relate
> to something in WebAppDeploy.
> It seem to me that both can do servlet to URL mapping but while
> web.xml will be serving servlets on port 8080, Webappdeploy
> will do it on port 80 and that the 1 am interested.
> 

If all you need is port 80 then there is no need in mod_webapp.
You can just modify your server.xml to have TC listen to 80.

> Dom
> 

Anton

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




How Session-Replication works when clustering Apache/Tomcat

2002-01-30 Thread lad

Hi everybody,


to distribute the load of client requests of our web application and to
guarantee reliability we have to do hardware load balancing and use two
redundant web servers.
For that we have to cluster Apache 1.3.23 with Tomcat 3.3a on our machines.

The file (sketch.txt) shows a scenario with our actual
hardware-architecture:

(2)
__\/
 webserver1 |Ap\ac/he &|
| To\/mcat | <- Session-ID (3)
   /|___/\_|
  //  \  ||
 /   ||
/_   ||
|  HW-   |   || (4) Session-
(1) |Balancer|   || Replication??
||   ||
\||
 \   ||
  \  \/
   \
| Apache & |
 webserber2 |  Tomcat  | <- Session-ID?? (5)
|__|


Look at following scenario:

For example, if a user logs in he gets his own session ID. The hardware
load
balancer decides to forward his request to webserver1 and some information
of
this session is stored on that machine.
Then the same user sends a request again but webserver1 is not reachable
anymore
of any reasons! Of course the hardware load balancer forwards his request
to
webserver2. How that machine gets the previous session information?

  - Is it possible to configure Tomcat 3.3a in that way to do Session
Replication?
  - Is there any plugin to install for Tomcat 3.3a to guarantee this?
  - Or have I implement that for my own?


Of course I've searched in the internet to get information about it and
read
almost all newsletters on jakarta's website. But I didn't found any useful
information.



With kind regards,

Alexander Ladinig
System Architect


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




  1   2   >