You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Vincent Massol <vm...@octo.com> on 2002/12/01 21:17:08 UTC

RE: how to use cactus with jboss/tomcat?

Hi Hans,

I've just committed the jboss/jetty Ant script in Cactus CVS for you:

http://cvs.apache.org/viewcvs/jakarta-cactus/sample-servlet/conf/sample/
build/j2ee13/build-tests-jboss-3x.xml

http://cvs.apache.org/viewcvs/jakarta-cactus/sample-servlet/conf/sample/
conf/test/j2ee13/jboss3x/

Hope it helps,
-Vincent

> -----Original Message-----
> From: SainTiss [mailto:saintiss@gmx.net]
> Sent: 30 November 2002 21:27
> To: cactus-user@jakarta.apache.org
> Subject: how to use cactus with jboss/tomcat?
> 
> Hi,
> 
> I'm doing the cactus tutorial...
> 
> It talks about creating some directories/files in
[tomcat-root]/webapps,
> and modifying [tomcat root]/conf/web.xml...
> 
> After that, the URL http://localhost:8080/test/ServletTestRunner
should
> be available...
> 
> However, I got the impression that the tomcat integrated in Jboss
> doesn't really work like the standalone version... I restarted JBoss,
> and in the log, nothing about "ServletTestRunner" was mentioned, and
> when trying to access the above URL, I get a "Mapping configuration
> error"...
> 
> Are there some docs available on setting up cactus on JBoss/Tomcat?
> (or JBoss/Jetty would also be fine)
> 
> Thanks
> 
> Hans


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: how to use cactus with jboss/tomcat?

Posted by Vincent Massol <vm...@octo.com>.

> -----Original Message-----
> From: SainTiss [mailto:saintiss@gmx.net]
> Sent: 01 December 2002 22:49
> To: vmassol@octo.com
> Cc: Cactus Users List
> Subject: RE: how to use cactus with jboss/tomcat?
> 

[snip]

> 
> About log4j.properties being optional: if I remove it from the client
> side CP, I get exceptions, so apparently it's not optional there...

Then that's a bug... :-(

> 
> > That's normal, it is not in your CLASSPATH. As you know, "being in
the
> > CP" for a single resource means that the directory where it is
located
> > is in the CP and .../default/lib is not in the CP.
> 
> Actually, I didn't know that :-)
> So thanks for pointing this out...
> 
> I don't think I ever found a good document where the jboss CP
philosophy
> is described...
> 
> Also, I tried putting the log4j.properties file in the WEB-INF/classes
> directory, yet I noticed no change in behaviour, and I didn't find a
> cactus_server.log file generated anywhere...
> Where should it be written normally?
> (the cactus_client.log file *is* generated in my build directory...)

The cactus_server.log file is generated in the directory from where you
started your container.

-Vincent



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: how to use cactus with jboss/tomcat?

Posted by SainTiss <sa...@gmx.net>.
Hi Vincent,

I didn't miss the config howto, but I must admit I got a bit confused...

I'll try to point out where this happened:

"Note  Please note that the different options for configuring Cactus
works both for Cactus client side (i.e. from where you start the JUnit
Test Runner) and for the Cactus server side (i.e. from where you start
your application server)."

This is why I thought that there had to be a cactus.properties file both
on client and server side...

About log4j.properties being optional: if I remove it from the client
side CP, I get exceptions, so apparently it's not optional there... 

> That's normal, it is not in your CLASSPATH. As you know, "being in the
> CP" for a single resource means that the directory where it is located
> is in the CP and .../default/lib is not in the CP.

Actually, I didn't know that :-)
So thanks for pointing this out...

I don't think I ever found a good document where the jboss CP philosophy
is described...

Also, I tried putting the log4j.properties file in the WEB-INF/classes
directory, yet I noticed no change in behaviour, and I didn't find a
cactus_server.log file generated anywhere...
Where should it be written normally?
(the cactus_client.log file *is* generated in my build directory...)

Thanks,

Hans


RE: how to use cactus with jboss/tomcat?

Posted by Vincent Massol <vm...@octo.com>.
Hi Hans,

