how I got mod_rewrite working while converting from Apache+JServ

2001-04-28 Thread Robert Chou

After reading Mike Bremford's workaround and spending a little
more time troubleshooting, I've found a workaround which works
with the ApJServAction and rewrite directives.  Here's a summary
note and a patch.

rob

---

Here's what I noticed while trying to convert from JServ
to Tomcat using Apache.  I had many ApJServAction directives
which mapped some file extensions to a servlet
(ie. ApJServAction .tsp /servlet/gnutsp).
Also, I had some rewrite directives to which stripped url embedded
information (ie. RewriteRule   ^(.*,[0123]t,.*)\.html$   $1.tsp).
I got these to work by replacing the requestURI with the
rewritten URI.
Initially, the rewritten uri is store in pathInfo.
The original uri is stored in requestURI.
The mapped servlet (from ApJServAction) is stored in script name.
If the requestURI value is replaced, it's backed up in the
attribute org.apache.mod_rewrite.originalURI.
As a side note, if you use ApJServAction, make sure the
Initially, the rewritten uri is store in pathInfo.

---

*** Ajp12ConnectionHandler.java.orig
--- Ajp12ConnectionHandler.java
***
*** 296,303 
dummy =3D ajpin.readString(null);   //script = 
filename
//  System.out.println(AJP: Script filen= + dummy);

dummy = ajpin.readString(null);   //script name
!   //  System.out.println(AJP: Script name= + dummy);

serverName = ajpin.readString();//server name
if( doLog ) log(AJP: serverName= + serverName );
--- 296,321 
dummy = ajpin.readString(null);   //script = 
filename
//  System.out.println(AJP: Script filen= + dummy);

+   // Here's what I noticed while trying to convert from JServ
+   // to Tomcat using Apache.  I had many ApJServAction directives
+   // which mapped some file extensions to a servlet
+   // (ie. ApJServAction .tsp /servlet/gnutsp).
+   // Also, I had some rewrite directives to which stripped url 
+embedded
+   // information (ie. RewriteRule   ^(.*,[0123]t,.*)\.html$   
+$1.tsp).
+   // I got these to work by replacing the requestURI with the
+   // rewritten URI.
+   // Initially, the rewritten uri is store in pathInfo.
+   // The original uri is stored in requestURI.
+   // The mapped servlet (from ApJServAction) is stored in script 
+name.
+   // If the requestURI value is replaced, it's backed up in the
+   // attribute org.apache.mod_rewrite.originalURI.
+   // As a side note, if you use ApJServAction, make sure the
+   // Initially, the rewritten uri is store in pathInfo.
+   //
dummy = ajpin.readString(null);   //script name
!   if( doLog ) log(AJP: Script name= + dummy );
!   if( !.equals(dummy) ) {
!   dummy += pathInfo;
!   if( !requestURI.equals(dummy) ) {
!   
setAttribute(org.apache.mod_rewrite.originalURI, requestURI);
!   requestURI = pathInfo;
!   if( doLog ) log(AJP: URI rewritten to = 
+requestURI);
!   }
!   }

serverName = ajpin.readString();//server name
if( doLog ) log(AJP: serverName= + serverName );




Default home for server

2001-04-28 Thread Krishna Kant T

hi guys

i need to set a jsp present in webapps/ROOT/myDir as the default home page for the 
server. i have tried
setting it in web.xml as follows

welcome-file-list

 welcome-file
/myDir/Home.jsp
/welcome-file

/welcome-file-list


but it doesnt work. Could somebody please help me out

Thanx in advance

-krishna kant




Re: Default home for server

2001-04-28 Thread Barthélémy TEHAM




--- Krishna Kant T [EMAIL PROTECTED] a écrit :  hi guys
 
 i need to set a jsp present in webapps/ROOT/myDir as the default home page
 for the server. i have tried
 setting it in web.xml as follows
You have to change your DocumentRoot path in the configuration file
of your web server
If you use Apache server:
change the line 
DocumentRoot old_path with
DocumentRoot tomcat_home/webapps/ROOT/myDir
 
And add in directive DirectoryIndex home.jsp

You also have to configure your Directory in Apache configuration file


=
Barthélémy TEHAM - 
E-mail : [EMAIL PROTECTED]
Website: http://teham.free.fr

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



Re: PLeeeeeeeeeeeeeeeeaseeeeeeeeeeeeeeeeeee help

2001-04-28 Thread Shankar Gowda

i want to get to know , the error of it in tomcat
please send it

--- Shelly Dhiman [EMAIL PROTECTED] wrote:
 Hi:
 
 I want to know in tomcat is it possible to treat any
 other file
 extension as jsp.
 I saved a .jsp file as .phj and i hace done the
 servlet mapping in
 web.xml
 like
 servlet-mapping
 servlet-namejsp/servlet-name
 url-pattern*.phj/url-pattern
 /servlet-mapping
 
 BUt when i try to open that page using browser it
 shows me text of that
 phj file.
 Do i have to do a mime-mapping, if yes then how
 
 Any help on this would be appreciated.
 
 Thanks
 Shelly


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Re: Tomcat on Linux RH7 installation help

2001-04-28 Thread Barthélémy TEHAM

--- Mark Howell [EMAIL PROTECTED] a écrit :  Did you install the apache
RPM, or compile from source or binary tgz?
 
 The RPM system will only know about apache if you installed it as an rpm
 file.
Apache RPM is install by default in RH7
if $rpm -q apache return the name of package apache.version
If Apache is intalled and running fine
Use command
$rpm -hiv --nodeps tomcat-mod-3.2.1-1.i386.rpm
else 
try to reinstall apache and install tomcat


