RE: [DOCS] Tyrex-Tomcat HOWTO

2002-07-03 Thread Les Hughes


No worries - I just scanned you doc and made up a not-too-accurate title :)
Since this doc still hasn't made it into CVS (hint hint) why dont you
modify the XML and mail it back to me directly and I'll check that it parses
OK (unless you can style it yourself) then we can post yet another version.

Can someone just confirm if/how/when this can be added to CVS - it'd make
patching it easier. Also, there's still a lot of noise on tomcat-user about
Datasources so the sooner we can get this up on the site the better
methinks.

My 2p :-)

Les


> -Original Message-
> From: David Haraburda [mailto:[EMAIL PROTECTED]]
> Sent: 02 July 2002 19:03
> To: Tomcat Developers List
> Subject: Re: [DOCS] Tyrex-Tomcat HOWTO
> 
> 
> Thanks for fixing up my XML typos.
> 
> I guess I personally don't really care where the Tyrex HOWTO 
> goes.. Tyrex is a bit
> different though, so it may belong somewhere
> else.  Only one comment:  you put my Tyrex stuff under "Tyrex 
> Connection Pool and
> Castor ORM with mysql", and this is an inaccurate title.  
> Tyrex is more than
> connection pooling, and it doesn't have anything to do with 
> (at least the example
> doesn't) Castor ORM.  Also, I didn't really mean for it to 
> serve as an example for
> MySQL, because I didnt actaully test that config.
> 
> That's my $0.02 about it :-)
> 
> Thanks,
> 
> David
> 
> Les Hughes wrote:
> 
> > David / All,
> >
> > Had problems rendering your doc so I've patched it onto the 
> end of mine and
> > cleaned up the XML so that it styles up OK. Here it is.
> >
> > Comments?
> >
> > Les
> >
> > PS I will stop moaning about getting this committed, I 
> promise... :-)
> >
> > > -Original Message-
> > > From: Les Hughes [mailto:[EMAIL PROTECTED]]
> > > Sent: 02 July 2002 13:29
> > > To: 'Tomcat Developers List'
> > > Subject: RE: [DOCS] Tyrex-Tomcat HOWTO
> > >
> > >
> > > Hi all,
> > >
> > > Could we add this into the JNDI Datasources HOWTO that I
> > > wrote the other
> > > week (I dont think this has been committed yet BTW)
> > >
> > > If someone can commit my HOWTO, I'll merge the two together
> > > and submit a
> > > patch this afternoon.
> > >
> > > Hope this is OK
> > >
> > > Les
> > >
> > >
> > >
> > > > -Original Message-
> > > > From: David Haraburda [mailto:[EMAIL PROTECTED]]
> > > > Sent: 28 June 2002 20:05
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [DOCS] Tyrex-Tomcat HOWTO
> > > >
> > > >
> > > > Hi all,
> > > >
> > > > Here is a short HOWTO I've written on how to use Tyrex 1.0
> > > with Tomcat
> > > > 4.1 (which goes along with the patch I submitted, which was just
> > > > recently committed).  I've added the appropriate XML 
> tags, using the
> > > > other HOWTOs as examples, so very little modification should
> > > > be needed.
> > > > Feedback on the content however, is greatly appreciated. :-)
> > > >
> > > > Thanks,
> > > >
> > > > David
> > > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> >
> >   
> --
> --
> >  Name: 
> jndi-datasource-examples-howto.xml
> >jndi-datasource-examples-howto.xmlType: XML Document 
> (text/xml)
> >  Encoding: quoted-printable
> >
> >   
> --
> --
> > --
> > 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: [DOCS] Tyrex-Tomcat HOWTO

2002-07-02 Thread Les Hughes

David / All,

Had problems rendering your doc so I've patched it onto the end of mine and
cleaned up the XML so that it styles up OK. Here it is.

Comments?

Les

PS I will stop moaning about getting this committed, I promise... :-)



