Re: [JBoss-user] 3.2.x and Virtual Hosting: Tomcat Broken, Jetty Works

2004-03-13 Thread Stefan Arentz
On Jan 5, 2004, at 3:22 PM, Bill Burke wrote:

Stefan Arentz wrote:

On Dec 31, 2003, at 4:02 PM, Remy Maucherat wrote:
You don't really know what you're talking about, which is a common 
trait of whiners.
I am ignoring you here.
Vhosting is a feature of the Jboss integration with the servlet 
container, definitely not something standard.
With Tomcat, you currently need to add a Host element in the 
jboss-service.xml for all your vhosts, similar to Tomcat standalone. 
For TC 5, it's in server.xml.
IMO it should be enough to simply change jboss-web.xml to configure 
this extension. Jetty can do it, so why not Tomcat. In an environment 
where you deploy multiple apps you don't want to edit your servlet 
container specific config files every time. I think that completely 
defeats the easy of deployment that you could have.
I'm not a big fan of automatically creating hosts overall.
I am, so that is why I am using Jetty. Less configuration. Less 
problems.
 S.
Sorry to side with Stefan, but it is a good feature.  Playboy.com 
would probably appreciate it too as they do a lot with virtual hosting 
and had a bunch of problems trying to figure out how to do it.
Hey guys, I just tried JBoss-3.2.4RC1 with the newer version of tomcat. 
It works great. I can deploy my different web apps that are packaged in 
.ear files just fine now.

Thanks!

 S.



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.2.x and Virtual Hosting: Tomcat Broken, Jetty Works

2004-01-05 Thread Mike Shoemaker
Im having the same problem.

I swapped to Jetty instead of Tomcat but upon starting up Jboss, only  
the enterprise apps are there(.ear files).  The directories containing  
only web apps(wars like jmx-console) can not be accessed.  Is there an  
additional step with Jetty?
Thanks in advance!
Mike

On Dec 18, 2003, at 2:25 PM, Stefan Arentz wrote:

My scenario was pretty simple, yet it took hours to get it done with  
tomcat. What I have is two web applications packaged in .ear files.  
Both of these apps are bound to / but to different hostnames. Like  
this in jboss-web.xml:


  /
  host1.blah.com

First try: Tomcat 4.x

I first tried this with JBoss3.2.3/Tomcat4. This does not work at all.  
Tomcat4 barfs when the second .ear is loaded.

2003-12-16 09:10:13,148 ERROR [org.jboss.deployment.MainDeployer]  
could not start deployment: file:fluts.war  
org.jboss.deployment.DeploymentException: Error during deploy; -  
nested throwable: (java.lang.IllegalArgumentException: addChild:   
Child name '' is not unique)
at  
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java: 
440)
at  
org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
at  
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
at  
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)

Maybe something newer: Tomcat 5.x

Then I tried to do this with Tomcat 5.x that comes with JBoss 3.2.3.  
Unfortunately this also does not work. The first app deploys fine  
again but when the second one is loaded I get an  
IncompatibleClassChangeError.

To the rescue: Jetty

Enough of that Tomcat cr*p. I got rid of jbossweb-*, downloaded  
jboss-3.2.2-jetty-4.2.14.sar from http://jetty.mortbay.org, dropped it  
in the deploy directory. My JBoss version is 3.2.3, but this Jetty  
version works fine with it.

Guess what ... I deployed my ear files and they worked. No errors, no  
weird class loaded stuff, no exceptions.

Why oh why does JBoss not ship with Jetty anymore. It is clearly the  
servlet engine that works. Maybe my setup is unique. Maybe none of the  
5 million people who downloaded JBoss use virtual hosting like this. I  
don't know. All I know is that I will run my production servers with  
Jetty for the simple reason that it is currently the only servlet  
container that can actually deploy standard applications.

Bah. Four hours wasted.

 S.



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for  
IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys  
admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.2.x and Virtual Hosting: Tomcat Broken, Jetty Works

2004-01-05 Thread Bill Burke


Stefan Arentz wrote:

On Dec 31, 2003, at 4:02 PM, Remy Maucherat wrote:

You don't really know what you're talking about, which is a common 
trait of whiners.


I am ignoring you here.

Vhosting is a feature of the Jboss integration with the servlet 
container, definitely not something standard.
With Tomcat, you currently need to add a Host element in the 
jboss-service.xml for all your vhosts, similar to Tomcat standalone. 
For TC 5, it's in server.xml.


