Re: can I define a subcontext within a global context?

2003-02-04 Thread Jan-Michael Ong
Hi there,

This sounds like a dumb question (probably is) but can I define a 
subcontext within another global context?

In other words if I define a web application context to be

/myapplication

and I want another mini-web application (separate from /myapplication but 
within it)

i.e.

/myapplication/miniapplication

Is this possible?

In other words, can I set up

/myapplication/WEB-INF/...etc

and

/myapplication/miniapplication/WEB-INF/...

and have them be distinct?

How would this look like in apache's httpd.conf and tomcat's server.xml?

I think the answer is no because the parent context (/myapplication in 
this case) will take precedence over the miniapplication context... but 
then again I could be wrong.

Thanks in advance.

Jan-Michael


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



RE: can I define a subcontext within a global context?

2003-02-04 Thread Jan-Michael Ong
Thanks very much for your reply.

I thought so... but I just needed some confirmation.

Regards,

Jan-Michael

At 01:44 PM 2/4/2003 -0500, Shapira, Yoav wrote:

Hi,
You would have to do many workarounds and remappings and have robust
servlets that handle all sorts of redirection.  It would suck.

You could probably save a lot of time and effort, and end up with a
maintainable and portable product, if you redesign your app to either be
one webapp or two completely separate ones, not one contained within
another.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jan-Michael Ong [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 1:34 PM
To: Tomcat Users List
Subject: Re: can I define a subcontext within a global context?

Hi there,

This sounds like a dumb question (probably is) but can I define a
subcontext within another global context?

In other words if I define a web application context to be

/myapplication

and I want another mini-web application (separate from /myapplication
but
within it)

i.e.

/myapplication/miniapplication

Is this possible?

In other words, can I set up

/myapplication/WEB-INF/...etc

and

/myapplication/miniapplication/WEB-INF/...

and have them be distinct?

How would this look like in apache's httpd.conf and tomcat's
server.xml?

I think the answer is no because the parent context (/myapplication
in
this case) will take precedence over the miniapplication context... but
then again I could be wrong.

Thanks in advance.

Jan-Michael


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




Re: Tomcat 4.1.18: Problems redirecting the page

2003-01-13 Thread Jan-Michael Ong
Try the following

modify

  response.sendRedirect(intermediateForm.jsp?errMsg=+sbuf.toString()+

to

  response.sendRedirect(/app1/intermediateForm.jsp?errMsg=+sbuf.toString()+

and see if that helps


Jan-Michael

At 09:15 PM 1/13/2003 +0530, Neginder Singh wrote:


Dear All

I am using the Tomcat Version 4.1.18. I am trying to run and application 
which was running fine on Tomcat3.2.1 Version.

The aaplication is installed under tomcat as follows:

C:/tomcat4.1.18/webapps/app1: This application uses another application 
uses app2 (also under c:/tomcat4.1.18/webapps/app2) which is accessed via 
soap. The jar required to access this soap application i.e app2.jar are 
put under C:/jakarta-tomcat-4.1.18/common/lib.

app1 has three jsp page firstPage.jsp, secondPage.jsp and finalPage.jsp
all located under C:/tomcat4.1.18/webapps/app1

When i try accessing the app1 using the following:
http://localhost:9080/app1/firstPage.jsp (OK-success in accessing). The 
application is such that it uses the parameters in app1 to calculate the 
tax Percent using the app2 and display the results in finalPAge.jsp. And 
if the application accesses this page and calculates the right tax values 
using the app2 then it reaches the finalPage. But in case if the app1 
fails to access app2, in that case the request is redirected to secondPage.jsp

I use the following code in finalPage.jsp to redirect it to secondPage

  response.sendRedirect(intermediateForm.jsp?errMsg=+sbuf.toString()+
  firstName=+firstName+lastName=+lastName+
  codeSex=+codeSex+
  age=+age+churchTax=+churchTax+
  borderCrosser=+borderCrosser+
  numberDependent=+numberDependent+
  rateCode=+rateCode+
  kanton=+kanton+unitRateInterval=+unitRateInterval+
  unitRate=+unitRate+unitNr=+unitNr+
  pensionPreference=+pensionPreference+
  employerMonthlyExpenses=+employerMonthlyExpenses+
  estimateInterval=+estimateInterval+);
   }

But the problem is when the page is redirected to secondPage.jsp, i get 
the following error:
HTTP Status 404 - /secondpage.jsp

type Status report

message /secondpage.jsp

description The requested resource (/secondpage.jsp) is not available.

But if i rename the secondPage.jsp to secondpage.jsp, it accesses the page 
but then doesnot display the error message which i want to display on the 
secondPage.jsp.

http://localhost:9080/revenueestimate/intermediateForm.jsp?errmsg=error:?errMsg=Error:%20No%20entry%20was%20found%20for%20request!!firstName=lastName=codeSex=Maleage=32churchTax=NborderCrosser=numberDependent=2rateCode=Akanton=AGunitRateInterval=1unitRate=150.0unitNr=200.0pensionPreference=Minimum%20Pension%20PlanemployerMonthlyExpenses=1500.0estimateInterval=1.

I have no idea why i am getting the errmsg=error:?(extra bit )in the url. 
Obviously when i remove the errmsg=error:?, i am able to display the 
message No entry was found in the jsp page.

Could any one help me in explaining as to what is going on .
1.Why the redirect doesnot work to redirect the page to secondPage.jsp but 
instead looks for secondpage.jsp.
2. Also could any one explain how the extra bit errmsg=error:? is inserted 
due to which the error Message is not displayed.

How could i fix this bug.

I would really appreciate any kind of help.

Thanks.
Neginder

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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


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




RE: Tomcat dies

2002-12-13 Thread Jan-Michael Ong
I've had this problem too in the past and our best (but definitely not 
the most elegant) solution is to switch to C-shell before invoking the command.

Log on as root. (your root shell can be anything)
Create a user tomcat: useradd tomcat
Switch to C-shell: /bin/csh
Do something to the effect of

startme.sh
#!/bin/sh

su - tomcat -c ${START_CMD}  /tmp/start.out
if [ $? = 0 ];
then
   echo Tomcat started. You may close this window.
   exit 0
fi

echo There was a problem starting up tomcat
exit 1

Run the shell script

The key here is to use C-shell when you invoke the start-up script. I have 
a plain vanilla install of it running on solaris 8 (catalina 4.1.12) and 
that works fine. I've had problems with 4.0.6 so take that for what its worth.

Hope that helps.

Jan-Michael


At 10:47 AM 12/13/2002 -0600, Meyer, James wrote:
If you are using ssh the problem you described occurs,
one way around it is to start tomcat with the following command
/usr/local/tomcat/bin/tomcat.sh start/dev/null /dev/null 2/dev/null


-Original Message-
From: Jon Eaves [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 10:37 AM
To: Tomcat Users List
Subject: Re: Tomcat dies


If that is the cause, what's wrong with using 'nohup' ?

(Or am I missing something here?)

Cheers,
-- jon

Matthew Ritenburg wrote:
 The logs say nothing.  Tomcat is dying because it is not backgrounding
 properly on solaris 8.  The process never detaches it self from the
 controlling tty.  You close the console/xterm and Tomcat dies.  My
 question is: Why doesn't tomcat background properly on Solaris 8?

 Thanks again!

 Matt

[ snip ]
--
Jon Eaves [EMAIL PROTECTED]
http://www.eaves.org/jon/


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

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



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




RE: Errors in iis_redirect.log file

2002-12-13 Thread Jan-Michael Ong
I've seen this one:



 [Tue Dec 03 11:10:44 2002]  [jk_isapi_plugin.c (498)]:
 jk_ws_service_t::write, WriteClient failed
 [Tue Dec 03 11:10:44 2002]  [jk_ajp13_worker.c (381)]: Error
 ajp13_process_callback - write failed


This means that a request to a resource (JSP/servlet) has been made but the 
client who is suppose to receive the response has terminated their 
connection. The best analogy is request a JSP page and then hit Stop on 
your browser and you'll see this error. If you've ever messed with Apache 
or Netscape this is similar to the broken pipe error.

As far as for this error:

 [Tue Dec 03 10:54:10 2002]  [jk_isapi_plugin.c (404)]:
 jk_ws_service_t::start_response, ServerSupportFunction failed
 [Tue Dec 03 10:54:10 2002]  [jk_ajp13_worker.c (370)]: Error

No idea ... but you may want to grep at the Tomcat source for this method 
or class (?) and see what its doing.

Hope that helps

Jan-Michael


At 02:27 PM 12/13/2002 +0100, Jordi Masip wrote:
Any comment?

 Hi,

 I find next two errors inside iis_redirect.log file after working with a
 java application (JDBC, JSPs,...) using  IIS5 and Tomcat 4.0.1 in a w2k
 server:

 [Tue Dec 03 10:54:10 2002]  [jk_isapi_plugin.c (404)]:
 jk_ws_service_t::start_response, ServerSupportFunction failed
 [Tue Dec 03 10:54:10 2002]  [jk_ajp13_worker.c (370)]: Error
 ajp13_process_callback - start_response failed

 [Tue Dec 03 11:10:44 2002]  [jk_isapi_plugin.c (498)]:
 jk_ws_service_t::write, WriteClient failed
 [Tue Dec 03 11:10:44 2002]  [jk_ajp13_worker.c (381)]: Error
 ajp13_process_callback - write failed

 Could someone explain me something about them?

 Thanks - Jordi

---
Este mensaje y los documentos, que en su caso, lleve anexos, pueden
contener informacion confidencial y ataƱe exclusivamente a las personas
a las que va dirigido. Cualquier opinion en el contenida, es exclusiva de
su autor y no representa necesariamente la opinion de AZERTIA.
Si usted no es el destinatario de este mensaje, considerese advertido de
que lo ha recibido por error y que cualquier uso, difusion o copia estan
prohibidos legalmente. Si ha recibido este mensaje por error, le rogamos
que nos lo comunique por la misma via o al telefono 93 207 55 11 y proceda
a destruirlo inmediatamente.

This email is confidential and intended solely for the use of the individual
to whom it is addressed. Any views or opinions presented are solely those
of the author and do not necessarily represent those of AZERTIA.
If you are not the intended recipient, be advised that you have received
this email in error and that any use, dissemination, forwarding, printing,
or copying of this email is strictly prohibited.
If you have received this email in error please notify it to AZERTIA
by telephone on number +34 93 207 55 11.
---

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



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




Re: Mod_jk Try #2 - error can't find apache

2002-12-13 Thread Jan-Michael Ong
apxs requires perl to be available check the first line of apxs

head -1 /usr/sbin/apxs

It should say something like

#!/usr/local/bin/perl or something along those lines

check the availability of your perl install

ls -l /usr/local/bin/perl

if it says not found do a find for perl and replace that line with the 
location of the found perl.

cd /
find . -name 'perl' -print 

Hope that helps.

Jan-Michael



At 12:39 PM 12/13/2002 -0500, Denise Mangano wrote:
Ok.  So its time to give this another try.  For try #2 I decided to try to
build mod_jk according to the HOW-TO.  I'm running into a snag.  When I run
configure it is looking for a path to apxs.  My Apache 1.3.27 web server is
up and running, I can view my website.  Tomcat 4.1.12 itself was running
(before I shut it down to do this).  I searched my entire server, and the
only place I found apxs was in usr/sbin.  So this is the path that I used
for ./configure --with-apxs=/usr/sbin/apxs --with-java=${JAVA_HOME}. This is
what happens:

everything prior to this checked out OK.
checking for grep... /bin/grep
checking for echo... /bin/echo
checking for sed... /bin/sed
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
checking for libtool... /usr/bin/libtool
no apxs given
checking for target platform... unix
no apache given
configure: error: Cannot find the WebServer

Any ideas?  Thanks :)

Denise

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



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




deploying a WAR file without restarting? and Cookie Name problem in 3.2.1

2002-11-30 Thread Jan-Michael Ong
Greetings Tomcat Users Group,

I'm hoping that you can help me here. I've purchased the Prof. Apache 
Tomcat book and searched through the archives but I'm unable to get any 
meaningful results for the following two questions:

1. JBoss allows for hot deployment--that is if I get my terms right--the 
ability for an instance to use a new WAR file or java class without 
restarting. Is this possible in Tomcat? Would you be so kind to point to 
any source of reference out there? I'm just familiarizing myself with JBoss 
and according to its documentation its also possible to hot deploy to one 
instance and have it propagate through its siblings. Is this scenario 
possible in Tomcat?

2. I've read that in 3.2.4 the Cookie name path is a reserved token error 
was fixed that was present in previous versions such as 3.2.1. What and/or 
how exactly was it fixed? I guess I can try to do a recursive diff between 
the two source trees but I don't even know what to look for. Any 
suggestions on how to find this elusive problem will be greatly appreciated.

Thanks in advance and I hope to hear from you.

Regards,

Jan-Michael


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



Re: creating a directory under webapps

2002-11-01 Thread Jan-Michael Ong
This might help but I think you have to specify the full path as your docbase

instead of
Context path=/diegodev docBase=diegodev debug=0 reloadable=true/

try

Context path=/diegodev docBase=/path/to/diegodev debug=1 
reloadable=true/

or if your tomcat is in /usr/local/tomcat

Context path=/diegodev docBase=/usr/local/tomcat/webapps/diegodev 
debug=1 reloadable=true/

finally check the logs, adjust your debug statements in server.xml from 0 
to 1 and that should increase its verbosity.

You may want to clear /usr/local/tomcat/work everytime you restart your 
tomcat instance too whenever you make your changes above.

JM

At 07:57 AM 11/1/2002 -0800, Diego Sacchetto wrote:
Hi I've installed tomcat 4.1.12 and is running fine.
I can run all servlets under default directory
$CATALINA_HOME/webapps/examples.
Problem is if I create my own directory: diegodev under webapps.
I have created the usual structure, with a simple servlet under classes

webapps
   |
   |
--- diegodev
|
|
 --- WEB-INF
|
|
 --- classes
|   |
|   |
|--- HelloWorld.class
|
|
 --- web.xml

I have added the following element to server.xml:

Context path=/diegodev docBase=diegodev debug=0 reloadable=true/

and the web.xml file has the servlet element like this:

servlet
   servlet-nameHelloWorld/servlet-name
   servlet-classHelloWorld/servlet-class
/servlet


Everything looks good to me but if I try to run the servlet by:

http://localhost:9000/diegodev/servlet/HelloWorld

tomcat complain it doesn't find the resource:

he requested resource (/diegodev/servlet/HelloWorld) is not available.

However, if I move the servlet under examples/WEB-INF/classes and I invoke
it, it works.

It looks like the directory examples has a setting that my custom directory
diegodev doesn't have.

Can't understand what it is.
Can please someone help me?

Thanks,

Diego.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: adding context

2002-11-01 Thread Jan-Michael Ong
Hi there,

path is for url so your example below will fail
Context path=C:/ docbase=Projects/calendar/htdocs debug=0/

http://localhost:8080/context_path/path/to/servlet

Does the examples work for you? http://localhost:8080/examples?

How about removing this context and sticking with the basic build and 
enabling debugging (i.e. change debug from 0 to 1 on the Context)

Finally check for stray characters in your MANIFEST-MF file. At least with 
ATG/Dynamo its very picky about its manifest file with ^M control chars.

Good luck

JM


At 05:02 PM 11/1/2002 -0800, Jonathan Zhang wrote:
I tried that, and a couple of other variations like
Context path=C:/ docbase=Projects/calendar/htdocs debug=0/
 but it still gave me the same nullPointer exception.why?
thanks for the help

- Original Message -
From: M. Hockings [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 01, 2002 4:13 PM
Subject: Re: adding context


 Try using forward slashes for  the directory delimiter?

 Context path= docbase=c:/Projects/calendar/htdocs debug=0/

 Mike


 Jonathan Zhang wrote:

 hi Guys,
 I'm running tomcat 4.x on windows xp and I'm trying to add a context to
  Context path= docbase=c:\Projects\calendar\htdocs debug=0/
 
 I get the following exception:
 
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.12
 java.lang.NullPointerException
 at java.io.File.init(File.java:180)
 at
org.apache.catalina.core.StandardContext.getBasePath(StandardContext.
 java:3833)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
 397)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 
 at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 
 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
 )
 at
