RE: How can I run tomcat on port 8080 and have the users think it's on port 80?

2003-06-08 Thread Lee Chin Khiong

But this site doesn't contain any detail configuration.


-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 10:57 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: How can I run tomcat on port 8080 and have the users think
it's on port 80?


Forget mod_rewrite.  You just have to use the AJP Connector that is supplied
with Tomcat to connect it to Apache and have apache work on port  80.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

Surf about a bit to find the correct version for you if you are not running
Tomcat 4.0.

If there is something preventing you from using this connector tell the list
about it and we'll see what we can do ;-)

Enjoy,

Andoni.

- Original Message -
From: "Michael Mattox" <[EMAIL PROTECTED]>
To: "Xavier Ambrosioni" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, June 06, 2003 2:34 PM
Subject: RE: How can I run tomcat on port 8080 and have the users think it's
on port 80?


> We have this working for incoming requests, the problem we're having is
the
> website uses relative links.  Since tomcat is running on port 8080, a
> relative link has port 8080 in it.  Apparently Apache isn't rewriting this
> before it's sent back to the client, and port 8080 shows up in the
client's
> browser.
>
> Is Apache's mod_rewrite supposed to handle this?  Perhaps we haven't set
it
> up properly??
>
> Thanks,
> Michael
>
>
> > -Original Message-
> > From: Xavier Ambrosioni [mailto:[EMAIL PROTECTED]
> > Sent: Friday, June 06, 2003 2:17 PM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Re: How can I run tomcat on port 8080 and have the users think
> > it's on port 80?
> >
> >
> > You can use the mod_rewrite module in apache to rewrite and redirect URL
> > from port 80 to port 8080.
> > With this module, apache can be used as a proxy that only redirect urls
> > to the right port.
> >
> >
> > Xavier
> >
> >
> >
> > [EMAIL PROTECTED] wrote:
> > >
> > > I'd like to run Tomcat on port 80 but I don't want to run it as
> > root.  Is it
> > > possible to run it on 8080 yet have the users access it via port 80?
My
> > > admin has set it up this way but the problem is all relative
> > links in my app
> > > show up as :8080.  So once the user clicks on a link they see
> > 8080 from then
> > > on.
> > >
> > > Thanks,
> > > Michael Mattox
> > >
> > > --
> > > This E-mail is confidential.  It may also be legally
> > privileged.  If you are
> > > not the addressee you may not copy, forward, disclose or use
> > any part of it.
> > > If you have received this message in error, please delete it
> > and all copies
> > > from your system and notify the sender immediately by return E-mail.
> > > Internet communications cannot be guaranteed to be timely,
> > secure, error or
> > > virus-free.  The sender does not accept liability for any
> > errors or omissions.
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> This E-mail is confidential.  It may also be legally privileged.  If you
are
> not the addressee you may not copy, forward, disclose or use any part of
it.
> If you have received this message in error, please delete it and all
copies
> from your system and notify the sender immediately by return E-mail.
> Internet communications cannot be guaranteed to be timely, secure, error
or
> virus-free.  The sender does not accept liability for any errors or
omissions.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


RE: [SOLVED] -Xincgc, -Xms600, -Xmx600

2003-06-08 Thread Jason Efting

I finally managed to get my issue sorted out. After installing Tomcat
on another machine to do some testing I noticed that it had the following
value in the registry:

JVM Library: C:\jdk1.3.1_03\jre\bin\hotspot\jvm.dll

After changing this value to the server\jvm.dll my Tomcat is performing
incremental garbage collection as expected had doesn't crash when reaching
it's -Xms600 limit. I was even able to lower -Xms600 to -Xms256 and everything
seem stable.

Thanks for all the suggestions.

Any comments?

Regards
Jason



-
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

Re: precompiled jsp's as a part of application war file

2003-06-08 Thread Bill Barker
You have a bunch of servlet-mappings in your web.xml file that map that maps
the jsp URL to the pre-compiled class.  Jspc will generate these for you.

One gotcha with doing this is that TC 4.x won't find welcome-files (e.g.
index.jsp) unless there is an actual file with that name.  The file can be
empty, but it has to exist.

