Re: Servlet redirection problem

2002-11-01 Thread Bill Barker
Alternatively, read the README file, and realize that mod_webapp is not
currently supported on Windows (or for Apache2 with MPM != prefork).

"Tam, Michael" <[EMAIL PROTECTED]> wrote in message
news:E3725E2B7548D51192090002A534A18A01730E07@;s2-vic-r1.nrn.nrcan.gc.ca...
> Hi all,
>
> I am running Tomcat 4.1.12 + Apache 1.3.27 with mod_webapp on Win2k pro
> machine.  I have a doPost() in a servlet which at the end would redirects
to
> a url with a query string (e.g.
> newurl?VALUE1=abc&VALUE2=def) by calling respond.sendRedirect().
>
> The servlet did redirect to the target url but the query string is
> scrambled.  From the given example, my resulting url becomes --->
> newurl?value1=abc&value2=d&VAULE1=abc&VALUE2=def  [Please pay attention to
> the case the parameters].  It seems like I have a addition query string
> (with incomplete value) attach to the url before my original url.
>
>
> Any input would be appreciated. Thank you.
>
> Regards,
> Michael
>
>
> --
--
> ---
> Michael Tam - NFI Database Developer   Natural
> Resources Canada
> [EMAIL PROTECTED]Pacific Forestry
> Center
> Phone: (250) 363-8074 506 West Burnside
> Road
> Fax: (250) 363-0775 Victoria, BC
> V8Z 1M5





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




Re: How to Capture Error Msgs/Exceptions when Tomcat Die.

2002-11-01 Thread Bill Barker
By default, jk_nt_service sends errors to $TOMCAT_HOME/logs/jvm.stderr.  You
could try looking there first.

"CHAO,KENT (HP-Boise,ex1)" <[EMAIL PROTECTED]> wrote in message
news:14562BDD08E0FC4C93D7C92B249AC94D02954B4E@;xboi21.boise.itc.hp.com...
> I am new to this group.  I posted this question a few days ago, but didn't
> get any responses. Maybe I did something wrong.  So I re-posted this
> question.
>
> Symptom:
>
> I have a Tomcat application, running with Apache (1.3.26) and Tomcat (3.3)
> in W2k with sp3.  I experienced Tomcat died several times (freq: once a
> week), while Apache remained running.
>
> Question 1: Where I can capture the last exception or other error messages
> before Tomcat died? I need to find out what caused Tomcat to die first,
> before I can take steps to fix the problem.
>
> Does any one experience similar situation?
>
>
> When I said Tomcat died, I mean:
>   In W2k service mode, it simply stopped.
>   In non-service mode and in the same command window, a prompt was
displayed
> and no more log4j messages on display.
>
> The application did generate Log4j messages in log files at ~\tomcat\logs.
> I cannot find any Exceptions at end of file.
>
> Any suggestions are welcome.
>
> thx in advance.
>
> Kent





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




no caching when using secure connection

2002-11-01 Thread Peter Mutsaers
Hello,

A while ago there it was noticed that, when using a secure connection
(i.e. SSL and browser certificate), tomcat sends some headers that
prevent caching.

Back than it was doubted if this is a good thing or not (I think it is
not), this was in version 4.03. It was then decided to make this
behaviour configurable.

Does anyone know from which version on (if any) this problem has been
fixed?

-- 
Peter Mutsaers, Dübendorf, Switzerland.

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




Re: Will Upgrade from one cpu to Dual CPU benefit tomcat 3.2.4 ?

2002-11-01 Thread Bill Barker
Probably.  It will probably help more to upgrade to at least Tomcat 3.3.1.

"Brandon Cruz" <[EMAIL PROTECTED]> wrote in message
news:LPEAICGFPJGGFPKBKDLNCEAHECAA.bcruz@;norvax.com...
>
> I have an overloaded linux server running Apache>Tomcat 3.2.4>MySQL.  It
has
> 512MB Ram, which seems to be doing fine, but the 1Ghz CPU being used by
> Tomcat is constantly 35-60%.  Before I spend the money, does tomcat take
> advantage of multiple processors, and will it help me to upgrade to a Dual
> 1Ghz CPU machine?
>
> Brandon





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




Re: More Re: SSL with Tomcat standalone on WIN98

2002-11-01 Thread Pae Choi
Your exception message is clearly telling you what is going on.
To wit, somewhere in the execution path of your prgram could
not find the class, java.net.ServerSocketFactory.

With J2SDK veriosn < 1.4.x, you will have to play with J2
Security Extension packages, but no needed to mess with them
if you use J2SDK v1.4.x -- recommending v1.4.1_01 because
v1.4.0 had a bug(at least I know there is one).


Pae


