Re: Tomcat-Apache configuration

2000-11-22 Thread Boszormenyi Laszlo

Hi!

On Tue, 21 Nov 2000, Matt Becker wrote:

 Does anyone happen to know where either of these files are located?
 http://jakarta.apache.org/builds/tomcat/release/v3.1/bin/linux/i386/
If you have Linux, and you mean the last _stable_ release of tomcat.

Bye, Laszlo




Re: Tomcat-Apache configuration

2000-11-22 Thread Jeremy Howard

Matt,

Here is the link on apache's site.

http://jakarta.apache.org/builds/tomcat/release/v3.2-beta-8/bin/linux/i386

Jeremy Howard


On Tue, 21 Nov 2000, you wrote:
 
 Hi. I'm trying to get the latest Tomcat and Apache running together on a Red Hat 
Linux 7.0 server. Although I have gone over the online documentation plenty of times, 
I am not sure where to find the mod_jserv.so or the mod_jk.so files that the 
Tomcat-Apache HOWTO html says I need to get. It says that the files "are available 
for Linux and Win32 under the bin directory where you obtained the Tomcat 
distribution file."
 
 Does anyone happen to know where either of these files are located?
 
 Thanks!
 
 
 
 
 Matt Becker
 
 


Content-Type: text/html; name="unnamed"
Content-Transfer-Encoding: quoted-printable
Content-Description: 




Need help in configuration....

2000-11-22 Thread fakhar zaman

Hello Sir/Madem,

I am new in the Linux and networking field. I need some help regarding that 
I have one Linux Server and one IIS Web server the IIS is directly connected 
with the Internet. The site is on the Linux Server and want to give the demo 
of that site which is hosted on the Apache on Linux, Also Tomcat is running 
on the Linux machine.
I make the virtual site on the IIS, inhose it will work but when some one is 
trying to access that site from out site of the company it can't appears. On 
IIS I have the Static IP while the Linux Machine is simply have the local 
Network IP(Private IP).

Hopes that you will help me in this situation.
Thanks
Fakhar
_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




RE: Critical Bug: SSL failed for Tomcat 3.2 Beta 8

2000-11-22 Thread Lacerda, Wellington (AFIS)

Port number should be 8443 and you put 443 ?

Wellington

-Original Message-
From:   Xia, Alex [mailto:[EMAIL PROTECTED]]
Sent:   21 November 2000 23:28
To: [EMAIL PROTECTED]
Subject:Critical Bug: SSL failed for Tomcat 3.2 Beta
8

I have installed Tomcat 3.2 Beta 8 on NT and made the
following change to
server.xml to enable SSL:

Connector
className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler" 
 

value="org.apache.tomcat.service.http.HttpConnectionHandler"/
Parameter name="port" 
value="443"/
Parameter name="socketFactory" 

value="org.apache.tomcat.net.SSLSocketFactory" /
Parameter name="secure" 
value="true" /
/Connector

And I have followed the instruction to create SSL
certificate.

The same exact configuration worked for Tomcat 3.2 Beta 5.

However, when I tried to access my jsp, I got the following
error on the
server:

java.io.IOException: The filename, directory name, or volume
label syntax is
inc
orrect
at java.io.Win32FileSystem.canonicalize(Native
Method)
at java.io.File.getCanonicalPath(File.java:441)
at
org.apache.tomcat.util.FileUtil.safePath(FileUtil.java, Compiled
Code
)
at
org.apache.tomcat.core.Context.getRealPath(Context.java:794)
at

org.apache.tomcat.request.StaticInterceptor.requestMap(StaticIntercep
tor.java:191)
at

org.apache.tomcat.core.ContextManager.processRequest(ContextManager.j
ava, Compiled Code)
at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:771)
at

org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
at

org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
 Compiled Code)
at

org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
2000-11-21 05:18:48 - Ctx(  ): 404 R(  +
:?(û?¤?¦¦¬\ò+îå+0r½+a+??+÷î¶2c¦~ ?
? ?

 + null) null

It seems like Tomcat did not decript the URL for SSL thus
creating the
problem.

I would say this is a critical bug.

Thanks,

Alex X. Xia
Sonus Networks, Inc.
(978) 392-8114




Tomcat vs. Resin ?

2000-11-22 Thread ÀÌÁ¾±Ç

Is there any thing that works on Tomcat3.1 but not on Resin1.2 ?

The only thing I found is:
- The query string (which is returned by request.getQueryString()) is
maintained through the request even the page is forwarded by
RequestDispatcher in Tomcat, but not in Resin.

Another difference is that Tomcat has a encoding problem in getParameter()
but resin doesn't...




RE: Critical Bug: SSL failed for Tomcat 3.2 Beta 8

2000-11-22 Thread Lacerda, Wellington (AFIS)

I have it working perfectly in NT4. Are you using W2000 ?

Wellington

-Original Message-
From:   Lacerda, Wellington (AFIS) 
Sent:   22 November 2000 09:47
To: '[EMAIL PROTECTED]'
Subject:RE: Critical Bug: SSL failed for Tomcat 3.2
Beta 8

Port number should be 8443 and you put 443 ?

Wellington

-Original Message-
From:   Xia, Alex [mailto:[EMAIL PROTECTED]]
Sent:   21 November 2000 23:28
To: [EMAIL PROTECTED]
Subject:Critical Bug: SSL failed for
Tomcat 3.2 Beta
8

I have installed Tomcat 3.2 Beta 8 on NT and
made the
following change to
server.xml to enable SSL:

Connector
className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler" 
 


value="org.apache.tomcat.service.http.HttpConnectionHandler"/
Parameter name="port" 
value="443"/
Parameter name="socketFactory" 

value="org.apache.tomcat.net.SSLSocketFactory" /
Parameter name="secure" 
value="true" /
/Connector

And I have followed the instruction to
create SSL
certificate.

The same exact configuration worked for
Tomcat 3.2 Beta 5.

However, when I tried to access my jsp, I
got the following
error on the
server:

java.io.IOException: The filename, directory
name, or volume
label syntax is
inc
orrect
at
java.io.Win32FileSystem.canonicalize(Native
Method)
at
java.io.File.getCanonicalPath(File.java:441)
at
org.apache.tomcat.util.FileUtil.safePath(FileUtil.java,
Compiled
Code
)
at
org.apache.tomcat.core.Context.getRealPath(Context.java:794)
at


org.apache.tomcat.request.StaticInterceptor.requestMap(StaticIntercep
tor.java:191)
at


org.apache.tomcat.core.ContextManager.processRequest(ContextManager.j
ava, Compiled Code)
at


org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:771)
at


org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at


org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
at


org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
 Compiled Code)
at


org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
, Compiled Code)
at java.lang.Thread.run(Thread.java,
Compiled Code)
2000-11-21 05:18:48 - Ctx(  ): 404 R(  +
:?(û?¤?¦¦¬\ò+îå+0r½+a+??+÷î¶2c¦~ ?
? ?

 + null) null

It seems like Tomcat did not decript the URL
for SSL thus
creating the
problem.

I would say this is a critical bug.

Thanks,

Alex X. Xia
Sonus Networks, Inc.
(978) 392-8114




extend and jsp

2000-11-22 Thread Boszormenyi Laszlo

Hello!

 I have a jsp page, which extends a servlet I have. But when I check the
jsp page, the servlet's doGet method started, and there's no output from
the jsp itself. Ok, I deleteted the doGet method from the servlet, and now
I get "HTTP method GET is not supported by this URL" for the page. :(
How can I define the doGet for the jsp page?
The servlet is defined as public abstract class base extends HttpServlet;
and the jsp has a page extend="base" line.

Any idea how to reach a function from the servlet from the jsp?

Thanks, Laszlo




RE: Tomcat-Apache configuration

2000-11-22 Thread GOMEZ Henri





  Hi. I'm trying to get the latest Tomcat and 
  Apache running together on a Red Hat Linux 7.0 server. Although I have gone 
  over the online documentation plenty of times, I am not sure where to find the 
  mod_jserv.so or the mod_jk.so files that the Tomcat-Apache HOWTO html says I 
  need to get. It says that the files "are 
  available for Linux and Win32 under the bin directory where you obtained the 
  Tomcat distribution file."
  
  Does anyone happen to know where either of these 
  files are located?
  
  I'm producing RPMs 
  for at least 6 month for misc Apache projects (cocoon, xalan, xerces, 
  tomcat).
  As a Redhat users 
  (Mandrake and Suse are welcome), you could useDIRECTLY my RPM 
  :-)
  
  http://rpmized.free.fr
  
  
  REGARDS
  


A couple of distribution questions

2000-11-22 Thread Michael Rimov

Greetings All!

Question 1:

I need to be able to distribute Tomcat in an "all-in-one" 
bundle.  Supporting virtual machine files included.  As far as I 
understand, Tomcat at least requires tools.jar.  Is there another portion 
of the Java 2 SDK that is required for Tomcat to run?

In other words, if I distributed the JRE1.2+ and tools.jar, would that 
provide an environment that Tomcat could fully work in or do I need to 
distribute the entire SDK?

Either way, how do I go about getting permission to redistribute the 
necessary files?  Who can I contact?

Question 2:
As far as I understand the Apache license agreement, if I want to say that 
my bundle includes the Tomcat servlet engine, I have to get permission from 
ASF to use the Tomcat name.  I wrote the suggested email of 
[EMAIL PROTECTED] about this, but I never got a reply.  Could some kind 
soul please point my in the right direction to get this taken care of too?

Thank you very much for your time.
-Mike




Missing class org.apache.struts.taglib.form.RewriteTag

2000-11-22 Thread Taylor, Jeremy

The class org.apache.struts.taglib.form.RewriteTag is not in the CVS nor in
the most recent nightly build,
but it is referenced in the following files

\lib\struts-form.tld
\src\doc\release.xml
\src\doc\struts-form.xml

This causes the server obvious difficulties at runtime.

Any chance of this being checked in or am I missing something obvious?

Rgds,

Jeremy



Re: auto generating web.xml

2000-11-22 Thread Rachel Greenham

On Tuesday 21 November 2000 19:36, you wrote:
 Hi Rachel,
 Just wondering how do you plan to auto generate these web.xml files and how
 would you input the criteria. Thanks for the feedback.

Well, we haven't finalized it yet, but we do have a class naming scheme for 
our servlet classes, so it might be as simple as writing a script that does a 
search for "*Servlet.class" and creates aliases based on the rest of the name 
preceding that. Possibly. Or we might do it a similar way to the way we're 
doing JSP TLD auto-generation, where we have a web-application written using 
the same tags which we use to document the tags, and then we generate a tld 
from that documentation. There's some benefit to that as the configuration 
arises out of the documentation, which we need anyway, so it should stay in 
sync.

-- 
Rachel



RES: Uploading files with JSP

2000-11-22 Thread Jose Euclides da Silva Junior - DIGR.O

Unfortunately, it is not free...

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com
If i fail, if i succeed, at least i live as i believe.

 -Mensagem original-
 De:   Maurice le Rutte [SMTP:[EMAIL PROTECTED]]
 Enviada em:   Terça-feira, 21 de Novembro de 2000 19:03
 Para: [EMAIL PROTECTED]
 Assunto:  Re: Uploading files with JSP
 
 For some stupid reason it is not in the standard JSP specification
 (why). Caucho's Resin (www.caucho.com) can do it for you in a very
 nice manner. Otherwise there are upload packages available. For example
 O'Reilly's package.
 
 Maurice le Rutte.
 Hi,
 i have gotten a headache with it. I need to upload a file with
 multipart/form-data in JSP environment. Can somebody help me?
 Best Regards,
 
 
 
 José Euclides Júnior
 
 



hello and database connection

2000-11-22 Thread Carlos

Hello this is my first message to this list.
My name is Carlos.
Excuse me if my english is bad but i dont speak english

How is the form to make from my tomcat a connection pool to a database.
My database is in another pc with win and sql server (microsoft) ant my
tomcat is in linux.
Anybody can say me how to make a connection pool to this database?
thanks
Carlos





RE: Tomcat NT service

2000-11-22 Thread Marc Saegesser

You don't say which version of Tomcat your using so I'll assume one of the
recent 3.2 betas.

See step 2 of the NT-Service-howto document
(tomcat\doc\NT-Service-howto.html).  It says to customize the
wrapper.properties file that ships with Tomcat in the tomcat\conf directory.

-Original Message-
From: Shukor Idris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 22, 2000 5:49 AM
To: [EMAIL PROTECTED]
Subject: Tomcat NT service


helloi want to ask something about working with the Jakarta NT
services...
where can i get wrapper.properties file?...
may u can help me...please...


regards

shukor




Re: hello and database connection

2000-11-22 Thread John Ellis

Carlos,

Try
http://www.codestudio.com
They have a product called PoolMan which you use with your regular SQL
Server driver to help manage pools.

For an MS SQL driver, take a look at the sun driver database:
http://industry.java.sun.com/products/jdbc/drivers

With poolman, you will not need a driver with connection pooling support.

Hope that helps,

John

Carlos wrote:

 Hello this is my first message to this list.
 My name is Carlos.
 Excuse me if my english is bad but i dont speak english

 How is the form to make from my tomcat a connection pool to a database.
 My database is in another pc with win and sql server (microsoft) ant my
 tomcat is in linux.
 Anybody can say me how to make a connection pool to this database?
 thanks
 Carlos




Re: It didn't work

2000-11-22 Thread Mohammed Nasr Shalaby

Thank you very much Mark.
I have all the stuff setted as you descriped but I'm using a redirector of 96kb
(the one for 3.1) but it still wont work.
I think I've done the registry settings wrong, I've double checked it but
couldn't find any thing wrong with it. If have an NT server running tomcat with
IIS would you please send me a snippet of the specified registry key so that I
could make a checkup.
BTW I couldn't find the iis_redirect.reg-auto file you specified could you
please email a copy of it to me on [EMAIL PROTECTED]??? It will be a great
help for me and my collegus!

Marc Saegesser wrote:

 I've done several installs on WinNT and Win200 with IIS and I can tell you
 that it does work.  Without more details its hard to say what wrong with
 your configuration but here are a few common problems.

 1)  Make sure the isapi_redirect.dll wasn't corrupted by the download.  It
 should 112Kb, if your using 3.2b6 or higher.
 2)  Make sure the registry entries for the ISAPI redirector are correct.
 I've done the registry stuff by hand I usually get it wrong.  Look for an
 iis_redirect.reg-auto in the conf directory.  This file gets created for you
 automatically.  Take a look at it to make sure the settings look OK and then
 rename the file to iis_redirect.reg and run it to create the registry
 entries for you.
 3)  Step 8 under Configuring the ISAPI Redirector says to add the "Filter
 Dlls" key if your using PWS.  PWS is a piece of junk web server that ships
 with WinNT Worstation (as an aside, NEVER install this web server).  From
 your email it looks like your using IIS from the NT 4.0 Option Pack.  This
 server is sometimes refered to as the Personal Web Server to differentiate
 it from the web server for NT Server.  Anyway, if your using IIS from the
 option pack, don't create the "Filter DLLs" registry key.  If you do, the
 isapi_redirector won't load.

 -Original Message-
 From: Mohammed Nasr Shalaby [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 21, 2000 11:58 AM
 To: [EMAIL PROTECTED]
 Subject: It didn't work

 Hi All

 I'm trying to install tomcat on IIS4/NT4 but it just wont work, I've
 installed all the needed files, performed all steps from the "TomCat IIS
 howto" document found on the server but all didn't work. The ISAPI
 filter in the Internet Service Manager alwayes gives me a red arrow
 pointing down beside the jakarta filter. Could any one tell me how to
 make it run??





Testing tool

2000-11-22 Thread Wang, Jianming

Hi, everybody.

We have a Web application beta version.  We want to find tools to test how
many users can concurrently use this application, when the application
performance slow down while users' amount increasing, etc..  In a word, we
need a tool to do loading test.  Certainly, at current stage, we don't want
to spend money on testing tools.  Does anybody know where we can find such
tools for free?   
Thanks in advance.

Jianming Wang




Re: Testing tool

2000-11-22 Thread Trevor Little

I'm not positive about this but try JMeter on apache.org web site.  I
think that may help you.


"Wang, Jianming" wrote:
 
 Hi, everybody.
 
 We have a Web application beta version.  We want to find tools to test how
 many users can concurrently use this application, when the application
 performance slow down while users' amount increasing, etc..  In a word, we
 need a tool to do loading test.  Certainly, at current stage, we don't want
 to spend money on testing tools.  Does anybody know where we can find such
 tools for free?
 Thanks in advance.
 
 Jianming Wang



Re: SOS of total newbie

2000-11-22 Thread Kief Morris

Tomas Marek typed the following on 00:56 23/11/2000 +1100
Also, because W98 included M$ Personal Web Server doesn't support JSP, I 
run Tomcat as a standalone server (just learning anyway). So, what is the 
http address of my .jsp files?

Try http://localhost:8080


---
   bitBull makes the Internet bite: http://www.bitBull.com/demos/




RE: It didn't work

2000-11-22 Thread Marc Saegesser

Sorry, I didn't realize you were running 3.1.  I've never configured that
version with IIS, only the 3.2bx versions, so my configuration might not
match yours exactly.  I've attached a sample .reg file that will configure
the ISAPI redirector registry entries assuming that Tomcat is installed in
c:\tomcat.  You'll need to edit the file to adjust the paths based on where
you've installed tomcat.  If the redirector can't open either the
worker_file or worker_mount_file the filter will fail to load (red arrow)
and you'll see an error message for the W3SVC in the system event log.

Hope this helps.

-Original Message-
From: Mohammed Nasr Shalaby [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 22, 2000 8:10 AM
To: [EMAIL PROTECTED]
Subject: Re: It didn't work


Thank you very much Mark.
I have all the stuff setted as you descriped but I'm using a redirector of
96kb
(the one for 3.1) but it still wont work.
I think I've done the registry settings wrong, I've double checked it but
couldn't find any thing wrong with it. If have an NT server running tomcat
with
IIS would you please send me a snippet of the specified registry key so that
I
could make a checkup.
BTW I couldn't find the iis_redirect.reg-auto file you specified could you
please email a copy of it to me on [EMAIL PROTECTED]??? It will be a great
help for me and my collegus!

Marc Saegesser wrote:

 I've done several installs on WinNT and Win200 with IIS and I can tell you
 that it does work.  Without more details its hard to say what wrong with
 your configuration but here are a few common problems.

 1)  Make sure the isapi_redirect.dll wasn't corrupted by the download.  It
 should 112Kb, if your using 3.2b6 or higher.
 2)  Make sure the registry entries for the ISAPI redirector are correct.
 I've done the registry stuff by hand I usually get it wrong.  Look for an
 iis_redirect.reg-auto in the conf directory.  This file gets created for