=
Barthélémy TEHAM - 
E-mail : [EMAIL PROTECTED]
Website: http://teham.free.fr

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



Forwarding

2001-04-28 Thread Zsolt Koppany

Hi,

how can I forward to a page that the user does not see where he was
forwarded to? The reason is, we might change the target host or page and
if the user makes a bookmark to the forwarded page he cannot come back
if we change the target host or the page.

Zsolt

-- 
Zsolt Koppany
Intland GmbH www.intland.com
Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart
Tel: +49-711-7871080 Fax: +49-711-7871017



Re: Default home for server

2001-04-28 Thread Barthélémy TEHAM

What's your configuration ? ( OS and web server )

 
--- Krishna Kant T [EMAIL PROTECTED] a écrit :  hi teham
 
 thanx for responding.
 i have configured tomcat with vcm such that any request with /myDir is passed
 on
 to tomcat which serves the jsp's. so i guess the setting will have to be made
 on
 tomcat.
 what do u think?
 
 -krishna kant
 
 Barthélémy TEHAM wrote:
 
  --- Krishna Kant T [EMAIL PROTECTED] a écrit :  hi guys
  
   i need to set a jsp present in webapps/ROOT/myDir as the default home
 page
   for the server. i have tried
   setting it in web.xml as follows
  You have to change your DocumentRoot path in the configuration file
  of your web server
  If you use Apache server:
  change the line
  DocumentRoot old_path with
  DocumentRoot tomcat_home/webapps/ROOT/myDir
 
  And add in directive DirectoryIndex home.jsp
 
  You also have to configure your Directory in Apache configuration file
 
  =
  Barthélémy TEHAM -
  E-mail : [EMAIL PROTECTED]
  Website: http://teham.free.fr
 
  ___
  Do You Yahoo!? -- Pour faire vos courses sur le Net,
  Yahoo! Shopping : http://fr.shopping.yahoo.com
 


=
Barthélémy TEHAM - 
E-mail : [EMAIL PROTECTED]
Website: http://teham.free.fr

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



Re: Default home for server

2001-04-28 Thread Krishna Kant T

hi teham

win nt service pack 4 running tomcat 3.2

-krishna kant

Barthélémy TEHAM wrote:

 What's your configuration ? ( OS and web server )


 --- Krishna Kant T [EMAIL PROTECTED] a écrit :  hi teham
 
  thanx for responding.
  i have configured tomcat with vcm such that any request with /myDir is passed
  on
  to tomcat which serves the jsp's. so i guess the setting will have to be made
  on
  tomcat.
  what do u think?
 
  -krishna kant
 
  Barthélémy TEHAM wrote:
 
   --- Krishna Kant T [EMAIL PROTECTED] a écrit :  hi guys
   
i need to set a jsp present in webapps/ROOT/myDir as the default home
  page
for the server. i have tried
setting it in web.xml as follows
   You have to change your DocumentRoot path in the configuration file
   of your web server
   If you use Apache server:
   change the line
   DocumentRoot old_path with
   DocumentRoot tomcat_home/webapps/ROOT/myDir
  
   And add in directive DirectoryIndex home.jsp
  
   You also have to configure your Directory in Apache configuration file
  
   =
   Barthélémy TEHAM -
   E-mail : [EMAIL PROTECTED]
   Website: http://teham.free.fr
  
   ___
   Do You Yahoo!? -- Pour faire vos courses sur le Net,
   Yahoo! Shopping : http://fr.shopping.yahoo.com
 

 =
 Barthélémy TEHAM -
 E-mail : [EMAIL PROTECTED]
 Website: http://teham.free.fr

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




Best IDE for Servlet Development?

2001-04-28 Thread Curtis Spencer



Hi,
I just downloaded the trial version for Forte for 
Java 2.0 Internet Edition and it seems like a good servlet development kit 
because of the integrated tomcat server. I was wondering if anyone was 
using other IDE's for servlet development and if they had any thoughts about 
what was the best IDE and why?

Thanks

Curtis


Re: Forwarding

2001-04-28 Thread Barthélémy TEHAM

by using jsp:forward Action 

exple: jsp:forward page=dest.jsp /

Documentation source:
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-JSP.html#Section8.6


--- Zsolt Koppany [EMAIL PROTECTED] a écrit :  Hi,
 
 how can I forward to a page that the user does not see where he was
 forwarded to? The reason is, we might change the target host or page and
 if the user makes a bookmark to the forwarded page he cannot come back
 if we change the target host or the page.
 
 Zsolt
 
 -- 
 Zsolt Koppany
 Intland GmbH www.intland.com
 Schulze-Delitzsch-Strasse 16
 D-70565 Stuttgart
 Tel: +49-711-7871080 Fax: +49-711-7871017


=
Barthélémy TEHAM - 
E-mail : [EMAIL PROTECTED]
Website: http://teham.free.fr

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



Re: Default home for server

2001-04-28 Thread Barthélémy TEHAM

Try by adding ApJServMount /ROOT/myDir in your tomcat configuration file

Are you try to set /ROOT/myDir as default webserver home dir ?

--- Krishna Kant T [EMAIL PROTECTED] a écrit :  hi teham
 
 win nt service pack 4 running tomcat 3.2
 -krishna kant
 
 Barthélémy TEHAM wrote:
 
  What's your configuration ? ( OS and web server )
 
 
  --- Krishna Kant T [EMAIL PROTECTED] a écrit :  hi teham
  
   thanx for responding.
   i have configured tomcat with vcm such that any request with /myDir is
 passed
   on
   to tomcat which serves the jsp's. so i guess the setting will have to be
 made
   on
   tomcat.
   what do u think?
  
   -krishna kant
  
   Barthélémy TEHAM wrote:
  
