RE: simple context question for tomcat

2002-03-15 Thread Jeff Prideaux

Thanks Chris.  It will take a bit of editing, but that will solve the
problem since I'm using all jsp pages

Although, in our production environment, our webapp has its own sub-domain,
so

jsp:include page=/commmon/header.jsp flush=true/

and

a href=/common/header.jsptest/a

both go to the same place.  The problem is in my development environment
(which I am not familiar with configuring subdomains or contexts...).


-Original Message-
From: Chris Novak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 6:52 PM
To: Tomcat Users List
Subject: RE: simple context question for tomcat


instead of writing:
a href=/common/header.jsptest/a

try:
a href=%=request.getContextPath()%/common/header.jsptest/a

When you are creating html, make sure the context path is given.  Paths in
HTML are different than paths in your java code.

-Original Message-
From: Jeff Prideaux [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 2:58 PM
To: tomcat user
Subject: simple context question for tomcat


In my development environment, for my myapp web-app, I'm doing the
following

jsp:include page=/commmon/header.jsp flush=true/

and it finds the file just fine.  header.jsp is in the common directory
under the myapp webapp.

Although, if I use an anchor

a href=/common/header.jsptest/a

it doesn't find the file. it looks to my root webapp.   I must use
a href=/myapp/common/header.jsptest/a

What configuration step must I do so that my anchors (and references to
images) can be addressed using the first way I tried (without having to use
/myapp/...)

I have reasons for not using relative addressing  (../common/...).

Any tips on the configuration steps (even general comments) would be greatly
appreciated.


Thanks!!!

Jeff Prideaux,



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




simple context question for tomcat

2002-03-14 Thread Jeff Prideaux

In my development environment, for my myapp web-app, I'm doing the
following

jsp:include page=/commmon/header.jsp flush=true/

and it finds the file just fine.  header.jsp is in the common directory
under the myapp webapp.

Although, if I use an anchor

a href=/common/header.jsptest/a

it doesn't find the file. it looks to my root webapp.   I must use
a href=/myapp/common/header.jsptest/a

What configuration step must I do so that my anchors (and references to
images) can be addressed using the first way I tried (without having to use
/myapp/...)

I have reasons for not using relative addressing  (../common/...).

Any tips on the configuration steps (even general comments) would be greatly
appreciated.


Thanks!!!

Jeff Prideaux,



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Gets in access log and java applets

2002-03-06 Thread Jeff Prideaux

I have a java applet that uses the jmf (java media framework).  The applet
works, but I notice in the tomcat access log that there is an individual
GET for each class used in the jmf.jar file. Even worst, each time the
user interacts with the applet, all those GETS are done again.   All these
individual GETS are causing the applet to be very slow. Is there a way to
avoid having the browser going back to the server for each class needed in
the JMF plugin module.  Note that I just have a problem with the jmf module.
No extra GETS occur for any other Java classes that are part of the standard
Java run-time engine plugin.

I'm including jmf.jar (the java media framework) in the applet tag...

Does this sound like something expected (with applets) for modules that are
not part of the standard Java run-time engine, or could I possibly have not
installed the jmf appropriately?

Jeff Prideaux,
Senior Biomedical Engineer
Newlife Technologies
One Park West Cr., Suite 303
Midlothian, VA  23113

Phone: 804-378-7062 ext 3014
Fax:  804-378-0716


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: response.sendRedirect

2002-01-17 Thread Jeff Prideaux

Do you have any html tags in your jsp file before the logic you mention?
Also, what jsp spec are you using?

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 3:26 PM
To: '[EMAIL PROTECTED]'
Subject: response.sendRedirect


I have the following code snipet in a .JSP...

if (userStatus.equals (Failed))
{
session.invalidate() ;  // Kill this
session.
response.sendRedirect(htmlHome) ;   // Redirect
the user to our home page.
return ;
}

When this condition occurs, the response.sendRedirect fails with the
following message:

javax.servlet.ServletException: Response has already been committed

According to the response object documentation, the sendRedirect 'must be
called before the response is committed (in other words, before the status
code and headers have been written).' Obviously, the response has been
committed, else I wouldn't be getting the error!

My question - is the session.invalidate() doing this to me, or is it
something else that I am completely unaware of?

Thanks.

Jerry Jalenak
LabOne, Inc.

This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at (800)388-4675.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: TOMCAT 4.0 and Ant 1.4?

2002-01-14 Thread Jeff Prideaux

tomcat4.0 doesn't require ant.  Ant, though, is a convenient utility to
compile and deploy your webapp over to your development Tomcat directory
spaces...

-Original Message-
From: Chetna Bhatt [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 13, 2002 1:23 PM
To: Tomcat Users List
Subject: TOMCAT 4.0 and Ant 1.4?


hi,
was just wondering if tomcat4.0 require installation of Ant 1.4?

Thanks for the tip in advance.
regards
chetna


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Confusing basic concept about apache-tomcat works.

2002-01-14 Thread Jeff Prideaux

If you use port 8080 in the URL, Tomcat will handle everything and Apache
will be totally bypassed.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 1:04 PM
To: Tomcat Users List
Subject: Confusing basic concept about apache-tomcat works.



I wonder what is the difference between using tomcat as stand alone web
server
and using tomcat as servlet/jsp engine and apache as web server ?

Can anyone tell me how can we sure that we have succeeded configuring
tomcat-
apache web server or how can we know that apache really do their job, not
tomcat do it alone.

What happen if client access this :

http://myserver:8080/somecontext/something.jsp

in the case :
 1. tomcat and apache work together with tomcat in port 8080 and apache in
port
80.
 2. tomcat work as standalone web server in port 8080.

Does the :8080 means that the client directly serviced by something
waiting
in the port 8080 (in this case tomcat engine). if it is true, it means that
tomcat work by himself to accept request, process and give response to
client
connecting to port 8080.

How can we sure that apache get involved in this request ?

Thank you.




Kutipan Emir Alikadic [EMAIL PROTECTED]:


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

  -Original Message-
  From: Rizki Wicaksono [mailto:[EMAIL PROTECTED]]
  Sent: January 13, 2002 3:35 AM
  To: [EMAIL PROTECTED]
  Subject: Tomcat 4.0.1 and Apache
 
 
 
 
  I have read documentation that come with Tomcat 4.0.1 distribution.
 But i
  found a little concrete example of how to use Tomcat 4.0.1 with
 Apache
  1.3 web server.
 
  Please tell me where can I read another documentation that come with
  concrete example of httpd.con and another file configuration.

 Go through $CATALINA_HOME/webapps/tomcat-docs/config/warp.html (or start
 up
 Tomcat and then go to http://yourhost:8080/tomcat-docs/config/warp.html
 -
 need
 I say you replace yourhost with your host name/IP address).  If
 you're
 still
 unclear, come back here.




 Emir.

 -BEGIN PGP SIGNATURE-
 Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com

 iQA/AwUBPEGu61jCfVNHgcFCEQLosACg9eMtVI8dwwhtPkUo3EiXfvsKrNIAnRW5
 Tc8RT1cN2FCYXd36dE7pSlXk
 =sVKA
 -END PGP SIGNATURE-


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Applet security

2002-01-14 Thread Jeff Prideaux

As far as I know, the java sandbox for applets prevents this unless its a
signed applet which does require a change to the policy file.  Although, if
anyone knows of a way not to have to change the policy file, speak up!!!

-Original Message-
From: Olivier BILLIARD [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 11:38 AM
To: [EMAIL PROTECTED]
Subject: Applet security


Hi,

How is it possible for an applet to access an other PC by RMI without
modifiying the java.policy of the JRE because i don't want to install
something on the client's PC?

thx in advance

Olivier



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Odd Apache+Tomcat errors

2002-01-07 Thread Jeff Prideaux

A number of us have been having similar problems with
Apache 1.3.2x, Tomcat 4.0.1, mod_webapp.so, and Win2K.  We haven't got to
the bottom of that one either but it appears that the Windows port of the
Apache-Tomcat integration is buggy.

-Original Message-
From: Mario Felarca [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 1:38 PM
To: [EMAIL PROTECTED]
Subject: Odd Apache+Tomcat errors


Hello,

I have a problem and I was wondering if anyone could give me some ideas or
information about a possible solution.

I am running Apache 1.3.20, Tomcat 3.2.3 and using mod_jk on Win2k.

We are accessing our servlets through https, and every once in a while
(i.e. not all the time, but often enough to be annoying) a click on a link
that goes to the servlets will result in a page not found or a blank page.

In looking at the logs, it appears as if the request doesn't even hit
Tomcat. If I click on the same link immediately afterwards, it works fine.

Also, every once in a while, when I get a blank page or page not found, I
will also get a Windows dialog for an Apache.exe error saying it has
crashed. However, watching the processes, the webserver itself does not go
down. In fact, immediately afterwards, I can click on the link again and it
works.

Is this mod_jk crashing? Has anyone experienced this? Any information or
pointers would be most appreciated.

Thanks,

Mario-


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




directory organization advice

2002-01-04 Thread Jeff Prideaux

Can anyone give me some quick advice on how to appropriately organize my
directory structure to have Apache serve up the static content (images and
html files) and Tomcat serve up the dynamic content (JSP files,etc).

For simplicity, consider the sample webapp (myapp) given in the tomcat
documentation consisting of the following files as deployed on my win2000pro
box (ignoring the servlet for simplicity)

C:\tomcat\webapps\myapp\index.html
C:\tomcat\webapps\myapp\hello.jsp
C:\tomcat\webapps\myapp\images\tomcat.gif

With Tomcat plugged into Apache, does Apache automatically serve up the
static content (index.html,tomcat.gif)when it is located under the myapp
directory?  Or do I have to place the static content somewhere other than
under the webApp directory for Tomcat.

Would I need to place index.html and images\tomcat.gif under the doc-root
for Apache outside of the webApp for Apache to serve it up?

Another way of asking this is when I deploy the myapp sample with Tomcat
plugged into Apache and the static content is served up, is it Tomcat that
serves it up or is it Tomcat that is serving it up when the static content
is located under C:\tomcat\webapps\mayapp...

Thanks in advance...




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat sample application quirk with using apache

2002-01-04 Thread Jeff Prideaux

Yes, I'm using Tomcat 4.0.1. It looks like I'll go back to the earlier
3.24 version unless anyone has any recommendations on getting the 4.0.1
Tomcat versions to work without any quirks with Apache.   Even though the
quirk seems to go away when I browse from a different machine, thats not
convenient for my development environment.

-Original Message-
From: Bin Wu [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 04, 2002 2:44 PM
To: Tomcat Users List
Subject: Re: Tomcat sample application quirk with using apache


I have the same problem.  The apache with tomcat 4.01
responds really slow, sometimes it popups a WebApp 500
error.  I have tried tomcat 3.24 with same apache
server using mod_jk no problem.  And the
localhost:8080 in both 3.24 and 4.01 works fine.  So I
assume the problem is in tomcat webapp module.   Do
anyone have the solution?

--- Jeff Prideaux [EMAIL PROTECTED] wrote:
 This may be a simple problem.

 I followed the Tomcat instructions in the
 documentation to create the sample
 webapp (myapp) consisting of the following: one
 image, one html file, one
 servlet, and one jsp file.

 All is well when I run it under Tomcat.  I can
 browse to each file and
 refresh each one multiple times.

 When I run it with tomcat plugged into Apache, I get
 some quirks.  Note that
 I load the page and then hit the refresh button on
 the browser a few times.

 The html page works fine:
 http://localhost/myapp/index.html
 The servlet works fine:
 http://jeffp-desktop/myapp/hello

 Although, the jsp page is acting erratically.  One
 the first time I browse
 to the page, it usually comes up fine.
 http://localhost/myapp/hello.jsp

 But when I hit refresh on the browser sometimes the
 page locks up.

 Interestingly, when I browse to the same jsp page
 from a different machine
 (browser running on different machine than the
 machine running apache and
 tomcat) I can refresh all I want and it never locks
 up.

 Can anyone think of why I am having problems
 refreshing the jsp page when my
 browser is running on the same machine as apache and
 tomcat?

 Thanks in advance...



 --
 To unsubscribe:
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]



__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: tomcat-apache win32 integration problem with 100% CPU utilization

2002-01-04 Thread Jeff Prideaux

When I installed the sample app myapp from the tomcat 4.0.1 documentation,
and tried to run it with Tomcat plugged into Apache, I had the problem
mentioned below with things locking up whenever images needed to be served
up (especially whenever you hit the refresh button on the browser).  Note
that this problem was in my development environment where the browser,
apache and tomcat were all running on the same machine.  When I used a
different machine to browse to the website, I didn't have the problem.  That
may be one solution to the problem.  Just browse to the web site on a
different machine than the one hosting the software.  But most people
develop with everything running on the same machine

There must be something going on with one software component (the
browser???) getting a lock on something and preventing another software
component from getting to it...   I'm using I.E for my browser.  I wonder if
the problem shows up if one uses Netscape as the browser?  Perhaps I will
download Netscape and try it...

-Original Message-
From: Marcelo Demestri [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 04, 2002 9:25 PM
To: Tomcat Users List
Subject: Re: tomcat-apache win32 integration problem with 100% CPU
utilization


I have the same problem...
I don't know what to do.  I try all, everything, but the problem persist
(I'm desolated :-(.
It's very weird.
There is a guru to clarify this problem?


- Original Message -
From: BW [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 04, 2002 12:09 PM
Subject: Re: tomcat-apache win32 integration problem with 100% CPU
utilization


 I get the same problem with tomcat4.0.1 intergrated
 with apache in win2000 when the html or jsp page has
 images on it.  The apache server respond slow or stop
 when you refresh it.  It also takes time to restart
 apache  I don't know if this is window2000 problem
 only or we miss any configuration.  Thanks for any
 idea.

 BW

 The original message from

 I'm having problems integrating Tomcat with Apache in
 my development
 environment using win2000Pro.

 I following the directions to add libapr.dll and
 mod_webapp.so to C:\Program
 Files\Apache Group\Apache\modules
 and add the following lines to httpd.conf:
 LoadModule webapp_module modules/mod_webapp.so
 ...
 AddModule mod_webapp.c
 ...
 WebAppConnection conn  warp  localhost:8008
 WebAppDeploy examples  conn  /examples/

 Both Tomcat and Apache start up fine.
 I can browse directly to
 http://localhost/examples/jsp/num/numguess.jsp
 and play that number guessing game fine.  The
 integration appears fine for
 that.
 But when I browse to a URL within the examples
 application that has an
 image, my CPU becomes 100% allocated and my computer
 practically grinds to a
 halt.
 For example, it can't deal with
 http://jeffp-desktop/examples/jsp/index.html
 which contains images.  I have to stop and restart
 Tomcat for my computer to
 get my CPU utilization under control.

 Has anybody experienced anything like this in
 integrating Tomcat and Apache?
 I must be missing some configuration step

 Thanks in advanced.




 __
 Do You Yahoo!?
 Send your FREE holiday greetings online!
 http://greetings.yahoo.com

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




tomcat-apache win32 integration problem with 100% CPU utilization

2002-01-02 Thread Jeff Prideaux

I'm having problems integrating Tomcat with Apache in my development
environment using win2000Pro.

I following the directions to add libapr.dll and mod_webapp.so to C:\Program
Files\Apache Group\Apache\modules
and add the following lines to httpd.conf:
LoadModule webapp_module modules/mod_webapp.so
...
AddModule mod_webapp.c
...
WebAppConnection conn  warp  localhost:8008
WebAppDeploy examples  conn  /examples/

Both Tomcat and Apache start up fine.
I can browse directly to
http://localhost/examples/jsp/num/numguess.jsp
and play that number guessing game fine.  The integration appears fine for
that.
But when I browse to a URL within the examples application that has an
image, my CPU becomes 100% allocated and my computer practically grinds to a
halt.
For example, it can't deal with http://jeffp-desktop/examples/jsp/index.html
which contains images.  I have to stop and restart Tomcat for my computer to
get my CPU utilization under control.

Has anybody experienced anything like this in integrating Tomcat and Apache?
I must be missing some configuration step

Thanks in advanced.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Linux/windows, database choice, hosting, and whether to plug in to apache or not

2001-12-31 Thread Jeff Prideaux

I'm developing a Tomcat 4.01 website and need to make some high level
decisions.  Can anyone give some quick advice?

1.  Should it run on Windows or Linux?   I suspect I should use Linux but is
Windows a viable option?
2.  Should I plug Tomcat into Apache web-server or is the build-in
web-server for Tomcat good enough?
3.  Is mysql the best open source free database choice?
4.  Can anyone recommend hosting facilities, preferably in Northern
Virginia?  I envision providing a single box that runs Tomcat, the database
(and possibly a mail server) and I would basically rent a slot in a rack
at the hosting facility.

Thanks a lot!!!


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]