Help: Tomcat swallowOutput, system.err, catalina.out and my log

2003-01-22 Thread Sarah Grimley

We are trying to have our errors (SYSTEM.ERR, SYSTEM.OUT) sent to web-app specific 
logs, instead of catalina.out.
We thought that the following would work, but seqreq_log_XXX only ends up with Java 
errors, everything else goes to catalina.out:
 !-- Tomcat seqreq Context --
Context path=/seqreq docBase=seqreq debug=0
 reloadable=true crossContext=true swallowOutput=true
Logger className=org.apache.catalina.logger.FileLogger
   prefix=seqreq_log. suffix=.txt
 timestamp=true verbosity=4/
Resources className=org.apache.naming.resources.FileDirContext
allowLinking=true/
/Context
Is there something else we need to modify?

Thanks,

Sarah




-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs



RE: Advice please: Apache doesn't seem to resolve Tomcat symbolic links

2002-12-10 Thread Sarah Grimley

Hi John and Martin.
Yes, I am on Tomcat jakarta-tomcat-4.1.12. 
As I said before, the access to the gifs and templates works fine on the 'standalone' 
version, which I have put on port 8200. 
Under this URL (http://sbio4.ph.chbs:8200/seqreq/icons), since I added the 
'allowLinking' flag to the I can see the directory listing my gifs, and I can click on 
and view my gifs: 
Under this URL, (http://sbio4.ph.chbs/seqreq/icons),  I get the 404 error message, 
however in principle, the access to my non-symlinked files and directories works fine. 
Thank you for any advice you can give me... do you think that all I need to do is go 
to jakarta-tomcat-4.1.15?  This does not seem to make sense, since on 4.1.12 it 
'nearly works'.




-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs



RE: Advice please: Apache doesn't seem to resolve Tomcat symbolic links

2002-12-10 Thread Sarah Grimley

Yes I enabled symlinking in apache, I forgot to include this in my original mail...

DocumentRoot /blah blah blah/html

Directory /

Options FollowSymLinks

AllowOverride None

/Directory

Have no idea how to change mod_webapp to mod_jk(2).  If this involves a lot of work, I 
will postpone till after Christmas : )   Are you suggesting that if I do, it will 
solve the problem of symlinks? 
Meanwhile I half-followed Johns advice... 
It seems that to work in Apache, I have to edit the links, instead to be 'relative' to 
the DocRoot, and then I don't need my Tomcat 'symlink' as an additional 'alias'. 
Needless to say, this means that now the gifs pages no longer resolve 'standalone' 
version, but for now this quick and dirty (in my mind) solution allows me to get on. 
Thanks to John, Ralph and Martin, for your feedback. 
Sarah




-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs



Advice please: Apache doesn't seem to resolve Tomcat symbolic links

2002-12-09 Thread Sarah Grimley

Inside my WEBAPP my subfolders 'ICONS' and 'TEMPLATES' are actually symbolic links to 
folders elsewhere.
I have enabled them to be accessed by my WebApp, by placing this code inside the 
Tomcat server.xml:
!-- Tomcat MY_APP Context --
Context path=/MY_APP docBase=MY_APP debug=0
reloadable=true crossContext=true
Logger className=org.apache.catalina.logger.FileLogger
prefix=MY_APP_log. suffix=.txt
timestamp=true/
Resources className =org.apache.naming.resources.FileDirContext
allowLinking=true/
/Context

I can then refer to gifs in my HTML as:   ../icons/mypicture.gif

This all works fine when I used Tomcat as standalone.

Now I want to use Apache with Tomcat as the webserver.

I configure Apache as follows:

IfModule mod_webapp.c

  WebAppConnection warpConnection warp localhost:8008
  WebAppDeploy examples warpConnection /examples/
  WebAppInfo   /webapp-info

  WebAppDeploy seqreq warpConnection /MY_APP/
/IfModule


I also include following in the Tomcat server.xml:

 Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true appBase=webapps
 acceptCount=10 debug=0/

Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache debug=0

  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  Realm className=org.apache.catalina.realm.MemoryRealm /

/Engine

  /Service

Now my problem is that the symbolic links no longer resolve... so my gifs are not 
found.  The rest of the files can be accesses no problem, so I am sure it is because 
of the 'virtual' links to the icon folder.

Can anybody help me to solve this problem?  Thank you.




-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs



RE: Advice please: Apache doesn't seem to resolve Tomcat symbolic links

2002-12-09 Thread Sarah Grimley

Hi John,

I hope this is what you mean:

apache access_log:

170.237.230.231 - - 2002-12-09 17:55:53 0 GET /seqreq/icons/seqwright.gif HTTP/1.1 
404 758
170.237.230.231 - - 2002-12-09 17:55:53 0 GET /seqreq/icons/info9.gif HTTP/1.1 404 
746
170.237.230.231 - - 2002-12-09 17:55:53 0 GET /seqreq/icons/w2_reset.gif HTTP/1.1 
404 755
170.237.230.231 - - 2002-12-09 17:55:53 0 GET /seqreq/icons/w2_submit.gif HTTP/1.1 
404 758


 Turner, John [EMAIL PROTECTED] wrote:
What do the Apache logs say for those requests?

John


 -Original Message-
 From: Sarah Grimley [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 09, 2002 10:51 AM
 To: Tomcat Users List
 Subject: Advice please: Apache doesn't seem to resolve Tomcat symbolic
 links
 
 
 
 Inside my WEBAPP my subfolders 'ICONS' and 'TEMPLATES' are 
 actually symbolic links to folders elsewhere.
 I have enabled them to be accessed by my WebApp, by placing 
 this code inside the Tomcat server.xml:
 
  reloadable=true crossContext=true
  prefix=MY_APP_log. suffix=.txt
 timestamp=true/
  =org.apache.naming.resources.FileDirContext
 allowLinking=true/
 
 
 I can then refer to gifs in my HTML as: ../icons/mypicture.gif
 
 This all works fine when I used Tomcat as standalone.
 
 Now I want to use Apache with Tomcat as the webserver.
 
 I configure Apache as follows:
 
 
 
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy examples warpConnection /examples/
 WebAppInfo /webapp-info
 
 WebAppDeploy seqreq warpConnection /MY_APP/
 
 
 
 I also include following in the Tomcat server.xml:
 
 
 
  className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true appBase=webapps
 acceptCount=10 debug=0/
 
  name=Apache debug=0
 
  prefix=apache_log. suffix=.txt
 timestamp=true/
 
 
 
 
 
 
 
 Now my problem is that the symbolic links no longer 
 resolve... so my gifs are not found. The rest of the files 
 can be accesses no problem, so I am sure it is because of the 
 'virtual' links to the icon folder.
 
 Can anybody help me to solve this problem? Thank you.
 
 
 
 
 -
 With Yahoo! Mail you can get a bigger mailbox -- choose a 
 size that fits your needs
 

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




-
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs



Tomcat servlet recieves no posts from JSP - but code works in JBuilder?

2002-11-26 Thread Sarah Grimley

Please can you explain to me why the servlet is not getting any parameters from the 
JSP, when I run it in TOMCAT 4.1.

The code works fine in JBuilder/Tomcat IDE.

It also works fine in TOMCAT 4.1, when I call it from an HTML page.
However, I want to call it from a JSP.

NOTE: the form names and values are defined in the included JSP, and then should be 
passed to the servlet when the SUBMIT button is clicked.

Taken from my_main_red.JSP (the full code is at bottom of mail):

form method=post name=reddoit action=../myreq_servlet onSubmit=return 
validateAndSubmit_red() ENCTYPE=multipart/form-data
%@ include file=my_body_red.jsp %
/form

Taken from myreq_servlet:

  //Process the HTTP Post request
  public void doPost(HttpServletRequest request, HttpServletResponse response)
  throws ServletException, IOException {

Enumeration enum = request.getParameterNames();
while (enum.hasMoreElements()) {
  // Get the name of the request parameter
  String name = (String)enum.nextElement();
  // Get the value of the request parameter and set to uppercase
  String value = request.getParameter(name).toUpperCase();
  System.out.println(servlet name: +name+ value: +value);
}

System.out.println(After while);

Taken from catalina.out

Starting service Tomcat-Apache
Apache Tomcat/4.1.12
After while

Thank you in advance for any advice

===. 

HTML (generated from my_main.jsp):

html
head
!-- header.jsp --
!-- Depends on variables title --
!-- Includes files template/biobench.css, template/biobench2.css --

title
sequence - Redundant parameters
/title

meta http-equiv=Content-Type content=text/html; charset=iso-8859-1/
link href=http://sbio4.ph.chbs:8200/seqreq/html/template/biobench.css; 
rel=stylesheet title=Biobench type=text/css/
link href=http://sbio4.ph.chbs:8200/seqreq/html/template/biobench2.css; 
rel=stylesheet title=Biobench type=text/css/


SCRIPT LANGUAGE=JavaScript SRC=utility_function.js
/SCRIPT
SCRIPT LANGUAGE=JavaScript SRC=checkparam_red.js
/SCRIPT

/head

body  bgcolor=#FF text=#00 link=#FF vlink=#FF marginwidth=0 
marginheight=0 style=margin: 0 onLoad=writeMenus() onResize=if (isNS4) 
nsResizeHandler()

!-- top_red.jsp --
!-- Depends on variables title, contactInfo --

table width=100% bgcolor=#006699 border=0 cellpadding=0 cellspacing=0
tr
td class=TOP /td
/tr
/table

table width=650 border=0 align=center
tr
td align=center class=BOLDTEXT colspan=4 H1 sequence - Redundant parameters 
/H1/td
/tr
tr
td align=center class=BBLOCKTEXT colspan=4
SMALLSTRONGbr/
Please enter a 
href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#REDUNDANT; 
target=_blankRedundant parameters/a
below. They will be propogated to each sample.br/
/STRONG/SMALLbr/
/td
/tr
trtd height=10 colspan=4hr/
/td
/tr
/table

form method=post name=reddoit action=../seqreq_servlet1 onSubmit=return 
validateAndSubmit_red() ENCTYPE=multipart/form-data
!-- sequence_body_red.jsp --
!-- Depends on variables title --
!-- Includes files sequence_primer.inc --
!-- Connect to jsp sequence_main.jsp --

table width=650 border=1 align=center cellspacing=0 cellpadding=4 
class=FORMTEXT 
tr
td colspan=2 height=50
  Build request for
  input type=TEXT name=numberOfSamples size=8 maxlength=3 value=1/
  sample(s).
/td
/tr

!--Store the hidden parameters --
input type=hidden name=REDUNDANT value=YES/
input type=hidden name=sequence value=on/

tr
tda class=FORMTEXT 
href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#NAME;Sample 
name/a/td
tdinput type=text name=sampleName size=10 maxlength=10 value=//td
/tr
tr
tda class=FORMTEXT 
href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#INCREMENT;Increment 
sample numbering/a/td
td
  input type=checkbox name=incrementCheckbox/
  starting with
  input type=TEXT name=incrementStart size=4 maxlength=7 value=1/
/td
/tr
tr
tda class=FORMTEXT 
href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#PRIMER;Primer/a/td
td
 select name=primer
 option value=T7 selected=selectedT7/option
option value=T3T3/option
option value=SP6SP6/option
option value=M13FM13F/option
option value=M13RM13R/option
option value=DON1DON1/option
option value=DON2DON2/option
option value=customcustom/option
 /select
/td
/tr
tr
tda class=FORMTEXT 
href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#NAME;Customer primer 
name/a/td
tdinput type=text name=customPrimer size=10 maxlength=10//td
/tr
tr
tda class=FORMTEXT 
href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#SIZE;Vector size 
(kb)/a/td
tdinput type=text name=vectorSize size=10 maxlength=10//td
/tr
tr
tda class=FORMTEXT 
href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#SIZE;Insert size 
(kb)/a/td
tdinput type=text name=insertSize size=10 maxlength=10//td
/tr
tr
tda class=FORMTEXT 
href=http://sbio4.ph.chbs:8200/seqreq/html/sequence_info.html#LENGTH;Read length 
(bp)/a/td
tdinput type=text name=readLength size=10 maxlength=10//td
/tr
tr
tda class=FORMTEXT