Re: Sunday and the brain is numb...

2001-04-24 Thread Scott Sanders

Patil, Anand wrote:

 That sounds good. How about ,
 
 Sunday and the brain is numb(Tomcat on my mind),
 Servlets to serve me, Apache not far behind.
 

Got get the JDK,
And a thing called JAXP too.
If I don't get my classpath right,
I'm gonna be singing the blues ;-)


 
 Open software: Please feel free to append/insert/delete/create/copy/paste.
 Anand
 
 -Original Message-
 From:Danny Angus [SMTP:[EMAIL PROTECTED]]
 Sent:Tuesday, April 24, 2001 12:54 PM
 To:  [EMAIL PROTECTED]
 Subject: RE: Sunday and the brain is numb
 
 
 This subject line can be a good line for a song.
 Should have Apache/TOmcat somewhere in it,
 to ooficially qualify to be a song. 
 
 How about: Sunday and the brain is numb(Tomcat on my mind)





[CATALINA]

2001-04-02 Thread Scott Sanders

Using the latest CVS of Catalina, I am having an issue with my web 
application.  When I build my webapp with Ant, I create many xml files 
under WEB-INF/classes/xml/oem/*.  Then when a request comes in, I use 
getClass().getResource() to return the URL to the xml file.

In Tomcat 3.x (3.0,3.1,3.2,3.2.1), the URL returned looks something like 
file:///opt/tomcat/webapps/app-name/WEB-INF/classes/xml/oem/file.xml

In Catalina, the URL returned is:
   /WEB-INF/classes/xml/oem/file.xml

The problem is when I use this URL as an InputSource to my XSLT 
processor (Saxon), which is contained in /WEB-INF/lib/saxon.jar, it says 
that it cannot find the file.  In Tomcat 3.x, it finds the file fine and 
continues processing.

Any suggestions?  Is this a bug?  Undefined behavior?  Is there a 
workaround?

Thanks,
Scott Sanders




Re: [CATALINA]

2001-04-02 Thread Scott Sanders

Craig R. McClanahan wrote:

 
 On Mon, 2 Apr 2001, Scott Sanders wrote:
 
 
 Using the latest CVS of Catalina, I am having an issue with my web 
 application.  When I build my webapp with Ant, I create many xml files 
 under WEB-INF/classes/xml/oem/*.  Then when a request comes in, I use 
 getClass().getResource() to return the URL to the xml file.
 
 In Tomcat 3.x (3.0,3.1,3.2,3.2.1), the URL returned looks something like 
 file:///opt/tomcat/webapps/app-name/WEB-INF/classes/xml/oem/file.xml
 
 In Catalina, the URL returned is:
/WEB-INF/classes/xml/oem/file.xml
 
 Doesn't the actual URL returned have jndi: on the front?
 
 
Apologies, Craig the URL is:  jndi:/WEB-INF/classes/xml/oem/file.xml

the jndi: is on the front, that's what I get for looking at it in the 
debugger.  JBuilder is handy, but I just did not look deep enough. ;-)


 The problem is when I use this URL as an InputSource to my XSLT 
 processor (Saxon), which is contained in /WEB-INF/lib/saxon.jar, it says 
 that it cannot find the file.  In Tomcat 3.x, it finds the file fine and 
 continues processing.
 
 Could you provide a code snippet of exactly what you are trying?  I have
 used resources from /WEB-INF/classes and JAR files under /WEB-INF/lib with
 great success in Catalina, so it's probably something specific about what
 you are doing.
 
 

It looks as though a test using getClass.getResourceAsStream() works 
just fine.  I think that it is possible that Saxon is trying to do its 
own URL-processing and does not recognize the URL syntax starting with 
'jndi:'.  I will convert my code to use getResourceAsStream() instead.

Craig, thanks for the push in the right direction.  I probably should 
have thought about it more, as another service in the same webapp uses 
it without problems... ;-)

Scott Sanders




Re: pre compile

2001-02-22 Thread Scott Sanders

 Is there a way in tomcat to precompile all my jsp
 pages?  So that as I am navigating to a new page I
 don't have to wait for it to compile?

I believe that the jspc script does that for you.  Check it out in the
bin directory...

Scott Sanders



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




Re: JDBC Realm

2001-02-05 Thread Scott Sanders

The JDBCRealm is used only for authentication of users.  If you want
to access the database for you rown purposes, this will not help you
;-)

Scott Sanders

- Original Message -
From: "Vegard Skjefstad" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 05, 2001 8:07 AM
Subject: JDBC Realm


 Hi,

 I'm working on a project where I'm going to use a MySQL JDBC
connection. I
 noticed in the server.xml something called a JDBCRealm.
 I was unable to find any any documentation about the JDBCRealm. Is
this
 something I should use? How will I access the database if I use it?
Is
 there any JDBCRealm docs available?

 [EMAIL PROTECTED]
 http://snuffcity.com
 ICQ UIN 11872166


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



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