--- Krishna Kant T [EMAIL PROTECTED] a écrit :  hi guys

 i need to set a jsp present in webapps/ROOT/myDir as the default home
   page
 for the server. i have tried
 setting it in web.xml as follows
You have to change your DocumentRoot path in the configuration file
of your web server
If you use Apache server:
change the line
DocumentRoot old_path with
DocumentRoot tomcat_home/webapps/ROOT/myDir
   
And add in directive DirectoryIndex home.jsp
   
You also have to configure your Directory in Apache configuration file
   
=
Barthélémy TEHAM -
E-mail : [EMAIL PROTECTED]
Website: http://teham.free.fr
   
___
Do You Yahoo!? -- Pour faire vos courses sur le Net,
Yahoo! Shopping : http://fr.shopping.yahoo.com
  
 
  =
  Barthélémy TEHAM -
  E-mail : [EMAIL PROTECTED]
  Website: http://teham.free.fr
 
  ___
  Do You Yahoo!? -- Pour faire vos courses sur le Net,
  Yahoo! Shopping : http://fr.shopping.yahoo.com
 


=
Barthélémy TEHAM - 
E-mail : [EMAIL PROTECTED]
Website: http://teham.free.fr

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



How do I get tomcat running on a NetWare Box

2001-04-28 Thread Magnus Jansson

Hi!

I'm trying to get tomcat running on a NetWare box but I cant modify those startfiles 
to get tomcat running.

Please send me a working startfile or at least instructions so I can get it to work.

Best regards. Magnus Jansson alias ^Teacher^




Re: Automatic Startup after reboot

2001-04-28 Thread Charles Williams \(CEO\)





  - Original Message - 
  From: 
  Allen 
  Levin 
  To: [EMAIL PROTECTED] 
  
  Cc: [EMAIL PROTECTED] 
  Sent: Saturday, April 28, 2001 4:35 
  AM
  Subject: Re: Automatic Startup after 
  reboot
  
  
  Try looing at /etc/rc.d/rc.local.
  Isn't rc.local the last config to execute? If 
  so then it won't work right because tomcat has to start before httpd. I 
  put it under /etc/rc.d/init.d/httpd before httpd starts.
  chuck
  
  
  From: "Dave Simms" <[EMAIL PROTECTED]>
  Reply-To: [EMAIL PROTECTED] 

  To: [EMAIL PROTECTED] 

  Subject: Automatic Startup after reboot 
  Date: Fri, 27 Apr 2001 18:51:19 - 
  
  
  Hey everyone, 
  
  I am using tomcat 3.1 on our RedHat 7.0 machine. I am wondering if 
  anyone 
  knows how to start up tomcat automatically after a reboot. I tryed 
  using a 
  script, but it didn't work. It didn't give me any errors, but it 
  didn't 
  start tomcat up. I have to start tomcat up using a different 
  server.xml for 
  each of my virtual sites. The setup script looks similiar to below: 

  
  /usr/local/jakarta-tomcat/bin/startup.sh -f 
  /usr/local/jakarta-tomcat/conf/server_SITE1.xml 
  /usr/local/jakarta-tomcat/bin/startup.sh -f 
  /usr/local/jakarta-tomcat/conf/server_SITE2.xml 
  
  ...etc. (currently only 3 sites that use tomcat) 
  
  The above statements work correctly if ran from a terminal window 
  after 
  Linux has booted up, so I'm confused as to why they don't work when 
  Linux 
  boots up. Any help / suggestions are appreciated. 
  
  Thanks 
  
  Dave 
  [EMAIL PROTECTED] 
  
  
  
  
  _ 
  Get your FREE download of MSN Explorer at http://explorer.msn.com 
  
  
  
  Get your FREE download of MSN Explorer at http://explorer.msn.com
  


heavy Traffic will rise Mem usage extremly

2001-04-28 Thread Wolle

Hello,
i have testet some Servlets, and i'm prof that I give all the Readers
and Writes free, when a error occurs, so my Servlets are mostly memory
leak free.
So, when I  make a big traffic to my servlets, the memory usage of
Tomcat will rise extremly, and after that it won't give these memory
free.And so the Server will become slow.
Is that a error in Tomcat, or must I set some enviroment in the Tomcat
server.xml or so ?
I have build some extra Commands in the Serverlet to call System.gc() or
System.runFinalization(), but no changes will occurse.
I have read about the VM that in some VM it's normal that they give not
all the memory free.
W. Klum told me that you can explzit turn the JIT Compiler of , but how
could I do this ?
I have test it all with JDK1.3 , JDK1.3.02 (with CLIENT VM , and SERVER
VM),
 on Linux Suse 7.1 and Linux Mandrake 8.0 with Tomcat 3.2.2b2 with ajp12
and ajp13 Protocol over mod_jk, 98 MB RAM and Apache
1.3.17-10/mod_ssl2.7.1-0  and apache 1.3.19-3/mod_ssl 2.8.2-5.
Every time I get the same result.
The server will slow done with lot's of memory usage by Tomcat, the only
way to resolve it is to restart tomcat.
I have produce the high traffic with making a refresh very often.
Has someone the same error, or is it still only a error on my system ?

Please help me, it's urgent,
thank you for inconvenience,
Michael
---
  [EMAIL PROTECTED]





Re: heavy Traffic will rise Mem usage extremly

2001-04-28 Thread Shravan Shashikant

Hi Wolle,
   Even I face the probelm you mentioned regularly.I actually have no idea
