RE: [JBoss-user] virtual hosts again...

2002-02-02 Thread Jarecsni János

Hi!

thank you for the answer, and sorry for not responding earlier! Currently
I'm evaluting the possible solutions to the problem. Someone suggested I
should use Apache in front of JBoss+Catalina (or Tomcat, it doesn't matter
in this respect).
It's relatively easy to set up vhosts under Apache and it has the advantage
of Apache serving static content.

Still it's only questions I have... :)

1) The main problem is that when I deploy an EAR or WAR on the
JBoss+(Tom)Catalina platform, the webtier gets deployed into a directory
which is not like say, Catalina's "webapps/yourWebbAppName" which can be
referenced from a configuration file. This is why I simply don't understand
how would I tell Apache or Tomcat where it finds the webroot of my
application. Without being able to do that, I cannot configure any vhosts.

2) I downloaded Jboss 2.4.4+Catalina and Apache 1.3.23. I read thru the
Apache-Catalina integration howto (now AJP Connector, formerly mod_jk), but
it was rather obscure...
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html) It
mentions that I'll have to add some listener to Catalina just to produce a
configuration file that can be referenced from Apache... Ok, I added that
line to Catalina's server.xml, but Catalina didn't find the class referred
to (org.apache.ajp.tomcat4.config.ApacheConfig). Could someone shed a bit of
lite on this too?

Thanks!

János


|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Coetmeur, Alain
|Sent: Friday, February 01, 2002 5:18 PM
|To: 'Jarecsni János'; 'JBoss-List'
|Subject: RE: [JBoss-user] FW: virtual hosts again...
|
|
|
|
|> -Message d'origine-
|> De: Coetmeur, Alain [mailto:[EMAIL PROTECTED]]
|> there is an attribute "BindAddress" which tells which precise
|> IP address you
|> listen to...
|>
|> maybe should you try
|> 
|in jboss.jcml
|
|>
|> but only if this is a different IP address
|>
|> in fact catalina mbean creates a host object
|>  on bindAddress.getHostAddress()
|>  and not directly on the name you give...
|> moreover it does a socket bind on that address
|> (which must be valid!)
|>
|> is it enough ?
|
|if you want to deploy your webapp under root context of the wirtual host,
|try to deploy a war names ".war"
|
|or if you use an EAR, set the context to "/" or "" in application.xml
|
|or
|/
|
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|https://lists.sourceforge.net/lists/listinfo/jboss-user
|


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] HOWTO: Castor 0.9.3.9 with JBoss 2.4.4

2002-02-02 Thread Oleg Nitz


Thanks Emil,

Information for those who want to save time:
Patrick van Kann provided the binary dowload
http://www.arcsin.co.uk/downloads/castorjdoplugin.jar

Oleg

On Friday 01 February 2002 20:27, you wrote:
> Hi,
>
> I wrote to the list a couple of weeks ago with problems getting the
> latest stable Castor (0.9.3.9) to work with JBoss 2.4.4. Well, I sorted
> it out eventually but didn't find any time to write down the procedure
> and send it off to the list.
>
> The basic procedure involves getting the latest known stable version of
> the castor JDO plugin (ie the one that shipped with JBoss 2.4.3) from
> the CVS repository, changing a few lines of code in it and building it
> against the JBoss 2.4.4 jars.
>
> Here's how I did it:
>
>o I downloaded JBoss 2.4.4 into the directory $JBOSS_244 and
>  removed the 0.8.x release of Castor that shipped with
>  it. (in $JBOSS_244/lib/ext)
>o I downloaded JBoss HEAD from CVS into $JBOSS_HEAD.
>o I reverted the Castor stuff from HEAD to the 2.4.3 release. It
>  wasn't tagged, so I had to revert by date.
>
>   > cd $JBOSS_HEAD/plugins/varia/src/main
>   > cvs update -D "2001-10-03"
>
>o Applied the patch below.
>
>o Built it manually against the 2.4.4 jars:
>   > javac -classpath
>
> $JBOSS_244/lib/ext/jboss.jar:$JBOSS_244/lib/jmxri.jar:$JBOSS_244/lib/ext/ca
>stor-0.9.3.9.jar:$JBOSS_244/lib/crimson.jar:$JBOSS_244/lib/ext/log4j.jar
> org/jboss/jdo/castor/*.java o Created a jar.
>
>   > jar cvf $JBOSS_244/lib/ext/jboss-castorjdo-2.4.4.jar
>
> org/jboss/jdo/castor/*.class
>
> Here's the unified diff, generated with "cvs diff -u
> CastorJDOImpl*.java" in org/jboss/jdo/castor. NOTE: This diff is
> generated against a snapshot of the code (Oct 3, 2001), NOT against
> HEAD.
>
> --- 8< ---
> Index: CastorJDOImpl.java
> ===
> RCS file:
> /cvsroot/jboss/contrib/varia/src/main/org/jboss/jdo/castor/CastorJDOImpl.ja
>va,v retrieving revision 1.5
> diff -u -r1.5 CastorJDOImpl.java
> --- CastorJDOImpl.java2001/09/11 20:51:32 1.5
> +++ CastorJDOImpl.java2002/02/01 17:24:33
> @@ -37,7 +37,7 @@
>  import org.exolab.castor.xml.Unmarshaller;
>
>  import org.jboss.logging.log4j.CategoryWriter;
> -import org.jboss.system.ServiceMBeanSupport;
> +import org.jboss.util.ServiceMBeanSupport;
>
>  import org.jboss.proxy.Proxy;
>  import org.jboss.proxy.Proxies;
> @@ -309,7 +309,7 @@
>
>  public PrintWriter getPrintWriter() {
>  if (writer == null) {
> -writer = new CategoryWriter(log);
> +writer = new CategoryWriter(log.getCategory());
>  }
>  return writer;
>  }
> Index: CastorJDOImplMBean.java
> ===
> RCS file:
> /cvsroot/jboss/contrib/varia/src/main/org/jboss/jdo/castor/CastorJDOImplMBe
>an.java,v retrieving revision 1.2
> diff -u -r1.2 CastorJDOImplMBean.java
> --- CastorJDOImplMBean.java   2001/08/30 02:42:38 1.2
> +++ CastorJDOImplMBean.java   2002/02/01 17:24:33
> @@ -14,7 +14,7 @@
>   *   @version $Revision: 1.2 $
>   */
>  public interface CastorJDOImplMBean
> -   extends org.jboss.system.ServiceMBean
> +   extends org.jboss.util.ServiceMBean
>  {
>  public static final String OBJECT_NAME = ":service=CastorJDO";
>
> --- 8< ---
>
> Here's a copy of the built jarfile:
>
>   http://www.eifrem.com/files/java/jboss/jboss-castorjdo-2.4.4.jar
>
> This procedure worked for me. YMMV.

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user