RE: org.xml.sax.SAXException

2002-10-07 Thread CLAIRE Celine

you must put parser.jar in lib/common
I use parser crimson, and have no problem

I have a question
Do you know how to access database via JDBC driver with tomcat 3.3.1?

thanks

> -Message d'origine-
> De:   Chandra Sekhar [SMTP:[EMAIL PROTECTED]]
> Date: mardi 8 octobre 2002 08:40
> À:[EMAIL PROTECTED]
> Objet:org.xml.sax.SAXException
> 
> 
> I'm getting the following error using jakarta-tomcat-3.3.1
> 
> org.xml.sax.SAXException: System property org.xml.sax.driver not specified
> 
> I'm using xalan.jar and xerces.jar in my classpath and also I've removed parser.jar 
>from the lib.
> 
> Any clue?
> 
> - Chandra
> 
> 
> 
> -
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos, & more
> faith.yahoo.com



Re: AW: AW: Forwarding in servlets.

2002-10-07 Thread Kwok Peng Tuck

So I just do this ?

RequestDispatcher dispatcher =
request.getRequestDispatcher("/test.jsp?blah=bleh") ;
if (dispatcher!=null) {
 dispatcher.forward(request, response) ;
}



Ralph Einfeldt wrote:

 >As forward works internally you can add parameters
 >to the request. At this point this has nothing to do
 >with GET or POST.
 >
 >
 >
 >>-Ursprüngliche Nachricht-
 >>Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
 >>Gesendet: Dienstag, 8. Oktober 2002 08:56
 >>An: Tomcat Users List
 >>Betreff: Re: AW: Forwarding in servlets.
 >>
 >>
 >>Thanks, so the question now would be like this.
 >>With the dispatcher.forward() method,  is it possible to POST data
 >>instead of tacking parameters at the end
 >>of test.jsp ?
 >>
 >>
 >>
 >
 >--
 >To unsubscribe, e-mail: 

 >For additional commands, e-mail: 

 >
 >
 >
 >




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




AW: AW: Forwarding in servlets.

2002-10-07 Thread Ralph Einfeldt

As forward works internally you can add parameters 
to the request. At this point this has nothing to do 
with GET or POST.

> -Ursprüngliche Nachricht-
> Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 8. Oktober 2002 08:56
> An: Tomcat Users List
> Betreff: Re: AW: Forwarding in servlets.
> 
> 
> Thanks, so the question now would be like this.
> With the dispatcher.forward() method,  is it possible to POST data 
> instead of tacking parameters at the end
> of test.jsp ?
> 

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




Re: AW: Forwarding in servlets.

2002-10-07 Thread Kwok Peng Tuck

Thanks, so the question now would be like this.
With the dispatcher.forward() method,  is it possible to POST data 
instead of tacking parameters at the end
of test.jsp ?

Ralph Einfeldt wrote:

>You can use response.sendRedirect in servlets.
>
>But keep in mind that this is a complette different 
>thing than dispatcher.forward().
>
>redirect() forces the client to do a second request 
>to the url. (You can see this in the browser as it will
>show a different URL). Forward() works internally, the 
>response to the initial request is created by the given 
>servlet/jsp. This is transparent to the client.
>
>  
>
>>-Ursprüngliche Nachricht-
>>Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
>>Gesendet: Dienstag, 8. Oktober 2002 08:42
>>An: [EMAIL PROTECTED]
>>Betreff: Forwarding in servlets.
>>
>>   RequestDispatcher dispatcher = 
>>request.getRequestDispatcher("/test.jsp") ;
>>   if (dispatcher!=null) {
>>dispatcher.forward(request, response) ;
>>   }
>>to forward a request to a jsp page. Is it possible to use 
>>response.sendRedirect like in jsp ?  
>>
>>
>>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>



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




AW: Forwarding in servlets.

2002-10-07 Thread Ralph Einfeldt

You can use response.sendRedirect in servlets.

But keep in mind that this is a complette different 
thing than dispatcher.forward().

redirect() forces the client to do a second request 
to the url. (You can see this in the browser as it will
show a different URL). Forward() works internally, the 
response to the initial request is created by the given 
servlet/jsp. This is transparent to the client.

> -Ursprüngliche Nachricht-
> Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 8. Oktober 2002 08:42
> An: [EMAIL PROTECTED]
> Betreff: Forwarding in servlets.
> 
>RequestDispatcher dispatcher = 
> request.getRequestDispatcher("/test.jsp") ;
>if (dispatcher!=null) {
> dispatcher.forward(request, response) ;
>}
> to forward a request to a jsp page. Is it possible to use 
> response.sendRedirect like in jsp ?  
> 

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




org.xml.sax.SAXException

2002-10-07 Thread Chandra Sekhar


I'm getting the following error using jakarta-tomcat-3.3.1

org.xml.sax.SAXException: System property org.xml.sax.driver not specified

I'm using xalan.jar and xerces.jar in my classpath and also I've removed parser.jar 
from the lib.

Any clue?

- Chandra



-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more
faith.yahoo.com


Forwarding in servlets.

2002-10-07 Thread Kwok Peng Tuck

Is there any way besides the following :

 request.setAttribute("selectedScreen", request.getServletPath()) ;
   RequestDispatcher dispatcher = 
request.getRequestDispatcher("/test.jsp") ;
   if (dispatcher!=null) {
dispatcher.forward(request, response) ;
   }
to forward a request to a jsp page. Is it possible to use 
response.sendRedirect like in jsp ?  
Any suggestions will be great.


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




AW: auto deploy WAR + embedded tomcat

2002-10-07 Thread Ralph Einfeldt

Your mail client uses a from like  "" <[EMAIL PROTECTED]>.

The "" is an empty alias. Some mail clients (like outlook) 
display the name of the receiver whenever they find such
a from address (see below in the line starting with Von:). 
So there are two problems:

- Your mail client produces a cripled from address
  May be you can change that. I don't use hotmail, but
  my freemail provider has the option to change/select 
  the from address that shall be used.
- Some mail clients get confused by this addresses

> -Ursprüngliche Nachricht-
> Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 8. Oktober 2002 07:47
> An: [EMAIL PROTECTED]
> Betreff: RE: auto deploy WAR + embedded tomcat
> 
> 
> Hmm.. Don't know why that is, I'm sending this question from 
> my hotmail account which should be
> 
> Patrick Lacson.
> 
> -P
> 
> 

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




Classpath and Aliases on Tomcat 4

2002-10-07 Thread Matthew Smith

G'Day,

I hope I'm not about to rehash an old subject here.  I couldn't find a
satisfactory answer in the mail archives.

I have a web-based application that is not designed as a webapp.  It has a
single servlet as its interface to the world.  This servlet, and all of its
supporting classes, are in a directory on the file system.  Some of the
classes are unpackaged, while most of them are in JAR or ZIP files.  It also
relies on another directory on the file system for images.  I am trying to
configure a webapp to use this application.  

I need to know how to do two things:  Add elements to the classpath from
elsewhere on the file system; and add a static directory to a web app (as in
the Alias command in the Apache web server).  Currently, I have created a
seperate web app for the static files and just pointed its base directory at
the images directory.  I was hoping for a better way (other than to use IIS
or Apache).  The classpath issue is  more difficult.

I was able to accomplish this in Tomcat 3 by passing the
-Dorg.apache.tomcat.apps.classpath="xxx" system property in the tomcat.bat
file.  Tomcat 4 (Catalina) doesn't seem to know about this property.  I
tried adding the path directly to Tomcat's classpath, but it seems that in
that case, the wrong class loader is used:  I get a NoClassDefFoundError on
HttpServlet.

Any suggestions anyone?  All help muchly appreciated.

Thanks,
Matt

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




Re: Configuring Tomcat to start with different verisons of a Web App

2002-10-07 Thread Andreas Probst

Hi Scott,

you could simply have 3 Tomcats, e.g. .../tomcat1, .../tomcat2, 
.../tomcat3. All you need is to have 3 icons linked to the right 
startup script. If you run only one at a time it will work fine.

Andreas


On 7 Oct 2002 at 14:51, Scott Goldstein wrote:

> At any one time, I have multiple versions of a product that I'm working on on 
> my development box.  In other words, I'm usually fixing bugs in the previos 
> one or two releases while moving forward on the next release.
> 
> This leaves me with three web applications in three seperate directory 
> structures.  I would like to start Tomcat through an icon on my desktop.  To 
> be able to handle all three versions of the web app that I'm working on, I 
> would like to have three seperate icons, one for each web app version.  
> Unfortunately, I haven't figured out how to do this with Tomcat.  It seems 
> that I have to manually edit conf/server.xml in order to start and stop with 
> different web apps installed.
> 
> Can anyone provide suggestions on how to start and stop Tomcat with different 
> web apps installed without having to edit conf/server.xml?
> 
> Thanks.
> 
> Scott
> 
> 
> "Just a mirror for the sun...
>  My smiling eyes are just a mirror for the sun."
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




NullPointerException

2002-10-07 Thread Ben Monnahan

Hi all,

  Does anyone have any ideas why I would get a NullPointerException when
instanciating a class inside of a servlet when the class works fine when
run as its own program?  I am using Java 1.4.0_01 from Sun and Tomcat
4.1.10 with the invoker servlet disabled.

  On a separate but somewhat related note; I have been having all sorts of
problems with servlets in Tomcat.  Am I alone in this or is it just a
complicated system?

Thanks,
Ben Monnahan


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




RE: Apache with Tomcat

2002-10-07 Thread sonam singh

u can use mod_jk to connect apache with tomcat .
regards
Sonam Singh

--- "Turner, John" <[EMAIL PROTECTED]> wrote:
> 
> Yes.  Search the archives, this topic comes up all
> the time.
> 
> It's the same setup as putting Apache and Tomcat on
> the same machine, except
> that you change the server name in a few places to
> be the FQDN instead of
> "localhost"
> 
> John
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, October 07, 2002 3:14 PM
> > To: [EMAIL PROTECTED]
> > Subject: Apache with Tomcat
> > 
> > 
> > Can I integrate Apahce and  Tomcat if Apache is
> running in different
> > machine than Tomcat?
> > Is this it possible, How can I do that?
> > 
> > Regards.
> > Alejandro
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> >
> 
> > For additional commands, e-mail: 
> > 
> > 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


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

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




Re: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear

2002-10-07 Thread sonam singh


in order to connect the apache with tomccat there is
two or three way to connecyt 
1) using mod_jk 2) mod_webapps 3) mod_jserv
1) with mod_jk , create the mod_jk.dll copy it into
apache/modules directory and create the two files one
is mod_jk.conf & other is worker.properties 
mod_jk.conf look like this  change the path accourding
to u'r need 
..
LoadModule jk_module /apache/libexec/mod_jk.dll
AddModule mod_jk.c
JkWorkersFile /apache/conf/workers.properties
JkLogFile  apache/logs/jk.log
JkLogLevel info
#JkMount /servlet/* ajp12
JkMount /contextXX(u'r context)/* ajp13


and worker.properties is like that ..


ps=\

worker.list=ajp13

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp12


regards
Sonam Singh







--- Jacob Kjome <[EMAIL PROTECTED]> wrote:
> Whoops, I didn't read your whole message before I
> sent the last response.
> 
> You are looking for auto-generating the config for
> mod_jk.
> 
> Try this (change any paths given to match your
> installation):
> 
> Put the following immediately within your  ...> element:
> 
> 
className="org.apache.ajp.tomcat4.config.ApacheConfig"
> 
>
modJk="c:/Progra~1/Apache~1/Apache2/modules/mod_jk.dll"
>  jkDebug="info"
> 
>
workersConfig="c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.12/conf/jk/workers.properties"
> 
>
jkLog="c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.12/logs/mod_jk.log"
> 
> />
> 
> 
> Then put the following immediately within any and
> all  elements:
> 
> 
className="org.apache.ajp.tomcat4.config.ApacheConfig"
>  append="true"
>  forwardAll="false" />
> 
> 
> This will generate a auto\mod_jk.conf file in
> Tomcat's conf directory.
> 
> Note.  I never use that file.  I copy it to the conf
> directory and modify 
> it.  It can't be used directly because the way the
> auto-configuration 
> writes out the inclusion of mod_jk.dll isn't right
> and I haven't figured 
> out how to make it do it properly.  It writes it out
> like this:
> 
> 
>LoadModule jk_module
> c:/Progra~1/Apache~1/Apache2/modules/mod_jk.dll
> 
> 
> However, when you include it in your httpd.conf,
> Apache doesn't lkek the 
> full path.  So I rewrite that like this:
> 
> 
>LoadModule jk_module modules/mod_jk.dll
> 
> 
> 
> Then I add any other specifics to that file that I
> want in there, but the 
> autoconfigure couldn't have known about like apps
> that I install 
> dynamically at runtime.
> 
> BTW, I'm not sure about that "" deal? 
> What I gave you should 
> do the trick.
> 
> Jake
> 
> 
> At 08:19 PM 10/7/2002 -0700, you wrote:
> >I'm trying to configure Tomcat 4.1 to run under
> Apache 2.0.43 on Windows
> >2000 Advanced server
> >
> >I have succesfuly installed
> >Apache 2.0.43
> >j2sdk-1_4_1-windows
> >Tomcat 4.1
> >
> >I'm having trouble connecting Tomcat and Apache.
> >
> >I've read all the documents and everytime I think I
> know were to go to edit
> >a file or look for a auto created file its not
> there.
> >
> >I would like to use the Apache auto-configure or
> any other method that is
> >easy so I can begin the learning process.
> >
> >What I've try so far:
> >*Installed applications
> >-Apache 2.0.43
> >-j2sdk-1_4_1-windows
> >-Tomcat 4.1
> >
> >*Edited httpd.conf
> >Just added >   Include "C:\Program Files\Apache
> Group\Tomcat
> >4.1/conf/jk/mod_jk.conf-auto"
> >
> >*Copied mod_jk-2.0.42.dll
> >Into > C:\Program Files\Apache
> Group\Apache2\modules
> >
> >*Edit server.xml looked for " C:\Program Files\Apache
> >Group\Tomcat 4.1\conf\server.xml
> >I could not find any line with AutoWebApp in it.
> >So I just added   just above the
> final 
> >
> >Here is an exerpt from the manual
> >"To configure Tomcat to generate the Apache
> auto-configuration add the
> >following block to your TOMCAT_HOME/conf/server.xml
> file after  >... />.
> >"
> >
> >This is were I get lost. Also I'm not sure I'm
> copying the dll into the
> >right directory. All the other files in the module
> directory are of the .so
> >extention so the mod_jk-2.0.42.dll is the only
> dll.The manual is also not
> >specif were to put the dll. or at least the path is
> not refference the same
> >as my instalation.
> >
> >Thanks in advance for any and all support
> >
> >You can reach me at [EMAIL PROTECTED] or the board.
> >
> >
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:  
> 
> >For additional commands, e-mail:
> 
> 


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

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




war file wont unpack

2002-10-07 Thread Chris Stokes

I am tinkering with 4.1.12 and have run into a problem where Tomcat won't unpack a 
simple war file that used to work fine on 4.0.3.
I get the following error in the log file.

2002-10-08 14:10:42 HostConfig[localhost]: Expanding web application archive test.war
2002-10-08 14:10:42 HostConfig[localhost] Exception while expanding web application 
archive test.war
java.io.FileNotFoundException: /var/tomcat4/webapps/test/META-INF/MANIFEST.MF (No such 
file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:176)
at java.io.FileOutputStream.(FileOutputStream.java:131)
at org.apache.catalina.startup.HostConfig.expand(Unknown Source)
at org.apache.catalina.startup.HostConfig.expand(Unknown Source)
at org.apache.catalina.startup.HostConfig.deployWARs(Unknown Source)
at org.apache.catalina.startup.HostConfig.deployApps(Unknown Source)
at org.apache.catalina.startup.HostConfig.start(Unknown Source)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown Source)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardHost.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardEngine.start(Unknown Source)
at org.apache.catalina.core.StandardService.start(Unknown Source)
at org.apache.catalina.core.StandardServer.start(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)

It states that the META-INF/MANIFEST.MF file does not exist, however I have checked 
the war file and it does exist, what's more this war file unpacks fine on Tomcat 4.0.3

The following is my server.xml file.



  
  
  



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

  
  

  


  


  

  


  


  
  
  

  


Chris Stokes
Senior Systems Consultant
Bass Software Pty Ltd
[EMAIL PROTECTED]


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




Re: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear

2002-10-07 Thread Jacob Kjome

Whoops, I didn't read your whole message before I sent the last response.

You are looking for auto-generating the config for mod_jk.

Try this (change any paths given to match your installation):

Put the following immediately within your  element:




Then put the following immediately within any and all  elements:




This will generate a auto\mod_jk.conf file in Tomcat's conf directory.

Note.  I never use that file.  I copy it to the conf directory and modify 
it.  It can't be used directly because the way the auto-configuration 
writes out the inclusion of mod_jk.dll isn't right and I haven't figured 
out how to make it do it properly.  It writes it out like this:


   LoadModule jk_module c:/Progra~1/Apache~1/Apache2/modules/mod_jk.dll


However, when you include it in your httpd.conf, Apache doesn't lkek the 
full path.  So I rewrite that like this:


   LoadModule jk_module modules/mod_jk.dll



Then I add any other specifics to that file that I want in there, but the 
autoconfigure couldn't have known about like apps that I install 
dynamically at runtime.

BTW, I'm not sure about that "" deal?  What I gave you should 
do the trick.

Jake


At 08:19 PM 10/7/2002 -0700, you wrote:
>I'm trying to configure Tomcat 4.1 to run under Apache 2.0.43 on Windows
>2000 Advanced server
>
>I have succesfuly installed
>Apache 2.0.43
>j2sdk-1_4_1-windows
>Tomcat 4.1
>
>I'm having trouble connecting Tomcat and Apache.
>
>I've read all the documents and everytime I think I know were to go to edit
>a file or look for a auto created file its not there.
>
>I would like to use the Apache auto-configure or any other method that is
>easy so I can begin the learning process.
>
>What I've try so far:
>*Installed applications
>-Apache 2.0.43
>-j2sdk-1_4_1-windows
>-Tomcat 4.1
>
>*Edited httpd.conf
>Just added >   Include "C:\Program Files\Apache Group\Tomcat
>4.1/conf/jk/mod_jk.conf-auto"
>
>*Copied mod_jk-2.0.42.dll
>Into > C:\Program Files\Apache Group\Apache2\modules
>
>*Edit server.xml looked for "Group\Tomcat 4.1\conf\server.xml
>I could not find any line with AutoWebApp in it.
>So I just added   just above the final 
>
>Here is an exerpt from the manual
>"To configure Tomcat to generate the Apache auto-configuration add the
>following block to your TOMCAT_HOME/conf/server.xml file after ... />.
>"
>
>This is were I get lost. Also I'm not sure I'm copying the dll into the
>right directory. All the other files in the module directory are of the .so
>extention so the mod_jk-2.0.42.dll is the only dll.The manual is also not
>specif were to put the dll. or at least the path is not refference the same
>as my instalation.
>
>Thanks in advance for any and all support
>
>You can reach me at [EMAIL PROTECTED] or the board.
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



RE: Session.invalidate() does not work

2002-10-07 Thread Craig R. McClanahan



On Tue, 8 Oct 2002, Gary Henson wrote:

> Date: Tue, 8 Oct 2002 16:45:11 +1300
> From: Gary Henson <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: Session.invalidate() does not work
>
> I have encountered the same problem with form based authentication.
>

I haven't.  Case study example -- the admin webapp in Tomcat 4.1 uses this
approach, and it really does log you off when the session is invalidated
(or times out).

Craig

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 8 October 2002 16:39
> To: Tomcat Users List
> Subject: Re: Session.invalidate() does not work
>
> On Mon, 7 Oct 2002, Alex Imbastari wrote:
>
> > Date: Mon, 07 Oct 2002 19:45:27 +0100
> > From: Alex Imbastari <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: Session.invalidate() does not work
> >
> > Hi all
> > I am using TOmcat 4.1 with Basic  Authentication with JDBC Realm.  I
> log
> > off users using session.invalidate() but this doesn't seem to work.
> Any
> > suggesstions would be appreciated
> >
>
> You probably want to use form-based authentication instead.
>
> The reason for this is that use of BASIC authentication causes the
> *browser* to keep sending the authentication credentials with every
> request, and there doesn't seem to be any portable way of stopping this
> short of having the user close down and reopen their browser.
>
> > Thanks
> > Alex
>
> 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: 




Re: RE: RE: JK2 Installation

2002-10-07 Thread Malachi de AElfweald

I am using 4.6-STABLE I found something online, and did 'man pthread',
and it said I just have to do 'gcc -pthread' to enable pthread support
So, I am confused about it not being threaded???  How would I verify if it
is?

You're right about the JDK thing. I noticed there was a port collection for
the 1.4 docs, but, no binary.  Tomcat/Apache seem to both work fine in
Standalone mode Apache was installed from the Ports Collection, and Tomcat
from Source. I honestly didn't even consider getting the linux version...

The only jk2 binary listed right now is for win32
( http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/bin/ ),
thus the reason I was trying the src.

Due to your comment, I did download the previous linux version
(2.0.42 from the 2.0.0 directory)... When trying it, I got the error message
that "Shared object libc.so.6 not found"... Guess it doesn't like a linux mod on a bsd 
build.

I might have to uninstall everything and reinstall the linux versions, but that
really isn't the correct answer, I don't think -- since I would never be able to use
the Port Collections to upgrade the server after that...