IMO it should be enough to simply change jboss-web.xml to configure this 
extension. Jetty can do it, so why not Tomcat. In an environment where 
you deploy multiple apps you don't want to edit your servlet container 
specific config files every time. I think that completely defeats the 
easy of deployment that you could have.

I'm not a big fan of automatically creating hosts overall.


I am, so that is why I am using Jetty. Less configuration. Less problems.

 S.

Sorry to side with Stefan, but it is a good feature.  Playboy.com would 
probably appreciate it too as they do a lot with virtual hosting and had 
a bunch of problems trying to figure out how to do it.

Bill




---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
--

Bill Burke
Chief Architect
JBoss Group LLC.



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.2.x and Virtual Hosting: Tomcat Broken, Jetty Works

2004-01-05 Thread Stefan Arentz
On Dec 31, 2003, at 4:02 PM, Remy Maucherat wrote:

You don't really know what you're talking about, which is a common 
trait of whiners.
I am ignoring you here.

Vhosting is a feature of the Jboss integration with the servlet 
container, definitely not something standard.
With Tomcat, you currently need to add a Host element in the 
jboss-service.xml for all your vhosts, similar to Tomcat standalone. 
For TC 5, it's in server.xml.
IMO it should be enough to simply change jboss-web.xml to configure 
this extension. Jetty can do it, so why not Tomcat. In an environment 
where you deploy multiple apps you don't want to edit your servlet 
container specific config files every time. I think that completely 
defeats the easy of deployment that you could have.

I'm not a big fan of automatically creating hosts overall.
I am, so that is why I am using Jetty. Less configuration. Less 
problems.

 S.



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.2.x and Virtual Hosting: Tomcat Broken, Jetty Works

2003-12-31 Thread Remy Maucherat
Stefan Arentz wrote:
My scenario was pretty simple, yet it took hours to get it done with 
tomcat. What I have is two web applications packaged in .ear files. Both 
of these apps are bound to / but to different hostnames. Like this in 
jboss-web.xml:


  /
  host1.blah.com

First try: Tomcat 4.x

I first tried this with JBoss3.2.3/Tomcat4. This does not work at all. 
Tomcat4 barfs when the second .ear is loaded.

2003-12-16 09:10:13,148 ERROR [org.jboss.deployment.MainDeployer] could 
not start deployment: file:fluts.war 
org.jboss.deployment.DeploymentException: Error during deploy; - nested 
throwable: (java.lang.IllegalArgumentException: addChild:  Child name '' 
is not unique)
at 
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:440)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)

Maybe something newer: Tomcat 5.x

Then I tried to do this with Tomcat 5.x that comes with JBoss 3.2.3. 
Unfortunately this also does not work. The first app deploys fine again 
but when the second one is loaded I get an IncompatibleClassChangeError.

To the rescue: Jetty

Enough of that Tomcat cr*p. I got rid of jbossweb-*, downloaded 
jboss-3.2.2-jetty-4.2.14.sar from http://jetty.mortbay.org, dropped it 
in the deploy directory. My JBoss version is 3.2.3, but this Jetty 
version works fine with it.

Guess what ... I deployed my ear files and they worked. No errors, no 
weird class loaded stuff, no exceptions.

Why oh why does JBoss not ship with Jetty anymore. It is clearly the 
servlet engine that works. Maybe my setup is unique. Maybe none of the 5 
million people who downloaded JBoss use virtual hosting like this. I 
don't know. All I know is that I will run my production servers with 
Jetty for the simple reason that it is currently the only servlet 
container that can actually deploy standard applications.
You don't really know what you're talking about, which is a common trait 
of whiners. Vhosting is a feature of the Jboss integration with the 
servlet container, definitely not something standard.

With Tomcat, you currently need to add a Host element in the 
jboss-service.xml for all your vhosts, similar to Tomcat standalone. For 
TC 5, it's in server.xml. I'm not a big fan of automatically creating 
hosts overall.

As for Tomcat 5, not enough testing has occurred at the moment, so the 
JBoss/Tomcat integration is beta, and could have big bugs in JBoss 3.2.3.

--
x
Rémy Maucherat
Senior Developer & Consultant
JBoss Group (Europe) SàRL
x