how to tackle it.I raised it a few weeks back and was suggested to move to
JDK122 but even with that I havent been able to tackle this issue.
  It would be great if anybody here has found a solution to his problem.I
have seen memory on my tomcat jvm rising to 29mb for processing of a
servlet.but even after the processing it retains the same memory,even
though i call System.gc().I dont have a clue.
Thanks and Regards,
Shravan

Education is the ability to listen to almost anything without losing
your temper.
-- Robert Frost

On Sat, 28 Apr 2001, Wolle wrote:

 Hello,
 i have testet some Servlets, and i'm prof that I give all the Readers
 and Writes free, when a error occurs, so my Servlets are mostly memory
 leak free.
 So, when I  make a big traffic to my servlets, the memory usage of
 Tomcat will rise extremly, and after that it won't give these memory
 free.And so the Server will become slow.
 Is that a error in Tomcat, or must I set some enviroment in the Tomcat
 server.xml or so ?
 I have build some extra Commands in the Serverlet to call System.gc() or
 System.runFinalization(), but no changes will occurse.
 I have read about the VM that in some VM it's normal that they give not
 all the memory free.
 W. Klum told me that you can explzit turn the JIT Compiler of , but how
 could I do this ?
 I have test it all with JDK1.3 , JDK1.3.02 (with CLIENT VM , and SERVER
 VM),
  on Linux Suse 7.1 and Linux Mandrake 8.0 with Tomcat 3.2.2b2 with ajp12
 and ajp13 Protocol over mod_jk, 98 MB RAM and Apache
 1.3.17-10/mod_ssl2.7.1-0  and apache 1.3.19-3/mod_ssl 2.8.2-5.
 Every time I get the same result.
 The server will slow done with lot's of memory usage by Tomcat, the only
 way to resolve it is to restart tomcat.
 I have produce the high traffic with making a refresh very often.
 Has someone the same error, or is it still only a error on my system ?
 
 Please help me, it's urgent,
 thank you for inconvenience,
 Michael
 ---
   [EMAIL PROTECTED]
 
 




isapi_redirect.dll uriworkermap.properties and virtual hosts

2001-04-28 Thread Jakob Praher

hi all,

tomcat version :  3.2.1
iis:5.0 (sp1)

we have quite a view virtual web-sites hosted on iis (it is a running system
so switching to apache is only a long term issue).

now I would like to use apache-tomcat from within iis.
the *simple* single server configuration is no problem - everything works
great.

but what I want is a tomcat-worker for every iis-virtual web.
the problem is that, as far as I know, uriworkermap.properties only is
capable of mapping the url-path, which is for instance