you
 automatically.  Take a look at it to make sure the settings look OK and
then
 rename the file to iis_redirect.reg and run it to create the registry
 entries for you.
 3)  Step 8 under Configuring the ISAPI Redirector says to add the "Filter
 Dlls" key if your using PWS.  PWS is a piece of junk web server that ships
 with WinNT Worstation (as an aside, NEVER install this web server).  From
 your email it looks like your using IIS from the NT 4.0 Option Pack.  This
 server is sometimes refered to as the Personal Web Server to differentiate
 it from the web server for NT Server.  Anyway, if your using IIS from the
 option pack, don't create the "Filter DLLs" registry key.  If you do, the
 isapi_redirector won't load.

 -Original Message-
 From: Mohammed Nasr Shalaby [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 21, 2000 11:58 AM
 To: [EMAIL PROTECTED]
 Subject: It didn't work

 Hi All

 I'm trying to install tomcat on IIS4/NT4 but it just wont work, I've
 installed all the needed files, performed all steps from the "TomCat IIS
 howto" document found on the server but all didn't work. The ISAPI
 filter in the Internet Service Manager alwayes gives me a red arrow
 pointing down beside the jakarta filter. Could any one tell me how to
 make it run??




How I do confgure TOMCAT server to connect to JDatasore

2000-11-22 Thread Salvady, Gopal

Friends,

how do I configure Tomcat webserver to connect to the JDatastore driver/jar
files. Any help would be appreciated.

Gopal 



virtual domains-hosting

2000-11-22 Thread Carlos

I kown how to define in apache the virtual domains. I definet them but i am
using apache with tomcat. when i want to use in my machine virtual domains i
must define in the apache conf file (httpd.conf) only or in the apache conf
file and in the tomcat conf file?
if i must to define also in the tomcat conf file, how i must to define the
virtual domain?
anybody can send me a example?
thanks
Carlos




Is it a normal behavior for session tracking?

2000-11-22 Thread Pierre Métras

Hi,

I have a strange behavior with session tracking and I can't explain it. Is
it normal?

When I disable cookies on IE5.5 and start my application (tomcat 3.2b7 +
struts1.0) and ask for a first page, I observe the following behavior:

[1] First page displayed
The proposed cookie is JSESSIONID=9w07jwaxv1
When I look at the source of the page, the struts:link (which do automatic
session URL rewriting) used for a menu in the page encodes the cookie: a
href="menu.do;jsessionid=9w07jwaxv1?action=Mosaic"...

[2] Then I click on that link to go to aother simple JSP page
The proposed cookie is now JSESSIONID=3caoq0b0l1. Why tomcat tries another
session cookie, as it should have decoded the previous one from the URL? And
now, the links of the menu encode the new cookie instead of keeping the
previous session id:
a href="menu.do;jsessionid=3caoq0b0l1?action=LanguageFR...

Has someone observed the same behavior or did I introduced a bug somewhere
in my application?

Pierre Métras






RE: Critical Bug: SSL failed for Tomcat 3.2 Beta 8

2000-11-22 Thread Xia, Alex

Lacerda,

1. I changed the SSL port number to 443 which is the default HTTPS port.
2. I am working on NT4 with jdk1.2.2

Is there any other undocumented configuration that I need to setup to get
SSL working?

Thanks for your responses,

Alex X. Xia
Sonus Networks, Inc.
(978) 392-8114


-Original Message-
From: Lacerda, Wellington (AFIS) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 22, 2000 4:00 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Critical Bug: SSL failed for Tomcat 3.2 Beta 8


I have it working perfectly in NT4. Are you using W2000 ?

Wellington

-Original Message-
From:   Lacerda, Wellington (AFIS) 
Sent:   22 November 2000 09:47
To: '[EMAIL PROTECTED]'
Subject:RE: Critical Bug: SSL failed for Tomcat 3.2
Beta 8

Port number should be 8443 and you put 443 ?

Wellington

-Original Message-
From:   Xia, Alex [mailto:[EMAIL PROTECTED]]
Sent:   21 November 2000 23:28
To: [EMAIL PROTECTED]
Subject:Critical Bug: SSL failed for
Tomcat 3.2 Beta
8

I have installed Tomcat 3.2 Beta 8 on NT and
made the
following change to
server.xml to enable SSL:

Connector
className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler" 
 


value="org.apache.tomcat.service.http.HttpConnectionHandler"/
Parameter name="port" 
value="443"/
Parameter name="socketFactory" 

value="org.apache.tomcat.net.SSLSocketFactory" /
Parameter name="secure" 
value="true" /
/Connector

And I have followed the instruction to
create SSL
certificate.

The same exact configuration worked for
Tomcat 3.2 Beta 5.

However, when I tried to access my jsp, I
got the following
error on the
server:

java.io.IOException: The filename, directory
name, or volume
label syntax is
inc
orrect
at
java.io.Win32FileSystem.canonicalize(Native
Method)
at
java.io.File.getCanonicalPath(File.java:441)
at
org.apache.tomcat.util.FileUtil.safePath(FileUtil.java,
Compiled
Code
)
at
org.apache.tomcat.core.Context.getRealPath(Context.java:794)
at


org.apache.tomcat.request.StaticInterceptor.requestMap(StaticIntercep
tor.java:191)
at


org.apache.tomcat.core.ContextManager.processRequest(ContextManager.j
ava, Compiled Code)
at


org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:771)
at


org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at


org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
at


org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
 Compiled Code)
at


org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
, Compiled Code)
at java.lang.Thread.run(Thread.java,
Compiled Code)
2000-11-21 05:18:48 - Ctx(  ): 404 R(  +
:?(û?¤?¦¦¬\ò+îå+0r½+a+??+÷î¶2c¦~ ?
? ?


How to get a new JVM per context?

2000-11-22 Thread Michael H. La Budde



When using Tomcat in stand-alone mode I would like to be able to configure 
it to startup a new JVM for each context. Is this possible? (And how do I 
do it?)

I'm not sure I fully understood the Tomcat Workers HowTo, but it seemed that
1) it was for the Apache (or your favorite webserver) + Tomcat scenario and
2) it allows you to spread the load among multiple machines/tomcat 
instances but not specify which contexts use which worker(s) ...

Any help would be greatly appreciated.

Thanks,

Mike




Compiling mod_jk on HPUX

2000-11-22 Thread Won Hong