org.apache.catalina.core.StandardService.start(StandardService.java:4
 97)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
 9)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
 at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
 thanks for the help
 
 
 

 --

 Note new email address - [EMAIL PROTECTED] -

 Mike's Page   :  http://www.hockings.net/~mike
 Rifle Shooting in Ontario :  http://www.hockings.net/rso/
 Scarborough Rifle Club:  http://www.hockings.net/rso/src/
 Canadian Shooting Sports  :  http://www.CdnShootingSports.org
 Ontario Rifle Association :  http://www.OntarioRifleAssociation.org




 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: adding context

2002-11-01 Thread Jan-Michael Ong
That is correct. Realistically as long as the docBase is valid and writable 
by your tomcat user then you can place it anywhere.

Did the example stuff work for you? Let me know

JM

At 05:23 PM 11/1/2002 -0800, Jonathan Zhang wrote:

 So is it possible to add a context that's not within the tomcat root
directory. By tomcat root directory I mean C:\Program Files\Apache
Group\Tomcat 4.1\ as an example on my machine.
If I want to put my jsps in c:\some_dir, is that possible?

thanks for the help

-jonthan

- Original Message -
From: Jan-Michael Ong [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; Tomcat Users
List [EMAIL PROTECTED]
Sent: Friday, November 01, 2002 5:13 PM
Subject: Re: adding context


 Hi there,

 path is for url so your example below will fail
 Context path=C:/ docbase=Projects/calendar/htdocs debug=0/

 http://localhost:8080/context_path/path/to/servlet

 Does the examples work for you? http://localhost:8080/examples?

 How about removing this context and sticking with the basic build and
 enabling debugging (i.e. change debug from 0 to 1 on the Context)

 Finally check for stray characters in your MANIFEST-MF file. At least with
 ATG/Dynamo its very picky about its manifest file with ^M control chars.

 Good luck

 JM


 At 05:02 PM 11/1/2002 -0800, Jonathan Zhang wrote:
 I tried that, and a couple of other variations like
 Context path=C:/ docbase=Projects/calendar/htdocs debug=0/
   but it still gave me the same nullPointer exception.why?
 thanks for the help
 
 - Original Message -
 From: M. Hockings [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, November 01, 2002 4:13 PM
 Subject: Re: adding context
 
 
   Try using forward slashes for  the directory delimiter?
  
   Context path= docbase=c:/Projects/calendar/htdocs debug=0/
  
   Mike
  
  
   Jonathan Zhang wrote:
  
   hi Guys,
   I'm running tomcat 4.x on windows xp and I'm trying to add a context
to
Context path= docbase=c:\Projects\calendar\htdocs debug=0/
   
   I get the following exception:
   
   Starting service Tomcat-Standalone
   Apache Tomcat/4.1.12
   java.lang.NullPointerException
   at java.io.File.init(File.java:180)
   at
 org.apache.catalina.core.StandardContext.getBasePath(StandardContext.
   java:3833)
   at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3
   397)
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
   
   at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
   
   at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
   )
   at
 org.apache.catalina.core.StandardService.start(StandardService.java:4
   97)
   at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:218
   9)
   at
