Re: HttpServletRequest getPathInfo() decodes incorrectly?

2003-01-20 Thread Andreas Anderson
Thanks, but it didn't solve the problem.
java.net.URLDecoder decodes the scandinavian chars properly. 

Andreas

--- Scott Dunbar <[EMAIL PROTECTED]> wrote:
>  Andreas,
>I had a similar problem with a different character set under Windows. 
> The ultimate problem wasn't Tomcat but was how the JDK converted to the 
>underlying operating system's character set.  I was able to solve it by 
>passing a -Dfile.encoding=ISO8859_1 to the java command that starts 
>Tomcat.  I don't know if it is the same problem you are having or not. 
> The problem I had was trying to handle Korean characters with the 
>default CP1252 Windows character set.  There are "holes" in CP1252 that 
>Java converted to the '?' character because it didnt' know what to do 
>with them.  ISO8859-1 had a valid translation for all characters.
>
>Again, I'm not sure if this is the problem you're having.  Good luck, 
>and if you get a chance I'd be curious if this worked.
>
>
>Andreas Anderson wrote:
>
>>HttpServletRequest getPathInfo() decodes incorrectly?
>>
>>I'm trying out Tomcat 4.1.18. HttpServletRequest doesn't decode path
>>info like it does with Tomcat 4.0.6. I'm running Tomcat on JDk 1.4.1
>>and Win2K.
>>
>>When I invoke the follwing servlet with 
>>http://localhost:8080/test/TestServlet/a/%E4/b
>>req.getPathInfo() returns /a/?/b instead of /a/ä/b (the second element
>>in the path should be a funny scandinavian a with two dots above it).
>>
>>
>>public class TestServlet extends HttpServlet {
>>
>>  public void doGet(HttpServletRequest req, HttpServletResponse res) 
>>  throws ServletException, IOException {
>>
>>res.getOutputStream().print(req.getPathInfo());
>>res.getOutputStream().close();
>>  }
>>}
>>
>>
>>Thanks,
>>Andreas
>
>-- 
>scott dunbarxigole systems, inc.
>[EMAIL PROTECTED]superior, co

_
Surf before you surf - http://www.surf.co.nz

_
Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, 
POP & more! http://www.everyone.net/selectmail?campaign=tag

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




Configuring Directory Index Display

2003-01-20 Thread Carson, Chuck
 
Is it possible to tweak the display of directory indexes. Under Apache
you could normally create HEADER and FOOTER files to control output. You
could also configure other aspects of the display in the server config
file. Is this possible under tomcat 4.x? The default directory listing
is quite crude. We have a multitude of directories that contain only
data files, no html files (and we don't want any) and it is rather
cludgy under the default config.
 
Thx,
CC
 
Chuck Carson
Sr. Systems Engineer
Syrrx, Inc.
10410 Science Center Drive
San Diego, CA 92121
Work: 858.731.3540
Cell: 858.442.1791
 
 
 

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



reg Langauge Translation

2003-01-20 Thread Ganesh
hi 
 
 I have a application using JSP and SQL server 2000 as tthe database.
 This is a web based application and in by default in english version.
 
 Now i need to translate the same to Chinese Language.
 Since the Web based application is already there, so is there 
 any way to translate the same without changing much of the coding.
 
 Ur help,sugesstions , comments, critics...  will be deeply 
 apprciated..
 
 Waiting for a reply..
 
 Best Regards
ganesh
Systems Analyst




Re: URL Mappings on Tomcat 3.3 must go between servlet and security sections.

2003-01-20 Thread Bill Barker
Like Tomcat 4.x, Tomcat 3.3 validates web.xml by default.  To disable,
simply set the validate="false" attribute on the WebXmlReader element in
server.xml.

"Christopher Mark Balz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Apparently, this is the case.  Yet another awful fact for those stuck
> with Tomcat 3.3.
>
>  
>
>
>  
>DynaFastSurv3
>  
>  
>/s3
>  
>
>
> --
> ". . . / This Cabinet is formd of Gold / And Pearl & Crystal shining
bright
> And within it opens into a World / . . .
> Another England there I saw / Another London with its Tower
> Another Thames & other Hills / And another pleasant Surrey Bower
> . . ."
> - from "The Crystal Cabinet", a poem by William Blake.




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




RE: Tomcat Connectors on AIX 4.3.3

2003-01-20 Thread Turner, John
 
I still have some binaries laying around from last year.  For a short time I
was sort of collecting them because people were having so many problems
getting them to build.

http://www.johnturner.com/howto/modjk/

I don't remember which version of Apache was used to compile that one, but
there are JK and JK2 binaries there for AIX 4.3 if you want to take a shot
with one or the other.  Might save you some grief.

DISCLAIMER: Other people built them, I didn't.  I don't know how they were
built any more, and I can't guarantee that they will be available in that
location for any length of time, so get them while they're hot.

John


-Original Message-
From: HAMILTON, DALE K (SBCSI)
To: '[EMAIL PROTECTED]'
Sent: 1/20/03 5:35 PM
Subject: Tomcat Connectors on AIX 4.3.3

I have not been able to get the C code for the mod_jk to compile on AIX
4.3.3 using IBM's C compiler.  I'm looking for someone who has been here
and
can offer some clues.  We considered using GCC but neither 2.95.03 or
3.2
will compile.  We have installed the GNU tools:
ant
autoconf-2.55
automake-1.7.2
libtool-1.4.3
m4-1.4
tar-1.13
make-3.80

In particular the compiler does not like the -W option and I have no
idea
how to override it.

Do we need any other tools? Am I fighting a windmill?

> Dale K. Hamilton
> Sr. Technical Architect
> Phone 314.331.9383
*[EMAIL PROTECTED]
> This e-mail and any files transmitted with it are property of SBC, are
> confidential, and are intended solely for the use of the individual(s)
or
> entity to which this e-mail is addressed.  If you are not one of the
named
> recipient(s) or otherwise have reason to believe that you have
received
> this message in error, please notify the sender at 314.331.9383 and
delete
> this message immediately from your computer.  Any other use,
retention,
> dissemination, forwarding, printing or copying of this e-mail is
strictly
> prohibited.
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: commons-pool (ot)

2003-01-20 Thread Craig R. McClanahan


On 20 Jan 2003, Felipe Schnack wrote:

> Date: 20 Jan 2003 15:55:01 -0200
> From: Felipe Schnack <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: commons-pool (ot)
>
>   Anyone have a quick-and-dirty how-to create a keyed object pool using
> commons-pool JAR?

The commons-pool javadocs have some good examples:

http://nagoya.apache.org/gump/javadoc/jakarta-commons/pool/dist/docs/api/index.html


> Felipe Schnack

Craig


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




Re: setuid from Tomcat

2003-01-20 Thread Pascal Forget
I was able to build a native C library called libsetuid.so under Linux.

The library is loaded in the "login.jsp" page, which then sets the process'
uid to nobody's uid and then writes a small file in /tmp.  I checked and
the file is owned by the unix user nobody so this is a success.

However, if I do this repeatedly, there seem to be problems because
sometimes calling login.jsp just hangs.

Are there any known problems between Tomcat and JNI on
Linux and using Java 1.4?

Thanks,

Pascal



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




Re: JSP fine but no Java.

2003-01-20 Thread Nick Sophinos
Chances are that you have the the mapping for the invoker servlet
commented out in your $TOMCAT_HOME/conf/web.xml file.

- Nick


On 20 Jan 2003, David M. Karr wrote:

> > "andoni" == andoni  <[EMAIL PROTECTED]> writes:
> 
> andoni> Hello,
> andoni> I am having a really annoying problem that I hope somebody can help me 
>with.
> 
> andoni> My tomcat will run .jsp files fine and process them perfectly but will 
>not
> andoni> even consider using a .class file.
> 
> andoni> My app has jsps with javabeans linked in through tags in the .jsp files. 
> In
> andoni> fact any java code in the .jsp files seems to work fine until a java 
>class
> andoni> needs to be called.
> 
> It would be helpful if you indicated exactly what error messages you're
> getting, and showing the actual jsp page, along with your web.xml file.
> 
> 


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




Re: Using a Webapp on a network share

2003-01-20 Thread Salvio Claudio
I had the same problem.
The cause is the lack of permissions of the local system account.
This account is the default account for running services.
In Win2k the solution is to change the user that the service use to run.
Take a look at the service´s properties. There you can change the user.
Greetings,
Claudio



Re: JSP fine but no Java.

2003-01-20 Thread David M. Karr
> "andoni" == andoni  <[EMAIL PROTECTED]> writes:

andoni> Hello,
andoni> I am having a really annoying problem that I hope somebody can help me 
with.

andoni> My tomcat will run .jsp files fine and process them perfectly but will not
andoni> even consider using a .class file.

andoni> My app has jsps with javabeans linked in through tags in the .jsp files.  
In
andoni> fact any java code in the .jsp files seems to work fine until a java class
andoni> needs to be called.

It would be helpful if you indicated exactly what error messages you're
getting, and showing the actual jsp page, along with your web.xml file.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP; SCWCD




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




Tomcat Connectors on AIX 4.3.3

2003-01-20 Thread HAMILTON, DALE K (SBCSI)
I have not been able to get the C code for the mod_jk to compile on AIX
4.3.3 using IBM's C compiler.  I'm looking for someone who has been here and
can offer some clues.  We considered using GCC but neither 2.95.03 or 3.2
will compile.  We have installed the GNU tools:
ant
autoconf-2.55
automake-1.7.2
libtool-1.4.3
m4-1.4
tar-1.13
make-3.80

In particular the compiler does not like the -W option and I have no idea
how to override it.

Do we need any other tools? Am I fighting a windmill?

> Dale K. Hamilton
> Sr. Technical Architect
> Phone 314.331.9383
*[EMAIL PROTECTED]
> This e-mail and any files transmitted with it are property of SBC, are
> confidential, and are intended solely for the use of the individual(s) or
> entity to which this e-mail is addressed.  If you are not one of the named
> recipient(s) or otherwise have reason to believe that you have received
> this message in error, please notify the sender at 314.331.9383 and delete
> this message immediately from your computer.  Any other use, retention,
> dissemination, forwarding, printing or copying of this e-mail is strictly
> prohibited.
> 

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




new version: managing Tomcat as a Windows service

2003-01-20 Thread David Boyer
I've uploaded a new version of the application I wrote to manage and
configure multiple instances of Tomcat as a Windows service. Sorry my
web site is so slow; fortunately the utility is only a 74KB download.
 
http://www.iowatelecom.net/~dkboyer/index.html



cookie creation behavior different TC 4.1.12 to 4.1.18

2003-01-20 Thread Dan Payne
Cookie cookie = new Cookie("MyCookieNumbers", "1,2,3,4");

Under TC 4.1.12 this works fine.

Under TC 4.1.18 I get this error:
java.lang.IllegalArgumentException: 1,2,3,4
at
org.apache.tomcat.util.http.ServerCookie.maybeQuote(ServerCookie.java:315)
at
org.apache.tomcat.util.http.ServerCookie.appendCookieValue(ServerCookie.java
:248)


According to the javadoc, an IllegalArgumentException is thrown if the
cookie NAME contains a comma. Nothing is said about the cookie value.

According to RFC 2109, the cookie NAME cannot contain any commas, however it
appears the cookie value is free to do so.

It seems that somewhere between 4.1.12 and 4.1.18 the validation on the
cookie value was changed to be the same as the cookie name but that isn't,
correct me if I'm wrong, the correct behavior accoding to the RFC. I also
checked the release notes and didn't see any entry related to this (as far
as modifications/bug fixes) which actually leads me to believe nothing
changed with the code. I've been trying to track down the source but i'm
having trouble locating it.

Can anyone confirm that this is indeed what's throwing the exception and if
it is/isn't the correct behavior?

Thanks.

-Dan


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




JK2 workers2.properties (was Re: Apache Tomcat Virtual Host)

2003-01-20 Thread Rasputin
Are there docs anywhere explaining how to setup jk2 vhosts in
workers2.proeprties?

I'd like to avoid using httpd.conf edits, due to file permission issues.

Google isn't helping as much as it should, and the jakarta docs will no
doubt make sense once they're explained to me :)

Basically, I'm using named-based hosts with apache2.

The virtual host is pussy.tenten - it's defined in server.conf
and httpd.conf.

httpd.conf has a vhost like this:

-


ServerAdmin [EMAIL PROTECTED]
#   DocumentRoot /opt/www/pussy/docs
ServerName pussy.tenten
ServerAlias www.pussy.tenten
ErrorLog /opt/www/logs/pussy.error.log
CustomLog /opt/www/logs/pussy.access.log combined
#


-

workers2.properties has this:

-
[uri:pussy.tenten]
group=lb

