Re: Using daemontools to supervise Tomcat

2002-10-11 Thread Ben Ricker

On Fri, 2002-10-11 at 12:48, camccuk wrote:
> --- Ben Ricker <[EMAIL PROTECTED]> wrote:

> I'b be interested to see that Ben - one of the problems I had trying something
> similar was that when tomcat gets swapped out, it appears on the process list
> as [java] and there is *no way* to my knowledge (or that of the various usenet
> groups/lists etc that I pestered) of getting back the command line to see which
> instance of the JVM you are dealing with - this was a problem for me on a
> machine running at least two JVMs.

Actually there is. I use a -Dafoo to give the process a unique
identifier. This sets a marker on the process but does nothing for the
JVM itself. To find a process ID, I would use 'pgrep -f foo' and the PID
is returned (this is on Unix, btw). Also , when you do the '-Dafoo' as
the first "arg" to the JVM, it appears in 'ps -ef'.

Here is how I do it: I setup the java command line like so:

/usr/local/jdk/bin/java \
-Da=Ftp \
-cp $PROP_DIR:$EXT_INT_JAR:$NET_COMPONENTS_JAR:$LOG4J_JAR \
com.usrx.extinterface.ftp.FTPService $PROPERTIES_FILES \
>> $LOG_FILE 2>&1

Then I do this:

pgrep -fn  Ftp > $PIDFILE

Technically, you do not need the 'n', as that denotes the newest
process. You can get by with just the -f.

Finally, I run the following script through cron every minute. The
variables should be self-explanatory. For security reasons, I cannot
divulge the whole setup. Basically, this snippet below monitors 7 JVMs
and if they are not running, restarts them. It has worked flawlessly for
a long time.

-Begin Snippet--

for i in $*
do
eval BASEDIR=$`echo BASEDIR_$i`
eval PIDFILE="$BASEDIR/$`echo PIDFILE_$i`"
eval PNAME=$`echo PNAME_$i`
eval CHECKFILE="$BASEDIR/$`echo CHECKFILE_$i`"
eval START="$BASEDIR/$`echo START_$i`"

if [ -f $PIDFILE ] ; then
PID=`cat $PIDFILE`
if [ "x$PID" != "x" ] && kill -0 $PID 2>/dev/null ; then
STATUS="$PNAME ($PID) running"
RUNNING=1
else
STATUS="$PNAME ($PID?) NOT running"
RUNNING=0
fi
else
STATUS="$PNAME (no pid file) NOT running"
RUNNING=0
fi

if [ $RUNNING = 0 ]; then
if [ -f $CHECKFILE ] ; then
if [ `cat $CHECKFILE` = 0 ] ; then
echo "$STATUS - restart failed." | mail -s "$PNAME alert" $RECIPIENTS
logger -p local0.crit -t pidmonitor.sh "$STATUS: restart failed."
echo "1" > $CHECKFILE
fi
cd $BASEDIR
$START start
else
echo "$STATUS - will attempt to start." | mail -s "$PNAME alert" 
$RECIPIENTS
logger -p local0.crit -t pidmonitor.sh "$STATUS: attempting to start."
touch $CHECKFILE
echo "0" > $CHECKFILE
cd $BASEDIR
$START start
fi
else
if [ -f $CHECKFILE ] ; then
/bin/rm $CHECKFILE
echo "$STATUS" | mail -s "$PNAME alert" $RECIPIENTS
logger -p local0.crit -t pidmonitor.sh $STATUS
fi
fi
done

--End Snippet--