"Rob" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I would like to bundle my application into a single .war file.
> In addition I would like to include the precompiled .jsp files
> in the war file as opposed to the .jsp files themselves.
>
> Is there a way to do this?  I would like to deploy my
> application to a target without a `javac`.
>
> A description of how would be appreciated, particularly
> where within my hierarchy I place the class files and how it
> affects the requests for those .jsp files (ie can a person still
> type in http://www.foo.com/myapp/my.jsp) or do they end up
> being used as servlets instead?
>
> Thanks
>
> Rob




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



RE: Assessing Tomcat's State

2003-06-08 Thread Yoav Shapira
Howdy,
I use nagios for this: www.nagios.org.

Yoav Shapira


=
Yoav Shapira
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Re: using element

2003-06-08 Thread Joël Wijngaarde
Are you sure you added the error-page at the correct position inside the
web.xml file. Remember, order is important !

/ Joel

On Fri, 2003-06-06 at 23:24, Tim O'Dowd wrote:
> I am trying to setup an error page for 404 errors in tomcat4.1.24.  The 
> web.xml file worked fine originally.  So I added the error-code element 
> within the  element:
> 
> 
> ...
> <--I added this part-->
> 
> 
> 404
> 
> 
> /jsp/shared/Error_404.jsp
> 
> 
> <--end of part I added-->
> ...
> 
> 
> When I start tomcat, i get an exception complaining about the content of 
> web-app must contain  and a parse error is reported at the last line 
> () of the file. Does anyone see my error?
> 
> thanks for any help.
> tim
> 
> _
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
> http://join.msn.com/?page=features/virus
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 3
-- 
Joël Wijngaarde <[EMAIL PROTECTED]>
Us Media


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



Re: Newbie Q:How to prevent Directory listing in Tomcat?

2003-06-08 Thread Tim Funk
http://tomcatfaq.sourceforge.net/configure.html

-Tim



[EMAIL PROTECTED] wrote:
How can I prevent a client from listing the contents of my web appl. 
directories without having to put an 'index.html' in the base of each directory?

Thanks.

Bob.

P.s.: I can find any solution(s) in the Tomcat-user archive:



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


Newbie Q:How to prevent Directory listing in Tomcat?

2003-06-08 Thread ThePrahs
How can I prevent a client from listing the contents of my web appl. 
directories without having to put an 'index.html' in the base of each directory?

Thanks.

Bob.

P.s.: I can find any solution(s) in the Tomcat-user archive:


RE: Assessing Tomcat's State

2003-06-08 Thread lists
On 8 Jun 2003 at 21:59, Euan Guttridge wrote:

> slightly off subject : has anyone written a 'watchdog' for tomcat? Simply a
> process that checks if tomcat is alive every x seconds, if dead restarts
> tomcat. 

I was after this a couple of months back.  I found the solution in a list and 
accomodated it for 
tomcat.  Nothing briliant, nor is it the only way..  But its quick, short and sweet.  
This past 
week I did this "type" of heartbeat mechanism, currently for an app on BEA 7.0

Criteria for the Tomcat heartbeat:

1. Tomcat request
a. No response no tomcat   -  Down
b. A Response tomcat is up
   > If the requested servlet is not available  then Tomcat throws a 404 
status code

With this in mind:

create a heartbeat servlet  that calls hbURLCon = (HttpURLConnection)   
url.openConnection(); at 
some time interval.

StatusCode  =hbURLCon.getResponseCode();
if (statusCode > 400 & statusCode < 500) {
   // report Tomcat up
}  

You can get more sophisticated if you like.







isapi_redirector.dll

2003-06-08 Thread Gupta, Ashish (CORP, Consultant)
Hello All,
   I was able to find all the correct version of isapi_redirector.dll and the document 
for configuring tomcat 3.2 with IIS. However, the document does not mention the 
details of how to configure tomcat and IIS to work with each other if both are on 
different machines/Servers. 

The registry setting modifications mentioned in the installation file, do they need to 
be made in the IIS server or in the Tomcat server.
 
Any help would be appreciated.
Thanks,
Ashish

-Original Message-
From: Gupta, Ashish (CORP, Consultant) 
Sent: Sunday, June 08, 2003 4:19 PM
To: [EMAIL PROTECTED]
Subject: isapi_redirector.dll


Hello All,
   I am trying to download a copy of isapi_redirector.dll for Tomcat
version 3.2. However i am not able to find the same anywhere on the
Jakrata tomcat site. If someone is aware of a place where i can find the
same, i would appreciate if the same could be passed onto me.
 
  I am trying to configure IIS with tomcat so that IIS is able to parse
JSP's. IIS and Tomcat are on different servers. Is it necessary to have
JDK installed on both the servers or does it suffice to have JDK only on
the server in which Tomcat is installed?
 
Is their a configuration document available for Tomcat-IIS-howto for
Tomcat version 3.2, the one i have been able to find is for version 3.3.
 
TIA,
Ashish

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



RE: Assessing Tomcat's State

2003-06-08 Thread Euan Guttridge
slightly off subject : has anyone written a 'watchdog' for tomcat? Simply a
process that checks if tomcat is alive every x seconds, if dead restarts
tomcat. 

Thanks
Euan

-Original Message-
From: Yoav Shapira [mailto:[EMAIL PROTECTED]
Sent: 08 June 2003 03:23
To: Tomcat Users List
Subject: Re: Assessing Tomcat's State


Howdy,
Note that the premise of your question is flawed without a precise
definition
of "starting up" and "shutting down."  Consider a tomcat instance with N
webapps, each of which with one ServletContextListener.  Tomcat on startup
will
send the contextInitialized event to each of these listeners.  Each listener
may do things that take a long time, and may or may not do them in the
background.  

In the above scenario, when is the "starting up" state over and the
"started"
state entered?  Is it when tomcat sends all N events, or when all N events
are
done processing?

Similar scenarios can easily be construed for shutting down, and they are
not
limited to listeners as filters and servlets can all do varying amounts of
processing on startup and shutdown.

All of this may not matter in your scenario, so you may not have to worry
about
it at all ;)  But they are important to keep in mind if you're trying to
come
up with some sort of general solution.

Yoav Shapira


--- "Francisco J. Bido" <[EMAIL PROTECTED]> wrote:
> That's a good idea.  Thanks!
> 
> Take care,
> -FB
> 
> 
> On Saturday, June 7, 2003, at 03:23  PM, Tim Funk wrote:
> 
> > The easy kluge is to hack the startup scripts  (or write wrappers) 
> > around the startup scripts to maintain this status in some file, for 
> > arguements sake: cowbell.txt
> >
> > In startup.sh --> echo "starting" > cowbell.txt
> > In startup.sh, a timer does wgets on a static asset. Once the asset is 
> > returned correctly: echo "started" > cowbell.txt
> >
> > In shutdown.sh --> echo "stopping" > cowbell.txt
> > In shutdown.sh --> A timer looking for the java process id. Once the 
> > process ID is gone, echo "stopped" > cowbell.txt
> >
> >
> > -Tim
> >
> > Francisco J. Bido wrote:
> >> Thanks Tim,
> >> Those suggestions work pretty well for checking the "running" and the 
> >> "stopped" states.  The ones giving me a headache are really "starting 
> >> up" and "shutting down".The only thing I can think of at this 
> >> point is to monitor the size of catalina.out and trigger an event 
> >> went it doesn't change.
> >> This is nasty since many things can cause the file to appear idle 
> >> i.e., a busy CPU.  Any thoughts on these assessing these remaining 
> >> states?
> >> -FB
> >> On Saturday, June 7, 2003, at 02:41  PM, Tim Funk wrote:
> >>> Depending on your needs if you just need UP or down, you can use 
> >>> wget or a similar agent.
> >>>
> >>> You can also set CATALINA_PID in unix before calling the startup 
> >>> scripts and the file referenced by CATALINA_PID will contain the 
> >>> process ID.
> >>>
> >>> Or you can write a LifeCycle Listener to trap startup and shutdown 
> >>> events.
> >>>
> >>>
> >>> -Tim
> >>>
> >>> Francisco J. Bido wrote:
> >>>
>  Is there any way to assess Tomcat's state via an environment 
>  variable?  For example, I would like to poll an environment 
>  variable to see if Tomcat is:
>  1. starting up
>  2. running
>  3. shutting down
>  4. stopped
>  There're a bunch of other states out there but the above fulfill my 
>  immediate needs.
>  Parsing through the catalina.out log file is the only way I know 
>  how to do this but this is approach is way too clumsy and ugly.
>  Thanks!
>  -FB
> 
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


=
Yoav Shapira
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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

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



RE: precompiled jsp's as a part of application war file

2003-06-08 Thread Euan Guttridge
Tomcat documentation advises pre-compilation is used only to test all your
jsps compile ok. Not to deploy pre-compiled jsps but instead to use
something like httpunit, or a webload script to automatically call your jsps
to be compiled by tomcat. However the Jasper documentation states to go
ahead to use Ant's jspc task to precompile then deploy! 

If you want to give it a go the Ant & Jasper documentation for jspc is all
you should need. 
http://ant.apache.org/manual/index.html 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html#Web%20Appl
ication%20Compilation. 
Also check out Maven - it has a web.xml merge function you could use to
fully automate a build,compile, deploy script.

You could also try the alpha Tomcat 5. Quoted from
http://jakarta.apache.org/tomcat/
"Refactored application deployer, with an optional standalone deployer
allowing validation and compilation of a web application before putting it
in production". 

I would be interested to hear how and what you do..

Cheers
Euan



-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 08 June 2003 19:01
To: Tomcat Users List
Subject: Re: precompiled jsp's as a part of application war file


- Precompile your jsp's
- Precompiling also involves changing your web.xml to map jsp files to the 
compiled version of your class

Precompiling involves translating your jsp's to class files webapp build
time 
(instead of run time) via jspc(?). The class files will reside in your 
WEB-INF/classes directory somewhere.

I have never done precompiling in 4.X (so I don't the actual tech 
instructions of how to do so)



-Tim

Rob wrote:
> I would like to bundle my application into a single .war file.
> In addition I would like to include the precompiled .jsp files
> in the war file as opposed to the .jsp files themselves.
> 
> Is there a way to do this?  I would like to deploy my
> application to a target without a `javac`.
> 
> A description of how would be appreciated, particularly
> where within my hierarchy I place the class files and how it
> affects the requests for those .jsp files (ie can a person still
> type in http://www.foo.com/myapp/my.jsp) or do they end up
> being used as servlets instead?
> 
> Thanks
> 
> Rob
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

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



JBossMQ vs JBoss (General Message Queue)

2003-06-08 Thread Jason Efting
Hi,
I'm busy reading some material on Message Queing and would like to get some opinions.
 
Does anybody have any experience using JBoss as a mesage queue broker toghether with 
Tomcat?
 
I downloaded JBoss and JBossMQ but cannot determince the difference?
 
Where can I get some documentation regarding the usage of a message queue with JBoss 
and Tomcat?
 
Basically, all I would like to do is have a web based interface where admin can view 
messages received and send messages to another message broker (Soniq or MQSeries)? Any 
ideas, docs or code snippets would be appreciated.
 
Regards,
Jason


-
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

isapi_redirector.dll

2003-06-08 Thread Gupta, Ashish (CORP, Consultant)
Hello All,
   I am trying to download a copy of isapi_redirector.dll for Tomcat version 3.2. 
However i am not able to find the same anywhere on the Jakrata tomcat site. If someone 
is aware of a place where i can find the same, i would appreciate if the same could be 
passed onto me.
 
  I am trying to configure IIS with tomcat so that IIS is able to parse JSP's. IIS and 
Tomcat are on different servers. Is it necessary to have JDK installed on both the 
servers or does it suffice to have JDK only on the server in which Tomcat is installed?
 
Is their a configuration document available for Tomcat-IIS-howto for Tomcat version 
3.2, the one i have been able to find is for version 3.3.
 
TIA,
Ashish


RE: Switching to virtual hosts gives permission error

2003-06-08 Thread Dave Weitzel
Jeff
Thanks for your feedback and idea.
I have eventually found that when you switch on NameVirtualHost then Apache
needs r-x permissions on all the folders in your tree.

I was running under /home/tomcat/tomcat3/webapps... and had mode 744 on all
directories except /home/tomcat (700 as you would expect)

Just so very odd given that 
a) tomcat is accessing this area - was running under user tomcat
b) Apache without the VirtualHost turned on was able to work fine.