Have you successfully built the new jk2 on BSD? Do you have any clue how?

Mal


10/7/2002 2:02:42 PM, "Robert L Sowders" <[EMAIL PROTECTED]> wrote:

>Unless you're using the -current version of FreeBSD, it's not threaded. 
>Apache2 should really only be used on Operating systems that are threaded 
>or you don't realize any gain from it other than some new mods.
>
>You're running the linux version of the JDK because there is no native 
>port for 1.4 for FreeBSD, yet.  Why not use the linux binary version of 
>Tomcat together with the linux version of apache and the linux binary 
>version of mod_jk2?The linux emulation layer runs out of the kernel so 
>it should not be too much overhead.
>
>I wish FreeBSD did have a native port for JDK 1.4.
>
>rls
>
>
>
>
>Malachi de AElfweald <[EMAIL PROTECTED]>
>10/07/2002 01:30 PM
>Please respond to "Tomcat Users List"
>
> 
>To: tomcat-list <[EMAIL PROTECTED]>
>cc: 
>Subject:Re: RE: RE: JK2 Installation
>
>I'm sorry if that seemed a bit harsh -- it was not meant to be.  I had 
>just read
>a LOT of emails from you, and that was how it came across.
>
>Originally, the problem I was having with FreeBSD was that if I tried to 
>LoadModule
>the mod_jk2.so, it said that pthread_mutex_unlock was unknown.  I did a 
>lot of
>investigation, and came to the conclusion that '-pthread' had to be added 
>to the
>CC flags.  In doing so, I have, as of yet, not been able to build 
>mod_jk2.so anymore.
>Not sure why. Can't figure it out.
>
>Regarding the example you've shown.  I have seen that one repeatedly, and 
>it only
>applies to sockets. It does not apply to using the inprocess JNI, which I 
>am trying
>to use because Tomcat is REALLY slow, even locally on the LAN. That is 
>supposed to
>speed it up. but, there is no example of configuring for it...
>
>I might have to subscribe to the dev list.  I haven't, because I don't 
>have the time
>to spend on it...  I had previously been actively on the Ant development 
>list, and it
>was very time consuming.  I don't have that kind of time right now.  I 
>know, in theory,
>that it is supposed to be possible -- I just haven't figured out how yet. 
>Perhaps
>I will join -dev so someone can tell me.
>
>I didn't realize that page was the Goal.  I downloaded Tomcat, went to the 
>online docs,
>and started following directions.  I can get it to work standalone now, 
>but have it shut
>down because it is just too slow.  When I found the "why to use JK2", I 
>thought it was more
>like saying "Why use JDK1.4 over JDK1.02"
>
>Thanks for your reply, hopefully I will be able to figure this out.
>Malachi
>
>
>10/7/2002 1:20:19 PM, "Turner, John" <[EMAIL PROTECTED]> wrote:
>
>>
>>OK, let's be honest if we're going to post.  I certainly did not say "JK2 
>is
>>in beta, not to be trusted, use something else, read the list, don't
>>complain about the documentation, etc etc"
>>
>>I _did_ say JK2 is "beta".  That has different meanings to different 
>people.
>>I'm primarily a sys-admin in charge of production servers.  If someone 
>(that
>>someone being from the dev or release team) posts that JK2 should be
>>considered "beta", that means "not fit for production yet, but probably 
>OK
>>for development if you don't mind a few bugs".  That's me.  To others,
>>"beta" may mean something entirely different.  To each, his/her own, make
>>your own decisions.
>>
>>JServ and JK have been working great for me, on high-traffic,
>>resource-intensive, production sites.  I see no reason to jump on the JK2
>>bandwagon until the codebase is more stable.  Again, that's me, and 
>perhaps
>>the latest version (2.0.1) is that codebase, I have no way of knowing
>>without testing it myself and seeing what other people do with it.
>>Latest/greatest isn't always the wisest.  That said, use 

Re: TOmcat 4.0.1 and JDOM b8

2002-10-07 Thread Malachi de AElfweald

"Incompatible object argument for function call"

Sounds like the API changed and one of your servlets expected one
format, and the other servlet expected another...  If you open the
jars, you should be able to compare the two files

Malachi

10/7/2002 2:48:00 PM, "Cyril Vidal" <[EMAIL PROTECTED]> wrote:

>Yes, in fact, I've put the xerces.jar given with JDOM  in
>$JAVA_HOME/jre/lib/ext.
>And I've no more the SAXNotRecognized Exception.
>
>But, it's very strange, I've got now the following error when I run another
>servlet that was running well before the manipulation.
>Here is the beggining of my very basic code:
>
>// Imported TraX classes
>import javax.xml.transform.TransformerFactory;
>import javax.xml.transform.Transformer;
>import javax.xml.transform.stream.StreamSource;
>import javax.xml.transform.stream.StreamResult;
>import javax.xml.transform.TransformerException;
>import javax.xml.transform.TransformerConfigurationException;
>
>
>// Imported java classes
>import java.io.FileOutputStream;
>import java.io.FileNotFoundException;
>import java.io.IOException;
>import org.apache.xerces.parsers.DOMParser;
>import org.w3c.dom.Document;
>import org.w3c.dom.NodeList;
>import java.io.*;
>import javax.servlet.*;
>import javax.servlet.http.*;
>
>
>public class TransformServlet extends HttpServlet {
>
> public  void doGet(HttpServletRequest request, HttpServletResponse
>response)
> throws IOException, ServletException
>  {
>
>String thisProduct_id = request.getParameter("product_id");
>
>and here is the Exception generated by Tomcat:
>root cause
>
>java.lang.VerifyError: (class: TransformServlet, method: doGet signature:
>(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
>nse;)V) Incompatible object argument for function call
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:237)
> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820)
> at
>org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
> at
>org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
>:396)
> at
>org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
>What do you think is still wrong?
>Do I have to do something especially with TOmcat?
>Thanks for your responses,
>Cyril.
>___
>
>Cyril Vidal
>Email: [EMAIL PROTECTED]
>Web: http://www.planetexml.com
>- Original Message -
>From: "Malachi de AElfweald" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Tomcat Users
>List" <[EMAIL PROTECTED]>
>Sent: Monday, October 07, 2002 10:28 PM
>Subject: Re: TOmcat 4.0.1 and JDOM b8
>
>
>> Also, make sure that an older version is not in $JAVA_HOME/jre/lib/ext
>> cuz that would get used first
>>
>> Malachi
>>
>>
>> 10/7/2002 1:14:36 PM, Padhu Vinirs <[EMAIL PROTECTED]> wrote:
>>
>> >JDOM is only a easy-to-use-wrapper for java programmers around standard
>> >xml parsers. The 'SAXNotRecognizedOption" is an object in xerces.jar.
>> >make sure the xerces.jar that comes with JDOM beta 8 is in your web
>> >app's classpath. Maybe JDOM beta 8 supports a version of xerces that
>> >Tomcat is not supporting.
>> >
>> >-- padhu
>> >
>> >
>> >
>> >cyril vidal wrote:
>> >
>> >>Hi,
>> >>
>> >>I'm using Tomcat 4.0.1 and I have such a code snippet, using JDOM beta
>8:
>> >>import java.io.*;
>> >>import javax.servlet.*;
>> >>import javax.servlet.http.*;
>> >>import org.jdom.Element;
>> >>import org.jdom.Document;
>> >>import org.jdom.output.XMLOutputter;
>> >>import org.jdom.input.SAXBuilder;
>> >>import org.jdom.JDOMException;
>> >>
>> >>
>> >>public class AddToOrder extends HttpServlet {
>> >>
>> >>public Document getDocument(File sourceFile, PrintWriter errorsOut) {
>> >>try {
>> >>  SAXBuilder builder = new SAXBuilder();
>> >>Document document = builder.build(sourceFile);
>> >>  return document;
>> >>
>> >>} catch (JDOMException e) {
>> >>errorsOut.print("Un problème s'est produit pendant la construction
>du
>> >>document : "
>> >>   +e.getMessage() + ""  + "Un document vide est retourné.");
>> >>   return new Document(new Element("blank"));
>> >>...
>> >>
>> >>I receive systematically the following error message :
>> >>
>> >>root cause
>> >>
>> >>java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException
>> >> at AddToOrder.getDocument(AddToOrder.java:15)
>> >> at AddToOrder.doGet(AddToOrder.java:68)
>> >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>> >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>> >> at
>>
>>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
>on
>> >>FilterChain.java:247
>> >>
>> >>Waht's this class? I can't find it into xercesImpl.jar in the lib
>directory
>> >>of Tomcat, so why this method is

Re: Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear

2002-10-07 Thread Jacob Kjome


The problem is you are using the 2.0.42 mod_jk dll with Apache 2.0.43.  You 
need a mod_jk that was compiled specifically for version 2.0.43 of Apache.

This site is usually up-to-date with the binaries, but only have 2.0.42 
binaries right now:
http://www.acg-gmbh.de/mod_jk/

Check back for updated ones.

Jake

At 08:19 PM 10/7/2002 -0700, you wrote:
>I'm trying to configure Tomcat 4.1 to run under Apache 2.0.43 on Windows
>2000 Advanced server
>
>I have succesfuly installed
>Apache 2.0.43
>j2sdk-1_4_1-windows
>Tomcat 4.1
>
>I'm having trouble connecting Tomcat and Apache.
>
>I've read all the documents and everytime I think I know were to go to edit
>a file or look for a auto created file its not there.
>
>I would like to use the Apache auto-configure or any other method that is
>easy so I can begin the learning process.
>
>What I've try so far:
>*Installed applications
>-Apache 2.0.43
>-j2sdk-1_4_1-windows
>-Tomcat 4.1
>
>*Edited httpd.conf
>Just added >   Include "C:\Program Files\Apache Group\Tomcat
>4.1/conf/jk/mod_jk.conf-auto"
>
>*Copied mod_jk-2.0.42.dll
>Into > C:\Program Files\Apache Group\Apache2\modules
>
>*Edit server.xml looked for "Group\Tomcat 4.1\conf\server.xml
>I could not find any line with AutoWebApp in it.
>So I just added   just above the final 
>
>Here is an exerpt from the manual
>"To configure Tomcat to generate the Apache auto-configuration add the
>following block to your TOMCAT_HOME/conf/server.xml file after ... />.
>"
>
>This is were I get lost. Also I'm not sure I'm copying the dll into the
>right directory. All the other files in the module directory are of the .so
>extention so the mod_jk-2.0.42.dll is the only dll.The manual is also not
>specif were to put the dll. or at least the path is not refference the same
>as my instalation.
>
>Thanks in advance for any and all support
>
>You can reach me at [EMAIL PROTECTED] or the board.
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



RE: Session.invalidate() does not work

2002-10-07 Thread Gary Henson

I have encountered the same problem with form based authentication.

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 8 October 2002 16:39
To: Tomcat Users List
Subject: Re: Session.invalidate() does not work

On Mon, 7 Oct 2002, Alex Imbastari wrote:

> Date: Mon, 07 Oct 2002 19:45:27 +0100
> From: Alex Imbastari <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Session.invalidate() does not work
>
> Hi all
> I am using TOmcat 4.1 with Basic  Authentication with JDBC Realm.  I
log
> off users using session.invalidate() but this doesn't seem to work.
Any
> suggesstions would be appreciated
>

You probably want to use form-based authentication instead.

The reason for this is that use of BASIC authentication causes the
*browser* to keep sending the authentication credentials with every
request, and there doesn't seem to be any portable way of stopping this
short of having the user close down and reopen their browser.

> Thanks
> Alex

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: Session.invalidate() does not work

2002-10-07 Thread Craig R. McClanahan



On Mon, 7 Oct 2002, Alex Imbastari wrote:

> Date: Mon, 07 Oct 2002 19:45:27 +0100
> From: Alex Imbastari <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Session.invalidate() does not work
>
> Hi all
> I am using TOmcat 4.1 with Basic  Authentication with JDBC Realm.  I log
> off users using session.invalidate() but this doesn't seem to work.  Any
> suggesstions would be appreciated
>

You probably want to use form-based authentication instead.

The reason for this is that use of BASIC authentication causes the
*browser* to keep sending the authentication credentials with every
request, and there doesn't seem to be any portable way of stopping this
short of having the user close down and reopen their browser.

> Thanks
> Alex

Craig


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




Configuring Tomcat4.1 to use Apache2.0.43 win32, Doc's not clear

2002-10-07 Thread Admin Dobsons.org

I'm trying to configure Tomcat 4.1 to run under Apache 2.0.43 on Windows
2000 Advanced server

I have succesfuly installed
Apache 2.0.43
j2sdk-1_4_1-windows
Tomcat 4.1

I'm having trouble connecting Tomcat and Apache.

I've read all the documents and everytime I think I know were to go to edit
a file or look for a auto created file its not there.

I would like to use the Apache auto-configure or any other method that is
easy so I can begin the learning process.

What I've try so far:
*Installed applications
-Apache 2.0.43
-j2sdk-1_4_1-windows
-Tomcat 4.1

*Edited httpd.conf
Just added >   Include "C:\Program Files\Apache Group\Tomcat
4.1/conf/jk/mod_jk.conf-auto"

*Copied mod_jk-2.0.42.dll
Into > C:\Program Files\Apache Group\Apache2\modules

*Edit server.xml looked for "  just above the final 

Here is an exerpt from the manual
"To configure Tomcat to generate the Apache auto-configuration add the
following block to your TOMCAT_HOME/conf/server.xml file after .
"

This is were I get lost. Also I'm not sure I'm copying the dll into the
right directory. All the other files in the module directory are of the .so
extention so the mod_jk-2.0.42.dll is the only dll.The manual is also not
specif were to put the dll. or at least the path is not refference the same
as my instalation.

Thanks in advance for any and all support

You can reach me at [EMAIL PROTECTED] or the board.






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




Mysql DataSource with Tomcat 4.1

2002-10-07 Thread Alex Imbastari

I'm using a mysql jdbc datasource with TOmcat 4.1.  Two questions
1) Does TOmcat pool database connections?  If so where are the number of 
pooled connections specified?
2)  The server seems to hang after about 3 accesses to the database. 
 Has anyone experienced this?

THanks
Alex



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




Session.invalidate() does not work

2002-10-07 Thread Alex Imbastari

Hi all
I am using TOmcat 4.1 with Basic  Authentication with JDBC Realm.  I log 
off users using session.invalidate() but this doesn't seem to work.  Any 
suggesstions would be appreciated

Thanks
Alex



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




Error using ajp13 protocol

2002-10-07 Thread Marc Vila Pérez

Hi!
I'm trying to connect apache with tomcat, using jk (ajp13), in my
mod_jk.log (debug log level), I can read this:

[Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1
[Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (299)]: Into
jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1
was added
[Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (408)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules
[Tue Oct 08 02:49:20 2002]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (88)]: Into wc_open
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (222)]: Into build_worker_map,
creating 1 workers
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (228)]: build_worker_map,
creating worker local_pt1
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (162)]: wc_create_worker, about
to create instance local_pt1 of ajp13
[Tue Oct 08 02:49:20 2002]  [jk_ajp13_worker.c (108)]: Into
ajp13_worker_factory
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (171)]: wc_create_worker, about
to validate and init local_pt1
[Tue Oct 08 02:49:20 2002]  [jk_ajp_common.c (1206)]: Into
jk_worker_t::validate
[Tue Oct 08 02:49:20 2002]  [jk_ajp_common.c (1226)]: In
jk_worker_t::validate for worker local_pt1 contact is localhost:8009
[Tue Oct 08 02:49:20 2002]  [jk_ajp_common.c (1254)]: Into
jk_worker_t::init
[Tue Oct 08 02:49:20 2002]  [jk_ajp_common.c (1274)]: In
jk_worker_t::init, setting socket timeout to 0
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (187)]: wc_create_worker, done
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (238)]: build_worker_map,
removing old local_pt1 worker
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (250)]: build_worker_map, done
[Tue Oct 08 02:49:20 2002]  [jk_worker.c (111)]: wc_open, done 1

[Tue Oct 08 02:49:21 2002]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Oct 08 02:49:21 2002]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Tue Oct 08 02:49:21 2002]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1
[Tue Oct 08 02:49:21 2002]  [jk_uri_worker_map.c (299)]: Into
jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1
was added
[Tue Oct 08 02:49:21 2002]  [jk_uri_worker_map.c (408)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules
[Tue Oct 08 02:49:21 2002]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Tue Oct 08 02:49:21 2002]  [jk_worker.c (88)]: Into wc_open
[Tue Oct 08 02:49:21 2002]  [jk_worker.c (222)]: Into build_worker_map,
creating 1 workers
[Tue Oct 08 02:49:21 2002]  [jk_worker.c (228)]: build_worker_map,
creating worker local_pt1
[Tue Oct 08 02:49:21 2002]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Oct 08 02:49:21 2002]  [jk_worker.c (162)]: wc_create_worker, about
to create instance local_pt1 of ajp13
[Tue Oct 08 02:49:21 2002]  [jk_ajp13_worker.c (108)]: Into
ajp13_worker_factory
[Tue Oct 08 02:49:21 2002]  [jk_worker.c (171)]: wc_create_worker, about
to validate and init local_pt1
[Tue Oct 08 02:49:21 2002]  [jk_ajp_common.c (1206)]: Into
jk_worker_t::validate
[Tue Oct 08 02:49:21 2002]  [jk_ajp_common.c (1226)]: In
jk_worker_t::validate for worker local_pt1 contact is localhost:8009
[Tue Oct 08 02:49:21 2002]  [jk_ajp_common.c (1254)]: Into
jk_worker_t::init
[Tue Oct 08 02:49:21 2002]  [jk_ajp_common.c (1274)]: In
jk_worker_t::init, setting socket timeout to 0
[Tue Oct 08 02:49:21 2002]  [jk_worker.c (187)]: wc_create_worker, done
[Tue Oct 08 02:49:21 2002]  [jk_worker.c (238)]: build_worker_map,
removing old local_pt1 worker
[Tue Oct 08 02:49:21 2002]  [jk_worker.c (250)]: build_worker_map, done
[Tue Oct 08 02:49:21 2002]  [jk_worker.c (111)]: wc_open, done 1