/somecontext/*=someworker #defined in workers.properties

and by design the isapi_redirect.dll only has one single location for the
uriworkermap.properties file (under
HKEY_LOCAL_MACHINE./worker_mount_file ), which is a kind of bottleneck.
( every virtual web site's filter looks in the *same* registry location an
thus in the same uriworkermap.properties file! ).

so my question:
is it possible to include the host information somehow in the
uriworkermap.properties file, or do I have to rewrite the isapi filter to be
capable of obtaining multiple versions of the uriworkermap.properties file?
(or has anybody already rewritten the isapi;-))

thanks in advance.




Help me!!!!

2001-04-28 Thread Hussam Alsawadi

How can I unsubscribe me from this list?



__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Re: Forwarding

2001-04-28 Thread Zsolt Koppany

Thank you for the idea, I know the jsp:forward command but I was not
able to forward to a complete different URL for example
http://www.sun.com:8080;. Do you know how to do that?

Zsolt

Barthélémy TEHAM wrote:
 
 by using jsp:forward Action
 
 exple: jsp:forward page=dest.jsp /
 
 Documentation source:
 
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-JSP.html#Section8.6
 
 --- Zsolt Koppany [EMAIL PROTECTED] a écrit :  Hi,
 
  how can I forward to a page that the user does not see where he was
  forwarded to? The reason is, we might change the target host or page and
  if the user makes a bookmark to the forwarded page he cannot come back
  if we change the target host or the page.
 
  Zsolt
 
  --
  Zsolt Koppany
  Intland GmbH www.intland.com
  Schulze-Delitzsch-Strasse 16
  D-70565 Stuttgart
  Tel: +49-711-7871080 Fax: +49-711-7871017
 
 =
 Barthélémy TEHAM -
 E-mail : [EMAIL PROTECTED]
 Website: http://teham.free.fr
 
 ___
 Do You Yahoo!? -- Pour faire vos courses sur le Net,
 Yahoo! Shopping : http://fr.shopping.yahoo.com

-- 
Zsolt Koppany
Intland GmbH www.intland.com
Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart
Tel: +49-711-7871080 Fax: +49-711-7871017



RE: isapi_redirect.dll uriworkermap.properties and virtual hosts

2001-04-28 Thread Ignacio J. Ortega

Hola Praher:

Very interesting thoughts..

I will highly interested on help you to achieve this.., last C
programmed 6 years ago :)... but we can try it.. what do you think?

Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Jakob Praher [mailto:[EMAIL PROTECTED]]
 Enviado el: sábado 28 de abril de 2001 17:05
 Para: [EMAIL PROTECTED]
 Asunto: isapi_redirect.dll uriworkermap.properties and virtual hosts
 
 
 hi all,
 
 tomcat version :  3.2.1
 iis:  5.0 (sp1)
 
 we have quite a view virtual web-sites hosted on iis (it is a 
 running system
 so switching to apache is only a long term issue).
 
 now I would like to use apache-tomcat from within iis.
 the *simple* single server configuration is no problem - 
 everything works
 great.
 
 but what I want is a tomcat-worker for every iis-virtual web.
 the problem is that, as far as I know, uriworkermap.properties only is
 capable of mapping the url-path, which is for instance
 
   /somecontext/*=someworker #defined in workers.properties
 
 and by design the isapi_redirect.dll only has one single 
 location for the
 uriworkermap.properties file (under
 HKEY_LOCAL_MACHINE./worker_mount_file ), which is a kind 
 of bottleneck.
 ( every virtual web site's filter looks in the *same* 
 registry location an
 thus in the same uriworkermap.properties file! ).
 
 so my question:
 is it possible to include the host information somehow in the
 uriworkermap.properties file, or do I have to rewrite the 
 isapi filter to be
 capable of obtaining multiple versions of the 
 uriworkermap.properties file?
 (or has anybody already rewritten the isapi;-))
 
 thanks in advance.
 
 



Start the VM with options on Tomcat

2001-04-28 Thread Wolle

Hello,
i have another question about the VM,
you could start it Server-Side optimized or client-side.
This option could you change, when you edit the JDK/jre/lib/jvm.cfg.
So you could change the default start opion (the first line is the
default start option).
But how could I use mor option as default when I start Tomcat ?
I want to use java -server -verbose:gc , to get information about the
Garbage Collect call from the VM (when it occurs and so), but this i
can't insert in the jvm.cfg file.
Is there some way to do this, pherapse in a tomcat Start script ?

thank you for inconvenience,
Michael




Re: Start the VM with options on Tomcat

2001-04-28 Thread Milt Epstein

On Sat, 28 Apr 2001, Wolle wrote:

 Hello,
 i have another question about the VM,
 you could start it Server-Side optimized or client-side.
 This option could you change, when you edit the JDK/jre/lib/jvm.cfg.
 So you could change the default start opion (the first line is the
 default start option).
 But how could I use mor option as default when I start Tomcat ?
 I want to use java -server -verbose:gc , to get information about the
 Garbage Collect call from the VM (when it occurs and so), but this i
 can't insert in the jvm.cfg file.
 Is there some way to do this, pherapse in a tomcat Start script ?

Set the TOMCAT_OPTS environment variable to the options you want,
e.g. -server -verbose:gc.  (Exactly how/where you do this is
particular to your environment -- OS, shell, etc.)

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




Re: Start the VM with options on Tomcat

2001-04-28 Thread Wolle

thank you,
i have set it in the startup.sh, but you're right, to set the TOMCAT_OPTS
is much easier and flexible,

Greetings,
Michael

Milt Epstein wrote:

 On Sat, 28 Apr 2001, Wolle wrote:

  Hello,
  i have another question about the VM,
  you could start it Server-Side optimized or client-side.
  This option could you change, when you edit the JDK/jre/lib/jvm.cfg.
  So you could change the default start opion (the first line is the
  default start option).
  But how could I use mor option as default when I start Tomcat ?
  I want to use java -server -verbose:gc , to get information about the
  Garbage Collect call from the VM (when it occurs and so), but this i
  can't insert in the jvm.cfg file.
  Is there some way to do this, pherapse in a tomcat Start script ?

 Set the TOMCAT_OPTS environment variable to the options you want,
 e.g. -server -verbose:gc.  (Exactly how/where you do this is
 particular to your environment -- OS, shell, etc.)

 Milt Epstein
 Research Programmer
 Software/Systems Development Group
 Computing and Communications Services Office (CCSO)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]




AW: isapi_redirect.dll uriworkermap.properties and virtual hosts

2001-04-28 Thread Jakob Praher

Hola Ignacio,

I would also give it a try.
Some time ago I have already did some isapi-filter hacking.

as far as I checked the source of isapi_redirect.c, I noticed that on
initialization the worker_mount property, as all the others, get resolved
and stored in a map like structure.

iis stores it's virtual web site information in the iis metabase ( a
directoy structure ).

one obvious solution would be to add an extra key to the registry for every
web site name:

instead of:
HKEY_LOCAL_MACHINE\Software\Apache ...\Jakart ..\1.0
extension_uri   = ...
log_file= '%TOMCAT_HOME%\isapi.log'
log_level   = 'debug'
worker_file = '%TOMCAT_HOME%\conf\workers.properties'
worker_mount_file = '%TOMCAT_HOME%\conf\uriworkermap.properties'

we could add

HKEY_LOCAL_MACHINE\Software\Apache ...\Jakart ..\2.0
virtual_web1\
extension_uri   = ...
log_file= '%TOMCAT_HOME%\isapi.log'
log_level   = 'debug'
worker_file = '%TOMCAT_HOME%\conf\workers.properties'
worker_mount_file = 
'%TOMCAT_HOME%\conf\uriworkermap.properties'

virtual_web2\
extension_uri   = ...
log_file= '%TOMCAT_HOME%\isapi.log'
log_level   = 'debug'
worker_file = '%TOMCAT_HOME%\conf\workers.properties'
worker_mount_file = 
'%TOMCAT_HOME%\conf\uriworkermap.properties'
the other obvious solution would be to store the information right in the
meta-base of iis, which I would prefer. (if possible).

what do you think about that?

bye






-Ursprüngliche Nachricht-
Von: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]]
Gesendet: Samstag, 28. April 2001 17:17
An: '[EMAIL PROTECTED]'
Betreff: RE: isapi_redirect.dll uriworkermap.properties and virtual
hosts


Hola Praher:

Very interesting thoughts..

I will highly interested on help you to achieve this.., last C
programmed 6 years ago :)... but we can try it.. what do you think?

Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Jakob Praher [mailto:[EMAIL PROTECTED]]
 Enviado el: sábado 28 de abril de 2001 17:05
 Para: [EMAIL PROTECTED]
 Asunto: isapi_redirect.dll uriworkermap.properties and virtual hosts


 hi all,

 tomcat version :  3.2.1
 iis:  5.0 (sp1)

 we have quite a view virtual web-sites hosted on iis (it is a
 running system
 so switching to apache is only a long term issue).

 now I would like to use apache-tomcat from within iis.
 the *simple* single server configuration is no problem -
 everything works
 great.

 but what I want is a tomcat-worker for every iis-virtual web.
 the problem is that, as far as I know, uriworkermap.properties only is
 capable of mapping the url-path, which is for instance

   /somecontext/*=someworker #defined in workers.properties

 and by design the isapi_redirect.dll only has one single
 location for the
 uriworkermap.properties file (under
 HKEY_LOCAL_MACHINE./worker_mount_file ), which is a kind
 of bottleneck.
 ( every virtual web site's filter looks in the *same*
 registry location an
 thus in the same uriworkermap.properties file! ).

 so my question:
 is it possible to include the host information somehow in the
 uriworkermap.properties file, or do I have to rewrite the
 isapi filter to be
 capable of obtaining multiple versions of the
 uriworkermap.properties file?
 (or has anybody already rewritten the isapi;-))

 thanks in advance.






RE: Forwarding

2001-04-28 Thread CPC Livelink Admin

Create an frameset document with one frame.  Your servlet produces the
frameset, the target of the one frame is the new URL you want.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Zsolt Koppany
Sent: Saturday, April 28, 2001 11:07 AM
To: [EMAIL PROTECTED]
Subject: Re: Forwarding


Thank you for the idea, I know the jsp:forward command but I was not
able to forward to a complete different URL for example
http://www.sun.com:8080;. Do you know how to do that?

Zsolt

Barthélémy TEHAM wrote:

 by using jsp:forward Action

 exple: jsp:forward page=dest.jsp /

 Documentation source:

http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-JSP.html
#Section8.6

 --- Zsolt Koppany [EMAIL PROTECTED] a écrit :  Hi,
 
  how can I forward to a page that the user does not see where he was
  forwarded to? The reason is, we might change the target host or page and
  if the user makes a bookmark to the forwarded page he cannot come back
  if we change the target host or the page.
 
  Zsolt
 
  --
  Zsolt Koppany
  Intland GmbH www.intland.com
  Schulze-Delitzsch-Strasse 16
  D-70565 Stuttgart
  Tel: +49-711-7871080 Fax: +49-711-7871017

 =
 Barthélémy TEHAM -
 E-mail : [EMAIL PROTECTED]
 Website: http://teham.free.fr

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

--
Zsolt Koppany
Intland GmbH www.intland.com
Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart
Tel: +49-711-7871080 Fax: +49-711-7871017




web.xml, jserv_mod and Apache

2001-04-28 Thread Mark Diggory

I have servlet mappings in my web.xml file that map URI's to servlets. 
These URI's may contain files with jsp extentions on them. when I integrate 
Tomcat 3.2.1 with Apache I can see any of my jsp's and servlets and have 
them execute. However, it appears that the mappings I supplied in web.xml 
are gone. Here's an example

in stand alone Tomcat:

http://host:8080/VDC/Component  gets sent to maps to my  /VDC/servlets/Dispatch

and

http://host:8080/VDC/Component/main.jsp also maps to /VDC/servlets/Dispatch

this is because my web.xml looks like this:

servlet-nameDispatch/servlet-name   
 servlet-classvdc.uis.Dispatch/servlet-class
 load-on-startup4/load-on-startup   
   /servlet

   servlet-mapping
 servlet-nameDispatch/servlet-name  
 url-pattern/Component/*/url-pattern
   /servlet-mapping

