default mime-type

2002-10-10 Thread Günter Kukies

Hello,

what is the default mime-type when tomcat can't find a matching extention in the 
servers conf/web.xml?

Thanks
Günter Kukies



session

2002-10-10 Thread Günter Kukies

Hello,

is there any trick to let the apache server know the session that tomcat created? I 
use an Apache Server in front of tomcat with mod_jk. I want to protect the static 
pages and image dirs.

Thanks in advance

Günter Kukies





Executing CGI scripts

2002-10-10 Thread Stanert, Mark

I am running Tomcat 3.2.3 and need to know how to call a cgi script.  I
don't have problems running under apache.  


Mark

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




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

2002-10-10 Thread sonam singh

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: 




Re: PostgreSQL JNDI resource under Tomcat 4.1.12 problem

2002-10-10 Thread Steve Carrow

Thanks Nikola,

That was the issue. For the rest of my query, go to the beginning of this
thread, but here is the synopsis:

- If you do not put in a validation query when creating a data source under
the Tomcat 4.1.12 manager/admin web app, you will have an empty value for
the validationQuery parameter and your attempted accessing of a connection
will go to Never-Never Land (an apparent infinite loop).

I consider this a bug, primarily because Tomcat itself generated the XML,
but also because the code should handle intelligently the absence of a value
for a named parameter. At the very least, an exception should be thrown!

If the consensus is that this is a bug to be reported, how do I go about
doing that?

Thanks,
Steve

- Original Message -
From: "Nikola Milutinovic" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, October 10, 2002 1:33 AM
Subject: Re: PostgreSQL JNDI resource under Tomcat 4.1.12 problem


> > Server.xml: This portion exists under the GlobalNamingResources element
> > under Server; the only pieces changed are the username and password.-)
> >
> >  > type="javax.sql.DataSource"/>
> > 
> >
> > validationQuery
> > 
> >   
>
> Should this be empty? If you do not have a connection validation query,
then remove this or put something quick and small. I'm not saying that is
the problem, but most of my expirience (and others, too) can be described as
getting "null" object from JNDI, not hanging.
>
> Nix.
>


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




RE: AW: Too Many Sessions!

2002-10-10 Thread Luminous Heart

If you make your code availabe that could help
pinpointing where things are going wrong with you.