(I don't know why repeat two times the sames, but seems that start ok)

[Tue Oct 08 02:50:10 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Oct 08 02:50:10 2002]  [jk_uri_worker_map.c (477)]: Attempting to
map URI '/index.jsp'
[Tue Oct 08 02:50:10 2002]  [jk_uri_worker_map.c (558)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match local_pt1
-> *.jsp
[Tue Oct 08 02:50:10 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Oct 08 02:50:10 2002]  [jk_uri_worker_map.c (477)]: Attempting to
map URI '/index.jsp'
[Tue Oct 08 02:50:10 2002]  [jk_uri_worker_map.c (558)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match local_pt1
-> *.jsp
[Tue Oct 08 02:50:10 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name local_pt1
[Tue Oct 08 02:50:10 2002]  [jk_worker.c (136)]: wc_get_worke

Re: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Mark R. Diggory

> This doesn't seem to happen with the standard.jar and I'm totally 
> copying its layout and the version information at the beginning of the 
> file accept for the encoding being UTF-8 instead of ISO...

Well, I notice that the standard jar also stores the files under thier 
own names and not /meta-inf/taglib.tld. I would suspect this is why this 
error doesn't show up with the standard taglib, and probibly with any of 
the other taglibraries at Jakarta as well, because they all do not use 
the /meta-inf/taglib.tld convention outlined in the JSP specification. 
They all bank on the new clauses which say you can put the taglib under 
any name in the /meta-inf/ as long as it has a tld. extension. But I bet 
this particular clause isn't tested in Jasper/Tomcat yet?  Plus I notice 
that the jakarta taglibs also reley on the the tld being in the WEB-INF 
instead of in the Jar. The one in the Jar is never really getting used! 
The one in WEB-INF is getting loaded. I bet this is a bug. It smells 
like a bug to me...

>
> The beginning of my files look like this
> 
>  Library 1.2//EN"
>"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
> 
>1.1
>1.2
>Conditional
>
> The beginning of the standard.jar files looks like this
> 
>  Library 1.2//EN"
>  "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
> 
>1.0
>1.2
>
> I'm generating my tld files using Forte4J because I like the code 
> generation capabilities. It forces the tld files to be UTF-8. I really 
> don't think that should be so much of a problem. Expecially if when 
> the tld is outside of the jar it working fine. This seems to be 
> something to do with the mechanism that gets the tld from the Jar file 
> (which I have absolutely no knowledge of, or want to explore in any 
> detail personally). Could it be trying to force a specific encoding 
> onto the parser? Or could it not be setting the encoding appropriately 
> in the parser. I know that when you set a Char/Stream to the parser 
> you have tell the parser its encoding. I would suspect there is a 
> difference in the code between pulling from the Jar vs. Pulling it 
> from the file. Probibly something like getting the resource from a 
> JarUrlConnection vs pulling it from some resource location.
>
> I'll play with the encodings again, but I doubt it will effect 
> anything in the long run. Again, I don't get any problems from 
> validating this file directly using Xerces 1.4.4.
>
> -Mark Diggory
>




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




Re: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Mark R. Diggory

When I was working with LE versions of Tomcat I believe it was 
defaulting to whatever is in j2sdk1.4.0. I think this is Crimson, only 
because the code for Crimson is in the src.zip of j2sdk. What I saw with 
that was the following parsing error:

PARSE error at line 1 column -1
org.xml.sax.SAXParseException: Character conversion error: "Malformed 
UTF-8 char
 -- is an XML encoding declaration missing?" (line number may be too low).

So I got sick of trying to solve that and went and got all the full 
versions. Now whatever version of Xerces is present in the full versions 
1.4.4 (I think) I'm not sure about Tomcat 4.1. Does that use Xerces2?

Then the error becomes less obvious
PARSE error at line 1 column 1
org.xml.sax.SAXParseException: The markup in the document preceding the 
root ele
ment must be well-formed.

So, I don't think its the parser specifically. I pull the tld files out 
of the Jar and reference them directly in the web.xml file and they work 
fine with not exceptions. If there's a tld in any of my custom tag jar 
files I get the exception. This doesn't seem to happen with the 
standard.jar and I'm totally copying its layout and the version 
information at the beginning of the file accept for the encoding being 
UTF-8 instead of ISO...

The beginning of my files look like this

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

1.1
1.2
Conditional

The beginning of the standard.jar files looks like this

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

1.0
1.2

I'm generating my tld files using Forte4J because I like the code 
generation capabilities. It forces the tld files to be UTF-8. I really 
don't think that should be so much of a problem. Expecially if when the 
tld is outside of the jar it working fine. This seems to be something to 
do with the mechanism that gets the tld from the Jar file (which I have 
absolutely no knowledge of, or want to explore in any detail 
personally). Could it be trying to force a specific encoding onto the 
parser? Or could it not be setting the encoding appropriately in the 
parser. I know that when you set a Char/Stream to the parser you have 
tell the parser its encoding. I would suspect there is a difference in 
the code between pulling from the Jar vs. Pulling it from the file. 
Probibly something like getting the resource from a JarUrlConnection vs 
pulling it from some resource location.

I'll play with the encodings again, but I doubt it will effect anything 
in the long run. Again, I don't get any problems from validating this 
file directly using Xerces 1.4.4.

-Mark Diggory



Jean-Francois Arcand wrote:

> Which version of Xerces are you using? If it's 2.2, there is a bug 
> associated with the problem:
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13282
>
> -- Jeanfrancois
>
>
>
> Mark R. Diggory wrote:
>
>> I keep getting these parsing exceptions when I try to load my custom 
>> taglibs (from JAR files) on Tomcat 4.0.3, 4.0.5, 4.1 on Windows 2000/XP.
>>
>>> Starting service Tomcat-Standalone
>>> Apache Tomcat/4.0.3
>>> PARSE error at line 1 column -1
>>> org.xml.sax.SAXParseException: Character conversion error: 
>>> "Malformed UTF-8 char
>>>  -- is an XML encoding declaration missing?" (line number may be too 
>>> low).
>>> PARSE error at line 1 column -1
>>> org.xml.sax.SAXParseException: Character conversion error: 
>>> "Malformed UTF-8 char
>>>  -- is an XML encoding declaration missing?" (line number may be too 
>>> low).
>>> PARSE error at line 1 column -1
>>> org.xml.sax.SAXParseException: Character conversion error: 
>>> "Malformed UTF-8 char
>>>  -- is an XML encoding declaration missing?" (line number may be too 
>>> low).
>>> PARSE error at line 1 column -1
>>> org.xml.sax.SAXParseException: Character conversion error: 
>>> "Malformed UTF-8 char
>>>  -- is an XML encoding declaration missing?" (line number may be too 
>>> low).
>>> PARSE error at line 1 column -1
>>> org.xml.sax.SAXParseException: Character conversion error: 
>>> "Malformed UTF-8 char
>>>  -- is an XML encoding declaration missing?" (line number may be too 
>>> low).
>>> PARSE error at line 1 column -1
>>> org.xml.sax.SAXParseException: Character conversion error: 
>>> "Malformed UTF-8 char
>>>  -- is an XML encoding declaration missing?" (line number may be too 
>>> low).
>>> No tags
>>> No tags
>>
>>
>>
>>
>> I know this is coming from some parsing error when the tld is parsed. 
>> But even if I put the tld file into different encodings (ISO-8859-1). 
>> I still get the exceptions.
>>
>> example tld header:
>>
>> 
>> > Library 1.2//EN"
>> "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
>> 
>> ...
>>
>> -Mark Diggory
>>
>>
>>
>> --
>> To unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail: 
>> 
>>
>>
>
>
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>





--
To unsub

Tomcat won't work with jdk 1.4.0

2002-10-07 Thread Chuck Carson


I am running the binary distribution of tomcat 4.0.5 on Solaris 8. It
works with jdk1.3.1_05, but I am trying to get it running with
jdk1.4.0_02 and I get the following exception in catalina.out:

Exception during startup processing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
at
org.opennms.web.authenticate.Authentication.(Authentication.java
:39)
at
org.opennms.web.authenticate.OpenNMSTomcatRealm.(OpenNMSTomcatReal
m.java:125)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at
org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:617)
at
org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
at
org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:
329)
at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal
idator.java:1284)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc
anner.java:1806)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc
h(XMLDocumentScanner.java:1182)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan
ner.java:381)
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)

Anyone have any ideas?

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




Know this: Dr. Watson error on Apache.exe ??

2002-10-07 Thread Bing Zhang


Anyone knows why this happens: 

The application(Apache.exe), generated an application error.  The error
occurred on  9/29/2002 @  7:43:49.968.  The exception generated was c005
at address 0x00a41f2f () 

The Environment is:
Apache_1.3.9 with mod_ssl_2.4.9-openssl_0.9.4
Tomcat_3.1
JDK 1.3.1_03
NT 4.0 SP6

One thing noteworthy is that we recently upgraded the JDK version from
JDK1.2.2_006 to JDK1.3.1_03, and we recently started to use fop-0.20.4 from
within our servlets.   

Don't know if they could cause this type of problems. 

Thanks 
Bing

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




Problem with Tomcat 4.1.12 SSL

2002-10-07 Thread Tam, Michael

Hi All,

   I have Tomcat 4.1.12 running with SSL enabled with self-certified
keystore in place.  However, I encounter the following warning message and
exception.