org.apache.catalina.startup.Catalina.start(Catalina.java:510)
   at
 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
   java:39)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
   sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
   
   thanks for the help
   
   
   
  
   --
  
   Note new email address - [EMAIL PROTECTED] -
  
   Mike's Page   :  http://www.hockings.net/~mike
   Rifle Shooting in Ontario :  http://www.hockings.net/rso/
   Scarborough Rifle Club:  http://www.hockings.net/rso/src/
   Canadian Shooting Sports  :  http://www.CdnShootingSports.org
   Ontario Rifle Association :  http://www.OntarioRifleAssociation.org
  
  
  
  
   --
   To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
  
 
 
 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: NEWBIE: Intercepting the jsp request before its written as a java file

2002-10-30 Thread Jan-Michael Ong
Greetings Tomcat-Users Group,

I tried to search on this topic on Google for a few days but was unable to 
come up with any useful leads.

I was hoping if any of you would have any idea about the following:

For each jsp page, I do the following

tag:custom_tag
do some work
/tag:custom_tag
other work

What I would prefer to do is have any jsp page be rewritten right before it 
gets turned into a .java program so that it includes these lines.

I've looked at RequestInterceptors and ContextInterceptors and checked out 
the Java 3.2.4 source code ... and while I came up with some possible leads 
its been really hard to figure out if its the best way to do it or if there 
are better ways to accomplish what I'd like to do.