Dispatch is responsible for doing some work and the forwarding the request 
to /VDC/Component/main.jsp. This works great in standalone tomcat. However 
when I try to use Apache to 
access  http://host/VDC/Component/main.jsp  instead of going to Dispatch it 
goes directly to the jsp file. This appears to be because the mappings 
outlined in web.xml seem to be ignored.

Is it true that web.xml is not used by Apache/jserv_mod?

if so, how can I write a an entry in the apache-tomcat.conf that will 
accomplish this same mapping?

thanks,
Mark 




persistent Session-Storage

2001-04-28 Thread Jakob Praher


hi all,

can anybody tell me, whether persistent Session-Storage will be implemented
before the release of tomcat-4.0?
somewhere I read that one versoin uses javaspaces technology as persistence
model - can anybody give me some information about that?
are there any source-files in the current source tree?

by the way: does anybody know about the release date of tomcat 3.3?

thanks

bye.





need help badly...

2001-04-28 Thread johnd

What can I do?  I have tried every thing!  Compiling apache...compiling
mod_jk.so...

I am trying to connect apache to tomcat
when i run httpd I get this:


-

[johnd@board apache2080]$ bin/httpd
Syntax error on line 9 of /home/tomcat/conf/mod_jk.conf-auto:
Cannot load /home/apache2080/libexec/mod_jk.so into server: 
/home/apache2080/libexec/mod_jk.so: undefined symbol: map_name_at
[johnd@board apache2080]$ 


-
-- 

-johnd




Re: need help badly...

2001-04-28 Thread Jan Labanowski

And how can we help you, if you do not tell us which OS, which version, etc.
you are using. If your OS is Linux 7.0, IRIX 6.5, or Solaris 2.7 , you can
look at my installation/compilation logs at:

