Re: Precompiling JSP - setup

2003-01-14 Thread paul miller

you could start an ant build script before starting tomcat

check out
http://jakarta.apache.org/ant/manual/OptionalTasks/jspc.html


--- Hari Venkatesan [EMAIL PROTECTED] wrote:
 Is there any documentation that explains how to setup parameters for
 precompiling JSP's when Tomcat Server starts up or can somebody please
 explain how to do this?
  
 Hari
 


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

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




Re: include files in server.xml?

2003-01-08 Thread paul miller
Can some one post an example on how to do this.
I would love it if my app's web.xml could include another xml file

This is what I have tried with no luck

  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
  [
   !ENTITY section1 SYSTEM /WEB-INF/section1.xml
  ]

  section1;

various paths to section1.xml did not change the error message:

2003-01-08 12:24:39 ContextConfig[] Parse error in application web.xml
java.io.FileNotFoundException
at org.apache.naming.resources.DirContextURLConnection.getInputStream(Unknown
Source)


thanks

--- Bill Barker [EMAIL PROTECTED] wrote:
 You can use XML Entities to do it.  There isn't a specific tag to include a
 file.
 
 Matthew Boeckman [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  I'm wondering if tomcat-4.1.12 supports include files, similair to
  apache in the server.xml file?
 
  I have to support dozens of virtual hosts, and wanted to break each's
  config out into their own include.
  --
  Matthew Boeckman (816) 777-2160
  Manager - Systems Integration Saepio Technologies
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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

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




Re: apache and tomcat and a webapp

2002-11-25 Thread paul miller

We switched from JServ to tomcat about 2 months ago.

for our production setup we use mod_webapp
and set the appBase to be the apache web_root.
 
Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=false appBase=/var/www/html
 acceptCount=10 debug=0/

This means that every thing goes through apache (a must)
and that tomcat serves all the content (Its all servlets and JSP)
Which may not be at all what you want.


--- Ron Smits [EMAIL PROTECTED] wrote:
 Let me try and be more specific :)
 
 First of all, if I get all to work the current setup with JServ will
 disappear and I am testing this in a test environment (Vmware)
 
 So let me see if I can chop my questions up in different parts
 The application is being developed using tomcat 4.1.12 running
 standalone. The development is going nice and contacting the application
 on localhost:8080/application is perfect.
 
 Question 1:
 I want the application to be the root of the tomcat. Meaning that in my
 test environment when I contact localhost:8080 I get the application and
 not the standard Tomcat page.
 I edited the server.xml and changed the Root context to point to the
 application:
  Context path= docBase=application debug=0/ I even removed the
 ROOT directory. When starting this up going to localhost:8080 will give
 me a No context configured to process this request If I go to
 localhost:8080/application my application is there. So how do I change
 this?
 
 Because the current server that needs to be replaced is running several
 domains in a virtual setup (and very nicely too thanks to apache). My
 idea is to remove the current 1.3 install with JServ and replace it with
 apache 2.0.43 that will run all the virtual hosts and will talk to
 tomcat for the web application (see question 1) that will be in a new
 virtual host. So after I have been able to get question 1 answered
 (replacing the root context with my application) the next question will
 be what the best way is of setting mod_jk up to serve up the application
 when apache gets a request for this application.
 
 I hope this is more clearer 
 
 Ron
 
 PS to fullfill the list:
 OS linux version 2.4.19
 TOMCAT 4.1.12
 JDK: jsdk1.4.1_1
 Hardware never enough but it is a big enough intel box :)
 Network: running fine, thank you :)
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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

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




re: JspC problems

2002-10-28 Thread paul miller

thanks for the post John

running the jspc4 sript under linux the su fails
  // problems escaping the -d 
but if I su to tomcat then run djasper4 script
  su - tomcat4
  djasper4 jspc -d dest dir -v4  -webapp src dir 
It works under tomcat 4.0.4
tomcat 4.1.12 creates java files but does not compile them,
and gives no reason as to why.
compilation by hand without jasper.JspC results in working but smaller class
files.