--- Cindy Ballreich <[EMAIL PROTECTED]> wrote:
> At 01:18 PM 10/10/02 -0400, Shapira, Yoav wrote:
> >Hi,
> >Just a curiosity question: does your session
> listener keep a count of sessions?  And if so, how
> does that count compare to the manager webapp's
> count?
> 
> That's an interesting idea. It's pretty easy to see
> from the logs how many sessions are being created
> and not destroyed. I don't have the manager webapp
> running right now, but I may give that a try. I've
> been thinking that maybe these aren't "real"
> sessions (otherwise they'd eventually time out,
> wouldn't they?) and this might be a good way to
> verify that.
> 
> Cindy
> 
> --
> 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: 




Re: Iteration tag question

2002-10-10 Thread Khamsouk Souvanlasy

Hi Cindy,

There is probably a better mailing list for this question; but anyway, why
not simply use a tag within the iteration tag on the JSP page to check for
the objects you don't want to display?



JSP CODE



Also in the doAfterBody() you can also use a for/while statement to skip
elements until you find ones that can be displayed

Kam

On 10/11/02 8:01, "Cindy Ballreich" <[EMAIL PROTECTED]> wrote:

> Not directly a Tomcat question, but I hope not too far off topic.
> 
> Let's say I have a collection of objects that I want to iterate through and
> display on a JSP page with a custom tag. The body content of the tag on the
> page formats the output as rows and elements of a table. Now, let's say I want
> to skip a few of the objects in the middle of the collection. How can I skip
> those objects without having the tag output the empty html tags from the page?
> I've tried all of the doAfterBody() return values I can think of with no
> success. (They either process the empty body content or stop processing
> altogether.) I assume that I'm going to have to play around with the
> BodyContent or PageContext, but I can't find any examples that show how to do
> this and it's not intuitive to me.
> 
> Any suggestions or examples would be greatly appreciated.
> 
> Cindy
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


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




Re: reloading of jsp page...

2002-10-10 Thread Glenn Nielsen

If you have the develop init paramter for the JspServlet in $CATALINA_HOME/conf/web.xml
set to false JSP page recompiles happen in the background no more frequently than
the time set in the JspServlet init paramter checkInterval.

The Context/Host reloadable flag is only for performing class reloading checks
for jar's in /WEB-INF/lib and classes in /WEB-INF/classes, it does not have
any affect on JSP pages.

Make sure that your web browser is not showing you a cached version of the page.

Regards,

Glenn

Padhu Vinirs wrote:
> 
> Tomcat 4.1.12
> 
> I have a jsp page that compiles fine. Then I make a change and try to 
> access the page again. The page is not recompiled. I am still getting 
> back the old value. I do have reloadable=true for my context. I have to 
> restart Tomcat to get the new page. Anybody else notice this ?
> 
> -- padhu
> 
> 
> -- 
> 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-10 Thread Robert L Sowders

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.  How about apache1.3+tomcat4?  The
> > document doesn't mention about it.  Is mod_webapp the only way to be a
> > connector between them?
> >
> > Thanks,
> > unplug
> >
> >
> > --
> >
> > --
> > 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: 




tomcat threading model

2002-10-10 Thread Patrick Lacson


Is there any documentation other than code as to Tomcat's threading model?
I am looking at running Tomcat as an embedded web process in an application
but we've spent a great deal of time and effort researching and developing 
the
threading for the app to make it as realtime as possible( interpreted
language and all).I would hate to bog down our app but neither do I really 
want a
communications layer.I'll read the code if I must but time as always is of 
the essence ( isn't it always ).

If this question is for tomcat-dev, please let me know.  Thank you!



[EMAIL PROTECTED]
Software Developer

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




RE: mod_jk crash

2002-10-10 Thread Georg Puchta

I had the same problem and traced it to the same source as you.
mod_jk.c
s->remote_host  = (char *)ap_get_remote_host(r->connection, 
 r->per_dir_config,
REMOTE_HOST);

Requests worked fine until I did a request with query parameters.
In that case Apache logged "child pid 18323 exit signal Bus Error (10)".

The only difference I found was that if r->per_dir_config was NULL it
worked.
The only case were this member variable was NOT null was with requests that
had query parameters. Don't ask me why.

I changed the line in mod_jk.c to ...
s->remote_host  = (char *)ap_get_remote_host(r->connection, 
 NULL, REMOTE_HOST);
... and it works now.

That's the only solution I could come up with, since there seem to be
only a small number of people that encountered this problem.

-Georg


-Original Message-
From: Eugene Gluzberg [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 9:16 PM
To: Tomcat Users List
Subject: Re: mod_jk crash


Going back to mod_jk version from tomcat_404 worked. I would like to use 
the JK_1_2_0 version though, so if anyone could help debug it would be 
great.

I am running on RH 7.2 install.

Eugene Gluzberg wrote:

>
> I am running apache 1.3 with mod_jk, my apache has apxs.
>
> I compiled and installed mod_jk from source, tag TOMCAT_4_1_12, 
> configured it using the following options:
> ./configure --with-gnu-ld --with-apxs=/myapxpath/bin/apxs 
> --enable-EAPI --with-java-home=/usr/java/jdk1.3.1
>
> ran make
>
> installed mod_jk into the module directory, loaded fine.
>
>
> I created a virtual host in apache and added the following JkMount:
>
> JkMount /*.jsp wwwuser_wk
>
> My workers.properties looks as follows:
> workers.java_home=/usr/java/jdk1.3.1
> workers.tomcat_home=/var/tomcat4
> worker.list=wwwuser_wk
>
> worker.wwwuser_wk.host=localhost
> worker.wwwuser_wk.port=5266
> worker.wwwuser_wk.type=ajp13
> worker.wwwuser_wk.lbfactor=50
> worker.wwwuser_wk.cachesize=10
> worker.wwwuser_wk.cache_timeout=600
> worker.wwwuser_wk.socket_keepalive=1
> worker.wwwuser_wk.socket_timeout=300
>
>
> I startup apache and tomcat, then i point my browser to xyz.com/index.jsp
>
> I get nothing back on the browser, and the following in error_log
> [notice] child pid 19817 exit signal Segmentation fault (11)
>
> I added debugging code to mod_jk and traced it to the following line 
> in mod_jk.c
>   s->remote_host  = (char *)ap_get_remote_host(r->connection, 
> r->per_dir_config, REMOTE_HOST);
>
>
> REMOTE_HOST seems to be NULL for that since i printed all the stuff 
> from there.
>
> Please help. How can i trace this further? How do i get apache to 
> generate a core file so i can see where in apache code this is? Any 
> pointers for help here at all?
>
> Eugene
>
>
> --
> 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: JSDK 1.3 or 1.4 on FreeBSD 4.1.1 - must I compile it?

2002-10-10 Thread Robert L Sowders

Please see the freebsd-java mailing list

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&group=mailing.freebsd.java

rls





Nicholas Pappas <[EMAIL PROTECTED]>
10/09/2002 03:01 PM
Please respond to "Tomcat Users List"

 
To: [EMAIL PROTECTED]
cc: 
Subject:JSDK 1.3 or 1.4 on FreeBSD 4.1.1 - must I compile it?

Hello,
I want to install the JSDK 1.3 or 1.4 on Free BSD 4.1.1 in order to get
Tomcat 4.1 there, too. Now, I've searched the sun site and it appears
that they don't have binaries for FreeBSD. I see some places suggest
they used binaries for Solaris; I've found one good link that recommends
another approach: getting the source for the jdsk and recompiling it on
FreeBSD
(http://www.freebsd.org/doc/en_US.ISO8859-1/articles/java-tomcat/x35.html).
Recompiling it is not a great option for me given my hosting situation
and I'd like to avoid it if possible. Can I use Solaris binaries? Are
there FreeBSD jsdk binaries I'm missing somewhere?

Thanks for any assistance!
Best,
Nick


--
Nicholas Pappas



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





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




Iteration tag question

2002-10-10 Thread Cindy Ballreich

Not directly a Tomcat question, but I hope not too far off topic.

Let's say I have a collection of objects that I want to iterate through and display on 
a JSP page with a custom tag. The body content of the tag on the page formats the 
output as rows and elements of a table. Now, let's say I want to skip a few of the 
objects in the middle of the collection. How can I skip those objects without having 
the tag output the empty html tags from the page? I've tried all of the doAfterBody() 
return values I can think of with no success. (They either process the empty body 
content or stop processing altogether.) I assume that I'm going to have to play around 
with the BodyContent or PageContext, but I can't find any examples that show how to do 
this and it's not intuitive to me.

Any suggestions or examples would be greatly appreciated.

Cindy


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




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

2002-10-10 Thread Matt Raible

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: Where the heck is jakarta-tomcat-jasper source?

2002-10-10 Thread Brzezinski, Paul J

James C. McMaster (Jim) wrote:

>I am trying to build tomcat 4.1.12 on Solaris 8.  I have downloaded 
>everything called for in BUILDING.txt, and modified build.properties to point 
>to the right places.  ant detect shows:
>
>flags.display:
> [echo] --- Build environment for Tomcat Server Configuration Application 
>---
> [echo] If ${property_name} is displayed, then the property is not set)
> [echo] --- Build options ---
> [echo] full.dist=on
> [echo] build.sysclasspath=${build.sysclasspath}
> [echo] compile.debug=on
> [echo] compile.deprecation=off
> [echo] compile.optimize=on
> [echo] --- Ant Flags ---
> [echo] 

Re: Tomcat 4.0.6 with JIKES 1.17

2002-10-10 Thread Jacob Kjome

Hello christophe,

There are several bugs at http://nagoya.apache.org/bugzilla/ about
this.  Basically, if you are on a Windows platform, this won't work
for you because the windows version of Jikes doesn't support the
"-encoding" option.  Check out the Jikes site for those bugs as well.

Bottom line, don't try to use Jikes-1.17 under windows for JSP
compilation.

Jake

Thursday, October 10, 2002, 8:19:17 AM, you wrote:

cbjf> Received: from psmtp.com (exprod5mx11.postini.com [64.75.1.151]) by 
mail.shell.visi.com (8.8.8/8.7.5) with SMTP id IAA20414 for <[EMAIL PROTECTED]>; 
Thu, 10 Oct 2002 08:19:16 -0500 (CDT)
cbjf> Posted-Date: Thu, 10 Oct 2002 08:19:16 -0500 (CDT)
cbjf> Received-Date: Thu, 10 Oct 2002 08:19:16 -0500 (CDT)
cbjf> Received: from source ([208.42.156.104]) by exprod5mx11.postini.com 
([64.75.1.245]) with SMTP;
cbjf> Thu, 10 Oct 2002 09:19:15 EDT
cbjf> Received: by bodb.mc.mpls.visi.com (Postfix)
cbjf> id 7D2ED4BFC; Thu, 10 Oct 2002 08:19:15 -0500 (CDT)
cbjf> Delivered-To: [EMAIL PROTECTED]
cbjf> Received: from psmtp.com (exprod5mx33.postini.com [64.75.1.188])
cbjf> by bodb.mc.mpls.visi.com (Postfix) with SMTP id DA2FE4BD0
cbjf> for <[EMAIL PROTECTED]>; Thu, 10 Oct 2002 08:19:14 -0500 (CDT)
cbjf> Received: from source ([192.18.49.131]) by exprod5mx33.postini.com 
([64.75.1.245]) with SMTP;
cbjf> Thu, 10 Oct 2002 06:19:14 PDT
cbjf> Received: (qmail 22161 invoked by uid 97); 10 Oct 2002 13:19:53 -
cbjf> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
cbjf> Precedence: bulk
cbjf> List-Unsubscribe: 
cbjf> List-Subscribe: 
cbjf> List-Help: 
cbjf> List-Post: 
cbjf> List-Id: "Tomcat Users List" 
cbjf> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
cbjf> Delivered-To: mailing list [EMAIL PROTECTED]
cbjf> Received: (qmail 22130 invoked by uid 98); 10 Oct 2002 13:19:52 -
cbjf> X-Antivirus: nagoya (v4218 created Aug 14 2002)
cbjf> MIME-Version: 1.0
cbjf> To: [EMAIL PROTECTED]
cbjf> Subject: Tomcat 4.0.6 with JIKES 1.17
cbjf> X-Mailer: Lotus Notes Release 5.0.10  March 22, 2002
cbjf> Message-ID: 
<[EMAIL PROTECTED]>
cbjf> From: [EMAIL PROTECTED]
cbjf> Date: Thu, 10 Oct 2002 15:19:17 +0200
cbjf> X-MIMETrack: Serialize by Router on ServeurNotes/JPServices(Release 5.0.10 
|March 22, 2002) at
cbjf>  10/10/2002 15:19:18,
cbjf> Serialize complete at 10/10/2002 15:19:18
cbjf> Content-Type: multipart/alternative; boundary="=_alternative 00492D3FC1256C4E_="
cbjf> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
cbjf> X-pstn-levels: (C:75.3595 M:99.8512 P:95.9108 S:48.9581 )
cbjf> X-pstn-settings: 3 (1.:2.) pmCr
cbjf> X-pstn-addresses: from <[EMAIL PROTECTED]> 
cbjf> X-pstn-levels: (C:75.3595 M:99.8512 P:95.9108 S:48.9581 )
cbjf> X-pstn-settings: 3 (1.:2.) pmCr
cbjf> X-pstn-addresses: from <[EMAIL PROTECTED]> 
cbjf> X-Spam-Status: No, hits=0 required=6 tests= version=2.0
cbjf> X-UIDL: 8e8b0d284512ad65ec2a96bb10af5dc2

cbjf> Hello, 

cbjf> I would like to test Tomcat 4.0.6 with Jikes 1.17. 
cbjf> I know that the file should be modified $TOMCAT \conf\web.xml but 
cbjf> I tested that does not walk 

cbjf> would somebody have an example ? 

cbjf> Thank you in advance, 

cbjf> greetings 

cbjf> Salutations,

cbjf> Christophe BAROIN
cbjf> JP Services 
cbjf> 16, Rue de Moronval 
cbjf> 28100 DREUX 

cbjf> Tél.   : 02.37.38.92.12
cbjf> Fax   : 02.37.42.87.58
cbjf> E Mail :[EMAIL PROTECTED]
cbjf> Visiter notre site sur http://www.jpservices.fr



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




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

2002-10-10 Thread Gary Henson

By default, the WARP connector, and Tomcat-Apache service are commented
out.

They are included as examples if you want to use them, but the default
connector is the Coyote/JK2 connector.

My suggestion would be to use JK or JK2 to connect Apache and Tomcat. It
is
a reasonably well documented process (compared to other connectors) and
there are a lot of examples available.

The other easy alternative is to change the connector for HTTP/1.1 from 
port 8080 to port 80, and only use Tomcat.

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 11 October 2002 11:24
To: Tomcat Users List
Subject: Re: mod_webapp (was: Re: TOMCAT-STANDALONE needed with Apache
Server?)




On Thu, 10 Oct 2002, Mark R. Diggory wrote:

> Date: Thu, 10 Oct 2002 18:13:17 -0400
> From: Mark R. Diggory <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> 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?

There is also a mod_jk connector in the default configuration (on port
8009).  The difference is that jk doesn't require a custom
service/engine/context hierarchy -- it uses the standard one.

>
> Cheers,
> -Mark

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




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

2002-10-10 Thread Craig R. McClanahan



On Thu, 10 Oct 2002, Mark R. Diggory wrote:

> Date: Thu, 10 Oct 2002 18:13:17 -0400
> From: Mark R. Diggory <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> 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?

There is also a mod_jk connector in the default configuration (on port
8009).  The difference is that jk doesn't require a custom
service/engine/context hierarchy -- it uses the standard one.

>
> Cheers,
> -Mark

Craig


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




Re: Problems configuring servlets...

2002-10-10 Thread Craig R. McClanahan

See below.

On Thu, 10 Oct 2002, FRASER, JORGE wrote:

> Date: Thu, 10 Oct 2002 15:54:37 -0500
> From: "FRASER, JORGE" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Problems configuring servlets...
>
> Hello all,
>
> We are in the process of trying to migrate our applications from Tomcat 3.1
> to 4.1. Our problem resides in the fact that we run the main app as the
> default context, Here's the context definition in 3.1:
>
>   docBase=/valnet"
>   debug="0"
> reloadable="true">
>  path="logs/valnet.log"
>   verbosityLevel="DEBUG"
>   TimeStamps="true" />
>  path="logs/valnet_servlet.log"
>verbosityLevel="DEBUG"
>servletLogger="true" />
>
>
> Here's the definition in 4.1:
>
>  crossContext="false" reloadable="true"
> mapperClass="org.apache.catalina.core.StandardContextMapper"
> useNaming="false" debug="0" swallowOutput="false" privileged="false"
> wrapperClass="org.apache.catalina.core.StandardWrapper" docBase="C:\Program
> Files\Apache Group\Tomcat 4.1\webapps\valnet" cookies="true" path=""
> cachingAllowed="true"
> charsetMapperClass="org.apache.catalina.util.CharsetMapper">
> 
>
> The problem that we are encountering is that when we port this to 4.1, the
> servlets cannot be accessed.
> We get a 404 error saying that the resource could not be found.
>
> We have the servlets define in web-xml under the WEB-INF directory similar
> to the following:
>
> 
>Groups
>WebApp.s_authentication.Groups
>999
> 
>
> When the above servlet gets called it generates the following error:
>
> type Status report
> message /servlet/WebApp.s_authentication.s_authentication
> description The requested resource
> (/servlet/WebApp.s_authentication.s_authentication) is not available.
>

In version 4.1.12 of Tomcat, the invoker servlet (the one that handles
"/servlet/*" paths) got disabled by default for security related reasons.
Although you can re-enable it by uncommenting the appropriate
 in the default configuration file
($CATALINA_HOME/conf/web.xml), you are much better off creating explicit
mappings for each of your servlets in the web.xml file.  For example, a
mapping for the servlet you defined above, which maintains existing URLs,
would look like this:

  
Group
/servlet/s_authentication.Groups/*
  

Remember that the order of elements in web.xml is required to match the
DTD, so put all your servlet mapping elements *after* the servlet
elements.

(Of course, you can also use servlet mappings to map *any* legal URL to a
particular servlet, but doing the above is easiest in a conversion case.)

> Any help would be greatly appreciated...
>
> Jorge Fraser
> Valspar Corporation
> 1101 S. Third St.
> Minneapolis, MN 55415
> Phone: (612) 375-7309
> e-mail: [EMAIL PROTECTED]
>
> A nickel ain't worth a dime anymore.
> -Yoggi Berra
>

Craig


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




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

2002-10-10 Thread Mark R. Diggory

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

>  
>
>  
>>From: Chris Wolcott [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, October 10, 2002 11:50 AM
>>To: Tomcat Users List
>>Subject: TOMCAT-STANDALONE needed with Apache Server?
>>
>>
>>I'm new to the world of Apache and Jakarta. I notice TOMCAT 
>>by default 
>>has the TOMCAT-STANDALONE instance defined by default, and the 
>>TOMCAT-APACHE instance commented out with no connectors, etc 
>>defined. I 
>>loaded Apache 2.0 and TOMCAT 4.0 on my Win 2K Svr box. Do I NEED the 
>>stand-alone instance of TOMCAT? Do I need all those connectors on the 
>>different ports? What is used by the mod_jk interface from Apache to 
>>TOMCAT? I tried mod_webapp, but Apache said it could not find it even 
>>though I DL'd a win32 version of the .so and accompanying 
>>libapr.dll to 
>>the MODULES directory. (I went back to the mod_jk method)
>>
>>I have read multiple pages on setting up TOMCAT, and all seem to be 
>>different or not appropriate for my needs. Anyone have a good page to 
>>help me setup Apache/Tomcat and JSP/SERVLETS/BEANS on a 
>>WINDOWS 2000 SERVER?
>>
>>Thanks
>>
>>
>>--
>>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: 




Where the heck is jakarta-tomcat-jasper source?

2002-10-10 Thread James C. McMaster (Jim)

I am trying to build tomcat 4.1.12 on Solaris 8.  I have downloaded 
everything called for in BUILDING.txt, and modified build.properties to point 
to the right places.  ant detect shows:

flags.display:
 [echo] --- Build environment for Tomcat Server Configuration Application 
---
 [echo] If ${property_name} is displayed, then the property is not set)
 [echo] --- Build options ---
 [echo] full.dist=on
 [echo] build.sysclasspath=${build.sysclasspath}
 [echo] compile.debug=on
 [echo] compile.deprecation=off
 [echo] compile.optimize=on
 [echo] --- Ant Flags ---
 [echo] 

RE: HTTP Response appears at top : Tomcat 3.2.1 IIS 5 IE 6 SP1

2002-10-10 Thread Michael Finney

To answer these two questions: 
1) Does the JSP code that sends the redirect write
anything prior to the re-direct
Answer: Not always although in some cases it may.   In
the case I am using to test with, it does not write
anything to the response.

2) does it have a return statement immediately
following the send redirect?
Answer: yes.  At least in the case which I am using to
test with.

These three files make the error happen
test_first_page.jsp 
test_included.jsp
test_last_page.jsp


test_first_page.jsp contents:
<%@ include file="test_included.jsp" %>
<% 
try { 
log("inside log - MAF TAKEOUT - checking the
redirect");
  response.sendRedirect("/ja/test_last_page.jsp");  //
my add on
  return;
} catch (Exception e) { 
}  
%> 


test_included.jsp contents:




(---
yes that is four blank lines: 0xD 0xA)

test_last_page.jsp contents:



ok


ok 2





--- "Sexton, George" <[EMAIL PROTECTED]> wrote:
> Does the JSP code that sends the redirect write
> anything prior to the
> re-direct, and does it have a return statement
> immediately following the
> send redirect?
> 
> -Original Message-
> From: Michael Finney [mailto:[EMAIL PROTECTED]]
> Sent: 10 October, 2002 11:15 AM
> To: Tomcat Users List
> Subject: RE: HTTP Response appears at top : Tomcat
> 3.2.1 IIS 5 IE 6 SP1
> 
> 
> I will add the skip intro to the list. ;)
> 
> I believe that JSP code telling the page to redirect
> may be triggering the problem.  I tried to narrow it
> down in the code, but I ended up with a file
> included
> with 4 blank lines and a redirect causing the
> problem.
>  The problem happens in other parts too.
> 
> The problem of the header showing up needs to be
> fixed.
> 
> Has anyone seen header information showing up when
> it
> is not supposed to in the web pages when tomcat and
> IIS is integrated?   What was the fix?
> 
> --- Richard Haber <[EMAIL PROTECTED]>
> wrote:
> > I notice that the header does not appear if you go
> > to the welcome.jsp
> > directly.  I am using IE 6 SP1, cleared the cache
> > and tried several
> > times.
> >
> > On an [OT] other note, Macromedia best practices
> > recommends a 'skip
> > intro' button on the splash page to allow users
> > returning to the site
> > quicker access to the site's content ;->
> >
> > Otherwise, a nice animation!
> >
> > Richard
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> >
> 
> > For additional commands, e-mail:
> > 
> >
> 
> 
> =
> Michael Finney
> Sun Certified Programmer for the Java 2 Platform
> Sun Certified Developer for the Java 2 Platform
> Sun Certified Web Component Developer for J2EE
> Platform
> Cofounder of PPJDG
> Cofounder of cosAgile - Colorado Springs XP Users
> Group
> If replying to this email address fails, try
> [EMAIL PROTECTED]
> 
> __
> 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:
> 
> 


=
Michael Finney
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for J2EE Platform 
Cofounder of PPJDG
Cofounder of cosAgile - Colorado Springs XP Users Group
If replying to this email address fails, try [EMAIL PROTECTED]

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

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




RE: TOMCAT-STANDALONE needed with Apache Server?

2002-10-10 Thread Turner, John


First, you don't need Apache.  Tomcat works just fine in stand-alone mode.
Don't bother with Apache and connectors unless you absolutely need it, or
have aversions to running Tomcat on port 80.

Second, stay away from mod_webapp (WARP).  AFAIK, it isn't active anymore,
and it wasn't finished when the activity stopped anyway.  The current stable
connector is mod_jk (JK/AJP13).  Also available is mod_jk2 (JK2), but that
has been designated as "beta" by the team.  Choose the one you want to use.

Third, there are several HOWTOs for Windows and other platforms, like this
one from Robert Sowders using JK2:
ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Jk2_TC4.1.x_JSDK1.4.zip

Search the archives for others.

If you choose to use Tomcat in stand-alone, you don't need any of the other
connectors enabled in server.xml.  Conversely, if you do decide to go the
Apache + connector route, you don't need the stand-alone connector enabled
in server.xml.  Just comment out the connectors you don't need and restart
Tomcat.

The default connector for JK is port 8009, I believe.

John


> -Original Message-
> From: Chris Wolcott [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 10, 2002 11:50 AM
> To: Tomcat Users List
> Subject: TOMCAT-STANDALONE needed with Apache Server?
> 
> 
> I'm new to the world of Apache and Jakarta. I notice TOMCAT 
> by default 
> has the TOMCAT-STANDALONE instance defined by default, and the 
> TOMCAT-APACHE instance commented out with no connectors, etc 
> defined. I 
> loaded Apache 2.0 and TOMCAT 4.0 on my Win 2K Svr box. Do I NEED the 
> stand-alone instance of TOMCAT? Do I need all those connectors on the 
> different ports? What is used by the mod_jk interface from Apache to 
> TOMCAT? I tried mod_webapp, but Apache said it could not find it even 
> though I DL'd a win32 version of the .so and accompanying 
> libapr.dll to 
> the MODULES directory. (I went back to the mod_jk method)
> 
> I have read multiple pages on setting up TOMCAT, and all seem to be 
> different or not appropriate for my needs. Anyone have a good page to 
> help me setup Apache/Tomcat and JSP/SERVLETS/BEANS on a 
> WINDOWS 2000 SERVER?
> 
> Thanks
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




RE: HTTP Response appears at top : Tomcat 3.2.1 IIS 5 IE 6 SP1

2002-10-10 Thread Sexton, George

Does the JSP code that sends the redirect write anything prior to the
re-direct, and does it have a return statement immediately following the
send redirect?

-Original Message-
From: Michael Finney [mailto:[EMAIL PROTECTED]]
Sent: 10 October, 2002 11:15 AM
To: Tomcat Users List
Subject: RE: HTTP Response appears at top : Tomcat 3.2.1 IIS 5 IE 6 SP1


I will add the skip intro to the list. ;)

I believe that JSP code telling the page to redirect
may be triggering the problem.  I tried to narrow it
down in the code, but I ended up with a file included
with 4 blank lines and a redirect causing the problem.
 The problem happens in other parts too.

The problem of the header showing up needs to be
fixed.

Has anyone seen header information showing up when it
is not supposed to in the web pages when tomcat and
IIS is integrated?   What was the fix?

--- Richard Haber <[EMAIL PROTECTED]> wrote:
> I notice that the header does not appear if you go
> to the welcome.jsp
> directly.  I am using IE 6 SP1, cleared the cache
> and tried several
> times.
>
> On an [OT] other note, Macromedia best practices
> recommends a 'skip
> intro' button on the splash page to allow users
> returning to the site
> quicker access to the site's content ;->
>
> Otherwise, a nice animation!
>
> Richard
>
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


=
Michael Finney
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for J2EE Platform
Cofounder of PPJDG
Cofounder of cosAgile - Colorado Springs XP Users Group
If replying to this email address fails, try [EMAIL PROTECTED]

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




Problems configuring servlets...

2002-10-10 Thread FRASER, JORGE

Hello all,

We are in the process of trying to migrate our applications from Tomcat 3.1
to 4.1. Our problem resides in the fact that we run the main app as the
default context, Here's the context definition in 3.1:

   

   
   

Here's the definition in 4.1:




The problem that we are encountering is that when we port this to 4.1, the
servlets cannot be accessed.
We get a 404 error saying that the resource could not be found.

We have the servlets define in web-xml under the WEB-INF directory similar
to the following:


   Groups
   WebApp.s_authentication.Groups
   999


When the above servlet gets called it generates the following error:

type Status report
message /servlet/WebApp.s_authentication.s_authentication
description The requested resource
(/servlet/WebApp.s_authentication.s_authentication) is not available.

Any help would be greatly appreciated...

Jorge Fraser
Valspar Corporation
1101 S. Third St.
Minneapolis, MN 55415
Phone: (612) 375-7309
e-mail: [EMAIL PROTECTED]

A nickel ain't worth a dime anymore.
-Yoggi Berra 



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




Re: Accessing shared C lib from JSP/Setting ENV variables

2002-10-10 Thread Jean-Francois Arcand

Eumm.. I recommend you don't call a library from your JSP, but from a 
JavaBean (call the bean from your JSP). Also, you may want to read 
about  how to load a library in Tomcat (see file 
${CATALINA_HOME}/RELEASE-NOTES

"
Applications that require native libraries must ensure that the 
libraries have
been loaded prior to use.  Typically, this is done with a call like:

  static {
System.loadLibrary("path-to-library-file");
  }

in some class.  However, the application must also ensure that the 
library is
not loaded more than once.  If the above code were placed in a class inside
the web application (i.e. under /WEB-INF/classes or /WEB-INF/lib), and the
application were reloaded, the loadLibrary() call would be attempted a 
second
time.

To avoid this problem, place classes that load native libraries outside 
of the
web application, and ensure that the loadLibrary() call is executed only 
once
during the lifetime of a particular JVM.
"

-- Jeanfrancois




John Murtari wrote:

>We are working with a client who is trying to interface JSP with the 
>Chameleon libraries from Interfaceware (www.interfaceware.com).  
>
>Interfaceware has recommended using the  tag to access this
>library, ie - something like : 
> <%@ page import="libchm_java.so">  
>but this does not work!
>
>Accessing the Chameleon libs also requires the registration key be
>accessible via an ENV variable.  This can be exported to the ENV from
>the tomcat startup script, but then the variables would probably be
>accessible from any of the virtual hosts configured on the machine.  I
>had through I could probably defined a  within this
>host's , but the key contains a & which causes the xml
>parsing of the server.xml file to fail.
>
>
>  
>


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




RE: Classpath Issues, Tomcat 4.X and J2EE Interoperability frustrations...

2002-10-10 Thread Andrew Gilbert

Doh!

Thanks again for the replies. I appreciate the input. The path is at least becoming 
clearer now...



> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 10, 2002 4:31 PM
> To: Tomcat Users List
> Subject: RE: Classpath Issues, Tomcat 4.X and J2EE Interoperability
> frustrations...
> 
> 
> 
> 
> On Thu, 10 Oct 2002, Andrew Gilbert wrote:
> 
> > Date: Thu, 10 Oct 2002 16:23:21 -0400
> > From: Andrew Gilbert <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: RE: Classpath Issues,
> >  Tomcat 4.X and J2EE Interoperability frustrations...
> >
> > Should I understand this all to say that Tomcat is not at 
> all J2EE 1.3
> > compliant?
> >
> 
> That's a fair one-liner summary.
> 
> The more correct answer is that Tomcat complies with all of 
> the mandatory
> Servlet 2.3 and JSP 1.2 features, plus *some* of those that are only
> required by a complete J2EE platform (i.e. the JNDI naming 
> context, and
> availability of a JDBC data source accessed via an API compatible with
> J2EE standards).
> 
> It has no support for EJB, JMS, ... so it is absolutely not a J2EE
> compliant server by itself.  Nobody eer claimed it was 
> (although I can't
> help it when people make assumptions).
> 
> What makes more confusing is that several people bundle Tomcat into a
> complete J2EE-ish thing.  Sun does that with the J2EE RI, for 
> example --
> but it's only a J2EE platform when you use all of it.  But Tomcat by
> itself is not a J2EE container.
> 
> Craig
> 
> 

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




Accessing shared C lib from JSP/Setting ENV variables

2002-10-10 Thread John Murtari

We are working with a client who is trying to interface JSP with the 
Chameleon libraries from Interfaceware (www.interfaceware.com).  

Interfaceware has recommended using the  tag to access this
library, ie - something like : 
 <%@ page import="libchm_java.so">  
but this does not work!

Accessing the Chameleon libs also requires the registration key be
accessible via an ENV variable.  This can be exported to the ENV from
the tomcat startup script, but then the variables would probably be
accessible from any of the virtual hosts configured on the machine.  I
had through I could probably defined a  within this
host's , but the key contains a & which causes the xml
parsing of the server.xml file to fail.


-- 
  John
___
John Murtari  Software Workshop Inc.
[EMAIL PROTECTED] 315.695.1301(x-211)"TheBook.Com" (TM)
http://www.thebook.com/

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




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

2002-10-10 Thread Michael Finney


http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index.html

was very useful.   The documentation worked for me on
Tomcat 4.1.12   Please, realize I had to apply past
knowledge that I have learned from the 3.x documents
to have the configuration right.

BTW, it seems like the isapi_redirect.dll file was
missing from the distribution at
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/bin/
. It may have come with the install and ended up at
D:\tomcat\Tomcat_4_1_12\bin\native and I just did not
see it.  I am not positive.  

In any case, the docs at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html

where it says "A pre-built version of the ISAPI
redirector server plugin, isapi_redirect.dll, is
available under the win32/i386 directory of
jakarta-tomcat-connectors distribution." does not seem
to be real unless I do not understand where the
jakarta-tomcat-connectors distribution is.   I thought
the "jakarta-tomcat-connectors distribution" was at 
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/bin/
with the rest of the stuff.

Michael

--- Mark Eggers <[EMAIL PROTECTED]> wrote:
> Since you have installed Tomcat on your Windows/2000
> box, fire up your web browser and point it at:
> 
> http://localhost:8080/tomcat-docs/jk2/index.html
> 
> The FAQ that comes with the documentation at
> 
> http://localhost:8080/tomcat-docs/jk2/faq.html
> 
> will tell you where to get the files.  This is all
> for
> the 4.1.12 release of Tomcat.
> 
> /mde/
> 
> just my two cents . . . .
> 
> __
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


=
Michael Finney
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for J2EE Platform 
Cofounder of PPJDG
Cofounder of cosAgile - Colorado Springs XP Users Group
If replying to this email address fails, try [EMAIL PROTECTED]

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

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




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

2002-10-10 Thread Carlos

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




RE: Error with multipartParser

2002-10-10 Thread Sam Seaver

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-tomcat-4.1.12/common/lib/servlet.jar:/usr/local/cos/lib/cos.jar:/usr/local/j2sdk1.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 ServletException, IOException{
>   try{
>   setOutput("Demo Parser Upload Bean");
>   MultipartParser mp = new MultipartParser(req, 10*1024*1024);
>   }catch(Exception e){
>   e.printStackTrace():
>   }
> }
>}
>
>the log gave very little, what i cut and pasted was from the log, but with
>the stacktrace this is what it did:
>
>2002-10-10 14:09:29 StandardContext[/sam]: Mapping contextPath='/sam' with
>requestURI='/sam/jguru.jsp' and relativeURI='/jguru.jsp'
>2002-10-10 14:09:29 StandardContext[/sam]:   Trying exact match
>2002-10-10 14:09:29 StandardContext[/sam]:   Tryi

RE: Classpath Issues, Tomcat 4.X and J2EE Interoperabilityfrustrations...

2002-10-10 Thread Craig R. McClanahan



On Thu, 10 Oct 2002, Andrew Gilbert wrote:

> Date: Thu, 10 Oct 2002 16:23:21 -0400
> From: Andrew Gilbert <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: Classpath Issues,
>  Tomcat 4.X and J2EE Interoperability frustrations...
>
> Should I understand this all to say that Tomcat is not at all J2EE 1.3
> compliant?
>

That's a fair one-liner summary.

The more correct answer is that Tomcat complies with all of the mandatory
Servlet 2.3 and JSP 1.2 features, plus *some* of those that are only
required by a complete J2EE platform (i.e. the JNDI naming context, and
availability of a JDBC data source accessed via an API compatible with
J2EE standards).

It has no support for EJB, JMS, ... so it is absolutely not a J2EE
compliant server by itself.  Nobody eer claimed it was (although I can't
help it when people make assumptions).

What makes more confusing is that several people bundle Tomcat into a
complete J2EE-ish thing.  Sun does that with the J2EE RI, for example --
but it's only a J2EE platform when you use all of it.  But Tomcat by
itself is not a J2EE container.

Craig


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




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

2002-10-10 Thread Tushar Medhi

 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

- Original Message -
From: "Mark Eggers" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, October 10, 2002 1:15 PM
Subject: Re: How to integrate Tomcat 4.1.12 with IIS 5 on Win2000


> Since you have installed Tomcat on your Windows/2000
> box, fire up your web browser and point it at:
>
> http://localhost:8080/tomcat-docs/jk2/index.html
>
> The FAQ that comes with the documentation at
>
> http://localhost:8080/tomcat-docs/jk2/faq.html
>
> will tell you where to get the files.  This is all for
> the 4.1.12 release of Tomcat.
>
> /mde/
>
> just my two cents . . . .
>
> __
> 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: 




Re: tomcat4.1.12 failed to deploy context not under webapp directory

2002-10-10 Thread paul miller


I am having the same issue.
It looks as though the "allowLinking" option breaks things.

When I  use the below server.xml  section



The apache_log.-MM-DD.txt shows no errors
ditto on the  catalina_log.-MM-DD.txt

But when I add the allowLinking option...




I see the below error
2002-10-10 16:11:34 ContextConfig[/foo] Exception processing JAR at resource
path /WEB-INF/lib/mm.mysql-2.0.14-bin.jar

I using tomcat4-4.1.12-full.1jpp installed via rpm
thanks

paul

--- "Liu, Xiaoyan" <[EMAIL PROTECTED]> wrote:
> Hi, all,
> 
> I'm upgrading from 4.1.9 to 4.1.12 and noticed that a previously working
> application
> is not successfully loaded. It fails at the part of scanning tld files.
> 
> The context is defined in server.xml as below. THis context does not live
> under
> CATALINA_HOME/webapp, and it has resources(jsp pages) symlinked under it.
> 
>  docBase="/home/xliu/JSPApplication/pages" 
>  crossContext="false"
>  debug="3" 
>  reloadable="true" > 
>  allowLinking="true" docBase="/home/xliu/JSPApplication/pages" />
> 
> 
> 
> The log is attached.  Is this a bug or rather some changes involving
> security?
> 
> thanks for your help.
> 
> 
> xliu
> capitalthinking.com
> 


=
Paul N Miller
[EMAIL PROTECTED]



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

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




RE: Classpath Issues, Tomcat 4.X and J2EE Interoperability frustrations...

2002-10-10 Thread Andrew Gilbert

Should I understand this all to say that Tomcat is not at all J2EE 1.3 compliant?

Section 6.1.2 states that a compliant web container supports EJB client API's!

Section 6.4 states that a container that supports the EJB client API's must also 
support interoperability requirements.

Section 6.11 states a container must support JAXP, including one SAX2 parser, one DOM 
2 parser and one transformer.

Figure 2.1 Strongly implies that our architectural assumption (web containter talking 
to EJB container) is a valid one.

I still vote for quite confusing and somewhat misleading


> -Original Message-
> From: Andrew Gilbert 
> Sent: Thursday, October 10, 2002 3:39 PM
> To: Tomcat Users List
> Cc: 'Craig R. McClanahan'; 'Jean-Francois Arcand'; 'Shapira, 
> Yoav'; Tim
> Segall
> Subject: RE: Classpath Issues, Tomcat 4.X and J2EE Interoperability
> frustrations...
> 
> 
> Craig,
> 
> I was slowly coming to the conclusion that approaches 2 and 3 
> are superior.
> 
> Having said that, I am still somewhat bothered. It is easy to 
> (naively?) adopt approach 1. The two prior responses seemed 
> to indicate this approach was okay. Yoav is using it. And 
> there is currently another active thread on this list about 
> using Tomcat to talk with JBoss. There is certainly strong 
> natural motivation to want to deploy servlet container(s) 
> toward the edge talking to app server(s) at the core. Seems 
> odd to assert I should only talk to my distributed remote 
> object server by first putting myself inside another 
> distributed remote object server.
> 
> Anyway, I appreciate your response. Thanks.
> 
> Andy
> 
> 
> > -Original Message-
> > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, October 10, 2002 12:56 PM
> > To: Tomcat Users List
> > Subject: RE: Classpath Issues, Tomcat 4.X and J2EE Interoperability
> > frustrations...
> > 
> > 
> > 
> > 
> > On Thu, 10 Oct 2002, Andrew Gilbert wrote:
> > 
> > > Date: Thu, 10 Oct 2002 11:42:05 -0400
> > > From: Andrew Gilbert <[EMAIL PROTECTED]>
> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > To: Tomcat Users List <[EMAIL PROTECTED]>
> > > Subject: RE: Classpath Issues,
> > >  Tomcat 4.X and J2EE Interoperability frustrations...
> > >
> > > Yoav and JeanFrancios,
> > >
> > > Thank you both for your replies. They were helpful and 
> > somewhat reassuring.
> > >
> > > At the general level:
> > >
> > > We are aware that Tomcat is not a full J2EE container. 
> But servlets
> > > calling EJB's is bread and butter stuff.
> > 
> > Only for an EJB server :-).
> > 
> > Tomcat standalone has zero facilities to support this.  For 
> > example, it
> > basically ignores  entries in your deployment descriptor.
> > 
> > There are three feasible approaches:
> > 
> > * Use a non-standard JNDI initial context, configured in a way that
> >   will talk to your particular EJB server.  The details of this are
> >   very EJB-container-specific (the TOMCAT-USER archives 
> have comments
> >   from people who've been able to do it from Tomcat to the J2EE RI),
> >   and is not guaranteed to be available.  You're also going to have
> >   to piece together the right classes for your particular app server
> >   in order to make the right stuff available.
> > 
> > * Use a EJB+Servlet container that has Tomcat integrated in (such
> >   as the J2EE RI or JBoss).  The container provider has solved all
> >   these problems for you already.
> > 
> > * Use the servlet container provided by your EJB container vendor
> >   (sounds like WebLogic in your case), which also has solved all
> >   these problems.
> > 
> > Anything else is way out on the fringes of technical fragility, and
> > probably relies on internal APIs that are subject to change.  
> > That's why
> > you have so many problems in each upgrade cycle -- you're 
> trying to do
> > something very much non-mainstream.
> > 
> > Craig McClanahan
> > 
> > 
> 

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




RE: Error with multipartParser

2002-10-10 Thread Rajiv Ramanasankaran

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 ServletException, IOException{
try{
setOutput("Demo Parser Upload Bean");
MultipartParser mp = new MultipartParser(req, 10*1024*1024);
}catch(Exception e){
e.printStackTrace():
}
}
}

the log gave very little, what i cut and pasted was from the log, but with
the stacktrace this is what it did:

2002-10-10 14:09:29 StandardContext[/sam]: Mapping contextPath='/sam' with
requestURI='/sam/jguru.jsp' and relativeURI='/jguru.jsp'
2002-10-10 14:09:29 StandardContext[/sam]:   Trying exact match
2002-10-10 14:09:29 StandardContext[/sam]:   Trying prefix match
2002-10-10 14:09:29 StandardContext[/sam]:   Trying extension match
2002-10-10 14:09:29 StandardContext[/sam]:  Mapped to servlet 'jsp' with
servlet path '/jguru.jsp' and path info 'null' and update=true
2002-10-10 14:09:33 StandardContext[/sam]: Mapping contextPath='/sam' with
requestURI='/sam/jguru.jsp' and relativeURI='/jguru.jsp'
2002-10-10 14:09:33 StandardContext[/sam]:   Trying exact match
2002-10-10 14:09:33 StandardContext[/sam]:   Trying prefix match
2002-10-10 14:09:33 StandardContext[/sam]:   Trying extension match
2002-10-10 14:09:33 StandardContext[/sam]:  Mapped to servlet 'jsp' with
servlet path '/jguru.jsp' and path info 'null' and update=true
2002-10-10 14:09:33 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException:
com/oreilly/servlet/multipart/MultipartParser
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
  

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

2002-10-10 Thread Mark Eggers

Since you have installed Tomcat on your Windows/2000
box, fire up your web browser and point it at:

http://localhost:8080/tomcat-docs/jk2/index.html

The FAQ that comes with the documentation at

http://localhost:8080/tomcat-docs/jk2/faq.html

will tell you where to get the files.  This is all for
the 4.1.12 release of Tomcat.

/mde/

just my two cents . . . .

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

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




tomcat 4.1.12/blackdown 1.3.1 jdk dies periodically

2002-10-10 Thread John Murtari

Hello,

We are running tomcat using the blackdown port of the 1.3.1 JDK on a
couple servers.  One machine is running with green threads, the other 
with native threads.

We have noticed that the green threads tomcat will die unexpectantly 
without logging a thing.  I cannot get the green threads to run for
more than a few hours without it disappearing.  

The native threads seem to be more stable, but I have not been able to
gauge exactly how much more stable.  I was able to start tomcat with
native threads yesterday afternoon and it ran until this morning
(16-18 hours) when the machine was rebooted.  It was restarted and has
been running since without a problem (6 hours).  

Has anyone experienced anything similiar??


-- 
  John
___
John Murtari  Software Workshop Inc.
[EMAIL PROTECTED] 315.695.1301(x-211)"TheBook.Com" (TM)
http://www.thebook.com/

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




How to integrate Tomcat 4.1.12 with IIS 5 on Win2000

2002-10-10 Thread Tushar Medhi

Hello All,

I have Java(TM) 2 SDK, Standard Edition Version 1.4.0 installed on my PC. I
installed Tomcat 4.1.12. I am trying to integrate the Tomcat with IIS 5
installed on my PC having W2K. I have found the articles that explain how to
integrate the Tomcat 3.3 and IIS. But I noticed that the files that are used
to integrate Tomcat 3.3 do not come with Tomcat 4.1.12. I did not find any
article that describes how to integrate Tomcat 4.1.12 with IIS 5. I am new
to world of JSP and Tomcat. I was wondering if anyone out there can give me
show me how to integrate Tomcat 4.1.12 with IIS 5.

Thanx in advance.

Tam



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




RE: Reloading w/ Manager on cluster?

2002-10-10 Thread Ben Ricker

The script is rather rough right now, but it is simple. I use ssh to
call the tomcat startup script like so:

ssh hostname /etc/init.d/tomcat stop

Here is the contents of the startup script. I have two Tomcat
directories, /usr/local/tomcat1 and /usr/local/tomcat2. I have them
sharing a centralized webapps directory in /usr/local/webapps. I run the
tomcat processes with an unpriveledged use, 'tomcat'.

HTH,

Ben Ricker

-Tomcat Startup Script---

#!/bin/sh
#
# tomcatStarts the Tomcat server
#
# Author:   All kinds of people
#
# chkconfig: 345 50 50
#
# processname: httpd
# pidfile: /usr/local/apache/logs/httpd.pid

# Begin /etc/init.d/apache

case "$1" in
  start)
echo -n "Starting Tomcat..."
/bin/su tomcat -c "/usr/local/tomcat1/bin/startup.sh"
/bin/su tomcat -c "/usr/local/tomcat2/bin/startup.sh"
;;

  stop)
echo -n "Stopping Tomcat..."
/bin/su tomcat -c "/usr/local/tomcat1/bin/shutdown.sh"
/bin/su tomcat -c "/usr/local/tomcat2/bin/shutdown.sh"
;;

  restart)
echo -n "Restarting Tomcat..."
/bin/su tomcat -c "/usr/local/tomcat1/bin/shutdown.sh"
/bin/su tomcat -c "/usr/local/tomcat2/bin/shutdown.sh"
sleep 5
/bin/su tomcat -c "/usr/local/tomcat1/bin/startup.sh"
/bin/su tomcat -c "/usr/local/tomcat2/bin/startup.sh"
;;

  *)
echo "Usage: $0 {start|stop|restart}"
;;

esac

# End /etc/init.d/tomcat


On Thu, 2002-10-10 at 13:52, Michael Schulz wrote:
> I am facing a similar issue in terms of updating our tomcat servers in the
> cluster.
> 
> I was thinking about doing a similar thing...using the http connector (which
> is behind a firewall and not accessible to the outside world) on each tomcat
> server to communicate with the tomcat manager app
> (http://tomcat1:8080/manager/reload?path=/mywebapp).  I would think it would
> be easy enough to write a script that uses Lynx to invoke this same URL on
> all four servers.  I don't think it is a problem to be restarting tomcat
> frequently, at least I have not seen a problem and we've done this quite a
> bit in our QA environment.
> 
> Ben, may I see the script that you are currently using to restart tomcat on
> the multiple servers?  Also, have you done any load testing? If so, what
> sort of load is your system able to support?
> 
> -Mike Schulz
> 
> 
> -Original Message-
> From: Ben Ricker [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 10, 2002 1:32 PM
> To: [EMAIL PROTECTED]
> Subject: Reloading w/ Manager on cluster?
> 
> 
> I have a setup with 2 APache servers (1.3.27 on Redhat 7.3) talking to 4
> tomcats clustered across two SOlaris 8 boxes running Tomcat 4.0.5. We
> have a load balancer across the web servers and, of course, mod_jk 1.2.0
> doing the load balancing across the Tomcats.
> 
> We have a QA environment where I want the abilty to reload the apps
> through the manager application. We cannot do it through the Apache load
> balancer because you cannot quarantee what Tomcat you are going to talk
> to at any given request.
> 
> I thought of having Tomcat use its embedded web server on 8080 and 8081
> on each Tomcat server and have the developers call those for reloading,
> but they would have to do that 4 times for every reload. Plus, if we
> scale to a bigger cluster, the problem becomes worse.
> 
> I do have a script that stops and restarts all of the tomcats from a
> central location, but is there any danger to be restarting Tomcat
> frequently? Has anyone worked around a cluster for the management app?
> 
> Thanks,
> 
> Ben
> 
> --
> Ben Ricker <[EMAIL PROTECTED]>
> Wellinx.com
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> 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: Error with multipartParser

2002-10-10 Thread Rajiv Ramanasankaran

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 ServletException, IOException{
try{
setOutput("Demo Parser Upload Bean");
MultipartParser mp = new MultipartParser(req, 10*1024*1024);
}catch(Exception e){
e.printStackTrace():
}
}
}

the log gave very little, what i cut and pasted was from the log, but with
the stacktrace this is what it did:

2002-10-10 14:09:29 StandardContext[/sam]: Mapping contextPath='/sam' with
requestURI='/sam/jguru.jsp' and relativeURI='/jguru.jsp'
2002-10-10 14:09:29 StandardContext[/sam]:   Trying exact match
2002-10-10 14:09:29 StandardContext[/sam]:   Trying prefix match
2002-10-10 14:09:29 StandardContext[/sam]:   Trying extension match
2002-10-10 14:09:29 StandardContext[/sam]:  Mapped to servlet 'jsp' with
servlet path '/jguru.jsp' and path info 'null' and update=true
2002-10-10 14:09:33 StandardContext[/sam]: Mapping contextPath='/sam' with
requestURI='/sam/jguru.jsp' and relativeURI='/jguru.jsp'
2002-10-10 14:09:33 StandardContext[/sam]:   Trying exact match
2002-10-10 14:09:33 StandardContext[/sam]:   Trying prefix match
2002-10-10 14:09:33 StandardContext[/sam]:   Trying extension match
2002-10-10 14:09:33 StandardContext[/sam]:  Mapped to servlet 'jsp' with
servlet path '/jguru.jsp' and path info 'null' and update=true
2002-10-10 14:09:33 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException:
com/oreilly/servlet/multipart/MultipartParser
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache

manager webapp - reload request

2002-10-10 Thread Michael Schulz

If I use the Tomcat 4.x manager webapp to issue a reload request:

http://localhost:8080/manager/reload?path=/mywebapp

what happens to the servlet context for any servlets running in the
webapp -- is it reinitialized?

Also, what happens to session objects? What if the session data includes
instances of objects which are reloaded in the reload request for mywebapp?

Mike Schulz



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




Re: default charset in contentType?

2002-10-10 Thread Craig R. McClanahan



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: 




RE: Classpath Issues, Tomcat 4.X and J2EE Interoperability frustrations...

2002-10-10 Thread Andrew Gilbert

Craig,

I was slowly coming to the conclusion that approaches 2 and 3 are superior.

Having said that, I am still somewhat bothered. It is easy to (naively?) adopt 
approach 1. The two prior responses seemed to indicate this approach was okay. Yoav is 
using it. And there is currently another active thread on this list about using Tomcat 
to talk with JBoss. There is certainly strong natural motivation to want to deploy 
servlet container(s) toward the edge talking to app server(s) at the core. Seems odd 
to assert I should only talk to my distributed remote object server by first putting 
myself inside another distributed remote object server.

Anyway, I appreciate your response. Thanks.

Andy


> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 10, 2002 12:56 PM
> To: Tomcat Users List
> Subject: RE: Classpath Issues, Tomcat 4.X and J2EE Interoperability
> frustrations...
> 
> 
> 
> 
> On Thu, 10 Oct 2002, Andrew Gilbert wrote:
> 
> > Date: Thu, 10 Oct 2002 11:42:05 -0400
> > From: Andrew Gilbert <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: RE: Classpath Issues,
> >  Tomcat 4.X and J2EE Interoperability frustrations...
> >
> > Yoav and JeanFrancios,
> >
> > Thank you both for your replies. They were helpful and 
> somewhat reassuring.
> >
> > At the general level:
> >
> > We are aware that Tomcat is not a full J2EE container. But servlets
> > calling EJB's is bread and butter stuff.
> 
> Only for an EJB server :-).
> 
> Tomcat standalone has zero facilities to support this.  For 
> example, it
> basically ignores  entries in your deployment descriptor.
> 
> There are three feasible approaches:
> 
> * Use a non-standard JNDI initial context, configured in a way that
>   will talk to your particular EJB server.  The details of this are
>   very EJB-container-specific (the TOMCAT-USER archives have comments
>   from people who've been able to do it from Tomcat to the J2EE RI),
>   and is not guaranteed to be available.  You're also going to have
>   to piece together the right classes for your particular app server
>   in order to make the right stuff available.
> 
> * Use a EJB+Servlet container that has Tomcat integrated in (such
>   as the J2EE RI or JBoss).  The container provider has solved all
>   these problems for you already.
> 
> * Use the servlet container provided by your EJB container vendor
>   (sounds like WebLogic in your case), which also has solved all
>   these problems.
> 
> Anything else is way out on the fringes of technical fragility, and
> probably relies on internal APIs that are subject to change.  
> That's why
> you have so many problems in each upgrade cycle -- you're trying to do
> something very much non-mainstream.
> 
> Craig McClanahan
> 
> 

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




default charset in contentType?

2002-10-10 Thread Randy George


Is there a way to turn off the default charset appended to contentType by
Jasper?

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: 




RE: Error with multipartParser

2002-10-10 Thread Sam Seaver

that's another thing, where DOES the stack trace go? should i direct it to a 
file?
any hints?

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: Wed, 9 Oct 2002 23:03:24 -0500
>
>Can you give the full exception stacktrace?? That might help us figure it
>out. try e.printStackTrace() instead of creating the printwrite and 
>printing
>to standard error. Send the tomcat log files too.
>Rajiv
>
> > -Original Message-
> > From: Sam Seaver [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 09, 2002 2:09 PM
> > To: [EMAIL PROTECTED]
> > Subject: Error with multipartParser
> >
> >
> > I cannot work this out as I get no more in my error messages
> > despite trying
> > to use the usual ways of debugging the bean.  Basically I'm using a bean
> > that extends HttpServlet and uses Hunter's MultipartParser, and the 
>error
> > ALWAYS occurs when I try to create an instance of the parser...
> >
> > Error:
> >
> > root cause
> >
> > javax.servlet.ServletException:
> > com/oreilly/servlet/multipart/MultipartParser
> > at
> > org.apache.jasper.runtime.PageContextImpl.handlePageException(Page
> > ContextImpl.java:497)
> >
> > Code:
> >
> > 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 ServletException, IOException{
> > setOutput("Demo Parser Upload Bean");
> > res.setContentType("text/html");
> > ServletOutputStream out = res.getOutputStream();
> >
> > try{
> > MultipartParser mpParser = new MultipartParser(req,
> > 10*1024*1024);
> > }catch (Exception e){
> > StringWriter sw = new StringWriter();
> > PrintWriter pw = new PrintWriter(sw);
> > e.printStackTrace(pw);
> >
> > }
> >
> >
> >
> > }
> > }
> >
> >
> >
> > "JC Rules"
> >
> > _
> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> >
> >
> > --
> > 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: 
>


"JC Rules"

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


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




tomcat4.1.12 failed to deploy context not under webapp directory

2002-10-10 Thread Liu, Xiaoyan
Title: tomcat4.1.12 failed to deploy context not under webapp directory





Here is the log <> 




2002-10-10 15:06:14 StandardContext[/cmbs]: Starting
2002-10-10 15:06:14 StandardContext[/cmbs]: Processing start(), current available=false
2002-10-10 15:06:14 StandardContext[/cmbs]: Configuring non-privileged default Loader
2002-10-10 15:06:14 StandardContext[/cmbs]: Configuring default Manager
2002-10-10 15:06:14 StandardContext[/cmbs]: Processing standard container startup
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploying class repositories to work 
directory 
/home/xliu/Apache/jakarta-tomcat-4.1.12-src/build/work/Standalone/localhost/cmbs
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/ACJRuntime.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/ACJRuntime.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/F1J8Swing.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/F1J8Swing.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/JREngine.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/JREngine.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/activation.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/activation.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/admin.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/admin.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/argus.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/argus.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/bsh.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/bsh.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/build.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/build.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/canetoad.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/canetoad.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/cmbs.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/cmbs.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/commons-logging.jar 
to /home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/commons-logging.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/core.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/core.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/dcs.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/dcs.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/dda.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/dda.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/ddi.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/ddi.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/dms.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/dms.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/hsqldb.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/hsqldb.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/interop.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/interop.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/jaxb-rt-1.0-ea.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/jaxb-rt-1.0-ea.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/jaxb-xjc-1.0-ea.jar 
to /home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/jaxb-xjc-1.0-ea.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/jta-spec1_0_1.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/jta-spec1_0_1.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/junit.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/junit.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/lf5.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/lf5.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/log4j.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/log4j.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/logging.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/logging.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/mail.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/mail.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/metadata.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/metadata.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/oracle.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/oracle.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/poolman.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/poolman.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/recalcs.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/recalcs.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy JAR /WEB-INF/lib/report.jar to 
/home/xliu/JSPBluewire/cmbs/pages/WEB-INF/lib/report.jar
2002-10-10 15:06:14 WebappLoader[/cmbs]: Deploy J

tomcat4.1.12 failed to deploy context not under webapp directory

2002-10-10 Thread Liu, Xiaoyan

Hi, all,

I'm upgrading from 4.1.9 to 4.1.12 and noticed that a previously working
application
is not successfully loaded. It fails at the part of scanning tld files.

The context is defined in server.xml as below. THis context does not live
under
CATALINA_HOME/webapp, and it has resources(jsp pages) symlinked under it.


 



The log is attached.  Is this a bug or rather some changes involving
security?

thanks for your help.


xliu
capitalthinking.com



RE: Connecting from Tomcat box to JBoss box?

2002-10-10 Thread Simpson, Mike W

try this in your startup.bat:


set
CATALINA_OPTS=-Djava.naming.factory.initial=org.jnp.interfaces.NamingContext
Factory -Djava.naming.provider.url=jnp://localhost:1099
-Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
-Dconfigure_logging=false

call %CATALINA_HOME%\bin\startup.bat -nonaming



-Original Message-
From: Andrew Gilbert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 12:55 PM
To: Mitchell, Edmund; Tomcat Users List
Subject: RE: Connecting from Tomcat box to JBoss box?


Edmund,

See Craig's response to my thread "RE: Classpath Issues, Tomcat 4.X and J2EE
Interoperability frustrations..."

You might want to go the JBoss to JBoss route. In fact I would strongly
recommend it.

Andy

> -Original Message-
> From: Mitchell, Edmund [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 10, 2002 9:11 AM
> To: 'Tomcat Users List'
> Subject: Connecting from Tomcat box to JBoss box?
> 
> 
> Hello all,
> 
> I've got my Apache box talking happily to my Tomcat box, 
> thanks to John
> Turner and Pascal Forget's great webpages, but I can't seem to get the
> Tomcat box to talk to the JBoss box.
> 
> Does anyone have any "how-to" type info on how to get this 
> connection to
> happen?  I've tried everything in both the JBoss and ejb docs 
> I've read, to
> no avail.
>   
> In the post below, Anthony Geoghegan suggests that turning 
> off the Tomcat
> JNDI server will work, but I've been up and down the Tomcat 
> JNDI docs, and
> seen nothing that looks like an off switch.   Can anyone shed 
> some light on
> that?
> 
> Thanks for any help
> 
> Edmund
> 
> .
> 
> > -Original Message-
> > From: Anthony Geoghegan [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 08, 2002 1:20 PM
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: Re: Apache 2, Tomcat, & JBoss configuration
> > You have to use remote interfaces and turn off the TOMCAT 
> > JNDI server to use
> > the JBOSS JNDI server, otherwise it's fine.
> 
> > - Original Message -
> > From: "Jim Haggerty" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 08, 2002 5:31 PM
> > Subject: Apache 2, Tomcat, & JBoss configuration
> 
> > > Current versions:
> > > FreeBSD 4.6.2-RELEASE
> > > Apache 2.0.42 (although FreeBSD port now has 2.0.43)
> > > Tomcat 4.0.5
> > > JBoss 3.0.0 (NB: This installation is the package WITHOUT Tomcat)
> 
> > > Apache and Tomcat are getting along fine and I can access 
> > deployed webapps
> > > through the warp connection (Is JK2 preferred over warp?) 
> > on both port 80
> > > and 8080.
> > >
> > > JBoss is alive and well on port 8082.
> > >
> > > However, virtually ALL the documentation I have found 
> > regarding connecting
> > > the three refers to the JBoss+Tomcat package (modify the 
> > server.xml in
> > > ${JBOSS_HOME}/catalina).  Does anyone have an example of 
> connecting
> > Apache -
> > > Tomcat - JBoss WITHOUT JBoss+Tomcat?
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: nt service source code

2002-10-10 Thread Jean-Francois Arcand



Ilya Khandamirov wrote:

>Well, i've checked the "jakarta-tomcat-4.0" module out, but i cannot
>find it there. For example, the jakarta-tomcat-4.0/service directory
>structure contains no files. I think, i'm missing something very
>obvious. Could you please point out what?
>
The classes you need to look at are under 
org.apache.catalina.startup.BootstrapService and 
org.apache.catalina.startup.CatalinaService.

-- Jeanfrancois

>
>
>Regards,
>Ilya
>
>
>-Original Message-
>From: Jean-Francois Arcand [mailto:[EMAIL PROTECTED]] 
>Sent: Donnerstag, 10. Oktober 2002 18:34
>To: Tomcat Users List
>Subject: Re: nt service source code
>
>
>http://jakarta.apache.org/site/cvsindex.html
>
>-- Jeanfrancois
>
>Ilya Khandamirov wrote:
>
>  
>
>>Hi,
>>
>>Is the source code of Tomcat's Windows NT/2000/XP Service open? I 
>>cannot find something i can start playing with. I'd be thankful for any
>>
>>
>
>  
>
>>kind of Information/Links.
>>
>>
>>Regards,
>>Ilya
>>
>>
>>
>>
>>
>>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>  
>



Servlets not working with tomcat 4.1.12(4.0.4 error)

2002-10-10 Thread Ashish Kulkarni

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: 




RE: Error with multipartParser

2002-10-10 Thread Sam Seaver

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 ServletException, IOException{
try{
setOutput("Demo Parser Upload Bean");
MultipartParser mp = new MultipartParser(req, 10*1024*1024);
}catch(Exception e){
e.printStackTrace():
}
}
}

the log gave very little, what i cut and pasted was from the log, but with 
the stacktrace this is what it did:

2002-10-10 14:09:29 StandardContext[/sam]: Mapping contextPath='/sam' with 
requestURI='/sam/jguru.jsp' and relativeURI='/jguru.jsp'
2002-10-10 14:09:29 StandardContext[/sam]:   Trying exact match
2002-10-10 14:09:29 StandardContext[/sam]:   Trying prefix match
2002-10-10 14:09:29 StandardContext[/sam]:   Trying extension match
2002-10-10 14:09:29 StandardContext[/sam]:  Mapped to servlet 'jsp' with 
servlet path '/jguru.jsp' and path info 'null' and update=true
2002-10-10 14:09:33 StandardContext[/sam]: Mapping contextPath='/sam' with 
requestURI='/sam/jguru.jsp' and relativeURI='/jguru.jsp'
2002-10-10 14:09:33 StandardContext[/sam]:   Trying exact match
2002-10-10 14:09:33 StandardContext[/sam]:   Trying prefix match
2002-10-10 14:09:33 StandardContext[/sam]:   Trying extension match
2002-10-10 14:09:33 StandardContext[/sam]:  Mapped to servlet 'jsp' with 
servlet path '/jguru.jsp' and path info 'null' and update=true
2002-10-10 14:09:33 StandardWrapperValve[jsp]: Servlet.service() for servlet 
jsp threw exception
org.apache.jasper.JasperException: 
com/oreilly/servlet/multipart/MultipartParser
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveCont

RE: nt service source code

2002-10-10 Thread Ilya Khandamirov

Well, i've checked the "jakarta-tomcat-4.0" module out, but i cannot
find it there. For example, the jakarta-tomcat-4.0/service directory
structure contains no files. I think, i'm missing something very
obvious. Could you please point out what?


Regards,
Ilya


-Original Message-
From: Jean-Francois Arcand [mailto:[EMAIL PROTECTED]] 
Sent: Donnerstag, 10. Oktober 2002 18:34
To: Tomcat Users List
Subject: Re: nt service source code


http://jakarta.apache.org/site/cvsindex.html

-- Jeanfrancois

Ilya Khandamirov wrote:

>Hi,
>
>Is the source code of Tomcat's Windows NT/2000/XP Service open? I 
>cannot find something i can start playing with. I'd be thankful for any

>kind of Information/Links.
>
>
>Regards,
>Ilya
>
>
>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Connecting from Tomcat box to JBoss box?

2002-10-10 Thread Andrew Gilbert

Edmund,

See Craig's response to my thread "RE: Classpath Issues, Tomcat 4.X and J2EE 
Interoperability frustrations..."

You might want to go the JBoss to JBoss route. In fact I would strongly recommend it.

Andy

> -Original Message-
> From: Mitchell, Edmund [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 10, 2002 9:11 AM
> To: 'Tomcat Users List'
> Subject: Connecting from Tomcat box to JBoss box?
> 
> 
> Hello all,
> 
> I've got my Apache box talking happily to my Tomcat box, 
> thanks to John
> Turner and Pascal Forget's great webpages, but I can't seem to get the
> Tomcat box to talk to the JBoss box.
> 
> Does anyone have any "how-to" type info on how to get this 
> connection to
> happen?  I've tried everything in both the JBoss and ejb docs 
> I've read, to
> no avail.
>   
> In the post below, Anthony Geoghegan suggests that turning 
> off the Tomcat
> JNDI server will work, but I've been up and down the Tomcat 
> JNDI docs, and
> seen nothing that looks like an off switch.   Can anyone shed 
> some light on
> that?
> 
> Thanks for any help
> 
> Edmund
> 
> .
> 
> > -Original Message-
> > From: Anthony Geoghegan [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 08, 2002 1:20 PM
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: Re: Apache 2, Tomcat, & JBoss configuration
> > You have to use remote interfaces and turn off the TOMCAT 
> > JNDI server to use
> > the JBOSS JNDI server, otherwise it's fine.
> 
> > - Original Message -
> > From: "Jim Haggerty" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 08, 2002 5:31 PM
> > Subject: Apache 2, Tomcat, & JBoss configuration
> 
> > > Current versions:
> > > FreeBSD 4.6.2-RELEASE
> > > Apache 2.0.42 (although FreeBSD port now has 2.0.43)
> > > Tomcat 4.0.5
> > > JBoss 3.0.0 (NB: This installation is the package WITHOUT Tomcat)
> 
> > > Apache and Tomcat are getting along fine and I can access 
> > deployed webapps
> > > through the warp connection (Is JK2 preferred over warp?) 
> > on both port 80
> > > and 8080.
> > >
> > > JBoss is alive and well on port 8082.
> > >
> > > However, virtually ALL the documentation I have found 
> > regarding connecting
> > > the three refers to the JBoss+Tomcat package (modify the 
> > server.xml in
> > > ${JBOSS_HOME}/catalina).  Does anyone have an example of 
> connecting
> > Apache -
> > > Tomcat - JBoss WITHOUT JBoss+Tomcat?
> 
> 

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




RE: Reloading w/ Manager on cluster?

2002-10-10 Thread Michael Schulz

I am facing a similar issue in terms of updating our tomcat servers in the
cluster.

I was thinking about doing a similar thing...using the http connector (which
is behind a firewall and not accessible to the outside world) on each tomcat
server to communicate with the tomcat manager app
(http://tomcat1:8080/manager/reload?path=/mywebapp).  I would think it would
be easy enough to write a script that uses Lynx to invoke this same URL on
all four servers.  I don't think it is a problem to be restarting tomcat
frequently, at least I have not seen a problem and we've done this quite a
bit in our QA environment.

Ben, may I see the script that you are currently using to restart tomcat on
the multiple servers?  Also, have you done any load testing? If so, what
sort of load is your system able to support?

-Mike Schulz


-Original Message-
From: Ben Ricker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 1:32 PM
To: [EMAIL PROTECTED]
Subject: Reloading w/ Manager on cluster?


I have a setup with 2 APache servers (1.3.27 on Redhat 7.3) talking to 4
tomcats clustered across two SOlaris 8 boxes running Tomcat 4.0.5. We
have a load balancer across the web servers and, of course, mod_jk 1.2.0
doing the load balancing across the Tomcats.

We have a QA environment where I want the abilty to reload the apps
through the manager application. We cannot do it through the Apache load
balancer because you cannot quarantee what Tomcat you are going to talk
to at any given request.

I thought of having Tomcat use its embedded web server on 8080 and 8081
on each Tomcat server and have the developers call those for reloading,
but they would have to do that 4 times for every reload. Plus, if we
scale to a bigger cluster, the problem becomes worse.

I do have a script that stops and restarts all of the tomcats from a
central location, but is there any danger to be restarting Tomcat
frequently? Has anyone worked around a cluster for the management app?

Thanks,

Ben

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


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: Possible to disable session persistence?

2002-10-10 Thread Justin Ruthenbeck


He's refering to the fact that Tomcat persists sessions before redeploying 
a context (either when requested explicitly or if you've got 
reloadable=true set).  If anyone knows how to do this, I'd appreciate the 
tip ... we have non-serializable objects (they are not serializable by 
design) held in our sessions which obviously presents problems.  Would turn 
it off if I knew how to...

Thanks,
justin

At 11:16 AM 10/10/2002, Padhu Vinirs wrote:

>Are you referring to creating a new session for every call ? If so, only 
>way is to set timeout to 1 ( 1 minute !!! ) or call invalidate in every 
>servlet/jsp.
>
>-- padhu
>
>
>Jonathan Eric Miller wrote:
>
>>Does anyone know if it is possible to turn off session persistence? I don't
>>have an immediate need to do so, but, I was thinking that it might be a nice
>>option to have while testing an application if you want to make sure all the
>>state is getting cleared out. You could do that by just opening a new Web
>>browser, so, it's not much of an issue. I was just curious.
>>
>>Jon
>>
>>
>>--
>>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: 




Cannot allocate servlet instance for path

2002-10-10 Thread LFigueiredo

Hi,

I hope someone can help me to solve this ( the previous threads in the 
list did not helped me at all ).

I am using win2k + Tomcat 4.1.12
I enabled the invoker servlet and i am using 
"\webapps\ROOT\WEB-INF\classes" to publish my Servlets ( Generated with 
Genexus ).

I am calling this url ( http://leonardo/servlet/hlogin ) and the error i 
get is this one:
P Status 500 - 
type Exception report
message 
description The server encountered an internal error () that prevented it from 
fulfilling this request.
exception 
javax.servlet.ServletException: Cannot allocate servlet instance for path 
/servlet/hlogin
 at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:427)
 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)


Thanks in advance,

Leonardo
Abaco TI - Brazil


RE: Cannot load JDBC driver class 'null'

2002-10-10 Thread Ulrik Andersen

Ej,

Thanks for your help. The changes you suggested worked :-)

Ulrik

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 10. oktober 2002 14:44
To: Tomcat Users List
Subject: Re: Cannot load JDBC driver class 'null'



Ulrik:

If you are going to use the Global Resources, there are a few changes I
have noted with
the Tomcat 4.1.x.

  You no longer have to  put a ResourceRef tag in the web.xml file
  You need to put a ResourceLink tag within the Context tag of the
application in the server.xml.

Also, if you are putting the database resources in the global resources,
you do not need
to identify the factory to use since Tomcat will automatically default to
the Apache
Commons DBCP.

If you place the databse resource inside the context definition, then you
will have to
define the factory to use if you want DBCP and will have to place a
ResourceRef Tag
in the web.xml

Hope this helps,
Ej

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




Problem with updated file!!!

2002-10-10 Thread Mauricio Tia Ni Gong Lin

Hi all,

I am using tomcat in my company. I have a JSP file that references a
Client JavaScript file. When I update the JavaScript file, the JSP file
cannot
execute a newer JavaScript file, instead of this it gives me the older one.

The code that references the JavaScript file is something like:
 

I discovered when i turn off the proxy configuration in my browser, it
executes the updated JavaScript file. But when i turn on the proxy
configuratrion, it executes the older one. It is so strange, because I
updated the JavaScript file in my webapp directory.

Does anyone can help me?


Mauricio Lin.




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




Re[2]: log4j.jar locked by Tomcat even after remove/undeploy ....

2002-10-10 Thread Jacob Kjome

Hello Charlie,

Well, when I stop/uninstall/undeploy the app from Tomcat using the
manager app, the *only* file that is locked is the log4j jar.  *All*
other libraries including jar files are released.  The question is,
why is only log4j getting locked up.  If I were to take your statement
at face value, I would expect *all* jars to be locked until the server
is shut down.  However, they aren't.  Only log4j has this problem.

I am beginning to suspect that it has something to do with the
commons-logging that Tomcat uses.

Any other ideas?

Jake

Thursday, October 10, 2002, 1:22:09 PM, you wrote:

CC> the jvm has the library loaded, not tomcat. It will not be released until
CC> the jvm(incuding tomcat) is stopped.

CC> Charlie

>> -Original Message-
>> From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, October 09, 2002 11:55 PM
>> To: Tomcat Users List
>> Subject: Fwd: log4j.jar locked by Tomcat even after 
>> remove/undeploy 
>> 
>> 
>> 
>> Hmm... This got no response on the tomcat-dev list.  Does 
>> anyone in the 
>> Tomcat-use list have any clue as to why the log4j jar is 
>> getting locked 
>> even after a Tomcat manager stop/remove/undeploy?
>> 
>> Jake
>> 
>> 
>> >Date: Tue, 08 Oct 2002 00:14:40 -0500
>> >To: [EMAIL PROTECTED]
>> >From: Jacob Kjome <[EMAIL PROTECTED]>
>> >Subject: log4j.jar locked by Tomcat even after  remove/undeploy 
>> >
>> >
>> >Hi Tomcat developers,
>> >
>> >Below is a discussion that has been ongoing on the log4j-dev 
>> list.  We are 
>> >trying to figure out why the log4j jar file is locked after 
>> a webapp is 
>> >removed from Tomcat using the Tomcat manager app.  
>> Basically, all jar 
>> >resources in a webapp are let go after a manager "remove" 
>> except for the 
>> >log4j jar (within WEB-INF/lib).  In order to remove the lock 
>> on the jar, 
>> >Tomcat has to be shut down completely, not just have the webapp 
>> >removed.  We had thought we had found the reason for it (static 
>> >initializers) but that didn't turn out to be reproducible.  
>> At this point, 
>> >we are a bit perplexed.
>> >
>> >Can any Tomcat developers tell us if there are any 
>> classloading issues 
>> >with Tomcat that might cause Tomcat to hold onto a jar file in the 
>> >WEB-INF/lib directory after the app has been removed via the manager 
>> >app?  Could it be commons-logging that is holding onto it?  
>> Any help would 
>> >be appreciated.
>> >
>> >BTW, could cross-post responses to [EMAIL PROTECTED]?
>> >
>> >thanks,
>> >
>> >Jake
>> >
>> >
>> >>Date: Mon, 07 Oct 2002 07:12:30 -0500
>> >>To: "Log4J Developers List" <[EMAIL PROTECTED]>
>> >>From: Jacob Kjome <[EMAIL PROTECTED]>
>> >>Subject: RE: FW: log4j.jar locked by Tomcat even after  
>> remove/undeploy
>> >>
>> >>
>> >>I'll pose this question to the tomcat-user and/or tomcat-dev list 
>> >>sometime today.  Maybe they can help us out on this.
>> >>
>> >>Jake
>> >>
>> >>At 09:39 PM 10/6/2002 -0700, you wrote:
>> >>>I swear, I reproduced this multiple times before I posted 
>> my earlier
>> >>>message.  When I just tried it, the problem did not 
>> happen.  Ack, this is
>> >>>frustrating!
>> >>>
>> >>>What else can we use to attack this problem?  Is there 
>> some way to tell what
>> >>>is active in the JVM that is preventing the jar from being 
>> unloaded?
>> >>>
>> >>>-Mark
>> >>>
>> >>> > -Original Message-
>> >>> > From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
>> >>> > Sent: Saturday, October 05, 2002 6:46 PM
>> >>> > To: [EMAIL PROTECTED]
>> >>> > Subject: Re: FW: log4j.jar locked by Tomcat even after 
>> remove/undeploy
>> >>> > 
>> >>> >
>> >>> >
>> >>> >
>> >>> > Hi Mark,
>> >>> >
>> >>> > I am now subscribed to the log4j-dev list.
>> >>> >
>> >>> > I tested all the scenarios that you described, but I never found
>> >>> > static_test.jar to be locked except for when the 
>> application is installed
>> >>> > (as expected).  When I remove the app, the only thing 
>> that is locked is
>> >>> > log4j-1.2.6.jar.  I can delete everything other than that.
>> >>> >
>> >>> > It is really curious that it locks for you and doesn't for me???
>> >>> > The thing
>> >>> > is in Barracuda, the open source Presentation 
>> Framework, where the
>> >>> > Log4jInit and Log4jApplicationWatch come from, there 
>> are a number
>> >>> > of places
>> >>> > that use static initializers and I find no locking 
>> issues with the
>> >>> > Barracuda libraries.
>> >>> >
>> >>> > Has anyone else reproduced Mark's results?
>> >>> >
>> >>> >
>> >>> >
>> >>> > BTW, mark, when you use Log4jInit, you can just have 
>> the param for the
>> >>> > FileApender look something like this:
>> >>> >
>> >>> > 
>> >>> >
>> >>> > Basically, Log4jInit gerates a system variable based on 
>> the name of the
>> >>> > webapp context.  Here is how it works:
>> >>> >
>> >>> > [name of webapp context].log.home
>> >>> >
>> >>> > So, a webapp at:
>> >>> >
>> >>> > http://localhost:8080/barracuda/
>> >>> >
>> >>> > would create a system variable n

jakarta-servletapi

2002-10-10 Thread Tim Moore

Does anyone know which nightly build of jakarta-servletapi is
distributed with the binary version of Tomcat 4.1.12?

Thanks,
-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863




Reloading w/ Manager on cluster?

2002-10-10 Thread Ben Ricker

I have a setup with 2 APache servers (1.3.27 on Redhat 7.3) talking to 4
tomcats clustered across two SOlaris 8 boxes running Tomcat 4.0.5. We
have a load balancer across the web servers and, of course, mod_jk 1.2.0
doing the load balancing across the Tomcats.

We have a QA environment where I want the abilty to reload the apps
through the manager application. We cannot do it through the Apache load
balancer because you cannot quarantee what Tomcat you are going to talk
to at any given request.

I thought of having Tomcat use its embedded web server on 8080 and 8081
on each Tomcat server and have the developers call those for reloading,
but they would have to do that 4 times for every reload. Plus, if we
scale to a bigger cluster, the problem becomes worse.

I do have a script that stops and restarts all of the tomcats from a
central location, but is there any danger to be restarting Tomcat
frequently? Has anyone worked around a cluster for the management app?

Thanks,

Ben

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


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




RE: log4j.jar locked by Tomcat even after remove/undeploy ....

2002-10-10 Thread Cox, Charlie

the jvm has the library loaded, not tomcat. It will not be released until
the jvm(incuding tomcat) is stopped.

Charlie

> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 09, 2002 11:55 PM
> To: Tomcat Users List
> Subject: Fwd: log4j.jar locked by Tomcat even after 
> remove/undeploy 
> 
> 
> 
> Hmm... This got no response on the tomcat-dev list.  Does 
> anyone in the 
> Tomcat-use list have any clue as to why the log4j jar is 
> getting locked 
> even after a Tomcat manager stop/remove/undeploy?
> 
> Jake
> 
> 
> >Date: Tue, 08 Oct 2002 00:14:40 -0500
> >To: [EMAIL PROTECTED]
> >From: Jacob Kjome <[EMAIL PROTECTED]>
> >Subject: log4j.jar locked by Tomcat even after  remove/undeploy 
> >
> >
> >Hi Tomcat developers,
> >
> >Below is a discussion that has been ongoing on the log4j-dev 
> list.  We are 
> >trying to figure out why the log4j jar file is locked after 
> a webapp is 
> >removed from Tomcat using the Tomcat manager app.  
> Basically, all jar 
> >resources in a webapp are let go after a manager "remove" 
> except for the 
> >log4j jar (within WEB-INF/lib).  In order to remove the lock 
> on the jar, 
> >Tomcat has to be shut down completely, not just have the webapp 
> >removed.  We had thought we had found the reason for it (static 
> >initializers) but that didn't turn out to be reproducible.  
> At this point, 
> >we are a bit perplexed.
> >
> >Can any Tomcat developers tell us if there are any 
> classloading issues 
> >with Tomcat that might cause Tomcat to hold onto a jar file in the 
> >WEB-INF/lib directory after the app has been removed via the manager 
> >app?  Could it be commons-logging that is holding onto it?  
> Any help would 
> >be appreciated.
> >
> >BTW, could cross-post responses to [EMAIL PROTECTED]?
> >
> >thanks,
> >
> >Jake
> >
> >
> >>Date: Mon, 07 Oct 2002 07:12:30 -0500
> >>To: "Log4J Developers List" <[EMAIL PROTECTED]>
> >>From: Jacob Kjome <[EMAIL PROTECTED]>
> >>Subject: RE: FW: log4j.jar locked by Tomcat even after  
> remove/undeploy
> >>
> >>
> >>I'll pose this question to the tomcat-user and/or tomcat-dev list 
> >>sometime today.  Maybe they can help us out on this.
> >>
> >>Jake
> >>
> >>At 09:39 PM 10/6/2002 -0700, you wrote:
> >>>I swear, I reproduced this multiple times before I posted 
> my earlier
> >>>message.  When I just tried it, the problem did not 
> happen.  Ack, this is
> >>>frustrating!
> >>>
> >>>What else can we use to attack this problem?  Is there 
> some way to tell what
> >>>is active in the JVM that is preventing the jar from being 
> unloaded?
> >>>
> >>>-Mark
> >>>
> >>> > -Original Message-
> >>> > From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
> >>> > Sent: Saturday, October 05, 2002 6:46 PM
> >>> > To: [EMAIL PROTECTED]
> >>> > Subject: Re: FW: log4j.jar locked by Tomcat even after 
> remove/undeploy
> >>> > 
> >>> >
> >>> >
> >>> >
> >>> > Hi Mark,
> >>> >
> >>> > I am now subscribed to the log4j-dev list.
> >>> >
> >>> > I tested all the scenarios that you described, but I never found
> >>> > static_test.jar to be locked except for when the 
> application is installed
> >>> > (as expected).  When I remove the app, the only thing 
> that is locked is
> >>> > log4j-1.2.6.jar.  I can delete everything other than that.
> >>> >
> >>> > It is really curious that it locks for you and doesn't for me???
> >>> > The thing
> >>> > is in Barracuda, the open source Presentation 
> Framework, where the
> >>> > Log4jInit and Log4jApplicationWatch come from, there 
> are a number
> >>> > of places
> >>> > that use static initializers and I find no locking 
> issues with the
> >>> > Barracuda libraries.
> >>> >
> >>> > Has anyone else reproduced Mark's results?
> >>> >
> >>> >
> >>> >
> >>> > BTW, mark, when you use Log4jInit, you can just have 
> the param for the
> >>> > FileApender look something like this:
> >>> >
> >>> > 
> >>> >
> >>> > Basically, Log4jInit gerates a system variable based on 
> the name of the
> >>> > webapp context.  Here is how it works:
> >>> >
> >>> > [name of webapp context].log.home
> >>> >
> >>> > So, a webapp at:
> >>> >
> >>> > http://localhost:8080/barracuda/
> >>> >
> >>> > would create a system variable named "barracuda.log.home"
> >>> >
> >>> > A webapp at:
> >>> >
> >>> > http://localhost:8080/myapp/
> >>> >
> >>> > would create a system variable named "myapp.log.home"
> >>> >
> >>> > Just look for the file "main.log" in WEB-INF/logs 
> directory of you
> >>> > webapp.  If the "logs" directory doesn't exist, it will be
> >>> > created.  So, it
> >>> > doesn't matter where your webapp is deployed from as 
> long as it isn't
> >>> > deployed directly from a .war file, you will never have 
> to bother setting
> >>> > the path.  It will be found automatically.
> >>> >
> >>> > If you want to override the path where the log file 
> gets written,
> >>> > just set
> >>> > the "log4j-log-home" parameter for the Log4jInit 
> servlet in the web.xml
> 

RE: AW: Too Many Sessions!

2002-10-10 Thread Cindy Ballreich

At 01:18 PM 10/10/02 -0400, Shapira, Yoav wrote:
>Hi,
>Just a curiosity question: does your session listener keep a count of sessions?  And 
>if so, how does that count compare to the manager webapp's count?

That's an interesting idea. It's pretty easy to see from the logs how many sessions 
are being created and not destroyed. I don't have the manager webapp running right 
now, but I may give that a try. I've been thinking that maybe these aren't "real" 
sessions (otherwise they'd eventually time out, wouldn't they?) and this might be a 
good way to verify that.

Cindy

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




Re: Possible to disable session persistence?

2002-10-10 Thread Padhu Vinirs


Are you referring to creating a new session for every call ? If so, only 
way is to set timeout to 1 ( 1 minute !!! ) or call invalidate in every 
servlet/jsp.

-- padhu


Jonathan Eric Miller wrote:

>Does anyone know if it is possible to turn off session persistence? I don't
>have an immediate need to do so, but, I was thinking that it might be a nice
>option to have while testing an application if you want to make sure all the
>state is getting cleared out. You could do that by just opening a new Web
>browser, so, it's not much of an issue. I was just curious.
>
>Jon
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>



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




Re: AW: Tomcat cluster

2002-10-10 Thread Ricardo de Souza Moura

Thanks for all !!


>From: "Ralph Einfeldt" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: AW: Tomcat cluster
>Date: Thu, 10 Oct 2002 15:57:02 +0200
>
>Here is some brain food:
>
>http://www.ubeans.com/tomcat
>http://www.onjava.com/pub/a/onjava/2002/07/17/tomcluster.html
>http://www.onjava.com/lpt/a/1228
>http://www.javaworld.com/javaworld/jw-12-2000/jw-1221-servlets.html
>
>
> > -Ursprüngliche Nachricht-
> > Von: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]]
> > Gesendet: Donnerstag, 10. Oktober 2002 15:39
> > An: [EMAIL PROTECTED]
> > Betreff: Tomcat cluster
> >
> > Has anybody any book online, or tutorial about how use Tomcat
> > in cluster ?
> >
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




_
Converse com seus amigos online, faça o download grátis do MSN Messenger: 
http://messenger.msn.com.br


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




Executing CGI scripts using Tomcat 3.2.3

2002-10-10 Thread Stanert, Mark

I am running Tomcat 3.2.3 and would like to know how to get cgi scripts to
work.  If cgi scripts don't work under 3.2.3 what release should I use?


Regards,

Mark



Possible to disable session persistence?

2002-10-10 Thread Jonathan Eric Miller

Does anyone know if it is possible to turn off session persistence? I don't
have an immediate need to do so, but, I was thinking that it might be a nice
option to have while testing an application if you want to make sure all the
state is getting cleared out. You could do that by just opening a new Web
browser, so, it's not much of an issue. I was just curious.

Jon


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




Pager taglib doesn't work

2002-10-10 Thread Christoph Kulla

Hi,

I'm trying to get the pager taglib
(http://jsptags.com/tags/navigation/pager/) working with tomcat and 
struts. I use logic:iterate to iterate through a list of items. When 
calling my jsp page the first time everything works fine. I see a table 
with the first 20 items and the page navigation links of the pager 
taglib. But when calling the jsp page a second time my table is always 
empty. The same happens with the sample page of the pager taglib 
distribution. Btw, I'm using tomcat 4.1.12.

Does anyone use the pager taglib with the current version of tomcat?

Imho the problem is, that the same instance of the pager tag gets reused
on every call to the jsp page and the tag instance does not get
initialized again. How can I disable caching of jsp tags?

Best regards

Christoph


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




tomcat 4.1.12 issue

2002-10-10 Thread Dennis Muhlestein

I thought I'd upgrade my tomcat to 4.1.12 from 4.0.x.

I'm using struts 1.1b2, j2skd1.4.1, various linux distributions.

I only had issue.  I have one page that conditionally includes another
page.  With tomcat 4.0.x I've never had a problem.  When I upgraded, the
compiler could not compile that page.  Both pages have lots of struts tags in them.
I got many exceptions:

2002-10-10 05:25:01 Error compiling file:
/legacystamps/app/jakarta-tomcat-4.1.12-LE-jdk14/work/Standalone/legacystamps/_/WEB-INF/pages/search/results_jsp.java
 [javac] Compiling 1 source file
[javac]
/legacystamps/app/jakarta-tomcat-4.1.12-LE-jdk14/work/Standalone/legacystamps/_/WEB-INF/pages/search/results_jsp.java:103:108:103:184:
 Error: The method "javax.servlet.jsp.tagext.Tag get(java.lang.Class $1) throws 
javax.servlet.jsp.JspException;" can throw the checked exception 
"javax/servlet/jsp/JspException", so its invocation must be enclosed in a try 
statement that catches the exception, or else this method must be declared to throw 
the exception.

...This printed over an over about different line numbers.


Anyone have a similar experience?  Is it just the conditional include?
ie.. is this bad?..

<% if (...) { %><@include file="..."%><% } %>

Thanks for any input.
Dennis

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




RE: AW: Too Many Sessions!

2002-10-10 Thread Shapira, Yoav

Hi,
Just a curiosity question: does your session listener keep a count of sessions?  And 
if so, how does that count compare to the manager webapp's count?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Cindy Ballreich [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, October 10, 2002 1:18 PM
>To: Tomcat Users List
>Subject: Re: AW: Too Many Sessions!
>
>At 08:51 AM 10/10/02 +0200, Ralph Einfeldt wrote:
>>What makes you think that there is no user activity ?
>
>Because it's on a development system that is not accessible to other users
>and...
>
>>Have you verified this in the access log ?
>
>yes, I checked the access log and there is no activity at all.
>
>>
>>Is it possible that there is a cronjob running that
>>checks the availability of the site ?
>
>No. Again, this is a development system that has nothing like that running
>on it and is not available to things like that from outside.
>
>Unfortunately, this is beginning to look like one of those problems that
>doesn't happen while you're watching and now that I'm sitting on the logs,
>it isn't doing it. 
>
>For those that have asked, I am logging the sessionDestroyed messages.
>That's how I know that they're not being destroyed.
>
>Thanks for your input!
>
>Cindy
>
>
>
>>
>>> -Ursprüngliche Nachricht-
>>> Von: Cindy Ballreich [mailto:[EMAIL PROTECTED]]
>>> Gesendet: Mittwoch, 9. Oktober 2002 20:29
>>> An: [EMAIL PROTECTED]
>>> Betreff: Too Many Sessions!
>>>
>>> I'm using Tomcat 4.1.12 on a NT 4.0 system. I've been
>>> watching my logs and I'm noticing a lot of sessions being
>>> created for no apparent reason when there is no user activity
>>> on the system and no activity (as far as I can tell) in my
>>> servlet. Here's a sample from the logs...
>>>
>>
>>--
>>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>>For additional commands, e-mail: [EMAIL PROTECTED]>
>>
>
>--
>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: 


RE: HTTP Response appears at top : Tomcat 3.2.1 IIS 5 IE 6 SP1

2002-10-10 Thread Michael Finney

I will add the skip intro to the list. ;)

I believe that JSP code telling the page to redirect
may be triggering the problem.  I tried to narrow it
down in the code, but I ended up with a file included
with 4 blank lines and a redirect causing the problem.
 The problem happens in other parts too.

The problem of the header showing up needs to be
fixed. 

Has anyone seen header information showing up when it
is not supposed to in the web pages when tomcat and
IIS is integrated?   What was the fix?

--- Richard Haber <[EMAIL PROTECTED]> wrote:
> I notice that the header does not appear if you go
> to the welcome.jsp
> directly.  I am using IE 6 SP1, cleared the cache
> and tried several
> times.
> 
> On an [OT] other note, Macromedia best practices
> recommends a 'skip
> intro' button on the splash page to allow users
> returning to the site
> quicker access to the site's content ;->
> 
> Otherwise, a nice animation!
> 
> Richard
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


=
Michael Finney
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for J2EE Platform 
Cofounder of PPJDG
Cofounder of cosAgile - Colorado Springs XP Users Group
If replying to this email address fails, try [EMAIL PROTECTED]

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

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




Re: AW: Too Many Sessions!

2002-10-10 Thread Cindy Ballreich

At 08:51 AM 10/10/02 +0200, Ralph Einfeldt wrote:
>What makes you think that there is no user activity ?

Because it's on a development system that is not accessible to other users and...

>Have you verified this in the access log ?

yes, I checked the access log and there is no activity at all.

>
>Is it possible that there is a cronjob running that
>checks the availability of the site ?

No. Again, this is a development system that has nothing like that running on it and 
is not available to things like that from outside. 

Unfortunately, this is beginning to look like one of those problems that doesn't 
happen while you're watching and now that I'm sitting on the logs, it isn't doing it. 
 

For those that have asked, I am logging the sessionDestroyed messages. That's how I 
know that they're not being destroyed.

Thanks for your input!

Cindy



>
>> -Ursprüngliche Nachricht-
>> Von: Cindy Ballreich [mailto:[EMAIL PROTECTED]]
>> Gesendet: Mittwoch, 9. Oktober 2002 20:29
>> An: [EMAIL PROTECTED]
>> Betreff: Too Many Sessions!
>> 
>> I'm using Tomcat 4.1.12 on a NT 4.0 system. I've been 
>> watching my logs and I'm noticing a lot of sessions being 
>> created for no apparent reason when there is no user activity 
>> on the system and no activity (as far as I can tell) in my 
>> servlet. Here's a sample from the logs...
>> 
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>

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




RE: HTTP Response appears at top : Tomcat 3.2.1 IIS 5 IE 6 SP1

2002-10-10 Thread Richard Haber

I notice that the header does not appear if you go to the welcome.jsp
directly.  I am using IE 6 SP1, cleared the cache and tried several
times.

On an [OT] other note, Macromedia best practices recommends a 'skip
intro' button on the splash page to allow users returning to the site
quicker access to the site's content ;->

Otherwise, a nice animation!

Richard




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




RE: Classpath Issues, Tomcat 4.X and J2EE Interoperabilityfrustrations...

2002-10-10 Thread Craig R. McClanahan



On Thu, 10 Oct 2002, Andrew Gilbert wrote:

> Date: Thu, 10 Oct 2002 11:42:05 -0400
> From: Andrew Gilbert <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: Classpath Issues,
>  Tomcat 4.X and J2EE Interoperability frustrations...
>
> Yoav and JeanFrancios,
>
> Thank you both for your replies. They were helpful and somewhat reassuring.
>
> At the general level:
>
> We are aware that Tomcat is not a full J2EE container. But servlets
> calling EJB's is bread and butter stuff.

Only for an EJB server :-).

Tomcat standalone has zero facilities to support this.  For example, it
basically ignores  entries in your deployment descriptor.

There are three feasible approaches:

* Use a non-standard JNDI initial context, configured in a way that
  will talk to your particular EJB server.  The details of this are
  very EJB-container-specific (the TOMCAT-USER archives have comments
  from people who've been able to do it from Tomcat to the J2EE RI),
  and is not guaranteed to be available.  You're also going to have
  to piece together the right classes for your particular app server
  in order to make the right stuff available.

* Use a EJB+Servlet container that has Tomcat integrated in (such
  as the J2EE RI or JBoss).  The container provider has solved all
  these problems for you already.

* Use the servlet container provided by your EJB container vendor
  (sounds like WebLogic in your case), which also has solved all
  these problems.

Anything else is way out on the fringes of technical fragility, and
probably relies on internal APIs that are subject to change.  That's why
you have so many problems in each upgrade cycle -- you're trying to do
something very much non-mainstream.

Craig McClanahan


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




HTTP Response appears at top : Tomcat 3.2.1 IIS 5 IE 6 SP1

2002-10-10 Thread Michael Finney

Tomcat 3.2.1  IIS 5 IE 6 SP1

When using IE 6 SP1, an HTTP Response appears at the
top of some web pages.  Using other browsers or
versions of IE this does not happen.  If you hit
refresh, the error goes away.

When I have the request go to Tomcat directly the
problem does not happen.  However, it is my
understanding that Tomcat 3.2.1 should not be
standalone.  True?

Anyone else seen this error with HTTP Responses
showing up at the top and any idea what is going on?

To reproduce this error yourself if you have IE 6 SP1
go to this URL ( 
http://www.japersonalfinance.com/gsjapf/ ) and wait
for it 
to switch to this url ( 
http://www.japersonalfinance.com/gsjapf/welcome.jsp ).

Thanks,
Michael Finney


=
Michael Finney
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for J2EE Platform 
Cofounder of PPJDG
Cofounder of cosAgile - Colorado Springs XP Users Group
If replying to this email address fails, try [EMAIL PROTECTED]

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

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




RE: Exception starting filter Security Filter

2002-10-10 Thread Dan Payne

Thanks, Volker.  Very informative.  I'll do a little investigating on my end
and let you know what I find out.

Thanks again.

-Dan

-Original Message-
From: Volker Leidl [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 3:14 AM
To: Tomcat Users List
Subject: Re: Exception starting filter Security Filter


Hi!

In fact I was wrong in my last post. As I found out later, it did not
work. I found a solution for my problem but I am not sure if it also
applies to yours, Dan. Sorry for not sharing my knowledge until now, but
it did not seem to interest anyone ;)

During debugging I used a hacked version of the logging package and I
somehow forgot to put back the original, so I tricked myself and
believed it would work. But what I found out is, that in my version of
Tomcat (4.0.3) common/lib is defined as "endorsed" in
bin/setclasspath.bat (for the endorsed standards override mechanism see
http://java.sun.com/j2se/1.4/docs/guide/standards/). This has the
effect, that all jars in this directory are loaded by the bootstrap
class loader (at least in J2SE 1.4). You can verify this by printing out
the value of the "java.endorsed.dirs" system property. There you will
find all your jars from common/lib.

I solved the problem by switching to 4.1, where there is a separate
"endorsed" directory in $CATALINA_HOME/common. All jars from common/lib
are then normally loaded by the common class loader. I have no idea why
the 4.0 version marks the common/lib directory as endorsed but in my
opinon, it is a bug, since it undermines the expected class loader
hierarchy.

Furthermore the implementation of LogFactory is also buggy. When you
look at the source code you can see that it does not take into account
that Class.getClassLoader can return null. This is exactly what happens
in your case, Dan. The class loader that loads LogFactory is the
bootstrap class loader. Check where your commons-logging.jar is located.
It is perhaps at some position where it should not be.

There is a bug report for this exact issue in the Apache bug database,
but interestingly it is marked "RESOLVED". I should reopen that again.

Regards,
Volker

Dan Payne wrote:

>Thanks for the response, Charlie, but it appears our problems are actuall
>different.  I went ahead and tried the solutions prescribed to Volker but
to
>no avail.  It appears, by looking at the local_host log, that the package
is
>being found, and the classes loaded no problem.
>
>The only thing that is different between my webapps where an exception is
>not throw and is thrown is that the ones that don't throw the exception are
>a part of the original tomcat install and the ones that do throw the
>exception reside within additional tomcat instances, using the
CATALINA_BASE
>env. variable.
>
>-Dan
>
>-Original Message-
>From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, October 09, 2002 3:38 PM
>To: 'Tomcat Users List'
>Subject: RE: Exception starting filter Security Filter
>
>
>someone else had this problem a last week.
>
>http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg68531.html
>
>Charlie
>
>
>
>>-Original Message-
>>From: Dan Payne [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesday, October 09, 2002 1:56 PM
>>To: [EMAIL PROTECTED]
>>Subject: Exception starting filter Security Filter
>>
>>
>>I'm using TC 4.0.4, j2sdk1.4.0_01 and the securityfilter from
>>sourceforge.net, which is a pseudo container managed
>>JDBC/MySQL security
>>realm. it's all running on win2000. i've also upgraded my
>>commons-logging to
>>1.0.2 to see if that helps, but to no avail (although it did
>>change the
>>stack trace).
>>
>>
>>Here's the problem: it works fine when i deploy it in
>>%CATALINA_HOME\webapps\ROOT, but if i try to deploy any app
>>in a tomcat
>>instance, for example %CATALINA_BASE\webapps\ROOT, an
>>exception is thrown
>>when I try to boot up the tomcat instance. It apears in the
>>localhost log,
>>whose excerpt follows: (additionaly, it may be a problem with the
>>commons-logging. if anyone can tell, please let me know and
>>i'll readress
>>the issue with the appropriate party)
>>
>>Thanks, all.
>>
>>-Dan
>>
>>
>>2002-10-09 12:16:34 WebappLoader[/manager]: Deploying class
>>repositories to
>>work directory C:\contexts\sotx\work\Standalone\localhost\manager
>>2002-10-09 12:16:34 StandardManager[/manager]: Seeding random number
>>generator class java.security.SecureRandom
>>2002-10-09 12:16:34 StandardManager[/manager]: Seeding of
>>random number
>>generator has been completed
>>2002-10-09 12:16:34 ContextConfig[/manager]: Added
>>certificates -> request
>>attribute Valve
>>2002-10-09 12:16:34 ContextConfig[/manager]: Configured an
>>authenticator for
>>method BASIC
>>2002-10-09 12:16:35 StandardWrapper[/manager:default]:
>>Loading container
>>servlet default
>>2002-10-09 12:16:35 default: init
>>2002-10-09 12:16:35 StandardWrapper[/manager:invoker]:
>>Loading container
>>servlet invoker
>>2002-10-09 12:16:35 invoker: init
>>2002-10-09 12:16:35 

Re: reloading of jsp page...

2002-10-10 Thread Lindomar

Try in your page:




...


- Original Message -
From: "Padhu Vinirs" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, October 10, 2002 12:19
Subject: Re: reloading of jsp page...


>
> Reloading of jsp works if I start a new browser window. But on same
> window ( Ctrl-r or reload ) doesnt show the new changes.
>
> -- padhu
>
> Padhu Vinirs wrote:
>
> >
> > Tomcat 4.1.12
> >
> > I have a jsp page that compiles fine. Then I make a change and try to
> > access the page again. The page is not recompiled. I am still getting
> > back the old value. I do have reloadable=true for my context. I have
> > to restart Tomcat to get the new page. Anybody else notice this ?
> >
> > -- padhu
> >
> >
> > --
> > 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: reloading of jsp page...

2002-10-10 Thread Pooleery, Manoj

I don't know if updating your clock is going to save you from this problem.
I had faced a similar issue with JSP, where IE was the culprit.  it used to
cache the page the first time it is loaded and wouldn't refresh it even if
it is changed on disk.  What I did was to put the meta tags for refreshing
in the header of my JSP page.  I put
 and this solved the
problem for me.  Everytime, I forced IE to refresh the page.

-Manoj.

-Original Message-
From: Padhu Vinirs [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 12:25 PM
To: Tomcat Users List
Subject: Re: reloading of jsp page...



ok. Found the problem. My Linux machine clock was ahead by 10 mins. 
timestamp problem resolved. :-)

Thanks

-- padhu


Sam Seaver wrote:

>maybe even a samba fix...
>
>
>- Original Message -
>From: "Padhu Vinirs" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Thursday, October 10, 2002 8:59 AM
>Subject: Re: reloading of jsp page...
>
>
>  
>
>>I think I founf out what the problem is. My jsp page is on Linux. I have
>>this drive shared through samba to my windows machine. Looks like
>>windows is not updating the time stamp. When I saved the file from
>>Linux, the reload worked fine. I saw that the 2885 bug was also related
>>to this. Anybody know any solution on how to change the timestamp on
>>windows 98 when saving - maybe there is a win fix ?
>>
>>-- padhu
>>
>>
>>
>>Chris Wolcott wrote:
>>
>>
>>
>>>This may be caused by your browser cacheing the existing page.  Try
>>>clearing the browser cashce and see what happens.  I know RELOAD is
>>>supposed to actually RELOAD from the server, but. . . .
>>>
>>>Padhu Vinirs wrote:
>>>
>>>  
>>>
Reloading of jsp works if I start a new browser window. But on same
window ( Ctrl-r or reload ) doesnt show the new changes.

-- padhu

Padhu Vinirs wrote:



>Tomcat 4.1.12
>
>I have a jsp page that compiles fine. Then I make a change and try
>to access the page again. The page is not recompiled. I am still
>getting back the old value. I do have reloadable=true for my
>context. I have to restart Tomcat to get the new page. Anybody else
>notice this ?
>
>-- padhu
>
>
>--
>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:
>>
>>
>
>  
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>
>
>  
>



--
To unsubscribe, e-mail:

For additional commands, e-mail:




Re: nt service source code

2002-10-10 Thread Jean-Francois Arcand

http://jakarta.apache.org/site/cvsindex.html

-- Jeanfrancois

Ilya Khandamirov wrote:

>Hi,
> 
>Is the source code of Tomcat's Windows NT/2000/XP Service open? I cannot
>find something i can start playing with. I'd be thankful for any kind of
>Information/Links.
> 
> 
>Regards,
>Ilya
> 
>
>  
>


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




Re: tomcat4.1.2 - Servlet Error

2002-10-10 Thread Raj Saini

admin directory is under TOMCAT_HOME/server/webapps

Raj
Raj Mettai wrote:
> thanks Yoav Shapira,
> 
> looks like I don't even have admin directory under webapps folder. I
> have downloaded binaries from apache site and Installed it under
> separate folder. Jsp pages are fine, when I access servlets from my
> application I am getting 404 page not found.
> It works fine with 4.0.4. 
> 
> Here is my context Tag from server.xml 
>   debug="0"/>
> 
> thanks
> Raj
> 
> 
> 
> 
[EMAIL PROTECTED] 10/10/02 09:34AM >>>
>>>
> Hi,
> How did you install 4.1.12?  Did you copy it over the existing 4.0.4
> installation?
> 
> The error indicates tomcat can't find its own admin webapp classes.
> That shouldn't happen if you simply untar the distribution.  Look for
> $CATALINA_HOME/server/webapps/admin/WEB-INF/classes/org/apache/webapp/ad
> min to make sure it exists and has the .class files in it.
> 
> Or simply remove webapps/admin.xml if you don't want/need the admin
> webapp ;)
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> 
>>-Original Message-
>>From: Raj Mettai [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesday, October 09, 2002 7:01 PM
>>To: [EMAIL PROTECTED]
>>Subject: tomcat4.1.2 - Servlet Error
>>
>>Hi,
>>
>>I am running tomcat4.1.2 on solaris8. Tomcat is serving jsp pages fine
> 
> but
> 
>>when I access servlet I am getting HTTP Status 404 and I found
> 
> following
> 
>>exception in localhost_admin* log file.
>>
>>2002-10-09 18:31:50 ContextConfig[/admin]: Configured an authenticator
> 
> for
> 
>>method FORM
>>2002-10-09 18:31:50 StandardManager[/admin]: Seeding random number
>>generator class java.security.SecureRandom
>>2002-10-09 18:31:50 StandardManager[/admin]: Seeding of random number
>>generator has been completed
>>2002-10-09 18:31:50 StandardWrapper[/admin:default]: Loading container
>>servlet default
>>2002-10-09 18:31:50 StandardWrapper[/admin:invoker]: Loading container
>>servlet invoker
>>2002-10-09 18:31:50 StandardWrapper[/admin:action]: Marking servlet
> 
> action
> 
>>as unavailable
>>2002-10-09 18:31:50 StandardContext[/admin]: Servlet /admin threw
> 
> load()
> 
>>exception
>>javax.servlet.ServletException: Wrapper cannot find servlet class
>>org.apache.webapp.admin.ApplicationServlet or a class it depends on
>>   at
>>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
> 
> va:8
> 
>>80)
>>   at
>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
>>   at
>>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.
> 
> java
> 
>>:3341)
>>   at
>>org.apache.catalina.core.StandardContext.start(StandardContext.java:353
> 
> 4)
> 
>>   at
>>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
> 
> ava:
> 
>>821)
>>   at
>>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
>>   at
>>org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
>>   at
>>org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDepl
> 
> oyer
> 
>>.java:529)
>>   at java.lang.reflect.Method.invoke(Native Method)
>>   at
>>org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:
> 
> 228)
> 
>>   at
>>org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
>>   at
>>org.apache.commons.digester.Digester.endElement(Digester.java:1036)
>>   at
>>org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParse
> 
> r.ja
> 
>>va:579)
>>   at
>>org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder
> 
> .jav
> 
>>a:646)
>>   at
>>org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValid
> 
> ator
> 
>>.java:1972)
>>   at
>>org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.j
> 
> ava:
> 
>>878)
>>   at
>>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(
> 
> XMLD
> 
>>ocumentFragmentScannerImpl.java:1144)
>>   at
>>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XM
> 
> LDoc
> 
>>umentFragmentScannerImpl.java:987)
>>   at
>>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
> 
> spat
> 
>>cher.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
>>   at
>>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD
> 
> ocum
> 
>>entFragmentScannerImpl.java:333)
>>   at
>>org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
> 
> 524)
> 
>>   at
>>org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
> 
> 580)
> 
>>   at
> 
> org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
> 
>>   at
>>org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav
> 
> a:11
> 
>>69)
>>   at
> 
> org.apache.commons.digester.Digester.parse(Digester.java:1514)
> 
>>   at
>>org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
> 
> yer.
> 
>>java:335)
>>   at
>>org.apache.catalina.c

RE: Tomcat IIS HowTo - with Tomcat 4?

2002-10-10 Thread Tim Moore

Also check out
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index.html

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, October 10, 2002 9:01 AM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat IIS HowTo - with Tomcat 4?
> 
> 
> 
> It definitely works.  HOWTOs are posted.
> 
> http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm
> 
> John
> 
> 
> > -Original Message-
> > From: Richard Katz [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 09, 2002 5:08 PM
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat IIS HowTo - with Tomcat 4?
> > 
> > 
> > Does this just not work with Tomcat 4.0?  I've followed all
> > the steps but I
> > still get a "down red" arrow instead of an "up green" one on 
> > the IIS MMC for
> > the jakarta filter.
> > 
> > Questions - about quotes:
> > 
> > Tomcat 4 normally installs in
> > "C:\Program Files\Apache Tomcat 4.0" which is where I installed it.
> > 
> > Unfprtunately, this offers the registry, the MMC, and the
> > workers.properties
> > numerous opportunities to mis-handle quotes.  
> > 
> > For instance in the registry:
> > Should there be quotes around
> > log_file value:
> > "C:\Program Files\Apache Tomcat 4.0\logs\isapi.log"
> > 
> > I've tried it both ways - no luck.
> > 
> > In MMC:
> > The Virtual directory does not seem to want quotes.  It
> > browses correctly when
> > given
> > C:\Program Files\Apache Tomcat 4.0\bin\win32\i386
> > 
> > The filter executable can be specified as
> > C:\Program Files\Apache Tomcat 4.0\bin\win32\i386\isapi_redirect.dll
> > 
> > Neither require quotes.
> > 
> > If Tomcat 4 is supposed to work with IIS, I'll move it to a 
> different 
> > directory so that the quote question goes away and try again.
> > 
> > Otherwise, I'll go back to Tomcat 3.x
> > 
> > Thanks,
> > 
> > Rich Katz
> > 
> > --
> > 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: 




Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs


ok. Found the problem. My Linux machine clock was ahead by 10 mins. 
timestamp problem resolved. :-)

Thanks

-- padhu


Sam Seaver wrote:

>maybe even a samba fix...
>
>
>- Original Message -
>From: "Padhu Vinirs" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Thursday, October 10, 2002 8:59 AM
>Subject: Re: reloading of jsp page...
>
>
>  
>
>>I think I founf out what the problem is. My jsp page is on Linux. I have
>>this drive shared through samba to my windows machine. Looks like
>>windows is not updating the time stamp. When I saved the file from
>>Linux, the reload worked fine. I saw that the 2885 bug was also related
>>to this. Anybody know any solution on how to change the timestamp on
>>windows 98 when saving - maybe there is a win fix ?
>>
>>-- padhu
>>
>>
>>
>>Chris Wolcott wrote:
>>
>>
>>
>>>This may be caused by your browser cacheing the existing page.  Try
>>>clearing the browser cashce and see what happens.  I know RELOAD is
>>>supposed to actually RELOAD from the server, but. . . .
>>>
>>>Padhu Vinirs wrote:
>>>
>>>  
>>>
Reloading of jsp works if I start a new browser window. But on same
window ( Ctrl-r or reload ) doesnt show the new changes.

-- padhu

Padhu Vinirs wrote:



>Tomcat 4.1.12
>
>I have a jsp page that compiles fine. Then I make a change and try
>to access the page again. The page is not recompiled. I am still
>getting back the old value. I do have reloadable=true for my
>context. I have to restart Tomcat to get the new page. Anybody else
>notice this ?
>
>-- padhu
>
>
>--
>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:
>>
>>
>
>  
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>



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




Re: reloading of jsp page...

2002-10-10 Thread Sam Seaver

maybe even a samba fix...


- Original Message -
From: "Padhu Vinirs" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, October 10, 2002 8:59 AM
Subject: Re: reloading of jsp page...


>
> I think I founf out what the problem is. My jsp page is on Linux. I have
> this drive shared through samba to my windows machine. Looks like
> windows is not updating the time stamp. When I saved the file from
> Linux, the reload worked fine. I saw that the 2885 bug was also related
> to this. Anybody know any solution on how to change the timestamp on
> windows 98 when saving - maybe there is a win fix ?
>
> -- padhu
>
>
>
> Chris Wolcott wrote:
>
> > This may be caused by your browser cacheing the existing page.  Try
> > clearing the browser cashce and see what happens.  I know RELOAD is
> > supposed to actually RELOAD from the server, but. . . .
> >
> > Padhu Vinirs wrote:
> >
> >>
> >> Reloading of jsp works if I start a new browser window. But on same
> >> window ( Ctrl-r or reload ) doesnt show the new changes.
> >>
> >> -- padhu
> >>
> >> Padhu Vinirs wrote:
> >>
> >>>
> >>> Tomcat 4.1.12
> >>>
> >>> I have a jsp page that compiles fine. Then I make a change and try
> >>> to access the page again. The page is not recompiled. I am still
> >>> getting back the old value. I do have reloadable=true for my
> >>> context. I have to restart Tomcat to get the new page. Anybody else
> >>> notice this ?
> >>>
> >>> -- padhu
> >>>
> >>>
> >>> --
> >>> 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:

>

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




Re: How to handle requests in quick sessions / possible thread issue

2002-10-10 Thread Michael Nicholson

ok, yes, I'm dumb... the subject should have said "How to handle requests in
quick succession / possible thread issues"

Mike


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




Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs


I think I founf out what the problem is. My jsp page is on Linux. I have 
this drive shared through samba to my windows machine. Looks like 
windows is not updating the time stamp. When I saved the file from 
Linux, the reload worked fine. I saw that the 2885 bug was also related 
to this. Anybody know any solution on how to change the timestamp on 
windows 98 when saving - maybe there is a win fix ?

-- padhu



Chris Wolcott wrote:

> This may be caused by your browser cacheing the existing page.  Try 
> clearing the browser cashce and see what happens.  I know RELOAD is 
> supposed to actually RELOAD from the server, but. . . .
>
> Padhu Vinirs wrote:
>
>>
>> Reloading of jsp works if I start a new browser window. But on same 
>> window ( Ctrl-r or reload ) doesnt show the new changes.
>>
>> -- padhu
>>
>> Padhu Vinirs wrote:
>>
>>>
>>> Tomcat 4.1.12
>>>
>>> I have a jsp page that compiles fine. Then I make a change and try 
>>> to access the page again. The page is not recompiled. I am still 
>>> getting back the old value. I do have reloadable=true for my 
>>> context. I have to restart Tomcat to get the new page. Anybody else 
>>> notice this ?
>>>
>>> -- padhu
>>>
>>>
>>> -- 
>>> 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: tomcat4.1.2 - Servlet Error

2002-10-10 Thread Raj Mettai

thanks Yoav Shapira,

looks like I don't even have admin directory under webapps folder. I have downloaded 
binaries from apache site and Installed it under separate folder. Jsp pages are fine, 
when I access servlets from my application I am getting 404 page not found.
It works fine with 4.0.4. 

Here is my context Tag from server.xml 
 

thanks
Raj



>>> [EMAIL PROTECTED] 10/10/02 09:34AM >>>
Hi,
How did you install 4.1.12?  Did you copy it over the existing 4.0.4
installation?

The error indicates tomcat can't find its own admin webapp classes.
That shouldn't happen if you simply untar the distribution.  Look for
$CATALINA_HOME/server/webapps/admin/WEB-INF/classes/org/apache/webapp/ad
min to make sure it exists and has the .class files in it.

Or simply remove webapps/admin.xml if you don't want/need the admin
webapp ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Raj Mettai [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, October 09, 2002 7:01 PM
>To: [EMAIL PROTECTED]
>Subject: tomcat4.1.2 - Servlet Error
>
>Hi,
>
>I am running tomcat4.1.2 on solaris8. Tomcat is serving jsp pages fine
but
>when I access servlet I am getting HTTP Status 404 and I found
following
>exception in localhost_admin* log file.
>
>2002-10-09 18:31:50 ContextConfig[/admin]: Configured an authenticator
for
>method FORM
>2002-10-09 18:31:50 StandardManager[/admin]: Seeding random number
>generator class java.security.SecureRandom
>2002-10-09 18:31:50 StandardManager[/admin]: Seeding of random number
>generator has been completed
>2002-10-09 18:31:50 StandardWrapper[/admin:default]: Loading container
>servlet default
>2002-10-09 18:31:50 StandardWrapper[/admin:invoker]: Loading container
>servlet invoker
>2002-10-09 18:31:50 StandardWrapper[/admin:action]: Marking servlet
action
>as unavailable
>2002-10-09 18:31:50 StandardContext[/admin]: Servlet /admin threw
load()
>exception
>javax.servlet.ServletException: Wrapper cannot find servlet class
>org.apache.webapp.admin.ApplicationServlet or a class it depends on
>at
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
va:8
>80)
>at
>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
>at
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.
java
>:3341)
>at
>org.apache.catalina.core.StandardContext.start(StandardContext.java:353
4)
>at
>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
ava:
>821)
>at
>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
>at
>org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
>at
>org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDepl
oyer
>.java:529)
>at java.lang.reflect.Method.invoke(Native Method)
>at
>org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:
228)
>at
>org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
>at
>org.apache.commons.digester.Digester.endElement(Digester.java:1036)
>at
>org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParse
r.ja
>va:579)
>at
>org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder
.jav
>a:646)
>at
>org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValid
ator
>.java:1972)
>at
>org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.j
ava:
>878)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(
XMLD
>ocumentFragmentScannerImpl.java:1144)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XM
LDoc
>umentFragmentScannerImpl.java:987)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
spat
>cher.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD
ocum
>entFragmentScannerImpl.java:333)
>at
>org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
524)
>at
>org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
580)
>at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>at
>org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav
a:11
>69)
>at
org.apache.commons.digester.Digester.parse(Digester.java:1514)
>at
>org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
yer.
>java:335)
>at
>org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
>at
>org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.jav
a:45
>2)
>at
>org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
>at
>org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
>at
>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3
68)
>at
>org.apache.catalin

OT: How to handle requests in quick sessions / possible thread issue

2002-10-10 Thread Michael Nicholson

So, this is my first project where I need to manage a large number of concurrent 
requests.  And, to make things worse, most of my previous experience in programming is 
Visual Basic for Applications running in either Excel or Access.  (Don't worry, it 
gets more on topic...)

So, I now have an Oracle backend that's supposed to be accessed by jsps and servlets.  
Which works.  However, if a user gets impatient (I know, it never happens, but just in 
case!), then while the database is doing it's thing, the java process receives a new 
request and starts a new thread, right?  But this is a problem in that it stops 
responding.  Entirely.  I don't know if this means that my db connection got closed 
midway through the second process (which should now have the request and response 
instances that my browser wants back), and therefore it's sitting there going "which 
way did it go, which way did it go" (you have to imagine the silly cartoon voice), or 
what.  And I don't really know that connection pooling will help.

Now, more experinced minds than mine have solved this before.  Most commercial/decent 
sites seem to handle it fine:  do they simply interrupt the old process and then start 
a new one?  Should the beginning of my db-routine have something like:

Connection con = null;  //to close any currently running process on this connection in 
this object/bean/servlet
try
{
  crap;
} catch (crappyException ce) {
  handle it
}  finally  {
  if (con!=null)
  {
con.close();
con=null;
  }
}

Would that solve my problem?  Or do I need to let the first request finish itself and 
then start a new one?  Any ideas?

Thanks for your time.

Michael Nicholson


Re: Connecting from Tomcat box to JBoss box?

2002-10-10 Thread Mauro Daniel Ardolino

I've heared something about doing it through JAAS.

On Thu, 10 Oct 2002, Raj Saini wrote:

> Hi,
> 
> You need to follow the below steps:-
> 
> Copy the clients file from te JBOSS_HOME/client direcotry to the 
> TOMCAT_HOME/shared/lib. You dont need all, but you can copy to be sure 
> you copied all the libs.
> 
> In your application where you lookup the JNDI context, create a 
> Properties object and set the:
> 
> Properties prop =  new Properties();
> 
> prop.setProperty("java.naming.factory.initial", 
> "org.jnp.interfaces.NamingContectFactory");
> 
> //Replace the yourhost:port with your host ip and port. Default port is 1099
> prop.setProperty("java.naming.factory.url", "yourhost:port");
> prop.setProperty("ava.naming.factory.url.pakgs", "org.jboss.naming: 
> org.jnp.interfaces");
> 
> InitialContext ctx = new InitialContext(prop);
> 
> Now you can use the ctx object to lookup your EJBs.
> 
> Raj Saini
> 
> 
> Mitchell, Edmund wrote:
> > Hello all,
> > 
> > I've got my Apache box talking happily to my Tomcat box, thanks to John
> > Turner and Pascal Forget's great webpages, but I can't seem to get the
> > Tomcat box to talk to the JBoss box.
> > 
> > Does anyone have any "how-to" type info on how to get this connection to
> > happen?  I've tried everything in both the JBoss and ejb docs I've read, to
> > no avail.
> >   
> > In the post below, Anthony Geoghegan suggests that turning off the Tomcat
> > JNDI server will work, but I've been up and down the Tomcat JNDI docs, and
> > seen nothing that looks like an off switch.   Can anyone shed some light on
> > that?
> > 
> > Thanks for any help
> > 
> > Edmund
> > 
> > .
> > 
> > 
> >>-Original Message-
> >>From: Anthony Geoghegan [mailto:[EMAIL PROTECTED]]
> >>Sent: Tuesday, October 08, 2002 1:20 PM
> >>To: Tomcat Users List; [EMAIL PROTECTED]
> >>Subject: Re: Apache 2, Tomcat, & JBoss configuration
> >>You have to use remote interfaces and turn off the TOMCAT 
> >>JNDI server to use
> >>the JBOSS JNDI server, otherwise it's fine.
> > 
> > 
> >>- Original Message -
> >>From: "Jim Haggerty" <[EMAIL PROTECTED]>
> >>To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >>Sent: Tuesday, October 08, 2002 5:31 PM
> >>Subject: Apache 2, Tomcat, & JBoss configuration
> > 
> > 
> >>>Current versions:
> >>>FreeBSD 4.6.2-RELEASE
> >>>Apache 2.0.42 (although FreeBSD port now has 2.0.43)
> >>>Tomcat 4.0.5
> >>>JBoss 3.0.0 (NB: This installation is the package WITHOUT Tomcat)
> >>
> > 
> >>>Apache and Tomcat are getting along fine and I can access 
> >>
> >>deployed webapps
> >>
> >>>through the warp connection (Is JK2 preferred over warp?) 
> >>
> >>on both port 80
> >>
> >>>and 8080.
> >>>
> >>>JBoss is alive and well on port 8082.
> >>>
> >>>However, virtually ALL the documentation I have found 
> >>
> >>regarding connecting
> >>
> >>>the three refers to the JBoss+Tomcat package (modify the 
> >>
> >>server.xml in
> >>
> >>>${JBOSS_HOME}/catalina).  Does anyone have an example of connecting
> >>
> >>Apache -
> >>
> >>>Tomcat - JBoss WITHOUT JBoss+Tomcat?
> >>
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


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




Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs


I have also tried loading this page from 2 different client machines. 
Still get only old code...I have to restart Tomcat, cleanup the 
java/class files and only then this works.

-- padhu



Sam Seaver wrote:

>I had this problem with galeon and simple html files, it should be in the
>settings somewhere in your browser, that you can force it to actually reload
>the page rather than look in the cache, even though I was pressing the
>RELOAD button. once i made the change, RELOAD really RELOADed...
>
>Sam
>
>
>- Original Message -
>From: "Chris Wolcott" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Thursday, October 10, 2002 8:37 AM
>Subject: Re: reloading of jsp page...
>
>
>  
>
>>This may be caused by your browser cacheing the existing page.  Try
>>clearing the browser cashce and see what happens.  I know RELOAD is
>>supposed to actually RELOAD from the server, but. . . .
>>
>>Padhu Vinirs wrote:
>>
>>
>>
>>>Reloading of jsp works if I start a new browser window. But on same
>>>window ( Ctrl-r or reload ) doesnt show the new changes.
>>>
>>>-- padhu
>>>
>>>Padhu Vinirs wrote:
>>>
>>>  
>>>
Tomcat 4.1.12

I have a jsp page that compiles fine. Then I make a change and try to
access the page again. The page is not recompiled. I am still getting
back the old value. I do have reloadable=true for my context. I have
to restart Tomcat to get the new page. Anybody else notice this ?

-- padhu


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



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




Where is isapi_redirect.dll for Tomcat 4.1.12 - IIS 5

2002-10-10 Thread Michael Finney

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
promised that isapi_redirect.dll would be located in
""

Is the following still true?  It was a 1/2 year ago. 
"the ISAPI filter for Tomcat 4.0 is still under
development"
see http://www.jguru.com/faq/view.jsp?EID=571958

Michael


--- Michael Finney <[EMAIL PROTECTED]> wrote:
> From
>
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
> 
> "The ajp12 has been deprecated with Tomcat 3.3.x and
> you should use instead ajp13 which is the only ajp
> protocol known by Tomcat 4.0.x, 4.1.x and 5. "
> 
> --- John Lee <[EMAIL PROTECTED]> wrote:
> > Hi all,
> > 
> > I cannot get this ISAPI redirector to work for
> > JSP/Servlet programs running in the following
> > platform:
> > 01. TOMCAT 4.1.12 
> > 02. JDK 1.4.1
> > 03. ISAPI_REDIRECTOR.DLL 
> > 04. IIS 5
> > 05. W2KP SP3
> > 
> > 
> > 11. I successfully did a
> > http://localhost:8080/jsp/examples/index.html
> > 12. However, I got a HTTP 500 (Internal Server
> > Error) error when I did
> > http://localhost/jsp/examples/index.html
> > 13. In ISAPI log, it shows the following:
> > [jk_isapi_plugin.c (696)]: HttpFilterProc started
> > [jk_isapi_plugin.c (759)]: In HttpFilterProc
> Virtual
> > Host redirection of
> > /localhost/examples/jsp/index.html
> > [jk_uri_worker_map.c (460)]: Into
> > jk_uri_worker_map_t::map_uri_to_worker
> > [jk_uri_worker_map.c (477)]: Attempting to map URI
> > '/localhost/examples/jsp/index.html'
> > [jk_uri_worker_map.c (599)]:
> > jk_uri_worker_map_t::map_uri_to_worker, done
> without
> > a match
> > [jk_isapi_plugin.c (765)]: In HttpFilterProc test
> > Default redirection of /examples/jsp/index.html
> > [jk_uri_worker_map.c (460)]: Into
> > jk_uri_worker_map_t::map_uri_to_worker
> > [jk_uri_worker_map.c (477)]: Attempting to map URI
> > '/examples/jsp/index.html'
> > [jk_uri_worker_map.c (502)]:
> > jk_uri_worker_map_t::map_uri_to_worker, Found a
> > context match ajp13 -> /examples/
> > [jk_isapi_plugin.c (775)]: HttpFilterProc
> > [/examples/jsp/index.html] is a servlet url -
> should
> > redirect to ajp13
> > [jk_isapi_plugin.c (838)]: HttpFilterProc check if
> > [/examples/jsp/index.html] is points to the
> web-inf
> > directory
> > 
> > 
> > 21. I have already read
> >
>
http://members.ozemail.com.au/~lamplante/howto/tomcat/iisnt.
> > 22. *** I checked the
> >
>
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
> > and on the last page, it talks about "Check the
> > workers.properties file and make sure that the
> port
> > setting for worker.ajp12.port is the same as the
> > port specified in the server.xml for the Apache
> > AJP12 support".
> > 23. *** In server.xml, there is no ajp12 defined
> at
> > all but it was mentioned in workers.properties and
> I
> > think the cause of the problem is somehow ajp12 is
> > required for the demo programs but somehow it was
> > missing but I do not know how to put it in.
> > 
> > This is the same problem posted on Sep 26 but no
> > real solution was posted.
> > 
> > Any suggestions?
> > 
> > Cheers.
> > 
> > 
> > John
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:  
> >
> 
> > For additional commands, e-mail:
> > 
> > 
> 
> 
> =
> Michael Finney
> Sun Certified Programmer for the Java 2 Platform
> Sun Certified Developer for the Java 2 Platform
> Sun Certified Web Component Developer for J2EE
> Platform 
> Cofounder of PPJDG
> Cofounder of cosAgile - Colorado Springs XP Users
> Group
> If replying to this email address fails, try
> [EMAIL PROTECTED]
> 
> __
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


=
Michael Finney
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for J2EE Platform 
Cofounder of PPJDG
Cofounder of cosAgile - Colorado Springs XP Users Group
If replying to this email address fails, try [EMAIL PROTECTED]

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

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




TOMCAT-STANDALONE needed with Apache Server?

2002-10-10 Thread Chris Wolcott

I'm new to the world of Apache and Jakarta. I notice TOMCAT by default 
has the TOMCAT-STANDALONE instance defined by default, and the 
TOMCAT-APACHE instance commented out with no connectors, etc defined. I 
loaded Apache 2.0 and TOMCAT 4.0 on my Win 2K Svr box. Do I NEED the 
stand-alone instance of TOMCAT? Do I need all those connectors on the 
different ports? What is used by the mod_jk interface from Apache to 
TOMCAT? I tried mod_webapp, but Apache said it could not find it even 
though I DL'd a win32 version of the .so and accompanying libapr.dll to 
the MODULES directory. (I went back to the mod_jk method)

I have read multiple pages on setting up TOMCAT, and all seem to be 
different or not appropriate for my needs. Anyone have a good page to 
help me setup Apache/Tomcat and JSP/SERVLETS/BEANS on a WINDOWS 2000 SERVER?

Thanks


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




Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs


I have done this, and it is not helping. I saw in the apache bug list ( 
2885 )  in 4.0.4 which has been resolved. I reopened it.

-- padhu



Sam Seaver wrote:

>I had this problem with galeon and simple html files, it should be in the
>settings somewhere in your browser, that you can force it to actually reload
>the page rather than look in the cache, even though I was pressing the
>RELOAD button. once i made the change, RELOAD really RELOADed...
>
>Sam
>
>
>- Original Message -
>From: "Chris Wolcott" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Thursday, October 10, 2002 8:37 AM
>Subject: Re: reloading of jsp page...
>
>
>  
>
>>This may be caused by your browser cacheing the existing page.  Try
>>clearing the browser cashce and see what happens.  I know RELOAD is
>>supposed to actually RELOAD from the server, but. . . .
>>
>>Padhu Vinirs wrote:
>>
>>
>>
>>>Reloading of jsp works if I start a new browser window. But on same
>>>window ( Ctrl-r or reload ) doesnt show the new changes.
>>>
>>>-- padhu
>>>
>>>Padhu Vinirs wrote:
>>>
>>>  
>>>
Tomcat 4.1.12

I have a jsp page that compiles fine. Then I make a change and try to
access the page again. The page is not recompiled. I am still getting
back the old value. I do have reloadable=true for my context. I have
to restart Tomcat to get the new page. Anybody else notice this ?

-- padhu


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



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




Re: JMX support in Tomcat

2002-10-10 Thread Raj Saini

Yes, you are right. Admin application uses the MBeanServer.

Raj

Roland S Nygren wrote:
> 
> I posted a similar question recently (no response though).
> 
> I understand that the HTML adapter is  http://localhost:8080/admin/
> You must edit the file conf/tomcat-users.xml (see other postings on 
> that) to be able to login.
> (If you unpacked tomcat with WinZip make sure you have the empty files 
> server/webapps/admin/footer.jsp and 
> server/webapps/admin/users/footer.jsp , I had to create them since 
> WinZip does not create empty files).
> 
> Would be interesting to know if one can write MBeans and register them 
> with this Agent and if that is recommended or not.
> 
> /Roland
> 
>> Hi,
>>
>> There is JMX Mbean support in Tomcat 4.1.12. In the tomcat logs I see 
>> the MBean Server created.
>>
>> Does some have idea where this server listens for requests? Is there 
>> any  HTML adapter for JMX included with tomcat?
>>
>> Thanks,
>>
>> Raj Saini
>>
>>
>> -- 
>> To unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail: 
>> 
>>
> 
> 
> Security: Restricted
> 
> 
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 



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




RE: Classpath Issues, Tomcat 4.X and J2EE Interoperability frustrations...

2002-10-10 Thread Andrew Gilbert

Yoav and JeanFrancios,

Thank you both for your replies. They were helpful and somewhat reassuring.

At the general level:

We are aware that Tomcat is not a full J2EE container. But servlets calling EJB's is 
bread and butter stuff. We have been successfully using Tomcat to talk to WebLogic for 
2 years, so know it "can" work.  But each time we go through an upgrade, of either 
component, we repeat the same voodoo process of jar, jar, where to put the jar. This 
"jar jungle" is a nightmarish flashback to "dll hell" from C++/Windows days. What we 
are looking for is two things. One, some reassurance we aren't in the wilderness using 
Tomcat to talk to WebLogic. Two, a better foundation for developing strategies for 
handling jar packaging and classloading issues. I think I got a little of both from 
your replies.

At the specifics:

We are currently using JDK 1.3.1.

Considered the need to break out weblogic.jar, just hoping to avoid it. Will put 
specific re-packaging of required javax.* classes back back on the list.

Cleaning up issues with conflicts, overlaps and gaps in javax.xml.* implementations is 
one of our motivators to upgrade, so we can also get to JDK 1.4 and get out of the 
mess. Unfortunately this is a painful catch 22.

Have considered using JBoss or WebLogic for our servlet container. This option is 
still on the table. It has drawbacks, but puts everything inside the same "dotted box" 
and thus eliminates some interop baggage.

Have also considered using J2EE 1.3 as a container for running Tomcat, thus providing 
more full J2EE support. Also still on the table.

Still not at the root of the class cast exception when running our first choice 
config. The classloader chains did look consistent and clean. Jean-Francios mentioned 
something about when the home/remote skeletons get loaded (did you mean stubs?). Will 
look at this, as it is also consistent with other ideas about how to use RMI-IIOP and 
the use of the client jar generated from ejbc on the tomcat side.

Thanks again. Helpful. But still, feel like we could write a paper on the "dark side" 
of J2EE ownership and maintenance. Hopefully someone at Sun is listening...



> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 10, 2002 9:28 AM
> To: Tomcat Users List
> Subject: RE: Classpath Issues, Tomcat 4.X and J2EE Interoperability
> frustrations...
> 
> 
> Hi,
> Wow, what a long message ;)  I don't have time to reply to everything,
> but the general answer is: tomcat is a servlet/JSP container at this
> point.  Not a J2EE container.  Inter-operating with remote 
> J2EE servers,
> at least for us, has proven easy.  We've never used tomcat 3.x, only
> 4.x, so I can't comment on version differences.
> 
> One more comment is that the weblogic.jar distribution is, 
> IMHO, one of
> the best examples of how NOT to package things.  You simply got lucky
> that it had javax.xml.transform, along with a ton of other things that
> don't belong in there.  Just look at the weblogic boards and mailing
> lists to see how many times they've been slammed and 
> requested to split
> their jar into smaller pieces.  For example, some of our apps 
> only need
> to send JMS messages to a remote weblogic server, so we've had to take
> out everything non-JMS/JNDI related from the weblogic.jar and 
> repackage
> it.
> 
> I'm also curious as to what version of the JDK you are using.
> 
> >1. Should one assume use of the J2EE SDK distribution of Tomcat is
> required
> >for J2EE interoperability, per 2.0 spec? More directly, is it
> reasonable to
> >try to get J2EE interopability with the apache distribution 
> of Tomcat?
> 
> No to the first question, yes to the second.  It depends by what you
> mean by J2EE interoperability.  Tomcat implements the servlet and JSP
> specs, which define very specific facilities (ejb resource 
> definition in
> web.xml, etc.) for interaction with the broader J2EE world.  Using
> tomcat with the J2EE SDK won't give tomcat any magical features.
> 
> >2. Why is there no javax.xml.transform implementation inside 
> the apache
> >Tomcat distribution?
> 
> That's not part of tomcat.  It's usually distributed with your parser
> (e.g. Crimson or Xerces), or more recently with JDK 1.4.x.
> 
> >3. For a J2EE container to be "interoperable" per the spec, 
> would it be
> >reasonable to assume this means class loading issues inside the
> "client"
> >container have been tested/addressed?
> 
> Yes, and they have been for tomcat.
> 
> >4. How is one supposed to develop a reasonable plan/approach for J2EE
> >interoperability? Or is interoperability a bad idea?
> 
> I would say that interoperability is not a bad idea.  I think it's a
> good thing.  The first part of developing a reasonable plan / approach
> would be to understand what your different components, e.g. tomcat if
> that's what you choose as your "client container", support and don't
> support.  Perhaps you should use JBoss or Webl

Re: reloading of jsp page...

2002-10-10 Thread Sam Seaver

I had this problem with galeon and simple html files, it should be in the
settings somewhere in your browser, that you can force it to actually reload
the page rather than look in the cache, even though I was pressing the
RELOAD button. once i made the change, RELOAD really RELOADed...

Sam


- Original Message -
From: "Chris Wolcott" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, October 10, 2002 8:37 AM
Subject: Re: reloading of jsp page...


> This may be caused by your browser cacheing the existing page.  Try
> clearing the browser cashce and see what happens.  I know RELOAD is
> supposed to actually RELOAD from the server, but. . . .
>
> Padhu Vinirs wrote:
>
> >
> > Reloading of jsp works if I start a new browser window. But on same
> > window ( Ctrl-r or reload ) doesnt show the new changes.
> >
> > -- padhu
> >
> > Padhu Vinirs wrote:
> >
> >>
> >> Tomcat 4.1.12
> >>
> >> I have a jsp page that compiles fine. Then I make a change and try to
> >> access the page again. The page is not recompiled. I am still getting
> >> back the old value. I do have reloadable=true for my context. I have
> >> to restart Tomcat to get the new page. Anybody else notice this ?
> >>
> >> -- padhu
> >>
> >>
> >> --
> >> 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: instalacao do tomcat

2002-10-10 Thread Andre de Jesus

mariangelafirmino wrote:

>Estou instalando o tomcat, tive sucesso ate a instalacao 
>do mesmo, porém estou tendo problemas ao digitar um 
>exemplo e visualiza-lo, tem algo a ver com configuraçao 
>de server.xml. Já instalei tambem o kit SDK. Estou 
>seguindo o livro JSP - Francisco B.Junior, da editora 
>Erica. Fiz todos os passos corretamente, mas nao estou 
>tendo exito. Por favor, se possivel me de um retorno.
>
>Obrigada.
>
>Mariangela.
>
>  
>
Olá

Tomcat is really very simple to install:

First you will need a recent SDK (ex: 1.4.0 ou 1.4.1).

Next you install Tomcat, and if all goes well it will detect the 
presence of the SDK (if not, you can always change some registry keys so 
that it does).

Finally you need to make sure that tomcat is running, either as a system 
service (like: windows services) or as a separate process. When tomcat 
is running, by typing "http://localhost:8080"; the documentation page 
should appear.

If you find that tomcat can't execute for some reason, you could try to 
run startup.bat (or startup.sh) - in the tomcat binaries directory - 
from the command line (DOS, bash or cygwin - much better than DOS) to 
find out why.

If tomcat is running but you cannot see your example, then this could 
mean one of the following:

You are not typing the correct url.

You are typing the correct url but the server.xml or web.xml does not 
have the correct configuration.

The url is correct but your JSP or servlet has an error or can't access 
some external resources.


However, note that the examples that come with tomcat (in 
http://localhost:8080/examples/jsp/index.html) do not have errors and 
should run out of the box, with no additional configurations needed.


In any case, you should post a more detailed description (steps taken, 
error messages, etc) so that our response can be more helpful.



Andre de Jesus


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




Re: reloading of jsp page...

2002-10-10 Thread Chris Wolcott

This may be caused by your browser cacheing the existing page.  Try 
clearing the browser cashce and see what happens.  I know RELOAD is 
supposed to actually RELOAD from the server, but. . . .

Padhu Vinirs wrote:

>
> Reloading of jsp works if I start a new browser window. But on same 
> window ( Ctrl-r or reload ) doesnt show the new changes.
>
> -- padhu
>
> Padhu Vinirs wrote:
>
>>
>> Tomcat 4.1.12
>>
>> I have a jsp page that compiles fine. Then I make a change and try to 
>> access the page again. The page is not recompiled. I am still getting 
>> back the old value. I do have reloadable=true for my context. I have 
>> to restart Tomcat to get the new page. Anybody else notice this ?
>>
>> -- padhu
>>
>>
>> -- 
>> 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: 




Tomact LimitRequestFieldsize

2002-10-10 Thread Alessandro Matti

I am using Tomcat 4.0.1.
It is possible in Tomcat, like it is with Apache, to set the
LimitRequestFieldsize?
How can I risolve this problem?

Thanks

A.M


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




Re: Tomcat 4.1.12 IIS 5 Redirector Problem

2002-10-10 Thread Michael Finney

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

"The ajp12 has been deprecated with Tomcat 3.3.x and
you should use instead ajp13 which is the only ajp
protocol known by Tomcat 4.0.x, 4.1.x and 5. "

--- John Lee <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I cannot get this ISAPI redirector to work for
> JSP/Servlet programs running in the following
> platform:
> 01. TOMCAT 4.1.12 
> 02. JDK 1.4.1
> 03. ISAPI_REDIRECTOR.DLL 
> 04. IIS 5
> 05. W2KP SP3
> 
> 
> 11. I successfully did a
> http://localhost:8080/jsp/examples/index.html
> 12. However, I got a HTTP 500 (Internal Server
> Error) error when I did
> http://localhost/jsp/examples/index.html
> 13. In ISAPI log, it shows the following:
> [jk_isapi_plugin.c (696)]: HttpFilterProc started
> [jk_isapi_plugin.c (759)]: In HttpFilterProc Virtual
> Host redirection of
> /localhost/examples/jsp/index.html
> [jk_uri_worker_map.c (460)]: Into
> jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (477)]: Attempting to map URI
> '/localhost/examples/jsp/index.html'
> [jk_uri_worker_map.c (599)]:
> jk_uri_worker_map_t::map_uri_to_worker, done without
> a match
> [jk_isapi_plugin.c (765)]: In HttpFilterProc test
> Default redirection of /examples/jsp/index.html
> [jk_uri_worker_map.c (460)]: Into
> jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (477)]: Attempting to map URI
> '/examples/jsp/index.html'
> [jk_uri_worker_map.c (502)]:
> jk_uri_worker_map_t::map_uri_to_worker, Found a
> context match ajp13 -> /examples/
> [jk_isapi_plugin.c (775)]: HttpFilterProc
> [/examples/jsp/index.html] is a servlet url - should
> redirect to ajp13
> [jk_isapi_plugin.c (838)]: HttpFilterProc check if
> [/examples/jsp/index.html] is points to the web-inf
> directory
> 
> 
> 21. I have already read
>
http://members.ozemail.com.au/~lamplante/howto/tomcat/iisnt.
> 22. *** I checked the
>
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
> and on the last page, it talks about "Check the
> workers.properties file and make sure that the port
> setting for worker.ajp12.port is the same as the
> port specified in the server.xml for the Apache
> AJP12 support".
> 23. *** In server.xml, there is no ajp12 defined at
> all but it was mentioned in workers.properties and I
> think the cause of the problem is somehow ajp12 is
> required for the demo programs but somehow it was
> missing but I do not know how to put it in.
> 
> This is the same problem posted on Sep 26 but no
> real solution was posted.
> 
> Any suggestions?
> 
> Cheers.
> 
> 
> John
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


=
Michael Finney
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for J2EE Platform 
Cofounder of PPJDG
Cofounder of cosAgile - Colorado Springs XP Users Group
If replying to this email address fails, try [EMAIL PROTECTED]

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

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




  1   2   >