http://www.ccl.net/cca/software/UNIX/apache

Jan

PS. If you are using alpha apache 2X you are on your own, from what I know...



On Sat, 28 Apr 2001, johnd wrote:

 What can I do?  I have tried every thing!  Compiling apache...compiling
 mod_jk.so...
 
 I am trying to connect apache to tomcat
 when i run httpd I get this:
 
 
 -
 
 [johnd@board apache2080]$ bin/httpd
 Syntax error on line 9 of /home/tomcat/conf/mod_jk.conf-auto:
 Cannot load /home/apache2080/libexec/mod_jk.so into server: 
/home/apache2080/libexec/mod_jk.so: undefined symbol: map_name_at
 [johnd@board apache2080]$ 
 
 
 -
 -- 
 
 -johnd
 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/




RE: need help badly...

2001-04-28 Thread Nael Mohammad

You read my mind, I was just about to take on this project right now, thank
you so much. :)

-Original Message-
From: Jan Labanowski [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 28, 2001 11:44 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: need help badly...


And how can we help you, if you do not tell us which OS, which version, etc.
you are using. If your OS is Linux 7.0, IRIX 6.5, or Solaris 2.7 , you can
look at my installation/compilation logs at:

http://www.ccl.net/cca/software/UNIX/apache

Jan

PS. If you are using alpha apache 2X you are on your own, from what I
know...



On Sat, 28 Apr 2001, johnd wrote:

 What can I do?  I have tried every thing!  Compiling apache...compiling
 mod_jk.so...
 
 I am trying to connect apache to tomcat
 when i run httpd I get this:
 
 
 -
 
 [johnd@board apache2080]$ bin/httpd
 Syntax error on line 9 of /home/tomcat/conf/mod_jk.conf-auto:
 Cannot load /home/apache2080/libexec/mod_jk.so into server:
/home/apache2080/libexec/mod_jk.so: undefined symbol: map_name_at
 [johnd@board apache2080]$ 
 
 
 -
 -- 
 
 -johnd
 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/



RE: need help badly...

2001-04-28 Thread Nael Mohammad

Community RULES! :)

-Original Message-
From: Nael Mohammad [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 28, 2001 11:44 AM
To: '[EMAIL PROTECTED]'
Subject: RE: need help badly...


You read my mind, I was just about to take on this project right now, thank
you so much. :)

-Original Message-
From: Jan Labanowski [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 28, 2001 11:44 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: need help badly...


And how can we help you, if you do not tell us which OS, which version, etc.
you are using. If your OS is Linux 7.0, IRIX 6.5, or Solaris 2.7 , you can
look at my installation/compilation logs at:

http://www.ccl.net/cca/software/UNIX/apache

Jan

PS. If you are using alpha apache 2X you are on your own, from what I
know...



On Sat, 28 Apr 2001, johnd wrote:

 What can I do?  I have tried every thing!  Compiling apache...compiling
 mod_jk.so...
 
 I am trying to connect apache to tomcat
 when i run httpd I get this:
 
 
 -
 
 [johnd@board apache2080]$ bin/httpd
 Syntax error on line 9 of /home/tomcat/conf/mod_jk.conf-auto:
 Cannot load /home/apache2080/libexec/mod_jk.so into server:
/home/apache2080/libexec/mod_jk.so: undefined symbol: map_name_at
 [johnd@board apache2080]$ 
 
 
 -
 -- 
 
 -johnd
 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/



Re: need help badly...

2001-04-28 Thread johnd

apache 1.3 on linux x86

- Original Message -
From: Jan Labanowski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, April 28, 2001 11:43 AM
Subject: Re: need help badly...


 And how can we help you, if you do not tell us which OS, which version,
etc.
 you are using. If your OS is Linux 7.0, IRIX 6.5, or Solaris 2.7 , you can
 look at my installation/compilation logs at:

 http://www.ccl.net/cca/software/UNIX/apache

 Jan

 PS. If you are using alpha apache 2X you are on your own, from what I
know...



 On Sat, 28 Apr 2001, johnd wrote:

  What can I do?  I have tried every thing!  Compiling apache...compiling
  mod_jk.so...
 
  I am trying to connect apache to tomcat
  when i run httpd I get this:
 
 
  -
 
  [johnd@board apache2080]$ bin/httpd
  Syntax error on line 9 of /home/tomcat/conf/mod_jk.conf-auto:
  Cannot load /home/apache2080/libexec/mod_jk.so into server:
/home/apache2080/libexec/mod_jk.so: undefined symbol: map_name_at
  [johnd@board apache2080]$
 
 
  -
  --
 
  -johnd
 

 Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED]
 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
 Columbus, OH 43212-1163  |http://www.osc.edu/






web.xml, jserv_mod and Apache

2001-04-28 Thread Mark Diggory

I have servlet mappings in my web.xml file that map URI's to servlets. 
These URI's may contain files with jsp extent ions on them. when I 
integrate Tomcat 3.2.1 with Apache I can see any of my jsp's and servlets 
and have them execute. However, it appears that the mappings I supplied in 
web.xml are gone. Here's an example

in stand alone Tomcat:

http://host:8080/VDC/Component  gets sent to maps to my  /VDC/servlets/Dispatch

and

http://host:8080/VDC/Component/main.jsp also maps to /VDC/servlets/Dispatch

this is because my web.xml looks like this:

