[JBoss-user] JNDI DirContext.getSchema method
When I execute the following code in a jsp: DirContext context = new InitialDirContext(env); if( context instanceof DirContext ) System.out.println("context instanceof DirContext"); DirContext schema = context.getSchema("jnp://localhost:1099"); I get the following exception: QueryLdap failed: javax.naming.NotContextException: Not an instance of DirContext Even though the instanceof statement above printed that is was a DirContext. Has anyone tried this or know what's going on? Thanks - Richard Chandler ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: Binding objects into JNDI
Ok, I knew it was too good to be true. Now that I've got things "working" I've run into a different problem. I start JBoss, hit my JSP that binds the factory into JNDI, and (in the same JSP) retrieve a reference and call through it - everything's happy. I touch the .ear in $JBOSS_HOME/deploy JBoss undeploys and redeploys the ear as expected. I hit the same JSP - only this time, everything's not happy: [ERROR,EmbeddedCatalinaServiceSX] - Root Cause - java.lang.NoClassDefFoundError at com.cnptechnologies.entity.DefaultEntityFactory.newInstance(DefaultEntityFactory.java:54) Now that line (54) is nothing special - it's just doing this: tEntity = new BaseEntity(); where BaseEntity is a class in the same package as the factory. Can anyone attempt to explain why that might be? -- Dan Berger [[EMAIL PROTECTED]] "We are what we repeatedly do. Excellence, then, is not an act, but a habit." -- Aristotle "It comes in pints?!" -- Pippin
[JBoss-user] Re: Binding objects into JNDI
On Fri, 2002-02-01 at 10:41, Dan Berger wrote: 1. I wanted to setup a res-ref in the jboss-web.xml to map the bound location (java:/EntityFactory) to something under comp/env - the ref gets built, but when I try to dereference it, after tickling the static block, I get a [ERROR,Default] javax.naming.NameNotFoundException: EntityFactory not bound I suspect this is a chicken-egg problem - but was wondering if anyone could confirm that for me. Turns out that this was the same cause as the object not appearing - specifically - I had bound it somewhere else in the tree than the ref was pointing. All good now. 3. And the hard one - is there a way, without resorting to an auto-loaded servlet who's job in life is to register all the factories (either by adding a registerFactory() method to the interface and calling it, or by instantiating the classes and causing the static blocks to execute), to make sure these factories are bound into JNDI when the application is deployed? that leaves just this one... -- Dan Berger [[EMAIL PROTECTED]] "We are what we repeatedly do. Excellence, then, is not an act, but a habit." -- Aristotle "It comes in pints?!" -- Pippin
[JBoss-user] Re: Binding objects into JNDI
On Fri, 2002-02-01 at 10:41, Dan Berger wrote: 2. I have a simple JNDI viewer in JSP - it list's a specified context, grabs the NameClassPairs and spits them out in a table. I deployed this jsp in the same WAR (contained in the same EAR) as the object factory - but EntityFactory never appears in it's list - and I thought it should/would. Am I barking up the wrong tree? Ok - answered this one for myself - I had inadvertently taken the java:/ bit out the bind location - putting it back makes the world a happier place. -- Dan Berger [[EMAIL PROTECTED]] "We are what we repeatedly do. Excellence, then, is not an act, but a habit." -- Aristotle "It comes in pints?!" -- Pippin
[JBoss-user] Re: Binding objects into JNDI
Thanks - I had tried binding into other places in the tree - but thanks to your encouragement (i.e. you didn't say "you can't do that!") I kept at it, and managed to get things working this morning. I have three more related questions, however, which perhaps someone here can answer. The object in question looks (something) like this: public class ObjectFactory extends Serializable { public Object newInstance( String className ) { return Class.forName( className ).newInstance(); } static { try { Context context = new InitialContext(); System.out.println( "attempting rebind..." ); context.rebind( "ObjectFactory", new DefaultObjectFactory() ); System.out.println( "rebind sucessful..." ); } catch ( NamingException e ) { System.out.println( "rebind failed: " + e.getMessage() ); } } } my test code (a jsp deployed in an ear) just does this: // tickle the classloader and get the static block to execute. ObjectFactory of = new ObjectFactory(); // ... ObjectFactory factory = context.lookup( "ObjectFactory" ); So the questions are: 1. I wanted to setup a res-ref in the jboss-web.xml to map the bound location (java:/EntityFactory) to something under comp/env - the ref gets built, but when I try to dereference it, after tickling the static block, I get a [ERROR,Default] javax.naming.NameNotFoundException: EntityFactory not bound I suspect this is a chicken-egg problem - but was wondering if anyone could confirm that for me. 2. I have a simple JNDI viewer in JSP - it list's a specified context, grabs the NameClassPairs and spits them out in a table. I deployed this jsp in the same WAR (contained in the same EAR) as the object factory - but EntityFactory never appears in it's list - and I thought it should/would. Am I barking up the wrong tree? 3. And the hard one - is there a way, without resorting to an auto-loaded servlet who's job in life is to register all the factories (either by adding a registerFactory() method to the interface and calling it, or by instantiating the classes and causing the static blocks to execute), to make sure these factories are bound into JNDI when the application is deployed? On Fri, 2002-02-01 at 08:12, [EMAIL PROTECTED] wrote: Message: 4 Reply-To: "Scott M Stark" <[EMAIL PROTECTED]> From: "Scott M Stark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: [JBoss-user] Binding objects into JNDI Date: Thu, 31 Jan 2002 22:36:50 -0800 Organization: JBoss Group The java:comp/env context is a special read-only context available to J2EE components that is local to one component. The only information that can be in there is what you have specified in the deployment descriptors. Use a different binding name like just "factories/ObjectFactory" Scott Stark Chief Technology Officer JBoss Group, LLC -- Dan Berger [[EMAIL PROTECTED]] "We are what we repeatedly do. Excellence, then, is not an act, but a habit." -- Aristotle "It comes in pints?!" -- Pippin ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] HOWTO: Castor 0.9.3.9 with JBoss 2.4.4
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/castor-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.java,v retrieving revision 1.5 diff -u -r1.5 CastorJDOImpl.java --- CastorJDOImpl.java 2001/09/11 20:51:32 1.5 +++ CastorJDOImpl.java 2002/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/CastorJDOImplMBean.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. -- Emil Eifrem [[EMAIL PROTECTED]] Kernel Developer, .windh AB ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss as general service container?
The short answer is yes. Please bear in mind that I've not been actively developing lately, so my response is based on what I understand from discussions on the developer list. The JBoss backbone is just a JMX container. All of the EJB, Transaction, JCA, etc. services that JBoss provides run as MBeans within that server. You can easily write your own MBeans to provide your services. Support in JBoss 3.0 will be (is) even better. One problem you may run into with MBeans referring to EJBs is classloader and dependecy issues, but the JBoss 3.0 core should (if i remember the development discussions correctly) allow you to deploy the mbeans, ejbs, and any other related stuff as one application with appropriate dependencies, so you should be able to get around that as well. -danch jfina wrote: > Hi! > Can jboss be used as a general purpose service container? > If thats true I may build network services deployed in the jboss container and use >the ejb as a peristent back-end store for the > services. > ...or i may just run JINI and use jboss as the persistent engine. > > What do you think? > > /Jon > > > ___ > 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] Re: Binding objects into JNDI (Scott M Stark)
Hello jboss-user-request, Friday, February 01, 2002, 6:12:16 PM, you wrote: jurlsn> Send JBoss-user mailing list submissions to jurlsn> [EMAIL PROTECTED] jurlsn> To subscribe or unsubscribe via the World Wide Web, visit jurlsn> https://lists.sourceforge.net/lists/listinfo/jboss-user jurlsn> or, via email, send a message with subject or body 'help' to jurlsn> [EMAIL PROTECTED] jurlsn> You can reach the person managing the list at jurlsn> [EMAIL PROTECTED] jurlsn> When replying, please edit your Subject line so it is more specific jurlsn> than "Re: Contents of JBoss-user digest..." jurlsn> Today's Topics: jurlsn>1. EmbeddedCatalina and Valves (Robin Cavanaugh) jurlsn>2. Re: Several XADataSourceLoaders for just one database (Dmitri Colebatch) jurlsn>3. Re: Several XADataSourceLoaders for just one database (Guy Rouillier) jurlsn>4. Re: Binding objects into JNDI (Scott M Stark) jurlsn>5. RE: Several XADataSourceLoaders for just one database ([EMAIL PROTECTED]) jurlsn>6. JBoss as general service container? (jfina) jurlsn>7. SSL Redirection Problem (Dan Feltham) jurlsn>8. virtual hosts again... (=?iso-8859-2?Q?Jarecsni_J=E1nos?=) jurlsn>9. FW: virtual hosts again... (=?iso-8859-2?Q?Jarecsni_J=E1nos?=) jurlsn> 10. RE: FW: virtual hosts again... (Coetmeur, Alain) jurlsn> 11. RE: FW: virtual hosts again... (Coetmeur, Alain) jurlsn> 12. RE: SSL Redirection Problem (Coetmeur, Alain) jurlsn> --__--__-- jurlsn> Message: 1 jurlsn> From: "Robin Cavanaugh" <[EMAIL PROTECTED]> jurlsn> To: <[EMAIL PROTECTED]> jurlsn> Date: Thu, 31 Jan 2002 22:40:31 -0500 jurlsn> Subject: [JBoss-user] EmbeddedCatalina and Valves jurlsn> Hello, jurlsn> Has anyone had any luck getting _any_ Valves to work using the jurlsn> EmbeddedCatalinaServiceSX? Specifically, I am trying to get the jurlsn> AccessLogValve to work. jurlsn> I have tried to configure the mbean in jboss.jcml using several variations jurlsn> on the following theme to no avail, including: jurlsn> name="DefaultDomain:service=EmbeddedTomcat" > jurlsn> 80 jurlsn> jurlsn> prefix="localhost_access_log." suffix=".txt" pattern="common" jurlsn> directory="/opt/jboss/jboss/log"/> jurlsn> jurlsn> jurlsn> ...or... jurlsn> name="DefaultDomain:service=EmbeddedTomcat" > jurlsn> jurlsn> jurlsn> jurlsn> port="80" minProcessors="5" maxProcessors="75" jurlsn> enableLookups="true" redirectPort="8443" acceptCount="10" debug="0" jurlsn> connectionTimeout="6"/> jurlsn> jurlsn> jurlsn> prefix="localhost_access_log." suffix=".txt" pattern="common" jurlsn> directory="/opt/jboss/jboss/log"/> jurlsn> jurlsn> jurlsn> jurlsn> jurlsn> jurlsn> jurlsn> Any help would be appreciated. jurlsn> Thanks, jurlsn> Robin Cavanaugh jurlsn> --__--__-- jurlsn> Message: 2 jurlsn> From: "Dmitri Colebatch" <[EMAIL PROTECTED]> jurlsn> To: "Guy Rouillier" <[EMAIL PROTECTED]>, jurlsn> <[EMAIL PROTECTED]> jurlsn> Subject: Re: [JBoss-user] Several XADataSourceLoaders for just one database jurlsn> Date: Fri, 1 Feb 2002 14:53:36 +1100 jurlsn> is this actually going to be any better than having one pool double the size? I'd assume the cost putting the logic on the client jurlsn> side means you'd be worse off than if you just had a bigger pool to start with.? jurlsn> cheesr jurlsn> dim jurlsn> - Original Message - jurlsn> From: "Guy Rouillier" <[EMAIL PROTECTED]> jurlsn> To: <[EMAIL PROTECTED]> jurlsn> Sent: Friday, February 01, 2002 2:20 PM jurlsn> Subject: Re: [JBoss-user] Several XADataSourceLoaders for just one database >> Sure, you can have as many pools against one database as you want (realizing >> that most DBMSs have connection limits.) Just give each pool a unique name. >> >> > name="DefaultDomain:service=XADataSource,name=myDB"> >> myDB >> >> > name="DefaultDomain:service=XADataSource,name=my2ndDB"> >> my2ndDB >> >> Everything else would be the same for the two data sources. >> >> - Original Message - >> From: <[EMAIL PROTECTED]> >> To: <[EMAIL PROTECTED]> >> Sent: Thursday, January 31, 2002 8:21 AM >> Subject: [JBoss-user] Several XADataSourceLoaders for just one database >> >> >> > After some not successfully trials, I have a new Idea. >> > >> > Is it possible to configure two or more XADataSourceLoader to just one >> > Database. >> > As I tried this I've got an >> > javax.naming.NameAlreadyBoundException. >> > >> > I want to configure two or more pools to just one database. So when a >> > connectionpools hasnt any free connections left for an user, the database >> user >> > could be switched to the next pool to reach the database. >> > >> > Many Thanks in Advance! >> > Sjus >> > >> > -- >> > GMX
[JBoss-user] Tomcat 4 war deployment problem
Hi all, I have installed Jboss with Tomcat 4. I deployed my war ( it is working good on jboss with tomcat 3.2) with copying in catalina webapps directory. After restarting Tomcat do not create my application directory. Exist any good docs for jboss with Tomcat4 and is this version stable? Many thanks in advance. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] concurrent calls on stateful beans exception
Hello, I have a jboss-client which shows a swing-UI and thus performs calls to the application server in a separate thread. My only busines-logic call is handleEvent(aEvent) and I have the following code in run(): 8<--8< Collection changedModels = null; synchronized(controller) { ClientController cc = controller.getClientController(); changedModels = cc.handleEvent(event); } 8<--8< The variable controller is a static one and checked for != null. I tried to synchronize on cc too, but no help. I tried to synchronize the whole handleEvent() method on both client and server side, no change. Every time I get an exception like this: 8<--8< [junit] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: [junit] java.rmi.RemoteException: Application Error: no concurrent calls on stateful beans [junit] java.rmi.RemoteException: Application Error: no concurrent calls on stateful beans [junit] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245) [junit] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) [junit] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) [junit] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown Source) [junit] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:357) [junit] at org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(StatefulSessionProxy.java:136) [junit] at $Proxy1.handleEvent(Unknown Source) [junit] at com.lambdalogic.messeinfo.control.application.HandleEventThread.run(HandleEventThread.java:83) 8<--8< On creating the thread I even have a method to ensure only one thread is created and running (so I get only the advantage of a GUI update if the server is called): 8<--8< if (eventThread != null && eventThread.isAlive()) { try { eventThread.join(); } catch (InterruptedException e) { log.error("handleEvent()",e); } // the thread is dead here, e.g. all events are handled } eventThread = HandleEventThread.queueEvent(event,null); eventThread.start(); 8<--8< Here is the queueEvent function: 8<--8< static HandleEventThread queueEvent(MIEvent pEvent, EventHandlerCallback pCallback) { HandleEventThread newEvent = new HandleEventThread(pEvent,pCallback); return newEvent; } 8<--8< BTW: if i put the two handleEvent() calls one after each other, everything is fine. This is not a very useful way for me, because the GUI may start some nasty action every time, thus issuing a new event for the server... Anybody out there with ideas? Thanks a lot, Frank ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] SSL Redirection Problem
I tried your suggestion, but I'm still getting the same problem. Redirecting from 80->443 is fine, but 8080->443 results in a server not found error. I've looked at the error log and something funny is going on when the HttpProcessor gets the query string. Its mapping the request URI to a strange mapping. Have you got any idea why it could be doing that? Thanks for your help Dan Log using port 8080: [15:14:56,808,EmbeddedCatalinaServiceSX] Authenticator[]: Security checking request GET /offers/myoffers [15:14:56,808,EmbeddedCatalinaServiceSX] Authenticator[]: Checking constraint 'SecurityConstraint[Restricted]' against GET /offers/myoffers --> true [15:14:56,808,EmbeddedCatalinaServiceSX] Authenticator[]: Subject to constraint SecurityConstraint[Restricted] [15:14:56,808,EmbeddedCatalinaServiceSX] Authenticator[]: Calling checkUserData() [15:14:56,808,EmbeddedCatalinaServiceSX] Authenticator[]: User data constraint already satisfied [15:14:56,808,EmbeddedCatalinaServiceSX] Authenticator[]: Calling authenticate() [15:14:56,808,EmbeddedCatalinaServiceSX] Authenticator[]: Checking for reauthenticate in session StandardSession[F2B1E9F018A05420A4945074107059F0] [15:14:56,824,EmbeddedCatalinaServiceSX] Authenticator[]: Save request in session 'F2B1E9F018A05420A4945074107059F0' [15:14:56,871,EmbeddedCatalinaServiceSX] Authenticator[]: Redirect to login page '/user/login.html' [15:14:56,902,EmbeddedCatalinaServiceSX] Authenticator[]: Failed authenticate() test [15:14:56,918,EmbeddedCatalinaServiceSX] HttpProcessor[8080][2] An incoming request is being assigned [15:14:56,918,EmbeddedCatalinaServiceSX] HttpProcessor[8080][2] The incoming request has been awaited [15:14:56,918,EmbeddedCatalinaServiceSX] HttpProcessor[8080][2] parseConnection: address=beachbag.swingfm.co.uk/192.168.0.2, port=8080 [15:14:56,918,EmbeddedCatalinaServiceSX] HttpProcessor[8080][2] Query string is b???o6?N?H4???o [15:14:56,933,EmbeddedCatalinaServiceSX] HttpProcessor[8080][2] Normalized: ' false [15:14:56,933,EmbeddedCatalinaServiceSX] Authenticator[]: Checking constraint 'SecurityConstraint[Admin]' against U Q ?qt?kf?X[??~*????{t?z? / false [15:14:56,933,EmbeddedCatalinaServiceSX] Authenticator[]: No applicable constraint located [15:14:56,933,EmbeddedCatalinaServiceSX] Authenticator[]: Not subject to any constraint [15:14:56,933,EmbeddedCatalinaServiceSX] StandardContext[]: Mapping contextPath='' with requestURI='/ true [15:08:00,948,EmbeddedCatalinaServiceSX] Authenticator[]: Subject to constraint SecurityConstraint[Restricted] [15:08:00,948,EmbeddedCatalinaServiceSX] Authenticator[]: Calling checkUserData() [15:08:00,979,EmbeddedCatalinaServiceSX] Authenticator[]: Redirecting to https://beachbag:443/offers/myoffers [15:08:00,995,EmbeddedCatalinaServiceSX] Authenticator[]: Failed checkUserData() test [15:08:01,026,EmbeddedCatalinaServiceSX] HttpProcessor[80][4] parseConnection: address=beachbag.swingfm.co.uk/192.168.0.2, port=80 [15:08:04,230,EmbeddedCatalinaServiceSX] StandardEngine[null]: Mapping server name 'beachbag' [15:08:04,276,EmbeddedCatalinaServiceSX] StandardEngine[null]: Trying a direct match [15:08:04,276,EmbeddedCatalinaServiceSX] StandardEngine[null]: Trying an alias match [15:08:04,276,EmbeddedCatalinaServiceSX] StandardEngine[null]: Trying the default host [15:08:04,292,EmbeddedCatalinaServiceSX] StandardHost[localhost]: Mapping request URI '/offers/myoffers' [15:08:04,292,EmbeddedCatalinaServiceSX] StandardHost[localhost]: Trying the longest context path prefix [15:08:04,292,EmbeddedCatalinaServiceSX] StandardHost[localhost]: Mapped to context '' [15:08:04,292,EmbeddedCatalinaServiceSX] Authenticator[]: Security checking request GET /offers/myoffers [15:08:04,292,EmbeddedCatalinaServiceSX] Authenticator[]: Checking constraint 'SecurityConstraint[Restricted]' against GET /offers/myoffers --> true [15:08:04,292,EmbeddedCatalinaServiceSX] Authenticator[]: Subject to constraint SecurityConstraint[Restricted] [15:08:04,292,EmbeddedCatalinaServiceSX] Authenticator[]: Calling checkUserData() [15:08:04,292,EmbeddedCatalinaServiceSX] Authenticator[]: User data constraint already satisfied [15:08:04,292,EmbeddedCatalinaServiceSX] Authenticator[]: Calling authenticate() [15:08:04,292,EmbeddedCatalinaServiceSX] Authenticator[]: Checking for reauthenticate in session StandardSession[F2B1E9F018A05420A4945074107059F0] [15:08:04,308,EmbeddedCatalinaServiceSX] Authenticator[]: Save request in session 'F2B1E9F018A05420A4945074107059F0' [15:08:04,323,EmbeddedCatalinaServiceSX] Authenticator[]: Redirect to login page '/user/login.html' [15:08:04,339,EmbeddedCatalinaServiceSX] Authenticator[]: Failed authenticate() test [15:08:04,370,EmbeddedCatalinaServiceSX] StandardEngine[null]: Mapping server name 'beachbag' [15:08:04,370,EmbeddedCatalinaServiceSX] StandardEngine[null]: Trying a direct match [15:08:04,370,EmbeddedCatalinaServiceSX] StandardEngine[null]: Trying an alias match [15
[JBoss-user] Client packages...
Hi, I would like to know if the packages needed to build a java client (${JBOSS_DIST}/client/*client.jar) for EJBs can be shared without JBoss that is to say downloadable for an application? Thanks, Loïc Lefèvre ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] EmbeddedCatalina and Valves
the ConfigHandler used by catalina Mbean does not handle VALVE (nor HOST)... maybe should I try to add that support not very hard IMHO. > -Message d'origine- > De: Robin Cavanaugh [mailto:[EMAIL PROTECTED]] > Date: vendredi 1 février 2002 04:41 > À: [EMAIL PROTECTED] > Objet: [JBoss-user] EmbeddedCatalina and Valves > > > Hello, > > Has anyone had any luck getting _any_ Valves to work using the > EmbeddedCatalinaServiceSX? Specifically, I am trying to get the > AccessLogValve to work. > > I have tried to configure the mbean in jboss.jcml using > several variations > on the following theme to no avail, including: > > name="DefaultDomain:service=EmbeddedTomcat" > > 80 > > prefix="localhost_access_log." suffix=".txt" pattern="common" > directory="/opt/jboss/jboss/log"/> > > > > ...or... > > name="DefaultDomain:service=EmbeddedTomcat" > > > > >className="org.apache.catalina.connector.http.HttpConnector" > port="80" minProcessors="5" maxProcessors="75" > enableLookups="true" redirectPort="8443" > acceptCount="10" debug="0" > connectionTimeout="6"/> >defaultHost="localhost" debug="0"> >appBase="webapps" unpackWARs="true"> >className="org.apache.catalina.valves.AccessLogValve" > prefix="localhost_access_log." > suffix=".txt" pattern="common" > directory="/opt/jboss/jboss/log"/> > > > > > > > > Any help would be appreciated. > > Thanks, > > Robin Cavanaugh > > > ___ > 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] 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
RE: [JBoss-user] SSL Redirection Problem
sorry I'm guilty... the RedirectPort attribute is a modification of my own ! I can give you the source of the patch... however the quicker is to reverse the two connectors : - put a ssl connector as the base connector - declare a secondary connector in the config attribute with a redirect port attribute. the reason it works on 443 is that redirectport is set by default to 443 whatever you do ! this below should work without any jboss patch : (change 443 and 80 to what you need) ../conf/tomcat.jks changeit http 443 java:/jaas/tomcat > -Message d'origine- > De: Dan Feltham [mailto:[EMAIL PROTECTED]] > Date: vendredi 1 février 2002 15:45 > À: [EMAIL PROTECTED] > Objet: [JBoss-user] SSL Redirection Problem > > > Hi > > I'm having problems trying to imlement SSL redirection using the > JBoss-2.4.4 Tomcat 4.0.1 bundle. I have the redirection working from > port 80 to 443 using the following configuration: > > name="Security:name=JaasSecurityDomain,domain=ssl"> > > > >name="KeyStoreURL">beachbag.keystore > changeit > > > > > name="DefaultDomain:service=EmbeddedTomcat"> > 80 > 443 > >className="org.apache.catalina.connector.http.HttpConnector" > port="443" minProcessors="5" maxProcessors="75" > enableLookups="true" > acceptCount="10" scheme="https" secure="true"> >className="org.jboss.web.catalina.security.SSLServerSocketFactory" > securityDomainName="java:/jaas/ssl"/> > > > > > However if I try changing the port to 8080 the redirection stops > working. When I try to navigate to a page that I have declared as > CONFIDENTIAL I get a 404 error. Has anyone else has this > problem, or got > any suggestions for solving it. I need to be able to run > tomcat on 8080 > so that I can use Apache on port 80! > > Thanks > > Dan Feltham > > ___ > 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] FW: virtual hosts again...
I've looked upon the subject of in catalina mbean... and have changed my mind a bit. note that I suppose that you switch back to embedded catalina. there is an attribute "BindAddress" which tells which precise IP address you listen to... maybe should you try 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 not, I'll try soon to patch my version of catalinambean so that you can add a virtual host ! > >We even separated the web tier from the EAR, creating a > separate WAR file. I > >deployed the WAR under tomcat (putting the WAR file into its webapps > >folder), and thus I was able to add a tag, pointing > to webapps/istore > >(this is where tomcat normally deploys). I started tomcat > (with the webtier > >of istore in it) and JBoss (running now merely the EJBs of > istore). The idea > >worked... But when the two layers began talking to each > other, I got a bit > >sad. Everything was deadly slow. Circulus vitiosus... When > I'm able to > >create the virtual host I need, it's damn slow when it's > fast, I cannot > >create the vhost. Now I am at a complete loss as how to proceed... ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] FW: virtual hosts again...
> -Message d'origine- > De: Jarecsni János [mailto:[EMAIL PROTECTED]] > we'd like to set up a virtual host for one of our J2EE apps. > Now we have a > context (/istore) under which our application can be > accessed. The URL of > our app now is: http://xxx.yyy.com/istore/ > > However we'd like the following URL to work: >http://virtual.host.com/ So > we'd set up our DNS server to point to the machine running JBoss with our > istore, and the web server should intercept a reqest for "vhos.com" and > realize that this reqest can be served from a given directory. >Ok. Sorry for the lengthy introduction, now I can tell you where my problem >roots. When JBoss deploys istore.ear, it unpacks the webtier to a directory > named: $JBOSS_HOME/tmp/deploy/Default/istore.war/web1004. It seems that >JBoss uses the same directory for subsequent runs, so until you don't >refresh your application, this directory remains used. I tried to add a > tag in the server.xml configuration file in $TOMCAT_HOME/conf. I >tried to reference this directory but it didn't work. sure, in jboss244 server.xml is not at all used... >We even separated the web tier from the EAR, creating a separate WAR file. I >deployed the WAR under tomcat (putting the WAR file into its webapps >folder), and thus I was able to add a tag, pointing to webapps/istore >(this is where tomcat normally deploys). I started tomcat (with the webtier >of istore in it) and JBoss (running now merely the EJBs of istore). The idea >worked... But when the two layers began talking to each other, I got a bit >sad. Everything was deadly slow. Circulus vitiosus... When I'm able to >create the virtual host I need, it's damn slow when it's fast, I cannot >create the vhost. Now I am at a complete loss as how to proceed... maybe could we work together. I've just made patches to the catalina MBean that allows to set many parameter to catalina connectors... I've mad that for HTTPS redirect, reverse proxy, and now I understand how the catalina mbean works... I know where in the Mbean tags are NOT managed (and how to manage them) but I don't know what it is (don't smile ) the server.xml defines a tree of objects, where there exists by default one "host" object... I could add host support in hal a day if you telle me, what are the parameters, howmany on must and can add... if you use jboss244 with embeded tomcat I can even give you the patched jar (with the source anyway)... ___ 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] virtual hosts again...
Hi, we'd like to set up a virtual host for one of our J2EE apps. Now we have a context (/istore) under which our application can be accessed. The URL of our app now is: http://xxx.yyy.com/istore/ However we'd like the following URL to work: http://virtual.host.com/ So we'd set up our DNS server to point to the machine running JBoss with our istore, and the web server should intercept a reqest for "vhos.com" and realize that this reqest can be served from a given directory. Ok. Sorry for the lengthy introduction, now I can tell you where my problem roots. When JBoss deploys istore.ear, it unpacks the webtier to a directory named: $JBOSS_HOME/tmp/deploy/Default/istore.war/web1004. It seems that JBoss uses the same directory for subsequent runs, so until you don't refresh your application, this directory remains used. I tried to add a tag in the server.xml configuration file in $TOMCAT_HOME/conf. I tried to reference this directory but it didn't work. We even separated the web tier from the EAR, creating a separate WAR file. I deployed the WAR under tomcat (putting the WAR file into its webapps folder), and thus I was able to add a tag, pointing to webapps/istore (this is where tomcat normally deploys). I started tomcat (with the webtier of istore in it) and JBoss (running now merely the EJBs of istore). The idea worked... But when the two layers began talking to each other, I got a bit sad. Everything was deadly slow. Circulus vitiosus... When I'm able to create the virtual host I need, it's damn slow when it's fast, I cannot create the vhost. Now I am at a complete loss as how to proceed... Thanks in advance, János PS: 1) I wouldn't use Jetty for this, 'cause Tomcat works well for us, and when I tried to port our app to Jetty, almost everything broke down that worked before. 2) when I set up a virtual host, say 127.0.0.10 for istore (when the webtier was served separately by tomcat, not by the embeddedtomcat) and I pointed my browser to this address, and got the response page, the address was rewritten to "127.0.0.10/index.html". It would also be good to disable this. You know it's ugly to see www.xxx.com/index.html in the address bar. (Maybe it's not a real problem in a real environment, I don't know) ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] FW: virtual hosts again...
Hi, we'd like to set up a virtual host for one of our J2EE apps. Now we have a context (/istore) under which our application can be accessed. The URL of our app now is: http://xxx.yyy.com/istore/ However we'd like the following URL to work: http://virtual.host.com/ So we'd set up our DNS server to point to the machine running JBoss with our istore, and the web server should intercept a reqest for "vhos.com" and realize that this reqest can be served from a given directory. Ok. Sorry for the lengthy introduction, now I can tell you where my problem roots. When JBoss deploys istore.ear, it unpacks the webtier to a directory named: $JBOSS_HOME/tmp/deploy/Default/istore.war/web1004. It seems that JBoss uses the same directory for subsequent runs, so until you don't refresh your application, this directory remains used. I tried to add a tag in the server.xml configuration file in $TOMCAT_HOME/conf. I tried to reference this directory but it didn't work. We even separated the web tier from the EAR, creating a separate WAR file. I deployed the WAR under tomcat (putting the WAR file into its webapps folder), and thus I was able to add a tag, pointing to webapps/istore (this is where tomcat normally deploys). I started tomcat (with the webtier of istore in it) and JBoss (running now merely the EJBs of istore). The idea worked... But when the two layers began talking to each other, I got a bit sad. Everything was deadly slow. Circulus vitiosus... When I'm able to create the virtual host I need, it's damn slow when it's fast, I cannot create the vhost. Now I am at a complete loss as how to proceed... Thanks in advance, János PS: 1) I wouldn't use Jetty for this, 'cause Tomcat works well for us, and when I tried to port our app to Jetty, almost everything broke down that worked before. 2) when I set up a virtual host, say 127.0.0.10 for istore (when the webtier was served separately by tomcat, not by the embeddedtomcat) and I pointed my browser to this address, and got the response page, the address was rewritten to "127.0.0.10/index.html". It would also be good to disable this. You know it's ugly to see www.xxx.com/index.html in the address bar. (Maybe it's not a real problem in a real environment, I don't know) ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] SSL Redirection Problem
Hi I'm having problems trying to imlement SSL redirection using the JBoss-2.4.4 Tomcat 4.0.1 bundle. I have the redirection working from port 80 to 443 using the following configuration: beachbag.keystore changeit 80 443 However if I try changing the port to 8080 the redirection stops working. When I try to navigate to a page that I have declared as CONFIDENTIAL I get a 404 error. Has anyone else has this problem, or got any suggestions for solving it. I need to be able to run tomcat on 8080 so that I can use Apache on port 80! Thanks Dan Feltham ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss as general service container?
Hi! Can jboss be used as a general purpose service container? If thats true I may build network services deployed in the jboss container and use the ejb as a peristent back-end store for the services. ...or i may just run JINI and use jboss as the persistent engine. What do you think? /Jon ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Several XADataSourceLoaders for just one database
Yeah, I've got only a naming error, now its working with these two pools. I try to increase the DatabaseConnectionpoolsize dynamically, during the server is running. But all my trials doesnt really work, nothing were effected. So I thought to make two pools, so that blocked connections could be forwarded to the second pool, if there aren't any free connections left. I don't have any good solution for these dynamically increasing. Maybe somebody has gained some experiences with this? I'm still very interested in any advices. Many thanks in advance! Sjus -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user