RE: Testing tomcat with IIS installed

2002-11-14 Thread Jay Gardner
Hi Mary,

By default tomcat installs on port 8080. Try http://localhost:8080
http://localhost:8080/  in your browser. Apparently, you have IE installed
on your server running on port 80.

--JG

-Original Message-
From: Powers, Mary E [mailto:Mary.Powers;pnl.gov]
Sent: Tuesday, November 12, 2002 7:44 PM
To: '[EMAIL PROTECTED]'
Subject: Testing tomcat with IIS installed

I just installed jakarta-tomcat-4.1.12 and j2sdk1.4.1_01 on a Windows XP
box.  I am a neophyte.   I started tomcat, but when I  open
http://localhost/ http://localhost/  I keep getting an IIS web page.  It
seems to be pointing to the inetpub directory.  Can you tell me what I
should do to get the browser point to
C:\jakarta-tomcat-4.1.12\jakarta-tomcat-4.1.12\webapps\ROOT?
TIA.
. . . . . . . . . . . . . . . . . . . . . . . . . .
Mary Powers
Information Sciences  Engineering
Pacific Northwest National Laboratory
509.375.2148



RE: Tomcat and select multiple

2002-09-03 Thread Jay Gardner

On get or post should pass array of values with the name as the array
identifier. The array values are loaded in the order in which they are found
in your html. You can retrieve the array using Sting[] nameArray =
getParameterValues(name);

--Jay Gardner

-Original Message-
From: Josh G [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 02, 2002 7:02 PM
To: Tomcat Users List
Subject: Tomcat and select multiple

Quick question, what's tomcat do when multiple form values are posted under
the same name, like in a select multiple, or two checkboxes with the same
name?

--
-Josh


And can you tell me, doctor, why I still can't get to sleep?
And why the Channel Seven chopper chills me to my feet?
And what's this rash that comes and goes, can you tell me what it means?
God help me, I was only nineteen.



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


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




RE: sweeping stale connections - Commons DBCP and Tomcat 4.1.9

2002-08-27 Thread Jay Gardner

Hi Paul,

I don't have experience with this pool, but I have experienced this
disconnection problem with mysql. Got around it using the mysql parameter
autoReconnect=true. I would suggest trying either of the following:

 parameter
   nameautoReconnect/name
   valuetrue/value
/parameter

or

parameter
  nameurl/name
  valuejdbc:mysql://localhost:3306/javatest?autoReconnect=true/value
/parameter

If one is successful, please report back so that we know if it worked for
you or not.


Regards,

--Jay Gardner

-Original Message-
From: Paul Phillips [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 10:04 PM
To: Tomcat Users List
Subject: sweeping stale connections - Commons DBCP and Tomcat 4.1.9

I'm using Tomcat 4.1.9.  I have been having a problem with the DBCP jdbc
connection pool when used with MySQL.  Apparently MySQL kills off stale
connections after an 8 hour period.  According to Mark Matthews (developer
of the jdbc-mysql driver), I need to configure the pool to sweep out the
stale connections, and initiate new ones.

I have looked and looked in vain for documentation for DBCP that would
explain how to set the configuration in my Tomcat server.xml file (using
JNDI) that would enable this.  I can't find anything.  I've tried examining
the source of DBCP, but I'm afraid that I can't figure it out.

My Tomcat server.xml file uses this configuration below, which is right out
of:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-ho
wto.html

From what I can tell, there are other parameters that  I can enter to force
the sweeping of stale connections.  However, I don't know what they are, or
how to use them.  If anyone can give me an example of the correct syntax
here, I would be very grateful, ( since my webapp dies every night, due to
this problem!)

Thanks --

Paul Phillips

(excerpt of server.xml...)

Context path=/DBTest docBase=DBTest
debug=5 reloadable=true crossContext=true

  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_DBTest_log. suffix=.txt
 timestamp=true/

  Resource name=jdbc/TestDB
   auth=Container
   type=javax.sql.DataSource/

  ResourceParams name=jdbc/TestDB
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  namemaxActive/name
  value100/value
/parameter
parameter
  namemaxIdle/name
  value3/value
/parameter
parameter
  namemaxWait/name
  value100/value
/parameter
parameter
 nameusername/name
 valuejavauser/value
/parameter
parameter
 namepassword/name
 valuejavadude/value
/parameter

parameter
   namedriverClassName/name
   valueorg.gjt.mm.mysql.Driver/value
/parameter

parameter
  nameurl/name
  valuejdbc:mysql://localhost:3306/javatest/value
/parameter
  /ResourceParams
/Context


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


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




RE: OUT OF MEMORY ERROR

2002-08-26 Thread Jay Gardner

Hi Pat,

Not closing a database connection should not run you out of memory, unless
you have ALOT of traffic or no memory to begin with. Connections should time
out after a period of time, if you have relinquished to reference to them.
It is obviously best to close them explicitly when you are finished with
them.

How long does it take before you run out of memory? I seem to recall that
older versions of SUN's jdk had memory leaks when compiling JSP pages. Do
you only run out of memory after new JSP pages have been loaded or existing
ones have been changed? Or is this a slow leak that has some sort of
predictable behavior, like it runs out of memory three days after a restart,
etc...

Could you give more info? Without it, we are just guessing.

--Jay Gardner

-Original Message-
From: Patrick Codere [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 4:15 PM
To: 'Tomcat Users List'
Subject: OUT OF MEMORY ERROR

Hi everyone,

I have been getting this error for the past few weeks without
solving the issue.  But I just found out that I had forgotten to close a
database connection.  Could that have been the problem?  Time will tell, but
what exactly happens when you don't close a db connection?

Thanks for your help.

Pat


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




RE: Tomcat 4 Suse 8

2002-08-01 Thread Jay Gardner

I am running TC4.0.4 on SuSE 8.0 without problems.

--JG

-Original Message-
From: Januski, Ken [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 5:25 PM
To: Tomcat Users List
Subject: RE: Tomcat 4  Suse 8

Steve,

I know it's possible. I mainly run Tomcat on W2K right now but have also
experimented with it on Suse 8.0. Unfortunately I must have screwed
something up because it's no longer working. But I'm sure I did have it
working for awhile, nothing sophisticated but at least I know it can work.

Sorry I can't give you much more info than that.

Ken



-Original Message-
From: Steve Russell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 1:38 PM
To: Tomcat Users List
Subject: Tomcat 4  Suse 8


I gave up on trying to get Tomcat 4 to work with Suse 7.2


Has anyone gotten tomcat 4.* to work on suse 8?

Steve



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

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


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




RE: tomcat doesn't find http://java.sun.com/dtd/web-app_2_3.dtd

2002-05-13 Thread Jay Gardner

Post the web.xml file.

--JG

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 8:21 AM
To: [EMAIL PROTECTED]
Subject: tomcat doesn't find http://java.sun.com/dtd/web-app_2_3.dtd

Hi,
I've created a new context for my apps. All works fine but when I add a
web.xml file in my /WEB-INF, Tomcat write an XmMapper Error (appears when I
launch Tomcat).
What the pb???
Thanks
Jc


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


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




RE: Tomcat Successes

2002-05-10 Thread Jay Gardner

Just send the message to [EMAIL PROTECTED]

--JG

-Original Message-
From: Caswell, Jeffrey non Unisys [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 6:25 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Successes

Sorry Mr. JG!  I am not a terrorist.  How do you start a new thread?

-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 3:32 AM
To: Tomcat Users List
Subject: RE: Tomcat Successes


Please do not high-jack threads this way. If you wish to ask a new question
or make a new comment start your own thread.

Thanks,

--JG

-Original Message-
From: Caswell, Jeffrey non Unisys [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 08, 2002 2:23 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat Successes

I am brand new to this Tomcat-Apache world and have read enough to have a
headache.  Is there any single source that tells you how to configure the
new Catalina/Tomcat with Apache, complete, with examples?  The jakarta site
is a mess and with all the different versions and information all over the
internet, I can't make any sense out of it.  Can anyone help me get started
configuring tomcat and apache to work together; i.e. not a stand-alone
configuration?

Thanks!

-Original Message-
From: Joel Baker [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 08, 2002 4:14 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat Successes




Rick Fincher [EMAIL PROTECTED] wrote in message
news:00b001c1f6aa$86665090$117a48c7@rickspc...
| Changing one of our apps from a Java based SQL DB to a high performance
| native code SQL DB made a big difference.  The users saw a 2x to 3x
speedup.

When you say Java based SQL DB do you mean a database that is written in
Java, as opposed to a native code database like PostgreSQL or MySQL with a
JDBC interface?
Or are you saying that JDBC is much slower than a native interface to a
native database.

Joel.


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

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


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

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


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




RE: starting from jar vs. bat

2002-05-10 Thread Jay Gardner

Are you certain that TOMCAT_HOME is set correctly? Sorry if tomcat path
below if a reference to TOMCAT_HOME.

--JG

-Original Message-
From: Robert Priest [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 12:23 PM
To: 'Tomcat Users List'
Subject: RE: starting from jar vs. bat

OS Win2k
jdk 1.3.1
tomcat path: contains no spaces.

-Original Message-
From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 1:57 PM
To: Tomcat Users List
Subject: Re: starting from jar vs. bat


environment? os?

are you on windows with a tomcat path that has spaces in it?

or for that matter on any system with tomcat path that has spaces in it?



On 5/9/02 10:49 AM, Robert Priest [EMAIL PROTECTED] wrote:

 I am having a problem whenever I start tomcat with the startup script and
I
 wonder if anyone knows anything about this.
 when I use startup.bat I get :


 ContextConfig[/slide]: Scanning library JAR files
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/crimson.jar): java.io.IOException: The system
 cannot find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/hsqldb.jar): java.io.IOException: The system
 cannot find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/jaxp.jar): java.io.IOException: The system
cannot
 find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/jdom.jar): java.io.IOException: The system
cannot
 find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/jta.jar): java.io.IOException: The system cannot
 find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/pwslide-app.jar): java.io.IOException: The
system
 cannot find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/slide-kernel.jar): java.io.IOException: The
system
 cannot find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/slide-roles.jar): java.io.IOException: The