servlet-nameDispatch/servlet-name   
 servlet-classvdc.uis.Dispatch/servlet-class
 load-on-startup4/load-on-startup   
   /servlet

   servlet-mapping
 servlet-nameDispatch/servlet-name  
 url-pattern/Component/*/url-pattern
   /servlet-mapping

Dispatch is responsible for doing some work and the forwarding the request 
to /VDC/Component/main.jsp. This works great in standalone tomcat. However 
when I try to use Apache to 
access  http://host/VDC/Component/main.jsp  instead of going to Dispatch it 
goes directly to the jsp file. This appears to be because the mappings 
outlined in web.xml seem to be ignored.

Is it true that web.xml is not used by Apache/jserv_mod?

if so, how can I write a an entry in the apache-tomcat.conf that will 
accomplish this same mapping?

thanks,
Mark 




RE: Objects in Vector are loosing type

2001-04-28 Thread Filip Hanik

 So are you saying it is by chance if a different class loader loads each
 servlet and this can effect the casting?

yes, the same class loaded by different class loaders, is not considered the
same class.

ie, you can't cast them

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net




RE: Best IDE for Servlet Development?

2001-04-28 Thread Filip Hanik

JBuilder 4,


~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

 -Original Message-
 From: Mark Diggory [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, April 28, 2001 9:31 AM
 To: [EMAIL PROTECTED]; Tomcat User List
 Subject: Re: Best IDE for Servlet Development?


 Forte IE, all the way, on both Linux and WIndows, I use it for
 building my
 support classes and then I use Dreamweaver to write forms and jsp
 pages on
 windows and that pretty much allows me to build anything fast. However, I
 haven't used the integrated tomcat server, I use my own
 installation and I
 use its webapps/Context as my mount points. any time I edit a servlet or
 jsp, tomcat reloads it, if I'm editing a support class I have to restart
 tomcat. Probably the only downfall to date. But thats not a complaint.

 -Mark

 At 03:54 AM 4/28/01 -0700, Curtis Spencer wrote:
 Hi,
 I just downloaded the trial version for Forte for Java 2.0 Internet
 Edition and it seems like a good servlet development kit because of the
 integrated tomcat server.  I was wondering if anyone was using
 other IDE's
 for servlet development and if they had any thoughts about what was the
 best IDE and why?
 
 Thanks
 
 Curtis






Re: need help badly...

2001-04-28 Thread johnd

I compiled from the source code.


- Original Message -
From: Noel E. Lecaros [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 28, 2001 6:01 PM
Subject: Re: need help badly...


 Hi, John

 I haven't encountered this exact same message but it looks like you have
an
 incompatibility in your shared library file.  Where did you get your copy
of
 mod_jk.so?

 Regards,
 Noel Lecaros

 johnd wrote:

  apache 1.3 on linux x86
 
  - Original Message -
  From: Jan Labanowski [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Sent: Saturday, April 28, 2001 11:43 AM
  Subject: Re: need help badly...
 
   And how can we help you, if you do not tell us which OS, which
version,
  etc.
   you are using. If your OS is Linux 7.0, IRIX 6.5, or Solaris 2.7 , you
can
   look at my installation/compilation logs at:
  
   http://www.ccl.net/cca/software/UNIX/apache
  
   Jan
  
   PS. If you are using alpha apache 2X you are on your own, from what I
  know...
  
  
  
   On Sat, 28 Apr 2001, johnd wrote:
  
What can I do?  I have tried every thing!  Compiling
apache...compiling
mod_jk.so...
   
I am trying to connect apache to tomcat
when i run httpd I get this:
   
   
-
   
[johnd@board apache2080]$ bin/httpd
Syntax error on line 9 of /home/tomcat/conf/mod_jk.conf-auto:
Cannot load /home/apache2080/libexec/mod_jk.so into server:
  /home/apache2080/libexec/mod_jk.so: undefined symbol: map_name_at
[johnd@board apache2080]$
   
   
-
--
   
-johnd
   
  
   Jan K. Labanowski|phone: 614-292-9279,  FAX:
614-292-7168
   Ohio Supercomputer Center|Internet: [EMAIL PROTECTED]
   1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
   Columbus, OH 43212-1163  |http://www.osc.edu/
  
  






Re: Objects in Vector are loosing type

2001-04-28 Thread Ivan

OK after several days of head banging on this problem, I found the problem
thanks to the tips from you guys.

I was putting CHyperlink objects into a vector which was in a session and
than using another servlet to get the CHyperlink objects out of the vector.
However i was getting run time errors when i tried to cast the Objects back
to CHyperlinks.

What I discovered was that when I restarted tomcat everything was working,
and then i made changes in my servlets and hit Rebuild all in JBuilder.
Then i got the error again when trying to cast.

What i think happened was because I hit rebuild all a new version of
CHyperlink was being generated and then when attempting to cast the object
that was still sitting in the Vector it failed because the JVM must have
checked the signature on the object in the Vector vs the CHyperlink class i
just rebuilt.

As long as i restart the server after making changes to the classes
everything is working fine.

Does this result make sense to you all?

Thanks again,
Ivan

- Original Message -
From: Filip Hanik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, April 28, 2001 2:28 PM
Subject: RE: Objects in Vector are loosing type


  So are you saying it is by chance if a different class loader loads each
  servlet and this can effect the casting?

 yes, the same class loaded by different class loaders, is not considered
the
 same class.

 ie, you can't cast them

 ~
 Namaste - I bow to the divine in you
 ~
 Filip Hanik
 Software Architect
 [EMAIL PROTECTED]
 www.filip.net





Citybus project

2001-04-28 Thread Arun Sharma

Thought this might be of interest to some of you. Of course, I'm
using tomcat for the project ;)

http://sharmas.dhs.org/~adsharma/projects/citybus/citybus.html

-Arun