Re: Please sign emergency petition to the U.N.

2003-03-11 Thread James Chuang
If you want to sign this petition.  Please deposit $5 million dollar US in
an escrow accout.  If US or Israel ever gets attacked by a Bio/Chemical
weapon originating from Iraq, that money will be automatically sent for
relief effort.

Thank you

- Original Message -
From: Wilhelm Colln [EMAIL PROTECTED]
Cc: Francis Stenning [EMAIL PROTECTED]; Fransisco Da Rocha
[EMAIL PROTECTED]; Gigi Buchanan [EMAIL PROTECTED];
Gladys Galvez Grieve [EMAIL PROTECTED]; Glenn Cameron
[EMAIL PROTECTED]; Gustavo Kahan Novoa [EMAIL PROTECTED];
Gustavo Reategui [EMAIL PROTECTED]; Hector Rospigliosi
[EMAIL PROTECTED]; Herbert Cayro [EMAIL PROTECTED]; Javier
Flores [EMAIL PROTECTED]; JOSE AGUILAR [EMAIL PROTECTED]; José
Ignacio Mujica Barreda [EMAIL PROTECTED]; Jose Luis de Cossio
[EMAIL PROTECTED]; Klaus Burger / Navinter
[EMAIL PROTECTED]; kyoko tsuru [EMAIL PROTECTED]; Lucho
Kukurelo [EMAIL PROTECTED]; Lucho Salazar
[EMAIL PROTECTED]; Luis Enrique Colmenares
[EMAIL PROTECTED]; Mabez [EMAIL PROTECTED]; Manuel M
Gonzalez del Riego [EMAIL PROTECTED]; Manuel Tirado
[EMAIL PROTECTED]; Maria Laura Burga [EMAIL PROTECTED]; Marina
Bezzola [EMAIL PROTECTED]; Miguel Miro Quesada
[EMAIL PROTECTED]; Nunez [EMAIL PROTECTED]; Orazio
Parodi [EMAIL PROTECTED]; Oscar Paredes
[EMAIL PROTECTED]; Pedro Moratones [EMAIL PROTECTED];
Percy Krapp [EMAIL PROTECTED]; Pierre Zavan
[EMAIL PROTECTED]; Rafael Ferrero [EMAIL PROTECTED]; Rafael
Galdos [EMAIL PROTECTED]; Ricardo Castillo
[EMAIL PROTECTED]; Rocio De la Romaña [EMAIL PROTECTED];
rodolfo escudero [EMAIL PROTECTED]; Rolando Noriega
[EMAIL PROTECTED]; ROMERO Miriam CAMISEA
[EMAIL PROTECTED]; Sol [EMAIL PROTECTED]; Villar, Cesar
[EMAIL PROTECTED]; Walter Gil [EMAIL PROTECTED];
Wilhelm Colln [EMAIL PROTECTED]; William Bugosen
[EMAIL PROTECTED]; William Flores [EMAIL PROTECTED]
Sent: Monday, March 10, 2003 9:17 AM
Subject: Please sign emergency petition to the U.N.


 Dear friend, I'm hoping you can join me on an emergency petition
 from citizens around the world to the U.N. Security Council.

 The petition's going to be delivered to the 15 member states
 of the Security Council on MONDAY, MARCH 10.

 If hundreds of thousands of us sign, it could be an enormously
 important and powerful message -- people from all over the world
 joining in a single call for a peaceful solution.

 But we really need everyone who agrees to sign up today.
 You can do so easily and quickly at: http://www.moveon.org/emergency/
 http://www.moveon.org/emergency/

 The stakes couldn't really be much higher.
 A war with Iraq could kill tens of thousands of Iraqi civilians and
 inflame the Middle East.
 According to current plans, it would require an American occupation of
 the country for years to come.
 And it could escalate in ways that are horrifying to imagine.
 We can help to stop this tragedy from unfolding.

 But we need to speak together, and we need to do so now.
 Let's show the Security Council what world citizens think.

 Thank you,
 Wilhelm Cölln



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Session already invalidated HELP!