system
 cannot find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/slide-stores.jar): java.io.IOException: The
system
 cannot find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/slide-webdavservlet.jar): java.io.IOException:
The
 system cannot find the path specified


 However if I start tomcat by calling bootstrap.jar, i don't receive
these
 errors.

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



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

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


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




RE: starting from jar vs. bat

2002-05-10 Thread Jay Gardner

Sorry, I meant CATALINA_HOME.

-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 10:32 AM
To: Tomcat Users List
Subject: RE: starting from jar vs. bat

Are you certain that TOMCAT_HOME is set correctly? Sorry if tomcat path
below if a reference to TOMCAT_HOME.

--JG

-Original Message-
From: Robert Priest [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 12:23 PM
To: 'Tomcat Users List'
Subject: RE: starting from jar vs. bat

OS Win2k
jdk 1.3.1
tomcat path: contains no spaces.

-Original Message-
From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 1:57 PM
To: Tomcat Users List
Subject: Re: starting from jar vs. bat


environment? os?

are you on windows with a tomcat path that has spaces in it?

or for that matter on any system with tomcat path that has spaces in it?



On 5/9/02 10:49 AM, Robert Priest [EMAIL PROTECTED] wrote:

 I am having a problem whenever I start tomcat with the startup script and
I
 wonder if anyone knows anything about this.
 when I use startup.bat I get :


 ContextConfig[/slide]: Scanning library JAR files
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/crimson.jar): java.io.IOException: The system
 cannot find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/hsqldb.jar): java.io.IOException: The system
 cannot find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/jaxp.jar): java.io.IOException: The system
cannot
 find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/jdom.jar): java.io.IOException: The system
cannot
 find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/jta.jar): java.io.IOException: The system cannot
 find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/pwslide-app.jar): java.io.IOException: The
system
 cannot find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/slide-kernel.jar): java.io.IOException: The
system
 cannot find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/slide-roles.jar): java.io.IOException: The
system
 cannot find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/slide-stores.jar): java.io.IOException: The
system
 cannot find the path specified
 2002-05-09 13:45:57 ContextConfig[/slide]:
 tldConfigJar(/WEB-INF/lib/slide-webdavservlet.jar): java.io.IOException:
The
 system cannot find the path specified


 However if I start tomcat by calling bootstrap.jar, i don't receive
these
 errors.

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



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

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


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


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




RE: Best practices for deployment?

2002-05-10 Thread Jay Gardner

This is cool!

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 4:00 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Best practices for deployment?


On Thu, 9 May 2002, Sean LeBlanc wrote:

 Date: Thu, 9 May 2002 15:22:44 -0600
 From: Sean LeBlanc [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
[EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Best practices for deployment?

 I'm trying to figure out the best way to deploy an application...I see
 the manager application has a way to deploy the application, but the war
 file or tree has to be on the server deployed to, correct? What do you
 guys do in testing and/or production environments? Make a tarball and
 scp or ftp it over, and then untar there?

 It'd be *really* cool to get Ant to automate a deploy to Tomcat if
 possible.


Look no farther than the 4.1.1 test release (or any very recent nightly
build), and you will get both of these wishes granted:

* Includes custom Ant tasks that interact with the Manager webapp.

* The /deploy command (and corresponding deploy task) can upload
  a war file to a remote Tomcat server.

 Thanks,
 Sean

Craig


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


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




RE: Session Problem - URGENT!!!!

2002-05-10 Thread Jay Gardner

Hi Rajesh,

Are you using JSP or servlet? In the JSP the session object is implicitly
available to you. You do not need to set it up the same way that you do for
a servlet.


JSP Example:
String myvalue = jgardner;
session.setAttribute(username, username);



Servlet Example:
HttpSession session = request.getSession(true);
session.setAttribute(username, username);

In both examples you do not need to set the key and value in a different
method. This is done with one call to setAttribute(mykey,myobject); When
you want to grab an object out of the session object, be sure to cast it to
the appropriate object type.

Example:
String username = (String) session.getAttribute(username);

By the way, the getValue() and setValue() methods have been deprecated.


Hope this helps!

--JG

-Original Message-
From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 1:10 AM
To: Tomcat Users List
Subject: Session Problem - URGENT

Hi All,

 I am having a problem with the session objects, let me first explain how we
have used the session object in our application

we have an application which is initalizing an 'SESSION' object when the
user log's into the system.
This object is used to store three attributes,
1) we have used 'session.setAttribute()' and 'session.setValue()' methods
for creating key pair value objects in the session.
2) We have also used the 'session.getAttribute()' and 'session.getValue()'
for retriving the data from the session object.
3) We have not used the 'session.removeAttribute()' any where in our
application.
4) But in all pages, to check the session object validity, we have used
'request.getSession()'.

Does calling this creates a attribute set in a old session object to be
incorrectly re-written?.

The problem:
We are getting this following problem randomly,

The session object exists, but the attributes inside the session object
unbinds and returns a null value!!.


We are using 'Apache1.3.20+Tomcat3.2.2' for our application. we have also
set our 'setMaxInactiveInterval(3)' when creating the session object for
the first time.

What is the cause of the attributes being removed from the session object,
or in case is the session object itself is created as a new object during
'request.getSession()' calls and causing this problem.

Have you people faced similar problems??.

Please post your reply on this issue, this is a very urgent issue to be
solved.

Thanks in advance

Regards
H.Rajesh
([EMAIL PROTECTED])
SSPL,India


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




RE: Loadbalancing....please Help!

2002-05-04 Thread Jay Gardner

Gabriel,

I may be totally off base, but I thought that I had heard that this type of
session management can only be done with URL re-writing and not cookies.
This allows the session ID to be passed along with the request. Anyway, I
have never done this, but since no one else seems to be responding I thought
I would at least try to be a sounding board.

--JG

