[JBoss-user] RE: [jetty-discuss] Re: jetty integration with apache
one of the reasons one might want the ability to put apache/iis/netscape/etc. in front of jetty (or tomcat for that matter) is simply fitting into an existing infrastructure. for example, suppose i have this application that is servlet based. i sell this application to a customer that has standardized on iis. for one reason or another, web traffic can only be exposed to the "outside world" by way of iis. in this situation, it's nice to have connectors from iis to my serlvet engine of choice. it's more a matter of sales/deployment friction than anything else. > > Jason, > > As Jetty (and tomcat4) is a full featured HTTP/1.1 server, there is > little need to put apache up front. > > If you feel a technical needs - ask us for what you think is > missing from > Jetty and we will try to support it. > > If you feel an administration/managment/defacto standards > need, try to > educate :-) > > If the education fails and you really do need to put apache outfront, > it is a trivial thing to do. > > Again as Jetty fully supports HTTP/1.1, there is no need to waste > cycled using mod_webapp to translate the protocol to that used by > tomcat3. > > Instead, use Apaches transparent proxy mechanism to delegate the HTTP > requests to Jetty running within JBoss. I think it is > something like the following in your apache config: > > ProxyPass /mywebapp/ http://jbosshost:8080/mywebapp/ > > The feedback I have had on this is that it is rather efficient > and only slightly reduces the throughput you can get with direct > access to the server within JBoss. > > cheers > > PS. Jetty's doco site is in transit at the moment, so the page about > this is not linked in (nor exactly upto date). But you can still > see it at: http://jetty.mortbay.org/jetty/doc/JettyWithApache.html > > > --- Julian Gosnell <[EMAIL PROTECTED]> wrote: > Jason, > > > > As far as i know - YES > > > > You should post on [EMAIL PROTECTED] where i am > sure Greg will > > be > > able to point you to the relevant doc and summarise various > pros and cons. > > > > Jetty supports virtual hosts, but this has not been > integrated with JBoss > > as > > AFAIK, the Deployer does not yet support this (since J2EE > doesn't???). > > > > Ask Greg re URL rewriting. > > > > Please let the list know of any other 'advanced features' > that you feel > > Jetty > > (or JBoss/J2EE) is lacking, so they can be considered. > > > > I'm crossposting you to jetty-discuss, and jboss-user, as > the points this > > thread raises may be of value to other participants. > > > > > > Jules > > > > > > > > Jason Dillon wrote: > > > > > Hey, do you know if any integration support between jetty > and apache? > > Like > > > tomcat does with mod_webapp? > > > > > > I think it would be a good idea if it was easy to > integrate jboss with > > > apache as easily as possible. This would allow users to > make use of the > > > advanced web support it provides (virtual hosts, url > re-writing...). > > > > > > > snip... > > > > > > > Anyways, I don't really care if it is jetty or tomcat > that is shipped > > > default with JBoss, just that which ever it is can be > easily plugged into > > > apache. > > > > > > Perhaps jetty can support mod_webapp, if not perhaps > there is another > > > alternative which could be used for tighter integration. > > > > > > Just want to see if you might have more information on > the subject. :) > > > > > > --jason > > > > > > _ > > Do You Yahoo!? > > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > > > > For the latest information about Jetty, please see http://jetty.mortbay. > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > > > = -- Greg Wilkins <[EMAIL PROTECTED]> Mort Bay Consulting Australia and UK.GB Phone: +44-(0)7775534369 http://www.mortbay.com AU Phone: +61-(0)299772395 http://shopping.yahoo.com.au - Yahoo! Shopping - Free CDs for thousands of Priority Shoppers! Yahoo! Groups Sponsor -~--> Break free. Great American Smokeout http://us.click.yahoo.com/3vN8tD/.pSDAA/ySSFAA/CefplB/TM -~-> For the latest information about Jetty, please see http://jetty.mortbay. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Connection is broken
when I restarted jboss and run my ejb and client again ,I got a "table INFO not found" exception.My sql string just like this:"select * from info" . when I changed to "select infosequence.nextval from dual" .I got a "table dual not found" exception. I changed to use "select * from scott.info" ,but it's no use. ? - Original Message - From: zyb2 To: [EMAIL PROTECTED] Sent: Friday, December 07, 2001 4:33 PM Subject: [JBoss-user] Connection is broken [Default] Error:Connection is broken[GetDBConnection] XAException: tx=XidImpl [FormatId=257, GlobalId=zyb//10, BranchQual=] errorCode=XA_UNKNOWN(0)[GetDBConnection] javax.transaction.xa.XAException: Rollback failed: Connectionis broken[GetDBConnection] at org.jboss.pool.jdbc.xa.wrapper.XAResourceImpl.rollback(XAResourceImpl.java:219) // public java.sql.Connection GetConnection() throws RemoteException{java.sql.Connection con;try { con = ds.getConnection("scott","tiger"); Statement stmt = con.createStatement (); ResultSet rset = stmt.executeQuery ("select id from scott.info"); while (rset.next ()) { String roomid= rset.getString("ID"); System.out.println("bbs: " + roomid); }return con;} catch( Exception ex ) {System.out.println("Error:" + ex.getMessage());throw new RemoteException( ex.getMessage() );}}/ I use a pool named OraclePool ,which was tested successfuly! I also tested my pool with the oracle.jdbc.driver.OracleDriver and it passed.
Re: [JBoss-user] jboss-user shutdown
I think the biggest problem is in sourceforge.net Because it is owned by Sourceforge, why jboss.org have their own mailing list.. so if i reply to them not to a user of the sender but the list.. I prefer forum, but the list must be active still, until we see the popularity of forum is increase. but, in my country, where the internet connection is suck, to much corruption on telecommunication, btw it is still a suck country. I prefer mailing list still activated. even i used cable modem (own by a conglomerat), fuck them.. imagine.. the cable modem can be disconnect.. without support and explaination.. Please, activate both of it.. I like phpbuilder.com concepet, but i never visit them, i prefer email.. Frans - Original Message - From: "Jason Dillon" <[EMAIL PROTECTED]> To: "marc fleury" <[EMAIL PROTECTED]> Cc: "danch" <[EMAIL PROTECTED]>; "David Jencks" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, December 04, 2001 11:17 PM Subject: RE: [JBoss-user] jboss-user shutdown > This was imported from the news group. If this is meant to be user > read-only then we should change its group from jboss.user.faq to jboss.faq, > since we currently only allow users to post to stuff under jboss.user.* > > --jason > > > On Tue, 4 Dec 2001, marc fleury wrote: > > > |Hopefully the new policy that only a few people can post on the FAQ > > |forum will help that. > > > > > > I did set it up that way but saw a random post in there from a user, can I > > ask one of you guys to try and post directly and see if it does post to faq > > or not? I don't know that the security configuration was picked up correctly > > > > BTW, let me know if you want to be added to the moderator faq group, I will > > add you guys > > > > marcf > > | > > | > > |-danch > > | > > | > > |___ > > |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 > > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: [jetty-discuss] Re: jetty integration with apache
Jason, Mod_proxy does the job as the Host header should be used by all webapps as the basis of generating URLs in responses (and thus hiding the existance of the secondary server and/or port). Jetty uses this header for all the data and URL rewriting that it does, so almost all servlets should work fine behind mod_proxy. If the host header is not used, then those servlets will not work if the client has their own non-transparent proxies or port forwarders. > I don't think that Jetty should try to incorporate all of the features and > functionality of Apache. Instead, allow for JBoss/Jetty to be hooked up to Jetty is firstly and foremost a full featured HTTP/1.1 implementation in Java. Servlets are just a handler within the Jetty architecture. There is value in a 100% java solution: efficiency, simplicity, portability. While apache is a great server it should not be the end of the story when it comes to serving HTTP. While Jetty lacks some bells and whistle it can well support the requirements of almost all HTTP based applications. cheers --- Jason Dillon <[EMAIL PROTECTED]> wrote: > I was avoiding posting to jetty-discuss right away, as I didn't really do > that much research (short of a few websearches) on the matter. > > Let me clarify though. I was hoping to make use of apache's facilities for > > these advanced configurations and simply proxy other requests over to > JBoss. > > The trick would be to make sure that the url mappings look consistent from > the Apache standpoint. So if there was a virtual host foo.mydomain.com, > and > jboss was running on mydomain.com:8080, then apache could proxy requests to > > a j2ee app deployed, but appear to be foo.mydomain.com. The webuser would > never know about mydomain.com:8080. > > I know that some of this is possible with mod_proxy, but I am not so sure > about the rest. > > I don't think that Jetty should try to incorporate all of the features and > functionality of Apache. Instead, allow for JBoss/Jetty to be hooked up to > > Apache seemlessly and get the best of both worlds. > > --jason > > > On Mon, 10 Dec 2001, Julian Gosnell wrote: > > > Jason, > > > > As far as i know - YES > > > > You should post on [EMAIL PROTECTED] where i am sure Greg > will be > > able to point you to the relevant doc and summarise various pros and > cons. > > > > Jetty supports virtual hosts, but this has not been integrated with JBoss > as > > AFAIK, the Deployer does not yet support this (since J2EE doesn't???). > > > > Ask Greg re URL rewriting. > > > > Please let the list know of any other 'advanced features' that you feel > Jetty > > (or JBoss/J2EE) is lacking, so they can be considered. > > > > I'm crossposting you to jetty-discuss, and jboss-user, as the points this > > thread raises may be of value to other participants. > > > > > > Jules > > > > > > > > Jason Dillon wrote: > > > > > Hey, do you know if any integration support between jetty and apache? > Like > > > tomcat does with mod_webapp? > > > > > > I think it would be a good idea if it was easy to integrate jboss with > > > apache as easily as possible. This would allow users to make use of > the > > > advanced web support it provides (virtual hosts, url re-writing...). > > > > > > > snip... > > > > > > > Anyways, I don't really care if it is jetty or tomcat that is shipped > > > default with JBoss, just that which ever it is can be easily plugged > into > > > apache. > > > > > > Perhaps jetty can support mod_webapp, if not perhaps there is another > > > alternative which could be used for tighter integration. > > > > > > Just want to see if you might have more information on the subject. :) > > > > > > --jason > > > > > > _ > > Do You Yahoo!? > > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > Yahoo! Groups Sponsor -~--> > Quit now for Great > American Smokeout > http://us.click.yahoo.com/0vN8tD/9pSDAA/ySSFAA/CefplB/TM > -~-> > > For the latest information about Jetty, please see http://jetty.mortbay. > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > > > = -- Greg Wilkins <[EMAIL PROTECTED]> Mort Bay Consulting Australia and UK.GB Phone: +44-(0)7775534369 http://www.mortbay.com AU Phone: +61-(0)299772395 http://shopping.yahoo.com.au - Yahoo! Shopping - Free CDs for thousands of Priority Shoppers! ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: [jetty-discuss] Re: jetty integration with apache
Jason, As Jetty (and tomcat4) is a full featured HTTP/1.1 server, there is little need to put apache up front. If you feel a technical needs - ask us for what you think is missing from Jetty and we will try to support it. If you feel an administration/managment/defacto standards need, try to educate :-) If the education fails and you really do need to put apache outfront, it is a trivial thing to do. Again as Jetty fully supports HTTP/1.1, there is no need to waste cycled using mod_webapp to translate the protocol to that used by tomcat3. Instead, use Apaches transparent proxy mechanism to delegate the HTTP requests to Jetty running within JBoss. I think it is something like the following in your apache config: ProxyPass /mywebapp/ http://jbosshost:8080/mywebapp/ The feedback I have had on this is that it is rather efficient and only slightly reduces the throughput you can get with direct access to the server within JBoss. cheers PS. Jetty's doco site is in transit at the moment, so the page about this is not linked in (nor exactly upto date). But you can still see it at: http://jetty.mortbay.org/jetty/doc/JettyWithApache.html --- Julian Gosnell <[EMAIL PROTECTED]> wrote: > Jason, > > As far as i know - YES > > You should post on [EMAIL PROTECTED] where i am sure Greg will > be > able to point you to the relevant doc and summarise various pros and cons. > > Jetty supports virtual hosts, but this has not been integrated with JBoss > as > AFAIK, the Deployer does not yet support this (since J2EE doesn't???). > > Ask Greg re URL rewriting. > > Please let the list know of any other 'advanced features' that you feel > Jetty > (or JBoss/J2EE) is lacking, so they can be considered. > > I'm crossposting you to jetty-discuss, and jboss-user, as the points this > thread raises may be of value to other participants. > > > Jules > > > > Jason Dillon wrote: > > > Hey, do you know if any integration support between jetty and apache? > Like > > tomcat does with mod_webapp? > > > > I think it would be a good idea if it was easy to integrate jboss with > > apache as easily as possible. This would allow users to make use of the > > advanced web support it provides (virtual hosts, url re-writing...). > > > > snip... > > > > Anyways, I don't really care if it is jetty or tomcat that is shipped > > default with JBoss, just that which ever it is can be easily plugged into > > apache. > > > > Perhaps jetty can support mod_webapp, if not perhaps there is another > > alternative which could be used for tighter integration. > > > > Just want to see if you might have more information on the subject. :) > > > > --jason > > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > Yahoo! Groups Sponsor -~--> > Stop Smoking Now > Nicotrol will help > http://us.click.yahoo.com/2vN8tD/_pSDAA/ySSFAA/CefplB/TM > -~-> > > For the latest information about Jetty, please see http://jetty.mortbay. > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > > > = -- Greg Wilkins <[EMAIL PROTECTED]> Mort Bay Consulting Australia and UK.GB Phone: +44-(0)7775534369 http://www.mortbay.com AU Phone: +61-(0)299772395 http://shopping.yahoo.com.au - Yahoo! Shopping - Free CDs for thousands of Priority Shoppers! ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: jetty integration with apache
I was avoiding posting to jetty-discuss right away, as I didn't really do that much research (short of a few websearches) on the matter. Let me clarify though. I was hoping to make use of apache's facilities for these advanced configurations and simply proxy other requests over to JBoss. The trick would be to make sure that the url mappings look consistent from the Apache standpoint. So if there was a virtual host foo.mydomain.com, and jboss was running on mydomain.com:8080, then apache could proxy requests to a j2ee app deployed, but appear to be foo.mydomain.com. The webuser would never know about mydomain.com:8080. I know that some of this is possible with mod_proxy, but I am not so sure about the rest. I don't think that Jetty should try to incorporate all of the features and functionality of Apache. Instead, allow for JBoss/Jetty to be hooked up to Apache seemlessly and get the best of both worlds. --jason On Mon, 10 Dec 2001, Julian Gosnell wrote: > Jason, > > As far as i know - YES > > You should post on [EMAIL PROTECTED] where i am sure Greg will be > able to point you to the relevant doc and summarise various pros and cons. > > Jetty supports virtual hosts, but this has not been integrated with JBoss as > AFAIK, the Deployer does not yet support this (since J2EE doesn't???). > > Ask Greg re URL rewriting. > > Please let the list know of any other 'advanced features' that you feel Jetty > (or JBoss/J2EE) is lacking, so they can be considered. > > I'm crossposting you to jetty-discuss, and jboss-user, as the points this > thread raises may be of value to other participants. > > > Jules > > > > Jason Dillon wrote: > > > Hey, do you know if any integration support between jetty and apache? Like > > tomcat does with mod_webapp? > > > > I think it would be a good idea if it was easy to integrate jboss with > > apache as easily as possible. This would allow users to make use of the > > advanced web support it provides (virtual hosts, url re-writing...). > > > > snip... > > > > Anyways, I don't really care if it is jetty or tomcat that is shipped > > default with JBoss, just that which ever it is can be easily plugged into > > apache. > > > > Perhaps jetty can support mod_webapp, if not perhaps there is another > > alternative which could be used for tighter integration. > > > > Just want to see if you might have more information on the subject. :) > > > > --jason > > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: jetty integration with apache
Jason, As far as i know - YES You should post on [EMAIL PROTECTED] where i am sure Greg will be able to point you to the relevant doc and summarise various pros and cons. Jetty supports virtual hosts, but this has not been integrated with JBoss as AFAIK, the Deployer does not yet support this (since J2EE doesn't???). Ask Greg re URL rewriting. Please let the list know of any other 'advanced features' that you feel Jetty (or JBoss/J2EE) is lacking, so they can be considered. I'm crossposting you to jetty-discuss, and jboss-user, as the points this thread raises may be of value to other participants. Jules Jason Dillon wrote: > Hey, do you know if any integration support between jetty and apache? Like > tomcat does with mod_webapp? > > I think it would be a good idea if it was easy to integrate jboss with > apache as easily as possible. This would allow users to make use of the > advanced web support it provides (virtual hosts, url re-writing...). > snip... > Anyways, I don't really care if it is jetty or tomcat that is shipped > default with JBoss, just that which ever it is can be easily plugged into > apache. > > Perhaps jetty can support mod_webapp, if not perhaps there is another > alternative which could be used for tighter integration. > > Just want to see if you might have more information on the subject. :) > > --jason _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] SpyJMSException: Cannot get a client ID
I'm running 2.4.3 w/ catalina and when I start up the server, I get the following error:[Container factory] Serious error in init: org.jboss.mq.SpyJMSException: Cannot get a client IDI'm not sure what 'Cannot get a client ID' here means.The full exception is at the bottom. I beleive my deployment descriptors are also fine as well as the jboss.jcml, etc... and I have not even started the client yet so no need in listing it.I've listed my MDB which is basically empty.Any help much appreciated.--- my MDB class -package com.neuroquest.cais.ejb.message.reporter;import java.util.*;import javax.ejb.*;import javax.jms.*;import javax.rmi.*;import javax.naming.*;import com.neuroquest.cais.log.*;public class Reporter implements MessageDrivenBean, MessageListener {private String message = null;private MessageDrivenContext context = null;private static Logger log = new Logger();public Reporter() {}public void ejbCreate() throws CreateException {}public void ejbRemove() {this.context = null;}public void setMessageDrivenContext(MessageDrivenContext ctx) {this.context = ctx;}public void onMessage(Message msg) {log.info(Reporter.class, "Reporter got message " + message.toString());}} ./run_with_catalina.sh --[Container factory] Serious error in init: org.jboss.mq.SpyJMSException: Cannot get a client ID[Container factory] java.lang.Exception: org.jboss.mq.SpyJMSException: Cannot get a client ID[Container factory] at org.jboss.ejb.MessageDrivenContainer.init(MessageDrivenContainer.java:173)[Container factory] at org.jboss.ejb.Application.init(Application.java:202)[Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)[Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)[Container factory] at java.lang.reflect.Method.invoke(Native Method)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)[Container factory] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494)[Container factory] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)[Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)[Container factory] at java.lang.reflect.Method.invoke(Native Method)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)[Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)[Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)[Container factory] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)[Container factory] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)[Container factory] at java.lang.reflect.Method.invoke(Native Method)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)[Container factory] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)[Container factory] at $Proxy0.start(Unknown Source)[Container factory] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)[Container factory] at java.lang.reflect.Method.invoke(Native Method)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)[Container factory] at org.jboss.Main.(Main.java:221)[Container factory] at org.jboss.Main$1.run(Main.java:127)[Container factory] at java.security.AccessController.doPrivileged(Native Method)[Container factory] at org.jboss.Main.main(Main.java:123)[J2EE Deployer Default] Starting acais-1.0.ear failed!