> I had to use fghack already to stop supervise trying to start tomcat dozens of
> time but I still couldn't get multilog to work and supervise seemed to act
> weirdly afterwards (although svstat worked ok and svscan got into a confused
> state trying to start the run script in the logging subdirectory - something
> supervise won't do for me)

You will have to use fghack because java does not act like a daemon
usually does. A daemon usually puts itself into the background after
executing. Java does not. That is what fghack does. Unfortunately, as
the web site for daemontools says, if you use fghack, it will disable
your ability to use svc and will make all the other commands pretty
useless. Daemontools works great with daemons that act like daemons; it
works like hell with programs that don't.

-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




Re: New Install, New Question

2002-10-11 Thread Padhu Vinirs

Try




Also, install the web app using the manager webapp. I am not sure if a 
restart installs new webapps automatically.


-- pady


Scott Purcell wrote:

>Hello,
>
>New Install of Tomcat 4.1.12 on 2000. 
>Installed on D:\jakarta-tomcat-4.1.12
>
>I need a reloadable app to run below \webapps.
>I created the folder and tried to add to the server.xml, but things have changed 
>since my 3.x days.
>
>I vi'd the server.xml file and added a Context like so:
>
>
>
>But it dies on startup. I cannot even find the error: The black startup screen just 
>dies a quiet death. I checked typing and I do not believe it is that.
>
>How do I add a new context?
>
>
>
>Scott Purcell | Developer | VERTIS | 555 Washington Ave. 4th Floor | St. Louis, MO 
>63101 |
>T 314.588.0720 | F 314.588.0735 | [EMAIL PROTECTED] | http://www.vertisinc.com
>
>Vertis is a global powerhouse for integrated marketing and advertising solutions that 
>seamlessly combine advertising, direct marketing, media, imaging and progressive 
>technology. Vertis' products and services include: consumer and media research, media 
>planning and placement, creative services, digital media production, targetable 
>insert programs, fully integrated direct marketing programs, circulation-building 
>newspaper products and eMarketing.
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>



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




New Install, New Question

2002-10-11 Thread Scott Purcell

Hello,

New Install of Tomcat 4.1.12 on 2000. 
Installed on D:\jakarta-tomcat-4.1.12

I need a reloadable app to run below \webapps.
I created the folder and tried to add to the server.xml, but things have changed since 
my 3.x days.

I vi'd the server.xml file and added a Context like so:



But it dies on startup. I cannot even find the error: The black startup screen just 
dies a quiet death. I checked typing and I do not believe it is that.

How do I add a new context?



Scott Purcell | Developer | VERTIS | 555 Washington Ave. 4th Floor | St. Louis, MO 
63101 |
T 314.588.0720 | F 314.588.0735 | [EMAIL PROTECTED] | http://www.vertisinc.com

Vertis is a global powerhouse for integrated marketing and advertising solutions that 
seamlessly combine advertising, direct marketing, media, imaging and progressive 
technology. Vertis' products and services include: consumer and media research, media 
planning and placement, creative services, digital media production, targetable insert 
programs, fully integrated direct marketing programs, circulation-building newspaper 
products and eMarketing.




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




Re: 404 on new webapp

2002-10-11 Thread Michael Muller


that did the trick, once i substituted the correct path to my tomcat 
home.  thanks!

i can't find where it's documented that you now need to do this, but 
information about passing a directory in the "war" text area is in the 
manager documentation in the summary of the "Supported Manager Commands" 
section.

   -- mike

Padhu Vinirs wrote:
> 
> Try:
> 
> http://localhost:8080/manager/install?path=/test&war=file:/tomcat/webapps/test 
> 
> 
> -- padhu
> 
> 
> 
> Michael Muller wrote:
> 
>>
>> i just installed jakarta-tomcat-4.1.12-LE-jdk14.  i'm running version 
>> 1.4.0-b92 of sun's jdk on red hat linux 7.2.
>>
>> i created a test subdirectory off the webapps and created an index.jsp 
>> in that webapps/test directory.  when i hit 
>> http://localhost:8080/test/index.jsp, i get 404.
>>
>> this used to work for me in 3.3.  i'm assuming that there's an 
>> additional configuration step required now.
>>
>> i tried restarting, no joy.  i added myself as a manager, but /test 
>> doesn't show up in the list in the manager webapp.
>>
>> what am i missing?
>>
>> i apologize for what must be a faq -- i DID spend some time looking in 
>> the archives.
>>
>> thanks,
>>
>>   -- mike
>>
>>
>> -- 
>> To unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail: 
>> 
>>
>>
> 
> 
> 
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 



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




Tomcat and Xeprof

2002-10-11 Thread afreire

I need to run the Tomcat with the option -Xeprof. I do that in HP-UX 11.00
with Tomcat 3.2.4 and in HP-UX11.11i with Tomcat 3.3, but I don't have any
result.

Anybody know what happen.


Regard
Alejandro




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




Code of a method longer than 65535 bytes...

2002-10-11 Thread Raj Mettai

Hi,

I have recently moved from tomcat 4.0.4 to tomcat 4.1.2. I am getting "Code of a 
method longer than 65535 bytes" on some jsp pages. They use to work fine on 4.0.4. 

any thoughts 

Thanks
Raj



Re: my application pauses

2002-10-11 Thread Rick Fincher

You can also try incremental garbage collection (-Xincgc).  It is supposed
to be more fine grained garbage collection that runs as an interruptible
background process and significantly reduces pauses.

Rick
- Original Message -
From: "Ritesh Saraf" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, October 11, 2002 2:43 PM
Subject: RE: my application pauses


> Hi Shapira,
>
> >I am facing is that my application sometimes kind of pauses and one has
> to
> >wait like few seconds before it moves ahead, BUT if u see that things
> are
>
> Try to enable verbose garbage collection, but adding -verbose:gc to your
> JAVA_OPTS.  Then you'll know when GC runs, and for how long, by looking
> at catalina.out.
>
> 
> thanks i will try to use this
> 
>
> >The reasons can be , but I aint sure
> >* I am using a lot of System.out.print for debugging purposes.
>
> This is not the best, nor the most elegant, but it's not likely to slow
> you down.  Make sure you have enough room on the filesystem for
> catalina.out to grow large.
>
> Consider moving a real logging system, e.g. log4j.
> 
> Actually I am using the logging in jdk1.4 but the console messages
> by the logger is hard to understand i mean it includes lot of extra info
> so i am also using System.out shall remove them later
> 
>
>
> >* I guess since my applicaion is big too there is a lot of object
>
> How big?
> 
> about 400 files including the jsp pages
> ***
>
>
> >generation
> >  and so garbage collection.
>
> It takes a *ton* (where a ton depends on your JVM, OS, threading model,
> etc.) of object creation and a huge JVM for GC to generate long pauses.
> Verbose GC can help debug this.
>
> Try to avoid unnecessary object creation, but you don't need to go nuts
> for this.  It's not likely to be the cause.
> ***
> I am trying to avoid unnecessary objects but still there could be a 1000
> ***
>
>
> >* I am trying to use a lot of cache, I store whole rows of table lets
> >say(100)
>
> Once again, how much caching?  What's in your rows of table sets?  How
> big is each set?
>
> *
> Each row can be say 50 cols of (longs) and (strings <30 chars) can be as
> many as 1500 rows normally there should be 200 rows
> *
>
> >  to know does it hurt to use cache as best as i can.I am trying to be
> very
> >  performance conscious and so cache things and avoid DB calls.
>
> That's a good practice in general.  As long as you know when you need to
> refresh the cache, e.g. if the DB contents change.
> *
> yes i am trying to take care of that
> 
>
>
> >I will appreciate any insight into this problem.
>
> For comparison sake, we have several large applications using servlets
> and JSPs.  They run on tomcat, and use a lot of caching to avoid
> repetitive DB calls and enhance performance.  Our apps use > 1GB heap,
> caches with millions of objects (both millions of keys and millions of
> values), and are very multithreaded.  We used to have GC pause problems
> and spent a lot of time tuning GC parameters (-XX:NewSize, etc.).  Now
> we don't have GC pauses anymore.  We use JDK 1.4.1 on Solaris 8.
>
> And of course, there's always the option that GC has nothing to do with
> your pauses.  Could it be something behavioral in your JSPs or servlets,
> or the way you invoke / chain them?
>
> **
> I am using Windows 2000 for now, might port to red hat linux 7.2 later
> yes i have 1-2 level of chaining as i am using MVC
>
> Can you please tell me how to debug such an application(specially) from
the
> point of view my problem of pausing..
> as i am using just system.out and it is very time consuming to debug that
> way
>
> There can be several possible hitches in the application as big as this
> but thing intriguing is why does the application keep continuing as soon
> as i hit any key (possibly an interrupt). Could you guess what can be a
> possible cause here.
>
> a case of pausing can be lets say i login i make a session object for the
> user
> then i leave it opened eat a sandwitch and try doing something often in
such
> cases i am paused (i invalidate session on logouts ) so when i logout
after
> some time it will just pause. and i have to hit the the key. So far i am
not
> doing any multi threading
> **
>
>
>
> Yoav Shapira
> Millennium ChemInformatics
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




Re: getServletContext call from jsp page...

2002-10-11 Thread Tim Funk

Adding extra functionality is not a bad thing as long as it conforms to 
the spec. But using the extra functionality makes your code non-portable.

Of course, one may also think this a bug since Jasper assumes your JSP 
extends HttpServlet and you may issue a directive
<%@page extends="my.Clazz" %> where my.Clazz does NOT extend HttpServlet 
  and only implements JspPage which has significantly less functionality.

As a side note:
BEA weblogic does not inherit their JSP's from HttpServlet, so that is 
one platform where you would have trouble if you made the assumption 
from below.

Padhu Vinirs wrote:
> 
> Wanted to know if this assumption is valid in most jsp containers:
> 
> Is calling getServletContext()  ( instead of 
> getServletConfig().getServletContext() ) assuming that the servlet 
> generated from the jsp will be derived from HttpServlet ?
> 
> 
> This works ( in Tomcat ) because HttpJspBase derives from HttpServlet. 
> But getServletConfig() is part of the interface Servlet which every 
> Servlet has to implement.
> 
> -- padhu
> 



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




RE: my application pauses

2002-10-11 Thread Ritesh Saraf

Hi Shapira,

>I am facing is that my application sometimes kind of pauses and one has
to
>wait like few seconds before it moves ahead, BUT if u see that things
are

Try to enable verbose garbage collection, but adding -verbose:gc to your
JAVA_OPTS.  Then you'll know when GC runs, and for how long, by looking
at catalina.out.


thanks i will try to use this


>The reasons can be , but I aint sure
>* I am using a lot of System.out.print for debugging purposes.

This is not the best, nor the most elegant, but it's not likely to slow
you down.  Make sure you have enough room on the filesystem for
catalina.out to grow large.

Consider moving a real logging system, e.g. log4j.

Actually I am using the logging in jdk1.4 but the console messages
by the logger is hard to understand i mean it includes lot of extra info
so i am also using System.out shall remove them later



>* I guess since my applicaion is big too there is a lot of object

How big?

about 400 files including the jsp pages
***


>generation
>  and so garbage collection.

It takes a *ton* (where a ton depends on your JVM, OS, threading model,
etc.) of object creation and a huge JVM for GC to generate long pauses.
Verbose GC can help debug this.

Try to avoid unnecessary object creation, but you don't need to go nuts
for this.  It's not likely to be the cause.
***
I am trying to avoid unnecessary objects but still there could be a 1000
***


>* I am trying to use a lot of cache, I store whole rows of table lets
>say(100)

Once again, how much caching?  What's in your rows of table sets?  How
big is each set?

*
Each row can be say 50 cols of (longs) and (strings <30 chars) can be as
many as 1500 rows normally there should be 200 rows
*

>  to know does it hurt to use cache as best as i can.I am trying to be
very
>  performance conscious and so cache things and avoid DB calls.

That's a good practice in general.  As long as you know when you need to
refresh the cache, e.g. if the DB contents change.
*
yes i am trying to take care of that



>I will appreciate any insight into this problem.

For comparison sake, we have several large applications using servlets
and JSPs.  They run on tomcat, and use a lot of caching to avoid
repetitive DB calls and enhance performance.  Our apps use > 1GB heap,
caches with millions of objects (both millions of keys and millions of
values), and are very multithreaded.  We used to have GC pause problems
and spent a lot of time tuning GC parameters (-XX:NewSize, etc.).  Now
we don't have GC pauses anymore.  We use JDK 1.4.1 on Solaris 8.

And of course, there's always the option that GC has nothing to do with
your pauses.  Could it be something behavioral in your JSPs or servlets,
or the way you invoke / chain them?

**
I am using Windows 2000 for now, might port to red hat linux 7.2 later
yes i have 1-2 level of chaining as i am using MVC

Can you please tell me how to debug such an application(specially) from the
point of view my problem of pausing..
as i am using just system.out and it is very time consuming to debug that
way

There can be several possible hitches in the application as big as this
but thing intriguing is why does the application keep continuing as soon
as i hit any key (possibly an interrupt). Could you guess what can be a
possible cause here.

a case of pausing can be lets say i login i make a session object for the
user
then i leave it opened eat a sandwitch and try doing something often in such
cases i am paused (i invalidate session on logouts ) so when i logout after
some time it will just pause. and i have to hit the the key. So far i am not
doing any multi threading
**



Yoav Shapira
Millennium ChemInformatics


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




what does jpp mean in the rpm file names?

2002-10-11 Thread HAVENS,PETER (HP-Cupertino,ex3)

Can someone tell me what jpp stands for in the RPM files that are available
for tomcat 4.1.12?
 
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/rpms/
 
 
The previous RPM files I was using for tomcat 4.0.3 there was no jpp in the
file name.
 
Also, I noticed that the LE version of the RPM files has dependencies on the
following two items
-  jaxp_parser_impl
-  xml-commons-apis
Can someone tell me the recommended method of satisfying these dependencies?
 
Thanks in advance.
 
-Peter



getServletContext call from jsp page...

2002-10-11 Thread Padhu Vinirs


Wanted to know if this assumption is valid in most jsp containers:

Is calling getServletContext()  ( instead of 
getServletConfig().getServletContext() ) assuming that the servlet 
generated from the jsp will be derived from HttpServlet ?


This works ( in Tomcat ) because HttpJspBase derives from HttpServlet. 
 But getServletConfig() is part of the interface Servlet which every 
Servlet has to implement.

-- padhu



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




GC Log in catalina.out

2002-10-11 Thread Luiz Ricardo

Hi everybody,

maybe this subject is off-topic but let me explain my problem, I ran Tomcat
as root user and java was logging the gc activity
(java -Xloggc:/usr/local/tomcat4/logs/gc.log ...) and everything was fine
but I had to change the Tomcat user to another one (tomcat4) and after this
the gc activity is not being anymore logged in
/usr/local/tomcat4/logs/gc.log, it is logging in catalina.out.

To change user root to tomcat4 I execute the following command in startup.sh
script:

su - tomcat4 -c "/usr/local/tomcat4/bin/catalina.sh start"

Does anyone know how to fix this?!

Luiz Ricardo


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




Re: 404 on new webapp

2002-10-11 Thread Padhu Vinirs


Try:

http://localhost:8080/manager/install?path=/test&war=file:/tomcat/webapps/test

-- padhu



Michael Muller wrote:

>
> i just installed jakarta-tomcat-4.1.12-LE-jdk14.  i'm running version 
> 1.4.0-b92 of sun's jdk on red hat linux 7.2.
>
> i created a test subdirectory off the webapps and created an index.jsp 
> in that webapps/test directory.  when i hit 
> http://localhost:8080/test/index.jsp, i get 404.
>
> this used to work for me in 3.3.  i'm assuming that there's an 
> additional configuration step required now.
>
> i tried restarting, no joy.  i added myself as a manager, but /test 
> doesn't show up in the list in the manager webapp.
>
> what am i missing?
>
> i apologize for what must be a faq -- i DID spend some time looking in 
> the archives.
>
> thanks,
>
>   -- mike
>
>
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>
>



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




404 on new webapp

2002-10-11 Thread Michael Muller


i just installed jakarta-tomcat-4.1.12-LE-jdk14.  i'm running version 
1.4.0-b92 of sun's jdk on red hat linux 7.2.

i created a test subdirectory off the webapps and created an index.jsp 
in that webapps/test directory.  when i hit 
http://localhost:8080/test/index.jsp, i get 404.

this used to work for me in 3.3.  i'm assuming that there's an 
additional configuration step required now.

i tried restarting, no joy.  i added myself as a manager, but /test 
doesn't show up in the list in the manager webapp.

what am i missing?

i apologize for what must be a faq -- i DID spend some time looking in 
the archives.

thanks,

   -- mike


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




RE: Using daemontools to supervise Tomcat

2002-10-11 Thread Turner, John


No problem, glad to help.  Thanks to Tim for the tip, it has come in handy.

John

> -Original Message-
> From: camccuk [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 2:01 PM
> To: Tomcat Users List
> Subject: RE: Using daemontools to supervise Tomcat
> 
> > which I will repost here.  It's not absolutely thorough 
> with every exact
> > line of code you need, but it should be sufficient for a 
> really good start.
> > It's a nice little tip/trick:
> 
> Many thanks for posting this - having the PID is definitely 
> the way to go...
> 
> cam
> 

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




RE: Using daemontools to supervise Tomcat

2002-10-11 Thread camccuk


--- "Turner, John" <[EMAIL PROTECTED]> wrote:
> 
> You can see more info on your Tomcat processes by increasing the column
> display of ps.  For example, on a RedHat box, use "ps -ef --cols=300 |grep
> java" and you can see the full command line used to start Tomcat.  

This is true John (I use ps -auxf!), *except* when a process is swapped out
- I lost a lot of hair over that one...

In my
> environment (multiple, distinct Tomcats) there is a different server.xml for
> each instance.  Using the "--cols" option makes it trivial for me to see
> exactly which instance is which, and obtain the PID of the instance in
> question for stopping purposes.
> 
> In addition, Tim Funk posted back in June a roll-your-own solution for
> getting the PID of Tomcat anytime you want, from whatever tool you desire,
> which I will repost here.  It's not absolutely thorough with every exact
> line of code you need, but it should be sufficient for a really good start.
> It's a nice little tip/trick:

Many thanks for posting this - having the PID is definitely the way to go...

cam

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

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




RE: my application pauses

2002-10-11 Thread Shapira, Yoav

Hi,

>I am facing is that my application sometimes kind of pauses and one has
to
>wait like few seconds before it moves ahead, BUT if u see that things
are

Try to enable verbose garbage collection, but adding -verbose:gc to your
JAVA_OPTS.  Then you'll know when GC runs, and for how long, by looking
at catalina.out.

>The reasons can be , but I aint sure
>* I am using a lot of System.out.print for debugging purposes.

This is not the best, nor the most elegant, but it's not likely to slow
you down.  Make sure you have enough room on the filesystem for
catalina.out to grow large.

Consider moving a real logging system, e.g. log4j.

>* I guess since my applicaion is big too there is a lot of object

How big?

>generation
>  and so garbage collection.

It takes a *ton* (where a ton depends on your JVM, OS, threading model,
etc.) of object creation and a huge JVM for GC to generate long pauses.
Verbose GC can help debug this.

Try to avoid unnecessary object creation, but you don't need to go nuts
for this.  It's not likely to be the cause.

>* I am trying to use a lot of cache, I store whole rows of table lets
>say(100)

Once again, how much caching?  What's in your rows of table sets?  How
big is each set?  

>  to know does it hurt to use cache as best as i can.I am trying to be
very
>  performance conscious and so cache things and avoid DB calls.

That's a good practice in general.  As long as you know when you need to
refresh the cache, e.g. if the DB contents change.

>I will appreciate any insight into this problem.

For comparison sake, we have several large applications using servlets
and JSPs.  They run on tomcat, and use a lot of caching to avoid
repetitive DB calls and enhance performance.  Our apps use > 1GB heap,
caches with millions of objects (both millions of keys and millions of
values), and are very multithreaded.  We used to have GC pause problems
and spent a lot of time tuning GC parameters (-XX:NewSize, etc.).  Now
we don't have GC pauses anymore.  We use JDK 1.4.1 on Solaris 8.

And of course, there's always the option that GC has nothing to do with
your pauses.  Could it be something behavioral in your JSPs or servlets,
or the way you invoke / chain them?

Yoav Shapira
Millennium ChemInformatics


This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



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


RE: Using daemontools to supervise Tomcat

2002-10-11 Thread Turner, John


You can see more info on your Tomcat processes by increasing the column
display of ps.  For example, on a RedHat box, use "ps -ef --cols=300 |grep
java" and you can see the full command line used to start Tomcat.  In my
environment (multiple, distinct Tomcats) there is a different server.xml for
each instance.  Using the "--cols" option makes it trivial for me to see
exactly which instance is which, and obtain the PID of the instance in
question for stopping purposes.

In addition, Tim Funk posted back in June a roll-your-own solution for
getting the PID of Tomcat anytime you want, from whatever tool you desire,
which I will repost here.  It's not absolutely thorough with every exact
line of code you need, but it should be sufficient for a really good start.
It's a nice little tip/trick:

 begin repost of Tim's PID solution 

For what its worth - I created (and use) a LifecycleListener that runs 
on startup which logs the process ID into a file called tomcat.pid. 
Which is created by a shell script called writepid.sh. Below is all the 
code to get this to work. This code also assumes your current working 
directory is $CATALINA_HOME.

--Begin code
import org.apache.catalina.LifecycleEvent;

/**
  * A helper for getting the PID of java so shutting down tomcat is MUCH
  * easier.
  */
public class PidLifeCycle implements org.apache.catalina.LifecycleListener {
  public void lifecycleEvent(LifecycleEvent event)  {
 if ("start".equals(event.getType())) {
try {
 Runtime.getRuntime().exec("/bin/sh bin/writepid.sh");
} catch(Throwable e) {
   e.printStackTrace();
}
 }
  }
}
--End Code

The code above will launch the following shell script. Should be in the 
bin/ directory of your tomcat installation.
--Begin Shell script
echo $PPID > logs/tomcat.pid
--End Shell script

Then add the following into server.xml
--Begin server.xml snippet

--End server.xml snippet

 end repost of Tim's PID solution 

John


> -Original Message-
> From: camccuk [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 1:49 PM
> To: Tomcat Users List
> Subject: Re: Using daemontools to supervise Tomcat
> 
> 
> 
> --- Ben Ricker <[EMAIL PROTECTED]> wrote:
> > I tried to get Daemontools running for Jserv (which is 
> pretty similar)
> > and had no luck. My guess is that you might be able to get 
> it to work if
> > you pass all the env variables using daemontools and just 
> launch java.
> > However, since java is not a normal daemon, you will probably need
> > fghack to do it. 
> > 
> > I myself gave up; the thought of creating all those environment
> > variables was just too much, so I just rolled my own PID 
> monitor whcih I
> > am porting to Tomcat. Basically, it will grep out the PID 
> and write to a
> > file which I watch with a cronjob process.
> 
> I'b be interested to see that Ben - one of the problems I had 
> trying something
> similar was that when tomcat gets swapped out, it appears on 
> the process list
> as [java] and there is *no way* to my knowledge (or that of 
> the various usenet
> groups/lists etc that I pestered) of getting back the command 
> line to see which
> instance of the JVM you are dealing with - this was a problem 
> for me on a
> machine running at least two JVMs.
> 

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




Re: Using daemontools to supervise Tomcat

2002-10-11 Thread camccuk


--- Ben Ricker <[EMAIL PROTECTED]> wrote:
> I tried to get Daemontools running for Jserv (which is pretty similar)
> and had no luck. My guess is that you might be able to get it to work if
> you pass all the env variables using daemontools and just launch java.
> However, since java is not a normal daemon, you will probably need
> fghack to do it. 
> 
> I myself gave up; the thought of creating all those environment
> variables was just too much, so I just rolled my own PID monitor whcih I
> am porting to Tomcat. Basically, it will grep out the PID and write to a
> file which I watch with a cronjob process.

I'b be interested to see that Ben - one of the problems I had trying something
similar was that when tomcat gets swapped out, it appears on the process list
as [java] and there is *no way* to my knowledge (or that of the various usenet
groups/lists etc that I pestered) of getting back the command line to see which
instance of the JVM you are dealing with - this was a problem for me on a
machine running at least two JVMs.

I had to use fghack already to stop supervise trying to start tomcat dozens of
time but I still couldn't get multilog to work and supervise seemed to act
weirdly afterwards (although svstat worked ok and svscan got into a confused
state trying to start the run script in the logging subdirectory - something
supervise won't do for me)

BTW, I have a run script for kicking off JServ  which I'll send you off-list in
case its of any use...

Cheers,
cam

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

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




unable to read uploaded document

2002-10-11 Thread Yang

Hi, 
I'm using tomcat 4 as the standalone server. I can
upload files successfully to server by using struts
upload package, but I can't read uploaded documents
properly like excel or powerpoint documents. I checked
the files in filesystem. All files are there and can
be read from window explorer.
Did anybody know how to work this issue?

Thanks in advance!

Yang


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

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




RE: Why to use Apace as web server with TOMCAT

2002-10-11 Thread Turner, John


Tomcat's HTTP server is fine for most applications.

Reasons why you would want Apache:

- can run as a service on port 80 without being root
- can use other technologies like CGI, and other languages, in addition to
Tomcat
- Apache is specifically tuned for static content, Tomcat is tuned for
dynamic
- Well-established, proven platform
- Stable, generally secure
- Can use other modules such as mod_proxy, mod_rewrite, or write your own
modules
- Can load-balance with Tomcat
- Can easily handle multiple virtual hosts in an ISP/ASP environment

...and more.  Search the archives for more info.  This topic comes up
regularly.  

John

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 1:20 PM
> To: [EMAIL PROTECTED]
> Subject: Why to use Apace as web server with TOMCAT
> 
> 
> I would like know what are the advantages of using apache as 
> webserver for
> tomcat.
> ie, what is the disadvantage of using tomcat's own web server.
> 
> 
> thanks
> 
> Rajesh Bhabaraju (RAJ)
> Office of Technology Services
> Phone: 502-564-6949 X 281
> [EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




my application pauses

2002-10-11 Thread Ritesh Saraf

Hi,

I am building a simple application using jsp/tomcat, and I am trying to
cache most of my repetitive DB read data.

Right now I am still developing so its still not multiple users. The problem
I am facing is that my application sometimes kind of pauses and one has to
wait like few seconds before it moves ahead, BUT if u see that things are
not moving ahead (as I see in my console window), i just press any key and
the application is on its way. So I am kind of confused whats the reason
behind this pause.

The reasons can be , but I aint sure
* I am using a lot of System.out.print for debugging purposes.
* I guess since my applicaion is big too there is a lot of object generation
  and so garbage collection.
* I am trying to use a lot of cache, I store whole rows of table lets
say(100)
  and put it in the cache. Is cache management the reason. Also I would like
  to know does it hurt to use cache as best as i can.I am trying to be very
  performance conscious and so cache things and avoid DB calls.

I will appreciate any insight into this problem.

Thanks
Ritesh


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




can telnet to the port but can not access the welcome page.

2002-10-11 Thread Sandy . Thota

Hi,
forgive me if this has been already answered.
I have Tomcat 4 running on Solaris 8.
Server port is configured at 8080 for http.
I checked and can see that port 8080 is listening.
I can telnet to the port. But on a browser I can not access the welcome
page.
I tried various proxy settings. 
Can some one please clue me in.
TIA




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




Why to use Apace as web server with TOMCAT

2002-10-11 Thread Rajesh . Bhabaraju

I would like know what are the advantages of using apache as webserver for
tomcat.
ie, what is the disadvantage of using tomcat's own web server.


thanks

Rajesh Bhabaraju (RAJ)
Office of Technology Services
Phone: 502-564-6949 X 281
[EMAIL PROTECTED]


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




A possible multiple request in short duration solution: any feedback?

2002-10-11 Thread Michael Nicholson

So, I've been struggling with this question somewhat lately.  

I have my exciting database driven website where users can search the database, and 
some users can update the database either by updating records or inserting records.  
Of course, when you display a record, it isn't really from one table, but rather from 
11 different tables (one main table, 5 subinformation tables, and 5 intersection 
tables to maintain the one primary table with 5 one-to-many relationships).  So when 
you find the record you're interested in, there are still a few more queries to render 
the whole thing.  

So, my current thought:  user begins a search, creates his/her criteria, and submits 
it.  The app then creates a thread for that searches the database, after first making 
sure that a thread by that name is not currently running.  If there is a thread by 
that name, it destroys that thread and then searches the database.  That way if 
someone submits two searches in short duration, search1 creates it's own thread, then 
search2 destroys that thread entirely and continues to create it's own thread and 
search the database.  All the parameters needed for this search are either in the 
request object or are initiated during the search procedure.

Update should work the same way, except with some sort of thread death listener to run 
a rollback if the thread is killed mid-update (partial updates are bad!).

Of course, like I've said before, this is my first foray into multiple threaded 
processes, so I figured I'd run this by anyone who's listening out there.

Thanks for reading!

Michael Nicholson


RE: Tomcat dies periodically

2002-10-11 Thread Cox, Charlie



> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 10:58 AM
> To: Tomcat Users List
> Subject: Tomcat dies periodically
> 
> 
> We are running Tomcat running on a Win2000 SP2 box and 
> Computer Associate 
> JASMINE/OPAL with HTTP Host Connector to access a IBM 
> Mainframe with a JSP 
> application.
> We have this message :
> 
> An unexpected exception has been detected in native code 
> outside the VM.
> Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at 
> PC=0x77fcb892
> Function name=RtlFreeHeap
> Library=C:\WINNT\System32\ntdll.dll
> 
> Current Java thread:
> at wv.ObjectImpl.nativeInvokeMethod(Native Method)
> at wv.ObjectImpl.invokeMethod(ObjectImpl.java:146)

This is a problem with the native library being called. Apparently the
CAOasisSession has a pointer problem in its native code(probably C/C++).

you will want to contact CA with this stack trace.
Charlie

> at 
> com.ca.sessionBeans.CAOasisSession.getCurrentPage(CAOasisSessi
> on.java:738)
> at 
> com.ca.sessionBeans.CAOasisSession.AppliCICS(CAOasisSession.java:445)
> at 
> com.ca.requesthandlers.CASysSelect.handleRequest(CASysSelect.java:24)
> at 
> com.ca.CARequestController.getNextPage(CARequestController.java:52)
> at 
> org.apache.jsp.loginCtrlr$jsp._jspService(loginCtrlr$jsp.java:151)
> at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.java:202)
> at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:382)
> at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 
> At this time we don't now where the problem is ?.
> 
> Please help !!
> 
> Hervé Caparros
> Ville de Montréal
> 
> 

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




RE: MOD_JK2 installation question

2002-10-11 Thread Georg Puchta

Just out of curiosity. I'm running Apache 1.3.20 and Tomcat 4.0.6
on Solaris. I downloaded the mod_jk.so file from the Jakarta web site
and couldn't get it to work smoothly. Whenever I requested a URI
that had parameters appended (?key=value) Apache logged and error
which looked like this:

httpd-error.log: [Wed Oct  9 22:53:31 2002] [notice] child pid 18323 exit
signal Bus Error (10)

I traced it to the connector source file /jk/apache1.3/mod_jk.c in
method init_ws_service() were it says:
s->remote_host  = (char *)ap_get_remote_host(r->connection,
r->per_dir_config, REMOTE_HOST);

I had to replace r->per_dir_config with NULL to get it to work no matter
what URI. Did anyone else have this problem?

-Georg


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 10:00 AM
To: 'Tomcat Users List'
Subject: RE: MOD_JK2 installation question



Just for clarification, there _are_ JAR files that are used by Tomcat to
interface with the connectors.  They're normally included in the Tomcat
distribution, but if you are building from source, you may need to copy them
out of the connector build tree into the appropriate place in the Tomcat
tree.

John


> -Original Message-
> From: Georg Puchta [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 12:20 PM
> To: 'Tomcat Users List'
> Subject: RE: MOD_JK2 installation question
> 
> 
> I did not need to use any .jar file. Here is how I got it to work.
> Apache needs to know about Tomcat. That's done through the mod_jk.so 
> module (Note: Apache needs to be compiled with mod_so.c).
> Apache needs to be configured so it can forward requests to Tomcat.
> That's done by a file called worker.properties and a second file
> I named tomcat-apache.conf.manual. Both files reside in 
> ${TOMCAT_HOME}/conf (see further down). Also append the following line
> to the Apache configuration file httpd.conf:
> 
> Include /usr/local/tomcat/conf/tomcat-apache.conf.manual
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: MOD_JK2 installation question

2002-10-11 Thread Turner, John


Just for clarification, there _are_ JAR files that are used by Tomcat to
interface with the connectors.  They're normally included in the Tomcat
distribution, but if you are building from source, you may need to copy them
out of the connector build tree into the appropriate place in the Tomcat
tree.

John


> -Original Message-
> From: Georg Puchta [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 12:20 PM
> To: 'Tomcat Users List'
> Subject: RE: MOD_JK2 installation question
> 
> 
> I did not need to use any .jar file. Here is how I got it to work.
> Apache needs to know about Tomcat. That's done through the mod_jk.so 
> module (Note: Apache needs to be compiled with mod_so.c).
> Apache needs to be configured so it can forward requests to Tomcat.
> That's done by a file called worker.properties and a second file
> I named tomcat-apache.conf.manual. Both files reside in 
> ${TOMCAT_HOME}/conf (see further down). Also append the following line
> to the Apache configuration file httpd.conf:
> 
> Include /usr/local/tomcat/conf/tomcat-apache.conf.manual
> 

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




RE: Running a servlet automatically

2002-10-11 Thread Georg Puchta

Servlets are not meant to be used in that way. I would think that 
you want to create a small program that does the job and execute
it via a cron job or in Windows via a Task.

-Georg

-Original Message-
From: Ravindra K. Bhat [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 9:42 AM
To: Tomcat Users List
Subject: Running a servlet automatically


Hi
I have a servlet which updates a table when the system time is 4:00 PM.  I
need it to run everyday @ 4:00 PM..how do I do set it up so that it runs
automatically?

Thanks
Ravi  



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Running a servlet automatically

2002-10-11 Thread Ravindra K. Bhat

Hi
I have a servlet which updates a table when the system time is 4:00 PM.  I
need it to run everyday @ 4:00 PM..how do I do set it up so that it runs
automatically?

Thanks
Ravi  



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




Re: Using daemontools to supervise Tomcat

2002-10-11 Thread Ben Ricker

I tried to get Daemontools running for Jserv (which is pretty similar)
and had no luck. My guess is that you might be able to get it to work if
you pass all the env variables using daemontools and just launch java.
However, since java is not a normal daemon, you will probably need
fghack to do it. 

I myself gave up; the thought of creating all those environment
variables was just too much, so I just rolled my own PID monitor whcih I
am porting to Tomcat. Basically, it will grep out the PID and write to a
file which I watch with a cronjob process.

HTH,

Ben Ricker


On Fri, 2002-10-11 at 10:08, camccuk wrote:
> Hello all,
> 
> Does anyone have any experience with using Dan Bernstein's daemontools to
> supervise Tomcat? I've had real trouble getting this to work with either
> startup.sh or catalina.sh but I'm putting this down to the fact that I'm no
> genius with unix processes...
> 
> Having said that, DJB's documentation isn't the most encouraging in the
> world...
> 
> I've got Tomcat 4.0.4 with daemontools 0.7
> 
> Any pointers very welcome,
> 
> cam
> 
> __
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




RE: MOD_JK2 installation question

2002-10-11 Thread Georg Puchta

... and you need to compile mod_jk on Solaris with

cd ./jk
${ANT_HOME}/bin/ant native


-Georg


-Original Message-
From: Georg Puchta [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 9:20 AM
To: 'Tomcat Users List'
Subject: RE: MOD_JK2 installation question


I did not need to use any .jar file. Here is how I got it to work.
Apache needs to know about Tomcat. That's done through the mod_jk.so 
module (Note: Apache needs to be compiled with mod_so.c).
Apache needs to be configured so it can forward requests to Tomcat.
That's done by a file called worker.properties and a second file
I named tomcat-apache.conf.manual. Both files reside in 
${TOMCAT_HOME}/conf (see further down). Also append the following line
to the Apache configuration file httpd.conf:

Include /usr/local/tomcat/conf/tomcat-apache.conf.manual


Sample:
worker.properties

 # Setup for Solaris system
 #
 workers.tomcat_home=/usr/local/tomcat
 workers.java_home=/usr/java
 ps=/
 worker.list=ajp12, ajp13
 
 # Definition for Ajp13 worker
 #
 worker.ajp13.port=8009
 worker.ajp13.host=eng-02
 worker.ajp13.type=ajp13
 
 worker.ajp13.socket_keepalive=0

tomcat-apache.conf.manual

 # Directory settings
 Alias /ichannel /path/to/webapp/web
 
 Allow from all
 
 
 # MOD_JK settings
 LoadModule jk_module libexec/mod_jk.so
 AddModule mod_jk.c
 JkWorkersFile /usr/local/tomcat/conf/workers.properties
 JkLogFile /path/to/logs/mod_jk.log
 JkLogLevel info
 JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
 
 # WEB application mapping
 JkMount /webapp ajp13
 JkMount /webapp/* ajp13
 JkMount /webapp/servlet/* ajp13


Hope that helps

-Georg



-Original Message-
From: Fabio Marsilio [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 9:07 AM
To: Tomcat Users List
Subject: R: MOD_JK2 installation question


Thank you Georg,
but what about the .jar files to put inside catalina home?



-Messaggio originale-
Da: Georg Puchta [mailto:[EMAIL PROTECTED]]
Inviato: venerdì 11 ottobre 2002 18.02
A: 'Tomcat Users List'
Oggetto: RE: MOD_JK2 installation question


Copy the file from e.g. ./jk/build/jk/apache13/mod_jk.so to
${APACHE_HOME}/libexec/mod_jk.so

-Georg

-Original Message-
From: Fabio Marsilio [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 8:54 AM
To: Tomcat Users List
Subject: MOD_JK2 installation question


Hello, I' m new to mod_jk2 (at present I' using mod_webapp)

but I' trying to install it in order to try it.

I have apache 1.3.26 and tomcat 4.0.5 on Solaris 9.

I downloaded tomcat connectors source and successfully built

jk and jk2 modules with ant.

The question is quite stupid for an expert but it's the following:

which  files should be copied and where should they be copied on tomcat?

the readme file on jk connector souce say: run "ant install" and it will
copy the files in the right location.

but if I run it I get an error:

bash-2.05# /data/develop/jakarta-ant-1.5.1/bin/ant install
Buildfile: build.xml

BUILD FAILED
Target `install' does not exist in this project.

Total time: 4 seconds

so I don't know what copy and where to put it inside catalina home.

thank you for your help!

Fabio


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: MOD_JK2 installation question

2002-10-11 Thread Georg Puchta

I did not need to use any .jar file. Here is how I got it to work.
Apache needs to know about Tomcat. That's done through the mod_jk.so 
module (Note: Apache needs to be compiled with mod_so.c).
Apache needs to be configured so it can forward requests to Tomcat.
That's done by a file called worker.properties and a second file
I named tomcat-apache.conf.manual. Both files reside in 
${TOMCAT_HOME}/conf (see further down). Also append the following line
to the Apache configuration file httpd.conf:

Include /usr/local/tomcat/conf/tomcat-apache.conf.manual


Sample:
worker.properties

 # Setup for Solaris system
 #
 workers.tomcat_home=/usr/local/tomcat
 workers.java_home=/usr/java
 ps=/
 worker.list=ajp12, ajp13
 
 # Definition for Ajp13 worker
 #
 worker.ajp13.port=8009
 worker.ajp13.host=eng-02
 worker.ajp13.type=ajp13
 
 worker.ajp13.socket_keepalive=0

tomcat-apache.conf.manual

 # Directory settings
 Alias /ichannel /path/to/webapp/web
 
 Allow from all
 
 
 # MOD_JK settings
 LoadModule jk_module libexec/mod_jk.so
 AddModule mod_jk.c
 JkWorkersFile /usr/local/tomcat/conf/workers.properties
 JkLogFile /path/to/logs/mod_jk.log
 JkLogLevel info
 JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
 
 # WEB application mapping
 JkMount /webapp ajp13
 JkMount /webapp/* ajp13
 JkMount /webapp/servlet/* ajp13


Hope that helps

-Georg



-Original Message-
From: Fabio Marsilio [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 9:07 AM
To: Tomcat Users List
Subject: R: MOD_JK2 installation question


Thank you Georg,
but what about the .jar files to put inside catalina home?



-Messaggio originale-
Da: Georg Puchta [mailto:[EMAIL PROTECTED]]
Inviato: venerdì 11 ottobre 2002 18.02
A: 'Tomcat Users List'
Oggetto: RE: MOD_JK2 installation question


Copy the file from e.g. ./jk/build/jk/apache13/mod_jk.so to
${APACHE_HOME}/libexec/mod_jk.so

-Georg

-Original Message-
From: Fabio Marsilio [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 8:54 AM
To: Tomcat Users List
Subject: MOD_JK2 installation question


Hello, I' m new to mod_jk2 (at present I' using mod_webapp)

but I' trying to install it in order to try it.

I have apache 1.3.26 and tomcat 4.0.5 on Solaris 9.

I downloaded tomcat connectors source and successfully built

jk and jk2 modules with ant.

The question is quite stupid for an expert but it's the following:

which  files should be copied and where should they be copied on tomcat?

the readme file on jk connector souce say: run "ant install" and it will
copy the files in the right location.

but if I run it I get an error:

bash-2.05# /data/develop/jakarta-ant-1.5.1/bin/ant install
Buildfile: build.xml

BUILD FAILED
Target `install' does not exist in this project.

Total time: 4 seconds

so I don't know what copy and where to put it inside catalina home.

thank you for your help!

Fabio


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: wml or jsp to download midlets ?

2002-10-11 Thread Padhu Vinirs


 From the little bit of wml I did 2-3 years back, I accessed a servlet 
that outputted wml to a ericcson and nokia cell-phone simulator. So  u 
can access any url as long as the client is able to handle the content 
type. In your case, wml  for WAP browser clients. Ofcourse your wap 
browser should support downloads.

-- padhu


Daniel Hellstrand wrote:

>I thought I only could use .wml files when browsing with a cell phone (ie over
>WAP) ??
>
>/D
>
>Padhu Vinirs wrote:
>
>  
>
>>Cant you access a jsp or servlet, which will set the right content type
>>so that the browser can start the download ?
>>
>>-- padhu
>>
>>Daniel Hellstrand wrote:
>>
>>
>>
>>>Hello
>>>I got tomcat to work so I can make a simple .wml file and access it
>>>through my mobile phone. But if I want to be able to download .jar and
>>>.jad files to my cell phone, how do I do that, do I have to serve them
>>>through a .jsp or .wml file ?
>>>
>>>/Daniel
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:   
>>>For additional commands, e-mail: 
>>>
>>>
>>>
>>>
>>>  
>>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>



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




R: MOD_JK2 installation question

2002-10-11 Thread Fabio Marsilio

Thank you Georg,
but what about the .jar files to put inside catalina home?



-Messaggio originale-
Da: Georg Puchta [mailto:[EMAIL PROTECTED]]
Inviato: venerdì 11 ottobre 2002 18.02
A: 'Tomcat Users List'
Oggetto: RE: MOD_JK2 installation question


Copy the file from e.g. ./jk/build/jk/apache13/mod_jk.so to
${APACHE_HOME}/libexec/mod_jk.so

-Georg

-Original Message-
From: Fabio Marsilio [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 8:54 AM
To: Tomcat Users List
Subject: MOD_JK2 installation question


Hello, I' m new to mod_jk2 (at present I' using mod_webapp)

but I' trying to install it in order to try it.

I have apache 1.3.26 and tomcat 4.0.5 on Solaris 9.

I downloaded tomcat connectors source and successfully built

jk and jk2 modules with ant.

The question is quite stupid for an expert but it's the following:

which  files should be copied and where should they be copied on tomcat?

the readme file on jk connector souce say: run "ant install" and it will
copy the files in the right location.

but if I run it I get an error:

bash-2.05# /data/develop/jakarta-ant-1.5.1/bin/ant install
Buildfile: build.xml

BUILD FAILED
Target `install' does not exist in this project.

Total time: 4 seconds

so I don't know what copy and where to put it inside catalina home.

thank you for your help!

Fabio


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: Xloggc?

2002-10-11 Thread Tomas Straupis

Buvo 2002 October 11, Friday 17:21, Shapira, Yoav raðë:
> Use JAVA_OPTS in your $CATALINA_HOME/bin/catalina.sh.  For example,
> JAVA_OPTS='-Xloggc:/var/log/tomcat4/tomcat_garbage.log'
  Sorry, I didn't mention, I installed tc from rpm's so there's no catalina.sh
  I checket /usr/bin/dtomcat4 and there is nothing with JAVACMD (as there's 
nothing with it in /etc/rc.d/init.d/) So I don't know why there'is a 
commented line in tomcat4.conf

# You can pass some parameters to java
# here if you wish to
#JAVACMD="$JAVA_HOME/bin/java -Xminf0.1 -Xmaxf0.3"

  Anyway. Now I changed to
  JAVA_OPTS="-Xloggc:/var/log/tomcat4/tomcat_garbage.log"
  in the same tomcat4.conf and it works!

  Thanks


Tomas


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




RE: MOD_JK2 installation question

2002-10-11 Thread Georg Puchta

Copy the file from e.g. ./jk/build/jk/apache13/mod_jk.so to 
${APACHE_HOME}/libexec/mod_jk.so

-Georg

-Original Message-
From: Fabio Marsilio [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 8:54 AM
To: Tomcat Users List
Subject: MOD_JK2 installation question


Hello, I' m new to mod_jk2 (at present I' using mod_webapp)

but I' trying to install it in order to try it.

I have apache 1.3.26 and tomcat 4.0.5 on Solaris 9.

I downloaded tomcat connectors source and successfully built

jk and jk2 modules with ant.

The question is quite stupid for an expert but it's the following:

which  files should be copied and where should they be copied on tomcat?

the readme file on jk connector souce say: run "ant install" and it will
copy the files in the right location.

but if I run it I get an error:

bash-2.05# /data/develop/jakarta-ant-1.5.1/bin/ant install
Buildfile: build.xml

BUILD FAILED
Target `install' does not exist in this project.

Total time: 4 seconds

so I don't know what copy and where to put it inside catalina home.

thank you for your help!

Fabio


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




Re: Tomcat dies periodically

2002-10-11 Thread Jean-Francois Arcand

Well, I'm running Tomcat with win2k without any problems. Try to update:

- your JDK to 1.4
- are you running Tomcat under an admin account? Should not make a 
difference but
- Contact you Computer Associated mailling list to see is someone else 
have the problem.

Bonne chance :-)

-- Jeanfrancois

[EMAIL PROTECTED] wrote:

>We installed 
>
>Java(TM) 2 SDK, Standard Edition
>Version 1.3.1
>
>Thank you,
>
>Hervé Caparros
>Ville de Montréal
>
>
>- Réacheminé par Hervé CAPARROS/MONTREAL le 2002-10-11 11:40 -
>
>
>Jean-Francois Arcand <[EMAIL PROTECTED]>
>2002-10-11 11:10
>Veuillez répondre à "Tomcat Users List"
>
> 
>Pour :  Tomcat Users List <[EMAIL PROTECTED]>
>cc : 
>Objet : Re: Tomcat dies periodically
>
>
>Seems to be a VM bug. Which VM are you using?
>
>-- Jeanfrancois
>
>[EMAIL PROTECTED] wrote:
>
>  
>
>>We are running Tomcat running on a Win2000 SP2 box and Computer Associate 
>>
>>
>
>  
>
>>JASMINE/OPAL with HTTP Host Connector to access a IBM Mainframe with a 
>>
>>
>JSP 
>  
>
>>application.
>>We have this message :
>>
>>An unexpected exception has been detected in native code outside the VM.
>>Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77fcb892
>>Function name=RtlFreeHeap
>>Library=C:\WINNT\System32\ntdll.dll
>>
>>Current Java thread:
>>   at wv.ObjectImpl.nativeInvokeMethod(Native Method)
>>   at wv.ObjectImpl.invokeMethod(ObjectImpl.java:146)
>>   at 
>>com.ca.sessionBeans.CAOasisSession.getCurrentPage(CAOasisSession.java:738)
>>   at 
>>com.ca.sessionBeans.CAOasisSession.AppliCICS(CAOasisSession.java:445)
>>   at 
>>com.ca.requesthandlers.CASysSelect.handleRequest(CASysSelect.java:24)
>>   at 
>>com.ca.CARequestController.getNextPage(CARequestController.java:52)
>>   at 
>>org.apache.jsp.loginCtrlr$jsp._jspService(loginCtrlr$jsp.java:151)
>>   at 
>>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
>>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>   at 
>>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
>>   at 
>>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
>>   at 
>>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
>>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>
>>At this time we don't now where the problem is ?.
>>
>>Please help !!
>>
>>Hervé Caparros
>>Ville de Montréal
>>
>>
>>
>>
>>
>>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>
>  
>



Re: wml or jsp to download midlets ?

2002-10-11 Thread Daniel Hellstrand

I thought I only could use .wml files when browsing with a cell phone (ie over
WAP) ??

/D

Padhu Vinirs wrote:

> Cant you access a jsp or servlet, which will set the right content type
> so that the browser can start the download ?
>
> -- padhu
>
> Daniel Hellstrand wrote:
>
> >Hello
> >I got tomcat to work so I can make a simple .wml file and access it
> >through my mobile phone. But if I want to be able to download .jar and
> >.jad files to my cell phone, how do I do that, do I have to serve them
> >through a .jsp or .wml file ?
> >
> >/Daniel
> >
> >
> >--
> >To unsubscribe, e-mail:   
> >For additional commands, e-mail: 
> >
> >
> >
> >
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




MOD_JK2 installation question

2002-10-11 Thread Fabio Marsilio

Hello, I' m new to mod_jk2 (at present I' using mod_webapp)

but I' trying to install it in order to try it.

I have apache 1.3.26 and tomcat 4.0.5 on Solaris 9.

I downloaded tomcat connectors source and successfully built

jk and jk2 modules with ant.

The question is quite stupid for an expert but it's the following:

which  files should be copied and where should they be copied on tomcat?

the readme file on jk connector souce say: run "ant install" and it will
copy the files in the right location.

but if I run it I get an error:

bash-2.05# /data/develop/jakarta-ant-1.5.1/bin/ant install
Buildfile: build.xml

BUILD FAILED
Target `install' does not exist in this project.

Total time: 4 seconds

so I don't know what copy and where to put it inside catalina home.

thank you for your help!

Fabio




Re: Tomcat dies periodically

2002-10-11 Thread hcaparros

We installed 

Java(TM) 2 SDK, Standard Edition
Version 1.3.1

Thank you,

Hervé Caparros
Ville de Montréal


- Réacheminé par Hervé CAPARROS/MONTREAL le 2002-10-11 11:40 -


Jean-Francois Arcand <[EMAIL PROTECTED]>
2002-10-11 11:10
Veuillez répondre à "Tomcat Users List"

 
Pour :  Tomcat Users List <[EMAIL PROTECTED]>
cc : 
Objet : Re: Tomcat dies periodically


Seems to be a VM bug. Which VM are you using?

-- Jeanfrancois

[EMAIL PROTECTED] wrote:

>We are running Tomcat running on a Win2000 SP2 box and Computer Associate 

>JASMINE/OPAL with HTTP Host Connector to access a IBM Mainframe with a 
JSP 
>application.
>We have this message :
>
>An unexpected exception has been detected in native code outside the VM.
>Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77fcb892
>Function name=RtlFreeHeap
>Library=C:\WINNT\System32\ntdll.dll
>
>Current Java thread:
>at wv.ObjectImpl.nativeInvokeMethod(Native Method)
>at wv.ObjectImpl.invokeMethod(ObjectImpl.java:146)
>at 
>com.ca.sessionBeans.CAOasisSession.getCurrentPage(CAOasisSession.java:738)
>at 
>com.ca.sessionBeans.CAOasisSession.AppliCICS(CAOasisSession.java:445)
>at 
>com.ca.requesthandlers.CASysSelect.handleRequest(CASysSelect.java:24)
>at 
>com.ca.CARequestController.getNextPage(CARequestController.java:52)
>at 
>org.apache.jsp.loginCtrlr$jsp._jspService(loginCtrlr$jsp.java:151)
>at 
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
>at 
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
>at 
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
>At this time we don't now where the problem is ?.
>
>Please help !!
>
>Hervé Caparros
>Ville de Montréal
>
>
> 
>


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





Re: wml or jsp to download midlets ?

2002-10-11 Thread Padhu Vinirs


Cant you access a jsp or servlet, which will set the right content type 
so that the browser can start the download ?

-- padhu

Daniel Hellstrand wrote:

>Hello
>I got tomcat to work so I can make a simple .wml file and access it
>through my mobile phone. But if I want to be able to download .jar and
>.jad files to my cell phone, how do I do that, do I have to serve them
>through a .jsp or .wml file ?
>
>/Daniel
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>



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




Segmentation Fault Core dump when starting Tomcat

2002-10-11 Thread Collins, Jim

Hi all,

I have had a strange problem when trying to start Tomcat 4.1.10 using JDK
1.4.1. I install Tomcat to a write only NFS area and have symbolic links for
conf, common, webapps, work and logs. I was previously using JDK 1.4.0 with
this set-up and everything worked fine however with JDK 1.4.1 whenever I
start Tomcat I get a core dump. What I did to solve this was cp
bootstrap.jar from bin (read-only) to conf and then change the
java.endorsed.dirs property to pick up the new location of bootstrap.jar.
This fixes the problem and Tomcat starts fine.

Does anyone have any idea what could have changed between 1.4.0 and 1.4.1 to
have caused this problem? I have it working now so it is not a major
problem, I would just like to know what could have caused this to happen.

Thanks

Jim.

PS I am using Solaris 8 with all the correct patches to run JDK 1.4.1
PPS Appologies if this question is not appropriate for this list.


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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




wml or jsp to download midlets ?

2002-10-11 Thread Daniel Hellstrand

Hello
I got tomcat to work so I can make a simple .wml file and access it
through my mobile phone. But if I want to be able to download .jar and
.jad files to my cell phone, how do I do that, do I have to serve them
through a .jsp or .wml file ?

/Daniel


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




RE: Tomcat + log4J

2002-10-11 Thread Shapira, Yoav

Hi,
How do you configure log4j?  Make sure you configure log4j before any
logger calls.  

A good place to do this in your webapp is in a servlet context
listener's contextInitialized() method.  But there are many other ways.


Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: QUERTEMONT Christophe [mailto:[EMAIL PROTECTED]]
>Sent: Friday, October 11, 2002 11:23 AM
>To: Tomcat
>Subject: Tomcat + log4J
>
>I am trying to use log4j with tomcat and I always get the error : No
>appenders could be found for category (...)
>Can anyone help ?
>
>Tanks,
>
>___
>QUERTEMONT Christophe
>
>E-mail :   [EMAIL PROTECTED]
>___
>


This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



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


tomcat and ssl

2002-10-11 Thread Rau, Andrea

Hello,

I try to configure tomcat for ssl-connections but get an error message...
I am using tomcat v4.0.4 and jdk v1.4.0_01-b03 under redhat linux. 
The jdk already contains jsse and its keytool that allows to create the appropriate 
keys. 
I follow the paper "Setting up Apache Tomcat and a Simple Apache SOAP Client for SSL 
Communication" from April 2001 (creating keys using the keytool)
till step 3. (The parameter keystore in server.xml has to be renamed into keystoreFile 
and keypass into keystorePass).
After that I try to start tomcat but I always get the following error message:

initKeyStore:  java.io.IOException: Bad KeyStore file, expecting a 40 character line.
java.io.IOException: Bad KeyStore file, expecting a 40 character line.
at com.ncipher.provider.km.KMKeyStore.engineLoad(KMKeyStore.java:674)
at java.security.KeyStore.load(KeyStore.java:652)
at 
org.apache.catalina.net.SSLServerSocketFactory.initKeyStore(SSLServerSocketFactory.java:366)
at 
org.apache.catalina.net.SSLServerSocketFactory.initialize(SSLServerSocketFactory.java:333)
at 
org.apache.catalina.net.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:287)
at 
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:948)
at 
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1128)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:239)
at 
org.apache.catalina.startup.CatalinaService.execute(CatalinaService.java:171)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)

(although the created keystores can be viewed by the keytool.) Can you help me? 

thank you and regards,
Andrea Rau


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




Class.forName call hangs tomcat.

2002-10-11 Thread Koes, Derrick


This is a very intermittent problem with tomcat 4.0.4/j2sdk 1.4.0_02.
Sometimes, jsp pages hang (do not load) in the java code if using
Class.forName for a class used by the JSP.

Has anyone had similar experience?

If so, how did you remedy the situation?

Thanks,
Derrick
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


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




RE: Xloggc?

2002-10-11 Thread Shapira, Yoav

Hi,
Use JAVA_OPTS in your $CATALINA_HOME/bin/catalina.sh.  For example,
JAVA_OPTS='-Xloggc:/var/log/tomcat4/tomcat_garbage.log'

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Tomas Straupis [mailto:[EMAIL PROTECTED]]
>Sent: Friday, October 11, 2002 11:13 AM
>To: [EMAIL PROTECTED]
>Subject: Xloggc?
>
>Hello
>
>  Had anyone of You tried logging GC actions to a file?
>
>  Its stated in
>http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/java.html, that
>-Xloggc:file option has to be used for that. So I place next line into
my
>tomcat4.conf file:
>  JAVACMD="$JAVA_HOME/bin/java
-Xloggc:/var/log/tomcat4/tomcat_garbage.log
>  restart tomcat. Wait for some time (~3-4 days, with at least 30 users
>comming in and using my apps). But nothing seems to appear in that dir.
>  Tomcat is writing other logs into that dir, so there shoud be no
problems
>with permissions.
>
>  Am I doing something wrong?
>
>P.S. I'm using tomcat 4.0.4 on rh7.3 with suns jdk1.4.1.
>
>  Thanks
>
>
>Tomas Straupis
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



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


Tomcat + log4J

2002-10-11 Thread QUERTEMONT Christophe

I am trying to use log4j with tomcat and I always get the error : No
appenders could be found for category (...)
Can anyone help ?
 
Tanks,
  
___
QUERTEMONT Christophe
 
E-mail :   [EMAIL PROTECTED]
___
 



Xloggc?

2002-10-11 Thread Tomas Straupis

Hello

  Had anyone of You tried logging GC actions to a file?

  Its stated in 
http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/java.html, that 
-Xloggc:file option has to be used for that. So I place next line into my 
tomcat4.conf file:
  JAVACMD="$JAVA_HOME/bin/java -Xloggc:/var/log/tomcat4/tomcat_garbage.log
  restart tomcat. Wait for some time (~3-4 days, with at least 30 users 
comming in and using my apps). But nothing seems to appear in that dir.
  Tomcat is writing other logs into that dir, so there shoud be no problems 
with permissions.

  Am I doing something wrong?

P.S. I'm using tomcat 4.0.4 on rh7.3 with suns jdk1.4.1.

  Thanks


Tomas Straupis


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




FW: Adding tablib's to tomcat's web.xml?

2002-10-11 Thread Matt Raible

I never saw a response the first time I asked (yesterday) so I'm trying
again...

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 10, 2002 4:52 PM
To: 'Tomcat Users List'
Subject: Adding tablib's to tomcat's web.xml?


Is it possible to add a taglib definition to tomcat's web.xml and it
will affect all your webapps?  If so - were do you put the tld?

Thanks,

Matt



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




Re: Tomcat dies periodically

2002-10-11 Thread Jean-Francois Arcand

Seems to be a VM bug. Which VM are you using?

-- Jeanfrancois

[EMAIL PROTECTED] wrote:

>We are running Tomcat running on a Win2000 SP2 box and Computer Associate 
>JASMINE/OPAL with HTTP Host Connector to access a IBM Mainframe with a JSP 
>application.
>We have this message :
>
>An unexpected exception has been detected in native code outside the VM.
>Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77fcb892
>Function name=RtlFreeHeap
>Library=C:\WINNT\System32\ntdll.dll
>
>Current Java thread:
>at wv.ObjectImpl.nativeInvokeMethod(Native Method)
>at wv.ObjectImpl.invokeMethod(ObjectImpl.java:146)
>at 
>com.ca.sessionBeans.CAOasisSession.getCurrentPage(CAOasisSession.java:738)
>at 
>com.ca.sessionBeans.CAOasisSession.AppliCICS(CAOasisSession.java:445)
>at 
>com.ca.requesthandlers.CASysSelect.handleRequest(CASysSelect.java:24)
>at 
>com.ca.CARequestController.getNextPage(CARequestController.java:52)
>at 
>org.apache.jsp.loginCtrlr$jsp._jspService(loginCtrlr$jsp.java:151)
>at 
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
>at 
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
>at 
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
>At this time we don't now where the problem is ?.
>
>Please help !!
>
>Hervé Caparros
>Ville de Montréal
>
>
>  
>


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




Using daemontools to supervise Tomcat

2002-10-11 Thread camccuk

Hello all,

Does anyone have any experience with using Dan Bernstein's daemontools to
supervise Tomcat? I've had real trouble getting this to work with either
startup.sh or catalina.sh but I'm putting this down to the fact that I'm no
genius with unix processes...

Having said that, DJB's documentation isn't the most encouraging in the
world...

I've got Tomcat 4.0.4 with daemontools 0.7

Any pointers very welcome,

cam

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

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




Tomcat dies periodically

2002-10-11 Thread hcaparros

We are running Tomcat running on a Win2000 SP2 box and Computer Associate 
JASMINE/OPAL with HTTP Host Connector to access a IBM Mainframe with a JSP 
application.
We have this message :

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77fcb892
Function name=RtlFreeHeap
Library=C:\WINNT\System32\ntdll.dll

Current Java thread:
at wv.ObjectImpl.nativeInvokeMethod(Native Method)
at wv.ObjectImpl.invokeMethod(ObjectImpl.java:146)
at 
com.ca.sessionBeans.CAOasisSession.getCurrentPage(CAOasisSession.java:738)
at 
com.ca.sessionBeans.CAOasisSession.AppliCICS(CAOasisSession.java:445)
at 
com.ca.requesthandlers.CASysSelect.handleRequest(CASysSelect.java:24)
at 
com.ca.CARequestController.getNextPage(CARequestController.java:52)
at 
org.apache.jsp.loginCtrlr$jsp._jspService(loginCtrlr$jsp.java:151)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

At this time we don't now where the problem is ?.

Please help !!

Hervé Caparros
Ville de Montréal




Re: connector between tomcat & apache

2002-10-11 Thread Raj Saini

What does this mean sonam?

Raj

sonam singh wrote:
> use mount_msdos /dev/fd0 /mnt
> regards
> Sonam Singh
> 
> 
> --- unplug <[EMAIL PROTECTED]> wrote:
> 
>>Thanks for your example.  But I am still confused to
>>set it up.  I think
>>it is better to do a setup comparison with
>>tomcat3.3+apache1.3+mod_jk.
>>
>>tomcat3.3+apache1.3+mod_jk:
>>It needs a configuration file called mod_jk.conf and
>>include it in
>>httpd.conf.
>>
>>tomcat4.1+apache1.3+mod_jk2:
>>Where is the configuration file?  What should I
>>include in httpd.conf? 
>>Moreover, the document mentions a worker file called
>>worker2.properties.  Where does it located?
>>
>>
>>Robert L Sowders wrote:
>>
>>>Here is an example, modify to suit your needs. 
>>
>>Disable JNI if you don't
>>
>>>use it.  Change Disable=0 to Disable=1 in the
>>
>>appropriate places.
>>
>>>[logger]
>>>level=DEBUG
>>>
>>>[config:]
>>>#file=${serverRoot}/conf/workers2.properties
>>>file=c:/Apache2/conf/workers2.properties
>>>debug=0
>>>debugEnv=0
>>>
>>>[uriMap:]
>>>info=Maps the requests. Options: debug
>>>debug=0
>>>
>>># Alternate file logger
>>>#[logger.file:0]
>>>#level=DEBUG
>>>#file=${serverRoot}/logs/jk2.log
>>>
>>>[shm:]
>>>info=Scoreboard. Required for reconfiguration and
>>
>>status with multiprocess
>>
>>>servers
>>>file=${serverRoot}/logs/jk2.shm
>>>size=100
>>>debug=0
>>>disabled=0
>>>
>>>[workerEnv:]
>>>info=Global server options
>>>timing=1
>>>debug=0
>>># Default Native Logger (apache2 or win32 )
>>># can be overriden to a file logger, useful
>>># when tracing win32 related issues
>>>#logger=logger.file:0
>>>
>>>[lb:lb]
>>>info=Default load balancer.
>>>debug=0
>>>
>>>#[lb:lb_1]
>>>#info=A second load balancer.
>>>#debug=0
>>>
>>>[channel.socket:localhost:8009]
>>>info=Ajp13 forwarding over socket
>>>debug=0
>>>tomcatId=localhost:8009
>>>
>>>#[channel.socket:localhost:8019]
>>>#info=A second tomcat instance.
>>>#debug=0
>>>#tomcatId=localhost:8019
>>>#lb_factor=1
>>>#group=lb
>>>#group=lb_1
>>>#disabled=0
>>>
>>>#[channel.un:/opt/33/work/jk2.socket]
>>>#info=A second channel connecting to
>>
>>localhost:8019 via unix socket
>>
>>>#tomcatId=localhost:8019
>>>#lb_factor=1
>>>#debug=0
>>>
>>>[channel.jni:jni]
>>>info=The jni channel, used if tomcat is started
>>
>>inprocess
>>
>>>[status:]
>>>info=Status worker, displays runtime informations
>>>
>>>[vm:]
>>>info=Parameters used to load a JVM in the server
>>
>>process
>>
>>>#JVM=C:\Program
>>
>>Files\Java\j2re1.4.0_01\bin\client\jvm.dll (Read
>>from
>>
>>>registry)
>>>OPT=-Djava.class.path=c:/Tomcat/bin/tomcat-jni.jar
>>>OPT=-Dtomcat.home=c:/Tomcat
>>>OPT=-Dcatalina.home=c:/Tomcat
>>>OPT=-Xmx128M
>>>#OPT=-Djava.compiler=NONE
>>>disabled=0
>>>
>>>[worker.jni:onStartup]
>>>info=Command to be executed by the VM on startup.
>>
>>This one will start
>>
>>>tomcat.
>>>class=org/apache/jk/apr/TomcatStarter
>>>ARG=start
>>>disabled=0
>>>stdout=c:/Apache2/logs/stdout.log
>>>stderr=c:/Apache2/logs/stderr.log
>>>
>>>[worker.jni:onShutdown]
>>>info=Command to be executed by the VM on shutdown.
>>
>>This one will stop
>>
>>>tomcat.
>>>class=org/apache/jk/apr/TomcatStarter
>>>ARG=stop
>>>disabled=0
>>>
>>>[uri:/jkstatus/*]
>>>info=Display status information and checks the
>>
>>config file for changes.
>>
>>>group=status:
>>>
>>>#[uri:127.0.0.1:8003]
>>>#info=Example virtual host. Make sure
>>
>>myVirtualHost is in /etc/hosts to
>>
>>>test it
>>>#alias=myVirtualHost:8003
>>>
>>>#[uri:127.0.0.1:8003/ex]
>>>#info=Example webapp in the virtual host. It'll go
>>
>>to lb_1 ( i.e.
>>
>>>localhost:8019 )
>>>#context=/ex
>>>#group=lb_1
>>>
>>>[uri:/examples]
>>>info=Example webapp in the default context.
>>>context=/examples
>>>debug=0
>>>
>>>#[uri:/examples1/*]
>>>#info=A second webapp, this time going to the
>>
>>second tomcat only.
>>
>>>#group=lb_1
>>>#debug=0
>>>
>>>[uri:/examples/servlets/*]
>>>info=Prefix mapping
>>>
>>>[uri:/examples/*.jsp]
>>>info=Extension mapping
>>>
>>>[uri:/examples/*]
>>>info=Map the whole webapp
>>>
>>>[uri:/examples/servlets/HelloW]
>>>info=Exampel with debug enabled.
>>>debug=10
>>>
>>>unplug <[EMAIL PROTECTED]>
>>>10/09/2002 07:05 PM
>>>Please respond to "Tomcat Users List"
>>>
>>>
>>>To: Tomcat Users List
>>
>><[EMAIL PROTECTED]>
>>
>>>cc:
>>>Subject:Re: connector between
>>
>>tomcat & apache
>>
>>>Any example for using mod_jk2 with
>>
>>apache1.3+tomcat4.1?  I follow the
>>
>>>instruction from the document to download the
>>
>>mod_jk2.  Then I put it
>>
>>>under apache_home/modules.  Then I add LoadModule
>>
>>& AddModule of mod_jk2
>>
>>>in httpd.conf.  After that, the document said
>>
>>there is a file called
>>
>>>worker2.properties which is used by apache.  I
>>
>>can't found that file in
>>
>>>tomcat.  Moreover, I doubt what setting should I
>>
>>add in httpd.conf.
>>
>>>unplug
>>>
>>>"Turner, John" wrote:
>>>
Mod_jk (AJP13).  Don't use WARP/mod_webapp.

Mod_jk2 is beta, workable, but use at your own
>>>
>>risk. 
> 
> === message truncated

Tomcat is supposing a js file is a servlet

2002-10-11 Thread LFigueiredo

Probably one of my ( Automatically generated ) servlets is calling an 
external javascript file called gx_help.js. Tomcat is assuming that this 
file is an servlet and log the error that follows:


2002-10-11 09:59:25 
StandardWrapper[:org.apache.catalina.INVOKER.gx_help.js]: Marking servlet 
org.apache.catalina.INVOKER.gx_help.js as unavailable
2002-10-11 09:59:25 invoker: Cannot allocate servlet instance for path 
/servlet/gx_help.js
javax.servlet.ServletException: Wrapper cannot find servlet class 
gx_help.js or a class it depends on
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:880)
at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:408)
at 
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
(...)


Does anyone knows how to make it works?


Thanks,
Leo


Re: Servlets not working with tomcat 4.1.12(4.0.4 error)

2002-10-11 Thread Ashish Kulkarni

Hi Sonam,
I have attached server.xml and web.xml for tomcat(i
have renamed the web.xml for server to webserver.xml),
and also web.xml for my web app 
thanx for the help

Ashish

--- sonam singh <[EMAIL PROTECTED]> wrote:
> specify u'r server.xml and and web.xml so that i can
> helpu out
> regards
> Sonam Singh
> 
> --- Ashish Kulkarni <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> > I was just trying to  migrate to tomcat4.1.12 from
> > tomcat 4.0.4, so created a web application in
> > server.xml of tomcat4.1.12, pointing towards the
> > extiting folder(where in have my web-inf) file, 
> > the problem i am facing is all the jsps work but
> > none
> > of the servlets work, i get 4.0.4 error, saying
> > servlet not found, i have my web.xml file and all
> > the
> > servlets registered in it,
> > infact  i have a servlet which loads at startup,
> and
> > works fine , but other servlets dont work...
> > what may be the reson???
> > 
> > Ashish
> > 
> > __
> > Do you Yahoo!?
> > Faith Hill - Exclusive Performances, Videos & More
> > http://faith.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:  
> >
> 
> > For additional commands, e-mail:
> > 
> > 
> 
> 
> __
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 



__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com





	
	
	
	
	
	
		
		
		
		
		
			
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
			
			
pathname
conf/tomcat-users.xml
			
		
	
	
	
	
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			












	



	



	
	
	
	
	
	
	
	
	
	
		
			user
			sa
		
		
			password
			
		
		
			driverClassName
			org.hsql.jdbcDriver
		
		
			driverName
			jdbc:HypersonicSQL:database
		
	
	
	
		
			mail.smtp.host
			localhost
		
	
	

			
		
	
	
	
	




http://java.sun.com/dtd/web-app_2_3.dtd";>



  log4j-init

  com.pfizer.maps.servlet.Log4JInitServlet

  
 fileName

 /WEB-INF/MapsLog4J.xml
  

  1
   

   
  Maps-init

  com.pfizer.maps.servlet.MapsInitServlet

  
 fileName

 /WEB-INF/maps-config.xml
  

  2
   

   
  GoToServlet

  com.pfizer.maps.servlet.GoToServlet
   

   
  PL1077AddServlet

  com.pfizer.maps.servlet.planning.PL1077AddServlet
   

   
  PL1077UpdateServlet

  com.pfizer.maps.servlet.planning.PL1077UpdateServlet
   

   
  PL1077DeleteServlet

  com.pfizer.maps.servlet.planning.PL1077DeleteServlet
   

   
  PL1078AddServlet

  com.pfizer.maps.servlet.planning.PL1078AddServlet
   

   
  PL1078UpdateServlet

  com.pfizer.maps.servlet.planning.PL1078UpdateServlet
   

   
  PL1078DeleteServlet

  com.pfizer.maps.servlet.planning.PL1078DeleteServlet
   

   
  PL1079AddServlet

  com.pfizer.maps.servlet.planning.PL1079AddServlet
   

   
  PL1079UpdateServlet

  com.pfizer.maps.servlet.planning.PL1079UpdateServlet
   

   
  PL1079DeleteServlet

  com.pfizer.maps.servlet.planning.PL1079DeleteServlet
   

   
  PL1080AddServlet

  com.pfizer.maps.servlet.planning.PL1080AddServlet
   

   
  PL1080UpdateServlet

  com.pfizer.maps.servlet.planning.PL1080UpdateServlet
   

   
  PL1080DeleteServlet

  com.pfizer.maps.servlet.planning.PL1080DeleteServlet
   

   
  PL1081AddServlet

  com.pfizer.maps.servlet.planning.PL1081AddServlet
   

   
  PL1081UpdateServlet

  com.pfizer.maps.servlet.planning.PL1081UpdateServlet
   

   
  PL1081DeleteServlet

  com.pfizer.maps.servlet.planning.PL1081DeleteServlet
   

   
  PL1082AddServlet

  com.pfizer.maps.servlet.planning.PL1082AddServlet
   

   
  PL1082UpdateServlet

  com.pfizer.maps.servlet.planning.PL1082UpdateServlet
   

   
  PL1082DeleteServlet

  com.pfizer.maps.servlet.planning.PL1082DeleteServlet
   

   
  PL1083AddServlet

  com.pfizer.maps.servlet.planning.PL1083AddServlet
   

   
  PL1083UpdateServlet

  com.pfizer.maps.servlet.planning.PL1083UpdateServlet
   

   
  PL1083DeleteServlet

  com.pfizer.maps.servlet.planning.PL1083DeleteServlet
   

   
  PL1086AddServlet

  com.pfizer.maps.servlet.planning.PL1086AddServlet
   

   
  PL1086UpdateServlet

  com.pfizer.maps.servlet.planning.PL1086UpdateServlet
   

  

JK2 tomcatId and load balancing

2002-10-11 Thread gabriele . garuglieri

If anybody is interested.
I was trying to implement a load balacer with mod_jk2 and i had to dig in
the code to discover that the worker propery tomcatId, within the code is
called route and is compared to session_route, coming attached to
jsessionid, that in turn is the jvmRoute, and that the two must match to
implement a working load balacer.
For the developers.
May be a more consistent naming could help while in the doc is still in the
development phase.
What do you think about calling it tomcat_jvmRoute?

Thanks,  Gabriele.


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




Re: Servlets not working with tomcat 4.1.12(4.0.4 error)

2002-10-11 Thread Ashish Kulkarni

Hi,

i think it is a problem with the invoker, as Raj said,
since i mapped the servlet in web.xml of my
applicatoin, i got it working, but if i have to enable
the invoker how can i do it???
or write and invoker for only a perticular
application...
so i dont have to map each servlet

Ashish
--- Raj Saini <[EMAIL PROTECTED]> wrote:
> Do you have your servlets mapped in the web.xml of
> your application?
> 
> In Tomcat 4.1.12 and 4.0.5, the default servelt
> invoker is disabled due 
> to security hole in the older releases. You can
> uncomment the invoker 
> servlet mapping at your own risk or map your
> servlets in your web.xml.
> 
> Raj Saini
> 
> default
> sonam singh wrote:
> > specify u'r server.xml and and web.xml so that i
> can
> > helpu out
> > regards
> > Sonam Singh
> > 
> > --- Ashish Kulkarni <[EMAIL PROTECTED]>
> wrote:
> > 
> >>Hi,
> >>I was just trying to  migrate to tomcat4.1.12 from
> >>tomcat 4.0.4, so created a web application in
> >>server.xml of tomcat4.1.12, pointing towards the
> >>extiting folder(where in have my web-inf) file, 
> >>the problem i am facing is all the jsps work but
> >>none
> >>of the servlets work, i get 4.0.4 error, saying
> >>servlet not found, i have my web.xml file and all
> >>the
> >>servlets registered in it,
> >>infact  i have a servlet which loads at startup,
> and
> >>works fine , but other servlets dont work...
> >>what may be the reson???
> >>
> >>Ashish
> >>
> >>__
> >>Do you Yahoo!?
> >>Faith Hill - Exclusive Performances, Videos & More
> >>http://faith.yahoo.com
> >>
> >>--
> >>To unsubscribe, e-mail:  
>
>>
> >>For additional commands, e-mail:
> >>
> >>
> > 
> > 
> > __
> > Do you Yahoo!?
> > Faith Hill - Exclusive Performances, Videos & More
> > http://faith.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:  
> 
> > For additional commands, e-mail:
> 
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

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




tomcat getting shut down suddenly....

2002-10-11 Thread Nitin

hi all,
anybody knows what the foll. errror msg in tomcat means?
this msg was logged in the error.log file in the bin folder of tomcat.
i'm using tomcat 3.3.

JNI panic: native code passed a wrong class to a static method
at java.lang.Class.getMethods0(Native Method)
at java.lang.Class.getMethods(Class.java:717)
at org.apache.tomcat.util.qlog.Logger.printThrowable(Unknown Source)
at org.apache.tomcat.util.qlog.Logger.throwableToString(Unknown Source)
at org.apache.tomcat.modules.generators.ExceptionHandler.doService(Unknown 
Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.modules.generators.ErrorHandler.handleErrorImpl(Unknown 
Source)
at org.apache.tomcat.modules.generators.ErrorHandler.handleError(Unknown 
Source)
at org.apache.tomcat.core.ContextManager.handleError(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Unknown 
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown 
Source)
at java.lang.Thread.run(Thread.java:479)


any pointers , suggestions are highly appreciated
thanx & regards
Nitin



Re: Tomcat Users List - read receipts

2002-10-11 Thread Chris Wolcott

I'm using Netscape 6 (Sometimes Opera 6) and I do not see an option to 
request a 'Read Receipt' either in the MAIL PREFERENCES or the 
individual eMail when I send it.  I also do not get back any receipts.  

Michael Schulz wrote:

>Paul, et. al,
>
>Please disable the "read receipt requested" option in your email application
>when you are posting to the Tomcat Users List.  You don't really want a read
>receipt from every member of the Tomcat Users List, do you?
>
>Thanks,
>Mike
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>



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




Problem with JkMount /java/* ajp13 and web.xml

2002-10-11 Thread paul

Hi,
  We have recently had a problem surface on a server.  The situation is
this, and I am fairly sure it was working perfectly before:

1) http://domain/servlet/  is the default servlet mount line.
2) http://domain/java/ is an addition one.

  both of the above are in apache config, using mod_jk and Tomcat 3.2.3,
like so:

  JkMount /servlet/* ajp13
  JkMount /java/* ajp13

  This the latter stopped working so as a quick fix I added another
InvokerServlet entry in server.xml with /java/ as the prefix.  This
resolved the problem in the sense that /java/Hello would work to call
hello world.  The problem is that servlet-mapping entries in the web.xml
file for the site are not working.  You can call the entire class
directly, e.g.:

  http://domain/java/uk.com.shopping.Cart

  but not the web.xml mapped shorthand:

  http://domain/java/Cart

  Does anyone have any idea what could have changed to bring about this
and what I could do as a solution?

Paul


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




JK2 URI not correctly mapped for multiple virtual hosts in httpd.conf

2002-10-11 Thread gabriele . garuglieri

Suppose you have a configuration like this:

 ServerName srva
 ServerAliasa.srva
 ServerAliasb.srva
  .
[ some apache specific conf omitted]
  .
 
  JkUriSet group wrka
 
 
  JkUriSet group wrka
 



 ServerName srvb
 ServerAliasa.srvb
 ServerAliasb.srvb
  .
[ some apache specific conf omitted]
  .
 
  JkUriSet group wrkb
 
 
  JkUriSet group wrkb
 


Mod jk2 will save the uri's only by the names written in FilesMatch  and
Location without the virtual server name and alias, so after reading the
configuration  the only save uri set is the last one that was read,  as
seen from jkstatus "runtime uri info":

id   name host uri  group
0/*.jspsrvb /*.jspwrkb
0/servlet  srvb /servlet  wrkb

No mention of srva and all the requests for /*jsp and /servlet, wether sent
to srva  or srvb will be redirected to wrkb.
There is no way ( at least no one i could figure out) to map the requests
with the correct worker  unless you omit completely any jk2 config from
http.conf and map all the uri into workers2.properties.
But this is not feasible when you have many virtual hosts with many aliases
and many FilesMatch and Location, because of the explosive count of the
various combinations [(Number of VirtualHosts) * (number of names for each
VirtualHost) * (number of filesystems and webspace containers)] and the
fact that the discrimination of the requests is delegated to mod_jk2
instead of the more efficient apache.

Is this still work in progress or is a bug?

Thanks,  Gabriele


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




Using external login pages for web applications

2002-10-11 Thread Johann Uhrmann

Hi,

our public internet site should contain a form which allows the user
to type in his/her user name and password.
Then, the user should be logged in with this data in a web application.

Does the form based login mechanism of tomcat support such a login
procedure or does it require that the user tries to access a protected
page before he/she can type in the username and password?

It would be more convenient to have a login form on a external (high
traffic) site than requesting the user to click a link to a different
login page. (one more click scares away a lot of users)

Is there a solution or is this already a supported scenario?

Thank You,

Hans




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




Tomcat + SSL & Certificate

2002-10-11 Thread QUERTEMONT Christophe

Hi,
 
I'am having trouble installing a certificate from certificate authority.
I have imported my chain certificate into the keystore (keytool -import
-alias root -trustcacerts -file cacert.pem) and then 
my new certificate (keytool -import -alias tomcat -trustcacerts -file
newcert.pem). 
I can start tomcat and connect in htpp without any problem, but once I
try to connect using https, I got a HTTP 404 error !
 
Any idea ?
Thanks,
 
___
QUERTEMONT Christophe
 
E-mail :   [EMAIL PROTECTED]
___
 



re: Tomcat Users List - read receipts

2002-10-11 Thread Michael Schulz

Paul, et. al,

Please disable the "read receipt requested" option in your email application
when you are posting to the Tomcat Users List.  You don't really want a read
receipt from every member of the Tomcat Users List, do you?

Thanks,
Mike


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




Re: connector between tomcat & apache

2002-10-11 Thread sonam singh

use mount_msdos /dev/fd0 /mnt
regards
Sonam Singh


--- unplug <[EMAIL PROTECTED]> wrote:
> Thanks for your example.  But I am still confused to
> set it up.  I think
> it is better to do a setup comparison with
> tomcat3.3+apache1.3+mod_jk.
> 
> tomcat3.3+apache1.3+mod_jk:
> It needs a configuration file called mod_jk.conf and
> include it in
> httpd.conf.
> 
> tomcat4.1+apache1.3+mod_jk2:
> Where is the configuration file?  What should I
> include in httpd.conf? 
> Moreover, the document mentions a worker file called
> worker2.properties.  Where does it located?
> 
> 
> Robert L Sowders wrote:
> > 
> > Here is an example, modify to suit your needs. 
> Disable JNI if you don't
> > use it.  Change Disable=0 to Disable=1 in the
> appropriate places.
> > 
> > [logger]
> > level=DEBUG
> > 
> > [config:]
> > #file=${serverRoot}/conf/workers2.properties
> > file=c:/Apache2/conf/workers2.properties
> > debug=0
> > debugEnv=0
> > 
> > [uriMap:]
> > info=Maps the requests. Options: debug
> > debug=0
> > 
> > # Alternate file logger
> > #[logger.file:0]
> > #level=DEBUG
> > #file=${serverRoot}/logs/jk2.log
> > 
> > [shm:]
> > info=Scoreboard. Required for reconfiguration and
> status with multiprocess
> > servers
> > file=${serverRoot}/logs/jk2.shm
> > size=100
> > debug=0
> > disabled=0
> > 
> > [workerEnv:]
> > info=Global server options
> > timing=1
> > debug=0
> > # Default Native Logger (apache2 or win32 )
> > # can be overriden to a file logger, useful
> > # when tracing win32 related issues
> > #logger=logger.file:0
> > 
> > [lb:lb]
> > info=Default load balancer.
> > debug=0
> > 
> > #[lb:lb_1]
> > #info=A second load balancer.
> > #debug=0
> > 
> > [channel.socket:localhost:8009]
> > info=Ajp13 forwarding over socket
> > debug=0
> > tomcatId=localhost:8009
> > 
> > #[channel.socket:localhost:8019]
> > #info=A second tomcat instance.
> > #debug=0
> > #tomcatId=localhost:8019
> > #lb_factor=1
> > #group=lb
> > #group=lb_1
> > #disabled=0
> > 
> > #[channel.un:/opt/33/work/jk2.socket]
> > #info=A second channel connecting to
> localhost:8019 via unix socket
> > #tomcatId=localhost:8019
> > #lb_factor=1
> > #debug=0
> > 
> > [channel.jni:jni]
> > info=The jni channel, used if tomcat is started
> inprocess
> > 
> > [status:]
> > info=Status worker, displays runtime informations
> > 
> > [vm:]
> > info=Parameters used to load a JVM in the server
> process
> > #JVM=C:\Program
> Files\Java\j2re1.4.0_01\bin\client\jvm.dll (Read
> from
> > registry)
> > OPT=-Djava.class.path=c:/Tomcat/bin/tomcat-jni.jar
> > OPT=-Dtomcat.home=c:/Tomcat
> > OPT=-Dcatalina.home=c:/Tomcat
> > OPT=-Xmx128M
> > #OPT=-Djava.compiler=NONE
> > disabled=0
> > 
> > [worker.jni:onStartup]
> > info=Command to be executed by the VM on startup.
> This one will start
> > tomcat.
> > class=org/apache/jk/apr/TomcatStarter
> > ARG=start
> > disabled=0
> > stdout=c:/Apache2/logs/stdout.log
> > stderr=c:/Apache2/logs/stderr.log
> > 
> > [worker.jni:onShutdown]
> > info=Command to be executed by the VM on shutdown.
> This one will stop
> > tomcat.
> > class=org/apache/jk/apr/TomcatStarter
> > ARG=stop
> > disabled=0
> > 
> > [uri:/jkstatus/*]
> > info=Display status information and checks the
> config file for changes.
> > group=status:
> > 
> > #[uri:127.0.0.1:8003]
> > #info=Example virtual host. Make sure
> myVirtualHost is in /etc/hosts to
> > test it
> > #alias=myVirtualHost:8003
> > 
> > #[uri:127.0.0.1:8003/ex]
> > #info=Example webapp in the virtual host. It'll go
> to lb_1 ( i.e.
> > localhost:8019 )
> > #context=/ex
> > #group=lb_1
> > 
> > [uri:/examples]
> > info=Example webapp in the default context.
> > context=/examples
> > debug=0
> > 
> > #[uri:/examples1/*]
> > #info=A second webapp, this time going to the
> second tomcat only.
> > #group=lb_1
> > #debug=0
> > 
> > [uri:/examples/servlets/*]
> > info=Prefix mapping
> > 
> > [uri:/examples/*.jsp]
> > info=Extension mapping
> > 
> > [uri:/examples/*]
> > info=Map the whole webapp
> > 
> > [uri:/examples/servlets/HelloW]
> > info=Exampel with debug enabled.
> > debug=10
> > 
> > unplug <[EMAIL PROTECTED]>
> > 10/09/2002 07:05 PM
> > Please respond to "Tomcat Users List"
> > 
> > 
> > To: Tomcat Users List
> <[EMAIL PROTECTED]>
> > cc:
> > Subject:Re: connector between
> tomcat & apache
> > 
> > Any example for using mod_jk2 with
> apache1.3+tomcat4.1?  I follow the
> > instruction from the document to download the
> mod_jk2.  Then I put it
> > under apache_home/modules.  Then I add LoadModule
> & AddModule of mod_jk2
> > in httpd.conf.  After that, the document said
> there is a file called
> > worker2.properties which is used by apache.  I
> can't found that file in
> > tomcat.  Moreover, I doubt what setting should I
> add in httpd.conf.
> > 
> > unplug
> > 
> > "Turner, John" wrote:
> > >
> > > Mod_jk (AJP13).  Don't use WARP/mod_webapp.
> > >
> > > Mod_jk2 is beta, workable, but use at your own
> risk. 
=== message truncated ===


__

RE: mod_webapp (was: Re: TOMCAT-STANDALONE needed with Apache Server?)

2002-10-11 Thread Turner, John


I'm sure the developers would appreciate a patch if you don't think the
default server.xml is setup appropriately.  It doesn't matter to me one way
or the other...I just comment out the connectors I'm not using.

John

> -Original Message-
> From: Mark R. Diggory [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 10, 2002 6:13 PM
> To: Tomcat Users List
> Subject: mod_webapp (was: Re: TOMCAT-STANDALONE needed with Apache
> Server?)
> 
> 
> Hi all,
> 
> This is a little confusing, I notice that in 4.1's server.xml file it 
> still has the WARP connector as the "default" example of 
> connecting up 
> to apache. If what you say is the case, should this be mod_jk 
> instead? 
> i.e. Shouldn't this be a more appropriate connector example 
> that works 
> on both Windows and other platforms, expecially if mod_webapp is dead?
> 
> Cheers,
> -Mark
> 
> >  
> >

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




Re: [HOW TO] - GLOBAL VARIABLES - PLEASE HELP

2002-10-11 Thread Raj Saini

Hi Donie,

You can define a variable in the global web.xml (in conf directory). 
This variable should be available to all your applications. This should 
come at the end of the $TOMCAT_HOME/conf/web.xml file.

Though I have not used and tested this (I use for a single application 
in application specific web.xml) I feel it should work.


some description
foo
bar
java.lang.String


Raj

Donie Kelly wrote:
> Hi all
> Sorry for shouting but I've no hair left so it's the only thing I can do :)
> 
> Please tell me if it's possible to define a variable in server.xml or
> somewhere, which is available to all running webapps.
> I've looked in loads of docs and searched the archive but to no avail.
> 
> Please please please
> 
> Donie
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




mod_jk.conf -> JkHTTPSIndicator; how to get these environmentvariables in tomcat ?

2002-10-11 Thread Filip Sergeys

Helo,

Let me first describe the setup and what we like to accomplish, then
what the problem is.

Apache configured with mod_ssl taking all http and https requests and
forwarding the *.jsp's to tomcat with mod_jk as the connector between
the two.
Apache version: 1.3.26
Tomcat version: 4.1.12
connector : mod_jk1.2
OS: solaris 7

What works?
All requests work properly (http and https). Static pages are handled by
apache, dynamic pages by tomcat.

What does not work?
We are unable to obtain the ssl information in tomcat. Following the
documentation we did following setup.
=> in mod_jk.conf
[lots of other stuff needing to be there...]
JkExtractSSL On
JkHTTPSIndicator HTTPS
JkSESSIONIndicator SSL_SESSION_ID
JkCIPHERIndicator SSL_CIPHER
JkCERTSIndicator SSL_CLIENT_CERT

If we understood well, mod_jk should be able to provide this information
to tomcat.
How can we capture this in tomcat?
We did the following to get a list of all the request variables, and it
is not in there:
---BEGIN CODE---
 for (java.util.Enumeration enum=req.getAttributeNames();
enum.hasMoreElements();) {
  String key=(String)enum.nextElement();
  System.err.println("req.var "+key+": "+req.getAttribute(key));
}
---END CODE---

A search on google (JkExtractSSL) does not provide any answer to this
topic, hope somebody can help us

Thank you in advance, sincerely yours,

Filip Sergeys





servlet name case switching

2002-10-11 Thread andyfrese

Hello,
we are seeing a problem where after running for 
some time the servlet name gets it case changed on 
requests. For example we have the following in our 
web.xml file:

  
MyFoo
MyFoo
com.mycompany.mygroup.MyFoo
  

Then the user hits 
http://servername/mycontext/servlet/MyFoo and all is 
fine. 
It will run fine for a while and then at some point 
we will get back 404 errors. From looking in the 
stderr.log file I can see that the actual servlet name 
it is trying to access is different in case. For 
exmaple I have messages to the likes of:

servlet myfoo not found
or
servlet MyFOO not found

but the url that is entered most definitely has the 
right case. If I restart Tomcat it will be fine again 
for a while. It might be okay for 10 minutes, or 10 
days, or 10 weeks but it will eventually give this same 
type of error again. 
This has happened for different servlets and with 
different changes in case.
I am running Tomcat 3.3a and using a connector to 
IIS. Restarting IIS has no affect on the problem so I 
believe it has to be a problem with Tomcat itself.
Has anyone else seen this? Has anyone found or have 
an idea for a solution.

Thanks,
Andy Frese

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




RE: SV: com.oreilly.servlet - upload example not working?

2002-10-11 Thread John Trollinger

Your servlets need to be in a package when using jdk1.4 (ie
demo.DemoParserUploadServlet)

> -Original Message-
> From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, October 11, 2002 5:17 AM
> To: Tomcat Users List
> Subject: Re: SV: com.oreilly.servlet - upload example not working?
> 
> 
> Just redeploy the class file or jar file and define the servlet with 
> your new app.
> But if you've already deployed it once, then there is no problem for 
> other apps to access the servlet cause you can just make a 
> url request 
> to the servlet from another app right ?
> 
> Jørgen Ramskov wrote:
> 
> >>it's a sevlet right? so you have to define the servlet in the
> >>web.xml of your webapp. plus you must move the jar to the 
> WEB-INF/lib 
> >>rather than what you stated.
> >>
> >>
> >
> >If I want the cos.jar package to be available to all webapps, then I 
> >thought I could add it it /shared/lib?
> >
> >the upload.war is an example app that comes with the 
> package. It has a 
> >structure like this:
> >
> >/meta-inf/ (contains a manifest file)
> >/upload/
> >-> /WEB-INF/
> >-> /WEB-INF/web.xml
> >-> upload.html
> >-> /WEB-INF/classes/
> >-> /WEB-INF/classes/DemoParserUploadServlet.class (and more)
> >
> >The web.xml file has this (and more, but I think this is the 
> relevant 
> >part)
> >info:
> >
> >  
> >
> >parserupload
> >
> >
> >DemoParserUploadServlet
> >
> >  
> >
> >uploadDir
> >
> >
> >. 
> >
> >  
> >  
> >
> >Greetings
> >Joergen
> >
> >--
> >To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> >For 
> additional commands, 
> e-mail: 
> >
> >
> >
> >  
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


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




RE: JK2 URI not correctly mapped for multiple virtual hosts in httpd.conf

2002-10-11 Thread Mladen Turk



> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, October 11, 2002 1:48 PM
> To: [EMAIL PROTECTED]
> Subject: JK2 URI not correctly mapped for multiple virtual 
> hosts in httpd.conf
> 
> 
> Suppose you have a configuration like this:
> 
>  ServerName srva
>  ServerAliasa.srva
>  ServerAliasb.srva
>   .
> [ some apache specific conf omitted]

   JkSet uri:srva.alias a.srva
   JkSet uri:srva.alias b.srva

>   .
>  

   JkUriSet uri srva

>  JkUriSet group wrka
>  
>  

   JkUriSet uri srva

>   JkUriSet group wrka
>  
> 

Same for other vhosts.

MT.



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




RE: Error with multipartParser

2002-10-11 Thread jon wingfield

tomcat doesn't use the classpath. It derives where tools.jar is from the
JAVA_HOME environment variables. Your application classes should be placed
under CATALINE_HOME/webapps/YOUR_WEBAPP_NAME/WEB-INF/classes and your
application jar files (ie cos.jar) under
CATALINE_HOME/webapps/YOUR_WEBAPP_NAME/WEB-INF/lib (where YOUR_WEBAPP_NAME
is sam, i think)

Take a look at this doc
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html

-Original Message-
From: Sam Seaver [mailto:[EMAIL PROTECTED]]
Sent: 10 October 2002 21:32
To: [EMAIL PROTECTED]
Subject: RE: Error with multipartParser


i'm using TomCat 4.1.12, and I still get the same error, whether I use the
extra code or not.  the point is that it works fine if I don't try to
instantiate MultipartParser, and the same happens with MultipartRequest, as
soon as I add the line:

'MultipartWhatever whatever = new multipartWhatever(requirements fulfilled)'

then i just get the same error.  my classpath is:

/usr/local/j2sdk1.4.1/lib:/usr/local/j2sdkee1.3.1/lib:/usr/local/jakarta-tom
cat-4.1.12/common/lib/servlet.jar:/usr/local/cos/lib/cos.jar:/usr/local/j2sd
k1.4.1/lib/tools.jar:/home/seaver/web:.

including the cos.jar and the tools.jar, but it just seems to have a problem
with cos...anyone?

S


>From: "Rajiv Ramanasankaran" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: RE: Error with multipartParser
>Date: Thu, 10 Oct 2002 15:19:12 -0500
>
>I forgot to mention that I added this code to your bean :)
>try{
> setOutput("Demo Parser Upload Bean");
> MultipartParser mp = new MultipartParser(req, 10*1024*1024);
> Part part;
> while ((part = mp.readNextPart()) != null) {
> String name = part.getName();
> if (part.isParam()) {
> // it's a parameter part so do nothing
> }
> else if (part.isFile()) {
> // it's a file part
> FilePart filePart = (FilePart) part;
>
> if (getFileName()!= null) {
> // the part actually contained a file
> File filepath=new File("c:/Temp/rajiv.xml");
> long size = filePart.writeTo(filepath);
> setFileName(filePart.getFileName());
> }
> else {
> //file was empty add error code here
> }
> }
> }
> }catch(Exception e){
> e.printStackTrace();
> }
>you have to specify the directory or file to which you want to upload.
>
>-Original Message-
>From: Rajiv Ramanasankaran [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, October 10, 2002 2:50 PM
>To: Tomcat Users List
>Subject: RE: Error with multipartParser
>
>
>Its is working fine for me!! The file is getting uploaded and I don't get
>an
>error at all..What version of Tomcat are you using??? I am using Tomcat 3.2
>. There might be an incompatibility problem.
>Rajiv
>
>-Original Message-
>From: Sam Seaver [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, October 10, 2002 2:11 PM
>To: [EMAIL PROTECTED]
>Subject: RE: Error with multipartParser
>
>
>OK, here's the JSP page I'm using, note it reloads itself once POST is
>pressed, and then activates the bean:
>
>
>
>file upload
>
>
>
>
>
>
>
>User Registration
>
>
>
>
>Which XML file would you like to upload?
>
>
>
>
>
>
>
> 
>
>
>
>
>
>
>
><%-- Create the bean only when the form is posted --%>
><%
>if (request.getMethod().equals("POST")) {
>%>
>
>
>
>
>
>
>File to upload:
>
>
><%
>xmlHandler.doPost(request, response);
>%>
>Bean Output:
>
><%
>}
>%>
>
>
>
>
>then there's the bean itself:
>
>package com.jguru;
>
>import java.io.*;
>import java.util.*;
>import javax.servlet.http.*;
>import javax.servlet.*;
>
>import com.oreilly.servlet.*;
>import com.oreilly.servlet.multipart.*;
>
>public class SimpleBean extends HttpServlet {
>
> private String fileName;
> private String name;
> private String type;
> private String output;
>
> public SimpleBean(){
>   fileName="";
>   name="";
>   type="";
>   output="";
> }
>
> public void setFileName(String x){
>   fileName=x;
> }
>
> public void setName(String x){
>   name=x;
> }
>
> public void setType(String x){
>   type=x;
> }
>
> public void setOutput(String x){
>   output=x;
> }
>
> public void appendOutput(String x){
>   output=output+x;
> }
>
> public String getFileName(){
>   return fileName;
> }
>
> public String getName(){
>   return name;
> }
>
> public String getType(){
>   return type;
> }
>
> public String getOutput(){
>   return output;
> }
>
> public void doPost(HttpServletRequest req, HttpServletResponse res)
>   throws ServletE

RE: SV: com.oreilly.servlet - upload example not working?

2002-10-11 Thread John Trollinger

If you are using the latest tomcat 4.1.12 I believe the invoker servelt
is disabled by default so you will have to either enable it or create a
servlet mapping to the Upload servelt and that servlet needs to be in a
package.

> -Original Message-
> From: Jørgen Ramskov [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, October 11, 2002 7:44 AM
> To: 'Tomcat Users List'
> Subject: SV: SV: com.oreilly.servlet - upload example not working?
> 
> 
> So the Upload.war package is correctly made?
> 
> I've created a new test, but I still get this error: 
> description: The requested resource (/upload/servlet/Upload) 
> is not available.
> 
> I have this structure: /webapps/upload/WEB-INF/classes/Upload.class
> 
> I don't understand why it can't find that one?
> 
> Greetings
> Joergen Ramskov
> 
> 
> > -Oprindelig meddelelse-
> > Fra: John Trollinger [mailto:[EMAIL PROTECTED]]
> > Sendt: 11. oktober 2002 13:33
> > Til: 'Tomcat Users List'
> > Emne: RE: SV: com.oreilly.servlet - upload example not working?
> > 
> > 
> > Your servlets need to be in a package when using jdk1.4 (ie
> > demo.DemoParserUploadServlet)
> > 
> > > -Original Message-
> > > From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, October 11, 2002 5:17 AM
> > > To: Tomcat Users List
> > > Subject: Re: SV: com.oreilly.servlet - upload example not working?
> > > 
> > > 
> > > Just redeploy the class file or jar file and define the
> > servlet with
> > > your new app.
> > > But if you've already deployed it once, then there is no
> > problem for
> > > other apps to access the servlet cause you can just make a
> > > url request 
> > > to the servlet from another app right ?
> > > 
> > > Jørgen Ramskov wrote:
> > > 
> > > >>it's a sevlet right? so you have to define the servlet in the 
> > > >>web.xml of your webapp. plus you must move the jar to the
> > > WEB-INF/lib
> > > >>rather than what you stated.
> > > >>
> > > >>
> > > >
> > > >If I want the cos.jar package to be available to all
> > webapps, then I
> > > >thought I could add it it /shared/lib?
> > > >
> > > >the upload.war is an example app that comes with the
> > > package. It has a
> > > >structure like this:
> > > >
> > > >/meta-inf/ (contains a manifest file)
> > > >/upload/
> > > >-> /WEB-INF/
> > > >-> /WEB-INF/web.xml
> > > >-> upload.html
> > > >-> /WEB-INF/classes/ 
> /WEB-INF/classes/DemoParserUploadServlet.class 
> > > >-> (and more)
> > > >
> > > >The web.xml file has this (and more, but I think this is the
> > > relevant
> > > >part)
> > > >info:
> > > >
> > > >  
> > > >
> > > >parserupload
> > > >
> > > >
> > > >DemoParserUploadServlet
> > > >
> > > >  
> > > >
> > > >uploadDir
> > > >
> > > >
> > > >. 
> > > >
> > > >  
> > > >  
> > > >
> > > >Greetings
> > > >Joergen
> > > >
> > > >--
> > > >To unsubscribe, e-mail:   
> > >  [EMAIL PROTECTED]>
> > > >For
> > > additional commands,
> > > e-mail: 
> > > >
> > > >
> > > >
> > > >  
> > > >
> > > 
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > >  [EMAIL PROTECTED]>
> > > For
> > > additional commands, 
> > > e-mail: 
> > > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> --
> To 
> unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


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




[HOW TO] - GLOBAL VARIABLES - PLEASE HELP

2002-10-11 Thread Donie Kelly

Hi all
Sorry for shouting but I've no hair left so it's the only thing I can do :)

Please tell me if it's possible to define a variable in server.xml or
somewhere, which is available to all running webapps.
I've looked in loads of docs and searched the archive but to no avail.

Please please please

Donie




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




RE: SV: com.oreilly.servlet - upload example not working?

2002-10-11 Thread Jørgen Ramskov

How do I enable the invoker?

Greetings
Joergen

> -Original Message-
> From: John Trollinger [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 2:54 PM
> To: 'Tomcat Users List'
> Subject: RE: SV: com.oreilly.servlet - upload example not working?
> 
> 
> If you are using the latest tomcat 4.1.12 I believe the 
> invoker servelt
> is disabled by default so you will have to either enable it 
> or create a
> servlet mapping to the Upload servelt and that servlet needs 
> to be in a
> package.
> 
> > -Original Message-
> > From: Jørgen Ramskov [mailto:[EMAIL PROTECTED]] 
> > Sent: Friday, October 11, 2002 7:44 AM
> > To: 'Tomcat Users List'
> > Subject: SV: SV: com.oreilly.servlet - upload example not working?
> > 
> > 
> > So the Upload.war package is correctly made?
> > 
> > I've created a new test, but I still get this error: 
> > description: The requested resource (/upload/servlet/Upload) 
> > is not available.
> > 
> > I have this structure: /webapps/upload/WEB-INF/classes/Upload.class
> > 
> > I don't understand why it can't find that one?
> > 
> > Greetings
> > Joergen Ramskov
> > 
> > 
> > > -Oprindelig meddelelse-
> > > Fra: John Trollinger [mailto:[EMAIL PROTECTED]]
> > > Sendt: 11. oktober 2002 13:33
> > > Til: 'Tomcat Users List'
> > > Emne: RE: SV: com.oreilly.servlet - upload example not working?
> > > 
> > > 
> > > Your servlets need to be in a package when using jdk1.4 (ie
> > > demo.DemoParserUploadServlet)
> > > 
> > > > -Original Message-
> > > > From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, October 11, 2002 5:17 AM
> > > > To: Tomcat Users List
> > > > Subject: Re: SV: com.oreilly.servlet - upload example 
> not working?
> > > > 
> > > > 
> > > > Just redeploy the class file or jar file and define the
> > > servlet with
> > > > your new app.
> > > > But if you've already deployed it once, then there is no
> > > problem for
> > > > other apps to access the servlet cause you can just make a
> > > > url request 
> > > > to the servlet from another app right ?
> > > > 
> > > > Jørgen Ramskov wrote:
> > > > 
> > > > >>it's a sevlet right? so you have to define the servlet in the 
> > > > >>web.xml of your webapp. plus you must move the jar to the
> > > > WEB-INF/lib
> > > > >>rather than what you stated.
> > > > >>
> > > > >>
> > > > >
> > > > >If I want the cos.jar package to be available to all
> > > webapps, then I
> > > > >thought I could add it it /shared/lib?
> > > > >
> > > > >the upload.war is an example app that comes with the
> > > > package. It has a
> > > > >structure like this:
> > > > >
> > > > >/meta-inf/ (contains a manifest file)
> > > > >/upload/
> > > > >-> /WEB-INF/
> > > > >-> /WEB-INF/web.xml
> > > > >-> upload.html
> > > > >-> /WEB-INF/classes/ 
> > /WEB-INF/classes/DemoParserUploadServlet.class 
> > > > >-> (and more)
> > > > >
> > > > >The web.xml file has this (and more, but I think this is the
> > > > relevant
> > > > >part)
> > > > >info:
> > > > >
> > > > >  
> > > > >
> > > > >parserupload
> > > > >
> > > > >
> > > > >DemoParserUploadServlet
> > > > >
> > > > >  
> > > > >
> > > > >uploadDir
> > > > >
> > > > >
> > > > >. 
> > > > >
> > > > >  
> > > > >  
> > > > >
> > > > >Greetings
> > > > >Joergen
> > > > >
> > > > >--
> > > > >To unsubscribe, e-mail:   
> > > >  [EMAIL PROTECTED]>
> > > > >For
> > > > additional commands,
> > > > e-mail: 
> > > > >
> > > > >
> > > > >
> > > > >  
> > > > >
> > > > 
> > > > 
> > > > 
> > > > --
> > > > To unsubscribe, e-mail:   
> > > >  [EMAIL PROTECTED]>
> > > > For
> > > > additional commands, 
> > > > e-mail: 
> > > > 
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > 
> > For additional commands, e-mail: 
> > 
> > 
> > --
> > To 
> > unsubscribe, e-mail:   
> >  [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: 
> > 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




Re: Using external login pages for web applications

2002-10-11 Thread Padhu Vinirs


Correct me if I understood this wrong:

Login Form html ( external web site )  --->Servlet/JSP  ( Your web 
site )

If you setup https access in your web site, then the external form can 
securely send the login info to your servlet, which can authenticate the 
user, set a session attribute, which every secure page can check before 
allowing user to continue. Else redirect to the login form again.


-- padhu



Johann Uhrmann wrote:

>Hi,
>
>our public internet site should contain a form which allows the user
>to type in his/her user name and password.
>Then, the user should be logged in with this data in a web application.
>
>Does the form based login mechanism of tomcat support such a login
>procedure or does it require that the user tries to access a protected
>page before he/she can type in the username and password?
>
>It would be more convenient to have a login form on a external (high
>traffic) site than requesting the user to click a link to a different
>login page. (one more click scares away a lot of users)
>
>Is there a solution or is this already a supported scenario?
>
>Thank You,
>
>Hans
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>



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




RE: default charset in contentType?

2002-10-11 Thread Randy George


Too bad!

Setting the charset explicity in the Jasper compiled servlet breaks IE for
image/svg+xml content. It seems that Microsoft does not properly recognize
the contentType header so that for example running the resulting servlet
thus:
http://localhost:8080/foo/servlet/test?dummy=.svg will work but running it
properly thus: http://localhost:8080/foo/servlet/test will not work?
Obviously trying to fool IE with a dummy appended parameter won't help with
actual .jsp pages.

Tomcat 4.0 and below did not explicitly set the charset unless asked to, so
it works fine.

Perhaps there is a work around short of modifying the Jasper compiler?

Randy

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 1:47 PM
To: Tomcat Users List
Subject: Re: default charset in contentType?




On Thu, 10 Oct 2002, Randy George wrote:

> Date: Thu, 10 Oct 2002 13:14:20 -0600
> From: Randy George <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: default charset in contentType?
>
>
> Is there a way to turn off the default charset appended to contentType by
> Jasper?
>

The JSP spec states that the default character encoding, unless you
specify otherwise (on a "contentType" or "pageEncoding" attribute on the
<%@ page %> directive) must be ISO-8859-1.

Craig

>   I have installed Tomcat 4.1.10 on a W2K server and I'm trying to display
> SVG content with JSP. I have added the image/svg+xml Mime types to my
Tomcat
> 4.1\conf\web.xml file:
> 
> svg
> image/svg+xml
> 
>
>   However, when I attempt to set the response type to image/svg+xml in a
jsp
> page directive the IE6.0 client browser (ASV 3.0 plugin) fails to
recognize
> jsp generated svg content? Note that static svg content displays fine.
This
> occurs in even the simplest invocation:
>   <%@ page contentType="image/svg+xml" %>
>   
>   
> SVG Test
>   
>
>   When I examine the test_jsp.java that comes out of the Jasper Compiler I
> can see that the servlet contentType has a default charset appended to the
> image/svg+xml i.e.
>   response.setContentType("image/svg+xml;charset=ISO-8859-1");
>
>   Curiously if I then compile this Jasper generated servlet and run it I
get
> the same failure until I remove the ";charset=ISO-8859-1" making the
> contentType as follows:
>   response.setContentType("image/svg+xml");
>
>   At that point everything works as expected?
>
>   It appears that the Jasper JSP compiler adds a default charset=ISO-8859-1
> to the response contentType which does not work with the image/svg+xml
MIME
> type. I have tried explicitly setting charset in the page directive to
> utf-8, windows-1252 etc but it seems that any charset I have tried fails
in
> the same manner. At this point I would just like to disable the default
> charset appended by Jasper.
>
> Thanks
> Randy
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: connector between tomcat & apache

2002-10-11 Thread sonam singh


u have to use include
/usr/local/apache/conf/mod_jk.conf in the end of
httpd.conf here is example of mod_jk.conf

LoadModule jk_module modules/mod_jk.so
JkWorkersFile
/usr/local/apache2/conf/workers.properties
JkLogFile  /usr/local/apache2/logs/jk.log
JkLogLevel info
JkMount /u'r context/* ajp13

regards
Sonam Singh



--- unplug <[EMAIL PROTECTED]> wrote:
> Thanks for your example.  But I am still confused to
> set it up.  I think
> it is better to do a setup comparison with
> tomcat3.3+apache1.3+mod_jk.
> 
> tomcat3.3+apache1.3+mod_jk:
> It needs a configuration file called mod_jk.conf and
> include it in
> httpd.conf.
> 
> tomcat4.1+apache1.3+mod_jk2:
> Where is the configuration file?  What should I
> include in httpd.conf? 
> Moreover, the document mentions a worker file called
> worker2.properties.  Where does it located?
> 
> 
> Robert L Sowders wrote:
> > 
> > Here is an example, modify to suit your needs. 
> Disable JNI if you don't
> > use it.  Change Disable=0 to Disable=1 in the
> appropriate places.
> > 
> > [logger]
> > level=DEBUG
> > 
> > [config:]
> > #file=${serverRoot}/conf/workers2.properties
> > file=c:/Apache2/conf/workers2.properties
> > debug=0
> > debugEnv=0
> > 
> > [uriMap:]
> > info=Maps the requests. Options: debug
> > debug=0
> > 
> > # Alternate file logger
> > #[logger.file:0]
> > #level=DEBUG
> > #file=${serverRoot}/logs/jk2.log
> > 
> > [shm:]
> > info=Scoreboard. Required for reconfiguration and
> status with multiprocess
> > servers
> > file=${serverRoot}/logs/jk2.shm
> > size=100
> > debug=0
> > disabled=0
> > 
> > [workerEnv:]
> > info=Global server options
> > timing=1
> > debug=0
> > # Default Native Logger (apache2 or win32 )
> > # can be overriden to a file logger, useful
> > # when tracing win32 related issues
> > #logger=logger.file:0
> > 
> > [lb:lb]
> > info=Default load balancer.
> > debug=0
> > 
> > #[lb:lb_1]
> > #info=A second load balancer.
> > #debug=0
> > 
> > [channel.socket:localhost:8009]
> > info=Ajp13 forwarding over socket
> > debug=0
> > tomcatId=localhost:8009
> > 
> > #[channel.socket:localhost:8019]
> > #info=A second tomcat instance.
> > #debug=0
> > #tomcatId=localhost:8019
> > #lb_factor=1
> > #group=lb
> > #group=lb_1
> > #disabled=0
> > 
> > #[channel.un:/opt/33/work/jk2.socket]
> > #info=A second channel connecting to
> localhost:8019 via unix socket
> > #tomcatId=localhost:8019
> > #lb_factor=1
> > #debug=0
> > 
> > [channel.jni:jni]
> > info=The jni channel, used if tomcat is started
> inprocess
> > 
> > [status:]
> > info=Status worker, displays runtime informations
> > 
> > [vm:]
> > info=Parameters used to load a JVM in the server
> process
> > #JVM=C:\Program
> Files\Java\j2re1.4.0_01\bin\client\jvm.dll (Read
> from
> > registry)
> > OPT=-Djava.class.path=c:/Tomcat/bin/tomcat-jni.jar
> > OPT=-Dtomcat.home=c:/Tomcat
> > OPT=-Dcatalina.home=c:/Tomcat
> > OPT=-Xmx128M
> > #OPT=-Djava.compiler=NONE
> > disabled=0
> > 
> > [worker.jni:onStartup]
> > info=Command to be executed by the VM on startup.
> This one will start
> > tomcat.
> > class=org/apache/jk/apr/TomcatStarter
> > ARG=start
> > disabled=0
> > stdout=c:/Apache2/logs/stdout.log
> > stderr=c:/Apache2/logs/stderr.log
> > 
> > [worker.jni:onShutdown]
> > info=Command to be executed by the VM on shutdown.
> This one will stop
> > tomcat.
> > class=org/apache/jk/apr/TomcatStarter
> > ARG=stop
> > disabled=0
> > 
> > [uri:/jkstatus/*]
> > info=Display status information and checks the
> config file for changes.
> > group=status:
> > 
> > #[uri:127.0.0.1:8003]
> > #info=Example virtual host. Make sure
> myVirtualHost is in /etc/hosts to
> > test it
> > #alias=myVirtualHost:8003
> > 
> > #[uri:127.0.0.1:8003/ex]
> > #info=Example webapp in the virtual host. It'll go
> to lb_1 ( i.e.
> > localhost:8019 )
> > #context=/ex
> > #group=lb_1
> > 
> > [uri:/examples]
> > info=Example webapp in the default context.
> > context=/examples
> > debug=0
> > 
> > #[uri:/examples1/*]
> > #info=A second webapp, this time going to the
> second tomcat only.
> > #group=lb_1
> > #debug=0
> > 
> > [uri:/examples/servlets/*]
> > info=Prefix mapping
> > 
> > [uri:/examples/*.jsp]
> > info=Extension mapping
> > 
> > [uri:/examples/*]
> > info=Map the whole webapp
> > 
> > [uri:/examples/servlets/HelloW]
> > info=Exampel with debug enabled.
> > debug=10
> > 
> > unplug <[EMAIL PROTECTED]>
> > 10/09/2002 07:05 PM
> > Please respond to "Tomcat Users List"
> > 
> > 
> > To: Tomcat Users List
> <[EMAIL PROTECTED]>
> > cc:
> > Subject:Re: connector between
> tomcat & apache
> > 
> > Any example for using mod_jk2 with
> apache1.3+tomcat4.1?  I follow the
> > instruction from the document to download the
> mod_jk2.  Then I put it
> > under apache_home/modules.  Then I add LoadModule
> & AddModule of mod_jk2
> > in httpd.conf.  After that, the document said
> there is a file called
> > worker2.properties which is used by apache.  I
> can't found that file in
> > tomcat.  More

RE: connector between tomcat & apache

2002-10-11 Thread Turner, John


JK2 is in-process.  There is no mod_jk.conf. 

All due respect, but the answers to your questions (so far) are all in the
docs:

There are two files: workers2.properties, and jk2.properties.  One is
Apache-side (workers2.properties), the other is Tomcat side
(jk2.properties).

>From the docs at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html:

Tomcat side:
"This document describes the configuration file used by mod_jk2 on the
Tomcat site. Its default name is ${jkHome}/conf/jk2.properties, where
${jkHome} is the well known ${catalina.base} property."

Apache side:
"Jk2 uses a config file ( workers2.properties ) in the style of a
.properties or ini file. It can be configured to use any other backend that
provides similar capabilities. 

This document describes the format of this configuration file. Its default
name is ${serverRoot}/conf/workers2.properties, where ${serverRoot} is
something like /opt/apache."

Robert Sowders has already provided an example workers2.properties file.

John


> -Original Message-
> From: unplug [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 5:41 AM
> To: Tomcat Users List
> Subject: Re: connector between tomcat & apache
> 
> 
> Thanks for your example.  But I am still confused to set it 
> up.  I think
> it is better to do a setup comparison with tomcat3.3+apache1.3+mod_jk.
> 
> tomcat3.3+apache1.3+mod_jk:
> It needs a configuration file called mod_jk.conf and include it in
> httpd.conf.
> 
> tomcat4.1+apache1.3+mod_jk2:
> Where is the configuration file?  What should I include in 
> httpd.conf? 
> Moreover, the document mentions a worker file called
> worker2.properties.  Where does it located?
> 
> 

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




Re: Which versions ????

2002-10-11 Thread Pascal Forget

Tomcat 4.1.12 is faster than 4.0.4.  As for mod_jk against mod_jk2, I would
advise you stick with mod_jk for the moment as mod_jk2 is not quite 
ready yet
IMHO.  mod_jk2 will be more of a major code cleanup/refactoring than a
performance improvement.  If the functionality provided tody by mod_jk suits
your needs, then you probably want to stick with it and just upgrade your
tomcat server.

Regards,

Pascal Forget


Jean-Baptiste Onofré wrote:

>Hello all,
>
>i use Tomcat 4.0.4 with Apache 1.3.26 using mod_jk.
>
>On a new developpement computer, can i install Tomcat 4.1.12 with Apache
>1.3.26 using mod_jk2 ?
>What's the differences/improves between Tomcat 4.0.4 and Tomcat 4.1.12
>and between mod_jk and mod_jk2 ?
>
>Thanks for your help,
>Best regards
>  
>




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




RE: How to integrate Tomcat 4.1.12 with IIS 5 on Win2000

2002-10-11 Thread Turner, John


You create those files.  Examples are in the distribution.

>From http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html:

"workers.properties - A file that describes the host(s) and port(s) used by
the workers (Tomcat processes). A sample workers.properties can be found
under the conf directory."

AND

"uriworkermap.properties - A file that maps URL-Path patterns to workers. A
sample uriworkermap.properties can be found under the conf directory as
well."

John


> -Original Message-
> From: Tushar Medhi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 10, 2002 4:31 PM
> To: Tomcat Users List
> Subject: Re: How to integrate Tomcat 4.1.12 with IIS 5 on Win2000
> 
> 
>  I read the documentation given on the links below but my 
> question is where
> should I get the files,  workers.properties and 
> uriworkermap.properties. I
> do not have these file in my \conf folder.  I do not even 
> know what these
> files contain. Where do I get these files from.
> Tam
> 

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




Re: Using external login pages for web applications

2002-10-11 Thread Johann Uhrmann

On Fri, 2002-10-11 at 14:58, Padhu Vinirs wrote:
> 
> Correct me if I understood this wrong:
> 
> Login Form html ( external web site )  --->Servlet/JSP  ( Your web 
> site )

Right, that's the configuration I want to use.

> If you setup https access in your web site, then the external form can 
> securely send the login info to your servlet, which can authenticate the 
> user, set a session attribute, which every secure page can check before 
> allowing user to continue. Else redirect to the login form again.

Is it possible to use a JDBCRealm and configure the required roles in
web.xml or do I have to re-implement the code for user verification,
role-checking,...?

-- Hans



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




RE: How to limit the number of connections per user?

2002-10-11 Thread Sexton, George

Step 1: Register a session context listener.

Step 2: When each session starts, store an Integer in a Hashtable. The key
would be the user name. The Integer value is the number of currently active
sessions.

Step 3: In the session destroy, decrement the Integer count, and if it is 0,
remove it from the Hashtable.

George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585


-Original Message-
From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]]
Sent: 11 October, 2002 2:17 AM
To: Tomcat Users List
Subject: How to limit the number of connections per user?


Hi, is there any way to do this?

I would like to be able to limit the number of connections per user for
production environment.

--
GRIDSYSTEMSRodrigo Ruiz Aguayo
Parc Bit - Son EspanyolAnalista Programador
07120 Palma de Mallorca[EMAIL PROTECTED]
Baleares - España  Tel:+34-971435085
www.gridsystems.comFax:+34-971435082


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: SV: com.oreilly.servlet - upload example not working?

2002-10-11 Thread Jørgen Ramskov

That's how it looks right now, is that wrong?

--
Joergen

> -Original Message-
> From: John Trollinger [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 3:44 PM
> To: 'Tomcat Users List'
> Subject: RE: SV: com.oreilly.servlet - upload example not working?
> 
> 
>   
> invoker
>  
> org.apache.catalina.servlets.InvokerServlet rvlet-clas
> s>
> 
>   debug
>   0
> 
> 2
>   
> 
> In /conf/web.xml
> 
> > -Original Message-
> > From: Jørgen Ramskov [mailto:[EMAIL PROTECTED]] 
> > Sent: Friday, October 11, 2002 9:44 AM
> > To: 'Tomcat Users List'
> > Subject: RE: SV: com.oreilly.servlet - upload example not working?
> > 
> > 
> > How do I enable the invoker?
> > 
> > Greetings
> > Joergen
> > 
> > > -Original Message-
> > > From: John Trollinger [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, October 11, 2002 2:54 PM
> > > To: 'Tomcat Users List'
> > > Subject: RE: SV: com.oreilly.servlet - upload example not working?
> > > 
> > > 
> > > If you are using the latest tomcat 4.1.12 I believe the
> > > invoker servelt
> > > is disabled by default so you will have to either enable it 
> > > or create a
> > > servlet mapping to the Upload servelt and that servlet needs 
> > > to be in a
> > > package.
> > > 
> > > > -Original Message-
> > > > From: Jørgen Ramskov [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, October 11, 2002 7:44 AM
> > > > To: 'Tomcat Users List'
> > > > Subject: SV: SV: com.oreilly.servlet - upload example 
> not working?
> > > > 
> > > > 
> > > > So the Upload.war package is correctly made?
> > > > 
> > > > I've created a new test, but I still get this error:
> > > > description: The requested resource (/upload/servlet/Upload) 
> > > > is not available.
> > > > 
> > > > I have this structure: 
> > /webapps/upload/WEB-INF/classes/Upload.class
> > > > 
> > > > I don't understand why it can't find that one?
> > > > 
> > > > Greetings
> > > > Joergen Ramskov
> > > > 
> > > > 
> > > > > -Oprindelig meddelelse-
> > > > > Fra: John Trollinger [mailto:[EMAIL PROTECTED]]
> > > > > Sendt: 11. oktober 2002 13:33
> > > > > Til: 'Tomcat Users List'
> > > > > Emne: RE: SV: com.oreilly.servlet - upload example 
> not working?
> > > > > 
> > > > > 
> > > > > Your servlets need to be in a package when using jdk1.4 (ie
> > > > > demo.DemoParserUploadServlet)
> > > > > 
> > > > > > -Original Message-
> > > > > > From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Friday, October 11, 2002 5:17 AM
> > > > > > To: Tomcat Users List
> > > > > > Subject: Re: SV: com.oreilly.servlet - upload example
> > > not working?
> > > > > > 
> > > > > > 
> > > > > > Just redeploy the class file or jar file and define the
> > > > > servlet with
> > > > > > your new app.
> > > > > > But if you've already deployed it once, then there is no
> > > > > problem for
> > > > > > other apps to access the servlet cause you can just 
> > make a url 
> > > > > > request to the servlet from another app right ?
> > > > > > 
> > > > > > Jørgen Ramskov wrote:
> > > > > > 
> > > > > > >>it's a sevlet right? so you have to define the 
> > servlet in the
> > > > > > >>web.xml of your webapp. plus you must move the jar to the
> > > > > > WEB-INF/lib
> > > > > > >>rather than what you stated.
> > > > > > >>
> > > > > > >>
> > > > > > >
> > > > > > >If I want the cos.jar package to be available to all
> > > > > webapps, then I
> > > > > > >thought I could add it it /shared/lib?
> > > > > > >
> > > > > > >the upload.war is an example app that comes with the
> > > > > > package. It has a
> > > > > > >structure like this:
> > > > > > >
> > > > > > >/meta-inf/ (contains a manifest file)
> > > > > > >/upload/
> > > > > > >-> /WEB-INF/
> > > > > > >-> /WEB-INF/web.xml
> > > > > > >-> upload.html
> > > > > > >-> /WEB-INF/classes/
> > > > /WEB-INF/classes/DemoParserUploadServlet.class
> > > > > > >-> (and more)
> > > > > > >
> > > > > > >The web.xml file has this (and more, but I think 
> this is the
> > > > > > relevant
> > > > > > >part)
> > > > > > >info:
> > > > > > >
> > > > > > >  
> > > > > > >
> > > > > > >parserupload
> > > > > > >
> > > > > > >
> > > > > > >DemoParserUploadServlet
> > > > > > >
> > > > > > >  
> > > > > > >
> > > > > > >uploadDir
> > > > > > >
> > > > > > >
> > > > > > >. 
> > > > > > >
> > > > > > >  
> > > > > > >  
> > > > > > >
> > > > > > >Greetings
> > > > > > >Joergen
> > > > > > >
> > > > > > >--
> > > > > > >To unsubscribe, e-mail:   
> > > > > >  [EMAIL PROTECTED]>
> > > > > > >For
> > > > > > additional commands,
> > > > > > e-mail:
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >  
> > > > > > >
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > --
> > > > > > To unsubscribe, e-mail:   
> > > > > >  [EMAIL PROTECTED]> For
> > > > > > additional commands

Tomcat and Xeprof

2002-10-11 Thread afreire

I need to run the Tomcat with the option -Xeprof. I do that in HP-UX 11.00
with Tomcat 3.2.4 and in HP-UX11.11i with Tomcat 3.3, but I don't have any
result.

Anybody know what happen.


Regard
Alejandro



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




RE: SV: com.oreilly.servlet - upload example not working?

2002-10-11 Thread John Trollinger

  
invoker
 
org.apache.catalina.servlets.InvokerServlet

  debug
  0

2
  

In /conf/web.xml

> -Original Message-
> From: Jørgen Ramskov [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, October 11, 2002 9:44 AM
> To: 'Tomcat Users List'
> Subject: RE: SV: com.oreilly.servlet - upload example not working?
> 
> 
> How do I enable the invoker?
> 
> Greetings
> Joergen
> 
> > -Original Message-
> > From: John Trollinger [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, October 11, 2002 2:54 PM
> > To: 'Tomcat Users List'
> > Subject: RE: SV: com.oreilly.servlet - upload example not working?
> > 
> > 
> > If you are using the latest tomcat 4.1.12 I believe the
> > invoker servelt
> > is disabled by default so you will have to either enable it 
> > or create a
> > servlet mapping to the Upload servelt and that servlet needs 
> > to be in a
> > package.
> > 
> > > -Original Message-
> > > From: Jørgen Ramskov [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, October 11, 2002 7:44 AM
> > > To: 'Tomcat Users List'
> > > Subject: SV: SV: com.oreilly.servlet - upload example not working?
> > > 
> > > 
> > > So the Upload.war package is correctly made?
> > > 
> > > I've created a new test, but I still get this error:
> > > description: The requested resource (/upload/servlet/Upload) 
> > > is not available.
> > > 
> > > I have this structure: 
> /webapps/upload/WEB-INF/classes/Upload.class
> > > 
> > > I don't understand why it can't find that one?
> > > 
> > > Greetings
> > > Joergen Ramskov
> > > 
> > > 
> > > > -Oprindelig meddelelse-
> > > > Fra: John Trollinger [mailto:[EMAIL PROTECTED]]
> > > > Sendt: 11. oktober 2002 13:33
> > > > Til: 'Tomcat Users List'
> > > > Emne: RE: SV: com.oreilly.servlet - upload example not working?
> > > > 
> > > > 
> > > > Your servlets need to be in a package when using jdk1.4 (ie
> > > > demo.DemoParserUploadServlet)
> > > > 
> > > > > -Original Message-
> > > > > From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Friday, October 11, 2002 5:17 AM
> > > > > To: Tomcat Users List
> > > > > Subject: Re: SV: com.oreilly.servlet - upload example
> > not working?
> > > > > 
> > > > > 
> > > > > Just redeploy the class file or jar file and define the
> > > > servlet with
> > > > > your new app.
> > > > > But if you've already deployed it once, then there is no
> > > > problem for
> > > > > other apps to access the servlet cause you can just 
> make a url 
> > > > > request to the servlet from another app right ?
> > > > > 
> > > > > Jørgen Ramskov wrote:
> > > > > 
> > > > > >>it's a sevlet right? so you have to define the 
> servlet in the
> > > > > >>web.xml of your webapp. plus you must move the jar to the
> > > > > WEB-INF/lib
> > > > > >>rather than what you stated.
> > > > > >>
> > > > > >>
> > > > > >
> > > > > >If I want the cos.jar package to be available to all
> > > > webapps, then I
> > > > > >thought I could add it it /shared/lib?
> > > > > >
> > > > > >the upload.war is an example app that comes with the
> > > > > package. It has a
> > > > > >structure like this:
> > > > > >
> > > > > >/meta-inf/ (contains a manifest file)
> > > > > >/upload/
> > > > > >-> /WEB-INF/
> > > > > >-> /WEB-INF/web.xml
> > > > > >-> upload.html
> > > > > >-> /WEB-INF/classes/
> > > /WEB-INF/classes/DemoParserUploadServlet.class
> > > > > >-> (and more)
> > > > > >
> > > > > >The web.xml file has this (and more, but I think this is the
> > > > > relevant
> > > > > >part)
> > > > > >info:
> > > > > >
> > > > > >  
> > > > > >
> > > > > >parserupload
> > > > > >
> > > > > >
> > > > > >DemoParserUploadServlet
> > > > > >
> > > > > >  
> > > > > >
> > > > > >uploadDir
> > > > > >
> > > > > >
> > > > > >. 
> > > > > >
> > > > > >  
> > > > > >  
> > > > > >
> > > > > >Greetings
> > > > > >Joergen
> > > > > >
> > > > > >--
> > > > > >To unsubscribe, e-mail:   
> > > > >  [EMAIL PROTECTED]>
> > > > > >For
> > > > > additional commands,
> > > > > e-mail:
> > > > > >
> > > > > >
> > > > > >
> > > > > >  
> > > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > > --
> > > > > To unsubscribe, e-mail:   
> > > > >  [EMAIL PROTECTED]> For
> > > > > additional commands, 
> > > > > e-mail: 
> > > > > 
> > > > 
> > > > 
> > > > --
> > > > To unsubscribe, e-mail:   
> > > 
> > > For additional commands, e-mail:
> > > 
> > > 
> > > --
> > > To 
> > > unsubscribe, e-mail:   
> > >  [EMAIL PROTECTED]>
> > > For
> > > additional commands, 
> > > e-mail: 
> > > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> --
> To 
> unsubscribe, e-mail:   
>  [

SV: SV: com.oreilly.servlet - upload example not working?

2002-10-11 Thread Jørgen Ramskov

So the Upload.war package is correctly made?

I've created a new test, but I still get this error: 
description: The requested resource (/upload/servlet/Upload) is not
available.

I have this structure: /webapps/upload/WEB-INF/classes/Upload.class

I don't understand why it can't find that one?

Greetings
Joergen Ramskov


> -Oprindelig meddelelse-
> Fra: John Trollinger [mailto:[EMAIL PROTECTED]]
> Sendt: 11. oktober 2002 13:33
> Til: 'Tomcat Users List'
> Emne: RE: SV: com.oreilly.servlet - upload example not working?
> 
> 
> Your servlets need to be in a package when using jdk1.4 (ie
> demo.DemoParserUploadServlet)
> 
> > -Original Message-
> > From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] 
> > Sent: Friday, October 11, 2002 5:17 AM
> > To: Tomcat Users List
> > Subject: Re: SV: com.oreilly.servlet - upload example not working?
> > 
> > 
> > Just redeploy the class file or jar file and define the 
> servlet with 
> > your new app.
> > But if you've already deployed it once, then there is no 
> problem for 
> > other apps to access the servlet cause you can just make a 
> > url request 
> > to the servlet from another app right ?
> > 
> > Jørgen Ramskov wrote:
> > 
> > >>it's a sevlet right? so you have to define the servlet in the
> > >>web.xml of your webapp. plus you must move the jar to the 
> > WEB-INF/lib 
> > >>rather than what you stated.
> > >>
> > >>
> > >
> > >If I want the cos.jar package to be available to all 
> webapps, then I 
> > >thought I could add it it /shared/lib?
> > >
> > >the upload.war is an example app that comes with the 
> > package. It has a 
> > >structure like this:
> > >
> > >/meta-inf/ (contains a manifest file)
> > >/upload/
> > >-> /WEB-INF/
> > >-> /WEB-INF/web.xml
> > >-> upload.html
> > >-> /WEB-INF/classes/
> > >-> /WEB-INF/classes/DemoParserUploadServlet.class (and more)
> > >
> > >The web.xml file has this (and more, but I think this is the 
> > relevant 
> > >part)
> > >info:
> > >
> > >  
> > >
> > >parserupload
> > >
> > >
> > >DemoParserUploadServlet
> > >
> > >  
> > >
> > >uploadDir
> > >
> > >
> > >. 
> > >
> > >  
> > >  
> > >
> > >Greetings
> > >Joergen
> > >
> > >--
> > >To unsubscribe, e-mail:   
> >  [EMAIL PROTECTED]>
> > >For 
> > additional commands, 
> > e-mail: 
> > >
> > >
> > >
> > >  
> > >
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> >  [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: 
> > 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




howto setup tomcat to serve jad/jar

2002-10-11 Thread Daniel Hellstrand

Hello
I have just installed tomcat 4.1.12 on my linux box and I am wondering
if there is any good homepage which will describe how I can setup tomcat
to serve jar/jad files so I can download them from a cell phone. ie I
enter the servers ip in the cell phone and then I get a list of the
midlets on the server and I can then choose one to download.

/Dan


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




Re: connector between tomcat & apache

2002-10-11 Thread unplug

Thanks for your example.  But I am still confused to set it up.  I think
it is better to do a setup comparison with tomcat3.3+apache1.3+mod_jk.

tomcat3.3+apache1.3+mod_jk:
It needs a configuration file called mod_jk.conf and include it in
httpd.conf.

tomcat4.1+apache1.3+mod_jk2:
Where is the configuration file?  What should I include in httpd.conf? 
Moreover, the document mentions a worker file called
worker2.properties.  Where does it located?


Robert L Sowders wrote:
> 
> Here is an example, modify to suit your needs.  Disable JNI if you don't
> use it.  Change Disable=0 to Disable=1 in the appropriate places.
> 
> [logger]
> level=DEBUG
> 
> [config:]
> #file=${serverRoot}/conf/workers2.properties
> file=c:/Apache2/conf/workers2.properties
> debug=0
> debugEnv=0
> 
> [uriMap:]
> info=Maps the requests. Options: debug
> debug=0
> 
> # Alternate file logger
> #[logger.file:0]
> #level=DEBUG
> #file=${serverRoot}/logs/jk2.log
> 
> [shm:]
> info=Scoreboard. Required for reconfiguration and status with multiprocess
> servers
> file=${serverRoot}/logs/jk2.shm
> size=100
> debug=0
> disabled=0
> 
> [workerEnv:]
> info=Global server options
> timing=1
> debug=0
> # Default Native Logger (apache2 or win32 )
> # can be overriden to a file logger, useful
> # when tracing win32 related issues
> #logger=logger.file:0
> 
> [lb:lb]
> info=Default load balancer.
> debug=0
> 
> #[lb:lb_1]
> #info=A second load balancer.
> #debug=0
> 
> [channel.socket:localhost:8009]
> info=Ajp13 forwarding over socket
> debug=0
> tomcatId=localhost:8009
> 
> #[channel.socket:localhost:8019]
> #info=A second tomcat instance.
> #debug=0
> #tomcatId=localhost:8019
> #lb_factor=1
> #group=lb
> #group=lb_1
> #disabled=0
> 
> #[channel.un:/opt/33/work/jk2.socket]
> #info=A second channel connecting to localhost:8019 via unix socket
> #tomcatId=localhost:8019
> #lb_factor=1
> #debug=0
> 
> [channel.jni:jni]
> info=The jni channel, used if tomcat is started inprocess
> 
> [status:]
> info=Status worker, displays runtime informations
> 
> [vm:]
> info=Parameters used to load a JVM in the server process
> #JVM=C:\Program Files\Java\j2re1.4.0_01\bin\client\jvm.dll (Read from
> registry)
> OPT=-Djava.class.path=c:/Tomcat/bin/tomcat-jni.jar
> OPT=-Dtomcat.home=c:/Tomcat
> OPT=-Dcatalina.home=c:/Tomcat
> OPT=-Xmx128M
> #OPT=-Djava.compiler=NONE
> disabled=0
> 
> [worker.jni:onStartup]
> info=Command to be executed by the VM on startup. This one will start
> tomcat.
> class=org/apache/jk/apr/TomcatStarter
> ARG=start
> disabled=0
> stdout=c:/Apache2/logs/stdout.log
> stderr=c:/Apache2/logs/stderr.log
> 
> [worker.jni:onShutdown]
> info=Command to be executed by the VM on shutdown. This one will stop
> tomcat.
> class=org/apache/jk/apr/TomcatStarter
> ARG=stop
> disabled=0
> 
> [uri:/jkstatus/*]
> info=Display status information and checks the config file for changes.
> group=status:
> 
> #[uri:127.0.0.1:8003]
> #info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to
> test it
> #alias=myVirtualHost:8003
> 
> #[uri:127.0.0.1:8003/ex]
> #info=Example webapp in the virtual host. It'll go to lb_1 ( i.e.
> localhost:8019 )
> #context=/ex
> #group=lb_1
> 
> [uri:/examples]
> info=Example webapp in the default context.
> context=/examples
> debug=0
> 
> #[uri:/examples1/*]
> #info=A second webapp, this time going to the second tomcat only.
> #group=lb_1
> #debug=0
> 
> [uri:/examples/servlets/*]
> info=Prefix mapping
> 
> [uri:/examples/*.jsp]
> info=Extension mapping
> 
> [uri:/examples/*]
> info=Map the whole webapp
> 
> [uri:/examples/servlets/HelloW]
> info=Exampel with debug enabled.
> debug=10
> 
> unplug <[EMAIL PROTECTED]>
> 10/09/2002 07:05 PM
> Please respond to "Tomcat Users List"
> 
> 
> To: Tomcat Users List <[EMAIL PROTECTED]>
> cc:
> Subject:Re: connector between tomcat & apache
> 
> Any example for using mod_jk2 with apache1.3+tomcat4.1?  I follow the
> instruction from the document to download the mod_jk2.  Then I put it
> under apache_home/modules.  Then I add LoadModule & AddModule of mod_jk2
> in httpd.conf.  After that, the document said there is a file called
> worker2.properties which is used by apache.  I can't found that file in
> tomcat.  Moreover, I doubt what setting should I add in httpd.conf.
> 
> unplug
> 
> "Turner, John" wrote:
> >
> > Mod_jk (AJP13).  Don't use WARP/mod_webapp.
> >
> > Mod_jk2 is beta, workable, but use at your own risk.  Mod_jk is stable
> and
> > well-supported at this time.
> >
> > John
> >
> > > -Original Message-
> > > From: unplug [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, October 08, 2002 10:09 PM
> > > To: tomcat-user
> > > Subject: connector between tomcat & apache
> > >
> > >
> > > Hi all,
> > >
> > >   I want to confirm the following.
> > > I have read the document about the connector between tomcat & apache.
> > > But I am confused what connector to use.  As document said, we can use
> > > mod_jk2 for apache2.0+tomcat4.  Ho

Re: default mime-type

2002-10-11 Thread Günter Kukies

How can I change it?

Günter

- Original Message -
From: "unplug" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, October 11, 2002 11:02 AM
Subject: Re: default mime-type


> It is text/plain.
>
> Günter Kukies wrote:
> >
> >Part 1.1Type: Plain Text (text/plain)
> >Encoding: quoted-printable
>
> --
> http://dotw.no-ip.com
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




Re: SV: com.oreilly.servlet - upload example not working?

2002-10-11 Thread Kwok Peng Tuck

Just redeploy the class file or jar file and define the servlet with 
your new app.
But if you've already deployed it once, then there is no problem for 
other apps to access the servlet cause you can just make a url request 
to the servlet from another app right ?

Jørgen Ramskov wrote:

>>it's a sevlet right? so you have to define the servlet in the 
>>web.xml of your webapp. plus you must move the jar to the WEB-INF/lib 
>>rather than what you stated.
>>
>>
>
>If I want the cos.jar package to be available to all webapps, then I thought
>I could add it it /shared/lib?
>
>the upload.war is an example app that comes with the package. It has a
>structure like this:
>
>/meta-inf/ (contains a manifest file)
>/upload/ 
>-> /WEB-INF/
>-> /WEB-INF/web.xml
>-> upload.html
>-> /WEB-INF/classes/ 
>-> /WEB-INF/classes/DemoParserUploadServlet.class (and more)
>
>The web.xml file has this (and more, but I think this is the relevant part)
>info:
>
>  
>
>parserupload
>
>
>DemoParserUploadServlet
>
>  
>
>uploadDir
>
>
>. 
>
>  
>  
>
>Greetings
>Joergen
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>



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




strange problem for midi file

2002-10-11 Thread unplug

I am using apache1.3+tomcat3.3.1+mod_jk.so under redhat 7.3.  I put a
midi file (a.mid) in the web server for web user and mobile user to
download.  I face the strange problem for that case.

When I put the midi file in location under apache, both users can
download it without problems.
When I put the midi file in location under tomcat, web user can download
it but mobile user failed to get it.  I have examined the http header
and it showed as normal with mime-type audio/midi.  The handset shows
something like "Forbidden 403".  I wonder why it happened in the mobile
download.  Anyone has an idea to solve?  

unplug


--

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




SV: com.oreilly.servlet - upload example not working?

2002-10-11 Thread Jørgen Ramskov

> it's a sevlet right? so you have to define the servlet in the 
> web.xml of your webapp. plus you must move the jar to the WEB-INF/lib 
> rather than what you stated.

If I want the cos.jar package to be available to all webapps, then I thought
I could add it it /shared/lib?

the upload.war is an example app that comes with the package. It has a
structure like this:

/meta-inf/ (contains a manifest file)
/upload/ 
-> /WEB-INF/
-> /WEB-INF/web.xml
-> upload.html
-> /WEB-INF/classes/ 
-> /WEB-INF/classes/DemoParserUploadServlet.class (and more)

The web.xml file has this (and more, but I think this is the relevant part)
info:

  

parserupload


DemoParserUploadServlet

  

uploadDir


. 

  
  

Greetings
Joergen

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




RE: Setting up the usera and password for the administrator in Tomcat 4.1

2002-10-11 Thread Christine . Just

as far as I know there's no documentation yet, but the procedure is the same
as with the manager-app, except that the necessary role for the admin tool
is "admin".

Chris

-Original Message-
From: Carlos [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 10:37 PM
To: Tomcat-User (E-mail)
Subject: Setting up the usera and password for the administrator in
Tomcat 4.1


Where can I find documentation o intructions to set-up the user and password
of the administrator application?  I was able to set-up the manager by
adding the user, password, and role to the user file as the documentation
indicates but I could not find info about setting-up a user as an
administrator.

Carlos Oliva


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




Re: default mime-type

2002-10-11 Thread unplug

It is text/plain.

Günter Kukies wrote:
> 
>Part 1.1Type: Plain Text (text/plain)
>Encoding: quoted-printable

-- 
http://dotw.no-ip.com

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




Tomcat: using an extra CharsetProvider in a servlet

2002-10-11 Thread Manger, James H

I would like to use a non-standard character set for selected operations
within a servlet.  I have implemented a CharsetProvider, Charset,
CharsetEncoder & CharsetDecoder.

I can use my new character set from a Java application by listing the
CharsetProvider class name in the following file within the application JAR.
META-INF/services/java.nio.charset.spi.CharsetProvider
(see API for CharsetProvider)

My application (without any particular "import" statements) can make calls
such as:
String msg = "Hello, World!";
byte[] encoding = msg.getBytes("MY-CHARSET");

I cannot get these lines to work in a servlet -- the
msg.getBytes("MY-CHARSET") throws:
java.nio.charset.UnsupportedCharsetException: MY-CHARSET

QUESTION: How do I tell the system running my servlet about my character
set?

Adding a JAR with the character set (and META-INF... file) to the jre/ext/
directory makes the character set available to all Java apps - but not to
the servlet!  Adding the JAR to tomcat/common/lib/ did not seem to work
either.

My servlet can see my CharsetProvider class, but my CharsetProvider is not
"registered" with the system (and it needs to be "registered" for
String.getBytes("MY-CHARSET") to work).

[JWSDP 1.0_01, J2SE 1.4.0_01, Tomcat 4.1.2, SunOS 5.6]

James Manger

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




Re: Setting up the usera and password for the administrator in Tomcat 4.1

2002-10-11 Thread Raj Saini

It is the same file. Add a role admin as you did for manager. Add this 
role to any user.

Raj Saini

Carlos wrote:
> Where can I find documentation o intructions to set-up the user and
> password
> of the administrator application?  I was able to set-up the manager by
> adding the user, password, and role to the user file as the
> documentation
> indicates but I could not find info about setting-up a user as an
> administrator.
> 
> Carlos Oliva
> 
> 



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




Re: com.oreilly.servlet - upload example not working?

2002-10-11 Thread Kwok Peng Tuck

it's a sevlet right? so you have to define the servlet in the web.xml of 
your webapp. plus you must move the jar to the WEB-INF/lib rather than 
what you stated.

Jørgen Ramskov wrote:

>Hi,
>
>I have installed sun's JDK 1.4.1 and Tomcat 4.1.12 on a win2k machine. I
>have added  cos.jar to CATALINA_HOME/shared/lib and put the upload.war file
>in the /webapps directory. When I try the example, I get:
>
>HTTP Status 404 - /upload/servlet/parserupload
>
>
>type Status report
>message /upload/servlet/parserupload
>description The requested resource (/upload/servlet/parserupload) is not
>available.
>
>What am I doing wrong?
>
>
>Greetings
>Joergen
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>



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




  1   2   >