Dave

> -Original Message-
> From: Jeff Knox [mailto:[EMAIL PROTECTED]
> Sent: Sunday, June 08, 2003 12:02 PM
> To: Tomcat Users List
> Subject: Re: Switching to virtual hosts gives permission error
> 
> Dave,
> 
> I saw something like that if I didn't put the virtual host directories
> in CATALINA_HOME/webapps/ROOT. I could live with that, but then I had a
> major problem. I couldn't get forms using POSTs or URLs with parameters
> to work (ex:  index.jsp?name=bob). Somebody recommended that move from
> mod_jk to mod_jk2. Mod_jk2 needs threaded Apache and instead of
> recompiling Apache 1.3 I upgraded to 2.0. The Apache 2.0/mod_jk2/Tomcat
> 4.1 combination works great. The GET method works and I was able to
> move my htdocs directories back to their original locations.
> 
> I hope this helps.
> 
> Jeff
> 
> 
> On Saturday, June 7, 2003, at 12:43  PM, Dave Weitzel wrote:
> 
> > I am setting up RH Linux with Apache 1.3.27 and tomcat 3.3.1a
> >
> > I am able to set up in initial sites and access directly with Tomcat
> > (port
> > 8080) and also individually with Apache and Tomcat (ajp13)
> >
> >
> >
> > However as soon as I enable NameVirtualHost * in the httpd.conf and put
> >   around the JkMount directives with
> > associated
> > DocumentRoot and ServerName entries I get Apache reporting:
> >
> >
> >
> > Forbidden
> >
> > You do not have access to / (or whatever URL I type in.)
> >
> >
> >
> > Has anyone seen this before?
> >
> >
> >
> >
> >
> >
> >
> > Dave Weitzel | Consulting Manager Teamware
> >
> > Avectra - A Teamware Partner
> >
> > [EMAIL PROTECTED] 
> >
> > phone: +1 703 394 0980 ext 1241 fax: +1 703 394 0985
> >
> > cell phone: + 1 240 401 9505.
> >
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: Run Tomcat not as root

2003-06-08 Thread Yoav Shapira
Howdy,
Tomcat is a java program: whatever runs the java command is what runs tomcat. 
So if you create a user named tomcat with permission to run
$JAVA_HOME/bin/java, you're pretty much all set.  Make sure the user has rwx
permissions to tomcat's logs, temp, and work directories, and at least read
permissions for all the webapps.

Yoav Shapira

--- [EMAIL PROTECTED] wrote:
> Hi,
> How do I get it so that Tomcat does not run as root when I start it up on
> 
> Linux? I know in Apache I create a new group and user and set it inthe 
> httpd.conf file. What is the best way to have the Tomcat run as user tomcat.
> 
> Thanks,
> Kevin
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


=
Yoav Shapira
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Run Tomcat not as root

2003-06-08 Thread kandryc
Hi,
How do I get it so that Tomcat does not run as root when I start it up on 
Linux? I know in Apache I create a new group and user and set it inthe 
httpd.conf file. What is the best way to have the Tomcat run as user tomcat.

Thanks,
Kevin

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



Re: Mailing List for Security warnings

2003-06-08 Thread Tim Funk
AFAIK there are no issues with the default install. But the default install 
does include the examples app - which allows any user to view your 
environment and probably set session variables which could easily allow a 
denial of service attack based on memory consumption.

But then again, if one leaves the example webapp available on a production 
box, someone is not doing their job since only absolutely needed webapps 
should be installed and available on a production server. (Why allocate 
memory for a webapp which shouldn't be used?)

-Tim

Jens Skripczynski wrote:
Ronnie Tartar:

Is there a mailing list for security warnings for tomcat?
Are there any security issues in a default tomcat install ?

Ciao

Jens Skripczynski


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


Re: precompiled jsp's as a part of application war file

2003-06-08 Thread Tim Funk
- Precompile your jsp's
- Precompiling also involves changing your web.xml to map jsp files to the 
compiled version of your class

Precompiling involves translating your jsp's to class files webapp build time 
(instead of run time) via jspc(?). The class files will reside in your 
WEB-INF/classes directory somewhere.

I have never done precompiling in 4.X (so I don't the actual tech 
instructions of how to do so)



-Tim

Rob wrote:
I would like to bundle my application into a single .war file.
In addition I would like to include the precompiled .jsp files
in the war file as opposed to the .jsp files themselves.
Is there a way to do this?  I would like to deploy my
application to a target without a `javac`.
A description of how would be appreciated, particularly
where within my hierarchy I place the class files and how it
affects the requests for those .jsp files (ie can a person still
type in http://www.foo.com/myapp/my.jsp) or do they end up
being used as servlets instead?
Thanks

Rob

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



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


Re: Mailing List for Security warnings

2003-06-08 Thread Jens Skripczynski
Ronnie Tartar:
> Is there a mailing list for security warnings for tomcat?
Are there any security issues in a default tomcat install ?


Ciao

Jens Skripczynski
-- 
E-Mail: skripi-lists(at)myrealbox(dot)com

* life is real - unless declared integer *


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



RE: Mailing List for Security warnings

2003-06-08 Thread bedetrob
If you mean the HTTP Protocol Error Codes, then you can get them at Jiri
Chudoba's page http://offline.home.cern.ch/offline/web/http_error_codes.html
Rob

> -Original Message-
> From: Ronnie Tartar [mailto:[EMAIL PROTECTED]
> Sent: Sunday, June 08, 2003 10:54 AM
> To: '[EMAIL PROTECTED]'
> Subject: Mailing List for Security warnings
>
>
> Is there a mailing list for security warnings for tomcat?
>
> Thanks
>



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



Re: Mailing List for Security warnings

2003-06-08 Thread Tim Funk
Nope. Typically if a security issue is found, it will be discussed by the 
committers to confirm the vulnerability. A patch and a new release is made. 
The announcement of the vulnerabilty and the new release are usually made at 
the same time.

The annoucement is typically made to:
- tomcat-user
- tomcat-dev
- tomcat-announce (I think this is the name)
-Tim

Ronnie Tartar wrote:
Is there a mailing list for security warnings for tomcat?
 
Thanks



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


Mailing List for Security warnings

2003-06-08 Thread Ronnie Tartar
Is there a mailing list for security warnings for tomcat?
 
Thanks


precompiled jsp's as a part of application war file

2003-06-08 Thread Rob
I would like to bundle my application into a single .war file.
In addition I would like to include the precompiled .jsp files
in the war file as opposed to the .jsp files themselves.
Is there a way to do this?  I would like to deploy my
application to a target without a `javac`.
A description of how would be appreciated, particularly
where within my hierarchy I place the class files and how it
affects the requests for those .jsp files (ie can a person still
type in http://www.foo.com/myapp/my.jsp) or do they end up
being used as servlets instead?
Thanks

Rob

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


Re: Switching to virtual hosts gives permission error

2003-06-08 Thread Jeff Knox
Dave,

I saw something like that if I didn't put the virtual host directories 
in CATALINA_HOME/webapps/ROOT. I could live with that, but then I had a 
major problem. I couldn't get forms using POSTs or URLs with parameters 
to work (ex:  index.jsp?name=bob). Somebody recommended that move from 
mod_jk to mod_jk2. Mod_jk2 needs threaded Apache and instead of 
recompiling Apache 1.3 I upgraded to 2.0. The Apache 2.0/mod_jk2/Tomcat 
4.1 combination works great. The GET method works and I was able to 
move my htdocs directories back to their original locations.

I hope this helps.

Jeff

On Saturday, June 7, 2003, at 12:43  PM, Dave Weitzel wrote:

I am setting up RH Linux with Apache 1.3.27 and tomcat 3.3.1a

I am able to set up in initial sites and access directly with Tomcat 
(port
8080) and also individually with Apache and Tomcat (ajp13)



However as soon as I enable NameVirtualHost * in the httpd.conf and put
  around the JkMount directives with 
associated
DocumentRoot and ServerName entries I get Apache reporting:



Forbidden

You do not have access to / (or whatever URL I type in.)



Has anyone seen this before?







Dave Weitzel | Consulting Manager Teamware

Avectra - A Teamware Partner

[EMAIL PROTECTED] 

phone: +1 703 394 0980 ext 1241 fax: +1 703 394 0985

cell phone: + 1 240 401 9505.





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


Something works, but why?

2003-06-08 Thread David Bo Jensen
Apache2 Tomcat5 mod_jk2


Apache2/conf/httpd.conf:



ServerName www.customer1.it
DocumentRoot /home/dbj/httpd/jakarta-tomcat-5.0.2/webapps
ErrorLog logs/cust1-errorlog

JkUriSet worker ajp13:localhost:8009



--
Apache2/conf/workers2.properties Here am I showing everything:


[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0


[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
# For Tomcat 5 use the 'stard' for startup argument
# ARG=stard
disabled=1
stdout=${serverRoot}/logs/stdout.log
stderr=${serverRoot}/logs/stderr.log

[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
disabled=1


[uri:/servlet/*]
info=Extension mapping
-

And now to my question. Why is that working? It doesn't seem that
 the uri tag in the workers.properties is used at all. I thougt that only
 request ending with /servlet/* would be forwarded to tomcat.


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



Re: Clear user session

2003-06-08 Thread Yoav Shapira
Howdy,
Something else is modifying the session (adding/removing attributes or
otherwise modifying the backing collection of your session_var enumeration)
while you're iterating through it.

>  while(session_var.hasMoreElements())
>  {
>  String key=(String)session_var.nextElement();

You need to make the above code synchronized on the session.  This may not be
as trivial as it sounds: for example, it might be impossible if your
environment is clustered.

Alternative options include doing this on session passivation or destruction
(probably the former), using the appopriate listener.  

Why are you clearing all the attributes instead of a specific one?  

Yoav Shapira


=
Yoav Shapira
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Re: help me please???

2003-06-08 Thread Jason Bainbridge
On Sat, 7 Jun 2003 16:26, B.saravanan balasundaram wrote:
> his is saravanan mailing use, i like to use php with tomcat version 4.1 on
> O/S windows 2000.
Hi,

You want the Apache Web Server for PHP not Tomcat, you can download this and 
find out more information from the below URL:

http://httpd.apache.org/

If you want all three Apache, Tomcat and PHP working together then you need to 
plug Tomcat into Apache with mod_jk2.

Regards,
-- 
Jason Bainbridge
http://jblinux.org

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



Re: All threads are busy, waiting

2003-06-08 Thread Yoav Shapira
Howdy,

> Is it the maxProcessor option?

Yes.  See the configuration reference for the Connector element for details.

Yoav Shapira


=
Yoav Shapira
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Re: Assessing Tomcat's State

2003-06-08 Thread Yoav Shapira
Howdy,
Note that the premise of your question is flawed without a precise definition
of "starting up" and "shutting down."  Consider a tomcat instance with N
webapps, each of which with one ServletContextListener.  Tomcat on startup will
send the contextInitialized event to each of these listeners.  Each listener
may do things that take a long time, and may or may not do them in the
background.  

In the above scenario, when is the "starting up" state over and the "started"
state entered?  Is it when tomcat sends all N events, or when all N events are
done processing?

Similar scenarios can easily be construed for shutting down, and they are not
limited to listeners as filters and servlets can all do varying amounts of
processing on startup and shutdown.

All of this may not matter in your scenario, so you may not have to worry about
it at all ;)  But they are important to keep in mind if you're trying to come
up with some sort of general solution.

Yoav Shapira


--- "Francisco J. Bido" <[EMAIL PROTECTED]> wrote:
> That's a good idea.  Thanks!
> 
> Take care,
> -FB
> 
> 
> On Saturday, June 7, 2003, at 03:23  PM, Tim Funk wrote:
> 
> > The easy kluge is to hack the startup scripts  (or write wrappers) 
> > around the startup scripts to maintain this status in some file, for 
> > arguements sake: cowbell.txt
> >
> > In startup.sh --> echo "starting" > cowbell.txt
> > In startup.sh, a timer does wgets on a static asset. Once the asset is 
> > returned correctly: echo "started" > cowbell.txt
> >
> > In shutdown.sh --> echo "stopping" > cowbell.txt
> > In shutdown.sh --> A timer looking for the java process id. Once the 
> > process ID is gone, echo "stopped" > cowbell.txt
> >
> >
> > -Tim
> >
> > Francisco J. Bido wrote:
> >> Thanks Tim,
> >> Those suggestions work pretty well for checking the "running" and the 
> >> "stopped" states.  The ones giving me a headache are really "starting 
> >> up" and "shutting down".The only thing I can think of at this 
> >> point is to monitor the size of catalina.out and trigger an event 
> >> went it doesn't change.
> >> This is nasty since many things can cause the file to appear idle 
> >> i.e., a busy CPU.  Any thoughts on these assessing these remaining 
> >> states?
> >> -FB
> >> On Saturday, June 7, 2003, at 02:41  PM, Tim Funk wrote:
> >>> Depending on your needs if you just need UP or down, you can use 
> >>> wget or a similar agent.
> >>>
> >>> You can also set CATALINA_PID in unix before calling the startup 
> >>> scripts and the file referenced by CATALINA_PID will contain the 
> >>> process ID.
> >>>
> >>> Or you can write a LifeCycle Listener to trap startup and shutdown 
> >>> events.
> >>>
> >>>
> >>> -Tim
> >>>
> >>> Francisco J. Bido wrote:
> >>>
>  Is there any way to assess Tomcat's state via an environment 
>  variable?  For example, I would like to poll an environment 
>  variable to see if Tomcat is:
>  1. starting up
>  2. running
>  3. shutting down
>  4. stopped
>  There're a bunch of other states out there but the above fulfill my 
>  immediate needs.
>  Parsing through the catalina.out log file is the only way I know 
>  how to do this but this is approach is way too clumsy and ugly.
>  Thanks!
>  -FB
> 
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


=
Yoav Shapira
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



help me please???

2003-06-08 Thread B.saravanan balasundaram
Dear sir,

 This is saravanan mailing use, i like to use php with tomcat version 4.1 on O/S 
windows 2000.

I have downloaded php4 and tomcat server and installed the same 
in my system. i have followed all the instructions provided in the 
site "php.net" still im able to work with php & server.Iam furnishing 
all the detail below what i have done, please send me the detail regarding the same...


Installation of Php and configuring:
===

1.UnZip the "php-4.3.1-Win32 " folder into another folder and name it as "php3"
2. Now, if u choose cgi-bin flavour then copy the php extension 
dll files (from "extension" folder)in to
WINNT/System32
3.Now Copy the file, php.ini-dist to 'winnt' folder and save as php.int
4.Edit php.int and find the 'extension_dir' and set it to c:\php3
5.Uncomment all the 'extension="dlls" ' in the php.init
6.ScriptAlias /php3/ "c:/php3" 

 AddType application/x-httpd-php3 .php3 

 AddType application/x-httpd-php3 .phtml 

 Action application/x-httpd-php3 "/php3/php.exe" 

   with thanks sara.



-
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

tomcat and isapi

2003-06-08 Thread Christopher Scaffidi

Dear Sirs and Madams--

Have you had any luck recently in running Tomcat as an ISAPI plugin (by
extension)?  We are having problems with cookies being dropped when running
as a plugin, and any suggestions you might have would be deeply appreciated.

Thanks,
Chris Scaffidi
Software Developer
Princeton Internet Group, Inc.
13 Roszel Rd., Ste. 222C
Princeton, NJ  08540


Clear user session

2003-06-08 Thread shyam
Hi All,

I just moved my webapp from jrun to tomcat. I have a method which clears the
user session. The code snippet is

 Enumeration session_var = session.getAttributeNames();

 while(session_var.hasMoreElements())
 {
 String key=(String)session_var.nextElement();

I am getting an error here and the exception is

java.util.ConcurrentModificationException at
java.util.HashMap$HashIterator.nextEntry

How can I resolve this error.

Thanks a lot in advance
shyam



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



RE: Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-08 Thread Michael Cardon
Thanks Mark,

I tried it on RH Linux 9.0 with the same result myself. I bet your thought
on the recent change on the apr_md5_final is probably correct... no what can
we do about it???

Michael

-Original Message-
From: Mark Eggers [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 07, 2003 10:56 PM
To: Tomcat Users List
Subject: Re: Help Please: Starting Tomcat using channelUnix with mod_jk2


Pascal,

I've been trying the same thing with Redhat 9, and
getting a similar problem.  I even put
/home/apache/lib in /etc/ld.so.conf and ran
/sbin/ldconfig -v.  I verified that that shared
libraries are indeed loaded.

I also tried modifying /home/tomcat/bin/catalina.sh to
include a -Djava.library.path=[various things], but
that failed to work as well.

I'll think about it some more tomorrow.

One thing to note:  In the source code, there has been
a recent change from apr_MD5FINAL to apr_md5_final.
I'm wondering if the propagation has made it all the
way through.

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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


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



RE: Help Please: Starting Tomcat using channelUnix with mod_jk2

2003-06-08 Thread Michael Cardon
Thanks Chong,

Yes, I did make the symbolic link as you mentioned.  Now I have a question
for you. In your server.xml file, in the connector definition, you are still
using port 8009. When using channelUnix shouldn't the port be set to 0
(zero)?

Michael


-Original Message-
From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 07, 2003 10:22 PM
To: Tomcat Users List
Subject: Re: Help Please: Starting Tomcat using channelUnix with mod_jk2


Michael Cardon wrote:

>Thanks Chong,
>
>I did have the apache2-devel package installed, but I started a fresh
>install of Linux 8.0 and all the rpm's following your instructions again
>anyway.
>
>I'm ready to pull my hair out I get the same error about the undefined
>symbol: apr_md5_final
>
>
Something occurred to me last night -- I forgot to remind you about a
certain symbolic link you need to make. You see, RH8 names the APR file
differently. Not sure if you did this :

*# ln -s /usr/lib/libapr-0.so.0.9.3 /usr/lib/libapr.so.0

*Regards,
pascal chong




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


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