All, I'm trying to install Apache and Tomcat on HPUX 11. All is fine until I
try to run apxs to generate the mod_jk.so file when I get following error
my comments are prefixed with 
Execution line
# /opt/apache/bin/apxs -o mod_jk.so -I../jk -I/opt/java1.2/include
-I/opt/java1.2/include/hp-ux -c *.c ../jk/*.c
Resulting error
gcc -fpic -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -i../lib/expat-lite -O
-DSHARED_MODULE -I/opt/apache/include -I../jk -I/opt/java1.2/include
-Iopt/java1.2/include/hp-ux -c mod_jk
In file included from ../jk/jk_util.h:66,
 from mod_jk.c:90:
../jk/jk_pool.h:116: parse error before 'jk_pool_atom_t'
mod_jk.c: In function 'jk_handler':
mod_jk.c:679: 'jk_pool_atom_t' undelcared (first use in this function)
mod_jk.c:679: (Each undeclared identifier is reported only once
mod_jk.c:679: for each function it appears in.)
mod_jk.c:679: parse error before 'buf'
mod_jk.c:680: 'buf' undeclared (first use in this function)
apx:Break: Command failed with rc=1

Best Regards,

Won Hong
Product Manager
Firekey, Inc.
443-572-5564
[EMAIL PROTECTED]




RE: Critical Bug: SSL failed for Tomcat 3.2 Beta 8

2000-11-22 Thread Stefán F. Stefánsson

Did you build from source?

If so, did you have the JSSE jars in the classpath when you did that?

Regards, Stefan.

-Original Message-
From: Xia, Alex [mailto:[EMAIL PROTECTED]]
Sent: 21. nóvember 2000 22:28
To: [EMAIL PROTECTED]
Subject: Critical Bug: SSL failed for Tomcat 3.2 Beta 8


I have installed Tomcat 3.2 Beta 8 on NT and made the following change
to
server.xml to enable SSL:

Connector
className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler" 
 
value="org.apache.tomcat.service.http.HttpConnectionHandler"/
Parameter name="port" 
value="443"/
Parameter name="socketFactory" 
value="org.apache.tomcat.net.SSLSocketFactory" /
Parameter name="secure" 
value="true" /
/Connector

And I have followed the instruction to create SSL certificate.

The same exact configuration worked for Tomcat 3.2 Beta 5.

However, when I tried to access my jsp, I got the following error on the
server:

java.io.IOException: The filename, directory name, or volume label
syntax is
inc
orrect
at java.io.Win32FileSystem.canonicalize(Native Method)
at java.io.File.getCanonicalPath(File.java:441)
at org.apache.tomcat.util.FileUtil.safePath(FileUtil.java,
Compiled
Code
)
at org.apache.tomcat.core.Context.getRealPath(Context.java:794)
at
org.apache.tomcat.request.StaticInterceptor.requestMap(StaticIntercep
tor.java:191)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.j
ava, Compiled Code)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:771)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
 Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
2000-11-21 05:18:48 - Ctx(  ): 404 R(  +
:?(û?¤?¦¦¬\ò+îå+0r½+a+??+÷î¶2c¦~ ?
? ?

 + null) null

It seems like Tomcat did not decript the URL for SSL thus creating the
problem.

I would say this is a critical bug.

Thanks,

Alex X. Xia
Sonus Networks, Inc.
(978) 392-8114



Database connection pooling with tomcat

2000-11-22 Thread Kaushal Patel



Question  What is the best way to do connection pooling to 
 multiple oracle database with tomcat ?

Hello All I have posted this message yesterday 
but haven't gotten any reply so trying it again to-day 
hope some one will be able to offer some help / thoughts

I am trying to get he Pool Manger working 
I have a Redhat Linux 6.1 box with Apache 
Tomcat 3.1 on it, my jsp pages work fine
I am able to get connection to databases using
Oracle  type 4 jdbc thin driver 

I have downloaded PoolMan v1.4 from codestudio.com 
and am trying to set-up connection pooling 
I have done all the classpath setting as per
the install doc still I keep getting a message 
saying classNotfound exception
   nullpointer exception

What am I missing any help would be appreciated !! 

Question 1 Has anyone got this working ? 
Question 2 What is the best way to do connection pooling with tomcat ?

Thanks in advance,

Thanks,
KPatel

P.S.
I tired running the test PoolMan.jsp util page they provide and 
got this below message
ResultSet 

ERROR: Unable to process query.
Please verify that PoolMan.jar and your JDBC Driver are in your application
server's CLASSPATH.
If the problem continues, try testing your database and JDBC configuration
via PoolManSample from the command line. 
 
ERROR: Unable to process query.
Please verify that PoolMan.jar and your JDBC Driver are in your application
server's CLASSPATH. 



Multipart form handling help

2000-11-22 Thread Shanx

Can someone give me a sample of how to handle image uploads?

Here is a detailed description of the problem I am facing. I have a FORM
with a "input type=file" tag, and when someone submits this form, I read all
the bytes from the inputStream, convert it into CHAR and display it.
However, this works ONLY if there is ONLY an image upload field in the form.
If I add a "input type=text" tag in the form, then this doesnt work and the
bytes of the image are displayed as junk text.

I guess this is because of the "content type"..in case of the form which has
only the FILE input element, the content type doesnt matter. However, if the
TEXT imput element is added, the content type changes to TEXT/HTML and hence
the bytes from the uploaded image are displayed as junk.

I also tried doing an "IMG SRC" of the image bytes in the submitted page.
But this doesnt work as well!

I have been investigating the MultiPartRequest.java class, but I cant seem
to figure out how to preview the uploaded image in a browser -- (write these
bytes to the browser). There is a patchy solution that I am thinking of
right now, which basically saves the images to the server in a temp drive
and then displays it. But comeon, Java should be more powerful than that!

I'd appreciate any ideas/code samples. Thanks!

/Shanx





RE: Critical Bug: SSL failed for Tomcat 3.2 Beta 8

2000-11-22 Thread Lacerda, Wellington (AFIS)

SSLSocketFactory [Tomcat 3.2b*] yes. You have to build it from source. Yes,
you have to have those classes on the classpath to do that.

Wellington

-Original Message-
From:   Stefán F. Stefánsson [mailto:[EMAIL PROTECTED]]
Sent:   22 November 2000 16:41
To: [EMAIL PROTECTED]
Subject:RE: Critical Bug: SSL failed for Tomcat 3.2
Beta 8

Did you build from source?

If so, did you have the JSSE jars in the classpath when you
did that?

Regards, Stefan.

-Original Message-
From: Xia, Alex [mailto:[EMAIL PROTECTED]]
Sent: 21. nóvember 2000 22:28
To: [EMAIL PROTECTED]
Subject: Critical Bug: SSL failed for Tomcat 3.2 Beta 8


I have installed Tomcat 3.2 Beta 8 on NT and made the
following change
to
server.xml to enable SSL:

Connector
className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler" 
 

value="org.apache.tomcat.service.http.HttpConnectionHandler"/
Parameter name="port" 
value="443"/
Parameter name="socketFactory" 

value="org.apache.tomcat.net.SSLSocketFactory" /
Parameter name="secure" 
value="true" /
/Connector

And I have followed the instruction to create SSL
certificate.

The same exact configuration worked for Tomcat 3.2 Beta 5.

However, when I tried to access my jsp, I got the following
error on the
server:

java.io.IOException: The filename, directory name, or volume
label
syntax is
inc
orrect
at java.io.Win32FileSystem.canonicalize(Native
Method)
at java.io.File.getCanonicalPath(File.java:441)
at
org.apache.tomcat.util.FileUtil.safePath(FileUtil.java,
Compiled
Code
)
at
org.apache.tomcat.core.Context.getRealPath(Context.java:794)
at

org.apache.tomcat.request.StaticInterceptor.requestMap(StaticIntercep
tor.java:191)
at

org.apache.tomcat.core.ContextManager.processRequest(ContextManager.j
ava, Compiled Code)
at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:771)
at

org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
at

org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
 Compiled Code)
at

org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
2000-11-21 05:18:48 - Ctx(  ): 404 R(  +
:?(û?¤?¦¦¬\ò+îå+0r½+a+??+÷î¶2c¦~ ?
? ?

 + null) null

It seems like Tomcat did not decript the URL for SSL thus
creating the
problem.

I would say this is a critical bug.

Thanks,

Alex X. Xia
Sonus Networks, Inc.
(978) 392-8114



Re: Multipart form handling help

2000-11-22 Thread John Ellis

Shanx,

I wrote a little class to help me handle that stuff.  It allows you to iterate
through the files (it can handle multiple file in a form) and read their output
streams, then it gives you a hastable of the other parameters on the form.  Give
it a try and let me know what you think.

John


Shanx wrote:

 Can someone give me a sample of how to handle image uploads?

 Here is a detailed description of the problem I am facing. I have a FORM
 with a "input type=file" tag, and when someone submits this form, I read all
 the bytes from the inputStream, convert it into CHAR and display it.
 However, this works ONLY if there is ONLY an image upload field in the form.
 If I add a "input type=text" tag in the form, then this doesnt work and the
 bytes of the image are displayed as junk text.

 I guess this is because of the "content type"..in case of the form which has
 only the FILE input element, the content type doesnt matter. However, if the
 TEXT imput element is added, the content type changes to TEXT/HTML and hence
 the bytes from the uploaded image are displayed as junk.

 I also tried doing an "IMG SRC" of the image bytes in the submitted page.
 But this doesnt work as well!

 I have been investigating the MultiPartRequest.java class, but I cant seem
 to figure out how to preview the uploaded image in a browser -- (write these
 bytes to the browser). There is a patchy solution that I am thinking of
 right now, which basically saves the images to the server in a temp drive
 and then displays it. But comeon, Java should be more powerful than that!

 I'd appreciate any ideas/code samples. Thanks!

 /Shanx

 MultiPartForm.java


Strange Session Behavior....

2000-11-22 Thread James Morgenstein

All-

I am having some problems with retrieving my beans out of sessions on JSP
pages.

Some background, I'm using Tomcat 3.2b8 (also tried 3.1) with Apache 1.3.x
on Linux with Sun's JDK1.3.  Under Tomcat 3.2b8, I have disabled cookies and
am using URL rewriting exclusively.

My problem is this.  I have declared the constructor on my Beans as private
(contrary to the Bean pattern, but necessary for subclassing), because at
the start of all operations within my system, I use a factory to construct
the beans based on input parms.  Once I construct the beans, I insert them
into the session using:
   BeanClass instance = BeanClass.getInstance( subclass data );
   session.putValue( "beanName", instance );
In my subsequent JSP pages I am using a useBean syntax with session scope to
retrieve the beans for processing such as:
   jsp:useBean id="beanName" scope="session"
class="com.recommendit.beans.BeanSubClass"   /jsp:useBean

This is working properly for most of my pages and most of my users; however,
I am occasionally getting errors on pages indicating that the bean cannot be
created by the useBean syntax.  This to me says that the bean is not in the
session.

Possible thoughts on the cause of this problem:
1)  I am setting the bean in the session incorrectly (however, it works fine
for the vast majority of my users)
2)  Can the session be getting destroyed by some other outside influence?
3)  

Thanks for the help.

James




Re: Multipart form handling help

2000-11-22 Thread Zebadiah Kimmel

The book on servlets by jason hunter provides a site where you can download
java classes to handle this.

Z

on 11/22/00 11:43 AM, Shanx at [EMAIL PROTECTED] wrote:

 Can someone give me a sample of how to handle image uploads?
 




RE: Changing root webapp-Can you take a look of my server.xml file?

2000-11-22 Thread Ellwood, Pifen

Sorry to butt in, but I have the same issue and not been able to solve it
for several days.
It is driving my crazy

I'm using Tomcat3.2 bata7, Apache 1.3, ant 1.2 
I set up my web application in myhome/webapps/myapp created by build.xml.
I update the tomcat.conf file in the TOMCAT_HOME/conf add alias and
directory
as in the attached file 
I update the server.xml  file in the TOMCAT_HOME/conf add context path as
the documentation stated
   Context path = "/myapp"
  docbase="webapps/myapp"
  debug="9"
  reloadable="true"
   /Context
  
When I start Tomcat, I got the error message:


Starting tomcat. Check logs/tomcat.log for error messages
2000-11-22 10:53:17 - ContextManager: Adding context Ctx(  )
2000-11-22 10:53:17 - ContextManager: Adding context Ctx( /test )
2000-11-22 10:53:18 - Ctx( /myapp ): XmlReader - init  /myapp null
2000-11-22 10:53:18 - Ctx( /myapp ): Loading -2147483646 jsp
Error generating automatic apache configuration
java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
at
org.apache.tomcat.task.ApacheConfig.execute(ApacheConfig.java:219)
at
org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:219
)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
Error generating automatic Netscape configuration
java.lang.NullPointerException

java.lang.NullPointerException
at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
at org.apache.tomcat.task.NSConfig.execute(NSConfig.java:136)
at
org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:231
)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
2000-11-22 10:53:19 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2000-11-22 10:53:19 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007


Could you tell me what did I miss??

Thanks a lot

PiFen Ellwood


-Original Message-
From: Julio Serje (@canada.com) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 21, 2000 9:02 PM
To: [EMAIL PROTECTED]
Subject: Re: Changing root webapp


You may define your root app in a different location than webapps. Just move
it to another directory and give the absolute path in your server.xml:


 Context path=""
  docBase="/absolutepath/main"
  debug="1"
  reloadable="true"
  trusted="true" 
 /Context

I have a setup like this and works fine.

Julio


- Original Message -
From: Richard Evans [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 21, 2000 11:22 AM
Subject: Changing root webapp


 In the default tomcat build there is a ROOT webapp which maps to /.  Now I
 would like to map the pages and servlets in ROOT to some other path and
have a
 webapp of my own which handles /.

 I tried something like this in server.xml:

 Context path="/root"
  docBase="webapps/ROOT"
  debug="0"
  reloadable="true"
  trusted="true" 
 /Context

 !-- Main applications and servlets --

 Context path=""
  docBase="webapps/main"
  debug="1"
  reloadable="true"
  trusted="true" 
 /Context

 In other words, /root will map to the tomcat home page, etc.  It works
fine
 except of course my main web app is loaded twice: once when server.xml is
read
 and once at autosetup time.  AutoSetup scans the webapps directory, finds
 "main" and because there isn't a /main context, loads the context again.
This
 means that my load-on-startup servlets get loaded twice.

 Is there a better way of doing this?

 Richard


 tomcat.conf
 server.xml


RES: Multipart form handling help

2000-11-22 Thread Jose Euclides da Silva Junior - DIGR.O

-BEGIN PGP SIGNED MESSAGE-

Dear Shanx,
I ve gotten the same problem as you,too!  What should we do?
Best Regards,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com
If i fail, if i succeed, at least i live as i believe.

- -Mensagem original-
De: Shanx [SMTP:[EMAIL PROTECTED]]
Enviada em: Quarta-feira, 22 de Novembro de 2000 14:43
Para:   [EMAIL PROTECTED]
Assunto:Multipart form handling help

Can someone give me a sample of how to handle image uploads?

Here is a detailed description of the problem I am facing. I have a FORM
with a "input type=file" tag, and when someone submits this form, I read all
the bytes from the inputStream, convert it into CHAR and display it.
However, this works ONLY if there is ONLY an image upload field in the form.
If I add a "input type=text" tag in the form, then this doesnt work and the
bytes of the image are displayed as junk text.

I guess this is because of the "content type"..in case of the form which has
only the FILE input element, the content type doesnt matter. However, if the
TEXT imput element is added, the content type changes to TEXT/HTML and hence
the bytes from the uploaded image are displayed as junk.

I also tried doing an "IMG SRC" of the image bytes in the submitted page.
But this doesnt work as well!

I have been investigating the MultiPartRequest.java class, but I cant seem
to figure out how to preview the uploaded image in a browser -- (write these
bytes to the browser). There is a patchy solution that I am thinking of
right now, which basically saves the images to the server in a temp drive
and then displays it. But comeon, Java should be more powerful than that!

I'd appreciate any ideas/code samples. Thanks!

/Shanx

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOhwcWd0YhuJ3BUxtAQGeTQP8DQwt41xTYhDDX4M3SpPl24PfJ53DOuPt
COGEK7brfpgcsijEQgsrYo9AqjT4HzipEt7LiOB9R7qFm88LGoyci0CWJMxzVCux
SUu3v+mGIaAjgSIFSHaMt4wiub0NGHb2r/xiDONmKW70HKHdcPH3z+7+OQ0xNUHi
A28YmcYrVI4=
=8LpT
-END PGP SIGNATURE-



Timeout in jk_nt_service too short. Contexts not properly removed!

2000-11-22 Thread Jochen Schneider



Hi,

we had a problem that the contexts were not 
properly removed if (and only if) tomcat was running as a Win NT service. (We 
are using the jk_nt_service.exe to control tomcat). (win NT4.0, Tomcat 3.2-b7, 
jdk 1.2.2_006)

This is due to a timing problem. In the 
stop_tomcatfunction(jk_nt_service.c modulesee below) the delay 
between sending the stop message to tomcat and the TerminateProcess system call 
was too short. Tomcat was not able to shutdown all contexts in time and was 
killed by jk_nt_service.exe. I increased the delay and everything worked fine. 


Since I have no access to the CVS system I really 
would appreciate if anybody could review our changes and if approved insert into 
the cvs system! Therefor I attached the modified source file.

-- Jochen

 
sniplet

 
} 
jk_close_socket(sd); 
if(JK_TRUE == rc) {
// 
if(WAIT_OBJECT_0 == WaitForSingleObject(hTomcat, 30*1000)) 
{ 
// (JS 22.11.2000) 
 
// Extended wait time since the service needs some more time to shutdown 
properly and to remove all 
contexts 
if(WAIT_OBJECT_0 == WaitForSingleObject(hTomcat, 180*1000)) 
{ 
return; 
} 
} 
 } 
}
 TerminateProcess(hTomcat, 0); 

/sniplet
 

 jk_nt_service.c


RE: Is it a normal behavior for session tracking?

2000-11-22 Thread Stubenrauch,Andreas

This could be related to a known bug. Fixed in  3.2beta8


 -Original Message-
 From: Pierre Métras [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 22, 2000 4:01 PM
 To: [EMAIL PROTECTED]
 Subject: Is it a normal behavior for session tracking?
 
 
 Hi,
 
 I have a strange behavior with session tracking and I can't 
 explain it. Is
 it normal?
 
 When I disable cookies on IE5.5 and start my application 
 (tomcat 3.2b7 +
 struts1.0) and ask for a first page, I observe the following behavior:
 
 [1] First page displayed
 The proposed cookie is JSESSIONID=9w07jwaxv1
 When I look at the source of the page, the struts:link 
 (which do automatic
 session URL rewriting) used for a menu in the page encodes 
 the cookie: a
 href="menu.do;jsessionid=9w07jwaxv1?action=Mosaic"...
 
 [2] Then I click on that link to go to aother simple JSP page
 The proposed cookie is now JSESSIONID=3caoq0b0l1. Why tomcat 
 tries another
 session cookie, as it should have decoded the previous one 
 from the URL? And
 now, the links of the menu encode the new cookie instead of 
 keeping the
 previous session id:
 a href="menu.do;jsessionid=3caoq0b0l1?action=LanguageFR...
 
 Has someone observed the same behavior or did I introduced a 
 bug somewhere
 in my application?
 
 Pierre Métras
 
 
 



Re: Thread.currentThread().getContextClassLoader() in Tomcat 3.2

2000-11-22 Thread Craig R. McClanahan

"Roytman, Alex" wrote:

 I would like to use Thread.currentThread().getContextClassLoader() with
 Tomcat 3.2 to resolve one common problem when class from system classpath
 needs to call something loaded by tomcat context's loader. As far as I
 understand Tomcat 3.2 suppose to run under jdk1.1 so it does not do
 Thread.currentThread().setContextClassLoader() before it hands control to a
 Servlet.


If Tomcat 3.2 runs in a Java2 environment, it does in fact call
setContextClassLoader(), assigning the webapp class loader for the currently
selected web application to the current request thread.  Tomcat 4.0 does this
under all circumstances, because it requires a Java2 environment.  However, the
fact that this occurs has nothing to do with your issue.

Under any version of Tomcat, what you are asking for does not work.  More
importantly, it *should not* work.  Class loaders are only allowed to look *up*
the class loader hierarchy (and, of course, such a hierarchy exists only in a
Java2 environment).  Classes that are loaded from the system class path *do not*
have any access to classes loaded only by a webapp's class loader.  If they did,
it would violate the whole concept of a web application being self contained.

If you have a class that needs access to classes that are loaded from
WEB-INF/classes and WEB-INF/lib, that class itself must be loaded from one of
those two places (and therefore loaded by the webapp class loader).

Craig McClanahan







Re: Managing security on multiple contexts - urgent !

2000-11-22 Thread Craig R. McClanahan



"Lacerda, Wellington (AFIS)" wrote:

 I've a set of web applications /a, /b and /c and a set of users I want to
 have access to them, but using a single login. The user logs in via a form
 based login or something and have access to all the applications. Is it
 possible in Tomcat 3.2 ?


No.  You need to use Tomcat 4.0 to gain this kind of "single sign on" support.


 I wonder if I apply security restrictions to the default web.xml file I can
 have all my contexts sharing the same security schema ?


Nope.  In Tomcat 3.2, all authentication is performed on a per-webapp basis.


 Thanks,

 Wellington

Craig McClanahan







Re: Tomcat BUG REPORT

2000-11-22 Thread Craig R. McClanahan

vidhyasagar wrote:

 hi, When I Restart TOMCAT ..I get a JIT error (not very often..).. Apache
 Tomcat/4.0-dev
 A nonfatal internal JIT (3.00.078(x)) error 'Relocation error: NULL relocation
 t
 arget' has occurred in :
   'org/apache/crimson/parser/Parser2.maybeComment (Z)Z': Interpreting method.
 what May be the possible reason,  Kris.VidhyaSagar

This is an issue for the JDK you are running under when using the JAXP parser in
"crimson.jar".  It is not Tomcat specific -- as the error message tells you, it
is a problem in the just-in-time compiler (JIT) of the JVM.

The other reality is that this message is a warning only -- it only means that
this particular method will not benefit from the compilation to native code that
a JIT might do.

Craig McClanahan







Re: Fwd: signed war files

2000-11-22 Thread Craig R. McClanahan

Steve Conover wrote:

 trying this again...

  Hi everyone,
 
  I'd like to create a war, digitally sign it, and restrict tomcat to
  only executing code that's digitally signed by me.  Has anyone done
  this successfully?  How do I go about doing this?
 
  Thanks,
  Steve


Tomcat does not currently support any notion of checking for digital signatures
on web applications.  You would need to modify the code in Tomcat that deploys a
web application to check for this if you want to implement it.


 Steve Conover Jr.


Craig McClanahan







apxs problem revisited for mod_jserv.so build

2000-11-22 Thread Mathew Thomas

I am installing Tomcat 3.1 on my freshly installed SuSE 7.0 system with
apache 1.3.14 and when I try to build mod_jserv.so I get the following
error:

/usr/local/apache/bin/apxs -c *.c -o mod_jserv.so
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c autochange.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_ajpv11.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_ajpv12.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_balance.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_image.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_mmap.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_protocols.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_status.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_utils.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_watchdog.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_wrapper.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_wrapper_unix.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c jserv_wrapper_win.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED  -I/usr/local/apache/include  -c mod_jserv.c
  -o autochange.so mod_jserv.o jserv_wrapper_win.o jserv_wrapper_unix.o
jserv_wrapper.o jserv_watchdog.o jserv_utils.o jserv_status.o
jserv_protocols.o jserv_mmap.o jserv_image.o jserv_balance.o
jserv_ajpv12.o jserv_ajpv11.o autochange.o -o mod_jserv.so
apxs:Break: Command failed with rc=255


I looked this up in the Tomcat archives and found that many others had
encountered this problem and were able to resolve it by changing the
order of args to apxs.  Instead of using:
/usr/local/apache/bin/apxs -c *.c -o mod_jserv.so
I instead tried:
/usr/local/apache/bin/apxs -o mod_jserv.so -c *.c
Unfortunately, I get the same error both ways.   Has anyone successfully
built this with the configuration I mentioned above??  Any help will be
appreciated!  By the way, I did build Apache 1.3.14 from scratch with
mod_so installed.

Thanks,
Mathew Thomas
[EMAIL PROTECTED]





Re: Changing root webapp-Can you take a look of my server.xml file?

2000-11-22 Thread Julio Serje (@canada.com)

Hi, PiFen,

I think you are making two mistakes:

- a typo:  docbase="d:."  should be docBase="d:"(capital
B...)
- do not use windows backslashes:use instead normal backslashes  :
d:/dev/etc/yourpath/myapp

Hope it helps,

Julio


- Original Message -
From: Ellwood, Pifen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 22, 2000 11:05 AM
Subject: RE: Changing root webapp-Can you take a look of my server.xml file?


 Sorry to butt in, but I have the same issue and not been able to solve it
 for several days.
 It is driving my crazy

 I'm using Tomcat3.2 bata7, Apache 1.3, ant 1.2
 I set up my web application in myhome/webapps/myapp created by build.xml.
 I update the tomcat.conf file in the TOMCAT_HOME/conf add alias and
 directory
 as in the attached file
 I update the server.xml  file in the TOMCAT_HOME/conf add context path as
 the documentation stated
Context path = "/myapp"
   docbase="webapps/myapp"
   debug="9"
   reloadable="true"
/Context

 When I start Tomcat, I got the error message:


 Starting tomcat. Check logs/tomcat.log for error messages
 2000-11-22 10:53:17 - ContextManager: Adding context Ctx(  )
 2000-11-22 10:53:17 - ContextManager: Adding context Ctx( /test )
 2000-11-22 10:53:18 - Ctx( /myapp ): XmlReader - init  /myapp null
 2000-11-22 10:53:18 - Ctx( /myapp ): Loading -2147483646 jsp
 Error generating automatic apache configuration
 java.lang.NullPointerException
 java.lang.NullPointerException
 at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
 at
 org.apache.tomcat.task.ApacheConfig.execute(ApacheConfig.java:219)
 at
 org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:219
 )
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
 Error generating automatic Netscape configuration
 java.lang.NullPointerException

 java.lang.NullPointerException
 at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
 at org.apache.tomcat.task.NSConfig.execute(NSConfig.java:136)
 at
 org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:231
 )
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
 2000-11-22 10:53:19 - PoolTcpConnector: Starting HttpConnectionHandler on
 8080
 2000-11-22 10:53:19 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
 8007


 Could you tell me what did I miss??

 Thanks a lot

 PiFen Ellwood


 -Original Message-
 From: Julio Serje (@canada.com) [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 21, 2000 9:02 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Changing root webapp


 You may define your root app in a different location than webapps. Just
move
 it to another directory and give the absolute path in your server.xml:


  Context path=""
   docBase="/absolutepath/main"
   debug="1"
   reloadable="true"
   trusted="true" 
  /Context

 I have a setup like this and works fine.

 Julio


 - Original Message -
 From: Richard Evans [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 21, 2000 11:22 AM
 Subject: Changing root webapp


  In the default tomcat build there is a ROOT webapp which maps to /.  Now
I
  would like to map the pages and servlets in ROOT to some other path and
 have a
  webapp of my own which handles /.
 
  I tried something like this in server.xml:
 
  Context path="/root"
   docBase="webapps/ROOT"
   debug="0"
   reloadable="true"
   trusted="true" 
  /Context
 
  !-- Main applications and servlets --
 
  Context path=""
   docBase="webapps/main"
   debug="1"
   reloadable="true"
   trusted="true" 
  /Context
 
  In other words, /root will map to the tomcat home page, etc.  It works
 fine
  except of course my main web app is loaded twice: once when server.xml
is
 read
  and once at autosetup time.  AutoSetup scans the webapps directory,
finds
  "main" and because there isn't a /main context, loads the context again.
 This
  means that my load-on-startup servlets get loaded twice.
 
  Is there a better way of doing this?
 
  Richard






Simultaneous requests on tomcat

2000-11-22 Thread Harish Ramesh

Hi, 

   I am using the tomcat servlet engine as a
standalone server. I am sending all my request to port
8080. I want to know what is the limit on the number
of simultaneous requests that is handled by tomcat. 
I would like to know all the limitations of tomcat in
this aspect. I am using tomcat on redhat linux 6.2
operating system. 

I am developing a chat server and I want to configure
tomcat to handle atleast 2000 simultaneous requests. 

I am currently recompiling the linux kernel to
increase the threads per user limit. Am I on the right
track could you throw some light on this.

Thank you 

Harish

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Re: Changing root webapp-Can you take a look of my server.xml file?

2000-11-22 Thread Julio Serje (@canada.com)

Oops,  I mean use normal slashes  / !!!

Julio

- Original Message -
From: Julio Serje (@canada.com) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, November 22, 2000 12:26 PM
Subject: Re: Changing root webapp-Can you take a look of my server.xml file?


 Hi, PiFen,

 I think you are making two mistakes:

 - a typo:  docbase="d:."  should be docBase="d:"
(capital
 B...)
 - do not use windows backslashes:use instead normal backslashes  :
 d:/dev/etc/yourpath/myapp

 Hope it helps,

 Julio


 - Original Message -
 From: Ellwood, Pifen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, November 22, 2000 11:05 AM
 Subject: RE: Changing root webapp-Can you take a look of my server.xml
file?


  Sorry to butt in, but I have the same issue and not been able to solve
it
  for several days.
  It is driving my crazy
 
  I'm using Tomcat3.2 bata7, Apache 1.3, ant 1.2
  I set up my web application in myhome/webapps/myapp created by
build.xml.
  I update the tomcat.conf file in the TOMCAT_HOME/conf add alias and
  directory
  as in the attached file
  I update the server.xml  file in the TOMCAT_HOME/conf add context path
as
  the documentation stated
 Context path = "/myapp"
docbase="webapps/myapp"
debug="9"
reloadable="true"
 /Context
 
  When I start Tomcat, I got the error message:
 
 
  Starting tomcat. Check logs/tomcat.log for error messages
  2000-11-22 10:53:17 - ContextManager: Adding context Ctx(  )
  2000-11-22 10:53:17 - ContextManager: Adding context Ctx( /test )
  2000-11-22 10:53:18 - Ctx( /myapp ): XmlReader - init  /myapp null
  2000-11-22 10:53:18 - Ctx( /myapp ): Loading -2147483646 jsp
  Error generating automatic apache configuration
  java.lang.NullPointerException
  java.lang.NullPointerException
  at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
  at
  org.apache.tomcat.task.ApacheConfig.execute(ApacheConfig.java:219)
  at
  org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:219
  )
  at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
  Error generating automatic Netscape configuration
  java.lang.NullPointerException
 
  java.lang.NullPointerException
  at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
  at org.apache.tomcat.task.NSConfig.execute(NSConfig.java:136)
  at
  org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:231
  )
  at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
  2000-11-22 10:53:19 - PoolTcpConnector: Starting HttpConnectionHandler
on
  8080
  2000-11-22 10:53:19 - PoolTcpConnector: Starting Ajp12ConnectionHandler
on
  8007
 
 
  Could you tell me what did I miss??
 
  Thanks a lot
 
  PiFen Ellwood
 
 
  -Original Message-
  From: Julio Serje (@canada.com) [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, November 21, 2000 9:02 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Changing root webapp
 
 
  You may define your root app in a different location than webapps. Just
 move
  it to another directory and give the absolute path in your server.xml:
 
 
   Context path=""
docBase="/absolutepath/main"
debug="1"
reloadable="true"
trusted="true" 
   /Context
 
  I have a setup like this and works fine.
 
  Julio
 
 
  - Original Message -
  From: Richard Evans [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, November 21, 2000 11:22 AM
  Subject: Changing root webapp
 
 
   In the default tomcat build there is a ROOT webapp which maps to /.
Now
 I
   would like to map the pages and servlets in ROOT to some other path
and
  have a
   webapp of my own which handles /.
  
   I tried something like this in server.xml:
  
   Context path="/root"
docBase="webapps/ROOT"
debug="0"
reloadable="true"
trusted="true" 
   /Context
  
   !-- Main applications and servlets --
  
   Context path=""
docBase="webapps/main"
debug="1"
reloadable="true"
trusted="true" 
   /Context
  
   In other words, /root will map to the tomcat home page, etc.  It works
  fine
   except of course my main web app is loaded twice: once when server.xml
 is
  read
   and once at autosetup time.  AutoSetup scans the webapps directory,
 finds
   "main" and because there isn't a /main context, loads the context
again.
  This
   means that my load-on-startup servlets get loaded twice.
  
   Is there a better way of doing this?
  
   Richard
 
 





Re: Database connection pooling with tomcat

2000-11-22 Thread Julio Serje (@canada.com)


- Original Message -
From: Kaushal Patel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 22, 2000 10:46 AM
Subject: Database connection pooling with tomcat




 Question  What is the best way to do connection pooling to
  multiple oracle database with tomcat ?

 Hello All I have posted this message yesterday
 but haven't gotten any reply so trying it again to-day
 hope some one will be able to offer some help / thoughts

 I am trying to get he Pool Manger working
 I have a Redhat Linux 6.1 box with Apache 
 Tomcat 3.1 on it, my jsp pages work fine
 I am able to get connection to databases using
 Oracle  type 4 jdbc thin driver

 I have downloaded PoolMan v1.4 from codestudio.com
 and am trying to set-up connection pooling
 I have done all the classpath setting as per
 the install doc still I keep getting a message
 saying classNotfound exception
nullpointer exception

 What am I missing any help would be appreciated !!

 Question 1 Has anyone got this working ?
 Question 2 What is the best way to do connection pooling with tomcat ?

 Thanks in advance,

 Thanks,
 KPatel

 P.S.
 I tired running the test PoolMan.jsp util page they provide and
 got this below message
 ResultSet

 ERROR: Unable to process query.
 Please verify that PoolMan.jar and your JDBC Driver are in your
application
 server's CLASSPATH.
 If the problem continues, try testing your database and JDBC configuration
 via PoolManSample from the command line.

 ERROR: Unable to process query.
 Please verify that PoolMan.jar and your JDBC Driver are in your
application
 server's CLASSPATH.




precompile

2000-11-22 Thread Carlos

Is Possible the tomcat precompile the pages?
there is any precompilation mode?
there is anything to precompile?
thanks
Carlos




Re: Database connection pooling with tomcat

2000-11-22 Thread Julio Serje (@canada.com)

Hi, Kaushal,

I haven't used that specific conn pool, but looks like that you are having a
CLASSPATH problem.

- first, make sure that your drivers (and your poolmanager jars) are
available using the global classpath of Tomcat. You'll have to modify
startup.sh in order to include them in the classpath.

- Normally Oracle thin drivers are shipped as a zip file (classes111.zip),
and seems that Tomcat does not read zip files. I just renamed them to .jar
and everything worked fine.

Julio

- Original Message -
From: Kaushal Patel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 22, 2000 10:46 AM
Subject: Database connection pooling with tomcat




 Question  What is the best way to do connection pooling to
  multiple oracle database with tomcat ?

 Hello All I have posted this message yesterday
 but haven't gotten any reply so trying it again to-day
 hope some one will be able to offer some help / thoughts

 I am trying to get he Pool Manger working
 I have a Redhat Linux 6.1 box with Apache 
 Tomcat 3.1 on it, my jsp pages work fine
 I am able to get connection to databases using
 Oracle  type 4 jdbc thin driver

 I have downloaded PoolMan v1.4 from codestudio.com
 and am trying to set-up connection pooling
 I have done all the classpath setting as per
 the install doc still I keep getting a message
 saying classNotfound exception
nullpointer exception

 What am I missing any help would be appreciated !!

 Question 1 Has anyone got this working ?
 Question 2 What is the best way to do connection pooling with tomcat ?

 Thanks in advance,

 Thanks,
 KPatel

 P.S.
 I tired running the test PoolMan.jsp util page they provide and
 got this below message
 ResultSet

 ERROR: Unable to process query.
 Please verify that PoolMan.jar and your JDBC Driver are in your
application
 server's CLASSPATH.
 If the problem continues, try testing your database and JDBC configuration
 via PoolManSample from the command line.

 ERROR: Unable to process query.
 Please verify that PoolMan.jar and your JDBC Driver are in your
application
 server's CLASSPATH.




Re: Database connection pooling with tomcat

2000-11-22 Thread Daniel Leong

 What am I missing any help would be appreciated !!

 Question 1 Has anyone got this working ?

Yep

 Question 2 What is the best way to do connection pooling with tomcat ?

*shrug* I use PoolMan 1.4 too.

 P.S.
 I tired running the test PoolMan.jsp util page they provide and
 got this below message
 ResultSet

 ERROR: Unable to process query.
 Please verify that PoolMan.jar and your JDBC Driver are in your
application
 server's CLASSPATH.
 If the problem continues, try testing your database and JDBC configuration
 via PoolManSample from the command line.

Sounds like you need to put the JDBC driver .jar file and the PoolMan .jar
file into your Tomcat /lib directory.  If you're using 3.2 it'll then
automatically find it when you start Tomcat.  Also put the properties file
which defines which database / user / password the connection pool should
try and connect to.

Regards,

Dan




RE: Changing root webapp-Can you take a look of my server.xml file?

2000-11-22 Thread Ellwood, Pifen

Thanks Julio. I'm such an idiot:)

PiFen Ellwood


-Original Message-
From: Julio Serje (@canada.com) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 22, 2000 12:38 PM
To: [EMAIL PROTECTED]; Julio Serje (@canada.com)
Subject: Re: Changing root webapp-Can you take a look of my server.xml
file?


Oops,  I mean use normal slashes  / !!!

Julio

- Original Message -
From: Julio Serje (@canada.com) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, November 22, 2000 12:26 PM
Subject: Re: Changing root webapp-Can you take a look of my server.xml file?


 Hi, PiFen,

 I think you are making two mistakes:

 - a typo:  docbase="d:."  should be docBase="d:"
(capital
 B...)
 - do not use windows backslashes:use instead normal backslashes  :
 d:/dev/etc/yourpath/myapp

 Hope it helps,

 Julio


 - Original Message -
 From: Ellwood, Pifen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, November 22, 2000 11:05 AM
 Subject: RE: Changing root webapp-Can you take a look of my server.xml
file?


  Sorry to butt in, but I have the same issue and not been able to solve
it
  for several days.
  It is driving my crazy
 
  I'm using Tomcat3.2 bata7, Apache 1.3, ant 1.2
  I set up my web application in myhome/webapps/myapp created by
build.xml.
  I update the tomcat.conf file in the TOMCAT_HOME/conf add alias and
  directory
  as in the attached file
  I update the server.xml  file in the TOMCAT_HOME/conf add context path
as
  the documentation stated
 Context path = "/myapp"
docbase="webapps/myapp"
debug="9"
reloadable="true"
 /Context
 
  When I start Tomcat, I got the error message:
 
 
  Starting tomcat. Check logs/tomcat.log for error messages
  2000-11-22 10:53:17 - ContextManager: Adding context Ctx(  )
  2000-11-22 10:53:17 - ContextManager: Adding context Ctx( /test )
  2000-11-22 10:53:18 - Ctx( /myapp ): XmlReader - init  /myapp null
  2000-11-22 10:53:18 - Ctx( /myapp ): Loading -2147483646 jsp
  Error generating automatic apache configuration
  java.lang.NullPointerException
  java.lang.NullPointerException
  at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
  at
  org.apache.tomcat.task.ApacheConfig.execute(ApacheConfig.java:219)
  at
  org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:219
  )
  at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
  Error generating automatic Netscape configuration
  java.lang.NullPointerException
 
  java.lang.NullPointerException
  at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
  at org.apache.tomcat.task.NSConfig.execute(NSConfig.java:136)
  at
  org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:231
  )
  at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)
  2000-11-22 10:53:19 - PoolTcpConnector: Starting HttpConnectionHandler
on
  8080
  2000-11-22 10:53:19 - PoolTcpConnector: Starting Ajp12ConnectionHandler
on
  8007
 
 
  Could you tell me what did I miss??
 
  Thanks a lot
 
  PiFen Ellwood
 
 
  -Original Message-
  From: Julio Serje (@canada.com) [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, November 21, 2000 9:02 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Changing root webapp
 
 
  You may define your root app in a different location than webapps. Just
 move
  it to another directory and give the absolute path in your server.xml:
 
 
   Context path=""
docBase="/absolutepath/main"
debug="1"
reloadable="true"
trusted="true" 
   /Context
 
  I have a setup like this and works fine.
 
  Julio
 
 
  - Original Message -
  From: Richard Evans [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, November 21, 2000 11:22 AM
  Subject: Changing root webapp
 
 
   In the default tomcat build there is a ROOT webapp which maps to /.
Now
 I
   would like to map the pages and servlets in ROOT to some other path
and
  have a
   webapp of my own which handles /.
  
   I tried something like this in server.xml:
  
   Context path="/root"
docBase="webapps/ROOT"
debug="0"
reloadable="true"
trusted="true" 
   /Context
  
   !-- Main applications and servlets --
  
   Context path=""
docBase="webapps/main"
debug="1"
reloadable="true"
trusted="true" 
   /Context
  
   In other words, /root will map to the tomcat home page, etc.  It works
  fine
   except of course my main web app is loaded twice: once when server.xml
 is
  read
   and once at autosetup 

Re: Database connection pooling with tomcat

2000-11-22 Thread Mike Tinnes

One thing I noticed with PoolMan is that you must have all the drivers for
each configured database in the poolman.props file. In my instance I only
wanted to use mySQL which required me to comment out the Postgres and Oracle
configurations since I didn't have the drivers for them. My guess is that
PoolMan preloads all the configured databases even though you may never use
them.

-- Mike

- Original Message -
From: "Julio Serje (@canada.com)" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 22, 2000 11:50 AM
Subject: Re: Database connection pooling with tomcat



 - Original Message -
 From: Kaushal Patel [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, November 22, 2000 10:46 AM
 Subject: Database connection pooling with tomcat


 
 
  Question  What is the best way to do connection pooling to
   multiple oracle database with tomcat ?
 
  Hello All I have posted this message yesterday
  but haven't gotten any reply so trying it again to-day
  hope some one will be able to offer some help / thoughts
 
  I am trying to get he Pool Manger working
  I have a Redhat Linux 6.1 box with Apache 
  Tomcat 3.1 on it, my jsp pages work fine
  I am able to get connection to databases using
  Oracle  type 4 jdbc thin driver
 
  I have downloaded PoolMan v1.4 from codestudio.com
  and am trying to set-up connection pooling
  I have done all the classpath setting as per
  the install doc still I keep getting a message
  saying classNotfound exception
 nullpointer exception
 
  What am I missing any help would be appreciated !!
 
  Question 1 Has anyone got this working ?
  Question 2 What is the best way to do connection pooling with tomcat ?
 
  Thanks in advance,
 
  Thanks,
  KPatel
 
  P.S.
  I tired running the test PoolMan.jsp util page they provide and
  got this below message
  ResultSet
 
  ERROR: Unable to process query.
  Please verify that PoolMan.jar and your JDBC Driver are in your
 application
  server's CLASSPATH.
  If the problem continues, try testing your database and JDBC
configuration
  via PoolManSample from the command line.
 
  ERROR: Unable to process query.
  Please verify that PoolMan.jar and your JDBC Driver are in your
 application
  server's CLASSPATH.





WebApp Classpath

2000-11-22 Thread Dan Smith


Hello,
 First, I saw questions on this same subject in the
archives, but no responses. So if this has been answered already,
sorry, but I missed it.
 In short, I want my web-app to use different version
of the xml parser included with Tomcat v3.1. I know I can alter the
classpath on startup, but that doesn't seem right to me since (hypothetically)
other 'web-apps' running under the same Tomcat server may want to use the
original. So, how do I 'prepend' to my web-app's classpath without
affecting other wab-apps? Is this possible?
Thanks,
Dan
--
"Sometimes I wish I could be you, just so I could be friends with me."
 -- Agelica Pickles



RE: Critical Bug: SSL failed for Tomcat 3.2 Beta 8

2000-11-22 Thread Xia, Alex

No, I did not build from the source. I dowonloaded Tomcat 3.2 Beta 8 from
the bin directory.

Yes, I put the three JSSE jar files under ~jakarta/lib as well as under
~jdk1.2.2/jre/lib/ext.

I unjared the webserver.jar and made sure that SSLSocketFactory is under
org/apache/tomcat/net.

One more important point: I am using FORM based logins for my
authentications.

The same exact setup works for Tomcat 3.2 Beta 5. It stopped working for
Tomcat 3.2 Beta 7  8.

Thanks,

Alex X. Xia
Sonus Networks, Inc.
(978) 392-8114


-Original Message-
From: Stefán F. Stefánsson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 22, 2000 10:41 AM
To: [EMAIL PROTECTED]
Subject: RE: Critical Bug: SSL failed for Tomcat 3.2 Beta 8


Did you build from source?

If so, did you have the JSSE jars in the classpath when you did that?

Regards, Stefan.

-Original Message-
From: Xia, Alex [mailto:[EMAIL PROTECTED]]
Sent: 21. nóvember 2000 22:28
To: [EMAIL PROTECTED]
Subject: Critical Bug: SSL failed for Tomcat 3.2 Beta 8


I have installed Tomcat 3.2 Beta 8 on NT and made the following change
to
server.xml to enable SSL:

Connector
className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler" 
 
value="org.apache.tomcat.service.http.HttpConnectionHandler"/
Parameter name="port" 
value="443"/
Parameter name="socketFactory" 
value="org.apache.tomcat.net.SSLSocketFactory" /
Parameter name="secure" 
value="true" /
/Connector

And I have followed the instruction to create SSL certificate.

The same exact configuration worked for Tomcat 3.2 Beta 5.

However, when I tried to access my jsp, I got the following error on the
server:

java.io.IOException: The filename, directory name, or volume label
syntax is
inc
orrect
at java.io.Win32FileSystem.canonicalize(Native Method)
at java.io.File.getCanonicalPath(File.java:441)
at org.apache.tomcat.util.FileUtil.safePath(FileUtil.java,
Compiled
Code
)
at org.apache.tomcat.core.Context.getRealPath(Context.java:794)
at
org.apache.tomcat.request.StaticInterceptor.requestMap(StaticIntercep
tor.java:191)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.j
ava, Compiled Code)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:771)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
 Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
2000-11-21 05:18:48 - Ctx(  ): 404 R(  +
:?(û?¤?¦¦¬\ò+îå+0r½+a+??+÷î¶2c¦~ ?
? ?

 + null) null

It seems like Tomcat did not decript the URL for SSL thus creating the
problem.

I would say this is a critical bug.

Thanks,

Alex X. Xia
Sonus Networks, Inc.
(978) 392-8114



RE: Testing tool

2000-11-22 Thread Mark Franz

http://www.anthonyeden.com/projects/jtop/

I am sure there are plenty of $$$ tools that do this better, but a free tool
to monitor CPU status on multiple heterogeneous OS machines...  Except
Win32.

Mark G. Franz


-Original Message-
From: Wang, Jianming [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 22, 2000 6:34 AM
To: '[EMAIL PROTECTED]'
Subject: Testing tool


Hi, everybody.

We have a Web application beta version.  We want to find tools to test how
many users can concurrently use this application, when the application
performance slow down while users' amount increasing, etc..  In a word, we
need a tool to do loading test.  Certainly, at current stage, we don't want
to spend money on testing tools.  Does anybody know where we can find such
tools for free?   
Thanks in advance.

Jianming Wang



Initialization

2000-11-22 Thread Alef Arendsen

Hi,

How can I initialize Tomcat. That's the question.

I have this application which has to check if some stuff is in place after
it starts up. Also, it needs to cache a huge amount of data from a database.

I don't want to use the load-servlet-on-startup thing in web.xml. I just
want some extra init-class that will be run when I start the server.

Anybody?

thnx.

Alef Arendsen
Java Developer
SmartHaven
+31 (0) 6 24649137
[EMAIL PROTECTED]



BEGIN:VCARD
VERSION:2.1
N:Arendsen;Alef
FN:Alef Arendsen (E-mail)
ORG:SmartHaven
TITLE:Java Developer
TEL;WORK;VOICE:+31 (0) 20 586 90 57
TEL;CELL;VOICE:+31 (0) 5 24 64 91 37
ADR;WORK:;;SmartHaven;Arlandaweg, 92;;1043 EX;Netherlands
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:SmartHaven=0D=0AArlandaweg, 92 1043 EX=0D=0ANetherlands
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:2818T074919Z
END:VCARD



further question: implications of signing war's

2000-11-22 Thread Steve Conover

Hi,

I'm wondering why tomcat wouldn't be able to handle a signed war - like
why would this even affect any of it's normal processing.  After all,
isn't the digsig stuff handled down at the JVM level?

I guess I just don't have a very good grasp of why this would be a
problem...can anyone help?

Regards,
Steve

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Still no direct Jikes support in tomcat-3.2-beta-8?

2000-11-22 Thread Zsolt Koppany

Hi,

as far as I see  tomcat-3.2-beta-8 is shipped without direct Jikes
support. (I could enable jikes vie changing WebXmlReader.java). What is
the reason that the jikes entry in conf/web.xml is ignored?
-- 
Zsolt Koppany
Intland GmbH www.intland.com
Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart
Tel: +49-711-7871080 Fax: +49-711-7871017



Need database recommendation

2000-11-22 Thread c cw288

Hi all,
We are going to develop an application on apache + tomcat + mod_jk on 
Solaris 8, and we need a database for our application. There are lots of 
databases exit, we need some recommendation of which  is easier to 
implement.

Thanks,

Cathy
_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




Re: Need database recommendation

2000-11-22 Thread Duane Gran

Cathy,

This isn't particularly germain to this mailing list, but in the event
that some kind soul does answer, you might help yourself by giving some
idea of your requirements and budget.  The quality of advice you get is
proportional to the quality of the question... unless you are on usenet
where noise always prevails.  ;)

Duane

On Wed, 22 Nov 2000, c cw288 wrote:

Hi all,
We are going to develop an application on apache + tomcat + mod_jk on 
Solaris 8, and we need a database for our application. There are lots of 
databases exit, we need some recommendation of which  is easier to 
implement.

Thanks,

Cathy
_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com





IIS and tomcat

2000-11-22 Thread Corey_Drew

I have installed tomcat on NT boxes on many occasions with the redirecting
of servlets to tomcat working fine. However, I have this one box that is
not saving session information. Each and every call to the servlet is being
treated like a new session. The session object is not being saved. Can you
help me or has anyone come accross this problem.

Thanks,

Corey.




Authentication sample

2000-11-22 Thread Ugo Cei

Hi people,

does anyone have a sample deployment descriptor for doing a simple user 
authentication in Tomcat, like Apache's htpasswd? I've read the users 
guide, the FAQ and the 2.2 Servlet specification but failed to find a 
complete example. The users guide and the FAQ don't talk about it and 
the specification is too concise to be useful (there is an example but 
it doesn't mention where the usernames and passwords are stored).

Please reply directly to me, since I am not subscribed to this list.

   Thanks in Advance,

   Ugo




Installing TomCat on IIS

2000-11-22 Thread Mohammed Nasr Shalaby

HI ALL

I've managed to run TomCat as a container within the IIS thanks to Gal
Shachor

[EMAIL PROTECTED] who made the first redirector DLL file and the
first to describe this

setup process on this document "

http://jakarta.apache.org/cvsweb/index.cgi/~checkout~/jakarta-tomcat/etc/Attic/tomcat-iis-ho

wto.html?rev=1.6content-type=text/html ". Also many thanks to Marc
Saegesser

[EMAIL PROTECTED] whose remarks was very helpful and it
really made me do it

perfictly.

Well guys, we'll start right here:
First I must say that I've tested this on NT4.0 server and W2K server
ONLY. Sorry for other

platform users.  :)
All through this document I'll assume you IIS4.0 on NT4.0 server and use
TomCat 3.1 final

release and had installed it in d:\tomcat (you must change any changes
needed to match your

installation directories).

To run tomcat you must first install the JAVA SDK (JAVA Software
Development Kit). This can

be downloaded from " http://java.sun.com/j2se/1.3/ ". I used SDK1.3 for
my setup.
Your PATH Environment Variable must contain the full path for javac.exe
file (usually

\jdk1.3\bin).

Now you can install TomCat run it (open run, write cmd, change to
d:\tomcat\bin, write "

tomcat run ") and test it (open your browser and write "
http://localhost:8080/ ")

You must also have the file called isapi_redirect.dll . This is the
redirector file that

will be used with IIS. You can make your redirector if you like, or get
one from "

http://jakarta.apache.org/tomcat/jakarta-tomcat/bin/iis/nt4/i386/ ". Now
install this file

in d:\tomcat\bin\iis\i386 (I'll asume you used this directory as I
proceed).

Now we will do some modifications in the registry. I prefer you will
make a full backup for

your registry before you do this stuff.
Here we go:

1 - Under HKEY_LOCAL_MACHINE\SOFTWARE add these key herarichy "\Apache
Software

Foundation\Jakarta Isapi Redirector\1.0"

2 - Add the following keys (all as "String Value"):
  a - extension_uri, Value="/jakarta/isapi_redirct.dll".
  b - log_file, Value="d:\tomcat\logs\iis_redirect.log".
  c - log_level, Value="debug" (This can take also other values, but
this will do

perfictly).
  d - worker_file, Value="d:\tomcat\conf\workers.properties".
  e - worker_mount, Value="d:\tomcat\conf\uriworkermap.properties".
N.B: I'll attach a .reg file that contains all this stuff so you can
merge it into your

servers registry (But at your own risk).

3 - Now open IIS manegement consol and create a virtual folder called "
jakarta " and assign

it to the folder d:\tomcat\bin\iis\i386 .

4 - Add an ISAPI Filter to any of your web sites (or add it on the
machine level), I suggest

you name it jakarta, and give it the isapi_redirect.dll from
d:\tomcat\bin\iis\i386 .

5 - Now stop your site/service and restart it again.

Now open your browser and write the URL for the site you added the
filter for and add "

/examples/ "--watch out for this last "/" it made us stuck for a
while

if you can now see the examples folder of the TomCat and can run all the
JSP and Servelet

examples in it. If you don't check these things

1 - Open your ISAPI Filter and see the jakarta one: If it has a green
arrow pointing up then

it is running, else you will see a red arrow pointing down.

2 - Check the size of the isapi_redirect.dll file (It should be 96kb for
version 3.1).

3 - Search your event viewer for any W3SVC errors and read it carefully.

4 - Creating the file iis_redirect.log in the d:\tomcat\logs may some
time help.

These are all the data I've gathered for two long days about installing
TomCat on IIS. Hope

I'm of any good for those who wish to do so.

All questions and comments on this document are welcome. It will help me
further in

upgrading this document.

Yours
Mohammed Nasr Shalaby
NT Administration Department
Information Technology Inistitute (ITI)
Cairo
Egypt

 isapi_redirect.reg


Does servlet mapping work in Tomcat 3.1?

2000-11-22 Thread Toby Piper

Hi All,

I am trying to get servlet mapping to work in my web app. I have tried the
various examples given in the docs and it still doesn't work.

I have seen some other queries about this in the archives but no responses.

Clearly the docs indicate that Tomcat is supposed to support servlet mapping.
Does anyone know if this is working?

Here's what I want to do:

I want this URI:

   http://host:8080/myApp/MyMap

to invoke my servlet named login.


I have this context set up in server.xml:

Context path="/myApp"
 docBase="C:\MyApp"
 debug="0"
 reloadable="false" 
/Context

In my Apps web.xml file I have:

servlet-mapping
servlet-nameLogin/servlet-name
url-pattern/MyMap/url-pattern
/servlet-mapping

servlet
servlet-nameLogin/servlet-name
servlet-classLogin/servlet-class
/servlet

I CAN access the servlet directly by http://host:8080/myApp/servlet/Login

but not by http://host:8080/myApp/MyMap

What am I doing wrong?

I'm using tomcat 3.1 latest stable release on Win NT 4.0.

Thanks in advance,
Toby




jk_nt_service

2000-11-22 Thread Chris Chen



Hi 
Jochen,

I installed 
jk_nt_service on my WinNT server, and it works just fine.But I notice that 
this service will stop if I log off.

Is there any way to 
run tomcat to be user independent?I am not familiar with WinNT service 
program.

Regards,Chris,


more about signed servlets...

2000-11-22 Thread Steve Conover

I found this on javasoft here --
http://java.sun.com/products/servlet/whitepaper.html

Wouldn't this same idea apply to .war's?  Has anyone here done
*anything* with servlets that are digitally signed in some fashion?

Regards, Steve

"Unlike any other current server extension API, Java Servlets provide
strong security policy support. This is because all Java environments
provide a Security Manager which can be used to control whether actions
such as network or file access are to be permitted. By default, all
servlets are untrusted, and are not allowed to perform operations such
as accessing network services or local files. 

However, servlets "built in to" the server, or servlets which have been
digitally signed as they were put into Java Archive (JAR) files, may be
trusted and granted more permissions by the security manager. A digital
signature on executable code indicates that the organization which
signed the code "vouches for it" in some sense. Such signatures can't
support accountability by themselves, but they do indicate a degree of
assurance that may be placed on use of that code. For example, a
particular signature from a MIS organization might be required on all
code which is granted general access to network services within a
corporate intranet. That signature might only be used on code which is
strongly believed not to violate particular security policies. "


=

Steve Conover Jr.
http://steve.dreamingtree.net
FAX: (309) 276-8942


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



FW: Critical Bug: SSL failed for Tomcat 3.2 Beta 8

2000-11-22 Thread Xia, Alex


I have downloaded the Tomcat 3.2 Beta 8 source and compiled myself. The same
thing happened.

BUT, once I disabled FORM based authentication, SSL seems to work.

The logical conclusion is that SSL does NOT work with FORM based
authentication for Tomcat 3.2 Beta 8. But is used to work for Tomcat 3.2
Beta 5.

I would still think this is a critical bug.

Thanks,

Alex X. Xia
Sonus Networks, Inc.
(978) 392-8114


-Original Message-
From: Xia, Alex [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 22, 2000 1:36 PM
To: [EMAIL PROTECTED]
Subject: RE: Critical Bug: SSL failed for Tomcat 3.2 Beta 8


No, I did not build from the source. I dowonloaded Tomcat 3.2 Beta 8 from
the bin directory.

Yes, I put the three JSSE jar files under ~jakarta/lib as well as under
~jdk1.2.2/jre/lib/ext.

I unjared the webserver.jar and made sure that SSLSocketFactory is under
org/apache/tomcat/net.

One more important point: I am using FORM based logins for my
authentications.

The same exact setup works for Tomcat 3.2 Beta 5. It stopped working for
Tomcat 3.2 Beta 7  8.

Thanks,

Alex X. Xia
Sonus Networks, Inc.
(978) 392-8114


-Original Message-
From: Stefán F. Stefánsson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 22, 2000 10:41 AM
To: [EMAIL PROTECTED]
Subject: RE: Critical Bug: SSL failed for Tomcat 3.2 Beta 8


Did you build from source?

If so, did you have the JSSE jars in the classpath when you did that?

Regards, Stefan.

-Original Message-
From: Xia, Alex [mailto:[EMAIL PROTECTED]]
Sent: 21. nóvember 2000 22:28
To: [EMAIL PROTECTED]
Subject: Critical Bug: SSL failed for Tomcat 3.2 Beta 8


I have installed Tomcat 3.2 Beta 8 on NT and made the following change
to
server.xml to enable SSL:

Connector
className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler" 
 
value="org.apache.tomcat.service.http.HttpConnectionHandler"/
Parameter name="port" 
value="443"/
Parameter name="socketFactory" 
value="org.apache.tomcat.net.SSLSocketFactory" /
Parameter name="secure" 
value="true" /
/Connector

And I have followed the instruction to create SSL certificate.

The same exact configuration worked for Tomcat 3.2 Beta 5.

However, when I tried to access my jsp, I got the following error on the
server:

java.io.IOException: The filename, directory name, or volume label
syntax is
inc
orrect
at java.io.Win32FileSystem.canonicalize(Native Method)
at java.io.File.getCanonicalPath(File.java:441)
at org.apache.tomcat.util.FileUtil.safePath(FileUtil.java,
Compiled
Code
)
at org.apache.tomcat.core.Context.getRealPath(Context.java:794)
at
org.apache.tomcat.request.StaticInterceptor.requestMap(StaticIntercep
tor.java:191)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.j
ava, Compiled Code)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:771)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
 Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
2000-11-21 05:18:48 - Ctx(  ): 404 R(  +
:?(û?¤?¦¦¬\ò+îå+0r½+a+??+÷î¶2c¦~ ?
? ?

 + null) null

It seems like Tomcat did not decript the URL for SSL thus creating the
problem.

I would say this is a critical bug.

Thanks,

Alex X. Xia
Sonus Networks, Inc.
(978) 392-8114



Re: WebApp Classpath

2000-11-22 Thread Craig R. McClanahan

Dan Smith wrote:

 Hello,
 First, I saw questions on this same subject in the archives, but no
 responses.  So if this has been answered already, sorry, but I missed it.

 In short, I want my web-app to use different version of the xml parser
 included with Tomcat v3.1.  I know I can alter the classpath on startup, but
 that doesn't seem right to me since (hypothetically) other 'web-apps' running
 under the same Tomcat server may want to use the original.  So, how do I
 'prepend' to my web-app's classpath without affecting other wab-apps?  Is this
 possible?


Tomcat 3.1 has hard coded dependencies on the particular parser in xml.jar.
Under Tomcat 3.2, you can use any JAXP-compliant parser.

On the general question of ordering the search path for class loading, this is
not configurable in any Tomcat 3.x version.  For Tomcat 4.0, the webapp classes
are (in effect) prepended, because that is what the servlet 2.3 spec says to do.


 Thanks,
 Dan

Craig McClanahan





sample/myapp help (tomcat + apache + servlet not working, at least not as I would expect it too)

2000-11-22 Thread Bauer, Scott

Ok folks, I need some help or my frustration level is going to go through
the roof.

The system:
Mandrake 7.2, java 1.3, tomcat 3.1, Ant 1.2.



The problem:
Has anyone been able to build the sample app that is in the
doc/appdev/sample directory?  I can not get the servlet to run with apache.
If I try and access http://localhost/myapp/hello I get a page not found.
http://localhost:8080/myapp/hello works, as does
http://localhost/myapp/servlet/HelloServlet although the image does not show
up correctly because it's looking in /myapp/servlet/images not /myapp/images
which is understandable.  As far as I understand it you should be able to
map /hello to /servlet/HelloServlet.  Is this not correct?  I'm hoping
someone knows that one line that I have to put in tomcat-apache.conf to make
this work.



Here are some of the conf files:

conf/server.xml ( part of it anyways )
Context path="/myapp" docBase="webapps/myapp" debug="0"
reloadable="true" 
/Context


doc/appdev/sample/etc/web.xml (This is where I thought the magic would
happen, and the mapping would take place)

!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app

display-nameHello, World Application/display-name
description
This is a simple web application with a source code organization
based on the recommendations of the Application Developer's Guide.
/description

servlet
servlet-nameHelloServlet/servlet-name
servlet-classHello/servlet-class
/servlet

servlet-mapping
servlet-nameHelloServlet/servlet-name
url-pattern/hello/url-pattern
/servlet-mapping

/web-app


conf/tomcat-apache.conf ( This is what gets generated anyways )

LoadModule jserv_module libexec/mod_jserv.so
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice

ApJServDefaultPort 8007

AddType test/jsp .jsp
AddHandler jserv-servlet .jsp
Alias /myapp /usr/local/jakarta-tomcat/webapps/myapp
Directory "/usr/local/jakarta-tomcat/webapps/myapp"
Options Indexes FollowSymLinks
/Directory
ApJServMount /myapp/servlet /myapp
Location /myapp/WEB-INF/ 
AllowOverride None
deny from all
/Location

Alias /examples /usr/local/jakarta-tomcat/webapps/examples
Directory "/usr/local/jakarta-tomcat/webapps/examples"
Options Indexes FollowSymLinks
/Directory
ApJServMount /examples/servlet /examples
Location /examples/WEB-INF/ 
AllowOverride None
deny from all
/Location

Alias /test /usr/local/jakarta-tomcat/webapps/test
Directory "/usr/local/jakarta-tomcat/webapps/test"
Options Indexes FollowSymLinks
/Directory
ApJServMount /test/servlet /test
Location /test/WEB-INF/ 
AllowOverride None
deny from all
/Location

ApJServMount /servlet /ROOT


Thanks for your help.
sb



Re: Does servlet mapping work in Tomcat 3.1?

2000-11-22 Thread Kurt Bernhard Pruenner

Toby Piper wrote:
 In my Apps web.xml file I have:
 
 servlet-mapping
 servlet-nameLogin/servlet-name
 url-pattern/MyMap/url-pattern
 /servlet-mapping
 
 servlet
 servlet-nameLogin/servlet-name
 servlet-classLogin/servlet-class
 /servlet

Try swapping the servlet and servlet-mapping tags; IIRC servlet has to
come before servlet-mapping or it won't work...

-- 
Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria
Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at
...It might be written "Mindfuck", but it's spelt "L-A-I-N"...
np: Two Lone Swordsmen - Foreververb (Tiny Reminders)



Re: Does servlet mapping work in Tomcat 3.1?

2000-11-22 Thread S Bauer

Can I get a confirmation of this, because I took an app that was working and
switched the tags around and it had no effect.

sb
- Original Message -
From: "Kurt Bernhard Pruenner" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 22, 2000 4:04 PM
Subject: Re: Does servlet mapping work in Tomcat 3.1?


 Toby Piper wrote:
  In my Apps web.xml file I have:
 
  servlet-mapping
  servlet-nameLogin/servlet-name
  url-pattern/MyMap/url-pattern
  /servlet-mapping
 
  servlet
  servlet-nameLogin/servlet-name
  servlet-classLogin/servlet-class
  /servlet

 Try swapping the servlet and servlet-mapping tags; IIRC servlet has
to
 come before servlet-mapping or it won't work...

 --
 Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria
 Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at
 ...It might be written "Mindfuck", but it's spelt "L-A-I-N"...
 np: Two Lone Swordsmen - Foreververb (Tiny Reminders)




Re: jk_nt_service

2000-11-22 Thread Michael J. Suzio

This is a known bug (and a FAQ, this was answered twice last week --
please can people search the archives of the list first?  Can the
frequently-posted "guide to the list" include a suggestion along these
lines and the URL to the archive (*)).  The problem is a JDK 1.3.0
problem on windows that kills java-based NT services when you log off.
There is reportedly a Java Developer's Connection bug associated with
this.  Suggestions are to try JDK 1.2.2 instead.

(*) archive is at: http://mikal.org/interests/java/tomcat/index.html
A search for "jk nt service logoff" found the answer I provided above.

-- 
Michael J. Suzio
Lead Software Engineer -- ISS Southfield
[EMAIL PROTECTED]



Off Topic: Dev. Engineers Needed!

2000-11-22 Thread Mark Franz

Are you an energetic, motivated, talented developer in need of new
surroundings?
How about a sunny, warm climate like San Diego, California?
How about a company that is one of the top 10 companies in San Diego to work
for?
Yes?  Then we need you! 
 
We are in need of talented Java developers experienced in XML, Beans and GUI
programming.  We currently have 10 immediate openings for these positions:
 
GUI Software Engineers  

Responsible for using Java and XML to develop and maintain the GUI modules
and applications built on top of it. 


Qualifications: 


*   1+ years object oriented software product development in one of more
of the following languages.

*   XML, Java, C++, HTML, Java Server Pages, JavaScript (client/server) 

*   Working experience with AWT and/or Swing 

*   Knowledge of multiple platforms (Windows NT, Linux, Sun Solaris ...)


*   Knowledge of SCM tools and product development practices 

*   Experience with relational database systems, MFC, COM and Active X a
plus. 

*   Ability to learn quickly: intellect and creativity are more
important than work experience 

*   Ability to work in small enthusiastic teams 

Software Engineer I 

Responsible for using Java and XML to develop and maintain the Application
development platform and applications built on top of it. 


Qualifications: 


*   1+ years object oriented software product development in one of more
of the following languages.

*   XML, Java, J2EE, C++, HTML, Java Server Pages, JavaScript
(client/server), relational database systems experience 

*   Knowledge of multiple platforms ( Windows NT, Linux, Sun Solaris
...) 

*   Knowledge of SCM tools and product development practices 

*   Experience in EJB, network protocols 

*   System integration experience a plus. 

*   Ability to learn quickly: intellect and creativity are more
important than work experience 

*   Ability to work in small enthusiastic teams 

Development Support Engineer

Responsibilities: 


*   Provide technical/customer support by telephone for our Java-based
Internet platform and applications. Customers are Java Development Engineers
at client companies and system integrators. 

*   Design and develop Java code examples for helping our customers to
implement their applications. 

*   Troubleshoot customer problems and interface with Sales, Marketing,
and Engineering to improve product service, design, and quality. 

Qualifications: 


*   Background in one or more of the following; 

*   Development, Quality Assurance, Technical Training, Consulting, Java
(C++ if strong), RDBMS (Oracle,DB2, mySQL, MS-SQL ), or Operating Systems
(Linux, Solaris, Windows NT) and a generalist understanding of the technical
environment and languages. 

*   Working knowledge of UNIX or Windows NT and familiarity with
relational databases and object-oriented technology. 

*   Must be analytical, creative, detail-oriented, self-motivated, and
responsible. Intellect is more important than work experience. 

*   Excellent customer service and communication skills. 

*   Must remain calm under pressure. 

*   BS degree in Computer Science a plus but not required. 

Sensor Software Engineer

Responsible for using Java and XML to develop and maintain the sensor and
data acquisition modules of the Application development platform. 


Qualifications: 


*   1+ years object oriented software product development in one of more
of the following languages.

*   XML, Java, J2EE, C++, HTML, Java Server Pages, JavaScript
(client/server), relational database systems experience 

*   Working experience with signal and video processing 

*   Knowledge of multiple platforms (Windows NT, Linux, Sun Solaris ...)


*   Knowledge of SCM tools and product development practices 

*   Experience in MPEG, RealMedia and streaming technologies a plus 

*   Knowledge of network protocols, Windows/Linux drivers technology and
system integration experience a plus. 

*   Ability to learn quickly: intellect and creativity are more
important than work experience 

*   Ability to work in small teams 

We offer EXCELLENT benefits, (how about the entire week of X-Mas OFF WITH
PAY!), medical and dental with very attractive salaries to the right people.
We are a pre-IPO Company with a very strong client base and we need you!  
 
Please forward your resumes today!

Mark G. Franz 

 



Servlet chaining in Tomcat

2000-11-22 Thread Rama Venkata Kunapuli

Folks:

I am trying to chain servlets so output of one is directed to next servlet.

Lacking information, I have tried modifying web.xml and made the following 
entries -- ofcourse, it didn't work!

servlet
servlet-nameServletChain/servlet-name
servlet-classSimpleTextServlet,UpperCaseServlet/servlet-class
/servlet

servlet-mapping
servlet-nameServletChain/servlet-name
url-pattern/cha/url-pattern
/servlet-mapping

Output of SimpleTextServlet is supposed to go to UpperCaseServlet.

Any suggestions on how to make this work ?

Thanks,
Rk

_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




Re: Servlet chaining in Tomcat

2000-11-22 Thread Craig R. McClanahan

Rama Venkata Kunapuli wrote:

 Folks:

 I am trying to chain servlets so output of one is directed to next servlet.

 Lacking information, I have tried modifying web.xml and made the following
 entries -- ofcourse, it didn't work!

 servlet
 servlet-nameServletChain/servlet-name
 servlet-classSimpleTextServlet,UpperCaseServlet/servlet-class
 /servlet

 servlet-mapping
 servlet-nameServletChain/servlet-name
 url-pattern/cha/url-pattern
 /servlet-mapping

 Output of SimpleTextServlet is supposed to go to UpperCaseServlet.

 Any suggestions on how to make this work ?


Servlet chaining is not supported by Tomcat, and is quite unlikely to ever be 
supported.
It is not in the servlet spec, so you will find that many servlet containers don't
support it, and some may support it in different ways.  As a programming technique,
servlet chaining is also fraught with problems.

The recommended approach (from a servlet API perspective) is to use the new Filter
capability that was added in Servlet 2.3 (and implemented in Tomcat 4.0).


 Thanks,
 Rk


Craig McClanahan





RE: Critical Bug: SSL failed for Tomcat 3.2 Beta 8

2000-11-22 Thread Xia, Alex

I have downloaded the Tomcat 3.2 Beta 8 source and compiled myself. The same
thing happened.

BUT, once I disabled FORM based authentication, SSL seems to work.

The logical conclusion is that SSL does NOT work with FORM based
authentication for Tomcat 3.2 Beta 8. But is used to work for Tomcat 3.2
Beta 5.

I would still think this is a critical bug.

Thanks,

Alex X. Xia
Sonus Networks, Inc.
(978) 392-8114


-Original Message-
From: Xia, Alex [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 22, 2000 1:36 PM
To: [EMAIL PROTECTED]
Subject: RE: Critical Bug: SSL failed for Tomcat 3.2 Beta 8


No, I did not build from the source. I dowonloaded Tomcat 3.2 Beta 8 from
the bin directory.

Yes, I put the three JSSE jar files under ~jakarta/lib as well as under
~jdk1.2.2/jre/lib/ext.

I unjared the webserver.jar and made sure that SSLSocketFactory is under
org/apache/tomcat/net.

One more important point: I am using FORM based logins for my
authentications.

The same exact setup works for Tomcat 3.2 Beta 5. It stopped working for
Tomcat 3.2 Beta 7  8.

Thanks,

Alex X. Xia
Sonus Networks, Inc.
(978) 392-8114


-Original Message-
From: Stefán F. Stefánsson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 22, 2000 10:41 AM
To: [EMAIL PROTECTED]
Subject: RE: Critical Bug: SSL failed for Tomcat 3.2 Beta 8


Did you build from source?

If so, did you have the JSSE jars in the classpath when you did that?

Regards, Stefan.

-Original Message-
From: Xia, Alex [mailto:[EMAIL PROTECTED]]
Sent: 21. nóvember 2000 22:28
To: [EMAIL PROTECTED]
Subject: Critical Bug: SSL failed for Tomcat 3.2 Beta 8


I have installed Tomcat 3.2 Beta 8 on NT and made the following change
to
server.xml to enable SSL:

Connector
className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler" 
 
value="org.apache.tomcat.service.http.HttpConnectionHandler"/
Parameter name="port" 
value="443"/
Parameter name="socketFactory" 
value="org.apache.tomcat.net.SSLSocketFactory" /
Parameter name="secure" 
value="true" /
/Connector

And I have followed the instruction to create SSL certificate.

The same exact configuration worked for Tomcat 3.2 Beta 5.

However, when I tried to access my jsp, I got the following error on the
server:

java.io.IOException: The filename, directory name, or volume label
syntax is
inc
orrect
at java.io.Win32FileSystem.canonicalize(Native Method)
at java.io.File.getCanonicalPath(File.java:441)
at org.apache.tomcat.util.FileUtil.safePath(FileUtil.java,
Compiled
Code
)
at org.apache.tomcat.core.Context.getRealPath(Context.java:794)
at
org.apache.tomcat.request.StaticInterceptor.requestMap(StaticIntercep
tor.java:191)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.j
ava, Compiled Code)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:771)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
 Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
2000-11-21 05:18:48 - Ctx(  ): 404 R(  +
:?(û?¤?¦¦¬\ò+îå+0r½+a+??+÷î¶2c¦~ ?
? ?

 + null) null

It seems like Tomcat did not decript the URL for SSL thus creating the
problem.

I would say this is a critical bug.

Thanks,

Alex X. Xia
Sonus Networks, Inc.
(978) 392-8114



Re: Need database recommendation

2000-11-22 Thread Michael G. Anderson C.T.O

Cathy,

Probably Oracle 8.1.6 (8.1.5 = 8i was a little buggy) -- There are others as 
well...e.g.
some of my best friends swear by Informix, Sybase et.al.
There is also Poet (haven't heard that much from them lately..) and some of the other
OODs.

I believe all Database Companies are tending towards OOD.

One reason for (me personally) choosing Oracle is that, and this may just be a rumor,
Oracle is developed on Sun OS (Solaris). (The claim is that Larry Ellison and Scott M
were each others "best man" at their respective weddings). This just may be "modern
folklore" however...:(
But if its true, Oracle developed on Sun OS, then, choosing Oracle would make sense.

On the other hand Oracle (and perhaps the other Database Companies) look to be 
committed
to Linux and (NT) so PL/SQL, Java -- should not be a "porting issue". Oracle "dmp" 
files
(if export full) can be pretty much easily imported to other Oracles on other
platforms... But again any other "industrial strength database" should be able to do 
that
as well.


I hope this helps,

regards,

mike anderson

c cw288 wrote:

 Hi all,
 We are going to develop an application on apache + tomcat + mod_jk on
 Solaris 8, and we need a database for our application. There are lots of
 databases exit, we need some recommendation of which  is easier to
 implement.

 Thanks,

 Cathy
 _
 Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


begin:vcard 
n:Anderson;Michael
tel;pager:510-872-1085
tel;cell:510-681-4982
tel;fax:480-816-0346
tel;home:N/A
tel;work:510-644-2966
x-mozilla-html:FALSE
url:http://www.eye-go.com/
org:Eye-go.com;IT
version:2.1
email;internet:[EMAIL PROTECTED]
title:CTO
adr;quoted-printable:;;2477 Virginia Street=0D=0ASuite 305=0D=0A;Berkeley;CA;94709;USA
fn:Michael G.Anderson C.TO.
end:vcard



I installed tomcat, in jserv status can saw the zones of tomcat, but .jsp cannot run. I followed the instruction of install.apache.

2000-11-22 Thread baby_moon





Re: SOS of total newbie

2000-11-22 Thread Tomas Marek


Kief Morris wrote:
Tomas Marek typed the following on 00:56 23/11/2000
+1100
>Also, because W98 included M$ Personal Web Server doesn't support
JSP, I
>run Tomcat as a standalone server (just learning anyway). So, what
is the
>http address of my .jsp files?
Try http://localhost:8080
---

bitBull makes the Internet bite: http://www.bitBull.com/demos/

That's what I did first, but it didn't work. Instead, browser (Netscape)
displayed HTML page with JSP source code on it. Thanks anyway!
Tom




Re: %@ include % too conservative?

2000-11-22 Thread Anne and Bill Moore

Alvin Hung wrote:
 
 Hi,
 
 Currently in Tomcat 3.1 %@ include % will prevent you from including the
 same jsp  1 times.  However, if I have a page and I want to display the
 same menu structure at the top AND the bottom, I do want to include the same
 jsp twice!  Is there a way to get around this limitation?  I really don't
 want to do cut and paste.  Thanks.
 
 _
 Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com
Yes I previously investigated the same problem, but I dont thing this
was a limitation, it was  a bug - 3.2 versions of Tomcat ( betas 7 and 8
), 4.0 versions of Tomcat, and various other servlet engines I have
tried all allow  multiple includes of the same file
-- 
Thanks and Regards
Anne and Bill Moore
[EMAIL PROTECTED]
Remember: Life is too short to drink bad wine!!!



Re: sample/myapp help (tomcat + apache + servlet not working,at leas t not as I would expect it too)

2000-11-22 Thread Jim Rudnicki

This is a fairly typical problem.  Tomcat is not at fault, to get started,
run it standalone and your problems will go away, the servlet-mapping's
will start working, your hair will grow back, etc., etc.

Apache is the source of your problem.  It needs to be told that
localhost/myapp/hello
should be directed to the servlet engine.  When it sees
localhost/myapp/servlet/HelloServlet
it can use a simple servlet/* to forward.  But without the "servlet" it does
not know.

My first advice is to dump the mappings.  All they do is save you from
typing 8 character when authoring html pages.  This is what I do.

Second advice is to manually add an entry to the Apache config file for
_each and every_ mapping.  I gave up on this approach real quickly.

Jim

- Original Message - 
 The problem:
 Has anyone been able to build the sample app that is in the
 doc/appdev/sample directory?  I can not get the servlet to run with
apache.
 If I try and access http://localhost/myapp/hello I get a page not found.
 http://localhost:8080/myapp/hello works, as does
 http://localhost/myapp/servlet/HelloServlet although the image does not
show
 up correctly because it's looking in /myapp/servlet/images not
/myapp/images
 which is understandable.  As far as I understand it you should be able to
 map /hello to /servlet/HelloServlet.  Is this not correct?  I'm hoping
 someone knows that one line that I have to put in tomcat-apache.conf to
make
 this work.

... etc ...





More on JSP in XML format

2000-11-22 Thread Anne and Bill Moore

I anm still trying to get my head around JSP in XML format.
Can anyone suggest further reading beyond the JSP Version 1.2 - Proposed
Final Draft (PFD) spec or provide examples.
When I try the examples like those from the spec using Tomcat Version
4.0 Milestone 4, I routinely get a java.lang.ClassCastException:
org.apache.jasper.compiler.ParserXJspSaxHandler$Node.
After some experimentation I was able to get very simple XML formatted
JSP to work, but it seems that whenever the jsp contained a jsp:cdata
element the class cast exception occurs.
It may be that I have misunderstood the jsp:cdata element or is this a
bug in Tomcat?
-- 
Thanks and Regards
Anne and Bill Moore
[EMAIL PROTECTED]
Remember: Life is too short to drink bad wine!!!



Security: hacker uploading files via catalina

2000-11-22 Thread Andy Watts
Hi,
Over the last week someone has been able to upload files to my document root. The file names are freechat.asp, getlatest.glh, chat_a.cgi. The files are appear pretty useless, however it is the mechanism that allowed them to be uploaded which worries me.
I know for sure that the files are being uploaded by http. 
If anyone has any ideas, I'd greatly appreciate the help.
-AandyDo You Yahoo!?
Yahoo! Shopping - 
Thousands of Stores. Millions of Products.

Re: Installing TomCat on IIS

2000-11-22 Thread Hussam Alsawadi

Good work!

--- Mohammed Nasr Shalaby [EMAIL PROTECTED] wrote:
 HI ALL
 
 I've managed to run TomCat as a container within the
 IIS thanks to Gal
 Shachor
 
 [EMAIL PROTECTED] who made the first redirector
 DLL file and the
 first to describe this
 
 setup process on this document "
 

http://jakarta.apache.org/cvsweb/index.cgi/~checkout~/jakarta-tomcat/etc/Attic/tomcat-iis-ho
 
 wto.html?rev=1.6content-type=text/html ". Also many
 thanks to Marc
 Saegesser
 
 [EMAIL PROTECTED] whose remarks was very
 helpful and it
 really made me do it
 
 perfictly.
 
 Well guys, we'll start right here:
 First I must say that I've tested this on NT4.0
 server and W2K server
 ONLY. Sorry for other
 
 platform users.  :)
 All through this document I'll assume you IIS4.0 on
 NT4.0 server and use
 TomCat 3.1 final
 
 release and had installed it in d:\tomcat (you must
 change any changes
 needed to match your
 
 installation directories).
 
 To run tomcat you must first install the JAVA SDK
 (JAVA Software
 Development Kit). This can
 
 be downloaded from " http://java.sun.com/j2se/1.3/
 ". I used SDK1.3 for
 my setup.
 Your PATH Environment Variable must contain the full
 path for javac.exe
 file (usually
 
 \jdk1.3\bin).
 
 Now you can install TomCat run it (open run, write
 cmd, change to
 d:\tomcat\bin, write "
 
 tomcat run ") and test it (open your browser and
 write "
 http://localhost:8080/ ")
 
 You must also have the file called
 isapi_redirect.dll . This is the
 redirector file that
 
 will be used with IIS. You can make your redirector
 if you like, or get
 one from "
 

http://jakarta.apache.org/tomcat/jakarta-tomcat/bin/iis/nt4/i386/
 ". Now
 install this file
 
 in d:\tomcat\bin\iis\i386 (I'll asume you used this
 directory as I
 proceed).
 
 Now we will do some modifications in the registry. I
 prefer you will
 make a full backup for
 
 your registry before you do this stuff.
 Here we go:
 
 1 - Under HKEY_LOCAL_MACHINE\SOFTWARE add these key
 herarichy "\Apache
 Software
 
 Foundation\Jakarta Isapi Redirector\1.0"
 
 2 - Add the following keys (all as "String Value"):
   a - extension_uri,
 Value="/jakarta/isapi_redirct.dll".
   b - log_file,
 Value="d:\tomcat\logs\iis_redirect.log".
   c - log_level, Value="debug" (This can take also
 other values, but
 this will do
 
 perfictly).
   d - worker_file,
 Value="d:\tomcat\conf\workers.properties".
   e - worker_mount,
 Value="d:\tomcat\conf\uriworkermap.properties".
 N.B: I'll attach a .reg file that contains all this
 stuff so you can
 merge it into your
 
 servers registry (But at your own risk).
 
 3 - Now open IIS manegement consol and create a
 virtual folder called "
 jakarta " and assign
 
 it to the folder d:\tomcat\bin\iis\i386 .
 
 4 - Add an ISAPI Filter to any of your web sites (or
 add it on the
 machine level), I suggest
 
 you name it jakarta, and give it the
 isapi_redirect.dll from
 d:\tomcat\bin\iis\i386 .
 
 5 - Now stop your site/service and restart it again.
 
 Now open your browser and write the URL for the site
 you added the
 filter for and add "
 
 /examples/ "--watch out for this last "/" it
 made us stuck for a
 while
 
 if you can now see the examples folder of the TomCat
 and can run all the
 JSP and Servelet
 
 examples in it. If you don't check these things
 
 1 - Open your ISAPI Filter and see the jakarta one:
 If it has a green
 arrow pointing up then
 
 it is running, else you will see a red arrow
 pointing down.
 
 2 - Check the size of the isapi_redirect.dll file
 (It should be 96kb for
 version 3.1).
 
 3 - Search your event viewer for any W3SVC errors
 and read it carefully.
 
 4 - Creating the file iis_redirect.log in the
 d:\tomcat\logs may some
 time help.
 
 These are all the data I've gathered for two long
 days about installing
 TomCat on IIS. Hope
 
 I'm of any good for those who wish to do so.
 
 All questions and comments on this document are
 welcome. It will help me
 further in
 
 upgrading this document.
 
 Yours
 Mohammed Nasr Shalaby
 NT Administration Department
 Information Technology Inistitute (ITI)
 Cairo
 Egypt
 

 ATTACHMENT part 2
application/x-unknown-content-type-regfile
name=isapi_redirect.reg



__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Re: Installing TomCat on IIS

2000-11-22 Thread Hussam Alsawadi

Good Work!

--- Mohammed Nasr Shalaby [EMAIL PROTECTED] wrote:
 HI ALL
 
 I've managed to run TomCat as a container within the
 IIS thanks to Gal
 Shachor
 
 [EMAIL PROTECTED] who made the first redirector
 DLL file and the
 first to describe this
 
 setup process on this document "
 

http://jakarta.apache.org/cvsweb/index.cgi/~checkout~/jakarta-tomcat/etc/Attic/tomcat-iis-ho
 
 wto.html?rev=1.6content-type=text/html ". Also many
 thanks to Marc
 Saegesser
 
 [EMAIL PROTECTED] whose remarks was very
 helpful and it
 really made me do it
 
 perfictly.
 
 Well guys, we'll start right here:
 First I must say that I've tested this on NT4.0
 server and W2K server
 ONLY. Sorry for other
 
 platform users.  :)
 All through this document I'll assume you IIS4.0 on
 NT4.0 server and use
 TomCat 3.1 final
 
 release and had installed it in d:\tomcat (you must
 change any changes
 needed to match your
 
 installation directories).
 
 To run tomcat you must first install the JAVA SDK
 (JAVA Software
 Development Kit). This can
 
 be downloaded from " http://java.sun.com/j2se/1.3/
 ". I used SDK1.3 for
 my setup.
 Your PATH Environment Variable must contain the full
 path for javac.exe
 file (usually
 
 \jdk1.3\bin).
 
 Now you can install TomCat run it (open run, write
 cmd, change to
 d:\tomcat\bin, write "
 
 tomcat run ") and test it (open your browser and
 write "
 http://localhost:8080/ ")
 
 You must also have the file called
 isapi_redirect.dll . This is the
 redirector file that
 
 will be used with IIS. You can make your redirector
 if you like, or get
 one from "
 

http://jakarta.apache.org/tomcat/jakarta-tomcat/bin/iis/nt4/i386/
 ". Now
 install this file
 
 in d:\tomcat\bin\iis\i386 (I'll asume you used this
 directory as I
 proceed).
 
 Now we will do some modifications in the registry. I
 prefer you will
 make a full backup for
 
 your registry before you do this stuff.
 Here we go:
 
 1 - Under HKEY_LOCAL_MACHINE\SOFTWARE add these key
 herarichy "\Apache
 Software
 
 Foundation\Jakarta Isapi Redirector\1.0"
 
 2 - Add the following keys (all as "String Value"):
   a - extension_uri,
 Value="/jakarta/isapi_redirct.dll".
   b - log_file,
 Value="d:\tomcat\logs\iis_redirect.log".
   c - log_level, Value="debug" (This can take also
 other values, but
 this will do
 
 perfictly).
   d - worker_file,
 Value="d:\tomcat\conf\workers.properties".
   e - worker_mount,
 Value="d:\tomcat\conf\uriworkermap.properties".
 N.B: I'll attach a .reg file that contains all this
 stuff so you can
 merge it into your
 
 servers registry (But at your own risk).
 
 3 - Now open IIS manegement consol and create a
 virtual folder called "
 jakarta " and assign
 
 it to the folder d:\tomcat\bin\iis\i386 .
 
 4 - Add an ISAPI Filter to any of your web sites (or
 add it on the
 machine level), I suggest
 
 you name it jakarta, and give it the
 isapi_redirect.dll from
 d:\tomcat\bin\iis\i386 .
 
 5 - Now stop your site/service and restart it again.
 
 Now open your browser and write the URL for the site
 you added the
 filter for and add "
 
 /examples/ "--watch out for this last "/" it
 made us stuck for a
 while
 
 if you can now see the examples folder of the TomCat
 and can run all the
 JSP and Servelet
 
 examples in it. If you don't check these things
 
 1 - Open your ISAPI Filter and see the jakarta one:
 If it has a green
 arrow pointing up then
 
 it is running, else you will see a red arrow
 pointing down.
 
 2 - Check the size of the isapi_redirect.dll file
 (It should be 96kb for
 version 3.1).
 
 3 - Search your event viewer for any W3SVC errors
 and read it carefully.
 
 4 - Creating the file iis_redirect.log in the
 d:\tomcat\logs may some
 time help.
 
 These are all the data I've gathered for two long
 days about installing
 TomCat on IIS. Hope
 
 I'm of any good for those who wish to do so.
 
 All questions and comments on this document are
 welcome. It will help me
 further in
 
 upgrading this document.
 
 Yours
 Mohammed Nasr Shalaby
 NT Administration Department
 Information Technology Inistitute (ITI)
 Cairo
 Egypt
 

 ATTACHMENT part 2
application/x-unknown-content-type-regfile
name=isapi_redirect.reg



__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



AW: Strange Session Behavior....

2000-11-22 Thread Ralph Einfeldt


 -Ursprüngliche Nachricht-
 Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 22. November 2000 22:34
 An: [EMAIL PROTECTED]
 Betreff: Re: Strange Session Behavior
snip/
 Sessions get destroyed only when they time out or when you 
 invalidate them.
snip/
- What happens if classes are reloaded ?
  Good old jserv used to invalidate the session a soon
  as one class was reloaded due to a change.
snip/
 However, I'd bet the cause of your problem is a forgotten call to
 response.encodeURL().  This will cause the next request in to start a
new
 session -- and if that request goes directly to a JSP page (so your
bean
 construction hasn't yet had a chance to execute) you will get the
results you
 see.
snip/
Although your guess is the most likely, there might be two further valid
guesses
- encodeURL() is not working correct under all conditions
- tomcat sometime creates sessions

Message to the original poster James Morgenstein:
All three guesses can be validated through following test:
  run a site grabber (like wget) and look at the url's
  this way you can find if the session id changes somewhere 
  or is missing.
  Analyse what you saw ...



Meet us on Wine Alley

2000-11-22 Thread fx . bodin

Hello!

I found your address while surfing the Net for sites that have wine, good food and 
gracious living and I thought that you will be interested by the services that our 
site offers.

www.wine-alley.com is a virtual Club for all those interested in wine in both a 
professional and personal capacity.

On the site you can talk to others about wine, buy and sell and have access to the 
best professional sources.  Already we have more than 3700 members!  By the end of the 
year we confidently expect this to swell to 10,000.

Club members use the Newsgroup of www.wine-alley.com to exchange information and 
experiences.  Only the other day someone asked how much a certain rare wine was worth, 
I asked for more information about the grape variety, which doesn't grow in France. 
Currently there have been more than 688 questions and replies.

There is also the small ads. column.

Among the 15 adverts placed this week there have been some really good deals including 
a magnum of 1945 Pichon Lalande and a 1947 Cheval blanc!

Let me make it clear - www.wine-alley.com itself does not sell or buy wine: we simply 
offer our members the facilites for making their own arrangements.

www.wine-alley.com is also a site supplying information in real time, particularly the 
latest news from winegrowers and makers via the French Press Agency (AFP).  We also 
have a database of more than 21,000 wines with information supplied directly to the 
site by winegrowers co-operatives and specialist magazines.

I should be delighted if you would come and join us.  At www.wine-alley.com you will 
find similarly-minded people who just want to share their love of wine.

Kind regards

François Xavier Bodin, Manager of the Online Club
[EMAIL PROTECTED]



PS.  Registering with the www.wine-alley.com club is absolutely free and commits you 
to nothing.

If you are not interested in my offer, please excuse this letter; I am sorry to have 
bothered you.  To prevent further unwanted intrusions please click on the following 
link, your email will be automatically removed from our list.

http://www.wine-alley.com/wines/desmail.asp?id=232433l=uk



off topic: jsp for xemacs?

2000-11-22 Thread mike niemaz

Any idea of where I could find this mode?

Thanx,

--mike