-Original Message-
From: Gabriel Maffia [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 05, 2002 12:14 PM
To: 'Tomcat Users List'
Subject: Loadbalancingplease Help!

Hello all:

I´ve been struggling with this issue for quite a long time now, and I can´t
seem to find a solution.

I´m actually using this configuration:

Apache 1.3.23
Tomcat 4.0.1
Jboss 4.2.3


I´ve used mod_jk and the loadbalancer connector to connect my web server
with two other tomcat servers. Both of the tomcat servers connect to the
Jboss server.

The problem is that sessions are not mantained. Apache keeps sending me
randomly to one tomcat server or the other instead of choosing one. That
makes me lose my session id and get errors in my application.


Regarding to the tomcat servers configuration, I have my jvmroute statement
set right (I think):

in server 1:

Engine jvmRoute=tomcat1 name=Standalone defaultHost=foo.bar.com
debug=1

in server 2:


Engine jvmRoute=tomcat2 name=Standalone defaulttHost=foo2.bar.com
debug=1



the workers.properties file has this configuration:

# list the workers by name

worker.list=tomcat1, tomcat2, loadbalancer

# 
# First tomcat server
# 
worker.tomcat1.port=8009
worker.tomcat1.host=foo.bar.com
worker.tomcat1.type=ajp13#

# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the worker.
worker.tomcat1.lbfactor=50

# 
# Second tomcat server
# 
worker.tomcat2.port=8009
worker.tomcat2.host=foo2.bar.com
worker.tomcat2.type=ajp13

# Specify the size of the open connection cache.
#worker.tomcat2.cachesize

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the worker.
worker.tomcat2.lbfactor=50

# 
# Load Balancer worker
# 

#
# The loadbalancer (type lb) worker performs weighted round-robin
# load balancing with sticky sessions.
# Note:
#   If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1, tomcat2

#
# END workers.properties
#

Maybe I set the lbfactor wrong? Wich numbers should I use?

Thanks a lot for all your help so far.


Gabriel

PS: Here is a little graph of the distribution of the servers


****
*Apache web server  ** Tomcat2 server   *
*Tomcat1 server   **  Jboss 2.4.3   *
*foo.bar.com** foo2.bar.com  *
****


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




RE: How to force compilation of Jspz at startup

2002-05-04 Thread Jay Gardner

Is this so that everything is ready to go for the first user?

If so, you could pre-compile you JSPs using jspc. I have done this in an ANT
build script and have gotten it down to a two step process. You still have
to manually add the generated servlet definitions and mappings to your
web.xml file. Hopefully this will be changed in the future.

The other option is to write your own script to run through the URLs with
the ?jsp_precompile=ture parameter appended to the end.

Ex. http://server:8080/context/myjso.jsp?jsp_precompile=true.

This compiles the page without running it. I am with Abraham though, if you
find a better way let us know.

--JG

-Original Message-
From: Abraham Fathman [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 04, 2002 12:39 AM
To: 'Tomcat Users List'
Subject: RE: How to force compilation of Jspz at startup

Don't know of a way... Sorry. If you find out let me know - it would be
nice to take that hit during a maintenance window...

-Original Message-
From: Gurmeet [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 04, 2002 2:30 AM
To: Tomcat Users List
Subject: RE: How to force compilation of Jspz at startup


I am posting this question again as I did not  get any response.

How do I inform Tomcat to compile all the JSPz in a particular context
on startup.

We can do this in weblogic by specifying the following in its web.xml.

context-param
param-nameweblogic.jsp.precompile/param-name
param-valuetrue/param-value
/context-param

I am sure there is some way we can do this in Tomcat also.

Thanks in advance.

Gurmeet
-Original Message-
From: Gurmeet [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 03, 2002 12:34 PM
To: Tomcat Users List
Subject: How to force compilation of Jspz at startup


Hi all,

How do I inform Tomcat to compile all the JSPz on startup.

Regards,
Gurmeet



--
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: JSP-pages and reloadable

2002-05-04 Thread Jay Gardner

I have run into similar problems before. It turned out to be one of two
things. Either I had to force my browser to reload or I was making changes
in a JSP that was an include for another JSP. I am sure you have tried the
first. I don't know if the second is what you are doing, but if it is, you
will need to save the outer JSP so the timestamp changes. Then both the
outer and any included JSPs will be re-compiled. Other than that I don't
know what the problem could be.

Regards,

--JG


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 04, 2002 10:58 AM
To: Tomcat Users List
Subject: Re: JSP-pages and reloadable

Mattias Brändström wrote:

 I have a simple question. Is there a way to get Tomcat to handle
 JSP-pages the same way it does classes in WEB-INF when you set
 reloadable=true in your Context-element. It is a bit cumbersome to
 restart tomcat and apache every time I have made a change to my
JSP-page...
 
  You don't have to restart Tomcat /Apache when the jsp-page is changed.
  Just reload it in your browser.
 
 For some reason that doesn't work for me. Is there some kind of special
 configuration that needs to be done or should that work automaticaly?

I think it's ...

  Context ...  reloadable=true ... /

P.



--
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: Upgrading to 4.1.x (I hope)

2002-05-03 Thread Jay Gardner

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.0-alpha/

--JG

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 10:45 AM
To: Tomcat Users Mailing List
Subject: Upgrading to 4.1.x (I hope)

I've been looking on the Tomcat site to determine where I should download
the version I desire - I see the 3.x and 4.0.x sections, but nothing for
4.1.x.  Am I blind?

If someone could be generous and either give me explicit navigational
instrutions or (ideally) a link to the nightly builds directory, I'd be most
appreciative.  Currently I run 4.0.1 but want to upgrade to the 4.1.x series
in order to move datasources from my apps to Tomcat.  I don't want to use a
4.0.x version becasue ... well I don't =)

Any information is greatly appreciated!

Thanks so much!

Eddie


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




RE: db connections and Abusive refresh

2002-05-01 Thread Jay Gardner

If you are not going to use MVC is there any reason why you can't do your
database accesses at the top of your JSP and the put the results in
variables to be output below in the page? Sorry, if I don't understand your
question, but it sounded like you were holding a database connection open
until a scriplet closes it at the bottom of the page.

--JG

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 1:31 PM
To: Tomcat Users List
Subject: Re: db connections and Abusive refresh

Hello Laurent,

Yes,

Here is an example.  Take notice of how connections, result sets, and
prepared statements are guaranteed to be closed in the finally
blocks:


public Site getSite( int _id ) throws SQLException
{
Connection conn = null;
Site newSite= null;

try {
conn = openConn();
newSite = getSite(_id, conn);
closeConn(conn);
return newSite;
}
catch(SQLException e) {
System.out.println(MSG_ERROR_CONNECTION + e.getMessage());
throw e;
}
finally {
if (conn != null)  try { closeConn(conn); } catch(Exception e2)
{}
}
}

//  Get a single site by id
public Site getSite( int _id, Connection _conn ) throws SQLException
{
PreparedStatement pstmt = null;
ResultSet rs = null;
Site newSite = null;

String query = SELECT id, url, description, created, updated,
deleted  +
   FROM site WHERE id = ?;

try {
pstmt = _conn.prepareStatement(query);
pstmt.setInt(1,_id);
rs = pstmt.executeQuery();

while (rs.next()) {
newSite = Site.fromResults(rs);
if (debug) System.out.println(\n + newSite);
}
rs.close();
pstmt.close();
return newSite;
}
catch(SQLException e) {
System.out.println(MSG_ERROR_RESULTSET + e.getMessage());
throw e;
}
finally {
if (rs != null)try { rs.close(); }catch(Exception e2) {}
if (pstmt != null) try { pstmt.close(); } catch(Exception e3) {}
}
}


You can also use Syncronization if it is still a problem.

Jake

Wednesday, May 01, 2002, 2:23:17 PM, you wrote:


LFP Hi all,

LFP We are experiencing a few problems with our DB connection code and an
LFP abusive usage of the F5/refresh function on the client side.

LFP Each of our jsp actually connects to the db at the top and disconnects
LFP at the bottom. When someone uses the refresh in the browser it leaves
LFP connections hanging/sleeping in MySQL. Is there anyway to avoid this?

LFP Thanks for the help,
LFP Laurent




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



--
Best regards,
 Jacobmailto:[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: My Tomcat server doesn't run??????

2002-04-25 Thread Jay Gardner



-Original Message-
From: Suresh Akula [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 11:17 AM
To: [EMAIL PROTECTED]
Subject: RE: My Tomcat server doesn't run??

these are the steps i took
1)extracted jakarta-tomcat-4.0.3.zip onto D: drive
2)set environment variable JAVA_HOME = D:\j2sdk1.4.0
2)Run startup.bat from D:\jakarta-tomcat-4.0.3\bin folder
I get the following error:

D:\jakarta-tomcat-4.0.3\binstartup
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
The system cannot find the batch label specified - end
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   D:\jd2sdk1.4.0
 looks like JAVA_HOME is not what you think.


followed by error dialog

-Djava.endorsed.dirs=(Title of the error dialog)
windows can't find '-Djava.endorsed.dirs='.. make sure you typed the name
correctly, and then try again.
To search for a file, click the Start button, and then click Search

Once i click ok button on this error dialog i get the last error line on
command prompt which is

The system cannot find the file -Djava.endorsed.dirs=.

I have no clue. My friend runs the same tomcat on windows 200 and it works
fine. i doubt setting up variables in windows XP???

Please help me

Thanks


From: Lecaros, Noel [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: My Tomcat server doesn't run??
Date: Thu, 25 Apr 2002 13:02:53 -0400

Could you outline the steps you took?  We can help you better if we knew
exactly what you did.

Cheers,
Sponks

-Original Message-
From: Suresh Akula [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 9:54 AM
To: [EMAIL PROTECTED]
Subject: Re: My Tomcat server doesn't run??


I am beginner on tomcat..i havent got any solution yet..i am running tomcat
server on windows XP and the error is JAVA_HOME is not defined..when i set
that variable to the parent directory where my java is installed(JAVA_HOME
=

D:\j2sdk1.4.0) still it doesn't work but the error message is JAVA_HOME is
not defined correctly..help on this is highly appreciated
THANKS MUCH


 From: Suresh Akula [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: My Tomcat server doesn't run??
 Date: Thu, 25 Apr 2002 15:17:28 +
 
 Hi All
 I have downloaded jakarta-tomcat-3.1.1.zip and installed tomcat onto my
 D:drive. When i start the tomcat server by clicking on
 D:\jakarta-tomcat\bin\starttup.bat ..server doesn't run..wut is the
 problem???. I tried to download the latest version jakarta-tomcat-4.0.3
it
 also had the same problem. I am using tomcat to implement SOAP services
 using XML.Can anyone help me why the server doesn't run.My aim is if
server
 runs ..i will configure server to use apache soap and set the server
 classpath to use apache xerces and soap.jar to implement soap services
 using
 xml in tomcat..
 Thanks much in advance
 
 
 
 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 




_
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]





_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


--
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: Tomcat 4 jsp compiler error. Class in imported package notfound.

2002-04-25 Thread Jay Gardner

I don't know how much of this message is cut-n-paste, but it doesn't seem
that the case of the class name is consistent all the way through your
message.

  import=com.pdd.utils.ihra.IhraRoutines%
  class:
/webapps/ihra/classes/com/pdd/utils/ihra/ihraRoutines.class


--Jay Gardner

-Original Message-
From: pducuron (kgb) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 8:24 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 jsp compiler error. Class in imported package
notfound.

Sorry, I forgot to put WEB-INF my my explanation. I'm using the normal
aplication structure /webapps/ihra/WEB-INF/classes/

  any idea what's wrong in my tomcat configuration ?

  Pablo.


- Original Message -
From: Phillip Morelock [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, 25. April 2002 19:15
Subject: Re: Tomcat 4 jsp compiler error. Class in imported package
notfound.


 try using a WEB-INF directory in your app.


 On 4/25/02 7:10 PM, pducuron (kgb) [EMAIL PROTECTED]
 wrote:

  I'm upgrating to tomcat 4.0.3 from 3.2.1, I placed my application into
  /webapps but when tomcat compiles my jsp pages it can't find classes I
have
  imported in my jsp page.
 
  error:
  ===
  org.apache.jasper.JasperException: Unable to compile class for JSPNote:
  sun.tools.javac.Main has been deprecated.
 
  C:\Program Files\Apache Tomcat 4.0\work\localhost\ihra\pr$jsp.java:9:
Class
  com.pdd.utils.ihra.IhraRoutines not found in import.
  com.pdd.utils.ihra.IhraRoutines;
  ^
 
  jsp page:/webapps/ihra/pr.jsp
  jsp header:%@ page language=java
  import=com.pdd.utils.ihra.IhraRoutines%
  class:
/webapps/ihra/classes/com/pdd/utils/ihra/ihraRoutines.class
 
  If I copy
   webapps/ihra/pr.jsp   to webapps/examples/
  and /webapps/ihra/classes/com/pdd/utils/ihra/ihraRoutines.class   to
  /webapps/examples/classes/pdd/utils/ihra/ihraRoutines.class
 
  and I call http://localhost/examples/pr.jsp  it works !!!  but
  http://localhost/ihra/pr.jsp doesn't work.
 
  I have defined this context in /conf/server.xml
 
Context path=/ihra docBase=ihra debug=0
 reloadable=true/
 
  I've seen people asking the same but couldn't find any answer for my
case.
  Usually the advice is to use %@ page
  import=com.pdd.utils.ihra.IhraRoutines% but I already have it that
way.
  And besides, it works under /webapps/examples but not under my app
  /webapps/ihra
 
  Am I missing some point when I deploy my application ? Is the context
tag
  all I have to include for Tomcat to be able to see my application or
there
  is something else ?
 
  Thanks,
   Pablo.
 
 
 
 
 
 
 
  --
  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: Servlet killing tracking

2002-04-24 Thread Jay Gardner

Hi,

I don't have an answer for your deadlock?? Problem, but you might try
downloading either Netbeans or Forte for Java. They have a debugger that
works well for debugging servlets. They are both free and come with an
integrated tomcat  3.2 container. With the debugger you may be able to
validate whether you have an application deadlock.

http://www.netbeans.org

Best of luck,

--Jay Gardner

-Original Message-
From: JACQUELINE Nicolas - REN ( [EMAIL PROTECTED] )
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 10:44 AM
To: Tomcat Users List
Subject: Re: Servlet killing tracking

I'm not using SingleThreadModel, and as I'm using Tomcat in a professional
context, I cant upgrade to a newer version. That's why I need to track what
makes Tomcat destroy my servlet.

Any idea ?



 it has been my experience that tomcat 3.2.x is pretty poor at managing
 the servlet lifecycle generally.  For instance, it does not respect
 SingleThreadModel at all, and i've had other funkiness like you're
 describing.

 I recommend you try a newer version of tomcat (as tomcat 4 is MUCH
 higher throughput than 3).



 At Wednesday, 24 April 2002, you wrote:

 Hi everybody,
 
 I'm using Tomcat 3.2.3 on a linux system to run a servlet-based
 service.
 This application must support a high number of connected people (about
 1000).
 
 The service works fine, but sometimes Tomcat kills my servlet (calls
 Servlet.destroy) for no reason. How could I track why Tomcat killed my
 servlet ?!
 
 Thanks,
 
 Nicolas JACQUELINE
 
 --
 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: web.xml editor

2002-04-19 Thread Jay Gardner

I use Netbeans a lot. It has xml modules that allow you to interrogate DTDs.
I guess nice fashion is somewhat subjective, but I like it.

www.netbeans.org

--Jay Gardner

-Original Message-
From: Alex Kachanov [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 7:37 AM
To: Tomcat Users List
Subject: web.xml editor

Hi, guys!

does any one knows any gui web.xml editor that shows all application
properties
in nice fasion?


and. yes I know I can edit web.xml with a Notepad, but some user interface
would be nice.



with best wishes
Alexander Kachanov

--
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: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache 2.0.35

2002-04-18 Thread Jay Gardner

Try localhost:8008 instead

--Jay Gardner

-Original Message-
From: Jeffrey Bonevich [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 5:57 PM
To: [EMAIL PROTECTED]
Subject: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache
2.0.35

Ok, on to the next set of issues!  Finally got mod_webapp compiled
properly and installed in Apache 2 (configtest returns Syntax Ok).  Then
I add the VirtualHost section:

NameVirtualHost 65.186.165.33
VirtualHost 65.186.165.33
 ServerName tomcat.bonevich.com
 DocumentRoot /usr/local/tomcat/webapps/
 WebAppConnection warpConnection warp localhost:8080
 WebAppDeploy examples warpConnection /examples
/VirtualHost

...and when I do another configtest I get errors:
[root@strider apache2]# bin/apachectl configtest
Syntax error on line 995 of /usr/local/apache2/conf/httpd.conf:
Invalid port number (p1) No Port statement found

Line 995 is the WebAppDeploy directive.  Is this mod_webapp looking for
the (now depracated) Port statement in the main body of the config?  If
so, time to update code.  If not, what am I missing?  (As a side note,
tried the VirtualHost directives with 127.0.0.1, with :80 appended, and
with just *; same error each time.)

jeff


--
Jeffrey Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com

Hwæt! Wë Gär-Dena   in geär-dagum,
peod-cyninga,   prym gefrünon,
hü ða aepelingas   ellen fremedon!


--
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: Money for Projects

2002-04-17 Thread Jay Gardner

Go away and don't come back!!

-Original Message-
From: Christopher Reed [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: OT: Money for Projects


Apologies in advance if this feels spammy.

I have been working with a few folks on a grassroots way for people to
donate money to various non-profits  projects such as Apache, Hurd,
EFF, or even to a given developer.  This donation might be in response
to some helpful feedback given by that developer in response to a
question; it might be because their name and URL were in some software
they used.  Affero takes a bit off the top for our expenses , which we
think is reasonable given the costs involved in credit card auth and the
like. The software used to deliver the service is open source.

Take a look at a the link I created below

People can go to that URL and donate money, 35% of which goes to the
Squid, 35% to XFree86 and 30% to FSF Gen Fund-GCC.

We're very interested in any comments and feedback on the
site/service. You can check it out at http://www.affero.com.
BTW, we have been told that we should lower our $15.00 minimum donation.
What do you think?

Thanks

Reed


How valuable is my contribution? Share your feedback at Affero:
http://svcs.affero.net/rm.php?r=creedp=Projects

Office: 415 371 9900
[EMAIL PROTECTED]
http://www.affero.com

--
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: Money for Projects

2002-04-17 Thread Jay Gardner

Sorry for the knee-jerk reaction! I am all for rewarding developers for
their hard work. I just don't want some organization skimming off the top
when you can just as easily contact a developer or organization directly and
donate that way. I guess I need to go find out about the service before
passing judgment.

--Jay Gardner

-Original Message-
From: Dahnke, Eric [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:09 PM
To: 'Tomcat Users List'
Subject: RE: Money for Projects


imo there's nothing wrong with what this person is putting together. what's
the harm.


-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 1:57 PM
To: Tomcat Users List
Subject: RE: Money for Projects


Go away and don't come back!!

-Original Message-
From: Christopher Reed [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: OT: Money for Projects


Apologies in advance if this feels spammy.

I have been working with a few folks on a grassroots way for people to
donate money to various non-profits  projects such as Apache, Hurd,
EFF, or even to a given developer.  This donation might be in response
to some helpful feedback given by that developer in response to a
question; it might be because their name and URL were in some software
they used.  Affero takes a bit off the top for our expenses , which we
think is reasonable given the costs involved in credit card auth and the
like. The software used to deliver the service is open source.

Take a look at a the link I created below

People can go to that URL and donate money, 35% of which goes to the
Squid, 35% to XFree86 and 30% to FSF Gen Fund-GCC.

We're very interested in any comments and feedback on the
site/service. You can check it out at http://www.affero.com.
BTW, we have been told that we should lower our $15.00 minimum donation.
What do you think?

Thanks

Reed


How valuable is my contribution? Share your feedback at Affero:
http://svcs.affero.net/rm.php?r=creedp=Projects

Office: 415 371 9900
[EMAIL PROTECTED]
http://www.affero.com

--
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: Money for Projects

2002-04-17 Thread Jay Gardner

O.K., my bad! I went and looked and this looks like a reputable site. I hope
the money does indeed go to the right places.

--Jay Gardner

-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:15 PM
To: Tomcat Users List
Subject: RE: Money for Projects

Sorry for the knee-jerk reaction! I am all for rewarding developers for
their hard work. I just don't want some organization skimming off the top
when you can just as easily contact a developer or organization directly and
donate that way. I guess I need to go find out about the service before
passing judgment.

--Jay Gardner

-Original Message-
From: Dahnke, Eric [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:09 PM
To: 'Tomcat Users List'
Subject: RE: Money for Projects


imo there's nothing wrong with what this person is putting together. what's
the harm.


-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 1:57 PM
To: Tomcat Users List
Subject: RE: Money for Projects


Go away and don't come back!!

-Original Message-
From: Christopher Reed [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: OT: Money for Projects


Apologies in advance if this feels spammy.

I have been working with a few folks on a grassroots way for people to
donate money to various non-profits  projects such as Apache, Hurd,
EFF, or even to a given developer.  This donation might be in response
to some helpful feedback given by that developer in response to a
question; it might be because their name and URL were in some software
they used.  Affero takes a bit off the top for our expenses , which we
think is reasonable given the costs involved in credit card auth and the
like. The software used to deliver the service is open source.

Take a look at a the link I created below

People can go to that URL and donate money, 35% of which goes to the
Squid, 35% to XFree86 and 30% to FSF Gen Fund-GCC.

We're very interested in any comments and feedback on the
site/service. You can check it out at http://www.affero.com.
BTW, we have been told that we should lower our $15.00 minimum donation.
What do you think?

Thanks

Reed


How valuable is my contribution? Share your feedback at Affero:
http://svcs.affero.net/rm.php?r=creedp=Projects

Office: 415 371 9900
[EMAIL PROTECTED]
http://www.affero.com

--
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: How to pre-compile JSP's ?

2002-04-10 Thread Jay Gardner

There is a tool jspc that come with the TC 4.X server that can be used to
create servlet source for you JSPs. These sources can in turn be compiled
into .class files. At the same time the jspc tool can create a web.inc file
that contains all the new servlet mappings. This can be joined with the
web.xml file in the WEB-INF directory so that the servlets will be mapped to
the jsp urls. My understanding is that these mappings take precedence and
redirect using the web.xml entries so the jsp source is never used.

I am currently trying to get this to work. I will re-post my problem below
and maybe someone will give us some feedback. Once I get this working, I
will gladly write up the process and submit it back to the project as
documentation.


REPOST:

I am trying to pre-compile my jsp using jspc.bat on win2K. The reason I want
to do this is so that JSP code can't be changed on the fly in production. I
am using TC4.0.3.

Here is how I try to do this from an ANT build script:

!-- JSPC:  pre-compile JSPs --
 target name=jspc  depends=init
  java fork=yes classname=org.apache.jasper.JspC
arg line=-uriroot d:/jboss/tomcat/webapps/smartjobs -d
d:/jboss/tomcat/webapps/smartjobs/WEB-INF/classes -p jsp -webinc
d:/jboss/tomcat/webapps/smartjobs/WEB-INF/web.inc -webapp
d:/jboss/tomcat/webapps/smartjobs /
/java
/target

*NOTE** This has the same net result as doing this:

cd %CATALINA_HOME%\bin

jspc.bat -uri d:/jboss/tomcat/webapps/smartjobs -d
d:/jboss/tomcat/webapps/smartjob/WEB-INF/classes -p jsp -webinc
d:/jboss/tomcat/webapps/smartjobs/WEB-INF/web.inc -webapp
d:/jboss/tomcat/webapps/smartjobs


***

This does build all of the .java files in
d:/jboss/tomcat/webapps/smartjobs/WEB-INF/classes/jsp, but the package name
in them is actually as follows:

package jsp.;

It is the dot that is being appended to the end of the package name. This
same dot has found its way into the web.inc file as well.

servlet
servlet-namejsp..index/servlet-name
servlet-classjsp..index/servlet-class
/servlet

servlet-mapping
servlet-namejsp..index/servlet-name
url-pattern/index.jsp/url-pattern
/servlet-mapping

I went and looked at the CommandLineContext class and saw that
getFullClassName() seems to append a . for some reason.

Anyway, has anyone else run into this?? I there something obvious that I am
doing wrong? Is more info needed before someone can help me?

Thanks in advance!

--Jay Gardner

-Original Message-
From: Christophe Reynaud [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 11:35 AM
To: Tomcat Users List
Subject: How to pre-compile JSP's ?


Do you know if there is a simple solution to pre-compile the JSP's ?
(And
to tell tomcat not to re-compile the JSP's ?)

Thanks

Jay Gardner wrote:

 There are definitely memory leaks in javac. This is a problem when jspc
 compiles your jsp code in the same JVM as the TC server.

 --Jay Gardner

 -Original Message-
 From: Christophe Reynaud [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 09, 2002 12:52 PM
 To: Tomcat Users List
 Subject: Tomcat process takes 246M whereas total java heap is 127M

 Hello,

 We use tomcat 3.3.1 on Linux RH 7.2.  JVM : IBM 1.3

 top -c tells that the tomcat threads take 246M but if we use the Java
 function totalMemory(), it tells that the JVM uses 127M for the heap.
 Where is the rest of memory ?  I expected that the JVM used more than
 only the total of the heap, but in this case it is almost the double !
 Any ideas about the reasons of this problem ?  Are there some momory
 leaks in the JVM ?

 Thanks.

 Christophe

 --
 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]




tomcat 4.0 url authentication

2002-04-10 Thread Jay Gardner

Does TC4.X support http://username:[EMAIL PROTECTED]:8080/manager/list ? I
want to authenticate to the realm this way, but it does not seem to work.

--Jay Gardner



RE: Jspc i18n

2002-04-10 Thread Jay Gardner

Are all the correct characters in the .java files that jspc creates?

--Jay Gardner

-Original Message-
From: Christian Bourque [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 12:49 PM
To: Tomcat Users List
Subject: Jspc  i18n

Hi !

I'm having a weird problem with JSPC. We have a bilingual web application
(english/french), so when I pre-compile all my jsp pages the ones which
contains french accent are all screwed up  :

Vous avez oublié votre mot de passe ? = Vous avez oubliÃ(c) votre mot de
passe
?
chaîne = chaÃ(r)ne

???

Christian



--
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: Tomcat process takes 246M whereas total java heap is 127M

2002-04-09 Thread Jay Gardner

There are definitely memory leaks in javac. This is a problem when jspc
compiles your jsp code in the same JVM as the TC server.

--Jay Gardner

-Original Message-
From: Christophe Reynaud [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 12:52 PM
To: Tomcat Users List
Subject: Tomcat process takes 246M whereas total java heap is 127M

Hello,

We use tomcat 3.3.1 on Linux RH 7.2.  JVM : IBM 1.3

top -c tells that the tomcat threads take 246M but if we use the Java
function totalMemory(), it tells that the JVM uses 127M for the heap.
Where is the rest of memory ?  I expected that the JVM used more than
only the total of the heap, but in this case it is almost the double !
Any ideas about the reasons of this problem ?  Are there some momory
leaks in the JVM ?

Thanks.

Christophe


--
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: java.lang.ClassFormatError out of the Blue

2002-04-09 Thread Jay Gardner

Are you saying that the .class files are in a source control repository? If
they are stored in CVS, make sure you check them out with the binary flag
set. (-kb) If you don't do this your .class will probably be corrupted.

--Jay Gardner

-Original Message-
From: hemant [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 2:07 PM
To: Tomcat Users List; Jason Koeninger
Subject: Re: java.lang.ClassFormatError out of the Blue

Jason

Thanks for the response. The absence of scripts in binary mode clearly
justifies the exception.

Iam trying to run it in my own Test Environment. And moreover, the .class
files are in the repository. Even if I export them, they seem to get
exported in corrupted format. Iam trying to export .Java files, delete
project from workspace/repository, and import all the java files again.
Hoping that would work.

Regards
hemant

- Original Message -
From: Jason Koeninger [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, April 09, 2002 4:56 PM
Subject: Re: java.lang.ClassFormatError out of the Blue


 This may not be the what you're having problems with, but the only time
I've seen this
 was when I was deploying via FTP and forgot to set my scripts to use
binary mode.

 Best Regards,

 Jason Koeninger
 JJ Computer Consulting
 http://www.jjcc.com

 On Tue, 9 Apr 2002 15:55:05 -0400, hemant wrote:

 I Use Tomcat 4.0.2 and  Struts 1.0.2 with VA 3.5.3
 
 Everything was perfect until, one inauspicious moment in the afternoon
when I suddenly got this exception from nowhere.
 
 I have no clue as to why and how. But I do see that this is a
ClassFormatException so, I moved the application related code (not struts)
onto another machine where I previously
 deployed my app. The app was fine on this box earlier.Now, I get the same
ClassFormatError there too so, It has to do with the code I moved.
 
 The Java API says that it is Thrown when the Java Virtual Machine
attempts to read a class file and determines that the file is malformed or
otherwise cannot be interpreted as a
 class file. 
 
 So .class file is corrupt/malformed. But which? I am trying to force a
recompile on classes by adding a space, etc.
 
 any ideas on what sould be done next if my attempt fails?
 
 
 here is the exception
 
 
 Thank You for your time
 
 hemant

---
-
 
 
 root cause
 
 java.lang.ClassFormatError
  java.lang.Throwable()
  java.lang.Error()
  java.lang.LinkageError()
  java.lang.ClassFormatError()
  java.lang.Class java.lang.ClassLoader.defineClass0(java.lang.String,
byte [], int, int, java.security.ProtectionDomain)
  java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String, byte
[], int, int, java.security.ProtectionDomain)
  java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String, byte
[], int, int)
  java.lang.Class
org.apache.jasper.servlet.JasperLoader.loadClass(java.lang.String, boolean)
  java.lang.Class
org.apache.jasper.servlet.JasperLoader.loadClass(java.lang.String)
  boolean org.apache.jasper.servlet.JspServlet.loadJSP(java.lang.String,
java.lang.String, boolean, javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse)
  void
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(javax
.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
  void
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(javax.servlet
.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean)
  void
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ervletRequest, javax.servlet.http.HttpServletResponse, java.lang.String,
 java.lang.Throwable, boolean)
  void
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletR
equest, javax.servlet.http.HttpServletResponse)
  void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
  void
org.apache.catalina.core.ApplicationDispatcher.invoke(javax.servlet.ServletR
equest, javax.servlet.ServletResponse)
  void
org.apache.catalina.core.ApplicationDispatcher.doForward(javax.servlet.Servl
etRequest, javax.servlet.ServletResponse)
  void
org.apache.catalina.core.ApplicationDispatcher.forward(javax.servlet.Servlet
Request, javax.servlet.ServletResponse)
  void
org.apache.struts.action.ActionServlet.processActionForward(org.apache.strut
s.action.ActionForward, org.apache.struts.action.ActionMapping,
 org.apache.struts.action.ActionForm,
javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
  void
org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServle
tRequest, javax.servlet.http.HttpServletResponse)
  void
org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpServlet
Request, javax.servlet.http.HttpServletResponse)
  void
javax.servlet.http.HttpServlet.service

RE: alias

2002-04-08 Thread Jay Gardner

I think this is what you are after??

servlet
servlet-namecontroller_welcome/servlet-name
servlet-classcontroller/servlet-class
init-param
param-name
event
/param-name
param-value
WELCOME
/param-value
/init-param
 /servlet

servlet-mapping
servlet-namecontroller_welcome/servlet-name
url-pattern/url/whatever/controller?event=WELCOME/url-pattern
/servlet-mapping

--Jay Gardner

-Original Message-
From: Paul Phillips [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 07, 2002 4:38 PM
To: Tomcat Users List
Subject: RE: alias

Actually, its a bit more complicated, so I don't think Jay's solution
(quoted below) will work.

I am using a security constraint with form based authentication.

This means that I have to request a servlet that is in a constrained area.
The container forwards the request to a login page outside of the
constrained area.  Once the login is processed, it goes back to the
originally requested page.

So, I have to actually have the query string passed in during the initial
login.  That is what I am trying to replace with an alias.

Paul Phillips

--On Sunday, April 7, 2002 12:09 PM -0600 Jay Gardner [EMAIL PROTECTED] wrote:

 Did you try

 servlet
   servlet-namecontroller/servlet-name
   servlet-classcontroller/servlet-class
   !--This servlet-class needs to be the actual name of the servlet.
If
 name is com.mycompany.myproject.Controller, then that is what needs to
 appear here.--
 /servlet
 servlet-mapping
servlet-namecontroller/servlet-name
   url-pattern/login/url-pattern
 /servlet-mapping

 Don't worry about the query string being passed in to the servlet. That
 will be passed by the container from the jsp to the servlet.

 Hope this helps!

 --Jay Gardner


 -Original Message-
 From: Paul Phillips [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 07, 2002 10:49 AM
 To: Tomcat Users List
 Subject: alias

 I need some generic advice...  probably really easy.

 I have written an application with a controller servlet.  The controller
 servlet is event driven - every form submit button on one of the jsp pages
 maps to
 controller?event=DOWHATEVER.  After the controller does its thing, it
 sends the puts the results in a session, and transfers control back to a
 jsp page for display.  My first attempt at MVC.

 My initial page is generated when the user types

 URL/whatever/controller?event=WELCOME

 Now I would like to make an alias that is like:

 URL/whatever/login which will map to
 URL/whatever/controller?event=WELCOME.

 What is the best way to do that?

 Not being much of an expert at the web.xml file, I tried the following
 within web.xml:

 servlet-mapping
   servlet-namecontroller/servlet-name
   url-pattern/controller/url-pattern
 /servlet-mapping

 servlet-mapping
   servlet-namecontroller?event=WELCOME/servlet-name
   url-pattern/login/url-pattern
 /servlet-mapping

 That, most assuredly, did not work.

 How should I go about doing this?

 I guess I could change the code of my servlet so that if there is no event
 definition provided, it goes to the welcome page...  But it seems that
 there should be some way to setup an alias like this.

 Thanks
 Paul Phillips

 --
 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]



___
Paul Phillips
Director of Orchestral Activities, Meadows School of the Arts
Southern Methodist University

You must sing every note you play, sing even through the rests!
Arturo Toscanini

--
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: alias

2002-04-08 Thread Jay Gardner

Or

servlet
servlet-namecontroller_welcome/servlet-name
servlet-classcontroller/servlet-class
init-param
param-name
event
/param-name
param-value
WELCOME
/param-value
/init-param
 /servlet

servlet-mapping
servlet-namecontroller_welcome/servlet-name
url-pattern/logon/url-pattern
/servlet-mapping



-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 1:43 AM
To: Tomcat Users List
Subject: RE: alias

I think this is what you are after??

servlet
servlet-namecontroller_welcome/servlet-name
servlet-classcontroller/servlet-class
init-param
param-name
event
/param-name
param-value
WELCOME
/param-value
/init-param
 /servlet

servlet-mapping
servlet-namecontroller_welcome/servlet-name
url-pattern/url/whatever/controller?event=WELCOME/url-pattern
/servlet-mapping

--Jay Gardner

-Original Message-
From: Paul Phillips [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 07, 2002 4:38 PM
To: Tomcat Users List
Subject: RE: alias

Actually, its a bit more complicated, so I don't think Jay's solution
(quoted below) will work.

I am using a security constraint with form based authentication.

This means that I have to request a servlet that is in a constrained area.
The container forwards the request to a login page outside of the
constrained area.  Once the login is processed, it goes back to the
originally requested page.

So, I have to actually have the query string passed in during the initial
login.  That is what I am trying to replace with an alias.

Paul Phillips

--On Sunday, April 7, 2002 12:09 PM -0600 Jay Gardner [EMAIL PROTECTED] wrote:

 Did you try

 servlet
   servlet-namecontroller/servlet-name
   servlet-classcontroller/servlet-class
   !--This servlet-class needs to be the actual name of the servlet.
If
 name is com.mycompany.myproject.Controller, then that is what needs to
 appear here.--
 /servlet
 servlet-mapping
servlet-namecontroller/servlet-name
   url-pattern/login/url-pattern
 /servlet-mapping

 Don't worry about the query string being passed in to the servlet. That
 will be passed by the container from the jsp to the servlet.

 Hope this helps!

 --Jay Gardner


 -Original Message-
 From: Paul Phillips [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 07, 2002 10:49 AM
 To: Tomcat Users List
 Subject: alias

 I need some generic advice...  probably really easy.

 I have written an application with a controller servlet.  The controller
 servlet is event driven - every form submit button on one of the jsp pages
 maps to
 controller?event=DOWHATEVER.  After the controller does its thing, it
 sends the puts the results in a session, and transfers control back to a
 jsp page for display.  My first attempt at MVC.

 My initial page is generated when the user types

 URL/whatever/controller?event=WELCOME

 Now I would like to make an alias that is like:

 URL/whatever/login which will map to
 URL/whatever/controller?event=WELCOME.

 What is the best way to do that?

 Not being much of an expert at the web.xml file, I tried the following
 within web.xml:

 servlet-mapping
   servlet-namecontroller/servlet-name
   url-pattern/controller/url-pattern
 /servlet-mapping

 servlet-mapping
   servlet-namecontroller?event=WELCOME/servlet-name
   url-pattern/login/url-pattern
 /servlet-mapping

 That, most assuredly, did not work.

 How should I go about doing this?

 I guess I could change the code of my servlet so that if there is no event
 definition provided, it goes to the welcome page...  But it seems that
 there should be some way to setup an alias like this.

 Thanks
 Paul Phillips

 --
 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]



___
Paul Phillips
Director of Orchestral Activities, Meadows School of the Arts
Southern Methodist University

You must sing every note you play, sing even through the rests!
Arturo Toscanini

--
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: Problem building mod_webapp.so for Solaris 8

2002-04-08 Thread Jay Gardner

You can find the bin at

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0/bin/

I believe that the connector is the same for all 4.X versions. Also, make
sure you use the right .so. If you are using -EAPI, then use the
mod_webapp.so that is found in the eapi dir.

This is my installation using DSO:

1. Copy mod_webapp.so to the $APACHE_HOME/libexec/ dir.

2. Add the following to $APACHE_HOME/conf/httpd.conf

Put this at the end of the load module section,

LoadModule webapp_module  libexec/mod_webapp.so



Put this at the end of the add module section,

AddModule mod_webapp.c


Finally, put this either at the end of the file(to apply to entire server)
or within specific virtual host entries (for that host only),

If Module mod_webapp.c
 WebAppConnection conn  warp  localhost:8008
 WebAppDeploy smartjobsconn  /smartjobs
 WebAppInfo /webapp-info
/IfModule

Note - In this case, /smartjobs is a tomcat webapp. Just add more contexts
here as you create them in tomcat.

3.

Finally, it is import to stop and start each server. The order of doing
this is important.

First stop both tomcat and apache.

Start tomcat

Start apache  - Some people say that they have to wait up to 10 second
before they start apache so that things work correctly.


I hope that this will help you!

--Jay Gardner



Start apache
-Original Message-
From: Carol Oakes [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 7:15 AM
To: [EMAIL PROTECTED]
Subject: Problem building mod_webapp.so for Solaris 8

Hi --
mod_webapp.so
I have successfully installed Tomcat 4.0.3 and run in standalone mode
with j2sdk1.4.0. I am now trying to connect the Apache1.3.12  that comes
with Solaris 8 to my Tomcat 4.0.3 installation. I was able to build
mod_jk successfully.

I could not find a binary for mod_webapp.so for Solaris 8, so I
downloaded the source from
/builds/jakarta-tomcat-4.0/release/v4.0.1/src/webapp-module-1.0.1-tc401.src.
tar.gz
and attempted to follow the directions givein in the README.txt file.
The problem was that there was no configure script in the tar file.

So I downloaded the webapp-module-1.0-tc40-src.tar.gz file which does
have a configure script. After downloading, building, and installing
autoconf-2.53, m4-1.4, and libtool-1.4.2, when I follow the instructions
in the webapp README.txt, I get syntax errors when the build attempts to
compile pr_warp.c. Please see the attached file for output from the
buildconf, configure, and make instructions.

My build/platform environment is as follows:
uname shows:
  SunOS xxx 5.8 Generic_108528-10 sun4u sparc SUNW,Ultra-Enterprise
and the Sun compiler version is:
  cc: Sun WorkShop 6 update 1 C 5.2 2000/09/11
Installing the GNU compiler on this machine is not an option.

Is there a binary already built that I just haven't found yet? Am I
using the correct source? Has anyone else successfully built the webapp
module for Solaris 8 using this compiler or know what is wrong?

Thanks in advance for your help!

-- Carol



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




RE: Manager App: 500 internal error

2002-04-08 Thread Jay Gardner

I have never seen this, but it seems like it might be a file system
permission problem. I have seen strange things like this when I stopped and
started the TC server as root and then later tried to run it as an
unprivileged user. This makes it so that many of the files that it needs to
read or update are off limits.

Anyway, just trying to offer a possibility,

Good luck,

--Jay Gardner

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 8:24 AM
To: [EMAIL PROTECTED]
Subject: Manager App: 500 internal error

Hello,

I'm having trouble getting the manager app to work.  I've added an entry in
tomcat-users.xml and after authentication I get the following error:

(in log and browser)

javax.servlet.ServletException: Error allocating a servlet instance
   at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:657)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)

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

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

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

   at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:528)

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

   at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)

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

   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)

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

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

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

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

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

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

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

   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)

   at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)

   at java.lang.Thread.run(Thread.java:536)

Root Cause
oot cause
java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
loaded by this web application
   at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:90
0)

   at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)

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

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

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

   at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:528)

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

   at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)

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

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

Help with jspc

2002-04-08 Thread Jay Gardner

Hello all,

I am trying to pre-compile my jsp using jspc.bat on win2K. The reason I want
to do this is so that JSP code can’t be changed on the fly in production. I
am using TC4.0.3.

Here is how I try to do this from an ANT build script:

!-- JSPC:  pre-compile JSPs --
 target name=jspc  depends=init
  java fork=yes classname=org.apache.jasper.JspC
arg line=-uriroot d:/jboss/tomcat/webapps/smartjobs -d
d:/jboss/tomcat/webapps/smartjobs/WEB-INF/classes -p jsp -webinc
d:/jboss/tomcat/webapps/smartjobs/WEB-INF/web.inc -webapp
d:/jboss/tomcat/webapps/smartjobs /
/java
/target

This does build all of the .java files in
d:/jboss/tomcat/webapps/smartjobs/WEB-INF/classes/jsp, but the package name
in them is actually as follows:

package jsp.;

It is the dot that is being appended to the end of the package name. This
same dot has found its way into the web.inc file as well.

servlet
servlet-namejsp..index/servlet-name
servlet-classjsp..index/servlet-class
/servlet

servlet-mapping
servlet-namejsp..index/servlet-name
url-pattern/index.jsp/url-pattern
/servlet-mapping

I went and looked at the CommandLineContext class and saw that
getFullClassName() seems to append a . for some reason.

Anyway, has anyone else run into this?? I there something obvious that I am
doing wrong? Is more info needed before someone can help me?

Thanks in advance!

--Jay Gardner





RE: alias

2002-04-07 Thread Jay Gardner

Did you try

servlet
servlet-namecontroller/servlet-name
servlet-classcontroller/servlet-class
!--This servlet-class needs to be the actual name of the servlet. If name
is com.mycompany.myproject.Controller, then that is what needs to appear
here.--
/servlet
servlet-mapping
 servlet-namecontroller/servlet-name
url-pattern/login/url-pattern
/servlet-mapping

Don't worry about the query string being passed in to the servlet. That will
be passed by the container from the jsp to the servlet.

Hope this helps!

--Jay Gardner


-Original Message-
From: Paul Phillips [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 07, 2002 10:49 AM
To: Tomcat Users List
Subject: alias

I need some generic advice...  probably really easy.

I have written an application with a controller servlet.  The controller
servlet is event driven - every form submit button on one of the jsp pages
maps to
controller?event=DOWHATEVER.  After the controller does its thing, it
sends the puts the results in a session, and transfers control back to a
jsp page for display.  My first attempt at MVC.

My initial page is generated when the user types

URL/whatever/controller?event=WELCOME

Now I would like to make an alias that is like:

URL/whatever/login which will map to
URL/whatever/controller?event=WELCOME.

What is the best way to do that?

Not being much of an expert at the web.xml file, I tried the following
within web.xml:

servlet-mapping
  servlet-namecontroller/servlet-name
  url-pattern/controller/url-pattern
/servlet-mapping

servlet-mapping
  servlet-namecontroller?event=WELCOME/servlet-name
  url-pattern/login/url-pattern
/servlet-mapping

That, most assuredly, did not work.

How should I go about doing this?

I guess I could change the code of my servlet so that if there is no event
definition provided, it goes to the welcome page...  But it seems that
there should be some way to setup an alias like this.

Thanks
Paul Phillips

--
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: saving object

2002-04-07 Thread Jay Gardner

It is best to set the column to auto-increment and put the unique constraint
on it. Which programming language are you using?

If JAVA, the mm.mysql driver has a method that does what you want:

org.gjt.mm.mysql.Statement stmt =
(org.gjt.mm.mysql.Statement)con.createStatement();
int Results = stmt.executeUpdate(sql);
applicantID = stmt.getLastInsertID();
applicant.setApplicantID((int)applicantID);

If PERL, dbi will return the row # you just inserted using:

$statement_handle-{insertid}

If PHP, This returns the ID number used for the last INSERT statement:

$id_num = mysql_insert_id();

If C,  Returns the last number generated for an AUTO_INCREMENT field:

id = mysql_insert_id(mysql);
printf(The new ID is %d\n, id);



When using an ORACLE database, I generally use a sequence generator. I first
make a call to get the next number in the sequence, then use that number as
the key for my insert.

--Jay Gardner

-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 07, 2002 12:02 AM
To: Tomcat Users List
Subject: RE: saving object

What database are you using?



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 06, 2002 9:15 PM
To: Tomcat Users List
Subject: Re: saving object

I have done this with some row_id defined to be auto-insert on mysql.
With auto-insert you know it will be unique but might want to make
that a constraint.

insert .blah blah
select max(row_id) - yields the number of the last tx.



row_id is just an example for your purpses.
Good luck

At 01:41 PM 4/5/02, you wrote:
a little bit off topic.

I have a table with each row corresponds to a javabean object. The objects
don't
necessarily have a primary key, so i use a sequence number as its primary
key, and a
trigger to assign the sequence number to its ID column when a new object is
inserted
into the database.

However, after I insert the object into the table, how can i know the
object's ID in the
table?  If I simply do a ..._seq.cur_val,   it is not safe when multiple
users can access
the database and save their javabean into it at the same time.

How could you guys accomplish that?


--
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: why does tomcat stop suddenly

2002-04-06 Thread Jay Gardner

Does your site contain a lot of JSP that is not pre-compiled???  I have had
problems with the jspc jsp compiler running my machine out of memory before.


Regards,

--Jay Gardner

-Original Message-
From: Lalit Nagpal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 11:20 PM
To: [EMAIL PROTECTED]
Subject: why does tomcat stop suddenly


hi,

i am using tomcat version 4.0 (standalone).

I run it executing the startup.sh file only to discover the next morning

that the server has stopped. catalina.out has no stopping tomcat message.

i have already tried with nohup command as suggested by some people, did not
work.

what could be the possible reason. any ideas.

plz help ...

thanx

Lalit Nagpal



-
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax


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




RE: saving object

2002-04-06 Thread Jay Gardner

What database are you using?



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 06, 2002 9:15 PM
To: Tomcat Users List
Subject: Re: saving object

I have done this with some row_id defined to be auto-insert on mysql.
With auto-insert you know it will be unique but might want to make
that a constraint.

insert .blah blah
select max(row_id) - yields the number of the last tx.



row_id is just an example for your purpses.
Good luck

At 01:41 PM 4/5/02, you wrote:
a little bit off topic.

I have a table with each row corresponds to a javabean object. The objects
don't
necessarily have a primary key, so i use a sequence number as its primary
key, and a
trigger to assign the sequence number to its ID column when a new object is
inserted
into the database.

However, after I insert the object into the table, how can i know the
object's ID in the
table?  If I simply do a ..._seq.cur_val,   it is not safe when multiple
users can access
the database and save their javabean into it at the same time.

How could you guys accomplish that?


--
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]