2002-09-24 Thread James Chuang

Hello:

I'm currently running Tomcat 3.24 on Linux, and I have run into a vexing problem that 
occurs randomly, and I need some help.

At least once a week, I get the following exception:

java.lang.IllegalStateException:
setAttribute: Session already invalidated
java.lang.IllegalStateException: setAttribute: Session already invalidated
at 
org.apache.tomcat.session.StandardSession.setAttribute(StandardSession.java(Compiled 
Code))
at 
org.apache.tomcat.session.StandardSession.putValue(StandardSession.java(Compiled Code)

At this point, I have to restart tomcat to get rid of this.  During this time, no one 
can use the system.

What is troubling to me, is that this goes across multiple VMs!  I have 2 sessions of 
Tomcat running on the same machine, each serving a different virtual host.  Both 
connected to Apache.  Well, I figured if one of the Tomcat hoses, the other one should 
still be OK.  Well, it turns out that both Tomcat gets hosed when this occurs.

Does anyone have any idea?  I am willing to work on updating to a new version of 
Tomcat, but I really need to know that it will help... 

Thanks in advance!

jchuang



Re: class loading tc 3.3 virtual hosts

2002-01-08 Thread James Chuang

Yes you can.  You can deploy 2 separate tomcat's each with their own ports,
contexts, etc.  This will allow you to run your apps in 2 separate VMs, so
they can use different versions of classes etc.

This was in Tomcat 3.23-3.3.  I think 4 should work the same way with this?

jchuang

- Original Message -
From: Martin v. Boehlen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 08, 2002 2:04 PM
Subject: class loading tc 3.3  virtual hosts


 Greetings Users,

 is it possible to use two completely separate virtual hosts
 with tomcat ?
 What I want to do is using two virtual hosts on the same box.
 One for real web serving and one for development.

 My problems so far are:
 1. Class loading -
 Can I configure tomcat in a way that classes don't
 interfere between virtual hosts ?
 2. Context scope -
 Can I use JkMount with a single path for all
 applications ?
 3. Host aliases
 Can I do an 'AutoWebApp' for an 'Alias' and
   a full host name at the same time ?

 Please note, that:
 The application name is 'jRolodex', but I used the 'numguess.jsp'
 example for testing.
 'www' is the web host and
 'javadex' is the development host.

 A 'build.sh all' copies the application files to host 'javadex'
 i.e. the 'docBase' directory of virtual host
 'javadex.tiade-voboe.de'.

 A 'build.sh dist' produces a 'jRolodex.war' and a 'jRoldex.jar'
 in the 'docBase' directory of host 'www.tiade-voboe.de'.

 Before I plunge into the details, please look at the partial
 config files, stack and SW version at the end of this mail.

 Now the gory details:

 ad 1.  When i change some code in the application and afterwards do a
 'build.sh all' for application 'jRolodex' without doing a
 'build.sh dist', the first virtual server I hit works fine!
 No matter wether it is 'www' or 'javadex'.
 The second server always gets an 'Error 500' (see error stack at
 end of mail).
 It seems to me, that tomcat does not load the appropriate class
 definitions.

 ad 2.  I tried to use '/wapps' as the context path (with and without a
 'prefix' in 'AutoWebApp') because I wanted something like
 'JkMount /wapps' in 'httpd.conf'. It didn't work. So I have
 to mount every application explicitly.

 ad 3.  I tried to use the 'Alias' definition in 'AutoWebApp'. I.e.:
 AutoWebApp dir=/usr/local/httpd/webapps/javadex
 prefix=/wapps
 host=javadex /
 It worked fine but it didn't work for 'javadex.tiade-voboe.de' (and
 vice versa).


 !-- --- httpd.conf