Oct 7, 2002 3:21:00 PM org.apache.coyote.http11.Http11Processor action
WARNING: Exception getting SSL attributes
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at
com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA62
75)
at
org.apache.tomcat.util.net.JSSESupport.getPeerCertificateChain(JSSESupport.j
ava: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.processConne
ction(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)

I have no clue what causes it and what it means.  Would someone kindly help
me out or simply point me to the right direction?



---
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: tomcat 4.1.12 with apache1.3.26 and mod_jk integration error .

2002-10-07 Thread Lambert, Stephen : CO IR

Changes below completed.
Apache now starts with no warning!
However, result of http://localhost:8080/examples is unable to locate server
localhost:8080

And result of http://localhost/examples finds the jsp examples with a URL of
http://w121c20.legacyhs/examples/


What's bizarre is that the mod_jk.conf file is once again populated with a
second VirtualHost directive after starting Tomcat.

So if I stop/start Tomcat/Apache the VirtualHost warning message re-appears.

Stephen.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 07, 2002 3:08 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk intergration
error .



In your server.xml, change the defaultHost parameter of your Engine element
to "localhost".

You're getting that Apache error because you have two VirtualHost
definitions for w121c20.legacyhs in mod_jk.conf.  There should only be one.

Also, change ServerName in httpd.conf to w121c20.legacyhs.

Give that a try, and see what happens.

John



> -Original Message-
> From: Lambert, Stephen : CO IR [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 5:58 PM
> To: 'Tomcat Users List'
> Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk intergration
> error .
> 
> 
> 
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 2:50 PM
> To: 'Tomcat Users List'
> Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk intergration
> error .
> 
> 
> 
> Post your httpd.conf, and mod_jk.conf if your JK commands are not in
> httpd.conf.
> 
> John
> 
> 


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




JK2+Apache2: LogFactory java Error: NoClassDefFoundError

2002-10-07 Thread Brzezinski, Paul J

Getting an error message when I start Tomcat 4.1.12 on Solaris 8 SPARC:

15750 [main] ERROR server.JkMain  - Can't create apr
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.apache.jk.apr.AprImpl.(AprImpl.java:340)

I'm using the Apache Tomcat/4.1.12-LE-jdk14.

FYI: CLASSPATH set to:

/server/lib/commons-logging.jar:/em/opt/j2sdk1.4.0_02/lib/tools.jar:.:/em/op
t/j2sdk1.4.0_02/lib/jta.jar:/em/opt/jaf-1.0.2/activation.jar:/em/opt/javamai
l-1.3/mail.jar:/em/opt/j2sdk1.4.0_02/jre/lib/jsse.jar


Anyone else run into this?

Know how to solve it?  

Is it a CLASSPATH env var problem?




--
mailto:[EMAIL PROTECTED]
Enterprise Distributed Capabilities
EDS Corporation
248-265-8283




Paul J. Brzezinski ([EMAIL PROTECTED]).vcf
Description: Binary data

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


Re: How to specify the location of a properties file.

2002-10-07 Thread Glenn Nielsen

Put the properties file in the /WEB-INF/classes directory and
use ResourceBundle.getBundle("foo");  The name of the properties
file without ".properties.

Regards,

Glenn


Niaz Habib wrote:
> Justin,
> 
> I am facing the same problem. Your approach seems to be an elegent one.
> Would you mind eleborating on the idea a little bit more. Some code snippet
> would definitely be helpful.
> 
> I thank you in advance.
> 
> niaz.
> - Original Message -
> From: "Justin Ruthenbeck" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, October 07, 2002 4:06 PM
> Subject: Re: How to specify the location of a properties file.
> 
> 
> 
>>Shaun --
>>
>>Consider dynamically loading the properties file from your classpath using
>>a class loader.  This way, you can put the files anywhere you please and
>>just include that directory in your classpath (or put them someplace
>>already in your classpath).  If you need more specifics, let me know and
>>I'd be happy to help...
>>
>>justin
>>
>>At 01:00 PM 10/7/2002, you wrote:
>>
>>>I've got a servlet running under Tomcat and I need to read in the
>>
> contents
> 
>>>of a properties file.  There will be different properties files for each
>>>system specified using an init parameter.
>>>
>>>I'm having problems reading this property file at the moment in my java
>>>class as the way I am doing it at the moment always looks where I started
>>>Tomcat from i.e the /bin directory.  I can specify a full path to the
>>
> file
> 
>>>but this is not very system independent and limits me to either Windows
>>
> or
> 
>>>Unix.
>>>
>>>What I need is to specify the location of the file relative to the webapp
>>>directory.  I have tried the url class but it doesn't seem to work, or
>>>maybe it is working but looking in a different place to where my
>>>properties file is.
>>>
>>>Can anyone suggest what I am doing wrong or provide any help on the use
>>
> of
> 
>>>urls in Tomcat?
>>>
>>>Thanks
>>>
>>>
>>>Shaun
>>>
>>
>>
>>--
>>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: passing a session from non-SSL to SSL

2002-10-07 Thread Milt Epstein

On Mon, 7 Oct 2002, Sundar Chakravarthy wrote:

> Hi,
>
> Does this mean I have to use pure https for my webapp ?

You'll probably have to look into all the pros/cons and available
alternatives to decide that.

> Isnt there a
> preformance hit with pure- SSL ?

Probably.  A lot of it is with the initial negotiation, which you'd
have whether you stuck with SSL or not, but I believe there's still
some on each transaction (e.g. the decryption/encryption).


> I thought after I login user using SSL I could switch to non-SSL for
> rest of the content.  This seems to be a real bottleneck.
>
> Any options ?
>
> Thanks
> Sundar
>
> -Original Message-
> From: Milt Epstein [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, September 07, 2002 11:33 PM
> To: Tomcat Users List
> Subject: Re: passing a session from non-SSL to SSL
>
>
> On Fri, 6 Sep 2002, Joshua Szmajda wrote:
>
> > Hi all,
> >
> > I'm upgrading an application from Tomcat 3.2 to Tomcat 4.0, and
> > I'm noticing that my application is now losing track of its sessions
> > when I switch from non-SSL to SSL. The code worked fine in Tomcat
> > 3.2.. I was wondering if there's something I'm missing. My
> > server.xml has a single Ajp13 connector and a plain vanilla host /
> > context configuration. I've JKMount'ed /* to ajp13 in apache on both
> > the normal and SSL virtual hosts.
> >
> > I'm sure it's something in the spec that's changed, but I can't
> > for the life of me find out what. Changing the code is possible, but
> > preferably avoidable as I didn't write it.
>
> It's well known that Tomcat does not preserve sessions when switching
> from SSL to non-SSL (and/or vice-versa).  Don't know about earlier
> versions, but that's true of the current version.  You can check the
> archives to see where others have brought this up.
>
> I don't think this is a spec issue, so I guess either it was an
> implementation choice by the Tomcat developers or perhaps there's no
> way (or no easy way) around it.  If it was an implementation choice, I
> don't know what it was based on.  I believe there are other servlet
> containers that you can set up so that such switching does not lose
> sessions.  I'm not sure of all the technical issues involved.
>
> Also note that some will say that it doesn't make sense to switch back
> and forth between SSL and non-SSL because security is compromised.
>
> 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: 
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>

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: Tomcat vs Websphere sendRedirect

2002-10-07 Thread Craig R. McClanahan



On Mon, 7 Oct 2002, Jared Reeve wrote:

> Date: Mon, 7 Oct 2002 14:56:36 -0700 (PDT)
> From: Jared Reeve <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Tomcat vs Websphere sendRedirect
>
>
> In WebSphere I do a sendRedirect("/servlet/MyServlet") within a servlet
> and it works successfully.  It prepends the host and root URI.  Why
> can't I do the same thing in Tomcat?  It does not prepend the root URI.
> Do I not have something configured correctly?  I would like to port this
> application without changing any code.  Thanks. function SetDomain(d) {
> document.domain = d; }
>

Websphere appears to be broken in this respect.  See the last sentence of
the first paragraph in the Javadocs for sendRedirect():

  If the location is relative with a leading '/'
  the container interprets it as relative to the
  servlet container root.

Note that the servlet container root is *not* the same as the context
root, unless you happen to be in the default webapp that has a context
path of "".

Craig


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




Re: JSP to Servlet source conversion

2002-10-07 Thread Jean-Francois Arcand



Hanasaki JiJi wrote:

> What part of Tomcat (most interested in 4.x) does the conversion from 
> jsp to servlet source?

org.apache.jasper.* is where the JSP compiler source is.

>
>
> Is this code the same code as from the J2EE jar files downloaded from 
> Sun? 

Which J2EE? The J2EE RI uses org.apache.jasper.* also (but Jasper 1 
version) Currently the code is for Jasper2.

>
>
> Are their any difference in this process under classic vs server VM?

>
>
> Thank you
>


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




Problem running SSL on Tomcat

2002-10-07 Thread Alvin Chin


Hi all,

I am trying to enable SSL on an Apache Tomcat 4.0 server, but I get the
following error:

 

initProxy:  java.security.UnrecoverableKeyException: Cannot recover key

java.security.UnrecoverableKeyException: Cannot recover key

at
sun.security.provider.KeyProtector.recover(KeyProtector.java:299)

at
sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:101

)

at java.security.KeyStore.getKey(KeyStore.java:245)

at
com.sun.net.ssl.internal.ssl.X509KeyManagerImpl.(DashoA6275)

at
com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl.engineInit(DashoA6

275)

at com.sun.net.ssl.KeyManagerFactory.init(DashoA6275)

at
org.apache.catalina.net.SSLServerSocketFactory.initProxy(SSLServerSoc

ketFactory.java:403)

at
org.apache.catalina.net.SSLServerSocketFactory.initialize(SSLServerSo

cketFactory.java:334)

at
org.apache.catalina.net.SSLServerSocketFactory.createSocket(SSLServer

SocketFactory.java:287)

at
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j

ava:948)

at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne

ctor.java:1128)

at
org.apache.catalina.core.StandardService.initialize(StandardService.j

ava:454)

at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav

a:553)

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

at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)

at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)

at java.lang.reflect.Method.invoke(Native Method)

at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Catalina.start: LifecycleException:  null.open:  java.io.IOException:
java.secur

ity.UnrecoverableKeyException: Cannot recover key

LifecycleException:  null.open:  java.io.IOException:
java.security.Unrecoverabl

eKeyException: Cannot recover key

at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne

ctor.java:1130)

at
org.apache.catalina.core.StandardService.initialize(StandardService.j

ava:454)

at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav

a:553)

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

at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)

at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)

at java.lang.reflect.Method.invoke(Native Method)

at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

- Root Cause -

java.io.IOException: java.security.UnrecoverableKeyException: Cannot
recover key

 

at
org.apache.catalina.net.SSLServerSocketFactory.initProxy(SSLServerSoc

ketFactory.java:422)

at
org.apache.catalina.net.SSLServerSocketFactory.initialize(SSLServerSo

cketFactory.java:334)

at
org.apache.catalina.net.SSLServerSocketFactory.createSocket(SSLServer

SocketFactory.java:287)

at
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j

ava:948)

at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne

ctor.java:1128)

at
org.apache.catalina.core.StandardService.initialize(StandardService.j

ava:454)

at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav

a:553)

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

at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)

at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)

at java.lang.reflect.Method.invoke(Native Method)

at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


Anybody know why?  I tried the SSL-HOW TO web page from Apache Tomcat
for 4.0, and followed the instructions.  I read a previous posting to
say that someone placed the jsse jar files into the ext directory of
JRE, but that still doesn't work.  

Thanks for any help.



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




RE: tomcat 4.1.12 with apache1.3.26 and mod_jk intergration error .

2002-10-07 Thread Turner, John


In your server.xml, change the defaultHost parameter of your Engine element
to "localhost".

You're getting that Apache error because you have two VirtualHost
definitions for w121c20.legacyhs in mod_jk.conf.  There should only be one.

Also, change ServerName in httpd.conf to w121c20.legacyhs.

Give that a try, and see what happens.

John



> -Original Message-
> From: Lambert, Stephen : CO IR [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 5:58 PM
> To: 'Tomcat Users List'
> Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk intergration
> error .
> 
> 
> 
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 2:50 PM
> To: 'Tomcat Users List'
> Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk intergration
> error .
> 
> 
> 
> Post your httpd.conf, and mod_jk.conf if your JK commands are not in
> httpd.conf.
> 
> John
> 
> 
> > -Original Message-
> > From: Lambert, Stephen : CO IR [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, October 07, 2002 5:48 PM
> > To: 'Tomcat Users List'
> > Subject: tomcat 4.1.12 with apache1.3.26 and mod_jk 
> > intergration error.
> > 
> > 
> > HELP!!!
> > I'm getting an error that is very confusing when starting 
> Apache after
> > Tomcat:
> > 
> > [warn] VirtualHost w121c20.legacyhs;80 overlaps with VirtualHost
> > w121c20.legacyhs:80,
> > ./apachectl start:httpd started
> > 
> > The Virtual Host directive is commented out in my httpd.conf, 
> > so I'm not
> > sure why I'm receiving this error.
> > I only wish to use localhost and the server name in the URL.
> > 
> > Can someone shed some light on this?
> > 
> > 
> > Thanks
> > Stephen.
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > 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: tomcat 4.1.12 with apache1.3.26 and mod_jk intergration error .

2002-10-07 Thread Lambert, Stephen : CO IR



-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 07, 2002 2:50 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk intergration
error .



Post your httpd.conf, and mod_jk.conf if your JK commands are not in
httpd.conf.

John


> -Original Message-
> From: Lambert, Stephen : CO IR [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 5:48 PM
> To: 'Tomcat Users List'
> Subject: tomcat 4.1.12 with apache1.3.26 and mod_jk 
> intergration error.
> 
> 
> HELP!!!
> I'm getting an error that is very confusing when starting Apache after
> Tomcat:
> 
> [warn] VirtualHost w121c20.legacyhs;80 overlaps with VirtualHost
> w121c20.legacyhs:80,
> ./apachectl start:httpd started
> 
> The Virtual Host directive is commented out in my httpd.conf, 
> so I'm not
> sure why I'm receiving this error.
> I only wish to use localhost and the server name in the URL.
> 
> Can someone shed some light on this?
> 
> 
> Thanks
> Stephen.
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:





httpd.conf
Description: Binary data


mod_jk.conf
Description: Binary data


server.xml
Description: Binary data


workers.properties
Description: Binary data

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


Tomcat vs Websphere sendRedirect

2002-10-07 Thread Jared Reeve


In WebSphere I do a sendRedirect("/servlet/MyServlet") within a servlet and it works 
successfully.  It prepends the host and root URI.  Why can't I do the same thing in 
Tomcat?  It does not prepend the root URI.  Do I not have something configured 
correctly?  I would like to port this application without changing any code.  Thanks.
function SetDomain(d) { document.domain = d; }


-
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more
faith.yahoo.com


Tomcat 4.1.12 - AJP13 mod_jk MBean Error

2002-10-07 Thread Andrew Gilbert

Anyway, short of disabling JMX support, of dealing with the following when trying to 
use mod_jk (versus mod_jk2) under 4.1.12?

ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225
)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:369)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:777)


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




RE: tomcat 4.1.12 with apache1.3.26 and mod_jk intergration error.

2002-10-07 Thread Turner, John


Post your httpd.conf, and mod_jk.conf if your JK commands are not in
httpd.conf.

John


> -Original Message-
> From: Lambert, Stephen : CO IR [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 5:48 PM
> To: 'Tomcat Users List'
> Subject: tomcat 4.1.12 with apache1.3.26 and mod_jk 
> intergration error.
> 
> 
> HELP!!!
> I'm getting an error that is very confusing when starting Apache after
> Tomcat:
> 
> [warn] VirtualHost w121c20.legacyhs;80 overlaps with VirtualHost
> w121c20.legacyhs:80,
> ./apachectl start:httpd started
> 
> The Virtual Host directive is commented out in my httpd.conf, 
> so I'm not
> sure why I'm receiving this error.
> I only wish to use localhost and the server name in the URL.
> 
> Can someone shed some light on this?
> 
> 
> Thanks
> Stephen.
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




Re: TOmcat 4.0.1 and JDOM b8

2002-10-07 Thread Cyril Vidal

Yes, in fact, I've put the xerces.jar given with JDOM  in
$JAVA_HOME/jre/lib/ext.
And I've no more the SAXNotRecognized Exception.

But, it's very strange, I've got now the following error when I run another
servlet that was running well before the manipulation.
Here is the beggining of my very basic code:

// Imported TraX classes
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerConfigurationException;


// Imported java classes
import java.io.FileOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import org.apache.xerces.parsers.DOMParser;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;


public class TransformServlet extends HttpServlet {

 public  void doGet(HttpServletRequest request, HttpServletResponse
response)
 throws IOException, ServletException
  {

String thisProduct_id = request.getParameter("product_id");

and here is the Exception generated by Tomcat:
root cause

java.lang.VerifyError: (class: TransformServlet, method: doGet signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
nse;)V) Incompatible object argument for function call
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Class.java:237)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
 at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:396)
 at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

What do you think is still wrong?
Do I have to do something especially with TOmcat?
Thanks for your responses,
Cyril.
___

Cyril Vidal
Email: [EMAIL PROTECTED]
Web: http://www.planetexml.com
- Original Message -
From: "Malachi de AElfweald" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Tomcat Users
List" <[EMAIL PROTECTED]>
Sent: Monday, October 07, 2002 10:28 PM
Subject: Re: TOmcat 4.0.1 and JDOM b8


> Also, make sure that an older version is not in $JAVA_HOME/jre/lib/ext
> cuz that would get used first
>
> Malachi
>
>
> 10/7/2002 1:14:36 PM, Padhu Vinirs <[EMAIL PROTECTED]> wrote:
>
> >JDOM is only a easy-to-use-wrapper for java programmers around standard
> >xml parsers. The 'SAXNotRecognizedOption" is an object in xerces.jar.
> >make sure the xerces.jar that comes with JDOM beta 8 is in your web
> >app's classpath. Maybe JDOM beta 8 supports a version of xerces that
> >Tomcat is not supporting.
> >
> >-- padhu
> >
> >
> >
> >cyril vidal wrote:
> >
> >>Hi,
> >>
> >>I'm using Tomcat 4.0.1 and I have such a code snippet, using JDOM beta
8:
> >>import java.io.*;
> >>import javax.servlet.*;
> >>import javax.servlet.http.*;
> >>import org.jdom.Element;
> >>import org.jdom.Document;
> >>import org.jdom.output.XMLOutputter;
> >>import org.jdom.input.SAXBuilder;
> >>import org.jdom.JDOMException;
> >>
> >>
> >>public class AddToOrder extends HttpServlet {
> >>
> >>public Document getDocument(File sourceFile, PrintWriter errorsOut) {
> >>try {
> >>  SAXBuilder builder = new SAXBuilder();
> >>Document document = builder.build(sourceFile);
> >>  return document;
> >>
> >>} catch (JDOMException e) {
> >>errorsOut.print("Un problème s'est produit pendant la construction
du
> >>document : "
> >>   +e.getMessage() + ""  + "Un document vide est retourné.");
> >>   return new Document(new Element("blank"));
> >>...
> >>
> >>I receive systematically the following error message :
> >>
> >>root cause
> >>
> >>java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException
> >> at AddToOrder.getDocument(AddToOrder.java:15)
> >> at AddToOrder.doGet(AddToOrder.java:68)
> >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >> at
>
>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
on
> >>FilterChain.java:247
> >>
> >>Waht's this class? I can't find it into xercesImpl.jar in the lib
directory
> >>of Tomcat, so why this method is called and by which component?
> >>
> >>Thanks a lot for your response,
> >>Best,
> >>Cyril.
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:

> >>For additional commands, e-mail:

> >>
> >>
> >>
> >>
> >
> >
> >
> >--
> >To unsubscribe, e-mail:

> >For additional commands, e-mail:

> >
> >
> >
>
>
>
>
> --
> To unsubscribe, 

tomcat 4.1.12 with apache1.3.26 and mod_jk intergration error.

2002-10-07 Thread Lambert, Stephen : CO IR

HELP!!!
I'm getting an error that is very confusing when starting Apache after
Tomcat:

[warn] VirtualHost w121c20.legacyhs;80 overlaps with VirtualHost
w121c20.legacyhs:80,
./apachectl start:httpd started

The Virtual Host directive is commented out in my httpd.conf, so I'm not
sure why I'm receiving this error.
I only wish to use localhost and the server name in the URL.

Can someone shed some light on this?


Thanks
Stephen.






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




RE: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-07 Thread Brzezinski, Paul J

Libapr.so ?  

Maybe in $APACHE_HOME/lib?

I *added* -L/-R switches to the linker-relevant lines in the Makefile.


--
mailto:[EMAIL PROTECTED]
Enterprise Distributed Capabilities
EDS Corporation
248-265-8283


: -Original Message-
: From: Dom [mailto:[EMAIL PROTECTED]] 
: Sent: Monday, October 07, 2002 5:30 PM
: To: Tomcat Users List
: Subject: Re: tomcat 4.1.12 with apache2.0.42 and mod_jk
: 
: 
: Hi all
: 
: I've been able to build mod_jk2 on MDK 7.2 using JK2 2.0.1 
: (http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk
: 2/release/v2.0
: .1)
: 
: But I still get
: ...
: 
: /usr/bin/ld: cannot find -lapr
: collect2: ld returned 1 exit status
: make[1]: *** [../../../build/jk2/apache2/jkjni.la] Erreur 1
: make[1]: Quitte le répertoire 
: `/usr/local/src/jakarta-tomcat-connectors-jk2-2.0.1-src/jk/nat
: ive2/server/ap
: ache2'
: make: *** [jk2-build] Erreur 1
: 
: jkjni.so doesn't exists
: 
: Does this mean that I won't use sockets ?
: 
: Dom
: 
: - Original Message -
: From: "Dom" <[EMAIL PROTECTED]>
: To: "Tomcat Users List" <[EMAIL PROTECTED]>
: Sent: Sunday, October 06, 2002 6:47 PM
: Subject: Re: tomcat 4.1.12 with apache2.0.42 and mod_jk
: 
: 
: > Sorry
: >
: > Linux MDK 7.2 w kernel 2.4.18
: > automake 1.4-p5
: > autoconf  2.54
: > libtool 1.4.2
: >
: > Doing :
: >
: ./configure --with-apxs2=/usr/local/apache2/bin/apxs 
: --with-tomcat41=/usr/lo
: > cal/jakarta-tomcat-4.1.12-LE-jdk14 
: > --with-apxs=/usr/local/apache/bin/apxs
: >
: > I get :
: > ...
: > checking for ranlib... ranlib
: > checking for BSD-compatible nm... /usr/bin/nm -B
: > checking whether ln -s works... yes
: > ltconfig: you must specify a host type if you use `--no-verify' Try 
: > `ltconfig --help' for more information.
: > configure: error: libtool configure failed
: >
: > I had replaced the stock MDK autoconf and libtool, cause 
: while making 
: > mod_jk2 : ...
: > /usr/bin/ld: cannot find -lapr
: > collect2: ld returned 1 exit status
: > make[1]: *** [../../../build/jk2/apache2/jkjni.la] Erreur 1
: >
: > But now it's worse, I'm lost
: >
: > Dom
: >
: > - Original Message -
: > From: "Turner, John" <[EMAIL PROTECTED]>
: > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
: > Sent: Thursday, October 03, 2002 7:43 PM
: > Subject: RE: tomcat 4.1.12 with apache2.0.42 and mod_jk
: >
: >
: > >
: > > Someone might have a slight chance of answering your 
: question if you
: were
: > to
: > > be so gracious as to post the error messages that you get when 
: > > trying
: the
: > > build.
: > >
: > > John
: > >
: > >
: > > > -Original Message-
: > > > From: Dom [mailto:[EMAIL PROTECTED]]
: > > > Sent: Thursday, October 03, 2002 1:36 PM
: > > > To: Tomcat Users List
: > > > Subject: Re: tomcat 4.1.12 with apache2.0.42 and mod_jk
: > > >
: > > >
: > > > Hi
: > > >
: > > > I've been able to build Apache2.0.40 and mod_jk2 
: together, but not 
: > > > Apache2.0.42 and mod_jk2 on a MDK 7.2 system with TC 
: 4.1.12. I've 
: > > > got no problem on a RH 7.3.
: > > >
: > > > Why ?
: > > >
: > > > - Original Message -
: > > > From: "Henri Gomez" <[EMAIL PROTECTED]>
: > > > To: <[EMAIL PROTECTED]>
: > > > Sent: Thursday, October 03, 2002 3:03 PM
: > > > Subject: Re: tomcat 4.1.12 with apache2.0.42 and mod_jk
: > > >
: > > >
: > > > > Hum,
: > > > >
: > > > > Having a Redhat box and not using rpm is strange,
: > > > > btw if you have build an Apache 2.0.42 on your system, you 
: > > > > should be able to build mod_jk 1.2.0 :
: > > > >
: > > > >
: > > > >
: > > > http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
: > > > release/v1.2.0
: > > > /doc/jk/aphowto.html
: > > > >
: > > > >
: > > > > --
: > > > > 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: 
: 




Paul J. Brzezinski ([EMAIL PROTECTED]).vcf
Description: Binary data

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


Reminder for others upgrading to 4.1.12...

2002-10-07 Thread Andrew Gilbert

In the process of trying to upgrade our existing application from 3.3 to 4.1.12 I 
suffered some pain by not reading the release notes. Reminder to others who try:

The "invoker" servlet is commented out by default in TOMCAT_HOME/conf/web.xml.

If you don't have servlet mappings in your WEB-INF/web.xml or don't map the invoker 
servlet either globally or locally, trying to figure out what is going wrong with 
servlet mappings will waste a lot of your time.





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




JSP to Servlet source conversion

2002-10-07 Thread Hanasaki JiJi

What part of Tomcat (most interested in 4.x) does the conversion from 
jsp to servlet source?

Is this code the same code as from the J2EE jar files downloaded from Sun?

Are their any difference in this process under classic vs server VM?

Thank you

-- 

=   http://www.sun.com/service/sunps/jdc/javacenter.pdf=
=www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone   =
=  =
= "Noone wants advice - only corroboration" - John Steinbeck   =
====
= "Pawns can become Royalty in Life or in Chess"   =
= "Life, the only game where Royalty can be a pawn,=
=and not even know it" =
= "Chess, the only game where pawns really are pawns"  =



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




Re: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-07 Thread Dom

Hi all

I've been able to build mod_jk2 on MDK 7.2 using JK2 2.0.1
(http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0
.1)

But I still get
...

/usr/bin/ld: cannot find -lapr
collect2: ld returned 1 exit status
make[1]: *** [../../../build/jk2/apache2/jkjni.la] Erreur 1
make[1]: Quitte le répertoire
`/usr/local/src/jakarta-tomcat-connectors-jk2-2.0.1-src/jk/native2/server/ap
ache2'
make: *** [jk2-build] Erreur 1

jkjni.so doesn't exists

Does this mean that I won't use sockets ?

Dom

- Original Message -
From: "Dom" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, October 06, 2002 6:47 PM
Subject: Re: tomcat 4.1.12 with apache2.0.42 and mod_jk


> Sorry
>
> Linux MDK 7.2 w kernel 2.4.18
> automake 1.4-p5
> autoconf  2.54
> libtool 1.4.2
>
> Doing :
>
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/lo
> cal/jakarta-tomcat-4.1.12-LE-jdk14 --with-apxs=/usr/local/apache/bin/apxs
>
> I get :
> ...
> checking for ranlib... ranlib
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking whether ln -s works... yes
> ltconfig: you must specify a host type if you use `--no-verify'
> Try `ltconfig --help' for more information.
> configure: error: libtool configure failed
>
> I had replaced the stock MDK autoconf and libtool, cause while making
> mod_jk2 :
> ...
> /usr/bin/ld: cannot find -lapr
> collect2: ld returned 1 exit status
> make[1]: *** [../../../build/jk2/apache2/jkjni.la] Erreur 1
>
> But now it's worse, I'm lost
>
> Dom
>
> - Original Message -
> From: "Turner, John" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Thursday, October 03, 2002 7:43 PM
> Subject: RE: tomcat 4.1.12 with apache2.0.42 and mod_jk
>
>
> >
> > Someone might have a slight chance of answering your question if you
were
> to
> > be so gracious as to post the error messages that you get when trying
the
> > build.
> >
> > John
> >
> >
> > > -Original Message-
> > > From: Dom [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, October 03, 2002 1:36 PM
> > > To: Tomcat Users List
> > > Subject: Re: tomcat 4.1.12 with apache2.0.42 and mod_jk
> > >
> > >
> > > Hi
> > >
> > > I've been able to build Apache2.0.40 and mod_jk2 together, but not
> > > Apache2.0.42 and mod_jk2 on a MDK 7.2 system with TC 4.1.12.
> > > I've got no problem on a RH 7.3.
> > >
> > > Why ?
> > >
> > > - Original Message -
> > > From: "Henri Gomez" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, October 03, 2002 3:03 PM
> > > Subject: Re: tomcat 4.1.12 with apache2.0.42 and mod_jk
> > >
> > >
> > > > Hum,
> > > >
> > > > Having a Redhat box and not using rpm is strange,
> > > > btw if you have build an Apache 2.0.42 on your system,
> > > > you should be able to build mod_jk 1.2.0 :
> > > >
> > > >
> > > >
> > > http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
> > > release/v1.2.0
> > > /doc/jk/aphowto.html
> > > >
> > > >
> > > > --
> > > > 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: 




Why does one java process continue to run and take more and more CPU?

2002-10-07 Thread Brandon Cruz

Running Tomcat 3.2.4, Sun JDK 1.3.1_01, AJP13, Apache 1.3.x on Linux.  One
java process seems to keep running and take more and more CPU as time goes
on.  It just slowly keeps growing and slowing down the system.  Right now, I
look and it has been running for 2338 minutes and is taking 48.9% of the
CPU.

Has anyone had this problem with this environment or can anyone help me
solve this?

Brandon



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




Re: How to specify the location of a properties file.

2002-10-07 Thread Justin Ruthenbeck


Niaz ...

The idea is to load the properties file like you would any other java 
resource at runtime ... this is (almost) always better, IMHO, than using 
something J2EE-specific like initialization parameters to a servlet.

The relevant code would look something like this:

InputStream inStream = this.getClass().getResourceAsStream("/my.props");
Properties props = new Properties(inStream);

or

Properties prop = new Properties();
prop.load(this.getClass().getResourceAsStream("/MyProperties.properties"));

There was a thread some time ago that went over this.  You can see the 
details at:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg63518.html

Hope this helps...
justin


At 01:40 PM 10/7/2002, you wrote:
>Justin,
>
>I am facing the same problem. Your approach seems to be an elegent one.
>Would you mind eleborating on the idea a little bit more. Some code snippet
>would definitely be helpful.
>
>I thank you in advance.
>
>niaz.
>- Original Message -
>From: "Justin Ruthenbeck" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Monday, October 07, 2002 4:06 PM
>Subject: Re: How to specify the location of a properties file.
>
>
> >
> > Shaun --
> >
> > Consider dynamically loading the properties file from your classpath using
> > a class loader.  This way, you can put the files anywhere you please and
> > just include that directory in your classpath (or put them someplace
> > already in your classpath).  If you need more specifics, let me know and
> > I'd be happy to help...
> >
> > justin
> >
> > At 01:00 PM 10/7/2002, you wrote:
> > >I've got a servlet running under Tomcat and I need to read in the
>contents
> > >of a properties file.  There will be different properties files for each
> > >system specified using an init parameter.
> > >
> > >I'm having problems reading this property file at the moment in my java
> > >class as the way I am doing it at the moment always looks where I started
> > >Tomcat from i.e the /bin directory.  I can specify a full path to the
>file
> > >but this is not very system independent and limits me to either Windows
>or
> > >Unix.
> > >
> > >What I need is to specify the location of the file relative to the webapp
> > >directory.  I have tried the url class but it doesn't seem to work, or
> > >maybe it is working but looking in a different place to where my
> > >properties file is.
> > >
> > >Can anyone suggest what I am doing wrong or provide any help on the use
>of
> > >urls in Tomcat?
> > >
> > >Thanks
> > >
> > >
> > >Shaun
> > >
> >
> >
> > --
> > 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: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Craig R. McClanahan



On Mon, 7 Oct 2002, Mark R. Diggory wrote:

> Date: Mon, 07 Oct 2002 15:46:31 -0400
> From: Mark R. Diggory <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tag Libraries Developers List <[EMAIL PROTECTED]>
> Cc: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: Can't deploy Custom Tag Library on Microsoth Windoz
>
> Are you testing on Windows with j2sdk1.4?
>

Among other combinations, yes.

Beyond my own use, anybody using the Java Web Services Developer Pack
(JWSDP) download from Sun is doing exactly this as well, since it's based
on an earlier 4.1 version of Tomcat.

For further testing, grab the "standard" tag library from Jakarta Taglibs
(it's the basis for the RI of the JSP Standard Tag Library) and deploy it
on your favorite Tomcat+JDK+OS combinations -- it uses exactly the same
techniques to process TLD files.

Craig


> Craig R. McClanahan wrote:
>
> >Works for me with no problems on all 4.0.x and 4.1.x versions of Tomcat;
> >but I'm not trying to use any UTF-8 characters in my TLDs either.
> >
> >Craig
> >
> >
> >
>
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




Re: RE: RE: JK2 Installation

2002-10-07 Thread Robert L Sowders

Unless you're using the -current version of FreeBSD, it's not threaded. 
Apache2 should really only be used on Operating systems that are threaded 
or you don't realize any gain from it other than some new mods.

You're running the linux version of the JDK because there is no native 
port for 1.4 for FreeBSD, yet.  Why not use the linux binary version of 
Tomcat together with the linux version of apache and the linux binary 
version of mod_jk2?The linux emulation layer runs out of the kernel so 
it should not be too much overhead.

I wish FreeBSD did have a native port for JDK 1.4.

rls




Malachi de AElfweald <[EMAIL PROTECTED]>
10/07/2002 01:30 PM
Please respond to "Tomcat Users List"

 
To: tomcat-list <[EMAIL PROTECTED]>
cc: 
Subject:Re: RE: RE: JK2 Installation

I'm sorry if that seemed a bit harsh -- it was not meant to be.  I had 
just read
a LOT of emails from you, and that was how it came across.

Originally, the problem I was having with FreeBSD was that if I tried to 
LoadModule
the mod_jk2.so, it said that pthread_mutex_unlock was unknown.  I did a 
lot of
investigation, and came to the conclusion that '-pthread' had to be added 
to the
CC flags.  In doing so, I have, as of yet, not been able to build 
mod_jk2.so anymore.
Not sure why. Can't figure it out.

Regarding the example you've shown.  I have seen that one repeatedly, and 
it only
applies to sockets. It does not apply to using the inprocess JNI, which I 
am trying
to use because Tomcat is REALLY slow, even locally on the LAN. That is 
supposed to
speed it up. but, there is no example of configuring for it...

I might have to subscribe to the dev list.  I haven't, because I don't 
have the time
to spend on it...  I had previously been actively on the Ant development 
list, and it
was very time consuming.  I don't have that kind of time right now.  I 
know, in theory,
that it is supposed to be possible -- I just haven't figured out how yet. 
Perhaps
I will join -dev so someone can tell me.

I didn't realize that page was the Goal.  I downloaded Tomcat, went to the 
online docs,
and started following directions.  I can get it to work standalone now, 
but have it shut
down because it is just too slow.  When I found the "why to use JK2", I 
thought it was more
like saying "Why use JDK1.4 over JDK1.02"

Thanks for your reply, hopefully I will be able to figure this out.
Malachi


10/7/2002 1:20:19 PM, "Turner, John" <[EMAIL PROTECTED]> wrote:

>
>OK, let's be honest if we're going to post.  I certainly did not say "JK2 
is
>in beta, not to be trusted, use something else, read the list, don't
>complain about the documentation, etc etc"
>
>I _did_ say JK2 is "beta".  That has different meanings to different 
people.
>I'm primarily a sys-admin in charge of production servers.  If someone 
(that
>someone being from the dev or release team) posts that JK2 should be
>considered "beta", that means "not fit for production yet, but probably 
OK
>for development if you don't mind a few bugs".  That's me.  To others,
>"beta" may mean something entirely different.  To each, his/her own, make
>your own decisions.
>
>JServ and JK have been working great for me, on high-traffic,
>resource-intensive, production sites.  I see no reason to jump on the JK2
>bandwagon until the codebase is more stable.  Again, that's me, and 
perhaps
>the latest version (2.0.1) is that codebase, I have no way of knowing
>without testing it myself and seeing what other people do with it.
>Latest/greatest isn't always the wisest.  That said, use whatever you 
want.
>
>RE: the documentation, you are welcome to complain.  I only posted the
>replies that I posted in defense of those people on the list who have 
gone
>above and beyond to contribute to the documentation effort, beyond that 
of
>the dev team.  These people have spent a lot of time working on their
>documents, and have posted the URLs to the list many times.  Robert 
Sowders
>has regularly posted a full list of HOWTOs for various platforms and
>versions to supplement the "official" documentation.  These posts can be
>found in a search.  If you want to complain, that's cool, but your
>complaints will get a lot more attention if you contribute to the effort.
>It's your choice.
>
>Now that we've put my comments and posts back into their correct context,
>let's get back to your questions (inline):
>
>> From: Malachi de AElfweald [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, October 07, 2002 3:57 PM
>> To: Turner, John; Short, Dave; tomcat-list
>> Subject: Re: RE: JK2 Installation
>> 
>> 1) I can't figure out how to get mod_jk2 to build on FreeBSD 
>> (using linux-sun-jdk14 and Apache2.0.42 and Tomcat 4.1.12). 
>> In the last 4 days, I 
>> somehow built mod_jk2.so once,
>> but then it complained about pthreads... I figured out that I 
>> need to add "-pthread"
>> to the CC flags but now it won't build the .so files -- 
>> even if it says it does, they
>> aren't there.
>
>I'v

conf/auto/mod_jk.conf missing double quotes

2002-10-07 Thread eric scroger

Greetings,

I noticed what I think is a bug in the auto generated configuration file 
for mod_jk.
In this file, it creates an Apache LoadModule directive, but fails to 
put double quotes
around the path.  Since Apache is installed in Program Files/Apache 
Group, there
are two spaces in the name which confuses Apache.  The funny thing is, 
the other
two file paths, JkWorkersFile and JkLogFile appear to have the paths quoted
properly.  See excerpt from mod_jk.conf:


  LoadModule jk_module c:/Program Files/Apache 
Group/Apache/modules/mod_jk.dll


JkWorkersFile "c:/Program Files/Apache Tomcat 
4.0/conf/jk/workers.properties"
JkLogFile "c:/Program Files/Apache Tomcat 4.0/logs/mod_jk.log"

Any idea if this is fixed in any release?  I have some version of Tomcat 4.0
for Windows, but I can't figure out which release I have.  I can work 
around it
by making a static copy of this file and double quoting it myself, but 
we'd prefer
to auto-generate it because we could be adding webapps to handle different
customers regulary.

Thanks in advance,

Eric


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




RE: Apache with Tomcat

2002-10-07 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)

You may wish to try

www.itrc.hp.com, choose search and enter in virtual vault and select manuals
or forum's.

Jeff

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 07, 2002 2:34 PM
To: Tomcat Users List
Subject: RE: Apache with Tomcat


I do that in two HPUX 11, now I need to do that in ohter enviroment.
I've HP Virtual Vault with apache 1.3.19 and I've the tomcat in other HPUX.
I'm using Tomcat 3.2.3 or Tomcat 3.3.
Anybody have idea how can I connect the Virtual Vault to the HPUX?

Regards.
Alejandro




"Turner, John" <[EMAIL PROTECTED]> con fecha 07/10/2002 16:31:57

Por favor, responda a "Tomcat Users List" <[EMAIL PROTECTED]>

Destinatarios: 'Tomcat Users List' <[EMAIL PROTECTED]>
CC:(cci: ALEJANDRO FREIRE/BANELCO/AR)
Asunto:   RE: Apache with Tomcat





Yes.  Search the archives, this topic comes up all the time.
It's the same setup as putting Apache and Tomcat on the same machine,
except
that you change the server name in a few places to be the FQDN instead of
"localhost"
John
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 3:14 PM
> To: [EMAIL PROTECTED]
> Subject: Apache with Tomcat
>
>
> Can I integrate Apahce and  Tomcat if Apache is running in different
> machine than Tomcat?
> Is this it possible, How can I do that?
>
> Regards.
> Alejandro
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>








--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: RE: JK2 Installation

2002-10-07 Thread Malachi de AElfweald

Yes, I saw the JkMount option as well

but, how would I have eoti.org/examples and corp.eoti.org/examples
hosted by different workers in the same properties file? Or do I have
to specify a different worker2.properties for each one?

could I just make the URI in worker2.properties be something like:
http://www.eoti.org/exampels

and if so, is there a way to do the *.eoti.org option like in VirtualHost?

Malachi


10/7/2002 1:41:26 PM, "Robert L Sowders" <[EMAIL PROTECTED]> wrote:

>Read the Source Luke;
>
>mod_jk2.c
>/**
> * Set a property associated with a URI, using native  
> * directives.
> *
> * This is used if you want to use the native mapping and
> * integrate better into apache.
> *
> * Same behavior can be achieved by using uri.properties and/or JkSet.
> * 
> * Example:
> *   
> *  
> * JkUriSet worker ajp13
> *  
> *   
> *
> * This is the best way to define a webapplication in apache. It is
> * scalable ( using apache native optimizations, you can have hundreds
> * of hosts and thousands of webapplications ), 'natural' to any
> * apache user.
> *
> * XXX This is a special configuration, for most users just use
> * the properties files.
> */
>
>rls
>
>
>
>
>Gary Roediger <[EMAIL PROTECTED]>
>10/07/2002 12:34 PM
>Please respond to "Tomcat Users List"
>
> 
>To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>cc: 
>Subject:RE: JK2 Installation
>
>EXACTLY all that is needed is some examples ( not just snippets ). I
>have spent a lot of time looking through the docs on line, from the
>release and pouring over the hundreds of email on this list - I still do
>not see where the connection between Apache 2.0 httpd.conf and the
>worker2.properties file is made. I did stumble over a reference to
>JkSet config.file location-of-workers2.properties-file
>For example:
>JkSet config.file /usr/local/tomcat/conf/workers2.properties
>
>There were a number of commands supported by mod_jk that were placed in
>the apache httpd.conf file.  Example JkMount, JkWorkerFile, ...  what
>are the mod_jk2 commands???   Where are they documented???
>
>In Mod_jk the way you connected a path in a URL to a worker was through
>a JkMount configuration statement in httpd.conf.  How do you do the
>equivalent with mod_jk2??? 
>Thank you,
>
>Gary
>
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 07, 2002 9:43 AM
 To: 'Tomcat Users List'
 Subject: RE: JK2 Installation
 
 
 What EXACTLY is incomplete about it?  Someone can probably help you
>if
 you
 can describe exactly what additional information you need.
 
 John
 
 
 > -Original Message-
 > From: Christian Gothe [mailto:[EMAIL PROTECTED]]
 > Sent: Monday, October 07, 2002 9:46 AM
 > To: [EMAIL PROTECTED]
 > Subject: JK2 Installation
 >
 >
 > Hi!
 >
 > I'm looking for informations how to install JK2 for Apache. On
 > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/config
 > web.html
 > is nothing that can help me, because it is incomplete.
 >
 > Any ideas?
 >
 > Thank you,
 > Christian
 >
 >
 >
 > --
 > 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: JK2 Installation

2002-10-07 Thread Turner, John


You stole my line!  LOL!

John


> -Original Message-
> From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 4:41 PM
> To: Tomcat Users List
> Subject: RE: JK2 Installation
> 
> 
> Read the Source Luke;
> 
> mod_jk2.c
> /**
>  * Set a property associated with a URI, using native  
>  * directives.
>  *
>  * This is used if you want to use the native mapping and
>  * integrate better into apache.
>  *
>  * Same behavior can be achieved by using uri.properties and/or JkSet.
>  * 
>  * Example:
>  *   
>  *  
>  * JkUriSet worker ajp13
>  *  
>  *   
>  *
>  * This is the best way to define a webapplication in apache. It is
>  * scalable ( using apache native optimizations, you can have hundreds
>  * of hosts and thousands of webapplications ), 'natural' to any
>  * apache user.
>  *
>  * XXX This is a special configuration, for most users just use
>  * the properties files.
>  */
> 
> rls
> 
> 
> 
> 
> Gary Roediger <[EMAIL PROTECTED]>
> 10/07/2002 12:34 PM
> Please respond to "Tomcat Users List"
> 
>  
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> cc: 
> Subject:RE: JK2 Installation
> 
> EXACTLY all that is needed is some examples ( not just snippets ). I
> have spent a lot of time looking through the docs on line, from the
> release and pouring over the hundreds of email on this list - 
> I still do
> not see where the connection between Apache 2.0 httpd.conf and the
> worker2.properties file is made. I did stumble over a reference to
> JkSet config.file location-of-workers2.properties-file
> For example:
> JkSet config.file /usr/local/tomcat/conf/workers2.properties
> 
> There were a number of commands supported by mod_jk that were 
> placed in
> the apache httpd.conf file.  Example JkMount, JkWorkerFile, ...  what
> are the mod_jk2 commands???   Where are they documented???
> 
> In Mod_jk the way you connected a path in a URL to a worker 
> was through
> a JkMount configuration statement in httpd.conf.  How do you do the
> equivalent with mod_jk2??? 
> Thank you,
> 
> Gary
> 
> >>> -Original Message-
> >>> From: Turner, John [mailto:[EMAIL PROTECTED]]
> >>> Sent: Monday, October 07, 2002 9:43 AM
> >>> To: 'Tomcat Users List'
> >>> Subject: RE: JK2 Installation
> >>> 
> >>> 
> >>> What EXACTLY is incomplete about it?  Someone can 
> probably help you
> if
> >>> you
> >>> can describe exactly what additional information you need.
> >>> 
> >>> John
> >>> 
> >>> 
> >>> > -Original Message-
> >>> > From: Christian Gothe [mailto:[EMAIL PROTECTED]]
> >>> > Sent: Monday, October 07, 2002 9:46 AM
> >>> > To: [EMAIL PROTECTED]
> >>> > Subject: JK2 Installation
> >>> >
> >>> >
> >>> > Hi!
> >>> >
> >>> > I'm looking for informations how to install JK2 for Apache. On
> >>> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/config
> >>> > web.html
> >>> > is nothing that can help me, because it is incomplete.
> >>> >
> >>> > Any ideas?
> >>> >
> >>> > Thank you,
> >>> > Christian
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > To unsubscribe, e-mail:
> >>> > 
> >>> > For additional commands, e-mail:
> >>> > 
> >>> >
> >>> 
> >>> --
> >>> To unsubscribe, e-mail:    >>> [EMAIL PROTECTED]>
> >>> For additional commands, e-mail:  >>> [EMAIL PROTECTED]>
> 
> 
> --
> 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: JK2 Installation

2002-10-07 Thread Robert L Sowders

Read the Source Luke;

mod_jk2.c
/**
 * Set a property associated with a URI, using native  
 * directives.
 *
 * This is used if you want to use the native mapping and
 * integrate better into apache.
 *
 * Same behavior can be achieved by using uri.properties and/or JkSet.
 * 
 * Example:
 *   
 *  
 * JkUriSet worker ajp13
 *  
 *   
 *
 * This is the best way to define a webapplication in apache. It is
 * scalable ( using apache native optimizations, you can have hundreds
 * of hosts and thousands of webapplications ), 'natural' to any
 * apache user.
 *
 * XXX This is a special configuration, for most users just use
 * the properties files.
 */

rls




Gary Roediger <[EMAIL PROTECTED]>
10/07/2002 12:34 PM
Please respond to "Tomcat Users List"

 
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
cc: 
Subject:RE: JK2 Installation

EXACTLY all that is needed is some examples ( not just snippets ). I
have spent a lot of time looking through the docs on line, from the
release and pouring over the hundreds of email on this list - I still do
not see where the connection between Apache 2.0 httpd.conf and the
worker2.properties file is made. I did stumble over a reference to
JkSet config.file location-of-workers2.properties-file
For example:
JkSet config.file /usr/local/tomcat/conf/workers2.properties

There were a number of commands supported by mod_jk that were placed in
the apache httpd.conf file.  Example JkMount, JkWorkerFile, ...  what
are the mod_jk2 commands???   Where are they documented???

In Mod_jk the way you connected a path in a URL to a worker was through
a JkMount configuration statement in httpd.conf.  How do you do the
equivalent with mod_jk2??? 
Thank you,

Gary

>>> -Original Message-
>>> From: Turner, John [mailto:[EMAIL PROTECTED]]
>>> Sent: Monday, October 07, 2002 9:43 AM
>>> To: 'Tomcat Users List'
>>> Subject: RE: JK2 Installation
>>> 
>>> 
>>> What EXACTLY is incomplete about it?  Someone can probably help you
if
>>> you
>>> can describe exactly what additional information you need.
>>> 
>>> John
>>> 
>>> 
>>> > -Original Message-
>>> > From: Christian Gothe [mailto:[EMAIL PROTECTED]]
>>> > Sent: Monday, October 07, 2002 9:46 AM
>>> > To: [EMAIL PROTECTED]
>>> > Subject: JK2 Installation
>>> >
>>> >
>>> > Hi!
>>> >
>>> > I'm looking for informations how to install JK2 for Apache. On
>>> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/config
>>> > web.html
>>> > is nothing that can help me, because it is incomplete.
>>> >
>>> > Any ideas?
>>> >
>>> > Thank you,
>>> > Christian
>>> >
>>> >
>>> >
>>> > --
>>> > To unsubscribe, e-mail:
>>> > 
>>> > For additional commands, e-mail:
>>> > 
>>> >
>>> 
>>> --
>>> To unsubscribe, e-mail:   >> [EMAIL PROTECTED]>
>>> For additional commands, e-mail: >> [EMAIL PROTECTED]>


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





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




Re: How to specify the location of a properties file.

2002-10-07 Thread Niaz Habib

Justin,

I am facing the same problem. Your approach seems to be an elegent one.
Would you mind eleborating on the idea a little bit more. Some code snippet
would definitely be helpful.

I thank you in advance.

niaz.
- Original Message -
From: "Justin Ruthenbeck" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, October 07, 2002 4:06 PM
Subject: Re: How to specify the location of a properties file.


>
> Shaun --
>
> Consider dynamically loading the properties file from your classpath using
> a class loader.  This way, you can put the files anywhere you please and
> just include that directory in your classpath (or put them someplace
> already in your classpath).  If you need more specifics, let me know and
> I'd be happy to help...
>
> justin
>
> At 01:00 PM 10/7/2002, you wrote:
> >I've got a servlet running under Tomcat and I need to read in the
contents
> >of a properties file.  There will be different properties files for each
> >system specified using an init parameter.
> >
> >I'm having problems reading this property file at the moment in my java
> >class as the way I am doing it at the moment always looks where I started
> >Tomcat from i.e the /bin directory.  I can specify a full path to the
file
> >but this is not very system independent and limits me to either Windows
or
> >Unix.
> >
> >What I need is to specify the location of the file relative to the webapp
> >directory.  I have tried the url class but it doesn't seem to work, or
> >maybe it is working but looking in a different place to where my
> >properties file is.
> >
> >Can anyone suggest what I am doing wrong or provide any help on the use
of
> >urls in Tomcat?
> >
> >Thanks
> >
> >
> >Shaun
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: RE: RE: JK2 Installation

2002-10-07 Thread Turner, John


No problem.  Obviously, I'm not a JK/JK2 developer, so I can't say what is
the goal and what isn't.  I just know that the entire project is extremely
fluid, with things changing every day, so if the docs don't jive 100% with
the code, I wouldn't be surprised.

I can only add that the docs say: "For JK 2.0.x the config tomcat and config
webserver documents have considerably more in-depth information. It's worth
a look. You could also try searching the mailing list archives for 'JK' or
look at the source."  Since the "config webserver" doc doesn't have an
example of a JNI setup, the dev list is probably your best bet if you need
it now.

I'm puzzled by your comment that Tomcat is really slow...that seems very odd
to me (and might even be more related to running on FreeBSD than anything
else).  We've had no performance issues at all with Tomcat from a load
perspective, and we've used both Tomcat 3 and Tomcat 4, though our
production stuff is still on 3.  3.1, no less.

John

> -Original Message-
> From: Malachi de AElfweald [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 4:30 PM
> To: tomcat-list
> Subject: Re: RE: RE: JK2 Installation
> 
> 
> I'm sorry if that seemed a bit harsh -- it was not meant to 
> be.  I had just read
> a LOT of emails from you, and that was how it came across.
> 
> Originally, the problem I was having with FreeBSD was that if 
> I tried to LoadModule
> the mod_jk2.so, it said that pthread_mutex_unlock was 
> unknown.  I did a lot of
> investigation, and came to the conclusion that '-pthread' had 
> to be added to the
> CC flags.  In doing so, I have, as of yet, not been able to 
> build mod_jk2.so anymore.
> Not sure why. Can't figure it out.
> 
> Regarding the example you've shown.  I have seen that one 
> repeatedly, and it only
> applies to sockets. It does not apply to using the inprocess 
> JNI, which I am trying
> to use because Tomcat is REALLY slow, even locally on the 
> LAN. That is supposed to
> speed it up. but, there is no example of configuring for it...
> 
> I might have to subscribe to the dev list.  I haven't, 
> because I don't have the time
> to spend on it...  I had previously been actively on the Ant 
> development list, and it
> was very time consuming.  I don't have that kind of time 
> right now.  I know, in theory,
> that it is supposed to be possible -- I just haven't figured 
> out how yet.  Perhaps
> I will join -dev so someone can tell me.
> 
> I didn't realize that page was the Goal.  I downloaded 
> Tomcat, went to the online docs,
> and started following directions.  I can get it to work 
> standalone now, but have it shut
> down because it is just too slow.  When I found the "why to 
> use JK2", I thought it was more
> like saying "Why use JDK1.4 over JDK1.02"
> 
> Thanks for your reply, hopefully I will be able to figure this out.
> Malachi
> 
> 
> 10/7/2002 1:20:19 PM, "Turner, John" <[EMAIL PROTECTED]> wrote:
> 
> >
> >OK, let's be honest if we're going to post.  I certainly did 
> not say "JK2 is
> >in beta, not to be trusted, use something else, read the list, don't
> >complain about the documentation, etc etc"
> >
> >I _did_ say JK2 is "beta".  That has different meanings to 
> different people.
> >I'm primarily a sys-admin in charge of production servers.  
> If someone (that
> >someone being from the dev or release team) posts that JK2 should be
> >considered "beta", that means "not fit for production yet, 
> but probably OK
> >for development if you don't mind a few bugs".  That's me.  
> To others,
> >"beta" may mean something entirely different.  To each, 
> his/her own, make
> >your own decisions.
> >
> >JServ and JK have been working great for me, on high-traffic,
> >resource-intensive, production sites.  I see no reason to 
> jump on the JK2
> >bandwagon until the codebase is more stable.  Again, that's 
> me, and perhaps
> >the latest version (2.0.1) is that codebase, I have no way of knowing
> >without testing it myself and seeing what other people do with it.
> >Latest/greatest isn't always the wisest.  That said, use 
> whatever you want.
> >
> >RE: the documentation, you are welcome to complain.  I only 
> posted the
> >replies that I posted in defense of those people on the list 
> who have gone
> >above and beyond to contribute to the documentation effort, 
> beyond that of
> >the dev team.  These people have spent a lot of time working on their
> >documents, and have posted the URLs to the list many times.  
> Robert Sowders
> >has regularly posted a full list of HOWTOs for various platforms and
> >versions to supplement the "official" documentation.  These 
> posts can be
> >found in a search.  If you want to complain, that's cool, but your
> >complaints will get a lot more attention if you contribute 
> to the effort.
> >It's your choice.
> >
> >Now that we've put my comments and posts back into their 
> correct context,
> >let's get back to your questions (inline):
> >
> >> From: Malachi de AElfwe

RE: Apache with Tomcat

2002-10-07 Thread afreire

I do that in two HPUX 11, now I need to do that in ohter enviroment.
I've HP Virtual Vault with apache 1.3.19 and I've the tomcat in other HPUX.
I'm using Tomcat 3.2.3 or Tomcat 3.3.
Anybody have idea how can I connect the Virtual Vault to the HPUX?

Regards.
Alejandro




"Turner, John" <[EMAIL PROTECTED]> con fecha 07/10/2002 16:31:57

Por favor, responda a "Tomcat Users List" <[EMAIL PROTECTED]>

Destinatarios: 'Tomcat Users List' <[EMAIL PROTECTED]>
CC:(cci: ALEJANDRO FREIRE/BANELCO/AR)
Asunto:   RE: Apache with Tomcat





Yes.  Search the archives, this topic comes up all the time.
It's the same setup as putting Apache and Tomcat on the same machine,
except
that you change the server name in a few places to be the FQDN instead of
"localhost"
John
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 3:14 PM
> To: [EMAIL PROTECTED]
> Subject: Apache with Tomcat
>
>
> Can I integrate Apahce and  Tomcat if Apache is running in different
> machine than Tomcat?
> Is this it possible, How can I do that?
>
> Regards.
> Alejandro
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>








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




Re: RE: RE: JK2 Installation

2002-10-07 Thread Malachi de AElfweald

I'm sorry if that seemed a bit harsh -- it was not meant to be.  I had just read
a LOT of emails from you, and that was how it came across.

Originally, the problem I was having with FreeBSD was that if I tried to LoadModule
the mod_jk2.so, it said that pthread_mutex_unlock was unknown.  I did a lot of
investigation, and came to the conclusion that '-pthread' had to be added to the
CC flags.  In doing so, I have, as of yet, not been able to build mod_jk2.so anymore.
Not sure why. Can't figure it out.

Regarding the example you've shown.  I have seen that one repeatedly, and it only
applies to sockets. It does not apply to using the inprocess JNI, which I am trying
to use because Tomcat is REALLY slow, even locally on the LAN. That is supposed to
speed it up. but, there is no example of configuring for it...

I might have to subscribe to the dev list.  I haven't, because I don't have the time
to spend on it...  I had previously been actively on the Ant development list, and it
was very time consuming.  I don't have that kind of time right now.  I know, in theory,
that it is supposed to be possible -- I just haven't figured out how yet.  Perhaps
I will join -dev so someone can tell me.

I didn't realize that page was the Goal.  I downloaded Tomcat, went to the online docs,
and started following directions.  I can get it to work standalone now, but have it 
shut
down because it is just too slow.  When I found the "why to use JK2", I thought it was 
more
like saying "Why use JDK1.4 over JDK1.02"

Thanks for your reply, hopefully I will be able to figure this out.
Malachi


10/7/2002 1:20:19 PM, "Turner, John" <[EMAIL PROTECTED]> wrote:

>
>OK, let's be honest if we're going to post.  I certainly did not say "JK2 is
>in beta, not to be trusted, use something else, read the list, don't
>complain about the documentation, etc etc"
>
>I _did_ say JK2 is "beta".  That has different meanings to different people.
>I'm primarily a sys-admin in charge of production servers.  If someone (that
>someone being from the dev or release team) posts that JK2 should be
>considered "beta", that means "not fit for production yet, but probably OK
>for development if you don't mind a few bugs".  That's me.  To others,
>"beta" may mean something entirely different.  To each, his/her own, make
>your own decisions.
>
>JServ and JK have been working great for me, on high-traffic,
>resource-intensive, production sites.  I see no reason to jump on the JK2
>bandwagon until the codebase is more stable.  Again, that's me, and perhaps
>the latest version (2.0.1) is that codebase, I have no way of knowing
>without testing it myself and seeing what other people do with it.
>Latest/greatest isn't always the wisest.  That said, use whatever you want.
>
>RE: the documentation, you are welcome to complain.  I only posted the
>replies that I posted in defense of those people on the list who have gone
>above and beyond to contribute to the documentation effort, beyond that of
>the dev team.  These people have spent a lot of time working on their
>documents, and have posted the URLs to the list many times.  Robert Sowders
>has regularly posted a full list of HOWTOs for various platforms and
>versions to supplement the "official" documentation.  These posts can be
>found in a search.  If you want to complain, that's cool, but your
>complaints will get a lot more attention if you contribute to the effort.
>It's your choice.
>
>Now that we've put my comments and posts back into their correct context,
>let's get back to your questions (inline):
>
>> From: Malachi de AElfweald [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, October 07, 2002 3:57 PM
>> To: Turner, John; Short, Dave; tomcat-list
>> Subject: Re: RE: JK2 Installation
>> 
>> 1) I can't figure out how to get mod_jk2 to build on FreeBSD 
>> (using linux-sun-jdk14 and Apache2.0.42 and Tomcat 4.1.12). 
>> In the last 4 days, I 
>> somehow built mod_jk2.so once,
>> but then it complained about pthreads... I figured out that I 
>> need to add "-pthread"
>> to the CC flags but now it won't build the .so files -- 
>> even if it says it does, they
>> aren't there.
>
>I've deleted your other posts from my InBox because I don't have access to a
>FreeBSD machine at this time, even though I love FreeBSD and think its a
>great OS.  If you want to post the errors again, I will try to help.  Give
>me access to a FreeBSD machine, and I can probably get a build for you, but
>no promises.
>
>> 2) What is the correct way to use the inprocess-jni?  None of 
>> the examples use that.
>
>If it's not in the docs, your best option is to subscribe to tomcat-dev, NOT
>tomcat-user, and post your questions there.  JK2 is in active development,
>if you are using a feature that isn't available in the docs, the BEST place
>to ask your question is to ask it where the DEVELOPERS are, and that is
>tomcat-dev.
>
>> 
>> 3) What is the correct way to do the worker2.properties when 
>> dealing with Apache VirtualHosts?
>> 

Re: TOmcat 4.0.1 and JDOM b8

2002-10-07 Thread Malachi de AElfweald

Also, make sure that an older version is not in $JAVA_HOME/jre/lib/ext
cuz that would get used first

Malachi


10/7/2002 1:14:36 PM, Padhu Vinirs <[EMAIL PROTECTED]> wrote:

>JDOM is only a easy-to-use-wrapper for java programmers around standard 
>xml parsers. The 'SAXNotRecognizedOption" is an object in xerces.jar. 
>make sure the xerces.jar that comes with JDOM beta 8 is in your web 
>app's classpath. Maybe JDOM beta 8 supports a version of xerces that 
>Tomcat is not supporting.
>
>-- padhu
>
>
>
>cyril vidal wrote:
>
>>Hi,
>>
>>I'm using Tomcat 4.0.1 and I have such a code snippet, using JDOM beta 8:
>>import java.io.*;
>>import javax.servlet.*;
>>import javax.servlet.http.*;
>>import org.jdom.Element;
>>import org.jdom.Document;
>>import org.jdom.output.XMLOutputter;
>>import org.jdom.input.SAXBuilder;
>>import org.jdom.JDOMException;
>>
>>
>>public class AddToOrder extends HttpServlet {
>>
>>public Document getDocument(File sourceFile, PrintWriter errorsOut) {
>>try {
>>  SAXBuilder builder = new SAXBuilder();
>>Document document = builder.build(sourceFile);
>>  return document;
>>
>>} catch (JDOMException e) {
>>errorsOut.print("Un problème s'est produit pendant la construction du
>>document : "
>>   +e.getMessage() + ""  + "Un document vide est retourné.");
>>   return new Document(new Element("blank"));
>>...
>>
>>I receive systematically the following error message :
>>
>>root cause
>>
>>java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException
>> at AddToOrder.getDocument(AddToOrder.java:15)
>> at AddToOrder.doGet(AddToOrder.java:68)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>> at
>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
>>FilterChain.java:247
>>
>>Waht's this class? I can't find it into xercesImpl.jar in the lib directory
>>of Tomcat, so why this method is called and by which component?
>>
>>Thanks a lot for your response,
>>Best,
>>Cyril.
>>
>>
>>
>>
>>
>>
>>
>>--
>>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: RE: JK2 Installation

2002-10-07 Thread Turner, John


OK, let's be honest if we're going to post.  I certainly did not say "JK2 is
in beta, not to be trusted, use something else, read the list, don't
complain about the documentation, etc etc"

I _did_ say JK2 is "beta".  That has different meanings to different people.
I'm primarily a sys-admin in charge of production servers.  If someone (that
someone being from the dev or release team) posts that JK2 should be
considered "beta", that means "not fit for production yet, but probably OK
for development if you don't mind a few bugs".  That's me.  To others,
"beta" may mean something entirely different.  To each, his/her own, make
your own decisions.

JServ and JK have been working great for me, on high-traffic,
resource-intensive, production sites.  I see no reason to jump on the JK2
bandwagon until the codebase is more stable.  Again, that's me, and perhaps
the latest version (2.0.1) is that codebase, I have no way of knowing
without testing it myself and seeing what other people do with it.
Latest/greatest isn't always the wisest.  That said, use whatever you want.

RE: the documentation, you are welcome to complain.  I only posted the
replies that I posted in defense of those people on the list who have gone
above and beyond to contribute to the documentation effort, beyond that of
the dev team.  These people have spent a lot of time working on their
documents, and have posted the URLs to the list many times.  Robert Sowders
has regularly posted a full list of HOWTOs for various platforms and
versions to supplement the "official" documentation.  These posts can be
found in a search.  If you want to complain, that's cool, but your
complaints will get a lot more attention if you contribute to the effort.
It's your choice.

Now that we've put my comments and posts back into their correct context,
let's get back to your questions (inline):

> From: Malachi de AElfweald [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 3:57 PM
> To: Turner, John; Short, Dave; tomcat-list
> Subject: Re: RE: JK2 Installation
> 
> 1) I can't figure out how to get mod_jk2 to build on FreeBSD 
> (using linux-sun-jdk14 and Apache2.0.42 and Tomcat 4.1.12). 
> In the last 4 days, I 
> somehow built mod_jk2.so once,
> but then it complained about pthreads... I figured out that I 
> need to add "-pthread"
> to the CC flags but now it won't build the .so files -- 
> even if it says it does, they
> aren't there.

I've deleted your other posts from my InBox because I don't have access to a
FreeBSD machine at this time, even though I love FreeBSD and think its a
great OS.  If you want to post the errors again, I will try to help.  Give
me access to a FreeBSD machine, and I can probably get a build for you, but
no promises.

> 2) What is the correct way to use the inprocess-jni?  None of 
> the examples use that.

If it's not in the docs, your best option is to subscribe to tomcat-dev, NOT
tomcat-user, and post your questions there.  JK2 is in active development,
if you are using a feature that isn't available in the docs, the BEST place
to ask your question is to ask it where the DEVELOPERS are, and that is
tomcat-dev.

> 
> 3) What is the correct way to do the worker2.properties when 
> dealing with Apache VirtualHosts?
> 

RTFS (read the friendly source).  Others have posted in the past how things
work for various portions of connectors, including JK, not just JK2, because
they read the source code.

That said, it seems pretty self-explanatory to me based on the HOWTOs that
have been posted, and I don't even use JK2:

# define the worker
[ajp13:localhost:8009]
channel=channel.un:/usr/local/tomcat/work/jk2.socket
# To use the TCP/IP socket instead, just comment out the above
# line, and uncomment the one below
#channel=channel.socket:localhost:8009

# Announce a "status" worker
[status:status]

# Uri mapping
[uri:/examples/*]
#worker=ajp13:localhost:8009
worker=ajp13:/usr/local/tomcat/work/jk2.socket

Note the places where it says "localhost".  The first place I would start,
if I was using JK2, would be to replace "localhost" with the FQDN of the
virtual host, and see what happened.  But that's me.

> Oh, and by the way, as to John's question about why I am 
> using JK2... The JK/JK2 documentation
> states that it is designed for Apache2, might support JDK 1.4 
> NIO at some point, and is better
> at JNI -- which I am doing all of those things.

That's fine, I am not a cop.  It doesn't make a difference to me what you
use, except that in my opinion, it seems like wasted time and effort banging
your head trying to figure something out that may not even have a solution
yet because the guy writing the code hasn't even written it.  The statement
everyone quotes about "why to use JK2" is a GOAL, not a shipped
specification sheet...it's what the developers WANT JK2 to be, not
necessarily what it is today.   But, it's your time and effort, so bang
away.  Or, for that matter, jump into the dev effort and write the code

RE: Strange differences in Apache/Tomcat configuration

2002-10-07 Thread Turner, John


Sorry, I'm fresh out of ideas.  It sure sounds like a permissions issue to
me, but I can't say for sure without investigation.

Let us know what it was when you get it resolved.

John


> -Original Message-
> From: Kent Perrier [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 12:15 PM
> To: Tomcat Users List
> Subject: Re: Strange differences in Apache/Tomcat configuration
> 
> 
> On Mon, Oct 07, 2002 at 12:05:05PM -0400, Turner, John wrote:
> > 
> > That's a standard Apache "no auth" error message.  So, my 
> guess is there's
> > something going on with users (which user the web server is 
> running as) vs.
> > who owns index.jsp, or maybe a rogue .htaccess file 
> somewhere preventing the
> > web server from seeing index.jsp.  
> 
> The webserver is running at user nobody, the tomcat instance 
> is owned by
> user tomcat, group tomcat and runs as user tomcat.  All of the file 
> permissions are 775.  I would have gotten a different error, 
> I believe, if
> this was the problem.
> 
> The mod_jk.conf file has index.jsp listed a valid DirectoryIndex file
> and there are no Allow or deny directives for the /examples directory.
> (The WEB-INF and META-INF ones are there.)
> 
> > 
> > Assuming, of course, that you're changing the URL from 
> http://local to
> > http://remote. ;)
> 
> I am :)
> 
> Any other ideas?
> 
> Kent
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 


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




RE: newbie: Apache 1.3 TomCat 4 Win2000 RH7.3

2002-10-07 Thread Turner, John


As previously posted by Robert Sowders, on several occasions:

==quote==
Naturally it depends on your choice of OS, Tomcat version, and connector 
choice. 
Try the search at 
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/ or Google.

Here is mine for windows using all the latest of each. 
ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.10_JSDK1.4.zip

Here's another for windows using the "production quality" versions. 
http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html

Here's another for windows using older "production quality" versions. 
http://www.galatea.com/flashguides/apache-tomcat-24-win32.xml

Here's another for windows and Linux using older versions, and mod_webapp. 
 http://bruno.vernay.free.fr/HowTo/Apache-tomcat/bWebServer/index.html

Here's one for an unspecified unix using "production quality" versions. 
http://www.pubbitch.org/jboss/mod_jk2.html

Here is one using older versions on Linux. 
http://www.ubeans.com/tomcat/index.html

Here's a nice one for RH Linux using solid production versions. 
http://www.johnturner.com/howto/apache-tomcat-howto.html

==unquote==

John

> -Original Message-
> From: Thomas Eichberger [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 4:05 PM
> To: [EMAIL PROTECTED]
> Subject: newbie: Apache 1.3 TomCat 4 Win2000 RH7.3
> 
> 
> We try to change from TomCat 3.2.3 to TomCat 4, connected to 
> Apache 1.3, on 
> a Win 2000 server as well as on a Red Hat 7.3 machine.
> 
> Please, where is the documentation about how to configure 
> Apache and TomCat 
> 4 to work together?
> 
> I read about the connectors, quite complicated, there are several 
> possibilities. What's the best? Warp?
> 
> Is there a tutorial or an easy-to-understand documentation :-) ?
> 
> 
> I know we are late with this upgrad to TomCat 4, and all my 
> questions have 
> been answered here before, I assume, but searching on 
> mail-archive and 
> google didn't help me much.
> 
> 
> Ciao
> 
> Thomas
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




Re: TOmcat 4.0.1 and JDOM b8

2002-10-07 Thread Padhu Vinirs

JDOM is only a easy-to-use-wrapper for java programmers around standard 
xml parsers. The 'SAXNotRecognizedOption" is an object in xerces.jar. 
make sure the xerces.jar that comes with JDOM beta 8 is in your web 
app's classpath. Maybe JDOM beta 8 supports a version of xerces that 
Tomcat is not supporting.

-- padhu



cyril vidal wrote:

>Hi,
>
>I'm using Tomcat 4.0.1 and I have such a code snippet, using JDOM beta 8:
>import java.io.*;
>import javax.servlet.*;
>import javax.servlet.http.*;
>import org.jdom.Element;
>import org.jdom.Document;
>import org.jdom.output.XMLOutputter;
>import org.jdom.input.SAXBuilder;
>import org.jdom.JDOMException;
>
>
>public class AddToOrder extends HttpServlet {
>
>public Document getDocument(File sourceFile, PrintWriter errorsOut) {
>try {
>  SAXBuilder builder = new SAXBuilder();
>Document document = builder.build(sourceFile);
>  return document;
>
>} catch (JDOMException e) {
>errorsOut.print("Un problème s'est produit pendant la construction du
>document : "
>   +e.getMessage() + ""  + "Un document vide est retourné.");
>   return new Document(new Element("blank"));
>...
>
>I receive systematically the following error message :
>
>root cause
>
>java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException
> at AddToOrder.getDocument(AddToOrder.java:15)
> at AddToOrder.doGet(AddToOrder.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
>FilterChain.java:247
>
>Waht's this class? I can't find it into xercesImpl.jar in the lib directory
>of Tomcat, so why this method is called and by which component?
>
>Thanks a lot for your response,
>Best,
>Cyril.
>
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>



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




Re: How to specify the location of a properties file.

2002-10-07 Thread Justin Ruthenbeck


Shaun --

Consider dynamically loading the properties file from your classpath using 
a class loader.  This way, you can put the files anywhere you please and 
just include that directory in your classpath (or put them someplace 
already in your classpath).  If you need more specifics, let me know and 
I'd be happy to help...

justin

At 01:00 PM 10/7/2002, you wrote:
>I've got a servlet running under Tomcat and I need to read in the contents 
>of a properties file.  There will be different properties files for each 
>system specified using an init parameter.
>
>I'm having problems reading this property file at the moment in my java 
>class as the way I am doing it at the moment always looks where I started 
>Tomcat from i.e the /bin directory.  I can specify a full path to the file 
>but this is not very system independent and limits me to either Windows or 
>Unix.
>
>What I need is to specify the location of the file relative to the webapp 
>directory.  I have tried the url class but it doesn't seem to work, or 
>maybe it is working but looking in a different place to where my 
>properties file is.
>
>Can anyone suggest what I am doing wrong or provide any help on the use of 
>urls in Tomcat?
>
>Thanks
>
>
>Shaun
>


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




RE: Reload Servlets/Classes

2002-10-07 Thread Chuck Carson


Coo, thanks.

-Chuck


> -Original Message-
> From: Padhu Vinirs [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, October 07, 2002 10:53 AM
> To: Tomcat Users List
> Subject: Re: Reload Servlets/Classes
> 
> 
> 
> Uncomment that line and add reloadable=true. i tested this 
> and it works 
> fine.
> 
> -- padhu
> 
> 
> 
> Chuck Carson wrote:
> 
> >I am wanting to do this for classes under ROOT/WEB-INF/classes
> >
> >I noticed that  
> is commented 
> >out, do I uncomment this entry and add the reloadable to 
> this section?
> >
> >Thanks,
> >CC
> >
> >  
> >
> >>-Original Message-
> >>From: Padhu Vinirs [mailto:[EMAIL PROTECTED]]
> >>Sent: Monday, October 07, 2002 9:40 AM
> >>To: Tomcat Users List
> >>Subject: Re: Reload Servlets/Classes
> >>
> >>
> >>
> >>I asked the same question few minutes back. One of two ways:
> >>
> >>1. set reloadable=true for your web app context element in
> >>server.xml. 
> >>Restart tomcat.
> >>
> >>2. Copy the ant build.xml in tomcat-docs/appdev/sample into your web
> >>app, edit the build.xml for ur app and call "ant reload" everytime.
> >>
> >>
> >>-- padhu
> >>
> >>
> >>
> >>
> >>Chuck Carson wrote:
> >>
> >>
> >>
> >>>Sorry if this has been asked before, but when working in a
> >>>  
> >>>
> >>development
> >>
> >>
> >>>environment, how can I reload newly compiled classes w/o
> >>>  
> >>>
> >>restarting the
> >>
> >>
> >>>tomcat server?
> >>>
> >>>Thanks,
> >>>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:   
> >>>  
> >>>
> >> [EMAIL PROTECTED]>
> >>
> >>
> >>>For
> >>>  
> >>>
> >>additional commands,
> >>e-mail: 
> >>
> >>
> >>>
> >>>
> >>>
> >>> 
> >>>
> >>>  
> >>>
> >>
> >>--
> >>To unsubscribe, e-mail:   
> >> [EMAIL PROTECTED]>
> >>For
> >>additional commands, 
> >>e-mail: 
> >>
> >>
> >>
> >>
> >
> >
> >--
> >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:   
>  [EMAIL PROTECTED]>
> >For 
> additional commands, 
> e-mail: 
> >
> >
> >
> >  
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
>


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




newbie: Apache 1.3 TomCat 4 Win2000 RH7.3

2002-10-07 Thread Thomas Eichberger

We try to change from TomCat 3.2.3 to TomCat 4, connected to Apache 1.3, on 
a Win 2000 server as well as on a Red Hat 7.3 machine.

Please, where is the documentation about how to configure Apache and TomCat 
4 to work together?

I read about the connectors, quite complicated, there are several 
possibilities. What's the best? Warp?

Is there a tutorial or an easy-to-understand documentation :-) ?


I know we are late with this upgrad to TomCat 4, and all my questions have 
been answered here before, I assume, but searching on mail-archive and 
google didn't help me much.


Ciao

Thomas


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




TOmcat 4.0.1 and JDOM b8

2002-10-07 Thread cyril vidal

Hi,

I'm using Tomcat 4.0.1 and I have such a code snippet, using JDOM beta 8:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.jdom.Element;
import org.jdom.Document;
import org.jdom.output.XMLOutputter;
import org.jdom.input.SAXBuilder;
import org.jdom.JDOMException;


public class AddToOrder extends HttpServlet {

public Document getDocument(File sourceFile, PrintWriter errorsOut) {
try {
  SAXBuilder builder = new SAXBuilder();
Document document = builder.build(sourceFile);
  return document;

} catch (JDOMException e) {
errorsOut.print("Un problème s'est produit pendant la construction du
document : "
   +e.getMessage() + ""  + "Un document vide est retourné.");
   return new Document(new Element("blank"));
...

I receive systematically the following error message :

root cause

java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException
 at AddToOrder.getDocument(AddToOrder.java:15)
 at AddToOrder.doGet(AddToOrder.java:68)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247

Waht's this class? I can't find it into xercesImpl.jar in the lib directory
of Tomcat, so why this method is called and by which component?

Thanks a lot for your response,
Best,
Cyril.







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




How to specify the location of a properties file.

2002-10-07 Thread Shaun Campbell

I've got a servlet running under Tomcat and I need to read in the contents of a 
properties file.  There will be different properties files for each system specified 
using an init parameter.

I'm having problems reading this property file at the moment in my java class as the 
way I am doing it at the moment always looks where I started Tomcat from i.e the /bin 
directory.  I can specify a full path to the file but this is not very system 
independent and limits me to either Windows or Unix.

What I need is to specify the location of the file relative to the webapp directory.  
I have tried the url class but it doesn't seem to work, or maybe it is working but 
looking in a different place to where my properties file is.

Can anyone suggest what I am doing wrong or provide any help on the use of urls in 
Tomcat?

Thanks


Shaun





RE: JK2 Installation

2002-10-07 Thread Turner, John


I use JK, not JK2, but as far as I know, everything with JK2 is done in
workers2.properties and jk2.properties.  The Apache side is done in
workers2.properties.

The specific JK2 commands are abstracted out of httpd.conf, unlike JK, and
put into workers2.properties.  AFAIK, just put workers2.properties in the
default location (APACHE_HOME/conf) and go from there.

In my opinion, the existing docs should be enough to at least get started.
Here's an example worker2.properties file, in entirety, taken from
http://www.pubbitch.org/jboss/mod_jk2.html which has been posted several
times in the list of "Here are good HOWTO documents for JK/JK2":

# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
file=/usr/local/apache2/logs/shm.file
size=1048576

# Example socket channel, explicitly set port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# Example UNIX domain socket
[channel.un:/usr/local/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:localhost:8009]
channel=channel.un:/usr/local/tomcat/work/jk2.socket
# To use the TCP/IP socket instead, just comment out the above
# line, and uncomment the one below
#channel=channel.socket:localhost:8009

# Announce a "status" worker
[status:status]

# Uri mapping
[uri:/examples/*]
#worker=ajp13:localhost:8009
worker=ajp13:/usr/local/tomcat/work/jk2.socket

[uri:/status/*]
worker=status:status

# end of workers2.properties

John

> -Original Message-
> From: Gary Roediger [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 3:35 PM
> To: 'Tomcat Users List'
> Subject: RE: JK2 Installation
> 
> 
> EXACTLY all that is needed is some examples ( not just snippets ). I
> have spent a lot of time looking through the docs on line, from the
> release and pouring over the hundreds of email on this list - 
> I still do
> not see where the connection between Apache 2.0 httpd.conf and the
> worker2.properties file is made. I did stumble over a reference to
> JkSet config.file location-of-workers2.properties-file
> For example:
> JkSet config.file /usr/local/tomcat/conf/workers2.properties
> 
> There were a number of commands supported by mod_jk that were 
> placed in
> the apache httpd.conf file.  Example JkMount, JkWorkerFile, ...  what
> are the mod_jk2 commands???   Where are they documented???
> 
> In Mod_jk the way you connected a path in a URL to a worker 
> was through
> a JkMount configuration statement in httpd.conf.  How do you do the
> equivalent with mod_jk2???  
> Thank you,
> 
> Gary
> 
> >>> -Original Message-
> >>> From: Turner, John [mailto:[EMAIL PROTECTED]]
> >>> Sent: Monday, October 07, 2002 9:43 AM
> >>> To: 'Tomcat Users List'
> >>> Subject: RE: JK2 Installation
> >>> 
> >>> 
> >>> What EXACTLY is incomplete about it?  Someone can 
> probably help you
> if
> >>> you
> >>> can describe exactly what additional information you need.
> >>> 
> >>> John
> >>> 
> >>> 
> >>> > -Original Message-
> >>> > From: Christian Gothe [mailto:[EMAIL PROTECTED]]
> >>> > Sent: Monday, October 07, 2002 9:46 AM
> >>> > To: [EMAIL PROTECTED]
> >>> > Subject: JK2 Installation
> >>> >
> >>> >
> >>> > Hi!
> >>> >
> >>> > I'm looking for informations how to install JK2 for Apache. On
> >>> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/config
> >>> > web.html
> >>> > is nothing that can help me, because it is incomplete.
> >>> >
> >>> > Any ideas?
> >>> >
> >>> > Thank you,
> >>> > Christian
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > To unsubscribe, e-mail:
> >>> > 
> >>> > For additional commands, e-mail:
> >>> > 
> >>> >
> >>> 
> >>> --
> >>> To unsubscribe, e-mail:    >>> [EMAIL PROTECTED]>
> >>> For additional commands, e-mail:  >>> [EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




Re: RE: JK2 Installation

2002-10-07 Thread Malachi de AElfweald

Ok, I just read through 108 emails, mostly from this list.

I saw 1 message from Dave, and many from John telling everyone that JK2
is in beta, not to be trusted, use something else, read the list, don't
complain about the documentation, etc etc

Yet, neither of you answered our questions.  I personally have posting
here regularly, trying to get this to work, and no one has yet been able
to tell me how.  Don't get me wrong, I have read the different files in
the connector download, read the online documentation, posted here, exhausted
google, emailed Network Admin friends of mine, emailed FreeBSD maintainers.

All I want is someone to tell me what I have to do to fix my problem.

1) I can't figure out how to get mod_jk2 to build on FreeBSD (using linux-sun-jdk14 and
Apache2.0.42 and Tomcat 4.1.12). In the last 4 days, I somehow built mod_jk2.so once,
but then it complained about pthreads... I figured out that I need to add "-pthread"
to the CC flags but now it won't build the .so files -- even if it says it does, 
they
aren't there.

2) What is the correct way to use the inprocess-jni?  None of the examples use that.

3) What is the correct way to do the worker2.properties when dealing with Apache 
VirtualHosts?

Oh, and by the way, as to John's question about why I am using JK2... The JK/JK2 
documentation
states that it is designed for Apache2, might support JDK 1.4 NIO at some point, and 
is better
at JNI -- which I am doing all of those things.

Thanks,
Malachi




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




Re: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Mark R. Diggory

Are you testing on Windows with j2sdk1.4?

Craig R. McClanahan wrote:

>Works for me with no problems on all 4.0.x and 4.1.x versions of Tomcat;
>but I'm not trying to use any UTF-8 characters in my TLDs either.
>
>Craig
>
>  
>




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




Re: Configuring Tomcat to start with different verisons of a WebApp

2002-10-07 Thread Mark R. Diggory

Sorry, I answered in the wrong thread, please ignore this message
Mark R. Diggory wrote:

> A, stupid me. I didn't configure CATALINA_BASE and I've moved the 
> location of webapps so I didn't need multiple copies of my 
> webapplication for testing on each version! (Mark whack's himself on 
> the head!)
>
> I'll try that and see if it solves the problem.
>
> -Mark
>
> Tim Moore wrote:
>
>>> -Original Message-
>>> From: Scott Goldstein [mailto:[EMAIL PROTECTED]] Sent: 
>>> Monday, October 07, 2002 2:52 PM
>>> To: [EMAIL PROTECTED]
>>> Subject: Configuring Tomcat to start with different verisons of a 
>>> Web App
>>>
>>>
>>> At any one time, I have multiple versions of a product that I'm 
>>> working on on my development box.  In other words, I'm usually 
>>> fixing bugs in the previos one or two releases while moving forward 
>>> on the next release.
>>>
>>> This leaves me with three web applications in three seperate 
>>> directory structures.  I would like to start Tomcat through an icon 
>>> on my desktop.  To be able to handle all three versions of the web 
>>> app that I'm working on, I would like to have three seperate icons, 
>>> one for each web app version.  Unfortunately, I haven't figured out 
>>> how to do this with Tomcat.  It seems that I have to manually edit 
>>> conf/server.xml in order to start and stop with different web apps 
>>> installed.
>>>
>>> Can anyone provide suggestions on how to start and stop Tomcat with 
>>> different web apps installed without having to edit conf/server.xml?
>>>   
>>
>>
>> Check out http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt
>>
>> Section 4 on Multiple Tomcat 4 Instances.  You can write small batch
>> scripts that change the value of CATALINA_BASE and then start the
>> server.
>>
>>  
>>
>
>
>
>
>
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>





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




Re: HOW TO: How do I add a global variable in server.xml readable in all webapps?

2002-10-07 Thread Rajesh . Bhabaraju


--
Sent from my BlackBerry Wireless Handheld (www.BlackBerry.net)

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




Incompatible object argument for function call

2002-10-07 Thread Cyril Vidal

Hi,

I've fixed the problem with JDOM. In fact, I've had to put the xerces.jar given with 
the JDOM distribution in the tomcat/lib folder (to be use instead of XercesImpl.jar).
But now, I have such an error message when I try to run a servlet that was workin well 
before to put the xerces.jar in the Tomcat's folder:
java.lang.VerifyError: (class: TransformServlet, method: doGet signature: 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) 
Incompatible object argument for function call

Where the error can come from?
Thanks for your responses,
Cyril.
___

Cyril Vidal
Email: [EMAIL PROTECTED]
Web: http://www.planetexml.com



RE: JK2 Installation

2002-10-07 Thread Gary Roediger

EXACTLY all that is needed is some examples ( not just snippets ). I
have spent a lot of time looking through the docs on line, from the
release and pouring over the hundreds of email on this list - I still do
not see where the connection between Apache 2.0 httpd.conf and the
worker2.properties file is made. I did stumble over a reference to
JkSet config.file location-of-workers2.properties-file
For example:
JkSet config.file /usr/local/tomcat/conf/workers2.properties

There were a number of commands supported by mod_jk that were placed in
the apache httpd.conf file.  Example JkMount, JkWorkerFile, ...  what
are the mod_jk2 commands???   Where are they documented???

In Mod_jk the way you connected a path in a URL to a worker was through
a JkMount configuration statement in httpd.conf.  How do you do the
equivalent with mod_jk2???  
Thank you,

Gary

>>> -Original Message-
>>> From: Turner, John [mailto:[EMAIL PROTECTED]]
>>> Sent: Monday, October 07, 2002 9:43 AM
>>> To: 'Tomcat Users List'
>>> Subject: RE: JK2 Installation
>>> 
>>> 
>>> What EXACTLY is incomplete about it?  Someone can probably help you
if
>>> you
>>> can describe exactly what additional information you need.
>>> 
>>> John
>>> 
>>> 
>>> > -Original Message-
>>> > From: Christian Gothe [mailto:[EMAIL PROTECTED]]
>>> > Sent: Monday, October 07, 2002 9:46 AM
>>> > To: [EMAIL PROTECTED]
>>> > Subject: JK2 Installation
>>> >
>>> >
>>> > Hi!
>>> >
>>> > I'm looking for informations how to install JK2 for Apache. On
>>> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/config
>>> > web.html
>>> > is nothing that can help me, because it is incomplete.
>>> >
>>> > Any ideas?
>>> >
>>> > Thank you,
>>> > Christian
>>> >
>>> >
>>> >
>>> > --
>>> > To unsubscribe, e-mail:
>>> > 
>>> > For additional commands, e-mail:
>>> > 
>>> >
>>> 
>>> --
>>> To unsubscribe, e-mail:   >> [EMAIL PROTECTED]>
>>> For additional commands, e-mail: >> [EMAIL PROTECTED]>


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




Re: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Mark R. Diggory

Craig R. McClanahan wrote:

>>I've tried numerous encodings in my tld file, it always says UTF-8 even when I'm not 
>encoded in UTF-8. It was pointed out that this is a bug in an old version of Xerces. 
>But, when I install LE versions, I'm not using Xerces, I'm using the default Crimson 
>parser in j2sdk 1.4.
>>
>>When I pull my tld's out of the Jar files reference the external copies in web.xml 
>everything loads ok, so it looks like it is definitly a problem in some Jar 
>URLConnection...
>>
>>-Mark
>>
>>p.s. I'm not trying to just get an installation to work, I want my users to just be 
>able to download tomcat, install it out of the box and install my taglibray jar. I 
>want them to reference the "jar" in the web.xml and not the tld file and I want it 
>work an all versions of Tomcat 4.0 thru 4.1 tested on both Windows and Linux.
>>
>>
>>
>
>Works for me with no problems on all 4.0.x and 4.1.x versions of Tomcat;
>but I'm not trying to use any UTF-8 characters in my TLDs either.
>
>Craig
>  
>

I hadn't thought I was using any special UTF-8 characters in my tld's. 
But the default encoding set by the XML Editor I'm using was UTF-8. 
Again I tried to save the file in another ISO format and was successfull 
in saving it in that format and parsing it in that format externally. 
The parser used by tomcat was still barking that it couldn't parse it, 
that there was a non-UTF-8 charater present.



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




RE: Apache with Tomcat

2002-10-07 Thread Turner, John


Yes.  Search the archives, this topic comes up all the time.

It's the same setup as putting Apache and Tomcat on the same machine, except
that you change the server name in a few places to be the FQDN instead of
"localhost"

John

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 3:14 PM
> To: [EMAIL PROTECTED]
> Subject: Apache with Tomcat
> 
> 
> Can I integrate Apahce and  Tomcat if Apache is running in different
> machine than Tomcat?
> Is this it possible, How can I do that?
> 
> Regards.
> Alejandro
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




Re: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Craig R. McClanahan



On Mon, 7 Oct 2002, Mark R. Diggory wrote:

> Date: Mon, 07 Oct 2002 15:18:57 -0400
> From: Mark R. Diggory <[EMAIL PROTECTED]>
> Reply-To: Tag Libraries Developers List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Cc: Tag Libraries Developers List <[EMAIL PROTECTED]>
> Subject: Re: Can't deploy Custom Tag Library on Microsoth Windoz
>
> >
> >
> >If you access your XML parser through the JAXP APIs (which Tomcat does for
> >its own use), there is a standard and portable mechanism for selecting the
> >parser implementation to be used -- see the JAXP specification for
> >details.
> >
> >
> >Craig McClanahan
> >
> >
> >
> No, this has to strictly deal with default tomcat installation startup
> and what it uses as a default when loading taglibraries. Not with which
> parser I prefer to use in a particular webapplication.
>

You can configure the parser Tomcat itself uses by setting up
jaxp.properties in $CATALINA_HOME/server/classes (or in a jar file in
server/lib).

> If I setup my taglibrary Jar with
>
> /META-INF/taglib.tld
>
> and configure my web.xml file to load from the Jar file.
>
> 
> /thedata-taglib-validation-0.1
> /WEB-INF/lib/Validation.jar
> 
>
> Then the default installations of Tomcat versions 4.0.3, 4.0.5, 4.1 all
> fail to load the taglib because of the following error:
>
> PARSE error at line 1 column -1
> > >> org.xml.sax.SAXParseException: Character conversion error: "Malformed
> > >> UTF-8 char
> > >>  -- is an XML encoding declaration missing?" (line number may be too
> > >> low).
>
> This seems to happen on windows and not linux.
>
> I've tried numerous encodings in my tld file, it always says UTF-8 even when I'm not 
>encoded in UTF-8. It was pointed out that this is a bug in an old version of Xerces. 
>But, when I install LE versions, I'm not using Xerces, I'm using the default Crimson 
>parser in j2sdk 1.4.
>
> When I pull my tld's out of the Jar files reference the external copies in web.xml 
>everything loads ok, so it looks like it is definitly a problem in some Jar 
>URLConnection...
>
> -Mark
>
> p.s. I'm not trying to just get an installation to work, I want my users to just be 
>able to download tomcat, install it out of the box and install my taglibray jar. I 
>want them to reference the "jar" in the web.xml and not the tld file and I want it 
>work an all versions of Tomcat 4.0 thru 4.1 tested on both Windows and Linux.
>

Works for me with no problems on all 4.0.x and 4.1.x versions of Tomcat;
but I'm not trying to use any UTF-8 characters in my TLDs either.

Craig


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




RE: Class Loading Question

2002-10-07 Thread Cox, Charlie


> -Original Message-
> From: Mark R. Diggory [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 3:08 PM
> To: [EMAIL PROTECTED]
> Subject: Class Loading Question
> 
> 
> I'm looking in the ClassLoading documentation and I see this as the 
> loading order
> 
> /WEB-INF/classes of your web application
> /WEB-INF/lib/*.jar of your web application
> Bootstrap classes of your JVM
> System class loader classses (described above)
> $CATALINA_HOME/common/classes
> $CATALINA_HOME/common/endorsed/*.jar
> $CATALINA_HOME/common/lib/*.jar
> $CATALINA_HOME/shared/classes
> $CATALINA_HOME/shared/lib/*.jar
> 
> but when I look at the chart it looks like this:
> 
>Bootstrap
>|
> System
>|
> Common
>/  \
>   Catalina   Shared
>   /   \
>  Webapp1  Webapp2
> 


This diagram is the heirarchy according to classloaders and their parent.
i.e. the 'common' classloader's parent is the 'system' classloader.

> 
> seems as though the the ordering of the CLASSPATH for my 
> webapp should 
> look like this when I consider the chart:
> 
> /WEB-INF/classes of your web application
> /WEB-INF/lib/*.jar of your web application
> $CATALINA_HOME/shared/classes
> $CATALINA_HOME/shared/lib/*.jar
> $CATALINA_HOME/common/classes
> $CATALINA_HOME/common/endorsed/*.jar
> $CATALINA_HOME/common/lib/*.jar
> System class loader classses (described above)
> Bootstrap classes of your JVM
> 

As mentioned in the classloader doc, the WebAppClassloader goes against the
normal classloader delegation method by checking its own repository first,
then if the class is not found, it delegates to its parent. The
StandardClassLoader('common', 'shared', etc) delegates first, then if not
found checks its own repository.

> Then each level can have "precidence" over the last level, 
> this would be 
> benificial in situations where the first package of a 
> particualr type is 
> used as a default (ie XML parsers).
> 
> Why are the System/bootstrap/common classes listed before 
> shared? Seems 
> when one uses the "default" configuration strategy for XML 
> parsers one 
> would get stuck with jdk's default crimson instead of 
> tomcat's default 
> xerces when working with a "out-of-the-box" installation of Tomcat.
> 
> This would allow one to more easily override default settings 
> in the JVM 
> Classpath and Tomcat "out-of-the-box" wouldn't have any problems 
> associated with using an unfamiliar parser.
> 
> -Mark Diggory
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




Re: Class Loading Question

2002-10-07 Thread Craig R. McClanahan



On Mon, 7 Oct 2002, Mark R. Diggory wrote:

> Date: Mon, 07 Oct 2002 15:07:40 -0400
> From: Mark R. Diggory <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Class Loading Question
>
> I'm looking in the ClassLoading documentation and I see this as the
> loading order
>
> /WEB-INF/classes of your web application
> /WEB-INF/lib/*.jar of your web application
> Bootstrap classes of your JVM
> System class loader classses (described above)
> $CATALINA_HOME/common/classes
> $CATALINA_HOME/common/endorsed/*.jar
> $CATALINA_HOME/common/lib/*.jar
> $CATALINA_HOME/shared/classes
> $CATALINA_HOME/shared/lib/*.jar
>
> but when I look at the chart it looks like this:
>
>Bootstrap
>|
> System
>|
> Common
>/  \
>   Catalina   Shared
>   /   \
>  Webapp1  Webapp2
>
>
> seems as though the the ordering of the CLASSPATH for my webapp should
> look like this when I consider the chart:
>
> /WEB-INF/classes of your web application
> /WEB-INF/lib/*.jar of your web application
> $CATALINA_HOME/shared/classes
> $CATALINA_HOME/shared/lib/*.jar
> $CATALINA_HOME/common/classes
> $CATALINA_HOME/common/endorsed/*.jar
> $CATALINA_HOME/common/lib/*.jar
> System class loader classses (described above)
> Bootstrap classes of your JVM
>
> Then each level can have "precidence" over the last level, this would be
> benificial in situations where the first package of a particualr type is
> used as a default (ie XML parsers).
>
> Why are the System/bootstrap/common classes listed before shared? Seems
> when one uses the "default" configuration strategy for XML parsers one
> would get stuck with jdk's default crimson instead of tomcat's default
> xerces when working with a "out-of-the-box" installation of Tomcat.
>
> This would allow one to more easily override default settings in the JVM
> Classpath and Tomcat "out-of-the-box" wouldn't have any problems
> associated with using an unfamiliar parser.
>

The standard class loader functionality in Java is "delegate to the parent
before looking locally".  Among other things, this is a security issue --
it guarantees that you can't do wierd things like override the standard
implementation of java.lang.SecurityManager with one of your own.

The servlet spec gives webapp class loaders the option to modify this
class loading order for the webapp class loader, and Tomcat 4 (by default)
does this.  Doing so requires a large number of extra checks to ensure
that a webapp doesn't try to override JDK or servlet API classes.
However, all the other class loaders follow the standard pattern.

> -Mark Diggory

Craig


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




RE: Configuring Tomcat to start with different verisons of a Web App

2002-10-07 Thread Sexton, George

Why not have 3 different web apps context1, context2, context3 and run them
all in the same container?

-Original Message-
From: Scott Goldstein [mailto:[EMAIL PROTECTED]]
Sent: 07 October, 2002 12:52 PM
To: [EMAIL PROTECTED]
Subject: Configuring Tomcat to start with different verisons of a Web
App


At any one time, I have multiple versions of a product that I'm working on
on
my development box.  In other words, I'm usually fixing bugs in the previos
one or two releases while moving forward on the next release.

This leaves me with three web applications in three seperate directory
structures.  I would like to start Tomcat through an icon on my desktop.  To
be able to handle all three versions of the web app that I'm working on, I
would like to have three seperate icons, one for each web app version.
Unfortunately, I haven't figured out how to do this with Tomcat.  It seems
that I have to manually edit conf/server.xml in order to start and stop with
different web apps installed.

Can anyone provide suggestions on how to start and stop Tomcat with
different
web apps installed without having to edit conf/server.xml?

Thanks.

Scott


"Just a mirror for the sun...
 My smiling eyes are just a mirror for the sun."



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: Configuring Tomcat to start with different verisons of a WebApp

2002-10-07 Thread Mark R. Diggory

A, stupid me. I didn't configure CATALINA_BASE and I've moved the 
location of webapps so I didn't need multiple copies of my 
webapplication for testing on each version! (Mark whack's himself on the 
head!)

I'll try that and see if it solves the problem.

-Mark

Tim Moore wrote:

>>-Original Message-
>>From: Scott Goldstein [mailto:[EMAIL PROTECTED]] 
>>Sent: Monday, October 07, 2002 2:52 PM
>>To: [EMAIL PROTECTED]
>>Subject: Configuring Tomcat to start with different verisons 
>>of a Web App
>>
>>
>>At any one time, I have multiple versions of a product that 
>>I'm working on on 
>>my development box.  In other words, I'm usually fixing bugs 
>>in the previos 
>>one or two releases while moving forward on the next release.
>>
>>This leaves me with three web applications in three seperate 
>>directory 
>>structures.  I would like to start Tomcat through an icon on 
>>my desktop.  To 
>>be able to handle all three versions of the web app that I'm 
>>working on, I 
>>would like to have three seperate icons, one for each web app 
>>version.  
>>Unfortunately, I haven't figured out how to do this with 
>>Tomcat.  It seems 
>>that I have to manually edit conf/server.xml in order to 
>>start and stop with 
>>different web apps installed.
>>
>>Can anyone provide suggestions on how to start and stop 
>>Tomcat with different 
>>web apps installed without having to edit conf/server.xml?
>>
>>
>
>Check out http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt
>
>Section 4 on Multiple Tomcat 4 Instances.  You can write small batch
>scripts that change the value of CATALINA_BASE and then start the
>server.
>
>  
>





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




RE: Apache with Tomcat

2002-10-07 Thread Michael Schulz


You could also search the email list archive where this topic is discussed
ad nauseum on an almost daily basis.  (:o)  It is very possible, and very
well documented.  Search Google for "Apache Tomcat HOWTO".

-Mike


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 07, 2002 2:14 PM
To: [EMAIL PROTECTED]
Subject: Apache with Tomcat


Can I integrate Apahce and  Tomcat if Apache is running in different
machine than Tomcat?
Is this it possible, How can I do that?

Regards.
Alejandro



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Apache with Tomcat

2002-10-07 Thread Mitchell, Edmund

Yes you can. 

Just follow one of the many excellent how-to's on this subject [1], and
substitute hostnames/IP addresses for "lcoalhost" in the appropriate places.

HTH

Edmund

[1] From an email to this list by Robert L Sowders

 > Here is mine for windows using all the latest of each. 
> ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.10_JS
> DK1.4.zip
> 
> Here's another for windows using the "production quality" versions. 
> http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html
> 
> Here's another for windows using older "production quality" versions. 
> http://www.galatea.com/flashguides/apache-tomcat-24-win32.xml
> 
> Here's another for windows and Linux using older versions, 
> and mod_webapp. 
>  http://bruno.vernay.free.fr/HowTo/Apache-tomcat/bWebServer/index.html
> 
> Here's one for an unspecified unix using "production quality" 
> versions. 
> http://www.pubbitch.org/jboss/mod_jk2.html
> 
> Here is one using older versions on Linux. 
> http://www.ubeans.com/tomcat/index.html
> 
> Here's a nice one for RH Linux using solid production versions. 
> http://www.johnturner.com/howto/apache-tomcat-howto.html

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 3:14 PM
> To: [EMAIL PROTECTED]
> Subject: Apache with Tomcat
> 
> 
> Can I integrate Apahce and  Tomcat if Apache is running in different
> machine than Tomcat?
> Is this it possible, How can I do that?

 

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




Re: Apache with Tomcat

2002-10-07 Thread Catalin Constantin

you could use mod_proxy from apache !

Catalin

  - Original Message - 
  From: [EMAIL PROTECTED] 
  To: [EMAIL PROTECTED] 
  Sent: Monday, October 07, 2002 9:14 PM
  Subject: Apache with Tomcat


  Can I integrate Apahce and  Tomcat if Apache is running in different
  machine than Tomcat?
  Is this it possible, How can I do that?

  Regards.
  Alejandro



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




Re: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Mark R. Diggory

>
>
>If you access your XML parser through the JAXP APIs (which Tomcat does for
>its own use), there is a standard and portable mechanism for selecting the
>parser implementation to be used -- see the JAXP specification for
>details.
>  
>
>Craig McClanahan
>
>  
>
No, this has to strictly deal with default tomcat installation startup 
and what it uses as a default when loading taglibraries. Not with which 
parser I prefer to use in a particular webapplication.

If I setup my taglibrary Jar with

/META-INF/taglib.tld

and configure my web.xml file to load from the Jar file.


/thedata-taglib-validation-0.1
/WEB-INF/lib/Validation.jar


Then the default installations of Tomcat versions 4.0.3, 4.0.5, 4.1 all 
fail to load the taglib because of the following error:

PARSE error at line 1 column -1
> >> org.xml.sax.SAXParseException: Character conversion error: "Malformed
> >> UTF-8 char
> >>  -- is an XML encoding declaration missing?" (line number may be too
> >> low).

This seems to happen on windows and not linux.

I've tried numerous encodings in my tld file, it always says UTF-8 even when I'm not 
encoded in UTF-8. It was pointed out that this is a bug in an old version of Xerces. 
But, when I install LE versions, I'm not using Xerces, I'm using the default Crimson 
parser in j2sdk 1.4.

When I pull my tld's out of the Jar files reference the external copies in web.xml 
everything loads ok, so it looks like it is definitly a problem in some Jar 
URLConnection...

-Mark

p.s. I'm not trying to just get an installation to work, I want my users to just be 
able to download tomcat, install it out of the box and install my taglibray jar. I 
want them to reference the "jar" in the web.xml and not the tld file and I want it 
work an all versions of Tomcat 4.0 thru 4.1 tested on both Windows and Linux.







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




RE: Configuring Tomcat to start with different verisons of a Web App

2002-10-07 Thread Tim Moore

> -Original Message-
> From: Scott Goldstein [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, October 07, 2002 2:52 PM
> To: [EMAIL PROTECTED]
> Subject: Configuring Tomcat to start with different verisons 
> of a Web App
> 
> 
> At any one time, I have multiple versions of a product that 
> I'm working on on 
> my development box.  In other words, I'm usually fixing bugs 
> in the previos 
> one or two releases while moving forward on the next release.
> 
> This leaves me with three web applications in three seperate 
> directory 
> structures.  I would like to start Tomcat through an icon on 
> my desktop.  To 
> be able to handle all three versions of the web app that I'm 
> working on, I 
> would like to have three seperate icons, one for each web app 
> version.  
> Unfortunately, I haven't figured out how to do this with 
> Tomcat.  It seems 
> that I have to manually edit conf/server.xml in order to 
> start and stop with 
> different web apps installed.
> 
> Can anyone provide suggestions on how to start and stop 
> Tomcat with different 
> web apps installed without having to edit conf/server.xml?

Check out http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt

Section 4 on Multiple Tomcat 4 Instances.  You can write small batch
scripts that change the value of CATALINA_BASE and then start the
server.

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

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




Apache with Tomcat

2002-10-07 Thread afreire

Can I integrate Apahce and  Tomcat if Apache is running in different
machine than Tomcat?
Is this it possible, How can I do that?

Regards.
Alejandro



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




Class Loading Question

2002-10-07 Thread Mark R. Diggory

I'm looking in the ClassLoading documentation and I see this as the 
loading order

/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application
Bootstrap classes of your JVM
System class loader classses (described above)
$CATALINA_HOME/common/classes
$CATALINA_HOME/common/endorsed/*.jar
$CATALINA_HOME/common/lib/*.jar
$CATALINA_HOME/shared/classes
$CATALINA_HOME/shared/lib/*.jar

but when I look at the chart it looks like this:

   Bootstrap
   |
System
   |
Common
   /  \
  Catalina   Shared
  /   \
 Webapp1  Webapp2


seems as though the the ordering of the CLASSPATH for my webapp should 
look like this when I consider the chart:

/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application
$CATALINA_HOME/shared/classes
$CATALINA_HOME/shared/lib/*.jar
$CATALINA_HOME/common/classes
$CATALINA_HOME/common/endorsed/*.jar
$CATALINA_HOME/common/lib/*.jar
System class loader classses (described above)
Bootstrap classes of your JVM

Then each level can have "precidence" over the last level, this would be 
benificial in situations where the first package of a particualr type is 
used as a default (ie XML parsers).

Why are the System/bootstrap/common classes listed before shared? Seems 
when one uses the "default" configuration strategy for XML parsers one 
would get stuck with jdk's default crimson instead of tomcat's default 
xerces when working with a "out-of-the-box" installation of Tomcat.

This would allow one to more easily override default settings in the JVM 
Classpath and Tomcat "out-of-the-box" wouldn't have any problems 
associated with using an unfamiliar parser.

-Mark Diggory



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




POSTed pages expire in IE?

2002-10-07 Thread Jason McCormick

  I'm working on an upgrade from Tomcat 3 to Tomcat 4.1.12 and I've run into a 
curious problem.  The scenraio is a user enters data into a form and the 
server returns a results page.  On that results page, a list of matches is 
presented and the user can click on one to view details.  With the 
application running on Tomcat 3.2 the user could click the back button and 
the previous page with the hits would be viewable in the cache on the 
browser.  With 4.1.12, the user can no longer hit the back button.  When back 
is pressed, IE displays a page that says that the page content has expered 
that that it won't automatically repost the request for security reason.  
Rolling back to 3.2 fixed this error.  The fact that it works in 3.2 makes it 
sound as if this is a configuration issue with Tomcat 4.1.12.  Can someone 
point me in the right direction?

Thanks!

-- 
Jason McCormick
Network/Systems Administrator
Lexi-Comp, Inc.
Phone: 330-650-6506 x239
Fax: 330-656-4307
Email: [EMAIL PROTECTED]

Public Key: http://bamboo.lexi.com/~jmccormick/public-keys.php


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




Re: Pb with WarpConnector, JNDI, DBCP

2002-10-07 Thread Nikola Milutinovic

John Walstra wrote:

> I used to use the WarpConnector. I just switched to mod_jk. When I used the 
> WarpConnector, I could not get the JNDI DataSource to work. I received the 
> same error you received. If I accessed my webapp using the 
> "Tomcat-Standalone" service it would work, but would not work via 
> "Tomcat-Apache" I'm not sure why this happens, but mod_jk is the least 
> painfully course of action.

If I recall correctly, someone identified a problem with WARP, something to do 
with paths used to deploy context. Search the archives.

Nix.


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




Re: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Craig R. McClanahan



On Mon, 7 Oct 2002, Mark R. Diggory wrote:

> Date: Mon, 07 Oct 2002 14:45:15 -0400
> From: Mark R. Diggory <[EMAIL PROTECTED]>
> Reply-To: Tag Libraries Developers List <[EMAIL PROTECTED]>
> To: Tag Libraries Developers List <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: Can't deploy Custom Tag Library on Microsoth Windoz
>
> Well, I installed 4.0.3 regular version instead of LE, now I assume I
> should be using the Xerces parser thats part of tomcat, but I still get
> the exceptions. Since j2sdk has its own installation of an xml parser
> (Crimson, go figure which Moron came up with the idea to default package
> a buggy xml parser into the j2sdk and then force us to configure some
> stupid config buried inside the jdk installation just to get out of it.
> What up with that Sun!).
>
> Is there a way I can configure tomcat to use a different XML parser
> without messing around in the jdk?
>
> Hey Sun, if your listening! I don't want the jdk to set a "default XML
> parser", I would never want jdk to set a "default xml parser". Its
> "Always" the case that I want to use "MY SELECTED XML PARSER" never
> never never would I want it to "JUST DEFAULT to some parser that I've
> never used before in my life", expecially one that is buggy!
>

If you access your XML parser through the JAXP APIs (which Tomcat does for
its own use), there is a standard and portable mechanism for selecting the
parser implementation to be used -- see the JAXP specification for
details.

> -Mark

Craig McClanahan


>
> Mark R. Diggory wrote:
>
> > I keep getting these parsing exceptions when I try to load my custom
> > taglibs (from JAR files) on Tomcat 4.0.3, 4.0.5, 4.1 on Windows 2000/XP.
> >
> >> Starting service Tomcat-Standalone
> >> Apache Tomcat/4.0.3
> >> PARSE error at line 1 column -1
> >> org.xml.sax.SAXParseException: Character conversion error: "Malformed
> >> UTF-8 char
> >>  -- is an XML encoding declaration missing?" (line number may be too
> >> low).
> >> PARSE error at line 1 column -1
> >> org.xml.sax.SAXParseException: Character conversion error: "Malformed
> >> UTF-8 char
> >>  -- is an XML encoding declaration missing?" (line number may be too
> >> low).
> >> PARSE error at line 1 column -1
> >> org.xml.sax.SAXParseException: Character conversion error: "Malformed
> >> UTF-8 char
> >>  -- is an XML encoding declaration missing?" (line number may be too
> >> low).
> >> PARSE error at line 1 column -1
> >> org.xml.sax.SAXParseException: Character conversion error: "Malformed
> >> UTF-8 char
> >>  -- is an XML encoding declaration missing?" (line number may be too
> >> low).
> >> PARSE error at line 1 column -1
> >> org.xml.sax.SAXParseException: Character conversion error: "Malformed
> >> UTF-8 char
> >>  -- is an XML encoding declaration missing?" (line number may be too
> >> low).
> >> PARSE error at line 1 column -1
> >> org.xml.sax.SAXParseException: Character conversion error: "Malformed
> >> UTF-8 char
> >>  -- is an XML encoding declaration missing?" (line number may be too
> >> low).
> >> No tags
> >> No tags
> >
> >
> >
> > I know this is coming from some parsing error when the tld is parsed.
> > But even if I put the tld file into different encodings (ISO-8859-1).
> > I still get the exceptions.
> >
> > example tld header:
> >
> > 
> >  > Library 1.2//EN"
> > "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
> > 
> > ...
> >
> > -Mark Diggory
> >
> >
> >
> > --
> > 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: Can't deploy Custom Tag Library on Microsoth Windoz

2002-10-07 Thread Mark R. Diggory

Well, I installed 4.0.3 regular version instead of LE, now I assume I 
should be using the Xerces parser thats part of tomcat, but I still get 
the exceptions. Since j2sdk has its own installation of an xml parser 
(Crimson, go figure which Moron came up with the idea to default package 
a buggy xml parser into the j2sdk and then force us to configure some 
stupid config buried inside the jdk installation just to get out of it. 
What up with that Sun!).

Is there a way I can configure tomcat to use a different XML parser 
without messing around in the jdk?

Hey Sun, if your listening! I don't want the jdk to set a "default XML 
parser", I would never want jdk to set a "default xml parser". Its 
"Always" the case that I want to use "MY SELECTED XML PARSER" never 
never never would I want it to "JUST DEFAULT to some parser that I've 
never used before in my life", expecially one that is buggy!

-Mark

Mark R. Diggory wrote:

> I keep getting these parsing exceptions when I try to load my custom 
> taglibs (from JAR files) on Tomcat 4.0.3, 4.0.5, 4.1 on Windows 2000/XP.
>
>> Starting service Tomcat-Standalone
>> Apache Tomcat/4.0.3
>> PARSE error at line 1 column -1
>> org.xml.sax.SAXParseException: Character conversion error: "Malformed 
>> UTF-8 char
>>  -- is an XML encoding declaration missing?" (line number may be too 
>> low).
>> PARSE error at line 1 column -1
>> org.xml.sax.SAXParseException: Character conversion error: "Malformed 
>> UTF-8 char
>>  -- is an XML encoding declaration missing?" (line number may be too 
>> low).
>> PARSE error at line 1 column -1
>> org.xml.sax.SAXParseException: Character conversion error: "Malformed 
>> UTF-8 char
>>  -- is an XML encoding declaration missing?" (line number may be too 
>> low).
>> PARSE error at line 1 column -1
>> org.xml.sax.SAXParseException: Character conversion error: "Malformed 
>> UTF-8 char
>>  -- is an XML encoding declaration missing?" (line number may be too 
>> low).
>> PARSE error at line 1 column -1
>> org.xml.sax.SAXParseException: Character conversion error: "Malformed 
>> UTF-8 char
>>  -- is an XML encoding declaration missing?" (line number may be too 
>> low).
>> PARSE error at line 1 column -1
>> org.xml.sax.SAXParseException: Character conversion error: "Malformed 
>> UTF-8 char
>>  -- is an XML encoding declaration missing?" (line number may be too 
>> low).
>> No tags
>> No tags
>
>
>
> I know this is coming from some parsing error when the tld is parsed. 
> But even if I put the tld file into different encodings (ISO-8859-1). 
> I still get the exceptions.
>
> example tld header:
>
> 
>  Library 1.2//EN"
> "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
> 
> ...
>
> -Mark Diggory
>
>
>
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>





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




Embedded Tomcat

2002-10-07 Thread Patrick Lacson

Does anybody know how what the proper API method(s) are to deploy WAR files 
and to auto expand the WAR file in the webapps directory?  Currently doing a

deployer.install(contextPath, warFile);

Doesn't expand the WAR file in the webapps directory.  I need to do this w/o 
XML files..  Thanks in advance!


-Patrick

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


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




Tomcat 4.0.1 and JDOM beta 8

2002-10-07 Thread Cyril Vidal

Hi,

I'm using Tomcat 4.0.1 and I have such a code snippet, using JDOM beta 8:

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.jdom.Element;
import org.jdom.Document;
import org.jdom.output.XMLOutputter;
import org.jdom.input.SAXBuilder;
import org.jdom.JDOMException;


public class AddToOrder extends HttpServlet {

public Document getDocument(File sourceFile, PrintWriter errorsOut) {
try {
  SAXBuilder builder = new SAXBuilder();
Document document = builder.build(sourceFile);
  return document;

} catch (JDOMException e) {
errorsOut.print("Un problème s'est produit pendant la construction du
document : "
   +e.getMessage() + ""  + "Un document vide est retourné.");
   return new Document(new Element("blank"));
...

I receive systematically the following error message :

root cause

java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException
 at AddToOrder.getDocument(AddToOrder.java:15)
 at AddToOrder.doGet(AddToOrder.java:68)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247

Waht's this class? I can't find it into xercesImpl.jar in the lib directory
of Tomcat, so why this method is called and by which component?

Thanks a lot for your response,
Best,
Cyril.





___

Cyril Vidal
Email: [EMAIL PROTECTED]
Web: http://www.planetexml.com



RE: auto deploy WAR + embedded tomcat

2002-10-07 Thread

Hmm.. Don't know why that is, I'm sending this question from my hotmail 
account which should be

Patrick Lacson.

-P


>From: Reynir Hübner <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: RE: auto deploy WAR + embedded tomcat
>Date: Sat, 5 Oct 2002 09:23:31 -
>
>Ok how come someone is sending emails with my name on it (in the from 
>address) ?
>
>
>
> > -Original Message-
> > From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> > Sent: 5. október 2002 09:23
> > To: [EMAIL PROTECTED]
> > Subject: auto deploy WAR + embedded tomcat
> >
> >
> > Hello Tomcat community!
> >
> > Quick question:  What is the proper way to expand WAR files
> > during deploy
> > via the API?
> >
> > Thanks,
> > Patrick
> >
> >
> > _
> > MSN Photos is the easiest way to share and print your photos:
> > http://photos.msn.com/support/worldwide.aspx
> >
> >
> > --
> > To unsubscribe, e-mail:
> >  [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: 
> >
> >
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>



[EMAIL PROTECTED]
Software Developer

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


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




Re: Reload Servlets/Classes

2002-10-07 Thread Padhu Vinirs


Uncomment that line and add reloadable=true. i tested this and it works 
fine.

-- padhu



Chuck Carson wrote:

>I am wanting to do this for classes under ROOT/WEB-INF/classes
>
>I noticed that  is commented
>out, do I uncomment this entry and add the reloadable to this section?
>
>Thanks,
>CC
>
>  
>
>>-Original Message-
>>From: Padhu Vinirs [mailto:[EMAIL PROTECTED]] 
>>Sent: Monday, October 07, 2002 9:40 AM
>>To: Tomcat Users List
>>Subject: Re: Reload Servlets/Classes
>>
>>
>>
>>I asked the same question few minutes back. One of two ways:
>>
>>1. set reloadable=true for your web app context element in 
>>server.xml. 
>>Restart tomcat.
>>
>>2. Copy the ant build.xml in tomcat-docs/appdev/sample into your web 
>>app, edit the build.xml for ur app and call "ant reload" everytime.
>>
>>
>>-- padhu
>>
>>
>>
>>
>>Chuck Carson wrote:
>>
>>
>>
>>>Sorry if this has been asked before, but when working in a 
>>>  
>>>
>>development 
>>
>>
>>>environment, how can I reload newly compiled classes w/o 
>>>  
>>>
>>restarting the 
>>
>>
>>>tomcat server?
>>>
>>>Thanks,
>>>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:   
>>>  
>>>
>> [EMAIL PROTECTED]>
>>
>>
>>>For 
>>>  
>>>
>>additional commands, 
>>e-mail: 
>>
>>
>>>
>>>
>>>
>>> 
>>>
>>>  
>>>
>>
>>--
>>To unsubscribe, e-mail:   
>> [EMAIL PROTECTED]>
>>For 
>>additional commands, 
>>e-mail: 
>>
>>
>>
>>
>
>
>--
>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: 




  1   2   >