-
1. Re: JBoss-2.4.5/Tomcat-4.0.3 + Virtual Hosts
mdelamere Apr 24, 2002 6:29 PM (in response to jkramer)Hi,
Wow this is good news. I was using a patch from Alain Cotemeur for jboss2.4.4. So, I´m downloading now aswell and maybe I can come up with an answer (if nobody else posts).
Hope you don´t mind me using this thread for another question. Does that mean that jboss3.0 does or will eventually support virtual hosts aswell? More good news!
bye Michael Delamere -
2. Re: JBoss-2.4.5/Tomcat-4.0.3 + Virtual Hosts
mdelamere Apr 25, 2002 1:56 PM (in response to jkramer)Well, I ended up downloading a corrupted zip-archive at 4kb/s. So next try :-).
Is someone reading this thread?
bye Michael Delamere -
3. Re: JBoss-2.4.5/Tomcat-4.0.3 + Virtual Hosts
jkramer Apr 25, 2002 3:46 PM (in response to jkramer)I posted this same question to the users mailing list and this is the reply I got from Scott Stark:
An example jboss.jcml EmbeddedCatalinaServiceSX mbean config with
localhost and succubus virtual hosts:
<!-- The embedded Tomcat-4.x(Catalina) service configuration -->
www.starkinternational.com
main.starkinternational.com
<!-- A HTTP Connector on port 8080 -->
A war deployed to the virtual host succubs under the root context
needs to include a WEB-INF/jboss-web.xml descriptor with:
<jboss-web>
<context-root>/</context-root>
<virtual-host>succubus</virtual-host>
</jboss-web>
I have tried this and it works so... Woohoo and Yippee and all other shouts of joy.
Thanks Scott, and I hope this helps anyone else too.
~Jakob Kramer -
4. Re: JBoss-2.4.5/Tomcat-4.0.3 + Virtual Hosts
mdelamere Apr 25, 2002 5:30 PM (in response to jkramer)Thanks!
Doesn´t look too hard. As I haven´t managed to download jboss2.4.5 yet (it keeps stopping half-way and I end up with yet another corrupted zip file), I have been trying the same configuration with jboss3.0.
It´s not working yet, although I have the feeling that I´m getting there.
I´ll try asking my question again :-), will the above configuration also work with jboss3.0?
bye Michael Delamere -
5. Re: JBoss-2.4.5/Tomcat-4.0.3 + Virtual Hosts
mdelamere Apr 26, 2002 7:54 AM (in response to jkramer)Me again (zzzzzz) !
I´ve managed to download the jboss2.4.5+tomcat4.0.3 bundle. I´ve also set up the virtual hosts exactly the way it has been described above.
Could someone explain to me why I´m getting the following errors when restarting apache:
===================================================================
[INFO,Engine] WarpHost[servtest.intern.delamere.de]: Installing web application at context path /examples from URL file:/usr/local/java/jboss2.4.5/catalina/webapps/examples
[INFO,Engine] WebappLoader[/examples]: Deploying class repositories to work directory /usr/local/java/jboss2.4.5/catalina/work/servtest.intern.delamere.de/examples
[INFO,Engine] StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom
[INFO,Engine] StandardManager[/examples]: Seeding of random number generator has been completed
[ERROR,Engine] [org.apache.catalina.connector.warp.WarpConnector] Connection from /127.0.0.1:1348 to /127.0.0.1:8008
[ERROR,Engine] [org.apache.catalina.connector.warp.WarpConnector] Connection from /127.0.0.1:1349 to /127.0.0.1:8008
[INFO,Engine] ContextConfig[/examples]: Added certificates -> request attribute Valve
[INFO,Engine] ContextConfig[/examples]: Configured an authenticator for method FORM
[ERROR,Engine] StandardContext[/examples]: Error configuring application listener of class listeners.ContextListener
java.lang.NoClassDefFoundError: javax/servlet/ServletContextAttributeListener
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1631)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:926)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243)
===================================================================
I´ve got the feeling as if I´m talking to myself. Could someone PLEASE give me an answer to my questions.
bye Michael Delamere -
6. Re: JBoss-2.4.5/Tomcat-4.0.3 + Virtual Hosts
jkramer Apr 26, 2002 11:49 AM (in response to jkramer)Michael,
I don't know the answer to your question since I myself am not using apache and so cannot replicate the error, but I have asked around the office with people more familiar with apache than I, but they don't have any ideas straight away.
My question to you though is this: Were you able to configure each virtual host (each independant application) to use a different data source, if so how did you do this?
Cheers,
Jakob Kramer -
7. Re: JBoss-2.4.5/Tomcat-4.0.3 + Virtual Hosts
mdelamere Apr 26, 2002 12:40 PM (in response to jkramer)Hi Jakob,
I´m not sure exactly what you mean. Do you mean deploying in several directories, i.e. one for each application?
As far as I know you can specify this in the jboss.jcml.
This is what I did:
<!-- ==================================================================== -->
<!-- Auto deployment -->
<!-- ==================================================================== -->
J2EE:service=J2eeDeployer;
JCA:service=RARDeployer
../deploy,../deploy/lib,/www/servtest/java</attribute
You´ll notice that I have added "/www/servtest/java".
Now I´m not sure wether this is the "only" or the "best" solution but it works.
bye Michael Delamere -
8. Re: JBoss-2.4.5/Tomcat-4.0.3 + Virtual Hosts
mdelamere Apr 26, 2002 12:42 PM (in response to jkramer)Well actually I have "/www/servtest/java/deploy" but I think you get my point :-)
-
9. Re: JBoss-2.4.5/Tomcat-4.0.3 + Virtual Hosts
jkramer Apr 26, 2002 12:59 PM (in response to jkramer)I understand about the seperate directory thing. What I am curious about is whether or not I can have application a connect to database a and have application b connect to database b.
Thanks,
~Jakob Kramer -
10. Re: JBoss-2.4.5/Tomcat-4.0.3 + Virtual Hosts
mdelamere Apr 26, 2002 1:18 PM (in response to jkramer)Sorry, I don´t have an answer to that question. However, I can´t imagine it.
You would be better off asking these types of questions to the tomcat-user mailing list. It´s near to impossible getting an answer in this forum!!
regards
Michael Delamere
p.s. Coming back to the virtual host question :-) :
did you ever get this error message from tomcat:
"The requested resource (/examples/) is not available." -
11. Re: JBoss-2.4.5/Tomcat-4.0.3 + Virtual Hosts
mdelamere Apr 26, 2002 1:23 PM (in response to jkramer)oh oh, got it wrong again. I meant the jboss-users mailing list of course!
That´s what happens to you when you hardly sleep for almost a week because you´re trying to get all this setup! -
12. Re: JBoss-2.4.5/Tomcat-4.0.3 + Virtual Hosts
seanhowell May 2, 2002 8:29 AM (in response to jkramer)Sorry Jakob,
I can see in the output the [Engine] picking up my new host but I'm missing something. I can deploy under the virtual host;
http://www.mycompany.com/myApp
but having trouble deploying a .ear directly to
http://www.mycompany.com
Where am I going wrong?
Cheers
Sean -
13. Re: JBoss-2.4.5/Tomcat-4.0.3 + Virtual Hosts
seanhowell May 2, 2002 9:28 AM (in response to jkramer)Ok, scratch that, I figured it out.
I can now join in the cheers, hooray!
Thanks guys.