START -- --
 # - The Waltons, Daltons, everyone
 VirtualHost www.tiade-voboe.de:80
 ServerAdmin [EMAIL PROTECTED]
 ServerName  www.tiade-voboe.de
 DocumentRoot /usr/local/httpd/htdocs/www
 ServerAlias www   www.tiade-voboe.de

 Directory /usr/local/httpd/htdocs/www 
 Options Indexes -FollowSymLinks -Includes +MultiViews
 Order deny,allow
 Allow from all
 /Directory

 JkMount /*.jsp ajp13
 JkMount /wapps/jRolodex ajp13
 JkMount /wapps/jRolodex/* ajp13
 /VirtualHost

 # - Tomcat developer
 VirtualHost javadex.tiade-voboe.de:80
 ServerAdmin [EMAIL PROTECTED]
 ServerName javadex.tiade-voboe.de
 DocumentRoot /usr/local/httpd/htdocs/javadex
 ServerAlias javadex   javadex.tiade-voboe.de

 # - Here comes the directory accessible by all users of the local
 network
 Directory /usr/local/httpd/htdocs/javadex 
 Options Indexes +FollowSymLinks -Includes +MultiViews
 Order allow,deny
 Allow from 192.168.17.0/255.255.255.0
 /Directory

 JkMount /*.jsp ajp13
 JkMount /wapps/jRolodex ajp13
 JkMount /wapps/jRolodex/* ajp13
 /VirtualHost
 !-- --- httpd.conf
END  --

 !-- --- apps-vhosts.xml
START - --
 ?xml version=1.0 encoding=ISO-8859-1?
 Server


 Host name=www.tiade-voboe.de
 Alias name=www /
 Context path=
 docBase=/usr/local/httpd/webapps/www
 debug=0
 reloadable=False 
   SimpleRealm filename=conf/users/example-users.xml /
   LogSetter name=www_tc.log
 path=/var/log/tomcat/www_tc.log
 verbosityLevel=ERROR/
   LogSetter name=www_servlet_log
 path=/var/log/tomcat/www_servlet.log
 servletLogger=true
 verbosityLevel = ERROR/
 AutoDeploy source=/usr/local/httpd/webapps/www
 target=/usr/local/httpd/webapps/www /
 AutoWebApp dir=/usr/local/httpd/webapps/www
 prefix=/wapps
 host=www.tiade-voboe.de /
 /Context
 /Host


 Host name=javadex.tiade-voboe.de
 Alias name=javadex /
 Context path=
 docBase=/usr/local/httpd/webapps/javadex
 debug=99
 reloadable=True
   SimpleRealm filename=conf/users/example-users.xml /
   LogSetter name=javadex_tc.log
 path=/var/log/tomcat/javadex_tc.log
 verbosityLevel = DEBUG/
   LogSetter name=javadex_servlet_log
 

jsp compilation problem, Timeout too quick

2002-01-02 Thread James Chuang

I was trying to regenerate and compile all the JSPs I had to make sure
everything is up-to-date.  I am now finding a different behavior.  I am
chaining to my JSPs from my servlet, running under Redhat 7.1, Apache,
Tomcat 3.24, using AJP13.

What I am finding is that rather than waiting for the JSP to compile and
return output, the user is quickly (  ~ 1 sec) returned to an Apache error
page.  If I press Refresh enough times, the page will properly show.

Is there some sort of timeout setting I'm missing in Tomcat or Apache that
was introduced post 3.23?  Whn I was running 3.23, I didn't have this
problem.

Thanks in Advance.

jchuang


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Need to refresh .jsp page around five times before it works properly

2001-12-23 Thread James Chuang

I have recently upgraded to Tomcat 3.3 with AJP13, and I've seen this
problem as well.

- Original Message -
From: Brandon Cruz [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, December 23, 2001 7:30 PM
Subject: Re: Need to refresh .jsp page around five times before it works
properly


 It has to be with ajp13, because I never have the problem with stand alone
 tomcat or with ajp12.


 - Original Message -
 From: David Morsberger [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Sunday, December 23, 2001 8:47 PM
 Subject: Re: Need to refresh .jsp page around five times before
 itworksproperly


  Yes, Apache 1.3.22 and Tomcat 3.3 with ajp13. We initially compile our
 JSP's
  before we deliver / deploy.
 
   From: Brandon Cruz [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   Date: Sun, 23 Dec 2001 19:42:09 -0600
   To: Tomcat Users List [EMAIL PROTECTED]
   Subject: Re: Need to refresh .jsp page around five times before it
   worksproperly
  
   Are you using Apache, and Ajp13?
  
   What do you do as a solution?
  
  
   - Original Message -
   From: David Morsberger [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Sunday, December 23, 2001 4:36 PM
   Subject: Re: Need to refresh .jsp page around five times before it
   worksproperly
  
  
   We have a similar problem with Tomcat 3.2 and 3.3. The web page is
   sometimes
   blank (no error) after the JSP is compiled. If the page is refreshed
/
   reloaded then the page is properly displayed.
  
  
   From: Brandon Cruz [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   Date: Sun, 23 Dec 2001 14:03:21 -0600
   To: Tomcat Users List [EMAIL PROTECTED]
   Subject: Need to refresh .jsp page around five times before it works
   properly
  
   I am using tomcat 3.2.4, Ajp13, and apache 1.3.  Every so often,
when
 I
   go
   to one of the .jsp pages on my site, I get a 500, internal server
 error.
   There is no info posted to any log, and I need to hit refresh on the
   browser
   window a bunch of times before it finally comes up correctly.  Does
   anyone
   know what causes this condition?  I was using tomcat 3.2.1 with
Ajp12
   before, and never had this problem.  Is it Ajp13 that causes this?
  
   Thanks in advance for any help!
  
   Brandon
  
  
   --
   To unsubscribe:
mailto:[EMAIL PROTECTED]
   For additional commands:
mailto:[EMAIL PROTECTED]
   Troubles with the list:
mailto:[EMAIL PROTECTED]
  
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Code request; Code to reveal a DB schema

2001-12-19 Thread James Chuang

For sybase, it used to be that you have to run a SQL script to load some
system procs before the MetaData stuff would work.  Their jConnect driver
used to document this pretty well.

jchuang

- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, December 19, 2001 2:00 AM
Subject: AW: Code request; Code to reveal a DB schema


At least in some versions of sybase
DatabaseMetaData.getColumns() doesn't
work.

We use the following as a workaround:

select * from 'tablename' where 1  1

and use ResultSetMetaData to find the
columns. Dirty trick, but works with
any database we tested (Adabas D,
Oracle 8i, Sybase ASA, Interbase,
Cloudscape, Instant DB, Postgres,
MS SQL)

 -Ursprüngliche Nachricht-
 Von: Jim Cheesman [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 19. Dezember 2001 09:42
 An: Tomcat Users List
 Betreff: Re: Code request; Code to reveal a DB schema


 At 06:04 AM 19/12/01, you wrote:
 I'm looking for some dynamic code that will reveal all
 libraries, files,
 fields in a DB Does anyone have an example or can you point
 me in the right
 direction?


 java.sql.DatabaseMetaData is your friend!





 --

*   Jim Cheesman   *
  Trabajo:
 [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   I'm still not sure
 if I understand ambiguity.



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs

2001-12-17 Thread James Chuang

Noel:

Let me give this one a shot.  I just did this for Tomcat 3.24 over the
weekend.

To each have a separate JVM, you basically need multiple Tomcat sessions.
Which means, you need multiple server.xml, each with it's own context
definition serving a particular JVM.

So, here is what you need to do:

Configure Apache to support each virtual host.  In my case, I used the
NameVirtualHost settings, and for each virtual host, I had a different
document root.

Create a mod_jk.conf that supports directing traffic to different VHOSTS
based on some sort of path.  This is the important parts:

Alias /host1 /opt/host1
Directory /opt/host1
Options FollowSymLinks
/Directory
JkMount /host1/servlet/* ajp13
JkMount /host1/*.jsp ajp13

Alias /host2 /opt/host2
Directory /opt/host2
Options FollowSymLinks
/Directory
JkMount /host2/servlet/* ajp13_2
JkMount /host2/*.jsp ajp13_2

Notice that the ajp workers are labeled differently.

Now, modify workers.properties to support the new workers...  There are 2
new workers, one to support the admin functionality of each tomcat server,
and one to support the connection to Apache

worker.list=ajp12, ajp12_2, ajp13, ajp13_2

worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1
worker.ajp12_2.port=8010
worker.ajp12_2.host=localhost
worker.ajp12_2.type=ajp12
worker.ajp12_2.lbfactor=1

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp13_2.port=8011
worker.ajp13_2.host=localhost
worker.ajp13_2.type=ajp13
worker.ajp13_2.lbfactor=1

Now, make copies of server.xml, one that is server1.xml, and one is
server2.xml.  Server 1 would have context stuff looking like this:

Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler
   value=org.apache.tomcat.service.connector.Ajp12ConnectionHandler/
Parameter name=port value=8007/
/Connector

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

value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/
  Parameter name=port value=8009/
/Connector

Context path=/vhost1
 docBase=/opt/vhost1
 crossContext=false
 debug=0
 reloadable=true 
/Context

And server2.xml would have the ports modified appropriately, and with the
right context definition.

Now, start tomcat by doing this:

startup.sh -f  $TOMCAT_HOME/conf/server1.xml

You need to specify the -f parameter for shutdown as well.

If all this is done right, you now have 2 tomcat's running, each with it's
own JVM, each with it's own context and vhost support.

Good luck!

jchuang






- Original Message -
From: Noel J. Bergman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 17, 2001 1:17 PM
Subject: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs


 I am STILL trying to find out how to configure Apache+Tomcat so that EACH
 virtual host has ITS OWN JVM.  This seems to be a fairly common question,
 but no one seems willing to actually answer it.

 Ideally we want some means that works well with the perchild module, so
that
 not only is each virtual host assigned its own privileges under Apache,
but
 each JVM is also restricted to the privileges available to that uid.

 Thanks!  :-)

 --- Noel


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




- Original Message -
From: Noel J. Bergman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 17, 2001 1:17 PM
Subject: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs


 I am STILL trying to find out how to configure Apache+Tomcat so that EACH
 virtual host has ITS OWN JVM.  This seems to be a fairly common question,
 but no one seems willing to actually answer it.

 Ideally we want some means that works well with the perchild module, so
that
 not only is each virtual host assigned its own privileges under Apache,
but
 each JVM is also restricted to the privileges available to that uid.

 Thanks!  :-)

 --- Noel


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Building mod_jk 13 on redhat 7.2

2001-12-14 Thread James Chuang

Hello:

I'm upgrading from Tomcat 3.2.3 to Tomcat 3.3.  I have tomcat running
standalone right now, serving up samples.  So that is easy.  Now, I'm trying
to hookup to apache.

I decided to try and build mod_jk from scratch, even though I found some
binaries already.  But, I'm running into build problems.

Has anyone done this on RH 7.2?  Are there docs on the wbe with tips?

Here is the error I ran into
==
$ ./build-unix.sh
APACHE_HOME=/usr/sbin
Compiling mod_jk
gcc -DLINUX=22 -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -O2 -march=i
386 -mcpu=i686 -fPIC -DE
API_MM_CORE_PATH=/var/run/httpd.mm -fpic -DSHARED_MODULE -I/usr/include/apac
he -I../common -I/usr/jd
k130/include  -c mod_jk.c
/tmp/ccu6YEAY.s: Assembler messages:
/tmp/ccu6YEAY.s:10: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccu6YEAY.s:10: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccu6YEAY.s:10: Error: Rest of line ignored. First ignored character is
`,'.
/tmp/ccu6YEAY.s:504: Warning: Unrecognized .section attribute: want a,w,x

==

Thanks!

==
James Chuang
408 981 9213
[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Configureing multiple JVMs on Tomcat 3.3

2001-12-14 Thread James Chuang

Under Tomcat 3.2.3, I had 2 serverXXX.xml  files, and I started 2 instances
of Tomcat, each with it's own serverXXX.XML file.  This allowed each app to
have it's own JVM.

Looking at 3.3's documentation, it seems the right way to define contexts is
to use app_XXX.XML file in the conf directory, and let tomcat find them
directly.

Question, does each context have it's own JVM?  If not, then how should I
create multiple JVMs?  It looks like I have to go back to putting the
context definition in 2 separate server.XML files, then call them
separately, and not use the APP-XXX.XML route, which seems to be the
preferred route.

Thanks in advance.

jchuang


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Change an include file requires re-compiling all JSP that include it (?)

2001-12-11 Thread James Chuang

A couple of things you can do, both would be easier than resaving all the
JSPs

1. Delete the generated class files...

2. Touch the JSP files.


- Original Message -
From: Scott Hodson [EMAIL PROTECTED]
To: Tomcat User [EMAIL PROTECTED]
Sent: Tuesday, December 11, 2001 10:00 AM
Subject: Change an include file requires re-compiling all JSP that include
it (?)


 I come from an ASP background where we would frequently change include
files
 and see the results immediately.  However, in JSP, since JSP pages are
 compiled into servlet classes, if I change an include file the JSP file
 including it won't get re-compiled because the JSP hasn't changed, just
the
 include file.  Even if I restart Tomcat it still won't recompile the JSPs.
 So for now every time I make a change to an include file I have to re-save
 all of my JSPs so Tomcat forces a recompile.  That's a big pain.

 Can somebody help me out here?  Is there a way to force re-compilation of
 JSPs if the files they include ever change?
 ___

 Scott Hodson
 (949) 709-4496 office
 (949) 709-3890 fax
 [EMAIL PROTECTED]
 http://www.ubero.com





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Change an include file requires re-compiling all JSP that include it (?)

2001-12-11 Thread James Chuang

 1) Where do they go?  I don't see them anywhere under my webapp's folder
(I
 thought they go in WEB-INF/classes but they're not there)

 2) Blech, that's what I do now.  If I have 100 JSP files all including the
 same header file I'm doomed!

Under Unix, it would be simply touch *.jsp, no need to do them
individually




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Sharing sessions - URGENT

2001-11-29 Thread James Chuang

In my setup, I have Apache listening on port 80 and 443, with the request
intercept that directs all tomcat requests to the same Tomcat 3.2 instance.
So there is no "sharing" of session at all, just one Tomcat instance serving
up both secured and non-secured pages through Apache.

Do you have 1 or 2 instances of Tomcat running?  Can 1 instance of tomcat
listen on multiple ports?  If you have 2 instances, and you want to share
them, I would guess you may need to write your own session manager.

jchuang

- Original Message -
From: "Oto Buchta" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 29, 2001 12:17 AM
Subject: Sharing sessions - URGENT


Once again,
Can somebody teel me, if is it posiible to share sessions between SSL and
noncrypted parts of the web?
I'm using Tomcat 4.0 running on ports 80 (public) and 443 (SSL).
Thanks very much for any answer (flames are permitted:-) )
--
Oto 'tapik' Buchta, [EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Auto load a servlet

2001-11-29 Thread James Chuang

Create a real simple index.html, and have it do a onLoad like this...

HTML
SCRIPT language=JavaScript
function redirect() {
window.location.href = http://localhost:8080/webstation/servlet/WebStation;
}
/SCRIPT
BODY onLoad=redirect() 
Redirecting ...
/BODY
/HTML

Then setup your web server to serve up index.html by default.


- Original Message -
From: Bret Farris [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 29, 2001 1:32 PM
Subject: Auto load a servlet


I have a servlet that can be loaded by going to
http://localhost:8080/webstation/servlet/WebStation
The servlet, WebStation.class, is in the directory:
webstation\WEB-INF\classes.  WebStation.class calls two other servlets,
BtmFrame.class and TopFrame.class, which in turn load and display in a
browser html files from the webstation directory.

What I want to do is have the user enter http://localhost:8080 into their
browser, and run the above servlet, as if they entered the link above.  Is
there a way to do this?  I have tried to use mapping with as many different
combinations as I can think of, but nothing has worked.

Thanks,
Bret



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Configuring Tomcat 3.2.3 to access Oracle 8i backend

2001-11-27 Thread James Chuang

Raymond:

Your Oracle distribution should come with the JDBC drivers you need,
classes111.zip or classes12.zip.  They should be in your
$ORACLE_HOME/jdbc/lib directory.

Put them in your classpath, and you can write the JDBC code to access them
in a servlet.  I guess you can put the code to do so in a JSP directly for
playing around with it.  But you really want to put DB stuff in a server
side process of some sort, as that will keep the connections around for
pooling, less initial page rendering performance hit, better architecture,
etc

Browse the Professional Java Server Programming book published by WROX.  It
is pretty good with the JSP, servlets, and JDBC stuff.

jchuang

- Original Message -
From: Raymond Reid [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 27, 2001 7:46 AM
Subject: Configuring Tomcat 3.2.3 to access Oracle 8i backend


 Hello,
 I currently have Apache 1.3.2 configured together with Tomcat 3.2.3
 running on windows NT 4.0 Service pack 5, and when I remotely access
 html pages that
 execute simple JSP's (hello world looping 10 times etc...) everything
 works fine.  On a second computer I have Oracle 8i running on Linux Red
 Hat 6.2, and have
 been successful accessing the database from NT using sqlplus.

 My question is what modifications do I have to make to Apache/Tomcat to
 obtain access to the Oracle database via JSP, and what drivers do I
 need?

 I've searched the Web, and referenced several books, but I just can't
 find the information that I need.

 Thank you,
 Raymond Reid


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: cannot execute binary file

2001-11-14 Thread James Chuang

You can set TOMCAT_OPTS in your environment, and tomcat will use them as
part of it's startup env. When I added the classes12.zip to my TC
environment, I just added it directly to the tomcat.sh as well, and it works
fine.

Why don't you put together a small test program that loads the driver, and
just run it in Java and see if it works?  If it works, then you know it's
not the driver.

jchuang

- Original Message -
From: Noble Long [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 7:58 AM
Subject: Re: cannot execute binary file


 I actually added it to the tomcat.sh (dirty I know) but I wanted to make
 sure it was definitely loaded. But even when I add it to /etc/profile or
 /root/.bashrc, /root/.cshrc I get the same messages, the files must have
 been getting corrupted in transfer.

 Where is TOMCAT_OPTS?

 Noble
 - Original Message -
 From: James Chuang [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, November 13, 2001 7:58 PM
 Subject: Re: cannot execute binary file


  Oracle JDBC thin drivers are supposed to be used as .zip.  I've never
had
 to
  uncompress them, neither on NT, Solaris, or Linux.
 
  The question is, why is tomcat trying to execute that file?  It sounds
 like
  there is something wrong with the startup command.  How did you add it
to
  your classpath?  in TOMCAT_OPTS?
 
  jchuang
 
  - Original Message -
  From: Eric Strain [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, November 13, 2001 5:36 PM
  Subject: Re: cannot execute binary file
 
 
   Hi:
   I hate to be simplistic, but, is your classes12.zip file still
 compressed?
   If so just unzip it to a safe location and alter your classpath
  
  
   From: Noble Long [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: cannot execute binary file
   Date: Tue, 13 Nov 2001 14:41:47 -0600
   
   I am using the Oracle jdbc thin client in my application. I added it
to
  my
   classpath /usr/local/classes12.zip , but when I start Tomcat I am
  getting -
   
   bin/tomcat.sh: /usr/local/classes12.zip: cannot execute binary file
   
   I tried other jar, files, etc. and everyone I transefered either in
  binary
   mode or ascii via FTP, XMODEM or ZMODEM gives me the same message.
   
   Is my file being corrupted between windows and linux. I am working
with
 a
   remote telnet session so I can't exactly download from Oracle's
website
  to
   that machine. Funny thing is ... I have the same Red Hat 6.2
 environment
   here except I'm using tomcat 3.2.3 instead of 3.2.1 (would it make a
   difference?)
   
   Noble
  
  
   _
   Get your FREE download of MSN Explorer at
 http://explorer.msn.com/intl.asp
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: cannot execute binary file

2001-11-13 Thread James Chuang

Oracle JDBC thin drivers are supposed to be used as .zip.  I've never had to
uncompress them, neither on NT, Solaris, or Linux.

The question is, why is tomcat trying to execute that file?  It sounds like
there is something wrong with the startup command.  How did you add it to
your classpath?  in TOMCAT_OPTS?

jchuang

- Original Message -
From: Eric Strain [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 13, 2001 5:36 PM
Subject: Re: cannot execute binary file


 Hi:
 I hate to be simplistic, but, is your classes12.zip file still compressed?
 If so just unzip it to a safe location and alter your classpath


 From: Noble Long [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: cannot execute binary file
 Date: Tue, 13 Nov 2001 14:41:47 -0600
 
 I am using the Oracle jdbc thin client in my application. I added it to
my
 classpath /usr/local/classes12.zip , but when I start Tomcat I am
getting -
 
 bin/tomcat.sh: /usr/local/classes12.zip: cannot execute binary file
 
 I tried other jar, files, etc. and everyone I transefered either in
binary
 mode or ascii via FTP, XMODEM or ZMODEM gives me the same message.
 
 Is my file being corrupted between windows and linux. I am working with a
 remote telnet session so I can't exactly download from Oracle's website
to
 that machine. Funny thing is ... I have the same Red Hat 6.2 environment
 here except I'm using tomcat 3.2.3 instead of 3.2.1 (would it make a
 difference?)
 
 Noble


 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Get tomcat to top accepting sessions?

2001-11-12 Thread James Chuang

Mike:

Seems like you can just have your servlet redirect requests that requires
starting of a new session.  It's a bit more expensive, but you can direct
them to a JSP page that has a nice error msg to come back in 15 minutes or
something

jchuang

- Original Message -
From: Mike Comb [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 12, 2001 11:53 AM
Subject: Get tomcat to top accepting sessions?


 Hi, is there any way to get tomcat to stop accepting new sessions, but
 allow active sessions to continue?  I am trying to figure out how to
 gracefully shutdown tomcat without kicking current users off.

 Thanks,
 -Mike

 ---
 Mike Comb
 Lead Engineer
 SoftCoin, Inc
 [EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: JDBC Problem

2001-10-25 Thread James Chuang

Can't see how this is a tomcat question, but the Oracle connect string
should be:

jdbc:oracle:thin:@hostname:port:DBID

so using your example, it should be something like:

jdbc.oracle:thin:@hostname:1521:dbname


- Original Message -
From: The Duke [EMAIL PROTECTED]
To: Tomcat-user Mailinglist [EMAIL PROTECTED]
Sent: Wednesday, October 24, 2001 3:26 AM
Subject: JDBC Problem


 When I want to open a connection to the oracle database I get a sql
exception and the message that the Network Adapter could not establish the
connection.

 I use following :
 - oracle.jdbc.driver.OracleDriver
 - jdbc:oracle:thin://hostname/dbname

 Can anyone help?

 Dennis


 Make a difference, help support the relief efforts in the U.S.
 http://clubs.lycos.com/live/events/september11.asp