> I've caught the exception output
>
> it begins:
> EmbededTomcat: exception initializing ContextManager
> java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
> .
>
> Where might that be - one of the container .jars? I thought Tomcat picked
> them up as necessary?
> - Original Message -
> From: "George McKinney" <[EMAIL PROTECTED]>
> To: "Tomcat User" <[EMAIL PROTECTED]>
> Sent: Friday, November 01, 2002 8:28 PM
> Subject: SSL with Tomcat standalone on WIN98
>
>
> > I'm trying to setup Tomcat 3.3.1 to use SSL when running stand-alone.
> > (I'm doing major maint. on a project that uses that version)
> > It's not clear whether I need to build Tomcat from source to bring in
SSL
> > support or whether (as I've been trying) I can manipulate a binary
> version's
> > config.
> >
> > I created a keystore and uncommented the server.xml entry for the secure
> > Http10 connector (adding the attributes I think were necessary).
> >
> > When I start up Tomcat, I get a stacktrace that scrolls off the screen
(I
> > WANT WIN2K at home!!) before I can see the cause of the problem and
can't
> > find a way to capture it.
> >
> > Any suggestions?
> >
> > Thanks,
> > George McKinney
> > [EMAIL PROTECTED]
> >
> > =
> > An experienced developer knows that it is seldom wise to
> > prefix a demonstration with anything more predictive than
> > "Watch this" - unless there is a good test suite in place.
> >
> >
> >
> > --
> > 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: Invoker servlet mapping

2002-11-01 Thread Bill Barker
The hotfix simply disables access to Tomcat classes via the invoker.  This
disables the known exploit.  Any other exploit of the invoker depends on how
you have programmed your particular web-apps.  If the invoker is enabled,
than it is up to you to make certain that none of your classes can reveal
sensitive information if they are loaded this way.  Since this sort of
analysis is time-consuming, the invoker is now disabled by default in 4.1.x.

"Peter Lee" <[EMAIL PROTECTED]> wrote in message
news:3DC1FB9E.5460.792C2@;localhost...
> I downloaded the hotfix for disabling the invoker servlet.
> Inside the web.xml, the invoker servlet mapping was not
> commented out.
> Is the hotfix supposed to disable it or just work around it?
>
>   
>   
> invoker
> /servlet/*
>   





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




Re: client vs server

2002-11-01 Thread Craig R. McClanahan


On Fri, 1 Nov 2002, Jacob Kjome wrote:

> Date: Fri, 01 Nov 2002 23:23:26 -0600
> From: Jacob Kjome <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: client vs server
>
>
> You mean to run Tomcat?
>
> put -server in the CATALINA_OPTS environment variable.
>
> -server will tell the java command to use the virtual machine optimized for
> non-gui applications which is exactly what you want for running Tomcat.  If
> you don't supply -server, then you will be using the client VM by default.
>

In a web application context, you will *generally* find that the "-server"
option (invoked via the CATALINA_OPTS environment variable as described
above) will improve the performance of compute-bound servlets and JSP
pages in a production environment, to a degree that is *very* dependent on
your application's specific behavior.  In general, it will also reduce
performance during development (where you're often recompiling a given
class or modifying a given JSP page).

The only way to tell if it helps *your* application is to try it with and
without the option.  There is no "right" or "wrong" setting -- the correct
setting for you is whatever improves performance for *your* application.

> Jake

Craig (who, among other things, doesn't bother to put much stock in *any*
becnchmarks other than running your own application on your own production
server with your own production database)


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




Re: HttpServletRequest.isSecure() fails with Coyote AJP 1.3 Connector

2002-11-01 Thread Bill Barker

"Milt Epstein" <[EMAIL PROTECTED]> wrote in message
news:Pine.GSO.4.31.0211010950030.27414-10@;staff2.cso.uiuc.edu...
> On Fri, 1 Nov 2002, Steinar Bang wrote:
>
> > Platform: Intel PIII, RedHat 7.2, apache 1.3.20, ajp1.3
> >tomcat 4.1.12, BlackDown Java SDK 1.3.1,
> >Struts 1.1-b2
> >
> > Is there a way to pass the scheme used by the client when talking to
> > the apache server (ie. "http" or "https") through the Coyote AJP 1.3
> > connector?
> >
> > If I use the old AJP 1.3 connector, I can use the
> > HttpServletRequest.isSecure() function to determine if the client used
> > an HTTPS connection to the apache server.
> >
> > With the Coyote AJP 1.3 connector this information is lost.
> > Ie. HttpServletRequest.isSecure() always returns false, and
> > HttpServletRequest.getScheme() always returns "http".
> >
> > The  elelement for Coyote have the attributes secure, and
> > scheme, which affects the above values of HttpServletRequest.  But
> > these settings are constants.
> >
> > Do I need to set up a separate AJP 1.3 connection on a different port
> > to handle HTTPS requests to apache?  If so, how's that done?
>
> Search the archives, this has come up twice in the last few weeks.  It
> may be that there's a bug with the Coyote AJP13 connector.

I believe that this is a bug, and has been fixed in 4.1.14 (and, even,
4.1.13 if you can run Tomcat without a sandbox).

>
> Milt Epstein
> Research Programmer
> Integration and Software Engineering (ISE)
> Campus Information Technologies and Educational Services (CITES)
> University of Illinois at Urbana-Champaign (UIUC)
> [EMAIL PROTECTED]





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




Re: More Re: SSL with Tomcat standalone on WIN98

2002-11-01 Thread Bill Barker
It looks like JSSE isn't installed properly.  Since I usually just have JSSE
for testing, I just dump the jar files into $TOMCAT_HOME/lib/common, and it
works fine for me.  For production servers, I believe that it is more common
to dump them into $JAVA_HOME/jre/lib/ext.

"George McKinney" <[EMAIL PROTECTED]> wrote in message
news:003401c2822a$bff90300$6502a8c0@;ghmck.home...
> I've caught the exception output
>
> it begins:
> EmbededTomcat: exception initializing ContextManager
> java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
> .
>
> Where might that be - one of the container .jars? I thought Tomcat picked
> them up as necessary?
> - Original Message -
> From: "George McKinney" <[EMAIL PROTECTED]>
> To: "Tomcat User" <[EMAIL PROTECTED]>
> Sent: Friday, November 01, 2002 8:28 PM
> Subject: SSL with Tomcat standalone on WIN98
>
>
> > I'm trying to setup Tomcat 3.3.1 to use SSL when running stand-alone.
> > (I'm doing major maint. on a project that uses that version)
> > It's not clear whether I need to build Tomcat from source to bring in
SSL
> > support or whether (as I've been trying) I can manipulate a binary
> version's
> > config.
> >
> > I created a keystore and uncommented the server.xml entry for the secure
> > Http10 connector (adding the attributes I think were necessary).
> >
> > When I start up Tomcat, I get a stacktrace that scrolls off the screen
(I
> > WANT WIN2K at home!!) before I can see the cause of the problem and
can't
> > find a way to capture it.
> >
> > Any suggestions?
> >
> > Thanks,
> > George McKinney
> > [EMAIL PROTECTED]
> >
> > =
> > An experienced developer knows that it is seldom wise to
> > prefix a demonstration with anything more predictive than
> > "Watch this" - unless there is a good test suite in place.
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >





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




Problem with JSP pages using the Apache and Tomcat combo.

2002-11-01 Thread Nani Jon

Hi all:

I am using the following setup:

Windows 2k, jdk1.4, Apache 2 to server static content, Tomcat as JSP/Servlet 
container, and JBoss3 as the EJB container. I have configured the jboss_tomcat bundle 
to work with the apache webserver. That was a success.

I have a bunch of JSP's with various lengths. The problem I am having is that as I 
access the JSP's multiple times, the generated code gets all messed up. It loses some 
parts of the page, as I keep accessing various links, I eventually end up getting 
garbage with the system completely confused.

I tried using the built-in webserver in the jboss+tomcat combo on port 8080 and the 
problem went away. I have large static content which I need the apache webserver for. 
I tried to remove the include files, run all kinds of other tests, but the result was 
the same. I keep getting totally messed up generated JSP files.

Any help/advice will be very much appreciated. 

Many thanks in advance.

Nanijon.



-
Do you Yahoo!?
HotJobs - Search new jobs daily now


RE: WARNING: Exception getting SSL attributes

2002-11-01 Thread Tim C.
Hi Jack

Adding the jar in seems to have fixed this nicely for me!
Many thanks!
Tim


From: "Ma, Yongjie" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: RE: WARNING: Exception getting SSL attributes
Date: Fri, 1 Nov 2002 12:27:50 -0500

I got same exception message. And Bill Barker told me this is a bug in 
Tomcat 4.1.12.

Following message was from him:

The SSL support in 4.1.12 is broken with JVM 1.4.x.  You need to copy
http://gump.covalent.net/jars/latest/jakarta-tomcat-connectors/tomcat-util.jar.
jar to $CATALINA_HOME/server/lib to fix (or wait, hopefully not long, for
4.1.13).

I tried this new jar file, yes, the exception message was disappeared. But 
It brings another problem, it will always ask client certificate even if 
you set ClientAuth="false".

I did not try new 4.1.13 yet. Maybe you can try that one first.

Thanks
Jack

-Original Message-
From: Tim C. [mailto:timuk10@;hotmail.com]
Sent: Thursday, October 31, 2002 7:40 AM
To: [EMAIL PROTECTED]
Subject: WARNING: Exception getting SSL attributes



I was wondering whether anyone else has seen this or knows what it means. I
am using HTTPS and the connections are made fine to the tomcat4.1.12 server
(jakarta-tomcat-4.1.12-LE-jdk14). However, on each connection the following
warning is given in the logs:



WARNING: Exception getting SSL attributes
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at
com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA6275)
at
org.apache.tomcat.util.net.JSSESupport.getPeerCertificateChain(JSSESupport.java:118)
at
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:543)
at org.apache.coyote.Response.action(Response.java:216)
at
org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:314)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)


What does this mean? Where have I gone wrong?

TIA!



_
Surf the Web without missing calls! Get MSN Broadband.
http://resourcecenter.msn.com/access/plans/freeactivation.asp


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Broadband? Dial-up? Get reliable MSN Internet Access. 
http://resourcecenter.msn.com/access/plans/default.asp


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



Re: client vs server

2002-11-01 Thread Jacob Kjome

You mean to run Tomcat?

put -server in the CATALINA_OPTS environment variable.

-server will tell the java command to use the virtual machine optimized for 
non-gui applications which is exactly what you want for running Tomcat.  If 
you don't supply -server, then you will be using the client VM by default.

Jake



At 01:02 AM 11/2/2002 -0100, you wrote:
  Anyone ever tried the -server Java command line option in JSP applications?

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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



More Re: SSL with Tomcat standalone on WIN98

2002-11-01 Thread George McKinney
I've caught the exception output

it begins:
EmbededTomcat: exception initializing ContextManager
java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
.

Where might that be - one of the container .jars? I thought Tomcat picked
them up as necessary?
- Original Message -
From: "George McKinney" <[EMAIL PROTECTED]>
To: "Tomcat User" <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 8:28 PM
Subject: SSL with Tomcat standalone on WIN98


> I'm trying to setup Tomcat 3.3.1 to use SSL when running stand-alone.
> (I'm doing major maint. on a project that uses that version)
> It's not clear whether I need to build Tomcat from source to bring in SSL
> support or whether (as I've been trying) I can manipulate a binary
version's
> config.
>
> I created a keystore and uncommented the server.xml entry for the secure
> Http10 connector (adding the attributes I think were necessary).
>
> When I start up Tomcat, I get a stacktrace that scrolls off the screen (I
> WANT WIN2K at home!!) before I can see the cause of the problem and can't
> find a way to capture it.
>
> Any suggestions?
>
> Thanks,
> George McKinney
> [EMAIL PROTECTED]
>
> =
> An experienced developer knows that it is seldom wise to
> prefix a demonstration with anything more predictive than
> "Watch this" - unless there is a good test suite in place.
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




SSL with Tomcat standalone on WIN98

2002-11-01 Thread George McKinney
I'm trying to setup Tomcat 3.3.1 to use SSL when running stand-alone.
(I'm doing major maint. on a project that uses that version)
It's not clear whether I need to build Tomcat from source to bring in SSL
support or whether (as I've been trying) I can manipulate a binary version's
config.

I created a keystore and uncommented the server.xml entry for the secure
Http10 connector (adding the attributes I think were necessary).

When I start up Tomcat, I get a stacktrace that scrolls off the screen (I
WANT WIN2K at home!!) before I can see the cause of the problem and can't
find a way to capture it.

Any suggestions?

Thanks,
George McKinney
[EMAIL PROTECTED]

=
An experienced developer knows that it is seldom wise to
prefix a demonstration with anything more predictive than
"Watch this" - unless there is a good test suite in place.



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




client vs server

2002-11-01 Thread Felipe Schnack
  Anyone ever tried the -server Java command line option in JSP applications?

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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




Re: The requested resource (/BookSource/DispatchServlet) is not available.

2002-11-01 Thread Jose Alfonso Martinez
Sorry, I don't see anything unusual. I suspect on the context though. I have never 
used the ROOT directory for storing my apps so I cannot say much about it. Why don't 
you use the weapps/ directory directly, like the /examples  and /tomcat-docs contexts.

Any other ideas? 

Jose Alfonso

> Hi, 
> I tried with the syntax you gave and also with the
> syntax below. It gives the same error. Where should I
> put my servlet class files. I have copied them under
> the directory
> BookSource\web-inf\classes\BookStore\DispatchServlet.class.
> Is this right? 
> 
> <% if(request.getMethod().equals("POST")) %>
> page="web-inf/classes/BookStore/DispatchServlet"/>
> 
> Thanks in advance.
> Nalini
> 
> 
> --- Alfonso Martinez <[EMAIL PROTECTED]>
> wrote:
> > I am not really sure about your form sintax:
> > 
> >  > page='DispatchServlet'/> >
> > ...
> > 
> > try 
> > 
> > 
> > ...
> > 
> > I hope this helps.
> > 
> > 
> > Jose Alfonso
> > 
> > 
> > On Thu, Oct 31, 2002 at 09:16:19AM -0800, Nalini
> > wrote:
> > > Hi,
> > > 
> > > I am writing my first JSP, servlets application
> > using
> > > Tomcat 4.1 server. I have a Win 98 machine.
> > > I created a directory called "BookSource" under
> > ROOT
> > > under webapps.
> > > This is my directory structure.
> > > C:\jakarta-tomcat\webapps\ROOT\BookSource
> > > 
> > > I have web-inf and login.jsp under this directory.
> > > Under web-inf I have classes sub-directory and
> > > web.xml.
> > > I have DispatchServlet.class(under
> > package/directory
> > > BookStore) under the classes sub-directory.
> > > 
> > > My web.xml is 
> > > 
> > > 
> > >  
> > >  > doctype...)> 
> > >  
> > >  
> > > DispatchServlet 
> > > This servlet plays the "controller"
> > role
> > > in the MVC architecture used in this application.
> > It
> > > is generally mapped to the ".do" filename
> > extension
> > > with a servlet-mapping element, and all form
> > submits
> > > in the app will be submitted to a request URI like
> > > "saveCustomer.do", which will therefore be mapped
> > to
> > > this servlet. The initialization parameter namess
> > for
> > > this servlet are the "servlet path" that will be
> > > received by this servlet (after the filename
> > extension
> > > is removed). The corresponding value is the name
> > of
> > > the action class that will be used to process this
> > > request. 
> > >
> >
> BookStore.DispatchServlet
> > > 
> > >   
> > > 5 
> > >  
> > >  
> > > 30 
> > >  
> > >  
> > > 
> > > 
> > > 
> > > and my login.jsp is 
> > > 
> > > 
> > > 
> > > 
> > > Book Store Login Page
> > > 
> > > 
> > >  > > page='DispatchServlet'/> >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > I am getting the error when I try to load the page
> > 
> > > http://localhost:8080/BookSource/login.jsp
> > > 
> > > HTTP Status 404 - /BookSource/DispatchServlet
> > > 
> > >
> >
> 
> > > 
> > > type Status report
> > > 
> > > message /BookSource/DispatchServlet
> > > 
> > > description The requested resource
> > > (/BookSource/DispatchServlet) is not available.
> > > 
> > > 
> > >
> >
> 
> > > 
> > > Apache Tomcat/4.1.12-LE-jdk14
> > > 
> > > 
> > > Could someone help me fix this problem. thanks in
> > > advance.
> > > 
> > > 
> > > 
> > > __
> > > Do you Yahoo!?
> > > HotJobs - Search new jobs daily now
> > > http://hotjobs.yahoo.com/
> > > 
> > > --
> > > To unsubscribe, e-mail:  
> > 
> > > For additional commands, e-mail:
> > 
> > > 
> 
> 
> __
> Do you Yahoo!?
> HotJobs - Search new jobs daily now
> http://hotjobs.yahoo.com/
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 

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




Re: Form auth

2002-11-01 Thread Jose Alfonso Martinez
Jan, I guess I cannot understand your problem. The way I do it on my site is very 
simple:

A loginform on the front page. 
When the user logs in, get the user permissions from the database and store them in 
the session.
Then, JSPs are rendered accordingly depending on those permissions. 

I guess most sites use this approach. I think you could do it the same way too. 
Couldn't you?? Simply:

if the user has some permissions -> render the page some way
if the user does not have permissions -> render it some other way
if the user has not logged in at all -> render it some other way...

Jose Alfonso

On Nov 01, 2002 at 10:18:17AM +0100, Jan Agermose wrote:
> Im used to work in a different way - not using declarative security. Might
> be the real problem :-) It seams, that this decleartive security thing is
> good for resources that are allways protected or not. My pages are mostly
> partly secured in that all users can access some page but some items on the
> page are displayed only if the user is logged in. Or a page that is
> displayed in a context. In one context it is OK to see the page and
> depending on some parameter (the context) it might not be ok. Runtime
> checked security. I really need to have the user login at will not foreced -
> but allso foreced of cause. This idea of a button and a fake-secured-page
> that forces a login prompt. I really want a loginform on the frontpage. I
> dont want the user to have to klik a button only to get to the loginscreen
> af submit that one. I cannot change a design just because of a "design flaw"
> in the backend code ;-) I really should be possible to submit login
> information on free will.
> 
> Allso what You described below seams to be exacly what is allready
> implementet in formauth method?
> 
> Jan
> 
> 
> - Original Message -
> From: "Alfonso Martinez" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, November 01, 2002 6:00 AM
> Subject: Re: Form auth
> 
> 
> > One way to do this is to create a filter for the protected resources. When
> accessing them, the filter gets invoked. It checks on the session wheter the
> user has already logged in or not. If not, it redirects to the login page
> which in turn redirects to the protected resouce. What do you guys think
> about this approach???
> >
> > Jose Alfonso
> >
> > On Thu, Oct 31, 2002 at 10:19:16AM -0800, Craig R. McClanahan wrote:
> > >
> > >
> > > On Thu, 31 Oct 2002, Jan Agermose wrote:
> > >
> > > > Date: Thu, 31 Oct 2002 17:15:08 +0100
> > > > From: Jan Agermose <[EMAIL PROTECTED]>
> > > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > > To: 'Tomcat Users tomcat <[EMAIL PROTECTED]>
> > > > Subject: Form auth
> > > >
> > > > I would like to use formbased auth for my application, but it seams,
> that it is based on
> > > > 1. user trying to access som resource
> > > > 2. if not logged in - prompt
> > >
> > > That's correct.  From the user point of view, it operates exactly like
> > > BASIC authentication does (where the browser pops up the login dialog
> the
> > > first time you ask for a protected resource).
> > >
> > > >
> > > > This is of cause good. But usualy you have a webpage that has a
> > > > login-form somewhere on the page to allow the user to log in at will.
> > > > Log in -before- a secured page is requested. How can I implement this?
> I
> > > > find only methods to getRemoteUser and isInRole and... no
> setRemoteUser
> > > > or the like...
> > > >
> > >
> > > You won't be able to have the login form itself on the unsecured page,
> but
> > > you can easily provide a "Log In" button (say, on your home page) like
> > > this:
> > >
> > > * Make the log in button link to a resource in a protected directory
> > >
> > > * Make that resource just do a redirect back to the home page
> > >
> > > When the user clicks the log in button, the form based login page gets
> > > displayed (because the resource is protected).  After login is complete,
> > > Tomcat then executes the protected resource, which redirects back to the
> > > home page with the user being logged on already.
> > >
> > > > Am I making sense :-)
> > > >
> > > > Jan
> > >
> > > Craig
> > >
> > >
> > >
> > > --
> > > 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: 




auto config listener not working with jk2/Apache2/Tomcat4.1.12 ?

2002-11-01 Thread M. Hockings
Hi all,

I am trying to get the auto config stuff working between Apache and 
Tomcat.  This is with Apache 2.0.43 and Tomcat 4.1.12 with mod_jk2.

I have my server.xml using listeners with 
org.apache.ajp.tomcat4.config.ApacheConfig but it appears to generate a 
config file tailored to mod_jk.  That is there are statements generated like


Loadmodule k_module modules/mod_k.dll


and

JkMount /admin/*.jsp apj13

that are not well received by Apache

Peeking in the java for ApacheConfig I see that these sort of things are 
hard coded so I presume that ApacheConfig is designed specifically for 
mod_jk.  Is there a listener class tailored for mod_jk2 or should I 
tinker in the java to make it work for mod_jk2 ?

Or, and quite possibly, am I just confused?

Kind regards,

Mike




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



Re: adding context

2002-11-01 Thread Jonathan Zhang
I found the problem, your right, I removed .  and I understand
what path and context are now:)
thanks.

- Original Message -
From: "M. Hockings" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 5:32 PM
Subject: Re: adding context


> Hi Jonathan,
>
> First of all understand that I am not as expert as some on the list but
> I learn reasonably well by example.  Yes, you can put context's where
> ever you like (as far as I know).  I have locations defined in my
> current setup.
>
> I notice that you ended the context statement with a "/>"  does this
> mean that you have removed the logger statement & all the rest of the
> stuff that is there by default (including the closing )?  I
> ask this because you seemed to be trying to re-define the root context
> (and maybe that is the problem).  If that is not the case maybe you need
> to set the path to something sensible ("C:/" ain't).
>
> So to answer to http://localhost:8080/my-context  maybe do something like:
>
>  debug="0" reloadable="true"/>
>
> If you are trying to change where http://localhost:8080/ would look for
> content then maybe you want to change the  appbase?  I've not
> tried doing that (yet) but the server.xml seems to indicate that it is
> possible.
>
> Mike
>
>
> Jonathan Zhang wrote:
>
> >I tried that, and a couple of other variations like
> >
> > but it still gave me the same nullPointer exception.why?
> >thanks for the help
> >
> >- Original Message -
> >From: "M. Hockings" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Friday, November 01, 2002 4:13 PM
> >Subject: Re: adding context
> >
> >
> >
> >
> >>Try using forward slashes for  the directory delimiter?
> >>
> >>
> >>
> >>Mike
> >>
> >>
> >>Jonathan Zhang wrote:
> >>
> >>
> >>
> >>>hi Guys,
> >>>I'm running tomcat 4.x on windows xp and I'm trying to add a context to
> >>>
> >>>
> >>>I get the following exception:
> >>>
> >>>Starting service Tomcat-Standalone
> >>>Apache Tomcat/4.1.12
> >>>java.lang.NullPointerException
> >>>   at java.io.File.(File.java:180)
> >>>   at
> >>>
> >>>
> >org.apache.catalina.core.StandardContext.getBasePath(StandardContext.
> >
> >
> >>>java:3833)
> >>>   at
> >>>
> >>>
> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3
> >
> >
> >>>397)
> >>>   at
> >>>
> >>>
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >
> >
> >>>   at
> >>>
> >>>
> >org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> >
> >
> >>>   at
> >>>
> >>>
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >
> >
> >>>   at
> >>>
> >>>
> >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
> >
> >
> >>>)
> >>>   at
> >>>
> >>>
> >org.apache.catalina.core.StandardService.start(StandardService.java:4
> >
> >
> >>>97)
> >>>   at
> >>>
> >>>
> >org.apache.catalina.core.StandardServer.start(StandardServer.java:218
> >
> >
> >>>9)
> >>>   at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
> >>>   at
> >>>
> >>>
> >org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> >
> >
> >>>   at
> >>>
> >>>
> >org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> >
> >
> >>>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>   at
> >>>
> >>>
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> >
> >
> >>>java:39)
> >>>   at
> >>>
> >>>
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> >
> >
> >>>sorImpl.java:25)
> >>>   at java.lang.reflect.Method.invoke(Method.java:324)
> >>>   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> >>>
> >>>thanks for the help
> >>>
> >>>
> >>>
> >>>
> >>>
> >>--
> >>
> >>Note new email address -> [EMAIL PROTECTED] <-
> >>
> >>Mike's Page   :  http://www.hockings.net/~mike
> >>Rifle Shooting in Ontario :  http://www.hockings.net/rso/
> >>Scarborough Rifle Club:  http://www.hockings.net/rso/src/
> >>Canadian Shooting Sports  :  http://www.CdnShootingSports.org
> >>Ontario Rifle Association :  http://www.OntarioRifleAssociation.org
> >>
> >>
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:
> >>
> >>
> >
> >
> >
> >>For additional commands, e-mail:
> >>
> >>
> >
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:

> >For additional commands, e-mail:

> >
> >
> >
>
> --
>
> Note new email address -> [EMAIL PROTECTED] <-
>
> Mike's Page   :  http://www.hockings.net/~mike
> Rifle Shooting in Ontario :  http://www.hockings.net/rso/
> Scarborough Rifle Club:  http://www.hockings.net/rso/src/
> Canadian Shooting Sports  :  http://www.CdnShootingSports.org
> Ontario Rifle Association :  http://www.

Re: adding context

2002-11-01 Thread Jan-Michael Ong
That is correct. Realistically as long as the docBase is valid and writable 
by your tomcat user then you can place it anywhere.

Did the example stuff work for you? Let me know

JM

At 05:23 PM 11/1/2002 -0800, Jonathan Zhang wrote:

 So is it possible to add a context that's not within the tomcat root
directory. By tomcat root directory I mean C:\Program Files\Apache
Group\Tomcat 4.1\ as an example on my machine.
If I want to put my jsps in c:\some_dir, is that possible?

thanks for the help

-jonthan

- Original Message -
From: "Jan-Michael Ong" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Tomcat Users
List" <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 5:13 PM
Subject: Re: adding context


> Hi there,
>
> path is for url so your example below will fail
> 
>
> http://localhost:8080//path/to/servlet
>
> Does the examples work for you? http://localhost:8080/examples?
>
> How about removing this context and sticking with the basic build and
> enabling debugging (i.e. change debug from 0 to 1 on the )
>
> Finally check for stray characters in your MANIFEST-MF file. At least with
> ATG/Dynamo its very picky about its manifest file with ^M control chars.
>
> Good luck
>
> JM
>
>
> At 05:02 PM 11/1/2002 -0800, Jonathan Zhang wrote:
> >I tried that, and a couple of other variations like
> >
> >  but it still gave me the same nullPointer exception.why?
> >thanks for the help
> >
> >- Original Message -
> >From: "M. Hockings" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Friday, November 01, 2002 4:13 PM
> >Subject: Re: adding context
> >
> >
> > > Try using forward slashes for  the directory delimiter?
> > >
> > > 
> > >
> > > Mike
> > >
> > >
> > > Jonathan Zhang wrote:
> > >
> > > >hi Guys,
> > > >I'm running tomcat 4.x on windows xp and I'm trying to add a context
to
> > > > 
> > > >
> > > >I get the following exception:
> > > >
> > > >Starting service Tomcat-Standalone
> > > >Apache Tomcat/4.1.12
> > > >java.lang.NullPointerException
> > > >at java.io.File.(File.java:180)
> > > >at
> >org.apache.catalina.core.StandardContext.getBasePath(StandardContext.
> > > >java:3833)
> > > >at
> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3
> > > >397)
> > > >at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > >
> > > >at
> >org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > > >at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > >
> > > >at
> >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
> > > >)
> > > >at
> >org.apache.catalina.core.StandardService.start(StandardService.java:4
> > > >97)
> > > >at
> >org.apache.catalina.core.StandardServer.start(StandardServer.java:218
> > > >9)
> > > >at
org.apache.catalina.startup.Catalina.start(Catalina.java:510)
> > > >at
> >org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> > > >at
> >org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> > > >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
> > > >at
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > > >java:39)
> > > >at
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > > >sorImpl.java:25)
> > > >at java.lang.reflect.Method.invoke(Method.java:324)
> > > >at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> > > >
> > > >thanks for the help
> > > >
> > > >
> > > >
> > >
> > > --
> > >
> > > Note new email address -> [EMAIL PROTECTED] <-
> > >
> > > Mike's Page   :  http://www.hockings.net/~mike
> > > Rifle Shooting in Ontario :  http://www.hockings.net/rso/
> > > Scarborough Rifle Club:  http://www.hockings.net/rso/src/
> > > Canadian Shooting Sports  :  http://www.CdnShootingSports.org
> > > Ontario Rifle Association :  http://www.OntarioRifleAssociation.org
> > >
> > >
> > >
> > >
> > > --
> > > 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: adding context

2002-11-01 Thread M. Hockings
Yes, it is possible

Jonathan Zhang wrote:


So is it possible to add a context that's not within the tomcat root
directory. By tomcat root directory I mean C:\Program Files\Apache
Group\Tomcat 4.1\ as an example on my machine.
If I want to put my jsps in c:\some_dir, is that possible?

thanks for the help

-jonthan

- Original Message -
From: "Jan-Michael Ong" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Tomcat Users
List" <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 5:13 PM
Subject: Re: adding context


 

Hi there,

path is for url so your example below will fail


http://localhost:8080//path/to/servlet

Does the examples work for you? http://localhost:8080/examples?

How about removing this context and sticking with the basic build and
enabling debugging (i.e. change debug from 0 to 1 on the )

Finally check for stray characters in your MANIFEST-MF file. At least with
ATG/Dynamo its very picky about its manifest file with ^M control chars.

Good luck

JM


At 05:02 PM 11/1/2002 -0800, Jonathan Zhang wrote:
   

I tried that, and a couple of other variations like

but it still gave me the same nullPointer exception.why?
thanks for the help

- Original Message -
From: "M. Hockings" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 4:13 PM
Subject: Re: adding context


 

Try using forward slashes for  the directory delimiter?



Mike


Jonathan Zhang wrote:

   

hi Guys,
I'm running tomcat 4.x on windows xp and I'm trying to add a context
 

to
 



I get the following exception:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
java.lang.NullPointerException
  at java.io.File.(File.java:180)
  at
 

org.apache.catalina.core.StandardContext.getBasePath(StandardContext.
 

java:3833)
  at
 

org.apache.catalina.core.StandardContext.start(StandardContext.java:3
 

397)
  at
 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 

  at
 

org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 

  at
 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 

  at
 

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
 

)
  at
 

org.apache.catalina.core.StandardService.start(StandardService.java:4
 

97)
  at
 

org.apache.catalina.core.StandardServer.start(StandardServer.java:218
 

9)
  at
 

org.apache.catalina.startup.Catalina.start(Catalina.java:510)
 

  at
 

org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 

  at
 

org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 

Method)
 

  at
 

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 

java:39)
  at
 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 

sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
 

org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 

thanks for the help



 

--

Note new email address -> [EMAIL PROTECTED] <-

Mike's Page   :  http://www.hockings.net/~mike
Rifle Shooting in Ontario :  http://www.hockings.net/rso/
Scarborough Rifle Club:  http://www.hockings.net/rso/src/
Canadian Shooting Sports  :  http://www.CdnShootingSports.org
Ontario Rifle Association :  http://www.OntarioRifleAssociation.org




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

 


--

Note new email address -> [EMAIL PROTECTED] <-

Mike's Page   :  http://www.hockings.net/~mike
Rifle Shooting in Ontario :  http://www.hockings.net/rso/
Scarborough Rifle Club:  http://www.hockings.net/rso/src/
Canadian Shooting Sports  :  http://www.CdnShootingSports.org
Ontario Rifle Association :  http://www.OntarioRifleAssociation.org





Re: adding context

2002-11-01 Thread M. Hockings
Hi Jonathan,

First of all understand that I am not as expert as some on the list but 
I learn reasonably well by example.  Yes, you can put context's where 
ever you like (as far as I know).  I have locations defined in my 
current setup.

I notice that you ended the context statement with a "/>"  does this 
mean that you have removed the logger statement & all the rest of the 
stuff that is there by default (including the closing )?  I 
ask this because you seemed to be trying to re-define the root context 
(and maybe that is the problem).  If that is not the case maybe you need 
to set the path to something sensible ("C:/" ain't).

So to answer to http://localhost:8080/my-context  maybe do something like:



If you are trying to change where http://localhost:8080/ would look for 
content then maybe you want to change the  appbase?  I've not 
tried doing that (yet) but the server.xml seems to indicate that it is 
possible.

Mike


Jonathan Zhang wrote:

I tried that, and a couple of other variations like

but it still gave me the same nullPointer exception.why?
thanks for the help

- Original Message -
From: "M. Hockings" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 4:13 PM
Subject: Re: adding context


 

Try using forward slashes for  the directory delimiter?



Mike


Jonathan Zhang wrote:

   

hi Guys,
I'm running tomcat 4.x on windows xp and I'm trying to add a context to


I get the following exception:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
java.lang.NullPointerException
  at java.io.File.(File.java:180)
  at
 

org.apache.catalina.core.StandardContext.getBasePath(StandardContext.
 

java:3833)
  at
 

org.apache.catalina.core.StandardContext.start(StandardContext.java:3
 

397)
  at
 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 

  at
 

org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 

  at
 

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 

  at
 

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
 

)
  at
 

org.apache.catalina.core.StandardService.start(StandardService.java:4
 

97)
  at
 

org.apache.catalina.core.StandardServer.start(StandardServer.java:218
 

9)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
  at
 

org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 

  at
 

org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 

java:39)
  at
 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 

sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

thanks for the help



 

--

Note new email address -> [EMAIL PROTECTED] <-

Mike's Page   :  http://www.hockings.net/~mike
Rifle Shooting in Ontario :  http://www.hockings.net/rso/
Scarborough Rifle Club:  http://www.hockings.net/rso/src/
Canadian Shooting Sports  :  http://www.CdnShootingSports.org
Ontario Rifle Association :  http://www.OntarioRifleAssociation.org




--
To unsubscribe, e-mail:
   


 

For additional commands, e-mail:
   


 



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

 


--

Note new email address -> [EMAIL PROTECTED] <-

Mike's Page   :  http://www.hockings.net/~mike
Rifle Shooting in Ontario :  http://www.hockings.net/rso/
Scarborough Rifle Club:  http://www.hockings.net/rso/src/
Canadian Shooting Sports  :  http://www.CdnShootingSports.org
Ontario Rifle Association :  http://www.OntarioRifleAssociation.org





Re: Compiling Servlets

2002-11-01 Thread Pae Choi
"javac" with "servlet.jar" + "more" JARs perhaps if the
servlet contains dependencies. But not "less".

i think that will do the job. :-)


pae


- Original Message -
From: "Ben Austin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 1:54 PM
Subject: Compiling Servlets


> What software would you recommend for compiling servlets?
>
>
>
>
>
> _
> Choose an Internet access plan right for you -- try MSN!
> http://resourcecenter.msn.com/access/plans/default.asp
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Re: adding context

2002-11-01 Thread Jonathan Zhang

 So is it possible to add a context that's not within the tomcat root
directory. By tomcat root directory I mean C:\Program Files\Apache
Group\Tomcat 4.1\ as an example on my machine.
If I want to put my jsps in c:\some_dir, is that possible?

thanks for the help

-jonthan

- Original Message -
From: "Jan-Michael Ong" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Tomcat Users
List" <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 5:13 PM
Subject: Re: adding context


> Hi there,
>
> path is for url so your example below will fail
> 
>
> http://localhost:8080//path/to/servlet
>
> Does the examples work for you? http://localhost:8080/examples?
>
> How about removing this context and sticking with the basic build and
> enabling debugging (i.e. change debug from 0 to 1 on the )
>
> Finally check for stray characters in your MANIFEST-MF file. At least with
> ATG/Dynamo its very picky about its manifest file with ^M control chars.
>
> Good luck
>
> JM
>
>
> At 05:02 PM 11/1/2002 -0800, Jonathan Zhang wrote:
> >I tried that, and a couple of other variations like
> >
> >  but it still gave me the same nullPointer exception.why?
> >thanks for the help
> >
> >- Original Message -
> >From: "M. Hockings" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Friday, November 01, 2002 4:13 PM
> >Subject: Re: adding context
> >
> >
> > > Try using forward slashes for  the directory delimiter?
> > >
> > > 
> > >
> > > Mike
> > >
> > >
> > > Jonathan Zhang wrote:
> > >
> > > >hi Guys,
> > > >I'm running tomcat 4.x on windows xp and I'm trying to add a context
to
> > > > 
> > > >
> > > >I get the following exception:
> > > >
> > > >Starting service Tomcat-Standalone
> > > >Apache Tomcat/4.1.12
> > > >java.lang.NullPointerException
> > > >at java.io.File.(File.java:180)
> > > >at
> >org.apache.catalina.core.StandardContext.getBasePath(StandardContext.
> > > >java:3833)
> > > >at
> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3
> > > >397)
> > > >at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > >
> > > >at
> >org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > > >at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > >
> > > >at
> >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
> > > >)
> > > >at
> >org.apache.catalina.core.StandardService.start(StandardService.java:4
> > > >97)
> > > >at
> >org.apache.catalina.core.StandardServer.start(StandardServer.java:218
> > > >9)
> > > >at
org.apache.catalina.startup.Catalina.start(Catalina.java:510)
> > > >at
> >org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> > > >at
> >org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> > > >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
> > > >at
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > > >java:39)
> > > >at
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > > >sorImpl.java:25)
> > > >at java.lang.reflect.Method.invoke(Method.java:324)
> > > >at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> > > >
> > > >thanks for the help
> > > >
> > > >
> > > >
> > >
> > > --
> > >
> > > Note new email address -> [EMAIL PROTECTED] <-
> > >
> > > Mike's Page   :  http://www.hockings.net/~mike
> > > Rifle Shooting in Ontario :  http://www.hockings.net/rso/
> > > Scarborough Rifle Club:  http://www.hockings.net/rso/src/
> > > Canadian Shooting Sports  :  http://www.CdnShootingSports.org
> > > Ontario Rifle Association :  http://www.OntarioRifleAssociation.org
> > >
> > >
> > >
> > >
> > > --
> > > 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: adding context

2002-11-01 Thread Jan-Michael Ong
Hi there,

path is for url so your example below will fail


http://localhost:8080//path/to/servlet

Does the examples work for you? http://localhost:8080/examples?

How about removing this context and sticking with the basic build and 
enabling debugging (i.e. change debug from 0 to 1 on the )

Finally check for stray characters in your MANIFEST-MF file. At least with 
ATG/Dynamo its very picky about its manifest file with ^M control chars.

Good luck

JM


At 05:02 PM 11/1/2002 -0800, Jonathan Zhang wrote:
I tried that, and a couple of other variations like

 but it still gave me the same nullPointer exception.why?
thanks for the help

- Original Message -
From: "M. Hockings" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 4:13 PM
Subject: Re: adding context


> Try using forward slashes for  the directory delimiter?
>
> 
>
> Mike
>
>
> Jonathan Zhang wrote:
>
> >hi Guys,
> >I'm running tomcat 4.x on windows xp and I'm trying to add a context to
> > 
> >
> >I get the following exception:
> >
> >Starting service Tomcat-Standalone
> >Apache Tomcat/4.1.12
> >java.lang.NullPointerException
> >at java.io.File.(File.java:180)
> >at
org.apache.catalina.core.StandardContext.getBasePath(StandardContext.
> >java:3833)
> >at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
> >397)
> >at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >
> >at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> >at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >
> >at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
> >)
> >at
org.apache.catalina.core.StandardService.start(StandardService.java:4
> >97)
> >at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
> >9)
> >at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
> >at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> >at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> >java:39)
> >at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> >sorImpl.java:25)
> >at java.lang.reflect.Method.invoke(Method.java:324)
> >at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> >
> >thanks for the help
> >
> >
> >
>
> --
>
> Note new email address -> [EMAIL PROTECTED] <-
>
> Mike's Page   :  http://www.hockings.net/~mike
> Rifle Shooting in Ontario :  http://www.hockings.net/rso/
> Scarborough Rifle Club:  http://www.hockings.net/rso/src/
> Canadian Shooting Sports  :  http://www.CdnShootingSports.org
> Ontario Rifle Association :  http://www.OntarioRifleAssociation.org
>
>
>
>
> --
> 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: adding context

2002-11-01 Thread Jonathan Zhang
I tried that, and a couple of other variations like

 but it still gave me the same nullPointer exception.why?
thanks for the help

- Original Message -
From: "M. Hockings" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 4:13 PM
Subject: Re: adding context


> Try using forward slashes for  the directory delimiter?
>
> 
>
> Mike
>
>
> Jonathan Zhang wrote:
>
> >hi Guys,
> >I'm running tomcat 4.x on windows xp and I'm trying to add a context to
> > 
> >
> >I get the following exception:
> >
> >Starting service Tomcat-Standalone
> >Apache Tomcat/4.1.12
> >java.lang.NullPointerException
> >at java.io.File.(File.java:180)
> >at
org.apache.catalina.core.StandardContext.getBasePath(StandardContext.
> >java:3833)
> >at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
> >397)
> >at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >
> >at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> >at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >
> >at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
> >)
> >at
org.apache.catalina.core.StandardService.start(StandardService.java:4
> >97)
> >at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
> >9)
> >at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
> >at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> >at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> >java:39)
> >at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> >sorImpl.java:25)
> >at java.lang.reflect.Method.invoke(Method.java:324)
> >at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> >
> >thanks for the help
> >
> >
> >
>
> --
>
> Note new email address -> [EMAIL PROTECTED] <-
>
> Mike's Page   :  http://www.hockings.net/~mike
> Rifle Shooting in Ontario :  http://www.hockings.net/rso/
> Scarborough Rifle Club:  http://www.hockings.net/rso/src/
> Canadian Shooting Sports  :  http://www.CdnShootingSports.org
> Ontario Rifle Association :  http://www.OntarioRifleAssociation.org
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: Servlet redirection problem

2002-11-01 Thread Mike Jackson
Oops, I ment to say "Why redirect"...

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Mike Jackson [mailto:mjackson@;cdi-hq.com]
> Sent: Friday, November 01, 2002 4:24 PM
> To: Tomcat Users List
> Subject: RE: Servlet redirection problem
>
>
> While redirect?  You could do the parameters as request
> attributes and use a
> dispatcher...
>
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
>
> > -Original Message-
> > From: Tam, Michael [mailto:mtam@;PFC.Forestry.CA]
> > Sent: Friday, November 01, 2002 4:13 PM
> > To: Tomcat UserList (E-mail)
> > Subject: Servlet redirection problem
> >
> >
> > Hi all,
> >
> > I am running Tomcat 4.1.12 + Apache 1.3.27 with mod_webapp on Win2k pro
> > machine.  I have a doPost() in a servlet which at the end would
> > redirects to
> > a url with a query string (e.g.
> > newurl?VALUE1=abc&VALUE2=def) by calling respond.sendRedirect().
> >
> > The servlet did redirect to the target url but the query string is
> > scrambled.  From the given example, my resulting url becomes --->
> > newurl?value1=abc&value2=d&VAULE1=abc&VALUE2=def  [Please pay
> attention to
> > the case the parameters].  It seems like I have a addition query string
> > (with incomplete value) attach to the url before my original url.
> >
> >
> > Any input would be appreciated. Thank you.
> >
> > Regards,
> > Michael
> >
> >
> > --
> > --
> > ---
> > Michael Tam - NFI Database Developer   Natural
> > Resources Canada
> > [EMAIL PROTECTED] Pacific Forestry
> > Center
> > Phone: (250) 363-8074   506
> > West Burnside
> > Road
> > Fax: (250) 363-0775 Victoria, BC
> > V8Z 1M5
> >
> >
> >
> >
> > --
> > 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: Servlet redirection problem

2002-11-01 Thread Mike Jackson
While redirect?  You could do the parameters as request attributes and use a
dispatcher...

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Tam, Michael [mailto:mtam@;PFC.Forestry.CA]
> Sent: Friday, November 01, 2002 4:13 PM
> To: Tomcat UserList (E-mail)
> Subject: Servlet redirection problem
>
>
> Hi all,
>
> I am running Tomcat 4.1.12 + Apache 1.3.27 with mod_webapp on Win2k pro
> machine.  I have a doPost() in a servlet which at the end would
> redirects to
> a url with a query string (e.g.
> newurl?VALUE1=abc&VALUE2=def) by calling respond.sendRedirect().
>
> The servlet did redirect to the target url but the query string is
> scrambled.  From the given example, my resulting url becomes --->
> newurl?value1=abc&value2=d&VAULE1=abc&VALUE2=def  [Please pay attention to
> the case the parameters].  It seems like I have a addition query string
> (with incomplete value) attach to the url before my original url.
>
>
> Any input would be appreciated. Thank you.
>
> Regards,
> Michael
>
>
> --
> --
> ---
> Michael Tam - NFI Database Developer   Natural
> Resources Canada
> [EMAIL PROTECTED]   Pacific Forestry
> Center
> Phone: (250) 363-8074 506
> West Burnside
> Road
> Fax: (250) 363-0775   Victoria, BC
> V8Z 1M5
>
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




Servlet redirection problem

2002-11-01 Thread Tam, Michael
Hi all,

I am running Tomcat 4.1.12 + Apache 1.3.27 with mod_webapp on Win2k pro
machine.  I have a doPost() in a servlet which at the end would redirects to
a url with a query string (e.g.
newurl?VALUE1=abc&VALUE2=def) by calling respond.sendRedirect().   

The servlet did redirect to the target url but the query string is
scrambled.  From the given example, my resulting url becomes --->
newurl?value1=abc&value2=d&VAULE1=abc&VALUE2=def  [Please pay attention to
the case the parameters].  It seems like I have a addition query string
(with incomplete value) attach to the url before my original url.  


Any input would be appreciated. Thank you.

Regards,
Michael



---
Michael Tam - NFI Database Developer   Natural
Resources Canada
[EMAIL PROTECTED] Pacific Forestry
Center
Phone: (250) 363-8074   506 West Burnside
Road
Fax: (250) 363-0775 Victoria, BC
V8Z 1M5




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




Re: adding context

2002-11-01 Thread M. Hockings
Try using forward slashes for  the directory delimiter?



Mike


Jonathan Zhang wrote:


hi Guys,
I'm running tomcat 4.x on windows xp and I'm trying to add a context to


I get the following exception:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
java.lang.NullPointerException
   at java.io.File.(File.java:180)
   at org.apache.catalina.core.StandardContext.getBasePath(StandardContext.
java:3833)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
397)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

   at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
   at org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:218
9)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

thanks for the help

 


--

Note new email address -> [EMAIL PROTECTED] <-

Mike's Page   :  http://www.hockings.net/~mike
Rifle Shooting in Ontario :  http://www.hockings.net/rso/
Scarborough Rifle Club:  http://www.hockings.net/rso/src/
Canadian Shooting Sports  :  http://www.CdnShootingSports.org
Ontario Rifle Association :  http://www.OntarioRifleAssociation.org




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




adding context

2002-11-01 Thread Jonathan Zhang
hi Guys,
I'm running tomcat 4.x on windows xp and I'm trying to add a context to
 

I get the following exception:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
java.lang.NullPointerException
at java.io.File.(File.java:180)
at org.apache.catalina.core.StandardContext.getBasePath(StandardContext.
java:3833)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
397)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:218
9)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

thanks for the help



RE: Help: How to Capture Error Msgs/Exceptions when Tomcat Die.

2002-11-01 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
you could check the Windows Event Viewer

-Original Message-
From: CHAO,KENT (HP-Boise,ex1) [mailto:kent_chao@;hp.com]
Sent: Friday, November 01, 2002 3:57 PM
To: 'Tomcat Users List'
Subject: Help: How to Capture Error Msgs/Exceptions when Tomcat Die.


I am new to this group.  I posted this question a few days ago, but didn't
get any responses. Maybe I did something wrong.  So I re-posted this
question.

Symptom:

I have a Tomcat application, running with Apache (1.3.26) and Tomcat (3.3)
in W2k with sp3.  I experienced Tomcat died several times (freq: once a
week), while Apache remained running.

Question 1: Where I can capture the last exception or other error messages
before Tomcat died? I need to find out what caused Tomcat to die first,
before I can take steps to fix the problem.

Does any one experience similar situation?


When I said Tomcat died, I mean:
  In W2k service mode, it simply stopped.
  In non-service mode and in the same command window, a prompt was displayed
and no more log4j messages on display.

The application did generate Log4j messages in log files at ~\tomcat\logs.
I cannot find any Exceptions at end of file.

Any suggestions are welcome.

thx in advance.

Kent







--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Help: How to Capture Error Msgs/Exceptions when Tomcat Die.

2002-11-01 Thread CHAO,KENT (HP-Boise,ex1)
I am new to this group.  I posted this question a few days ago, but didn't
get any responses. Maybe I did something wrong.  So I re-posted this
question.

Symptom:

I have a Tomcat application, running with Apache (1.3.26) and Tomcat (3.3)
in W2k with sp3.  I experienced Tomcat died several times (freq: once a
week), while Apache remained running.

Question 1: Where I can capture the last exception or other error messages
before Tomcat died? I need to find out what caused Tomcat to die first,
before I can take steps to fix the problem.

Does any one experience similar situation?


When I said Tomcat died, I mean:
  In W2k service mode, it simply stopped.
  In non-service mode and in the same command window, a prompt was displayed
and no more log4j messages on display.

The application did generate Log4j messages in log files at ~\tomcat\logs.
I cannot find any Exceptions at end of file.

Any suggestions are welcome.

thx in advance.

Kent







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




Re: jk2.properties

2002-11-01 Thread Robert L Sowders
Instead of using the variable in workers2.properties for serverRoot, you 
can hard code it to where you've installed Apache

rls





"Maxime" <[EMAIL PROTECTED]>
11/01/2002 07:42 AM
Please respond to "Tomcat Users List"

 
To: "Tomcat Users List" <[EMAIL PROTECTED]>
cc: 
Subject:jk2.properties


Hello 

I attempt to use tomcat 4.1.10 and mod_jk2

my jk2.properties :

#Apache
serverRoot=/usr/local/apache
# list of needed handlers.
handler.list=apr,channelUnix,request
# Set the default port for the channelSocket
#channelSocket.port=8009
# Location of the socket.
channelUnix.file=${jkHome}/work/jk2.socket
# Dynamic library
apr.NativeSo=${jkHome}/lib/libjkjni.so

my /usr/local/apache/conf/worker2.properties :

[shm]
file=${serverRoot}/logs/shm.file
size=1048576
[channel.un:unixsocket]
file=/usr/local/tomcat/work/jk2.socket
[ajp13:unixsocket]
channel=channel.un:unixsocket
[uri:/myapp/*]
worker=ajp13:unixsocket

and my catalina.out

Starting service Tomcat-Standalone
Apache Tomcat/4.1.10-LE-jdk14
[Fri Nov 01 10:21:58 2002] (error ) [jk_config_file.c (261)] 
config.update(): Can't find config file 
${serverRoot}/conf/workers2.properties
[Fri Nov 01 10:21:58 2002] ( info ) [jk_config.c (246)] 
config.setAttribute() Error setting config: file 
${serverRoot}/conf/workers2.properties
[Fri Nov 01 10:21:58 2002] ( info ) [jk_logger_file.c (171)]  Initializing 
log file stderr
[Fri Nov 01 10:21:58 2002] (error ) [jk_shm.c (333)]  shm.init(): No file
[Fri Nov 01 10:21:58 2002] ( info ) [jk_workerEnv.c (403)] 
workerEnv.init() ok ${serverRoot}/conf/workers2.properties
Nov 1, 2002 10:21:58 AM org.apache.jk.common.ChannelUn init
INFO: JK: listening on unix socket: /usr/local/tomcat/work/jk2.socket
Nov 1, 2002 10:21:58 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=5/338 
config=/usr/local/tomcat/conf/jk2.properties


communication works but my questions are :

- How specifie path to apache in jk2.properties ? (nothing in 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configtc.html)
serverRoot don't work (as we can see, there are an error at line 3 of 
catalina.out)

- Why specifie this path in tomcat ?

thanks






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




Compiling Servlets

2002-11-01 Thread Ben Austin
What software would you recommend for compiling servlets?





_
Choose an Internet access plan right for you -- try MSN! 
http://resourcecenter.msn.com/access/plans/default.asp


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



RE: Not able to see server-side messages

2002-11-01 Thread Hari Venkatesan
The window that you see is the Console. The log files would be in
C:\Tomcat4.1.12\logs.  

Hari Venkatesan
Performance Food Group
Phone : 804 484 6263


-Original Message-
From: pkrishnaswami [mailto:pkrishna@;learnframe.com] 
Sent: Friday, November 01, 2002 4:31 PM
To: 'Tomcat Users List'
Subject: RE: Not able to see server-side messages

Yes, I got it to maximize but this looks like a Java Swing application.
Does the TOMCAT server write its log messages to any log file? Is there
a Java Console where we can see the server-side println?

Prabhakar

-Original Message-
From: Hari Venkatesan [mailto:hvenkatesan@;pfgc.com]
Sent: Friday, November 01, 2002 2:18 PM
To: Tomcat Users List
Subject: RE: Not able to see server-side messages


Right click right on the top bar where you see C:\Tomcat\ etc., (ie
where you see the maximize, minimize, close (x) buttons). 

Hari Venkatesan
Performance Food Group
Phone : 804 484 6263


-Original Message-
From: pkrishnaswami [mailto:pkrishna@;learnframe.com] 
Sent: Friday, November 01, 2002 4:15 PM
To: 'Tomcat Users List'
Subject: RE: Not able to see server-side messages

 I agree System.out.println will work if its a normal Dos window. Here
it seems to be a Java Gui application which seems to startup and becomes
a minimized icon in the task bar. Right-clicking the icon does not show
a properties option.

Prabhakar

-Original Message-
From: Hari Venkatesan [mailto:hvenkatesan@;pfgc.com]
Sent: Friday, November 01, 2002 1:48 PM
To: Tomcat Users List
Subject: RE: Not able to see server-side messages


Try System.out.println. To maximize the window, right click the window
and you can define the properties

Hari Venkatesan
Performance Food Group
Phone : 804 484 6263


-Original Message-
From: pkrishnaswami [mailto:pkrishna@;learnframe.com] 
Sent: Friday, November 01, 2002 3:46 PM
To: 'Tomcat Users List'
Subject: Not able to see server-side messages


Is there a way to see print messages from Servlets\JSP in a TOMCAT env.
Currently, when I startup TOMCAT in Windows 2000, the application runs
in a
small window which can't be maximized.

Prabhakar


--
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: [Win32] Tomcat 5.0 -- JavaSDK problem

2002-11-01 Thread Robert L Sowders
Interesting,

I didn't know that windows allowed the convention of the "." in PATH 
statements,

CLASSPATH=.;f:\jakarta-tomcat-5.0\common\lib\servlet.jar; 
___^

rls





[EMAIL PROTECTED] (Juergen Heckel)
11/01/2002 02:54 AM
Please respond to "Tomcat Users List"

 
To: [EMAIL PROTECTED]
cc: 
Subject:[Win32] Tomcat 5.0 -- JavaSDK problem


Hi,
first Apache 2.0.44-dev and Tomcat 5.0 are running fine, Apache is 
starting Tomcat; with http://localhost:8080 I see the Tomcat startpage.

But testing a JSP 2.0 example in the application manager e.g. 
/jsp-examples/basic_comparisons.jsp fails.

 From stderr.log:
01.11.2002 11:36:33 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=20/230 
config=f:\jakarta-tomcat-5.0\conf\jk2.properties
01.11.2002 11:37:04 org.apache.jasper.compiler.Compiler generateClass
SCHWERWIEGEND: Javac execption
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java)
 at 
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java)
 at 
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java)
 at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:373)
 at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:414)

The javac.exe IS in the path (i can start it from elsewhere),
PATH=f:\j2sdk1.4.1_01;f:\j2sdk1.4.1_01\bin
JAVA_HOME=f:/j2sdk1.4.1_01
CLASSPATH=.;f:\jakarta-tomcat-5.0\common\lib\servlet.jar; 
f:\jakarta-tomcat-5.0\common\lib\tools.jar;f:\jakarta-tomcat-5.0\bin\boo
tstrap.jar;


Please can someone help me?

Juergen

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





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




RE: Can access a resource from an already installed application

2002-11-01 Thread pkrishnaswami
Doing ant install when the TOMCAT server is up, seems to copy the web
application to directory jwsdp-1_0_01\work\Standard Engine\localhost\. From this point on I am able to access my web resources. But
once I shutdown the server and bring it up again, I can't seem to access the
same resource. I have redo an ant install to access the resources again. Is
there a reason for this.

Prabhakar

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


RE: Not able to see server-side messages

2002-11-01 Thread pkrishnaswami
Yes, I got it to maximize but this looks like a Java Swing application. Does
the TOMCAT server write its log messages to any log file? Is there a Java
Console where we can see the server-side println?

Prabhakar

-Original Message-
From: Hari Venkatesan [mailto:hvenkatesan@;pfgc.com]
Sent: Friday, November 01, 2002 2:18 PM
To: Tomcat Users List
Subject: RE: Not able to see server-side messages


Right click right on the top bar where you see C:\Tomcat\ etc., (ie
where you see the maximize, minimize, close (x) buttons). 

Hari Venkatesan
Performance Food Group
Phone : 804 484 6263


-Original Message-
From: pkrishnaswami [mailto:pkrishna@;learnframe.com] 
Sent: Friday, November 01, 2002 4:15 PM
To: 'Tomcat Users List'
Subject: RE: Not able to see server-side messages

 I agree System.out.println will work if its a normal Dos window. Here
it seems to be a Java Gui application which seems to startup and becomes
a minimized icon in the task bar. Right-clicking the icon does not show
a properties option.

Prabhakar

-Original Message-
From: Hari Venkatesan [mailto:hvenkatesan@;pfgc.com]
Sent: Friday, November 01, 2002 1:48 PM
To: Tomcat Users List
Subject: RE: Not able to see server-side messages


Try System.out.println. To maximize the window, right click the window
and you can define the properties

Hari Venkatesan
Performance Food Group
Phone : 804 484 6263


-Original Message-
From: pkrishnaswami [mailto:pkrishna@;learnframe.com] 
Sent: Friday, November 01, 2002 3:46 PM
To: 'Tomcat Users List'
Subject: Not able to see server-side messages


Is there a way to see print messages from Servlets\JSP in a TOMCAT env.
Currently, when I startup TOMCAT in Windows 2000, the application runs
in a
small window which can't be maximized.

Prabhakar


--
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: Strange JDBC Error

2002-11-01 Thread John Mattos

Yes, as follows
  
  Clearinghouse DB Connectio
   jdbc/indemand
   com.microsoft.jdbcx.sqlserver.SQLServerDataSource
   Container
  
 Hari Venkatesan <[EMAIL PROTECTED]> wrote:Did you define the datasource in 
web.xml? ?

Hari Venkatesan
Performance Food Group
Phone : 804 484 6263


-Original Message-
From: John Mattos [mailto:mattosj@;yahoo.com] 
Sent: Friday, November 01, 2002 3:52 PM
To: Tomcat Users List
Subject: Strange JDBC Error


I'm using a JDBC Datasource with Tomcat 4.1.12 as follows.

Server.xml snippet:

type="javax.sql.DataSource"/>



validationQuery
select top 100 * from Subscriber




url

jdbc:microsoft:sqlserver://vc34:1433;databaseName=TibcoClearHouse





password
tibco_user




maxActive
10




maxWait
5000




driverClassName

com.microsoft.jdbcx.sqlserver.SQLServerDataSource




username
tibco_user




maxIdle
2




END OF Server.xml Snippet

When I cause a database access within my application, I get the
following horrifying result. It's the "Error Establishing Socket" error
that's worrying me, as I'm using the native Microsoft SQL Server
Drivers. The ones in my lib directory are msutil.jar, msutil.jar, and
mssqlserver.jar

Any thoughts?

John

java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error
establishing socket.
at
com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown
Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSConnection.(Unknown
Source)
at
com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown
Source)
at
com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown
Source)
at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at
com.thoughtworks.util.pool.JDCConnectionPool.getConnection(JDCConnection
Pool.java:174)
at
com.thoughtworks.clearinghouse.util.ConnectionFactory.createConnectionFo
rTibco(ConnectionFactory.java:59)
at
com.thoughtworks.clearinghouse.util.ConnectionFactory.createConnection(C
onnectionFactory.java:40)
at
com.thoughtworks.clearinghouse.util.DatabaseUtility.getUserByName(Databa
seUtility.java:123)
at
com.thoughtworks.clearinghouse.web.service.UserProfileService.validateUs
erNamePassword(UserProfileService.jav
a:16)
at
com.thoughtworks.clearinghouse.web.servlet.LogonAction.actionExecuted(Lo
gonAction.java:48)
at
com.thoughtworks.clearinghouse.web.servlet.AbstractAction.execute(Abstra
ctAction.java:38)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:437)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
264)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:239
6)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core

RE: mod_jk build problems

2002-11-01 Thread Sinclair, Alan (CORP, GEAccess)
I had many hassles at first with building mod_jk on Solaris. I strongly urge
building with GNU make, not the Solaris make. There are subtle differences
between the GNU and Solaris versions. Make sure the build environment has
access to libtool and autoconf needed for the buildconf.sh procedure that is
executed before running configure.

-Original Message-
From: Bill Barker [mailto:res0ob23@;verizon.net]
Sent: Sunday, October 27, 2002 12:17 AM
To: [EMAIL PROTECTED]
Subject: Re: mod_jk build problems


I'm a Apache 1.3.x user, but have always had problems with the mod_jk
Makefiles for Solaris.  At least with the older versions of mod_jk, I could
hack the linux version and change some paths :-(.  If you get it working,
please post a patch to bugzilla for the benefit of the rest of us.

The "--enable-jni" is only useful if you want the jni-channel.  Since the
default MPM for Solaris is "prefork", this is nearly useless.  Unless you've
compiled Apache with the "worker" MPM, and want to try out the jni-channel,
I'd forget about this option.

"Madere, Colin" <[EMAIL PROTECTED]> wrote in message
news:A0B0CE866AEECE4BBB3FA565A5CA62D343FE0F@;brmail.ieminc.com...
> That's it?  No one has any clue?  An answer to _any_ of the questions
asked?
>
> -Original Message-
> From: Robert L Sowders
> To: Tomcat Users List
> Sent: 10/25/02 8:44 PM
> Subject: Re: mod_jk build problems
>
> Send it to the bug database.
>
> http://issues.apache.org/bugzilla/enter_bug.cgi
>
> Guidelines are here.
>
> http://nagoya.apache.org/bugzilla/bugwritinghelp.html
>
> rls
>
>
>
>
>
> "Madere, Colin" <[EMAIL PROTECTED]>
> 10/25/2002 05:11 PM
> Please respond to "Tomcat Users List"
>
>
> To: "'[EMAIL PROTECTED]'"
> <[EMAIL PROTECTED]>
> cc:
> Subject:mod_jk build problems
>
> 1) There seems to be an error in the scope of the make for mod_jk where
> it
> expects to find 'libtool' in the common directory but it is in the
> parent
> directory of the common directory.  (couldn't find a good place to
> submit
> this problem except here)
>
> 2) Let me prefix my problem description with some specs:
> Solaris 2.7 on x86 (but plan to deploy on SPARC under Solaris 2.7 and
> 2.8)
> gcc 3.2
> J2SDK 1.4.1_01
> Apache 2.0.43 (built from src)
> Tomcat 4.1
>
> The docs at
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
> dont' quite seem to cover everything (you know what I mean).  I build
> with
> the "--enable-jni" since it is suggested for Apache 2.0 and I get a
> "jk_jnicb.so" but I don't get a "mod_jk.so" as the documentation
> suggests.
> Is it correct behavior that a "mod_jk.so" NOT get built when using that
> build option?  If so, would help if that was noted in docs.
>
> Now assuming all is well, do I assume that the rest of the docs (in
> regards
> to installation) when referring to "mod_jk.so" mean "mod_jk.so or
> jk_jnicb.so"?
>
> When I try to go into the build directory under 'jk' named 'Apache-2.0'
> (which the docs say where the resulting "mod_jk.so" is to be built) and
> try
> to do a 'make' I get an error "libtool: unrecognized option '-g' ".
>
> Any assistance would be greatly appreciated including suggestions for
> using
> other connectors if my setup suggests such a move.
>
> Colin Madere
>
>
> --
> 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: Not able to see server-side messages

2002-11-01 Thread Hari Venkatesan
Right click right on the top bar where you see C:\Tomcat\ etc., (ie
where you see the maximize, minimize, close (x) buttons). 

Hari Venkatesan
Performance Food Group
Phone : 804 484 6263


-Original Message-
From: pkrishnaswami [mailto:pkrishna@;learnframe.com] 
Sent: Friday, November 01, 2002 4:15 PM
To: 'Tomcat Users List'
Subject: RE: Not able to see server-side messages

 I agree System.out.println will work if its a normal Dos window. Here
it seems to be a Java Gui application which seems to startup and becomes
a minimized icon in the task bar. Right-clicking the icon does not show
a properties option.

Prabhakar

-Original Message-
From: Hari Venkatesan [mailto:hvenkatesan@;pfgc.com]
Sent: Friday, November 01, 2002 1:48 PM
To: Tomcat Users List
Subject: RE: Not able to see server-side messages


Try System.out.println. To maximize the window, right click the window
and you can define the properties

Hari Venkatesan
Performance Food Group
Phone : 804 484 6263


-Original Message-
From: pkrishnaswami [mailto:pkrishna@;learnframe.com] 
Sent: Friday, November 01, 2002 3:46 PM
To: 'Tomcat Users List'
Subject: Not able to see server-side messages


Is there a way to see print messages from Servlets\JSP in a TOMCAT env.
Currently, when I startup TOMCAT in Windows 2000, the application runs
in a
small window which can't be maximized.

Prabhakar


--
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: Apache 1.3 + mod_ssl + mod_jk or mod_jk2 with EAPI under Windows

2002-11-01 Thread Robert L Sowders
That's exactly what I did.  I compiled it myself.  MSDEV.  It works fine 
on windows, ssl and all.

rls




"Ralph Einfeldt" <[EMAIL PROTECTED]>
11/01/2002 05:47 AM
Please respond to "Tomcat Users List"

 
To: "Tomcat Users List" <[EMAIL PROTECTED]>
cc: 
Subject:RE: Apache 1.3 + mod_ssl + mod_jk or mod_jk2 with EAPI under 
Windows


Additional information from
http://nagoya.apache.org/dist/httpd/binaries/win32/#stable

> This version is only available at present in a 
> -no_ssl flavor, due to ongoing questions of strong 
> crypto redistribution. When a binary build with 
> mod_ssl compiled in is made available, the -no_ssl 
> flavor will remain as an option for those in 
> jurisdictions that restrict ssl encryption, as well 
> as those T8 prohibited from downloading from the 
> ASF's US-based servers.

If this is the sole reason, it could be possible 
to build the module on your own.

> -Original Message-
> From: Pae Choi [mailto:paechoi@;earthlink.net]
> Sent: Friday, November 01, 2002 4:52 PM
> To: Tomcat Users List
> Subject: Re: Apache 1.3 + mod_ssl + mod_jk or mod_jk2 with EAPI under
> Windows
> 
> 
> Seems like we are talking about two different releases. I am
> talking about it for Win32 and you re for Unix/Linux. Am I
> right?
> 
> AFAIK the Apache release for WIn32 is different scenario. I do
> SSL-enabled Apache is only for Unix/Linux.
> 
> I believe that the orginal message was talking about Apache
> on Win32 platform.
> 
> Correct me if I am wrong.
> 
> 
> Pae
> 
> 
> 
> - Original Message -
> From: "Ralph Einfeldt" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, November 01, 2002 4:46 AM
> Subject: RE: Apache 1.3 + mod_ssl + mod_jk or mod_jk2 with EAPI under
> Windows
> 
> 
> Apache 2.0 contains a modified version of mod_ssl.
> 
> mod_ssl is part of the binary distribution. (At least in
> 2.0.43, I don't have prior versions).
> 
> From httpd-2.0.40/modules/ssl/README:
> 
> MAJOR CHANGES
> 
>  For a complete history of changes for Apache 2.0 mod_ssl, see the
>  CHANGES file in the top-level httpd-2.0 directory.  The following
>  is a condensed summary of the major changes were made between
>  mod_ssl 2.x from Apache 1.3 and this mod_ssl version for Apache 2.0:
> 
>  o The DBM based session cache is now based on APR's DBM API only.
>  o The shared memory based session cache is now based on APR's APIs.
>  o SSL I/O is now implemented in terms of filters rather than BUFF
>  o Eliminated ap_global_ctx. Storing Persistant information in
>process_rec->pool->user_data. The ssl_pphrase_Handle_CB() and
>ssl_config_global_* () functions have an extra parameter now -
>"server_rec *" -  which is used to retrieve the SSLModConfigRec.
>  o Properly support restarts, allowing mod_ssl to be added to a server
>that is already running and to change server certs/keys on restart
>  o Various performance enhancements
>  o proxy support is no longer an "extension", much of the mod_ssl core
>was re-written (ssl_engine_{init,kernel,config}.c) to be generic so
>it could be re-used in proxy mode.
>- the optional function ssl_proxy_enable is provide for mod_proxy
>  to enable proxy support
>- proxy support now requires 'SSLProxyEngine on' to be configured
>- proxy now supports SSLProxyCARevocation{Path,File} in addition to
>  the original SSLProxy* directives
>  o per-directory SSLCACertificate{File,Path} is now thread-safe but
>requires SSL_set_cert_store patch to OpenSSL
>  o RSA sslc is supported via ssl_toolkit_compat.h
>  o the ssl_engine_{ds,ext}.c source files are obsolete and no longer
>exist
> > -Original Message-
> > From: Pae Choi [mailto:paechoi@;earthlink.net]
> > Sent: Friday, November 01, 2002 4:15 PM
> > To: Tomcat Users List
> > Subject: Re: Apache 1.3 + mod_ssl + mod_jk or mod_jk2 with 
> EAPI under
> > Windows
> >
> > That's what I meant. The URL is pointing the www.modssl.org and
> > take a look at the info on that web site. Unless mod_ssl for
> > Apache v1.3.27 works with Apache v2.x as well.
> >
> >
> 
> --
> 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: creating a directory under webapps

2002-11-01 Thread Mark Eggers
This is because the invoker servlet mapping is
commented out by default in Tomcat 4.1.12.

There are several ways of dealing with this.

1. Remove the comments around the invoker servlet
mapping in web.xml


  
invoker
/servlet/*
  

This is not recommended since a malicious person could
then invoke anonymous servlets on your Tomcat
instance.

2. Add the following to your application web.xml file.



invoker
/servlet/*


This has the same security concerns as item 1, but it
is now limited to your application and not Tomcat as a
whole.

3. Add a servlet mapping for each servlet in your
application.  This means that you will no longer have
anonymous servlets.  An example is given below.


  example1
  example1
  a.b.class




  example1
  servlet/example1


I ran into this same problem when moving from 4.0.x to
4.1.12.

Hope this helps.

/mde/

just my two cents . . . .

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

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




RE: Strange JDBC Error

2002-11-01 Thread Hari Venkatesan
Did you define the datasource in web.xml? ?

Hari Venkatesan
Performance Food Group
Phone : 804 484 6263


-Original Message-
From: John Mattos [mailto:mattosj@;yahoo.com] 
Sent: Friday, November 01, 2002 3:52 PM
To: Tomcat Users List
Subject: Strange JDBC Error


I'm using a JDBC Datasource with Tomcat 4.1.12 as follows.

Server.xml snippet:

  
  

  validationQuery
  select top 100 * from Subscriber


  url
 
jdbc:microsoft:sqlserver://vc34:1433;databaseName=TibcoClearHouse



  password
  tibco_user


  maxActive
  10


  maxWait
  5000


  driverClassName
 
com.microsoft.jdbcx.sqlserver.SQLServerDataSource


  username
  tibco_user


  maxIdle
  2

  

END OF Server.xml Snippet

When I cause a database access within my application, I get the
following horrifying result. It's the "Error Establishing Socket" error
that's worrying me, as I'm using the native Microsoft SQL Server
Drivers. The ones in my lib directory are msutil.jar, msutil.jar, and
mssqlserver.jar

Any thoughts?

John

java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error
establishing socket.
at
com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown
Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSConnection.(Unknown
Source)
at
com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown
Source)
at
com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown
Source)
at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at
com.thoughtworks.util.pool.JDCConnectionPool.getConnection(JDCConnection
Pool.java:174)
at
com.thoughtworks.clearinghouse.util.ConnectionFactory.createConnectionFo
rTibco(ConnectionFactory.java:59)
at
com.thoughtworks.clearinghouse.util.ConnectionFactory.createConnection(C
onnectionFactory.java:40)
at
com.thoughtworks.clearinghouse.util.DatabaseUtility.getUserByName(Databa
seUtility.java:123)
at
com.thoughtworks.clearinghouse.web.service.UserProfileService.validateUs
erNamePassword(UserProfileService.jav
a:16)
at
com.thoughtworks.clearinghouse.web.servlet.LogonAction.actionExecuted(Lo
gonAction.java:48)
at
com.thoughtworks.clearinghouse.web.servlet.AbstractAction.execute(Abstra
ctAction.java:38)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:437)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
264)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:239
6)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipe

RE: Not able to see server-side messages

2002-11-01 Thread pkrishnaswami
 I agree System.out.println will work if its a normal Dos window. Here it
seems to be a Java Gui application which seems to startup and becomes a
minimized icon in the task bar. Right-clicking the icon does not show a
properties option.

Prabhakar

-Original Message-
From: Hari Venkatesan [mailto:hvenkatesan@;pfgc.com]
Sent: Friday, November 01, 2002 1:48 PM
To: Tomcat Users List
Subject: RE: Not able to see server-side messages


Try System.out.println. To maximize the window, right click the window
and you can define the properties

Hari Venkatesan
Performance Food Group
Phone : 804 484 6263


-Original Message-
From: pkrishnaswami [mailto:pkrishna@;learnframe.com] 
Sent: Friday, November 01, 2002 3:46 PM
To: 'Tomcat Users List'
Subject: Not able to see server-side messages


Is there a way to see print messages from Servlets\JSP in a TOMCAT env.
Currently, when I startup TOMCAT in Windows 2000, the application runs
in a
small window which can't be maximized.

Prabhakar


--
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: Will Upgrade from one cpu to Dual CPU benefit tomcat 3.2.4 ?

2002-11-01 Thread Ben Ricker
I find that with databases in general, and MySQl in particular, that you
CPU is bound up in a io wait state, that is, waiting for disk reads
and/or writes. You may be disk bound. In that case, adding another CPU
will only give you nominal improvement.

You would need to check to see if I/O is the issue by checking the I/O
wait states and see if the kernel is just blocking the CPU waiting for
disk read/writes. If so, are you using SCSI? IDE? Got RAID? Striping
will improve the situation, as well as turning off mirroring disks, if
you have that setup.

Ben Ricker
Wellinx.com

On Fri, 2002-11-01 at 14:50, Brandon Cruz wrote:
> 
> I have an overloaded linux server running Apache>Tomcat 3.2.4>MySQL.  It has
> 512MB Ram, which seems to be doing fine, but the 1Ghz CPU being used by
> Tomcat is constantly 35-60%.  Before I spend the money, does tomcat take
> advantage of multiple processors, and will it help me to upgrade to a Dual
> 1Ghz CPU machine?
> 
> Brandon
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




Re: creating a directory under webapps

2002-11-01 Thread Jan-Michael Ong
This might help but I think you have to specify the full path as your docbase

instead of


try



or if your tomcat is in /usr/local/tomcat



finally check the logs, adjust your debug statements in server.xml from 0 
to 1 and that should increase its verbosity.

You may want to clear /usr/local/tomcat/work everytime you restart your 
tomcat instance too whenever you make your changes above.

JM

At 07:57 AM 11/1/2002 -0800, Diego Sacchetto wrote:
Hi I've installed tomcat 4.1.12 and is running fine.
I can run all servlets under default directory
$CATALINA_HOME/webapps/examples.
Problem is if I create my own directory: diegodev under webapps.
I have created the usual structure, with a simple servlet under classes

webapps
   |
   |
--- diegodev
|
|
 --- WEB-INF
|
|
 --- classes
|   |
|   |
|--- HelloWorld.class
|
|
 --- web.xml

I have added the following element to server.xml:



and the web.xml file has the  element like this:


   HelloWorld
   HelloWorld



Everything looks good to me but if I try to run the servlet by:

http://localhost:9000/diegodev/servlet/HelloWorld

tomcat complain it doesn't find the resource:

he requested resource (/diegodev/servlet/HelloWorld) is not available.

However, if I move the servlet under examples/WEB-INF/classes and I invoke
it, it works.

It looks like the directory examples has a setting that my custom directory
diegodev doesn't have.

Can't understand what it is.
Can please someone help me?

Thanks,

Diego.


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



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




RE: tomcat 4.1.12 can't replace root context index.jsp

2002-11-01 Thread Williams, Ryan
Try deleting the contents of the TOMCAT_HOME/work directory and restarting.
That should allow it to compile your app correctly.

-Original Message-
From: Ian Hunter [mailto:ihunter@;ix.netcom.com]
Sent: Friday, November 01, 2002 12:57 PM
To: [EMAIL PROTECTED]
Subject: Fw: tomcat 4.1.12 can't replace root context index.jsp


For some reason, if I change the root context to point elsewhere
(specifically "c:/work/cvs/parkweb"), tomcat 4.1.12 is still supplying the
"default" index.jsp even though I have removed the webapps/ROOT directory
completely.  OTHER files (index.html, main.jsp) get served correctly out of
the new "root" but no matter what I do, it intercepts the request for
/index.jsp and supplies it's own "you've successfully configured TOMCAT"
page, without the graphics.

?!?!?!

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Fw: tomcat 4.1.12 can't replace root context index.jsp

2002-11-01 Thread Ian Hunter
For some reason, if I change the root context to point elsewhere
(specifically "c:/work/cvs/parkweb"), tomcat 4.1.12 is still supplying the
"default" index.jsp even though I have removed the webapps/ROOT directory
completely.  OTHER files (index.html, main.jsp) get served correctly out of
the new "root" but no matter what I do, it intercepts the request for
/index.jsp and supplies it's own "you've successfully configured TOMCAT"
page, without the graphics.

?!?!?!

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




Tomcat 4.1.12 can't replace root context index.jsp

2002-11-01 Thread Ian Hunter
For some reason, if I change the root context to point elsewhere
(specifically "c:/work/cvs/parkweb"), tomcat 4.1.12 is still supplying the
"default" index.jsp even though I have removed the webapps/ROOT directory
completely.  OTHER files (index.html, main.jsp) get served correctly out of
the new "root" but no matter what I do, it intercepts the request for
/index.jsp and supplies it's own "you've successfully configured TOMCAT"
page, without the graphics.

?!?!?!

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




Strange JDBC Error

2002-11-01 Thread John Mattos

I'm using a JDBC Datasource with Tomcat 4.1.12 as follows.

Server.xml snippet:

  
  

  validationQuery
  select top 100 * from Subscriber


  url
  
jdbc:microsoft:sqlserver://vc34:1433;databaseName=TibcoClearHouse


  password
  tibco_user


  maxActive
  10


  maxWait
  5000


  driverClassName
  com.microsoft.jdbcx.sqlserver.SQLServerDataSource


  username
  tibco_user


  maxIdle
  2

  

END OF Server.xml Snippet

When I cause a database access within my application, I get the following horrifying 
result. It's the "Error Establishing Socket" error that's worrying me, as I'm using 
the native Microsoft SQL Server Drivers. The ones in my lib directory are msutil.jar, 
msutil.jar, and mssqlserver.jar

Any thoughts?

John

java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing socket.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSConnection.(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at 
com.thoughtworks.util.pool.JDCConnectionPool.getConnection(JDCConnectionPool.java:174)
at 
com.thoughtworks.clearinghouse.util.ConnectionFactory.createConnectionForTibco(ConnectionFactory.java:59)
at 
com.thoughtworks.clearinghouse.util.ConnectionFactory.createConnection(ConnectionFactory.java:40)
at 
com.thoughtworks.clearinghouse.util.DatabaseUtility.getUserByName(DatabaseUtility.java:123)
at 
com.thoughtworks.clearinghouse.web.service.UserProfileService.validateUserNamePassword(UserProfileService.jav
a:16)
at 
com.thoughtworks.clearinghouse.web.servlet.LogonAction.actionExecuted(LogonAction.java:48)
at 
com.thoughtworks.clearinghouse.web.servlet.AbstractAction.execute(AbstractAction.java:38)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:437)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
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$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.c

RE: Not able to see server-side messages

2002-11-01 Thread Hari Venkatesan
Try System.out.println. To maximize the window, right click the window
and you can define the properties

Hari Venkatesan
Performance Food Group
Phone : 804 484 6263


-Original Message-
From: pkrishnaswami [mailto:pkrishna@;learnframe.com] 
Sent: Friday, November 01, 2002 3:46 PM
To: 'Tomcat Users List'
Subject: Not able to see server-side messages


Is there a way to see print messages from Servlets\JSP in a TOMCAT env.
Currently, when I startup TOMCAT in Windows 2000, the application runs
in a
small window which can't be maximized.

Prabhakar


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Will Upgrade from one cpu to Dual CPU benefit tomcat 3.2.4 ?

2002-11-01 Thread Brandon Cruz

I have an overloaded linux server running Apache>Tomcat 3.2.4>MySQL.  It has
512MB Ram, which seems to be doing fine, but the 1Ghz CPU being used by
Tomcat is constantly 35-60%.  Before I spend the money, does tomcat take
advantage of multiple processors, and will it help me to upgrade to a Dual
1Ghz CPU machine?

Brandon


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




Not able to see server-side messages

2002-11-01 Thread pkrishnaswami

Is there a way to see print messages from Servlets\JSP in a TOMCAT env.
Currently, when I startup TOMCAT in Windows 2000, the application runs in a
small window which can't be maximized.

Prabhakar


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




Re: The disappearing classpath

2002-11-01 Thread ephansen
I've checked one of the 'common' classes and there is a reference to the
Struts.jar - which is currently only in the WEB-INF/lib .  So this lead
looks promising.   THANKS!


- Original Message -
From: "Jacob Kjome" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 12:32 PM
Subject: Re: The disappearing classpath


> Hello Eric,
>
> What you are probably seeing is an issue where the library in
> shared/lib or common/lib requires access to a library you have in
> WEB-INF/lib.  This will not work.  It does work the other way around,
> though.  Basically, in WEB-INF/lib, you can reference libraries in
> parent classloaders, but the libraries in the parent classloaders are
> forbidden to require a reference back to libraries you have in a child
> classloader.
>
> Somewhere in your libraries, you probably have some classes that are
> doing two-way referencing.  Make double sure that your libraries in
> the parent classloader never reference a library that you put in your
> child classloader.
>
> Jake
>
> Friday, November 01, 2002, 2:27:26 PM, you wrote:
>
> EH> I having trouble with Tomcat 4.0.x Tomcat when deploying a war
file I'm
> EH> getting classdefnotfound exceptions in my web app.
>
> EH> It turns out that this happens only when I am using jar files that are
> EH> external to the WEB-INF/lib (ie. in the [tomcat_home]/common/lib
directory)
> EH> and so it seems that Tomcat stops looking for classes in the
WEB-INF/lib
> EH> once it uses the external library - because as soon as I put all all
the
> EH> required libs inside the WEB-INF/lib path, the web app works fine.
>
> EH> However, I have classes that are needed for multiple apps I would like
to
> EH> deploy the jar in only one place. Can anyone explain to me how I can
use
> EH> classes in a jar file from the external lib and still have access to
my
> EH> WEB-INF/lib jars too???
>
> EH> Thanks,
> EH> -Eric
>
>
> EH> --
> EH> To unsubscribe, e-mail:

> EH> For additional commands, e-mail:

>
>
>
> --
> Best regards,
>  Jacobmailto:hoju@;visi.com
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Not able access resources

2002-11-01 Thread pkrishnaswami
I am new to Tomcat; I  installed a web application consisting of
Servlets/JSPs. The Servlet accesses the database directly by loading a
database driver. Everything works fine in this architecture.

 I then modified the Servlet so that it looked up the database through JNDI.
I understand that Server.xml and Web.xml needs to have appropriate entries
to enable the servlet to successfully get a connection. I used the admin
tool to configure the database; after configuration, I noticed that the
following changes were made to the server.xml.


  validationQuery
  usersa
  maxWait5000
  maxActive4
  password 

urljdbc:weblogic:mssqlserver4:Questions@local
host
  

driverClassNameweblogic.jdbc.mssqlserver4.Dri
ver
  
  maxIdle2


I added the following additional entry to the web.xml:

 
  Questions Database
  jdbc/Questions
  javax.sql.DataSource
  Container



I am using ant build and ant install to install the application. Now if I
try to access the same resource, I get the following error:
Status report
message /AdminApp/jsp/menu.jsp
description The requested resource (/AdminApp/jsp/menu.jsp) is not available

Can somebody help me out?



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




RE: The disappearing classpath

2002-11-01 Thread pkrishnaswami
Could you try putting it in shared\lib and see if it works?

Prabhakar

-Original Message-
From: Eric Hansen [mailto:ehansen@;mmisoft.com]
Sent: Friday, November 01, 2002 1:27 PM
To: [EMAIL PROTECTED]
Subject: The disappearing classpath


I having trouble with Tomcat 4.0.x Tomcat when deploying a war file I'm
getting classdefnotfound exceptions in my web app.

It turns out that this happens only when I am using jar files that are
external to the WEB-INF/lib (ie. in the [tomcat_home]/common/lib directory)
and so it seems that Tomcat stops looking for classes in the WEB-INF/lib
once it uses the external library - because as soon as I put all all the
required libs inside the WEB-INF/lib path, the web app works fine.

However, I have classes that are needed for multiple apps I would like to
deploy the jar in only one place. Can anyone explain to me how I can use
classes in a jar file from the external lib and still have access to my
WEB-INF/lib jars too???

Thanks,
-Eric


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: The disappearing classpath

2002-11-01 Thread Cox, Charlie
you will also want to review the classloader doc
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

Charlie

> -Original Message-
> From: Jacob Kjome [mailto:hoju@;visi.com]
> Sent: Friday, November 01, 2002 3:33 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: The disappearing classpath
> 
> 
> Hello Eric,
> 
> What you are probably seeing is an issue where the library in
> shared/lib or common/lib requires access to a library you have in
> WEB-INF/lib.  This will not work.  It does work the other way around,
> though.  Basically, in WEB-INF/lib, you can reference libraries in
> parent classloaders, but the libraries in the parent classloaders are
> forbidden to require a reference back to libraries you have in a child
> classloader.
> 
> Somewhere in your libraries, you probably have some classes that are
> doing two-way referencing.  Make double sure that your libraries in
> the parent classloader never reference a library that you put in your
> child classloader.
> 
> Jake
> 
> Friday, November 01, 2002, 2:27:26 PM, you wrote:
> 
> EH> I having trouble with Tomcat 4.0.x Tomcat when deploying 
> a war file I'm
> EH> getting classdefnotfound exceptions in my web app.
> 
> EH> It turns out that this happens only when I am using jar 
> files that are
> EH> external to the WEB-INF/lib (ie. in the 
> [tomcat_home]/common/lib directory)
> EH> and so it seems that Tomcat stops looking for classes in 
> the WEB-INF/lib
> EH> once it uses the external library - because as soon as I 
> put all all the
> EH> required libs inside the WEB-INF/lib path, the web app works fine.
> 
> EH> However, I have classes that are needed for multiple apps 
> I would like to
> EH> deploy the jar in only one place. Can anyone explain to 
> me how I can use
> EH> classes in a jar file from the external lib and still 
> have access to my
> EH> WEB-INF/lib jars too???
> 
> EH> Thanks,
> EH> -Eric
> 
> 
> EH> --
> EH> To unsubscribe, e-mail:   
> 
> EH> For additional commands, e-mail: 
> 
> 
> 
> 
> -- 
> Best regards,
>  Jacobmailto:hoju@;visi.com
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




Re: The disappearing classpath

2002-11-01 Thread Jacob Kjome
Hello Eric,

What you are probably seeing is an issue where the library in
shared/lib or common/lib requires access to a library you have in
WEB-INF/lib.  This will not work.  It does work the other way around,
though.  Basically, in WEB-INF/lib, you can reference libraries in
parent classloaders, but the libraries in the parent classloaders are
forbidden to require a reference back to libraries you have in a child
classloader.

Somewhere in your libraries, you probably have some classes that are
doing two-way referencing.  Make double sure that your libraries in
the parent classloader never reference a library that you put in your
child classloader.

Jake

Friday, November 01, 2002, 2:27:26 PM, you wrote:

EH> I having trouble with Tomcat 4.0.x Tomcat when deploying a war file I'm
EH> getting classdefnotfound exceptions in my web app.

EH> It turns out that this happens only when I am using jar files that are
EH> external to the WEB-INF/lib (ie. in the [tomcat_home]/common/lib directory)
EH> and so it seems that Tomcat stops looking for classes in the WEB-INF/lib
EH> once it uses the external library - because as soon as I put all all the
EH> required libs inside the WEB-INF/lib path, the web app works fine.

EH> However, I have classes that are needed for multiple apps I would like to
EH> deploy the jar in only one place. Can anyone explain to me how I can use
EH> classes in a jar file from the external lib and still have access to my
EH> WEB-INF/lib jars too???

EH> Thanks,
EH> -Eric


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



-- 
Best regards,
 Jacobmailto:hoju@;visi.com


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




The disappearing classpath

2002-11-01 Thread Eric Hansen
I having trouble with Tomcat 4.0.x Tomcat when deploying a war file I'm
getting classdefnotfound exceptions in my web app.

It turns out that this happens only when I am using jar files that are
external to the WEB-INF/lib (ie. in the [tomcat_home]/common/lib directory)
and so it seems that Tomcat stops looking for classes in the WEB-INF/lib
once it uses the external library - because as soon as I put all all the
required libs inside the WEB-INF/lib path, the web app works fine.

However, I have classes that are needed for multiple apps I would like to
deploy the jar in only one place. Can anyone explain to me how I can use
classes in a jar file from the external lib and still have access to my
WEB-INF/lib jars too???

Thanks,
-Eric


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




RE: Off-Topic: Runtime

2002-11-01 Thread Shapira, Yoav
Hi,
p.waitFor();

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Lindomar [mailto:lindomar.silva@;bol.com.br]
>Sent: Friday, November 01, 2002 1:56 PM
>To: Tomcat Users List
>Subject: Off-Topic: Runtime
>
>Hi everybody!!
>Sorry, because i ask this question to you.
>But i have this code in my servlet:
>
>Process p=Runtime.getRuntime().exec(task1);
>...
>
>Well, how can i do for servlet continue only after executing task1?
>
>Thanks in advanced.
>
>
>
>
>
>


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


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


Tomcat 4.1.12 on Dual Processor NT Box

2002-11-01 Thread Hari Venkatesan
We are planning to setup Tomcat 4.1.12 in a dual processor NT box. Are
there any special configurations issues that I need to address and any
tips that would avoid surprises. 
 
 
By the way I am new to Tomcat and setting up of App servers.
 
You inputs and advice would be appreciated
 
 
Hari Venkatesan
Performance Food Group
Phone : 804 484 6263
 



Off-Topic: Runtime

2002-11-01 Thread Lindomar
Hi everybody!!
Sorry, because i ask this question to you.
But i have this code in my servlet:

Process p=Runtime.getRuntime().exec(task1);
...

Well, how can i do for servlet continue only after executing task1?

Thanks in advanced.










Re: jvmRoute

2002-11-01 Thread MBAaron

I have it running over here and everything seems to be working just fine.
What issues are you seeing?


Michael B Aaron
Systems Engineer
[EMAIL PROTECTED]

The #1 Way to Pay Online
http://www.checkfree.com/paybillsonline



   
  
  busch@wave-comput
  
  er.deTo:   
[EMAIL PROTECTED] 
 
   cc: 
  
  11/01/2002 07:44 Subject:  jvmRoute  
  
  AM   
  
  Please respond to
  
  "Tomcat Users
  
  List"
  
   
  
   
  





Does the jvmRoute feature work with the old mod_jk connector, or
do I need to setup jk2 ?? The sticky sessions don't seem to work
in my mod_jk/Apache/Catalina configuration.

Danny





--
To unsubscribe, e-mail:   <
mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <
mailto:tomcat-user-help@;jakarta.apache.org>







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




alias/certs/question

2002-11-01 Thread kathee
Hi,

I want to run tomcat on two servers - in a mirror for DR.  I also want
to handle both www.domain.com and domain.com for secure access and have
obtained two certs for this.  My question is -- I have created two
aliases -- one of "tomcat" and one of "tomcat2" -- the first works fine,
but I am confused as to how I can tell tomcat to also be tomcat2?

Any tips?
Thanks






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




Urgent: Need help pls

2002-11-01 Thread Ajit Bhingarkar
Hello TomCat gurus :

I am trying to deploy a webapp using TomCat4.0.6. My webapp
internally uses Entrust libraries for PKI related functionality.

When I try to log into the webapp the initialization fails throwing
following error.

ERROR java.lang.Error: factory already defined java.lang.Error: factory
already defined at
java.net.URL.setURLStreamHandlerFactory(URL.java:862) at
com.tibco.security.ssl.entrust6.SSLFactoryImpl.(SSLFactoryImpl.java:40) at

Basically my webapp is not allowed to set a URLStreamHandlerFactory,
and error suggests that it has already been set up.

I am not trying to run TomCat in SSL mode. I am using simple http transport,
and this used to work perfectly with TomCat3.2.x.

Is there anything I can configure to get rid of this problem ?

What particular code has already set the URLStreamHandlerFactory or
SocketFactory ?

I shall very much appreciate any feedback related to this issue.

Thanks,
Ajit





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




Re: Java Client and Form-based Authentication

2002-11-01 Thread Craig R. McClanahan


On Fri, 1 Nov 2002 [EMAIL PROTECTED] wrote:

> Date: Fri, 1 Nov 2002 12:13:45 -0500
> From: [EMAIL PROTECTED]
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Java Client and Form-based Authentication
>
>
>
>
>
> Hi,
>
> Is it possible to use a URLConnection to access a servlet that has been
> protected using form-based authentication?  I've seen a couple posts here
> about this but I haven't been able to get any of the suggested approaches
> to work.  Basically I'm wondering if its possible to add the credentials to
> the header and if so, what is the exact format - I've already tried:
>
> mConnection.setRequestProperty("Authorization", "Basic " +
> b64.encode("username:password"));
>

This approach will work for a webapp protected by BASIC authentication.
In fact, that's why Tomcat's manager webapp is set up with BASIC -- to
make it easier for client applications (as opposed to browsers) to
interoperate with it.

For form based authentication, you'd have to program your app to expect
the form login page on the first access to a protected resource, and then
do the appropriate submit to j_security_check.  It's technically feasible,
but is definitely a pain.

> Thanks,
>
> jay
>

Craig


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




Help!!! tomcat doesn't support JNI... does it!?

2002-11-01 Thread Peter Williams
Hi everyone!

I've looked all over the place for the past two days and I can't find any 
answers to my problem. I'm almost to the stage of taring my hair out but i 
thought that before i do that, i'll give list an email and see if anyone 
here can help.

Basically what I what to do is instantiate an Java object that I have 
written. I can do this is JSPs but not servlets... how come!?

eg
int something = 0;
BlahBlah useThis = new BlahBlah();
something = useThis.getSomeValue();

The above will work in JSP but not when I write it in a servlet. I really 
don't understand why. It's quite frustrating.

However, the only reason I tried using a servlet over a JSP to instantiate 
my object is that my object uses JNI. Assume that the method getSomeValue() 
of BlahBlah uses a native static method also in BlahBlah. If I get rid of 
the native method (and references to it) in BlahBlah, the JSP will run fine 
and the output of getSomeValue() will work and be output to HTML and 
returned to the client. However, if my getSomeValue() uses a native method, 
it will die. It will compile, but give many errors when you try and load the 
JSP through a browser.

Is it possible that JNI is not supported by JSP? If not, is it supported by 
using a Servlet? If so, how can I instatiate an object in a Servlet?

I'm using JDK 1.4, Tomcat 4.1.12 on a windows XP machine.

Please help, i don't know what to do!

many thanks!

=)
Pete from Melbourne, Australia



_
Unlimited Internet access -- and 2 months free!  Try MSN. 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp


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



Re: Re: Form auth

2002-11-01 Thread Aniket B Sutaria
Jan,

Seems u have the same mentality as I have!

To solve your problem, download the "SECURITY FILTER" project 
from
http://securityfilter.sourceforge.net/

This project implements a security filter and allows the user to 
log in at his/her will.

Also mail me if u are using JDBC realm for authentication.

Aniket

On Fri, 01 Nov 2002 Jan Agermose wrote :
Im used to work in a different way - not using declarative 
security. Might
be the real problem :-) It seams, that this decleartive security 
thing is
good for resources that are allways protected or not. My pages 
are mostly
partly secured in that all users can access some page but some 
items on the
page are displayed only if the user is logged in. Or a page that 
is
displayed in a context. In one context it is OK to see the page 
and
depending on some parameter (the context) it might not be ok. 
Runtime
checked security. I really need to have the user login at will 
not foreced -
but allso foreced of cause. This idea of a button and a 
fake-secured-page
that forces a login prompt. I really want a loginform on the 
frontpage. I
dont want the user to have to klik a button only to get to the 
loginscreen
af submit that one. I cannot change a design just because of a 
"design flaw"
in the backend code ;-) I really should be possible to submit 
login
information on free will.

Allso what You described below seams to be exacly what is 
allready
implementet in formauth method?

Jan


- Original Message -
From: "Alfonso Martinez" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 6:00 AM
Subject: Re: Form auth


> One way to do this is to create a filter for the protected 
resources. When
accessing them, the filter gets invoked. It checks on the session 
wheter the
user has already logged in or not. If not, it redirects to the 
login page
which in turn redirects to the protected resouce. What do you 
guys think
about this approach???
>
> Jose Alfonso
>
> On Thu, Oct 31, 2002 at 10:19:16AM -0800, Craig R. McClanahan 
wrote:
> >
> >
> > On Thu, 31 Oct 2002, Jan Agermose wrote:
> >
> > > Date: Thu, 31 Oct 2002 17:15:08 +0100
> > > From: Jan Agermose <[EMAIL PROTECTED]>
> > > Reply-To: Tomcat Users List 
<[EMAIL PROTECTED]>
> > > To: 'Tomcat Users tomcat 
<[EMAIL PROTECTED]>
> > > Subject: Form auth
> > >
> > > I would like to use formbased auth for my application, but 
it seams,
that it is based on
> > > 1. user trying to access som resource
> > > 2. if not logged in - prompt
> >
> > That's correct.  From the user point of view, it operates 
exactly like
> > BASIC authentication does (where the browser pops up the 
login dialog
the
> > first time you ask for a protected resource).
> >
> > >
> > > This is of cause good. But usualy you have a webpage that 
has a
> > > login-form somewhere on the page to allow the user to log 
in at will.
> > > Log in -before- a secured page is requested. How can I 
implement this?
I
> > > find only methods to getRemoteUser and isInRole and... 
no
setRemoteUser
> > > or the like...
> > >
> >
> > You won't be able to have the login form itself on the 
unsecured page,
but
> > you can easily provide a "Log In" button (say, on your home 
page) like
> > this:
> >
> > * Make the log in button link to a resource in a protected 
directory
> >
> > * Make that resource just do a redirect back to the home 
page
> >
> > When the user clicks the log in button, the form based login 
page gets
> > displayed (because the resource is protected).  After login 
is complete,
> > Tomcat then executes the protected resource, which redirects 
back to the
> > home page with the user being logged on already.
> >
> > > Am I making sense :-)
> > >
> > > Jan
> >
> > Craig
> >
> >
> >
> > --
> > 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-users mailing list
[EMAIL PROTECTED]
https://mailman.real-time.com/mailman/listinfo/tomcat-users


Aniket Sutaria
Developer
Fortune Infotech Ltd

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




Re: keeping user logged in using j_security_check

2002-11-01 Thread Aniket B Sutaria
Hi Guru

Please give details wheather you are using SSL or not.

Aniket

On Thu, 31 Oct 2002 Guru Mandavia wrote :

Hi,
  I am using j_security_check to authenticate a user using 
Tomcat 4.1.  =
Every time a user closes the browser window,  he is forced to 
re-login =
even though he logged in just a couple of minutes ago.=20

Is there a way to configure j_security_check to use an existing 
session =
after the browser window is closed?

Thanks,
guru
>


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 


___
tomcat-users mailing list
[EMAIL PROTECTED]
https://mailman.real-time.com/mailman/listinfo/tomcat-users


Aniket Sutaria
Developer
Fortune Infotech Ltd

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




Re: Custom Error Page Issue

2002-11-01 Thread Aniket B Sutaria
Jaimes,

While configuring error page you will have to specify a preceeding 
"/".
Replace the lines,

  
404
myerror.jsp
  
  
400
myerror.jsp
  
  
200
myerror.jsp
  

with

  
404
/myerror.jsp
  
  
400
/myerror.jsp
  
  
200
/myerror.jsp
  

This will solve the problem.

Aniket

On Thu, 31 Oct 2002 Jaimes Blunt wrote :
Hey Guys,

I am trying to create a custom error page for my webapps, and I 
am encountering the following message when I try to force an 
error.
Error page location myerror.jsp must start with a /
My webapp file has the following included:
 
   404
   myerror.jsp
 
 
   400
   myerror.jsp
 
 
   200
   myerror.jsp
 

Any ideas?

Jaimes Blunt



Aniket Sutaria
Developer
Fortune Infotech Ltd

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




Java Client and Form-based Authentication

2002-11-01 Thread jason_simoneau




Hi,

Is it possible to use a URLConnection to access a servlet that has been
protected using form-based authentication?  I've seen a couple posts here
about this but I haven't been able to get any of the suggested approaches
to work.  Basically I'm wondering if its possible to add the credentials to
the header and if so, what is the exact format - I've already tried:

mConnection.setRequestProperty("Authorization", "Basic " +
b64.encode("username:password"));

Thanks,

jay


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




Re: WARNING: Exception getting SSL attributes

2002-11-01 Thread Steve Howie


Ma, Yongjie wrote:

I got same exception message. And Bill Barker told me this is a bug in Tomcat 4.1.12.

Following message was from him:

The SSL support in 4.1.12 is broken with JVM 1.4.x.  You need to copy
http://gump.covalent.net/jars/latest/jakarta-tomcat-connectors/tomcat-util.jar.
jar to $CATALINA_HOME/server/lib to fix (or wait, hopefully not long, for
4.1.13).

I tried this new jar file, yes, the exception message was disappeared. But It brings another problem, it will always ask client certificate even if you set ClientAuth="false".

I did not try new 4.1.13 yet. Maybe you can try that one first.



I also got the same errors using JSSE 1.0.3 and JSDK 1.3.1_01 with 
Tomcat 4.1.12.

I upgraded Tomcat from 4.0.4 and I dont think I got these messages with 
that version. So it does look like a Tomcat issue.

Scotty


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



RE: WARNING: Exception getting SSL attributes

2002-11-01 Thread Ma, Yongjie
I got same exception message. And Bill Barker told me this is a bug in Tomcat 4.1.12.

Following message was from him:

The SSL support in 4.1.12 is broken with JVM 1.4.x.  You need to copy
http://gump.covalent.net/jars/latest/jakarta-tomcat-connectors/tomcat-util.jar.
jar to $CATALINA_HOME/server/lib to fix (or wait, hopefully not long, for
4.1.13).

I tried this new jar file, yes, the exception message was disappeared. But It brings 
another problem, it will always ask client certificate even if you set 
ClientAuth="false".

I did not try new 4.1.13 yet. Maybe you can try that one first.

Thanks
Jack

-Original Message-
From: Tim C. [mailto:timuk10@;hotmail.com]
Sent: Thursday, October 31, 2002 7:40 AM
To: [EMAIL PROTECTED]
Subject: WARNING: Exception getting SSL attributes



I was wondering whether anyone else has seen this or knows what it means. I 
am using HTTPS and the connections are made fine to the tomcat4.1.12 server 
(jakarta-tomcat-4.1.12-LE-jdk14). However, on each connection the following 
warning is given in the logs:



WARNING: Exception getting SSL attributes
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at 
com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA6275)
at 
org.apache.tomcat.util.net.JSSESupport.getPeerCertificateChain(JSSESupport.java:118)
at 
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:543)
at org.apache.coyote.Response.action(Response.java:216)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:314)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)


What does this mean? Where have I gone wrong?

TIA!



_
Surf the Web without missing calls! Get MSN Broadband.  
http://resourcecenter.msn.com/access/plans/freeactivation.asp


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


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




RE: Where is the SSL 'changeit' password set

2002-11-01 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  RE: Where is the SSL 'changeit' password set 
document   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   01.11.2002 17:00:38  
   





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




RE: Where is the SSL 'changeit' password set

2002-11-01 Thread Ma, Yongjie
Yon need to setup keystorePass in the SSL connector of server.xml.


  


keystoreFile is the keystore location.
keystorePass is the password.

Good luck

Jack
-Original Message-
From: Carson, Chuck [mailto:Chuck.Carson@;syrrx.com]
Sent: Sunday, October 27, 2002 7:35 AM
To: Tomcat Users List
Subject: Where is the SSL 'changeit' password set




I want to use a different password than changeit, thus when I ran
"$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA" I specified a
different string. Now the server fails to start with this message:

2017 [main] ERROR http11.Http11Protocol  - Error initializing endpoint
java.io.IOException: Keystore was tampered with, or password was
incorrect
at
sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:737)
at java.security.KeyStore.load(KeyStore.java:608)

Anyone know where I can configure this?

Thx,
CC


--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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


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




Is Tomcat multi-process, multi-thread in Linux?

2002-11-01 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  Is Tomcat multi-process, multi-thread in Linux?  
document   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   01.11.2002 16:37:21  
   





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




JNDI connection times out (again)

2002-11-01 Thread Vincent Stoessel
I am discovering that over a period of a few hours my JNDI (using LDAP)
datasource/realm looses it's conecction. Is there a way to have tomcat
check to see if the connection is timed out and reconnect if it is?
So far the workaround I am using is restarting tomcat.

tomcat 4.1.12 (patched) jdk 1.4 for linux (2.4.18)
--
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


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




Is Tomcat multi-process, multi-thread in Linux?

2002-11-01 Thread Ma, Yongjie
Hi 

I have a question about Tomcat design issue:

  In the windows system, when I started tomcat,  only one java process was running 
although we can set minProcessors or maxProcessors number in the server.xml. For each 
request, tomcat will create a thread to handle it. To me, Tomcat is single process and 
multithread. Do those minProcessors and maxProcessors definitions mean minThread and 
maxThread??

  But in the Linux, if I started tomcat, a number of java process was showing up. So I 
was confusing, it is multi-process for sure, but in the each process, it is single 
thread or multi-thread

Thanks
Jack

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




Re: mod_jk build problems

2002-11-01 Thread Veniamin Fichin
Madere, Colin wrote:


The docs at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
dont' quite seem to cover everything (you know what I mean).  I build with
the "--enable-jni" since it is suggested for Apache 2.0 and I get a
"jk_jnicb.so" but I don't get a "mod_jk.so" as the documentation suggests.
Is it correct behavior that a "mod_jk.so" NOT get built when using that
build option?  If so, would help if that was noted in docs.


I faced the same behaviour. I went to the directory 
jk/native/apache-2.0/ and found a target "mod_jk.so" in Makefile.
So just type "make mod_jk.so" and you'll get it.

But yes, it is a bug, and it should be reported.



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



creating a directory under webapps

2002-11-01 Thread Diego Sacchetto
Hi I've installed tomcat 4.1.12 and is running fine.
I can run all servlets under default directory
$CATALINA_HOME/webapps/examples.
Problem is if I create my own directory: diegodev under webapps.
I have created the usual structure, with a simple servlet under classes

webapps
   |
   |
--- diegodev
|
|
 --- WEB-INF
|
|
 --- classes
|   |
|   |
|--- HelloWorld.class
|
|
 --- web.xml

I have added the following element to server.xml:



and the web.xml file has the  element like this:


   HelloWorld
   HelloWorld



Everything looks good to me but if I try to run the servlet by:

http://localhost:9000/diegodev/servlet/HelloWorld

tomcat complain it doesn't find the resource:

he requested resource (/diegodev/servlet/HelloWorld) is not available.

However, if I move the servlet under examples/WEB-INF/classes and I invoke
it, it works.

It looks like the directory examples has a setting that my custom directory
diegodev doesn't have.

Can't understand what it is.
Can please someone help me?

Thanks,

Diego.


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




Re: HttpServletRequest.isSecure() fails with Coyote AJP 1.3 Connector

2002-11-01 Thread Milt Epstein
On Fri, 1 Nov 2002, Steinar Bang wrote:

> Platform: Intel PIII, RedHat 7.2, apache 1.3.20, ajp1.3
> tomcat 4.1.12, BlackDown Java SDK 1.3.1,
> Struts 1.1-b2
>
> Is there a way to pass the scheme used by the client when talking to
> the apache server (ie. "http" or "https") through the Coyote AJP 1.3
> connector?
>
> If I use the old AJP 1.3 connector, I can use the
> HttpServletRequest.isSecure() function to determine if the client used
> an HTTPS connection to the apache server.
>
> With the Coyote AJP 1.3 connector this information is lost.
> Ie. HttpServletRequest.isSecure() always returns false, and
> HttpServletRequest.getScheme() always returns "http".
>
> The  elelement for Coyote have the attributes secure, and
> scheme, which affects the above values of HttpServletRequest.  But
> these settings are constants.
>
> Do I need to set up a separate AJP 1.3 connection on a different port
> to handle HTTPS requests to apache?  If so, how's that done?

Search the archives, this has come up twice in the last few weeks.  It
may be that there's a bug with the Coyote AJP13 connector.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




RE: setting up a servlet. 2nd try

2002-11-01 Thread John Trollinger
Start here
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:p.mulder@;philips.com] 
> Sent: Friday, November 01, 2002 10:34 AM
> To: Tomcat Users List
> Subject: setting up a servlet. 2nd try
> 
> 
> I have installed Tomcat 4.1.12
> I have a Servlet that used to run under JServ.
> 
> Tomcat is running like it should.
> 
> But I have no idea where to start with the servlet.
> I have the java code,.. which I can compile into a class file 
> with the 
> java compiler.
> 
> But where to put it,... how to let tomcat know about the servlet.
> 
> currently the servlet is invoked by going to:
> 
> servername\MEMBERS\MAIN
> 
> the servlet accepts "?page_of_interest+value+anothervalue" string to 
> execute commands.
> 
> Hope somebody can tell me what to do to get the servlet installed and 
> running on Tomcat.
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


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




RE: setting up a servlet. 2nd try

2002-11-01 Thread Turner, John

RTFM

ClassLoader HOWTO:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

Application Developer's Guide:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

John


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:p.mulder@;philips.com]
> Sent: Friday, November 01, 2002 10:34 AM
> To: Tomcat Users List
> Subject: setting up a servlet. 2nd try
> 
> 
> I have installed Tomcat 4.1.12
> I have a Servlet that used to run under JServ.
> 
> Tomcat is running like it should.
> 
> But I have no idea where to start with the servlet.
> I have the java code,.. which I can compile into a class file 
> with the 
> java compiler.
> 
> But where to put it,... how to let tomcat know about the servlet.
> 
> currently the servlet is invoked by going to:
> 
> servername\MEMBERS\MAIN
> 
> the servlet accepts "?page_of_interest+value+anothervalue" string to 
> execute commands.
> 
> Hope somebody can tell me what to do to get the servlet installed and 
> running on Tomcat.
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




jk2.properties

2002-11-01 Thread Maxime
Hello 

I attempt to use tomcat 4.1.10 and mod_jk2

my jk2.properties :

#Apache
serverRoot=/usr/local/apache
# list of needed handlers.
handler.list=apr,channelUnix,request
# Set the default port for the channelSocket
#channelSocket.port=8009
# Location of the socket.
channelUnix.file=${jkHome}/work/jk2.socket
# Dynamic library
apr.NativeSo=${jkHome}/lib/libjkjni.so

my /usr/local/apache/conf/worker2.properties :

[shm]
file=${serverRoot}/logs/shm.file
size=1048576
[channel.un:unixsocket]
file=/usr/local/tomcat/work/jk2.socket
[ajp13:unixsocket]
channel=channel.un:unixsocket
[uri:/myapp/*]
worker=ajp13:unixsocket

and my catalina.out

Starting service Tomcat-Standalone
Apache Tomcat/4.1.10-LE-jdk14
[Fri Nov 01 10:21:58 2002] (error ) [jk_config_file.c (261)]  config.update(): Can't 
find config file ${serverRoot}/conf/workers2.properties
[Fri Nov 01 10:21:58 2002] ( info ) [jk_config.c (246)]  config.setAttribute() Error 
setting config: file ${serverRoot}/conf/workers2.properties
[Fri Nov 01 10:21:58 2002] ( info ) [jk_logger_file.c (171)]  Initializing log file 
stderr
[Fri Nov 01 10:21:58 2002] (error ) [jk_shm.c (333)]  shm.init(): No file
[Fri Nov 01 10:21:58 2002] ( info ) [jk_workerEnv.c (403)]  workerEnv.init() ok 
${serverRoot}/conf/workers2.properties
Nov 1, 2002 10:21:58 AM org.apache.jk.common.ChannelUn init
INFO: JK: listening on unix socket: /usr/local/tomcat/work/jk2.socket
Nov 1, 2002 10:21:58 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=5/338  config=/usr/local/tomcat/conf/jk2.properties


communication works but my questions are :

- How specifie path to apache in jk2.properties ? (nothing in 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configtc.html)
serverRoot don't work (as we can see, there are an error at line 3 of catalina.out)

- Why specifie this path in tomcat ?

thanks





Re: [Win32] Tomcat 5.0 -- JavaSDK problem

2002-11-01 Thread Juergen Heckel
Jacob Kjome wrote:



The issue is Digester's compatibility with the latest Xerces version.  
Try using the previous version of Xerces and the issue will likely go away.

INFO: Processed tld  /WEB-INF/struts-logic.tld 391
01.11.2002 15:02:02 org.apache.commons.digester.Digester fatalError
SCHWERWIEGEND: Parse Fatal Error at line 307 column 39: The string 
"--" is not permitted within comments.
org.xml.sax.SAXParseException: The string "--" is not permitted within 
comments.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)

Hi,
thank you. You are right, now I use a Tomcat-4.1.14-version of the 
XercesImpl.jar and this (only this) problem has gone.

Juergen

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



setting up a servlet. 2nd try

2002-11-01 Thread p . mulder
I have installed Tomcat 4.1.12
I have a Servlet that used to run under JServ.

Tomcat is running like it should.

But I have no idea where to start with the servlet.
I have the java code,.. which I can compile into a class file with the 
java compiler.

But where to put it,... how to let tomcat know about the servlet.

currently the servlet is invoked by going to:

servername\MEMBERS\MAIN

the servlet accepts "?page_of_interest+value+anothervalue" string to 
execute commands.

Hope somebody can tell me what to do to get the servlet installed and 
running on Tomcat.



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




Re: excluding logging

2002-11-01 Thread Tim Funk
You don't! Eventually you'll end up adding more monitoring to your 
systems and will have to come up with a better solution.

What I do is I "massage" all my log files before passing them to the web 
analysis software. That way I can exclude certain User Agents (Like HP 
Openview), other monitoring tools (like Keynote), and other ISP 
monitoring agents (by IP address). Or you can config your analysis 
software to exclude those entries.

You want to also keep the original log file too for some initial 
processing so you can accurately get quantity of traffic to your 
machines. With all the monitoring we do (and variosu types for diff 
purposes) - we proabably have 5-20% more requests than we should. Its a 
lot of overhead - but knowing with 10 minutes that something strange is 
occuring with your site makes it worth it.

W. Egan wrote:
I am running Apache Tomcat 4.0.5 on two servers being loadbalanced by a
Cisco CSS.  The css polls a page keepalive.htm to determine whether to keep
the server in service or out of service on the Virtual IP address of the
server farm.  How can I exclude logging of this page in the Tomcat logs?

thanks,
began

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






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




RE: setting up a servlet.

2002-11-01 Thread Shapira, Yoav
Hi,

>Can anyone can help me in getting the servlet running?

Probably ;)  What problems are you running into?

How do you know tomcat 4.x is running great?  Make sure all the examples
work.

Yoav Shapira
Millennium ChemInformatics

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


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


Re: [Win32] Tomcat 5.0 -- JavaSDK problem

2002-11-01 Thread Juergen Heckel
Ralph Einfeldt wrote:

Looks like /WEB-INF/controls.tld contains a syntax error.
(At least the sax parser thinks tthat there is one)




SCHWERWIEGEND: Parse Fatal Error at line 307 column 39: The 
string "--" is not permitted within comments.



SCHWERWIEGEND: Exception processing TLD at resource path 
/WEB-INF/controls.tld


Hi,
I have this error with Tomcat 5.0 nightly build 20021031, an older 
version from 20021020 does not show this error.

But my main problem still exist (even with an older nightly build):

INFO: Jk running ID=0 time=0/170 
config=f:\jakarta-tomcat-5.0\conf\jk2.properties
01.11.2002 16:10:12 org.apache.jasper.compiler.Compiler generateClass
SCHWERWIEGEND: Javac execption
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

2002-11-01 16:10:12 StandardWrapperValve[jsp]: Servlet.service() for 
servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file


The Apache errorlog shows:
[notice] Child 328: Child process is running
[notice] vm.init(): Jni lib: 
C:\Programme\Java\j2re1.4.1_01\bin\client\jvm.dll
[notice] vm.openJvm2() Option: 
-Djava.class.path=f:/jre1.4.1_01/bin/tools.jar;f:/jakarta-tomcat-5.0/bin/tomcat-jni.jar;f:/jakarta-tomcat-5.0/server/lib/commons-logging.jar
[notice] vm.openJvm2() Option: -Dtomcat.home=f:/jakarta-tomcat-5.0
[notice] vm.openJvm2() Option: -Dcatalina.home=f:/jakarta-tomcat-5.0
[notice] vm.openJvm2() Option: -Xmx128M
[notice] vm.open2() done


Juergen

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



RE: setting up a servlet.

2002-11-01 Thread John Trollinger
It would help if you were to provide a little more info..

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:p.mulder@;philips.com] 
> Sent: Friday, November 01, 2002 10:15 AM
> To: [EMAIL PROTECTED]
> Subject: setting up a servlet.
> 
> 
> Hello Reader,
> 
> Currently I am maintaining a server with Apache 1.3 and 
> JServ. On the site of Apache there is a statement that JServ 
> is EOL. Also Apache 1.3 is getting rather old.
> 
> I would like to upgrade to Tomcat, but I cannot get the 
> servlet running. The tomcat server is running great. 
> 
> There is a plan to rewrite the servlet into using JSP but that is a 
> lenghty process.
> 
> Can anyone can help me in getting the servlet running?
> 
> 
> 
> Peter Mulder
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


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




Re: setting up a servlet.

2002-11-01 Thread Mark Nenadov
On November 1, 2002 03:15 pm, [EMAIL PROTECTED] wrote:

> I would like to upgrade to Tomcat, but I cannot get the servlet running.
> The tomcat server is running great.
>
> There is a plan to rewrite the servlet into using JSP but that is a
> lenghty process.
>
> Can anyone can help me in getting the servlet running?
>

I don't think anybody can help you unless you give more details.

You mention that you cannot get the servlet running. Does some sort of error 
occur? What happens when you try to run the servlet?

I hope those questions help us help you.

-- 
Mark Nenadov,
Freelance Software Developer
web: http://www.freelance-developer.com
e-mail: [EMAIL PROTECTED]

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




setting up a servlet.

2002-11-01 Thread p . mulder
Hello Reader,

Currently I am maintaining a server with Apache 1.3 and JServ.
On the site of Apache there is a statement that JServ is EOL.
Also Apache 1.3 is getting rather old.

I would like to upgrade to Tomcat, but I cannot get the servlet running.
The tomcat server is running great. 

There is a plan to rewrite the servlet into using JSP but that is a 
lenghty process.

Can anyone can help me in getting the servlet running?



Peter Mulder


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




Has anyone gotten Castor to work using JNDI?

2002-11-01 Thread Neil Aggarwal
Hello:

Has anyone gotten Castor to work using JNDI and
the JBCP pooling mechanism?

My platform is Tomcat 4.0.6, Apache 2.0.43, and
MySQL 3.23.53a on RedHat Linux 8.0.

When I try to load the JDO object from the JNDI context,
here is the error I get:

javax.naming.NamingException: Cannot create resource instance
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:167)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:311)
at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
at javax.naming.InitialContext.lookup(InitialContext.java:354)
at top.Utils.getJDO(Utils.java:31)

Here is the code that I am using to get the JDO instance:
package top;
// imports
public class Utils {
  public static synchronized JDO getJDO() throws NamingException,
SQLException, MappingException {
ClassLoader loader = Utils.class.getClassLoader();
URL url = loader.getResource("database.xml");
JDO.loadConfiguration(url.toString());
InitialContext ctx = new InitialContext();
return (JDO) ctx.lookup( "java:comp/env/jdo/videoSearchPPV" );
  }
}

Here is my web.xml:

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

  
Resource reference to DataSource
jdbc/videoSearchPPV
javax.sql.DataSource
Container
  
  
Resource reference to JDO
jdo/videoSearchPPV
org.exolab.castor.jdo.JDO
Container
  


Here is my database.xml:

http://castor.exolab.org/jdo-conf.dtd";>

  
  


Here is what I put in tomcat's server.xml:
  


  



  
factory
org.apache.commons.dbcp.BasicDataSourceFactory
  
  
url
jdbc:mysql://localhost:3306/videoSearchPPV
  
  
password
[The password to my database]
  
  
maxWait
100
  
  
maxActive
100
  
  
driverClassName
com.mysql.jdbc.Driver
  
  
username
videoSearchPPV
  
  
maxIdle
3
  

  

Any ideas?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


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




excluding logging

2002-11-01 Thread W. Egan
I am running Apache Tomcat 4.0.5 on two servers being loadbalanced by a
Cisco CSS.  The css polls a page keepalive.htm to determine whether to keep
the server in service or out of service on the Virtual IP address of the
server farm.  How can I exclude logging of this page in the Tomcat logs?

thanks,
began

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




Re: [Win32] Tomcat 5.0 -- JavaSDK problem

2002-11-01 Thread Jacob Kjome

This is a known bug.  Search for it at http://nagoya.apache.org/bugzilla/

The issue is Digester's compatibility with the latest Xerces version.  Try 
using the previous version of Xerces and the issue will likely go away.

Jake

At 03:11 PM 11/1/2002 +0100, you wrote:
Ralph Einfeldt wrote:

Can you verify that your JAVA_HOME is used?

Start tomcat with
catalina.bat run

this should echo the JAVA_HOME that is used.

Hi,
yes, JAVA_HOME is used:
F:\jakarta-tomcat-5.0\bin>catalina.bat run
Using CATALINA_BASE:   f:\jakarta-tomcat-5.0
Using CATALINA_HOME:   f:\jakarta-tomcat-5.0
Using CATALINA_TMPDIR: f:\jakarta-tomcat-5.0\temp
Using JAVA_HOME:   f:\j2sdk1.4.1_01

But now I see another problem with starting Tomcat 5.0 (perhaps in 
xercesImpl.jar):

INFO: Initializing Coyote HTTP/1.1 on port 8088
Starting service Tomcat-Standalone
Apache Tomcat/5.0
01.11.2002 15:02:02 org.apache.catalina.startup.ContextConfig tldScan
INFO: Processed tld  /WEB-INF/struts-logic.tld 391
01.11.2002 15:02:02 org.apache.commons.digester.Digester fatalError
SCHWERWIEGEND: Parse Fatal Error at line 307 column 39: The string "--" is 
not permitted within comments.
org.xml.sax.SAXParseException: The string "--" is not permitted within 
comments.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)
.
01.11.2002 15:02:02 org.apache.catalina.startup.ContextConfig start
SCHWERWIEGEND: Exception processing TLD at resource path /WEB-INF/controls.tld
javax.servlet.ServletException: Exception processing TLD at resource path 
/WEB-INF/controls.tld
at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.ja
va:1159)
.

Juergen

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


RE: [Win32] Tomcat 5.0 -- JavaSDK problem

2002-11-01 Thread Ralph Einfeldt
Looks like /WEB-INF/controls.tld contains a syntax error.
(At least the sax parser thinks tthat there is one)

> -Original Message-
> From: Juergen Heckel [mailto:JHeckel@;t-online.de]
> Sent: Friday, November 01, 2002 3:11 PM
> To: Tomcat Users List
> Subject: Re: [Win32] Tomcat 5.0 -- JavaSDK problem
> 
> SCHWERWIEGEND: Parse Fatal Error at line 307 column 39: The 
> string "--" is not permitted within comments.

> SCHWERWIEGEND: Exception processing TLD at resource path 
> /WEB-INF/controls.tld

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




Re: [Win32] Tomcat 5.0 -- JavaSDK problem

2002-11-01 Thread Juergen Heckel
Ralph Einfeldt wrote:

Can you verify that your JAVA_HOME is used?

Start tomcat with
catalina.bat run

this should echo the JAVA_HOME that is used.


Hi,
yes, JAVA_HOME is used:
F:\jakarta-tomcat-5.0\bin>catalina.bat run
Using CATALINA_BASE:   f:\jakarta-tomcat-5.0
Using CATALINA_HOME:   f:\jakarta-tomcat-5.0
Using CATALINA_TMPDIR: f:\jakarta-tomcat-5.0\temp
Using JAVA_HOME:   f:\j2sdk1.4.1_01

But now I see another problem with starting Tomcat 5.0 (perhaps in 
xercesImpl.jar):

INFO: Initializing Coyote HTTP/1.1 on port 8088
Starting service Tomcat-Standalone
Apache Tomcat/5.0
01.11.2002 15:02:02 org.apache.catalina.startup.ContextConfig tldScan
INFO: Processed tld  /WEB-INF/struts-logic.tld 391
01.11.2002 15:02:02 org.apache.commons.digester.Digester fatalError
SCHWERWIEGEND: Parse Fatal Error at line 307 column 39: The string "--" 
is not permitted within comments.
org.xml.sax.SAXParseException: The string "--" is not permitted within 
comments.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)
.
01.11.2002 15:02:02 org.apache.catalina.startup.ContextConfig start
SCHWERWIEGEND: Exception processing TLD at resource path 
/WEB-INF/controls.tld
javax.servlet.ServletException: Exception processing TLD at resource 
path /WEB-INF/controls.tld
at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.ja
va:1159)
.

Juergen

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



RE: Configuring Tomcat 4.0.3

2002-11-01 Thread Turner, John

For more info on how Tomcat 4 finds classes, you need to read the
ClassLoader HOWTO:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

And perhaps the Application Developer's Guide:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html

John

> -Original Message-
> From: Kaustuv Sharma [mailto:skaustuva@;neline.com]
> Sent: Friday, November 01, 2002 2:49 AM
> To: [EMAIL PROTECTED]
> Subject: Configuring Tomcat 4.0.3
> 
> 
> 
> Hi,
> 
> I have an existing system which  consists of JSP files and 
> jars running on Tomcat 3.2.1 on Linux 6.1 platform. I have to 
> upgrade it to Tomcat 4.0.3 on Red Hat Linux 8.0. However, now 
> I am having problems in loading the jar files. Before the 
> jars were under a different location than the Tomcat location 
> as also the JSP files. and i used to simply run a script to 
> load the jars on to the classpath, after i start the Tomcat 
> server. However, now in the new system I am not being able to 
> load the jars in the classpath. Tomcat simple won't find the 
> jar files. How do I point Tomcat4.4  to the jar location? I 
> would also like to mention here that I am being able to load 
> the JSP files. In the context path, under server.xml, i am 
> pointing the docbase to my application path. Is there any 
> option to point to my classes also here? 
> I am using a similar context path as below:
> 
> 
>  debug="0"
> docbase="/home/opt/myapplication/myfiles"
> crossContext="true"
> reloadable="true"
> trusted="false"
> >
> 
> Also I am not using WARs
> 
> If somebody can suggest any solution it will surely be a great help.
> 
> Thanking you in advance,
> 
> Regards,
> 
> Kaustuv Sharma
> 

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




  1   2   >