I would appreciate any help that you can provide in advance. Thanks very much.

Sincerely,

Jan-Michael Ong


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: NEWBIE: Intercepting the jsp request before its written as a java file

2002-10-30 Thread Jan-Michael Ong
Thank you for the quick response. Actually that's the problem. I don't want 
to have to remember to always insert an include into the jsp file.

I'd like to modify Tomcat's behavior such that ANY jsp file (preferably in 
a context) will get these lines added.

Good point though and I'll keep these in mind.

Any other suggestions?

Thanx

Jan-Michael


At 03:41 PM 10/30/2002 -0800, [EMAIL PROTECTED] wrote:
If I understand your question correctly, why don't you
just use one of the include directives to insert that
into your file where you want it?

Either:

%@ include file=relativeURL %

-- OR --

jsp:include page={relativeURL | %= expression %}
   flush=true| false 
   jsp:param name=parameterName
  value={parameterValue | %= expression %} /+
/jsp:include

Thanks.

--- Jan-Michael Ong [EMAIL PROTECTED] wrote:
 Greetings Tomcat-Users Group,

 I tried to search on this topic on Google for a few
 days but was unable to
 come up with any useful leads.

 I was hoping if any of you would have any idea about
 the following:

 For each jsp page, I do the following

 tag:custom_tag
 do some work
 /tag:custom_tag
 other work

 What I would prefer to do is have any jsp page be
 rewritten right before it
 gets turned into a .java program so that it includes
 these lines.

 I've looked at RequestInterceptors and
 ContextInterceptors and checked out
 the Java 3.2.4 source code ... and while I came up
 with some possible leads
 its been really hard to figure out if its the best
 way to do it or if there
 are better ways to accomplish what I'd like to do.

 I would appreciate any help that you can provide in
 advance. Thanks very much.

 Sincerely,

 Jan-Michael Ong


 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org



__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org