[uri:/examples/*.jsp]
info=Extension mapping
-

Oddly enough, pussy.tenten/examples/foo.jsp gives an apache 404 error,
but docs.tenten/examples/foo.jsp gives a tomcat error - docs.tenten is
another vhost (I disabled the examples webapp).

Basically, my meddling has meant that not even global URI mapings work
for this vhost :)

How do I map all traffic to pussy.tenten over to tomcat?

-- 
Rasputin :: Jack of All Trades - Master of Nuns

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




RE: mod_jk performance

2003-01-20 Thread Turner, John

I describe the process in my HOWTO:

http://www.johnturner.com/howto

I had a lot of problems getting it to compile on Solaris, and had to
download and install all sorts of patches and Sun packages, and GNU
packages, before it would work.  Once I got the dev environment setup
correctly, the compilation step was the same as Linux.  I didn't need to
install libtool, but I installed just about every other GNU dev tool.

John

> -Original Message-
> From: Pimentel, William (Col) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 4:14 PM
> To: [EMAIL PROTECTED]
> Subject: mod_jk performance
> 
> 
> Hello
> 
> I've been unsuccesfully trying to compile mod_jk.so for 
> Solaris 8, i get 
> all kind of weird erros such as:
> 
> sh: ./libtool: not found
> *** Error code 1
> 
> when there's a ./libtool in the current directory  (native)
> 
> The reason i'm trying to compile a new module is because the 
> one i got 
> some time ago doesn't work well, it's so slow when i try 
> to display 
> a jsp or servlet page over port 80 (apache), whereas it runs smoothly 
> over port 8080 (tomcat).
> 
> Can anybody tell me how to get this module to compile on 
> Solaris 8?? i 
> have tomcat 4.1.18 and Apache 2.0.x
> 
> Thanks
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




mod_jk performance

2003-01-20 Thread Pimentel, William (Col)
Hello

I've been unsuccesfully trying to compile mod_jk.so for Solaris 8, i get 
all kind of weird erros such as:

sh: ./libtool: not found
*** Error code 1

when there's a ./libtool in the current directory  (native)

The reason i'm trying to compile a new module is because the one i got 
some time ago doesn't work well, it's so slow when i try to display 
a jsp or servlet page over port 80 (apache), whereas it runs smoothly 
over port 8080 (tomcat).

Can anybody tell me how to get this module to compile on Solaris 8?? i 
have tomcat 4.1.18 and Apache 2.0.x

Thanks




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



RE: Apache Tomcat Virtual Host

2003-01-20 Thread Turner, John

Sorry, in my HOWTOs I use the ApacheConfig auto generation method, which
means that Tomcat generates httpd.conf-compatible directives that are
included into httpd.conf.  The HOWTOs don't describe entering JkMount
manually, as they show automatically in a file called mod_jk.conf when using
ApacheConfig.

John


> -Original Message-
> From: Chris Schild [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 3:57 PM
> To: Tomcat Users List
> Subject: Re: Apache Tomcat Virtual Host
> 
> 
> Thanks guys!  That was it.  The mounts were not defined.
> 
> John, I don't remember seeing JkMounts mentioned in your 
> HOWTO for win2k.
> Everything else worked smoothly.  Thanks for the advice!!!
> 
> - Original Message -
> From: "Turner, John" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Monday, January 20, 2003 1:57 PM
> Subject: RE: Apache Tomcat Virtual Host
> 
> 
> 
> Right on.
> 
> John
> 
> 
> > -Original Message-
> > From: Ed Robbins [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 20, 2003 2:52 PM
> > To: Tomcat Users List
> > Subject: Re: Apache Tomcat Virtual Host
> >
> >
> > I'm running the same setup and in the httpd.conf file, I have the
> > JkMounts in the following manner:
> >
> > JkMount /*.jsp ajp13
> > JkMount /robbinsapps/* ajp13
> > JkMount /RobbinsApps/* ajp13
> > JkMount /*.do ajp13
> >
> > This will map anything ending in .jsp, anything ending in
> > /robbinsapps/*, anything ending in /RobbinsApps/* and
> > finally, anything
> > ending in *.do.  This is under the virtual host, so it 
> applies to the
> > virtual host.
> >
> > In the server.xml, I have a host entry that matches this 
> virtual host
> > and under the host entry contexts that match robbinsapps and
> > RobbinsApps
> >
> >
> > Ed
> >
> >
> >
> > On Mon, 2003-01-20 at 14:51, Chris Schild wrote:
> > > The version of Tomcat that I am is using is 4.1.18,  The
> > version of Apache
> > > is 2.0.43 running on Windows 2000
> > >
> > > The connector that I am using is mod_jk.
> > > The virtual host are defined in httpd & server.xml.
> > > The JkMounts?  That could be a problem... any advice there???
> > >
> > > What about workers.properties?
> > >
> > > In the configuration documentation that I used, there
> > wasn't a mentioning of
> > > JkMounts???
> > >
> > > Also, mime type is an issue, how do I confirm that it is 
> configured
> > > correctly in Apache?  Wouldn't it be setup correctly out 
> of the box?
> > >
> > > Thanks for the help!  I am right on the edge of having
> > everything work as I
> > > need it (for now)!
> > >
> > >
> > > - Original Message -
> > > From: "adrian" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Monday, January 20, 2003 4:01 AM
> > > Subject: Re: Apache Tomcat Virtual Host
> > >
> > >
> > > > Chris Schild wrote:
> > > >
> > > > >Hi all,
> > > > >I am a newbie to Tomcat.  I'm having a problem with
> > configuring the
> > > virtual host with Tomcat.
> > > > >
> > > > >The problem is that I cannot get the examples/jsp to
> > work with the
> > > virtual host?!?
> > > > >
> > > > >A window pops up asking to open or save the source when
> > I try to execute
> > > an example.
> > > > >
> > > > >I'm sure I need to be more specific, I'm not quite sure
> > what to ask at
> > > this point.  Do I not Þ~óJ the correct paths configured 
> with Tomcat?
> > > > >
> > > > >http://localhost/examples/jsp/index.html is functioning
> > correctly.
> > > > >
> > > > >I have gone thru the archives but nothing seems to be
> > pointing me in the
> > > right direction.
> > > > >
> > > > >Any advice would be much appreciated!
> > > > >
> > > > >
> > > > What connector are you using ? Where do you define the
> > virtual host ? If
> > > > you`re using mod_jk what are you JkMounts ?
> > > >
> > > >
> > > > --
> > > > 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: Apache Tomcat Virtual Host

2003-01-20 Thread Chris Schild
Thanks guys!  That was it.  The mounts were not defined.

John, I don't remember seeing JkMounts mentioned in your HOWTO for win2k.
Everything else worked smoothly.  Thanks for the advice!!!

- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, January 20, 2003 1:57 PM
Subject: RE: Apache Tomcat Virtual Host



Right on.

John


> -Original Message-
> From: Ed Robbins [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 2:52 PM
> To: Tomcat Users List
> Subject: Re: Apache Tomcat Virtual Host
>
>
> I'm running the same setup and in the httpd.conf file, I have the
> JkMounts in the following manner:
>
> JkMount /*.jsp ajp13
> JkMount /robbinsapps/* ajp13
> JkMount /RobbinsApps/* ajp13
> JkMount /*.do ajp13
>
> This will map anything ending in .jsp, anything ending in
> /robbinsapps/*, anything ending in /RobbinsApps/* and
> finally, anything
> ending in *.do.  This is under the virtual host, so it applies to the
> virtual host.
>
> In the server.xml, I have a host entry that matches this virtual host
> and under the host entry contexts that match robbinsapps and
> RobbinsApps
>
>
> Ed
>
>
>
> On Mon, 2003-01-20 at 14:51, Chris Schild wrote:
> > The version of Tomcat that I am is using is 4.1.18,  The
> version of Apache
> > is 2.0.43 running on Windows 2000
> >
> > The connector that I am using is mod_jk.
> > The virtual host are defined in httpd & server.xml.
> > The JkMounts?  That could be a problem... any advice there???
> >
> > What about workers.properties?
> >
> > In the configuration documentation that I used, there
> wasn't a mentioning of
> > JkMounts???
> >
> > Also, mime type is an issue, how do I confirm that it is configured
> > correctly in Apache?  Wouldn't it be setup correctly out of the box?
> >
> > Thanks for the help!  I am right on the edge of having
> everything work as I
> > need it (for now)!
> >
> >
> > - Original Message -
> > From: "adrian" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Monday, January 20, 2003 4:01 AM
> > Subject: Re: Apache Tomcat Virtual Host
> >
> >
> > > Chris Schild wrote:
> > >
> > > >Hi all,
> > > >I am a newbie to Tomcat.  I'm having a problem with
> configuring the
> > virtual host with Tomcat.
> > > >
> > > >The problem is that I cannot get the examples/jsp to
> work with the
> > virtual host?!?
> > > >
> > > >A window pops up asking to open or save the source when
> I try to execute
> > an example.
> > > >
> > > >I'm sure I need to be more specific, I'm not quite sure
> what to ask at
> > this point.  Do I not Þ~óJ the correct paths configured with Tomcat?
> > > >
> > > >http://localhost/examples/jsp/index.html is functioning
> correctly.
> > > >
> > > >I have gone thru the archives but nothing seems to be
> pointing me in the
> > right direction.
> > > >
> > > >Any advice would be much appreciated!
> > > >
> > > >
> > > What connector are you using ? Where do you define the
> virtual host ? If
> > > you`re using mod_jk what are you JkMounts ?
> > >
> > >
> > > --
> > > 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: JSP won't compile Source Code Showing

2003-01-20 Thread Tom Holmes Jr.
ok,  hopefully these properties will have someone provide me an answer to
this problem.

- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, January 20, 2003 3:02 PM
Subject: RE: JSP won't compile Source Code Showing


>
> I don't use JK2, so I can't help much, but my guess is the first thing
> someone who *can* help you is going to say is:  "post your properties file
> and the Context entry from server.xml".  So, you might want to do that
now,
> save some time.
>
> John
>
>
> > -Original Message-
> > From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 20, 2003 3:12 PM
> > To: Tomcat Users List
> > Subject: Re: JSP won't compile Source Code Showing
> >
> >
> > Here is some more information on this problem ...
> >
> > My JSP pages work in the root directory of my webapps, but in any
> > sub-directory, they do not work.
> >
> > How messed up is that?   It used to be that the JSP
> > pages would work
> > in ANY directory.
> >
> > If you need any more information on this issue, please let me
> > know.  Thanks.
> >
> >   Tom
> >
> > - Original Message -
> > From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, January 20, 2003 12:33 PM
> > Subject: JSP won't compile Source Code Showing
> >
> >
> > > I realize that this is a tough question, but I am sure
> > someone has come
> > > acrosss this error before.
> > >
> > > I have comnfigured Apache 2.0.43 with Tomcat 4.1.18 with
> > Jk2 on Win2K.
> > The
> > > http://localhost/examples works fine.
> > >
> > > I have even created virtual hosts and set up those web-apps
> > and they all
> > > work.
> > >
> > > Now some of my JSP pages work and some won't.  The ones
> > that do NOT work,
> > > seems like they do not get sent to Tomcat, it seems that
> > the JSP source
> > just
> > > loads and that is a big problem.  This problem just started after
> > everything
> > > was working for a few days.
> > >
> > > So, why is it that this is happening, and how can I fix
> > itTIA!
> > >
> > > Tom
> > >
> > >
> > > --
> > > 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:

>
>



workers2.properties
Description: Binary data


httpd.conf
Description: Binary data


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


	

			
			
			


	

			

			


	

			
			
			


	

		
			
		
	



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


RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread neal
See, I knew there was something I didn't understand.  Thanks.  I'll take a
look.  :)

Neal

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 12:42 PM
To: 'Tomcat Users List'
Subject: RE: Mod_JK.c not compatiable with version of Apache



I gave you this link:

ftp://ftp.cise.ufl.edu/pub/mirrors/redhat-contrib/libc6/i386/httpd-2.0.43-1.
i386.rpm

Which is the link to a Red Hat mirror that has the Apache 2.0.43 binary RPM.
Any other contrib mirror will have it as well, if there is one closer to
you.  Installing that would upgrade your Apache to 2.0.43.

There are indeed binaries (not in RPM format) for Linux on the Apache site:

1) go here: http://www.apache.org/dyn/closer.cgi

2) choose a mirror site

3) on that mirror site, go to http://some.mirror.site/httpd/binaries/linux/

This is all sys-admin stuff, not really related to Tomcat at all.  If you
need help with RPM, I would ask on a Red Hat list or check the man pages
(man rpm)...I don't use them so I can't tell you the exact command that will
install it and upgrade the existing 2.0.40 at the same time.

John

> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 3:32 PM
> To: Tomcat Users List
> Subject: RE: Mod_JK.c not compatiable with version of Apache
>
>
> Yeah ... I saw that you sent me the link for mod_jk
> compatible with Apache
> 2.0.43.  But, I already have that.  I need binaries for
> either (a) Apache
> 2.0.43 or (b) Mod_jk 2.0.40.  In this link that you provided
> there is only a
> binary for Mod_jk-2.0.43.  If I go to the Apache site to download
> Apache-2.0.43 there are only links to (a) the source or (b)
> binaries for
> *Windows*!.
>
> I am sure I am probably missing somethinng ... please tell me
> what it is?!?!
>
> Thanks.
> Neal
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 11:57 AM
> To: 'Tomcat Users List'
> Subject: RE: Mod_JK.c not compatiable with version of Apache
>
>
>
> There are binaries for Apache 2.0.43, all over the place.
>
> http://httpd.apache.org
>
> I gave you a link to the binary Red Hat-compatible RPM for
> 2.0.43 so that
> you could upgrade your RH 2.0.40 installation.
>
> I gave you a link to the binary for mod_jk that is compatible
> with 2.0.43.
>
> Sorry, but I just don't see what else you need.
>
> John
>
>
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 20, 2003 2:54 PM
> > To: Tomcat Users List
> > Subject: RE: Mod_JK.c not compatiable with version of Apache
> >
> >
> > Actually, I was just trying to find binaries for compatible
> > versions of
> > either Apache or mod_jk.  So, I wanted to find either (a)
> > Apache 2.0.43 or
> > (b) Mod_jk 2.0.40.
> >
> > Perhaps its me and my phobias of doing a src build on Linux
> > (which I barely
> > know) but I am just not comfortable doing a src build. I
> > presume I'd need to
> > download and learn some C compiler to do the task ... and
> > that's on top of
> > barely knowing the OS!
> >
> > Regarding the pedantics, *IF* the current supported version
> > of Apache is
> > 2.0.43 ... shouldn't there be binaries for it?  And even if
> > not, should
> > there be binaries of mod_jk for 2.0.40?   It seems like an
> out-of-sync
> > doulbe whammy!
> >
> > :(
> >
> > Neal
> >
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 20, 2003 11:40 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Mod_JK.c not compatiable with version of Apache
> >
> >
> >
> > Sorry, you lost me.  You asked for a link to mod_jk for
> Apache 2.0.43,
> > that's what I gave you.
> >
> > .43 is the supported Apache version.  I don't use RPMs, but
> > it should be
> > fairly trivial to upgrade a RH installation with Apache
> 2.0.40 to .43.
> >
> > Not to be pedantic, but the current "official" Apache HTTP
> > release is .43,
> > regardless of whether Red Hat is current or not...it seems
> > reasonable to me
> > that another Jakarta project would support that version and
> > not earlier
> > versions.
> >
> > For example:
> > ftp://ftp.cise.ufl.edu/pub/mirrors/redhat-contrib/libc6/i386/h
> > ttpd-2.0.43-1.
> > i386.rpm
> >
> > Most RH mirrors will have it.
> >
> > John
> >
> > > -Original Message-
> > > From: neal [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, January 20, 2003 2:20 PM
> > > To: Tomcat Users List
> > > Subject: RE: Mod_JK.c not compatiable with version of Apache
> > >
> > >
> > > Yes, but when I go to the Linux dir it says
> > >
> > > "mod_jk-2.0.43.so is for Apache 2.0.42 (and 2.0.43) "
> > >
> > > It does not appear that a binary version is available that is
> > > compatible
> > > with Apache 2.0.40 (the version shipping with RedHat Linux 8
> > > by the way).
> > >
> > > I am suprised this particular build is not available.  Is
> > > there something I
> > > am missing?  :(
> > >
> > > Thanks.
> > > Neal
> > >
>

RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread Turner, John

I gave you this link:

ftp://ftp.cise.ufl.edu/pub/mirrors/redhat-contrib/libc6/i386/httpd-2.0.43-1.
i386.rpm

Which is the link to a Red Hat mirror that has the Apache 2.0.43 binary RPM.
Any other contrib mirror will have it as well, if there is one closer to
you.  Installing that would upgrade your Apache to 2.0.43.

There are indeed binaries (not in RPM format) for Linux on the Apache site:

1) go here: http://www.apache.org/dyn/closer.cgi

2) choose a mirror site

3) on that mirror site, go to http://some.mirror.site/httpd/binaries/linux/

This is all sys-admin stuff, not really related to Tomcat at all.  If you
need help with RPM, I would ask on a Red Hat list or check the man pages
(man rpm)...I don't use them so I can't tell you the exact command that will
install it and upgrade the existing 2.0.40 at the same time.

John

> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 3:32 PM
> To: Tomcat Users List
> Subject: RE: Mod_JK.c not compatiable with version of Apache
> 
> 
> Yeah ... I saw that you sent me the link for mod_jk 
> compatible with Apache
> 2.0.43.  But, I already have that.  I need binaries for 
> either (a) Apache
> 2.0.43 or (b) Mod_jk 2.0.40.  In this link that you provided 
> there is only a
> binary for Mod_jk-2.0.43.  If I go to the Apache site to download
> Apache-2.0.43 there are only links to (a) the source or (b) 
> binaries for
> *Windows*!.
> 
> I am sure I am probably missing somethinng ... please tell me 
> what it is?!?!
> 
> Thanks.
> Neal
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 11:57 AM
> To: 'Tomcat Users List'
> Subject: RE: Mod_JK.c not compatiable with version of Apache
> 
> 
> 
> There are binaries for Apache 2.0.43, all over the place.
> 
> http://httpd.apache.org
> 
> I gave you a link to the binary Red Hat-compatible RPM for 
> 2.0.43 so that
> you could upgrade your RH 2.0.40 installation.
> 
> I gave you a link to the binary for mod_jk that is compatible 
> with 2.0.43.
> 
> Sorry, but I just don't see what else you need.
> 
> John
> 
> 
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 20, 2003 2:54 PM
> > To: Tomcat Users List
> > Subject: RE: Mod_JK.c not compatiable with version of Apache
> >
> >
> > Actually, I was just trying to find binaries for compatible
> > versions of
> > either Apache or mod_jk.  So, I wanted to find either (a)
> > Apache 2.0.43 or
> > (b) Mod_jk 2.0.40.
> >
> > Perhaps its me and my phobias of doing a src build on Linux
> > (which I barely
> > know) but I am just not comfortable doing a src build. I
> > presume I'd need to
> > download and learn some C compiler to do the task ... and
> > that's on top of
> > barely knowing the OS!
> >
> > Regarding the pedantics, *IF* the current supported version
> > of Apache is
> > 2.0.43 ... shouldn't there be binaries for it?  And even if
> > not, should
> > there be binaries of mod_jk for 2.0.40?   It seems like an 
> out-of-sync
> > doulbe whammy!
> >
> > :(
> >
> > Neal
> >
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 20, 2003 11:40 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Mod_JK.c not compatiable with version of Apache
> >
> >
> >
> > Sorry, you lost me.  You asked for a link to mod_jk for 
> Apache 2.0.43,
> > that's what I gave you.
> >
> > .43 is the supported Apache version.  I don't use RPMs, but
> > it should be
> > fairly trivial to upgrade a RH installation with Apache 
> 2.0.40 to .43.
> >
> > Not to be pedantic, but the current "official" Apache HTTP
> > release is .43,
> > regardless of whether Red Hat is current or not...it seems
> > reasonable to me
> > that another Jakarta project would support that version and
> > not earlier
> > versions.
> >
> > For example:
> > ftp://ftp.cise.ufl.edu/pub/mirrors/redhat-contrib/libc6/i386/h
> > ttpd-2.0.43-1.
> > i386.rpm
> >
> > Most RH mirrors will have it.
> >
> > John
> >
> > > -Original Message-
> > > From: neal [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, January 20, 2003 2:20 PM
> > > To: Tomcat Users List
> > > Subject: RE: Mod_JK.c not compatiable with version of Apache
> > >
> > >
> > > Yes, but when I go to the Linux dir it says
> > >
> > > "mod_jk-2.0.43.so is for Apache 2.0.42 (and 2.0.43) "
> > >
> > > It does not appear that a binary version is available that is
> > > compatible
> > > with Apache 2.0.40 (the version shipping with RedHat Linux 8
> > > by the way).
> > >
> > > I am suprised this particular build is not available.  Is
> > > there something I
> > > am missing?  :(
> > >
> > > Thanks.
> > > Neal
> > >
> > >
> > > -Original Message-
> > > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, January 20, 2003 4:44 AM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Mod_JK.c not compatiable with version of Apache
> > >
> > >
> > >
> > > http://jaka

RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread neal
Yeah ... I saw that you sent me the link for mod_jk compatible with Apache
2.0.43.  But, I already have that.  I need binaries for either (a) Apache
2.0.43 or (b) Mod_jk 2.0.40.  In this link that you provided there is only a
binary for Mod_jk-2.0.43.  If I go to the Apache site to download
Apache-2.0.43 there are only links to (a) the source or (b) binaries for
*Windows*!.

I am sure I am probably missing somethinng ... please tell me what it is?!?!

Thanks.
Neal

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 11:57 AM
To: 'Tomcat Users List'
Subject: RE: Mod_JK.c not compatiable with version of Apache



There are binaries for Apache 2.0.43, all over the place.

http://httpd.apache.org

I gave you a link to the binary Red Hat-compatible RPM for 2.0.43 so that
you could upgrade your RH 2.0.40 installation.

I gave you a link to the binary for mod_jk that is compatible with 2.0.43.

Sorry, but I just don't see what else you need.

John


> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 2:54 PM
> To: Tomcat Users List
> Subject: RE: Mod_JK.c not compatiable with version of Apache
>
>
> Actually, I was just trying to find binaries for compatible
> versions of
> either Apache or mod_jk.  So, I wanted to find either (a)
> Apache 2.0.43 or
> (b) Mod_jk 2.0.40.
>
> Perhaps its me and my phobias of doing a src build on Linux
> (which I barely
> know) but I am just not comfortable doing a src build. I
> presume I'd need to
> download and learn some C compiler to do the task ... and
> that's on top of
> barely knowing the OS!
>
> Regarding the pedantics, *IF* the current supported version
> of Apache is
> 2.0.43 ... shouldn't there be binaries for it?  And even if
> not, should
> there be binaries of mod_jk for 2.0.40?   It seems like an out-of-sync
> doulbe whammy!
>
> :(
>
> Neal
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 11:40 AM
> To: 'Tomcat Users List'
> Subject: RE: Mod_JK.c not compatiable with version of Apache
>
>
>
> Sorry, you lost me.  You asked for a link to mod_jk for Apache 2.0.43,
> that's what I gave you.
>
> .43 is the supported Apache version.  I don't use RPMs, but
> it should be
> fairly trivial to upgrade a RH installation with Apache 2.0.40 to .43.
>
> Not to be pedantic, but the current "official" Apache HTTP
> release is .43,
> regardless of whether Red Hat is current or not...it seems
> reasonable to me
> that another Jakarta project would support that version and
> not earlier
> versions.
>
> For example:
> ftp://ftp.cise.ufl.edu/pub/mirrors/redhat-contrib/libc6/i386/h
> ttpd-2.0.43-1.
> i386.rpm
>
> Most RH mirrors will have it.
>
> John
>
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 20, 2003 2:20 PM
> > To: Tomcat Users List
> > Subject: RE: Mod_JK.c not compatiable with version of Apache
> >
> >
> > Yes, but when I go to the Linux dir it says
> >
> > "mod_jk-2.0.43.so is for Apache 2.0.42 (and 2.0.43) "
> >
> > It does not appear that a binary version is available that is
> > compatible
> > with Apache 2.0.40 (the version shipping with RedHat Linux 8
> > by the way).
> >
> > I am suprised this particular build is not available.  Is
> > there something I
> > am missing?  :(
> >
> > Thanks.
> > Neal
> >
> >
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 20, 2003 4:44 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Mod_JK.c not compatiable with version of Apache
> >
> >
> >
> > http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
> > release/v1.2.2
> > /bin/linux/i386/
> >
> > Browse around in that tree to find others if needed.
> >
> > John
> >
> >
> > > -Original Message-
> > > From: neal [mailto:[EMAIL PROTECTED]]
> > > Sent: Sunday, January 19, 2003 8:57 PM
> > > To: Tomcat Users List
> > > Subject: RE: Mod_JK.c not compatiable with version of Apache
> > >
> > >
> > > Thanks.  I've never had to compile anything like this on
> > > Linux and am a
> > > little hesitant to do so (more of a windows guy to be
> > > honost).  Do you know
> > > of any place that I could locate pre-compiled *compatible*
> > > binaries for
> > > either apache 2.0.43 or mod_jk 2.0.40? Or some other
> compatible set?
> > >
> > > Thanks.
> > > Neal
> > >
> > > -Original Message-
> > > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, January 18, 2003 1:23 PM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Mod_JK.c not compatiable with version of Apache
> > >
> > >
> > >
> > > You need Apache 2.0.43.  .42 might work, but .41 and .40 won't.
> > >
> > > Or, you can build your own.
> > >
> > > John
> > >
> > >
> > > -Original Message-
> > > From: neal [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, January 17, 2003 6:50 PM
> > > To: Tomcat Users List
> > > Subject: RE: Mod_JK.c 

RE: Question: Tomcat4.1.18/SOAP-Session Timeout Not working

2003-01-20 Thread Dandekar, Vivek

I did not hear from anybody last week. We have downgraded tomcat from 4.1.18
to 4.0.6 version.Now we see different behavior.

Now web.xml's session-timeout of 30 mins. is working but SessionListener's
SessionDestroyed method is being called based on last but one transactions's
time stamp. 

For Example:

If we do access our webservice class on 1st Minute, 10th minute and 15th
minute. Then session is timing out on 10 + 30 minutes=40th minute and not at
15 + 30 minutes=45th minute as expected. We are really looking for
session-time out based on true last accessed time. Has anybody encountered
this problem or is there any fix for this? When we display last accessed
time in sessiondestroyed method, it always shows lastaccessed time of last
but one transaction ..hence it is timing out based on that timestamp. Is
there any way to force a lastaccessedtime? Do we have to play with
CheckInterval parameter of StandardSessionManager?

Thanking you in advance,

Vivek.

>  -Original Message-
> From: Dandekar, Vivek  
> Sent: Tuesday, January 14, 2003 9:56 AM
> To:   '[EMAIL PROTECTED]'
> Subject:  Question: Tomcat4.1.18/SOAP-Session Timeout Not working
> 
> Hi Everybody,
> We have set  30  in web.xml of soap
> context under tomcat 4.1.18.  The problem is sessions are timing out
> exactly after 30 minutes even if we send transactions after initial SOAP
> session was established.   Scope of Web service deployed is session.
> Basically lasttimeAccessed is not changing even if we access our
> webservice class using StandardSessionManager...
> 
> Any ideas on how we can call access() method every time a new request is
> received so that SOAP session will not timeout on 30 minutes but it will
> time-out based on last accessed time+30 minutes. We put a 
> in web.xml but it gets notified exactly after 30 minutes since session was
> created...
> 
> Is it necessary to write our own SessionManager that will set
> lastAccessedtime every time we access the webservice class?
> 
> Environment: Linux 7.3/Tomcat 4.1.8/soap.war ...
> 
> Thanking you in advance. Any help would be appreciated..
> 
> 
> 
> 
This e-mail message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information of Transaction Network
Services.  Any unauthorized review, use, disclosure or distribution is
prohibited.  If you are not the intended recipient, please contact the
sender by reply e-mail and destroy all copies of the original message.

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




Tomcat 4.1.18 and HttpsURLConnection

2003-01-20 Thread Ed Robbins
Perhaps someone can shed some light on this for me.  I posted a message
last night stating I was having a problem moving a web application from
4.0.4 to 4.1.18.  In the application, I need to make a Https connection,
so I have a line like the following:

HttpsURLConnection httpsConn;

url = new URL("https://www.someserver.com";);
httpsConn = (HttpsURLConnection)url.openConnection();

Everything works fine under 4.0.4 but when I run it under 4.1.18 I would
get a ClassCastException during the last line of execution.  After
adding some debugging code, it turns out that the version that works
returns a class of:

object: sun.net.www.protocol.https.HttpsURLConnectionImpl

While the one one that doesn't work returns a class of:

object:
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl

I've been able to code around it, but I'd like to get to the bottom of
it.  Any input would be greatly appreciated.

Ed


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




Caucho Resin to Tomcat Conversion

2003-01-20 Thread Edgar Dollin
I recently completed a cutover of moderately sized app from Resin to Tomcat
and just wanted to put my experiences somewhere for posterity.
 
First Resin allows out of order xml documents.  Tomcat goes by the book with
xml.  So web.xml, struts-config.xml and any other xml files you have must
but well structured satisfy the DTD.  With Resin it is very easy to get away
from the DTD requirements.
 
The second issue is that resin is very creative about the tld's.  You can be
sloppy in both the jsp files and the web.inf about where they are and in
most cases resin will find them.  Moving to tomcat you will find any that
are mislocated.  If there are tld's inside of jar files, resin finds them
with basic syntax.  Tomcat needs the full taglib uri in order to find a tld
inside a jar.
 
Resin allows you to mix and match xml formated jsp files with standard
format jsp files.  In tomcat you really should stick to one format or the
other.  When making your choice which format to use, remember in xml format
you cannot use jsp expressions as attribute values.  Also, in tomcat with
the xml format, the assumed page contentType is text/xml, in Resin it is
text/html.  Resin allows attribute specification in xml files without
quotes, tomcat does not.  Resin allows standard jsp scriptlets inside xml
files, tomcat does not.
 
Resin custom tag lifespan is different than Tomcat.  Tomcat keeps them alive
until memory or some other issue forces a release.  Resin dumps the custom
tags when the page has completed processing.  Keep this in mind if you share
information between tags, you keep counters in tags, or you have tags that
are instantiated with various numbers of parameters.
 
In any event, if you are developing under Resin and want to deploy on some
other container, beware that it lets you do lots of non standard stuff.
 
Edgar
 



RE: JSP won't compile Source Code Showing

2003-01-20 Thread Turner, John

I don't use JK2, so I can't help much, but my guess is the first thing
someone who *can* help you is going to say is:  "post your properties file
and the Context entry from server.xml".  So, you might want to do that now,
save some time.

John


> -Original Message-
> From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 3:12 PM
> To: Tomcat Users List
> Subject: Re: JSP won't compile Source Code Showing
> 
> 
> Here is some more information on this problem ...
> 
> My JSP pages work in the root directory of my webapps, but in any
> sub-directory, they do not work.
> 
> How messed up is that?   It used to be that the JSP 
> pages would work
> in ANY directory.
> 
> If you need any more information on this issue, please let me 
> know.  Thanks.
> 
>   Tom
> 
> - Original Message -
> From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 20, 2003 12:33 PM
> Subject: JSP won't compile Source Code Showing
> 
> 
> > I realize that this is a tough question, but I am sure 
> someone has come
> > acrosss this error before.
> >
> > I have comnfigured Apache 2.0.43 with Tomcat 4.1.18 with 
> Jk2 on Win2K.
> The
> > http://localhost/examples works fine.
> >
> > I have even created virtual hosts and set up those web-apps 
> and they all
> > work.
> >
> > Now some of my JSP pages work and some won't.  The ones 
> that do NOT work,
> > seems like they do not get sent to Tomcat, it seems that 
> the JSP source
> just
> > loads and that is a big problem.  This problem just started after
> everything
> > was working for a few days.
> >
> > So, why is it that this is happening, and how can I fix 
> itTIA!
> >
> > Tom
> >
> >
> > --
> > 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: JSP won't compile Source Code Showing

2003-01-20 Thread Tom Holmes Jr.
Here is some more information on this problem ...

My JSP pages work in the root directory of my webapps, but in any
sub-directory, they do not work.

How messed up is that?   It used to be that the JSP pages would work
in ANY directory.

If you need any more information on this issue, please let me know.  Thanks.

  Tom

- Original Message -
From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 20, 2003 12:33 PM
Subject: JSP won't compile Source Code Showing


> I realize that this is a tough question, but I am sure someone has come
> acrosss this error before.
>
> I have comnfigured Apache 2.0.43 with Tomcat 4.1.18 with Jk2 on Win2K.
The
> http://localhost/examples works fine.
>
> I have even created virtual hosts and set up those web-apps and they all
> work.
>
> Now some of my JSP pages work and some won't.  The ones that do NOT work,
> seems like they do not get sent to Tomcat, it seems that the JSP source
just
> loads and that is a big problem.  This problem just started after
everything
> was working for a few days.
>
> So, why is it that this is happening, and how can I fix itTIA!
>
> Tom
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




RE: Apache Tomcat Virtual Host

2003-01-20 Thread Turner, John

Right on.

John


> -Original Message-
> From: Ed Robbins [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 2:52 PM
> To: Tomcat Users List
> Subject: Re: Apache Tomcat Virtual Host
> 
> 
> I'm running the same setup and in the httpd.conf file, I have the
> JkMounts in the following manner:
> 
> JkMount /*.jsp ajp13
> JkMount /robbinsapps/* ajp13
> JkMount /RobbinsApps/* ajp13
> JkMount /*.do ajp13
> 
> This will map anything ending in .jsp, anything ending in
> /robbinsapps/*, anything ending in /RobbinsApps/* and 
> finally, anything
> ending in *.do.  This is under the virtual host, so it applies to the
> virtual host.  
> 
> In the server.xml, I have a host entry that matches this virtual host
> and under the host entry contexts that match robbinsapps and 
> RobbinsApps
> 
> 
> Ed
> 
> 
> 
> On Mon, 2003-01-20 at 14:51, Chris Schild wrote:
> > The version of Tomcat that I am is using is 4.1.18,  The 
> version of Apache
> > is 2.0.43 running on Windows 2000
> > 
> > The connector that I am using is mod_jk.
> > The virtual host are defined in httpd & server.xml.
> > The JkMounts?  That could be a problem... any advice there???
> > 
> > What about workers.properties?
> > 
> > In the configuration documentation that I used, there 
> wasn't a mentioning of
> > JkMounts???
> > 
> > Also, mime type is an issue, how do I confirm that it is configured
> > correctly in Apache?  Wouldn't it be setup correctly out of the box?
> > 
> > Thanks for the help!  I am right on the edge of having 
> everything work as I
> > need it (for now)!
> > 
> > 
> > - Original Message -
> > From: "adrian" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Monday, January 20, 2003 4:01 AM
> > Subject: Re: Apache Tomcat Virtual Host
> > 
> > 
> > > Chris Schild wrote:
> > >
> > > >Hi all,
> > > >I am a newbie to Tomcat.  I'm having a problem with 
> configuring the
> > virtual host with Tomcat.
> > > >
> > > >The problem is that I cannot get the examples/jsp to 
> work with the
> > virtual host?!?
> > > >
> > > >A window pops up asking to open or save the source when 
> I try to execute
> > an example.
> > > >
> > > >I'm sure I need to be more specific, I'm not quite sure 
> what to ask at
> > this point.  Do I not Þ~óJ the correct paths configured with Tomcat?
> > > >
> > > >http://localhost/examples/jsp/index.html is functioning 
> correctly.
> > > >
> > > >I have gone thru the archives but nothing seems to be 
> pointing me in the
> > right direction.
> > > >
> > > >Any advice would be much appreciated!
> > > >
> > > >
> > > What connector are you using ? Where do you define the 
> virtual host ? If
> > > you`re using mod_jk what are you JkMounts ?
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread Turner, John

There are binaries for Apache 2.0.43, all over the place.  

http://httpd.apache.org

I gave you a link to the binary Red Hat-compatible RPM for 2.0.43 so that
you could upgrade your RH 2.0.40 installation.

I gave you a link to the binary for mod_jk that is compatible with 2.0.43.

Sorry, but I just don't see what else you need.

John


> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 2:54 PM
> To: Tomcat Users List
> Subject: RE: Mod_JK.c not compatiable with version of Apache
> 
> 
> Actually, I was just trying to find binaries for compatible 
> versions of
> either Apache or mod_jk.  So, I wanted to find either (a) 
> Apache 2.0.43 or
> (b) Mod_jk 2.0.40.
> 
> Perhaps its me and my phobias of doing a src build on Linux 
> (which I barely
> know) but I am just not comfortable doing a src build. I 
> presume I'd need to
> download and learn some C compiler to do the task ... and 
> that's on top of
> barely knowing the OS!
> 
> Regarding the pedantics, *IF* the current supported version 
> of Apache is
> 2.0.43 ... shouldn't there be binaries for it?  And even if 
> not, should
> there be binaries of mod_jk for 2.0.40?   It seems like an out-of-sync
> doulbe whammy!
> 
> :(
> 
> Neal
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 11:40 AM
> To: 'Tomcat Users List'
> Subject: RE: Mod_JK.c not compatiable with version of Apache
> 
> 
> 
> Sorry, you lost me.  You asked for a link to mod_jk for Apache 2.0.43,
> that's what I gave you.
> 
> .43 is the supported Apache version.  I don't use RPMs, but 
> it should be
> fairly trivial to upgrade a RH installation with Apache 2.0.40 to .43.
> 
> Not to be pedantic, but the current "official" Apache HTTP 
> release is .43,
> regardless of whether Red Hat is current or not...it seems 
> reasonable to me
> that another Jakarta project would support that version and 
> not earlier
> versions.
> 
> For example:
> ftp://ftp.cise.ufl.edu/pub/mirrors/redhat-contrib/libc6/i386/h
> ttpd-2.0.43-1.
> i386.rpm
> 
> Most RH mirrors will have it.
> 
> John
> 
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 20, 2003 2:20 PM
> > To: Tomcat Users List
> > Subject: RE: Mod_JK.c not compatiable with version of Apache
> >
> >
> > Yes, but when I go to the Linux dir it says
> >
> > "mod_jk-2.0.43.so is for Apache 2.0.42 (and 2.0.43) "
> >
> > It does not appear that a binary version is available that is
> > compatible
> > with Apache 2.0.40 (the version shipping with RedHat Linux 8
> > by the way).
> >
> > I am suprised this particular build is not available.  Is
> > there something I
> > am missing?  :(
> >
> > Thanks.
> > Neal
> >
> >
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 20, 2003 4:44 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Mod_JK.c not compatiable with version of Apache
> >
> >
> >
> > http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
> > release/v1.2.2
> > /bin/linux/i386/
> >
> > Browse around in that tree to find others if needed.
> >
> > John
> >
> >
> > > -Original Message-
> > > From: neal [mailto:[EMAIL PROTECTED]]
> > > Sent: Sunday, January 19, 2003 8:57 PM
> > > To: Tomcat Users List
> > > Subject: RE: Mod_JK.c not compatiable with version of Apache
> > >
> > >
> > > Thanks.  I've never had to compile anything like this on
> > > Linux and am a
> > > little hesitant to do so (more of a windows guy to be
> > > honost).  Do you know
> > > of any place that I could locate pre-compiled *compatible*
> > > binaries for
> > > either apache 2.0.43 or mod_jk 2.0.40? Or some other 
> compatible set?
> > >
> > > Thanks.
> > > Neal
> > >
> > > -Original Message-
> > > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, January 18, 2003 1:23 PM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Mod_JK.c not compatiable with version of Apache
> > >
> > >
> > >
> > > You need Apache 2.0.43.  .42 might work, but .41 and .40 won't.
> > >
> > > Or, you can build your own.
> > >
> > > John
> > >
> > >
> > > -Original Message-
> > > From: neal [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, January 17, 2003 6:50 PM
> > > To: Tomcat Users List
> > > Subject: RE: Mod_JK.c not compatiable with version of Apache
> > >
> > >
> > > Does anyone know why I would get this error when installing
> > > mod_JK 2.0.43 on
> > > Linux 8, with Tomcat 4.1 and Apache 2.0:
> > >
> > > "mod_jk.c not compatible with this version of Apache".
> > >
> > > I presume that when it refers to the "mod_jk.c" it is
> > referring to the
> > > cmopuled code it derives from the LoadModule command to load
> > > the so (?).
> > >
> > > I downloaded the mod_jk-2.0.43.so from the Apache connectors
> > > archives.  I
> > > just used the same version (but as a DLL) successfully on 
> my windows
> > > workstation.
> > >
> > > Any thoughts?

Re: Apache Tomcat Virtual Host

2003-01-20 Thread Ed Robbins
I'm running the same setup and in the httpd.conf file, I have the
JkMounts in the following manner:

JkMount /*.jsp ajp13
JkMount /robbinsapps/* ajp13
JkMount /RobbinsApps/* ajp13
JkMount /*.do ajp13

This will map anything ending in .jsp, anything ending in
/robbinsapps/*, anything ending in /RobbinsApps/* and finally, anything
ending in *.do.  This is under the virtual host, so it applies to the
virtual host.  

In the server.xml, I have a host entry that matches this virtual host
and under the host entry contexts that match robbinsapps and RobbinsApps


Ed



On Mon, 2003-01-20 at 14:51, Chris Schild wrote:
> The version of Tomcat that I am is using is 4.1.18,  The version of Apache
> is 2.0.43 running on Windows 2000
> 
> The connector that I am using is mod_jk.
> The virtual host are defined in httpd & server.xml.
> The JkMounts?  That could be a problem... any advice there???
> 
> What about workers.properties?
> 
> In the configuration documentation that I used, there wasn't a mentioning of
> JkMounts???
> 
> Also, mime type is an issue, how do I confirm that it is configured
> correctly in Apache?  Wouldn't it be setup correctly out of the box?
> 
> Thanks for the help!  I am right on the edge of having everything work as I
> need it (for now)!
> 
> 
> - Original Message -
> From: "adrian" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, January 20, 2003 4:01 AM
> Subject: Re: Apache Tomcat Virtual Host
> 
> 
> > Chris Schild wrote:
> >
> > >Hi all,
> > >I am a newbie to Tomcat.  I'm having a problem with configuring the
> virtual host with Tomcat.
> > >
> > >The problem is that I cannot get the examples/jsp to work with the
> virtual host?!?
> > >
> > >A window pops up asking to open or save the source when I try to execute
> an example.
> > >
> > >I'm sure I need to be more specific, I'm not quite sure what to ask at
> this point.  Do I not Þ~óJ the correct paths configured with Tomcat?
> > >
> > >http://localhost/examples/jsp/index.html is functioning correctly.
> > >
> > >I have gone thru the archives but nothing seems to be pointing me in the
> right direction.
> > >
> > >Any advice would be much appreciated!
> > >
> > >
> > What connector are you using ? Where do you define the virtual host ? If
> > you`re using mod_jk what are you JkMounts ?
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >



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




RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread neal
Actually, I was just trying to find binaries for compatible versions of
either Apache or mod_jk.  So, I wanted to find either (a) Apache 2.0.43 or
(b) Mod_jk 2.0.40.

Perhaps its me and my phobias of doing a src build on Linux (which I barely
know) but I am just not comfortable doing a src build. I presume I'd need to
download and learn some C compiler to do the task ... and that's on top of
barely knowing the OS!

Regarding the pedantics, *IF* the current supported version of Apache is
2.0.43 ... shouldn't there be binaries for it?  And even if not, should
there be binaries of mod_jk for 2.0.40?   It seems like an out-of-sync
doulbe whammy!

:(

Neal

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 11:40 AM
To: 'Tomcat Users List'
Subject: RE: Mod_JK.c not compatiable with version of Apache



Sorry, you lost me.  You asked for a link to mod_jk for Apache 2.0.43,
that's what I gave you.

.43 is the supported Apache version.  I don't use RPMs, but it should be
fairly trivial to upgrade a RH installation with Apache 2.0.40 to .43.

Not to be pedantic, but the current "official" Apache HTTP release is .43,
regardless of whether Red Hat is current or not...it seems reasonable to me
that another Jakarta project would support that version and not earlier
versions.

For example:
ftp://ftp.cise.ufl.edu/pub/mirrors/redhat-contrib/libc6/i386/httpd-2.0.43-1.
i386.rpm

Most RH mirrors will have it.

John

> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 2:20 PM
> To: Tomcat Users List
> Subject: RE: Mod_JK.c not compatiable with version of Apache
>
>
> Yes, but when I go to the Linux dir it says
>
> "mod_jk-2.0.43.so is for Apache 2.0.42 (and 2.0.43) "
>
> It does not appear that a binary version is available that is
> compatible
> with Apache 2.0.40 (the version shipping with RedHat Linux 8
> by the way).
>
> I am suprised this particular build is not available.  Is
> there something I
> am missing?  :(
>
> Thanks.
> Neal
>
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 4:44 AM
> To: 'Tomcat Users List'
> Subject: RE: Mod_JK.c not compatiable with version of Apache
>
>
>
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
> release/v1.2.2
> /bin/linux/i386/
>
> Browse around in that tree to find others if needed.
>
> John
>
>
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, January 19, 2003 8:57 PM
> > To: Tomcat Users List
> > Subject: RE: Mod_JK.c not compatiable with version of Apache
> >
> >
> > Thanks.  I've never had to compile anything like this on
> > Linux and am a
> > little hesitant to do so (more of a windows guy to be
> > honost).  Do you know
> > of any place that I could locate pre-compiled *compatible*
> > binaries for
> > either apache 2.0.43 or mod_jk 2.0.40? Or some other compatible set?
> >
> > Thanks.
> > Neal
> >
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, January 18, 2003 1:23 PM
> > To: 'Tomcat Users List'
> > Subject: RE: Mod_JK.c not compatiable with version of Apache
> >
> >
> >
> > You need Apache 2.0.43.  .42 might work, but .41 and .40 won't.
> >
> > Or, you can build your own.
> >
> > John
> >
> >
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, January 17, 2003 6:50 PM
> > To: Tomcat Users List
> > Subject: RE: Mod_JK.c not compatiable with version of Apache
> >
> >
> > Does anyone know why I would get this error when installing
> > mod_JK 2.0.43 on
> > Linux 8, with Tomcat 4.1 and Apache 2.0:
> >
> > "mod_jk.c not compatible with this version of Apache".
> >
> > I presume that when it refers to the "mod_jk.c" it is
> referring to the
> > cmopuled code it derives from the LoadModule command to load
> > the so (?).
> >
> > I downloaded the mod_jk-2.0.43.so from the Apache connectors
> > archives.  I
> > just used the same version (but as a DLL) successfully on my windows
> > workstation.
> >
> > Any thoughts?
> >
> > Thanks.
> > Neal
> >
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, January 17, 2003 1:36 PM
> > To: Tomcat Users List
> > Subject: RE: Mod_JK - JkMount Invalid Command
> >
> >
> > John,
> >
> > Your tutorial ROCKS!
> >
> > It turns out there were 4 distinct problems which I was able
> > to identify in
> > part by using the Apache.exe and in part by comparing your
> > steps to the
> > collage I had compiled from other incomplete sources.
> >
> > My primary problem was that mod_jk.dll was not being recognized so I
> > replaced it with the build you were using
> > (mod_jk-2.0.43.dll) and from there is was pretty much home free!
> >
> > Now on to doing the same on the Linux server (I hope its reasonably
> > similar).  :)
> >
> > Thanks again.
> > Neal
> >
> > -Original Message-
> > From: Turner, John [m

RE: Apache Tomcat Virtual Host

2003-01-20 Thread Turner, John

JkMount is the directive used in Apache's httpd.conf file to tell Apache
when to direct requests to Tomcat and when not to.  In a very simple
configuration, it would look like this, within an Apache VirtualHost
container:

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

Then, in workers.properties (denoted by JkWorkersFile in htppd.conf), you
would have something like:

# BEGIN workers.properties
# Definition for Ajp13 worker
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
# END workers.properties

Then, in server.xml, you would need a Host element with a Name parameter
that equaled your Apache VirtualHost ServerName.  So, if in httpd.conf you
had something like:

JkWorkersFile /some/path/to/workers.properties


   ...
   ServerName my.host.com
   ...
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13


Then, in server.xml, you would have something like:



...



Perhaps my HOWTOs would help:  http://www.johnturner.com/howto.  The
Solaris/Linxu version was done using Tomcat 4.1.12, but the setup is
identical to Tomcat 4.1.18.  There's also one there for Windows 2000 Pro/XP
Pro.

John

> -Original Message-
> From: Chris Schild [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 2:47 PM
> To: Tomcat Users List
> Subject: Apache Tomcat Virtual Host
> 
> 
> The version of Tomcat that I am is using is 4.1.18,  The 
> version of Apache
> is 2.0.43
> 
> The connector that I am using is mod_jk.
> The virtual host are defined in httpd & server.xml.
> The JkMounts?  That could be a problem... any advice there???
> 
> What about workers.properties?
> 
> In the configuration documentation that I used, there wasn't 
> a mentioning of
> JkMounts???
> 
> Also, mime type is an issue, how do I confirm that it is configured
> correctly in Apache?  Wouldn't it be setup correctly out of the box?
> 
> Thanks for the help!  I am right on the edge of having 
> everything work as I
> need it (for now)!
> 
> 
> - Original Message -
> From: "adrian" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, January 20, 2003 4:01 AM
> Subject: Re: Apache Tomcat Virtual Host
> 
> 
> > Chris Schild wrote:
> >
> > >Hi all,
> > >I am a newbie to Tomcat.  I'm having a problem with configuring the
> virtual host with Tomcat.
> > >
> > >The problem is that I cannot get the examples/jsp to work with the
> virtual host?!?
> > >
> > >A window pops up asking to open or save the source when I 
> try to execute
> an example.
> > >
> > >I'm sure I need to be more specific, I'm not quite sure 
> what to ask at
> this point.  Do I not Þ~óJ the correct paths configured with Tomcat?
> > >
> > >http://localhost/examples/jsp/index.html is functioning correctly.
> > >
> > >I have gone thru the archives but nothing seems to be 
> pointing me in the
> right direction.
> > >
> > >Any advice would be much appreciated!
> > >
> > >
> > What connector are you using ? Where do you define the 
> virtual host ? If
> > you`re using mod_jk what are you JkMounts ?
> >
> >
> > --
> > 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: 




Apache Tomcat Virtual Host

2003-01-20 Thread Chris Schild
The version of Tomcat that I am is using is 4.1.18,  The version of Apache
is 2.0.43 running on Windows 2000

The connector that I am using is mod_jk.
The virtual host are defined in httpd & server.xml.
The JkMounts?  That could be a problem... any advice there???

What about workers.properties?

In the configuration documentation that I used, there wasn't a mentioning of
JkMounts???

Also, mime type is an issue, how do I confirm that it is configured
correctly in Apache?  Wouldn't it be setup correctly out of the box?

Thanks for the help!  I am right on the edge of having everything work as I
need it (for now)!


- Original Message -
From: "adrian" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, January 20, 2003 4:01 AM
Subject: Re: Apache Tomcat Virtual Host


> Chris Schild wrote:
>
> >Hi all,
> >I am a newbie to Tomcat.  I'm having a problem with configuring the
virtual host with Tomcat.
> >
> >The problem is that I cannot get the examples/jsp to work with the
virtual host?!?
> >
> >A window pops up asking to open or save the source when I try to execute
an example.
> >
> >I'm sure I need to be more specific, I'm not quite sure what to ask at
this point.  Do I not Þ~óJ the correct paths configured with Tomcat?
> >
> >http://localhost/examples/jsp/index.html is functioning correctly.
> >
> >I have gone thru the archives but nothing seems to be pointing me in the
right direction.
> >
> >Any advice would be much appreciated!
> >
> >
> What connector are you using ? Where do you define the virtual host ? If
> you`re using mod_jk what are you JkMounts ?
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



Apache Tomcat Virtual Host

2003-01-20 Thread Chris Schild
The version of Tomcat that I am is using is 4.1.18,  The version of Apache
is 2.0.43

The connector that I am using is mod_jk.
The virtual host are defined in httpd & server.xml.
The JkMounts?  That could be a problem... any advice there???

What about workers.properties?

In the configuration documentation that I used, there wasn't a mentioning of
JkMounts???

Also, mime type is an issue, how do I confirm that it is configured
correctly in Apache?  Wouldn't it be setup correctly out of the box?

Thanks for the help!  I am right on the edge of having everything work as I
need it (for now)!


- Original Message -
From: "adrian" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, January 20, 2003 4:01 AM
Subject: Re: Apache Tomcat Virtual Host


> Chris Schild wrote:
>
> >Hi all,
> >I am a newbie to Tomcat.  I'm having a problem with configuring the
virtual host with Tomcat.
> >
> >The problem is that I cannot get the examples/jsp to work with the
virtual host?!?
> >
> >A window pops up asking to open or save the source when I try to execute
an example.
> >
> >I'm sure I need to be more specific, I'm not quite sure what to ask at
this point.  Do I not Þ~óJ the correct paths configured with Tomcat?
> >
> >http://localhost/examples/jsp/index.html is functioning correctly.
> >
> >I have gone thru the archives but nothing seems to be pointing me in the
right direction.
> >
> >Any advice would be much appreciated!
> >
> >
> What connector are you using ? Where do you define the virtual host ? If
> you`re using mod_jk what are you JkMounts ?
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread Turner, John

Sorry, you lost me.  You asked for a link to mod_jk for Apache 2.0.43,
that's what I gave you.

.43 is the supported Apache version.  I don't use RPMs, but it should be
fairly trivial to upgrade a RH installation with Apache 2.0.40 to .43.  

Not to be pedantic, but the current "official" Apache HTTP release is .43,
regardless of whether Red Hat is current or not...it seems reasonable to me
that another Jakarta project would support that version and not earlier
versions.

For example:
ftp://ftp.cise.ufl.edu/pub/mirrors/redhat-contrib/libc6/i386/httpd-2.0.43-1.
i386.rpm  

Most RH mirrors will have it.

John

> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 2:20 PM
> To: Tomcat Users List
> Subject: RE: Mod_JK.c not compatiable with version of Apache
> 
> 
> Yes, but when I go to the Linux dir it says
> 
> "mod_jk-2.0.43.so is for Apache 2.0.42 (and 2.0.43) "
> 
> It does not appear that a binary version is available that is 
> compatible
> with Apache 2.0.40 (the version shipping with RedHat Linux 8 
> by the way).
> 
> I am suprised this particular build is not available.  Is 
> there something I
> am missing?  :(
> 
> Thanks.
> Neal
> 
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 4:44 AM
> To: 'Tomcat Users List'
> Subject: RE: Mod_JK.c not compatiable with version of Apache
> 
> 
> 
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
> release/v1.2.2
> /bin/linux/i386/
> 
> Browse around in that tree to find others if needed.
> 
> John
> 
> 
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, January 19, 2003 8:57 PM
> > To: Tomcat Users List
> > Subject: RE: Mod_JK.c not compatiable with version of Apache
> >
> >
> > Thanks.  I've never had to compile anything like this on
> > Linux and am a
> > little hesitant to do so (more of a windows guy to be
> > honost).  Do you know
> > of any place that I could locate pre-compiled *compatible*
> > binaries for
> > either apache 2.0.43 or mod_jk 2.0.40? Or some other compatible set?
> >
> > Thanks.
> > Neal
> >
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, January 18, 2003 1:23 PM
> > To: 'Tomcat Users List'
> > Subject: RE: Mod_JK.c not compatiable with version of Apache
> >
> >
> >
> > You need Apache 2.0.43.  .42 might work, but .41 and .40 won't.
> >
> > Or, you can build your own.
> >
> > John
> >
> >
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, January 17, 2003 6:50 PM
> > To: Tomcat Users List
> > Subject: RE: Mod_JK.c not compatiable with version of Apache
> >
> >
> > Does anyone know why I would get this error when installing
> > mod_JK 2.0.43 on
> > Linux 8, with Tomcat 4.1 and Apache 2.0:
> >
> > "mod_jk.c not compatible with this version of Apache".
> >
> > I presume that when it refers to the "mod_jk.c" it is 
> referring to the
> > cmopuled code it derives from the LoadModule command to load
> > the so (?).
> >
> > I downloaded the mod_jk-2.0.43.so from the Apache connectors
> > archives.  I
> > just used the same version (but as a DLL) successfully on my windows
> > workstation.
> >
> > Any thoughts?
> >
> > Thanks.
> > Neal
> >
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, January 17, 2003 1:36 PM
> > To: Tomcat Users List
> > Subject: RE: Mod_JK - JkMount Invalid Command
> >
> >
> > John,
> >
> > Your tutorial ROCKS!
> >
> > It turns out there were 4 distinct problems which I was able
> > to identify in
> > part by using the Apache.exe and in part by comparing your
> > steps to the
> > collage I had compiled from other incomplete sources.
> >
> > My primary problem was that mod_jk.dll was not being recognized so I
> > replaced it with the build you were using
> > (mod_jk-2.0.43.dll) and from there is was pretty much home free!
> >
> > Now on to doing the same on the Linux server (I hope its reasonably
> > similar).  :)
> >
> > Thanks again.
> > Neal
> >
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, January 17, 2003 11:22 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Mod_JK - JkMount Invalid Command
> >
> >
> >
> > Uncomment those two lines.
> >
> > Then, open up a command window and call Apache like this:
> >
> > SOME_DRIVE:\SOME\PATH\TO\APACHE\BIN\APACHE.EXE -t
> >
> > This will check the syntax of Apache's httpd.conf without
> > starting Apache.
> > Fix the errors, then call it with "-t" again until you see
> > "Syntax OK".
> >
> > The whole process is described in my HOWTO:
> > http://www.johnturner.com/howto/winxp-howto.html
> >
> > While the version I use in my HOWTO is 4.1.18, the
> > configuration steps are
> > identical, just substitute "4.0.4" wherever you see "4.1.18".
> >
> > John
> >
> >
> > > -Original Message-
> > > From: neal [mailto:[EMAIL PROTECTED]]
>

Prob with tomcat 4.1.18 LE

2003-01-20 Thread eric
Hi,

i configure some host on my domain

But the jsp doesn t work under this host , html ok jsp no

Exemple http://127.0.0.1/site1 ok jsp run

http://site1 jsp no, but html yes 


Thank for helping...

Windows XP sp1, tomcat 4.1.18 LE jdk 1.4
JVM jsdk 1.4.1

Same probleme on Windows NT  and jvm 1.3 same tomcat 


---
Ce message est certifié sans virus connu .
Protégé par l'antivirus AVG Deluxe.
Version: 6.0.443 / Base de données virus: 248 - Date: 10/01/2003
 


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




Re: Tomcat 5 feature?

2003-01-20 Thread Erik Price


Erik Price wrote:



enLogica wrote:


Does Tomcat 5 include the feature wherein it doesn't automatically 
redirect
(302) to the welcome page ... rather it *forwards* to the welcome page?


Do you mean (RequestDispatcher)foo.forward()?


No, you don't... I just realized what you mean.  Never mind me.



Erik


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




Re: Tomcat 5 feature?

2003-01-20 Thread Erik Price


enLogica wrote:

Does Tomcat 5 include the feature wherein it doesn't automatically redirect
(302) to the welcome page ... rather it *forwards* to the welcome page?


Do you mean (RequestDispatcher)foo.forward()?


Erik


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




Tomcat 5 feature?

2003-01-20 Thread enLogica
Does Tomcat 5 include the feature wherein it doesn't automatically redirect
(302) to the welcome page ... rather it *forwards* to the welcome page?

Thanks.
Neal


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




RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread neal
Yes, but when I go to the Linux dir it says

"mod_jk-2.0.43.so is for Apache 2.0.42 (and 2.0.43) "

It does not appear that a binary version is available that is compatible
with Apache 2.0.40 (the version shipping with RedHat Linux 8 by the way).

I am suprised this particular build is not available.  Is there something I
am missing?  :(

Thanks.
Neal


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 4:44 AM
To: 'Tomcat Users List'
Subject: RE: Mod_JK.c not compatiable with version of Apache



http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.2
/bin/linux/i386/

Browse around in that tree to find others if needed.

John


> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 19, 2003 8:57 PM
> To: Tomcat Users List
> Subject: RE: Mod_JK.c not compatiable with version of Apache
>
>
> Thanks.  I've never had to compile anything like this on
> Linux and am a
> little hesitant to do so (more of a windows guy to be
> honost).  Do you know
> of any place that I could locate pre-compiled *compatible*
> binaries for
> either apache 2.0.43 or mod_jk 2.0.40? Or some other compatible set?
>
> Thanks.
> Neal
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, January 18, 2003 1:23 PM
> To: 'Tomcat Users List'
> Subject: RE: Mod_JK.c not compatiable with version of Apache
>
>
>
> You need Apache 2.0.43.  .42 might work, but .41 and .40 won't.
>
> Or, you can build your own.
>
> John
>
>
> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 17, 2003 6:50 PM
> To: Tomcat Users List
> Subject: RE: Mod_JK.c not compatiable with version of Apache
>
>
> Does anyone know why I would get this error when installing
> mod_JK 2.0.43 on
> Linux 8, with Tomcat 4.1 and Apache 2.0:
>
> "mod_jk.c not compatible with this version of Apache".
>
> I presume that when it refers to the "mod_jk.c" it is referring to the
> cmopuled code it derives from the LoadModule command to load
> the so (?).
>
> I downloaded the mod_jk-2.0.43.so from the Apache connectors
> archives.  I
> just used the same version (but as a DLL) successfully on my windows
> workstation.
>
> Any thoughts?
>
> Thanks.
> Neal
>
> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 17, 2003 1:36 PM
> To: Tomcat Users List
> Subject: RE: Mod_JK - JkMount Invalid Command
>
>
> John,
>
> Your tutorial ROCKS!
>
> It turns out there were 4 distinct problems which I was able
> to identify in
> part by using the Apache.exe and in part by comparing your
> steps to the
> collage I had compiled from other incomplete sources.
>
> My primary problem was that mod_jk.dll was not being recognized so I
> replaced it with the build you were using
> (mod_jk-2.0.43.dll) and from there is was pretty much home free!
>
> Now on to doing the same on the Linux server (I hope its reasonably
> similar).  :)
>
> Thanks again.
> Neal
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 17, 2003 11:22 AM
> To: 'Tomcat Users List'
> Subject: RE: Mod_JK - JkMount Invalid Command
>
>
>
> Uncomment those two lines.
>
> Then, open up a command window and call Apache like this:
>
> SOME_DRIVE:\SOME\PATH\TO\APACHE\BIN\APACHE.EXE -t
>
> This will check the syntax of Apache's httpd.conf without
> starting Apache.
> Fix the errors, then call it with "-t" again until you see
> "Syntax OK".
>
> The whole process is described in my HOWTO:
> http://www.johnturner.com/howto/winxp-howto.html
>
> While the version I use in my HOWTO is 4.1.18, the
> configuration steps are
> identical, just substitute "4.0.4" wherever you see "4.1.18".
>
> John
>
>
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, January 17, 2003 2:17 PM
> > To: Tomcat Users List
> > Subject: Mod_JK - JkMount Invalid Command
> >
> >
> > I'm trying to setup ModJK for the first time between Apache 2.0 and
> > TOmcat 4.0.4, on Windows 2000.
> >
> > I am stuck with an error I was hoping someone might recognize:
> >
> > It tells me "invliad JKMount command. Perhaps mispelled or
> defined by
> > a module not included in the server configuration".
> >
> > I presume this is because I have commented out these lines:
> >
> > #LoadModule jk_module modules/mod_jk.so
> > #AddModule mod_jk.c
> >
> > But if I *DONT* comment these out, the test configuration window
> > disappears almost as quickly as it appears and I can't see what the
> > problem is.  There
> > is nothing being logged, and if I try to start from the
> Apache Service
> > manager I simply get a message stating "The requested
> > operation failed.".
> >
> >
> > Anyone know what's going on?  :(
> >
> > Thanks.
> > Neal
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
> --
> To 

Re: setuid from Tomcat

2003-01-20 Thread Pascal Forget
Thanks, John.

Pascal


Turner, John wrote:


I would look at something like authbind, which can be found as a Debian
package here:

http://packages.debian.org/unstable/utils/authbind.html

Also on Linux is the daemon() function used in some startup scripts, found
in /etc/init.d/functions, but I don't know how well either of those would
port to HP-UX.

I saw a discussion on tomcat-dev that talked about using Tomcat with chroot,
but it looked pretty involved.

John

 

-Original Message-
From: Pascal Forget [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 2:07 PM
To: Tomcat Users List
Subject: setuid from Tomcat


Hi,

I would like to fire up Tomcat as the root user on port 80 
and then switch
to user nobody, just like Apache does it.

Is there a way to do this with the "stock" Tomcat?

If not, has anyone attempted to use JNI to call the native C function 
setuid()?

I'm trying to do this on HP/UX 11.0

Thanks,

Pascal Forget



--
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: setuid from Tomcat

2003-01-20 Thread Turner, John

I would look at something like authbind, which can be found as a Debian
package here:

http://packages.debian.org/unstable/utils/authbind.html

Also on Linux is the daemon() function used in some startup scripts, found
in /etc/init.d/functions, but I don't know how well either of those would
port to HP-UX.

I saw a discussion on tomcat-dev that talked about using Tomcat with chroot,
but it looked pretty involved.

John

> -Original Message-
> From: Pascal Forget [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 2:07 PM
> To: Tomcat Users List
> Subject: setuid from Tomcat
> 
> 
> Hi,
> 
> I would like to fire up Tomcat as the root user on port 80 
> and then switch
> to user nobody, just like Apache does it.
> 
> Is there a way to do this with the "stock" Tomcat?
> 
> If not, has anyone attempted to use JNI to call the native C function 
> setuid()?
> 
> I'm trying to do this on HP/UX 11.0
> 
> Thanks,
> 
> Pascal Forget
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




setuid from Tomcat

2003-01-20 Thread Pascal Forget
Hi,

I would like to fire up Tomcat as the root user on port 80 and then switch
to user nobody, just like Apache does it.

Is there a way to do this with the "stock" Tomcat?

If not, has anyone attempted to use JNI to call the native C function 
setuid()?

I'm trying to do this on HP/UX 11.0

Thanks,

Pascal Forget



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



Mod JK binaries for HP/UX 11.0

2003-01-20 Thread Pascal Forget
Hi,

Is there anyone on this list who has compiled mod_jk for HP/UX 11.0
and for a recent version of Apache 2.0?

Thanks,

Pascal Forget



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




Pooled tags with optional bodies

2003-01-20 Thread Benjamin Butler-Cole
Hi,

I have recently migrated from Tomcat 4.0 to Tomcat 4.1.12 and have
been fixing problems with my tag library which were exposed by the tag
handler pooling.  There is one problem for which I consider my fix to
be unsatisfactory, and I wondered if anyone could shed some light on
the issue for me.

What I really want to know is:
  - Have I solved the problem in the right way?
  - If not, am I making an error elsewhere?
  - Is there a problem with Tomcat's tag pooling?

I have a tag which manipulates its (optional) body and outputs it to
the page. If a tag with a body is followed in the page by a tag
without a body, the body of the first tag appears as the body of the
second:

  i.e.

some body content


  gives:

some body content
some body content

  The tag handler for the tag is as follows:

public class MyTag extends BodyTagSupport {
  public final int doStartTag() throws JspException  {
//bodyContent = null;
return(EVAL_BODY_BUFFERED);
  }

  public final int doEndTag() throws JspException {
BodyContent bc = getBodyContent();
if (bc != null) {
  String body = bc.getString();
  // Manipulate body here.
  try {
getPreviousOut().print(body);
  }
  catch (IOException e) {
throw new JspException(e);
  }
}
return(EVAL_PAGE);
  }
}

If I uncomment the first line of doStartTag(), the problem goes away.
The reason that this happens is that setBodyContent() is not called
for tags with no body, but the tag pool is happy to reuse the handler
class.

I can't really believe that setting the bodyContent to null in this
way is the right thing to do.  Am I doing something wrong elsewhere?
Is it possible that this is a problem with Tomcat's implementation of
tag pooling.  Should the pool that the tag is taken from depend not
only on which attributes are set, but also on whether the tag has a 
body?  Or should setBodyContent(null) be called for tags with no body?

Any assistance or comments on this would be gratefully received.

Ben Butler-Cole

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




Troubleshooting under tomcat

2003-01-20 Thread eric
I use tomcat 4.1.18 under Xp
And i can't configure some host.
When i try it, the host not run jsp,just html...

Thanks  a lot for answer

---
Ce message est certifié sans virus connu .
Protégé par l'antivirus AVG Deluxe.
Version: 6.0.443 / Base de données virus: 248 - Date: 10/01/2003
 


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




Regarding deploying a web app

2003-01-20 Thread sravipat
Hi,
   I have a webapp, in which a jsp calls a bean class.The bean class is under 
web-inf/classes dir.server.xml has an entry for the doc base but I get a 500 
error , the Bean class is not identified.I appreciate any help .

Thanks
Sunil

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 2 in the jsp file: /login.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\Program Files\Apache Group\Tomcat 4.1
\work\Standalone\localhost\WebMail\login_jsp.java:42: cannot resolve symbol
symbol  : class WebMailBean  
location: class org.apache.jsp.login_jsp
  WebMailBean webMail = null;
  ^



An error occurred at line: 2 in the jsp file: /login.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1
\work\Standalone\localhost\WebMail\login_jsp.java:44: cannot resolve symbol
symbol  : class WebMailBean  
location: class org.apache.jsp.login_jsp
webMail = (WebMailBean) pageContext.getAttribute("webMail", 
PageContext.SESSION_SCOPE);
   ^



An error occurred at line: 2 in the jsp file: /login.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1
\work\Standalone\localhost\WebMail\login_jsp.java:47: cannot resolve symbol
symbol  : class WebMailBean  
location: class org.apache.jsp.login_jsp
webMail = (WebMailBean) java.beans.Beans.instantiate(this.getClass
().getClassLoader(), "WebMailBean");
   ^
3 errors






---
San Jose State University IMP server -- https://web-mail.sjsu.edu/horde

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




commons-pool (ot)

2003-01-20 Thread Felipe Schnack
  Anyone have a quick-and-dirty how-to create a keyed object pool using
commons-pool JAR?
-- 

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

Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303341


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




TC 4.06 + IIS Port/Redirect issue

2003-01-20 Thread Jan Schmitz-Reinthal
After searching to no avail in the list archives, here's my cry for help:

On Win2Kserver I have IIS 5.0 and Tomcat 4.06
The latter holds a Java-Based application which I want to make public 
through IIS on Port 80 (instead of Tomcat's regular 8080).

I have set up the ISAPI_Redirector.dll, read most of the howtos and got to 
the point where the first page (HTML) is served correctly via Port 80 by 
IIS (IIS-Logfile indicates a HTTP-Code of OK/200 while showing the 
redirector DLL has handled the request.

However as soon as I submit the search form on that page (submitting data 
directly to a servlet), I do get a return but with the obnoxious port 8080 
in the address line. Also no more logfile entries in the IIS log. Seems as 
if the connection has been handed from IIS to tomcat directly.

So how do I go about making certain that all requests for my 
Java-Application are handled through IIS on Port 80? Any help is really 
appreciated.

Jan


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



JSP won't compile Source Code Showing

2003-01-20 Thread Tom Holmes Jr.
I realize that this is a tough question, but I am sure someone has come
acrosss this error before.

I have comnfigured Apache 2.0.43 with Tomcat 4.1.18 with Jk2 on Win2K.   The
http://localhost/examples works fine.

I have even created virtual hosts and set up those web-apps and they all
work.

Now some of my JSP pages work and some won't.  The ones that do NOT work,
seems like they do not get sent to Tomcat, it seems that the JSP source just
loads and that is a big problem.  This problem just started after everything
was working for a few days.

So, why is it that this is happening, and how can I fix itTIA!

Tom


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




Re: Tomcat 4.1.18, JK2, IIS - Second try

2003-01-20 Thread Dan Tran
With the help of Mark Eggers, I am able to install JK2/tomcat 4.1.8/IIS on a
new machine. The connector on this macine works

I also reinstall tomcat on the problem machine, check every step
(registries, iis virtual directory, workers2.properties and JK2.properties).
Connector on this machine still does not work.  There is no error in
EventViewer, the DLL pluggin is up (blue arrow up).  The weird thing is I
dont see any indication of iis_redirector2.dll talking to port 8009 of
tomcat.  It seems the request does reach the dll but disappear.  The most
logical thing to do is to trouble shoot the DLL but I cant find any
reference to make the DLL to dump more debug message to the Eventviewers.

Any suggestion?

-D


- Original Message -
From: "Ari Suutari" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Dan Tran"
<[EMAIL PROTECTED]>
Sent: Sunday, January 19, 2003 10:48 PM
Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try


Hi,


On Saturday 18 January 2003 01:26, Dan Tran wrote:
> That is a good news that It works for you. Then It must be something wrong
> on my configuration.  Could you send me your works2.properties and
> jk2.properties?
>

Check your registry entries. There is one entry called
"extensionUri", which should point to isapi_redirector2.dll.

Ie. if you put isapi_redirector2.dll into inetpub/scripts, the
extensionUri should be /scripts/isapi_redirector2.dll. Also,
check that scripts directory have permission in IIS to
execute DLL.

Otherwise, you'll receive an error.

Ari S.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




TC 3.3.1 authentication roles - what is going on?

2003-01-20 Thread Christopher Mark Balz
   It seems that to get good authentication whilst tying one role to 
one web app (so only one designated user can use a given designated 
webapp), I must assign two roles to the designated user: an arbitary 
role, and a role of "deployer", and omit or comment out the role of 
"deployer" in web.xml:


  
 dentalExpert0
  



In this case, the user "Dr. Alan H" is assigned to be a deployer. 
Authentication does not work well without this.  I tried creating a 
dummy deployer, paired with dentalExpert0, but that did not work (it's 
commented out below).  At least now, however, I can get good 1-1 
authentication.  I am running across two browser frames, and because 
document.domain assignments do not seem to mollify the furiously buggy 
Tomcat, I have had to submit to requiring the user to log-in twice, once 
for each frame.  That is, until I change web servers.  Anyone have any 
idea of how to explain TC 3.3.1's curious behavior?


 
 
 
 
 


--
". . . / This Cabinet is formd of Gold / And Pearl & Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames & other Hills / And another pleasant Surrey Bower
. . ."
- from "The Crystal Cabinet", a poem by William Blake.



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



RE: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Madhava Reddy
No.  The Java IO (and nio) APIs as well as every logging framework I've
used take care of this for you.


>> thanks Yaov.. let me try this...

Madhava Reddy



RE: Logging

2003-01-20 Thread Shapira, Yoav
Hi,

>Yes, thanx Yoav, I am in fact using Log4J for webapplication specific
>logging, with very good results.

Glad to hear it ;)

>
>But sometimes exceptions occure where they should not occure (where
they
>are not caught), and  I get stacktraces printed out on to the tomcat
>console, but no information in wich application the problem happens,
only
>what kind of error and in which class.

This is a difficult use-case. ;(  

It may be the easiest way in the long term if you could ensure every
exception is caught?  Typically, the only uncaught exceptions should be
tomcat ones like ClassNotFoundException.  All the ones in your
application should be caught (even if only rethrow them with a different
message or exception).

>Can I configure Log4J to take everything that is printed to stdout and
>apply a pattern to it and write out to a file ?

So let's assume you already have a log file with a log4j FileAppender
(named "LogFileAppender") configured to use this file.  You've
initialized log4j.

Logger rootLogger = Logger.getRootLogger();
Appender myFileAppender = rootLogger.getAppender("LogFileAppender");
String filePath = myFileAppender.getFile();
FileOutputStream fos = new FileOutputStream(filePath);
PrintStream pos = new PrintStream(fos);
System.setOut(pos);

Would the above, combined with adding the app name as an MDC attribute
in log4j (in the pattern for LogFileAppender), do the trick for you?

Just to clarify: I much prefer catching everything properly, not playing
with the above or with Tomcat's swallowOutput() flag in the 
element.  But if you can't catch everything, the above hack might help
;)

Of course, you would see all the other console messages in your log
file, and things may be written out of order, but the above just came to
mind (I've never tried it myself) ;)

Yoav Shapira
Millennium ChemInformatics

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




Re: Logging

2003-01-20 Thread Paul Yunusov
On Monday 20 January 2003 11:42 am, Reynir Hübner wrote:
> allright, how could I miss that..
>
> Thanx man,
>
> -reynir

No problemo.
Paul

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




RE: Logging

2003-01-20 Thread Reynir Hübner
allright, how could I miss that..

Thanx man, 

-reynir


> -Original Message-
> From: Paul Yunusov [mailto:[EMAIL PROTECTED]] 
> Sent: 20. janúar 2003 16:41
> To: Tomcat Users List
> Subject: Re: Logging
> 
> 
> On Monday 20 January 2003 10:59 am, Reynir Hübner wrote:
> > Is it possible somehow to set the logger in tomcat (FileLogger) so 
> > that it will tell which application the exception happenes. 
> My problem 
> > is this : I have a server running serveral virtual hosts, 
> most running 
> > the same web-applications. When an exception is caused it gets 
> > stack-trace-printed to the standard out, but it's 
> impossible for me to 
> > determine which application it happenes in. Is it possible to 
> > configure the FileLogger to display where it happenes ?
> >
> > Thanx
> > -reynir
> 
> Reynir,
> 
> Assuming your Tomcat version is 4.1.x, visit here: 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

then scroll down to Attributes-Standard Implementation and check 
"swallowOutput" out.

HTH,

Paul

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


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




Re: Logging

2003-01-20 Thread Paul Yunusov
On Monday 20 January 2003 10:59 am, Reynir Hübner wrote:
> Is it possible somehow to set the logger in tomcat (FileLogger) so that it
> will tell which application the exception happenes. My problem is this :
> I have a server running serveral virtual hosts, most running the same
> web-applications. When an exception is caused it gets stack-trace-printed
> to the standard out, but it's impossible for me to determine which
> application it happenes in. Is it possible to configure the FileLogger to
> display where it happenes ?
>
> Thanx
> -reynir

Reynir,

Assuming your Tomcat version is 4.1.x, visit here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

then scroll down to Attributes-Standard Implementation and check 
"swallowOutput" out.

HTH,

Paul

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




RE: Logging

2003-01-20 Thread Collins, Jim
Hi Yoav,

I have been getting this strange exception from Tomcat:

org.apache.commons.logging.LogConfigurationException:
 org.apache.commons.logging.LogConfigurationException:
 org.apache.commons.logging.LogConfigurationException: Class
 org.apache.commons.logging.impl.Log4JCategoryLog does not 
 implement Log
 at
 org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
 FactoryImpl.ja
 va:530)
 at
 org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
 FactoryImpl.ja
 va:285)
 at 
 org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
 at
 org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl
 er.java:97)
 at org.apache.tomcat.util.log.Log.log(Log.java:198)
 at org.apache.tomcat.util.log.Log.log(Log.java:192)
 at org.apache.tomcat.util.log.Log.log(Log.java:174)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
 ThreadPool.jav
 a:536)
 at java.lang.Thread.run(Thread.java:536)
 Caused by: org.apache.commons.logging.LogConfigurationException:
 org.apache.commons.logging.LogConfigurationException: Class
 org.apache.commons.logging.impl.Log4JCategoryLog does not 
 implement Log
 at
 org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
 or(LogFactoryI
 mpl.java:415)
 at
 org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
 FactoryImpl.ja
 va:523)
 ... 8 more
 Caused by: org.apache.commons.logging.LogConfigurationException: Class
 org.apache.commons.logging.impl.Log4JCategoryLog does not 
 implement Log
 at
 org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
 or(LogFactoryI
 mpl.java:411)
... 9 more

Have you ever seen anything like?

Regards

Jim


> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
> Sent: 20 January 2003 16:13
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: Logging
> 
> 
> Howdy,
> Here's one way: use log4j.  Configure a file appender with 
> some pattern that includes your hostname in the MDC.  That's 
> exactly the sort of thing MDC (Mapped Diagnostic Context) in 
> log4j was designed for.  For more details, see the 
> PatternLayout and MDC class javadocs at 
> http://jakarta.apache.org/log4j/docs/api/index.html
> 
> If you have questions regarding usage of log4j, we'll be 
> happy to help you on the log4j user mailing list ;)
> 
> As an aside, I think tomcat already provides more than 
> adequate logging capabilities for a servlet container.  
> Tomcat is not a logging toolkit.  That's why we have things 
> like log4j ;)  Combine these two best of breed solutions and 
> you can enjoy a lot of benefits...
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, January 20, 2003 11:13 AM
> >To: Tomcat Users List
> >Subject: RE: Logging
> >
> >I have been trying to do the same thing, unfortunately I 
> have not found a
> >way to make this happen yet.
> >
> >Brandon
> >
> >-Original Message-
> >From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, January 20, 2003 9:59 AM
> >To: Tomcat Users List
> >Subject: Logging
> >
> >
> >Is it possible somehow to set the logger in tomcat 
> (FileLogger) so that it
> >will tell which application the exception happenes.
> >My problem is this :
> >I have a server running serveral virtual hosts, most running the same
> >web-applications. When an exception is caused it gets 
> stack-trace-printed
> >to
> >the standard out, but it's impossible for me to determine 
> which application
> >it happenes in. Is it possible to configure the FileLogger 
> to display where
> >it happenes ?
> >
> >Thanx
> >-reynir
> >
> >--
> >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: 
> 
> 


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

RE: Logging

2003-01-20 Thread Reynir Hübner

Yes, thanx Yoav, I am in fact using Log4J for webapplication specific logging, with 
very good results.  

But sometimes exceptions occure where they should not occure (where they are not 
caught), and  I get stacktraces printed out on to the tomcat console, but no 
information in wich application the problem happens, only what kind of error and in 
which class. 

Can I configure Log4J to take everything that is printed to stdout and apply a pattern 
to it and write out to a file ?
I think I need a logger that grabbs everything that comes out on the stdout (console) 
and writes it out with log4j to a file, with a pattern. 
To clarify once more : I need logger that grabs unhandled exceptions written out to 
the console and checks which application or classloader they occure in, and gives me 
more informative information than just the stacktrace. 

Right now I'm looking at a way of developing such thing with log4j (of course)

thanx
-reynir


> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] 
> Sent: 20. janúar 2003 16:13
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: Logging
> 
> 
> Howdy,
> Here's one way: use log4j.  Configure a file appender with 
> some pattern that includes your hostname in the MDC.  That's 
> exactly the sort of thing MDC (Mapped Diagnostic Context) in 
> log4j was designed for.  For more details, see the 
> PatternLayout and MDC class javadocs at 
> http://jakarta.apache.org/log4j/docs/api/index.html
> 
> If you have questions regarding usage of log4j, we'll be 
> happy to help you on the log4j user mailing list ;)
> 
> As an aside, I think tomcat already provides more than 
> adequate logging capabilities for a servlet container.  
> Tomcat is not a logging toolkit.  That's why we have things 
> like log4j ;)  Combine these two best of breed solutions and 
> you can enjoy a lot of benefits...
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, January 20, 2003 11:13 AM
> >To: Tomcat Users List
> >Subject: RE: Logging
> >
> >I have been trying to do the same thing, unfortunately I 
> have not found 
> >a way to make this happen yet.
> >
> >Brandon
> >
> >-Original Message-
> >From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, January 20, 2003 9:59 AM
> >To: Tomcat Users List
> >Subject: Logging
> >
> >
> >Is it possible somehow to set the logger in tomcat 
> (FileLogger) so that 
> >it will tell which application the exception happenes. My problem is 
> >this : I have a server running serveral virtual hosts, most 
> running the 
> >same web-applications. When an exception is caused it gets 
> >stack-trace-printed to
> >the standard out, but it's impossible for me to determine 
> which application
> >it happenes in. Is it possible to configure the FileLogger 
> to display where
> >it happenes ?
> >
> >Thanx
> >-reynir
> >
> >--
> >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:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

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




RE: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Shapira, Yoav
Howdy,

>>> Do we need to make sure the file blahblahLogFile.txt exists before
>deploying the application?

No.  The Java IO (and nio) APIs as well as every logging framework I've
used take care of this for you.

Yoav Shapira
Millennium ChemInformatics

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




RE: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Madhava Reddy

All other writing should be done to directories/files declared as
parameters to your context or servlets.  For example:

  logFile
  /tmp/blahblahLogs/blahblahLogFile.txt


This way other people using/deploying your app can configure these
settings to a directory that suits their deployment.

>> Do we need to make sure the file blahblahLogFile.txt exists before
deploying the application?




RE: Logging

2003-01-20 Thread Shapira, Yoav
Howdy,
Here's one way: use log4j.  Configure a file appender with some pattern that includes 
your hostname in the MDC.  That's exactly the sort of thing MDC (Mapped Diagnostic 
Context) in log4j was designed for.  For more details, see the PatternLayout and MDC 
class javadocs at http://jakarta.apache.org/log4j/docs/api/index.html

If you have questions regarding usage of log4j, we'll be happy to help you on the 
log4j user mailing list ;)

As an aside, I think tomcat already provides more than adequate logging capabilities 
for a servlet container.  Tomcat is not a logging toolkit.  That's why we have things 
like log4j ;)  Combine these two best of breed solutions and you can enjoy a lot of 
benefits...

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 20, 2003 11:13 AM
>To: Tomcat Users List
>Subject: RE: Logging
>
>I have been trying to do the same thing, unfortunately I have not found a
>way to make this happen yet.
>
>Brandon
>
>-Original Message-
>From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 20, 2003 9:59 AM
>To: Tomcat Users List
>Subject: Logging
>
>
>Is it possible somehow to set the logger in tomcat (FileLogger) so that it
>will tell which application the exception happenes.
>My problem is this :
>I have a server running serveral virtual hosts, most running the same
>web-applications. When an exception is caused it gets stack-trace-printed
>to
>the standard out, but it's impossible for me to determine which application
>it happenes in. Is it possible to configure the FileLogger to display where
>it happenes ?
>
>Thanx
>-reynir
>
>--
>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: tomcat configuration with apache 1.3.27 ssl

2003-01-20 Thread Helene Figueiredo
I make the configuration of apache ssl and tomcat with this lines in
differents configuation files :

in the httpsd.conf :


#SSLDisable
SSLEnable
DirectoryIndex index.php index.php3 index.cgi index.html Welcome.html 
Welcome.phtml

Options FollowSymLinks Indexes
AllowOverride none





Include /local/tomcat/conf/auto/mod_jk.conf

In the server.xml :




modJk="/local/apache/libexec/mod_jk.so" />






append="true" forwardAll="false"
modJk="/local/apache/libexec/mod_jk.so" />

And in the workers.properties :

# BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
# change this line to match apache ServerName and Host name in server.xml
worker.ajp13.host=crip-lxagal.ujf-grenoble.fr
worker.ajp13.type=ajp13
# END workers.properties


When I start tomcat, it's ok at the url :

http://crip-lxagal.ujf-grenoble.fr:8080

But when I try to start apache, I have this message in the
error.log of apache :

[Mon Jan 20 16:19:44 2003] [crit] Attempt to reinitialise SSL for server 
crip-lxagal.ujf-grenoble.fr


I don't understand what is wrong.
Have you some idea ?

Thanks.

Helene



A 10:19 16/01/2003 -0500, vous avez écrit :

The connectors do not use SSL.  If you are using JK or JK2, the
communications between Apache and Tomcat are in the clear, not via SSL.  The
flow, as I understand it, is like this:

client <-> SSL <-> apache <-> connector <-> tomcat

The request is encrypted and decrypted by Apache before (and after) the
connector and Tomcat deal with it.

Does that help?  Do you have any error messages, or other messages from
Apache, JK, or Tomcat logs?

John


> -Original Message-
> From: Helene Figueiredo [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 16, 2003 10:12 AM
> To: Turner, John
> Cc: [EMAIL PROTECTED]
> Subject: RE: tomcat configuration with apache 1.3.27 ssl
>
>
> We are trying to configure tomcat on :
> operating system : linux redhat 7.3
> JDK : j2sdk1.4.1_01
> OpenSSL : openssl-0.9.6g
> Apache : apache 1.3.27+SSL
> Tomcat : Tomcat 4.1.18
>
> we have generate a certificate with openssl
> we have configure apache with a basic : ./configure, make,
> make install
> we have modified the httpsd.conf to include the certificate ssl
> we have modified the catalina.sh to include the java home
> when we use the connector no-ssl, tomcat is ok on the url http://
> but when we use the connector ssl, there is no tomcat at the url ...
>
> Do you have an idea ???
>
> Many thanks.
>
>
>
>
> A 08:06 16/01/2003 -0500, vous avez écrit :
>
> >Please be more specific.  What problems are you experiencing?  What
> >connector are you using?  What is your configuration,
> operating system, JDK
> >version, etc. etc.?
> >
> >John
> >
> >
> > > -Original Message-
> > > From: Helene Figueiredo [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, January 16, 2003 6:57 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: tomcat configuration with apache 1.3.27 ssl
> > >
> > >
> > > Hi,
> > >
> > > Can someone give me an example of tomcat configuration with
> > > apache 1.3.27 ssl ?
> > > Our apache ssl configuration is ok.
> > > Our tomcat configuration without apache ssl is ok.
> > > But we're not able to integrate both.
> > >
> > > Thanks.
> > >
> > >
> > > ___
> > >
> > > Helene FIGUEIREDO
> > > CRIP
> > > Universite Joseph Fourier - Grenoble 1
> > > BP 53
> > > 38041 Grenoble cedex 9
> > > 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: Logging

2003-01-20 Thread Brandon Cruz
I have been trying to do the same thing, unfortunately I have not found a
way to make this happen yet.

Brandon

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 9:59 AM
To: Tomcat Users List
Subject: Logging


Is it possible somehow to set the logger in tomcat (FileLogger) so that it
will tell which application the exception happenes.
My problem is this :
I have a server running serveral virtual hosts, most running the same
web-applications. When an exception is caused it gets stack-trace-printed to
the standard out, but it's impossible for me to determine which application
it happenes in. Is it possible to configure the FileLogger to display where
it happenes ?

Thanx
-reynir

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: What about the Context tag?

2003-01-20 Thread Noel J. Bergman
Steve,

The  tag defines the context for the entire web application, not
each servlet.  I gave you a single ZIP file containing your sample web app.
If you install tomcat *AND* you can use tomcat's sample servlets as
delivered, then you should be able to use what I gave you.  The one I gave
you uses a separate .XML, just as the admin and manager web apps.

However, until you can run tomcat by itself with no other changes, nothing
anyone does is going to help you.

--- Noel


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




Logging

2003-01-20 Thread Reynir Hübner
Is it possible somehow to set the logger in tomcat (FileLogger) so that it will tell 
which application the exception happenes.
My problem is this :
I have a server running serveral virtual hosts, most running the same 
web-applications. When an exception is caused it gets stack-trace-printed to the 
standard out, but it's impossible for me to determine which application it happenes 
in. Is it possible to configure the FileLogger to display where it happenes ?

Thanx
-reynir

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




Re: HttpServletRequest getPathInfo() decodes incorrectly?

2003-01-20 Thread Scott Dunbar
 Andreas,
I had a similar problem with a different character set under Windows. 
The ultimate problem wasn't Tomcat but was how the JDK converted to the 
underlying operating system's character set.  I was able to solve it by 
passing a -Dfile.encoding=ISO8859_1 to the java command that starts 
Tomcat.  I don't know if it is the same problem you are having or not. 
The problem I had was trying to handle Korean characters with the 
default CP1252 Windows character set.  There are "holes" in CP1252 that 
Java converted to the '?' character because it didnt' know what to do 
with them.  ISO8859-1 had a valid translation for all characters.

Again, I'm not sure if this is the problem you're having.  Good luck, 
and if you get a chance I'd be curious if this worked.


Andreas Anderson wrote:

HttpServletRequest getPathInfo() decodes incorrectly?

I'm trying out Tomcat 4.1.18. HttpServletRequest doesn't decode path
info like it does with Tomcat 4.0.6. I'm running Tomcat on JDk 1.4.1
and Win2K.

When I invoke the follwing servlet with 
http://localhost:8080/test/TestServlet/a/%E4/b
req.getPathInfo() returns /a/?/b instead of /a/ä/b (the second element
in the path should be a funny scandinavian a with two dots above it).


public class TestServlet extends HttpServlet {

 public void doGet(HttpServletRequest req, HttpServletResponse res) 
 throws ServletException, IOException {

   res.getOutputStream().print(req.getPathInfo());
   res.getOutputStream().close();
 }
}


Thanks,
Andreas

_
Surf before you surf - http://www.surf.co.nz

_
Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag

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

 



--
scott dunbarxigole systems, inc.
[EMAIL PROTECTED]superior, co



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




Re: How do I get the absolute path of a file in a directory aboveWEB-INF directory of my web application?

2003-01-20 Thread Erik Price
Thanks for the clarification.  (I have not yet had to deploy a webapp, 
though eventually I would like to hand my project to the admins as a WAR 
file, so these are good things to keep in mind as I learn.)


Erik



Shapira, Yoav wrote:
Howdy,
The idea of a webapp is to be self-contained.  What happens in typical
installations, or at least the ones I've been part of, is that server
administrators already have a particular place they like temporary
and/or log files to go.  Then they just modify the deployment descriptor
(or the server.xml or equivalent file, depending on how the app is
written) to suit their needs.

What I neglected to say in my previous email, as I take it for granted,
is:
1. If your webapp requires ANY external resources (for reading, or
writing, or both), the requirements should be well documented.  What
files (e.g. web.xml) should be edited and how must be well documented.

2. Reasonable defaults (e.g. System.getProperty("java.io.tmpdir")) must
be used if no value is provided.  Alternatively, a fatal exception can
be thrown and processing stopped.  Note that "." (the current working
directory) is not a reasonable default.  If a property is expected but
not found, and a default value is used instead, this should be indicated
in the log.

It's been my experience that server administrators and IT departments
are happier to receive an app as a war file rather than a set of
individual files.  Your mileage may vary,

Yoav Shapira
Millennium ChemInformatics




-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 10:24 AM
To: Tomcat Users List
Subject: Re: How do I get the absolute path of a file in a directory


above


WEB-INF directory of my web application?



Shapira, Yoav wrote:



All other writing should be done to directories/files declared as
parameters to your context or servlets.  For example:

 logFile
 /tmp/blahblahLogs/blahblahLogFile.txt


This way other people using/deploying your app can configure these
settings to a directory that suits their deployment.


I see -- so then, while this makes explicit the fact that there are
files that need to be created by the person responsible for Deployment,
since they can read web.xml but not the compiled servlet code, there is
no guarantee that the directory will be available.  The Deployer still
needs to do the legwork.  Would it be more reasonable to read/write to
files in WEB-INF, since you can assure that the directories will exist
by including them yourself with the webapp?

On second thought, I suppose not since the webapp might be in WAR


format.




Erik


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




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





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




RE: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Shapira, Yoav
Howdy,
The idea of a webapp is to be self-contained.  What happens in typical
installations, or at least the ones I've been part of, is that server
administrators already have a particular place they like temporary
and/or log files to go.  Then they just modify the deployment descriptor
(or the server.xml or equivalent file, depending on how the app is
written) to suit their needs.

What I neglected to say in my previous email, as I take it for granted,
is:
1. If your webapp requires ANY external resources (for reading, or
writing, or both), the requirements should be well documented.  What
files (e.g. web.xml) should be edited and how must be well documented.

2. Reasonable defaults (e.g. System.getProperty("java.io.tmpdir")) must
be used if no value is provided.  Alternatively, a fatal exception can
be thrown and processing stopped.  Note that "." (the current working
directory) is not a reasonable default.  If a property is expected but
not found, and a default value is used instead, this should be indicated
in the log.

It's been my experience that server administrators and IT departments
are happier to receive an app as a war file rather than a set of
individual files.  Your mileage may vary,

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Erik Price [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 20, 2003 10:24 AM
>To: Tomcat Users List
>Subject: Re: How do I get the absolute path of a file in a directory
above
>WEB-INF directory of my web application?
>
>
>
>Shapira, Yoav wrote:
>
>> All other writing should be done to directories/files declared as
>> parameters to your context or servlets.  For example:
>> 
>>   logFile
>>   /tmp/blahblahLogs/blahblahLogFile.txt
>> 
>>
>> This way other people using/deploying your app can configure these
>> settings to a directory that suits their deployment.
>
>I see -- so then, while this makes explicit the fact that there are
>files that need to be created by the person responsible for Deployment,
>since they can read web.xml but not the compiled servlet code, there is
>no guarantee that the directory will be available.  The Deployer still
>needs to do the legwork.  Would it be more reasonable to read/write to
>files in WEB-INF, since you can assure that the directories will exist
>by including them yourself with the webapp?
>
>On second thought, I suppose not since the webapp might be in WAR
format.
>
>
>
>Erik
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


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




Re: How do I get the absolute path of a file in a directory aboveWEB-INF directory of my web application?

2003-01-20 Thread Erik Price


Shapira, Yoav wrote:


All other writing should be done to directories/files declared as
parameters to your context or servlets.  For example:

  logFile
  /tmp/blahblahLogs/blahblahLogFile.txt


This way other people using/deploying your app can configure these
settings to a directory that suits their deployment.


I see -- so then, while this makes explicit the fact that there are 
files that need to be created by the person responsible for Deployment, 
since they can read web.xml but not the compiled servlet code, there is 
no guarantee that the directory will be available.  The Deployer still 
needs to do the legwork.  Would it be more reasonable to read/write to 
files in WEB-INF, since you can assure that the directories will exist 
by including them yourself with the webapp?

On second thought, I suppose not since the webapp might be in WAR format.



Erik


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



RE: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Shapira, Yoav
Hi,

>Just to make sure I have this right: the only time that a webapp is
>allowed to write files in a portable fashion is in the temporary
>directory provided by the ServletContext?

Yes.

All other writing should be done to directories/files declared as
parameters to your context or servlets.  For example:

  logFile
  /tmp/blahblahLogs/blahblahLogFile.txt


This way other people using/deploying your app can configure these
settings to a directory that suits their deployment.

Yoav Shapira
Millennium ChemInformatics

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




Re: How do I get the absolute path of a file in a directory aboveWEB-INF directory of my web application?

2003-01-20 Thread Erik Price


Jacob Kjome wrote:


Just make sure to check for the absolutePath string being null because 
it will be in the case where you serve the app directly out of a .war 
file, which is why you shouldn't use File IO unless you absolutely  have 
to.  There are plenty of other ways to read files in a servlet app or a 
generic Java app which doesn't require File IO.  Also, if you say "well, 
I need this so I can write files within my webapp directory", they I 
would have to say that you've already made your app highly non-portable.

Jacob,

Just to make sure I have this right: the only time that a webapp is 
allowed to write files in a portable fashion is in the temporary 
directory provided by the ServletContext?


Erik


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



RE: packages

2003-01-20 Thread Ghershony, Arie
Are you familiar with WebServices deployment?

thanks
Arie

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 8:50 AM
To: Tomcat Users List
Subject: RE: packages


Hi,
1. RTFM.
2. This is not a tomcat question.  Include [OFF-TOPIC] in the subject.
3. http://java.sun.com/docs/books/tutorial/java/interpack/usepkgs.html
has the answer you're looking for.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: puneet sachar [mailto:[EMAIL PROTECTED]]
>Sent: Sunday, January 19, 2003 11:49 PM
>To: Tomcat Users List
>Subject: packages
>
>hey
>
>can anyone tell me wwhat is the standard package in
>java
>and which package wich we don't have to explictly
>mention and what are the conditions we have to mention
>them..
>
>regards
>
>
>__
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>http://mailplus.yahoo.com
>
>--
>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 do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Jacob Kjome

Why would one use normal File IO to attempt an absolute file path to the 
WEB-INF directory of a webapp?  Use what the servlet spec provides for you.

String absolutePath = getServletContext().getRealPath("/WEB-INF");

File file = new File(absolutePath);

Just make sure to check for the absolutePath string being null because it 
will be in the case where you serve the app directly out of a .war file, 
which is why you shouldn't use File IO unless you absolutely  have 
to.  There are plenty of other ways to read files in a servlet app or a 
generic Java app which doesn't require File IO.  Also, if you say "well, I 
need this so I can write files within my webapp directory", they I would 
have to say that you've already made your app highly non-portable.


Jake

At 10:22 AM 1/20/2003 +0100, you wrote:
Peter,

this may help you,

try{
java.io.File dir1 = new java.io.File ("..\\"); // line 1
System.out.println ("Current dir : " + dir1.getCanonicalPath());
String[] contents = dir1.list();
if(contents != null)
for(int i=0;imailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 9:54 AM
To: Tomcat Users List
Subject: Re: How do I get the absolute path of a file in a directory
above WEB-INF directory of my web application?


I don't know offhand how you can do that, but if you want to reach up
above the WEB-INF directory, you can use dot-dot (..).
 - CB

Peter Lee wrote:

>I am using Tomcat for servlets.
>How  do I get the absolute path of a file in a directory above WEB-INF
>directory of my
>web application?
>
>Thanks
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>
>
>


--
". . . / This Cabinet is formd of Gold / And Pearl & Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames & other Hills / And another pleasant Surrey Bower
. . ."
- from "The Crystal Cabinet", a poem by William Blake.



--
To unsubscribe, e-mail:

For additional commands, e-mail:




Re: request caching?

2003-01-20 Thread David Kavanagh
Thanks,
I do set some values to prevent caching.

   response.setHeader("Pragma", "no-cache");
   response.setHeader("Expires", "0");
   response.setHeader("Cache-control", "no-cache, must-revalidate");

I'll didn't really implement caching in the way you think. I just cache 
the Template object from loading my XSLT. I don't actually cache the 
result. I apply that template for every request (if my servlet gets 
called by the container!)
I do want to move to Cocoon, but that won't happen for several months 
(at least not for the main app).
Thanks,
David

Shapira, Yoav wrote:

Howdy,

 

So, before I spend a bunch of time pouring over the source, can someone
tell me if tomcat 4 (or the HttpConnector) looks at the incomming URL
and gives a cached result if the URL hasn't changed? I am using mod_jk
with apache, but that hasn't changed since when I used tomcat 3.x. (nor
has my apache version or config changed).
Any ideas?
   


What caching the web server is and isn't allowed to do is fairly well
defined in the HTTP protocol specification: RFC 2616.  By the way, the
still experimental RFC 2295 is fairly interesting in this area.  You can
also check out the JavaDoc for methods like
HttpServlet.getLastModified(HttpServletRequest req).  You can override
this method in your servlet if necessary.

Alternatively, as the HTTP specifications detail, you can use various
response headers to indicate the response shouldn't be cached.  A google
search on no-cache HTTP headers will give a ton of information on this
subject.

You probably want to do the above anyways to avoid a proprietary
solution to caching pages like you have used in the past.

Yoav Shapira
Millennium ChemInformatics

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





RE: Some advice on getting webapp-root and reading/writing

2003-01-20 Thread Shapira, Yoav
Howdy,
I agree with mech's answer: don't use file-based APIs.  Use the
ServletContext getResource() and getResourceAsStream() methods.  Use
relative links to your images.  Map your servlets in web.xml.

For example, let's say you have a servlet com.mycompany.MyServlet.  It
needs to access images from the images directory under your webapp root.

In web.xml:

  MyServletName
  com.mycompany.MyServlet



  MyServletName
  /MyServlet


Then MyServlet, having an PrintWriter out, would add links to images as
follows:
out.println("");
etc etc.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: joe udder [mailto:[EMAIL PROTECTED]]
>Sent: Sunday, January 19, 2003 6:38 AM
>To: [EMAIL PROTECTED]
>Subject: Some advice on getting webapp-root and reading/writing
>
>Hello.
>
>Does anyone have some advice to give me on the following ideas?
>
>
>My first problem is to find the correct path to my files.
>Is there a method to get the "document-root" of my webapp, so I only
need
>to
>append "Images/jpg" and "WEB-INF/settings" to the path?
>
>I suppose using URL's is the most platform independent method?
>
>
>Example:
>
>My webapp is located in "/var/www/waTest/WEB-INF/",
>and the JPG's are in "/var/www/waTest/Images/jpg/".
>
>Finally the XML's are located in "/var/www/waTest/WEB-INF/settings/".
>
>
>
>The second problem is how to read/write the files, should I use
FileReader
>or is there a better solution for webapps?
>
>TIA
>
>/ju
>
>
>_
>Protect your PC - get McAfee.com VirusScan Online
>http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


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




RE: request caching?

2003-01-20 Thread Shapira, Yoav
Howdy,

>So, before I spend a bunch of time pouring over the source, can someone
>tell me if tomcat 4 (or the HttpConnector) looks at the incomming URL
>and gives a cached result if the URL hasn't changed? I am using mod_jk
>with apache, but that hasn't changed since when I used tomcat 3.x. (nor
>has my apache version or config changed).
>Any ideas?

What caching the web server is and isn't allowed to do is fairly well
defined in the HTTP protocol specification: RFC 2616.  By the way, the
still experimental RFC 2295 is fairly interesting in this area.  You can
also check out the JavaDoc for methods like
HttpServlet.getLastModified(HttpServletRequest req).  You can override
this method in your servlet if necessary.

Alternatively, as the HTTP specifications detail, you can use various
response headers to indicate the response shouldn't be cached.  A google
search on no-cache HTTP headers will give a ton of information on this
subject.

You probably want to do the above anyways to avoid a proprietary
solution to caching pages like you have used in the past.

Yoav Shapira
Millennium ChemInformatics

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




RE: Question about tomcat 4.1.19

2003-01-20 Thread Shapira, Yoav
Hi,
4.1.19 was announced as an alpha release.  Searching the web can easily
yield definitions of what an alpha, beta, and stable release means.  The
Apache release model, followed by tomcat, is well-documented.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Steve Vanspall [mailto:[EMAIL PROTECTED]]
>Sent: Sunday, January 19, 2003 5:23 PM
>To: Tomcat Users List
>Subject: Question about tomcat 4.1.19
>
>Hi there,
>
>I reported a bug, in tomcat 4.1.18, to bugzilla. The reply I got stated
>that
>it was fixed in Tomcat 4.1.19, having not found a link to the binary
for
>4.1.19, I navigated tharere, and found an alpha release of it on the
>website.
>
>Does this mean it is still in development stage?
>
>Does anyone have any idea of it's stability?
>
>Not completely sure what alpha means, but assume, logically, it is the
>release before a beta release.
>
>Regards
>
>Steve Vanspall
>
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


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




RE: packages

2003-01-20 Thread Shapira, Yoav
Hi,
1. RTFM.
2. This is not a tomcat question.  Include [OFF-TOPIC] in the subject.
3. http://java.sun.com/docs/books/tutorial/java/interpack/usepkgs.html
has the answer you're looking for.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: puneet sachar [mailto:[EMAIL PROTECTED]]
>Sent: Sunday, January 19, 2003 11:49 PM
>To: Tomcat Users List
>Subject: packages
>
>hey
>
>can anyone tell me wwhat is the standard package in
>java
>and which package wich we don't have to explictly
>mention and what are the conditions we have to mention
>them..
>
>regards
>
>
>__
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>http://mailplus.yahoo.com
>
>--
>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 find servlet

2003-01-20 Thread Shapira, Yoav
Howdy,
If your servlet class is com.mycompany.MyServlet, and you'd like it to
be accessed as /MyServlet under your webapplication, add the following
to your web.xml:


  MyServletName
  com.mycompany.MyServlet



  MyServletName
  /MyServlet


Please note elements must be in the web.xml in the order specified in
the servlet specification, v2.3.  That document is available for
download at 
http://java.sun.com/products/servlet/index.html

While one doesn't have to memorize the servlet spec in order to develop
servlets, this kind of information is basic, and covered in detail (with
examples) in the specification.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Steve R Burrus [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, January 18, 2003 4:32 PM
>To: Tomcat Users List; [EMAIL PROTECTED]
>Subject: Re: Can't find servlet
>
> David, how do you do that servlet mapping "thing" anyway???! I STILL
>haven't seen
>one servlet using Tomcat to view it with, sad to say!! And, while you
are
>hopefully answering me, tell me just how exactly I edit the web.xml
file
>for the
>servlet name and class tags please.
>
>__
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>http://mailplus.yahoo.com
>
>--
>To unsubscribe, e-mail:   [EMAIL PROTECTED]>
>For additional commands, e-mail: [EMAIL PROTECTED]>


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




RE: WAR Problem

2003-01-20 Thread Madhava Reddy
Hi,

Let's say your Application is named as Test.

try this. 

1. Let the default web.xml be there.
2. Go to %CATALINA_HOME%\webapps\Test
3. jar -cvf Test.war
4. place Test.jar in %CATALINA_HOME%\webapps
3. Remove %CATALINA_HOME%\webapps\Test directory.

Note no entry in sever.xml is needed. If you have a mapping for Test, make
sure you remove it.

in server.xml, you can specify unpackWARs=true to see the unpacked folder.

If you make war file from %CATALINA_HOME%\webapps, you can see your
directory structure, as %CATALINA_HOME%\webapps\Test\Test instead of
%CATALINA_HOME%\webapps\Test.

I'm using tomcat 4.1.10 with java 1.4.1.

Madhava Reddy


Try stomping the work file directory found in:

/usr/local/tomcat/work/Standalone/localhost

Then restart and see what happens.

Oops - just reread your message.

You need to change to /usr/local/tomcat/webapps.

Then execute the following command:

jar cvf apress.war apress/*

The problem is you don't have your top level directory
name when you change into the directory and jar the
application.

To convince yourself of this take your file and do a
jar tf apress.war.  Then remove the war file, change
to the webapps directory, issue the jar cvf apress/*
command and verify it with jar tf apress.war.

HTH

/mde/
just my two cents . . . .

At 09:40 AM 1/19/2003 +0100, you wrote:
Greetings!

New to Jakarta and I'm stuck.  Again, most likely
an easy solution but I can't find it.

I'm following the instructions in a book on deploying
a war file yet it won't automatically expand when I
restart Tomcat.  Here's the steps I took and some
config stuff:

I cd to the working directory of the application, in
this case

/usr/local/tomcat/webapps/apress
jar cvf apress.war .

I then move apress.war to
/usr/local/tomcat/webapps and delete the apress
directory.

Yet when I restart Tomcat the apress.war file remains
and there is no directory called apress.

I've read that Tomcat can use the war file rather than
a directory but there are some problems.  In my case
the first page (jsp) appears ok, but it chokes when
calling the servlet.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:




Re: troubleshooting web.xml

2003-01-20 Thread Erik Price


Steve R Burrus wrote:

 Hi Erik, I need some help w. the very same problem which you have seemed to
encounter, that is my utter ability to see/view successfully a servlet in my web
browser!!! Now, you say that u edit the various  tags in the web.xml
file!! How do you go about editing the servlet name and servlet class tags anyway?
 Cannot do it!!


I'm not sure which Erik you're referring to, but if it's me, what I do 
is open up the web.xml file in a text editor like BBEdit or jEdit and 
then put the cursor somewhere between the  tag and the  
tag, then I type "", followed by the name by 
which I want to refer to the servlet, then "", then on 
the next line I type "", followed by the fully qualified 
class name of the servlet in question, followed by "", 
then "".  I do this for each servlet I want to register in my 
webapp.  Later in the file, after all of my "" elements, I 
enter "", then I type the name that I 
gave my servlet in the earlier section (exactly the same way), then 
"", then I type "", followed by the URL 
pattern to match for invoking this servlet (relative to webapp root), 
then "", then "".




Erik


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



Sample test case : Unresolved entities in included JSP file

2003-01-20 Thread Ludovic Maitre
Hello,
My first mail wasn't very clear, a simple test case follow.

Sample test case


File test_include.jsp :


]>

http://java.sun.com/JSP/Page";
	version="1.2">

 
	



File test_included.jsp :
 

When i access to test_include.jsp :

XML Parsing Error: undefined entity
Location: http://localhost:8080/test_include.jsp
Line Number 1, Column 17:
  
^

If somebody has an idea thanks per advance.
Regards,
Ludo

Ludovic Maitre wrote:

Hello,

I have a JSP 1.2 page who include some french character like ô .

The problem is that i have added the entity ocirc; to the dtd of my JSP 
and it seems that the DTD doesn't apply to the JSP files included from 
this page.

I have the following pages :
index.jsp
recherche.jsp

My index.jsp page is written in JSP 1.2 with XML syntax and include a 
declaration of the JSP1.2 DTD :


 "http://localhost:8080/awrgfa/dtd/jspxml.dtd";>

The JSP 1.2 DTD come from the website of Sun (it's annotated "DTD for 
JSP 1.2 thanks to Bob Foster, WebGain") and i use a modified version 
locally who include the following last lines :
http://localhost:8080/awrgfa/dtd/latin1.dtd"; >
%ISOLat1;

the file latin1.dtd contain lines like :



(the normative syntax, used on the W3C website, is :. It doesn't work and trigger  :

org.apache.jasper.JasperException: 
http://localhost:8080/awrgfa/dtd/latin1.dtd(12,18) OpenQuoteMissingInDecl

I don't know why, i think it concern the people of Xerces)

So after this little work, my JSP page can contain HTML entities 
references like  ô.

The problem is that i include the menu to the JSP page with an include 
directive in index.jsp :

xmlns:jsp="http://java.sun.com/JSP/Page";
version="1.2">

http://www.w3.org/1999/xhtml";>

Hôtes


...

...




The file /pages/menu.jsp is only a fragment of XHTML, he has a reference 
to the entity icirc; :

...
Hôtes
...


The problem is that this entity is unresolved at compilation :

XML Parsing Error: undefined entity
Location: http://localhost:8080/awrgfa/pages/modele.jsp
Line Number 10, Column 37:Hôtes
^

So my questions are :
1 - why the DTD defined in the document who include the others isn't 
applicable to the included documents ?
2 - Who is responsible for this bug (if this is a bug) : Xerces ? Jasper 
? Me ?

So thanks per advance for any answer and  best regards,


--
Ludovic Maître

Factory Productions | Tél: (33) 04 93 07 08 00
149, avenue des mimosas | Fax: (33) 04 93 07 04 02
06700 Saint-Laurent-du-Var (France) | Web: http://www.factory.fr




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




RE: Mod_jk & apache

2003-01-20 Thread Turner, John

Glad you got it working.

John


> -Original Message-
> From: Leong Hong Wai [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 19, 2003 9:20 PM
> To: Tomcat Users List
> Subject: Re: Mod_jk & apache
> 
> 
> Hi John,
> 
> 
> After tried for every possibility that I can think of, 
> finally I manage 
> to get it work, the problem was, I can't used the mod_jk.conf that 
> automatically generated by mod_jk, so what I did was write a simple 
> mod_jk.conf file following the example I downloaded, and that 
> it ... :)
> 
> Though I still can't figure out why it was like that, but I'm 
> glad that 
> I can get back to jsp development. And I had a feeling it 
> must something 
> to do with virtual host.
> 
> Thanks for your HOWTOs, it really help me a lot in preparing all the 
> necessary  files and steps to install.
> 
> Cheers
> 
> Wai
> 
> 
> On Friday, January 17, 2003, at 10:19 PM, Turner, John wrote:
> 
> >
> > Where's httpd.conf?  workers.properties?  What JkMount 
> statements are 
> > you
> > using?
> >
> > My HOWTOs may help: http://www.johnturner.com/howto
> >
> > John
> >
> >
> >> -Original Message-
> >> From: Leong Hong Wai [mailto:[EMAIL PROTECTED]]
> >> Sent: Thursday, January 16, 2003 10:46 PM
> >> To: [EMAIL PROTECTED]
> >> Subject: Mod_jk & apache
> >>
> >>
> >> Hi,
> >>
> >> I just upgraded my connector from webapp to jk since almost
> >> everyone is
> >> telling that webapp will die soon.
> >>
> >> But after I installed all the components for mod_jk, my
> >> apache seems not
> >> talking to tomcat anymore. Every time I browse to a jsp 
> page, it will
> >> said 404 error , and I also found that the jsp was served 
> under port
> >> 16080, but I remember I didn't configure apache to do that.
> >>
> >> If I run tomcat from port 8080, it will function well, same goes to
> >> apache, so I guess they are ok by their own, but not together.
> >>
> >> Anyway, I attached all the logs that I can find in my machine, the
> >> mod_jk.log was empty so I guess the connector was never been
> >> triggered
> >> at all.
> >>
> >> Hope somebody can give me a big me on this.
> >>
> >> Thanks in advance.
> >>
> >> Wai
> >>
> >>
> >> I running on :-
> >> OS X 10.1.4
> >> Apache 1.3.26
> >> Tomcat 4.0.6 with mod_jk
> >>
> >> catalina_log :-
> >> ==
> >> 
> >> =
> >> 2003-01-17 09:12:30 HttpProcessor[8080][4] Starting 
> background thread
> >> 2003-01-17 09:41:12 HttpConnector Opening server socket on
> >> all host IP
> >> addresses
> >> 2003-01-17 09:41:19 HttpConnector[8080] Starting background thread
> >> 2003-01-17 09:41:20 HttpProcessor[8080][0] Starting 
> background thread
> >> 2003-01-17 09:41:20 HttpProcessor[8080][1] Starting 
> background thread
> >> 2003-01-17 09:41:20 HttpProcessor[8080][2] Starting 
> background thread
> >> 2003-01-17 09:41:20 HttpProcessor[8080][3] Starting 
> background thread
> >> 2003-01-17 09:41:20 HttpProcessor[8080][4] Starting 
> background thread
> >> 2003-01-17 09:41:20 Ajp13Connector[8009] Opening server 
> socket on all
> >> host IP addresses
> >> 2003-01-17 09:41:20 Ajp13Connector[8009] Starting background thread
> >> 2003-01-17 09:41:20 Ajp13Connector[8009] accepting socket...
> >> 2003-01-17 09:41:20 Ajp13Processor[8009][0] Starting 
> background thread
> >> 2003-01-17 09:41:20 Ajp13Processor[8009][0]  Background
> >> thread has been
> >> started
> >> 2003-01-17 09:41:20 Ajp13Connector[8009] added processor 
> to available
> >> processors, available=0
> >> 2003-01-17 09:41:20 Ajp13Processor[8009][1] Starting 
> background thread
> >> 2003-01-17 09:41:20 Ajp13Processor[8009][0] waiting for next
> >> socket to
> >> be assigned...
> >> 2003-01-17 09:41:20 Ajp13Processor[8009][1]  Background
> >> thread has been
> >> started
> >> 2003-01-17 09:41:20 Ajp13Connector[8009] added processor 
> to available
> >> processors, available=1
> >> 2003-01-17 09:41:20 Ajp13Processor[8009][2] Starting 
> background thread
> >> 2003-01-17 09:41:20 Ajp13Processor[8009][1] waiting for next
> >> socket to
> >> be assigned...
> >> 2003-01-17 09:41:20 Ajp13Processor[8009][2]  Background
> >> thread has been
> >> started
> >> 2003-01-17 09:41:20 Ajp13Connector[8009] added processor 
> to available
> >> processors, available=2
> >> 2003-01-17 09:41:20 Ajp13Processor[8009][2] waiting for next
> >> socket to
> >> be assigned...
> >> 2003-01-17 09:41:20 Ajp13Processor[8009][3] Starting 
> background thread
> >> 2003-01-17 09:41:20 Ajp13Processor[8009][3]  Background
> >> thread has been
> >> started
> >> 2003-01-17 09:41:20 Ajp13Connector[8009] added processor 
> to available
> >> processors, available=3
> >> 2003-01-17 09:41:20 Ajp13Processor[8009][4] Starting 
> background thread
> >> 2003-01-17 09:41:20 Ajp13Processor[8009][3] waiting for next
> >> socket to
> >> be assigned...
> >> 2003-01-17 09:41:20 Ajp13Processor[8009][4]  Background
> >> thread has been
> >> started
> >> 2003-01-17 09:41:20 Ajp13Connect

RE: connecting Tomcat with Apache

2003-01-20 Thread Turner, John

Windows XP Pro HOWTO, everything described exactly, step by step:

http://www.johnturner.com/howto

John


> -Original Message-
> From: Wesley Hobbie [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 19, 2003 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: connecting Tomcat with Apache
> 
> 
> am using Windows XP Pro, Apache 2.0.43, and Tomcat 4.1.15.
> Here is the problem, I have Apache working great, I want to 
> be able to serve
> JSP pages, I installed Tomcat and have it working fine for standalone,
> displays my JSP pages just fine at http://localhost:8080 
> (which is my Tomcat
> port). My Apache port is 80. When I try to open a JSP page on port 80
> (with Apache) it ignores all JSP tags such as  page="layout.htm"
> flush="true"/>, not displaying the page correctly. Somehow I need to
> connect Tomcat to Apache to handle my JSP pages but have not 
> had success. I
> have read the Apache and Tomcat documentation and tried to 
> edit the config
> files accordingly but have not had success. I have also done 
> searches on
> the Internet to no avail. The problem seems to be with my 
> Apache config
> file (http.conf) in which I state the following as the Tomcat 
> documentation
> suggests:
> # Using mod_jk.dll to redirect dynamic calls to Tomcat
> 
> LoadModule jk_module modules/mod_jk.dll
> 
> JkWorkersFile "%CATALINA_HOME%\conf\workers.properties"
> JkLogFile "%CATALINA_HOME%\logs\mod_jk.log
> JkMount /servlet/* ajp13
> JkMount /*.jsp ajp13
> however, I have the mod_jk.dll in the modules folder but when I try to
> restart my Apache it fails to restart do to an error, the log 
> file claims
> that mod_jk.dll cannot be found in C:\Program Files\Apache
> Group\Apache2\modules when I can clearly see it is there.
> If you can help, please do, this has frustrated me for days. 
> All help is
> much appreciated.
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread Turner, John

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.2
/bin/linux/i386/

Browse around in that tree to find others if needed.

John


> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 19, 2003 8:57 PM
> To: Tomcat Users List
> Subject: RE: Mod_JK.c not compatiable with version of Apache
> 
> 
> Thanks.  I've never had to compile anything like this on 
> Linux and am a
> little hesitant to do so (more of a windows guy to be 
> honost).  Do you know
> of any place that I could locate pre-compiled *compatible* 
> binaries for
> either apache 2.0.43 or mod_jk 2.0.40? Or some other compatible set?
> 
> Thanks.
> Neal
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, January 18, 2003 1:23 PM
> To: 'Tomcat Users List'
> Subject: RE: Mod_JK.c not compatiable with version of Apache
> 
> 
> 
> You need Apache 2.0.43.  .42 might work, but .41 and .40 won't.
> 
> Or, you can build your own.
> 
> John
> 
> 
> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 17, 2003 6:50 PM
> To: Tomcat Users List
> Subject: RE: Mod_JK.c not compatiable with version of Apache
> 
> 
> Does anyone know why I would get this error when installing 
> mod_JK 2.0.43 on
> Linux 8, with Tomcat 4.1 and Apache 2.0:
> 
> "mod_jk.c not compatible with this version of Apache".
> 
> I presume that when it refers to the "mod_jk.c" it is referring to the
> cmopuled code it derives from the LoadModule command to load 
> the so (?).
> 
> I downloaded the mod_jk-2.0.43.so from the Apache connectors 
> archives.  I
> just used the same version (but as a DLL) successfully on my windows
> workstation.
> 
> Any thoughts?
> 
> Thanks.
> Neal
> 
> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 17, 2003 1:36 PM
> To: Tomcat Users List
> Subject: RE: Mod_JK - JkMount Invalid Command
> 
> 
> John,
> 
> Your tutorial ROCKS!
> 
> It turns out there were 4 distinct problems which I was able 
> to identify in
> part by using the Apache.exe and in part by comparing your 
> steps to the
> collage I had compiled from other incomplete sources.
> 
> My primary problem was that mod_jk.dll was not being recognized so I
> replaced it with the build you were using
> (mod_jk-2.0.43.dll) and from there is was pretty much home free!
> 
> Now on to doing the same on the Linux server (I hope its reasonably
> similar).  :)
> 
> Thanks again.
> Neal
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 17, 2003 11:22 AM
> To: 'Tomcat Users List'
> Subject: RE: Mod_JK - JkMount Invalid Command
> 
> 
> 
> Uncomment those two lines.
> 
> Then, open up a command window and call Apache like this:
> 
> SOME_DRIVE:\SOME\PATH\TO\APACHE\BIN\APACHE.EXE -t
> 
> This will check the syntax of Apache's httpd.conf without 
> starting Apache.
> Fix the errors, then call it with "-t" again until you see 
> "Syntax OK".
> 
> The whole process is described in my HOWTO:
> http://www.johnturner.com/howto/winxp-howto.html
> 
> While the version I use in my HOWTO is 4.1.18, the 
> configuration steps are
> identical, just substitute "4.0.4" wherever you see "4.1.18".
> 
> John
> 
> 
> > -Original Message-
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, January 17, 2003 2:17 PM
> > To: Tomcat Users List
> > Subject: Mod_JK - JkMount Invalid Command
> >
> >
> > I'm trying to setup ModJK for the first time between Apache 2.0 and
> > TOmcat 4.0.4, on Windows 2000.
> >
> > I am stuck with an error I was hoping someone might recognize:
> >
> > It tells me "invliad JKMount command. Perhaps mispelled or 
> defined by
> > a module not included in the server configuration".
> >
> > I presume this is because I have commented out these lines:
> >
> > #LoadModule jk_module modules/mod_jk.so
> > #AddModule mod_jk.c
> >
> > But if I *DONT* comment these out, the test configuration window
> > disappears almost as quickly as it appears and I can't see what the
> > problem is.  There
> > is nothing being logged, and if I try to start from the 
> Apache Service
> > manager I simply get a message stating "The requested
> > operation failed.".
> >
> >
> > Anyone know what's going on?  :(
> >
> > Thanks.
> > Neal
> >
> >
> > --
> > 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:
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.4

Re: Tool for HTTP Request Stress Test

2003-01-20 Thread Erik Price
Oh, I thought he was talking about Internet Explorer.

;)



Erik




Subir Sengupta wrote:

I don't think Micorsoft's WAS is available on their website anymore.

http://webtool.rte.microsoft.com/

Subir

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 6:46 AM
To: Tomcat Users List
Subject: RE: Tool for HTTP Request Stress Test


Jmeter is one from jakarta, (jakarta.apache.org/jmeter)

Microsoft has a WebApplication stresstool that is quite good too (one of the
best apps I've seen from M$). 

Hope it helps
-reynir




-Original Message-
From: randie ursal [mailto:[EMAIL PROTECTED]] 
Sent: 17. janúar 2003 02:37
To: A mailing list about TOMCAT; A mailing list for 
discussion about Sun Microsystem's Java Servlet API Technology.
Subject: Tool for HTTP Request Stress Test


Hi,

  can anyone suggest an HTTP Stress Test tool.

  coz i wanna stress test my web application which is deployed
  on Tomcat.

thanks.





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



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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





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




RE: on File.separator (was: How do I get the absolute path ...)

2003-01-20 Thread Madhava Reddy


-Original Message-
From: Holger Klawitter [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 1:26 PM
To: Tomcat Users List
Subject: OT: on File.separator (was: How do I get the absolute path ...)


Hai,

> > java.io.File dir1 = new java.io.File ("..\\"); // line 1
> new java.io.File( ".." + File.separator ) would be a somewhat cleaner.
> more over, we can use suitabe seperators depending on the operating
system.

>File.separator already gives you the Separator for the current OS.
thanks.. good to know.

> I guess for Unix system this must be a forward slash "/". I'm not sure
> whether its "/" or "//"

>You know why you have to type "\\" instead of "\" in Java, don't you? ;-)

ofcourse..

thanks
Madhava Reddy



OT: on File.separator (was: How do I get the absolute path ...)

2003-01-20 Thread Holger Klawitter
Hai,

> > java.io.File dir1 = new java.io.File ("..\\"); // line 1
> new java.io.File( ".." + File.separator ) would be a somewhat cleaner.
> more over, we can use suitabe seperators depending on the operating system.

File.separator already gives you the Separator for the current OS.

> I guess for Unix system this must be a forward slash "/". I'm not sure
> whether its "/" or "//"

You know why you have to type "\\" instead of "\" in Java, don't you? ;-)

Regards,
Holger


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




DTD doesn't apply to included JSP file

2003-01-20 Thread Ludovic Maitre
Hello,

I have a JSP 1.2 page who include some french character like ô .

The problem is that i have added the entity ocirc; to the dtd of my JSP 
and it seems that the DTD doesn't apply to the JSP files included from 
this page.

I have the following pages :
index.jsp
recherche.jsp

My index.jsp page is written in JSP 1.2 with XML syntax and include a 
declaration of the JSP1.2 DTD :


 "http://localhost:8080/awrgfa/dtd/jspxml.dtd";>

The JSP 1.2 DTD come from the website of Sun (it's annotated "DTD for 
JSP 1.2 thanks to Bob Foster, WebGain") and i use a modified version 
locally who include the following last lines :
http://localhost:8080/awrgfa/dtd/latin1.dtd"; >
%ISOLat1;

the file latin1.dtd contain lines like :



(the normative syntax, used on the W3C website, is :. It doesn't work and trigger  :

org.apache.jasper.JasperException: 
http://localhost:8080/awrgfa/dtd/latin1.dtd(12,18) OpenQuoteMissingInDecl

I don't know why, i think it concern the people of Xerces)

So after this little work, my JSP page can contain HTML entities 
references like  ô.

The problem is that i include the menu to the JSP page with an include 
directive in index.jsp :

	xmlns:jsp="http://java.sun.com/JSP/Page";
	version="1.2">

http://www.w3.org/1999/xhtml";>

Hôtes


...
	
...




The file /pages/menu.jsp is only a fragment of XHTML, he has a reference 
to the entity icirc; :

...
Hôtes
...


The problem is that this entity is unresolved at compilation :

XML Parsing Error: undefined entity
Location: http://localhost:8080/awrgfa/pages/modele.jsp
Line Number 10, Column 37:Hôtes
^

So my questions are :
1 - why the DTD defined in the document who include the others isn't 
applicable to the included documents ?
2 - Who is responsible for this bug (if this is a bug) : Xerces ? Jasper 
? Me ?

So thanks per advance for any answer and  best regards,
--
Ludovic Maître

Factory Productions | Tél: (33) 04 93 07 08 00
149, avenue des mimosas | Fax: (33) 04 93 07 04 02
06700 Saint-Laurent-du-Var (France) | Web: http://www.factory.fr

PS : If possible i don't want to enclose my html in  markups 
because i think that it breaks the possibility to edit the page easily 
in dreamweaver.
PPS : It doesn't work with a jsp:include directive.


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



RE: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Madhava Reddy

-Original Message-
From: Holger Klawitter [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 11:00 AM
To: Tomcat Users List
Subject: Re: How do I get the absolute path of a file in a directory
above WEB-INF directory of my web application?


>   java.io.File dir1 = new java.io.File ("..\\"); // line 1

new java.io.File( ".." + File.separator ) would be a somewhat cleaner.

yes that's better.

more over, we can use suitabe seperators depending on the operating system.
I guess for Unix system this must be a forward slash "/". I'm not sure
whether its "/" or "//"

Madhava Reddy

--
To unsubscribe, e-mail:

For additional commands, e-mail:




Re: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Holger Klawitter
>   java.io.File dir1 = new java.io.File ("..\\"); // line 1

new java.io.File( ".." + File.separator ) would be a somewhat cleaner.



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




HttpServletRequest getPathInfo() doesn't decode properly?

2003-01-20 Thread Andreas Anderson
I can't get Tomcat 4.1.18 to decode path info Correctly.
This works fine with Tomcat 4.0.6. I'm running Tomcat with
JDK 1.4.1 on Win2K.

Here is an example:

public class TestServlet extends HttpServlet {

  public void doGet(HttpServletRequest req, HttpServletResponse res) 
  throws ServletException, IOException {

res.getOutputStream().print(req.getPathInfo());
res.getOutputStream().close();

  }
}


When I invoke the servlet with 
http://localhost:8080/test/TestServlet/x/%E4/x
req.getPathInfo() should return /x/ä/x (the second element in the path
should the scandinavia a with two dots above it) but I get /x/?/x

I wonder what the problem is?

Thanks,
Andreas

_
Surf before you surf - http://www.surf.co.nz

_
Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, 
POP & more! http://www.everyone.net/selectmail?campaign=tag

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




RE: Tomcat 4 - SSL - Client Authentication

2003-01-20 Thread Shiva.Devaguptapu
Yes. Read and write as well.

-Original Message-
From: Christopher Mark Balz [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 2:58 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 - SSL - Client Authentication


Have you checked the permissions to the directory where your keystore is 
held?  The process running the webserver must of course be able to read 
the keystore.
 - CB

Shiva.Devaguptapu wrote:

>Hi,
>   I am using Tomcat 4 on a linux system. I am trying to enable SSL
>with
>client authentication enabled. I want the client to be the Internet
>Explorer, running
>on Win2K, my desktop. I found the following steps on the net and tried.
>*  Create keys on the server
>*  Create the certificate on the server
>*  Uncomment the required part in the server.xml of Tomcat
>*  Enter appropriate values for the attributes in server.xml as :
>   className="org.apache.catalina.connector.http.HttpConnector"
>  port="8453" minProcessors="5"
>maxProcessors="75"
>  enableLookups="true"
>  acceptCount="10" debug="0"
>scheme="https" secure="true">
> className="org.apache.catalina.net.SSLServerSocketFactory"
>   
>keystoreFile="/home/shiva/tomcat/keystore/server.keystore"
>  keystorePass="changeit"
>  clientAuth="true"
>protocol="TLS"/>
>   
>*  Create keys on the client
>*  Create the certificate on the client
>*  Import the cliet certificate on the server
>*  Import the client certificate into Internet Explorer
>   Now I started tomcat and I tried to access from the IE, the URL
>https://192.168.200.12:8453 - then the Client Authentication dialog box
>appears
>without any certificates in the list, as a result I cannot select any
>certificate, and
>if I click on OK button, it says page cannot be displayed.
>   I also tried importing the client certificate into
>$JAVA_HOME/jre/lib/security/cacerts
>on the serverand even that did not solve the problem and even I tried
>importing
>the server certificate on the client side into
>$JAVA_HOME/jre/lib/security/cacerts
>and into IE as well and even after the problem is not solved.
>   I am including all the commands I used to perform the above steps.
>Can anyone help me out in getting this done.
>Thanks in advance,
>Shiva.
>
>=
>Commnands used
>=
>***For generating server keys on Linux***
>keytool -genkey -alias tomcat-sv \
>  -keyalg RSA -keypass changeit \
>  -storepass changeit \
>  -keystore $CATALINA_HOME/keystore/server.keystore
>***this keystore directory is created by me***
>---
>***For generating server cetificate on Linux***
>keytool -export -alias tomcat-sv \
>  -storepass changeit \
>  -file server.cer \
>  -keystore $CATALINA_HOME/keystore/server.keystore
>---
>***For generating client keys on Win2K***
>keytool -genkey -alias tomcat-cl ^
>  -keyalg RSA -keypass changeit ^
>  -storepass changeit ^
>  -keystore C:\ssltest\mykeystore\client.keystore
>---
>***For generating client cetificate on Win2K***
>keytool -export -alias tomcat-cl ^
>  -storepass changeit ^
>  -file C:\ssltest\client.cer ^
>  -keystore C:\ssltest\mykeystore\client.keystore
>---
>***For importing the client certificate on the server***
>keytool -import -v -trustcacerts \
>  -alias tomcat -file client.cer \
>  -keypass changeit \
>  -storepass changeit \
>  -keystore /home/lotto/lotto/utilities/tomcat/keystore/server.keystore
>=
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>
>  
>


-- 
". . . / This Cabinet is formd of Gold / And Pearl & Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames & other Hills / And another pleasant Surrey Bower
. . ."
- from "The Crystal Cabinet", a poem by William Blake.



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Apache Tomcat Virtual Host

2003-01-20 Thread adrian
Chris Schild wrote:


Hi all,
I am a newbie to Tomcat.  I'm having a problem with configuring the virtual host with Tomcat.  

The problem is that I cannot get the examples/jsp to work with the virtual host?!?  

A window pops up asking to open or save the source when I try to execute an example.

I'm sure I need to be more specific, I'm not quite sure what to ask at this point.  Do I not have the correct paths configured with Tomcat?

http://localhost/examples/jsp/index.html is functioning correctly.

I have gone thru the archives but nothing seems to be pointing me in the right direction.

Any advice would be much appreciated!
 

What connector are you using ? Where do you define the virtual host ? If 
you`re using mod_jk what are you JkMounts ?


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



Please help with LogConfigurationException

2003-01-20 Thread Collins, Jim
Hi,

I am still getting this Exception thrown. Has anyone else ever had this and
know of a fix. Any help at all would be appreciated as this is causing me a
lot of problems

Thanks

Jim.

> A quick update. I have now copied the log4J jar file to 
> commons/lib and
> restarted the server so that is now uses log4J instead of the 
> JDK1.4 logger.
> After a couple of hours I got this error:
> 
> org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfigurationException: Class
> org.apache.commons.logging.impl.Log4JCategoryLog does not 
> implement Log
> at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> FactoryImpl.ja
> va:530)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
> FactoryImpl.ja
> va:285)
> at 
> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
> at
> org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl
> er.java:97)
> at org.apache.tomcat.util.log.Log.log(Log.java:198)
> at org.apache.tomcat.util.log.Log.log(Log.java:192)
> at org.apache.tomcat.util.log.Log.log(Log.java:174)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.jav
> a:536)
> at java.lang.Thread.run(Thread.java:536)
> Caused by: org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfigurationException: Class
> org.apache.commons.logging.impl.Log4JCategoryLog does not 
> implement Log
> at
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> or(LogFactoryI
> mpl.java:415)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> FactoryImpl.ja
> va:523)
> ... 8 more
> Caused by: org.apache.commons.logging.LogConfigurationException: Class
> org.apache.commons.logging.impl.Log4JCategoryLog does not 
> implement Log
> at
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> or(LogFactoryI
> mpl.java:411)
> ... 9 more
> 
> Could anyone please give me some clue as to what I can do. I have not
> changed anything for some time now and prior to these errors 
> that have just
> started happening I have not had to restart the server for 
> weeks. Now I am
> having to start it more than once every day.
> 
> Thanks
> 
> Jim.
> 
> > -Original Message-
> > From: Collins, Jim [mailto:[EMAIL PROTECTED]]
> > Sent: 17 January 2003 12:31
> > To: 'Tomcat Users List'
> > Subject: RE: Log Error
> > 
> > 
> > I have upgraded the JDK to 1.4.1 and it is still happening.
> > 
> > > -Original Message-
> > > From: Collins, Jim 
> > > Sent: 17 January 2003 10:04
> > > To: 'Tomcat Users List'
> > > Subject: Log Error
> > > 
> > > 
> > > Hi,
> > > 
> > > I am using Tomcat4.1.10 and JDK1.4.0 and I have started to 
> > > get the following error message after which Tomcat crashes.
> > > 
> > > org.apache.commons.logging.LogConfigurationException: 
> > > org.apache.commons.logging.LogConfigurationException: 
> > > org.apache.commons.logging.LogConfigurationException: Class 
> > > org.apache.commons.logging.impl.Jdk14Logger does not implement Log
> > > at 
> > > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> > > FactoryImpl.java:530)
> > > at 
> > > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log
> > > FactoryImpl.java:285)
> > > at 
> > > org.apache.commons.logging.LogFactory.getLog(LogFactory.java:401)
> > > at 
> > > org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandl
> > > er.java:97)
> > > at org.apache.tomcat.util.log.Log.log(Log.java:198)
> > > at org.apache.tomcat.util.log.Log.log(Log.java:192)
> > > at org.apache.tomcat.util.log.Log.log(Log.java:174)
> > > at 
> > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > > ThreadPool.java:536)
> > > at java.lang.Thread.run(Thread.java:536)
> > > Caused by: 
> > > org.apache.commons.logging.LogConfigurationException: 
> > > org.apache.commons.logging.LogConfigurationException: Class 
> > > org.apache.commons.logging.impl.Jdk14Logger does not implement Log
> > > at 
> > > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> > > or(LogFactoryImpl.java:415)
> > > at 
> > > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log
> > > FactoryImpl.java:523)
> > > ... 8 more
> > > Caused by: 
> > > org.apache.commons.logging.LogConfigurationException: Class 
> > > org.apache.commons.logging.impl.Jdk14Logger does not implement Log
> > > at 
> > > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct
> > > or(LogFactoryImpl.java:411)
> > > ... 9 more
> > > 
> > > I have not changed anything to the configuration and it was 
> > > working fine in the past I have just started to notice this 
> > > in the last week or so. If anyone has any idea

Re: Tomcat 4 - SSL - Client Authentication

2003-01-20 Thread Christopher Mark Balz
Have you checked the permissions to the directory where your keystore is 
held?  The process running the webserver must of course be able to read 
the keystore.
- CB

Shiva.Devaguptapu wrote:

Hi,
	I am using Tomcat 4 on a linux system. I am trying to enable SSL
with
client authentication enabled. I want the client to be the Internet
Explorer, running
on Win2K, my desktop. I found the following steps on the net and tried.
*	Create keys on the server
*	Create the certificate on the server
*	Uncomment the required part in the server.xml of Tomcat
*	Enter appropriate values for the attributes in server.xml as :

className="org.apache.catalina.connector.http.HttpConnector"
   port="8453" minProcessors="5"
maxProcessors="75"
   enableLookups="true"
   acceptCount="10" debug="0"
scheme="https" secure="true">
  
className="org.apache.catalina.net.SSLServerSocketFactory"
	
keystoreFile="/home/shiva/tomcat/keystore/server.keystore"
   keystorePass="changeit"
   clientAuth="true"
protocol="TLS"/>

*	Create keys on the client
*	Create the certificate on the client
*	Import the cliet certificate on the server
*	Import the client certificate into Internet Explorer
	Now I started tomcat and I tried to access from the IE, the URL
https://192.168.200.12:8453 - then the Client Authentication dialog box
appears
without any certificates in the list, as a result I cannot select any
certificate, and
if I click on OK button, it says page cannot be displayed.
	I also tried importing the client certificate into
$JAVA_HOME/jre/lib/security/cacerts
on the serverand even that did not solve the problem and even I tried
importing
the server certificate on the client side into
$JAVA_HOME/jre/lib/security/cacerts
and into IE as well and even after the problem is not solved.
	I am including all the commands I used to perform the above steps.
Can anyone help me out in getting this done.
Thanks in advance,
Shiva.

=
Commnands used
=
***For generating server keys on Linux***
keytool -genkey -alias tomcat-sv \
 -keyalg RSA -keypass changeit \
 -storepass changeit \
 -keystore $CATALINA_HOME/keystore/server.keystore
***this keystore directory is created by me***
---
***For generating server cetificate on Linux***
keytool -export -alias tomcat-sv \
 -storepass changeit \
 -file server.cer \
 -keystore $CATALINA_HOME/keystore/server.keystore
---
***For generating client keys on Win2K***
keytool -genkey -alias tomcat-cl ^
 -keyalg RSA -keypass changeit ^
 -storepass changeit ^
 -keystore C:\ssltest\mykeystore\client.keystore
---
***For generating client cetificate on Win2K***
keytool -export -alias tomcat-cl ^
 -storepass changeit ^
 -file C:\ssltest\client.cer ^
 -keystore C:\ssltest\mykeystore\client.keystore
---
***For importing the client certificate on the server***
keytool -import -v -trustcacerts \
 -alias tomcat -file client.cer \
 -keypass changeit \
 -storepass changeit \
 -keystore /home/lotto/lotto/utilities/tomcat/keystore/server.keystore
=

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

 



--
". . . / This Cabinet is formd of Gold / And Pearl & Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames & other Hills / And another pleasant Surrey Bower
. . ."
- from "The Crystal Cabinet", a poem by William Blake.



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




Tomcat 4 - SSL - Client Authentication

2003-01-20 Thread Shiva.Devaguptapu
Hi,
I am using Tomcat 4 on a linux system. I am trying to enable SSL
with
client authentication enabled. I want the client to be the Internet
Explorer, running
on Win2K, my desktop. I found the following steps on the net and tried.
*   Create keys on the server
*   Create the certificate on the server
*   Uncomment the required part in the server.xml of Tomcat
*   Enter appropriate values for the attributes in server.xml as :

  

*   Create keys on the client
*   Create the certificate on the client
*   Import the cliet certificate on the server
*   Import the client certificate into Internet Explorer
Now I started tomcat and I tried to access from the IE, the URL
https://192.168.200.12:8453 - then the Client Authentication dialog box
appears
without any certificates in the list, as a result I cannot select any
certificate, and
if I click on OK button, it says page cannot be displayed.
I also tried importing the client certificate into
$JAVA_HOME/jre/lib/security/cacerts
on the serverand even that did not solve the problem and even I tried
importing
the server certificate on the client side into
$JAVA_HOME/jre/lib/security/cacerts
and into IE as well and even after the problem is not solved.
I am including all the commands I used to perform the above steps.
Can anyone help me out in getting this done.
Thanks in advance,
Shiva.

=
Commnands used
=
***For generating server keys on Linux***
keytool -genkey -alias tomcat-sv \
  -keyalg RSA -keypass changeit \
  -storepass changeit \
  -keystore $CATALINA_HOME/keystore/server.keystore
***this keystore directory is created by me***
---
***For generating server cetificate on Linux***
keytool -export -alias tomcat-sv \
  -storepass changeit \
  -file server.cer \
  -keystore $CATALINA_HOME/keystore/server.keystore
---
***For generating client keys on Win2K***
keytool -genkey -alias tomcat-cl ^
  -keyalg RSA -keypass changeit ^
  -storepass changeit ^
  -keystore C:\ssltest\mykeystore\client.keystore
---
***For generating client cetificate on Win2K***
keytool -export -alias tomcat-cl ^
  -storepass changeit ^
  -file C:\ssltest\client.cer ^
  -keystore C:\ssltest\mykeystore\client.keystore
---
***For importing the client certificate on the server***
keytool -import -v -trustcacerts \
  -alias tomcat -file client.cer \
  -keypass changeit \
  -storepass changeit \
  -keystore /home/lotto/lotto/utilities/tomcat/keystore/server.keystore
=

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




URL Mappings on Tomcat 3.3 must go between servlet and security sections.

2003-01-20 Thread Christopher Mark Balz
Apparently, this is the case.  Yet another awful fact for those stuck 
with Tomcat 3.3.



  

  DynaFastSurv3


  /s3

  

--
". . . / This Cabinet is formd of Gold / And Pearl & Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames & other Hills / And another pleasant Surrey Bower
. . ."
- from "The Crystal Cabinet", a poem by William Blake.



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



RE: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Madhava Reddy
Peter, 

this may help you,

try{
java.io.File dir1 = new java.io.File ("..\\"); // line 1
System.out.println ("Current dir : " + dir1.getCanonicalPath());
String[] contents = dir1.list();
if(contents != null)
for(int i=0;imailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 9:54 AM
To: Tomcat Users List
Subject: Re: How do I get the absolute path of a file in a directory
above WEB-INF directory of my web application?


I don't know offhand how you can do that, but if you want to reach up 
above the WEB-INF directory, you can use dot-dot (..).
 - CB

Peter Lee wrote:

>I am using Tomcat for servlets. 
>How  do I get the absolute path of a file in a directory above WEB-INF
>directory of my 
>web application?
>
>Thanks
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>
>  
>


-- 
". . . / This Cabinet is formd of Gold / And Pearl & Crystal shining bright
And within it opens into a World / . . .
Another England there I saw / Another London with its Tower
Another Thames & other Hills / And another pleasant Surrey Bower
. . ."
- from "The Crystal Cabinet", a poem by William Blake.



--
To unsubscribe, e-mail:

For additional commands, e-mail:




  1   2   >