---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.2.x and Virtual Hosting: Tomcat Broken, Jetty Works

2003-12-31 Thread Mike Shoemaker
Im having the same problem.

I swapped to Jetty instead of Tomcat but upon starting up Jboss, only  
the enterprise apps are there(.ear files).  The directories containing  
only web apps(wars like jmx-console) can not be accessed.  Is there an  
additional step with Jetty?
Thanks in advance!
Mike

On Dec 18, 2003, at 2:25 PM, Stefan Arentz wrote:

My scenario was pretty simple, yet it took hours to get it done with  
tomcat. What I have is two web applications packaged in .ear files.  
Both of these apps are bound to / but to different hostnames. Like  
this in jboss-web.xml:


  /
  host1.blah.com

First try: Tomcat 4.x

I first tried this with JBoss3.2.3/Tomcat4. This does not work at all.  
Tomcat4 barfs when the second .ear is loaded.

2003-12-16 09:10:13,148 ERROR [org.jboss.deployment.MainDeployer]  
could not start deployment: file:fluts.war  
org.jboss.deployment.DeploymentException: Error during deploy; -  
nested throwable: (java.lang.IllegalArgumentException: addChild:   
Child name '' is not unique)
at  
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java: 
440)
at  
org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
at  
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
at  
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)

Maybe something newer: Tomcat 5.x

Then I tried to do this with Tomcat 5.x that comes with JBoss 3.2.3.  
Unfortunately this also does not work. The first app deploys fine  
again but when the second one is loaded I get an  
IncompatibleClassChangeError.

To the rescue: Jetty

Enough of that Tomcat cr*p. I got rid of jbossweb-*, downloaded  
jboss-3.2.2-jetty-4.2.14.sar from http://jetty.mortbay.org, dropped it  
in the deploy directory. My JBoss version is 3.2.3, but this Jetty  
version works fine with it.

Guess what ... I deployed my ear files and they worked. No errors, no  
weird class loaded stuff, no exceptions.

Why oh why does JBoss not ship with Jetty anymore. It is clearly the  
servlet engine that works. Maybe my setup is unique. Maybe none of the  
5 million people who downloaded JBoss use virtual hosting like this. I  
don't know. All I know is that I will run my production servers with  
Jetty for the simple reason that it is currently the only servlet  
container that can actually deploy standard applications.

Bah. Four hours wasted.

 S.



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for  
IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys  
admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] 3.2.x and Virtual Hosting: Tomcat Broken, Jetty Works

2003-12-18 Thread Stefan Arentz
My scenario was pretty simple, yet it took hours to get it done with 
tomcat. What I have is two web applications packaged in .ear files. 
Both of these apps are bound to / but to different hostnames. Like this 
in jboss-web.xml:


  /
  host1.blah.com

First try: Tomcat 4.x

I first tried this with JBoss3.2.3/Tomcat4. This does not work at all. 
Tomcat4 barfs when the second .ear is loaded.

2003-12-16 09:10:13,148 ERROR [org.jboss.deployment.MainDeployer] could 
not start deployment: file:fluts.war 
org.jboss.deployment.DeploymentException: Error during deploy; - nested 
throwable: (java.lang.IllegalArgumentException: addChild:  Child name 
'' is not unique)
at 
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:440)
at 
org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
at 
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
at 
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)

Maybe something newer: Tomcat 5.x

Then I tried to do this with Tomcat 5.x that comes with JBoss 3.2.3. 
Unfortunately this also does not work. The first app deploys fine again 
but when the second one is loaded I get an 
IncompatibleClassChangeError.

To the rescue: Jetty

Enough of that Tomcat cr*p. I got rid of jbossweb-*, downloaded 
jboss-3.2.2-jetty-4.2.14.sar from http://jetty.mortbay.org, dropped it 
in the deploy directory. My JBoss version is 3.2.3, but this Jetty 
version works fine with it.

Guess what ... I deployed my ear files and they worked. No errors, no 
weird class loaded stuff, no exceptions.

Why oh why does JBoss not ship with Jetty anymore. It is clearly the 
servlet engine that works. Maybe my setup is unique. Maybe none of the 
5 million people who downloaded JBoss use virtual hosting like this. I 
don't know. All I know is that I will run my production servers with 
Jetty for the simple reason that it is currently the only servlet 
container that can actually deploy standard applications.

Bah. Four hours wasted.

 S.



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user