--- [EMAIL PROTECTED] wrote:
 Hi,
 
 I've solved my compilation problem - I'd inadvertently trashed my
 build classpath and jasper couldn't find the JavaBeans used by the
 JSPs.
 
 I still have the Internal Error: File /WEB-INFO/web.xml not found
 problem though. The arguments to JspC are -d dest dir -v4 -p JspServ
 and -webapp src dir and I'm using an ant java task as I couldn't
 get the jspc task to work (always died with signal 9). I can't find
 any docs for JspC which say what its command-line options are, so
 I don't know how to tell it where to find web.xml at compile time.
 
 Any insights appreciated.
 
 John.
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
 


=
Paul N Miller
[EMAIL PROTECTED]



__
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.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




Re: what does jpp mean in the rpm file names?

2002-10-14 Thread paul miller


I can help you on the rpm's
jaxp_parser_impl is from xerces-j2-2.2.0-1jpp
xml-commons-apis is from xml-commons-apis-1.0-0.b2.1jpp

http://www.jpackage.org/rpm/free/RPMS/
has both of these rpms

--- HAVENS,PETER (HP-Cupertino,ex3) [EMAIL PROTECTED] wrote:
 Can someone tell me what jpp stands for in the RPM files that are available
 for tomcat 4.1.12?
  
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/rpms/
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/rpms/ 
  
 The previous RPM files I was using for tomcat 4.0.3 there was no jpp in the
 file name.
  
 Also, I noticed that the LE version of the RPM files has dependencies on the
 following two items
 -  jaxp_parser_impl
 -  xml-commons-apis
 Can someone tell me the recommended method of satisfying these dependencies?
  
 Thanks in advance.
  
 -Peter
 


=
Paul N Miller
[EMAIL PROTECTED]



__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




Re: tomcat4.1.12 failed to deploy context not under webapp directory

2002-10-10 Thread paul miller


I am having the same issue.
It looks as though the allowLinking option breaks things.

When I  use the below server.xml  section
Context path=/foo docBase=foo debug=0
reloadable=true crossContext=false
/Context

The apache_log.-MM-DD.txt shows no errors
ditto on the  catalina_log.-MM-DD.txt

But when I add the allowLinking option...
Context path=/foo docBase=foo debug=0
reloadable=true crossContext=false
Resources className=org.apache.naming.resources.FileDirContext
allowLinking=true caseSensitive=false docBase= /
/Context

I see the below error
2002-10-10 16:11:34 ContextConfig[/foo] Exception processing JAR at resource
path /WEB-INF/lib/mm.mysql-2.0.14-bin.jar

I using tomcat4-4.1.12-full.1jpp installed via rpm
thanks

paul

--- Liu, Xiaoyan [EMAIL PROTECTED] wrote:
 Hi, all,
 
 I'm upgrading from 4.1.9 to 4.1.12 and noticed that a previously working
 application
 is not successfully loaded. It fails at the part of scanning tld files.
 
 The context is defined in server.xml as below. THis context does not live
 under
 CATALINA_HOME/webapp, and it has resources(jsp pages) symlinked under it.
 
Context path=/app 
  docBase=/home/xliu/JSPApplication/pages 
  crossContext=false
  debug=3 
  reloadable=true  
  Resources className=org.apache.naming.resources.FileDirContext
allowLinking=true docBase=/home/xliu/JSPApplication/pages /
 /Context
 
 
 The log is attached.  Is this a bug or rather some changes involving
 security?
 
 thanks for your help.
 
 
 xliu
 capitalthinking.com
 


=
Paul N Miller
[EMAIL PROTECTED]



__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




allowLinking option under ROOT

2002-10-09 Thread paul miller

I can not get the allowLinking option to work under
the
ROOT docBase.  
That is it works for a url like
www.bla.com/foo/servlet 
but not www.bla.com/servlet

Here is a section of my server.xml
  !--  WORKS! --
  Context path=/foo docBase=foo debug=0
  reloadable=false
crossContext=false
Resources 
   
className=org.apache.naming.resources.FileDirContext
allowLinking=true caseSensitive=false
docBase= /
  /Context

  !-- DOES NOT WORK! --
  Context path=/ docBase=ROOT debug=0
  reloadable=false
crossContext=false
 Resources 

className=org.apache.naming.resources.FileDirContext
 allowLinking=true caseSensitive=false
docBase= /
  /Context


And then in my httpd.conf I have

IfModule mod_webapp.c
WebAppConnection warpConnection warp
localhost:8008
WebAppDeploy ROOT warpConnection   /
WebAppDeploy foo warpConnection   /foo/
/IfModule

thanks
paul


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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