> -Original Message-
> From: Les Hughes [mailto:[EMAIL PROTECTED]]
> Sent: 02 July 2002 13:29
> To: 'Tomcat Developers List'
> Subject: RE: [DOCS] Tyrex-Tomcat HOWTO
> 
> 
> Hi all,
> 
> Could we add this into the JNDI Datasources HOWTO that I 
> wrote the other
> week (I dont think this has been committed yet BTW)
> 
> If someone can commit my HOWTO, I'll merge the two together 
> and submit a
> patch this afternoon.
> 
> Hope this is OK
> 
> Les
> 
> 
> 
> > -Original Message-
> > From: David Haraburda [mailto:[EMAIL PROTECTED]]
> > Sent: 28 June 2002 20:05
> > To: [EMAIL PROTECTED]
> > Subject: [DOCS] Tyrex-Tomcat HOWTO
> > 
> > 
> > Hi all,
> > 
> > Here is a short HOWTO I've written on how to use Tyrex 1.0 
> with Tomcat
> > 4.1 (which goes along with the patch I submitted, which was just
> > recently committed).  I've added the appropriate XML tags, using the
> > other HOWTOs as examples, so very little modification should 
> > be needed.
> > Feedback on the content however, is greatly appreciated. :-)
> > 
> > Thanks,
> > 
> > David
> > 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 




jndi-datasource-examples-howto.xml
Description: Binary data

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


RE: [DOCS] Tyrex-Tomcat HOWTO

2002-07-02 Thread Les Hughes

Hi all,

Could we add this into the JNDI Datasources HOWTO that I wrote the other
week (I dont think this has been committed yet BTW)

If someone can commit my HOWTO, I'll merge the two together and submit a
patch this afternoon.

Hope this is OK

Les



> -Original Message-
> From: David Haraburda [mailto:[EMAIL PROTECTED]]
> Sent: 28 June 2002 20:05
> To: [EMAIL PROTECTED]
> Subject: [DOCS] Tyrex-Tomcat HOWTO
> 
> 
> Hi all,
> 
> Here is a short HOWTO I've written on how to use Tyrex 1.0 with Tomcat
> 4.1 (which goes along with the patch I submitted, which was just
> recently committed).  I've added the appropriate XML tags, using the
> other HOWTOs as examples, so very little modification should 
> be needed.
> Feedback on the content however, is greatly appreciated. :-)
> 
> Thanks,
> 
> David
> 

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




RE: Anyone know a way around this

2002-06-26 Thread Les Hughes


Is this you hitting the 32k method size limitation in Java (see the JLS for
details)? We've had similar probs with tags and struts generating huge
service() methods and found that we needed to reduce the tag count and
refactor the jsps.

Have fun!

Bye,
Les


> -Original Message-
> From: John Trollinger [mailto:[EMAIL PROTECTED]]
> Sent: 26 June 2002 13:37
> To: 'Tomcat Developers List'
> Subject: Anyone know a way around this
> 
> 
> Generated servlet error:
> C:\WEBCTRL2_0\jspcache\testsystem\properties\lvl5\huge$jsp.java:30165:
> code too large for try statement
> } catch (Throwable t) {
>   ^
> C:\WEBCTRL2_0\jspcache\testsystem\properties\lvl5\huge$jsp.java:2969:
> code too large for try statement
> try {
> ^
> 
> 
> 
> An error occurred at line: 102 in the jsp file:
> /testsystem/properties/lvl5/huge.staging.jsp
> 
> Generated servlet error:
> Note: C:\WEBCTRL2_0\jspcache\testsystem\properties\lvl5\huge$jsp.java
> uses or overrides a deprecated API.
> Note: Recompile with -deprecation for details.
> 2 errors
> Compile failed; see the compiler error output for details.
>   at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java)
>   at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java)
>   at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:274)
>   at
> org.apache.jasper.JspEngineContext.compile(JspEngineContext.java:385)
>   at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
Wrapper.ja
> va:157)
>   at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
.java:287)
>   at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:238)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Applica
> tionFilterChain.java:247)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilt
> erChain.java:193)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
rapperValv
> e.java:243)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.ja
> va:566)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:4
> 72)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
ontextValv
> e.java:215)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.ja
> va:566)
>   at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
henticator
> Base.java:472)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.ja
> va:564)
>   at
> org.apache.catalina.valves.CertificatesValve.invoke(Certificat
esValve.ja
> va:246)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.ja
> va:564)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:4
> 72)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
t.java:236
> 6)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
Valve.java
> :164)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.ja
> va:566)
>   at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
e.java:462
> )
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.ja
> va:564)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:4
> 72)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
gineValve.
> java:163)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.ja
> va:566)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:4
> 72)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpP
rocessor.j
> ava:1005)
>   at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
ssor.java:
> 1098)
>   at java.lang.Thread.run(Thread.java:479)
> 
> 
>   at
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa
ultErrorHa
> ndler.java:120)
>   at
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis
patcher.ja
> va:293)
>   at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:291)
>   at
> org.apache.jasper.JspEngineContext.compile(JspEngineContext.java:385)
>   at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
Wrapper.ja
> va:157)
>   at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
.java:287)
>   at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.j