> -----Original Message-----
> From: SainTiss [mailto:saintiss@gmx.net]
> Sent: 01 December 2002 21:43
> To: vmassol@octo.com
> Cc: Cactus Users List
> Subject: RE: how to use cactus with jboss/tomcat?
> 
> Hi Vincent,
> 
> Thanks for the effort.
> However, I had figured it out by myself with a bit of luck :-)
> 

ok. Good.

> Still, there is one thing that's not quite clear yet:
> 
> The docs on the cactus site, say that a log4j.properties file and a
> cactus.properties file should be present at client side *and* server
> side. Well, I put them in the client side classpath, and things
work...

Actually if I remember correctly the docs says that log4j.properties is
optional. The doc must also say that cactus.properties is only needed on
the client side. 

Feel free to point me the location in the doc that is wrong and I'll
correct.

> 
> What's more, no matter what I try, I can't seem to find how cactus
would
> pick up the server side files.

It's described in the config how to. The only config file is
log4j.properties which you need to put in your classpath. The best
solution for this (check the classpath howto or config howto) is to put
the log4j conf file in your webapp WEB-INF/classes directory so that it
is in your CP by default.

> For example, I tried putting the log4j.properties file in [jboss
> root]/server/default/lib, but no cactus_server.log file was created
when
> running the tets...

That's normal, it is not in your CLASSPATH. As you know, "being in the
CP" for a single resource means that the directory where it is located
is in the CP and .../default/lib is not in the CP.

> As for the cactus.properties file, I'm totally lost as well...

It's not needed on the server side and is even optional on the client
side if you pass the needed properties as system properties (-D). Check
the config how to on the web site.

> 
> Is this an error in the docs, meaning that no server-side properties
> files are needed? Or am I actually missing something?

It seems to me you missed the config how to. If not, I would be happy to
improve it on your suggestions ;-)

Thanks
-Vincent

[snip]



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: how to use cactus with jboss/tomcat?

Posted by SainTiss <sa...@gmx.net>.
Hi Vincent,

Thanks for the effort.
However, I had figured it out by myself with a bit of luck :-)

Still, there is one thing that's not quite clear yet:

The docs on the cactus site, say that a log4j.properties file and a
cactus.properties file should be present at client side *and* server
side. Well, I put them in the client side classpath, and things work...

What's more, no matter what I try, I can't seem to find how cactus would
pick up the server side files.
For example, I tried putting the log4j.properties file in [jboss
root]/server/default/lib, but no cactus_server.log file was created when
running the tets... 
As for the cactus.properties file, I'm totally lost as well...

Is this an error in the docs, meaning that no server-side properties
files are needed? Or am I actually missing something?

Thanks

Hans


On Sun, 2002-12-01 at 21:17, Vincent Massol wrote:
> Hi Hans,
> 
> I've just committed the jboss/jetty Ant script in Cactus CVS for you:
> 
> http://cvs.apache.org/viewcvs/jakarta-cactus/sample-servlet/conf/sample/
> build/j2ee13/build-tests-jboss-3x.xml
> 
> http://cvs.apache.org/viewcvs/jakarta-cactus/sample-servlet/conf/sample/
> conf/test/j2ee13/jboss3x/
> 
> Hope it helps,
> -Vincent
> 
> > -----Original Message-----
> > From: SainTiss [mailto:saintiss@gmx.net]
> > Sent: 30 November 2002 21:27
> > To: cactus-user@jakarta.apache.org
> > Subject: how to use cactus with jboss/tomcat?
> > 
> > Hi,
> > 
> > I'm doing the cactus tutorial...
> > 
> > It talks about creating some directories/files in
> [tomcat-root]/webapps,
> > and modifying [tomcat root]/conf/web.xml...
> > 
> > After that, the URL http://localhost:8080/test/ServletTestRunner
> should
> > be available...
> > 
> > However, I got the impression that the tomcat integrated in Jboss
> > doesn't really work like the standalone version... I restarted JBoss,
> > and in the log, nothing about "ServletTestRunner" was mentioned, and
> > when trying to access the above URL, I get a "Mapping configuration
> > error"...
> > 
> > Are there some docs available on setting up cactus on JBoss/Tomcat?
> > (or JBoss/Jetty would also be fine)
> > 
> > Thanks
> > 
> > Hans
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>