RE: [PATCH] DS example for jndi-resources-howto

2002-06-26 Thread Les Hughes

Hi again,

I've had some spare time so I've summarised a bunch of DB configs from the
user list into this Datasource howto (attached) Can you disregard my prevous
patch (I dont think it's been put into CVS yet) and apply these instead?

Thanks

Les



> -Original Message-
> From: Les Hughes [mailto:[EMAIL PROTECTED]]
> Sent: 24 June 2002 16:47
> To: Tomcat-Devt (E-mail)
> Subject: [PATCH] DS example for jndi-resources-howto
> 
> 
> Hi,
> 
> As promised, a patch for the documentation. Have a read and 
> let me know of
> any improvements. Also, I think we could do with an Oracle example and
> perhaps breaking the "tutorial" stuff out into another file?
> 
> Bye,
> 
> Les
> P.S. Not really a CVS expert - hope this patch is OK.
> 
> 
> 




jndi-datasource-examples-howto.xml
Description: Binary data


project.xml.patch
Description: Binary data

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


[PATCH] DS example for jndi-resources-howto

2002-06-24 Thread Les Hughes

Hi,

As promised, a patch for the documentation. Have a read and let me know of
any improvements. Also, I think we could do with an Oracle example and
perhaps breaking the "tutorial" stuff out into another file?

Bye,

Les
P.S. Not really a CVS expert - hope this patch is OK.





jndi-resources-howto.patch
Description: Binary data

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


RE: JNDI & DS Documentation Proposal

2002-06-24 Thread Les Hughes

Hi,

Thanks for the "kind" feedback (this list can be a bit intimidating you
know!). I did try to create the DS in the default context but had no joy -
usual null ctx, no-helpful-info-in-the-logs kind of thing that seems to be
standard for mucking about in this area ;-) But then I reasoned "Why should
every deployed webapp be able to see 'my' resource? Shouldn't each one
explicitly declare it's own Datasource?" Maybe, Maybe not. If you can give
me a pointer to how to modify the server.xml then I'll add this case in.

So anyway, since no one else has -1'd me on this, I'm going to go ahead and
do my write up this afternoon. Hopefully I'll have a patch for you guys
tomorrow (if I can *ever* get my head around cvs diff :-)

Bye,

Les



> -Original Message-
> From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
> Sent: 24 June 2002 11:49
> To: Tomcat Developers List
> Subject: Re: JNDI & DS Documentation Proposal
> 
> 
> "Les Hughes" <[EMAIL PROTECTED]> wrote:
> 
> > Hi all,
> > 
> > We're all probably aware of the high amount of noise on tomcat-user
> > regarding configuring datasources and jndi in TC 4. Having 
> battled through
> > it and submitted a brief how-to for the solution that works 
> for me, I'm
> > proposing updating the TC documentation to include this and 
> a couple of
> > examples for perhaps other databases (oracle?)
> > 
> > I'm not professing to be an expert in this (I guess I just 
> got lucky) so
> > could someone vet
> > 
(http://marc.theaimsgroup.com/?l=tomcat-user&m=102225547106556&w=2) and let
> me know of (a) any other bits I should include/know about and (b) whether
I
> should go ahead and generate a patch for the docs at all?

Les, that is good... The only thing I can "nitpick" on (since it seems my
task over here now! :) is that by putting the  inside the
, your resource will only be visible to that particular context (in
your case "DBTest").

If you could expand it, by also describing the case of a resource shared by
more than one context, that would be great... Good addition...

Pier


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




JNDI & DS Documentation Proposal

2002-06-24 Thread Les Hughes

Hi all,

We're all probably aware of the high amount of noise on tomcat-user
regarding configuring datasources and jndi in TC 4. Having battled through
it and submitted a brief how-to for the solution that works for me, I'm
proposing updating the TC documentation to include this and a couple of
examples for perhaps other databases (oracle?)

I'm not professing to be an expert in this (I guess I just got lucky) so
could someone vet
(http://marc.theaimsgroup.com/?l=tomcat-user&m=102225547106556&w=2) and let
me know of (a) any other bits I should include/know about and (b) whether I
should go ahead and generate a patch for the docs at all?


Thanks.

Les


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